An overview of the data structures used in the Eco Routes system.
Call
is a single contract call with encoded function data. It is used to execute arbitrary function calls on the destination chain and allows for value to be sent with the call.
TokenAmount
is a pair of a token address and an amount. It is used to specify token rewards on the origin chain and the tokens required for execution of calls on the destination chain.
Route
is a collection of calls and token amounts that make up a complete cross-chain intent. It is used to specify the routing and execution instructions for a cross-chain message.
Source
and Destination
are the chain IDs of the origin and destination chains, respectively.Inbox
is the address of the inbox contract on the destination chain.Salt
is a unique identifier provided by the intent creator, used to prevent duplicates.Tokens
is an array of TokenAmounts
that specify the tokens required for execution of calls on the destination chain.Calls
is an array of Calls
that specify the function calls to execute on the destination chain.Reward
is a collection of tokens and a native value that make up a reward for the solver.
Creator
is the address of the creator of the intent.Prover
is the address of the prover that is responsible for validating the intent on the origin chain.Deadline
is the unix timestamp after which the intent can no longer be executed.NativeValue
is the amount of native tokens offered as reward.Tokens
is an array of TokenAmounts
that specify the tokens offered as additional rewards.Intent
is a Route
and a Reward
. The Route
specifies the routing and execution instructions for a cross-chain message, and the Reward
specifies the reward for the solver.