ILockableERC1155#

Notice

Interface for a lockable ERC1155 token contract.

insufficient#

error insufficient(uint256 id, uint256 balance, uint256 required)

TokensLocked#

event TokensLocked(address account, uint256 id, uint256 value)

TokensUnlocked#

event TokensUnlocked(address account, uint256 id, uint256 value)

lock#

function lock(address account, uint256 id, uint256 amount) external

Notice

Locks a specified amount of tokens for a given account and token ID. account is the address of the account to lock the tokens for. id is the ID of the token to lock. amount is the amount of tokens to lock.

Notice

emits a TokensLocked event.

unlock#

function unlock(address account, uint256 id, uint256 amount) external

Notice

Unlocks a specified amount of tokens for a given account and token ID. account is the address of the account to unlock the tokens for. id is the ID of the token to unlock. amount is the amount of tokens to unlock.

Notice

emits a TokensUnlocked event.

unlockedBalanceOf#

function unlockedBalanceOf(address account, uint256 id) external view returns (uint256)

Notice

Returns the unlocked balance of tokens for a given account and token ID. account is the address of the account to check the unlocked balance for. id is the ID of the token to check the unlocked balance for.

Notice

Returns:

Notice

  • The unlocked balance of tokens.

burn#

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