52 lines
946 B
Protocol Buffer
52 lines
946 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package agent.v1;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
// TODO: documentation
|
|
|
|
option go_package = "github.com/certusone/wormhole/bridge/pkg/proto/agent/v1;agentv1";
|
|
|
|
service Agent {
|
|
rpc SubmitVAA (SubmitVAARequest) returns (SubmitVAAResponse);
|
|
rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse);
|
|
}
|
|
|
|
message Empty {
|
|
}
|
|
|
|
message SubmitVAARequest {
|
|
VAA vaa = 1;
|
|
bool skip_preflight = 2;
|
|
}
|
|
|
|
message VAA {
|
|
uint32 Version = 1;
|
|
google.protobuf.Timestamp Timestamp = 2;
|
|
uint32 Nonce = 3;
|
|
uint32 EmitterChain = 4;
|
|
bytes EmitterAddress = 5;
|
|
uint64 Sequence = 6;
|
|
uint32 ConsistencyLevel = 7;
|
|
bytes Payload = 8;
|
|
uint32 GuardianSetIndex = 9;
|
|
repeated Signature Signatures = 10;
|
|
}
|
|
|
|
message Signature{
|
|
uint32 GuardianIndex = 1;
|
|
bytes Signature = 2;
|
|
}
|
|
|
|
message SubmitVAAResponse {
|
|
string signature = 1;
|
|
}
|
|
|
|
message GetBalanceRequest{
|
|
|
|
}
|
|
|
|
message GetBalanceResponse{
|
|
uint64 balance = 1;
|
|
}
|