Skip to main content

Module trc721

Module trc721 

Source
Expand description

Static TRC721 ABI bindings and encode/decode helpers. TRC721 ABI bindings and (optionally) the provider-bound [Trc721Instance].

TRC721 is byte-for-byte compatible with the EVM ERC721 ABI, so the interface and all call/return codecs are generated by alloy’s sol! macro.

Modules§

ITRC721
Module containing a contract’s types and functions.

Functions§

decode_address_return
Decode the address returned by ownerOf / getApproved.
decode_bool_return
Decode the bool returned by isApprovedForAll.
decode_string_return
Decode the string returned by name / symbol / tokenURI.
decode_uint256_return
Decode the uint256 returned by balanceOf.
encode_approve
ABI-encode the approve(to, tokenId) call.
encode_balance_of
ABI-encode the balanceOf(owner) constant call.
encode_owner_of
ABI-encode the ownerOf(tokenId) constant call.
encode_safe_transfer_from
ABI-encode the safeTransferFrom(from, to, tokenId) call (no data).
encode_transfer_from
ABI-encode the transferFrom(from, to, tokenId) call.