Contains the amount of asset(s) attached to this operations,
i.e. this corresponds to the mosaic amount as presented in
the resulting transfer transaction's mosaics field.
For the purpose of backwards compatibility, the amount
input may
be empty because previous versions of this contract (v0) did not
include an amount of rewarded assets.
Contains the identifier of the asset attached to this operations,
i.e. this corresponds to the mosaic identifier as presented in
the resulting transfer transaction's mosaics field.
For the purpose of backwards compatibility, the asset
input may
be empty because previous versions of this contract (v0) did not
include an amount of rewarded assets.
A human-readable dApp identifier, e.g. "ELEVATE".
Note that this field will be slugified using the
Contract.dApp method before it is attached
to the transfer transaction message.
Contains the date of the operation that is being rewarded, i.e.
this corresponds to the the date as presented in the operation
details and can also be different than the transaction inclusion
date.
Note that in a previous version of our dApps framework, this field
used a date-format of YYYYMMDD
. We permit the usage of such date
values but we recommend that you use more detailed date values.
For the purpose of backwards compatibility, the date
input may
contain a date-format as listed below:
YYYYMMDD
: e.g. "20220829"YYYY-MM-DD
: e.g. "2022-08-29"Generated using TypeDoc
EarnParameters
This interface defines the requirements for objects passed as inputs to Earn instances.
Use this interface whenever you are using the
Earn
contract.Following inputs apply to the Earn contract class:
dappIdentifier
string
date
string
asset
string
amount
number
1
.Using the
EarnParameters
classOther links
Earn | Contract | Factory
v0.3.0