Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Default value options: IssuanceOptions = {tokenID: null,symbol: null,name: null,totalSupply: MAXUINT128,feeType: 'flat',feeRate: '0',settings: {issuance: false,modify_issuance: false,revoke: false,modify_revoke: false,freeze: false,modify_freeze: false,adjust_fee: false,modify_adjust_fee: false,whitelist: false,modify_whitelist: false},controllers: [],issuerInfo: ''}

    Returns Issuance

Properties

Private _controllers

_controllers: Controller[]

Private _feeRate

_feeRate: string

Private _feeType

_feeType: feeType

Private _issuerInfo

_issuerInfo: string

Private _name

_name: string

Private _settings

_settings: Settings

Private _symbol

_symbol: string

Private _tokenID

_tokenID: string

Private _totalSupply

_totalSupply: string

Accessors

controllers

  • get controllers(): Controller[] | RpcController[]
  • set controllers(val: Controller[] | RpcController[]): void
  • The contollers of the token Typescript is really dumb and won't let us use different types for getter setters

    type

    {Controller[]}

    Returns Controller[] | RpcController[]

  • The contollers of the token Typescript is really dumb and won't let us use different types for getter setters

    Parameters

    Returns void

controllersAsObject

  • The contollers of the token Same as get controllers but typescript doesn't allow different types for getter setter

    type

    {Controller[]}

    Returns Controller[]

fee

  • get fee(): string
  • set fee(val: string): void

feeRate

  • get feeRate(): string
  • set feeRate(val: string): void
  • The fee rate of the token make sure to take in account the fee type

    type

    {string}

    Returns string

  • The fee rate of the token make sure to take in account the fee type

    Parameters

    • val: string

    Returns void

feeType

hash

  • get hash(): string
  • Returns calculated hash or Builds the request and calculates the hash

    throws

    An exception if missing parameters or invalid parameters

    type

    {string}

    readonly

    Returns string

issuerInfo

  • get issuerInfo(): string
  • set issuerInfo(val: string): void

name

  • get name(): string
  • set name(val: string): void

origin

  • get origin(): string
  • set origin(origin: string): void

originAccount

  • get originAccount(): string

previous

  • get previous(): string
  • set previous(hex: string): void

published

  • get published(): boolean
  • set published(val: boolean): void

sequence

  • get sequence(): number
  • set sequence(val: number): void

settings

  • get settings(): Settings | RpcSettings[]
  • set settings(val: Settings | RpcSettings[]): void

settingsAsObject

  • The settings for the token Same as get settings but typescript doesn't allow different types for getter setter

    type

    {Settings}

    Returns Settings

signature

  • get signature(): string
  • set signature(hex: string): void

symbol

  • get symbol(): string
  • set symbol(val: string): void

timestamp

  • get timestamp(): string
  • set timestamp(timestamp: string): void

tokenID

  • get tokenID(): string
  • set tokenID(val: string): void

totalSupply

  • get totalSupply(): string
  • set totalSupply(val: string): void
  • The total supply of the token (340282366920938463463374607431768211455 is Max)

    type

    {string}

    Returns string

  • The total supply of the token (340282366920938463463374607431768211455 is Max)

    Parameters

    • val: string

    Returns void

type

  • get type(): string

typeValue

  • get typeValue(): number

version

  • get version(): number

work

  • get work(): string
  • set work(hex: string): void

Methods

addController

Private getObjectBits

publish

  • publish(rpcSettings: RPCOptions, delegates?: string[]): Promise<object>

requestHash

sign

  • sign(privateKey: string): boolean
  • Creates a signature for the request

    Parameters

    • privateKey: string

      private key in hex

    Returns boolean

    if the signature is valid

toJSON

validateController

  • validateController(controller: Controller): boolean
  • Validates the controller

    throws

    a shit load of errors if it is wrong

    Parameters

    • controller: Controller

      controller you want to validate

    Returns boolean

validateSettings

  • validateSettings(settings?: Settings): boolean
  • Validates the settings

    throws

    a shit load of errors if it is wrong

    Parameters

    • Default value settings: Settings = this.settingsAsObject

    Returns boolean

verify

  • verify(): boolean

Generated using TypeDoc