ODCdataobjectsomnichain
OmnichainFungibleTokenWithLocalMintBurnSupplyDO
This DO should be used only on a chain where mint/burn happens exclusively (no other chains are allowed to mint/burn tokens for this DP)
DpData2
Data structure for storing local mint & burn supply
Parameters
| Name | Type | Description |
|---|
_dispatchRead
_localMintBurnSupply
Internal function used to get count of all minted and not burned tokens on current chain
Parameters
| Name | Type | Description |
|---|---|---|
| dp | DataPoint | DataPoint identifier |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | Difference between tokens minted and burned on current chain |
_mint
Function used to mint new tokens
Parameters
| Name | Type | Description |
|---|---|---|
| dp | DataPoint | DataPoint identifier |
| to | address | The account address to mint the tokens to |
| amount | uint256 | The amount of tokens to mint |
_burn
Function used to burn tokens
Parameters
| Name | Type | Description |
|---|---|---|
| dp | DataPoint | DataPoint identifier |
| from | address | The account address to burn the tokens from |
| amount | uint256 | The amount of tokens to burn |

