EeseeAssetSpokeAxelar

EeseeAssetSpokeAxelar

Inherited from AxelarCallerEeseeMessageInterface

Inherited from EeseeAssetSpokeBase

wrap

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

stuckAssetHash

bytes32

- Hash of the asset that got stuck.

recipient

address

- Address to transfer asset to.

Return Values

Name
Type
Description

asset

struct Asset

- Asset sent to {recipient}.

getTokenIdL2

Allows calculating token ID on L2 chain before wrapping.

Parameters

Name
Type
Description

asset

struct Asset

- Asset to calculate token Id for.

Return Values

Name
Type
Description

[0]

uint256

uint256 - Calculated token Id for wrapped asset on L2 chain.

getTokenIdL2

Allows calculating token ID on L2 chain before wrapping.

Parameters

Name
Type
Description

assetHash

bytes32

- Asset hash to calculate token Id for.

Return Values

Name
Type
Description

[0]

uint256

uint256 - Calculated token Id for wrapped asset on L2 chain.

getAssetHash

Calculates asset hash.

Parameters

Name
Type
Description

asset

struct Asset

- Asset to calculate asset hash for.

_transferAssetTo

Stuck

Unstuck

Inherited from AxelarCaller

execute

Inherited from ICallerBase

CrosschainSend

CrosschainReceive

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 ERC1155Receiver

supportsInterface

See {IERC165-supportsInterface}.

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