From ed2473d30165777982ad5e8141240395cc7d4941 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Mon, 14 Oct 2024 13:10:29 -0300 Subject: [PATCH] auctioneerrpc, poolrpc: run "make rpc" Re-generate protobuf produced files. --- auctioneerrpc/auctioneer.pb.go | 142 ++++++++++++++-------------- auctioneerrpc/hashmail.pb.go | 28 +++--- poolrpc/trader.pb.go | 160 ++++++++++++++++---------------- poolrpc/trader.pb.gw.go | 165 +++++++-------------------------- poolrpc/trader.swagger.json | 19 ++++ 5 files changed, 215 insertions(+), 299 deletions(-) diff --git a/auctioneerrpc/auctioneer.pb.go b/auctioneerrpc/auctioneer.pb.go index 28da9d33..452573f7 100644 --- a/auctioneerrpc/auctioneer.pb.go +++ b/auctioneerrpc/auctioneer.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 +// protoc-gen-go v1.34.2 // protoc v3.21.12 // source: auctioneer.proto @@ -6664,7 +6664,7 @@ func file_auctioneer_proto_rawDescGZIP() []byte { var file_auctioneer_proto_enumTypes = make([]protoimpl.EnumInfo, 14) var file_auctioneer_proto_msgTypes = make([]protoimpl.MessageInfo, 79) -var file_auctioneer_proto_goTypes = []interface{}{ +var file_auctioneer_proto_goTypes = []any{ (ChannelType)(0), // 0: poolrpc.ChannelType (AuctionAccountState)(0), // 1: poolrpc.AuctionAccountState (OrderChannelType)(0), // 2: poolrpc.OrderChannelType @@ -6889,7 +6889,7 @@ func file_auctioneer_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_auctioneer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ReserveAccountRequest); i { case 0: return &v.state @@ -6901,7 +6901,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ReserveAccountResponse); i { case 0: return &v.state @@ -6913,7 +6913,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ServerInitAccountRequest); i { case 0: return &v.state @@ -6925,7 +6925,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ServerInitAccountResponse); i { case 0: return &v.state @@ -6937,7 +6937,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ServerSubmitOrderRequest); i { case 0: return &v.state @@ -6949,7 +6949,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ServerSubmitOrderResponse); i { case 0: return &v.state @@ -6961,7 +6961,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ServerCancelOrderRequest); i { case 0: return &v.state @@ -6973,7 +6973,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ServerCancelOrderResponse); i { case 0: return &v.state @@ -6985,7 +6985,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*ClientAuctionMessage); i { case 0: return &v.state @@ -6997,7 +6997,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*AccountCommitment); i { case 0: return &v.state @@ -7009,7 +7009,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*AccountSubscription); i { case 0: return &v.state @@ -7021,7 +7021,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*OrderMatchAccept); i { case 0: return &v.state @@ -7033,7 +7033,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*OrderMatchReject); i { case 0: return &v.state @@ -7045,7 +7045,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*OrderReject); i { case 0: return &v.state @@ -7057,7 +7057,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*ChannelInfo); i { case 0: return &v.state @@ -7069,7 +7069,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*OrderMatchSign); i { case 0: return &v.state @@ -7081,7 +7081,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*AccountRecovery); i { case 0: return &v.state @@ -7093,7 +7093,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*ServerAuctionMessage); i { case 0: return &v.state @@ -7105,7 +7105,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*ServerChallenge); i { case 0: return &v.state @@ -7117,7 +7117,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*SubscribeSuccess); i { case 0: return &v.state @@ -7129,7 +7129,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*MatchedMarket); i { case 0: return &v.state @@ -7141,7 +7141,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*OrderMatchPrepare); i { case 0: return &v.state @@ -7153,7 +7153,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*TxOut); i { case 0: return &v.state @@ -7165,7 +7165,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*OrderMatchSignBegin); i { case 0: return &v.state @@ -7177,7 +7177,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*OrderMatchFinalize); i { case 0: return &v.state @@ -7189,7 +7189,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*SubscribeError); i { case 0: return &v.state @@ -7201,7 +7201,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*AuctionAccount); i { case 0: return &v.state @@ -7213,7 +7213,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*MatchedOrder); i { case 0: return &v.state @@ -7225,7 +7225,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*MatchedAsk); i { case 0: return &v.state @@ -7237,7 +7237,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*MatchedBid); i { case 0: return &v.state @@ -7249,7 +7249,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*AccountDiff); i { case 0: return &v.state @@ -7261,7 +7261,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*ServerOrder); i { case 0: return &v.state @@ -7273,7 +7273,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*ServerBid); i { case 0: return &v.state @@ -7285,7 +7285,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*ServerAsk); i { case 0: return &v.state @@ -7297,7 +7297,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*CancelOrder); i { case 0: return &v.state @@ -7309,7 +7309,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*InvalidOrder); i { case 0: return &v.state @@ -7321,7 +7321,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*ServerInput); i { case 0: return &v.state @@ -7333,7 +7333,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[37].Exporter = func(v any, i int) any { switch v := v.(*ServerOutput); i { case 0: return &v.state @@ -7345,7 +7345,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[38].Exporter = func(v any, i int) any { switch v := v.(*ServerModifyAccountRequest); i { case 0: return &v.state @@ -7357,7 +7357,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[39].Exporter = func(v any, i int) any { switch v := v.(*ServerModifyAccountResponse); i { case 0: return &v.state @@ -7369,7 +7369,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[40].Exporter = func(v any, i int) any { switch v := v.(*ServerOrderStateRequest); i { case 0: return &v.state @@ -7381,7 +7381,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[41].Exporter = func(v any, i int) any { switch v := v.(*ServerOrderStateResponse); i { case 0: return &v.state @@ -7393,7 +7393,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[42].Exporter = func(v any, i int) any { switch v := v.(*TermsRequest); i { case 0: return &v.state @@ -7405,7 +7405,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[43].Exporter = func(v any, i int) any { switch v := v.(*TermsResponse); i { case 0: return &v.state @@ -7417,7 +7417,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[44].Exporter = func(v any, i int) any { switch v := v.(*RelevantBatchRequest); i { case 0: return &v.state @@ -7429,7 +7429,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[45].Exporter = func(v any, i int) any { switch v := v.(*RelevantBatch); i { case 0: return &v.state @@ -7441,7 +7441,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[46].Exporter = func(v any, i int) any { switch v := v.(*ExecutionFee); i { case 0: return &v.state @@ -7453,7 +7453,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[47].Exporter = func(v any, i int) any { switch v := v.(*NodeAddress); i { case 0: return &v.state @@ -7465,7 +7465,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[48].Exporter = func(v any, i int) any { switch v := v.(*OutPoint); i { case 0: return &v.state @@ -7477,7 +7477,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[49].Exporter = func(v any, i int) any { switch v := v.(*AskSnapshot); i { case 0: return &v.state @@ -7489,7 +7489,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[50].Exporter = func(v any, i int) any { switch v := v.(*BidSnapshot); i { case 0: return &v.state @@ -7501,7 +7501,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[51].Exporter = func(v any, i int) any { switch v := v.(*MatchedOrderSnapshot); i { case 0: return &v.state @@ -7513,7 +7513,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[52].Exporter = func(v any, i int) any { switch v := v.(*BatchSnapshotRequest); i { case 0: return &v.state @@ -7525,7 +7525,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[53].Exporter = func(v any, i int) any { switch v := v.(*MatchedMarketSnapshot); i { case 0: return &v.state @@ -7537,7 +7537,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[54].Exporter = func(v any, i int) any { switch v := v.(*BatchSnapshotResponse); i { case 0: return &v.state @@ -7549,7 +7549,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[55].Exporter = func(v any, i int) any { switch v := v.(*ServerNodeRatingRequest); i { case 0: return &v.state @@ -7561,7 +7561,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[56].Exporter = func(v any, i int) any { switch v := v.(*NodeRating); i { case 0: return &v.state @@ -7573,7 +7573,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[57].Exporter = func(v any, i int) any { switch v := v.(*ServerNodeRatingResponse); i { case 0: return &v.state @@ -7585,7 +7585,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[58].Exporter = func(v any, i int) any { switch v := v.(*BatchSnapshotsRequest); i { case 0: return &v.state @@ -7597,7 +7597,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[59].Exporter = func(v any, i int) any { switch v := v.(*BatchSnapshotsResponse); i { case 0: return &v.state @@ -7609,7 +7609,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[60].Exporter = func(v any, i int) any { switch v := v.(*MarketInfoRequest); i { case 0: return &v.state @@ -7621,7 +7621,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[61].Exporter = func(v any, i int) any { switch v := v.(*MarketInfo); i { case 0: return &v.state @@ -7633,7 +7633,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[62].Exporter = func(v any, i int) any { switch v := v.(*MarketInfoResponse); i { case 0: return &v.state @@ -7645,7 +7645,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[71].Exporter = func(v any, i int) any { switch v := v.(*ServerModifyAccountRequest_NewAccountParameters); i { case 0: return &v.state @@ -7657,7 +7657,7 @@ func file_auctioneer_proto_init() { return nil } } - file_auctioneer_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_auctioneer_proto_msgTypes[77].Exporter = func(v any, i int) any { switch v := v.(*MarketInfo_TierValue); i { case 0: return &v.state @@ -7670,15 +7670,15 @@ func file_auctioneer_proto_init() { } } } - file_auctioneer_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_auctioneer_proto_msgTypes[4].OneofWrappers = []any{ (*ServerSubmitOrderRequest_Ask)(nil), (*ServerSubmitOrderRequest_Bid)(nil), } - file_auctioneer_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_auctioneer_proto_msgTypes[5].OneofWrappers = []any{ (*ServerSubmitOrderResponse_InvalidOrder)(nil), (*ServerSubmitOrderResponse_Accepted)(nil), } - file_auctioneer_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_auctioneer_proto_msgTypes[8].OneofWrappers = []any{ (*ClientAuctionMessage_Commit)(nil), (*ClientAuctionMessage_Subscribe)(nil), (*ClientAuctionMessage_Accept)(nil), @@ -7686,7 +7686,7 @@ func file_auctioneer_proto_init() { (*ClientAuctionMessage_Sign)(nil), (*ClientAuctionMessage_Recover)(nil), } - file_auctioneer_proto_msgTypes[17].OneofWrappers = []interface{}{ + file_auctioneer_proto_msgTypes[17].OneofWrappers = []any{ (*ServerAuctionMessage_Challenge)(nil), (*ServerAuctionMessage_Success)(nil), (*ServerAuctionMessage_Error)(nil), diff --git a/auctioneerrpc/hashmail.pb.go b/auctioneerrpc/hashmail.pb.go index 807f4d3e..30f34e07 100644 --- a/auctioneerrpc/hashmail.pb.go +++ b/auctioneerrpc/hashmail.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 +// protoc-gen-go v1.34.2 // protoc v3.21.12 // source: hashmail.proto @@ -670,7 +670,7 @@ func file_hashmail_proto_rawDescGZIP() []byte { } var file_hashmail_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_hashmail_proto_goTypes = []interface{}{ +var file_hashmail_proto_goTypes = []any{ (*PoolAccountAuth)(nil), // 0: poolrpc.PoolAccountAuth (*SidecarAuth)(nil), // 1: poolrpc.SidecarAuth (*CipherBoxAuth)(nil), // 2: poolrpc.CipherBoxAuth @@ -712,7 +712,7 @@ func file_hashmail_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_hashmail_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*PoolAccountAuth); i { case 0: return &v.state @@ -724,7 +724,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*SidecarAuth); i { case 0: return &v.state @@ -736,7 +736,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*CipherBoxAuth); i { case 0: return &v.state @@ -748,7 +748,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*DelCipherBoxResp); i { case 0: return &v.state @@ -760,7 +760,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*CipherChallenge); i { case 0: return &v.state @@ -772,7 +772,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*CipherError); i { case 0: return &v.state @@ -784,7 +784,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*CipherSuccess); i { case 0: return &v.state @@ -796,7 +796,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*CipherInitResp); i { case 0: return &v.state @@ -808,7 +808,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*CipherBoxDesc); i { case 0: return &v.state @@ -820,7 +820,7 @@ func file_hashmail_proto_init() { return nil } } - file_hashmail_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_hashmail_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*CipherBox); i { case 0: return &v.state @@ -833,11 +833,11 @@ func file_hashmail_proto_init() { } } } - file_hashmail_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_hashmail_proto_msgTypes[2].OneofWrappers = []any{ (*CipherBoxAuth_AcctAuth)(nil), (*CipherBoxAuth_SidecarAuth)(nil), } - file_hashmail_proto_msgTypes[7].OneofWrappers = []interface{}{ + file_hashmail_proto_msgTypes[7].OneofWrappers = []any{ (*CipherInitResp_Success)(nil), (*CipherInitResp_Challenge)(nil), (*CipherInitResp_Error)(nil), diff --git a/poolrpc/trader.pb.go b/poolrpc/trader.pb.go index e54662d4..6229ce64 100644 --- a/poolrpc/trader.pb.go +++ b/poolrpc/trader.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 +// protoc-gen-go v1.34.2 // protoc v3.21.12 // source: trader.proto @@ -6230,7 +6230,7 @@ func file_trader_proto_rawDescGZIP() []byte { var file_trader_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_trader_proto_msgTypes = make([]protoimpl.MessageInfo, 71) -var file_trader_proto_goTypes = []interface{}{ +var file_trader_proto_goTypes = []any{ (AccountVersion)(0), // 0: poolrpc.AccountVersion (AccountState)(0), // 1: poolrpc.AccountState (MatchState)(0), // 2: poolrpc.MatchState @@ -6449,7 +6449,7 @@ func file_trader_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_trader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*InitAccountRequest); i { case 0: return &v.state @@ -6461,7 +6461,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*QuoteAccountRequest); i { case 0: return &v.state @@ -6473,7 +6473,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*QuoteAccountResponse); i { case 0: return &v.state @@ -6485,7 +6485,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ListAccountsRequest); i { case 0: return &v.state @@ -6497,7 +6497,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ListAccountsResponse); i { case 0: return &v.state @@ -6509,7 +6509,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Output); i { case 0: return &v.state @@ -6521,7 +6521,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*OutputWithFee); i { case 0: return &v.state @@ -6533,7 +6533,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*OutputsWithImplicitFee); i { case 0: return &v.state @@ -6545,7 +6545,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*CloseAccountRequest); i { case 0: return &v.state @@ -6557,7 +6557,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*CloseAccountResponse); i { case 0: return &v.state @@ -6569,7 +6569,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*WithdrawAccountRequest); i { case 0: return &v.state @@ -6581,7 +6581,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*WithdrawAccountResponse); i { case 0: return &v.state @@ -6593,7 +6593,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*DepositAccountRequest); i { case 0: return &v.state @@ -6605,7 +6605,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*DepositAccountResponse); i { case 0: return &v.state @@ -6617,7 +6617,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*RenewAccountRequest); i { case 0: return &v.state @@ -6629,7 +6629,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*RenewAccountResponse); i { case 0: return &v.state @@ -6641,7 +6641,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*BumpAccountFeeRequest); i { case 0: return &v.state @@ -6653,7 +6653,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*BumpAccountFeeResponse); i { case 0: return &v.state @@ -6665,7 +6665,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*Account); i { case 0: return &v.state @@ -6677,7 +6677,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*SubmitOrderRequest); i { case 0: return &v.state @@ -6689,7 +6689,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*SubmitOrderResponse); i { case 0: return &v.state @@ -6701,7 +6701,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*ListOrdersRequest); i { case 0: return &v.state @@ -6713,7 +6713,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*ListOrdersResponse); i { case 0: return &v.state @@ -6725,7 +6725,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*CancelOrderRequest); i { case 0: return &v.state @@ -6737,7 +6737,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*CancelOrderResponse); i { case 0: return &v.state @@ -6749,7 +6749,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*Order); i { case 0: return &v.state @@ -6761,7 +6761,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*Bid); i { case 0: return &v.state @@ -6773,7 +6773,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*Ask); i { case 0: return &v.state @@ -6785,7 +6785,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*QuoteOrderRequest); i { case 0: return &v.state @@ -6797,7 +6797,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*QuoteOrderResponse); i { case 0: return &v.state @@ -6809,7 +6809,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*OrderEvent); i { case 0: return &v.state @@ -6821,7 +6821,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*UpdatedEvent); i { case 0: return &v.state @@ -6833,7 +6833,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*MatchEvent); i { case 0: return &v.state @@ -6845,7 +6845,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*RecoverAccountsRequest); i { case 0: return &v.state @@ -6857,7 +6857,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*RecoverAccountsResponse); i { case 0: return &v.state @@ -6869,7 +6869,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*AccountModificationFeesRequest); i { case 0: return &v.state @@ -6881,7 +6881,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*AccountModificationFee); i { case 0: return &v.state @@ -6893,7 +6893,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[37].Exporter = func(v any, i int) any { switch v := v.(*ListOfAccountModificationFees); i { case 0: return &v.state @@ -6905,7 +6905,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[38].Exporter = func(v any, i int) any { switch v := v.(*AccountModificationFeesResponse); i { case 0: return &v.state @@ -6917,7 +6917,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[39].Exporter = func(v any, i int) any { switch v := v.(*AuctionFeeRequest); i { case 0: return &v.state @@ -6929,7 +6929,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[40].Exporter = func(v any, i int) any { switch v := v.(*AuctionFeeResponse); i { case 0: return &v.state @@ -6941,7 +6941,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[41].Exporter = func(v any, i int) any { switch v := v.(*Lease); i { case 0: return &v.state @@ -6953,7 +6953,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[42].Exporter = func(v any, i int) any { switch v := v.(*LeasesRequest); i { case 0: return &v.state @@ -6965,7 +6965,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[43].Exporter = func(v any, i int) any { switch v := v.(*LeasesResponse); i { case 0: return &v.state @@ -6977,7 +6977,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[44].Exporter = func(v any, i int) any { switch v := v.(*TokensRequest); i { case 0: return &v.state @@ -6989,7 +6989,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[45].Exporter = func(v any, i int) any { switch v := v.(*TokensResponse); i { case 0: return &v.state @@ -7001,7 +7001,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[46].Exporter = func(v any, i int) any { switch v := v.(*LsatToken); i { case 0: return &v.state @@ -7013,7 +7013,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[47].Exporter = func(v any, i int) any { switch v := v.(*LeaseDurationRequest); i { case 0: return &v.state @@ -7025,7 +7025,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[48].Exporter = func(v any, i int) any { switch v := v.(*LeaseDurationResponse); i { case 0: return &v.state @@ -7037,7 +7037,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[49].Exporter = func(v any, i int) any { switch v := v.(*NextBatchInfoRequest); i { case 0: return &v.state @@ -7049,7 +7049,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[50].Exporter = func(v any, i int) any { switch v := v.(*NextBatchInfoResponse); i { case 0: return &v.state @@ -7061,7 +7061,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[51].Exporter = func(v any, i int) any { switch v := v.(*NodeRatingRequest); i { case 0: return &v.state @@ -7073,7 +7073,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[52].Exporter = func(v any, i int) any { switch v := v.(*NodeRatingResponse); i { case 0: return &v.state @@ -7085,7 +7085,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[53].Exporter = func(v any, i int) any { switch v := v.(*GetInfoRequest); i { case 0: return &v.state @@ -7097,7 +7097,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[54].Exporter = func(v any, i int) any { switch v := v.(*GetInfoResponse); i { case 0: return &v.state @@ -7109,7 +7109,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[55].Exporter = func(v any, i int) any { switch v := v.(*StopDaemonRequest); i { case 0: return &v.state @@ -7121,7 +7121,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[56].Exporter = func(v any, i int) any { switch v := v.(*StopDaemonResponse); i { case 0: return &v.state @@ -7133,7 +7133,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[57].Exporter = func(v any, i int) any { switch v := v.(*OfferSidecarRequest); i { case 0: return &v.state @@ -7145,7 +7145,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[58].Exporter = func(v any, i int) any { switch v := v.(*SidecarTicket); i { case 0: return &v.state @@ -7157,7 +7157,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[59].Exporter = func(v any, i int) any { switch v := v.(*DecodedSidecarTicket); i { case 0: return &v.state @@ -7169,7 +7169,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[60].Exporter = func(v any, i int) any { switch v := v.(*RegisterSidecarRequest); i { case 0: return &v.state @@ -7181,7 +7181,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[61].Exporter = func(v any, i int) any { switch v := v.(*ExpectSidecarChannelRequest); i { case 0: return &v.state @@ -7193,7 +7193,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[62].Exporter = func(v any, i int) any { switch v := v.(*ExpectSidecarChannelResponse); i { case 0: return &v.state @@ -7205,7 +7205,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[63].Exporter = func(v any, i int) any { switch v := v.(*ListSidecarsRequest); i { case 0: return &v.state @@ -7217,7 +7217,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[64].Exporter = func(v any, i int) any { switch v := v.(*ListSidecarsResponse); i { case 0: return &v.state @@ -7229,7 +7229,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[65].Exporter = func(v any, i int) any { switch v := v.(*CancelSidecarRequest); i { case 0: return &v.state @@ -7241,7 +7241,7 @@ func file_trader_proto_init() { return nil } } - file_trader_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_trader_proto_msgTypes[66].Exporter = func(v any, i int) any { switch v := v.(*CancelSidecarResponse); i { case 0: return &v.state @@ -7254,48 +7254,48 @@ func file_trader_proto_init() { } } } - file_trader_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[0].OneofWrappers = []any{ (*InitAccountRequest_AbsoluteHeight)(nil), (*InitAccountRequest_RelativeHeight)(nil), (*InitAccountRequest_ConfTarget)(nil), (*InitAccountRequest_FeeRateSatPerKw)(nil), } - file_trader_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[1].OneofWrappers = []any{ (*QuoteAccountRequest_ConfTarget)(nil), } - file_trader_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[6].OneofWrappers = []any{ (*OutputWithFee_ConfTarget)(nil), (*OutputWithFee_FeeRateSatPerKw)(nil), } - file_trader_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[8].OneofWrappers = []any{ (*CloseAccountRequest_OutputWithFee)(nil), (*CloseAccountRequest_Outputs)(nil), } - file_trader_proto_msgTypes[10].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[10].OneofWrappers = []any{ (*WithdrawAccountRequest_AbsoluteExpiry)(nil), (*WithdrawAccountRequest_RelativeExpiry)(nil), } - file_trader_proto_msgTypes[12].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[12].OneofWrappers = []any{ (*DepositAccountRequest_AbsoluteExpiry)(nil), (*DepositAccountRequest_RelativeExpiry)(nil), } - file_trader_proto_msgTypes[14].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[14].OneofWrappers = []any{ (*RenewAccountRequest_AbsoluteExpiry)(nil), (*RenewAccountRequest_RelativeExpiry)(nil), } - file_trader_proto_msgTypes[19].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[19].OneofWrappers = []any{ (*SubmitOrderRequest_Ask)(nil), (*SubmitOrderRequest_Bid)(nil), } - file_trader_proto_msgTypes[20].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[20].OneofWrappers = []any{ (*SubmitOrderResponse_InvalidOrder)(nil), (*SubmitOrderResponse_AcceptedOrderNonce)(nil), } - file_trader_proto_msgTypes[30].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[30].OneofWrappers = []any{ (*OrderEvent_StateChange)(nil), (*OrderEvent_Matched)(nil), } - file_trader_proto_msgTypes[36].OneofWrappers = []interface{}{ + file_trader_proto_msgTypes[36].OneofWrappers = []any{ (*AccountModificationFee_FeeNull)(nil), (*AccountModificationFee_FeeValue)(nil), } diff --git a/poolrpc/trader.pb.gw.go b/poolrpc/trader.pb.gw.go index ecb257e1..f695d2fd 100644 --- a/poolrpc/trader.pb.gw.go +++ b/poolrpc/trader.pb.gw.go @@ -54,11 +54,7 @@ func request_Trader_StopDaemon_0(ctx context.Context, marshaler runtime.Marshale var protoReq StopDaemonRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -71,11 +67,7 @@ func local_request_Trader_StopDaemon_0(ctx context.Context, marshaler runtime.Ma var protoReq StopDaemonRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -88,11 +80,7 @@ func request_Trader_QuoteAccount_0(ctx context.Context, marshaler runtime.Marsha var protoReq QuoteAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -105,11 +93,7 @@ func local_request_Trader_QuoteAccount_0(ctx context.Context, marshaler runtime. var protoReq QuoteAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -122,11 +106,7 @@ func request_Trader_InitAccount_0(ctx context.Context, marshaler runtime.Marshal var protoReq InitAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -139,11 +119,7 @@ func local_request_Trader_InitAccount_0(ctx context.Context, marshaler runtime.M var protoReq InitAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -228,11 +204,7 @@ func request_Trader_WithdrawAccount_0(ctx context.Context, marshaler runtime.Mar var protoReq WithdrawAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -245,11 +217,7 @@ func local_request_Trader_WithdrawAccount_0(ctx context.Context, marshaler runti var protoReq WithdrawAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -262,11 +230,7 @@ func request_Trader_DepositAccount_0(ctx context.Context, marshaler runtime.Mars var protoReq DepositAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -279,11 +243,7 @@ func local_request_Trader_DepositAccount_0(ctx context.Context, marshaler runtim var protoReq DepositAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -296,11 +256,7 @@ func request_Trader_RenewAccount_0(ctx context.Context, marshaler runtime.Marsha var protoReq RenewAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -313,11 +269,7 @@ func local_request_Trader_RenewAccount_0(ctx context.Context, marshaler runtime. var protoReq RenewAccountRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -330,11 +282,7 @@ func request_Trader_BumpAccountFee_0(ctx context.Context, marshaler runtime.Mars var protoReq BumpAccountFeeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -347,11 +295,7 @@ func local_request_Trader_BumpAccountFee_0(ctx context.Context, marshaler runtim var protoReq BumpAccountFeeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -364,11 +308,7 @@ func request_Trader_RecoverAccounts_0(ctx context.Context, marshaler runtime.Mar var protoReq RecoverAccountsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -381,11 +321,7 @@ func local_request_Trader_RecoverAccounts_0(ctx context.Context, marshaler runti var protoReq RecoverAccountsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -398,11 +334,7 @@ func request_Trader_SubmitOrder_0(ctx context.Context, marshaler runtime.Marshal var protoReq SubmitOrderRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -415,11 +347,7 @@ func local_request_Trader_SubmitOrder_0(ctx context.Context, marshaler runtime.M var protoReq SubmitOrderRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -520,11 +448,7 @@ func request_Trader_QuoteOrder_0(ctx context.Context, marshaler runtime.Marshale var protoReq QuoteOrderRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -537,11 +461,7 @@ func local_request_Trader_QuoteOrder_0(ctx context.Context, marshaler runtime.Ma var protoReq QuoteOrderRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -912,11 +832,7 @@ func request_Trader_OfferSidecar_0(ctx context.Context, marshaler runtime.Marsha var protoReq OfferSidecarRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -929,11 +845,7 @@ func local_request_Trader_OfferSidecar_0(ctx context.Context, marshaler runtime. var protoReq OfferSidecarRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -946,11 +858,7 @@ func request_Trader_RegisterSidecar_0(ctx context.Context, marshaler runtime.Mar var protoReq RegisterSidecarRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -963,11 +871,7 @@ func local_request_Trader_RegisterSidecar_0(ctx context.Context, marshaler runti var protoReq RegisterSidecarRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -980,11 +884,7 @@ func request_Trader_ExpectSidecarChannel_0(ctx context.Context, marshaler runtim var protoReq ExpectSidecarChannelRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -997,11 +897,7 @@ func local_request_Trader_ExpectSidecarChannel_0(ctx context.Context, marshaler var protoReq ExpectSidecarChannelRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1014,6 +910,7 @@ func local_request_Trader_ExpectSidecarChannel_0(ctx context.Context, marshaler // UnaryRPC :call TraderServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTraderHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterTraderHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TraderServer) error { mux.Handle("GET", pattern_Trader_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1722,21 +1619,21 @@ func RegisterTraderHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser // RegisterTraderHandlerFromEndpoint is same as RegisterTraderHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterTraderHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() @@ -1754,7 +1651,7 @@ func RegisterTraderHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TraderClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TraderClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "TraderClient" to call the correct interceptors. +// "TraderClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterTraderHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TraderClient) error { mux.Handle("GET", pattern_Trader_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { diff --git a/poolrpc/trader.swagger.json b/poolrpc/trader.swagger.json index 9a588d15..f5032e6b 100644 --- a/poolrpc/trader.swagger.json +++ b/poolrpc/trader.swagger.json @@ -1188,6 +1188,7 @@ "matched_orders": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcMatchedOrderSnapshot" }, "description": "Deprecated, use matched_markets." @@ -1226,6 +1227,7 @@ "batches": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcBatchSnapshotResponse" }, "description": "The list of batches requested." @@ -1760,6 +1762,7 @@ "leases": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcLease" }, "description": "The relevant list of leases purchased or sold within the auction." @@ -1782,6 +1785,7 @@ "accounts": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcAccount" } } @@ -1793,6 +1797,7 @@ "modification_fees": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcAccountModificationFee" } } @@ -1804,12 +1809,14 @@ "asks": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcAsk" } }, "bids": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcBid" } } @@ -1821,6 +1828,7 @@ "tickets": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcDecodedSidecarTicket" } } @@ -1875,6 +1883,7 @@ "num_asks": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/MarketInfoTierValue" }, "description": "The number of open/pending ask orders per node tier." @@ -1882,6 +1891,7 @@ "num_bids": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/MarketInfoTierValue" }, "description": "The number of open/pending bid orders per node tier." @@ -1889,6 +1899,7 @@ "ask_open_interest_units": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/MarketInfoTierValue" }, "description": "The total number of open/unmatched units in open/pending ask orders per node\ntier." @@ -1896,6 +1907,7 @@ "bid_open_interest_units": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/MarketInfoTierValue" }, "description": "The total number of open/unmatched units in open/pending bid orders per node\ntier." @@ -1956,6 +1968,7 @@ "matched_orders": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcMatchedOrderSnapshot" }, "description": "The set of all orders matched in the batch." @@ -2040,6 +2053,7 @@ "node_ratings": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcNodeRating" }, "description": "A series of node ratings for each of the queried nodes." @@ -2124,6 +2138,7 @@ "events": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcOrderEvent" }, "description": "A list of events that were emitted for this order. This field is only set\nwhen the verbose flag is set to true in the request." @@ -2263,6 +2278,7 @@ "outputs": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcOutput" } } @@ -2522,6 +2538,7 @@ "tokens": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcLsatToken" }, "description": "*\nList of all tokens the daemon knows of, including old/expired tokens." @@ -2557,6 +2574,7 @@ "outputs": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/poolrpcOutput" }, "description": "The outputs we'll withdraw funds from the account into." @@ -2618,6 +2636,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } }