ODCinterfacesdataManagersfractionalizers
IFractionERC1155DataManager
Interface of the Fraction ERC1155 Data Manager
InvalidLengthInput
OmnichainERC1155InitData
Parameters
Name | Type | Description |
---|
initialize
Initializes the DataManager
Parameters
Name | Type | Description |
---|---|---|
omnichainERC1155InitData | struct IFractionERC1155DataManager.OmnichainERC1155InitData | Init data for Omnichain ERC1155 DM |
beneficiary_ | address | Address which receives minted fractions |
wrapper_ | address | Address of the Wrapper contract (same as Wrapped NFT), must be 0 on secondary chains |
nftId_ | uint256 | Id of the Wrapped NFT |
amountToBeMinted_ | uint256 | Amount of fractions ot mint |
upperGenesisId_ | uint256 | The upper limit of the genesis ids |
userUnlockEnabled_ | bool | Enables Fraction owners to unlock via burning their fractions |
transferOwnership
Function used to transfer ownership of the Fraction ERC1155 Data Manager
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | Address of the new owner |
localMintBurnSupplyAll
Function used to get count of all minted and not burned tokens on current chain of all ids
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | Difference between tokens minted and burned on current chain of all ids |
localMintBurnSupply
Function used to get count of all minted and not burned tokens on current chain of a specific id
Parameters
Name | Type | Description |
---|---|---|
id | uint256 | Id of the token |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | Difference between tokens minted and burned on current chain of the id |
partiallyUnlockWrappedAssets
Can be used by fractions owner to recieve part of wrapped assets in exchange to his fractions Amount of assets he receives is proportional to burned fractions
Parameters
Name | Type | Description |
---|---|---|
genesisId | uint256 | the genesis id to be used |
fractionsToBurn | uint256 | amount of fractions to burn |
skipNonPercentageWtypes | bool | allows to skip non-fungible assets, where correct percentage can not be counted, otherwise if there are such wrapped assets, this call will revert |
beneficiary | address | who should receive wrapped assets |
partiallyUnlockWrappedAssetsBatch
Batch version of partially unlocking wrapped assets. Can be used by fractions owner to recieve part of wrapped assets in exchange to his fractions Amount of assets he receives is proportional to burned fractions
Parameters
Name | Type | Description |
---|---|---|
genesisIds | uint256[] | the genesis ids to be used |
fractionsToBurnForId | uint256[] | array containing amount of fractions to be burnt from each id |
skipNonPercentageWtypes | bool | allows to skip non-fungible assets, where correct percentage can not be counted, otherwise if there are such wrapped assets, this call will revert |
beneficiary | address | who should receive wrapped assets |