Smart Contracts
Contract interface, data types, events, error codes, deployments, and coverage. For the REST API, see the API Reference. Compiler: Solidity 0.8.19 (optimizer enabled, 200 runs). License: BUSL-1.1
Data types
struct OrderRequest {
address owner; // Order owner (the user); need not equal msg.sender
address bidToken; // Token being sold (source chain)
uint256 bidTokenAmount; // Amount of bidToken to sell
address askToken; // Token being bought (destination chain)
uint256 askTokenAmount; // Minimum acceptable output (slippage floor)
address destinationReceiver; // Recipient on the destination chain
uint256 destinationChainId; // Target chain ID
uint256 deadline; // Unix expiry (0 = no deadline)
bytes data; // Arbitrary pass-through data
}
struct Order {
address owner;
uint96 nonce; // Auto-incremented, set by the contract
address bidToken;
uint256 bidTokenAmount; // Actual amount escrowed (defensive accounting; current stablecoins are not fee-on-transfer)
uint256 sourceChainId; // Set by the contract
address askToken;
uint256 askTokenAmount; // Minimum acceptable output (slippage floor)
address destinationReceiver;
uint256 destinationChainId;
uint256 deadline;
bytes data;
}
enum OrderStatus {
Nonexistent,
Pending,
Filled,
Cancelled
}Status
Terminal?
Integrator-relevant functions
Events
Event
Indexed
Emitted when
Error codes
Error
Meaning
Deployments
Coverage
Audit
Last updated

