diff --git a/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.lcd.ts b/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.lcd.ts index bde998565a..afae739e58 100644 --- a/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.lcd.ts +++ b/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.lcd.ts @@ -1,6 +1,6 @@ import { setPaginationParams } from "../../helpers"; import { LCDClient } from "@osmonauts/lcd"; -import { QueryParamsRequest, QueryParamsResponseSDKType, QueryVaultRequest, QueryVaultResponseSDKType, QueryAllVaultsRequest, QueryAllVaultsResponseSDKType, QueryMegavaultTotalSharesRequest, QueryMegavaultTotalSharesResponseSDKType, QueryMegavaultOwnerSharesRequest, QueryMegavaultOwnerSharesResponseSDKType, QueryMegavaultAllOwnerSharesRequest, QueryMegavaultAllOwnerSharesResponseSDKType, QueryVaultParamsRequest, QueryVaultParamsResponseSDKType, QueryMegavaultWithdrawalInfoRequest, QueryMegavaultWithdrawalInfoResponseSDKType } from "./query"; +import { QueryParamsRequest, QueryParamsResponseSDKType, QueryVaultRequest, QueryVaultResponseSDKType, QueryAllVaultsRequest, QueryAllVaultsResponseSDKType, QueryMegavaultTotalSharesRequest, QueryMegavaultTotalSharesResponseSDKType, QueryMegavaultOwnerSharesRequest, QueryMegavaultOwnerSharesResponseSDKType, QueryMegavaultAllOwnerSharesRequest, QueryMegavaultAllOwnerSharesResponseSDKType, QueryVaultParamsRequest, QueryVaultParamsResponseSDKType } from "./query"; export class LCDQueryClient { req: LCDClient; @@ -17,7 +17,6 @@ export class LCDQueryClient { this.megavaultOwnerShares = this.megavaultOwnerShares.bind(this); this.megavaultAllOwnerShares = this.megavaultAllOwnerShares.bind(this); this.vaultParams = this.vaultParams.bind(this); - this.megavaultWithdrawalInfo = this.megavaultWithdrawalInfo.bind(this); } /* Queries the Params. */ @@ -88,20 +87,5 @@ export class LCDQueryClient { const endpoint = `dydxprotocol/vault/params/${params.type}/${params.number}`; return await this.req.get(endpoint); } - /* Queries withdrawal info for megavault. */ - - - async megavaultWithdrawalInfo(params: QueryMegavaultWithdrawalInfoRequest): Promise { - const options: any = { - params: {} - }; - - if (typeof params?.sharesToWithdraw !== "undefined") { - options.params.shares_to_withdraw = params.sharesToWithdraw; - } - - const endpoint = `dydxprotocol/vault/megavault/withdrawal_info`; - return await this.req.get(endpoint, options); - } } \ No newline at end of file diff --git a/proto/dydxprotocol/vault/query.proto b/proto/dydxprotocol/vault/query.proto index ed82af2013..8436515739 100644 --- a/proto/dydxprotocol/vault/query.proto +++ b/proto/dydxprotocol/vault/query.proto @@ -51,8 +51,10 @@ service Query { // Queries withdrawal info for megavault. rpc MegavaultWithdrawalInfo(QueryMegavaultWithdrawalInfoRequest) returns (QueryMegavaultWithdrawalInfoResponse) { - option (google.api.http).get = - "/dydxprotocol/vault/megavault/withdrawal_info"; + option (google.api.http) = { + post : "/dydxprotocol/vault/megavault/withdrawal_info" + body : "*" + }; } } diff --git a/protocol/x/vault/types/query.pb.go b/protocol/x/vault/types/query.pb.go index 228db44453..c962a47aad 100644 --- a/protocol/x/vault/types/query.pb.go +++ b/protocol/x/vault/types/query.pb.go @@ -883,88 +883,88 @@ func init() { func init() { proto.RegisterFile("dydxprotocol/vault/query.proto", fileDescriptor_478fb8dc0ff21ea6) } var fileDescriptor_478fb8dc0ff21ea6 = []byte{ - // 1282 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xcf, 0xc6, 0x89, 0xfb, 0xcd, 0x4b, 0xd2, 0xf6, 0x3b, 0x49, 0x13, 0xd7, 0x2d, 0x4e, 0xb2, - 0x40, 0x9b, 0xa4, 0x8d, 0x97, 0xa4, 0x69, 0x8b, 0x44, 0x85, 0x9a, 0x20, 0x4a, 0x83, 0x04, 0xad, - 0x37, 0xa1, 0x48, 0x48, 0xb0,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xe6, 0xef, 0x26, 0xda, 0x88, 0x17, 0x39, 0x43, 0x1f, 0x43, 0x96, 0x6c, 0xfb, - 0x16, 0x6b, 0xe4, 0x32, 0xd3, 0xca, 0xec, 0xc8, 0xea, 0xdd, 0x40, 0xe6, 0xaf, 0x27, 0x53, 0xb7, - 0xab, 0x16, 0xdb, 0xf2, 0xcb, 0xc5, 0x0a, 0xad, 0x69, 0xf1, 0x54, 0x59, 0x5e, 0xa8, 0x6c, 0x61, - 0xcb, 0xd1, 0x9a, 0x27, 0x66, 0x10, 0x08, 0xaf, 0xb8, 0x4e, 0x5c, 0x0b, 0xdb, 0xd6, 0xa7, 0xb8, - 0x6c, 0x93, 0x35, 0x87, 0xe9, 0x12, 0x17, 0x6d, 0xc2, 0x90, 0xe5, 0xec, 0x10, 0x87, 0x51, 0xb7, - 0x91, 0x1b, 0xe8, 0xb1, 0x91, 0x16, 0x34, 0xba, 0x0b, 0x23, 0x22, 0xb4, 0x32, 0x43, 0x06, 0x79, - 0x6c, 0xa6, 0x3a, 0x86, 0x37, 0x96, 0x1e, 0xc3, 0x3b, 0xad, 0x23, 0x74, 0x0d, 0x26, 0x6a, 0xd4, - 0x63, 0x86, 0x4b, 0x2a, 0xc4, 0x61, 0x46, 0xc5, 0xb6, 0x08, 0x0f, 0xb7, 0x97, 0xcb, 0x4e, 0x67, - 0x66, 0x47, 0xf5, 0xb1, 0xe0, 0x56, 0xe7, 0x97, 0x6f, 0xf0, 0xbb, 0x35, 0xd3, 0x53, 0x0d, 0x38, - 0xc7, 0xdf, 0x7b, 0xc5, 0xb6, 0x39, 0x7c, 0x58, 0x33, 0xe8, 0x0e, 0x40, 0xab, 0x3b, 0xc8, 0x47, - 0xbf, 0x54, 0x94, 0x8d, 0x25, 0x68, 0x25, 0x45, 0xd1, 0x92, 0x64, 0x2b, 0x29, 0xde, 0xc7, 0x55, - 0x22, 0x75, 0xf5, 0x88, 0xa6, 0xfa, 0xad, 0x02, 0x13, 0xed, 0x16, 0x64, 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d6, - 0xf9, 0x57, 0x9f, 0x5e, 0x51, 0x3a, 0x73, 0x83, 0x3b, 0xf3, 0x0a, 0x2a, 0x76, 0x77, 0x06, 0xdb, - 0xb6, 0x11, 0x75, 0x08, 0x7d, 0xa3, 0xc0, 0x70, 0x64, 0x74, 0xa0, 0x2b, 0xdd, 0xeb, 0x26, 0x5e, - 0xe2, 0x57, 0xd3, 0x09, 0xa7, 0xc9, 0x14, 0x51, 0xe7, 0xc7, 0x6a, 0xed, 0xd7, 0x68, 0x94, 0xe3, - 0x73, 0x23, 0x4d, 0x94, 0x13, 0x87, 0x5c, 0x9a, 0x28, 0x27, 0x8f, 0x28, 0xf5, 0x3a, 0x77, 0x41, - 0x43, 0x0b, 0xdd, 0xa3, 0xdc, 0x5c, 0xd7, 0x6c, 0xc3, 0x72, 0x36, 0xe9, 0x6a, 0xe9, 0xd1, 0x61, - 0x41, 0x79, 0x7c, 0x58, 0x50, 0xfe, 0x3e, 0x2c, 0x28, 0x5f, 0x1d, 0x15, 0xfa, 0x1e, 0x1f, 0x15, - 0xfa, 0xfe, 0x3c, 0x2a, 0xf4, 0x7d, 0x70, 0x33, 0x7d, 0xef, 0xdf, 0x93, 0x66, 0xf8, 0x08, 0x28, - 0x67, 0xf9, 0xf9, 0xb5, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x87, 0xf2, 0x87, 0x5d, 0x1b, 0x12, - 0x00, 0x00, + // 1284 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xc6, 0x89, 0x4b, 0x5f, 0x92, 0xb6, 0x4c, 0xd3, 0xd4, 0x75, 0x8b, 0x93, 0x2c, 0xd0, + 0x26, 0x69, 0xe3, 0x25, 0x6e, 0x68, 0x2b, 0xa8, 0x50, 0x13, 0x44, 0x69, 0x90, 0xa0, 0xf5, 0x26, + 0x14, 0x09, 0x09, 0x96, 0xb1, 0x77, 0xe2, 0xac, 0x58, 0xef, 0x38, 0xbb, 0xb3, 0x49, 0x4c, 0x14, + 0x09, 0x21, 0x71, 0xe0, 0x86, 0xc4, 0x95, 0x0b, 0x7c, 0x04, 0x84, 0x84, 0x38, 0x70, 0x40, 0x42, + 0xb4, 0xc7, 0x0a, 0x2e, 0x88, 0x43, 0x85, 0x12, 0xce, 0x7c, 0x06, 0xb4, 0x33, 0xb3, 0xf6, 0xae, + 0xb3, 0x76, 0xb6, 0x95, 0x7b, 0x89, 0xbc, 0x33, 0xef, 0xfd, 0xde, 0xef, 0xbd, 0x79, 0xff, 0x02, + 0x05, 0xb3, 0x69, 0xee, 0x34, 0x5c, 0xca, 0x68, 0x95, 0xda, 0xda, 0x16, 0xf6, 0x6d, 0xa6, 0x6d, + 0xfa, 0xc4, 0x6d, 0x16, 0xf9, 0x21, 0x42, 0xd1, 0xfb, 0x22, 0xbf, 0xcf, 0x9f, 0xab, 0x52, 0xaf, + 0x4e, 0x3d, 0x83, 0x1f, 0x6b, 0xe2, 0x43, 0x88, 0xe7, 0xe7, 0xc4, 0x97, 0x56, 0xc1, 0x1e, 0x11, + 0x38, 0xda, 0xd6, 0x42, 0x85, 0x30, 0xbc, 0xa0, 0x35, 0x70, 0xcd, 0x72, 0x30, 0xb3, 0xa8, 0x23, + 0x65, 0xc7, 0x6b, 0xb4, 0x46, 0x05, 0x46, 0xf0, 0x4b, 0x9e, 0x5e, 0xa8, 0x51, 0x5a, 0xb3, 0x89, + 0x86, 0x1b, 0x96, 0x86, 0x1d, 0x87, 0x32, 0xae, 0x12, 0xe2, 0xcf, 0xc6, 0xe8, 0x7a, 0x7e, 0x05, + 0x57, 0xab, 0xd4, 0x77, 0x98, 0x17, 0xf9, 0x2d, 0x45, 0x27, 0x13, 0x3c, 0x6b, 0x60, 0x17, 0xd7, + 0x43, 0xac, 0x24, 0xd7, 0xbd, 0x0d, 0xec, 0x92, 0x1e, 0xf7, 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 0x84, 0x12, 0xa7, 0x75, 0xfe, + 0xc6, 0x93, 0x2b, 0x4a, 0x67, 0xae, 0x71, 0x67, 0x5e, 0x41, 0xc5, 0xde, 0xce, 0x60, 0xdb, 0x36, + 0xa2, 0x0e, 0xa1, 0x6f, 0x15, 0x18, 0x89, 0x8c, 0x0e, 0x74, 0xb9, 0x77, 0xdd, 0xc4, 0x4b, 0xfc, + 0x4a, 0x3a, 0xe1, 0x34, 0x99, 0x22, 0xea, 0xfc, 0x50, 0xad, 0xfd, 0x1e, 0x8d, 0x72, 0x7c, 0x6e, + 0xa4, 0x89, 0x72, 0xe2, 0x90, 0x4b, 0x13, 0xe5, 0xe4, 0x11, 0xa5, 0xde, 0xe0, 0x2e, 0x94, 0x5e, + 0x53, 0xe6, 0xd4, 0xf9, 0xde, 0x81, 0x6e, 0x6d, 0x6c, 0xb6, 0x61, 0x39, 0xeb, 0x74, 0xb9, 0xfc, + 0x70, 0xbf, 0xa0, 0x3c, 0xda, 0x2f, 0x28, 0xff, 0xec, 0x17, 0x94, 0xaf, 0x0f, 0x0a, 0x03, 0x8f, + 0x0e, 0x0a, 0x03, 0x7f, 0x1d, 0x14, 0x06, 0x3e, 0xbc, 0x9e, 0xbe, 0xfd, 0xef, 0x48, 0x33, 0x7c, + 0x0a, 0x54, 0xb2, 0xfc, 0xfc, 0xea, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x04, 0x45, 0xd1, 0x47, + 0x1e, 0x12, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/protocol/x/vault/types/query.pb.gw.go b/protocol/x/vault/types/query.pb.gw.go index dc98d0799f..bfafbe93d1 100644 --- a/protocol/x/vault/types/query.pb.gw.go +++ b/protocol/x/vault/types/query.pb.gw.go @@ -359,18 +359,15 @@ func local_request_Query_VaultParams_0(ctx context.Context, marshaler runtime.Ma } -var ( - filter_Query_MegavaultWithdrawalInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - func request_Query_MegavaultWithdrawalInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryMegavaultWithdrawalInfoRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MegavaultWithdrawalInfo_0); err != nil { + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -383,10 +380,11 @@ func local_request_Query_MegavaultWithdrawalInfo_0(ctx context.Context, marshale var protoReq QueryMegavaultWithdrawalInfoRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MegavaultWithdrawalInfo_0); err != nil { + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -562,7 +560,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_MegavaultWithdrawalInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_MegavaultWithdrawalInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -766,7 +764,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_MegavaultWithdrawalInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Query_MegavaultWithdrawalInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)