FtContract

FtContract

new FtContract()

Version:
  • 1.0

The FtContract model module.

Members

address :String

Contract address (20-byte)

Type:
  • String

decimals :Number

Number of token digits

Type:
  • Number

name :String

Token name

Type:
  • String

symbol :String

Token symbol

Type:
  • String

status :String

Contract labeling status (completed, processing, failed, cancelled)

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {FtContract}

Constructs a FtContract from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj FtContract

Optional instance to populate.

Returns:

The populated FtContract instance.

Type
FtContract

FtContract

new FtContract(address, decimals, name, symbol, status)

Constructs a new FtContract.

Parameters:
Name Type Description
address String

Contract address (20-byte)

decimals Number

Number of token digits

name String

Token name

symbol String

Token symbol

status String

Contract labeling status (completed, processing, failed, cancelled)

Members

address :String

Contract address (20-byte)

Type:
  • String

decimals :Number

Number of token digits

Type:
  • Number

name :String

Token name

Type:
  • String

symbol :String

Token symbol

Type:
  • String

status :String

Contract labeling status (completed, processing, failed, cancelled)

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {FtContract}

Constructs a FtContract from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj FtContract

Optional instance to populate.

Returns:

The populated FtContract instance.

Type
FtContract