MtTransfer

MtTransfer

new MtTransfer()

Version:
  • 1.0

The MtTransfer model module.

Members

contract :MtContract

Type:

operator :String

Operator address (20-byte)

Type:
  • String

from :String

Owner address (20-byte)

Type:
  • String

to :String

Recipient address (20-byte)

Type:
  • String

transaction :Transaction

Type:

transferType :String

Transfer type

Type:
  • String

ids :Array.<String>

Array of token IDs (hex)

Type:
  • Array.<String>

values :Array.<String>

Array of numbers of tranferring tokens (hex)

Type:
  • Array.<String>

Methods

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

Constructs a MtTransfer 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 MtTransfer

Optional instance to populate.

Returns:

The populated MtTransfer instance.

Type
MtTransfer

MtTransfer

new MtTransfer(contract, operator, from, to, transaction, transferType, ids, values)

Constructs a new MtTransfer.

Parameters:
Name Type Description
contract MtContract
operator String

Operator address (20-byte)

from String

Owner address (20-byte)

to String

Recipient address (20-byte)

transaction Transaction
transferType String

Transfer type

ids Array.<String>

Array of token IDs (hex)

values Array.<String>

Array of numbers of tranferring tokens (hex)

Members

contract :MtContract

Type:

operator :String

Operator address (20-byte)

Type:
  • String

from :String

Owner address (20-byte)

Type:
  • String

to :String

Recipient address (20-byte)

Type:
  • String

transaction :Transaction

Type:

transferType :String

Transfer type

Type:
  • String

ids :Array.<String>

Array of token IDs (hex)

Type:
  • Array.<String>

values :Array.<String>

Array of numbers of tranferring tokens (hex)

Type:
  • Array.<String>

Methods

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

Constructs a MtTransfer 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 MtTransfer

Optional instance to populate.

Returns:

The populated MtTransfer instance.

Type
MtTransfer