From 67c81204f6438b86fdc78743e5c0bdeb448bc014 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 25 May 2021 16:57:36 +0200 Subject: [PATCH 1/4] looprpc: extract REST annotations into yaml --- looprpc/client.pb.go | 325 ++++++++++++++++------------------ looprpc/client.proto | 79 ++------- looprpc/gen_protos.sh | 6 +- looprpc/rest-annotations.yaml | 33 ++++ looprpc/server.pb.go | 216 +++++++++++----------- looprpc/server.proto | 2 - 6 files changed, 313 insertions(+), 348 deletions(-) create mode 100644 looprpc/rest-annotations.yaml diff --git a/looprpc/client.pb.go b/looprpc/client.pb.go index 3029538..bd917cb 100644 --- a/looprpc/client.pb.go +++ b/looprpc/client.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -2247,173 +2246,163 @@ func init() { func init() { proto.RegisterFile("client.proto", fileDescriptor_014de31d7ac8c57c) } var fileDescriptor_014de31d7ac8c57c = []byte{ - // 2653 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcd, 0x6e, 0x23, 0xc7, - 0x11, 0x5e, 0xfe, 0x93, 0xc5, 0x21, 0x39, 0x6a, 0xed, 0x4a, 0x14, 0x2d, 0x7b, 0xb5, 0x63, 0x6f, - 0x2c, 0xcb, 0xf6, 0x2a, 0x96, 0x4f, 0x36, 0xec, 0x00, 0x5c, 0x6a, 0xb4, 0xe2, 0x5a, 0x22, 0xe9, - 0x21, 0xb5, 0xc6, 0x06, 0x01, 0x06, 0x2d, 0xb2, 0x25, 0x0d, 0xcc, 0xf9, 0xd9, 0x99, 0xe6, 0xae, - 0x04, 0x23, 0x09, 0x10, 0xc0, 0x4f, 0x90, 0x37, 0xc8, 0x21, 0xb7, 0x00, 0x39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x5e, 0x01, - 0x1f, 0x46, 0xcb, 0x31, 0xc7, 0x53, 0xfe, 0xda, 0x9c, 0xb0, 0x29, 0xa7, 0x18, 0xee, 0x82, 0xa1, - 0xd8, 0x96, 0xd3, 0x99, 0xf2, 0xd7, 0x87, 0x82, 0x16, 0x3d, 0x9f, 0x09, 0x54, 0x25, 0x44, 0xd1, - 0xeb, 0x18, 0xf5, 0x03, 0xe6, 0xfc, 0x26, 0x03, 0xca, 0xd7, 0x33, 0x97, 0xb3, 0xd5, 0x4f, 0x02, - 0x26, 0xde, 0xbc, 0x0f, 0x67, 0x51, 0x07, 0x8c, 0xe7, 0x3d, 0xf8, 0x56, 0x4b, 0xcf, 0x2d, 0x69, - 0xe9, 0x77, 0x3e, 0x76, 0xf9, 0x3b, 0x1f, 0x3b, 0xed, 0xf7, 0x19, 0x11, 0xf5, 0xf0, 0x9a, 0xa1, - 0xcb, 0x77, 0x40, 0x89, 0x1e, 0x29, 0x33, 0xa0, 0xd1, 0x85, 0x21, 0x90, 0xaf, 0xd4, 0x90, 0xe2, - 0x94, 0x83, 0x05, 0x86, 0x1a, 0x83, 0xab, 0x18, 0x19, 0x4e, 0x39, 0x82, 0x37, 0x90, 0xac, 0xf0, - 0xc0, 0xdb, 0x00, 0x09, 0x5f, 0x16, 0xd0, 0xce, 0xca, 0x38, 0x76, 0xf7, 0x82, 0x1f, 0x8a, 0x8b, - 0x7e, 0x88, 0x7d, 0x9c, 0x57, 0x0b, 0xda, 0xbf, 0x64, 0x9a, 0xfc, 0xb7, 0x77, 0x7e, 0x0f, 0xea, - 0xf3, 0x69, 0x08, 0x31, 0xf2, 0x01, 0x56, 0xbc, 0x68, 0x1c, 0x12, 0xa8, 0x0f, 0xc3, 0x46, 0x23, - 0x07, 0x93, 0xb4, 0x5d, 0x0d, 0xc1, 0x19, 0x0a, 0x46, 0x28, 0x12, 0x07, 0x18, 0xe1, 0x78, 0x7a, - 0x63, 0x33, 0x87, 0x9b, 0x38, 0x0d, 0xca, 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x91, 0xee, 0xce, 0xf8, 0x3e, 0x47, 0x69, 0xe7, 0xb1, 0x74, 0x5c, 0xa7, 0x12, 0xd2, - 0x93, 0x9b, 0x6b, 0x5a, 0x7a, 0x6a, 0xf1, 0xd2, 0x76, 0x50, 0x7a, 0x8b, 0x34, 0x53, 0xd2, 0x5f, - 0x09, 0xcc, 0xfe, 0x77, 0xd4, 0xe6, 0xc2, 0x82, 0xba, 0x18, 0x96, 0x31, 0xe4, 0x77, 0xda, 0x30, - 0xf7, 0xda, 0xc2, 0x77, 0x08, 0x6d, 0x0b, 0x95, 0xac, 0x93, 0xb5, 0x44, 0x2a, 0xc4, 0x16, 0xcc, - 0xa5, 0xdf, 0x69, 0x43, 0x52, 0x7a, 0xda, 0x84, 0x87, 0x28, 0x7d, 0x8b, 0x6c, 0x26, 0xa5, 0x27, - 0x2d, 0x78, 0x09, 0x35, 0xa1, 0x23, 0x5a, 0x97, 0x82, 0x44, 0x26, 0xa7, 0x76, 0xb2, 0xd6, 0xe6, - 0x2d, 0x7a, 0xba, 0x3a, 0x48, 0x03, 0x55, 0x04, 0x94, 0xef, 0xcb, 0x3d, 0x8c, 0x70, 0x20, 0xb7, - 0x37, 0x09, 0xa2, 0xc5, 0x72, 0x56, 0xae, 0x19, 0xad, 0x3b, 0x67, 0x0f, 0x6d, 0x1b, 0x15, 0x6e, - 0x90, 0xfb, 0xa8, 0x30, 0x02, 0xec, 0x7b, 0x52, 0xfe, 0x2f, 0x80, 0x0c, 0xef, 0xd2, 0xba, 0x72, - 0x0a, 0x6a, 0xbd, 0x7b, 0x27, 0x26, 0xed, 0x50, 0x6d, 0xa9, 0x72, 0x51, 0xc2, 0x0c, 0x94, 0xe4, - 0x8c, 0x41, 0xe6, 0xb6, 0x2c, 0x19, 0x83, 0x5a, 0x6f, 0xaf, 0xe0, 0x86, 0xda, 0x9a, 0xa8, 0x8d, - 0x10, 0x55, 0x68, 0x13, 0x93, 0xef, 0x7e, 0x20, 0x61, 0xe7, 0x45, 0xfc, 0x67, 0xce, 0xa7, 0xff, - 0x0e, 0x00, 0x00, 0xff, 0xff, 0x0e, 0xbd, 0x2a, 0x6e, 0x03, 0x1a, 0x00, 0x00, + // 2489 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x73, 0x1b, 0xc7, + 0xf1, 0x17, 0xde, 0x40, 0x63, 0x01, 0x2c, 0x87, 0x12, 0x05, 0xc2, 0xb2, 0x4d, 0xc1, 0xd6, 0xdf, + 0x34, 0x6d, 0xcb, 0xff, 0xd0, 0x87, 0x94, 0x5c, 0x76, 0xca, 0x20, 0xb8, 0x14, 0x57, 0x22, 0x01, + 0x78, 0xb1, 0x94, 0x4b, 0x87, 0xd4, 0xd6, 0x10, 0x18, 0x10, 0x5b, 0xc6, 0x3e, 0xb4, 0x3b, 0x90, + 0xc8, 0x53, 0x4e, 0xbe, 0xe4, 0x63, 0xe4, 0x90, 0x5b, 0xaa, 0x72, 0xc8, 0x2d, 0x5f, 0x21, 0xc7, + 0x7c, 0x80, 0x5c, 0x73, 0xc8, 0x29, 0x5f, 0x20, 0x35, 0x8f, 0x7d, 0x81, 0x00, 0x9d, 0x54, 0x2a, + 0x37, 0xa2, 0xfb, 0xd7, 0x3d, 0x3d, 0xdd, 0x3d, 0xfd, 0x58, 0x82, 0x32, 0x59, 0xd8, 0xc4, 0xa5, + 0x4f, 0xfd, 0xc0, 0xa3, 0x1e, 0xaa, 0x2c, 0x3c, 0xcf, 0x0f, 0xfc, 0x49, 0xf7, 0x0f, 0x45, 0x68, + 0x9e, 0x79, 0x9e, 0x3f, 0x5c, 0x52, 0x83, 0xbc, 0x59, 0x92, 0x90, 0x22, 0x15, 0x0a, 0xd8, 0xa1, + 0xed, 0xdc, 0x5e, 0x6e, 0xbf, 0x60, 0xb0, 0x3f, 0x11, 0x82, 0xe2, 0x94, 0x84, 0xb4, 0x9d, 0xdf, + 0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65, 0x40, 0xac, 0x80, 0xe0, 0xd0, 0x73, 0x79, 0x26, 0x37, 0x0f, 0x77, 0x62, 0x91, 0x13, 0xc1, + 0x36, 0x38, 0xd7, 0x68, 0xcc, 0xd2, 0x3f, 0xd1, 0x27, 0xd0, 0x92, 0xa1, 0x66, 0xef, 0x89, 0xda, + 0x4e, 0x54, 0x79, 0x9a, 0x09, 0xd9, 0xb4, 0x1d, 0x66, 0x91, 0xca, 0x93, 0x74, 0xe9, 0x4f, 0x31, + 0x25, 0x02, 0x29, 0xea, 0x4f, 0x93, 0xd1, 0x2f, 0x38, 0x99, 0x23, 0x57, 0x03, 0x5e, 0x59, 0x1f, + 0xf0, 0xf5, 0x01, 0x54, 0x36, 0x04, 0x70, 0x43, 0x7a, 0x34, 0x36, 0xa5, 0xc7, 0x87, 0x50, 0x9f, + 0x78, 0x21, 0xb5, 0x44, 0x7c, 0x79, 0x56, 0x17, 0x0c, 0x60, 0xa4, 0x31, 0xa7, 0xa0, 0xc7, 0xa0, + 0x70, 0x80, 0xe7, 0x4e, 0xe6, 0xd8, 0x76, 0x79, 0x91, 0x2a, 0x18, 0x5c, 0x68, 0x28, 0x48, 0xec, + 0xf1, 0x09, 0xc8, 0x6c, 0x26, 0x30, 0x20, 0xea, 0x2d, 0xc7, 0x48, 0x5a, 0xf2, 0xa4, 0x5a, 0xa9, + 0x27, 0xd5, 0x45, 0xa0, 0x9e, 0xd9, 0x21, 0x65, 0xd1, 0x0a, 0xa3, 0x54, 0xfa, 0x15, 0x6c, 0xa5, + 0x68, 0xf2, 0x31, 0x7d, 0x0a, 0x25, 0x56, 0x3d, 0xc2, 0x76, 0x6e, 0xaf, 0xb0, 0x5f, 0x3f, 0xdc, + 0xbe, 0x15, 0xe8, 0x65, 0x68, 0x08, 0x44, 0xf7, 0x31, 0xb4, 0x18, 0x51, 0x77, 0x67, 0x5e, 0x54, + 0x91, 0x9a, 0xf1, 0x53, 0x54, 0x58, 0xe2, 0x75, 0x9b, 0xa0, 0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0x52, 0xbb, 0xf3, 0x5a, 0x03, 0xd0, 0x77, 0xa0, + 0x48, 0xdf, 0xf0, 0x95, 0x15, 0x25, 0x17, 0x4c, 0xef, 0xd5, 0x9d, 0xc4, 0xb0, 0x5b, 0xcb, 0x6d, + 0xa2, 0x81, 0x6f, 0x33, 0x29, 0x0d, 0xe9, 0xc5, 0x31, 0xab, 0x21, 0xbb, 0xf7, 0xf4, 0xa0, 0xc9, + 0x26, 0x51, 0xee, 0xe8, 0x3b, 0xad, 0x48, 0xee, 0xb6, 0xba, 0xe4, 0xa7, 0x55, 0xdc, 0x69, 0x46, + 0x5a, 0x45, 0xd6, 0x8a, 0xef, 0xa0, 0xc1, 0x54, 0x44, 0xfb, 0x44, 0x98, 0xca, 0x81, 0xcc, 0xd2, + 0xd2, 0x79, 0x78, 0x8b, 0x2e, 0x35, 0xbc, 0x02, 0x74, 0x7b, 0xa2, 0x46, 0xdd, 0x18, 0xbe, 0x71, + 0xdc, 0xee, 0xdc, 0xd9, 0x83, 0xd1, 0xaf, 0x01, 0x8d, 0xef, 0xd2, 0xbb, 0xb1, 0xdf, 0x77, 0x3e, + 0xba, 0x13, 0x23, 0xcd, 0x7e, 0x09, 0x4a, 0xba, 0x59, 0xa2, 0xc4, 0x98, 0x35, 0xfd, 0xbc, 0xf3, + 0xfe, 0x06, 0xae, 0x50, 0x76, 0x59, 0xe6, 0xff, 0x84, 0xf8, 0xea, 0x5f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x9c, 0x3d, 0x34, 0xbe, 0x94, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/looprpc/client.proto b/looprpc/client.proto index 1c2f63b..6933408 100644 --- a/looprpc/client.proto +++ b/looprpc/client.proto @@ -1,7 +1,5 @@ syntax = "proto3"; -import "google/api/annotations.proto"; - package looprpc; /* @@ -15,12 +13,7 @@ service SwapClient { point onwards, progress can be tracked via the SwapStatus stream that is returned from Monitor(). */ - rpc LoopOut (LoopOutRequest) returns (SwapResponse) { - option (google.api.http) = { - post: "/v1/loop/out" - body: "*" - }; - } + rpc LoopOut (LoopOutRequest) returns (SwapResponse); /* loop: `in` LoopIn initiates a loop in swap with the given parameters. The call @@ -28,12 +21,7 @@ service SwapClient { point onwards, progress can be tracked via the SwapStatus stream that is returned from Monitor(). */ - rpc LoopIn (LoopInRequest) returns (SwapResponse) { - option (google.api.http) = { - post: "/v1/loop/in" - body: "*" - }; - } + rpc LoopIn (LoopInRequest) returns (SwapResponse); /* loop: `monitor` Monitor will return a stream of swap updates for currently active swaps. @@ -44,77 +32,46 @@ service SwapClient { ListSwaps returns a list of all currently known swaps and their current status. */ - rpc ListSwaps (ListSwapsRequest) returns (ListSwapsResponse) { - option (google.api.http) = { - get: "/v1/loop/swaps" - }; - } + rpc ListSwaps (ListSwapsRequest) returns (ListSwapsResponse); /* loop: `swapinfo` SwapInfo returns all known details about a single swap. */ - rpc SwapInfo (SwapInfoRequest) returns (SwapStatus) { - option (google.api.http) = { - get: "/v1/loop/swap/{id}" - }; - } + rpc SwapInfo (SwapInfoRequest) returns (SwapStatus); /* loop: `terms` LoopOutTerms returns the terms that the server enforces for a loop out swap. */ - rpc LoopOutTerms (TermsRequest) returns (OutTermsResponse) { - option (google.api.http) = { - get: "/v1/loop/out/terms" - }; - } + rpc LoopOutTerms (TermsRequest) returns (OutTermsResponse); /* loop: `quote` LoopOutQuote returns a quote for a loop out swap with the provided parameters. */ - rpc LoopOutQuote (QuoteRequest) returns (OutQuoteResponse) { - option (google.api.http) = { - get: "/v1/loop/out/quote/{amt}" - }; - } + rpc LoopOutQuote (QuoteRequest) returns (OutQuoteResponse); /* loop: `terms` GetTerms returns the terms that the server enforces for swaps. */ - rpc GetLoopInTerms (TermsRequest) returns (InTermsResponse) { - option (google.api.http) = { - get: "/v1/loop/in/terms" - }; - } + rpc GetLoopInTerms (TermsRequest) returns (InTermsResponse); /* loop: `quote` GetQuote returns a quote for a swap with the provided parameters. */ - rpc GetLoopInQuote (QuoteRequest) returns (InQuoteResponse) { - option (google.api.http) = { - get: "/v1/loop/in/quote/{amt}" - }; - } + rpc GetLoopInQuote (QuoteRequest) returns (InQuoteResponse); /* loop: `listauth` GetLsatTokens returns all LSAT tokens the daemon ever paid for. */ - rpc GetLsatTokens (TokensRequest) returns (TokensResponse) { - option (google.api.http) = { - get: "/v1/lsat/tokens" - }; - } + rpc GetLsatTokens (TokensRequest) returns (TokensResponse); /* GetLiquidityParams gets the parameters that the daemon's liquidity manager is currently configured with. This may be nil if nothing is configured. [EXPERIMENTAL]: endpoint is subject to change. */ - rpc GetLiquidityParams (GetLiquidityParamsRequest) returns (LiquidityParameters) { - option (google.api.http) = { - get: "/v1/liquidity/params" - }; - } + rpc GetLiquidityParams (GetLiquidityParamsRequest) + returns (LiquidityParameters); /* SetLiquidityParams sets a new set of parameters for the daemon's liquidity @@ -122,12 +79,8 @@ service SwapClient { this call fully overwrites our existing parameters. [EXPERIMENTAL]: endpoint is subject to change. */ - rpc SetLiquidityParams (SetLiquidityParamsRequest) returns (SetLiquidityParamsResponse) { - option (google.api.http) = { - post: "/v1/liquidity/params" - body: "*" - }; - } + rpc SetLiquidityParams (SetLiquidityParamsRequest) + returns (SetLiquidityParamsResponse); /* SuggestSwaps returns a list of recommended swaps based on the current @@ -135,11 +88,7 @@ service SwapClient { Note that only loop out suggestions are currently supported. [EXPERIMENTAL]: endpoint is subject to change. */ - rpc SuggestSwaps (SuggestSwapsRequest) returns (SuggestSwapsResponse) { - option (google.api.http) = { - get: "/v1/auto/suggest" - }; - } + rpc SuggestSwaps (SuggestSwapsRequest) returns (SuggestSwapsResponse); } message LoopOutRequest { diff --git a/looprpc/gen_protos.sh b/looprpc/gen_protos.sh index ece9832..6d4be95 100755 --- a/looprpc/gen_protos.sh +++ b/looprpc/gen_protos.sh @@ -6,7 +6,6 @@ set -e for file in ./*.proto do protoc -I/usr/local/include -I. \ - -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ --go_out=plugins=grpc,paths=source_relative:. \ ${file} @@ -14,11 +13,10 @@ done # Only generate the REST proxy and definitions for the client component. protoc -I/usr/local/include -I. \ - -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ - --grpc-gateway_out=logtostderr=true:. \ + --grpc-gateway_out=logtostderr=true,paths=source_relative,grpc_api_configuration=rest-annotations.yaml:. \ client.proto protoc -I/usr/local/include -I. \ -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ - --swagger_out=logtostderr=true:. \ + --swagger_out=logtostderr=true,grpc_api_configuration=rest-annotations.yaml:. \ client.proto diff --git a/looprpc/rest-annotations.yaml b/looprpc/rest-annotations.yaml new file mode 100644 index 0000000..4f60066 --- /dev/null +++ b/looprpc/rest-annotations.yaml @@ -0,0 +1,33 @@ +type: google.api.Service +config_version: 3 + +http: + rules: + # client.proto + - selector: looprpc.SwapClient.LoopOut + post: "/v1/loop/out" + body: "*" + - selector: looprpc.SwapClient.LoopIn + post: "/v1/loop/in" + body: "*" + - selector: looprpc.SwapClient.ListSwaps + get: "/v1/loop/swaps" + - selector: looprpc.SwapClient.SwapInfo + get: "/v1/loop/swap/{id}" + - selector: looprpc.SwapClient.LoopOutTerms + get: "/v1/loop/out/terms" + - selector: looprpc.SwapClient.LoopOutQuote + get: "/v1/loop/out/quote/{amt}" + - selector: looprpc.SwapClient.GetLoopInTerms + get: "/v1/loop/in/terms" + - selector: looprpc.SwapClient.GetLoopInQuote + get: "/v1/loop/in/quote/{amt}" + - selector: looprpc.SwapClient.GetLsatTokens + get: "/v1/lsat/tokens" + - selector: looprpc.SwapClient.GetLiquidityParams + get: "/v1/liquidity/params" + - selector: looprpc.SwapClient.SetLiquidityParams + post: "/v1/liquidity/params" + body: "*" + - selector: looprpc.SwapClient.SuggestSwaps + get: "/v1/auto/suggest" diff --git a/looprpc/server.pb.go b/looprpc/server.pb.go index e092d20..9bd19b0 100644 --- a/looprpc/server.pb.go +++ b/looprpc/server.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -1562,116 +1561,115 @@ func init() { func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) } var fileDescriptor_ad098daeda4239f7 = []byte{ - // 1736 bytes of a gzipped FileDescriptorProto + // 1714 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6e, 0xdb, 0xca, 0x15, 0x36, 0x25, 0xd9, 0xb2, 0x8e, 0x24, 0x9b, 0x99, 0xf8, 0x26, 0xb2, 0x1c, 0x27, 0x32, 0xd3, - 0x24, 0xae, 0x5b, 0xe4, 0x06, 0x69, 0x81, 0xfe, 0xec, 0x18, 0x8a, 0x8e, 0xd8, 0x2b, 0x93, 0xea, - 0x90, 0x72, 0x6e, 0xba, 0x61, 0x69, 0x79, 0x62, 0x13, 0x95, 0x48, 0x5e, 0x92, 0x72, 0x6c, 0x74, - 0xd9, 0x65, 0x9f, 0xa1, 0x40, 0xd7, 0x5d, 0x15, 0xdd, 0xf4, 0x01, 0x0a, 0xf4, 0x05, 0x8a, 0x3e, - 0x47, 0xd1, 0x37, 0x28, 0x66, 0x86, 0x94, 0x48, 0x89, 0x4a, 0xe2, 0xc2, 0xb8, 0x3b, 0xf1, 0x9c, - 0x6f, 0xe6, 0x9c, 0xf3, 0x9d, 0x99, 0x6f, 0x8e, 0xa0, 0x11, 0x91, 0xf0, 0x8a, 0x84, 0x2f, 0x83, - 0xd0, 0x8f, 0x7d, 0x54, 0x1d, 0xfb, 0x7e, 0x10, 0x06, 0xa3, 0xf6, 0xa3, 0x0b, 0xdf, 0xbf, 0x18, - 0x93, 0xaf, 0x9d, 0xc0, 0xfd, 0xda, 0xf1, 0x3c, 0x3f, 0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xdc, 0xf6, 0xd6, 0x3c, 0x85, - 0x66, 0x10, 0xfa, 0x67, 0x64, 0x96, 0x03, 0x97, 0xb3, 0x06, 0x33, 0x66, 0xd4, 0x26, 0x23, 0x78, - 0x9b, 0x8b, 0x82, 0x77, 0x9d, 0x7d, 0x12, 0x28, 0x57, 0x73, 0xb9, 0xfb, 0xdc, 0x93, 0x30, 0xbf, - 0xb4, 0xa5, 0x9c, 0xc4, 0x2e, 0x8b, 0x54, 0xb9, 0x48, 0xa4, 0xbe, 0x83, 0x56, 0x36, 0xf2, 0x67, - 0x24, 0xaa, 0x88, 0xb0, 0xd2, 0x6d, 0x0f, 0xf3, 0xbf, 0x73, 0xba, 0x38, 0x8b, 0x99, 0x94, 0x9c, - 0x55, 0x0a, 0xe1, 0x33, 0x4a, 0x51, 0x2a, 0x56, 0x8a, 0x02, 0x29, 0xa8, 0xdc, 0x42, 0x0a, 0xd6, - 0x57, 0x49, 0xc1, 0x7e, 0x4e, 0x0a, 0xf8, 0x8b, 0x96, 0x91, 0x01, 0x3b, 0x4f, 0xe5, 0xdd, 0xab, - 0xc0, 0x08, 0xee, 0x2d, 0x05, 0xb8, 0x6b, 0x0d, 0x90, 0xfe, 0x20, 0x40, 0x27, 0x27, 0x35, 0x83, - 0x69, 0x74, 0x39, 0x08, 0x89, 0x3b, 0x71, 0x2e, 0xc8, 0x5d, 0x96, 0x83, 0xda, 0xb0, 0x19, 0x24, - 0xfb, 0xa6, 0x37, 0x3d, 0xfd, 0x96, 0x9e, 0xc2, 0xc1, 0x27, 0x92, 0xe0, 0x47, 0x45, 0xfa, 0x3d, - 0x3c, 0x34, 0xa7, 0x67, 0xd1, 0x28, 0x74, 0xcf, 0xc8, 0x30, 0x38, 0x77, 0x62, 0x72, 0xa7, 0x7c, - 0x7f, 0x52, 0x8b, 0xa4, 0x18, 0x9e, 0xcc, 0x82, 0x27, 0x49, 0xce, 0x72, 0x98, 0xdf, 0xde, 0xd8, - 0x9d, 0x90, 0x28, 0x76, 0x26, 0x81, 0xed, 0x45, 0xc9, 0x71, 0xae, 0xcf, 0x6c, 0x7a, 0x84, 0x5e, - 0xc2, 0x7a, 0x14, 0xa7, 0x47, 0x39, 0x9b, 0x1c, 0xaf, 0x9e, 0xf6, 0xc5, 0xa4, 0x7e, 0xcc, 0x61, - 0x52, 0x04, 0x8f, 0x73, 0x51, 0x35, 0xef, 0x7b, 0x08, 0xfa, 0x37, 0x01, 0xea, 0xd8, 0x9f, 0xc6, - 0x44, 0x71, 0xbc, 0x11, 0x19, 0xa3, 0x9f, 0x03, 0x84, 0xf4, 0xd3, 0x8e, 0x6f, 0x02, 0x92, 0xd0, - 0xba, 0x3b, 0xdb, 0x84, 0x21, 0x93, 0xb7, 0xdf, 0xba, 0x09, 0x08, 0xae, 0x31, 0x30, 0xfd, 0x89, - 0x5e, 0xc1, 0xa6, 0x13, 0xc7, 0x64, 0x12, 0xc4, 0x51, 0xab, 0xd4, 0x29, 0x1f, 0xd6, 0x5f, 0xef, - 0xcc, 0xd6, 0xf5, 0xe2, 0xf1, 0x48, 0xe6, 0x4e, 0x3c, 0x43, 0xa1, 0x9f, 0x41, 0xf5, 0x83, 0xe3, - 0x8e, 0xa7, 0x21, 0x49, 0xe6, 0x99, 0xfd, 0x79, 0xff, 0x78, 0x8c, 0x63, 0xee, 0xc6, 0xc4, 0x89, - 0x7c, 0x0f, 0xa7, 0x68, 0xe9, 0xa7, 0x50, 0xcf, 0xec, 0x48, 0xe5, 0x30, 0x24, 0x13, 0xc7, 0xf5, - 0x5c, 0xef, 0x82, 0x3e, 0x05, 0x9c, 0x98, 0x26, 0x6e, 0xce, 0xac, 0x3d, 0x3f, 0x88, 0xa4, 0xff, - 0x08, 0xd0, 0xe2, 0x55, 0x26, 0x3d, 0xa5, 0x64, 0x7c, 0x6f, 0x87, 0x0a, 0xbd, 0x80, 0xed, 0x74, - 0x9a, 0x72, 0xce, 0xcf, 0x43, 0x12, 0x45, 0xc9, 0x64, 0xba, 0x95, 0x98, 0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ports to suppress errors if they are not otherwise used. diff --git a/looprpc/server.proto b/looprpc/server.proto index 0e3c7ef..3598e0c 100644 --- a/looprpc/server.proto +++ b/looprpc/server.proto @@ -1,7 +1,5 @@ syntax = "proto3"; -import "google/api/annotations.proto"; - package looprpc; service SwapServer { From 86df44362fafc1faeb7fa6d9fed9f1483dde0cf9 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 25 May 2021 16:33:44 +0200 Subject: [PATCH 2/4] make+looprpc: use Docker to compile and format protos --- Makefile | 8 +- go.mod | 2 +- looprpc/.clang-format | 7 + looprpc/Dockerfile | 22 + looprpc/client.pb.go | 3314 ++++++++++++++++++++++------------ looprpc/client.proto | 48 +- looprpc/client.swagger.json | 12 +- looprpc/debug.pb.go | 241 ++- looprpc/debug.proto | 4 +- looprpc/gen_protos.sh | 46 +- looprpc/gen_protos_docker.sh | 23 + looprpc/server.pb.go | 2721 ++++++++++++++++++---------- looprpc/server.proto | 19 +- 13 files changed, 4196 insertions(+), 2271 deletions(-) create mode 100644 looprpc/.clang-format create mode 100644 looprpc/Dockerfile create mode 100755 looprpc/gen_protos_docker.sh diff --git a/Makefile b/Makefile index e392a8e..814a89e 100644 --- a/Makefile +++ b/Makefile @@ -74,5 +74,9 @@ install: $(GOINSTALL) -tags="${tags}" $(LDFLAGS) $(PKG)/cmd/loopd rpc: - @$(call print, "Compiling RPC protos.") - cd looprpc; ./gen_protos.sh + @$(call print, "Compiling protos.") + cd ./looprpc; ./gen_protos_docker.sh + +rpc-check: rpc + @$(call print, "Verifying protos.") + if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi diff --git a/go.mod b/go.mod index d8b91b5..5b8a997 100644 --- a/go.mod +++ b/go.mod @@ -21,8 +21,8 @@ require ( github.com/stretchr/testify v1.7.0 github.com/urfave/cli v1.20.0 golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7 - google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c google.golang.org/grpc v1.29.1 + google.golang.org/protobuf v1.23.0 gopkg.in/macaroon-bakery.v2 v2.0.1 gopkg.in/macaroon.v2 v2.1.0 ) diff --git a/looprpc/.clang-format b/looprpc/.clang-format new file mode 100644 index 0000000..70ad95e --- /dev/null +++ b/looprpc/.clang-format @@ -0,0 +1,7 @@ +--- +Language: Proto +BasedOnStyle: Google +IndentWidth: 4 +AllowShortFunctionsOnASingleLine: None +SpaceBeforeParens: Always +CompactNamespaces: false \ No newline at end of file diff --git a/looprpc/Dockerfile b/looprpc/Dockerfile new file mode 100644 index 0000000..ac64d41 --- /dev/null +++ b/looprpc/Dockerfile @@ -0,0 +1,22 @@ +FROM golang:1.15.6-buster + +RUN apt-get update && apt-get install -y \ + git \ + protobuf-compiler='3.6*' \ + clang-format='1:7.0*' + +# We don't want any default values for these variables to make sure they're +# explicitly provided by parsing the go.mod file. Otherwise we might forget to +# update them here if we bump the versions. +ARG PROTOC_GEN_VERSION +ARG GRPC_GATEWAY_VERSION + +RUN cd /tmp \ + && export GO111MODULE=on \ + && go get github.com/golang/protobuf/protoc-gen-go@${PROTOC_GEN_VERSION} \ + && go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \ + && go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@${GRPC_GATEWAY_VERSION} + +WORKDIR /build + +CMD ["/bin/bash", "/build/looprpc/gen_protos.sh"] diff --git a/looprpc/client.pb.go b/looprpc/client.pb.go index bd917cb..be90a86 100644 --- a/looprpc/client.pb.go +++ b/looprpc/client.pb.go @@ -1,28 +1,33 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.6.1 // source: client.proto package looprpc import ( context "context" - fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type SwapType int32 @@ -33,22 +38,43 @@ const ( SwapType_LOOP_IN SwapType = 1 ) -var SwapType_name = map[int32]string{ - 0: "LOOP_OUT", - 1: "LOOP_IN", -} +// Enum value maps for SwapType. +var ( + SwapType_name = map[int32]string{ + 0: "LOOP_OUT", + 1: "LOOP_IN", + } + SwapType_value = map[string]int32{ + "LOOP_OUT": 0, + "LOOP_IN": 1, + } +) -var SwapType_value = map[string]int32{ - "LOOP_OUT": 0, - "LOOP_IN": 1, +func (x SwapType) Enum() *SwapType { + p := new(SwapType) + *p = x + return p } func (x SwapType) String() string { - return proto.EnumName(SwapType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (SwapType) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[0].Descriptor() +} + +func (SwapType) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[0] +} + +func (x SwapType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SwapType.Descriptor instead. func (SwapType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{0} + return file_client_proto_rawDescGZIP(), []int{0} } type SwapState int32 @@ -84,30 +110,51 @@ const ( SwapState_INVOICE_SETTLED SwapState = 5 ) -var SwapState_name = map[int32]string{ - 0: "INITIATED", - 1: "PREIMAGE_REVEALED", - 2: "HTLC_PUBLISHED", - 3: "SUCCESS", - 4: "FAILED", - 5: "INVOICE_SETTLED", -} +// Enum value maps for SwapState. +var ( + SwapState_name = map[int32]string{ + 0: "INITIATED", + 1: "PREIMAGE_REVEALED", + 2: "HTLC_PUBLISHED", + 3: "SUCCESS", + 4: "FAILED", + 5: "INVOICE_SETTLED", + } + SwapState_value = map[string]int32{ + "INITIATED": 0, + "PREIMAGE_REVEALED": 1, + "HTLC_PUBLISHED": 2, + "SUCCESS": 3, + "FAILED": 4, + "INVOICE_SETTLED": 5, + } +) -var SwapState_value = map[string]int32{ - "INITIATED": 0, - "PREIMAGE_REVEALED": 1, - "HTLC_PUBLISHED": 2, - "SUCCESS": 3, - "FAILED": 4, - "INVOICE_SETTLED": 5, +func (x SwapState) Enum() *SwapState { + p := new(SwapState) + *p = x + return p } func (x SwapState) String() string { - return proto.EnumName(SwapState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SwapState) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[1].Descriptor() +} + +func (SwapState) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[1] } +func (x SwapState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SwapState.Descriptor instead. func (SwapState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{1} + return file_client_proto_rawDescGZIP(), []int{1} } type FailureReason int32 @@ -146,32 +193,53 @@ const ( FailureReason_FAILURE_REASON_INCORRECT_AMOUNT FailureReason = 6 ) -var FailureReason_name = map[int32]string{ - 0: "FAILURE_REASON_NONE", - 1: "FAILURE_REASON_OFFCHAIN", - 2: "FAILURE_REASON_TIMEOUT", - 3: "FAILURE_REASON_SWEEP_TIMEOUT", - 4: "FAILURE_REASON_INSUFFICIENT_VALUE", - 5: "FAILURE_REASON_TEMPORARY", - 6: "FAILURE_REASON_INCORRECT_AMOUNT", -} +// Enum value maps for FailureReason. +var ( + FailureReason_name = map[int32]string{ + 0: "FAILURE_REASON_NONE", + 1: "FAILURE_REASON_OFFCHAIN", + 2: "FAILURE_REASON_TIMEOUT", + 3: "FAILURE_REASON_SWEEP_TIMEOUT", + 4: "FAILURE_REASON_INSUFFICIENT_VALUE", + 5: "FAILURE_REASON_TEMPORARY", + 6: "FAILURE_REASON_INCORRECT_AMOUNT", + } + FailureReason_value = map[string]int32{ + "FAILURE_REASON_NONE": 0, + "FAILURE_REASON_OFFCHAIN": 1, + "FAILURE_REASON_TIMEOUT": 2, + "FAILURE_REASON_SWEEP_TIMEOUT": 3, + "FAILURE_REASON_INSUFFICIENT_VALUE": 4, + "FAILURE_REASON_TEMPORARY": 5, + "FAILURE_REASON_INCORRECT_AMOUNT": 6, + } +) -var FailureReason_value = map[string]int32{ - "FAILURE_REASON_NONE": 0, - "FAILURE_REASON_OFFCHAIN": 1, - "FAILURE_REASON_TIMEOUT": 2, - "FAILURE_REASON_SWEEP_TIMEOUT": 3, - "FAILURE_REASON_INSUFFICIENT_VALUE": 4, - "FAILURE_REASON_TEMPORARY": 5, - "FAILURE_REASON_INCORRECT_AMOUNT": 6, +func (x FailureReason) Enum() *FailureReason { + p := new(FailureReason) + *p = x + return p } func (x FailureReason) String() string { - return proto.EnumName(FailureReason_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FailureReason) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[2].Descriptor() +} + +func (FailureReason) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[2] +} + +func (x FailureReason) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use FailureReason.Descriptor instead. func (FailureReason) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{2} + return file_client_proto_rawDescGZIP(), []int{2} } type LiquidityRuleType int32 @@ -181,22 +249,43 @@ const ( LiquidityRuleType_THRESHOLD LiquidityRuleType = 1 ) -var LiquidityRuleType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "THRESHOLD", -} +// Enum value maps for LiquidityRuleType. +var ( + LiquidityRuleType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "THRESHOLD", + } + LiquidityRuleType_value = map[string]int32{ + "UNKNOWN": 0, + "THRESHOLD": 1, + } +) -var LiquidityRuleType_value = map[string]int32{ - "UNKNOWN": 0, - "THRESHOLD": 1, +func (x LiquidityRuleType) Enum() *LiquidityRuleType { + p := new(LiquidityRuleType) + *p = x + return p } func (x LiquidityRuleType) String() string { - return proto.EnumName(LiquidityRuleType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LiquidityRuleType) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[3].Descriptor() +} + +func (LiquidityRuleType) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[3] +} + +func (x LiquidityRuleType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use LiquidityRuleType.Descriptor instead. func (LiquidityRuleType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{3} + return file_client_proto_rawDescGZIP(), []int{3} } type AutoReason int32 @@ -256,49 +345,74 @@ const ( AutoReason_AUTO_REASON_FEE_INSUFFICIENT AutoReason = 13 ) -var AutoReason_name = map[int32]string{ - 0: "AUTO_REASON_UNKNOWN", - 1: "AUTO_REASON_BUDGET_NOT_STARTED", - 2: "AUTO_REASON_SWEEP_FEES", - 3: "AUTO_REASON_BUDGET_ELAPSED", - 4: "AUTO_REASON_IN_FLIGHT", - 5: "AUTO_REASON_SWAP_FEE", - 6: "AUTO_REASON_MINER_FEE", - 7: "AUTO_REASON_PREPAY", - 8: "AUTO_REASON_FAILURE_BACKOFF", - 9: "AUTO_REASON_LOOP_OUT", - 10: "AUTO_REASON_LOOP_IN", - 11: "AUTO_REASON_LIQUIDITY_OK", - 12: "AUTO_REASON_BUDGET_INSUFFICIENT", - 13: "AUTO_REASON_FEE_INSUFFICIENT", -} - -var AutoReason_value = map[string]int32{ - "AUTO_REASON_UNKNOWN": 0, - "AUTO_REASON_BUDGET_NOT_STARTED": 1, - "AUTO_REASON_SWEEP_FEES": 2, - "AUTO_REASON_BUDGET_ELAPSED": 3, - "AUTO_REASON_IN_FLIGHT": 4, - "AUTO_REASON_SWAP_FEE": 5, - "AUTO_REASON_MINER_FEE": 6, - "AUTO_REASON_PREPAY": 7, - "AUTO_REASON_FAILURE_BACKOFF": 8, - "AUTO_REASON_LOOP_OUT": 9, - "AUTO_REASON_LOOP_IN": 10, - "AUTO_REASON_LIQUIDITY_OK": 11, - "AUTO_REASON_BUDGET_INSUFFICIENT": 12, - "AUTO_REASON_FEE_INSUFFICIENT": 13, +// Enum value maps for AutoReason. +var ( + AutoReason_name = map[int32]string{ + 0: "AUTO_REASON_UNKNOWN", + 1: "AUTO_REASON_BUDGET_NOT_STARTED", + 2: "AUTO_REASON_SWEEP_FEES", + 3: "AUTO_REASON_BUDGET_ELAPSED", + 4: "AUTO_REASON_IN_FLIGHT", + 5: "AUTO_REASON_SWAP_FEE", + 6: "AUTO_REASON_MINER_FEE", + 7: "AUTO_REASON_PREPAY", + 8: "AUTO_REASON_FAILURE_BACKOFF", + 9: "AUTO_REASON_LOOP_OUT", + 10: "AUTO_REASON_LOOP_IN", + 11: "AUTO_REASON_LIQUIDITY_OK", + 12: "AUTO_REASON_BUDGET_INSUFFICIENT", + 13: "AUTO_REASON_FEE_INSUFFICIENT", + } + AutoReason_value = map[string]int32{ + "AUTO_REASON_UNKNOWN": 0, + "AUTO_REASON_BUDGET_NOT_STARTED": 1, + "AUTO_REASON_SWEEP_FEES": 2, + "AUTO_REASON_BUDGET_ELAPSED": 3, + "AUTO_REASON_IN_FLIGHT": 4, + "AUTO_REASON_SWAP_FEE": 5, + "AUTO_REASON_MINER_FEE": 6, + "AUTO_REASON_PREPAY": 7, + "AUTO_REASON_FAILURE_BACKOFF": 8, + "AUTO_REASON_LOOP_OUT": 9, + "AUTO_REASON_LOOP_IN": 10, + "AUTO_REASON_LIQUIDITY_OK": 11, + "AUTO_REASON_BUDGET_INSUFFICIENT": 12, + "AUTO_REASON_FEE_INSUFFICIENT": 13, + } +) + +func (x AutoReason) Enum() *AutoReason { + p := new(AutoReason) + *p = x + return p } func (x AutoReason) String() string { - return proto.EnumName(AutoReason_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (AutoReason) Descriptor() protoreflect.EnumDescriptor { + return file_client_proto_enumTypes[4].Descriptor() +} + +func (AutoReason) Type() protoreflect.EnumType { + return &file_client_proto_enumTypes[4] +} + +func (x AutoReason) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AutoReason.Descriptor instead. func (AutoReason) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{4} + return file_client_proto_rawDescGZIP(), []int{4} } type LoopOutRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //Requested swap amount in sat. This does not include the swap and miner fee. Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` @@ -306,9 +420,9 @@ type LoopOutRequest struct { //Base58 encoded destination address for the swap. Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"` // - //Maximum off-chain fee in sat that may be paid for swap payment to the server. - //This limit is applied during path finding. Typically this value is taken - //from the response of the GetQuote call. + //Maximum off-chain fee in sat that may be paid for swap payment to the + //server. This limit is applied during path finding. Typically this value is + //taken from the response of the GetQuote call. MaxSwapRoutingFee int64 `protobuf:"varint,3,opt,name=max_swap_routing_fee,json=maxSwapRoutingFee,proto3" json:"max_swap_routing_fee,omitempty"` // //Maximum off-chain fee in sat that may be paid for the prepay to the server. @@ -344,7 +458,9 @@ type LoopOutRequest struct { //Deprecated, use outgoing_chan_set. The channel to loop out, the channel //to loop out is selected based on the lowest routing fee for the swap //payment to the server. - LoopOutChannel uint64 `protobuf:"varint,8,opt,name=loop_out_channel,json=loopOutChannel,proto3" json:"loop_out_channel,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + LoopOutChannel uint64 `protobuf:"varint,8,opt,name=loop_out_channel,json=loopOutChannel,proto3" json:"loop_out_channel,omitempty"` // //A restriction on the channel set that may be used to loop out. The actual //channel(s) that will be used are selected based on the lowest routing fee @@ -376,137 +492,145 @@ type LoopOutRequest struct { //initiator part is meant for user interfaces to add their name to give the //full picture of the binary used (loopd, LiT) and the method used for //triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI). - Initiator string `protobuf:"bytes,14,opt,name=initiator,proto3" json:"initiator,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Initiator string `protobuf:"bytes,14,opt,name=initiator,proto3" json:"initiator,omitempty"` } -func (m *LoopOutRequest) Reset() { *m = LoopOutRequest{} } -func (m *LoopOutRequest) String() string { return proto.CompactTextString(m) } -func (*LoopOutRequest) ProtoMessage() {} -func (*LoopOutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{0} +func (x *LoopOutRequest) Reset() { + *x = LoopOutRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LoopOutRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoopOutRequest.Unmarshal(m, b) -} -func (m *LoopOutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoopOutRequest.Marshal(b, m, deterministic) +func (x *LoopOutRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LoopOutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoopOutRequest.Merge(m, src) -} -func (m *LoopOutRequest) XXX_Size() int { - return xxx_messageInfo_LoopOutRequest.Size(m) -} -func (m *LoopOutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoopOutRequest.DiscardUnknown(m) + +func (*LoopOutRequest) ProtoMessage() {} + +func (x *LoopOutRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LoopOutRequest proto.InternalMessageInfo +// Deprecated: Use LoopOutRequest.ProtoReflect.Descriptor instead. +func (*LoopOutRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{0} +} -func (m *LoopOutRequest) GetAmt() int64 { - if m != nil { - return m.Amt +func (x *LoopOutRequest) GetAmt() int64 { + if x != nil { + return x.Amt } return 0 } -func (m *LoopOutRequest) GetDest() string { - if m != nil { - return m.Dest +func (x *LoopOutRequest) GetDest() string { + if x != nil { + return x.Dest } return "" } -func (m *LoopOutRequest) GetMaxSwapRoutingFee() int64 { - if m != nil { - return m.MaxSwapRoutingFee +func (x *LoopOutRequest) GetMaxSwapRoutingFee() int64 { + if x != nil { + return x.MaxSwapRoutingFee } return 0 } -func (m *LoopOutRequest) GetMaxPrepayRoutingFee() int64 { - if m != nil { - return m.MaxPrepayRoutingFee +func (x *LoopOutRequest) GetMaxPrepayRoutingFee() int64 { + if x != nil { + return x.MaxPrepayRoutingFee } return 0 } -func (m *LoopOutRequest) GetMaxSwapFee() int64 { - if m != nil { - return m.MaxSwapFee +func (x *LoopOutRequest) GetMaxSwapFee() int64 { + if x != nil { + return x.MaxSwapFee } return 0 } -func (m *LoopOutRequest) GetMaxPrepayAmt() int64 { - if m != nil { - return m.MaxPrepayAmt +func (x *LoopOutRequest) GetMaxPrepayAmt() int64 { + if x != nil { + return x.MaxPrepayAmt } return 0 } -func (m *LoopOutRequest) GetMaxMinerFee() int64 { - if m != nil { - return m.MaxMinerFee +func (x *LoopOutRequest) GetMaxMinerFee() int64 { + if x != nil { + return x.MaxMinerFee } return 0 } // Deprecated: Do not use. -func (m *LoopOutRequest) GetLoopOutChannel() uint64 { - if m != nil { - return m.LoopOutChannel +func (x *LoopOutRequest) GetLoopOutChannel() uint64 { + if x != nil { + return x.LoopOutChannel } return 0 } -func (m *LoopOutRequest) GetOutgoingChanSet() []uint64 { - if m != nil { - return m.OutgoingChanSet +func (x *LoopOutRequest) GetOutgoingChanSet() []uint64 { + if x != nil { + return x.OutgoingChanSet } return nil } -func (m *LoopOutRequest) GetSweepConfTarget() int32 { - if m != nil { - return m.SweepConfTarget +func (x *LoopOutRequest) GetSweepConfTarget() int32 { + if x != nil { + return x.SweepConfTarget } return 0 } -func (m *LoopOutRequest) GetHtlcConfirmations() int32 { - if m != nil { - return m.HtlcConfirmations +func (x *LoopOutRequest) GetHtlcConfirmations() int32 { + if x != nil { + return x.HtlcConfirmations } return 0 } -func (m *LoopOutRequest) GetSwapPublicationDeadline() uint64 { - if m != nil { - return m.SwapPublicationDeadline +func (x *LoopOutRequest) GetSwapPublicationDeadline() uint64 { + if x != nil { + return x.SwapPublicationDeadline } return 0 } -func (m *LoopOutRequest) GetLabel() string { - if m != nil { - return m.Label +func (x *LoopOutRequest) GetLabel() string { + if x != nil { + return x.Label } return "" } -func (m *LoopOutRequest) GetInitiator() string { - if m != nil { - return m.Initiator +func (x *LoopOutRequest) GetInitiator() string { + if x != nil { + return x.Initiator } return "" } type LoopInRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //Requested swap amount in sat. This does not include the swap and miner //fee. @@ -545,100 +669,110 @@ type LoopInRequest struct { //initiator part is meant for user interfaces to add their name to give the //full picture of the binary used (loopd, LiT) and the method used for //triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI). - Initiator string `protobuf:"bytes,8,opt,name=initiator,proto3" json:"initiator,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Initiator string `protobuf:"bytes,8,opt,name=initiator,proto3" json:"initiator,omitempty"` } -func (m *LoopInRequest) Reset() { *m = LoopInRequest{} } -func (m *LoopInRequest) String() string { return proto.CompactTextString(m) } -func (*LoopInRequest) ProtoMessage() {} -func (*LoopInRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{1} +func (x *LoopInRequest) Reset() { + *x = LoopInRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LoopInRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoopInRequest.Unmarshal(m, b) +func (x *LoopInRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LoopInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoopInRequest.Marshal(b, m, deterministic) -} -func (m *LoopInRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoopInRequest.Merge(m, src) -} -func (m *LoopInRequest) XXX_Size() int { - return xxx_messageInfo_LoopInRequest.Size(m) -} -func (m *LoopInRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoopInRequest.DiscardUnknown(m) + +func (*LoopInRequest) ProtoMessage() {} + +func (x *LoopInRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LoopInRequest proto.InternalMessageInfo +// Deprecated: Use LoopInRequest.ProtoReflect.Descriptor instead. +func (*LoopInRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{1} +} -func (m *LoopInRequest) GetAmt() int64 { - if m != nil { - return m.Amt +func (x *LoopInRequest) GetAmt() int64 { + if x != nil { + return x.Amt } return 0 } -func (m *LoopInRequest) GetMaxSwapFee() int64 { - if m != nil { - return m.MaxSwapFee +func (x *LoopInRequest) GetMaxSwapFee() int64 { + if x != nil { + return x.MaxSwapFee } return 0 } -func (m *LoopInRequest) GetMaxMinerFee() int64 { - if m != nil { - return m.MaxMinerFee +func (x *LoopInRequest) GetMaxMinerFee() int64 { + if x != nil { + return x.MaxMinerFee } return 0 } -func (m *LoopInRequest) GetLastHop() []byte { - if m != nil { - return m.LastHop +func (x *LoopInRequest) GetLastHop() []byte { + if x != nil { + return x.LastHop } return nil } -func (m *LoopInRequest) GetExternalHtlc() bool { - if m != nil { - return m.ExternalHtlc +func (x *LoopInRequest) GetExternalHtlc() bool { + if x != nil { + return x.ExternalHtlc } return false } -func (m *LoopInRequest) GetHtlcConfTarget() int32 { - if m != nil { - return m.HtlcConfTarget +func (x *LoopInRequest) GetHtlcConfTarget() int32 { + if x != nil { + return x.HtlcConfTarget } return 0 } -func (m *LoopInRequest) GetLabel() string { - if m != nil { - return m.Label +func (x *LoopInRequest) GetLabel() string { + if x != nil { + return x.Label } return "" } -func (m *LoopInRequest) GetInitiator() string { - if m != nil { - return m.Initiator +func (x *LoopInRequest) GetInitiator() string { + if x != nil { + return x.Initiator } return "" } type SwapResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //Swap identifier to track status in the update stream that is returned from //the Start() call. Currently this is the hash that locks the htlcs. //DEPRECATED: To make the API more consistent, this field is deprecated in //favor of id_bytes and will be removed in a future release. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // //Swap identifier to track status in the update stream that is returned from //the Start() call. Currently this is the hash that locks the htlcs. @@ -652,7 +786,9 @@ type SwapResponse struct { //nested segwit (NP2WSH) htlc. //- For loop-out htlc_address always contains the native segwit (P2WSH) //htlc address. - HtlcAddress string `protobuf:"bytes,2,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + HtlcAddress string `protobuf:"bytes,2,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // //The nested segwit address of the on-chain htlc. //This field remains empty for loop-out. @@ -662,113 +798,128 @@ type SwapResponse struct { //Used for both loop-in and loop-out. HtlcAddressP2Wsh string `protobuf:"bytes,5,opt,name=htlc_address_p2wsh,json=htlcAddressP2wsh,proto3" json:"htlc_address_p2wsh,omitempty"` // A human-readable message received from the loop server. - ServerMessage string `protobuf:"bytes,6,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServerMessage string `protobuf:"bytes,6,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` } -func (m *SwapResponse) Reset() { *m = SwapResponse{} } -func (m *SwapResponse) String() string { return proto.CompactTextString(m) } -func (*SwapResponse) ProtoMessage() {} -func (*SwapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{2} +func (x *SwapResponse) Reset() { + *x = SwapResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SwapResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SwapResponse.Unmarshal(m, b) -} -func (m *SwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SwapResponse.Marshal(b, m, deterministic) -} -func (m *SwapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwapResponse.Merge(m, src) +func (x *SwapResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SwapResponse) XXX_Size() int { - return xxx_messageInfo_SwapResponse.Size(m) -} -func (m *SwapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SwapResponse.DiscardUnknown(m) + +func (*SwapResponse) ProtoMessage() {} + +func (x *SwapResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SwapResponse proto.InternalMessageInfo +// Deprecated: Use SwapResponse.ProtoReflect.Descriptor instead. +func (*SwapResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{2} +} // Deprecated: Do not use. -func (m *SwapResponse) GetId() string { - if m != nil { - return m.Id +func (x *SwapResponse) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *SwapResponse) GetIdBytes() []byte { - if m != nil { - return m.IdBytes +func (x *SwapResponse) GetIdBytes() []byte { + if x != nil { + return x.IdBytes } return nil } // Deprecated: Do not use. -func (m *SwapResponse) GetHtlcAddress() string { - if m != nil { - return m.HtlcAddress +func (x *SwapResponse) GetHtlcAddress() string { + if x != nil { + return x.HtlcAddress } return "" } -func (m *SwapResponse) GetHtlcAddressNp2Wsh() string { - if m != nil { - return m.HtlcAddressNp2Wsh +func (x *SwapResponse) GetHtlcAddressNp2Wsh() string { + if x != nil { + return x.HtlcAddressNp2Wsh } return "" } -func (m *SwapResponse) GetHtlcAddressP2Wsh() string { - if m != nil { - return m.HtlcAddressP2Wsh +func (x *SwapResponse) GetHtlcAddressP2Wsh() string { + if x != nil { + return x.HtlcAddressP2Wsh } return "" } -func (m *SwapResponse) GetServerMessage() string { - if m != nil { - return m.ServerMessage +func (x *SwapResponse) GetServerMessage() string { + if x != nil { + return x.ServerMessage } return "" } type MonitorRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MonitorRequest) Reset() { *m = MonitorRequest{} } -func (m *MonitorRequest) String() string { return proto.CompactTextString(m) } -func (*MonitorRequest) ProtoMessage() {} -func (*MonitorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{3} +func (x *MonitorRequest) Reset() { + *x = MonitorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MonitorRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MonitorRequest.Unmarshal(m, b) -} -func (m *MonitorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MonitorRequest.Marshal(b, m, deterministic) -} -func (m *MonitorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MonitorRequest.Merge(m, src) -} -func (m *MonitorRequest) XXX_Size() int { - return xxx_messageInfo_MonitorRequest.Size(m) +func (x *MonitorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MonitorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MonitorRequest.DiscardUnknown(m) + +func (*MonitorRequest) ProtoMessage() {} + +func (x *MonitorRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MonitorRequest proto.InternalMessageInfo +// Deprecated: Use MonitorRequest.ProtoReflect.Descriptor instead. +func (*MonitorRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{3} +} type SwapStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //Requested swap amount in sat. This does not include the swap and miner //fee. @@ -778,7 +929,9 @@ type SwapStatus struct { //the Start() call. Currently this is the hash that locks the htlcs. //DEPRECATED: To make the API more consistent, this field is deprecated in //favor of id_bytes and will be removed in a future release. - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // //Swap identifier to track status in the update stream that is returned from //the Start() call. Currently this is the hash that locks the htlcs. @@ -806,7 +959,9 @@ type SwapStatus struct { //address. //- For loop-out htlc_address always contains the native segwit (P2WSH) //htlc address. - HtlcAddress string `protobuf:"bytes,7,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + HtlcAddress string `protobuf:"bytes,7,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // HTLC address (native segwit), used in loop-in and loop-out swaps. HtlcAddressP2Wsh string `protobuf:"bytes,12,opt,name=htlc_address_p2wsh,json=htlcAddressP2wsh,proto3" json:"htlc_address_p2wsh,omitempty"` // HTLC address (nested segwit), used in loop-in swaps only. @@ -818,341 +973,387 @@ type SwapStatus struct { // Off-chain routing fees CostOffchain int64 `protobuf:"varint,10,opt,name=cost_offchain,json=costOffchain,proto3" json:"cost_offchain,omitempty"` // An optional label given to the swap on creation. - Label string `protobuf:"bytes,15,opt,name=label,proto3" json:"label,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Label string `protobuf:"bytes,15,opt,name=label,proto3" json:"label,omitempty"` } -func (m *SwapStatus) Reset() { *m = SwapStatus{} } -func (m *SwapStatus) String() string { return proto.CompactTextString(m) } -func (*SwapStatus) ProtoMessage() {} -func (*SwapStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{4} +func (x *SwapStatus) Reset() { + *x = SwapStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SwapStatus) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SwapStatus.Unmarshal(m, b) +func (x *SwapStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SwapStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SwapStatus.Marshal(b, m, deterministic) -} -func (m *SwapStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwapStatus.Merge(m, src) -} -func (m *SwapStatus) XXX_Size() int { - return xxx_messageInfo_SwapStatus.Size(m) -} -func (m *SwapStatus) XXX_DiscardUnknown() { - xxx_messageInfo_SwapStatus.DiscardUnknown(m) + +func (*SwapStatus) ProtoMessage() {} + +func (x *SwapStatus) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SwapStatus proto.InternalMessageInfo +// Deprecated: Use SwapStatus.ProtoReflect.Descriptor instead. +func (*SwapStatus) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{4} +} -func (m *SwapStatus) GetAmt() int64 { - if m != nil { - return m.Amt +func (x *SwapStatus) GetAmt() int64 { + if x != nil { + return x.Amt } return 0 } // Deprecated: Do not use. -func (m *SwapStatus) GetId() string { - if m != nil { - return m.Id +func (x *SwapStatus) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *SwapStatus) GetIdBytes() []byte { - if m != nil { - return m.IdBytes +func (x *SwapStatus) GetIdBytes() []byte { + if x != nil { + return x.IdBytes } return nil } -func (m *SwapStatus) GetType() SwapType { - if m != nil { - return m.Type +func (x *SwapStatus) GetType() SwapType { + if x != nil { + return x.Type } return SwapType_LOOP_OUT } -func (m *SwapStatus) GetState() SwapState { - if m != nil { - return m.State +func (x *SwapStatus) GetState() SwapState { + if x != nil { + return x.State } return SwapState_INITIATED } -func (m *SwapStatus) GetFailureReason() FailureReason { - if m != nil { - return m.FailureReason +func (x *SwapStatus) GetFailureReason() FailureReason { + if x != nil { + return x.FailureReason } return FailureReason_FAILURE_REASON_NONE } -func (m *SwapStatus) GetInitiationTime() int64 { - if m != nil { - return m.InitiationTime +func (x *SwapStatus) GetInitiationTime() int64 { + if x != nil { + return x.InitiationTime } return 0 } -func (m *SwapStatus) GetLastUpdateTime() int64 { - if m != nil { - return m.LastUpdateTime +func (x *SwapStatus) GetLastUpdateTime() int64 { + if x != nil { + return x.LastUpdateTime } return 0 } // Deprecated: Do not use. -func (m *SwapStatus) GetHtlcAddress() string { - if m != nil { - return m.HtlcAddress +func (x *SwapStatus) GetHtlcAddress() string { + if x != nil { + return x.HtlcAddress } return "" } -func (m *SwapStatus) GetHtlcAddressP2Wsh() string { - if m != nil { - return m.HtlcAddressP2Wsh +func (x *SwapStatus) GetHtlcAddressP2Wsh() string { + if x != nil { + return x.HtlcAddressP2Wsh } return "" } -func (m *SwapStatus) GetHtlcAddressNp2Wsh() string { - if m != nil { - return m.HtlcAddressNp2Wsh +func (x *SwapStatus) GetHtlcAddressNp2Wsh() string { + if x != nil { + return x.HtlcAddressNp2Wsh } return "" } -func (m *SwapStatus) GetCostServer() int64 { - if m != nil { - return m.CostServer +func (x *SwapStatus) GetCostServer() int64 { + if x != nil { + return x.CostServer } return 0 } -func (m *SwapStatus) GetCostOnchain() int64 { - if m != nil { - return m.CostOnchain +func (x *SwapStatus) GetCostOnchain() int64 { + if x != nil { + return x.CostOnchain } return 0 } -func (m *SwapStatus) GetCostOffchain() int64 { - if m != nil { - return m.CostOffchain +func (x *SwapStatus) GetCostOffchain() int64 { + if x != nil { + return x.CostOffchain } return 0 } -func (m *SwapStatus) GetLabel() string { - if m != nil { - return m.Label +func (x *SwapStatus) GetLabel() string { + if x != nil { + return x.Label } return "" } type ListSwapsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ListSwapsRequest) Reset() { *m = ListSwapsRequest{} } -func (m *ListSwapsRequest) String() string { return proto.CompactTextString(m) } -func (*ListSwapsRequest) ProtoMessage() {} -func (*ListSwapsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{5} +func (x *ListSwapsRequest) Reset() { + *x = ListSwapsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListSwapsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListSwapsRequest.Unmarshal(m, b) +func (x *ListSwapsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListSwapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListSwapsRequest.Marshal(b, m, deterministic) -} -func (m *ListSwapsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListSwapsRequest.Merge(m, src) -} -func (m *ListSwapsRequest) XXX_Size() int { - return xxx_messageInfo_ListSwapsRequest.Size(m) -} -func (m *ListSwapsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListSwapsRequest.DiscardUnknown(m) + +func (*ListSwapsRequest) ProtoMessage() {} + +func (x *ListSwapsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListSwapsRequest proto.InternalMessageInfo +// Deprecated: Use ListSwapsRequest.ProtoReflect.Descriptor instead. +func (*ListSwapsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{5} +} type ListSwapsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The list of all currently known swaps and their status. - Swaps []*SwapStatus `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Swaps []*SwapStatus `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"` } -func (m *ListSwapsResponse) Reset() { *m = ListSwapsResponse{} } -func (m *ListSwapsResponse) String() string { return proto.CompactTextString(m) } -func (*ListSwapsResponse) ProtoMessage() {} -func (*ListSwapsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{6} +func (x *ListSwapsResponse) Reset() { + *x = ListSwapsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListSwapsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListSwapsResponse.Unmarshal(m, b) -} -func (m *ListSwapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListSwapsResponse.Marshal(b, m, deterministic) -} -func (m *ListSwapsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListSwapsResponse.Merge(m, src) +func (x *ListSwapsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListSwapsResponse) XXX_Size() int { - return xxx_messageInfo_ListSwapsResponse.Size(m) -} -func (m *ListSwapsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListSwapsResponse.DiscardUnknown(m) + +func (*ListSwapsResponse) ProtoMessage() {} + +func (x *ListSwapsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ListSwapsResponse proto.InternalMessageInfo +// Deprecated: Use ListSwapsResponse.ProtoReflect.Descriptor instead. +func (*ListSwapsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{6} +} -func (m *ListSwapsResponse) GetSwaps() []*SwapStatus { - if m != nil { - return m.Swaps +func (x *ListSwapsResponse) GetSwaps() []*SwapStatus { + if x != nil { + return x.Swaps } return nil } type SwapInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The swap identifier which currently is the hash that locks the HTLCs. When //using REST, this field must be encoded as URL safe base64. - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *SwapInfoRequest) Reset() { *m = SwapInfoRequest{} } -func (m *SwapInfoRequest) String() string { return proto.CompactTextString(m) } -func (*SwapInfoRequest) ProtoMessage() {} -func (*SwapInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{7} +func (x *SwapInfoRequest) Reset() { + *x = SwapInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SwapInfoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SwapInfoRequest.Unmarshal(m, b) -} -func (m *SwapInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SwapInfoRequest.Marshal(b, m, deterministic) -} -func (m *SwapInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwapInfoRequest.Merge(m, src) +func (x *SwapInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SwapInfoRequest) XXX_Size() int { - return xxx_messageInfo_SwapInfoRequest.Size(m) -} -func (m *SwapInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SwapInfoRequest.DiscardUnknown(m) + +func (*SwapInfoRequest) ProtoMessage() {} + +func (x *SwapInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SwapInfoRequest proto.InternalMessageInfo +// Deprecated: Use SwapInfoRequest.ProtoReflect.Descriptor instead. +func (*SwapInfoRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{7} +} -func (m *SwapInfoRequest) GetId() []byte { - if m != nil { - return m.Id +func (x *SwapInfoRequest) GetId() []byte { + if x != nil { + return x.Id } return nil } type TermsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *TermsRequest) Reset() { *m = TermsRequest{} } -func (m *TermsRequest) String() string { return proto.CompactTextString(m) } -func (*TermsRequest) ProtoMessage() {} -func (*TermsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{8} +func (x *TermsRequest) Reset() { + *x = TermsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TermsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TermsRequest.Unmarshal(m, b) -} -func (m *TermsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TermsRequest.Marshal(b, m, deterministic) -} -func (m *TermsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TermsRequest.Merge(m, src) +func (x *TermsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TermsRequest) XXX_Size() int { - return xxx_messageInfo_TermsRequest.Size(m) -} -func (m *TermsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TermsRequest.DiscardUnknown(m) + +func (*TermsRequest) ProtoMessage() {} + +func (x *TermsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TermsRequest proto.InternalMessageInfo +// Deprecated: Use TermsRequest.ProtoReflect.Descriptor instead. +func (*TermsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{8} +} type InTermsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //Minimum swap amount (sat) MinSwapAmount int64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // //Maximum swap amount (sat) - MaxSwapAmount int64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxSwapAmount int64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` } -func (m *InTermsResponse) Reset() { *m = InTermsResponse{} } -func (m *InTermsResponse) String() string { return proto.CompactTextString(m) } -func (*InTermsResponse) ProtoMessage() {} -func (*InTermsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{9} +func (x *InTermsResponse) Reset() { + *x = InTermsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InTermsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InTermsResponse.Unmarshal(m, b) -} -func (m *InTermsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InTermsResponse.Marshal(b, m, deterministic) -} -func (m *InTermsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InTermsResponse.Merge(m, src) +func (x *InTermsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InTermsResponse) XXX_Size() int { - return xxx_messageInfo_InTermsResponse.Size(m) -} -func (m *InTermsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InTermsResponse.DiscardUnknown(m) + +func (*InTermsResponse) ProtoMessage() {} + +func (x *InTermsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InTermsResponse proto.InternalMessageInfo +// Deprecated: Use InTermsResponse.ProtoReflect.Descriptor instead. +func (*InTermsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{9} +} -func (m *InTermsResponse) GetMinSwapAmount() int64 { - if m != nil { - return m.MinSwapAmount +func (x *InTermsResponse) GetMinSwapAmount() int64 { + if x != nil { + return x.MinSwapAmount } return 0 } -func (m *InTermsResponse) GetMaxSwapAmount() int64 { - if m != nil { - return m.MaxSwapAmount +func (x *InTermsResponse) GetMaxSwapAmount() int64 { + if x != nil { + return x.MaxSwapAmount } return 0 } type OutTermsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //Minimum swap amount (sat) MinSwapAmount int64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` @@ -1162,66 +1363,74 @@ type OutTermsResponse struct { // The minimally accepted cltv delta of the on-chain htlc. MinCltvDelta int32 `protobuf:"varint,8,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"` // The maximally accepted cltv delta of the on-chain htlc. - MaxCltvDelta int32 `protobuf:"varint,9,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxCltvDelta int32 `protobuf:"varint,9,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"` } -func (m *OutTermsResponse) Reset() { *m = OutTermsResponse{} } -func (m *OutTermsResponse) String() string { return proto.CompactTextString(m) } -func (*OutTermsResponse) ProtoMessage() {} -func (*OutTermsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{10} +func (x *OutTermsResponse) Reset() { + *x = OutTermsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *OutTermsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OutTermsResponse.Unmarshal(m, b) -} -func (m *OutTermsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OutTermsResponse.Marshal(b, m, deterministic) -} -func (m *OutTermsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutTermsResponse.Merge(m, src) +func (x *OutTermsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OutTermsResponse) XXX_Size() int { - return xxx_messageInfo_OutTermsResponse.Size(m) -} -func (m *OutTermsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OutTermsResponse.DiscardUnknown(m) + +func (*OutTermsResponse) ProtoMessage() {} + +func (x *OutTermsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_OutTermsResponse proto.InternalMessageInfo +// Deprecated: Use OutTermsResponse.ProtoReflect.Descriptor instead. +func (*OutTermsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{10} +} -func (m *OutTermsResponse) GetMinSwapAmount() int64 { - if m != nil { - return m.MinSwapAmount +func (x *OutTermsResponse) GetMinSwapAmount() int64 { + if x != nil { + return x.MinSwapAmount } return 0 } -func (m *OutTermsResponse) GetMaxSwapAmount() int64 { - if m != nil { - return m.MaxSwapAmount +func (x *OutTermsResponse) GetMaxSwapAmount() int64 { + if x != nil { + return x.MaxSwapAmount } return 0 } -func (m *OutTermsResponse) GetMinCltvDelta() int32 { - if m != nil { - return m.MinCltvDelta +func (x *OutTermsResponse) GetMinCltvDelta() int32 { + if x != nil { + return x.MinCltvDelta } return 0 } -func (m *OutTermsResponse) GetMaxCltvDelta() int32 { - if m != nil { - return m.MaxCltvDelta +func (x *OutTermsResponse) GetMaxCltvDelta() int32 { + if x != nil { + return x.MaxCltvDelta } return 0 } type QuoteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The amount to swap in satoshis. Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` @@ -1241,66 +1450,74 @@ type QuoteRequest struct { //server the opportunity to batch multiple swaps together, and wait for //low-fee periods before publishing the HTLC, potentially resulting in a //lower total swap fee. This only has an effect on loop out quotes. - SwapPublicationDeadline uint64 `protobuf:"varint,4,opt,name=swap_publication_deadline,json=swapPublicationDeadline,proto3" json:"swap_publication_deadline,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SwapPublicationDeadline uint64 `protobuf:"varint,4,opt,name=swap_publication_deadline,json=swapPublicationDeadline,proto3" json:"swap_publication_deadline,omitempty"` } -func (m *QuoteRequest) Reset() { *m = QuoteRequest{} } -func (m *QuoteRequest) String() string { return proto.CompactTextString(m) } -func (*QuoteRequest) ProtoMessage() {} -func (*QuoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{11} +func (x *QuoteRequest) Reset() { + *x = QuoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *QuoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QuoteRequest.Unmarshal(m, b) -} -func (m *QuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QuoteRequest.Marshal(b, m, deterministic) +func (x *QuoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *QuoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuoteRequest.Merge(m, src) -} -func (m *QuoteRequest) XXX_Size() int { - return xxx_messageInfo_QuoteRequest.Size(m) -} -func (m *QuoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QuoteRequest.DiscardUnknown(m) + +func (*QuoteRequest) ProtoMessage() {} + +func (x *QuoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_QuoteRequest proto.InternalMessageInfo +// Deprecated: Use QuoteRequest.ProtoReflect.Descriptor instead. +func (*QuoteRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{11} +} -func (m *QuoteRequest) GetAmt() int64 { - if m != nil { - return m.Amt +func (x *QuoteRequest) GetAmt() int64 { + if x != nil { + return x.Amt } return 0 } -func (m *QuoteRequest) GetConfTarget() int32 { - if m != nil { - return m.ConfTarget +func (x *QuoteRequest) GetConfTarget() int32 { + if x != nil { + return x.ConfTarget } return 0 } -func (m *QuoteRequest) GetExternalHtlc() bool { - if m != nil { - return m.ExternalHtlc +func (x *QuoteRequest) GetExternalHtlc() bool { + if x != nil { + return x.ExternalHtlc } return false } -func (m *QuoteRequest) GetSwapPublicationDeadline() uint64 { - if m != nil { - return m.SwapPublicationDeadline +func (x *QuoteRequest) GetSwapPublicationDeadline() uint64 { + if x != nil { + return x.SwapPublicationDeadline } return 0 } type InQuoteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The fee that the swap server is charging for the swap. SwapFeeSat int64 `protobuf:"varint,1,opt,name=swap_fee_sat,json=swapFeeSat,proto3" json:"swap_fee_sat,omitempty"` @@ -1317,66 +1534,74 @@ type InQuoteResponse struct { CltvDelta int32 `protobuf:"varint,5,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` // //The confirmation target to be used to publish the on-chain HTLC. - ConfTarget int32 `protobuf:"varint,6,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ConfTarget int32 `protobuf:"varint,6,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"` } -func (m *InQuoteResponse) Reset() { *m = InQuoteResponse{} } -func (m *InQuoteResponse) String() string { return proto.CompactTextString(m) } -func (*InQuoteResponse) ProtoMessage() {} -func (*InQuoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{12} +func (x *InQuoteResponse) Reset() { + *x = InQuoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InQuoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InQuoteResponse.Unmarshal(m, b) -} -func (m *InQuoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InQuoteResponse.Marshal(b, m, deterministic) +func (x *InQuoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InQuoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InQuoteResponse.Merge(m, src) -} -func (m *InQuoteResponse) XXX_Size() int { - return xxx_messageInfo_InQuoteResponse.Size(m) -} -func (m *InQuoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InQuoteResponse.DiscardUnknown(m) + +func (*InQuoteResponse) ProtoMessage() {} + +func (x *InQuoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InQuoteResponse proto.InternalMessageInfo +// Deprecated: Use InQuoteResponse.ProtoReflect.Descriptor instead. +func (*InQuoteResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{12} +} -func (m *InQuoteResponse) GetSwapFeeSat() int64 { - if m != nil { - return m.SwapFeeSat +func (x *InQuoteResponse) GetSwapFeeSat() int64 { + if x != nil { + return x.SwapFeeSat } return 0 } -func (m *InQuoteResponse) GetHtlcPublishFeeSat() int64 { - if m != nil { - return m.HtlcPublishFeeSat +func (x *InQuoteResponse) GetHtlcPublishFeeSat() int64 { + if x != nil { + return x.HtlcPublishFeeSat } return 0 } -func (m *InQuoteResponse) GetCltvDelta() int32 { - if m != nil { - return m.CltvDelta +func (x *InQuoteResponse) GetCltvDelta() int32 { + if x != nil { + return x.CltvDelta } return 0 } -func (m *InQuoteResponse) GetConfTarget() int32 { - if m != nil { - return m.ConfTarget +func (x *InQuoteResponse) GetConfTarget() int32 { + if x != nil { + return x.ConfTarget } return 0 } type OutQuoteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The fee that the swap server is charging for the swap. SwapFeeSat int64 `protobuf:"varint,1,opt,name=swap_fee_sat,json=swapFeeSat,proto3" json:"swap_fee_sat,omitempty"` @@ -1396,152 +1621,175 @@ type OutQuoteResponse struct { CltvDelta int32 `protobuf:"varint,5,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` // //The confirmation target to be used for the sweep of the on-chain HTLC. - ConfTarget int32 `protobuf:"varint,6,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ConfTarget int32 `protobuf:"varint,6,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"` } -func (m *OutQuoteResponse) Reset() { *m = OutQuoteResponse{} } -func (m *OutQuoteResponse) String() string { return proto.CompactTextString(m) } -func (*OutQuoteResponse) ProtoMessage() {} -func (*OutQuoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{13} +func (x *OutQuoteResponse) Reset() { + *x = OutQuoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *OutQuoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OutQuoteResponse.Unmarshal(m, b) +func (x *OutQuoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OutQuoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OutQuoteResponse.Marshal(b, m, deterministic) -} -func (m *OutQuoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutQuoteResponse.Merge(m, src) -} -func (m *OutQuoteResponse) XXX_Size() int { - return xxx_messageInfo_OutQuoteResponse.Size(m) -} -func (m *OutQuoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OutQuoteResponse.DiscardUnknown(m) + +func (*OutQuoteResponse) ProtoMessage() {} + +func (x *OutQuoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_OutQuoteResponse proto.InternalMessageInfo +// Deprecated: Use OutQuoteResponse.ProtoReflect.Descriptor instead. +func (*OutQuoteResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{13} +} -func (m *OutQuoteResponse) GetSwapFeeSat() int64 { - if m != nil { - return m.SwapFeeSat +func (x *OutQuoteResponse) GetSwapFeeSat() int64 { + if x != nil { + return x.SwapFeeSat } return 0 } -func (m *OutQuoteResponse) GetPrepayAmtSat() int64 { - if m != nil { - return m.PrepayAmtSat +func (x *OutQuoteResponse) GetPrepayAmtSat() int64 { + if x != nil { + return x.PrepayAmtSat } return 0 } -func (m *OutQuoteResponse) GetHtlcSweepFeeSat() int64 { - if m != nil { - return m.HtlcSweepFeeSat +func (x *OutQuoteResponse) GetHtlcSweepFeeSat() int64 { + if x != nil { + return x.HtlcSweepFeeSat } return 0 } -func (m *OutQuoteResponse) GetSwapPaymentDest() []byte { - if m != nil { - return m.SwapPaymentDest +func (x *OutQuoteResponse) GetSwapPaymentDest() []byte { + if x != nil { + return x.SwapPaymentDest } return nil } -func (m *OutQuoteResponse) GetCltvDelta() int32 { - if m != nil { - return m.CltvDelta +func (x *OutQuoteResponse) GetCltvDelta() int32 { + if x != nil { + return x.CltvDelta } return 0 } -func (m *OutQuoteResponse) GetConfTarget() int32 { - if m != nil { - return m.ConfTarget +func (x *OutQuoteResponse) GetConfTarget() int32 { + if x != nil { + return x.ConfTarget } return 0 } type TokensRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *TokensRequest) Reset() { *m = TokensRequest{} } -func (m *TokensRequest) String() string { return proto.CompactTextString(m) } -func (*TokensRequest) ProtoMessage() {} -func (*TokensRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{14} +func (x *TokensRequest) Reset() { + *x = TokensRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TokensRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TokensRequest.Unmarshal(m, b) -} -func (m *TokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TokensRequest.Marshal(b, m, deterministic) +func (x *TokensRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TokensRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokensRequest.Merge(m, src) -} -func (m *TokensRequest) XXX_Size() int { - return xxx_messageInfo_TokensRequest.Size(m) -} -func (m *TokensRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TokensRequest.DiscardUnknown(m) + +func (*TokensRequest) ProtoMessage() {} + +func (x *TokensRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TokensRequest proto.InternalMessageInfo +// Deprecated: Use TokensRequest.ProtoReflect.Descriptor instead. +func (*TokensRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{14} +} type TokensResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //List of all tokens the daemon knows of, including old/expired tokens. - Tokens []*LsatToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Tokens []*LsatToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` } -func (m *TokensResponse) Reset() { *m = TokensResponse{} } -func (m *TokensResponse) String() string { return proto.CompactTextString(m) } -func (*TokensResponse) ProtoMessage() {} -func (*TokensResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{15} +func (x *TokensResponse) Reset() { + *x = TokensResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TokensResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TokensResponse.Unmarshal(m, b) +func (x *TokensResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TokensResponse.Marshal(b, m, deterministic) -} -func (m *TokensResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokensResponse.Merge(m, src) -} -func (m *TokensResponse) XXX_Size() int { - return xxx_messageInfo_TokensResponse.Size(m) -} -func (m *TokensResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TokensResponse.DiscardUnknown(m) + +func (*TokensResponse) ProtoMessage() {} + +func (x *TokensResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TokensResponse proto.InternalMessageInfo +// Deprecated: Use TokensResponse.ProtoReflect.Descriptor instead. +func (*TokensResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{15} +} -func (m *TokensResponse) GetTokens() []*LsatToken { - if m != nil { - return m.Tokens +func (x *TokensResponse) GetTokens() []*LsatToken { + if x != nil { + return x.Tokens } return nil } type LsatToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The base macaroon that was baked by the auth server. BaseMacaroon []byte `protobuf:"bytes,1,opt,name=base_macaroon,json=baseMacaroon,proto3" json:"base_macaroon,omitempty"` @@ -1568,125 +1816,140 @@ type LsatToken struct { // //Identifying attribute of this token in the store. Currently represents the //file name of the token where it's stored on the file system. - StorageName string `protobuf:"bytes,8,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + StorageName string `protobuf:"bytes,8,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` } -func (m *LsatToken) Reset() { *m = LsatToken{} } -func (m *LsatToken) String() string { return proto.CompactTextString(m) } -func (*LsatToken) ProtoMessage() {} -func (*LsatToken) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{16} +func (x *LsatToken) Reset() { + *x = LsatToken{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LsatToken) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LsatToken.Unmarshal(m, b) -} -func (m *LsatToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LsatToken.Marshal(b, m, deterministic) -} -func (m *LsatToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_LsatToken.Merge(m, src) +func (x *LsatToken) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LsatToken) XXX_Size() int { - return xxx_messageInfo_LsatToken.Size(m) -} -func (m *LsatToken) XXX_DiscardUnknown() { - xxx_messageInfo_LsatToken.DiscardUnknown(m) + +func (*LsatToken) ProtoMessage() {} + +func (x *LsatToken) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LsatToken proto.InternalMessageInfo +// Deprecated: Use LsatToken.ProtoReflect.Descriptor instead. +func (*LsatToken) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{16} +} -func (m *LsatToken) GetBaseMacaroon() []byte { - if m != nil { - return m.BaseMacaroon +func (x *LsatToken) GetBaseMacaroon() []byte { + if x != nil { + return x.BaseMacaroon } return nil } -func (m *LsatToken) GetPaymentHash() []byte { - if m != nil { - return m.PaymentHash +func (x *LsatToken) GetPaymentHash() []byte { + if x != nil { + return x.PaymentHash } return nil } -func (m *LsatToken) GetPaymentPreimage() []byte { - if m != nil { - return m.PaymentPreimage +func (x *LsatToken) GetPaymentPreimage() []byte { + if x != nil { + return x.PaymentPreimage } return nil } -func (m *LsatToken) GetAmountPaidMsat() int64 { - if m != nil { - return m.AmountPaidMsat +func (x *LsatToken) GetAmountPaidMsat() int64 { + if x != nil { + return x.AmountPaidMsat } return 0 } -func (m *LsatToken) GetRoutingFeePaidMsat() int64 { - if m != nil { - return m.RoutingFeePaidMsat +func (x *LsatToken) GetRoutingFeePaidMsat() int64 { + if x != nil { + return x.RoutingFeePaidMsat } return 0 } -func (m *LsatToken) GetTimeCreated() int64 { - if m != nil { - return m.TimeCreated +func (x *LsatToken) GetTimeCreated() int64 { + if x != nil { + return x.TimeCreated } return 0 } -func (m *LsatToken) GetExpired() bool { - if m != nil { - return m.Expired +func (x *LsatToken) GetExpired() bool { + if x != nil { + return x.Expired } return false } -func (m *LsatToken) GetStorageName() string { - if m != nil { - return m.StorageName +func (x *LsatToken) GetStorageName() string { + if x != nil { + return x.StorageName } return "" } type GetLiquidityParamsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GetLiquidityParamsRequest) Reset() { *m = GetLiquidityParamsRequest{} } -func (m *GetLiquidityParamsRequest) String() string { return proto.CompactTextString(m) } -func (*GetLiquidityParamsRequest) ProtoMessage() {} -func (*GetLiquidityParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{17} +func (x *GetLiquidityParamsRequest) Reset() { + *x = GetLiquidityParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetLiquidityParamsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLiquidityParamsRequest.Unmarshal(m, b) -} -func (m *GetLiquidityParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLiquidityParamsRequest.Marshal(b, m, deterministic) -} -func (m *GetLiquidityParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLiquidityParamsRequest.Merge(m, src) +func (x *GetLiquidityParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLiquidityParamsRequest) XXX_Size() int { - return xxx_messageInfo_GetLiquidityParamsRequest.Size(m) -} -func (m *GetLiquidityParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLiquidityParamsRequest.DiscardUnknown(m) + +func (*GetLiquidityParamsRequest) ProtoMessage() {} + +func (x *GetLiquidityParamsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetLiquidityParamsRequest proto.InternalMessageInfo +// Deprecated: Use GetLiquidityParamsRequest.ProtoReflect.Descriptor instead. +func (*GetLiquidityParamsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{17} +} type LiquidityParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //A set of liquidity rules that describe the desired liquidity balance. Rules []*LiquidityRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` @@ -1760,150 +2023,158 @@ type LiquidityParameters struct { //The maximum amount, expressed in satoshis, that the autoloop client will //dispatch a swap for. This value is subject to the server-side limits //specified by the LoopOutTerms endpoint. - MaxSwapAmount uint64 `protobuf:"varint,15,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxSwapAmount uint64 `protobuf:"varint,15,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` } -func (m *LiquidityParameters) Reset() { *m = LiquidityParameters{} } -func (m *LiquidityParameters) String() string { return proto.CompactTextString(m) } -func (*LiquidityParameters) ProtoMessage() {} -func (*LiquidityParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{18} +func (x *LiquidityParameters) Reset() { + *x = LiquidityParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LiquidityParameters) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LiquidityParameters.Unmarshal(m, b) -} -func (m *LiquidityParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LiquidityParameters.Marshal(b, m, deterministic) -} -func (m *LiquidityParameters) XXX_Merge(src proto.Message) { - xxx_messageInfo_LiquidityParameters.Merge(m, src) +func (x *LiquidityParameters) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LiquidityParameters) XXX_Size() int { - return xxx_messageInfo_LiquidityParameters.Size(m) -} -func (m *LiquidityParameters) XXX_DiscardUnknown() { - xxx_messageInfo_LiquidityParameters.DiscardUnknown(m) + +func (*LiquidityParameters) ProtoMessage() {} + +func (x *LiquidityParameters) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LiquidityParameters proto.InternalMessageInfo +// Deprecated: Use LiquidityParameters.ProtoReflect.Descriptor instead. +func (*LiquidityParameters) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{18} +} -func (m *LiquidityParameters) GetRules() []*LiquidityRule { - if m != nil { - return m.Rules +func (x *LiquidityParameters) GetRules() []*LiquidityRule { + if x != nil { + return x.Rules } return nil } -func (m *LiquidityParameters) GetFeePpm() uint64 { - if m != nil { - return m.FeePpm +func (x *LiquidityParameters) GetFeePpm() uint64 { + if x != nil { + return x.FeePpm } return 0 } -func (m *LiquidityParameters) GetSweepFeeRateSatPerVbyte() uint64 { - if m != nil { - return m.SweepFeeRateSatPerVbyte +func (x *LiquidityParameters) GetSweepFeeRateSatPerVbyte() uint64 { + if x != nil { + return x.SweepFeeRateSatPerVbyte } return 0 } -func (m *LiquidityParameters) GetMaxSwapFeePpm() uint64 { - if m != nil { - return m.MaxSwapFeePpm +func (x *LiquidityParameters) GetMaxSwapFeePpm() uint64 { + if x != nil { + return x.MaxSwapFeePpm } return 0 } -func (m *LiquidityParameters) GetMaxRoutingFeePpm() uint64 { - if m != nil { - return m.MaxRoutingFeePpm +func (x *LiquidityParameters) GetMaxRoutingFeePpm() uint64 { + if x != nil { + return x.MaxRoutingFeePpm } return 0 } -func (m *LiquidityParameters) GetMaxPrepayRoutingFeePpm() uint64 { - if m != nil { - return m.MaxPrepayRoutingFeePpm +func (x *LiquidityParameters) GetMaxPrepayRoutingFeePpm() uint64 { + if x != nil { + return x.MaxPrepayRoutingFeePpm } return 0 } -func (m *LiquidityParameters) GetMaxPrepaySat() uint64 { - if m != nil { - return m.MaxPrepaySat +func (x *LiquidityParameters) GetMaxPrepaySat() uint64 { + if x != nil { + return x.MaxPrepaySat } return 0 } -func (m *LiquidityParameters) GetMaxMinerFeeSat() uint64 { - if m != nil { - return m.MaxMinerFeeSat +func (x *LiquidityParameters) GetMaxMinerFeeSat() uint64 { + if x != nil { + return x.MaxMinerFeeSat } return 0 } -func (m *LiquidityParameters) GetSweepConfTarget() int32 { - if m != nil { - return m.SweepConfTarget +func (x *LiquidityParameters) GetSweepConfTarget() int32 { + if x != nil { + return x.SweepConfTarget } return 0 } -func (m *LiquidityParameters) GetFailureBackoffSec() uint64 { - if m != nil { - return m.FailureBackoffSec +func (x *LiquidityParameters) GetFailureBackoffSec() uint64 { + if x != nil { + return x.FailureBackoffSec } return 0 } -func (m *LiquidityParameters) GetAutoloop() bool { - if m != nil { - return m.Autoloop +func (x *LiquidityParameters) GetAutoloop() bool { + if x != nil { + return x.Autoloop } return false } -func (m *LiquidityParameters) GetAutoloopBudgetSat() uint64 { - if m != nil { - return m.AutoloopBudgetSat +func (x *LiquidityParameters) GetAutoloopBudgetSat() uint64 { + if x != nil { + return x.AutoloopBudgetSat } return 0 } -func (m *LiquidityParameters) GetAutoloopBudgetStartSec() uint64 { - if m != nil { - return m.AutoloopBudgetStartSec +func (x *LiquidityParameters) GetAutoloopBudgetStartSec() uint64 { + if x != nil { + return x.AutoloopBudgetStartSec } return 0 } -func (m *LiquidityParameters) GetAutoMaxInFlight() uint64 { - if m != nil { - return m.AutoMaxInFlight +func (x *LiquidityParameters) GetAutoMaxInFlight() uint64 { + if x != nil { + return x.AutoMaxInFlight } return 0 } -func (m *LiquidityParameters) GetMinSwapAmount() uint64 { - if m != nil { - return m.MinSwapAmount +func (x *LiquidityParameters) GetMinSwapAmount() uint64 { + if x != nil { + return x.MinSwapAmount } return 0 } -func (m *LiquidityParameters) GetMaxSwapAmount() uint64 { - if m != nil { - return m.MaxSwapAmount +func (x *LiquidityParameters) GetMaxSwapAmount() uint64 { + if x != nil { + return x.MaxSwapAmount } return 0 } type LiquidityRule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The short channel ID of the channel that this rule should be applied to. //This field may not be set when the pubkey field is set. @@ -1925,179 +2196,209 @@ type LiquidityRule struct { // //THRESHOLD: The percentage of total capacity that outgoing capacity should //not drop beneath. - OutgoingThreshold uint32 `protobuf:"varint,4,opt,name=outgoing_threshold,json=outgoingThreshold,proto3" json:"outgoing_threshold,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OutgoingThreshold uint32 `protobuf:"varint,4,opt,name=outgoing_threshold,json=outgoingThreshold,proto3" json:"outgoing_threshold,omitempty"` } -func (m *LiquidityRule) Reset() { *m = LiquidityRule{} } -func (m *LiquidityRule) String() string { return proto.CompactTextString(m) } -func (*LiquidityRule) ProtoMessage() {} -func (*LiquidityRule) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{19} +func (x *LiquidityRule) Reset() { + *x = LiquidityRule{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LiquidityRule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LiquidityRule.Unmarshal(m, b) -} -func (m *LiquidityRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LiquidityRule.Marshal(b, m, deterministic) -} -func (m *LiquidityRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_LiquidityRule.Merge(m, src) -} -func (m *LiquidityRule) XXX_Size() int { - return xxx_messageInfo_LiquidityRule.Size(m) +func (x *LiquidityRule) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LiquidityRule) XXX_DiscardUnknown() { - xxx_messageInfo_LiquidityRule.DiscardUnknown(m) + +func (*LiquidityRule) ProtoMessage() {} + +func (x *LiquidityRule) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LiquidityRule proto.InternalMessageInfo +// Deprecated: Use LiquidityRule.ProtoReflect.Descriptor instead. +func (*LiquidityRule) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{19} +} -func (m *LiquidityRule) GetChannelId() uint64 { - if m != nil { - return m.ChannelId +func (x *LiquidityRule) GetChannelId() uint64 { + if x != nil { + return x.ChannelId } return 0 } -func (m *LiquidityRule) GetPubkey() []byte { - if m != nil { - return m.Pubkey +func (x *LiquidityRule) GetPubkey() []byte { + if x != nil { + return x.Pubkey } return nil } -func (m *LiquidityRule) GetType() LiquidityRuleType { - if m != nil { - return m.Type +func (x *LiquidityRule) GetType() LiquidityRuleType { + if x != nil { + return x.Type } return LiquidityRuleType_UNKNOWN } -func (m *LiquidityRule) GetIncomingThreshold() uint32 { - if m != nil { - return m.IncomingThreshold +func (x *LiquidityRule) GetIncomingThreshold() uint32 { + if x != nil { + return x.IncomingThreshold } return 0 } -func (m *LiquidityRule) GetOutgoingThreshold() uint32 { - if m != nil { - return m.OutgoingThreshold +func (x *LiquidityRule) GetOutgoingThreshold() uint32 { + if x != nil { + return x.OutgoingThreshold } return 0 } type SetLiquidityParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //Parameters is the desired new set of parameters for the liquidity management //subsystem. Note that the current set of parameters will be completely //overwritten by the parameters provided (if they are valid), so the full set //of parameters should be provided for each call. - Parameters *LiquidityParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Parameters *LiquidityParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` } -func (m *SetLiquidityParamsRequest) Reset() { *m = SetLiquidityParamsRequest{} } -func (m *SetLiquidityParamsRequest) String() string { return proto.CompactTextString(m) } -func (*SetLiquidityParamsRequest) ProtoMessage() {} -func (*SetLiquidityParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{20} +func (x *SetLiquidityParamsRequest) Reset() { + *x = SetLiquidityParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetLiquidityParamsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetLiquidityParamsRequest.Unmarshal(m, b) -} -func (m *SetLiquidityParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetLiquidityParamsRequest.Marshal(b, m, deterministic) -} -func (m *SetLiquidityParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetLiquidityParamsRequest.Merge(m, src) +func (x *SetLiquidityParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetLiquidityParamsRequest) XXX_Size() int { - return xxx_messageInfo_SetLiquidityParamsRequest.Size(m) -} -func (m *SetLiquidityParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetLiquidityParamsRequest.DiscardUnknown(m) + +func (*SetLiquidityParamsRequest) ProtoMessage() {} + +func (x *SetLiquidityParamsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetLiquidityParamsRequest proto.InternalMessageInfo +// Deprecated: Use SetLiquidityParamsRequest.ProtoReflect.Descriptor instead. +func (*SetLiquidityParamsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{20} +} -func (m *SetLiquidityParamsRequest) GetParameters() *LiquidityParameters { - if m != nil { - return m.Parameters +func (x *SetLiquidityParamsRequest) GetParameters() *LiquidityParameters { + if x != nil { + return x.Parameters } return nil } type SetLiquidityParamsResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SetLiquidityParamsResponse) Reset() { *m = SetLiquidityParamsResponse{} } -func (m *SetLiquidityParamsResponse) String() string { return proto.CompactTextString(m) } -func (*SetLiquidityParamsResponse) ProtoMessage() {} -func (*SetLiquidityParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{21} +func (x *SetLiquidityParamsResponse) Reset() { + *x = SetLiquidityParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetLiquidityParamsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetLiquidityParamsResponse.Unmarshal(m, b) -} -func (m *SetLiquidityParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetLiquidityParamsResponse.Marshal(b, m, deterministic) -} -func (m *SetLiquidityParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetLiquidityParamsResponse.Merge(m, src) -} -func (m *SetLiquidityParamsResponse) XXX_Size() int { - return xxx_messageInfo_SetLiquidityParamsResponse.Size(m) -} -func (m *SetLiquidityParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetLiquidityParamsResponse.DiscardUnknown(m) +func (x *SetLiquidityParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SetLiquidityParamsResponse proto.InternalMessageInfo +func (*SetLiquidityParamsResponse) ProtoMessage() {} -type SuggestSwapsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SetLiquidityParamsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *SuggestSwapsRequest) Reset() { *m = SuggestSwapsRequest{} } -func (m *SuggestSwapsRequest) String() string { return proto.CompactTextString(m) } -func (*SuggestSwapsRequest) ProtoMessage() {} -func (*SuggestSwapsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{22} +// Deprecated: Use SetLiquidityParamsResponse.ProtoReflect.Descriptor instead. +func (*SetLiquidityParamsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{21} } -func (m *SuggestSwapsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SuggestSwapsRequest.Unmarshal(m, b) -} -func (m *SuggestSwapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SuggestSwapsRequest.Marshal(b, m, deterministic) +type SuggestSwapsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SuggestSwapsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SuggestSwapsRequest.Merge(m, src) + +func (x *SuggestSwapsRequest) Reset() { + *x = SuggestSwapsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SuggestSwapsRequest) XXX_Size() int { - return xxx_messageInfo_SuggestSwapsRequest.Size(m) + +func (x *SuggestSwapsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SuggestSwapsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SuggestSwapsRequest.DiscardUnknown(m) + +func (*SuggestSwapsRequest) ProtoMessage() {} + +func (x *SuggestSwapsRequest) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SuggestSwapsRequest proto.InternalMessageInfo +// Deprecated: Use SuggestSwapsRequest.ProtoReflect.Descriptor instead. +func (*SuggestSwapsRequest) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{22} +} type Disqualified struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The short channel ID of the channel that was excluded from our suggestions. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` @@ -2106,312 +2407,949 @@ type Disqualified struct { Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` // //The reason that we excluded the channel from the our suggestions. - Reason AutoReason `protobuf:"varint,2,opt,name=reason,proto3,enum=looprpc.AutoReason" json:"reason,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Reason AutoReason `protobuf:"varint,2,opt,name=reason,proto3,enum=looprpc.AutoReason" json:"reason,omitempty"` } -func (m *Disqualified) Reset() { *m = Disqualified{} } -func (m *Disqualified) String() string { return proto.CompactTextString(m) } -func (*Disqualified) ProtoMessage() {} -func (*Disqualified) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{23} +func (x *Disqualified) Reset() { + *x = Disqualified{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Disqualified) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Disqualified.Unmarshal(m, b) -} -func (m *Disqualified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Disqualified.Marshal(b, m, deterministic) -} -func (m *Disqualified) XXX_Merge(src proto.Message) { - xxx_messageInfo_Disqualified.Merge(m, src) +func (x *Disqualified) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Disqualified) XXX_Size() int { - return xxx_messageInfo_Disqualified.Size(m) -} -func (m *Disqualified) XXX_DiscardUnknown() { - xxx_messageInfo_Disqualified.DiscardUnknown(m) + +func (*Disqualified) ProtoMessage() {} + +func (x *Disqualified) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Disqualified proto.InternalMessageInfo +// Deprecated: Use Disqualified.ProtoReflect.Descriptor instead. +func (*Disqualified) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{23} +} -func (m *Disqualified) GetChannelId() uint64 { - if m != nil { - return m.ChannelId +func (x *Disqualified) GetChannelId() uint64 { + if x != nil { + return x.ChannelId } return 0 } -func (m *Disqualified) GetPubkey() []byte { - if m != nil { - return m.Pubkey +func (x *Disqualified) GetPubkey() []byte { + if x != nil { + return x.Pubkey } return nil } -func (m *Disqualified) GetReason() AutoReason { - if m != nil { - return m.Reason +func (x *Disqualified) GetReason() AutoReason { + if x != nil { + return x.Reason } return AutoReason_AUTO_REASON_UNKNOWN } type SuggestSwapsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // //The set of recommended loop outs. LoopOut []*LoopOutRequest `protobuf:"bytes,1,rep,name=loop_out,json=loopOut,proto3" json:"loop_out,omitempty"` // //Disqualified contains the set of channels that swaps are not recommended //for. - Disqualified []*Disqualified `protobuf:"bytes,2,rep,name=disqualified,proto3" json:"disqualified,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Disqualified []*Disqualified `protobuf:"bytes,2,rep,name=disqualified,proto3" json:"disqualified,omitempty"` } -func (m *SuggestSwapsResponse) Reset() { *m = SuggestSwapsResponse{} } -func (m *SuggestSwapsResponse) String() string { return proto.CompactTextString(m) } -func (*SuggestSwapsResponse) ProtoMessage() {} -func (*SuggestSwapsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_014de31d7ac8c57c, []int{24} +func (x *SuggestSwapsResponse) Reset() { + *x = SuggestSwapsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_client_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SuggestSwapsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SuggestSwapsResponse.Unmarshal(m, b) -} -func (m *SuggestSwapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SuggestSwapsResponse.Marshal(b, m, deterministic) +func (x *SuggestSwapsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SuggestSwapsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SuggestSwapsResponse.Merge(m, src) -} -func (m *SuggestSwapsResponse) XXX_Size() int { - return xxx_messageInfo_SuggestSwapsResponse.Size(m) -} -func (m *SuggestSwapsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SuggestSwapsResponse.DiscardUnknown(m) + +func (*SuggestSwapsResponse) ProtoMessage() {} + +func (x *SuggestSwapsResponse) ProtoReflect() protoreflect.Message { + mi := &file_client_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SuggestSwapsResponse proto.InternalMessageInfo +// Deprecated: Use SuggestSwapsResponse.ProtoReflect.Descriptor instead. +func (*SuggestSwapsResponse) Descriptor() ([]byte, []int) { + return file_client_proto_rawDescGZIP(), []int{24} +} -func (m *SuggestSwapsResponse) GetLoopOut() []*LoopOutRequest { - if m != nil { - return m.LoopOut +func (x *SuggestSwapsResponse) GetLoopOut() []*LoopOutRequest { + if x != nil { + return x.LoopOut } return nil } -func (m *SuggestSwapsResponse) GetDisqualified() []*Disqualified { - if m != nil { - return m.Disqualified +func (x *SuggestSwapsResponse) GetDisqualified() []*Disqualified { + if x != nil { + return x.Disqualified } return nil } -func init() { - proto.RegisterEnum("looprpc.SwapType", SwapType_name, SwapType_value) - proto.RegisterEnum("looprpc.SwapState", SwapState_name, SwapState_value) - proto.RegisterEnum("looprpc.FailureReason", FailureReason_name, FailureReason_value) - proto.RegisterEnum("looprpc.LiquidityRuleType", LiquidityRuleType_name, LiquidityRuleType_value) - proto.RegisterEnum("looprpc.AutoReason", AutoReason_name, AutoReason_value) - proto.RegisterType((*LoopOutRequest)(nil), "looprpc.LoopOutRequest") - proto.RegisterType((*LoopInRequest)(nil), "looprpc.LoopInRequest") - proto.RegisterType((*SwapResponse)(nil), "looprpc.SwapResponse") - proto.RegisterType((*MonitorRequest)(nil), "looprpc.MonitorRequest") - proto.RegisterType((*SwapStatus)(nil), "looprpc.SwapStatus") - proto.RegisterType((*ListSwapsRequest)(nil), "looprpc.ListSwapsRequest") - proto.RegisterType((*ListSwapsResponse)(nil), "looprpc.ListSwapsResponse") - proto.RegisterType((*SwapInfoRequest)(nil), "looprpc.SwapInfoRequest") - proto.RegisterType((*TermsRequest)(nil), "looprpc.TermsRequest") - proto.RegisterType((*InTermsResponse)(nil), "looprpc.InTermsResponse") - proto.RegisterType((*OutTermsResponse)(nil), "looprpc.OutTermsResponse") - proto.RegisterType((*QuoteRequest)(nil), "looprpc.QuoteRequest") - proto.RegisterType((*InQuoteResponse)(nil), "looprpc.InQuoteResponse") - proto.RegisterType((*OutQuoteResponse)(nil), "looprpc.OutQuoteResponse") - proto.RegisterType((*TokensRequest)(nil), "looprpc.TokensRequest") - proto.RegisterType((*TokensResponse)(nil), "looprpc.TokensResponse") - proto.RegisterType((*LsatToken)(nil), "looprpc.LsatToken") - proto.RegisterType((*GetLiquidityParamsRequest)(nil), "looprpc.GetLiquidityParamsRequest") - proto.RegisterType((*LiquidityParameters)(nil), "looprpc.LiquidityParameters") - proto.RegisterType((*LiquidityRule)(nil), "looprpc.LiquidityRule") - proto.RegisterType((*SetLiquidityParamsRequest)(nil), "looprpc.SetLiquidityParamsRequest") - proto.RegisterType((*SetLiquidityParamsResponse)(nil), "looprpc.SetLiquidityParamsResponse") - proto.RegisterType((*SuggestSwapsRequest)(nil), "looprpc.SuggestSwapsRequest") - proto.RegisterType((*Disqualified)(nil), "looprpc.Disqualified") - proto.RegisterType((*SuggestSwapsResponse)(nil), "looprpc.SuggestSwapsResponse") -} - -func init() { proto.RegisterFile("client.proto", fileDescriptor_014de31d7ac8c57c) } - -var fileDescriptor_014de31d7ac8c57c = []byte{ - // 2489 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x73, 0x1b, 0xc7, - 0xf1, 0x17, 0xde, 0x40, 0x63, 0x01, 0x2c, 0x87, 0x12, 0x05, 0xc2, 0xb2, 0x4d, 0xc1, 0xd6, 0xdf, - 0x34, 0x6d, 0xcb, 0xff, 0xd0, 0x87, 0x94, 0x5c, 0x76, 0xca, 0x20, 0xb8, 0x14, 0x57, 0x22, 0x01, - 0x78, 0xb1, 0x94, 0x4b, 0x87, 0xd4, 0xd6, 0x10, 0x18, 0x10, 0x5b, 0xc6, 0x3e, 0xb4, 0x3b, 0x90, - 0xc8, 0x53, 0x4e, 0xbe, 0xe4, 0x63, 0xe4, 0x90, 0x5b, 0xaa, 0x72, 0xc8, 0x2d, 0x5f, 0x21, 0xc7, - 0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d1, - 0x10, 0xd4, 0x73, 0x41, 0xec, 0xaa, 0xd0, 0x3c, 0xf7, 0x5c, 0x9b, 0x7a, 0x81, 0x8c, 0x79, 0xf7, - 0x4f, 0x45, 0x00, 0x76, 0xfb, 0x31, 0xc5, 0x74, 0x19, 0xae, 0xad, 0x18, 0xcc, 0x1b, 0xf9, 0x8d, - 0xde, 0xa8, 0xaf, 0x7a, 0xa3, 0x48, 0x6f, 0x7c, 0x91, 0x06, 0xcd, 0xc3, 0xad, 0xa7, 0xb2, 0x3a, - 0x3d, 0x65, 0x67, 0x98, 0x37, 0x3e, 0x31, 0x38, 0x1b, 0xed, 0x43, 0x29, 0xa4, 0x98, 0x8a, 0x8a, - 0xd1, 0x3c, 0x44, 0x19, 0x1c, 0xb3, 0x85, 0x18, 0x02, 0x80, 0xbe, 0x85, 0xe6, 0x0c, 0xdb, 0x8b, - 0x65, 0x40, 0xac, 0x80, 0xe0, 0xd0, 0x73, 0x79, 0x26, 0x37, 0x0f, 0x77, 0x62, 0x91, 0x13, 0xc1, - 0x36, 0x38, 0xd7, 0x68, 0xcc, 0xd2, 0x3f, 0xd1, 0x27, 0xd0, 0x92, 0xa1, 0x66, 0xef, 0x89, 0xda, - 0x4e, 0x54, 0x79, 0x9a, 0x09, 0xd9, 0xb4, 0x1d, 0x66, 0x91, 0xca, 0x93, 0x74, 0xe9, 0x4f, 0x31, - 0x25, 0x02, 0x29, 0xea, 0x4f, 0x93, 0xd1, 0x2f, 0x38, 0x99, 0x23, 0x57, 0x03, 0x5e, 0x59, 0x1f, - 0xf0, 0xf5, 0x01, 0x54, 0x36, 0x04, 0x70, 0x43, 0x7a, 0x34, 0x36, 0xa5, 0xc7, 0x87, 0x50, 0x9f, - 0x78, 0x21, 0xb5, 0x44, 0x7c, 0x79, 0x56, 0x17, 0x0c, 0x60, 0xa4, 0x31, 0xa7, 0xa0, 0xc7, 0xa0, - 0x70, 0x80, 0xe7, 0x4e, 0xe6, 0xd8, 0x76, 0x79, 0x91,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df, 0x77, 0x3e, - 0xba, 0x13, 0x23, 0xcd, 0x7e, 0x09, 0x4a, 0xba, 0x59, 0xa2, 0xc4, 0x98, 0x35, 0xfd, 0xbc, 0xf3, - 0xfe, 0x06, 0xae, 0x50, 0x76, 0x59, 0xe6, 0xff, 0x84, 0xf8, 0xea, 0x5f, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x9c, 0x3d, 0x34, 0xbe, 0x94, 0x18, 0x00, 0x00, +var File_client_proto protoreflect.FileDescriptor + +var file_client_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x22, 0xad, 0x04, 0x0a, 0x0e, 0x4c, 0x6f, 0x6f, 0x70, + 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x64, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, + 0x12, 0x2f, 0x0a, 0x14, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x72, 0x6f, 0x75, + 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, + 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x65, + 0x65, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x5f, + 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x52, 0x6f, 0x75, 0x74, + 0x69, 0x6e, 0x67, 0x46, 0x65, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, + 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x61, + 0x78, 0x53, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, + 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x5f, 0x61, 0x6d, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x41, 0x6d, 0x74, 0x12, 0x22, + 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x46, + 0x65, 0x65, 0x12, 0x2c, 0x0a, 0x10, 0x6c, 0x6f, 0x6f, 0x70, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x63, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x0e, 0x6c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, + 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x61, + 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x04, 0x52, 0x0f, 0x6f, 0x75, 0x74, + 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x11, + 0x73, 0x77, 0x65, 0x65, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x73, 0x77, 0x65, 0x65, 0x70, 0x43, 0x6f, + 0x6e, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x68, 0x74, 0x6c, 0x63, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x68, 0x74, 0x6c, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x73, 0x77, 0x61, 0x70, 0x5f, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, + 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x73, 0x77, 0x61, 0x70, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x61, 0x64, 0x6c, + 0x69, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x85, 0x02, 0x0a, 0x0d, 0x4c, 0x6f, 0x6f, 0x70, + 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x6d, + 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x12, 0x22, 0x0a, + 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x46, 0x65, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x48, 0x6f, 0x70, 0x12, 0x23, 0x0a, 0x0d, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x68, 0x74, 0x6c, 0x63, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x48, 0x74, 0x6c, + 0x63, 0x12, 0x28, 0x0a, 0x10, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x68, 0x74, 0x6c, + 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0xe9, 0x01, 0x0a, 0x0c, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x12, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, + 0x25, 0x0a, 0x0c, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x68, 0x74, 0x6c, 0x63, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6e, 0x70, 0x32, 0x77, 0x73, 0x68, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x11, 0x68, 0x74, 0x6c, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x4e, 0x70, 0x32, 0x77, 0x73, 0x68, 0x12, 0x2c, 0x0a, 0x12, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x32, 0x77, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x68, 0x74, 0x6c, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, + 0x32, 0x77, 0x73, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x4d, + 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb4, 0x04, + 0x0a, 0x0a, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, + 0x61, 0x6d, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x12, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6c, 0x6f, + 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x77, 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x77, + 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, + 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0d, + 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x27, 0x0a, + 0x0f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x25, 0x0a, 0x0c, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x68, 0x74, 0x6c, 0x63, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x68, 0x74, 0x6c, 0x63, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x32, 0x77, 0x73, 0x68, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x68, 0x74, 0x6c, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x50, 0x32, 0x77, 0x73, 0x68, 0x12, 0x2e, 0x0a, 0x13, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6e, 0x70, 0x32, 0x77, 0x73, 0x68, 0x18, 0x0d, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x68, 0x74, 0x6c, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, + 0x70, 0x32, 0x77, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x73, 0x74, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x6f, 0x73, 0x74, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x73, 0x74, 0x5f, 0x6f, + 0x6e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6f, + 0x73, 0x74, 0x4f, 0x6e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x73, + 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0c, 0x63, 0x6f, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x22, 0x12, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x61, 0x70, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3e, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x77, 0x61, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, + 0x05, 0x73, 0x77, 0x61, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, + 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x05, 0x73, 0x77, 0x61, 0x70, 0x73, 0x22, 0x21, 0x0a, 0x0f, 0x53, 0x77, 0x61, 0x70, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x22, 0x0e, 0x0a, 0x0c, 0x54, + 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7f, 0x0a, 0x0f, 0x49, + 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, + 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, + 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, + 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x4a, 0x04, + 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, + 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0xcc, 0x01, 0x0a, + 0x10, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x53, + 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, + 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, + 0x6c, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x43, 0x6c, + 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x63, + 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x4a, 0x04, 0x08, + 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, + 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0xa2, 0x01, 0x0a, 0x0c, + 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, + 0x61, 0x6d, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x6d, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, + 0x23, 0x0a, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x68, 0x74, 0x6c, 0x63, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x48, 0x74, 0x6c, 0x63, 0x12, 0x3a, 0x0a, 0x19, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x73, 0x77, 0x61, 0x70, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, + 0x22, 0xb0, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, + 0x5f, 0x73, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x77, 0x61, 0x70, + 0x46, 0x65, 0x65, 0x53, 0x61, 0x74, 0x12, 0x2f, 0x0a, 0x14, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x73, 0x61, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x68, 0x74, 0x6c, 0x63, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, + 0x68, 0x46, 0x65, 0x65, 0x53, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x74, 0x76, 0x5f, + 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x6c, 0x74, + 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x63, 0x6f, 0x6e, + 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, + 0x04, 0x10, 0x05, 0x22, 0xf3, 0x01, 0x0a, 0x10, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x77, 0x61, 0x70, + 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x73, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, + 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x53, 0x61, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, + 0x65, 0x70, 0x61, 0x79, 0x5f, 0x61, 0x6d, 0x74, 0x5f, 0x73, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x41, 0x6d, 0x74, 0x53, 0x61, 0x74, + 0x12, 0x2b, 0x0a, 0x12, 0x68, 0x74, 0x6c, 0x63, 0x5f, 0x73, 0x77, 0x65, 0x65, 0x70, 0x5f, 0x66, + 0x65, 0x65, 0x5f, 0x73, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x68, 0x74, + 0x6c, 0x63, 0x53, 0x77, 0x65, 0x65, 0x70, 0x46, 0x65, 0x65, 0x53, 0x61, 0x74, 0x12, 0x2a, 0x0a, + 0x11, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, + 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x77, 0x61, 0x70, 0x50, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x74, + 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, + 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, + 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x63, + 0x6f, 0x6e, 0x66, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x0f, 0x0a, 0x0d, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3c, 0x0a, 0x0e, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6c, + 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x73, 0x61, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0xbb, 0x02, 0x0a, 0x09, 0x4c, 0x73, 0x61, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, + 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x62, + 0x61, 0x73, 0x65, 0x4d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x70, + 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x29, + 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x69, 0x64, 0x5f, 0x6d, 0x73, 0x61, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x69, 0x64, 0x4d, + 0x73, 0x61, 0x74, 0x12, 0x31, 0x0a, 0x15, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x66, + 0x65, 0x65, 0x5f, 0x70, 0x61, 0x69, 0x64, 0x5f, 0x6d, 0x73, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x12, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x65, 0x65, 0x50, 0x61, + 0x69, 0x64, 0x4d, 0x73, 0x61, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, + 0x6d, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x1b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x71, + 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0xe0, 0x05, 0x0a, 0x13, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x6f, 0x6f, + 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x52, 0x75, + 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x65, 0x65, + 0x5f, 0x70, 0x70, 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x66, 0x65, 0x65, 0x50, + 0x70, 0x6d, 0x12, 0x3d, 0x0a, 0x1c, 0x73, 0x77, 0x65, 0x65, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x5f, + 0x72, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x61, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x76, 0x62, 0x79, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x73, 0x77, 0x65, 0x65, 0x70, 0x46, + 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, 0x53, 0x61, 0x74, 0x50, 0x65, 0x72, 0x56, 0x62, 0x79, 0x74, + 0x65, 0x12, 0x27, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, + 0x65, 0x5f, 0x70, 0x70, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, + 0x53, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x50, 0x70, 0x6d, 0x12, 0x2d, 0x0a, 0x13, 0x6d, 0x61, + 0x78, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x70, 0x70, + 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x52, 0x6f, 0x75, 0x74, + 0x69, 0x6e, 0x67, 0x46, 0x65, 0x65, 0x50, 0x70, 0x6d, 0x12, 0x3a, 0x0a, 0x1a, 0x6d, 0x61, 0x78, + 0x5f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x66, 0x65, 0x65, 0x5f, 0x70, 0x70, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x6d, + 0x61, 0x78, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x46, + 0x65, 0x65, 0x50, 0x70, 0x6d, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x65, + 0x70, 0x61, 0x79, 0x5f, 0x73, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6d, + 0x61, 0x78, 0x50, 0x72, 0x65, 0x70, 0x61, 0x79, 0x53, 0x61, 0x74, 0x12, 0x29, 0x0a, 0x11, 0x6d, + 0x61, 0x78, 0x5f, 0x6d, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x73, 0x61, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x4d, 0x69, 0x6e, 0x65, 0x72, + 0x46, 0x65, 0x65, 0x53, 0x61, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x77, 0x65, 0x65, 0x70, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0f, 0x73, 0x77, 0x65, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x62, 0x61, + 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x11, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x53, + 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x6f, 0x6c, 0x6f, 0x6f, 0x70, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x75, 0x74, 0x6f, 0x6c, 0x6f, 0x6f, 0x70, 0x12, 0x2e, + 0x0a, 0x13, 0x61, 0x75, 0x74, 0x6f, 0x6c, 0x6f, 0x6f, 0x70, 0x5f, 0x62, 0x75, 0x64, 0x67, 0x65, + 0x74, 0x5f, 0x73, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x61, 0x75, 0x74, + 0x6f, 0x6c, 0x6f, 0x6f, 0x70, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x53, 0x61, 0x74, 0x12, 0x39, + 0x0a, 0x19, 0x61, 0x75, 0x74, 0x6f, 0x6c, 0x6f, 0x6f, 0x70, 0x5f, 0x62, 0x75, 0x64, 0x67, 0x65, + 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x16, 0x61, 0x75, 0x74, 0x6f, 0x6c, 0x6f, 0x6f, 0x70, 0x42, 0x75, 0x64, 0x67, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x63, 0x12, 0x2b, 0x0a, 0x12, 0x61, 0x75, 0x74, + 0x6f, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x5f, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x61, 0x75, 0x74, 0x6f, 0x4d, 0x61, 0x78, 0x49, 0x6e, + 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, + 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, + 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, + 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xd4, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x71, 0x75, 0x69, + 0x64, 0x69, 0x74, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, + 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, + 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, + 0x79, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x2d, 0x0a, 0x12, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x68, 0x72, 0x65, + 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x69, 0x6e, 0x63, + 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x2d, + 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, + 0x6f, 0x69, 0x6e, 0x67, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x59, 0x0a, + 0x19, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0a, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, + 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x0a, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x1c, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x4c, + 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, + 0x74, 0x53, 0x77, 0x61, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x72, 0x0a, + 0x0c, 0x44, 0x69, 0x73, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x41, + 0x75, 0x74, 0x6f, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x14, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x53, 0x77, 0x61, + 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x6c, 0x6f, + 0x6f, 0x70, 0x5f, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, + 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x6c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x39, + 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x44, + 0x69, 0x73, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x0c, 0x64, 0x69, 0x73, + 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2a, 0x25, 0x0a, 0x08, 0x53, 0x77, 0x61, + 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x4f, 0x55, + 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x49, 0x4e, 0x10, 0x01, + 0x2a, 0x73, 0x0a, 0x09, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0d, 0x0a, + 0x09, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, + 0x50, 0x52, 0x45, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x52, 0x45, 0x56, 0x45, 0x41, 0x4c, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x50, 0x55, 0x42, 0x4c, + 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, + 0x53, 0x53, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, + 0x12, 0x13, 0x0a, 0x0f, 0x49, 0x4e, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x54, + 0x4c, 0x45, 0x44, 0x10, 0x05, 0x2a, 0xed, 0x01, 0x0a, 0x0d, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x41, 0x49, 0x4c, 0x55, + 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, + 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, + 0x4f, 0x4e, 0x5f, 0x4f, 0x46, 0x46, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x1a, 0x0a, + 0x16, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, + 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x02, 0x12, 0x20, 0x0a, 0x1c, 0x46, 0x41, 0x49, + 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x53, 0x57, 0x45, 0x45, + 0x50, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x03, 0x12, 0x25, 0x0a, 0x21, 0x46, + 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, + 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, + 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, + 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4f, 0x52, 0x41, 0x52, 0x59, 0x10, 0x05, + 0x12, 0x23, 0x0a, 0x1f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, + 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x4d, 0x4f, + 0x55, 0x4e, 0x54, 0x10, 0x06, 0x2a, 0x2f, 0x0a, 0x11, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, + 0x74, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x48, 0x52, 0x45, 0x53, + 0x48, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x2a, 0xa6, 0x03, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x6f, 0x52, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, + 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x22, + 0x0a, 0x1e, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x55, + 0x44, 0x47, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, + 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, + 0x4e, 0x5f, 0x53, 0x57, 0x45, 0x45, 0x50, 0x5f, 0x46, 0x45, 0x45, 0x53, 0x10, 0x02, 0x12, 0x1e, + 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x55, + 0x44, 0x47, 0x45, 0x54, 0x5f, 0x45, 0x4c, 0x41, 0x50, 0x53, 0x45, 0x44, 0x10, 0x03, 0x12, 0x19, + 0x0a, 0x15, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, + 0x5f, 0x46, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, + 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x53, 0x57, 0x41, 0x50, 0x5f, 0x46, 0x45, + 0x45, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, + 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4e, 0x45, 0x52, 0x5f, 0x46, 0x45, 0x45, 0x10, 0x06, 0x12, 0x16, + 0x0a, 0x12, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x50, 0x52, + 0x45, 0x50, 0x41, 0x59, 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, + 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x42, 0x41, + 0x43, 0x4b, 0x4f, 0x46, 0x46, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x4f, 0x5f, + 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x10, + 0x09, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, + 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x49, 0x4e, 0x10, 0x0a, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x55, + 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4c, 0x49, 0x51, 0x55, 0x49, 0x44, + 0x49, 0x54, 0x59, 0x5f, 0x4f, 0x4b, 0x10, 0x0b, 0x12, 0x23, 0x0a, 0x1f, 0x41, 0x55, 0x54, 0x4f, + 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x55, 0x44, 0x47, 0x45, 0x54, 0x5f, 0x49, + 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x0c, 0x12, 0x20, 0x0a, + 0x1c, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x46, 0x45, 0x45, + 0x5f, 0x49, 0x4e, 0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x0d, 0x32, + 0x8a, 0x07, 0x0a, 0x0a, 0x53, 0x77, 0x61, 0x70, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x39, + 0x0a, 0x07, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x17, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, + 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x77, 0x61, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x4c, 0x6f, 0x6f, + 0x70, 0x49, 0x6e, 0x12, 0x16, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, + 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x6f, + 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x2e, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x30, 0x01, 0x12, 0x42, 0x0a, + 0x09, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x61, 0x70, 0x73, 0x12, 0x19, 0x2e, 0x6c, 0x6f, 0x6f, + 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x61, 0x70, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x61, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x39, 0x0a, 0x08, 0x53, 0x77, 0x61, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x2e, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x77, 0x61, 0x70, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, + 0x63, 0x2e, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x40, 0x0a, 0x0c, + 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x15, 0x2e, 0x6c, + 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4f, 0x75, + 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, + 0x0a, 0x0c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x15, + 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, + 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x41, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, + 0x6d, 0x73, 0x12, 0x15, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x65, 0x72, + 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, + 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, + 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, + 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6c, + 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4c, 0x73, 0x61, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, + 0x63, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x17, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4c, + 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x22, + 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, + 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x69, 0x71, + 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x12, 0x5d, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6c, 0x6f, 0x6f, + 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4b, 0x0a, 0x0c, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x53, 0x77, 0x61, 0x70, 0x73, 0x12, + 0x1c, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, + 0x74, 0x53, 0x77, 0x61, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x53, + 0x77, 0x61, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x25, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x6e, 0x69, 0x6e, 0x67, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x6c, 0x6f, + 0x6f, 0x70, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_client_proto_rawDescOnce sync.Once + file_client_proto_rawDescData = file_client_proto_rawDesc +) + +func file_client_proto_rawDescGZIP() []byte { + file_client_proto_rawDescOnce.Do(func() { + file_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_client_proto_rawDescData) + }) + return file_client_proto_rawDescData +} + +var file_client_proto_enumTypes = make([]protoimpl.EnumInfo, 5) +var file_client_proto_msgTypes = make([]protoimpl.MessageInfo, 25) +var file_client_proto_goTypes = []interface{}{ + (SwapType)(0), // 0: looprpc.SwapType + (SwapState)(0), // 1: looprpc.SwapState + (FailureReason)(0), // 2: looprpc.FailureReason + (LiquidityRuleType)(0), // 3: looprpc.LiquidityRuleType + (AutoReason)(0), // 4: looprpc.AutoReason + (*LoopOutRequest)(nil), // 5: looprpc.LoopOutRequest + (*LoopInRequest)(nil), // 6: looprpc.LoopInRequest + (*SwapResponse)(nil), // 7: looprpc.SwapResponse + (*MonitorRequest)(nil), // 8: looprpc.MonitorRequest + (*SwapStatus)(nil), // 9: looprpc.SwapStatus + (*ListSwapsRequest)(nil), // 10: looprpc.ListSwapsRequest + (*ListSwapsResponse)(nil), // 11: looprpc.ListSwapsResponse + (*SwapInfoRequest)(nil), // 12: looprpc.SwapInfoRequest + (*TermsRequest)(nil), // 13: looprpc.TermsRequest + (*InTermsResponse)(nil), // 14: looprpc.InTermsResponse + (*OutTermsResponse)(nil), // 15: looprpc.OutTermsResponse + (*QuoteRequest)(nil), // 16: looprpc.QuoteRequest + (*InQuoteResponse)(nil), // 17: looprpc.InQuoteResponse + (*OutQuoteResponse)(nil), // 18: looprpc.OutQuoteResponse + (*TokensRequest)(nil), // 19: looprpc.TokensRequest + (*TokensResponse)(nil), // 20: looprpc.TokensResponse + (*LsatToken)(nil), // 21: looprpc.LsatToken + (*GetLiquidityParamsRequest)(nil), // 22: looprpc.GetLiquidityParamsRequest + (*LiquidityParameters)(nil), // 23: looprpc.LiquidityParameters + (*LiquidityRule)(nil), // 24: looprpc.LiquidityRule + (*SetLiquidityParamsRequest)(nil), // 25: looprpc.SetLiquidityParamsRequest + (*SetLiquidityParamsResponse)(nil), // 26: looprpc.SetLiquidityParamsResponse + (*SuggestSwapsRequest)(nil), // 27: looprpc.SuggestSwapsRequest + (*Disqualified)(nil), // 28: looprpc.Disqualified + (*SuggestSwapsResponse)(nil), // 29: looprpc.SuggestSwapsResponse +} +var file_client_proto_depIdxs = []int32{ + 0, // 0: looprpc.SwapStatus.type:type_name -> looprpc.SwapType + 1, // 1: looprpc.SwapStatus.state:type_name -> looprpc.SwapState + 2, // 2: looprpc.SwapStatus.failure_reason:type_name -> looprpc.FailureReason + 9, // 3: looprpc.ListSwapsResponse.swaps:type_name -> looprpc.SwapStatus + 21, // 4: looprpc.TokensResponse.tokens:type_name -> looprpc.LsatToken + 24, // 5: looprpc.LiquidityParameters.rules:type_name -> looprpc.LiquidityRule + 3, // 6: looprpc.LiquidityRule.type:type_name -> looprpc.LiquidityRuleType + 23, // 7: looprpc.SetLiquidityParamsRequest.parameters:type_name -> looprpc.LiquidityParameters + 4, // 8: looprpc.Disqualified.reason:type_name -> looprpc.AutoReason + 5, // 9: looprpc.SuggestSwapsResponse.loop_out:type_name -> looprpc.LoopOutRequest + 28, // 10: looprpc.SuggestSwapsResponse.disqualified:type_name -> looprpc.Disqualified + 5, // 11: looprpc.SwapClient.LoopOut:input_type -> looprpc.LoopOutRequest + 6, // 12: looprpc.SwapClient.LoopIn:input_type -> looprpc.LoopInRequest + 8, // 13: looprpc.SwapClient.Monitor:input_type -> looprpc.MonitorRequest + 10, // 14: looprpc.SwapClient.ListSwaps:input_type -> looprpc.ListSwapsRequest + 12, // 15: looprpc.SwapClient.SwapInfo:input_type -> looprpc.SwapInfoRequest + 13, // 16: looprpc.SwapClient.LoopOutTerms:input_type -> looprpc.TermsRequest + 16, // 17: looprpc.SwapClient.LoopOutQuote:input_type -> looprpc.QuoteRequest + 13, // 18: looprpc.SwapClient.GetLoopInTerms:input_type -> looprpc.TermsRequest + 16, // 19: looprpc.SwapClient.GetLoopInQuote:input_type -> looprpc.QuoteRequest + 19, // 20: looprpc.SwapClient.GetLsatTokens:input_type -> looprpc.TokensRequest + 22, // 21: looprpc.SwapClient.GetLiquidityParams:input_type -> looprpc.GetLiquidityParamsRequest + 25, // 22: looprpc.SwapClient.SetLiquidityParams:input_type -> looprpc.SetLiquidityParamsRequest + 27, // 23: looprpc.SwapClient.SuggestSwaps:input_type -> looprpc.SuggestSwapsRequest + 7, // 24: looprpc.SwapClient.LoopOut:output_type -> looprpc.SwapResponse + 7, // 25: looprpc.SwapClient.LoopIn:output_type -> looprpc.SwapResponse + 9, // 26: looprpc.SwapClient.Monitor:output_type -> looprpc.SwapStatus + 11, // 27: looprpc.SwapClient.ListSwaps:output_type -> looprpc.ListSwapsResponse + 9, // 28: looprpc.SwapClient.SwapInfo:output_type -> looprpc.SwapStatus + 15, // 29: looprpc.SwapClient.LoopOutTerms:output_type -> looprpc.OutTermsResponse + 18, // 30: looprpc.SwapClient.LoopOutQuote:output_type -> looprpc.OutQuoteResponse + 14, // 31: looprpc.SwapClient.GetLoopInTerms:output_type -> looprpc.InTermsResponse + 17, // 32: looprpc.SwapClient.GetLoopInQuote:output_type -> looprpc.InQuoteResponse + 20, // 33: looprpc.SwapClient.GetLsatTokens:output_type -> looprpc.TokensResponse + 23, // 34: looprpc.SwapClient.GetLiquidityParams:output_type -> looprpc.LiquidityParameters + 26, // 35: looprpc.SwapClient.SetLiquidityParams:output_type -> looprpc.SetLiquidityParamsResponse + 29, // 36: looprpc.SwapClient.SuggestSwaps:output_type -> looprpc.SuggestSwapsResponse + 24, // [24:37] is the sub-list for method output_type + 11, // [11:24] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_client_proto_init() } +func file_client_proto_init() { + if File_client_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoopOutRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoopInRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SwapResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MonitorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SwapStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSwapsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSwapsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SwapInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TermsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InTermsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutTermsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InQuoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutQuoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokensRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokensResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LsatToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLiquidityParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LiquidityParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LiquidityRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetLiquidityParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetLiquidityParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SuggestSwapsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Disqualified); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_client_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SuggestSwapsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_client_proto_rawDesc, + NumEnums: 5, + NumMessages: 25, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_client_proto_goTypes, + DependencyIndexes: file_client_proto_depIdxs, + EnumInfos: file_client_proto_enumTypes, + MessageInfos: file_client_proto_msgTypes, + }.Build() + File_client_proto = out.File + file_client_proto_rawDesc = nil + file_client_proto_goTypes = nil + file_client_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // SwapClientClient is the client API for SwapClient service. // @@ -2475,10 +3413,10 @@ type SwapClientClient interface { } type swapClientClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewSwapClientClient(cc *grpc.ClientConn) SwapClientClient { +func NewSwapClientClient(cc grpc.ClientConnInterface) SwapClientClient { return &swapClientClient{cc} } @@ -2685,43 +3623,43 @@ type SwapClientServer interface { type UnimplementedSwapClientServer struct { } -func (*UnimplementedSwapClientServer) LoopOut(ctx context.Context, req *LoopOutRequest) (*SwapResponse, error) { +func (*UnimplementedSwapClientServer) LoopOut(context.Context, *LoopOutRequest) (*SwapResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOut not implemented") } -func (*UnimplementedSwapClientServer) LoopIn(ctx context.Context, req *LoopInRequest) (*SwapResponse, error) { +func (*UnimplementedSwapClientServer) LoopIn(context.Context, *LoopInRequest) (*SwapResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopIn not implemented") } -func (*UnimplementedSwapClientServer) Monitor(req *MonitorRequest, srv SwapClient_MonitorServer) error { +func (*UnimplementedSwapClientServer) Monitor(*MonitorRequest, SwapClient_MonitorServer) error { return status.Errorf(codes.Unimplemented, "method Monitor not implemented") } -func (*UnimplementedSwapClientServer) ListSwaps(ctx context.Context, req *ListSwapsRequest) (*ListSwapsResponse, error) { +func (*UnimplementedSwapClientServer) ListSwaps(context.Context, *ListSwapsRequest) (*ListSwapsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListSwaps not implemented") } -func (*UnimplementedSwapClientServer) SwapInfo(ctx context.Context, req *SwapInfoRequest) (*SwapStatus, error) { +func (*UnimplementedSwapClientServer) SwapInfo(context.Context, *SwapInfoRequest) (*SwapStatus, error) { return nil, status.Errorf(codes.Unimplemented, "method SwapInfo not implemented") } -func (*UnimplementedSwapClientServer) LoopOutTerms(ctx context.Context, req *TermsRequest) (*OutTermsResponse, error) { +func (*UnimplementedSwapClientServer) LoopOutTerms(context.Context, *TermsRequest) (*OutTermsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutTerms not implemented") } -func (*UnimplementedSwapClientServer) LoopOutQuote(ctx context.Context, req *QuoteRequest) (*OutQuoteResponse, error) { +func (*UnimplementedSwapClientServer) LoopOutQuote(context.Context, *QuoteRequest) (*OutQuoteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutQuote not implemented") } -func (*UnimplementedSwapClientServer) GetLoopInTerms(ctx context.Context, req *TermsRequest) (*InTermsResponse, error) { +func (*UnimplementedSwapClientServer) GetLoopInTerms(context.Context, *TermsRequest) (*InTermsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLoopInTerms not implemented") } -func (*UnimplementedSwapClientServer) GetLoopInQuote(ctx context.Context, req *QuoteRequest) (*InQuoteResponse, error) { +func (*UnimplementedSwapClientServer) GetLoopInQuote(context.Context, *QuoteRequest) (*InQuoteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLoopInQuote not implemented") } -func (*UnimplementedSwapClientServer) GetLsatTokens(ctx context.Context, req *TokensRequest) (*TokensResponse, error) { +func (*UnimplementedSwapClientServer) GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLsatTokens not implemented") } -func (*UnimplementedSwapClientServer) GetLiquidityParams(ctx context.Context, req *GetLiquidityParamsRequest) (*LiquidityParameters, error) { +func (*UnimplementedSwapClientServer) GetLiquidityParams(context.Context, *GetLiquidityParamsRequest) (*LiquidityParameters, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLiquidityParams not implemented") } -func (*UnimplementedSwapClientServer) SetLiquidityParams(ctx context.Context, req *SetLiquidityParamsRequest) (*SetLiquidityParamsResponse, error) { +func (*UnimplementedSwapClientServer) SetLiquidityParams(context.Context, *SetLiquidityParamsRequest) (*SetLiquidityParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetLiquidityParams not implemented") } -func (*UnimplementedSwapClientServer) SuggestSwaps(ctx context.Context, req *SuggestSwapsRequest) (*SuggestSwapsResponse, error) { +func (*UnimplementedSwapClientServer) SuggestSwaps(context.Context, *SuggestSwapsRequest) (*SuggestSwapsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SuggestSwaps not implemented") } diff --git a/looprpc/client.proto b/looprpc/client.proto index 6933408..ca4b6d5 100644 --- a/looprpc/client.proto +++ b/looprpc/client.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package looprpc; +option go_package = "github.com/lightninglabs/loop/looprpc"; + /* SwapClient is a service that handles the client side process of onchain/offchain swaps. The service is designed for a single client. @@ -103,9 +105,9 @@ message LoopOutRequest { string dest = 2; /* - Maximum off-chain fee in sat that may be paid for swap payment to the server. - This limit is applied during path finding. Typically this value is taken - from the response of the GetQuote call. + Maximum off-chain fee in sat that may be paid for swap payment to the + server. This limit is applied during path finding. Typically this value is + taken from the response of the GetQuote call. */ int64 max_swap_routing_fee = 3; @@ -201,7 +203,7 @@ message LoopOutRequest { message LoopInRequest { /* - Requested swap amount in sat. This does not include the swap and miner + Requested swap amount in sat. This does not include the swap and miner fee. */ int64 amt = 1; @@ -217,7 +219,7 @@ message LoopInRequest { /* Maximum in on-chain fees that we are willing to spend. If we want to publish the on-chain htlc and the fee estimate turns out higher than this - value, we cancel the swap. + value, we cancel the swap. max_miner_fee is typically taken from the response of the GetQuote call. */ @@ -497,7 +499,6 @@ message TermsRequest { } message InTermsResponse { - reserved 1, 2, 3, 4, 7; /* @@ -512,7 +513,6 @@ message InTermsResponse { } message OutTermsResponse { - reserved 1, 2, 3, 4, 7; /* @@ -691,7 +691,7 @@ message LiquidityParameters { /* The parts per million of swap amount that is allowed to be allocated to swap - fees. This value is applied across swap categories and may not be set in + fees. This value is applied across swap categories and may not be set in conjunction with sweep fee rate, swap fee ppm, routing fee ppm, prepay routing, max prepay and max miner fee. */ @@ -750,8 +750,8 @@ message LiquidityParameters { uint64 failure_backoff_sec = 9; /* - Set to true to enable automatic dispatch of swaps. All swaps will be limited - to the fee categories set by these parameters, and total expenditure will + Set to true to enable automatic dispatch of swaps. All swaps will be limited + to the fee categories set by these parameters, and total expenditure will be limited to the autoloop budget. */ bool autoloop = 10; @@ -803,7 +803,7 @@ message LiquidityRule { */ uint64 channel_id = 1; - /* + /* The public key of the peer that this rule should be applied to. This field may not be set when the channel id field is set. */ @@ -850,25 +850,25 @@ enum AutoReason { AUTO_REASON_UNKNOWN = 0; /* - Budget not started indicates that we do not recommend any swaps because + Budget not started indicates that we do not recommend any swaps because the start time for our budget has not arrived yet. */ AUTO_REASON_BUDGET_NOT_STARTED = 1; /* - Sweep fees indicates that the estimated fees to sweep swaps are too high + Sweep fees indicates that the estimated fees to sweep swaps are too high right now. */ AUTO_REASON_SWEEP_FEES = 2; /* - Budget elapsed indicates that the autoloop budget for the period has been + Budget elapsed indicates that the autoloop budget for the period has been elapsed. */ AUTO_REASON_BUDGET_ELAPSED = 3; /* - In flight indicates that the limit on in-flight automatically dispatched + In flight indicates that the limit on in-flight automatically dispatched swaps has already been reached. */ AUTO_REASON_IN_FLIGHT = 4; @@ -901,21 +901,21 @@ enum AutoReason { AUTO_REASON_LOOP_OUT = 9; /* - Loop In indicates that a loop in swap is currently in flight for the peer, + Loop In indicates that a loop in swap is currently in flight for the peer, so it is not eligible. */ AUTO_REASON_LOOP_IN = 10; /* - Liquidity ok indicates that a target meets the liquidity balance expressed + Liquidity ok indicates that a target meets the liquidity balance expressed in its rule, so no swap is needed. */ AUTO_REASON_LIQUIDITY_OK = 11; - /* - Budget insufficient indicates that we cannot perform a swap because we do - not have enough pending budget available. This differs from budget elapsed, - because we still have some budget available, but we have allocated it to + /* + Budget insufficient indicates that we cannot perform a swap because we do + not have enough pending budget available. This differs from budget elapsed, + because we still have some budget available, but we have allocated it to other swaps. */ AUTO_REASON_BUDGET_INSUFFICIENT = 12; @@ -925,14 +925,14 @@ enum AutoReason { the portion of total swap amount that we allow fees to consume. */ AUTO_REASON_FEE_INSUFFICIENT = 13; -} +} message Disqualified { /* The short channel ID of the channel that was excluded from our suggestions. */ - uint64 channel_id = 1; - + uint64 channel_id = 1; + /* The public key of the peer that was excluded from our suggestions. */ diff --git a/looprpc/client.swagger.json b/looprpc/client.swagger.json index 33cfc22..41b8620 100644 --- a/looprpc/client.swagger.json +++ b/looprpc/client.swagger.json @@ -414,7 +414,7 @@ "AUTO_REASON_FEE_INSUFFICIENT" ], "default": "AUTO_REASON_UNKNOWN", - "description": " - AUTO_REASON_BUDGET_NOT_STARTED: Budget not started indicates that we do not recommend any swaps because \nthe start time for our budget has not arrived yet.\n - AUTO_REASON_SWEEP_FEES: Sweep fees indicates that the estimated fees to sweep swaps are too high \nright now.\n - AUTO_REASON_BUDGET_ELAPSED: Budget elapsed indicates that the autoloop budget for the period has been \nelapsed.\n - AUTO_REASON_IN_FLIGHT: In flight indicates that the limit on in-flight automatically dispatched \nswaps has already been reached.\n - AUTO_REASON_SWAP_FEE: Swap fee indicates that the server fee for a specific swap is too high.\n - AUTO_REASON_MINER_FEE: Miner fee indicates that the miner fee for a specific swap is to high.\n - AUTO_REASON_PREPAY: Prepay indicates that the prepay fee for a specific swap is too high.\n - AUTO_REASON_FAILURE_BACKOFF: Failure backoff indicates that a swap has recently failed for this target,\nand the backoff period has not yet passed.\n - AUTO_REASON_LOOP_OUT: Loop out indicates that a loop out swap is currently utilizing the channel,\nso it is not eligible.\n - AUTO_REASON_LOOP_IN: Loop In indicates that a loop in swap is currently in flight for the peer, \nso it is not eligible.\n - AUTO_REASON_LIQUIDITY_OK: Liquidity ok indicates that a target meets the liquidity balance expressed \nin its rule, so no swap is needed.\n - AUTO_REASON_BUDGET_INSUFFICIENT: Budget insufficient indicates that we cannot perform a swap because we do \nnot have enough pending budget available. This differs from budget elapsed, \nbecause we still have some budget available, but we have allocated it to \nother swaps.\n - AUTO_REASON_FEE_INSUFFICIENT: Fee insufficient indicates that the fee estimate for a swap is higher than\nthe portion of total swap amount that we allow fees to consume." + "description": " - AUTO_REASON_BUDGET_NOT_STARTED: Budget not started indicates that we do not recommend any swaps because\nthe start time for our budget has not arrived yet.\n - AUTO_REASON_SWEEP_FEES: Sweep fees indicates that the estimated fees to sweep swaps are too high\nright now.\n - AUTO_REASON_BUDGET_ELAPSED: Budget elapsed indicates that the autoloop budget for the period has been\nelapsed.\n - AUTO_REASON_IN_FLIGHT: In flight indicates that the limit on in-flight automatically dispatched\nswaps has already been reached.\n - AUTO_REASON_SWAP_FEE: Swap fee indicates that the server fee for a specific swap is too high.\n - AUTO_REASON_MINER_FEE: Miner fee indicates that the miner fee for a specific swap is to high.\n - AUTO_REASON_PREPAY: Prepay indicates that the prepay fee for a specific swap is too high.\n - AUTO_REASON_FAILURE_BACKOFF: Failure backoff indicates that a swap has recently failed for this target,\nand the backoff period has not yet passed.\n - AUTO_REASON_LOOP_OUT: Loop out indicates that a loop out swap is currently utilizing the channel,\nso it is not eligible.\n - AUTO_REASON_LOOP_IN: Loop In indicates that a loop in swap is currently in flight for the peer,\nso it is not eligible.\n - AUTO_REASON_LIQUIDITY_OK: Liquidity ok indicates that a target meets the liquidity balance expressed\nin its rule, so no swap is needed.\n - AUTO_REASON_BUDGET_INSUFFICIENT: Budget insufficient indicates that we cannot perform a swap because we do\nnot have enough pending budget available. This differs from budget elapsed,\nbecause we still have some budget available, but we have allocated it to\nother swaps.\n - AUTO_REASON_FEE_INSUFFICIENT: Fee insufficient indicates that the fee estimate for a swap is higher than\nthe portion of total swap amount that we allow fees to consume." }, "looprpcDisqualified": { "type": "object", @@ -502,7 +502,7 @@ "fee_ppm": { "type": "string", "format": "uint64", - "description": "The parts per million of swap amount that is allowed to be allocated to swap\nfees. This value is applied across swap categories and may not be set in \nconjunction with sweep fee rate, swap fee ppm, routing fee ppm, prepay\nrouting, max prepay and max miner fee." + "description": "The parts per million of swap amount that is allowed to be allocated to swap\nfees. This value is applied across swap categories and may not be set in\nconjunction with sweep fee rate, swap fee ppm, routing fee ppm, prepay\nrouting, max prepay and max miner fee." }, "sweep_fee_rate_sat_per_vbyte": { "type": "string", @@ -547,7 +547,7 @@ "autoloop": { "type": "boolean", "format": "boolean", - "description": "Set to true to enable automatic dispatch of swaps. All swaps will be limited \nto the fee categories set by these parameters, and total expenditure will \nbe limited to the autoloop budget." + "description": "Set to true to enable automatic dispatch of swaps. All swaps will be limited\nto the fee categories set by these parameters, and total expenditure will\nbe limited to the autoloop budget." }, "autoloop_budget_sat": { "type": "string", @@ -631,7 +631,7 @@ "amt": { "type": "string", "format": "int64", - "description": "Requested swap amount in sat. This does not include the swap and miner \nfee." + "description": "Requested swap amount in sat. This does not include the swap and miner\nfee." }, "max_swap_fee": { "type": "string", @@ -641,7 +641,7 @@ "max_miner_fee": { "type": "string", "format": "int64", - "description": "Maximum in on-chain fees that we are willing to spend. If we want to\npublish the on-chain htlc and the fee estimate turns out higher than this\nvalue, we cancel the swap. \n\nmax_miner_fee is typically taken from the response of the GetQuote call." + "description": "Maximum in on-chain fees that we are willing to spend. If we want to\npublish the on-chain htlc and the fee estimate turns out higher than this\nvalue, we cancel the swap.\n\nmax_miner_fee is typically taken from the response of the GetQuote call." }, "last_hop": { "type": "string", @@ -683,7 +683,7 @@ "max_swap_routing_fee": { "type": "string", "format": "int64", - "description": "Maximum off-chain fee in sat that may be paid for swap payment to the server.\nThis limit is applied during path finding. Typically this value is taken\nfrom the response of the GetQuote call." + "description": "Maximum off-chain fee in sat that may be paid for swap payment to the\nserver. This limit is applied during path finding. Typically this value is\ntaken from the response of the GetQuote call." }, "max_prepay_routing_fee": { "type": "string", diff --git a/looprpc/debug.pb.go b/looprpc/debug.pb.go index 3f14ca9..6b5d3d4 100644 --- a/looprpc/debug.pb.go +++ b/looprpc/debug.pb.go @@ -1,117 +1,214 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.6.1 // source: debug.proto package looprpc import ( context "context" - fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type ForceAutoLoopRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ForceAutoLoopRequest) Reset() { *m = ForceAutoLoopRequest{} } -func (m *ForceAutoLoopRequest) String() string { return proto.CompactTextString(m) } -func (*ForceAutoLoopRequest) ProtoMessage() {} -func (*ForceAutoLoopRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8d9d361be58531fb, []int{0} +func (x *ForceAutoLoopRequest) Reset() { + *x = ForceAutoLoopRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_debug_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ForceAutoLoopRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ForceAutoLoopRequest.Unmarshal(m, b) -} -func (m *ForceAutoLoopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ForceAutoLoopRequest.Marshal(b, m, deterministic) -} -func (m *ForceAutoLoopRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ForceAutoLoopRequest.Merge(m, src) -} -func (m *ForceAutoLoopRequest) XXX_Size() int { - return xxx_messageInfo_ForceAutoLoopRequest.Size(m) +func (x *ForceAutoLoopRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ForceAutoLoopRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ForceAutoLoopRequest.DiscardUnknown(m) + +func (*ForceAutoLoopRequest) ProtoMessage() {} + +func (x *ForceAutoLoopRequest) ProtoReflect() protoreflect.Message { + mi := &file_debug_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ForceAutoLoopRequest proto.InternalMessageInfo +// Deprecated: Use ForceAutoLoopRequest.ProtoReflect.Descriptor instead. +func (*ForceAutoLoopRequest) Descriptor() ([]byte, []int) { + return file_debug_proto_rawDescGZIP(), []int{0} +} type ForceAutoLoopResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ForceAutoLoopResponse) Reset() { *m = ForceAutoLoopResponse{} } -func (m *ForceAutoLoopResponse) String() string { return proto.CompactTextString(m) } -func (*ForceAutoLoopResponse) ProtoMessage() {} -func (*ForceAutoLoopResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8d9d361be58531fb, []int{1} +func (x *ForceAutoLoopResponse) Reset() { + *x = ForceAutoLoopResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_debug_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ForceAutoLoopResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ForceAutoLoopResponse.Unmarshal(m, b) +func (x *ForceAutoLoopResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ForceAutoLoopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ForceAutoLoopResponse.Marshal(b, m, deterministic) -} -func (m *ForceAutoLoopResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ForceAutoLoopResponse.Merge(m, src) + +func (*ForceAutoLoopResponse) ProtoMessage() {} + +func (x *ForceAutoLoopResponse) ProtoReflect() protoreflect.Message { + mi := &file_debug_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ForceAutoLoopResponse) XXX_Size() int { - return xxx_messageInfo_ForceAutoLoopResponse.Size(m) + +// Deprecated: Use ForceAutoLoopResponse.ProtoReflect.Descriptor instead. +func (*ForceAutoLoopResponse) Descriptor() ([]byte, []int) { + return file_debug_proto_rawDescGZIP(), []int{1} } -func (m *ForceAutoLoopResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ForceAutoLoopResponse.DiscardUnknown(m) + +var File_debug_proto protoreflect.FileDescriptor + +var file_debug_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x6c, + 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x22, 0x16, 0x0a, 0x14, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x41, + 0x75, 0x74, 0x6f, 0x4c, 0x6f, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x17, + 0x0a, 0x15, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x4c, 0x6f, 0x6f, 0x70, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x57, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75, 0x67, + 0x12, 0x4e, 0x0a, 0x0d, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x4c, 0x6f, 0x6f, + 0x70, 0x12, 0x1d, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x46, 0x6f, 0x72, 0x63, + 0x65, 0x41, 0x75, 0x74, 0x6f, 0x4c, 0x6f, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1e, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x46, 0x6f, 0x72, 0x63, 0x65, + 0x41, 0x75, 0x74, 0x6f, 0x4c, 0x6f, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6c, 0x6f, 0x6f, + 0x70, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } -var xxx_messageInfo_ForceAutoLoopResponse proto.InternalMessageInfo +var ( + file_debug_proto_rawDescOnce sync.Once + file_debug_proto_rawDescData = file_debug_proto_rawDesc +) -func init() { - proto.RegisterType((*ForceAutoLoopRequest)(nil), "looprpc.ForceAutoLoopRequest") - proto.RegisterType((*ForceAutoLoopResponse)(nil), "looprpc.ForceAutoLoopResponse") +func file_debug_proto_rawDescGZIP() []byte { + file_debug_proto_rawDescOnce.Do(func() { + file_debug_proto_rawDescData = protoimpl.X.CompressGZIP(file_debug_proto_rawDescData) + }) + return file_debug_proto_rawDescData } -func init() { proto.RegisterFile("debug.proto", fileDescriptor_8d9d361be58531fb) } +var file_debug_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_debug_proto_goTypes = []interface{}{ + (*ForceAutoLoopRequest)(nil), // 0: looprpc.ForceAutoLoopRequest + (*ForceAutoLoopResponse)(nil), // 1: looprpc.ForceAutoLoopResponse +} +var file_debug_proto_depIdxs = []int32{ + 0, // 0: looprpc.Debug.ForceAutoLoop:input_type -> looprpc.ForceAutoLoopRequest + 1, // 1: looprpc.Debug.ForceAutoLoop:output_type -> looprpc.ForceAutoLoopResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} -var fileDescriptor_8d9d361be58531fb = []byte{ - // 117 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0x49, 0x4d, 0x2a, - 0x4d, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0xcf, 0xc9, 0xcf, 0x2f, 0x28, 0x2a, 0x48, - 0x56, 0x12, 0xe3, 0x12, 0x71, 0xcb, 0x2f, 0x4a, 0x4e, 0x75, 0x2c, 0x2d, 0xc9, 0xf7, 0xc9, 0xcf, - 0x2f, 0x08, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x51, 0x12, 0xe7, 0x12, 0x45, 0x13, 0x2f, 0x2e, - 0xc8, 0xcf, 0x2b, 0x4e, 0x35, 0x8a, 0xe4, 0x62, 0x75, 0x01, 0x19, 0x24, 0x14, 0xc0, 0xc5, 0x8b, - 0xa2, 0x42, 0x48, 0x56, 0x0f, 0x6a, 0xa8, 0x1e, 0x36, 0x13, 0xa5, 0xe4, 0x70, 0x49, 0x43, 0x0c, - 0x56, 0x62, 0x48, 0x62, 0x03, 0xbb, 0xcd, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x39, 0x7a, 0x3c, - 0x6b, 0xaa, 0x00, 0x00, 0x00, +func init() { file_debug_proto_init() } +func file_debug_proto_init() { + if File_debug_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_debug_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForceAutoLoopRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_debug_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForceAutoLoopResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_debug_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_debug_proto_goTypes, + DependencyIndexes: file_debug_proto_depIdxs, + MessageInfos: file_debug_proto_msgTypes, + }.Build() + File_debug_proto = out.File + file_debug_proto_rawDesc = nil + file_debug_proto_goTypes = nil + file_debug_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // DebugClient is the client API for Debug service. // @@ -125,10 +222,10 @@ type DebugClient interface { } type debugClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewDebugClient(cc *grpc.ClientConn) DebugClient { +func NewDebugClient(cc grpc.ClientConnInterface) DebugClient { return &debugClient{cc} } @@ -154,7 +251,7 @@ type DebugServer interface { type UnimplementedDebugServer struct { } -func (*UnimplementedDebugServer) ForceAutoLoop(ctx context.Context, req *ForceAutoLoopRequest) (*ForceAutoLoopResponse, error) { +func (*UnimplementedDebugServer) ForceAutoLoop(context.Context, *ForceAutoLoopRequest) (*ForceAutoLoopResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ForceAutoLoop not implemented") } diff --git a/looprpc/debug.proto b/looprpc/debug.proto index 9358023..2313449 100644 --- a/looprpc/debug.proto +++ b/looprpc/debug.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package looprpc; +option go_package = "github.com/lightninglabs/loop/looprpc"; + /* Debug is a service that exposes endpoints intended for testing purposes. These endpoints should not operate on mainnet, and should only be included if loop is @@ -13,7 +15,7 @@ service Debug { mainnet. This endpoint ticks our autoloop timer, triggering automated dispatch of a swap if one is suggested. */ - rpc ForceAutoLoop(ForceAutoLoopRequest) returns (ForceAutoLoopResponse){} + rpc ForceAutoLoop (ForceAutoLoopRequest) returns (ForceAutoLoopResponse); } message ForceAutoLoopRequest { diff --git a/looprpc/gen_protos.sh b/looprpc/gen_protos.sh index 6d4be95..b8b67e6 100755 --- a/looprpc/gen_protos.sh +++ b/looprpc/gen_protos.sh @@ -1,22 +1,36 @@ -#!/bin/sh +#!/bin/bash set -e -# Generate the gRPC bindings for all proto files. -for file in ./*.proto -do - protoc -I/usr/local/include -I. \ - --go_out=plugins=grpc,paths=source_relative:. \ - ${file} +# generate compiles the *.pb.go stubs from the *.proto files. +function generate() { + # Generate the gRPC bindings for all proto files. + for file in ./*.proto + do + protoc -I/usr/local/include -I. \ + --go_out=plugins=grpc,paths=source_relative:. \ + "${file}" + done + + # Generate the REST reverse proxy for the client only. + protoc -I/usr/local/include -I. \ + --grpc-gateway_out=logtostderr=true,paths=source_relative,grpc_api_configuration=rest-annotations.yaml:. \ + "client.proto" -done -# Only generate the REST proxy and definitions for the client component. -protoc -I/usr/local/include -I. \ - --grpc-gateway_out=logtostderr=true,paths=source_relative,grpc_api_configuration=rest-annotations.yaml:. \ - client.proto + # Finally, generate the swagger file which describes the REST API in detail. + protoc -I/usr/local/include -I. \ + --swagger_out=logtostderr=true,grpc_api_configuration=rest-annotations.yaml:. \ + "client.proto" +} -protoc -I/usr/local/include -I. \ - -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ - --swagger_out=logtostderr=true,grpc_api_configuration=rest-annotations.yaml:. \ - client.proto +# format formats the *.proto files with the clang-format utility. +function format() { + find . -name "*.proto" -print0 | xargs -0 clang-format --style=file -i +} + +# Compile and format the looprpc package. +pushd looprpc +format +generate +popd diff --git a/looprpc/gen_protos_docker.sh b/looprpc/gen_protos_docker.sh new file mode 100755 index 0000000..be59c18 --- /dev/null +++ b/looprpc/gen_protos_docker.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +# Directory of the script file, independent of where it's called from. +DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" + +PROTOC_GEN_VERSION=$(go list -f '{{.Version}}' -m github.com/golang/protobuf) +GRPC_GATEWAY_VERSION=$(go list -f '{{.Version}}' -m github.com/grpc-ecosystem/grpc-gateway) + +echo "Building protobuf compiler docker image..." +docker build -q -t loop-protobuf-builder \ + --build-arg PROTOC_GEN_VERSION="$PROTOC_GEN_VERSION" \ + --build-arg GRPC_GATEWAY_VERSION="$GRPC_GATEWAY_VERSION" \ + . + +echo "Compiling and formatting *.proto files..." +docker run \ + --rm \ + --user $UID:$UID \ + -e UID=$UID \ + -v "$DIR/../:/build" \ + loop-protobuf-builder diff --git a/looprpc/server.pb.go b/looprpc/server.pb.go index 9bd19b0..f1949fa 100644 --- a/looprpc/server.pb.go +++ b/looprpc/server.pb.go @@ -1,28 +1,33 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.6.1 // source: server.proto package looprpc import ( context "context" - fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 //* //This enum defines the protocol versions that clients may adhere to. Note that @@ -57,34 +62,55 @@ const ( ProtocolVersion_LOOP_OUT_CANCEL ProtocolVersion = 7 ) -var ProtocolVersion_name = map[int32]string{ - 0: "LEGACY", - 1: "MULTI_LOOP_OUT", - 2: "NATIVE_SEGWIT_LOOP_IN", - 3: "PREIMAGE_PUSH_LOOP_OUT", - 4: "USER_EXPIRY_LOOP_OUT", - 5: "HTLC_V2", - 6: "MULTI_LOOP_IN", - 7: "LOOP_OUT_CANCEL", -} +// Enum value maps for ProtocolVersion. +var ( + ProtocolVersion_name = map[int32]string{ + 0: "LEGACY", + 1: "MULTI_LOOP_OUT", + 2: "NATIVE_SEGWIT_LOOP_IN", + 3: "PREIMAGE_PUSH_LOOP_OUT", + 4: "USER_EXPIRY_LOOP_OUT", + 5: "HTLC_V2", + 6: "MULTI_LOOP_IN", + 7: "LOOP_OUT_CANCEL", + } + ProtocolVersion_value = map[string]int32{ + "LEGACY": 0, + "MULTI_LOOP_OUT": 1, + "NATIVE_SEGWIT_LOOP_IN": 2, + "PREIMAGE_PUSH_LOOP_OUT": 3, + "USER_EXPIRY_LOOP_OUT": 4, + "HTLC_V2": 5, + "MULTI_LOOP_IN": 6, + "LOOP_OUT_CANCEL": 7, + } +) -var ProtocolVersion_value = map[string]int32{ - "LEGACY": 0, - "MULTI_LOOP_OUT": 1, - "NATIVE_SEGWIT_LOOP_IN": 2, - "PREIMAGE_PUSH_LOOP_OUT": 3, - "USER_EXPIRY_LOOP_OUT": 4, - "HTLC_V2": 5, - "MULTI_LOOP_IN": 6, - "LOOP_OUT_CANCEL": 7, +func (x ProtocolVersion) Enum() *ProtocolVersion { + p := new(ProtocolVersion) + *p = x + return p } func (x ProtocolVersion) String() string { - return proto.EnumName(ProtocolVersion_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProtocolVersion) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[0].Descriptor() } +func (ProtocolVersion) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[0] +} + +func (x ProtocolVersion) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProtocolVersion.Descriptor instead. func (ProtocolVersion) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{0} + return file_server_proto_rawDescGZIP(), []int{0} } // ServerSwapState is an enum which represents all the states a swap may have @@ -131,48 +157,69 @@ const ( ServerSwapState_SERVER_CLIENT_INVOICE_CANCEL ServerSwapState = 14 ) -var ServerSwapState_name = map[int32]string{ - 0: "SERVER_INITIATED", - 1: "SERVER_HTLC_PUBLISHED", - 2: "SERVER_SUCCESS", - 3: "SERVER_FAILED_UNKNOWN", - 4: "SERVER_FAILED_NO_HTLC", - 5: "SERVER_FAILED_INVALID_HTLC_AMOUNT", - 6: "SERVER_FAILED_OFF_CHAIN_TIMEOUT", - 7: "SERVER_FAILED_TIMEOUT", - 8: "SERVER_FAILED_SWAP_DEADLINE", - 9: "SERVER_FAILED_HTLC_PUBLICATION", - 10: "SERVER_TIMEOUT_PUBLISHED", - 11: "SERVER_UNEXPECTED_FAILURE", - 12: "SERVER_HTLC_CONFIRMED", - 13: "SERVER_CLIENT_PREPAY_CANCEL", - 14: "SERVER_CLIENT_INVOICE_CANCEL", -} - -var ServerSwapState_value = map[string]int32{ - "SERVER_INITIATED": 0, - "SERVER_HTLC_PUBLISHED": 1, - "SERVER_SUCCESS": 2, - "SERVER_FAILED_UNKNOWN": 3, - "SERVER_FAILED_NO_HTLC": 4, - "SERVER_FAILED_INVALID_HTLC_AMOUNT": 5, - "SERVER_FAILED_OFF_CHAIN_TIMEOUT": 6, - "SERVER_FAILED_TIMEOUT": 7, - "SERVER_FAILED_SWAP_DEADLINE": 8, - "SERVER_FAILED_HTLC_PUBLICATION": 9, - "SERVER_TIMEOUT_PUBLISHED": 10, - "SERVER_UNEXPECTED_FAILURE": 11, - "SERVER_HTLC_CONFIRMED": 12, - "SERVER_CLIENT_PREPAY_CANCEL": 13, - "SERVER_CLIENT_INVOICE_CANCEL": 14, +// Enum value maps for ServerSwapState. +var ( + ServerSwapState_name = map[int32]string{ + 0: "SERVER_INITIATED", + 1: "SERVER_HTLC_PUBLISHED", + 2: "SERVER_SUCCESS", + 3: "SERVER_FAILED_UNKNOWN", + 4: "SERVER_FAILED_NO_HTLC", + 5: "SERVER_FAILED_INVALID_HTLC_AMOUNT", + 6: "SERVER_FAILED_OFF_CHAIN_TIMEOUT", + 7: "SERVER_FAILED_TIMEOUT", + 8: "SERVER_FAILED_SWAP_DEADLINE", + 9: "SERVER_FAILED_HTLC_PUBLICATION", + 10: "SERVER_TIMEOUT_PUBLISHED", + 11: "SERVER_UNEXPECTED_FAILURE", + 12: "SERVER_HTLC_CONFIRMED", + 13: "SERVER_CLIENT_PREPAY_CANCEL", + 14: "SERVER_CLIENT_INVOICE_CANCEL", + } + ServerSwapState_value = map[string]int32{ + "SERVER_INITIATED": 0, + "SERVER_HTLC_PUBLISHED": 1, + "SERVER_SUCCESS": 2, + "SERVER_FAILED_UNKNOWN": 3, + "SERVER_FAILED_NO_HTLC": 4, + "SERVER_FAILED_INVALID_HTLC_AMOUNT": 5, + "SERVER_FAILED_OFF_CHAIN_TIMEOUT": 6, + "SERVER_FAILED_TIMEOUT": 7, + "SERVER_FAILED_SWAP_DEADLINE": 8, + "SERVER_FAILED_HTLC_PUBLICATION": 9, + "SERVER_TIMEOUT_PUBLISHED": 10, + "SERVER_UNEXPECTED_FAILURE": 11, + "SERVER_HTLC_CONFIRMED": 12, + "SERVER_CLIENT_PREPAY_CANCEL": 13, + "SERVER_CLIENT_INVOICE_CANCEL": 14, + } +) + +func (x ServerSwapState) Enum() *ServerSwapState { + p := new(ServerSwapState) + *p = x + return p } func (x ServerSwapState) String() string { - return proto.EnumName(ServerSwapState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServerSwapState) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[1].Descriptor() } +func (ServerSwapState) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[1] +} + +func (x ServerSwapState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ServerSwapState.Descriptor instead. func (ServerSwapState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{1} + return file_server_proto_rawDescGZIP(), []int{1} } type RoutePaymentType int32 @@ -188,24 +235,45 @@ const ( RoutePaymentType_INVOICE_ROUTE RoutePaymentType = 2 ) -var RoutePaymentType_name = map[int32]string{ - 0: "ROUTE_UNKNOWN", - 1: "PREPAY_ROUTE", - 2: "INVOICE_ROUTE", -} +// Enum value maps for RoutePaymentType. +var ( + RoutePaymentType_name = map[int32]string{ + 0: "ROUTE_UNKNOWN", + 1: "PREPAY_ROUTE", + 2: "INVOICE_ROUTE", + } + RoutePaymentType_value = map[string]int32{ + "ROUTE_UNKNOWN": 0, + "PREPAY_ROUTE": 1, + "INVOICE_ROUTE": 2, + } +) -var RoutePaymentType_value = map[string]int32{ - "ROUTE_UNKNOWN": 0, - "PREPAY_ROUTE": 1, - "INVOICE_ROUTE": 2, +func (x RoutePaymentType) Enum() *RoutePaymentType { + p := new(RoutePaymentType) + *p = x + return p } func (x RoutePaymentType) String() string { - return proto.EnumName(RoutePaymentType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (RoutePaymentType) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[2].Descriptor() +} + +func (RoutePaymentType) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[2] +} + +func (x RoutePaymentType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RoutePaymentType.Descriptor instead. func (RoutePaymentType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{2} + return file_server_proto_rawDescGZIP(), []int{2} } // PaymentFailureReason describes the reason that a payment failed. These @@ -235,33 +303,58 @@ const ( PaymentFailureReason_LND_FAILURE_REASON_INSUFFICIENT_BALANCE PaymentFailureReason = 5 ) -var PaymentFailureReason_name = map[int32]string{ - 0: "LND_FAILURE_REASON_NONE", - 1: "LND_FAILURE_REASON_TIMEOUT", - 2: "LND_FAILURE_REASON_NO_ROUTE", - 3: "LND_FAILURE_REASON_ERROR", - 4: "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS", - 5: "LND_FAILURE_REASON_INSUFFICIENT_BALANCE", -} +// Enum value maps for PaymentFailureReason. +var ( + PaymentFailureReason_name = map[int32]string{ + 0: "LND_FAILURE_REASON_NONE", + 1: "LND_FAILURE_REASON_TIMEOUT", + 2: "LND_FAILURE_REASON_NO_ROUTE", + 3: "LND_FAILURE_REASON_ERROR", + 4: "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS", + 5: "LND_FAILURE_REASON_INSUFFICIENT_BALANCE", + } + PaymentFailureReason_value = map[string]int32{ + "LND_FAILURE_REASON_NONE": 0, + "LND_FAILURE_REASON_TIMEOUT": 1, + "LND_FAILURE_REASON_NO_ROUTE": 2, + "LND_FAILURE_REASON_ERROR": 3, + "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS": 4, + "LND_FAILURE_REASON_INSUFFICIENT_BALANCE": 5, + } +) -var PaymentFailureReason_value = map[string]int32{ - "LND_FAILURE_REASON_NONE": 0, - "LND_FAILURE_REASON_TIMEOUT": 1, - "LND_FAILURE_REASON_NO_ROUTE": 2, - "LND_FAILURE_REASON_ERROR": 3, - "LND_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS": 4, - "LND_FAILURE_REASON_INSUFFICIENT_BALANCE": 5, +func (x PaymentFailureReason) Enum() *PaymentFailureReason { + p := new(PaymentFailureReason) + *p = x + return p } func (x PaymentFailureReason) String() string { - return proto.EnumName(PaymentFailureReason_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PaymentFailureReason) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[3].Descriptor() } +func (PaymentFailureReason) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[3] +} + +func (x PaymentFailureReason) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PaymentFailureReason.Descriptor instead. func (PaymentFailureReason) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{3} + return file_server_proto_rawDescGZIP(), []int{3} } type ServerLoopOutRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"` SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` @@ -280,162 +373,180 @@ type ServerLoopOutRequest struct { // Examples: // loopd/v0.10.0-beta/commit=3b635821 // litd/v0.2.0-alpha/commit=326d754 - UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` } -func (m *ServerLoopOutRequest) Reset() { *m = ServerLoopOutRequest{} } -func (m *ServerLoopOutRequest) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutRequest) ProtoMessage() {} -func (*ServerLoopOutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{0} +func (x *ServerLoopOutRequest) Reset() { + *x = ServerLoopOutRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutRequest.Unmarshal(m, b) -} -func (m *ServerLoopOutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutRequest.Marshal(b, m, deterministic) +func (x *ServerLoopOutRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutRequest.Merge(m, src) -} -func (m *ServerLoopOutRequest) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutRequest.Size(m) -} -func (m *ServerLoopOutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutRequest.DiscardUnknown(m) + +func (*ServerLoopOutRequest) ProtoMessage() {} + +func (x *ServerLoopOutRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutRequest proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutRequest.ProtoReflect.Descriptor instead. +func (*ServerLoopOutRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{0} +} -func (m *ServerLoopOutRequest) GetReceiverKey() []byte { - if m != nil { - return m.ReceiverKey +func (x *ServerLoopOutRequest) GetReceiverKey() []byte { + if x != nil { + return x.ReceiverKey } return nil } -func (m *ServerLoopOutRequest) GetSwapHash() []byte { - if m != nil { - return m.SwapHash +func (x *ServerLoopOutRequest) GetSwapHash() []byte { + if x != nil { + return x.SwapHash } return nil } -func (m *ServerLoopOutRequest) GetAmt() uint64 { - if m != nil { - return m.Amt +func (x *ServerLoopOutRequest) GetAmt() uint64 { + if x != nil { + return x.Amt } return 0 } -func (m *ServerLoopOutRequest) GetSwapPublicationDeadline() int64 { - if m != nil { - return m.SwapPublicationDeadline +func (x *ServerLoopOutRequest) GetSwapPublicationDeadline() int64 { + if x != nil { + return x.SwapPublicationDeadline } return 0 } -func (m *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } -func (m *ServerLoopOutRequest) GetExpiry() int32 { - if m != nil { - return m.Expiry +func (x *ServerLoopOutRequest) GetExpiry() int32 { + if x != nil { + return x.Expiry } return 0 } -func (m *ServerLoopOutRequest) GetUserAgent() string { - if m != nil { - return m.UserAgent +func (x *ServerLoopOutRequest) GetUserAgent() string { + if x != nil { + return x.UserAgent } return "" } type ServerLoopOutResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SwapInvoice string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"` PrepayInvoice string `protobuf:"bytes,2,opt,name=prepay_invoice,json=prepayInvoice,proto3" json:"prepay_invoice,omitempty"` SenderKey []byte `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"` // The height at which the on-chain htlc will expire. Deprecated because the // field is already specified in the request. - Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // A human-readable message from the loop server. - ServerMessage string `protobuf:"bytes,5,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServerMessage string `protobuf:"bytes,5,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` } -func (m *ServerLoopOutResponse) Reset() { *m = ServerLoopOutResponse{} } -func (m *ServerLoopOutResponse) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutResponse) ProtoMessage() {} -func (*ServerLoopOutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{1} +func (x *ServerLoopOutResponse) Reset() { + *x = ServerLoopOutResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutResponse.Unmarshal(m, b) +func (x *ServerLoopOutResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutResponse.Marshal(b, m, deterministic) -} -func (m *ServerLoopOutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutResponse.Merge(m, src) -} -func (m *ServerLoopOutResponse) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutResponse.Size(m) -} -func (m *ServerLoopOutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutResponse.DiscardUnknown(m) + +func (*ServerLoopOutResponse) ProtoMessage() {} + +func (x *ServerLoopOutResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutResponse proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutResponse.ProtoReflect.Descriptor instead. +func (*ServerLoopOutResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{1} +} -func (m *ServerLoopOutResponse) GetSwapInvoice() string { - if m != nil { - return m.SwapInvoice +func (x *ServerLoopOutResponse) GetSwapInvoice() string { + if x != nil { + return x.SwapInvoice } return "" } -func (m *ServerLoopOutResponse) GetPrepayInvoice() string { - if m != nil { - return m.PrepayInvoice +func (x *ServerLoopOutResponse) GetPrepayInvoice() string { + if x != nil { + return x.PrepayInvoice } return "" } -func (m *ServerLoopOutResponse) GetSenderKey() []byte { - if m != nil { - return m.SenderKey +func (x *ServerLoopOutResponse) GetSenderKey() []byte { + if x != nil { + return x.SenderKey } return nil } // Deprecated: Do not use. -func (m *ServerLoopOutResponse) GetExpiry() int32 { - if m != nil { - return m.Expiry +func (x *ServerLoopOutResponse) GetExpiry() int32 { + if x != nil { + return x.Expiry } return 0 } -func (m *ServerLoopOutResponse) GetServerMessage() string { - if m != nil { - return m.ServerMessage +func (x *ServerLoopOutResponse) GetServerMessage() string { + if x != nil { + return x.ServerMessage } return "" } type ServerLoopOutQuoteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + /// The swap amount. If zero, a quote for a maximum amt swap will be given. Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` /// The unix time in seconds we want the on-chain swap to be published by. @@ -445,266 +556,304 @@ type ServerLoopOutQuoteRequest struct { // The requested absolute block height of the on-chain htlc. This is // subjected to min and max constraints as reported in the LoopOutTerms // response. - Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` } -func (m *ServerLoopOutQuoteRequest) Reset() { *m = ServerLoopOutQuoteRequest{} } -func (m *ServerLoopOutQuoteRequest) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutQuoteRequest) ProtoMessage() {} -func (*ServerLoopOutQuoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{2} +func (x *ServerLoopOutQuoteRequest) Reset() { + *x = ServerLoopOutQuoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutQuoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutQuoteRequest.Unmarshal(m, b) +func (x *ServerLoopOutQuoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutQuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutQuoteRequest.Marshal(b, m, deterministic) -} -func (m *ServerLoopOutQuoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutQuoteRequest.Merge(m, src) -} -func (m *ServerLoopOutQuoteRequest) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutQuoteRequest.Size(m) -} -func (m *ServerLoopOutQuoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutQuoteRequest.DiscardUnknown(m) + +func (*ServerLoopOutQuoteRequest) ProtoMessage() {} + +func (x *ServerLoopOutQuoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutQuoteRequest proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutQuoteRequest.ProtoReflect.Descriptor instead. +func (*ServerLoopOutQuoteRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{2} +} -func (m *ServerLoopOutQuoteRequest) GetAmt() uint64 { - if m != nil { - return m.Amt +func (x *ServerLoopOutQuoteRequest) GetAmt() uint64 { + if x != nil { + return x.Amt } return 0 } -func (m *ServerLoopOutQuoteRequest) GetSwapPublicationDeadline() int64 { - if m != nil { - return m.SwapPublicationDeadline +func (x *ServerLoopOutQuoteRequest) GetSwapPublicationDeadline() int64 { + if x != nil { + return x.SwapPublicationDeadline } return 0 } -func (m *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } -func (m *ServerLoopOutQuoteRequest) GetExpiry() int32 { - if m != nil { - return m.Expiry +func (x *ServerLoopOutQuoteRequest) GetExpiry() int32 { + if x != nil { + return x.Expiry } return 0 } type ServerLoopOutQuote struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SwapPaymentDest string `protobuf:"bytes,1,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"` /// The total estimated swap fee given the quote amt. SwapFee int64 `protobuf:"varint,2,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"` /// Deprecated, total swap fee given quote amt is calculated in swap_fee. - SwapFeeRate int64 `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` // Deprecated: Do not use. - PrepayAmt uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"` - MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use. - MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // Deprecated: Do not use. + // + // Deprecated: Do not use. + SwapFeeRate int64 `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` + PrepayAmt uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"` + // Deprecated: Do not use. + MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` + // Deprecated: Do not use. + MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // The server-proposed cltv delta of the on-chain htlc. Deprecated because // the field is already specified in the request. - CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` // Deprecated: Do not use. - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // + // Deprecated: Do not use. + CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` } -func (m *ServerLoopOutQuote) Reset() { *m = ServerLoopOutQuote{} } -func (m *ServerLoopOutQuote) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutQuote) ProtoMessage() {} -func (*ServerLoopOutQuote) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{3} +func (x *ServerLoopOutQuote) Reset() { + *x = ServerLoopOutQuote{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutQuote) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutQuote.Unmarshal(m, b) +func (x *ServerLoopOutQuote) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutQuote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutQuote.Marshal(b, m, deterministic) -} -func (m *ServerLoopOutQuote) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutQuote.Merge(m, src) -} -func (m *ServerLoopOutQuote) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutQuote.Size(m) -} -func (m *ServerLoopOutQuote) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutQuote.DiscardUnknown(m) + +func (*ServerLoopOutQuote) ProtoMessage() {} + +func (x *ServerLoopOutQuote) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutQuote proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutQuote.ProtoReflect.Descriptor instead. +func (*ServerLoopOutQuote) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{3} +} -func (m *ServerLoopOutQuote) GetSwapPaymentDest() string { - if m != nil { - return m.SwapPaymentDest +func (x *ServerLoopOutQuote) GetSwapPaymentDest() string { + if x != nil { + return x.SwapPaymentDest } return "" } -func (m *ServerLoopOutQuote) GetSwapFee() int64 { - if m != nil { - return m.SwapFee +func (x *ServerLoopOutQuote) GetSwapFee() int64 { + if x != nil { + return x.SwapFee } return 0 } // Deprecated: Do not use. -func (m *ServerLoopOutQuote) GetSwapFeeRate() int64 { - if m != nil { - return m.SwapFeeRate +func (x *ServerLoopOutQuote) GetSwapFeeRate() int64 { + if x != nil { + return x.SwapFeeRate } return 0 } -func (m *ServerLoopOutQuote) GetPrepayAmt() uint64 { - if m != nil { - return m.PrepayAmt +func (x *ServerLoopOutQuote) GetPrepayAmt() uint64 { + if x != nil { + return x.PrepayAmt } return 0 } // Deprecated: Do not use. -func (m *ServerLoopOutQuote) GetMinSwapAmount() uint64 { - if m != nil { - return m.MinSwapAmount +func (x *ServerLoopOutQuote) GetMinSwapAmount() uint64 { + if x != nil { + return x.MinSwapAmount } return 0 } // Deprecated: Do not use. -func (m *ServerLoopOutQuote) GetMaxSwapAmount() uint64 { - if m != nil { - return m.MaxSwapAmount +func (x *ServerLoopOutQuote) GetMaxSwapAmount() uint64 { + if x != nil { + return x.MaxSwapAmount } return 0 } // Deprecated: Do not use. -func (m *ServerLoopOutQuote) GetCltvDelta() int32 { - if m != nil { - return m.CltvDelta +func (x *ServerLoopOutQuote) GetCltvDelta() int32 { + if x != nil { + return x.CltvDelta } return 0 } type ServerLoopOutTermsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + /// The protocol version that the client adheres to. - ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` } -func (m *ServerLoopOutTermsRequest) Reset() { *m = ServerLoopOutTermsRequest{} } -func (m *ServerLoopOutTermsRequest) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutTermsRequest) ProtoMessage() {} -func (*ServerLoopOutTermsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{4} +func (x *ServerLoopOutTermsRequest) Reset() { + *x = ServerLoopOutTermsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutTermsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutTermsRequest.Unmarshal(m, b) -} -func (m *ServerLoopOutTermsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutTermsRequest.Marshal(b, m, deterministic) +func (x *ServerLoopOutTermsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutTermsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutTermsRequest.Merge(m, src) -} -func (m *ServerLoopOutTermsRequest) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutTermsRequest.Size(m) -} -func (m *ServerLoopOutTermsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutTermsRequest.DiscardUnknown(m) + +func (*ServerLoopOutTermsRequest) ProtoMessage() {} + +func (x *ServerLoopOutTermsRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutTermsRequest proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutTermsRequest.ProtoReflect.Descriptor instead. +func (*ServerLoopOutTermsRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{4} +} -func (m *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } type ServerLoopOutTerms struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // The minimally accepted cltv delta of the on-chain htlc. MinCltvDelta int32 `protobuf:"varint,3,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"` // The maximally accepted cltv delta of the on-chain htlc. - MaxCltvDelta int32 `protobuf:"varint,4,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MaxCltvDelta int32 `protobuf:"varint,4,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"` } -func (m *ServerLoopOutTerms) Reset() { *m = ServerLoopOutTerms{} } -func (m *ServerLoopOutTerms) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutTerms) ProtoMessage() {} -func (*ServerLoopOutTerms) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{5} +func (x *ServerLoopOutTerms) Reset() { + *x = ServerLoopOutTerms{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutTerms) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutTerms.Unmarshal(m, b) -} -func (m *ServerLoopOutTerms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutTerms.Marshal(b, m, deterministic) -} -func (m *ServerLoopOutTerms) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutTerms.Merge(m, src) -} -func (m *ServerLoopOutTerms) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutTerms.Size(m) +func (x *ServerLoopOutTerms) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutTerms) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutTerms.DiscardUnknown(m) + +func (*ServerLoopOutTerms) ProtoMessage() {} + +func (x *ServerLoopOutTerms) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutTerms proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutTerms.ProtoReflect.Descriptor instead. +func (*ServerLoopOutTerms) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{5} +} -func (m *ServerLoopOutTerms) GetMinSwapAmount() uint64 { - if m != nil { - return m.MinSwapAmount +func (x *ServerLoopOutTerms) GetMinSwapAmount() uint64 { + if x != nil { + return x.MinSwapAmount } return 0 } -func (m *ServerLoopOutTerms) GetMaxSwapAmount() uint64 { - if m != nil { - return m.MaxSwapAmount +func (x *ServerLoopOutTerms) GetMaxSwapAmount() uint64 { + if x != nil { + return x.MaxSwapAmount } return 0 } -func (m *ServerLoopOutTerms) GetMinCltvDelta() int32 { - if m != nil { - return m.MinCltvDelta +func (x *ServerLoopOutTerms) GetMinCltvDelta() int32 { + if x != nil { + return x.MinCltvDelta } return 0 } -func (m *ServerLoopOutTerms) GetMaxCltvDelta() int32 { - if m != nil { - return m.MaxCltvDelta +func (x *ServerLoopOutTerms) GetMaxCltvDelta() int32 { + if x != nil { + return x.MaxCltvDelta } return 0 } type ServerLoopInRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + SenderKey []byte `protobuf:"bytes,1,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"` SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` @@ -720,355 +869,402 @@ type ServerLoopInRequest struct { // Examples: // loopd/v0.10.0-beta/commit=3b635821 // litd/v0.2.0-alpha/commit=326d754 - UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` } -func (m *ServerLoopInRequest) Reset() { *m = ServerLoopInRequest{} } -func (m *ServerLoopInRequest) String() string { return proto.CompactTextString(m) } -func (*ServerLoopInRequest) ProtoMessage() {} -func (*ServerLoopInRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{6} +func (x *ServerLoopInRequest) Reset() { + *x = ServerLoopInRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopInRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopInRequest.Unmarshal(m, b) -} -func (m *ServerLoopInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopInRequest.Marshal(b, m, deterministic) -} -func (m *ServerLoopInRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopInRequest.Merge(m, src) +func (x *ServerLoopInRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopInRequest) XXX_Size() int { - return xxx_messageInfo_ServerLoopInRequest.Size(m) -} -func (m *ServerLoopInRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopInRequest.DiscardUnknown(m) + +func (*ServerLoopInRequest) ProtoMessage() {} + +func (x *ServerLoopInRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopInRequest proto.InternalMessageInfo +// Deprecated: Use ServerLoopInRequest.ProtoReflect.Descriptor instead. +func (*ServerLoopInRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{6} +} -func (m *ServerLoopInRequest) GetSenderKey() []byte { - if m != nil { - return m.SenderKey +func (x *ServerLoopInRequest) GetSenderKey() []byte { + if x != nil { + return x.SenderKey } return nil } -func (m *ServerLoopInRequest) GetSwapHash() []byte { - if m != nil { - return m.SwapHash +func (x *ServerLoopInRequest) GetSwapHash() []byte { + if x != nil { + return x.SwapHash } return nil } -func (m *ServerLoopInRequest) GetAmt() uint64 { - if m != nil { - return m.Amt +func (x *ServerLoopInRequest) GetAmt() uint64 { + if x != nil { + return x.Amt } return 0 } -func (m *ServerLoopInRequest) GetSwapInvoice() string { - if m != nil { - return m.SwapInvoice +func (x *ServerLoopInRequest) GetSwapInvoice() string { + if x != nil { + return x.SwapInvoice } return "" } -func (m *ServerLoopInRequest) GetLastHop() []byte { - if m != nil { - return m.LastHop +func (x *ServerLoopInRequest) GetLastHop() []byte { + if x != nil { + return x.LastHop } return nil } -func (m *ServerLoopInRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *ServerLoopInRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } -func (m *ServerLoopInRequest) GetProbeInvoice() string { - if m != nil { - return m.ProbeInvoice +func (x *ServerLoopInRequest) GetProbeInvoice() string { + if x != nil { + return x.ProbeInvoice } return "" } -func (m *ServerLoopInRequest) GetUserAgent() string { - if m != nil { - return m.UserAgent +func (x *ServerLoopInRequest) GetUserAgent() string { + if x != nil { + return x.UserAgent } return "" } type ServerLoopInResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"` Expiry int32 `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"` // A human-readable message from the loop server. - ServerMessage string `protobuf:"bytes,3,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServerMessage string `protobuf:"bytes,3,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"` } -func (m *ServerLoopInResponse) Reset() { *m = ServerLoopInResponse{} } -func (m *ServerLoopInResponse) String() string { return proto.CompactTextString(m) } -func (*ServerLoopInResponse) ProtoMessage() {} -func (*ServerLoopInResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{7} +func (x *ServerLoopInResponse) Reset() { + *x = ServerLoopInResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopInResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopInResponse.Unmarshal(m, b) -} -func (m *ServerLoopInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopInResponse.Marshal(b, m, deterministic) -} -func (m *ServerLoopInResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopInResponse.Merge(m, src) +func (x *ServerLoopInResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopInResponse) XXX_Size() int { - return xxx_messageInfo_ServerLoopInResponse.Size(m) -} -func (m *ServerLoopInResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopInResponse.DiscardUnknown(m) + +func (*ServerLoopInResponse) ProtoMessage() {} + +func (x *ServerLoopInResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopInResponse proto.InternalMessageInfo +// Deprecated: Use ServerLoopInResponse.ProtoReflect.Descriptor instead. +func (*ServerLoopInResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{7} +} -func (m *ServerLoopInResponse) GetReceiverKey() []byte { - if m != nil { - return m.ReceiverKey +func (x *ServerLoopInResponse) GetReceiverKey() []byte { + if x != nil { + return x.ReceiverKey } return nil } -func (m *ServerLoopInResponse) GetExpiry() int32 { - if m != nil { - return m.Expiry +func (x *ServerLoopInResponse) GetExpiry() int32 { + if x != nil { + return x.Expiry } return 0 } -func (m *ServerLoopInResponse) GetServerMessage() string { - if m != nil { - return m.ServerMessage +func (x *ServerLoopInResponse) GetServerMessage() string { + if x != nil { + return x.ServerMessage } return "" } type ServerLoopInQuoteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + /// The swap amount. If zero, a quote for a maximum amt swap will be given. Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"` /// The protocol version that the client adheres to. - ProtocolVersion ProtocolVersion `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ProtocolVersion ProtocolVersion `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` } -func (m *ServerLoopInQuoteRequest) Reset() { *m = ServerLoopInQuoteRequest{} } -func (m *ServerLoopInQuoteRequest) String() string { return proto.CompactTextString(m) } -func (*ServerLoopInQuoteRequest) ProtoMessage() {} -func (*ServerLoopInQuoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{8} +func (x *ServerLoopInQuoteRequest) Reset() { + *x = ServerLoopInQuoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopInQuoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopInQuoteRequest.Unmarshal(m, b) -} -func (m *ServerLoopInQuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopInQuoteRequest.Marshal(b, m, deterministic) -} -func (m *ServerLoopInQuoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopInQuoteRequest.Merge(m, src) +func (x *ServerLoopInQuoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopInQuoteRequest) XXX_Size() int { - return xxx_messageInfo_ServerLoopInQuoteRequest.Size(m) -} -func (m *ServerLoopInQuoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopInQuoteRequest.DiscardUnknown(m) + +func (*ServerLoopInQuoteRequest) ProtoMessage() {} + +func (x *ServerLoopInQuoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopInQuoteRequest proto.InternalMessageInfo +// Deprecated: Use ServerLoopInQuoteRequest.ProtoReflect.Descriptor instead. +func (*ServerLoopInQuoteRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{8} +} -func (m *ServerLoopInQuoteRequest) GetAmt() uint64 { - if m != nil { - return m.Amt +func (x *ServerLoopInQuoteRequest) GetAmt() uint64 { + if x != nil { + return x.Amt } return 0 } -func (m *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } type ServerLoopInQuoteResponse struct { - SwapFee int64 `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"` - SwapFeeRate int64 `protobuf:"varint,2,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` // Deprecated: Do not use. - MinSwapAmount uint64 `protobuf:"varint,4,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use. - MaxSwapAmount uint64 `protobuf:"varint,5,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // Deprecated: Do not use. - CltvDelta int32 `protobuf:"varint,6,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServerLoopInQuoteResponse) Reset() { *m = ServerLoopInQuoteResponse{} } -func (m *ServerLoopInQuoteResponse) String() string { return proto.CompactTextString(m) } -func (*ServerLoopInQuoteResponse) ProtoMessage() {} -func (*ServerLoopInQuoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{9} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ServerLoopInQuoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopInQuoteResponse.Unmarshal(m, b) -} -func (m *ServerLoopInQuoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopInQuoteResponse.Marshal(b, m, deterministic) + SwapFee int64 `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"` + // Deprecated: Do not use. + SwapFeeRate int64 `protobuf:"varint,2,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` + // Deprecated: Do not use. + MinSwapAmount uint64 `protobuf:"varint,4,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` + // Deprecated: Do not use. + MaxSwapAmount uint64 `protobuf:"varint,5,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` + CltvDelta int32 `protobuf:"varint,6,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` } -func (m *ServerLoopInQuoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopInQuoteResponse.Merge(m, src) + +func (x *ServerLoopInQuoteResponse) Reset() { + *x = ServerLoopInQuoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopInQuoteResponse) XXX_Size() int { - return xxx_messageInfo_ServerLoopInQuoteResponse.Size(m) + +func (x *ServerLoopInQuoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopInQuoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopInQuoteResponse.DiscardUnknown(m) + +func (*ServerLoopInQuoteResponse) ProtoMessage() {} + +func (x *ServerLoopInQuoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopInQuoteResponse proto.InternalMessageInfo +// Deprecated: Use ServerLoopInQuoteResponse.ProtoReflect.Descriptor instead. +func (*ServerLoopInQuoteResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{9} +} -func (m *ServerLoopInQuoteResponse) GetSwapFee() int64 { - if m != nil { - return m.SwapFee +func (x *ServerLoopInQuoteResponse) GetSwapFee() int64 { + if x != nil { + return x.SwapFee } return 0 } // Deprecated: Do not use. -func (m *ServerLoopInQuoteResponse) GetSwapFeeRate() int64 { - if m != nil { - return m.SwapFeeRate +func (x *ServerLoopInQuoteResponse) GetSwapFeeRate() int64 { + if x != nil { + return x.SwapFeeRate } return 0 } // Deprecated: Do not use. -func (m *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64 { - if m != nil { - return m.MinSwapAmount +func (x *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64 { + if x != nil { + return x.MinSwapAmount } return 0 } // Deprecated: Do not use. -func (m *ServerLoopInQuoteResponse) GetMaxSwapAmount() uint64 { - if m != nil { - return m.MaxSwapAmount +func (x *ServerLoopInQuoteResponse) GetMaxSwapAmount() uint64 { + if x != nil { + return x.MaxSwapAmount } return 0 } -func (m *ServerLoopInQuoteResponse) GetCltvDelta() int32 { - if m != nil { - return m.CltvDelta +func (x *ServerLoopInQuoteResponse) GetCltvDelta() int32 { + if x != nil { + return x.CltvDelta } return 0 } type ServerLoopInTermsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + /// The protocol version that the client adheres to. - ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` } -func (m *ServerLoopInTermsRequest) Reset() { *m = ServerLoopInTermsRequest{} } -func (m *ServerLoopInTermsRequest) String() string { return proto.CompactTextString(m) } -func (*ServerLoopInTermsRequest) ProtoMessage() {} -func (*ServerLoopInTermsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{10} +func (x *ServerLoopInTermsRequest) Reset() { + *x = ServerLoopInTermsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopInTermsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopInTermsRequest.Unmarshal(m, b) -} -func (m *ServerLoopInTermsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopInTermsRequest.Marshal(b, m, deterministic) -} -func (m *ServerLoopInTermsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopInTermsRequest.Merge(m, src) -} -func (m *ServerLoopInTermsRequest) XXX_Size() int { - return xxx_messageInfo_ServerLoopInTermsRequest.Size(m) +func (x *ServerLoopInTermsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopInTermsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopInTermsRequest.DiscardUnknown(m) + +func (*ServerLoopInTermsRequest) ProtoMessage() {} + +func (x *ServerLoopInTermsRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopInTermsRequest proto.InternalMessageInfo +// Deprecated: Use ServerLoopInTermsRequest.ProtoReflect.Descriptor instead. +func (*ServerLoopInTermsRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{10} +} -func (m *ServerLoopInTermsRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *ServerLoopInTermsRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } type ServerLoopInTerms struct { - MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` - MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ServerLoopInTerms) Reset() { *m = ServerLoopInTerms{} } -func (m *ServerLoopInTerms) String() string { return proto.CompactTextString(m) } -func (*ServerLoopInTerms) ProtoMessage() {} -func (*ServerLoopInTerms) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{11} + MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` + MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` } -func (m *ServerLoopInTerms) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopInTerms.Unmarshal(m, b) -} -func (m *ServerLoopInTerms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopInTerms.Marshal(b, m, deterministic) -} -func (m *ServerLoopInTerms) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopInTerms.Merge(m, src) +func (x *ServerLoopInTerms) Reset() { + *x = ServerLoopInTerms{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopInTerms) XXX_Size() int { - return xxx_messageInfo_ServerLoopInTerms.Size(m) + +func (x *ServerLoopInTerms) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopInTerms) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopInTerms.DiscardUnknown(m) + +func (*ServerLoopInTerms) ProtoMessage() {} + +func (x *ServerLoopInTerms) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopInTerms proto.InternalMessageInfo +// Deprecated: Use ServerLoopInTerms.ProtoReflect.Descriptor instead. +func (*ServerLoopInTerms) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{11} +} -func (m *ServerLoopInTerms) GetMinSwapAmount() uint64 { - if m != nil { - return m.MinSwapAmount +func (x *ServerLoopInTerms) GetMinSwapAmount() uint64 { + if x != nil { + return x.MinSwapAmount } return 0 } -func (m *ServerLoopInTerms) GetMaxSwapAmount() uint64 { - if m != nil { - return m.MaxSwapAmount +func (x *ServerLoopInTerms) GetMaxSwapAmount() uint64 { + if x != nil { + return x.MaxSwapAmount } return 0 } @@ -1077,334 +1273,393 @@ func (m *ServerLoopInTerms) GetMaxSwapAmount() uint64 { // this call returns with no error after the server acknowledges the preimage // and does not block until the invoice is settled. type ServerLoopOutPushPreimageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // //Preimage is the preimage of the loop out swap that we wish to push to the //server to speed up off-chain claim once the on-chain htlc has confirmed. - Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"` } -func (m *ServerLoopOutPushPreimageRequest) Reset() { *m = ServerLoopOutPushPreimageRequest{} } -func (m *ServerLoopOutPushPreimageRequest) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutPushPreimageRequest) ProtoMessage() {} -func (*ServerLoopOutPushPreimageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{12} +func (x *ServerLoopOutPushPreimageRequest) Reset() { + *x = ServerLoopOutPushPreimageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutPushPreimageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutPushPreimageRequest.Unmarshal(m, b) -} -func (m *ServerLoopOutPushPreimageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutPushPreimageRequest.Marshal(b, m, deterministic) +func (x *ServerLoopOutPushPreimageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutPushPreimageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutPushPreimageRequest.Merge(m, src) -} -func (m *ServerLoopOutPushPreimageRequest) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutPushPreimageRequest.Size(m) -} -func (m *ServerLoopOutPushPreimageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutPushPreimageRequest.DiscardUnknown(m) + +func (*ServerLoopOutPushPreimageRequest) ProtoMessage() {} + +func (x *ServerLoopOutPushPreimageRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutPushPreimageRequest proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutPushPreimageRequest.ProtoReflect.Descriptor instead. +func (*ServerLoopOutPushPreimageRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{12} +} -func (m *ServerLoopOutPushPreimageRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *ServerLoopOutPushPreimageRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } -func (m *ServerLoopOutPushPreimageRequest) GetPreimage() []byte { - if m != nil { - return m.Preimage +func (x *ServerLoopOutPushPreimageRequest) GetPreimage() []byte { + if x != nil { + return x.Preimage } return nil } type ServerLoopOutPushPreimageResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServerLoopOutPushPreimageResponse) Reset() { *m = ServerLoopOutPushPreimageResponse{} } -func (m *ServerLoopOutPushPreimageResponse) String() string { return proto.CompactTextString(m) } -func (*ServerLoopOutPushPreimageResponse) ProtoMessage() {} -func (*ServerLoopOutPushPreimageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{13} +func (x *ServerLoopOutPushPreimageResponse) Reset() { + *x = ServerLoopOutPushPreimageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServerLoopOutPushPreimageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ServerLoopOutPushPreimageResponse.Unmarshal(m, b) -} -func (m *ServerLoopOutPushPreimageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ServerLoopOutPushPreimageResponse.Marshal(b, m, deterministic) -} -func (m *ServerLoopOutPushPreimageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerLoopOutPushPreimageResponse.Merge(m, src) -} -func (m *ServerLoopOutPushPreimageResponse) XXX_Size() int { - return xxx_messageInfo_ServerLoopOutPushPreimageResponse.Size(m) +func (x *ServerLoopOutPushPreimageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServerLoopOutPushPreimageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ServerLoopOutPushPreimageResponse.DiscardUnknown(m) + +func (*ServerLoopOutPushPreimageResponse) ProtoMessage() {} + +func (x *ServerLoopOutPushPreimageResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ServerLoopOutPushPreimageResponse proto.InternalMessageInfo +// Deprecated: Use ServerLoopOutPushPreimageResponse.ProtoReflect.Descriptor instead. +func (*ServerLoopOutPushPreimageResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{13} +} type SubscribeUpdatesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // Swap hash is the hash of the swap to subscribe to updates for. - SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"` } -func (m *SubscribeUpdatesRequest) Reset() { *m = SubscribeUpdatesRequest{} } -func (m *SubscribeUpdatesRequest) String() string { return proto.CompactTextString(m) } -func (*SubscribeUpdatesRequest) ProtoMessage() {} -func (*SubscribeUpdatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{14} +func (x *SubscribeUpdatesRequest) Reset() { + *x = SubscribeUpdatesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SubscribeUpdatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeUpdatesRequest.Unmarshal(m, b) -} -func (m *SubscribeUpdatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeUpdatesRequest.Marshal(b, m, deterministic) -} -func (m *SubscribeUpdatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeUpdatesRequest.Merge(m, src) +func (x *SubscribeUpdatesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubscribeUpdatesRequest) XXX_Size() int { - return xxx_messageInfo_SubscribeUpdatesRequest.Size(m) -} -func (m *SubscribeUpdatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeUpdatesRequest.DiscardUnknown(m) + +func (*SubscribeUpdatesRequest) ProtoMessage() {} + +func (x *SubscribeUpdatesRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SubscribeUpdatesRequest proto.InternalMessageInfo +// Deprecated: Use SubscribeUpdatesRequest.ProtoReflect.Descriptor instead. +func (*SubscribeUpdatesRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{14} +} -func (m *SubscribeUpdatesRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *SubscribeUpdatesRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion } return ProtocolVersion_LEGACY } -func (m *SubscribeUpdatesRequest) GetSwapHash() []byte { - if m != nil { - return m.SwapHash +func (x *SubscribeUpdatesRequest) GetSwapHash() []byte { + if x != nil { + return x.SwapHash } return nil } type SubscribeLoopOutUpdatesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The unix timestamp in nanoseconds when the swap was updated. TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"` // The swap's current state. - State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"` } -func (m *SubscribeLoopOutUpdatesResponse) Reset() { *m = SubscribeLoopOutUpdatesResponse{} } -func (m *SubscribeLoopOutUpdatesResponse) String() string { return proto.CompactTextString(m) } -func (*SubscribeLoopOutUpdatesResponse) ProtoMessage() {} -func (*SubscribeLoopOutUpdatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{15} +func (x *SubscribeLoopOutUpdatesResponse) Reset() { + *x = SubscribeLoopOutUpdatesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SubscribeLoopOutUpdatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeLoopOutUpdatesResponse.Unmarshal(m, b) +func (x *SubscribeLoopOutUpdatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubscribeLoopOutUpdatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeLoopOutUpdatesResponse.Marshal(b, m, deterministic) -} -func (m *SubscribeLoopOutUpdatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeLoopOutUpdatesResponse.Merge(m, src) -} -func (m *SubscribeLoopOutUpdatesResponse) XXX_Size() int { - return xxx_messageInfo_SubscribeLoopOutUpdatesResponse.Size(m) -} -func (m *SubscribeLoopOutUpdatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeLoopOutUpdatesResponse.DiscardUnknown(m) + +func (*SubscribeLoopOutUpdatesResponse) ProtoMessage() {} + +func (x *SubscribeLoopOutUpdatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SubscribeLoopOutUpdatesResponse proto.InternalMessageInfo +// Deprecated: Use SubscribeLoopOutUpdatesResponse.ProtoReflect.Descriptor instead. +func (*SubscribeLoopOutUpdatesResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{15} +} -func (m *SubscribeLoopOutUpdatesResponse) GetTimestampNs() int64 { - if m != nil { - return m.TimestampNs +func (x *SubscribeLoopOutUpdatesResponse) GetTimestampNs() int64 { + if x != nil { + return x.TimestampNs } return 0 } -func (m *SubscribeLoopOutUpdatesResponse) GetState() ServerSwapState { - if m != nil { - return m.State +func (x *SubscribeLoopOutUpdatesResponse) GetState() ServerSwapState { + if x != nil { + return x.State } return ServerSwapState_SERVER_INITIATED } type SubscribeLoopInUpdatesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The unix timestamp in nanoseconds when the swap was updated. TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"` // The swap's current state. - State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + State ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"` } -func (m *SubscribeLoopInUpdatesResponse) Reset() { *m = SubscribeLoopInUpdatesResponse{} } -func (m *SubscribeLoopInUpdatesResponse) String() string { return proto.CompactTextString(m) } -func (*SubscribeLoopInUpdatesResponse) ProtoMessage() {} -func (*SubscribeLoopInUpdatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{16} +func (x *SubscribeLoopInUpdatesResponse) Reset() { + *x = SubscribeLoopInUpdatesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SubscribeLoopInUpdatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeLoopInUpdatesResponse.Unmarshal(m, b) -} -func (m *SubscribeLoopInUpdatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeLoopInUpdatesResponse.Marshal(b, m, deterministic) -} -func (m *SubscribeLoopInUpdatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeLoopInUpdatesResponse.Merge(m, src) +func (x *SubscribeLoopInUpdatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SubscribeLoopInUpdatesResponse) XXX_Size() int { - return xxx_messageInfo_SubscribeLoopInUpdatesResponse.Size(m) -} -func (m *SubscribeLoopInUpdatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeLoopInUpdatesResponse.DiscardUnknown(m) + +func (*SubscribeLoopInUpdatesResponse) ProtoMessage() {} + +func (x *SubscribeLoopInUpdatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SubscribeLoopInUpdatesResponse proto.InternalMessageInfo +// Deprecated: Use SubscribeLoopInUpdatesResponse.ProtoReflect.Descriptor instead. +func (*SubscribeLoopInUpdatesResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{16} +} -func (m *SubscribeLoopInUpdatesResponse) GetTimestampNs() int64 { - if m != nil { - return m.TimestampNs +func (x *SubscribeLoopInUpdatesResponse) GetTimestampNs() int64 { + if x != nil { + return x.TimestampNs } return 0 } -func (m *SubscribeLoopInUpdatesResponse) GetState() ServerSwapState { - if m != nil { - return m.State +func (x *SubscribeLoopInUpdatesResponse) GetState() ServerSwapState { + if x != nil { + return x.State } return ServerSwapState_SERVER_INITIATED } type RouteCancel struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The type of the payment that failed. RouteType RoutePaymentType `protobuf:"varint,1,opt,name=route_type,json=routeType,proto3,enum=looprpc.RoutePaymentType" json:"route_type,omitempty"` // The htlcs that the client tried to pay the server with, if any. Attempts []*HtlcAttempt `protobuf:"bytes,2,rep,name=attempts,proto3" json:"attempts,omitempty"` // The reason that the payment failed. - Failure PaymentFailureReason `protobuf:"varint,3,opt,name=failure,proto3,enum=looprpc.PaymentFailureReason" json:"failure,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Failure PaymentFailureReason `protobuf:"varint,3,opt,name=failure,proto3,enum=looprpc.PaymentFailureReason" json:"failure,omitempty"` } -func (m *RouteCancel) Reset() { *m = RouteCancel{} } -func (m *RouteCancel) String() string { return proto.CompactTextString(m) } -func (*RouteCancel) ProtoMessage() {} -func (*RouteCancel) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{17} +func (x *RouteCancel) Reset() { + *x = RouteCancel{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RouteCancel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RouteCancel.Unmarshal(m, b) -} -func (m *RouteCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RouteCancel.Marshal(b, m, deterministic) -} -func (m *RouteCancel) XXX_Merge(src proto.Message) { - xxx_messageInfo_RouteCancel.Merge(m, src) -} -func (m *RouteCancel) XXX_Size() int { - return xxx_messageInfo_RouteCancel.Size(m) +func (x *RouteCancel) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RouteCancel) XXX_DiscardUnknown() { - xxx_messageInfo_RouteCancel.DiscardUnknown(m) + +func (*RouteCancel) ProtoMessage() {} + +func (x *RouteCancel) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RouteCancel proto.InternalMessageInfo +// Deprecated: Use RouteCancel.ProtoReflect.Descriptor instead. +func (*RouteCancel) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{17} +} -func (m *RouteCancel) GetRouteType() RoutePaymentType { - if m != nil { - return m.RouteType +func (x *RouteCancel) GetRouteType() RoutePaymentType { + if x != nil { + return x.RouteType } return RoutePaymentType_ROUTE_UNKNOWN } -func (m *RouteCancel) GetAttempts() []*HtlcAttempt { - if m != nil { - return m.Attempts +func (x *RouteCancel) GetAttempts() []*HtlcAttempt { + if x != nil { + return x.Attempts } return nil } -func (m *RouteCancel) GetFailure() PaymentFailureReason { - if m != nil { - return m.Failure +func (x *RouteCancel) GetFailure() PaymentFailureReason { + if x != nil { + return x.Failure } return PaymentFailureReason_LND_FAILURE_REASON_NONE } type HtlcAttempt struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The number of hops from the htlc's failure hop that it needed to take // to reach the server's node. - RemainingHops uint32 `protobuf:"varint,1,opt,name=remaining_hops,json=remainingHops,proto3" json:"remaining_hops,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RemainingHops uint32 `protobuf:"varint,1,opt,name=remaining_hops,json=remainingHops,proto3" json:"remaining_hops,omitempty"` } -func (m *HtlcAttempt) Reset() { *m = HtlcAttempt{} } -func (m *HtlcAttempt) String() string { return proto.CompactTextString(m) } -func (*HtlcAttempt) ProtoMessage() {} -func (*HtlcAttempt) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{18} +func (x *HtlcAttempt) Reset() { + *x = HtlcAttempt{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *HtlcAttempt) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HtlcAttempt.Unmarshal(m, b) +func (x *HtlcAttempt) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HtlcAttempt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HtlcAttempt.Marshal(b, m, deterministic) -} -func (m *HtlcAttempt) XXX_Merge(src proto.Message) { - xxx_messageInfo_HtlcAttempt.Merge(m, src) -} -func (m *HtlcAttempt) XXX_Size() int { - return xxx_messageInfo_HtlcAttempt.Size(m) -} -func (m *HtlcAttempt) XXX_DiscardUnknown() { - xxx_messageInfo_HtlcAttempt.DiscardUnknown(m) + +func (*HtlcAttempt) ProtoMessage() {} + +func (x *HtlcAttempt) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_HtlcAttempt proto.InternalMessageInfo +// Deprecated: Use HtlcAttempt.ProtoReflect.Descriptor instead. +func (*HtlcAttempt) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{18} +} -func (m *HtlcAttempt) GetRemainingHops() uint32 { - if m != nil { - return m.RemainingHops +func (x *HtlcAttempt) GetRemainingHops() uint32 { + if x != nil { + return x.RemainingHops } return 0 } type CancelLoopOutSwapRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The protocol version that the client adheres to. ProtocolVersion ProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"` // The swap hash. @@ -1414,56 +1669,74 @@ type CancelLoopOutSwapRequest struct { PaymentAddress []byte `protobuf:"bytes,3,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"` // Additional information about the swap cancelation. // - // Types that are valid to be assigned to CancelInfo: + // Types that are assignable to CancelInfo: // *CancelLoopOutSwapRequest_RouteCancel - CancelInfo isCancelLoopOutSwapRequest_CancelInfo `protobuf_oneof:"cancel_info"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CancelInfo isCancelLoopOutSwapRequest_CancelInfo `protobuf_oneof:"cancel_info"` } -func (m *CancelLoopOutSwapRequest) Reset() { *m = CancelLoopOutSwapRequest{} } -func (m *CancelLoopOutSwapRequest) String() string { return proto.CompactTextString(m) } -func (*CancelLoopOutSwapRequest) ProtoMessage() {} -func (*CancelLoopOutSwapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{19} +func (x *CancelLoopOutSwapRequest) Reset() { + *x = CancelLoopOutSwapRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CancelLoopOutSwapRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelLoopOutSwapRequest.Unmarshal(m, b) -} -func (m *CancelLoopOutSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelLoopOutSwapRequest.Marshal(b, m, deterministic) +func (x *CancelLoopOutSwapRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelLoopOutSwapRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelLoopOutSwapRequest.Merge(m, src) + +func (*CancelLoopOutSwapRequest) ProtoMessage() {} + +func (x *CancelLoopOutSwapRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *CancelLoopOutSwapRequest) XXX_Size() int { - return xxx_messageInfo_CancelLoopOutSwapRequest.Size(m) + +// Deprecated: Use CancelLoopOutSwapRequest.ProtoReflect.Descriptor instead. +func (*CancelLoopOutSwapRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{19} } -func (m *CancelLoopOutSwapRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CancelLoopOutSwapRequest.DiscardUnknown(m) + +func (x *CancelLoopOutSwapRequest) GetProtocolVersion() ProtocolVersion { + if x != nil { + return x.ProtocolVersion + } + return ProtocolVersion_LEGACY } -var xxx_messageInfo_CancelLoopOutSwapRequest proto.InternalMessageInfo +func (x *CancelLoopOutSwapRequest) GetSwapHash() []byte { + if x != nil { + return x.SwapHash + } + return nil +} -func (m *CancelLoopOutSwapRequest) GetProtocolVersion() ProtocolVersion { - if m != nil { - return m.ProtocolVersion +func (x *CancelLoopOutSwapRequest) GetPaymentAddress() []byte { + if x != nil { + return x.PaymentAddress } - return ProtocolVersion_LEGACY + return nil } -func (m *CancelLoopOutSwapRequest) GetSwapHash() []byte { +func (m *CancelLoopOutSwapRequest) GetCancelInfo() isCancelLoopOutSwapRequest_CancelInfo { if m != nil { - return m.SwapHash + return m.CancelInfo } return nil } -func (m *CancelLoopOutSwapRequest) GetPaymentAddress() []byte { - if m != nil { - return m.PaymentAddress +func (x *CancelLoopOutSwapRequest) GetRouteCancel() *RouteCancel { + if x, ok := x.GetCancelInfo().(*CancelLoopOutSwapRequest_RouteCancel); ok { + return x.RouteCancel } return nil } @@ -1478,207 +1751,749 @@ type CancelLoopOutSwapRequest_RouteCancel struct { func (*CancelLoopOutSwapRequest_RouteCancel) isCancelLoopOutSwapRequest_CancelInfo() {} -func (m *CancelLoopOutSwapRequest) GetCancelInfo() isCancelLoopOutSwapRequest_CancelInfo { - if m != nil { - return m.CancelInfo - } - return nil +type CancelLoopOutSwapResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CancelLoopOutSwapRequest) GetRouteCancel() *RouteCancel { - if x, ok := m.GetCancelInfo().(*CancelLoopOutSwapRequest_RouteCancel); ok { - return x.RouteCancel +func (x *CancelLoopOutSwapResponse) Reset() { + *x = CancelLoopOutSwapResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CancelLoopOutSwapRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CancelLoopOutSwapRequest_RouteCancel)(nil), - } +func (x *CancelLoopOutSwapResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type CancelLoopOutSwapResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (*CancelLoopOutSwapResponse) ProtoMessage() {} + +func (x *CancelLoopOutSwapResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *CancelLoopOutSwapResponse) Reset() { *m = CancelLoopOutSwapResponse{} } -func (m *CancelLoopOutSwapResponse) String() string { return proto.CompactTextString(m) } -func (*CancelLoopOutSwapResponse) ProtoMessage() {} +// Deprecated: Use CancelLoopOutSwapResponse.ProtoReflect.Descriptor instead. func (*CancelLoopOutSwapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad098daeda4239f7, []int{20} -} - -func (m *CancelLoopOutSwapResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelLoopOutSwapResponse.Unmarshal(m, b) -} -func (m *CancelLoopOutSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelLoopOutSwapResponse.Marshal(b, m, deterministic) -} -func (m *CancelLoopOutSwapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelLoopOutSwapResponse.Merge(m, src) -} -func (m *CancelLoopOutSwapResponse) XXX_Size() int { - return xxx_messageInfo_CancelLoopOutSwapResponse.Size(m) -} -func (m *CancelLoopOutSwapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelLoopOutSwapResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CancelLoopOutSwapResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("looprpc.ProtocolVersion", ProtocolVersion_name, ProtocolVersion_value) - proto.RegisterEnum("looprpc.ServerSwapState", ServerSwapState_name, ServerSwapState_value) - proto.RegisterEnum("looprpc.RoutePaymentType", RoutePaymentType_name, RoutePaymentType_value) - proto.RegisterEnum("looprpc.PaymentFailureReason", PaymentFailureReason_name, PaymentFailureReason_value) - proto.RegisterType((*ServerLoopOutRequest)(nil), "looprpc.ServerLoopOutRequest") - proto.RegisterType((*ServerLoopOutResponse)(nil), "looprpc.ServerLoopOutResponse") - proto.RegisterType((*ServerLoopOutQuoteRequest)(nil), "looprpc.ServerLoopOutQuoteRequest") - proto.RegisterType((*ServerLoopOutQuote)(nil), "looprpc.ServerLoopOutQuote") - proto.RegisterType((*ServerLoopOutTermsRequest)(nil), "looprpc.ServerLoopOutTermsRequest") - proto.RegisterType((*ServerLoopOutTerms)(nil), "looprpc.ServerLoopOutTerms") - proto.RegisterType((*ServerLoopInRequest)(nil), "looprpc.ServerLoopInRequest") - proto.RegisterType((*ServerLoopInResponse)(nil), "looprpc.ServerLoopInResponse") - proto.RegisterType((*ServerLoopInQuoteRequest)(nil), "looprpc.ServerLoopInQuoteRequest") - proto.RegisterType((*ServerLoopInQuoteResponse)(nil), "looprpc.ServerLoopInQuoteResponse") - proto.RegisterType((*ServerLoopInTermsRequest)(nil), "looprpc.ServerLoopInTermsRequest") - proto.RegisterType((*ServerLoopInTerms)(nil), "looprpc.ServerLoopInTerms") - proto.RegisterType((*ServerLoopOutPushPreimageRequest)(nil), "looprpc.ServerLoopOutPushPreimageRequest") - proto.RegisterType((*ServerLoopOutPushPreimageResponse)(nil), "looprpc.ServerLoopOutPushPreimageResponse") - proto.RegisterType((*SubscribeUpdatesRequest)(nil), "looprpc.SubscribeUpdatesRequest") - proto.RegisterType((*SubscribeLoopOutUpdatesResponse)(nil), "looprpc.SubscribeLoopOutUpdatesResponse") - proto.RegisterType((*SubscribeLoopInUpdatesResponse)(nil), "looprpc.SubscribeLoopInUpdatesResponse") - proto.RegisterType((*RouteCancel)(nil), "looprpc.RouteCancel") - proto.RegisterType((*HtlcAttempt)(nil), "looprpc.HtlcAttempt") - proto.RegisterType((*CancelLoopOutSwapRequest)(nil), "looprpc.CancelLoopOutSwapRequest") - proto.RegisterType((*CancelLoopOutSwapResponse)(nil), "looprpc.CancelLoopOutSwapResponse") -} - -func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) } - -var fileDescriptor_ad098daeda4239f7 = []byte{ - // 1714 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6e, 0xdb, 0xca, - 0x15, 0x36, 0x25, 0xd9, 0xb2, 0x8e, 0x24, 0x9b, 0x99, 0xf8, 0x26, 0xb2, 0x1c, 0x27, 0x32, 0xd3, - 0x24, 0xae, 0x5b, 0x04, 0x41, 0x5a, 0xa0, 0x3f, 0x3b, 0x86, 0xa2, 0x23, 0xf6, 0xca, 0xa4, 0x3a, - 0xa4, 0x9c, 0x9b, 0x6e, 0x58, 0x5a, 0x9e, 0xd8, 0x44, 0x25, 0x92, 0x97, 0xa4, 0x1c, 0x1b, 0x5d, - 0x76, 0xd9, 0x67, 0x28, 0xd0, 0x75, 0x57, 0x45, 0x37, 0x7d, 0x80, 0x02, 0x7d, 0x81, 0xa2, 0xcf, - 0x51, 0xf4, 0x0d, 0x8a, 0x19, 0x0e, 0x25, 0x52, 0xa2, 0x92, 0xb8, 0x30, 0xb2, 0x13, 0xcf, 0xf9, - 0x78, 0x7e, 0xbe, 0x33, 0xfc, 0xe6, 0x08, 0x1a, 0x11, 0x09, 0xaf, 0x48, 0xf8, 0x32, 0x08, 0xfd, - 0xd8, 0x47, 0xd5, 0xb1, 0xef, 0x07, 0x61, 0x30, 0x92, 0xfe, 0x5c, 0x82, 0x1d, 0x93, 0x79, 0xfa, - 0xbe, 0x1f, 0x18, 0xd3, 0x18, 0x93, 0xef, 0xa7, 0x24, 0x8a, 0xd1, 0x01, 0x34, 0x42, 0x32, 0x22, - 0xee, 0x15, 0x09, 0xed, 0xdf, 0x91, 0x9b, 0x96, 0xd0, 0x11, 0x0e, 0x1b, 0xb8, 0x9e, 0xda, 0xbe, - 0x25, 0x37, 0x68, 0x0f, 0x6a, 0xd1, 0x47, 0x27, 0xb0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0x7e, 0x2a, - 0xf7, 0xb5, 0x6e, 0x92, 0x53, 0x3e, 0x31, 0x86, 0xba, 0x25, 0xae, 0xa3, 0xa7, 0xf0, 0x24, 0x0f, - 0x33, 0x8e, 0x8f, 0x6d, 0xa5, 0x27, 0x6b, 0xba, 0x6d, 0x69, 0x27, 0x2a, 0xe5, 0x63, 0x63, 0x39, - 0x4d, 0xea, 0xaa, 0xa2, 0x27, 0xb0, 0x97, 0x77, 0x99, 0xef, 0xe4, 0x81, 0xdd, 0x55, 0xe5, 0x6e, - 0x5f, 0xd3, 0x55, 0x71, 0x13, 0x49, 0xf0, 0x38, 0x0f, 0x98, 0xf7, 0xac, 0xc8, 0x96, 0x66, 0xe8, - 0x62, 0x0d, 0x3d, 0x82, 0x16, 0xc7, 0xf0, 0xc0, 0x19, 0x4e, 0x00, 0xed, 0xc3, 0x2e, 0xf7, 0x0e, - 0x75, 0xf5, 0xbb, 0x81, 0xaa, 0x58, 0x6a, 0x97, 0x05, 0x1b, 0x62, 0x55, 0xac, 0x2f, 0xb2, 0xa9, - 0x18, 0xfa, 0xb1, 0x86, 0x4f, 0xd4, 0xae, 0xd8, 0xc8, 0x14, 0xa7, 0xf4, 0x35, 0x55, 0xb7, 0xec, - 0x01, 0x56, 0x07, 0xf2, 0xfb, 0x74, 0x66, 0x4d, 0xd4, 0x81, 0x47, 0x79, 0x80, 0xa6, 0x9f, 0x1a, - 0x9a, 0xa2, 0xa6, 0x88, 0xad, 0xa3, 0x5f, 0x81, 0xb8, 0x28, 0x2f, 0xf4, 0x44, 0x60, 0x63, 0x68, - 0xa9, 0xb3, 0x41, 0xac, 0x21, 0x11, 0x1a, 0x3c, 0x36, 0xf3, 0x88, 0x02, 0x05, 0xa5, 0xc1, 0x12, - 0x53, 0xe9, 0xe8, 0xbf, 0x02, 0xec, 0x14, 0x49, 0x08, 0xda, 0x83, 0x87, 0x7d, 0x7d, 0xd6, 0x93, - 0x8d, 0x55, 0xd9, 0x34, 0x74, 0x5b, 0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0x2b, 0xad, 0x2d, 0x29, 0xb5, - 0xb8, 0xb6, 0x5c, 0xab, 0xd2, 0xa7, 0x20, 0x3c, 0xea, 0x45, 0x66, 0x27, 0xcb, 0xaf, 0x45, 0xa8, - 0x33, 0x7f, 0xbd, 0x78, 0x6b, 0x6b, 0x1f, 0x2e, 0x23, 0x8a, 0x57, 0xab, 0x57, 0x02, 0x22, 0xf0, - 0xa0, 0x78, 0x13, 0xfa, 0x82, 0x3c, 0x2f, 0x8a, 0xf3, 0x2c, 0x2d, 0x53, 0xaf, 0x04, 0xf4, 0x1b, - 0xb8, 0xb7, 0x74, 0x3d, 0x66, 0xb8, 0x5a, 0xb5, 0x2b, 0x64, 0xb8, 0x5a, 0x79, 0xbb, 0x9e, 0x6d, - 0xb0, 0xdd, 0xe0, 0x27, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x44, 0xb9, 0x6a, 0xb2, 0x29, 0x14, - 0x00, 0x00, + return file_server_proto_rawDescGZIP(), []int{20} +} + +var File_server_proto protoreflect.FileDescriptor + +var file_server_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x22, 0xa0, 0x02, 0x0a, 0x14, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, + 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, 0x61, 0x73, 0x68, + 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, + 0x6d, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x73, 0x77, 0x61, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x43, + 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, + 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xc3, 0x01, 0x0a, 0x15, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x76, + 0x6f, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x77, 0x61, 0x70, + 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x61, + 0x79, 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, + 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0xc6, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, + 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, + 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x61, 0x6d, 0x74, + 0x12, 0x3a, 0x0a, 0x19, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x17, 0x73, 0x77, 0x61, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x43, 0x0a, 0x10, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x9d, 0x02, 0x0a, 0x12, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, + 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x5f, 0x64, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x77, 0x61, + 0x70, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x73, 0x77, 0x61, 0x70, 0x5f, + 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, + 0x18, 0x01, 0x52, 0x0b, 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x5f, 0x61, 0x6d, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x72, 0x65, 0x70, 0x61, 0x79, 0x41, 0x6d, 0x74, 0x12, 0x2a, + 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x69, 0x6e, + 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0f, 0x6d, 0x61, + 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, + 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0a, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, + 0x65, 0x6c, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, + 0x63, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x22, 0x60, 0x0a, 0x19, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb0, 0x01, 0x0a, 0x12, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, + 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x69, 0x6e, + 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, + 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, + 0x65, 0x6c, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x43, + 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, + 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x22, 0xaa, + 0x02, 0x0a, 0x13, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, 0x61, + 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, 0x61, + 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x03, 0x61, 0x6d, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x76, + 0x6f, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x77, 0x61, 0x70, + 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x68, 0x6f, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x48, + 0x6f, 0x70, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, + 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x62, 0x65, + 0x5f, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x70, 0x72, 0x6f, 0x62, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x78, 0x0a, 0x14, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x25, + 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x71, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, + 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6d, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, + 0x61, 0x6d, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd5, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, + 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x77, 0x61, 0x70, 0x46, 0x65, + 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x73, 0x77, + 0x61, 0x70, 0x46, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, + 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x41, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, + 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, + 0x18, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x6c, 0x74, 0x76, 0x44, 0x65, 0x6c, 0x74, 0x61, + 0x22, 0x5f, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, + 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0x63, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, + 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x77, + 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0d, 0x6d, 0x69, 0x6e, 0x53, 0x77, 0x61, 0x70, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, + 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x53, 0x77, 0x61, 0x70, + 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x23, 0x0a, 0x21, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, + 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x7b, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, 0x61, 0x73, 0x68, 0x22, 0x74, + 0x0a, 0x1f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, + 0x75, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x4e, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x22, 0x73, 0x0a, 0x1e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, + 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x0b, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x61, 0x79, + 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, + 0x48, 0x74, 0x6c, 0x63, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x08, 0x61, 0x74, 0x74, + 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x22, 0x34, + 0x0a, 0x0b, 0x48, 0x74, 0x6c, 0x63, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x25, 0x0a, + 0x0e, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x68, 0x6f, 0x70, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, + 0x48, 0x6f, 0x70, 0x73, 0x22, 0xef, 0x01, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, + 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x43, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6c, 0x6f, + 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x68, + 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x77, 0x61, 0x70, 0x48, + 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0c, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x6f, 0x75, 0x74, + 0x65, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x42, 0x0d, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x1b, 0x0a, 0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2a, 0xb7, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x47, 0x41, 0x43, + 0x59, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x4c, 0x4f, 0x4f, + 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x4e, 0x41, 0x54, 0x49, 0x56, + 0x45, 0x5f, 0x53, 0x45, 0x47, 0x57, 0x49, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x49, 0x4e, + 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x45, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x50, + 0x55, 0x53, 0x48, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x03, 0x12, 0x18, + 0x0a, 0x14, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x59, 0x5f, 0x4c, 0x4f, + 0x4f, 0x50, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x48, 0x54, 0x4c, 0x43, + 0x5f, 0x56, 0x32, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x4c, + 0x4f, 0x4f, 0x50, 0x5f, 0x49, 0x4e, 0x10, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x4f, 0x50, + 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x10, 0x07, 0x2a, 0xd3, 0x03, + 0x0a, 0x0f, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x77, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x49, 0x54, + 0x49, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, + 0x52, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, 0x44, + 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x53, 0x55, 0x43, + 0x43, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x03, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, + 0x45, 0x44, 0x5f, 0x4e, 0x4f, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x10, 0x04, 0x12, 0x25, 0x0a, 0x21, + 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x41, 0x4d, 0x4f, 0x55, 0x4e, + 0x54, 0x10, 0x05, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x46, 0x46, 0x5f, 0x43, 0x48, 0x41, 0x49, 0x4e, 0x5f, 0x54, + 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, + 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, + 0x54, 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x41, 0x50, 0x5f, 0x44, 0x45, 0x41, 0x44, 0x4c, 0x49, + 0x4e, 0x45, 0x10, 0x08, 0x12, 0x22, 0x0a, 0x1e, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x46, + 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x52, 0x56, + 0x45, 0x52, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, + 0x53, 0x48, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, + 0x5f, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, + 0x55, 0x52, 0x45, 0x10, 0x0b, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, + 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x10, 0x0c, + 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, + 0x54, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x59, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x10, + 0x0d, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x43, 0x4c, 0x49, 0x45, + 0x4e, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, + 0x4c, 0x10, 0x0e, 0x2a, 0x4a, 0x0a, 0x10, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x4f, 0x55, 0x54, 0x45, + 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, + 0x45, 0x50, 0x41, 0x59, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, + 0x49, 0x4e, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x10, 0x02, 0x2a, + 0xf1, 0x01, 0x0a, 0x14, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x4c, 0x4e, 0x44, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4e, + 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x54, 0x49, 0x4d, 0x45, + 0x4f, 0x55, 0x54, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f, 0x52, + 0x4f, 0x55, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x10, 0x03, 0x12, 0x30, 0x0a, 0x2c, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, + 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, + 0x52, 0x45, 0x43, 0x54, 0x5f, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x44, 0x45, 0x54, + 0x41, 0x49, 0x4c, 0x53, 0x10, 0x04, 0x12, 0x2b, 0x0a, 0x27, 0x4c, 0x4e, 0x44, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x53, + 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, + 0x45, 0x10, 0x05, 0x32, 0x8b, 0x07, 0x0a, 0x0a, 0x53, 0x77, 0x61, 0x70, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x0c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, + 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x54, 0x65, + 0x72, 0x6d, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, + 0x74, 0x53, 0x77, 0x61, 0x70, 0x12, 0x1d, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x13, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, + 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x29, 0x2e, 0x6c, 0x6f, + 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, + 0x4f, 0x75, 0x74, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x50, 0x75, + 0x73, 0x68, 0x50, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, + 0x74, 0x65, 0x12, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x51, 0x75, + 0x6f, 0x74, 0x65, 0x12, 0x4c, 0x0a, 0x0b, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, + 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, + 0x73, 0x12, 0x4c, 0x0a, 0x0d, 0x4e, 0x65, 0x77, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x53, 0x77, + 0x61, 0x70, 0x12, 0x1c, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1d, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x54, 0x0a, 0x0b, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x21, + 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, + 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x49, 0x6e, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, + 0x12, 0x20, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x62, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x65, + 0x0a, 0x16, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, 0x6f, 0x70, 0x49, + 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x6c, 0x6f, 0x6f, 0x70, 0x72, + 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6c, 0x6f, 0x6f, + 0x70, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x4c, 0x6f, + 0x6f, 0x70, 0x49, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x5a, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, + 0x6f, 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x12, 0x21, 0x2e, 0x6c, 0x6f, 0x6f, + 0x70, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x6f, 0x6f, 0x70, 0x4f, + 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, + 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x6f, + 0x6f, 0x70, 0x4f, 0x75, 0x74, 0x53, 0x77, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6c, 0x6f, + 0x6f, 0x70, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_server_proto_rawDescOnce sync.Once + file_server_proto_rawDescData = file_server_proto_rawDesc +) + +func file_server_proto_rawDescGZIP() []byte { + file_server_proto_rawDescOnce.Do(func() { + file_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_proto_rawDescData) + }) + return file_server_proto_rawDescData +} + +var file_server_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_server_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_server_proto_goTypes = []interface{}{ + (ProtocolVersion)(0), // 0: looprpc.ProtocolVersion + (ServerSwapState)(0), // 1: looprpc.ServerSwapState + (RoutePaymentType)(0), // 2: looprpc.RoutePaymentType + (PaymentFailureReason)(0), // 3: looprpc.PaymentFailureReason + (*ServerLoopOutRequest)(nil), // 4: looprpc.ServerLoopOutRequest + (*ServerLoopOutResponse)(nil), // 5: looprpc.ServerLoopOutResponse + (*ServerLoopOutQuoteRequest)(nil), // 6: looprpc.ServerLoopOutQuoteRequest + (*ServerLoopOutQuote)(nil), // 7: looprpc.ServerLoopOutQuote + (*ServerLoopOutTermsRequest)(nil), // 8: looprpc.ServerLoopOutTermsRequest + (*ServerLoopOutTerms)(nil), // 9: looprpc.ServerLoopOutTerms + (*ServerLoopInRequest)(nil), // 10: looprpc.ServerLoopInRequest + (*ServerLoopInResponse)(nil), // 11: looprpc.ServerLoopInResponse + (*ServerLoopInQuoteRequest)(nil), // 12: looprpc.ServerLoopInQuoteRequest + (*ServerLoopInQuoteResponse)(nil), // 13: looprpc.ServerLoopInQuoteResponse + (*ServerLoopInTermsRequest)(nil), // 14: looprpc.ServerLoopInTermsRequest + (*ServerLoopInTerms)(nil), // 15: looprpc.ServerLoopInTerms + (*ServerLoopOutPushPreimageRequest)(nil), // 16: looprpc.ServerLoopOutPushPreimageRequest + (*ServerLoopOutPushPreimageResponse)(nil), // 17: looprpc.ServerLoopOutPushPreimageResponse + (*SubscribeUpdatesRequest)(nil), // 18: looprpc.SubscribeUpdatesRequest + (*SubscribeLoopOutUpdatesResponse)(nil), // 19: looprpc.SubscribeLoopOutUpdatesResponse + (*SubscribeLoopInUpdatesResponse)(nil), // 20: looprpc.SubscribeLoopInUpdatesResponse + (*RouteCancel)(nil), // 21: looprpc.RouteCancel + (*HtlcAttempt)(nil), // 22: looprpc.HtlcAttempt + (*CancelLoopOutSwapRequest)(nil), // 23: looprpc.CancelLoopOutSwapRequest + (*CancelLoopOutSwapResponse)(nil), // 24: looprpc.CancelLoopOutSwapResponse +} +var file_server_proto_depIdxs = []int32{ + 0, // 0: looprpc.ServerLoopOutRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 0, // 1: looprpc.ServerLoopOutQuoteRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 0, // 2: looprpc.ServerLoopOutTermsRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 0, // 3: looprpc.ServerLoopInRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 0, // 4: looprpc.ServerLoopInQuoteRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 0, // 5: looprpc.ServerLoopInTermsRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 0, // 6: looprpc.ServerLoopOutPushPreimageRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 0, // 7: looprpc.SubscribeUpdatesRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 1, // 8: looprpc.SubscribeLoopOutUpdatesResponse.state:type_name -> looprpc.ServerSwapState + 1, // 9: looprpc.SubscribeLoopInUpdatesResponse.state:type_name -> looprpc.ServerSwapState + 2, // 10: looprpc.RouteCancel.route_type:type_name -> looprpc.RoutePaymentType + 22, // 11: looprpc.RouteCancel.attempts:type_name -> looprpc.HtlcAttempt + 3, // 12: looprpc.RouteCancel.failure:type_name -> looprpc.PaymentFailureReason + 0, // 13: looprpc.CancelLoopOutSwapRequest.protocol_version:type_name -> looprpc.ProtocolVersion + 21, // 14: looprpc.CancelLoopOutSwapRequest.route_cancel:type_name -> looprpc.RouteCancel + 8, // 15: looprpc.SwapServer.LoopOutTerms:input_type -> looprpc.ServerLoopOutTermsRequest + 4, // 16: looprpc.SwapServer.NewLoopOutSwap:input_type -> looprpc.ServerLoopOutRequest + 16, // 17: looprpc.SwapServer.LoopOutPushPreimage:input_type -> looprpc.ServerLoopOutPushPreimageRequest + 6, // 18: looprpc.SwapServer.LoopOutQuote:input_type -> looprpc.ServerLoopOutQuoteRequest + 14, // 19: looprpc.SwapServer.LoopInTerms:input_type -> looprpc.ServerLoopInTermsRequest + 10, // 20: looprpc.SwapServer.NewLoopInSwap:input_type -> looprpc.ServerLoopInRequest + 12, // 21: looprpc.SwapServer.LoopInQuote:input_type -> looprpc.ServerLoopInQuoteRequest + 18, // 22: looprpc.SwapServer.SubscribeLoopOutUpdates:input_type -> looprpc.SubscribeUpdatesRequest + 18, // 23: looprpc.SwapServer.SubscribeLoopInUpdates:input_type -> looprpc.SubscribeUpdatesRequest + 23, // 24: looprpc.SwapServer.CancelLoopOutSwap:input_type -> looprpc.CancelLoopOutSwapRequest + 9, // 25: looprpc.SwapServer.LoopOutTerms:output_type -> looprpc.ServerLoopOutTerms + 5, // 26: looprpc.SwapServer.NewLoopOutSwap:output_type -> looprpc.ServerLoopOutResponse + 17, // 27: looprpc.SwapServer.LoopOutPushPreimage:output_type -> looprpc.ServerLoopOutPushPreimageResponse + 7, // 28: looprpc.SwapServer.LoopOutQuote:output_type -> looprpc.ServerLoopOutQuote + 15, // 29: looprpc.SwapServer.LoopInTerms:output_type -> looprpc.ServerLoopInTerms + 11, // 30: looprpc.SwapServer.NewLoopInSwap:output_type -> looprpc.ServerLoopInResponse + 13, // 31: looprpc.SwapServer.LoopInQuote:output_type -> looprpc.ServerLoopInQuoteResponse + 19, // 32: looprpc.SwapServer.SubscribeLoopOutUpdates:output_type -> looprpc.SubscribeLoopOutUpdatesResponse + 20, // 33: looprpc.SwapServer.SubscribeLoopInUpdates:output_type -> looprpc.SubscribeLoopInUpdatesResponse + 24, // 34: looprpc.SwapServer.CancelLoopOutSwap:output_type -> looprpc.CancelLoopOutSwapResponse + 25, // [25:35] is the sub-list for method output_type + 15, // [15:25] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_server_proto_init() } +func file_server_proto_init() { + if File_server_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutQuoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutQuote); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutTermsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutTerms); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopInRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopInResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopInQuoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopInQuoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopInTermsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopInTerms); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutPushPreimageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLoopOutPushPreimageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscribeUpdatesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscribeLoopOutUpdatesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscribeLoopInUpdatesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RouteCancel); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HtlcAttempt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelLoopOutSwapRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelLoopOutSwapResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_server_proto_msgTypes[19].OneofWrappers = []interface{}{ + (*CancelLoopOutSwapRequest_RouteCancel)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_server_proto_rawDesc, + NumEnums: 4, + NumMessages: 21, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_server_proto_goTypes, + DependencyIndexes: file_server_proto_depIdxs, + EnumInfos: file_server_proto_enumTypes, + MessageInfos: file_server_proto_msgTypes, + }.Build() + File_server_proto = out.File + file_server_proto_rawDesc = nil + file_server_proto_goTypes = nil + file_server_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConn +var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion6 // SwapServerClient is the client API for SwapServer service. // @@ -1697,10 +2512,10 @@ type SwapServerClient interface { } type swapServerClient struct { - cc *grpc.ClientConn + cc grpc.ClientConnInterface } -func NewSwapServerClient(cc *grpc.ClientConn) SwapServerClient { +func NewSwapServerClient(cc grpc.ClientConnInterface) SwapServerClient { return &swapServerClient{cc} } @@ -1858,34 +2673,34 @@ type SwapServerServer interface { type UnimplementedSwapServerServer struct { } -func (*UnimplementedSwapServerServer) LoopOutTerms(ctx context.Context, req *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error) { +func (*UnimplementedSwapServerServer) LoopOutTerms(context.Context, *ServerLoopOutTermsRequest) (*ServerLoopOutTerms, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutTerms not implemented") } -func (*UnimplementedSwapServerServer) NewLoopOutSwap(ctx context.Context, req *ServerLoopOutRequest) (*ServerLoopOutResponse, error) { +func (*UnimplementedSwapServerServer) NewLoopOutSwap(context.Context, *ServerLoopOutRequest) (*ServerLoopOutResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewLoopOutSwap not implemented") } -func (*UnimplementedSwapServerServer) LoopOutPushPreimage(ctx context.Context, req *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error) { +func (*UnimplementedSwapServerServer) LoopOutPushPreimage(context.Context, *ServerLoopOutPushPreimageRequest) (*ServerLoopOutPushPreimageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutPushPreimage not implemented") } -func (*UnimplementedSwapServerServer) LoopOutQuote(ctx context.Context, req *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error) { +func (*UnimplementedSwapServerServer) LoopOutQuote(context.Context, *ServerLoopOutQuoteRequest) (*ServerLoopOutQuote, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopOutQuote not implemented") } -func (*UnimplementedSwapServerServer) LoopInTerms(ctx context.Context, req *ServerLoopInTermsRequest) (*ServerLoopInTerms, error) { +func (*UnimplementedSwapServerServer) LoopInTerms(context.Context, *ServerLoopInTermsRequest) (*ServerLoopInTerms, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopInTerms not implemented") } -func (*UnimplementedSwapServerServer) NewLoopInSwap(ctx context.Context, req *ServerLoopInRequest) (*ServerLoopInResponse, error) { +func (*UnimplementedSwapServerServer) NewLoopInSwap(context.Context, *ServerLoopInRequest) (*ServerLoopInResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewLoopInSwap not implemented") } -func (*UnimplementedSwapServerServer) LoopInQuote(ctx context.Context, req *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error) { +func (*UnimplementedSwapServerServer) LoopInQuote(context.Context, *ServerLoopInQuoteRequest) (*ServerLoopInQuoteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoopInQuote not implemented") } -func (*UnimplementedSwapServerServer) SubscribeLoopOutUpdates(req *SubscribeUpdatesRequest, srv SwapServer_SubscribeLoopOutUpdatesServer) error { +func (*UnimplementedSwapServerServer) SubscribeLoopOutUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopOutUpdatesServer) error { return status.Errorf(codes.Unimplemented, "method SubscribeLoopOutUpdates not implemented") } -func (*UnimplementedSwapServerServer) SubscribeLoopInUpdates(req *SubscribeUpdatesRequest, srv SwapServer_SubscribeLoopInUpdatesServer) error { +func (*UnimplementedSwapServerServer) SubscribeLoopInUpdates(*SubscribeUpdatesRequest, SwapServer_SubscribeLoopInUpdatesServer) error { return status.Errorf(codes.Unimplemented, "method SubscribeLoopInUpdates not implemented") } -func (*UnimplementedSwapServerServer) CancelLoopOutSwap(ctx context.Context, req *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error) { +func (*UnimplementedSwapServerServer) CancelLoopOutSwap(context.Context, *CancelLoopOutSwapRequest) (*CancelLoopOutSwapResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelLoopOutSwap not implemented") } diff --git a/looprpc/server.proto b/looprpc/server.proto index 3598e0c..f21e261 100644 --- a/looprpc/server.proto +++ b/looprpc/server.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package looprpc; +option go_package = "github.com/lightninglabs/loop/looprpc"; + service SwapServer { rpc LoopOutTerms (ServerLoopOutTermsRequest) returns (ServerLoopOutTerms); @@ -25,7 +27,7 @@ service SwapServer { rpc SubscribeLoopInUpdates (SubscribeUpdatesRequest) returns (stream SubscribeLoopInUpdatesResponse); - rpc CancelLoopOutSwap(CancelLoopOutSwapRequest) + rpc CancelLoopOutSwap (CancelLoopOutSwapRequest) returns (CancelLoopOutSwapResponse); } @@ -305,7 +307,7 @@ enum ServerSwapState { SERVER_CLIENT_INVOICE_CANCEL = 14; } -message SubscribeLoopOutUpdatesResponse{ +message SubscribeLoopOutUpdatesResponse { // The unix timestamp in nanoseconds when the swap was updated. int64 timestamp_ns = 1; @@ -313,7 +315,7 @@ message SubscribeLoopOutUpdatesResponse{ ServerSwapState state = 2; } -message SubscribeLoopInUpdatesResponse{ +message SubscribeLoopInUpdatesResponse { // The unix timestamp in nanoseconds when the swap was updated. int64 timestamp_ns = 1; @@ -325,7 +327,7 @@ enum RoutePaymentType { // No reason, used to distinguish from the default value. ROUTE_UNKNOWN = 0; - // Prepay route indicates that the swap was canceled because the client + // Prepay route indicates that the swap was canceled because the client // could not find a route to the server for the prepay. PREPAY_ROUTE = 1; @@ -378,12 +380,12 @@ message RouteCancel { repeated HtlcAttempt attempts = 2; // The reason that the payment failed. - PaymentFailureReason failure = 3; + PaymentFailureReason failure = 3; } message HtlcAttempt { // The number of hops from the htlc's failure hop that it needed to take - // to reach the server's node. + // to reach the server's node. uint32 remaining_hops = 1; } @@ -392,7 +394,7 @@ message CancelLoopOutSwapRequest { ProtocolVersion protocol_version = 1; // The swap hash. - bytes swap_hash = 2; + bytes swap_hash = 2; // The payment address for the swap invoice, used to ensure that only the // swap owner can cancel the payment. @@ -404,4 +406,5 @@ message CancelLoopOutSwapRequest { } } -message CancelLoopOutSwapResponse{} +message CancelLoopOutSwapResponse { +} From 77f7b7357043af7a49e9e583d92a8ff26485e4ee Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 14 Jul 2021 16:08:53 +0200 Subject: [PATCH 3/4] looprpc: document missing CLI commands --- looprpc/client.pb.go | 12 ++++++------ looprpc/client.proto | 6 +++--- looprpc/client.swagger.json | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/looprpc/client.pb.go b/looprpc/client.pb.go index be90a86..4aee9c6 100644 --- a/looprpc/client.pb.go +++ b/looprpc/client.pb.go @@ -3393,18 +3393,18 @@ type SwapClientClient interface { // loop: `listauth` //GetLsatTokens returns all LSAT tokens the daemon ever paid for. GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error) - // + // loop: `getparams` //GetLiquidityParams gets the parameters that the daemon's liquidity manager //is currently configured with. This may be nil if nothing is configured. //[EXPERIMENTAL]: endpoint is subject to change. GetLiquidityParams(ctx context.Context, in *GetLiquidityParamsRequest, opts ...grpc.CallOption) (*LiquidityParameters, error) - // + // loop: `setparams` //SetLiquidityParams sets a new set of parameters for the daemon's liquidity //manager. Note that the full set of parameters must be provided, because //this call fully overwrites our existing parameters. //[EXPERIMENTAL]: endpoint is subject to change. SetLiquidityParams(ctx context.Context, in *SetLiquidityParamsRequest, opts ...grpc.CallOption) (*SetLiquidityParamsResponse, error) - // + // loop: `suggestswaps` //SuggestSwaps returns a list of recommended swaps based on the current //state of your node's channels and it's liquidity manager parameters. //Note that only loop out suggestions are currently supported. @@ -3600,18 +3600,18 @@ type SwapClientServer interface { // loop: `listauth` //GetLsatTokens returns all LSAT tokens the daemon ever paid for. GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error) - // + // loop: `getparams` //GetLiquidityParams gets the parameters that the daemon's liquidity manager //is currently configured with. This may be nil if nothing is configured. //[EXPERIMENTAL]: endpoint is subject to change. GetLiquidityParams(context.Context, *GetLiquidityParamsRequest) (*LiquidityParameters, error) - // + // loop: `setparams` //SetLiquidityParams sets a new set of parameters for the daemon's liquidity //manager. Note that the full set of parameters must be provided, because //this call fully overwrites our existing parameters. //[EXPERIMENTAL]: endpoint is subject to change. SetLiquidityParams(context.Context, *SetLiquidityParamsRequest) (*SetLiquidityParamsResponse, error) - // + // loop: `suggestswaps` //SuggestSwaps returns a list of recommended swaps based on the current //state of your node's channels and it's liquidity manager parameters. //Note that only loop out suggestions are currently supported. diff --git a/looprpc/client.proto b/looprpc/client.proto index ca4b6d5..452eafe 100644 --- a/looprpc/client.proto +++ b/looprpc/client.proto @@ -67,7 +67,7 @@ service SwapClient { */ rpc GetLsatTokens (TokensRequest) returns (TokensResponse); - /* + /* loop: `getparams` GetLiquidityParams gets the parameters that the daemon's liquidity manager is currently configured with. This may be nil if nothing is configured. [EXPERIMENTAL]: endpoint is subject to change. @@ -75,7 +75,7 @@ service SwapClient { rpc GetLiquidityParams (GetLiquidityParamsRequest) returns (LiquidityParameters); - /* + /* loop: `setparams` SetLiquidityParams sets a new set of parameters for the daemon's liquidity manager. Note that the full set of parameters must be provided, because this call fully overwrites our existing parameters. @@ -84,7 +84,7 @@ service SwapClient { rpc SetLiquidityParams (SetLiquidityParamsRequest) returns (SetLiquidityParamsResponse); - /* + /* loop: `suggestswaps` SuggestSwaps returns a list of recommended swaps based on the current state of your node's channels and it's liquidity manager parameters. Note that only loop out suggestions are currently supported. diff --git a/looprpc/client.swagger.json b/looprpc/client.swagger.json index 41b8620..ce9b112 100644 --- a/looprpc/client.swagger.json +++ b/looprpc/client.swagger.json @@ -13,7 +13,7 @@ "paths": { "/v1/auto/suggest": { "get": { - "summary": "SuggestSwaps returns a list of recommended swaps based on the current\nstate of your node's channels and it's liquidity manager parameters.\nNote that only loop out suggestions are currently supported.\n[EXPERIMENTAL]: endpoint is subject to change.", + "summary": "loop: `suggestswaps`\nSuggestSwaps returns a list of recommended swaps based on the current\nstate of your node's channels and it's liquidity manager parameters.\nNote that only loop out suggestions are currently supported.\n[EXPERIMENTAL]: endpoint is subject to change.", "operationId": "SuggestSwaps", "responses": { "200": { @@ -36,7 +36,7 @@ }, "/v1/liquidity/params": { "get": { - "summary": "GetLiquidityParams gets the parameters that the daemon's liquidity manager\nis currently configured with. This may be nil if nothing is configured.\n[EXPERIMENTAL]: endpoint is subject to change.", + "summary": "loop: `getparams`\nGetLiquidityParams gets the parameters that the daemon's liquidity manager\nis currently configured with. This may be nil if nothing is configured.\n[EXPERIMENTAL]: endpoint is subject to change.", "operationId": "GetLiquidityParams", "responses": { "200": { @@ -57,7 +57,7 @@ ] }, "post": { - "summary": "SetLiquidityParams sets a new set of parameters for the daemon's liquidity\nmanager. Note that the full set of parameters must be provided, because\nthis call fully overwrites our existing parameters.\n[EXPERIMENTAL]: endpoint is subject to change.", + "summary": "loop: `setparams`\nSetLiquidityParams sets a new set of parameters for the daemon's liquidity\nmanager. Note that the full set of parameters must be provided, because\nthis call fully overwrites our existing parameters.\n[EXPERIMENTAL]: endpoint is subject to change.", "operationId": "SetLiquidityParams", "responses": { "200": { From 803773bb65a5bae560151896a86bcc161c47ca9d Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 14 Jul 2021 17:21:54 +0200 Subject: [PATCH 4/4] loop+loopd: fix linter after re-generating protos Apparently re-generating the protos caused the linter to pick up on fields that are now deprecated. We need to fix that with a few comments. --- cmd/loop/loopout.go | 4 ++-- loopd/swapclient_server.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/loop/loopout.go b/cmd/loop/loopout.go index d999ffa..638b150 100644 --- a/cmd/loop/loopout.go +++ b/cmd/loop/loopout.go @@ -203,8 +203,8 @@ func loopOut(ctx *cli.Context) error { } fmt.Printf("Swap initiated\n") - fmt.Printf("ID: %v\n", resp.Id) - fmt.Printf("HTLC address: %v\n", resp.HtlcAddress) + fmt.Printf("ID: %x\n", resp.IdBytes) + fmt.Printf("HTLC address: %v\n", resp.HtlcAddress) // nolint:staticcheck if resp.ServerMessage != "" { fmt.Printf("Server message: %v\n", resp.ServerMessage) } diff --git a/loopd/swapclient_server.go b/loopd/swapclient_server.go index 3933845..779ab61 100644 --- a/loopd/swapclient_server.go +++ b/loopd/swapclient_server.go @@ -121,12 +121,12 @@ func (s *swapClientServer) LoopOut(ctx context.Context, } switch { - case in.LoopOutChannel != 0 && len(in.OutgoingChanSet) > 0: + case in.LoopOutChannel != 0 && len(in.OutgoingChanSet) > 0: // nolint:staticcheck return nil, errors.New("loop_out_channel and outgoing_" + "chan_ids are mutually exclusive") - case in.LoopOutChannel != 0: - req.OutgoingChanSet = loopdb.ChannelSet{in.LoopOutChannel} + case in.LoopOutChannel != 0: // nolint:staticcheck + req.OutgoingChanSet = loopdb.ChannelSet{in.LoopOutChannel} // nolint:staticcheck default: req.OutgoingChanSet = in.OutgoingChanSet @@ -540,9 +540,9 @@ func (s *swapClientServer) LoopIn(ctx context.Context, if req.ExternalHtlc { response.HtlcAddressNp2Wsh = swapInfo.HtlcAddressNP2WSH.String() - response.HtlcAddress = response.HtlcAddressNp2Wsh + response.HtlcAddress = response.HtlcAddressNp2Wsh // nolint:staticcheck } else { - response.HtlcAddress = response.HtlcAddressP2Wsh + response.HtlcAddress = response.HtlcAddressP2Wsh // nolint:staticcheck } return response, nil