EeseeAssetSpokeCCIP
EeseeAssetSpokeCCIP
supportsInterface
Inherited from CCIPCallerEeseeMessageInterface
Inherited from EeseeAssetSpokeBase
wrap
Wraps specified assets and sends them to {recipient} in the form of ERC1155 tokens.
Parameters
assets
struct Asset[]
- Assets to wrap.
crosschainCalls
struct Call[]
- Calls to make on destination chain.
fallbackRecipient
address
- Address to transfer leftover tokens after crosschainCalls.
additionalData
bytes
- Additional information to pass to crosschain protocol.
Return Values
gasPaid
uint256
- Gas paid for the crosschain call.
unstuck
_Reclaim assets that might have been stuck after unwrap. Emits Unstuck event. Note: Must be called from asset recipient address that had their asset stuck.
Parameters
stuckAssetHash
bytes32
- Hash of the asset that got stuck.
recipient
address
- Address to transfer asset to.
Return Values
asset
struct Asset
- Asset sent to {recipient}.
getTokenIdL2
Allows calculating token ID on L2 chain before wrapping.
Parameters
asset
struct Asset
- Asset to calculate token Id for.
Return Values
[0]
uint256
uint256 - Calculated token Id for wrapped asset on L2 chain.
getTokenIdL2
Allows calculating token ID on L2 chain before wrapping.
Parameters
assetHash
bytes32
- Asset hash to calculate token Id for.
Return Values
[0]
uint256
uint256 - Calculated token Id for wrapped asset on L2 chain.
getAssetHash
Calculates asset hash.
Parameters
asset
struct Asset
- Asset to calculate asset hash for.
_transferAssetTo
Stuck
Unstuck
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
message
struct Client.Any2EVMMessage
CCIP Message
Inherited from EeseePausable
pause
Called by the PAUSER_ROLE to pause, triggers stopped state.
unpause
Called by the PAUSER_ROLE to unpause, returns to normal state.
Inherited from EeseeRoleHandler
Inherited from Pausable
paused
Returns true if the contract is paused, and false otherwise.
Paused
Emitted when the pause is triggered by account
.
Unpaused
Emitted when the pause is lifted by account
.
Inherited from ERC1155Holder
onERC1155Received
onERC1155BatchReceived
Inherited from ICallerBase
CrosschainSend
CrosschainReceive
Inherited from ERC721Holder
onERC721Received
_See {IERC721Receiver-onERC721Received}.
Always returns IERC721Receiver.onERC721Received.selector
._
Inherited from ERC2771Context
isTrustedForwarder
Inherited from IEeseeAssetSpoke
eeseeAssetHub
assetsStorage
Wrap
Unwrap
Last updated