ZetaInterfaces
Git Source (opens in a new tab)
Structs
SendInput
Use SendInput to interact with the Connector: connector.send(SendInput)
struct SendInput {
uint256 destinationChainId;
bytes destinationAddress;
uint256 destinationGasLimit;
bytes message;
uint256 zetaValueAndGas;
bytes zetaParams;
}
ZetaMessage
Our Connector calls onZetaMessage with this struct as argument
struct ZetaMessage {
bytes zetaTxSenderAddress;
uint256 sourceChainId;
address destinationAddress;
uint256 zetaValue;
bytes message;
}
ZetaRevert
Our Connector calls onZetaRevert with this struct as argument
struct ZetaRevert {
address zetaTxSenderAddress;
uint256 sourceChainId;
bytes destinationAddress;
uint256 destinationChainId;
uint256 remainingZetaValue;
bytes message;
}