IEverclearSpoke

Git Source

Functions

newIntent

Creates a new intent

function newIntent(
    uint32[] memory _destinations,
    address _receiver,
    address _inputAsset,
    address _outputAsset,
    uint256 _amount,
    uint24 _maxFee,
    uint48 _ttl,
    bytes calldata _data
) external returns (bytes32 _intentId, Intent memory _intent);

Parameters

NameTypeDescription
_destinationsuint32[]The possible destination chains of the intent
_receiveraddressThe destinantion address of the intent
_inputAssetaddressThe asset address on origin
_outputAssetaddressThe asset address on destination
_amountuint256The amount of the asset
_maxFeeuint24The maximum fee that can be taken by solvers
_ttluint48The time to live of the intent
_databytesThe data of the intent

Returns

NameTypeDescription
_intentIdbytes32The ID of the intent
_intentIntentThe intent object

Structs

Intent

struct Intent {
    uint256 val;
}