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
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
function uri(uint256 tokenId) public view returns (string)
Builds and returns tokenId's token URI.
Parameters
tokenId
uint256
- Token ID to check.
Return Values
[0]
string
string Token URI.
getTokenId
function getTokenId(struct AssetHashWithSource assetHashWithSource) public pure returns (uint256)
Allows calculating token IDs before wrapping.
Parameters
assetHashWithSource
struct AssetHashWithSource
- Asset hash together with it's source.
Return Values
[0]
uint256
uint256 - Calculated token Id for wrapped asset.
_setRoyalty
function _setRoyalty(uint256 tokenId, bytes assetData) external
Inherited from CCIPCaller
ccipReceive
function ccipReceive(struct Client.Any2EVMMessage message) external virtual
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
message
struct Client.Any2EVMMessage
CCIP Message
Inherited from MulticallExternal
multicall
function multicall(struct Call[] calls) external
Call any contract's function.
Parameters
calls
struct Call[]
- Stuct describing the call.
AddToBlacklist
event AddToBlacklist(address target, bytes4 functionSelector)
RemoveFromBlacklist
event RemoveFromBlacklist(address target, bytes4 functionSelector)
MulticallFailed
event MulticallFailed(bytes err)
Inherited from ERC2771Context
isTrustedForwarder
function isTrustedForwarder(address forwarder) public view virtual returns (bool)
Inherited from ERC1155Holder
onERC1155Received
function onERC1155Received(address, address, uint256, uint256, bytes) public virtual returns (bytes4)
onERC1155BatchReceived
function onERC1155BatchReceived(address, address, uint256[], uint256[], bytes) public virtual returns (bytes4)
Inherited from ERC2981
royaltyInfo
function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256)
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
function balanceOf(address account, uint256 id) public view virtual returns (uint256)
_See {IERC1155-balanceOf}.
Requirements:
account
cannot be the zero address._
balanceOfBatch
function balanceOfBatch(address[] accounts, uint256[] ids) public view virtual returns (uint256[])
_See {IERC1155-balanceOfBatch}.
Requirements:
accounts
andids
must have the same length._
setApprovalForAll
function setApprovalForAll(address operator, bool approved) public virtual
See {IERC1155-setApprovalForAll}.
isApprovedForAll
function isApprovedForAll(address account, address operator) public view virtual returns (bool)
See {IERC1155-isApprovedForAll}.
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) public virtual
See {IERC1155-safeTransferFrom}.
safeBatchTransferFrom
function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) public virtual
See {IERC1155-safeBatchTransferFrom}.
Inherited from IERC1155
TransferSingle
event TransferSingle(address operator, address from, address to, uint256 id, uint256 value)
Emitted when value
tokens of token type id
are transferred from from
to to
by operator
.
TransferBatch
event TransferBatch(address operator, address from, address to, uint256[] ids, uint256[] values)
Equivalent to multiple {TransferSingle} events, where operator
, from
and to
are the same for all transfers.
ApprovalForAll
event ApprovalForAll(address account, address operator, bool approved)
Emitted when account
grants or revokes permission to operator
to transfer their tokens, according to approved
.
URI
event URI(string value, uint256 id)
_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
event CrosschainSend(bytes32 projectIdentifier, struct AddressWithChain destination, bytes additionalData)
CrosschainReceive
event CrosschainReceive(bytes32 projectIdentifier, struct AddressWithChain source, bytes additionalData)
Inherited from IEeseeAssetHub
assetHashesWithSources
function assetHashesWithSources(uint256) external view returns (struct AddressWithChain source, bytes32 assetHash)
Wrap
event Wrap(uint256 tokenId, uint256 amount, struct AssetHashWithSource asset)
Unwrap
event Unwrap(uint256 tokenId, uint256 amount, struct AssetHashWithSource asset, address sender, address recipient)
Last updated