EeseeAssetSpokeAxelar
Inherited from AxelarCallerEeseeMessageInterface
Inherited from EeseeAssetSpokeBase
wrap
Copy function wrap(struct Asset[] assets, struct Call[] crosschainCalls, address fallbackRecipient, bytes additionalData) external payable returns (uint256 gasPaid)
Wraps specified assets and sends them to {recipient} in the form of ERC1155 tokens.
Parameters
Return Values
unstuck
Copy function unstuck ( bytes32 stuckAssetHash , address recipient) external returns (struct Asset asset)
_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
Return Values
getTokenIdL2
Copy function getTokenIdL2 (struct Asset asset) external view returns ( uint256 )
Allows calculating token ID on L2 chain before wrapping.
Parameters
Return Values
getTokenIdL2
Copy function getTokenIdL2 ( bytes32 assetHash) public view returns ( uint256 )
Allows calculating token ID on L2 chain before wrapping.
Parameters
Return Values
getAssetHash
Copy function getAssetHash (struct Asset asset) public pure returns ( bytes32 )
Calculates asset hash.
Parameters
_transferAssetTo
Copy function _transferAssetTo ( bytes32 assetHash , uint256 amount , address to) external returns (struct Asset asset)
Stuck
Copy event Stuck (struct Asset asset, bytes32 assetHash, address recipient, bytes err)
Unstuck
Copy event Unstuck (struct Asset asset, bytes32 assetHash, address sender, address recipient)
Inherited from AxelarCaller
execute
Copy function execute ( bytes32 commandId , string sourceChain , string sourceAddress , bytes payload) external
Inherited from ICallerBase
CrosschainSend
Copy event CrosschainSend ( bytes32 projectIdentifier, struct AddressWithChain destination, bytes additionalData)
CrosschainReceive
Copy event CrosschainReceive ( bytes32 projectIdentifier, struct AddressWithChain source, bytes additionalData)
Inherited from EeseePausable
pause
Copy function pause () external virtual
Called by the PAUSER_ROLE to pause, triggers stopped state.
unpause
Copy function unpause () external virtual
Called by the PAUSER_ROLE to unpause, returns to normal state.
Inherited from EeseeRoleHandler
Inherited from Pausable
paused
Copy function paused () public view virtual returns ( bool )
Returns true if the contract is paused, and false otherwise.
Paused
Copy event Paused ( address account)
Emitted when the pause is triggered by account
.
Unpaused
Copy event Unpaused ( address account)
Emitted when the pause is lifted by account
.
Inherited from ERC1155Holder
onERC1155Received
Copy function onERC1155Received ( address , address , uint256 , uint256 , bytes ) public virtual returns ( bytes4 )
onERC1155BatchReceived
Copy function onERC1155BatchReceived ( address , address , uint256 [] , uint256 [] , bytes ) public virtual returns ( bytes4 )
Inherited from ERC1155Receiver
supportsInterface
Copy function supportsInterface ( bytes4 interfaceId) public view virtual returns ( bool )
See {IERC165-supportsInterface}.
Inherited from ERC721Holder
onERC721Received
Copy function onERC721Received ( address , address , uint256 , bytes ) public virtual returns ( bytes4 )
_See {IERC721Receiver-onERC721Received}.
Always returns IERC721Receiver.onERC721Received.selector
._
Inherited from ERC2771Context
isTrustedForwarder
Copy function isTrustedForwarder ( address forwarder) public view virtual returns ( bool )
Inherited from IEeseeAssetSpoke
eeseeAssetHub
Copy function eeseeAssetHub () external view returns ( bytes chainSelector , address _address )
assetsStorage
Copy function assetsStorage(bytes32) external view returns (address token, uint256 tokenID, uint256 amount, enum AssetType assetType, bytes data)
Wrap
Copy event Wrap (struct Asset asset, bytes32 assetHash, address sender)
Unwrap
Copy event Unwrap (struct Asset asset, bytes32 assetHash, address recipient)