diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5c034482..5f5370251 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: # helper functions extract_txhash() { awk -F 'txhash: ' '/txhash:/{print $2; exit}'; } extract_proposal_id() { awk -F 'key: proposal_id|value: ' '/key: proposal_id/ { getline; gsub(/"/, "", $2); print $2; exit }'; } - extract_and_calc_upgrade_height() { awk -F'"latest_block_height":"' '{ split($2,a,"\""); print a[1]+15000; exit }'; } + extract_and_calc_upgrade_height() { awk -F'"latest_block_height":"' '{ split($2,a,"\""); print a[1]+900; exit }'; } extract_checksum() { awk "/elysd-${{ github.ref_name }}-linux-amd64.tar.gz/ {print \$1; exit}"; } # environment variables diff --git a/go.mod b/go.mod index 10163e257..34f553328 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( cosmossdk.io/x/tx v0.13.5 cosmossdk.io/x/upgrade v0.1.4 github.com/CosmWasm/wasmd v0.53.0 - github.com/CosmWasm/wasmvm/v2 v2.1.3 + github.com/CosmWasm/wasmvm/v2 v2.1.3 // indirect github.com/bandprotocol/bandchain-packet v0.0.2 github.com/cometbft/cometbft v0.38.12 // not using v0.38.11 due to vulnerabiltiy https://osv.dev/vulnerability/GHSA-g5xx-c4hv-9ccc https://osv.dev/vulnerability/GO-2024-3112 github.com/cometbft/cometbft-db v0.12.0 // indirect diff --git a/proto/elys/clock/v1/genesis.proto b/proto/elys/clock/v1/genesis.proto deleted file mode 100644 index 0931fa457..000000000 --- a/proto/elys/clock/v1/genesis.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; -package elys.clock.v1; - -import "gogoproto/gogo.proto"; -import "cosmos/base/v1beta1/coin.proto"; -import "elys/clock/v1/params.proto"; - -option go_package = "github.com/elys-network/elys/x/clock/types"; - -// GenesisState - initial state of module -message GenesisState { - // Params of this module - Params params = 1 [ (gogoproto.nullable) = false ]; -} diff --git a/proto/elys/clock/v1/params.proto b/proto/elys/clock/v1/params.proto deleted file mode 100644 index 828e7da59..000000000 --- a/proto/elys/clock/v1/params.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; -package elys.clock.v1; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/elys-network/elys/x/clock/types"; - -// Params defines the set of module parameters. -message Params { - // contract_addresses stores the list of executable contracts to be ticked on - // every block. - repeated string contract_addresses = 1; - uint64 contract_gas_limit = 2; -} diff --git a/proto/elys/clock/v1/query.proto b/proto/elys/clock/v1/query.proto deleted file mode 100644 index d4c63dd5f..000000000 --- a/proto/elys/clock/v1/query.proto +++ /dev/null @@ -1,36 +0,0 @@ -syntax = "proto3"; -package elys.clock.v1; - -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; -import "elys/clock/v1/genesis.proto"; -import "elys/clock/v1/params.proto"; - -option go_package = "github.com/elys-network/elys/x/clock/types"; - -// Query defines the gRPC querier service. -service Query { - // ClockContracts - rpc ClockContracts(QueryClockContracts) - returns (QueryClockContractsResponse) { - option (google.api.http).get = "/elys/clock/v1/contracts"; - } - // Params - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/elys/clock/v1/params"; - } -} - -// QueryClockContracts is the request type to get all contracts. -message QueryClockContracts {} - -// QueryClockContractsResponse is the response type for the Query/ClockContracts -// RPC method. -message QueryClockContractsResponse { repeated string contract_addresses = 1; } - -// QueryParams is the request type to get all module params. -message QueryParamsRequest {} - -// QueryClockContractsResponse is the response type for the Query/ClockContracts -// RPC method. -message QueryParamsResponse { Params params = 1; } diff --git a/proto/elys/clock/v1/tx.proto b/proto/elys/clock/v1/tx.proto deleted file mode 100644 index 39a1d1f05..000000000 --- a/proto/elys/clock/v1/tx.proto +++ /dev/null @@ -1,43 +0,0 @@ -syntax = "proto3"; -package elys.clock.v1; - -option go_package = "github.com/elys-network/elys/x/clock/types"; - -import "cosmos/msg/v1/msg.proto"; -import "elys/clock/v1/genesis.proto"; -import "elys/clock/v1/params.proto"; -import "gogoproto/gogo.proto"; -import "cosmos_proto/cosmos.proto"; -import "amino/amino.proto"; - -// Msg defines the Msg service. -service Msg { - option (cosmos.msg.v1.service) = true; - // UpdateParams defines a governance operation for updating the x/clock module - // parameters. The authority is hard-coded to the x/gov module account. - // - // Since: cosmos-sdk 0.47 - rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); -} - -// MsgUpdateParams is the Msg/UpdateParams request type. -// -// Since: cosmos-sdk 0.47 -message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "clock/MsgUpdateParams"; - - // authority is the address of the governance account. - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - - // params defines the x/clock parameters to update. - // - // NOTE: All parameters must be supplied. - Params params = 2 [ (gogoproto.nullable) = false ]; -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -// -// Since: cosmos-sdk 0.47 -message MsgUpdateParamsResponse {} diff --git a/proto/elys/tradeshield/order.proto b/proto/elys/tradeshield/order.proto new file mode 100644 index 000000000..1b530c0c5 --- /dev/null +++ b/proto/elys/tradeshield/order.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +package elys.tradeshield; + +import "gogoproto/gogo.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "cosmos_proto/cosmos.proto"; + +option go_package = "github.com/elys-network/elys/x/tradeshield/types"; + +message OrderPrice { + string base_denom = 1; + string quote_denom = 2; + string rate = 3 [ + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; +} + +// Spot order +enum SpotOrderType { + STOPLOSS = 0; + LIMITSELL = 1; + LIMITBUY = 2; + MARKETBUY = 3; +} + +message TriggerPrice { + string trading_asset_denom = 1; + string rate = 3 [ + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; +} + +enum PerpetualPosition { + UNSPECIFIED = 0; + LONG = 1; + SHORT = 2; +} diff --git a/proto/elys/tradeshield/tx.proto b/proto/elys/tradeshield/tx.proto index d4a3c1555..727c40620 100644 --- a/proto/elys/tradeshield/tx.proto +++ b/proto/elys/tradeshield/tx.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package elys.tradeshield; import "gogoproto/gogo.proto"; -import "elys/tradeshield/types.proto"; +import "elys/tradeshield/order.proto"; import "elys/tradeshield/params.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/msg/v1/msg.proto"; @@ -33,9 +33,10 @@ service Msg { rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); rpc ExecuteOrders(MsgExecuteOrders) returns (MsgExecuteOrdersResponse); } + message MsgCreateSpotOrder { option (cosmos.msg.v1.signer) = "owner_address"; - option (amino.name) = "tradeshield/MsgCreatePendingSpotOrder"; + option (amino.name) = "tradeshield/MsgCreateSpotOrder"; SpotOrderType order_type = 1; OrderPrice order_price = 2; cosmos.base.v1beta1.Coin order_amount = 3; @@ -47,7 +48,7 @@ message MsgCreateSpotOrderResponse { uint64 order_id = 1; } message MsgUpdateSpotOrder { option (cosmos.msg.v1.signer) = "owner_address"; - option (amino.name) = "tradeshield/MsgUpdatePendingSpotOrder"; + option (amino.name) = "tradeshield/MsgUpdateSpotOrder"; string owner_address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; uint64 order_id = 2; OrderPrice order_price = 3; @@ -57,7 +58,7 @@ message MsgUpdateSpotOrderResponse {} message MsgCancelSpotOrder { option (cosmos.msg.v1.signer) = "owner_address"; - option (amino.name) = "tradeshield/MsgCancelPerpetualOrders"; + option (amino.name) = "tradeshield/MsgCancelSpotOrder"; string owner_address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; uint64 order_id = 2; } @@ -66,7 +67,7 @@ message MsgCancelSpotOrderResponse { uint64 order_id = 1; } message MsgCancelSpotOrders { option (cosmos.msg.v1.signer) = "creator"; - option (amino.name) = "tradeshield/MsgCancelPerpetualOrders"; + option (amino.name) = "tradeshield/MsgCancelSpotOrders"; string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; repeated uint64 spot_order_ids = 2; } @@ -75,7 +76,7 @@ message MsgCancelSpotOrdersResponse {} message MsgCreatePerpetualOpenOrder { option (cosmos.msg.v1.signer) = "owner_address"; - option (amino.name) = "tradeshield/MsgCancelPerpetualOrders"; + option (amino.name) = "tradeshield/MsgCreatePerpetualOpenOrder"; string owner_address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; TriggerPrice trigger_price = 2; cosmos.base.v1beta1.Coin collateral = 3 [ (gogoproto.nullable) = false ]; @@ -100,7 +101,7 @@ message MsgCreatePerpetualOpenOrderResponse { uint64 order_id = 1; } message MsgCreatePerpetualCloseOrder { option (cosmos.msg.v1.signer) = "owner_address"; - option (amino.name) = "tradeshield/MsgCancelPerpetualOrders"; + option (amino.name) = "tradeshield/CreatePerpetualCloseOrder"; string owner_address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; TriggerPrice trigger_price = 2; uint64 position_id = 3; diff --git a/proto/elys/tradeshield/types.proto b/proto/elys/tradeshield/types.proto index 2b6d06575..b8f6d89b4 100644 --- a/proto/elys/tradeshield/types.proto +++ b/proto/elys/tradeshield/types.proto @@ -6,14 +6,7 @@ option go_package = "github.com/elys-network/elys/x/tradeshield/types"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; - -// Spot order -enum SpotOrderType { - STOPLOSS = 0; - LIMITSELL = 1; - LIMITBUY = 2; - MARKETBUY = 3; -} +import "elys/tradeshield/order.proto"; enum Status { PENDING = 0; @@ -22,23 +15,6 @@ enum Status { ALL = 3; } -message OrderPrice { - string base_denom = 1; - string quote_denom = 2; - string rate = 3 [ - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", - (gogoproto.nullable) = false - ]; -} - -message TriggerPrice { - string trading_asset_denom = 1; - string rate = 3 [ - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", - (gogoproto.nullable) = false - ]; -} - message Date { uint64 height = 1; uint64 timestamp = 2; @@ -63,12 +39,6 @@ enum PerpetualOrderType { STOPLOSSPERP = 2; } -enum PerpetualPosition { - UNSPECIFIED = 0; - LONG = 1; - SHORT = 2; -} - message LegacyPerpetualOrder { uint64 order_id = 1; string owner_address = 2; diff --git a/x/tradeshield/types/order.pb.go b/x/tradeshield/types/order.pb.go new file mode 100644 index 000000000..b93a13b86 --- /dev/null +++ b/x/tradeshield/types/order.pb.go @@ -0,0 +1,712 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: elys/tradeshield/order.proto + +package types + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Spot order +type SpotOrderType int32 + +const ( + SpotOrderType_STOPLOSS SpotOrderType = 0 + SpotOrderType_LIMITSELL SpotOrderType = 1 + SpotOrderType_LIMITBUY SpotOrderType = 2 + SpotOrderType_MARKETBUY SpotOrderType = 3 +) + +var SpotOrderType_name = map[int32]string{ + 0: "STOPLOSS", + 1: "LIMITSELL", + 2: "LIMITBUY", + 3: "MARKETBUY", +} + +var SpotOrderType_value = map[string]int32{ + "STOPLOSS": 0, + "LIMITSELL": 1, + "LIMITBUY": 2, + "MARKETBUY": 3, +} + +func (x SpotOrderType) String() string { + return proto.EnumName(SpotOrderType_name, int32(x)) +} + +func (SpotOrderType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b257e09947c1671a, []int{0} +} + +type PerpetualPosition int32 + +const ( + PerpetualPosition_UNSPECIFIED PerpetualPosition = 0 + PerpetualPosition_LONG PerpetualPosition = 1 + PerpetualPosition_SHORT PerpetualPosition = 2 +) + +var PerpetualPosition_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "LONG", + 2: "SHORT", +} + +var PerpetualPosition_value = map[string]int32{ + "UNSPECIFIED": 0, + "LONG": 1, + "SHORT": 2, +} + +func (x PerpetualPosition) String() string { + return proto.EnumName(PerpetualPosition_name, int32(x)) +} + +func (PerpetualPosition) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b257e09947c1671a, []int{1} +} + +type OrderPrice struct { + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + QuoteDenom string `protobuf:"bytes,2,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"` + Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` +} + +func (m *OrderPrice) Reset() { *m = OrderPrice{} } +func (m *OrderPrice) String() string { return proto.CompactTextString(m) } +func (*OrderPrice) ProtoMessage() {} +func (*OrderPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_b257e09947c1671a, []int{0} +} +func (m *OrderPrice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OrderPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OrderPrice.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 *OrderPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_OrderPrice.Merge(m, src) +} +func (m *OrderPrice) XXX_Size() int { + return m.Size() +} +func (m *OrderPrice) XXX_DiscardUnknown() { + xxx_messageInfo_OrderPrice.DiscardUnknown(m) +} + +var xxx_messageInfo_OrderPrice proto.InternalMessageInfo + +func (m *OrderPrice) GetBaseDenom() string { + if m != nil { + return m.BaseDenom + } + return "" +} + +func (m *OrderPrice) GetQuoteDenom() string { + if m != nil { + return m.QuoteDenom + } + return "" +} + +type TriggerPrice struct { + TradingAssetDenom string `protobuf:"bytes,1,opt,name=trading_asset_denom,json=tradingAssetDenom,proto3" json:"trading_asset_denom,omitempty"` + Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` +} + +func (m *TriggerPrice) Reset() { *m = TriggerPrice{} } +func (m *TriggerPrice) String() string { return proto.CompactTextString(m) } +func (*TriggerPrice) ProtoMessage() {} +func (*TriggerPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_b257e09947c1671a, []int{1} +} +func (m *TriggerPrice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TriggerPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TriggerPrice.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 *TriggerPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_TriggerPrice.Merge(m, src) +} +func (m *TriggerPrice) XXX_Size() int { + return m.Size() +} +func (m *TriggerPrice) XXX_DiscardUnknown() { + xxx_messageInfo_TriggerPrice.DiscardUnknown(m) +} + +var xxx_messageInfo_TriggerPrice proto.InternalMessageInfo + +func (m *TriggerPrice) GetTradingAssetDenom() string { + if m != nil { + return m.TradingAssetDenom + } + return "" +} + +func init() { + proto.RegisterEnum("elys.tradeshield.SpotOrderType", SpotOrderType_name, SpotOrderType_value) + proto.RegisterEnum("elys.tradeshield.PerpetualPosition", PerpetualPosition_name, PerpetualPosition_value) + proto.RegisterType((*OrderPrice)(nil), "elys.tradeshield.OrderPrice") + proto.RegisterType((*TriggerPrice)(nil), "elys.tradeshield.TriggerPrice") +} + +func init() { proto.RegisterFile("elys/tradeshield/order.proto", fileDescriptor_b257e09947c1671a) } + +var fileDescriptor_b257e09947c1671a = []byte{ + // 422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xed, 0xb4, 0xa0, 0x66, 0xda, 0x0a, 0xd7, 0x70, 0x28, 0x05, 0x1c, 0x54, 0x2e, 0xa8, + 0x12, 0x5e, 0x2a, 0x0e, 0x88, 0x63, 0x43, 0x02, 0x18, 0xdc, 0xda, 0x8a, 0xdd, 0x03, 0x5c, 0x22, + 0xc7, 0x1e, 0x39, 0xab, 0x26, 0x1e, 0xb3, 0xbb, 0xa1, 0xf8, 0x01, 0xb8, 0xf3, 0x58, 0x3d, 0xf6, + 0x88, 0x38, 0x54, 0x28, 0x79, 0x11, 0xb4, 0xeb, 0x56, 0xa2, 0x67, 0x6e, 0xfe, 0xff, 0x6f, 0xc6, + 0xff, 0xec, 0xee, 0xc0, 0x63, 0x9c, 0x35, 0x92, 0x29, 0x91, 0x15, 0x28, 0xa7, 0x1c, 0x67, 0x05, + 0x23, 0x51, 0xa0, 0xf0, 0x6b, 0x41, 0x8a, 0x5c, 0x47, 0x53, 0xff, 0x1f, 0xba, 0xf7, 0xa0, 0xa4, + 0x92, 0x0c, 0x64, 0xfa, 0xab, 0xad, 0xdb, 0xf3, 0x72, 0x92, 0x73, 0x92, 0x6c, 0x92, 0x49, 0x64, + 0xdf, 0x0e, 0x27, 0xa8, 0xb2, 0x43, 0x96, 0x13, 0xaf, 0xae, 0xf9, 0xc3, 0x96, 0x8f, 0xdb, 0xc6, + 0x56, 0xb4, 0x68, 0xff, 0x87, 0x0d, 0x10, 0xe9, 0xc8, 0x58, 0xf0, 0x1c, 0xdd, 0x27, 0x00, 0xfa, + 0x27, 0xe3, 0x02, 0x2b, 0x9a, 0xef, 0xda, 0x4f, 0xed, 0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 0x4a, 0x9d, + 0x4e, 0xff, 0xe3, 0xc5, 0xd2, 0xb3, 0x2f, 0x97, 0x9e, 0xfd, 0x67, 0xe9, 0xd9, 0x3f, 0x57, 0x9e, + 0x75, 0xb9, 0xf2, 0xac, 0x5f, 0x2b, 0xcf, 0xfa, 0xf2, 0xb2, 0xe4, 0x6a, 0xba, 0x98, 0xf8, 0x39, + 0xcd, 0x99, 0x5e, 0x87, 0x17, 0x15, 0xaa, 0x73, 0x12, 0x67, 0x46, 0xb0, 0xef, 0xb7, 0x76, 0x47, + 0x35, 0x35, 0xca, 0xc9, 0x5d, 0xf3, 0xb2, 0xaf, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xb7, 0xa2, + 0x9c, 0x9a, 0x5c, 0x02, 0x00, 0x00, +} + +func (m *OrderPrice) 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 *OrderPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OrderPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Rate.Size() + i -= size + if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOrder(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.QuoteDenom) > 0 { + i -= len(m.QuoteDenom) + copy(dAtA[i:], m.QuoteDenom) + i = encodeVarintOrder(dAtA, i, uint64(len(m.QuoteDenom))) + i-- + dAtA[i] = 0x12 + } + if len(m.BaseDenom) > 0 { + i -= len(m.BaseDenom) + copy(dAtA[i:], m.BaseDenom) + i = encodeVarintOrder(dAtA, i, uint64(len(m.BaseDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TriggerPrice) 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 *TriggerPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TriggerPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Rate.Size() + i -= size + if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOrder(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.TradingAssetDenom) > 0 { + i -= len(m.TradingAssetDenom) + copy(dAtA[i:], m.TradingAssetDenom) + i = encodeVarintOrder(dAtA, i, uint64(len(m.TradingAssetDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrder(dAtA []byte, offset int, v uint64) int { + offset -= sovOrder(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OrderPrice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BaseDenom) + if l > 0 { + n += 1 + l + sovOrder(uint64(l)) + } + l = len(m.QuoteDenom) + if l > 0 { + n += 1 + l + sovOrder(uint64(l)) + } + l = m.Rate.Size() + n += 1 + l + sovOrder(uint64(l)) + return n +} + +func (m *TriggerPrice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TradingAssetDenom) + if l > 0 { + n += 1 + l + sovOrder(uint64(l)) + } + l = m.Rate.Size() + n += 1 + l + sovOrder(uint64(l)) + return n +} + +func sovOrder(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrder(x uint64) (n int) { + return sovOrder(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OrderPrice) 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 ErrIntOverflowOrder + } + 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: OrderPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OrderPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrder + } + 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 ErrInvalidLengthOrder + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrder + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QuoteDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrder + } + 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 ErrInvalidLengthOrder + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrder + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QuoteDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrder + } + 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 ErrInvalidLengthOrder + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrder + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrder(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrder + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TriggerPrice) 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 ErrIntOverflowOrder + } + 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: TriggerPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TriggerPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradingAssetDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrder + } + 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 ErrInvalidLengthOrder + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrder + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TradingAssetDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrder + } + 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 ErrInvalidLengthOrder + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrder + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrder(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrder + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrder(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowOrder + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowOrder + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowOrder + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthOrder + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrder + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrder + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrder = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrder = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrder = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tradeshield/types/tx.pb.go b/x/tradeshield/types/tx.pb.go index 4fda559ee..7f87edf72 100644 --- a/x/tradeshield/types/tx.pb.go +++ b/x/tradeshield/types/tx.pb.go @@ -1163,85 +1163,86 @@ func init() { func init() { proto.RegisterFile("elys/tradeshield/tx.proto", fileDescriptor_0534a5eaf85a8c0b) } var fileDescriptor_0534a5eaf85a8c0b = []byte{ - // 1240 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4d, 0x4f, 0xdc, 0x46, - 0x18, 0xc6, 0x2c, 0x01, 0xf6, 0x0d, 0x04, 0x70, 0xa8, 0xd8, 0x35, 0x64, 0x21, 0x0b, 0x91, 0x00, - 0x05, 0x6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, 0xcf, 0x4a, 0x3c, 0xea, 0x85, 0xa9, - 0x64, 0x88, 0xf5, 0x36, 0x26, 0xe8, 0xff, 0x33, 0x85, 0xa7, 0xe1, 0xa6, 0x3f, 0x4f, 0x18, 0x85, - 0x02, 0xa7, 0x00, 0xfe, 0xd0, 0x55, 0x45, 0x5c, 0x85, 0xb9, 0x6e, 0x0a, 0xe4, 0x51, 0xf1, 0x4f, - 0x09, 0x26, 0x42, 0x5b, 0x7e, 0x38, 0xfe, 0x35, 0x9e, 0x63, 0x09, 0x6d, 0x0b, 0x97, 0xd7, 0xb6, - 0xd1, 0x48, 0x97, 0x6e, 0x36, 0xe3, 0x34, 0x0b, 0x53, 0xab, 0xde, 0x85, 0xe9, 0x0c, 0x53, 0xb0, - 0x43, 0xfe, 0x28, 0x94, 0x49, 0x53, 0xfe, 0x1a, 0x4f, 0xb5, 0x9c, 0xa4, 0xd2, 0xaa, 0xaa, 0xae, - 0x70, 0x52, 0x69, 0xa6, 0x3c, 0x33, 0xe1, 0x27, 0x09, 0x4a, 0x59, 0x33, 0xed, 0xaa, 0x84, 0x27, - 0xa1, 0x18, 0x3f, 0xe4, 0x06, 0xb1, 0x7f, 0xc0, 0x5d, 0x69, 0x09, 0x54, 0x61, 0x26, 0xcb, 0x16, - 0xbe, 0x9a, 0x8c, 0x9c, 0x77, 0x9b, 0xdf, 0xef, 0xe5, 0x47, 0x50, 0xd4, 0x77, 0xe9, 0x36, 0x76, - 0x2d, 0x7a, 0x78, 0x21, 0x99, 0x73, 0xa8, 0xfc, 0x00, 0xfa, 0xc5, 0x2f, 0x04, 0x6f, 0x3b, 0x28, - 0xa5, 0x9c, 0x15, 0xdc, 0xae, 0x79, 0xb8, 0x86, 0xca, 0xe8, 0x9d, 0x47, 0x60, 0xd4, 0x26, 0xd3, - 0xa7, 0x28, 0xc7, 0x57, 0xcb, 0xe1, 0x05, 0x29, 0x42, 0xf9, 0x44, 0x7e, 0x91, 0x60, 0x74, 0x83, - 0x98, 0x9f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, 0x24, 0xfe, 0x12, 0x86, 0x22, 0x7b, 0xf8, - 0xdd, 0x6e, 0x8a, 0x71, 0x88, 0xb2, 0x70, 0x21, 0x24, 0x88, 0xde, 0x84, 0xe1, 0xe8, 0xc6, 0x5a, - 0x4d, 0xf5, 0x8d, 0x60, 0x94, 0xc5, 0x8b, 0x31, 0x7e, 0x02, 0xe5, 0xc6, 0xd1, 0xd9, 0xf1, 0xa2, - 0xb4, 0xf6, 0xe9, 0xeb, 0x93, 0x8a, 0xf4, 0xe6, 0xa4, 0x22, 0xfd, 0x7e, 0x52, 0x91, 0xbe, 0x3b, - 0xad, 0xf4, 0xbc, 0x39, 0xad, 0xf4, 0xbc, 0x3d, 0xad, 0xf4, 0x7c, 0xf1, 0xc0, 0xb4, 0xe8, 0xf6, - 0xee, 0x96, 0xda, 0xc2, 0x9d, 0x1a, 0x0b, 0xbb, 0x64, 0x23, 0xba, 0x8f, 0xdd, 0x1d, 0xfe, 0x52, - 0x3b, 0x48, 0x7e, 0xc4, 0xda, 0xea, 0xe7, 0xdf, 0x8f, 0xde, 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, - 0x56, 0xf2, 0x10, 0x65, 0x28, 0x13, 0x00, 0x00, + // 1262 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4d, 0x4f, 0x1b, 0xc7, + 0x1b, 0x67, 0x31, 0x01, 0xfc, 0x04, 0x02, 0xd9, 0xe4, 0x2f, 0xec, 0x85, 0xd8, 0x64, 0x21, 0xfa, + 0x03, 0x0a, 0x6b, 0x70, 0x95, 0x54, 0x72, 0x49, 0x52, 0x20, 0x3d, 0xd0, 0x06, 0x81, 0x36, 0xe9, + 0xa5, 0xaa, 0x64, 0x2d, 0xde, 0xe9, 0xb2, 0xc2, 0xde, 0x59, 0xed, 0x0c, 0x2f, 0xbe, 0xd1, 0xf6, + 0xd6, 0x53, 0xbf, 0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, 0x7f, 0x29, 0x24, 0x8c, 0x5e, 0x87, 0xd1, + 0xe8, 0xc1, 0xaa, 0xa6, 0xfa, 0x46, 0x30, 0xca, 0xc2, 0xe5, 0x98, 0x20, 0x81, 0x72, 0xed, 0xf8, + 0xfc, 0x64, 0x41, 0x5a, 0xfb, 0xf8, 0xe5, 0x69, 0x49, 0x7a, 0x75, 0x5a, 0x92, 0x7e, 0x3f, 0x2d, + 0x49, 0xdf, 0x9e, 0x95, 0xfa, 0x5e, 0x9d, 0x95, 0xfa, 0x5e, 0x9f, 0x95, 0xfa, 0x3e, 0x5b, 0xb2, + 0x6c, 0xba, 0xbb, 0xbf, 0xa3, 0x35, 0x70, 0xab, 0xc2, 0xc2, 0x2e, 0x3a, 0x88, 0x1e, 0x62, 0x6f, + 0x8f, 0x3f, 0x54, 0x8e, 0xa2, 0x3f, 0x79, 0xb5, 0x5d, 0x44, 0x76, 0x06, 0xf9, 0x4f, 0x45, 0xef, + 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x53, 0x85, 0x2c, 0x13, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/tradeshield/types/types.pb.go b/x/tradeshield/types/types.pb.go index 06c9d1f20..60a2c20a8 100644 --- a/x/tradeshield/types/types.pb.go +++ b/x/tradeshield/types/types.pb.go @@ -25,38 +25,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// Spot order -type SpotOrderType int32 - -const ( - SpotOrderType_STOPLOSS SpotOrderType = 0 - SpotOrderType_LIMITSELL SpotOrderType = 1 - SpotOrderType_LIMITBUY SpotOrderType = 2 - SpotOrderType_MARKETBUY SpotOrderType = 3 -) - -var SpotOrderType_name = map[int32]string{ - 0: "STOPLOSS", - 1: "LIMITSELL", - 2: "LIMITBUY", - 3: "MARKETBUY", -} - -var SpotOrderType_value = map[string]int32{ - "STOPLOSS": 0, - "LIMITSELL": 1, - "LIMITBUY": 2, - "MARKETBUY": 3, -} - -func (x SpotOrderType) String() string { - return proto.EnumName(SpotOrderType_name, int32(x)) -} - -func (SpotOrderType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{0} -} - type Status int32 const ( @@ -85,7 +53,7 @@ func (x Status) String() string { } func (Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{1} + return fileDescriptor_f02c7f96dfee8f75, []int{0} } // Perpetual Order @@ -114,134 +82,8 @@ func (x PerpetualOrderType) String() string { } func (PerpetualOrderType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{2} -} - -type PerpetualPosition int32 - -const ( - PerpetualPosition_UNSPECIFIED PerpetualPosition = 0 - PerpetualPosition_LONG PerpetualPosition = 1 - PerpetualPosition_SHORT PerpetualPosition = 2 -) - -var PerpetualPosition_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "LONG", - 2: "SHORT", -} - -var PerpetualPosition_value = map[string]int32{ - "UNSPECIFIED": 0, - "LONG": 1, - "SHORT": 2, -} - -func (x PerpetualPosition) String() string { - return proto.EnumName(PerpetualPosition_name, int32(x)) -} - -func (PerpetualPosition) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{3} -} - -type OrderPrice struct { - BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` - QuoteDenom string `protobuf:"bytes,2,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty"` - Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` -} - -func (m *OrderPrice) Reset() { *m = OrderPrice{} } -func (m *OrderPrice) String() string { return proto.CompactTextString(m) } -func (*OrderPrice) ProtoMessage() {} -func (*OrderPrice) Descriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{0} -} -func (m *OrderPrice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OrderPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OrderPrice.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 *OrderPrice) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrderPrice.Merge(m, src) -} -func (m *OrderPrice) XXX_Size() int { - return m.Size() -} -func (m *OrderPrice) XXX_DiscardUnknown() { - xxx_messageInfo_OrderPrice.DiscardUnknown(m) -} - -var xxx_messageInfo_OrderPrice proto.InternalMessageInfo - -func (m *OrderPrice) GetBaseDenom() string { - if m != nil { - return m.BaseDenom - } - return "" -} - -func (m *OrderPrice) GetQuoteDenom() string { - if m != nil { - return m.QuoteDenom - } - return "" -} - -type TriggerPrice struct { - TradingAssetDenom string `protobuf:"bytes,1,opt,name=trading_asset_denom,json=tradingAssetDenom,proto3" json:"trading_asset_denom,omitempty"` - Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` -} - -func (m *TriggerPrice) Reset() { *m = TriggerPrice{} } -func (m *TriggerPrice) String() string { return proto.CompactTextString(m) } -func (*TriggerPrice) ProtoMessage() {} -func (*TriggerPrice) Descriptor() ([]byte, []int) { return fileDescriptor_f02c7f96dfee8f75, []int{1} } -func (m *TriggerPrice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TriggerPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TriggerPrice.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 *TriggerPrice) XXX_Merge(src proto.Message) { - xxx_messageInfo_TriggerPrice.Merge(m, src) -} -func (m *TriggerPrice) XXX_Size() int { - return m.Size() -} -func (m *TriggerPrice) XXX_DiscardUnknown() { - xxx_messageInfo_TriggerPrice.DiscardUnknown(m) -} - -var xxx_messageInfo_TriggerPrice proto.InternalMessageInfo - -func (m *TriggerPrice) GetTradingAssetDenom() string { - if m != nil { - return m.TradingAssetDenom - } - return "" -} type Date struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` @@ -252,7 +94,7 @@ func (m *Date) Reset() { *m = Date{} } func (m *Date) String() string { return proto.CompactTextString(m) } func (*Date) ProtoMessage() {} func (*Date) Descriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{2} + return fileDescriptor_f02c7f96dfee8f75, []int{0} } func (m *Date) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -310,7 +152,7 @@ func (m *SpotOrder) Reset() { *m = SpotOrder{} } func (m *SpotOrder) String() string { return proto.CompactTextString(m) } func (*SpotOrder) ProtoMessage() {} func (*SpotOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{3} + return fileDescriptor_f02c7f96dfee8f75, []int{1} } func (m *SpotOrder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -418,7 +260,7 @@ func (m *LegacyPerpetualOrder) Reset() { *m = LegacyPerpetualOrder{} } func (m *LegacyPerpetualOrder) String() string { return proto.CompactTextString(m) } func (*LegacyPerpetualOrder) ProtoMessage() {} func (*LegacyPerpetualOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{4} + return fileDescriptor_f02c7f96dfee8f75, []int{2} } func (m *LegacyPerpetualOrder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -537,7 +379,7 @@ func (m *PerpetualOrder) Reset() { *m = PerpetualOrder{} } func (m *PerpetualOrder) String() string { return proto.CompactTextString(m) } func (*PerpetualOrder) ProtoMessage() {} func (*PerpetualOrder) Descriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{5} + return fileDescriptor_f02c7f96dfee8f75, []int{3} } func (m *PerpetualOrder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -648,7 +490,7 @@ func (m *PerpetualOrderExtraInfo) Reset() { *m = PerpetualOrderExtraInfo func (m *PerpetualOrderExtraInfo) String() string { return proto.CompactTextString(m) } func (*PerpetualOrderExtraInfo) ProtoMessage() {} func (*PerpetualOrderExtraInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_f02c7f96dfee8f75, []int{6} + return fileDescriptor_f02c7f96dfee8f75, []int{4} } func (m *PerpetualOrderExtraInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -692,12 +534,8 @@ func (m *PerpetualOrderExtraInfo) GetPositionSize() types.Coin { } func init() { - proto.RegisterEnum("elys.tradeshield.SpotOrderType", SpotOrderType_name, SpotOrderType_value) proto.RegisterEnum("elys.tradeshield.Status", Status_name, Status_value) proto.RegisterEnum("elys.tradeshield.PerpetualOrderType", PerpetualOrderType_name, PerpetualOrderType_value) - proto.RegisterEnum("elys.tradeshield.PerpetualPosition", PerpetualPosition_name, PerpetualPosition_value) - proto.RegisterType((*OrderPrice)(nil), "elys.tradeshield.OrderPrice") - proto.RegisterType((*TriggerPrice)(nil), "elys.tradeshield.TriggerPrice") proto.RegisterType((*Date)(nil), "elys.tradeshield.Date") proto.RegisterType((*SpotOrder)(nil), "elys.tradeshield.SpotOrder") proto.RegisterType((*LegacyPerpetualOrder)(nil), "elys.tradeshield.LegacyPerpetualOrder") @@ -708,161 +546,66 @@ func init() { func init() { proto.RegisterFile("elys/tradeshield/types.proto", fileDescriptor_f02c7f96dfee8f75) } var fileDescriptor_f02c7f96dfee8f75 = []byte{ - // 1066 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0xaf, 0x38,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, 0x43, 0x80, 0x11, 0xf1, 0x3c, 0x9b, 0xe1, 0xd0, 0xf6, - 0x04, 0x71, 0x09, 0x74, 0xb2, 0x04, 0xe1, 0x1d, 0x5c, 0x99, 0x5c, 0x41, 0x6d, 0x91, 0xbf, 0x72, - 0x3d, 0xb3, 0xbc, 0x52, 0x0f, 0x3f, 0xc7, 0xa1, 0x3d, 0x96, 0x54, 0x26, 0x1c, 0xd9, 0x05, 0x08, - 0xf5, 0x60, 0x93, 0xd9, 0xa7, 0x78, 0x18, 0x84, 0xe4, 0xc4, 0x65, 0x51, 0xb5, 0xc5, 0xe4, 0x91, - 0x36, 0x38, 0xda, 0x14, 0x60, 0x59, 0xf7, 0x2e, 0x94, 0xe6, 0x6d, 0xe4, 0xb2, 0x00, 0x21, 0x0b, - 0x98, 0x5f, 0xe9, 0xce, 0x92, 0x56, 0x4b, 0x09, 0xb5, 0xfa, 0x04, 0x36, 0x28, 0x23, 0xc1, 0xd0, - 0x23, 0x94, 0x46, 0x19, 0x96, 0x93, 0x67, 0x58, 0xe1, 0x58, 0x83, 0x50, 0x2a, 0xf3, 0xeb, 0x40, - 0x65, 0x91, 0x1f, 0x75, 0x5f, 0xe2, 0x5a, 0x25, 0x19, 0x35, 0xe5, 0x39, 0xaa, 0xef, 0xbe, 0xc4, - 0xc8, 0x84, 0x4d, 0xcf, 0x7d, 0x36, 0x73, 0x1d, 0x5b, 0x04, 0x92, 0x49, 0x55, 0x93, 0x27, 0xa5, - 0x2c, 0xa1, 0x65, 0x5e, 0x8f, 0xa0, 0x7c, 0x32, 0xf3, 0x05, 0xdd, 0x62, 0x01, 0x6f, 0x24, 0x0f, - 0x56, 0x8a, 0x80, 0x16, 0xdf, 0xbf, 0x47, 0xb0, 0x75, 0x4c, 0xc2, 0x90, 0x9c, 0x0d, 0x5d, 0x9f, - 0xe1, 0x10, 0x53, 0x26, 0xe3, 0x29, 0xc9, 0xe3, 0x21, 0x19, 0x40, 0x8f, 0xf0, 0x3c, 0x6c,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c, 0xde, 0x33, 0xb5, 0xae, 0x92, 0x42, 0x55, 0x00, 0x71, 0x6c, 0x1b, 0xbd, 0xbe, - 0xa6, 0xa4, 0x91, 0x02, 0xe5, 0x79, 0xaa, 0xa6, 0x66, 0x99, 0x4a, 0x66, 0xff, 0x0b, 0xd8, 0x8c, - 0xed, 0x1f, 0xb4, 0x01, 0xa5, 0xa3, 0x6e, 0xdf, 0xd4, 0xda, 0xfa, 0x23, 0x5d, 0xeb, 0x28, 0x29, - 0x54, 0x80, 0x9c, 0xd1, 0xeb, 0x3e, 0x56, 0xd2, 0xa8, 0x08, 0x6b, 0xfd, 0x6f, 0x7b, 0xd6, 0x40, - 0xc9, 0x1c, 0x7e, 0xf7, 0xea, 0xb2, 0x9e, 0x7e, 0x7d, 0x59, 0x4f, 0xff, 0x75, 0x59, 0x4f, 0xff, - 0x7a, 0x55, 0x4f, 0xbd, 0xbe, 0xaa, 0xa7, 0xfe, 0xb8, 0xaa, 0xa7, 0x7e, 0xba, 0x3f, 0x76, 0xd9, - 0x64, 0x76, 0xac, 0x8e, 0xc8, 0xb4, 0xc9, 0x55, 0xf9, 0xa9, 0x8f, 0xd9, 0x19, 0x09, 0x4f, 0xc5, - 0xa1, 0xf9, 0x22, 0xfe, 0x0b, 0xe8, 0x38, 0x2f, 0x7e, 0xba, 0x7c, 0xf6, 0x77, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xf5, 0x1a, 0x6e, 0x67, 0x22, 0x0d, 0x00, 0x00, -} - -func (m *OrderPrice) 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 *OrderPrice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OrderPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Rate.Size() - i -= size - if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.QuoteDenom) > 0 { - i -= len(m.QuoteDenom) - copy(dAtA[i:], m.QuoteDenom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.QuoteDenom))) - i-- - dAtA[i] = 0x12 - } - if len(m.BaseDenom) > 0 { - i -= len(m.BaseDenom) - copy(dAtA[i:], m.BaseDenom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.BaseDenom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TriggerPrice) 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 *TriggerPrice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TriggerPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Rate.Size() - i -= size - if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.TradingAssetDenom) > 0 { - i -= len(m.TradingAssetDenom) - copy(dAtA[i:], m.TradingAssetDenom) - i = encodeVarintTypes(dAtA, i, uint64(len(m.TradingAssetDenom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + // 937 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0x8f, 0x9b, 0x34, 0x6d, 0x5e, 0xfe, 0xd4, 0x3b, 0xaa, 0x8a, 0x77, 0xa9, 0xd2, 0xaa, 0xe5, + 0x50, 0x55, 0xe0, 0xec, 0x96, 0x1b, 0x02, 0x56, 0x69, 0x62, 0x50, 0x20, 0x34, 0x96, 0x93, 0x45, + 0x88, 0x4b, 0x34, 0x89, 0xa7, 0xce, 0xa8, 0x8e, 0xc7, 0x78, 0x26, 0xdb, 0xed, 0xde, 0xf8, 0x06, + 0x9c, 0xe1, 0x0b, 0xed, 0x71, 0x8f, 0x88, 0x43, 0x85, 0xda, 0x2f, 0x82, 0x66, 0xc6, 0x09, 0xe9, + 0xba, 0x82, 0x48, 0xf4, 0x82, 0xe0, 0xe6, 0x79, 0x6f, 0x7e, 0xbf, 0x79, 0x7f, 0x7e, 0xef, 0xc9, + 0xb0, 0x4b, 0xc2, 0x2b, 0xde, 0x10, 0x09, 0xf6, 0x09, 0x9f, 0x50, 0x12, 0xfa, 0x0d, 0x71, 0x15, + 0x13, 0x6e, 0xc7, 0x09, 0x13, 0x0c, 0x99, 0xd2, 0x6b, 0x2f, 0x79, 0x9f, 0x6c, 0x07, 0x2c, 0x60, + 0xca, 0xd9, 0x90, 0x5f, 0xfa, 0xde, 0x93, 0xfa, 0x98, 0xf1, 0x29, 0xe3, 0x8d, 0x11, 0xe6, 0xa4, + 0xf1, 0xf2, 0xd9, 0x88, 0x08, 0xfc, 0xac, 0x31, 0x66, 0x34, 0x4a, 0xfd, 0xd9, 0x57, 0x58, 0xe2, + 0x93, 0x44, 0x7b, 0x0f, 0x3e, 0x85, 0x42, 0x1b, 0x0b, 0x82, 0x76, 0xa0, 0x38, 0x21, 0x34, 0x98, + 0x08, 0xcb, 0xd8, 0x37, 0x8e, 0x0a, 0x5e, 0x7a, 0x42, 0xbb, 0x50, 0x12, 0x74, 0x4a, 0xb8, 0xc0, + 0xd3, 0xd8, 0x5a, 0x53, 0xae, 0x3f, 0x0d, 0x07, 0x3f, 0xe7, 0xa1, 0xd4, 0x8f, 0x99, 0xe8, 0x49, + 0x46, 0xf4, 0x39, 0x80, 0xa2, 0x1e, 0xca, 0x34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 0x6c, 0xfd, 0xe4, 0x1f, 0x72, + 0xfd, 0x14, 0x1e, 0x78, 0xfd, 0xac, 0xff, 0xa3, 0xf5, 0x73, 0xfc, 0x09, 0x14, 0xb5, 0x28, 0x50, + 0x19, 0x36, 0x5c, 0xe7, 0xac, 0xdd, 0x39, 0xfb, 0xd2, 0xcc, 0xa1, 0x0a, 0x6c, 0x3a, 0xdf, 0x39, + 0xad, 0x17, 0x03, 0xa7, 0x6d, 0x1a, 0xf2, 0xd4, 0x6a, 0x9e, 0xb5, 0x9c, 0xae, 0xd3, 0x36, 0xd7, + 0xd0, 0x06, 0xe4, 0x9b, 0xdd, 0xae, 0x99, 0x3f, 0x76, 0x00, 0x65, 0x37, 0x07, 0xaa, 0x42, 0xa9, + 0xdb, 0xf9, 0xa6, 0x33, 0xe8, 0xb9, 0xce, 0x99, 0x99, 0x43, 0x35, 0x00, 0x75, 0x6c, 0x75, 0x7b, + 0x7d, 0xc7, 0x34, 0x90, 0x09, 0x95, 0xfe, 0xa0, 0xe7, 0x76, 0x7b, 0xfd, 0xbe, 0xeb, 0x78, 0xae, + 0xb9, 0x76, 0xfa, 0xd5, 0x9b, 0x9b, 0xba, 0xf1, 0xf6, 0xa6, 0x6e, 0xfc, 0x7e, 0x53, 0x37, 0x7e, + 0xba, 0xad, 0xe7, 0xde, 0xde, 0xd6, 0x73, 0xbf, 0xde, 0xd6, 0x73, 0xdf, 0x3f, 0x0d, 0xa8, 0x98, + 0xcc, 0x46, 0xf6, 0x98, 0x4d, 0x1b, 0x52, 0x0f, 0x1f, 0x45, 0x44, 0x5c, 0xb2, 0xe4, 0x42, 0x1d, + 0x1a, 0xaf, 0xb2, 0x3f, 0xe6, 0xa3, 0xa2, 0xfa, 0x67, 0xfe, 0xf8, 0x8f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x77, 0xc1, 0x8b, 0x6c, 0xb9, 0x0b, 0x00, 0x00, } func (m *Date) Marshal() (dAtA []byte, err error) { @@ -1345,40 +1088,6 @@ func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *OrderPrice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BaseDenom) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - l = len(m.QuoteDenom) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - l = m.Rate.Size() - n += 1 + l + sovTypes(uint64(l)) - return n -} - -func (m *TriggerPrice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TradingAssetDenom) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - l = m.Rate.Size() - n += 1 + l + sovTypes(uint64(l)) - return n -} - func (m *Date) Size() (n int) { if m == nil { return 0 @@ -1556,270 +1265,6 @@ func sovTypes(x uint64) (n int) { func sozTypes(x uint64) (n int) { return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *OrderPrice) 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 ErrIntOverflowTypes - } - 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: OrderPrice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OrderPrice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BaseDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QuoteDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QuoteDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TriggerPrice) 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 ErrIntOverflowTypes - } - 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: TriggerPrice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TriggerPrice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingAssetDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TradingAssetDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *Date) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0