EeseeAssetHubCCIP

EeseeAssetHubCCIP

supportsInterface

function supportsInterface(bytes4 interfaceId) public view returns (bool)

Inherited from CCIPCallerEeseeMessageInterface

Inherited from EeseeAssetHubBase

unwrap

function unwrap(uint256[] tokenIds, uint256[] amounts, address recipient, bytes additionalData) external payable

Unwraps specified tokens to their source chain. Note: The caller must either own those tokens, or have them transfered to this contract beforehand. !WARNING! Never send any tokens to this contract from an EOA, or by contract in a separate transaction or they will be lost. Only send funds to this contract if you spend them by calling unwrap function in the same transaction.

Parameters

Name
Type
Description

tokenIds

uint256[]

- Token IDs to unwrap. All tokens must have the same {source}.

amounts

uint256[]

- Amount of tokens to unwrap.

recipient

address

- Address to unwrap and send tokens to.

additionalData

bytes

- Additional information to pass to crosschain protocol.

uri

Builds and returns tokenId's token URI.

Parameters

Name
Type
Description

tokenId

uint256

- Token ID to check.

Return Values

Name
Type
Description

[0]

string

string Token URI.

getTokenId

Allows calculating token IDs before wrapping.

Parameters

Name
Type
Description

assetHashWithSource

struct AssetHashWithSource

- Asset hash together with it's source.

Return Values

Name
Type
Description

[0]

uint256

uint256 - Calculated token Id for wrapped asset.

_setRoyalty

Inherited from CCIPCaller

ccipReceive

Called by the Router to deliver a message. If this reverts, any token transfers also revert. The message will move to a FAILED state and become available for manual execution.

Note ensure you check the msg.sender is the OffRampRouter

Parameters

Name
Type
Description

message

struct Client.Any2EVMMessage

CCIP Message

Inherited from MulticallExternal

multicall

Call any contract's function.

Parameters

Name
Type
Description

calls

struct Call[]

- Stuct describing the call.

AddToBlacklist

RemoveFromBlacklist

MulticallFailed

Inherited from ERC2771Context

isTrustedForwarder

Inherited from ERC1155Holder

onERC1155Received

onERC1155BatchReceived

Inherited from ERC2981

royaltyInfo

Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange.

Inherited from ERC1155

balanceOf

_See {IERC1155-balanceOf}.

Requirements:

  • account cannot be the zero address._

balanceOfBatch

_See {IERC1155-balanceOfBatch}.

Requirements:

  • accounts and ids must have the same length._

setApprovalForAll

See {IERC1155-setApprovalForAll}.

isApprovedForAll

See {IERC1155-isApprovedForAll}.

safeTransferFrom

See {IERC1155-safeTransferFrom}.

safeBatchTransferFrom

See {IERC1155-safeBatchTransferFrom}.

Inherited from IERC1155

TransferSingle

Emitted when value tokens of token type id are transferred from from to to by operator.

TransferBatch

Equivalent to multiple {TransferSingle} events, where operator, from and to are the same for all transfers.

ApprovalForAll

Emitted when account grants or revokes permission to operator to transfer their tokens, according to approved.

URI

_Emitted when the URI for token type id changes to value, if it is a non-programmatic URI.

If an {URI} event was emitted for id, the standard https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that value will equal the value returned by {IERC1155MetadataURI-uri}._

Inherited from ICallerBase

CrosschainSend

CrosschainReceive

Inherited from IEeseeAssetHub

assetHashesWithSources

Wrap

Unwrap

Last updated