service.proto 532 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. package agent.v1;
  3. // TODO: documentation
  4. option go_package = "github.com/certusone/wormhole/bridge/pkg/proto/agent/v1;agentv1";
  5. service Agent {
  6. rpc SubmitVAA (SubmitVAARequest) returns (SubmitVAAResponse);
  7. rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse);
  8. }
  9. message Empty {
  10. }
  11. message SubmitVAARequest {
  12. bytes vaa = 1;
  13. bool skip_preflight = 2;
  14. }
  15. message SubmitVAAResponse {
  16. string signature = 1;
  17. }
  18. message GetBalanceRequest{
  19. }
  20. message GetBalanceResponse{
  21. uint64 balance = 1;
  22. }