2020-08-08 12:32:33 -07:00
|
|
|
syntax = "proto3";
|
2020-08-15 13:14:24 -07:00
|
|
|
|
|
|
|
package agent.v1;
|
|
|
|
|
2020-08-21 11:49:33 -07:00
|
|
|
// TODO: documentation
|
|
|
|
|
2020-08-15 13:14:24 -07:00
|
|
|
option go_package = "proto/agent/v1;agentv1";
|
2020-08-08 12:32:33 -07:00
|
|
|
|
|
|
|
service Agent {
|
2020-11-13 05:14:56 -08:00
|
|
|
rpc SubmitVAA (SubmitVAARequest) returns (SubmitVAAResponse);
|
|
|
|
rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse);
|
2020-08-08 12:32:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message Empty {
|
|
|
|
}
|
|
|
|
|
|
|
|
message SubmitVAARequest {
|
2020-11-13 05:14:56 -08:00
|
|
|
bytes vaa = 1;
|
2021-03-19 08:58:01 -07:00
|
|
|
bool skip_preflight = 2;
|
2020-08-08 12:32:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message SubmitVAAResponse {
|
2020-11-13 05:14:56 -08:00
|
|
|
string signature = 1;
|
2020-08-08 12:32:33 -07:00
|
|
|
}
|
|
|
|
|
2020-11-13 05:14:56 -08:00
|
|
|
message GetBalanceRequest{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetBalanceResponse{
|
|
|
|
uint64 balance = 1;
|
2020-08-08 12:32:33 -07:00
|
|
|
}
|