ODCinterfacesdataManagersfractionalizers

IFractionERC1155DataManager

Interface of the Fraction ERC1155 Data Manager

InvalidLengthInput

error InvalidLengthInput()

OmnichainERC1155InitData

Parameters

NameTypeDescription
struct OmnichainERC1155InitData {
  bytes32 dataPoint;
  address dataIndex;
  address dataObject;
  string name;
  string symbol;
}

initialize

function initialize(struct IFractionERC1155DataManager.OmnichainERC1155InitData omnichainERC1155InitData, address beneficiary_, address wrapper_, uint256 nftId_, uint256 amountToBeMinted_, uint256 upperGenesisId_, bool userUnlockEnabled_) external

Initializes the DataManager

Parameters

NameTypeDescription
omnichainERC1155InitDatastruct IFractionERC1155DataManager.OmnichainERC1155InitDataInit data for Omnichain ERC1155 DM
beneficiary_addressAddress which receives minted fractions
wrapper_addressAddress of the Wrapper contract (same as Wrapped NFT), must be 0 on secondary chains
nftId_uint256Id of the Wrapped NFT
amountToBeMinted_uint256Amount of fractions ot mint
upperGenesisId_uint256The upper limit of the genesis ids
userUnlockEnabled_boolEnables Fraction owners to unlock via burning their fractions

transferOwnership

function transferOwnership(address newOwner) external

Function used to transfer ownership of the Fraction ERC1155 Data Manager

Parameters

NameTypeDescription
newOwneraddressAddress of the new owner

localMintBurnSupplyAll

function localMintBurnSupplyAll() external view returns (uint256)

Function used to get count of all minted and not burned tokens on current chain of all ids

Return Values

NameTypeDescription
[0]uint256Difference between tokens minted and burned on current chain of all ids

localMintBurnSupply

function localMintBurnSupply(uint256 id) external view returns (uint256)

Function used to get count of all minted and not burned tokens on current chain of a specific id

Parameters

NameTypeDescription
iduint256Id of the token

Return Values

NameTypeDescription
[0]uint256Difference between tokens minted and burned on current chain of the id

partiallyUnlockWrappedAssets

function partiallyUnlockWrappedAssets(uint256 genesisId, uint256 fractionsToBurn, bool skipNonPercentageWtypes, address beneficiary) external

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

NameTypeDescription
genesisIduint256the genesis id to be used
fractionsToBurnuint256amount of fractions to burn
skipNonPercentageWtypesboolallows to skip non-fungible assets, where correct percentage can not be counted, otherwise if there are such wrapped assets, this call will revert
beneficiaryaddresswho should receive wrapped assets

partiallyUnlockWrappedAssetsBatch

function partiallyUnlockWrappedAssetsBatch(uint256[] genesisIds, uint256[] fractionsToBurnForId, bool skipNonPercentageWtypes, address beneficiary) external

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

NameTypeDescription
genesisIdsuint256[]the genesis ids to be used
fractionsToBurnForIduint256[]array containing amount of fractions to be burnt from each id
skipNonPercentageWtypesboolallows to skip non-fungible assets, where correct percentage can not be counted, otherwise if there are such wrapped assets, this call will revert
beneficiaryaddresswho should receive wrapped assets

On this page