Skip to content
Lattice

ITokenBound

Git Source

Title: ITokenBound

Author: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80)

Lattice error/event surface of the ERC-6551 ERC6551Account facet. The standard token / state / isValidSigner / execute functions are on the vendored IERC6551Account / IERC6551Executable.

The account is controlled by the owner of the bound ERC-721 token. v1 supports operation == 0 (CALL) and resolves ownership only on the token's home chain.

Events

Bound

Emitted once when the account is bound to its token at initialization.

event Bound(uint256 chainId, address indexed tokenContract, uint256 indexed tokenId);

Parameters

NameTypeDescription
chainIduint256
tokenContractaddress
tokenIduint256

Errors

InvalidSigner

The caller is not the bound token's owner (the only valid signer).

error InvalidSigner(address signer);

Parameters

NameTypeDescription
signeraddress

UnsupportedOperation

The execution operation is not supported (v1: only 0 == CALL).

error UnsupportedOperation(uint8 operation);

Parameters

NameTypeDescription
operationuint8