EeseeAssetHubCCIP
Last updated
Last updated
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.
Name | Type | Description |
---|---|---|
Builds and returns tokenId's token URI.
Allows calculating token IDs before wrapping.
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
Call any contract's function.
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.
_See {IERC1155-balanceOf}.
Requirements:
account
cannot be the zero address._
_See {IERC1155-balanceOfBatch}.
Requirements:
accounts
and ids
must have the same length._
See {IERC1155-setApprovalForAll}.
See {IERC1155-isApprovedForAll}.
See {IERC1155-safeTransferFrom}.
See {IERC1155-safeBatchTransferFrom}.
Emitted when value
tokens of token type id
are transferred from from
to to
by operator
.
Equivalent to multiple {TransferSingle} events, where operator
, from
and to
are the same for all transfers.
Emitted when account
grants or revokes permission to operator
to transfer their tokens, according to approved
.
_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}._
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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.
tokenId
uint256
- Token ID to check.
[0]
string
string Token URI.
assetHashWithSource
struct AssetHashWithSource
- Asset hash together with it's source.
[0]
uint256
uint256 - Calculated token Id for wrapped asset.
message
struct Client.Any2EVMMessage
CCIP Message
calls
struct Call[]
- Stuct describing the call.