wormhole/proto/agent/v1/service.proto

33 lines
532 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package agent.v1;
2020-08-21 11:49:33 -07:00
// 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 {
bytes vaa = 1;
bool skip_preflight = 2;
}
message SubmitVAAResponse {
string signature = 1;
}
message GetBalanceRequest{
}
message GetBalanceResponse{
uint64 balance = 1;
}