ODCinterfacesdataobject-interfaces
IFungibleTokenOperations
Provides the operations of the FungibleTokenDO to interact with fungible tokens and their associated data
balanceOf
Operation used to get the balance of an account
Parameters
Name | Type | Description |
---|---|---|
account | address | The account address |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The balance of the account |
totalSupply
Operation used to get the total supply of the token
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The total supply of the token |
mint
Operation used to mint new tokens
Parameters
Name | Type | Description |
---|---|---|
to | address | The account address to mint the tokens to |
amount | uint256 | The amount of tokens to mint |
burn
Operation used to burn tokens
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to burn the tokens from |
amount | uint256 | The amount of tokens to burn |
transfer
Operation used to transfer tokens
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to transfer the tokens from |
to | address | The account address to transfer the tokens to |
amount | uint256 | The amount of tokens to transfer |
transferBatchMultipleTargets
Operation used to transfer tokens to multiple targets
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to transfer the tokens from |
to | address[] | The account addresses to transfer the tokens to |
amount | uint256 | The amount of tokens to transfer to each target |
transferBatchMultipleTargetsAmounts
Operation used to transfer tokens to multiple targets with different amounts
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to transfer the tokens from |
to | address[] | The account addresses to transfer the tokens to |
amount | uint256[] | The amounts of tokens to transfer |
transferBatchIndependent
Operation used to transfer tokens to multiple targets independently
Parameters
Name | Type | Description |
---|---|---|
from | address[] | The account addresses to transfer the tokens from |
to | address[] | The account addresses to transfer the tokens to |
amount | uint256[] | The amounts of tokens to transfer |