Artwork

Artwork is an ERC1155 contract representing the instance of the artwork. Its tokenId is same as copyright.

View Methods

ownedBalanceOf

function ownedBalanceOf(address account, uint256 tokenId) external view returns (uint256 amount)

Returns the amount of tokens of token type id owned by account.

usedBalanceOf

function usedBalanceOf(address account, uint256 tokenId) external view returns (uint256 amount)

Returns the amount of tokens of token type id used by account.

canTransfer

function canTransfer(address account, uint256 tokenId) external view returns (uint256 allowance)

Returns the amount of the tokenId token that can be transferd by account.

canCopy

function canCopy(address account, uint256 tokenId) external view returns (uint256 allowance)

Returns the amount of the tokenId token that can be copied by account.

canBurn

function canBurn(address account, uint256 tokenId) external view returns (uint256 allowance)

Returns the amount of the tokenId token that can be burned by account.

Write Methods

resetTransferAllowance

function resetTransferAllowance(address account, uint256 tokenId) external returns (uint256 allowance)

Reset the transfer permission for the tokenId token for account.

resetCopyAllowance

function resetCopyAllowance(address account, uint256 tokenId) external returns (uint256 allowance)

Reset the copy permission for the tokenId token for account.

resetBurnAllowance

function resetBurnAllowance(address account, uint256 tokenId) external returns (uint256 allowance)

Reset the burn permission for the tokenId token for account.

copy

function copy( address account, uint256 tokenId, uint256 amount ) external

Mint a tokenId artwork token.

burn

function burn( address account, uint256 tokenId, uint256 amount ) external

Burn a tokenId artwork token.

Last updated