diff --git a/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.ts b/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.ts index c8b504808e..29af66d5ba 100644 --- a/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.ts +++ b/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/query.ts @@ -1,6 +1,6 @@ import { VaultType, VaultTypeSDKType, VaultId, VaultIdSDKType } from "./vault"; import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../cosmos/base/query/v1beta1/pagination"; -import { Params, ParamsSDKType, QuotingParams, QuotingParamsSDKType, VaultParams, VaultParamsSDKType } from "./params"; +import { Params, ParamsSDKType, QuotingParams, QuotingParamsSDKType, OperatorParams, OperatorParamsSDKType, VaultParams, VaultParamsSDKType } from "./params"; import { SubaccountId, SubaccountIdSDKType } from "../subaccounts/subaccount"; import { NumShares, NumSharesSDKType, OwnerShare, OwnerShareSDKType } from "./share"; import * as _m0 from "protobufjs/minimal"; @@ -19,6 +19,7 @@ export interface QueryParamsResponse { /** @deprecated */ params?: Params; defaultQuotingParams?: QuotingParams; + operatorParams?: OperatorParams; } /** QueryParamsResponse is a response type for the Params RPC method. */ @@ -28,6 +29,7 @@ export interface QueryParamsResponseSDKType { /** @deprecated */ params?: ParamsSDKType; default_quoting_params?: QuotingParamsSDKType; + operator_params?: OperatorParamsSDKType; } /** QueryVaultRequest is a request type for the Vault RPC method. */ @@ -189,7 +191,8 @@ export const QueryParamsRequest = { function createBaseQueryParamsResponse(): QueryParamsResponse { return { params: undefined, - defaultQuotingParams: undefined + defaultQuotingParams: undefined, + operatorParams: undefined }; } @@ -203,6 +206,10 @@ export const QueryParamsResponse = { QuotingParams.encode(message.defaultQuotingParams, writer.uint32(18).fork()).ldelim(); } + if (message.operatorParams !== undefined) { + OperatorParams.encode(message.operatorParams, writer.uint32(26).fork()).ldelim(); + } + return writer; }, @@ -223,6 +230,10 @@ export const QueryParamsResponse = { message.defaultQuotingParams = QuotingParams.decode(reader, reader.uint32()); break; + case 3: + message.operatorParams = OperatorParams.decode(reader, reader.uint32()); + break; + default: reader.skipType(tag & 7); break; @@ -236,6 +247,7 @@ export const QueryParamsResponse = { const message = createBaseQueryParamsResponse(); message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; message.defaultQuotingParams = object.defaultQuotingParams !== undefined && object.defaultQuotingParams !== null ? QuotingParams.fromPartial(object.defaultQuotingParams) : undefined; + message.operatorParams = object.operatorParams !== undefined && object.operatorParams !== null ? OperatorParams.fromPartial(object.operatorParams) : undefined; return message; } diff --git a/proto/dydxprotocol/vault/query.proto b/proto/dydxprotocol/vault/query.proto index f1c21c6ee7..b0addb5cb7 100644 --- a/proto/dydxprotocol/vault/query.proto +++ b/proto/dydxprotocol/vault/query.proto @@ -45,6 +45,7 @@ message QueryParamsResponse { // Deprecated since v6.x in favor of default_quoting_params. Params params = 1 [ (gogoproto.nullable) = false, deprecated = true ]; QuotingParams default_quoting_params = 2 [ (gogoproto.nullable) = false ]; + OperatorParams operator_params = 3 [ (gogoproto.nullable) = false ]; } // QueryVaultRequest is a request type for the Vault RPC method. diff --git a/protocol/x/vault/keeper/grpc_query.go b/protocol/x/vault/keeper/grpc_query.go index bb5a84e3ae..16b0bb3988 100644 --- a/protocol/x/vault/keeper/grpc_query.go +++ b/protocol/x/vault/keeper/grpc_query.go @@ -19,5 +19,6 @@ func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*t return &types.QueryParamsResponse{ DefaultQuotingParams: k.GetDefaultQuotingParams(ctx), + OperatorParams: k.GetOperatorParams(ctx), }, nil } diff --git a/protocol/x/vault/keeper/grpc_query_test.go b/protocol/x/vault/keeper/grpc_query_test.go index f7c90fc426..2d9cd9a98f 100644 --- a/protocol/x/vault/keeper/grpc_query_test.go +++ b/protocol/x/vault/keeper/grpc_query_test.go @@ -4,6 +4,7 @@ import ( "testing" testapp "github.com/dydxprotocol/v4-chain/protocol/testutil/app" + "github.com/dydxprotocol/v4-chain/protocol/testutil/constants" "github.com/dydxprotocol/v4-chain/protocol/x/vault/types" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" @@ -24,6 +25,9 @@ func TestQueryParams(t *testing.T) { req: &types.QueryParamsRequest{}, res: &types.QueryParamsResponse{ DefaultQuotingParams: types.DefaultQuotingParams(), + OperatorParams: types.OperatorParams{ + Operator: constants.GovAuthority, + }, }, err: nil, }, diff --git a/protocol/x/vault/types/query.pb.go b/protocol/x/vault/types/query.pb.go index 37fa61e0a0..dfe8509022 100644 --- a/protocol/x/vault/types/query.pb.go +++ b/protocol/x/vault/types/query.pb.go @@ -72,8 +72,9 @@ var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo // QueryParamsResponse is a response type for the Params RPC method. type QueryParamsResponse struct { // Deprecated since v6.x in favor of default_quoting_params. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // Deprecated: Do not use. - DefaultQuotingParams QuotingParams `protobuf:"bytes,2,opt,name=default_quoting_params,json=defaultQuotingParams,proto3" json:"default_quoting_params"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // Deprecated: Do not use. + DefaultQuotingParams QuotingParams `protobuf:"bytes,2,opt,name=default_quoting_params,json=defaultQuotingParams,proto3" json:"default_quoting_params"` + OperatorParams OperatorParams `protobuf:"bytes,3,opt,name=operator_params,json=operatorParams,proto3" json:"operator_params"` } func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } @@ -124,6 +125,13 @@ func (m *QueryParamsResponse) GetDefaultQuotingParams() QuotingParams { return QuotingParams{} } +func (m *QueryParamsResponse) GetOperatorParams() OperatorParams { + if m != nil { + return m.OperatorParams + } + return OperatorParams{} +} + // QueryVaultRequest is a request type for the Vault RPC method. type QueryVaultRequest struct { Type VaultType `protobuf:"varint,1,opt,name=type,proto3,enum=dydxprotocol.vault.VaultType" json:"type,omitempty"` @@ -538,62 +546,63 @@ func init() { func init() { proto.RegisterFile("dydxprotocol/vault/query.proto", fileDescriptor_478fb8dc0ff21ea6) } var fileDescriptor_478fb8dc0ff21ea6 = []byte{ - // 868 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x6f, 0xdb, 0x36, - 0x14, 0xb7, 0xe2, 0x44, 0x5b, 0x68, 0x67, 0xc0, 0x38, 0x2f, 0xf0, 0x9c, 0x4c, 0x4e, 0x04, 0x2c, - 0xff, 0xb6, 0x49, 0xb0, 0x97, 0x61, 0xc0, 0x30, 0x0c, 0x49, 0x0e, 0x5b, 0x72, 0xd8, 0x16, 0x2b, - 0xc1, 0x0e, 0x03, 0x36, 0x8f, 0xb6, 0x19, 0x45, 0x85, 0x2c, 0xda, 0x12, 0xe5, 0xc6, 0x0d, 0x72, - 0x29, 0xd0, 0x43, 0x2f, 0x45, 0x81, 0x7e, 0x82, 0x7e, 0x82, 0xf6, 0x56, 0xf4, 0x1b, 0xe4, 0x18, - 0xa0, 0x97, 0xa2, 0x87, 0xa0, 0x48, 0xfa, 0x41, 0x0a, 0x91, 0xb4, 0x25, 0x39, 0x52, 0xe2, 0x16, - 0xb9, 0x18, 0xf2, 0xe3, 0x7b, 0xbf, 0xdf, 0x8f, 0x8f, 0xef, 0x47, 0x02, 0xa5, 0xd5, 0x6f, 0x1d, - 0x75, 0x5c, 0x42, 0x49, 0x93, 0xd8, 0x7a, 0x0f, 0xf9, 0x36, 0xd5, 0xbb, 0x3e, 0x76, 0xfb, 0x1a, - 0x0b, 0x42, 0x18, 0x5d, 0xd7, 0xd8, 0x7a, 0xa9, 0x60, 0x12, 0x93, 0xb0, 0x98, 0x1e, 0x7c, 0xf1, - 0xcc, 0xd2, 0xbc, 0x49, 0x88, 0x69, 0x63, 0x1d, 0x75, 0x2c, 0x1d, 0x39, 0x0e, 0xa1, 0x88, 0x5a, - 0xc4, 0xf1, 0xc4, 0xea, 0x5a, 0x93, 0x78, 0x6d,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72, 0xf6, 0x31, 0x67, 0x5b, 0xad, - 0x30, 0xf2, 0x6f, 0xe1, 0xaa, 0x9e, 0xf6, 0x3a, 0xe9, 0xc7, 0xc1, 0xf5, 0x70, 0xa2, 0x1f, 0xf3, - 0xdb, 0xf7, 0x04, 0x3e, 0x90, 0xc0, 0xf4, 0xd0, 0x5c, 0x70, 0x35, 0x95, 0x68, 0xd4, 0xe2, 0xa5, - 0xb5, 0x71, 0x52, 0x85, 0xae, 0x45, 0xa6, 0x6b, 0x0e, 0x7e, 0x95, 0xaa, 0x0b, 0xbe, 0x90, 0x40, - 0x21, 0xc9, 0x1d, 0x70, 0x3d, 0x95, 0xe7, 0x1a, 0xc3, 0x95, 0x7e, 0xfc, 0xc0, 0x2a, 0x21, 0xb4, - 0xca, 0x84, 0x7e, 0x07, 0xd7, 0x92, 0x84, 0xb6, 0x07, 0x95, 0x7a, 0xd4, 0xa6, 0x71, 0xe5, 0x11, - 0x0f, 0x8c, 0xa3, 0xfc, 0xaa, 0x3f, 0xc7, 0x51, 0x9e, 0x60, 0xb4, 0x71, 0x95, 0x47, 0xcd, 0xb8, - 0x55, 0x3b, 0xbd, 0x50, 0xa4, 0xb3, 0x0b, 0x45, 0x7a, 0x7b, 0xa1, 0x48, 0x8f, 0x2f, 0x95, 0xcc, - 0xd9, 0xa5, 0x92, 0x79, 0x7d, 0xa9, 0x64, 0xfe, 0xf9, 0x69, 0xfc, 0xf7, 0xe6, 0x48, 0x70, 0xb0, - 0x67, 0xa7, 0x21, 0xb3, 0xf8, 0x0f, 0xef, 0x03, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x2b, 0xa9, 0xa9, - 0x1f, 0x0a, 0x00, 0x00, + // 887 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcf, 0x4e, 0xdb, 0x48, + 0x18, 0x8f, 0x09, 0x78, 0x97, 0x49, 0x60, 0xb5, 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50, 0xf7, 0x83, 0xed, 0x7b, 0x00, 0x5f, 0x0a, 0x60, 0xb4, 0x3b, 0x5c, 0x70, 0x21, 0x91, 0xa8, + 0x7f, 0xc4, 0xf3, 0x8b, 0x83, 0xb8, 0x72, 0x5d, 0xb3, 0x4c, 0xd7, 0x14, 0xfc, 0x2b, 0x51, 0x17, + 0xfc, 0x20, 0x80, 0x5c, 0xdc, 0x74, 0xc0, 0xa5, 0x44, 0x9e, 0x73, 0x06, 0x2e, 0x7f, 0xed, 0x07, + 0xa3, 0xb8, 0xd0, 0x12, 0x13, 0xfa, 0x3f, 0x5c, 0x8c, 0x13, 0xda, 0xe8, 0x44, 0xaa, 0xe1, 0x31, + 0x8d, 0x2a, 0x0f, 0xcd, 0xc0, 0x20, 0xca, 0xcf, 0xce, 0xe7, 0x20, 0xca, 0x63, 0x06, 0x6d, 0x50, + 0xe5, 0xe1, 0x61, 0x5c, 0x2d, 0x1f, 0x9e, 0x48, 0xc2, 0xd1, 0x89, 0x24, 0x7c, 0x3d, 0x91, 0x84, + 0x37, 0xa7, 0x52, 0xea, 0xe8, 0x54, 0x4a, 0x7d, 0x3e, 0x95, 0x52, 0x0f, 0xae, 0x0f, 0xfe, 0xde, + 0xec, 0x71, 0x0e, 0xf6, 0xec, 0x54, 0x45, 0x66, 0xbf, 0xfa, 0x3d, 0x00, 0x00, 0xff, 0xff, 0x95, + 0x29, 0x54, 0xe4, 0x72, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -873,6 +882,16 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size, err := m.OperatorParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a { size, err := m.DefaultQuotingParams.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -1258,6 +1277,8 @@ func (m *QueryParamsResponse) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) l = m.DefaultQuotingParams.Size() n += 1 + l + sovQuery(uint64(l)) + l = m.OperatorParams.Size() + n += 1 + l + sovQuery(uint64(l)) return n } @@ -1532,6 +1553,39 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OperatorParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:])