web3wagmi
← All standards

ERC-5773 Context-Dependent Multi-Asset Tokens

FinalERCcreated 2022-10-101 later proposal build on itrequires ERC-165, ERC-721

An interface for Multi-Asset tokens with context dependent asset type output controlled by owner's preference.

Authors: Bruno Škvorc (@Swader), Cicada (@CicadaNCR), Steven Pineda (@steven2308), Stevan Bogosavljevic (@stevyhacker), Jan Turk (@ThunderDeliverer)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IERC57730x06b4329a

Functions this standard introduces (13)

0xfc3517c8acceptAsset(uint256,uint256,uint64)
0x5ea72f36approveForAssets(address,uint256)
0x5e94354agetActiveAssetPriorities(uint256)view
0x7280281egetActiveAssets(uint256)view
0xe467a48fgetApprovedForAssets(uint256)view
0x5e2e3292getAssetMetadata(uint256,uint64)view
0xdf6f556bgetAssetReplacements(uint256,uint64)view
0x51532e5agetPendingAssets(uint256)view
0x22e6d160isApprovedForAllForAssets(address,address)view
0xe7de4de4rejectAllAssets(uint256,uint256)
0x22f6da9crejectAsset(uint256,uint256,uint64)
0x8507dc28setApprovalForAllForAssets(address,bool)
0xde8e602csetPriority(uint256,uint64[])

Inherited (1)

0x01ffc9a7supportsInterface(bytes4)ERC-165

Events (7)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x3cd061096eaf881067d936308fbd8b81d060c45ab2ec910c02b953162befc109AssetSet(uint64)
0x4a85a0221f784dbe75db7c29c422f474c15bde9211a98e50a30018fa8dfa937bAssetAddedToTokens(uint256[],uint64,uint64)
0x3f2709a99f6c06b4e57bbb38eb0134332f96f51a3da314f41a515adbb28b17ccAssetAccepted(uint256,uint64,uint64)
0x1010837a46db9510cad56c9b63e97183557a136e9d4ddbec309ce52c99afb124AssetRejected(uint256,uint64)
0xf0bfd70b0068f973d58178846ca67112671ec45e060838f7de5662036bcf8017AssetPrioritySet(uint256)
0xb90cc0d925ac3511ab6af2d7ca73ffcf7ec4bd871fff36b958ecf440079c463eApprovalForAssets(address,address,uint256)
0x0cff4fcf777050010027190b8061fd8bfd1de16d81b1f94e9752df1427a26235ApprovalForAllForAssets(address,address,bool)

Depends on (2)

Proposals this one names in its requires field.

Built on by (1)

Later proposals that name this one in their requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion