From 59ca02fbd8263203c346340f53d1714a4be3d9d5 Mon Sep 17 00:00:00 2001 From: Tian Date: Fri, 27 Sep 2024 14:58:06 -0400 Subject: [PATCH] register deprecated MsgSetVaultQuotingParams (#2392) --- .../src/codegen/dydxprotocol/vault/tx.ts | 259 ++++-- proto/dydxprotocol/vault/tx.proto | 39 +- protocol/app/msgs/all_msgs.go | 3 +- protocol/app/msgs/unsupported_msgs.go | 3 + protocol/app/msgs/unsupported_msgs_test.go | 1 + protocol/lib/ante/nested_msg_test.go | 2 + protocol/lib/ante/unsupported_msgs.go | 2 + protocol/x/vault/types/codec.go | 6 + protocol/x/vault/types/tx.pb.go | 816 ++++++++++++------ 9 files changed, 771 insertions(+), 360 deletions(-) diff --git a/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/tx.ts b/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/tx.ts index d26fa588ef..3a8212755b 100644 --- a/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/tx.ts +++ b/indexer/packages/v4-protos/src/codegen/dydxprotocol/vault/tx.ts @@ -184,32 +184,6 @@ export interface MsgUnlockSharesResponseSDKType { /** The number of shares unlocked. */ unlocked_shares?: NumSharesSDKType; } -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. - */ - -/** @deprecated */ - -export interface MsgUpdateParams { - authority: string; - /** The parameters to update. Each field must be set. */ - - params?: Params; -} -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. - */ - -/** @deprecated */ - -export interface MsgUpdateParamsSDKType { - authority: string; - /** The parameters to update. Each field must be set. */ - - params?: ParamsSDKType; -} /** MsgUpdateOperatorParams is the Msg/UpdateOperatorParams request type. */ export interface MsgUpdateOperatorParams { @@ -288,6 +262,64 @@ export interface MsgRetrieveFromVaultResponse {} /** MsgRetrieveFromVaultResponse is the Msg/RetrieveFromVault response type. */ export interface MsgRetrieveFromVaultResponseSDKType {} +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. + */ + +/** @deprecated */ + +export interface MsgUpdateParams { + authority: string; + /** The parameters to update. Each field must be set. */ + + params?: Params; +} +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. + */ + +/** @deprecated */ + +export interface MsgUpdateParamsSDKType { + authority: string; + /** The parameters to update. Each field must be set. */ + + params?: ParamsSDKType; +} +/** + * MsgSetVaultQuotingParams is the Msg/SetVaultQuotingParams request type. + * Deprecated since v6.x as is replaced by MsgSetVaultParams. + */ + +/** @deprecated */ + +export interface MsgSetVaultQuotingParams { + authority: string; + /** The vault to set quoting params of. */ + + vaultId?: VaultId; + /** The quoting parameters to set. Each field must be set. */ + + quotingParams?: QuotingParams; +} +/** + * MsgSetVaultQuotingParams is the Msg/SetVaultQuotingParams request type. + * Deprecated since v6.x as is replaced by MsgSetVaultParams. + */ + +/** @deprecated */ + +export interface MsgSetVaultQuotingParamsSDKType { + authority: string; + /** The vault to set quoting params of. */ + + vault_id?: VaultIdSDKType; + /** The quoting parameters to set. Each field must be set. */ + + quoting_params?: QuotingParamsSDKType; +} function createBaseMsgDepositToMegavault(): MsgDepositToMegavault { return { @@ -787,61 +819,6 @@ export const MsgUnlockSharesResponse = { }; -function createBaseMsgUpdateParams(): MsgUpdateParams { - return { - authority: "", - params: undefined - }; -} - -export const MsgUpdateParams = { - encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.authority !== "") { - writer.uint32(10).string(message.authority); - } - - if (message.params !== undefined) { - Params.encode(message.params, writer.uint32(18).fork()).ldelim(); - } - - return writer; - }, - - decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams { - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseMsgUpdateParams(); - - while (reader.pos < end) { - const tag = reader.uint32(); - - switch (tag >>> 3) { - case 1: - message.authority = reader.string(); - break; - - case 2: - message.params = Params.decode(reader, reader.uint32()); - break; - - default: - reader.skipType(tag & 7); - break; - } - } - - return message; - }, - - fromPartial(object: DeepPartial): MsgUpdateParams { - const message = createBaseMsgUpdateParams(); - message.authority = object.authority ?? ""; - message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; - return message; - } - -}; - function createBaseMsgUpdateOperatorParams(): MsgUpdateOperatorParams { return { authority: "", @@ -1127,4 +1104,124 @@ export const MsgRetrieveFromVaultResponse = { return message; } +}; + +function createBaseMsgUpdateParams(): MsgUpdateParams { + return { + authority: "", + params: undefined + }; +} + +export const MsgUpdateParams = { + encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + + if (message.params !== undefined) { + Params.encode(message.params, writer.uint32(18).fork()).ldelim(); + } + + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams { + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateParams(); + + while (reader.pos < end) { + const tag = reader.uint32(); + + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + + case 2: + message.params = Params.decode(reader, reader.uint32()); + break; + + default: + reader.skipType(tag & 7); + break; + } + } + + return message; + }, + + fromPartial(object: DeepPartial): MsgUpdateParams { + const message = createBaseMsgUpdateParams(); + message.authority = object.authority ?? ""; + message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined; + return message; + } + +}; + +function createBaseMsgSetVaultQuotingParams(): MsgSetVaultQuotingParams { + return { + authority: "", + vaultId: undefined, + quotingParams: undefined + }; +} + +export const MsgSetVaultQuotingParams = { + encode(message: MsgSetVaultQuotingParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.authority !== "") { + writer.uint32(10).string(message.authority); + } + + if (message.vaultId !== undefined) { + VaultId.encode(message.vaultId, writer.uint32(18).fork()).ldelim(); + } + + if (message.quotingParams !== undefined) { + QuotingParams.encode(message.quotingParams, writer.uint32(26).fork()).ldelim(); + } + + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetVaultQuotingParams { + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgSetVaultQuotingParams(); + + while (reader.pos < end) { + const tag = reader.uint32(); + + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + + case 2: + message.vaultId = VaultId.decode(reader, reader.uint32()); + break; + + case 3: + message.quotingParams = QuotingParams.decode(reader, reader.uint32()); + break; + + default: + reader.skipType(tag & 7); + break; + } + } + + return message; + }, + + fromPartial(object: DeepPartial): MsgSetVaultQuotingParams { + const message = createBaseMsgSetVaultQuotingParams(); + message.authority = object.authority ?? ""; + message.vaultId = object.vaultId !== undefined && object.vaultId !== null ? VaultId.fromPartial(object.vaultId) : undefined; + message.quotingParams = object.quotingParams !== undefined && object.quotingParams !== null ? QuotingParams.fromPartial(object.quotingParams) : undefined; + return message; + } + }; \ No newline at end of file diff --git a/proto/dydxprotocol/vault/tx.proto b/proto/dydxprotocol/vault/tx.proto index 2441571500..5b786747cb 100644 --- a/proto/dydxprotocol/vault/tx.proto +++ b/proto/dydxprotocol/vault/tx.proto @@ -150,18 +150,6 @@ message MsgUnlockSharesResponse { NumShares unlocked_shares = 1 [ (gogoproto.nullable) = false ]; } -// MsgUpdateParams is the Msg/UpdateParams request type. -// Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. -message MsgUpdateParams { - option deprecated = true; - // Authority is the address that controls the module. - option (cosmos.msg.v1.signer) = "authority"; - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - - // The parameters to update. Each field must be set. - Params params = 2 [ (gogoproto.nullable) = false ]; -} - // MsgUpdateOperatorParams is the Msg/UpdateOperatorParams request type. message MsgUpdateOperatorParams { // Authority is the address that controls the module. @@ -214,3 +202,30 @@ message MsgRetrieveFromVault { // MsgRetrieveFromVaultResponse is the Msg/RetrieveFromVault response type. message MsgRetrieveFromVaultResponse {} + +// MsgUpdateParams is the Msg/UpdateParams request type. +// Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. +message MsgUpdateParams { + option deprecated = true; + // Authority is the address that controls the module. + option (cosmos.msg.v1.signer) = "authority"; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // The parameters to update. Each field must be set. + Params params = 2 [ (gogoproto.nullable) = false ]; +} + +// MsgSetVaultQuotingParams is the Msg/SetVaultQuotingParams request type. +// Deprecated since v6.x as is replaced by MsgSetVaultParams. +message MsgSetVaultQuotingParams { + option deprecated = true; + // Authority is the address that controls the module. + option (cosmos.msg.v1.signer) = "authority"; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + + // The vault to set quoting params of. + VaultId vault_id = 2 [ (gogoproto.nullable) = false ]; + + // The quoting parameters to set. Each field must be set. + QuotingParams quoting_params = 3 [ (gogoproto.nullable) = false ]; +} diff --git a/protocol/app/msgs/all_msgs.go b/protocol/app/msgs/all_msgs.go index 8d1bc2e519..1276ccb7cc 100644 --- a/protocol/app/msgs/all_msgs.go +++ b/protocol/app/msgs/all_msgs.go @@ -258,13 +258,14 @@ var ( "/dydxprotocol.vault.MsgRetrieveFromVaultResponse": {}, "/dydxprotocol.vault.MsgSetVaultParams": {}, "/dydxprotocol.vault.MsgSetVaultParamsResponse": {}, + "/dydxprotocol.vault.MsgSetVaultQuotingParams": {}, // deprecated "/dydxprotocol.vault.MsgUnlockShares": {}, "/dydxprotocol.vault.MsgUnlockSharesResponse": {}, "/dydxprotocol.vault.MsgUpdateDefaultQuotingParams": {}, "/dydxprotocol.vault.MsgUpdateDefaultQuotingParamsResponse": {}, "/dydxprotocol.vault.MsgUpdateOperatorParams": {}, "/dydxprotocol.vault.MsgUpdateOperatorParamsResponse": {}, - "/dydxprotocol.vault.MsgUpdateParams": {}, + "/dydxprotocol.vault.MsgUpdateParams": {}, // deprecated "/dydxprotocol.vault.MsgWithdrawFromMegavault": {}, "/dydxprotocol.vault.MsgWithdrawFromMegavaultResponse": {}, diff --git a/protocol/app/msgs/unsupported_msgs.go b/protocol/app/msgs/unsupported_msgs.go index 8770863b92..885917819c 100644 --- a/protocol/app/msgs/unsupported_msgs.go +++ b/protocol/app/msgs/unsupported_msgs.go @@ -31,6 +31,9 @@ var ( "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse": nil, // vault + // MsgSetVaultQuotingParams is deprecated since v6.x and replaced by MsgSetVaultParams. + // nolint:staticcheck + "/dydxprotocol.vault.MsgSetVaultQuotingParams": &vaulttypes.MsgSetVaultQuotingParams{}, // MsgUpdateParams is deprecated since v6.x and replaced by MsgUpdateDefaultQuotingParams. // nolint:staticcheck "/dydxprotocol.vault.MsgUpdateParams": &vaulttypes.MsgUpdateParams{}, diff --git a/protocol/app/msgs/unsupported_msgs_test.go b/protocol/app/msgs/unsupported_msgs_test.go index b483990c82..3ba4e9041f 100644 --- a/protocol/app/msgs/unsupported_msgs_test.go +++ b/protocol/app/msgs/unsupported_msgs_test.go @@ -16,6 +16,7 @@ func TestUnsupportedMsgSamples_Key(t *testing.T) { "/cosmos.gov.v1beta1.MsgSubmitProposal", "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", + "/dydxprotocol.vault.MsgSetVaultQuotingParams", "/dydxprotocol.vault.MsgUpdateParams", // ICA Controller messages diff --git a/protocol/lib/ante/nested_msg_test.go b/protocol/lib/ante/nested_msg_test.go index 7ce342dee0..94ffe95c58 100644 --- a/protocol/lib/ante/nested_msg_test.go +++ b/protocol/lib/ante/nested_msg_test.go @@ -72,6 +72,8 @@ func TestIsDydxMsg_Invalid(t *testing.T) { appmsgs.NormalMsgsDydxCustom, appmsgs.InternalMsgSamplesDydxCustom, map[string]sdk.Msg{ + // nolint:staticcheck + "/dydxprotocol.vault.MsgSetVaultQuotingParams": &vaulttypes.MsgSetVaultQuotingParams{}, // nolint:staticcheck "/dydxprotocol.vault.MsgUpdateParams": &vaulttypes.MsgUpdateParams{}, }, diff --git a/protocol/lib/ante/unsupported_msgs.go b/protocol/lib/ante/unsupported_msgs.go index 9ce53fd8aa..8dd69cdf6d 100644 --- a/protocol/lib/ante/unsupported_msgs.go +++ b/protocol/lib/ante/unsupported_msgs.go @@ -23,6 +23,8 @@ func IsUnsupportedMsg(msg sdk.Msg) bool { // ------- dYdX custom modules // vault // nolint:staticcheck + *vaulttypes.MsgSetVaultQuotingParams, + // nolint:staticcheck *vaulttypes.MsgUpdateParams: return true } diff --git a/protocol/x/vault/types/codec.go b/protocol/x/vault/types/codec.go index f9c7b0af3c..3173156081 100644 --- a/protocol/x/vault/types/codec.go +++ b/protocol/x/vault/types/codec.go @@ -19,6 +19,12 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { (*sdk.Msg)(nil), &MsgUpdateParams{}, ) + // Register deprecated MsgSetVaultQuotingParams as it's not part of msg service. + registry.RegisterInterface( + "/"+proto.MessageName(&MsgSetVaultQuotingParams{}), + (*sdk.Msg)(nil), + &MsgSetVaultQuotingParams{}, + ) } var ( diff --git a/protocol/x/vault/types/tx.pb.go b/protocol/x/vault/types/tx.pb.go index 771491a1a9..1474addf91 100644 --- a/protocol/x/vault/types/tx.pb.go +++ b/protocol/x/vault/types/tx.pb.go @@ -519,63 +519,6 @@ func (m *MsgUnlockSharesResponse) GetUnlockedShares() NumShares { return NumShares{} } -// MsgUpdateParams is the Msg/UpdateParams request type. -// Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. -// -// Deprecated: Do not use. -type MsgUpdateParams struct { - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // The parameters to update. Each field must be set. - Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` -} - -func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } -func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateParams) ProtoMessage() {} -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_ced574c6017ce006, []int{10} -} -func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateParams.Merge(m, src) -} -func (m *MsgUpdateParams) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateParams) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo - -func (m *MsgUpdateParams) GetAuthority() string { - if m != nil { - return m.Authority - } - return "" -} - -func (m *MsgUpdateParams) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - // MsgUpdateOperatorParams is the Msg/UpdateOperatorParams request type. type MsgUpdateOperatorParams struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` @@ -587,7 +530,7 @@ func (m *MsgUpdateOperatorParams) Reset() { *m = MsgUpdateOperatorParams func (m *MsgUpdateOperatorParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateOperatorParams) ProtoMessage() {} func (*MsgUpdateOperatorParams) Descriptor() ([]byte, []int) { - return fileDescriptor_ced574c6017ce006, []int{11} + return fileDescriptor_ced574c6017ce006, []int{10} } func (m *MsgUpdateOperatorParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -638,7 +581,7 @@ func (m *MsgUpdateOperatorParamsResponse) Reset() { *m = MsgUpdateOperat func (m *MsgUpdateOperatorParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateOperatorParamsResponse) ProtoMessage() {} func (*MsgUpdateOperatorParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ced574c6017ce006, []int{12} + return fileDescriptor_ced574c6017ce006, []int{11} } func (m *MsgUpdateOperatorParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -680,7 +623,7 @@ func (m *MsgAllocateToVault) Reset() { *m = MsgAllocateToVault{} } func (m *MsgAllocateToVault) String() string { return proto.CompactTextString(m) } func (*MsgAllocateToVault) ProtoMessage() {} func (*MsgAllocateToVault) Descriptor() ([]byte, []int) { - return fileDescriptor_ced574c6017ce006, []int{13} + return fileDescriptor_ced574c6017ce006, []int{12} } func (m *MsgAllocateToVault) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -731,7 +674,7 @@ func (m *MsgAllocateToVaultResponse) Reset() { *m = MsgAllocateToVaultRe func (m *MsgAllocateToVaultResponse) String() string { return proto.CompactTextString(m) } func (*MsgAllocateToVaultResponse) ProtoMessage() {} func (*MsgAllocateToVaultResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ced574c6017ce006, []int{14} + return fileDescriptor_ced574c6017ce006, []int{13} } func (m *MsgAllocateToVaultResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -773,7 +716,7 @@ func (m *MsgRetrieveFromVault) Reset() { *m = MsgRetrieveFromVault{} } func (m *MsgRetrieveFromVault) String() string { return proto.CompactTextString(m) } func (*MsgRetrieveFromVault) ProtoMessage() {} func (*MsgRetrieveFromVault) Descriptor() ([]byte, []int) { - return fileDescriptor_ced574c6017ce006, []int{15} + return fileDescriptor_ced574c6017ce006, []int{14} } func (m *MsgRetrieveFromVault) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -824,7 +767,7 @@ func (m *MsgRetrieveFromVaultResponse) Reset() { *m = MsgRetrieveFromVau func (m *MsgRetrieveFromVaultResponse) String() string { return proto.CompactTextString(m) } func (*MsgRetrieveFromVaultResponse) ProtoMessage() {} func (*MsgRetrieveFromVaultResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ced574c6017ce006, []int{16} + return fileDescriptor_ced574c6017ce006, []int{15} } func (m *MsgRetrieveFromVaultResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -853,6 +796,129 @@ func (m *MsgRetrieveFromVaultResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRetrieveFromVaultResponse proto.InternalMessageInfo +// MsgUpdateParams is the Msg/UpdateParams request type. +// Deprecated since v6.x as is replaced by MsgUpdateDefaultQuotingParams. +// +// Deprecated: Do not use. +type MsgUpdateParams struct { + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // The parameters to update. Each field must be set. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_ced574c6017ce006, []int{16} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +func (m *MsgUpdateParams) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateParams) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +// MsgSetVaultQuotingParams is the Msg/SetVaultQuotingParams request type. +// Deprecated since v6.x as is replaced by MsgSetVaultParams. +// +// Deprecated: Do not use. +type MsgSetVaultQuotingParams struct { + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // The vault to set quoting params of. + VaultId VaultId `protobuf:"bytes,2,opt,name=vault_id,json=vaultId,proto3" json:"vault_id"` + // The quoting parameters to set. Each field must be set. + QuotingParams QuotingParams `protobuf:"bytes,3,opt,name=quoting_params,json=quotingParams,proto3" json:"quoting_params"` +} + +func (m *MsgSetVaultQuotingParams) Reset() { *m = MsgSetVaultQuotingParams{} } +func (m *MsgSetVaultQuotingParams) String() string { return proto.CompactTextString(m) } +func (*MsgSetVaultQuotingParams) ProtoMessage() {} +func (*MsgSetVaultQuotingParams) Descriptor() ([]byte, []int) { + return fileDescriptor_ced574c6017ce006, []int{17} +} +func (m *MsgSetVaultQuotingParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetVaultQuotingParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetVaultQuotingParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetVaultQuotingParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetVaultQuotingParams.Merge(m, src) +} +func (m *MsgSetVaultQuotingParams) XXX_Size() int { + return m.Size() +} +func (m *MsgSetVaultQuotingParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetVaultQuotingParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetVaultQuotingParams proto.InternalMessageInfo + +func (m *MsgSetVaultQuotingParams) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgSetVaultQuotingParams) GetVaultId() VaultId { + if m != nil { + return m.VaultId + } + return VaultId{} +} + +func (m *MsgSetVaultQuotingParams) GetQuotingParams() QuotingParams { + if m != nil { + return m.QuotingParams + } + return QuotingParams{} +} + func init() { proto.RegisterType((*MsgDepositToMegavault)(nil), "dydxprotocol.vault.MsgDepositToMegavault") proto.RegisterType((*MsgDepositToMegavaultResponse)(nil), "dydxprotocol.vault.MsgDepositToMegavaultResponse") @@ -864,80 +930,83 @@ func init() { proto.RegisterType((*MsgSetVaultParamsResponse)(nil), "dydxprotocol.vault.MsgSetVaultParamsResponse") proto.RegisterType((*MsgUnlockShares)(nil), "dydxprotocol.vault.MsgUnlockShares") proto.RegisterType((*MsgUnlockSharesResponse)(nil), "dydxprotocol.vault.MsgUnlockSharesResponse") - proto.RegisterType((*MsgUpdateParams)(nil), "dydxprotocol.vault.MsgUpdateParams") proto.RegisterType((*MsgUpdateOperatorParams)(nil), "dydxprotocol.vault.MsgUpdateOperatorParams") proto.RegisterType((*MsgUpdateOperatorParamsResponse)(nil), "dydxprotocol.vault.MsgUpdateOperatorParamsResponse") proto.RegisterType((*MsgAllocateToVault)(nil), "dydxprotocol.vault.MsgAllocateToVault") proto.RegisterType((*MsgAllocateToVaultResponse)(nil), "dydxprotocol.vault.MsgAllocateToVaultResponse") proto.RegisterType((*MsgRetrieveFromVault)(nil), "dydxprotocol.vault.MsgRetrieveFromVault") proto.RegisterType((*MsgRetrieveFromVaultResponse)(nil), "dydxprotocol.vault.MsgRetrieveFromVaultResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "dydxprotocol.vault.MsgUpdateParams") + proto.RegisterType((*MsgSetVaultQuotingParams)(nil), "dydxprotocol.vault.MsgSetVaultQuotingParams") } func init() { proto.RegisterFile("dydxprotocol/vault/tx.proto", fileDescriptor_ced574c6017ce006) } var fileDescriptor_ced574c6017ce006 = []byte{ - // 971 bytes of a gzipped FileDescriptorProto + // 1001 bytes of a gzipped FileDescriptor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x3b, 0x50, 0xd2, 0xde, 0x19, 0x97, 0x0e, 0x34, 0x99, 0x04, 0x9b, 0x57, 0x0f, 0x01, 0x8e, + 0x3d, 0xdf, 0x83, 0xc5, 0x89, 0x97, 0xc9, 0xf9, 0x0c, 0x33, 0x49, 0x98, 0xb9, 0x36, 0x15, 0x2c, + 0xf6, 0xf3, 0x29, 0x14, 0x12, 0xf7, 0xff, 0xb9, 0xac, 0x60, 0xc7, 0x40, 0xe6, 0xa5, 0x29, 0x40, + 0xb1, 0x07, 0x0a, 0x4b, 0x93, 0xd7, 0xd5, 0x85, 0x0c, 0xfd, 0x09, 0x9c, 0x69, 0x4d, 0x87, 0x1b, + 0x7b, 0x35, 0x1f, 0x4f, 0x4f, 0xfb, 0xd5, 0x0c, 0x23, 0x29, 0xa4, 0xf9, 0xca, 0xb4, 0xc8, 0xa1, + 0xc3, 0xf5, 0xcd, 0x87, 0x7b, 0x15, 0xf4, 0x68, 0xaf, 0x82, 0xfe, 0xd8, 0xab, 0xa0, 0xef, 0xf6, + 0x2b, 0x73, 0x8f, 0xf6, 0x2b, 0x73, 0xbf, 0xed, 0x57, 0xe6, 0x3e, 0x7e, 0x6d, 0xfa, 0x69, 0xbe, + 0x33, 0xfc, 0x6d, 0x1e, 0x0e, 0xf5, 0xad, 0x79, 0x29, 0xbf, 0xfa, 0x4f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xf9, 0x54, 0x20, 0x45, 0xbe, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1660,46 +1729,6 @@ func (m *MsgUnlockSharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *MsgUpdateOperatorParams) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1909,44 +1938,134 @@ func (m *MsgRetrieveFromVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *MsgDepositToMegavault) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SubaccountId != nil { - l = m.SubaccountId.Size() - n += 1 + l + sovTx(uint64(l)) - } - l = m.QuoteQuantums.Size() - n += 1 + l + sovTx(uint64(l)) - return n + +func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgDepositToMegavaultResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = m.MintedShares.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgWithdrawFromMegavault) Size() (n int) { + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetVaultQuotingParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetVaultQuotingParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetVaultQuotingParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.QuotingParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.VaultId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgDepositToMegavault) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubaccountId != nil { + l = m.SubaccountId.Size() + n += 1 + l + sovTx(uint64(l)) + } + l = m.QuoteQuantums.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgDepositToMegavaultResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.MintedShares.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgWithdrawFromMegavault) Size() (n int) { if m == nil { return 0 } @@ -2050,7 +2169,7 @@ func (m *MsgUnlockSharesResponse) Size() (n int) { return n } -func (m *MsgUpdateParams) Size() (n int) { +func (m *MsgUpdateOperatorParams) Size() (n int) { if m == nil { return 0 } @@ -2065,7 +2184,16 @@ func (m *MsgUpdateParams) Size() (n int) { return n } -func (m *MsgUpdateOperatorParams) Size() (n int) { +func (m *MsgUpdateOperatorParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAllocateToVault) Size() (n int) { if m == nil { return 0 } @@ -2075,12 +2203,14 @@ func (m *MsgUpdateOperatorParams) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = m.Params.Size() + l = m.VaultId.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.QuoteQuantums.Size() n += 1 + l + sovTx(uint64(l)) return n } -func (m *MsgUpdateOperatorParamsResponse) Size() (n int) { +func (m *MsgAllocateToVaultResponse) Size() (n int) { if m == nil { return 0 } @@ -2089,7 +2219,7 @@ func (m *MsgUpdateOperatorParamsResponse) Size() (n int) { return n } -func (m *MsgAllocateToVault) Size() (n int) { +func (m *MsgRetrieveFromVault) Size() (n int) { if m == nil { return 0 } @@ -2106,7 +2236,7 @@ func (m *MsgAllocateToVault) Size() (n int) { return n } -func (m *MsgAllocateToVaultResponse) Size() (n int) { +func (m *MsgRetrieveFromVaultResponse) Size() (n int) { if m == nil { return 0 } @@ -2115,7 +2245,7 @@ func (m *MsgAllocateToVaultResponse) Size() (n int) { return n } -func (m *MsgRetrieveFromVault) Size() (n int) { +func (m *MsgUpdateParams) Size() (n int) { if m == nil { return 0 } @@ -2125,19 +2255,25 @@ func (m *MsgRetrieveFromVault) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = m.VaultId.Size() - n += 1 + l + sovTx(uint64(l)) - l = m.QuoteQuantums.Size() + l = m.Params.Size() n += 1 + l + sovTx(uint64(l)) return n } -func (m *MsgRetrieveFromVaultResponse) Size() (n int) { +func (m *MsgSetVaultQuotingParams) Size() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.VaultId.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.QuotingParams.Size() + n += 1 + l + sovTx(uint64(l)) return n } @@ -3141,7 +3277,7 @@ func (m *MsgUnlockSharesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateOperatorParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3164,10 +3300,10 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateOperatorParams: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateOperatorParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3256,7 +3392,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateOperatorParams) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateOperatorParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3279,10 +3415,60 @@ func (m *MsgUpdateOperatorParams) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateOperatorParams: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateOperatorParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateOperatorParams: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateOperatorParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAllocateToVault) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAllocateToVault: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAllocateToVault: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3319,7 +3505,7 @@ func (m *MsgUpdateOperatorParams) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VaultId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3346,7 +3532,40 @@ func (m *MsgUpdateOperatorParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.VaultId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QuoteQuantums", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.QuoteQuantums.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3371,7 +3590,7 @@ func (m *MsgUpdateOperatorParams) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateOperatorParamsResponse) Unmarshal(dAtA []byte) error { +func (m *MsgAllocateToVaultResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3394,10 +3613,10 @@ func (m *MsgUpdateOperatorParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateOperatorParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgAllocateToVaultResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateOperatorParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgAllocateToVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3421,7 +3640,7 @@ func (m *MsgUpdateOperatorParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAllocateToVault) Unmarshal(dAtA []byte) error { +func (m *MsgRetrieveFromVault) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3444,10 +3663,10 @@ func (m *MsgAllocateToVault) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAllocateToVault: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRetrieveFromVault: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAllocateToVault: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRetrieveFromVault: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3569,7 +3788,7 @@ func (m *MsgAllocateToVault) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAllocateToVaultResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRetrieveFromVaultResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3592,10 +3811,10 @@ func (m *MsgAllocateToVaultResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAllocateToVaultResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRetrieveFromVaultResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAllocateToVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRetrieveFromVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3619,7 +3838,7 @@ func (m *MsgAllocateToVaultResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRetrieveFromVault) Unmarshal(dAtA []byte) error { +func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3642,10 +3861,10 @@ func (m *MsgRetrieveFromVault) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRetrieveFromVault: wiretype end group for non-group") + return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRetrieveFromVault: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3682,7 +3901,7 @@ func (m *MsgRetrieveFromVault) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3709,40 +3928,7 @@ func (m *MsgRetrieveFromVault) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.VaultId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QuoteQuantums", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.QuoteQuantums.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3767,7 +3953,7 @@ func (m *MsgRetrieveFromVault) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRetrieveFromVaultResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetVaultQuotingParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3790,12 +3976,110 @@ func (m *MsgRetrieveFromVaultResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRetrieveFromVaultResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetVaultQuotingParams: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRetrieveFromVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetVaultQuotingParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.VaultId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QuotingParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.QuotingParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])