IStargate
Git Source
Functions
token
function token() external view returns (address);
sendToken
function sendToken(
SendParam calldata _sendParam,
MessagingFee calldata _fee,
address _refundAddress
)
external
payable
returns (MessagingReceipt memory msgReceipt, OFTReceipt memory oftReceipt, Ticket memory ticket);
send
function send(
SendParam calldata _sendParam,
MessagingFee calldata _fee,
address _refundAddress
)
external
payable
returns (MessagingReceipt memory, OFTReceipt memory);
quoteSend
function quoteSend(SendParam calldata _sendParam, bool _payInLzToken) external view returns (MessagingFee memory);
quoteOFT
function quoteOFT(SendParam calldata _sendParam)
external
view
returns (OFTLimit memory, OFTFeeDetail[] memory oftFeeDetails, OFTReceipt memory);
Structs
SendParam
struct SendParam {
uint32 dstEid;
bytes32 to;
uint256 amountLD;
uint256 minAmountLD;
bytes extraOptions;
bytes composeMsg;
bytes oftCmd;
}
OFTReceipt
struct OFTReceipt {
uint256 amountSentLD;
uint256 amountReceivedLD;
}
MessagingFee
struct MessagingFee {
uint256 nativeFee;
uint256 lzTokenFee;
}
MessagingReceipt
struct MessagingReceipt {
bytes32 guid;
uint64 nonce;
MessagingFee fee;
}
OFTLimit
struct OFTLimit {
uint256 minAmountLD;
uint256 maxAmountLD;
}
OFTFeeDetail
struct OFTFeeDetail {
int256 amount;
string description;
}
Ticket
struct Ticket {
uint72 ticketId;
bytes passengerBytes;
}