Token Support Facet

The Token Support Facet handles permits for ERC-20 and ERC-721 tokens and transfers for ERC-721 and ERC-1155 tokens.

Call Functions

function permitERC20(
    IERC20Permit token,
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
) public payable;

permitERC20 is a wrapper function for permit of ERC20Permit token.

function transferERC721(
    IERC721 token,
    address to,
    uint256 id
) external payable;

Execute an ERC-721 token transfer.

function permitERC721(
    IERC4494 token,
    address spender,
    uint256 tokenId,
    uint256 deadline,
    bytes memory sig
) external payable;

Execute a permit for an ERC-721 token.

function transferERC1155(
    IERC1155 token,
    address to,
    uint256 id,
    uint256 value
) external payable;

Execute an ERC-1155 token transfer of a single ID.

function batchTransferERC1155(
    IERC1155 token,
    address to,
    uint256[] calldata ids,
    uint256[] calldata values
) external payable;

Execute an ERC-1155 token transfer of multiple IDs.

View Functions

None.

Events

None.

Last updated