61 lines
1.1 KiB
Protocol Buffer
61 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package agent.v1;
|
|
|
|
option go_package = "proto/agent/v1;agentv1";
|
|
|
|
service Agent {
|
|
rpc SubmitVAA (SubmitVAARequest) returns (SubmitVAAResponse);
|
|
rpc WatchLockups (WatchLockupsRequest) returns (stream LockupEvent);
|
|
}
|
|
|
|
message Empty {
|
|
}
|
|
|
|
message SubmitVAARequest {
|
|
bytes vaa = 1;
|
|
}
|
|
|
|
message SubmitVAAResponse {
|
|
string signature = 1;
|
|
}
|
|
|
|
message WatchLockupsRequest {
|
|
|
|
}
|
|
|
|
message LockupEvent {
|
|
uint64 slot = 1;
|
|
string lockupAddress = 2;
|
|
uint64 time = 3;
|
|
oneof event {
|
|
LockupEventNew new = 4;
|
|
LockupEventVAAPosted vaaPosted = 5;
|
|
Empty empty = 6;
|
|
}
|
|
}
|
|
|
|
message LockupEventNew {
|
|
uint32 nonce = 1;
|
|
uint32 sourceChain = 2;
|
|
uint32 targetChain = 3;
|
|
bytes sourceAddress = 4;
|
|
bytes targetAddress = 5;
|
|
uint32 tokenChain = 6;
|
|
bytes tokenAddress = 7;
|
|
bytes amount = 8;
|
|
}
|
|
|
|
message LockupEventVAAPosted {
|
|
uint32 nonce = 1;
|
|
uint32 sourceChain = 2;
|
|
uint32 targetChain = 3;
|
|
bytes sourceAddress = 4;
|
|
bytes targetAddress = 5;
|
|
uint32 tokenChain = 6;
|
|
bytes tokenAddress = 7;
|
|
bytes amount = 8;
|
|
|
|
bytes vaa = 9;
|
|
}
|