ODCinterfacesdataManagersfractionalizers

IFraction

NotPrimaryChain

error NotPrimaryChain()

NotOwnerOfWrappedNFT

error NotOwnerOfWrappedNFT()

NftUnlocked

event NftUnlocked(uint256 nftId, address receiver)

PercentageWrappedAssetsUnlocked

event PercentageWrappedAssetsUnlocked(uint256 nftId, address receiver, uint256 percentage)

WrappedAssetsUnlocked

event WrappedAssetsUnlocked(uint256 nftId, address receiver, address[] tokens, uint256[] ids, uint256[] values)

Executed

event Executed(uint256 nftId, address token, bytes input)

forceUnlockNft

function forceUnlockNft(address receiver) external

Can be used by contract owner to receive Wrapped NFT

Parameters

NameTypeDescription
receiveraddresswho should receive NFT

forceFullyUnlockWrappedAssets

function forceFullyUnlockWrappedAssets(address receiver) external

Can be used by contract owner to receive wrapped assets (this includes burning the Wrapped NFT)

Parameters

NameTypeDescription
receiveraddresswho should receive wrapped assets

fullyUnlockWrappedAssets

function fullyUnlockWrappedAssets(address beneficiary) external

Can be used by fractions owner to recieve wrapped assets in exchange to all fractions All fractions will be burned.

Parameters

NameTypeDescription
beneficiaryaddresswho should receive wrapped assets

execute

function execute(address token, bytes input) external payable

Allows contract owner to send messages (execute calls) on wrapped assets

Parameters

NameTypeDescription
tokenaddressAsset contract to send message to
inputbytesMessage to send (abi-encoded call payload with method selector and arguments)

burnFromOwnerUnwrapToAccount

function burnFromOwnerUnwrapToAccount(uint256 amountOfFractions, uint256 burnId, address account, address[] tokens, uint256[] ids, uint256[] values) external

Allows contract owner to burn amount from himself/herself and unwrap assets to a specific account Burn id should be genesis ids (only for erc1155)

Parameters

NameTypeDescription
amountOfFractionsuint256The amount of fractions to burn.
burnIduint256The id from which amountOfFractions will be burnt (only for erc1155)
accountaddressThe address which will received the unwrapped assets.
tokensaddress[]The array of token addresses to be unwrapped
idsuint256[]The array of ids to be unwrapped
valuesuint256[]The array of values to be unwrapped

burn

function burn(address from, uint256 id, uint256 value) external

Burn value tokens from from (of id in ERC1155)

Parameters

NameTypeDescription
fromaddressAddress to burn tokens from
iduint256The tokenId to burn (only for erc1155)
valueuint256Amount to burn

On this page