github.com/gravity-devs/liquidity@v1.5.3/x/liquidity/types/liquidity.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: tendermint/liquidity/v1beta1/liquidity.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" 9 types "github.com/cosmos/cosmos-sdk/types" 10 _ "github.com/gogo/protobuf/gogoproto" 11 proto "github.com/gogo/protobuf/proto" 12 _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" 13 io "io" 14 math "math" 15 math_bits "math/bits" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 28 29 // Structure for the pool type to distinguish the characteristics of the reserve pools. 30 type PoolType struct { 31 // This is the id of the pool_type that is used as pool_type_id for pool creation. 32 // In this version, only pool-type-id 1 is supported. 33 // {"id":1,"name":"ConstantProductLiquidityPool","min_reserve_coin_num":2,"max_reserve_coin_num":2,"description":""} 34 Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` 35 // name of the pool type. 36 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` 37 // minimum number of reserveCoins for LiquidityPoolType, only 2 reserve coins are supported. 38 MinReserveCoinNum uint32 `protobuf:"varint,3,opt,name=min_reserve_coin_num,json=minReserveCoinNum,proto3" json:"min_reserve_coin_num,omitempty" yaml:"min_reserve_coin_num"` 39 // maximum number of reserveCoins for LiquidityPoolType, only 2 reserve coins are supported. 40 MaxReserveCoinNum uint32 `protobuf:"varint,4,opt,name=max_reserve_coin_num,json=maxReserveCoinNum,proto3" json:"max_reserve_coin_num,omitempty" yaml:"max_reserve_coin_num"` 41 // description of the pool type. 42 Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` 43 } 44 45 func (m *PoolType) Reset() { *m = PoolType{} } 46 func (m *PoolType) String() string { return proto.CompactTextString(m) } 47 func (*PoolType) ProtoMessage() {} 48 func (*PoolType) Descriptor() ([]byte, []int) { 49 return fileDescriptor_714a3e326c5b7d34, []int{0} 50 } 51 func (m *PoolType) XXX_Unmarshal(b []byte) error { 52 return m.Unmarshal(b) 53 } 54 func (m *PoolType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 55 if deterministic { 56 return xxx_messageInfo_PoolType.Marshal(b, m, deterministic) 57 } else { 58 b = b[:cap(b)] 59 n, err := m.MarshalToSizedBuffer(b) 60 if err != nil { 61 return nil, err 62 } 63 return b[:n], nil 64 } 65 } 66 func (m *PoolType) XXX_Merge(src proto.Message) { 67 xxx_messageInfo_PoolType.Merge(m, src) 68 } 69 func (m *PoolType) XXX_Size() int { 70 return m.Size() 71 } 72 func (m *PoolType) XXX_DiscardUnknown() { 73 xxx_messageInfo_PoolType.DiscardUnknown(m) 74 } 75 76 var xxx_messageInfo_PoolType proto.InternalMessageInfo 77 78 // Params defines the parameters for the liquidity module. 79 type Params struct { 80 // list of available pool types 81 PoolTypes []PoolType `protobuf:"bytes,1,rep,name=pool_types,json=poolTypes,proto3" json:"pool_types" yaml:"pool_types"` 82 // Minimum number of coins to be deposited to the liquidity pool on pool creation. 83 MinInitDepositAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=min_init_deposit_amount,json=minInitDepositAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_init_deposit_amount" yaml:"min_init_deposit_amount"` 84 // Initial mint amount of pool coins upon pool creation. 85 InitPoolCoinMintAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=init_pool_coin_mint_amount,json=initPoolCoinMintAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"init_pool_coin_mint_amount" yaml:"init_pool_coin_mint_amount"` 86 // Limit the size of each liquidity pool to minimize risk. In development, set to 0 for no limit. In production, set a limit. 87 MaxReserveCoinAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=max_reserve_coin_amount,json=maxReserveCoinAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_reserve_coin_amount" yaml:"max_reserve_coin_amount"` 88 // Fee paid to create a Liquidity Pool. Set a fee to prevent spamming. 89 PoolCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=pool_creation_fee,json=poolCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"pool_creation_fee" yaml:"pool_creation_fee"` 90 // Swap fee rate for every executed swap. 91 SwapFeeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=swap_fee_rate,json=swapFeeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"swap_fee_rate" yaml:"swap_fee_rate"` 92 // Reserve coin withdrawal with less proportion by withdrawFeeRate. 93 WithdrawFeeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=withdraw_fee_rate,json=withdrawFeeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"withdraw_fee_rate" yaml:"withdraw_fee_rate"` 94 // Maximum ratio of reserve coins that can be ordered at a swap order. 95 MaxOrderAmountRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=max_order_amount_ratio,json=maxOrderAmountRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_order_amount_ratio" yaml:"max_order_amount_ratio"` 96 // The smallest unit batch height for every liquidity pool. 97 UnitBatchHeight uint32 `protobuf:"varint,9,opt,name=unit_batch_height,json=unitBatchHeight,proto3" json:"unit_batch_height,omitempty" yaml:"unit_batch_height"` 98 // Circuit breaker enables or disables transaction messages in liquidity module. 99 CircuitBreakerEnabled bool `protobuf:"varint,10,opt,name=circuit_breaker_enabled,json=circuitBreakerEnabled,proto3" json:"circuit_breaker_enabled,omitempty" yaml:"circuit_breaker_enabled"` 100 } 101 102 func (m *Params) Reset() { *m = Params{} } 103 func (*Params) ProtoMessage() {} 104 func (*Params) Descriptor() ([]byte, []int) { 105 return fileDescriptor_714a3e326c5b7d34, []int{1} 106 } 107 func (m *Params) XXX_Unmarshal(b []byte) error { 108 return m.Unmarshal(b) 109 } 110 func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 111 if deterministic { 112 return xxx_messageInfo_Params.Marshal(b, m, deterministic) 113 } else { 114 b = b[:cap(b)] 115 n, err := m.MarshalToSizedBuffer(b) 116 if err != nil { 117 return nil, err 118 } 119 return b[:n], nil 120 } 121 } 122 func (m *Params) XXX_Merge(src proto.Message) { 123 xxx_messageInfo_Params.Merge(m, src) 124 } 125 func (m *Params) XXX_Size() int { 126 return m.Size() 127 } 128 func (m *Params) XXX_DiscardUnknown() { 129 xxx_messageInfo_Params.DiscardUnknown(m) 130 } 131 132 var xxx_messageInfo_Params proto.InternalMessageInfo 133 134 // Pool defines the liquidity pool that contains pool information. 135 type Pool struct { 136 // id of the pool 137 Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" yaml:"id"` 138 // id of the pool_type 139 TypeId uint32 `protobuf:"varint,2,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty" yaml:"type_id"` 140 // denoms of reserve coin pair of the pool 141 ReserveCoinDenoms []string `protobuf:"bytes,3,rep,name=reserve_coin_denoms,json=reserveCoinDenoms,proto3" json:"reserve_coin_denoms,omitempty" yaml:"reserve_coin_denoms"` 142 // reserve account address of the pool 143 ReserveAccountAddress string `protobuf:"bytes,4,opt,name=reserve_account_address,json=reserveAccountAddress,proto3" json:"reserve_account_address,omitempty" yaml:"reserve_account_address"` 144 // denom of pool coin of the pool 145 PoolCoinDenom string `protobuf:"bytes,5,opt,name=pool_coin_denom,json=poolCoinDenom,proto3" json:"pool_coin_denom,omitempty" yaml:"pool_coin_denom"` 146 } 147 148 func (m *Pool) Reset() { *m = Pool{} } 149 func (m *Pool) String() string { return proto.CompactTextString(m) } 150 func (*Pool) ProtoMessage() {} 151 func (*Pool) Descriptor() ([]byte, []int) { 152 return fileDescriptor_714a3e326c5b7d34, []int{2} 153 } 154 func (m *Pool) XXX_Unmarshal(b []byte) error { 155 return m.Unmarshal(b) 156 } 157 func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 158 if deterministic { 159 return xxx_messageInfo_Pool.Marshal(b, m, deterministic) 160 } else { 161 b = b[:cap(b)] 162 n, err := m.MarshalToSizedBuffer(b) 163 if err != nil { 164 return nil, err 165 } 166 return b[:n], nil 167 } 168 } 169 func (m *Pool) XXX_Merge(src proto.Message) { 170 xxx_messageInfo_Pool.Merge(m, src) 171 } 172 func (m *Pool) XXX_Size() int { 173 return m.Size() 174 } 175 func (m *Pool) XXX_DiscardUnknown() { 176 xxx_messageInfo_Pool.DiscardUnknown(m) 177 } 178 179 var xxx_messageInfo_Pool proto.InternalMessageInfo 180 181 // Metadata for the state of each pool for invariant checking after genesis export or import. 182 type PoolMetadata struct { 183 // id of the pool 184 PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id" yaml:"pool_id"` 185 // pool coin issued at the pool 186 PoolCoinTotalSupply types.Coin `protobuf:"bytes,2,opt,name=pool_coin_total_supply,json=poolCoinTotalSupply,proto3" json:"pool_coin_total_supply" yaml:"pool_coin_total_supply"` 187 // reserve coins deposited in the pool 188 ReserveCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=reserve_coins,json=reserveCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reserve_coins" yaml:"reserve_coins"` 189 } 190 191 func (m *PoolMetadata) Reset() { *m = PoolMetadata{} } 192 func (m *PoolMetadata) String() string { return proto.CompactTextString(m) } 193 func (*PoolMetadata) ProtoMessage() {} 194 func (*PoolMetadata) Descriptor() ([]byte, []int) { 195 return fileDescriptor_714a3e326c5b7d34, []int{3} 196 } 197 func (m *PoolMetadata) XXX_Unmarshal(b []byte) error { 198 return m.Unmarshal(b) 199 } 200 func (m *PoolMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 201 if deterministic { 202 return xxx_messageInfo_PoolMetadata.Marshal(b, m, deterministic) 203 } else { 204 b = b[:cap(b)] 205 n, err := m.MarshalToSizedBuffer(b) 206 if err != nil { 207 return nil, err 208 } 209 return b[:n], nil 210 } 211 } 212 func (m *PoolMetadata) XXX_Merge(src proto.Message) { 213 xxx_messageInfo_PoolMetadata.Merge(m, src) 214 } 215 func (m *PoolMetadata) XXX_Size() int { 216 return m.Size() 217 } 218 func (m *PoolMetadata) XXX_DiscardUnknown() { 219 xxx_messageInfo_PoolMetadata.DiscardUnknown(m) 220 } 221 222 var xxx_messageInfo_PoolMetadata proto.InternalMessageInfo 223 224 // PoolBatch defines the batch or batches of a given liquidity pool that contains indexes of deposit, withdraw, and swap messages. 225 // Index param increments by 1 if the pool id is same. 226 type PoolBatch struct { 227 // id of the pool 228 PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id" yaml:"pool_id"` 229 // index of this batch 230 Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty" yaml:"index"` 231 // height where this batch is started 232 BeginHeight int64 `protobuf:"varint,3,opt,name=begin_height,json=beginHeight,proto3" json:"begin_height,omitempty" yaml:"begin_height"` 233 // last index of DepositMsgStates 234 DepositMsgIndex uint64 `protobuf:"varint,4,opt,name=deposit_msg_index,json=depositMsgIndex,proto3" json:"deposit_msg_index,omitempty" yaml:"deposit_msg_index"` 235 // last index of WithdrawMsgStates 236 WithdrawMsgIndex uint64 `protobuf:"varint,5,opt,name=withdraw_msg_index,json=withdrawMsgIndex,proto3" json:"withdraw_msg_index,omitempty" yaml:"withdraw_msg_index"` 237 // last index of SwapMsgStates 238 SwapMsgIndex uint64 `protobuf:"varint,6,opt,name=swap_msg_index,json=swapMsgIndex,proto3" json:"swap_msg_index,omitempty" yaml:"swap_msg_index"` 239 // true if executed, false if not executed 240 Executed bool `protobuf:"varint,7,opt,name=executed,proto3" json:"executed,omitempty" yaml:"executed"` 241 } 242 243 func (m *PoolBatch) Reset() { *m = PoolBatch{} } 244 func (m *PoolBatch) String() string { return proto.CompactTextString(m) } 245 func (*PoolBatch) ProtoMessage() {} 246 func (*PoolBatch) Descriptor() ([]byte, []int) { 247 return fileDescriptor_714a3e326c5b7d34, []int{4} 248 } 249 func (m *PoolBatch) XXX_Unmarshal(b []byte) error { 250 return m.Unmarshal(b) 251 } 252 func (m *PoolBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 253 if deterministic { 254 return xxx_messageInfo_PoolBatch.Marshal(b, m, deterministic) 255 } else { 256 b = b[:cap(b)] 257 n, err := m.MarshalToSizedBuffer(b) 258 if err != nil { 259 return nil, err 260 } 261 return b[:n], nil 262 } 263 } 264 func (m *PoolBatch) XXX_Merge(src proto.Message) { 265 xxx_messageInfo_PoolBatch.Merge(m, src) 266 } 267 func (m *PoolBatch) XXX_Size() int { 268 return m.Size() 269 } 270 func (m *PoolBatch) XXX_DiscardUnknown() { 271 xxx_messageInfo_PoolBatch.DiscardUnknown(m) 272 } 273 274 var xxx_messageInfo_PoolBatch proto.InternalMessageInfo 275 276 // DepositMsgState defines the state of deposit message that contains state information as it is processed in the next batch or batches. 277 type DepositMsgState struct { 278 // height where this message is appended to the batch 279 MsgHeight int64 `protobuf:"varint,1,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty" yaml:"msg_height"` 280 // index of this deposit message in this liquidity pool 281 MsgIndex uint64 `protobuf:"varint,2,opt,name=msg_index,json=msgIndex,proto3" json:"msg_index,omitempty" yaml:"msg_index"` 282 // true if executed on this batch, false if not executed 283 Executed bool `protobuf:"varint,3,opt,name=executed,proto3" json:"executed,omitempty" yaml:"executed"` 284 // true if executed successfully on this batch, false if failed 285 Succeeded bool `protobuf:"varint,4,opt,name=succeeded,proto3" json:"succeeded,omitempty" yaml:"succeeded"` 286 // true if ready to be deleted on kvstore, false if not ready to be deleted 287 ToBeDeleted bool `protobuf:"varint,5,opt,name=to_be_deleted,json=toBeDeleted,proto3" json:"to_be_deleted,omitempty" yaml:"to_be_deleted"` 288 // MsgDepositWithinBatch 289 Msg *MsgDepositWithinBatch `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty" yaml:"msg"` 290 } 291 292 func (m *DepositMsgState) Reset() { *m = DepositMsgState{} } 293 func (m *DepositMsgState) String() string { return proto.CompactTextString(m) } 294 func (*DepositMsgState) ProtoMessage() {} 295 func (*DepositMsgState) Descriptor() ([]byte, []int) { 296 return fileDescriptor_714a3e326c5b7d34, []int{5} 297 } 298 func (m *DepositMsgState) XXX_Unmarshal(b []byte) error { 299 return m.Unmarshal(b) 300 } 301 func (m *DepositMsgState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 302 if deterministic { 303 return xxx_messageInfo_DepositMsgState.Marshal(b, m, deterministic) 304 } else { 305 b = b[:cap(b)] 306 n, err := m.MarshalToSizedBuffer(b) 307 if err != nil { 308 return nil, err 309 } 310 return b[:n], nil 311 } 312 } 313 func (m *DepositMsgState) XXX_Merge(src proto.Message) { 314 xxx_messageInfo_DepositMsgState.Merge(m, src) 315 } 316 func (m *DepositMsgState) XXX_Size() int { 317 return m.Size() 318 } 319 func (m *DepositMsgState) XXX_DiscardUnknown() { 320 xxx_messageInfo_DepositMsgState.DiscardUnknown(m) 321 } 322 323 var xxx_messageInfo_DepositMsgState proto.InternalMessageInfo 324 325 // WithdrawMsgState defines the state of the withdraw message that contains state information as the message is processed in the next batch or batches. 326 type WithdrawMsgState struct { 327 // height where this message is appended to the batch 328 MsgHeight int64 `protobuf:"varint,1,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty" yaml:"msg_height"` 329 // index of this withdraw message in this liquidity pool 330 MsgIndex uint64 `protobuf:"varint,2,opt,name=msg_index,json=msgIndex,proto3" json:"msg_index,omitempty" yaml:"msg_index"` 331 // true if executed on this batch, false if not executed 332 Executed bool `protobuf:"varint,3,opt,name=executed,proto3" json:"executed,omitempty" yaml:"executed"` 333 // true if executed successfully on this batch, false if failed 334 Succeeded bool `protobuf:"varint,4,opt,name=succeeded,proto3" json:"succeeded,omitempty" yaml:"succeeded"` 335 // true if ready to be deleted on kvstore, false if not ready to be deleted 336 ToBeDeleted bool `protobuf:"varint,5,opt,name=to_be_deleted,json=toBeDeleted,proto3" json:"to_be_deleted,omitempty" yaml:"to_be_deleted"` 337 // MsgWithdrawWithinBatch 338 Msg *MsgWithdrawWithinBatch `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty" yaml:"msg"` 339 } 340 341 func (m *WithdrawMsgState) Reset() { *m = WithdrawMsgState{} } 342 func (m *WithdrawMsgState) String() string { return proto.CompactTextString(m) } 343 func (*WithdrawMsgState) ProtoMessage() {} 344 func (*WithdrawMsgState) Descriptor() ([]byte, []int) { 345 return fileDescriptor_714a3e326c5b7d34, []int{6} 346 } 347 func (m *WithdrawMsgState) XXX_Unmarshal(b []byte) error { 348 return m.Unmarshal(b) 349 } 350 func (m *WithdrawMsgState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 351 if deterministic { 352 return xxx_messageInfo_WithdrawMsgState.Marshal(b, m, deterministic) 353 } else { 354 b = b[:cap(b)] 355 n, err := m.MarshalToSizedBuffer(b) 356 if err != nil { 357 return nil, err 358 } 359 return b[:n], nil 360 } 361 } 362 func (m *WithdrawMsgState) XXX_Merge(src proto.Message) { 363 xxx_messageInfo_WithdrawMsgState.Merge(m, src) 364 } 365 func (m *WithdrawMsgState) XXX_Size() int { 366 return m.Size() 367 } 368 func (m *WithdrawMsgState) XXX_DiscardUnknown() { 369 xxx_messageInfo_WithdrawMsgState.DiscardUnknown(m) 370 } 371 372 var xxx_messageInfo_WithdrawMsgState proto.InternalMessageInfo 373 374 // SwapMsgState defines the state of the swap message that contains state information as the message is processed in the next batch or batches. 375 type SwapMsgState struct { 376 // height where this message is appended to the batch 377 MsgHeight int64 `protobuf:"varint,1,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty" yaml:"msg_height"` 378 // index of this swap message in this liquidity pool 379 MsgIndex uint64 `protobuf:"varint,2,opt,name=msg_index,json=msgIndex,proto3" json:"msg_index,omitempty" yaml:"msg_index"` 380 // true if executed on this batch, false if not executed 381 Executed bool `protobuf:"varint,3,opt,name=executed,proto3" json:"executed,omitempty" yaml:"executed"` 382 // true if executed successfully on this batch, false if failed 383 Succeeded bool `protobuf:"varint,4,opt,name=succeeded,proto3" json:"succeeded,omitempty" yaml:"succeeded"` 384 // true if ready to be deleted on kvstore, false if not ready to be deleted 385 ToBeDeleted bool `protobuf:"varint,5,opt,name=to_be_deleted,json=toBeDeleted,proto3" json:"to_be_deleted,omitempty" yaml:"to_be_deleted"` 386 // swap orders are cancelled when current height is equal to or higher than ExpiryHeight 387 OrderExpiryHeight int64 `protobuf:"varint,6,opt,name=order_expiry_height,json=orderExpiryHeight,proto3" json:"order_expiry_height,omitempty" yaml:"order_expiry_height"` 388 // offer coin exchanged until now 389 ExchangedOfferCoin types.Coin `protobuf:"bytes,7,opt,name=exchanged_offer_coin,json=exchangedOfferCoin,proto3" json:"exchanged_offer_coin" yaml:"exchanged_offer_coin"` 390 // offer coin currently remaining to be exchanged 391 RemainingOfferCoin types.Coin `protobuf:"bytes,8,opt,name=remaining_offer_coin,json=remainingOfferCoin,proto3" json:"remaining_offer_coin" yaml:"remaining_offer_coin"` 392 // reserve fee for pays fee in half offer coin 393 ReservedOfferCoinFee types.Coin `protobuf:"bytes,9,opt,name=reserved_offer_coin_fee,json=reservedOfferCoinFee,proto3" json:"reserved_offer_coin_fee" yaml:"reserved_offer_coin_fee"` 394 // MsgSwapWithinBatch 395 Msg *MsgSwapWithinBatch `protobuf:"bytes,10,opt,name=msg,proto3" json:"msg,omitempty" yaml:"msg"` 396 } 397 398 func (m *SwapMsgState) Reset() { *m = SwapMsgState{} } 399 func (m *SwapMsgState) String() string { return proto.CompactTextString(m) } 400 func (*SwapMsgState) ProtoMessage() {} 401 func (*SwapMsgState) Descriptor() ([]byte, []int) { 402 return fileDescriptor_714a3e326c5b7d34, []int{7} 403 } 404 func (m *SwapMsgState) XXX_Unmarshal(b []byte) error { 405 return m.Unmarshal(b) 406 } 407 func (m *SwapMsgState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 408 if deterministic { 409 return xxx_messageInfo_SwapMsgState.Marshal(b, m, deterministic) 410 } else { 411 b = b[:cap(b)] 412 n, err := m.MarshalToSizedBuffer(b) 413 if err != nil { 414 return nil, err 415 } 416 return b[:n], nil 417 } 418 } 419 func (m *SwapMsgState) XXX_Merge(src proto.Message) { 420 xxx_messageInfo_SwapMsgState.Merge(m, src) 421 } 422 func (m *SwapMsgState) XXX_Size() int { 423 return m.Size() 424 } 425 func (m *SwapMsgState) XXX_DiscardUnknown() { 426 xxx_messageInfo_SwapMsgState.DiscardUnknown(m) 427 } 428 429 var xxx_messageInfo_SwapMsgState proto.InternalMessageInfo 430 431 func init() { 432 proto.RegisterType((*PoolType)(nil), "tendermint.liquidity.v1beta1.PoolType") 433 proto.RegisterType((*Params)(nil), "tendermint.liquidity.v1beta1.Params") 434 proto.RegisterType((*Pool)(nil), "tendermint.liquidity.v1beta1.Pool") 435 proto.RegisterType((*PoolMetadata)(nil), "tendermint.liquidity.v1beta1.PoolMetadata") 436 proto.RegisterType((*PoolBatch)(nil), "tendermint.liquidity.v1beta1.PoolBatch") 437 proto.RegisterType((*DepositMsgState)(nil), "tendermint.liquidity.v1beta1.DepositMsgState") 438 proto.RegisterType((*WithdrawMsgState)(nil), "tendermint.liquidity.v1beta1.WithdrawMsgState") 439 proto.RegisterType((*SwapMsgState)(nil), "tendermint.liquidity.v1beta1.SwapMsgState") 440 } 441 442 func init() { 443 proto.RegisterFile("tendermint/liquidity/v1beta1/liquidity.proto", fileDescriptor_714a3e326c5b7d34) 444 } 445 446 var fileDescriptor_714a3e326c5b7d34 = []byte{ 447 // 1950 bytes of a gzipped FileDescriptorProto 448 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0xdb, 0xc8, 449 0x15, 0x37, 0x25, 0x59, 0x96, 0xc6, 0x5f, 0x31, 0xed, 0x38, 0x4a, 0xb2, 0x91, 0x94, 0x69, 0xb3, 450 0x35, 0xb6, 0xb1, 0x2c, 0x4b, 0xb2, 0x63, 0xbb, 0xbd, 0x90, 0xfe, 0xd8, 0xb5, 0x50, 0x77, 0x53, 451 0x26, 0xed, 0x36, 0x9b, 0x5d, 0x68, 0x29, 0x72, 0x24, 0xb1, 0x16, 0x49, 0x85, 0x1c, 0xd9, 0x72, 452 0x8b, 0x05, 0x7a, 0xdc, 0x43, 0x0b, 0x14, 0x42, 0x0f, 0x45, 0x0b, 0xb4, 0x0b, 0x03, 0xc5, 0x02, 453 0x2d, 0xf6, 0xd4, 0xf6, 0x0f, 0xe8, 0x2d, 0xc7, 0x1c, 0x8b, 0x1e, 0xd4, 0x36, 0xb9, 0x14, 0x45, 454 0xd1, 0x83, 0xfe, 0x82, 0x62, 0x3e, 0x28, 0xd2, 0x36, 0x6d, 0x6d, 0x00, 0x1d, 0xe3, 0x8b, 0xa9, 455 0x37, 0xef, 0xe3, 0xf7, 0xde, 0xfb, 0xcd, 0x9b, 0x21, 0xc1, 0x7d, 0x8c, 0x2c, 0x1d, 0x39, 0xa6, 456 0x61, 0xe1, 0x95, 0xa6, 0xf1, 0xac, 0x6d, 0xe8, 0x06, 0x3e, 0x59, 0x39, 0x5a, 0xad, 0x22, 0xac, 457 0xae, 0xfa, 0x92, 0x5c, 0xcb, 0xb1, 0xb1, 0x2d, 0xbe, 0xe5, 0x6b, 0xe7, 0xfc, 0x35, 0xae, 0x7d, 458 0xeb, 0xde, 0x95, 0xbe, 0x70, 0x87, 0x39, 0xb9, 0xb5, 0x50, 0xb7, 0xeb, 0x36, 0x7d, 0x5c, 0x21, 459 0x4f, 0x5c, 0x7a, 0x43, 0xb3, 0x5d, 0xd3, 0x76, 0x2b, 0x6c, 0x41, 0xb3, 0x0d, 0x8b, 0x2f, 0xb0, 460 0x7f, 0xda, 0x72, 0x1d, 0x59, 0xcb, 0x76, 0x0b, 0x59, 0x6a, 0xcb, 0x38, 0x2a, 0xac, 0xd8, 0x2d, 461 0x6c, 0xd8, 0x96, 0xbb, 0xa2, 0x5a, 0x96, 0x8d, 0x55, 0xfa, 0xcc, 0x14, 0xe1, 0x67, 0x51, 0x90, 462 0x78, 0x68, 0xdb, 0xcd, 0xc7, 0x27, 0x2d, 0x24, 0xe6, 0x40, 0xc4, 0xd0, 0x53, 0x42, 0x56, 0x58, 463 0x9a, 0x96, 0xd3, 0x5d, 0x69, 0xa6, 0x1c, 0x85, 0xab, 0xf0, 0x34, 0x12, 0x6f, 0x1b, 0x16, 0x2e, 464 0x16, 0xfa, 0xbd, 0x4c, 0xf2, 0x44, 0x35, 0x9b, 0x5b, 0xd0, 0xd0, 0xa1, 0x12, 0x31, 0x74, 0x71, 465 0x0f, 0xc4, 0x2c, 0xd5, 0x44, 0xa9, 0x48, 0x56, 0x58, 0x4a, 0xca, 0x85, 0xae, 0x94, 0x2d, 0xa7, 466 0xe1, 0xb6, 0x6d, 0xb9, 0x58, 0xb5, 0xf0, 0x43, 0xc7, 0xd6, 0xdb, 0x1a, 0xfe, 0x8e, 0x97, 0x1a, 467 0x89, 0x02, 0xfb, 0xbd, 0xcc, 0x24, 0xf3, 0x41, 0x0c, 0xa1, 0x42, 0xed, 0x45, 0x15, 0x2c, 0x98, 468 0x86, 0x55, 0x71, 0x90, 0x8b, 0x9c, 0x23, 0x54, 0x21, 0xe9, 0x54, 0xac, 0xb6, 0x99, 0x8a, 0x52, 469 0x24, 0x79, 0x86, 0xa4, 0x70, 0x06, 0xc9, 0x6d, 0xe6, 0x25, 0xcc, 0x0c, 0x2a, 0x73, 0xa6, 0x61, 470 0x29, 0x4c, 0xba, 0x6d, 0x1b, 0xd6, 0x77, 0xdb, 0x26, 0x0d, 0xa1, 0x76, 0x2e, 0x86, 0x88, 0x0d, 471 0x0f, 0x11, 0x62, 0x46, 0x42, 0xa8, 0x9d, 0x73, 0x21, 0x36, 0xc0, 0xa4, 0x8e, 0x5c, 0xcd, 0x31, 472 0x68, 0xb1, 0x53, 0xe3, 0xb4, 0x28, 0x8b, 0xfd, 0x5e, 0x46, 0x64, 0x8e, 0x02, 0x8b, 0x50, 0x09, 473 0xaa, 0x6e, 0xc5, 0xfe, 0xfd, 0x79, 0x46, 0x80, 0x7f, 0x9e, 0x04, 0xf1, 0x87, 0xaa, 0xa3, 0x9a, 474 0xae, 0xf8, 0x09, 0x00, 0x2d, 0xdb, 0x6e, 0x56, 0xf0, 0x49, 0x0b, 0xb9, 0x29, 0x21, 0x1b, 0x5d, 475 0x9a, 0x2c, 0xbc, 0x9d, 0xbb, 0x8a, 0x4e, 0x39, 0xaf, 0x89, 0xf2, 0xcd, 0xe7, 0xbd, 0xcc, 0x58, 476 0xbf, 0x97, 0x99, 0x63, 0x51, 0x7d, 0x3f, 0x50, 0x49, 0xb6, 0xb8, 0x92, 0x2b, 0xfe, 0x4e, 0x00, 477 0x37, 0x48, 0xf1, 0x0c, 0xcb, 0xc0, 0x15, 0x1d, 0xb5, 0x6c, 0xd7, 0xc0, 0x15, 0xd5, 0xb4, 0xdb, 478 0x16, 0xe6, 0xed, 0x6c, 0x74, 0xa5, 0xeb, 0xe5, 0x24, 0x5c, 0xcd, 0xd3, 0x3f, 0x78, 0x1a, 0x99, 479 0x70, 0xf5, 0xc3, 0xdc, 0xbe, 0x85, 0x89, 0xff, 0xbf, 0xf7, 0x32, 0x6f, 0xd7, 0x0d, 0xdc, 0x68, 480 0x57, 0x73, 0x9a, 0x6d, 0xae, 0x30, 0x36, 0xf2, 0x7f, 0xcb, 0xae, 0x7e, 0xb8, 0x42, 0x23, 0x12, 481 0xed, 0x7e, 0x2f, 0x93, 0xf6, 0x7b, 0x15, 0x12, 0x0e, 0x2a, 0xa4, 0xf9, 0xfb, 0x96, 0x81, 0x77, 482 0x98, 0x5c, 0xa2, 0x62, 0xf1, 0x0b, 0x01, 0xdc, 0xa2, 0xea, 0x34, 0x03, 0x5a, 0x79, 0x92, 0xba, 483 0x07, 0x32, 0x4a, 0x41, 0x1e, 0x8e, 0x0c, 0xe4, 0x5d, 0x4e, 0xed, 0x4b, 0x23, 0x42, 0x65, 0x91, 484 0x2c, 0x92, 0x3a, 0x93, 0x8e, 0x1f, 0x18, 0x96, 0x87, 0xf4, 0xf7, 0xa4, 0x96, 0xe7, 0x59, 0xc2, 485 0x61, 0xc6, 0x28, 0x4c, 0xab, 0x2b, 0xdd, 0x2e, 0xcf, 0x7a, 0x30, 0x47, 0x57, 0xd1, 0xf0, 0xa0, 486 0xa4, 0xa2, 0x67, 0xd8, 0xc9, 0x71, 0xbe, 0x10, 0xc0, 0x1c, 0x4b, 0xcd, 0x41, 0x74, 0x08, 0x54, 487 0x6a, 0x08, 0xa5, 0xc6, 0x29, 0xbb, 0x6e, 0xe6, 0x58, 0xa8, 0x5c, 0x55, 0x75, 0xd1, 0x80, 0x54, 488 0xc4, 0x58, 0xfe, 0x4c, 0xe8, 0x4a, 0x9b, 0xe5, 0x6f, 0x3e, 0xfd, 0x09, 0xd4, 0x91, 0x65, 0x9b, 489 0x70, 0x2b, 0x0b, 0xdb, 0x2a, 0xb6, 0x4d, 0x78, 0x3f, 0x0b, 0x79, 0xc0, 0xad, 0xac, 0x9f, 0x1b, 490 0xfc, 0xf4, 0xe3, 0xd3, 0x48, 0x92, 0x64, 0x46, 0xac, 0x5d, 0xce, 0xc6, 0x54, 0x80, 0x8d, 0xc1, 491 0xf0, 0xf0, 0x0f, 0xff, 0xc8, 0x2c, 0x7d, 0x85, 0xbc, 0xa9, 0x2f, 0x65, 0x96, 0xd8, 0x6f, 0x73, 492 0xf3, 0x3d, 0x84, 0xc4, 0x9f, 0x0a, 0x60, 0xda, 0x3d, 0x56, 0x5b, 0xc4, 0x55, 0xc5, 0x51, 0x31, 493 0x4a, 0xc5, 0x69, 0xc1, 0x3f, 0xea, 0x4a, 0xf3, 0xe5, 0x09, 0x98, 0xcf, 0xe5, 0xf3, 0x45, 0xaf, 494 0xd0, 0x3b, 0x48, 0x7b, 0x8d, 0x42, 0xef, 0x20, 0xad, 0xdf, 0xcb, 0x2c, 0x30, 0xd8, 0x67, 0x42, 495 0x40, 0x65, 0x92, 0xfc, 0xde, 0x43, 0x48, 0x51, 0x31, 0x12, 0x7f, 0x26, 0x80, 0xb9, 0x63, 0x03, 496 0x37, 0x74, 0x47, 0x3d, 0xf6, 0x61, 0x4c, 0x50, 0x18, 0x9f, 0x8c, 0x08, 0x06, 0xaf, 0xde, 0x85, 497 0x30, 0x50, 0x99, 0xf5, 0x64, 0x1e, 0x9c, 0x5f, 0x0b, 0x60, 0x91, 0xf0, 0xc2, 0x76, 0x74, 0xe4, 498 0x70, 0x42, 0x10, 0x5d, 0xc3, 0x4e, 0x25, 0x28, 0x26, 0x34, 0x22, 0x4c, 0x77, 0x7c, 0x0e, 0x5e, 499 0x8c, 0x05, 0x95, 0x79, 0x53, 0xed, 0xbc, 0x4f, 0xe4, 0x8c, 0x7c, 0x0a, 0x91, 0x8a, 0x4f, 0xc0, 500 0x5c, 0x9b, 0x6c, 0xb0, 0xaa, 0x8a, 0xb5, 0x46, 0xa5, 0x81, 0x8c, 0x7a, 0x03, 0xa7, 0x92, 0x74, 501 0x04, 0x2f, 0x87, 0x9d, 0x37, 0x3c, 0xef, 0x0b, 0x36, 0x50, 0x99, 0x25, 0x32, 0x99, 0x88, 0xde, 502 0xa3, 0x12, 0xd1, 0x04, 0x37, 0x34, 0xc3, 0xd1, 0xda, 0x44, 0xd3, 0x41, 0xea, 0x21, 0x72, 0x2a, 503 0xc8, 0x52, 0xab, 0x4d, 0xa4, 0xa7, 0x40, 0x56, 0x58, 0x4a, 0xc8, 0x6b, 0x5d, 0xe9, 0x5a, 0x79, 504 0x02, 0xd6, 0xd4, 0xa6, 0x8b, 0xe0, 0x69, 0x24, 0x56, 0xb5, 0xed, 0xa6, 0xbf, 0x95, 0x2e, 0xb1, 505 0x85, 0xca, 0x75, 0xbe, 0x22, 0xb3, 0x85, 0x5d, 0x26, 0xdf, 0x4a, 0xfc, 0xea, 0xf3, 0xcc, 0x18, 506 0x1d, 0xdb, 0xbf, 0x8d, 0x81, 0x18, 0x19, 0x0a, 0x62, 0x69, 0x70, 0x7a, 0xc6, 0xe4, 0xaf, 0x9f, 507 0xcb, 0x66, 0xbd, 0xf4, 0x9f, 0x5e, 0x26, 0x62, 0xe8, 0x17, 0xcf, 0xd0, 0x6f, 0x83, 0x09, 0x52, 508 0xd5, 0x8a, 0xa1, 0xd3, 0xb9, 0x3b, 0x2d, 0x7f, 0x2d, 0xac, 0x10, 0x33, 0xcc, 0x88, 0x6b, 0x42, 509 0x25, 0x4e, 0x9e, 0xf6, 0x75, 0xb1, 0x06, 0xe6, 0xcf, 0x0c, 0x00, 0xba, 0x43, 0xdd, 0x54, 0x34, 510 0x1b, 0x5d, 0x4a, 0xca, 0xeb, 0x64, 0x38, 0xce, 0x3f, 0x65, 0xdb, 0xf6, 0x87, 0xf0, 0x3e, 0x7b, 511 0x78, 0x02, 0x3f, 0xee, 0xf7, 0x32, 0xb7, 0x98, 0xc3, 0x10, 0x63, 0xa8, 0xcc, 0x39, 0xfe, 0xe8, 512 0xd8, 0xa1, 0x32, 0x7a, 0x5c, 0x78, 0xba, 0xaa, 0xa6, 0xd1, 0x46, 0xab, 0xba, 0xee, 0x20, 0xd7, 513 0xe5, 0x23, 0xae, 0xde, 0x95, 0xe4, 0xf2, 0x0a, 0x64, 0x64, 0x59, 0x5d, 0xd7, 0xf5, 0x67, 0xc8, 514 0xc5, 0xc7, 0xed, 0xc3, 0xa3, 0xfc, 0x8f, 0x7e, 0xac, 0x9d, 0xd4, 0xac, 0x62, 0x4d, 0xaf, 0x3d, 515 0xdb, 0x6c, 0x14, 0x8e, 0x1d, 0x77, 0xa3, 0xa8, 0x39, 0x25, 0xa7, 0x66, 0x12, 0xfa, 0xcd, 0x10, 516 0xfa, 0x49, 0x9a, 0x26, 0x31, 0x67, 0x7e, 0x43, 0x2e, 0x89, 0x06, 0x95, 0xeb, 0x7c, 0x45, 0x62, 517 0x0b, 0xdc, 0x50, 0xfc, 0xb9, 0x00, 0x66, 0xfd, 0xb9, 0x4d, 0x53, 0xe1, 0x47, 0x30, 0xea, 0x4a, 518 0xef, 0x95, 0xf7, 0xe8, 0xe8, 0xd9, 0x29, 0xae, 0x49, 0xf9, 0xed, 0xed, 0xd5, 0xf5, 0xdd, 0xdd, 519 0xb5, 0xcd, 0x8d, 0xbd, 0xcd, 0xbc, 0x9c, 0x2f, 0x95, 0xb6, 0x77, 0x0b, 0x9b, 0xeb, 0x52, 0x29, 520 0xbf, 0x26, 0x4b, 0x9b, 0xdb, 0xc5, 0x8d, 0xd5, 0xdd, 0xe2, 0xc6, 0x46, 0xf1, 0xc1, 0xda, 0xe6, 521 0xe6, 0xce, 0xe6, 0xfa, 0x5e, 0x61, 0xef, 0x41, 0x7e, 0xbb, 0xb0, 0x97, 0x2f, 0x48, 0x85, 0xa2, 522 0x54, 0x22, 0xf7, 0x97, 0xc5, 0xe0, 0x24, 0x1b, 0xc4, 0x82, 0xca, 0x74, 0x8b, 0x9f, 0x0c, 0xb4, 523 0x64, 0x94, 0x20, 0x02, 0x25, 0xc8, 0x5f, 0x63, 0x60, 0x8a, 0x10, 0xe4, 0x00, 0x61, 0x55, 0x57, 524 0xb1, 0x2a, 0xbe, 0x0b, 0x26, 0xa8, 0xf5, 0x80, 0x2d, 0xb9, 0x30, 0xb6, 0x78, 0x3a, 0x7e, 0xf7, 525 0xb9, 0x00, 0x2a, 0x71, 0xf2, 0xb4, 0xaf, 0x8b, 0xff, 0x15, 0xc0, 0xa2, 0x8f, 0x03, 0xdb, 0x58, 526 0x6d, 0x56, 0xdc, 0x76, 0xab, 0xd5, 0x3c, 0xa1, 0x5c, 0xba, 0x72, 0xaa, 0xff, 0x46, 0xe8, 0x4a, 527 0x6e, 0xb9, 0x16, 0x18, 0xea, 0x23, 0x29, 0x50, 0xd8, 0x99, 0x00, 0x3f, 0x3d, 0x8d, 0x24, 0xbc, 528 0x03, 0x81, 0x9f, 0x07, 0x77, 0xce, 0x57, 0x31, 0x88, 0x1e, 0x2a, 0xf3, 0x5e, 0x31, 0x1f, 0x13, 529 0xf1, 0x23, 0x2a, 0x15, 0xff, 0x27, 0x80, 0xe9, 0x20, 0x61, 0x19, 0xcf, 0xaf, 0xcc, 0xf2, 0x4b, 530 0xa1, 0x2b, 0x55, 0xcb, 0x8f, 0x83, 0x67, 0x97, 0xb7, 0x1b, 0x42, 0x81, 0xde, 0xcf, 0x9e, 0xd7, 531 0x7c, 0x72, 0x56, 0xb3, 0x70, 0xd5, 0x21, 0xb7, 0x70, 0x71, 0x53, 0xb9, 0xaf, 0x77, 0xc0, 0x4d, 532 0x05, 0xb6, 0x9e, 0x1b, 0xe0, 0xd0, 0x1f, 0x63, 0x20, 0x49, 0x38, 0x44, 0x27, 0xde, 0xe8, 0x08, 533 0xf4, 0x00, 0x8c, 0x1b, 0x96, 0x8e, 0x3a, 0x94, 0x2e, 0x31, 0xf9, 0xee, 0x05, 0x37, 0xfd, 0x5e, 534 0x66, 0xca, 0xbb, 0x18, 0xe9, 0xa8, 0x03, 0x15, 0xa6, 0x2f, 0x1e, 0x80, 0xa9, 0x2a, 0xaa, 0x1b, 535 0x96, 0x37, 0xc3, 0xc9, 0x6d, 0x2c, 0x2a, 0xbf, 0x43, 0x46, 0x6c, 0x9c, 0x56, 0x13, 0x9e, 0x46, 536 0xc6, 0x3d, 0x0f, 0xf3, 0xcc, 0x43, 0xd0, 0x00, 0x2a, 0x93, 0xf4, 0x27, 0x1f, 0xde, 0x4f, 0xc0, 537 0x9c, 0x77, 0x29, 0x34, 0xdd, 0x7a, 0x85, 0x61, 0x8a, 0x51, 0x4c, 0xcb, 0x61, 0x98, 0x52, 0xde, 538 0x8d, 0xfa, 0x9c, 0x0d, 0x54, 0x66, 0xb9, 0xec, 0xc0, 0xad, 0xef, 0x53, 0xa4, 0x1f, 0x01, 0x71, 539 0x70, 0x6c, 0xfa, 0xbe, 0xc7, 0x2f, 0x29, 0x5b, 0xbf, 0x97, 0xb9, 0x79, 0xee, 0xac, 0x0d, 0x38, 540 0xbf, 0xe6, 0x09, 0x07, 0xde, 0x1f, 0x82, 0x19, 0x7a, 0x37, 0xf0, 0x3d, 0xc7, 0xa9, 0xe7, 0x77, 541 0xc2, 0x3c, 0x5f, 0x0f, 0x5c, 0x26, 0x02, 0x5e, 0xa7, 0x88, 0x60, 0xe0, 0x71, 0x03, 0x24, 0x50, 542 0x07, 0x69, 0x6d, 0x8c, 0x74, 0x7a, 0x89, 0x48, 0xc8, 0x6f, 0x75, 0xa5, 0x78, 0x39, 0x86, 0x9d, 543 0x36, 0xea, 0xf7, 0x32, 0xb3, 0xcc, 0x87, 0xa7, 0x02, 0x95, 0x81, 0x76, 0x80, 0x2d, 0x7f, 0x8a, 544 0x82, 0xd9, 0x9d, 0x41, 0x1d, 0x1e, 0x61, 0x72, 0x2f, 0x78, 0x17, 0x00, 0x12, 0x93, 0xf7, 0x4b, 545 0xa0, 0xfd, 0x5a, 0x0a, 0xef, 0x17, 0x7f, 0x73, 0xf0, 0xd5, 0xa1, 0x92, 0x34, 0xdd, 0x3a, 0xef, 546 0x95, 0x0c, 0x92, 0x7e, 0xb6, 0x8c, 0x37, 0xf7, 0xc2, 0xb2, 0xbd, 0xe6, 0x7b, 0xe1, 0x89, 0x26, 547 0xcc, 0xb0, 0x24, 0xa3, 0xaf, 0x93, 0xa4, 0xf8, 0x2d, 0x90, 0x74, 0xdb, 0x9a, 0x86, 0x90, 0x8e, 548 0x74, 0xca, 0x90, 0x84, 0x7c, 0x27, 0x68, 0xca, 0xa3, 0x0e, 0x74, 0xa0, 0xe2, 0xeb, 0x8b, 0xbb, 549 0x60, 0x1a, 0xdb, 0x95, 0x2a, 0xaa, 0xe8, 0xa8, 0x89, 0x48, 0xec, 0x71, 0xea, 0xe0, 0x6e, 0xd0, 550 0x01, 0xdf, 0xc3, 0x67, 0xf4, 0xa0, 0x32, 0x89, 0x6d, 0x19, 0xed, 0xb0, 0x5f, 0xe2, 0xf7, 0x41, 551 0xd4, 0x74, 0xeb, 0xb4, 0xd3, 0x93, 0x85, 0xe2, 0xd5, 0xaf, 0x65, 0x07, 0x6e, 0x9d, 0x77, 0xe2, 552 0x03, 0x03, 0x37, 0x0c, 0x8b, 0x6e, 0x60, 0x79, 0xa6, 0xdf, 0xcb, 0x80, 0x41, 0x7d, 0xa0, 0x42, 553 0xfc, 0xc1, 0xbf, 0x44, 0xc1, 0xb5, 0x0f, 0x7c, 0x82, 0xbd, 0x69, 0xdb, 0x88, 0xdb, 0xf6, 0x83, 554 0x60, 0xdb, 0x4a, 0x43, 0xdb, 0xe6, 0xb5, 0x62, 0x68, 0xdf, 0x7e, 0x99, 0x00, 0x53, 0x8f, 0xd8, 555 0x16, 0x7e, 0xd3, 0xb3, 0x11, 0xf7, 0x4c, 0x05, 0xf3, 0xec, 0xe5, 0x02, 0x75, 0x5a, 0x86, 0x73, 556 0xe2, 0xd5, 0x34, 0x4e, 0x6b, 0xba, 0x1a, 0x5e, 0x53, 0x7e, 0xb5, 0x0d, 0xb1, 0x83, 0xca, 0x1c, 557 0x95, 0xee, 0x52, 0x21, 0x2f, 0xf2, 0x17, 0x02, 0x58, 0x40, 0x1d, 0xad, 0xa1, 0x5a, 0x75, 0xa4, 558 0x57, 0xec, 0x5a, 0x0d, 0x39, 0xf4, 0xe4, 0xa6, 0xd3, 0xf7, 0xca, 0xcb, 0xc5, 0x87, 0x5d, 0xa9, 559 0x54, 0xfe, 0xc6, 0x90, 0xab, 0xc5, 0xfa, 0xa5, 0x57, 0xa0, 0xdb, 0x5e, 0xe9, 0x2f, 0xc6, 0x86, 560 0x8a, 0x38, 0x10, 0xbf, 0x4f, 0xa4, 0xc4, 0x8c, 0x22, 0x75, 0x90, 0xa9, 0x1a, 0x96, 0x61, 0xd5, 561 0x83, 0x48, 0x13, 0x23, 0x41, 0x5a, 0x1a, 0x86, 0x34, 0x2c, 0x36, 0x54, 0xc4, 0x81, 0xd8, 0x47, 562 0xfa, 0xa5, 0xff, 0xba, 0x10, 0x4c, 0x8b, 0x7e, 0x6f, 0x48, 0x0e, 0x03, 0xfb, 0xb4, 0x2b, 0x15, 563 0xca, 0xf7, 0x86, 0x80, 0x5d, 0xbb, 0x04, 0xea, 0xd9, 0xb7, 0x87, 0xf3, 0xc1, 0xa1, 0xb2, 0xe0, 564 0xad, 0x0c, 0xc0, 0xee, 0x21, 0x24, 0x2a, 0x6c, 0x34, 0x00, 0x0a, 0x2d, 0x3f, 0x74, 0x34, 0x90, 565 0xdd, 0x3e, 0x6c, 0x2c, 0xc8, 0xdf, 0x7b, 0xfe, 0xaf, 0xf4, 0xd8, 0xf3, 0x97, 0x69, 0xe1, 0xc5, 566 0xcb, 0xb4, 0xf0, 0xcf, 0x97, 0x69, 0xe1, 0x17, 0xaf, 0xd2, 0x63, 0x2f, 0x5e, 0xa5, 0xc7, 0xfe, 567 0xf6, 0x2a, 0x3d, 0xf6, 0x61, 0x31, 0x70, 0x25, 0xac, 0x3b, 0xea, 0x91, 0x81, 0x4f, 0x96, 0x75, 568 0x74, 0xe4, 0x06, 0x3e, 0x05, 0x77, 0x02, 0xcf, 0xf4, 0x8e, 0x58, 0x8d, 0xd3, 0x6f, 0xb6, 0xc5, 569 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x61, 0x5d, 0x42, 0xcc, 0x87, 0x16, 0x00, 0x00, 570 } 571 572 func (this *PoolType) Equal(that interface{}) bool { 573 if that == nil { 574 return this == nil 575 } 576 577 that1, ok := that.(*PoolType) 578 if !ok { 579 that2, ok := that.(PoolType) 580 if ok { 581 that1 = &that2 582 } else { 583 return false 584 } 585 } 586 if that1 == nil { 587 return this == nil 588 } else if this == nil { 589 return false 590 } 591 if this.Id != that1.Id { 592 return false 593 } 594 if this.Name != that1.Name { 595 return false 596 } 597 if this.MinReserveCoinNum != that1.MinReserveCoinNum { 598 return false 599 } 600 if this.MaxReserveCoinNum != that1.MaxReserveCoinNum { 601 return false 602 } 603 if this.Description != that1.Description { 604 return false 605 } 606 return true 607 } 608 func (this *Params) Equal(that interface{}) bool { 609 if that == nil { 610 return this == nil 611 } 612 613 that1, ok := that.(*Params) 614 if !ok { 615 that2, ok := that.(Params) 616 if ok { 617 that1 = &that2 618 } else { 619 return false 620 } 621 } 622 if that1 == nil { 623 return this == nil 624 } else if this == nil { 625 return false 626 } 627 if len(this.PoolTypes) != len(that1.PoolTypes) { 628 return false 629 } 630 for i := range this.PoolTypes { 631 if !this.PoolTypes[i].Equal(&that1.PoolTypes[i]) { 632 return false 633 } 634 } 635 if !this.MinInitDepositAmount.Equal(that1.MinInitDepositAmount) { 636 return false 637 } 638 if !this.InitPoolCoinMintAmount.Equal(that1.InitPoolCoinMintAmount) { 639 return false 640 } 641 if !this.MaxReserveCoinAmount.Equal(that1.MaxReserveCoinAmount) { 642 return false 643 } 644 if len(this.PoolCreationFee) != len(that1.PoolCreationFee) { 645 return false 646 } 647 for i := range this.PoolCreationFee { 648 if !this.PoolCreationFee[i].Equal(&that1.PoolCreationFee[i]) { 649 return false 650 } 651 } 652 if !this.SwapFeeRate.Equal(that1.SwapFeeRate) { 653 return false 654 } 655 if !this.WithdrawFeeRate.Equal(that1.WithdrawFeeRate) { 656 return false 657 } 658 if !this.MaxOrderAmountRatio.Equal(that1.MaxOrderAmountRatio) { 659 return false 660 } 661 if this.UnitBatchHeight != that1.UnitBatchHeight { 662 return false 663 } 664 if this.CircuitBreakerEnabled != that1.CircuitBreakerEnabled { 665 return false 666 } 667 return true 668 } 669 func (this *Pool) Equal(that interface{}) bool { 670 if that == nil { 671 return this == nil 672 } 673 674 that1, ok := that.(*Pool) 675 if !ok { 676 that2, ok := that.(Pool) 677 if ok { 678 that1 = &that2 679 } else { 680 return false 681 } 682 } 683 if that1 == nil { 684 return this == nil 685 } else if this == nil { 686 return false 687 } 688 if this.Id != that1.Id { 689 return false 690 } 691 if this.TypeId != that1.TypeId { 692 return false 693 } 694 if len(this.ReserveCoinDenoms) != len(that1.ReserveCoinDenoms) { 695 return false 696 } 697 for i := range this.ReserveCoinDenoms { 698 if this.ReserveCoinDenoms[i] != that1.ReserveCoinDenoms[i] { 699 return false 700 } 701 } 702 if this.ReserveAccountAddress != that1.ReserveAccountAddress { 703 return false 704 } 705 if this.PoolCoinDenom != that1.PoolCoinDenom { 706 return false 707 } 708 return true 709 } 710 func (this *PoolMetadata) Equal(that interface{}) bool { 711 if that == nil { 712 return this == nil 713 } 714 715 that1, ok := that.(*PoolMetadata) 716 if !ok { 717 that2, ok := that.(PoolMetadata) 718 if ok { 719 that1 = &that2 720 } else { 721 return false 722 } 723 } 724 if that1 == nil { 725 return this == nil 726 } else if this == nil { 727 return false 728 } 729 if this.PoolId != that1.PoolId { 730 return false 731 } 732 if !this.PoolCoinTotalSupply.Equal(&that1.PoolCoinTotalSupply) { 733 return false 734 } 735 if len(this.ReserveCoins) != len(that1.ReserveCoins) { 736 return false 737 } 738 for i := range this.ReserveCoins { 739 if !this.ReserveCoins[i].Equal(&that1.ReserveCoins[i]) { 740 return false 741 } 742 } 743 return true 744 } 745 func (this *PoolBatch) Equal(that interface{}) bool { 746 if that == nil { 747 return this == nil 748 } 749 750 that1, ok := that.(*PoolBatch) 751 if !ok { 752 that2, ok := that.(PoolBatch) 753 if ok { 754 that1 = &that2 755 } else { 756 return false 757 } 758 } 759 if that1 == nil { 760 return this == nil 761 } else if this == nil { 762 return false 763 } 764 if this.PoolId != that1.PoolId { 765 return false 766 } 767 if this.Index != that1.Index { 768 return false 769 } 770 if this.BeginHeight != that1.BeginHeight { 771 return false 772 } 773 if this.DepositMsgIndex != that1.DepositMsgIndex { 774 return false 775 } 776 if this.WithdrawMsgIndex != that1.WithdrawMsgIndex { 777 return false 778 } 779 if this.SwapMsgIndex != that1.SwapMsgIndex { 780 return false 781 } 782 if this.Executed != that1.Executed { 783 return false 784 } 785 return true 786 } 787 func (m *PoolType) Marshal() (dAtA []byte, err error) { 788 size := m.Size() 789 dAtA = make([]byte, size) 790 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 791 if err != nil { 792 return nil, err 793 } 794 return dAtA[:n], nil 795 } 796 797 func (m *PoolType) MarshalTo(dAtA []byte) (int, error) { 798 size := m.Size() 799 return m.MarshalToSizedBuffer(dAtA[:size]) 800 } 801 802 func (m *PoolType) MarshalToSizedBuffer(dAtA []byte) (int, error) { 803 i := len(dAtA) 804 _ = i 805 var l int 806 _ = l 807 if len(m.Description) > 0 { 808 i -= len(m.Description) 809 copy(dAtA[i:], m.Description) 810 i = encodeVarintLiquidity(dAtA, i, uint64(len(m.Description))) 811 i-- 812 dAtA[i] = 0x2a 813 } 814 if m.MaxReserveCoinNum != 0 { 815 i = encodeVarintLiquidity(dAtA, i, uint64(m.MaxReserveCoinNum)) 816 i-- 817 dAtA[i] = 0x20 818 } 819 if m.MinReserveCoinNum != 0 { 820 i = encodeVarintLiquidity(dAtA, i, uint64(m.MinReserveCoinNum)) 821 i-- 822 dAtA[i] = 0x18 823 } 824 if len(m.Name) > 0 { 825 i -= len(m.Name) 826 copy(dAtA[i:], m.Name) 827 i = encodeVarintLiquidity(dAtA, i, uint64(len(m.Name))) 828 i-- 829 dAtA[i] = 0x12 830 } 831 if m.Id != 0 { 832 i = encodeVarintLiquidity(dAtA, i, uint64(m.Id)) 833 i-- 834 dAtA[i] = 0x8 835 } 836 return len(dAtA) - i, nil 837 } 838 839 func (m *Params) Marshal() (dAtA []byte, err error) { 840 size := m.Size() 841 dAtA = make([]byte, size) 842 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 843 if err != nil { 844 return nil, err 845 } 846 return dAtA[:n], nil 847 } 848 849 func (m *Params) MarshalTo(dAtA []byte) (int, error) { 850 size := m.Size() 851 return m.MarshalToSizedBuffer(dAtA[:size]) 852 } 853 854 func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { 855 i := len(dAtA) 856 _ = i 857 var l int 858 _ = l 859 if m.CircuitBreakerEnabled { 860 i-- 861 if m.CircuitBreakerEnabled { 862 dAtA[i] = 1 863 } else { 864 dAtA[i] = 0 865 } 866 i-- 867 dAtA[i] = 0x50 868 } 869 if m.UnitBatchHeight != 0 { 870 i = encodeVarintLiquidity(dAtA, i, uint64(m.UnitBatchHeight)) 871 i-- 872 dAtA[i] = 0x48 873 } 874 { 875 size := m.MaxOrderAmountRatio.Size() 876 i -= size 877 if _, err := m.MaxOrderAmountRatio.MarshalTo(dAtA[i:]); err != nil { 878 return 0, err 879 } 880 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 881 } 882 i-- 883 dAtA[i] = 0x42 884 { 885 size := m.WithdrawFeeRate.Size() 886 i -= size 887 if _, err := m.WithdrawFeeRate.MarshalTo(dAtA[i:]); err != nil { 888 return 0, err 889 } 890 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 891 } 892 i-- 893 dAtA[i] = 0x3a 894 { 895 size := m.SwapFeeRate.Size() 896 i -= size 897 if _, err := m.SwapFeeRate.MarshalTo(dAtA[i:]); err != nil { 898 return 0, err 899 } 900 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 901 } 902 i-- 903 dAtA[i] = 0x32 904 if len(m.PoolCreationFee) > 0 { 905 for iNdEx := len(m.PoolCreationFee) - 1; iNdEx >= 0; iNdEx-- { 906 { 907 size, err := m.PoolCreationFee[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 908 if err != nil { 909 return 0, err 910 } 911 i -= size 912 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 913 } 914 i-- 915 dAtA[i] = 0x2a 916 } 917 } 918 { 919 size := m.MaxReserveCoinAmount.Size() 920 i -= size 921 if _, err := m.MaxReserveCoinAmount.MarshalTo(dAtA[i:]); err != nil { 922 return 0, err 923 } 924 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 925 } 926 i-- 927 dAtA[i] = 0x22 928 { 929 size := m.InitPoolCoinMintAmount.Size() 930 i -= size 931 if _, err := m.InitPoolCoinMintAmount.MarshalTo(dAtA[i:]); err != nil { 932 return 0, err 933 } 934 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 935 } 936 i-- 937 dAtA[i] = 0x1a 938 { 939 size := m.MinInitDepositAmount.Size() 940 i -= size 941 if _, err := m.MinInitDepositAmount.MarshalTo(dAtA[i:]); err != nil { 942 return 0, err 943 } 944 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 945 } 946 i-- 947 dAtA[i] = 0x12 948 if len(m.PoolTypes) > 0 { 949 for iNdEx := len(m.PoolTypes) - 1; iNdEx >= 0; iNdEx-- { 950 { 951 size, err := m.PoolTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 952 if err != nil { 953 return 0, err 954 } 955 i -= size 956 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 957 } 958 i-- 959 dAtA[i] = 0xa 960 } 961 } 962 return len(dAtA) - i, nil 963 } 964 965 func (m *Pool) Marshal() (dAtA []byte, err error) { 966 size := m.Size() 967 dAtA = make([]byte, size) 968 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 969 if err != nil { 970 return nil, err 971 } 972 return dAtA[:n], nil 973 } 974 975 func (m *Pool) MarshalTo(dAtA []byte) (int, error) { 976 size := m.Size() 977 return m.MarshalToSizedBuffer(dAtA[:size]) 978 } 979 980 func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error) { 981 i := len(dAtA) 982 _ = i 983 var l int 984 _ = l 985 if len(m.PoolCoinDenom) > 0 { 986 i -= len(m.PoolCoinDenom) 987 copy(dAtA[i:], m.PoolCoinDenom) 988 i = encodeVarintLiquidity(dAtA, i, uint64(len(m.PoolCoinDenom))) 989 i-- 990 dAtA[i] = 0x2a 991 } 992 if len(m.ReserveAccountAddress) > 0 { 993 i -= len(m.ReserveAccountAddress) 994 copy(dAtA[i:], m.ReserveAccountAddress) 995 i = encodeVarintLiquidity(dAtA, i, uint64(len(m.ReserveAccountAddress))) 996 i-- 997 dAtA[i] = 0x22 998 } 999 if len(m.ReserveCoinDenoms) > 0 { 1000 for iNdEx := len(m.ReserveCoinDenoms) - 1; iNdEx >= 0; iNdEx-- { 1001 i -= len(m.ReserveCoinDenoms[iNdEx]) 1002 copy(dAtA[i:], m.ReserveCoinDenoms[iNdEx]) 1003 i = encodeVarintLiquidity(dAtA, i, uint64(len(m.ReserveCoinDenoms[iNdEx]))) 1004 i-- 1005 dAtA[i] = 0x1a 1006 } 1007 } 1008 if m.TypeId != 0 { 1009 i = encodeVarintLiquidity(dAtA, i, uint64(m.TypeId)) 1010 i-- 1011 dAtA[i] = 0x10 1012 } 1013 if m.Id != 0 { 1014 i = encodeVarintLiquidity(dAtA, i, uint64(m.Id)) 1015 i-- 1016 dAtA[i] = 0x8 1017 } 1018 return len(dAtA) - i, nil 1019 } 1020 1021 func (m *PoolMetadata) Marshal() (dAtA []byte, err error) { 1022 size := m.Size() 1023 dAtA = make([]byte, size) 1024 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1025 if err != nil { 1026 return nil, err 1027 } 1028 return dAtA[:n], nil 1029 } 1030 1031 func (m *PoolMetadata) MarshalTo(dAtA []byte) (int, error) { 1032 size := m.Size() 1033 return m.MarshalToSizedBuffer(dAtA[:size]) 1034 } 1035 1036 func (m *PoolMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1037 i := len(dAtA) 1038 _ = i 1039 var l int 1040 _ = l 1041 if len(m.ReserveCoins) > 0 { 1042 for iNdEx := len(m.ReserveCoins) - 1; iNdEx >= 0; iNdEx-- { 1043 { 1044 size, err := m.ReserveCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1045 if err != nil { 1046 return 0, err 1047 } 1048 i -= size 1049 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1050 } 1051 i-- 1052 dAtA[i] = 0x1a 1053 } 1054 } 1055 { 1056 size, err := m.PoolCoinTotalSupply.MarshalToSizedBuffer(dAtA[:i]) 1057 if err != nil { 1058 return 0, err 1059 } 1060 i -= size 1061 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1062 } 1063 i-- 1064 dAtA[i] = 0x12 1065 if m.PoolId != 0 { 1066 i = encodeVarintLiquidity(dAtA, i, uint64(m.PoolId)) 1067 i-- 1068 dAtA[i] = 0x8 1069 } 1070 return len(dAtA) - i, nil 1071 } 1072 1073 func (m *PoolBatch) Marshal() (dAtA []byte, err error) { 1074 size := m.Size() 1075 dAtA = make([]byte, size) 1076 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1077 if err != nil { 1078 return nil, err 1079 } 1080 return dAtA[:n], nil 1081 } 1082 1083 func (m *PoolBatch) MarshalTo(dAtA []byte) (int, error) { 1084 size := m.Size() 1085 return m.MarshalToSizedBuffer(dAtA[:size]) 1086 } 1087 1088 func (m *PoolBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1089 i := len(dAtA) 1090 _ = i 1091 var l int 1092 _ = l 1093 if m.Executed { 1094 i-- 1095 if m.Executed { 1096 dAtA[i] = 1 1097 } else { 1098 dAtA[i] = 0 1099 } 1100 i-- 1101 dAtA[i] = 0x38 1102 } 1103 if m.SwapMsgIndex != 0 { 1104 i = encodeVarintLiquidity(dAtA, i, uint64(m.SwapMsgIndex)) 1105 i-- 1106 dAtA[i] = 0x30 1107 } 1108 if m.WithdrawMsgIndex != 0 { 1109 i = encodeVarintLiquidity(dAtA, i, uint64(m.WithdrawMsgIndex)) 1110 i-- 1111 dAtA[i] = 0x28 1112 } 1113 if m.DepositMsgIndex != 0 { 1114 i = encodeVarintLiquidity(dAtA, i, uint64(m.DepositMsgIndex)) 1115 i-- 1116 dAtA[i] = 0x20 1117 } 1118 if m.BeginHeight != 0 { 1119 i = encodeVarintLiquidity(dAtA, i, uint64(m.BeginHeight)) 1120 i-- 1121 dAtA[i] = 0x18 1122 } 1123 if m.Index != 0 { 1124 i = encodeVarintLiquidity(dAtA, i, uint64(m.Index)) 1125 i-- 1126 dAtA[i] = 0x10 1127 } 1128 if m.PoolId != 0 { 1129 i = encodeVarintLiquidity(dAtA, i, uint64(m.PoolId)) 1130 i-- 1131 dAtA[i] = 0x8 1132 } 1133 return len(dAtA) - i, nil 1134 } 1135 1136 func (m *DepositMsgState) Marshal() (dAtA []byte, err error) { 1137 size := m.Size() 1138 dAtA = make([]byte, size) 1139 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1140 if err != nil { 1141 return nil, err 1142 } 1143 return dAtA[:n], nil 1144 } 1145 1146 func (m *DepositMsgState) MarshalTo(dAtA []byte) (int, error) { 1147 size := m.Size() 1148 return m.MarshalToSizedBuffer(dAtA[:size]) 1149 } 1150 1151 func (m *DepositMsgState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1152 i := len(dAtA) 1153 _ = i 1154 var l int 1155 _ = l 1156 if m.Msg != nil { 1157 { 1158 size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) 1159 if err != nil { 1160 return 0, err 1161 } 1162 i -= size 1163 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1164 } 1165 i-- 1166 dAtA[i] = 0x32 1167 } 1168 if m.ToBeDeleted { 1169 i-- 1170 if m.ToBeDeleted { 1171 dAtA[i] = 1 1172 } else { 1173 dAtA[i] = 0 1174 } 1175 i-- 1176 dAtA[i] = 0x28 1177 } 1178 if m.Succeeded { 1179 i-- 1180 if m.Succeeded { 1181 dAtA[i] = 1 1182 } else { 1183 dAtA[i] = 0 1184 } 1185 i-- 1186 dAtA[i] = 0x20 1187 } 1188 if m.Executed { 1189 i-- 1190 if m.Executed { 1191 dAtA[i] = 1 1192 } else { 1193 dAtA[i] = 0 1194 } 1195 i-- 1196 dAtA[i] = 0x18 1197 } 1198 if m.MsgIndex != 0 { 1199 i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgIndex)) 1200 i-- 1201 dAtA[i] = 0x10 1202 } 1203 if m.MsgHeight != 0 { 1204 i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgHeight)) 1205 i-- 1206 dAtA[i] = 0x8 1207 } 1208 return len(dAtA) - i, nil 1209 } 1210 1211 func (m *WithdrawMsgState) Marshal() (dAtA []byte, err error) { 1212 size := m.Size() 1213 dAtA = make([]byte, size) 1214 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1215 if err != nil { 1216 return nil, err 1217 } 1218 return dAtA[:n], nil 1219 } 1220 1221 func (m *WithdrawMsgState) MarshalTo(dAtA []byte) (int, error) { 1222 size := m.Size() 1223 return m.MarshalToSizedBuffer(dAtA[:size]) 1224 } 1225 1226 func (m *WithdrawMsgState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1227 i := len(dAtA) 1228 _ = i 1229 var l int 1230 _ = l 1231 if m.Msg != nil { 1232 { 1233 size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) 1234 if err != nil { 1235 return 0, err 1236 } 1237 i -= size 1238 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1239 } 1240 i-- 1241 dAtA[i] = 0x32 1242 } 1243 if m.ToBeDeleted { 1244 i-- 1245 if m.ToBeDeleted { 1246 dAtA[i] = 1 1247 } else { 1248 dAtA[i] = 0 1249 } 1250 i-- 1251 dAtA[i] = 0x28 1252 } 1253 if m.Succeeded { 1254 i-- 1255 if m.Succeeded { 1256 dAtA[i] = 1 1257 } else { 1258 dAtA[i] = 0 1259 } 1260 i-- 1261 dAtA[i] = 0x20 1262 } 1263 if m.Executed { 1264 i-- 1265 if m.Executed { 1266 dAtA[i] = 1 1267 } else { 1268 dAtA[i] = 0 1269 } 1270 i-- 1271 dAtA[i] = 0x18 1272 } 1273 if m.MsgIndex != 0 { 1274 i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgIndex)) 1275 i-- 1276 dAtA[i] = 0x10 1277 } 1278 if m.MsgHeight != 0 { 1279 i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgHeight)) 1280 i-- 1281 dAtA[i] = 0x8 1282 } 1283 return len(dAtA) - i, nil 1284 } 1285 1286 func (m *SwapMsgState) Marshal() (dAtA []byte, err error) { 1287 size := m.Size() 1288 dAtA = make([]byte, size) 1289 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1290 if err != nil { 1291 return nil, err 1292 } 1293 return dAtA[:n], nil 1294 } 1295 1296 func (m *SwapMsgState) MarshalTo(dAtA []byte) (int, error) { 1297 size := m.Size() 1298 return m.MarshalToSizedBuffer(dAtA[:size]) 1299 } 1300 1301 func (m *SwapMsgState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1302 i := len(dAtA) 1303 _ = i 1304 var l int 1305 _ = l 1306 if m.Msg != nil { 1307 { 1308 size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) 1309 if err != nil { 1310 return 0, err 1311 } 1312 i -= size 1313 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1314 } 1315 i-- 1316 dAtA[i] = 0x52 1317 } 1318 { 1319 size, err := m.ReservedOfferCoinFee.MarshalToSizedBuffer(dAtA[:i]) 1320 if err != nil { 1321 return 0, err 1322 } 1323 i -= size 1324 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1325 } 1326 i-- 1327 dAtA[i] = 0x4a 1328 { 1329 size, err := m.RemainingOfferCoin.MarshalToSizedBuffer(dAtA[:i]) 1330 if err != nil { 1331 return 0, err 1332 } 1333 i -= size 1334 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1335 } 1336 i-- 1337 dAtA[i] = 0x42 1338 { 1339 size, err := m.ExchangedOfferCoin.MarshalToSizedBuffer(dAtA[:i]) 1340 if err != nil { 1341 return 0, err 1342 } 1343 i -= size 1344 i = encodeVarintLiquidity(dAtA, i, uint64(size)) 1345 } 1346 i-- 1347 dAtA[i] = 0x3a 1348 if m.OrderExpiryHeight != 0 { 1349 i = encodeVarintLiquidity(dAtA, i, uint64(m.OrderExpiryHeight)) 1350 i-- 1351 dAtA[i] = 0x30 1352 } 1353 if m.ToBeDeleted { 1354 i-- 1355 if m.ToBeDeleted { 1356 dAtA[i] = 1 1357 } else { 1358 dAtA[i] = 0 1359 } 1360 i-- 1361 dAtA[i] = 0x28 1362 } 1363 if m.Succeeded { 1364 i-- 1365 if m.Succeeded { 1366 dAtA[i] = 1 1367 } else { 1368 dAtA[i] = 0 1369 } 1370 i-- 1371 dAtA[i] = 0x20 1372 } 1373 if m.Executed { 1374 i-- 1375 if m.Executed { 1376 dAtA[i] = 1 1377 } else { 1378 dAtA[i] = 0 1379 } 1380 i-- 1381 dAtA[i] = 0x18 1382 } 1383 if m.MsgIndex != 0 { 1384 i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgIndex)) 1385 i-- 1386 dAtA[i] = 0x10 1387 } 1388 if m.MsgHeight != 0 { 1389 i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgHeight)) 1390 i-- 1391 dAtA[i] = 0x8 1392 } 1393 return len(dAtA) - i, nil 1394 } 1395 1396 func encodeVarintLiquidity(dAtA []byte, offset int, v uint64) int { 1397 offset -= sovLiquidity(v) 1398 base := offset 1399 for v >= 1<<7 { 1400 dAtA[offset] = uint8(v&0x7f | 0x80) 1401 v >>= 7 1402 offset++ 1403 } 1404 dAtA[offset] = uint8(v) 1405 return base 1406 } 1407 func (m *PoolType) Size() (n int) { 1408 if m == nil { 1409 return 0 1410 } 1411 var l int 1412 _ = l 1413 if m.Id != 0 { 1414 n += 1 + sovLiquidity(uint64(m.Id)) 1415 } 1416 l = len(m.Name) 1417 if l > 0 { 1418 n += 1 + l + sovLiquidity(uint64(l)) 1419 } 1420 if m.MinReserveCoinNum != 0 { 1421 n += 1 + sovLiquidity(uint64(m.MinReserveCoinNum)) 1422 } 1423 if m.MaxReserveCoinNum != 0 { 1424 n += 1 + sovLiquidity(uint64(m.MaxReserveCoinNum)) 1425 } 1426 l = len(m.Description) 1427 if l > 0 { 1428 n += 1 + l + sovLiquidity(uint64(l)) 1429 } 1430 return n 1431 } 1432 1433 func (m *Params) Size() (n int) { 1434 if m == nil { 1435 return 0 1436 } 1437 var l int 1438 _ = l 1439 if len(m.PoolTypes) > 0 { 1440 for _, e := range m.PoolTypes { 1441 l = e.Size() 1442 n += 1 + l + sovLiquidity(uint64(l)) 1443 } 1444 } 1445 l = m.MinInitDepositAmount.Size() 1446 n += 1 + l + sovLiquidity(uint64(l)) 1447 l = m.InitPoolCoinMintAmount.Size() 1448 n += 1 + l + sovLiquidity(uint64(l)) 1449 l = m.MaxReserveCoinAmount.Size() 1450 n += 1 + l + sovLiquidity(uint64(l)) 1451 if len(m.PoolCreationFee) > 0 { 1452 for _, e := range m.PoolCreationFee { 1453 l = e.Size() 1454 n += 1 + l + sovLiquidity(uint64(l)) 1455 } 1456 } 1457 l = m.SwapFeeRate.Size() 1458 n += 1 + l + sovLiquidity(uint64(l)) 1459 l = m.WithdrawFeeRate.Size() 1460 n += 1 + l + sovLiquidity(uint64(l)) 1461 l = m.MaxOrderAmountRatio.Size() 1462 n += 1 + l + sovLiquidity(uint64(l)) 1463 if m.UnitBatchHeight != 0 { 1464 n += 1 + sovLiquidity(uint64(m.UnitBatchHeight)) 1465 } 1466 if m.CircuitBreakerEnabled { 1467 n += 2 1468 } 1469 return n 1470 } 1471 1472 func (m *Pool) Size() (n int) { 1473 if m == nil { 1474 return 0 1475 } 1476 var l int 1477 _ = l 1478 if m.Id != 0 { 1479 n += 1 + sovLiquidity(uint64(m.Id)) 1480 } 1481 if m.TypeId != 0 { 1482 n += 1 + sovLiquidity(uint64(m.TypeId)) 1483 } 1484 if len(m.ReserveCoinDenoms) > 0 { 1485 for _, s := range m.ReserveCoinDenoms { 1486 l = len(s) 1487 n += 1 + l + sovLiquidity(uint64(l)) 1488 } 1489 } 1490 l = len(m.ReserveAccountAddress) 1491 if l > 0 { 1492 n += 1 + l + sovLiquidity(uint64(l)) 1493 } 1494 l = len(m.PoolCoinDenom) 1495 if l > 0 { 1496 n += 1 + l + sovLiquidity(uint64(l)) 1497 } 1498 return n 1499 } 1500 1501 func (m *PoolMetadata) Size() (n int) { 1502 if m == nil { 1503 return 0 1504 } 1505 var l int 1506 _ = l 1507 if m.PoolId != 0 { 1508 n += 1 + sovLiquidity(uint64(m.PoolId)) 1509 } 1510 l = m.PoolCoinTotalSupply.Size() 1511 n += 1 + l + sovLiquidity(uint64(l)) 1512 if len(m.ReserveCoins) > 0 { 1513 for _, e := range m.ReserveCoins { 1514 l = e.Size() 1515 n += 1 + l + sovLiquidity(uint64(l)) 1516 } 1517 } 1518 return n 1519 } 1520 1521 func (m *PoolBatch) Size() (n int) { 1522 if m == nil { 1523 return 0 1524 } 1525 var l int 1526 _ = l 1527 if m.PoolId != 0 { 1528 n += 1 + sovLiquidity(uint64(m.PoolId)) 1529 } 1530 if m.Index != 0 { 1531 n += 1 + sovLiquidity(uint64(m.Index)) 1532 } 1533 if m.BeginHeight != 0 { 1534 n += 1 + sovLiquidity(uint64(m.BeginHeight)) 1535 } 1536 if m.DepositMsgIndex != 0 { 1537 n += 1 + sovLiquidity(uint64(m.DepositMsgIndex)) 1538 } 1539 if m.WithdrawMsgIndex != 0 { 1540 n += 1 + sovLiquidity(uint64(m.WithdrawMsgIndex)) 1541 } 1542 if m.SwapMsgIndex != 0 { 1543 n += 1 + sovLiquidity(uint64(m.SwapMsgIndex)) 1544 } 1545 if m.Executed { 1546 n += 2 1547 } 1548 return n 1549 } 1550 1551 func (m *DepositMsgState) Size() (n int) { 1552 if m == nil { 1553 return 0 1554 } 1555 var l int 1556 _ = l 1557 if m.MsgHeight != 0 { 1558 n += 1 + sovLiquidity(uint64(m.MsgHeight)) 1559 } 1560 if m.MsgIndex != 0 { 1561 n += 1 + sovLiquidity(uint64(m.MsgIndex)) 1562 } 1563 if m.Executed { 1564 n += 2 1565 } 1566 if m.Succeeded { 1567 n += 2 1568 } 1569 if m.ToBeDeleted { 1570 n += 2 1571 } 1572 if m.Msg != nil { 1573 l = m.Msg.Size() 1574 n += 1 + l + sovLiquidity(uint64(l)) 1575 } 1576 return n 1577 } 1578 1579 func (m *WithdrawMsgState) Size() (n int) { 1580 if m == nil { 1581 return 0 1582 } 1583 var l int 1584 _ = l 1585 if m.MsgHeight != 0 { 1586 n += 1 + sovLiquidity(uint64(m.MsgHeight)) 1587 } 1588 if m.MsgIndex != 0 { 1589 n += 1 + sovLiquidity(uint64(m.MsgIndex)) 1590 } 1591 if m.Executed { 1592 n += 2 1593 } 1594 if m.Succeeded { 1595 n += 2 1596 } 1597 if m.ToBeDeleted { 1598 n += 2 1599 } 1600 if m.Msg != nil { 1601 l = m.Msg.Size() 1602 n += 1 + l + sovLiquidity(uint64(l)) 1603 } 1604 return n 1605 } 1606 1607 func (m *SwapMsgState) Size() (n int) { 1608 if m == nil { 1609 return 0 1610 } 1611 var l int 1612 _ = l 1613 if m.MsgHeight != 0 { 1614 n += 1 + sovLiquidity(uint64(m.MsgHeight)) 1615 } 1616 if m.MsgIndex != 0 { 1617 n += 1 + sovLiquidity(uint64(m.MsgIndex)) 1618 } 1619 if m.Executed { 1620 n += 2 1621 } 1622 if m.Succeeded { 1623 n += 2 1624 } 1625 if m.ToBeDeleted { 1626 n += 2 1627 } 1628 if m.OrderExpiryHeight != 0 { 1629 n += 1 + sovLiquidity(uint64(m.OrderExpiryHeight)) 1630 } 1631 l = m.ExchangedOfferCoin.Size() 1632 n += 1 + l + sovLiquidity(uint64(l)) 1633 l = m.RemainingOfferCoin.Size() 1634 n += 1 + l + sovLiquidity(uint64(l)) 1635 l = m.ReservedOfferCoinFee.Size() 1636 n += 1 + l + sovLiquidity(uint64(l)) 1637 if m.Msg != nil { 1638 l = m.Msg.Size() 1639 n += 1 + l + sovLiquidity(uint64(l)) 1640 } 1641 return n 1642 } 1643 1644 func sovLiquidity(x uint64) (n int) { 1645 return (math_bits.Len64(x|1) + 6) / 7 1646 } 1647 func sozLiquidity(x uint64) (n int) { 1648 return sovLiquidity(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1649 } 1650 func (m *PoolType) Unmarshal(dAtA []byte) error { 1651 l := len(dAtA) 1652 iNdEx := 0 1653 for iNdEx < l { 1654 preIndex := iNdEx 1655 var wire uint64 1656 for shift := uint(0); ; shift += 7 { 1657 if shift >= 64 { 1658 return ErrIntOverflowLiquidity 1659 } 1660 if iNdEx >= l { 1661 return io.ErrUnexpectedEOF 1662 } 1663 b := dAtA[iNdEx] 1664 iNdEx++ 1665 wire |= uint64(b&0x7F) << shift 1666 if b < 0x80 { 1667 break 1668 } 1669 } 1670 fieldNum := int32(wire >> 3) 1671 wireType := int(wire & 0x7) 1672 if wireType == 4 { 1673 return fmt.Errorf("proto: PoolType: wiretype end group for non-group") 1674 } 1675 if fieldNum <= 0 { 1676 return fmt.Errorf("proto: PoolType: illegal tag %d (wire type %d)", fieldNum, wire) 1677 } 1678 switch fieldNum { 1679 case 1: 1680 if wireType != 0 { 1681 return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) 1682 } 1683 m.Id = 0 1684 for shift := uint(0); ; shift += 7 { 1685 if shift >= 64 { 1686 return ErrIntOverflowLiquidity 1687 } 1688 if iNdEx >= l { 1689 return io.ErrUnexpectedEOF 1690 } 1691 b := dAtA[iNdEx] 1692 iNdEx++ 1693 m.Id |= uint32(b&0x7F) << shift 1694 if b < 0x80 { 1695 break 1696 } 1697 } 1698 case 2: 1699 if wireType != 2 { 1700 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 1701 } 1702 var stringLen uint64 1703 for shift := uint(0); ; shift += 7 { 1704 if shift >= 64 { 1705 return ErrIntOverflowLiquidity 1706 } 1707 if iNdEx >= l { 1708 return io.ErrUnexpectedEOF 1709 } 1710 b := dAtA[iNdEx] 1711 iNdEx++ 1712 stringLen |= uint64(b&0x7F) << shift 1713 if b < 0x80 { 1714 break 1715 } 1716 } 1717 intStringLen := int(stringLen) 1718 if intStringLen < 0 { 1719 return ErrInvalidLengthLiquidity 1720 } 1721 postIndex := iNdEx + intStringLen 1722 if postIndex < 0 { 1723 return ErrInvalidLengthLiquidity 1724 } 1725 if postIndex > l { 1726 return io.ErrUnexpectedEOF 1727 } 1728 m.Name = string(dAtA[iNdEx:postIndex]) 1729 iNdEx = postIndex 1730 case 3: 1731 if wireType != 0 { 1732 return fmt.Errorf("proto: wrong wireType = %d for field MinReserveCoinNum", wireType) 1733 } 1734 m.MinReserveCoinNum = 0 1735 for shift := uint(0); ; shift += 7 { 1736 if shift >= 64 { 1737 return ErrIntOverflowLiquidity 1738 } 1739 if iNdEx >= l { 1740 return io.ErrUnexpectedEOF 1741 } 1742 b := dAtA[iNdEx] 1743 iNdEx++ 1744 m.MinReserveCoinNum |= uint32(b&0x7F) << shift 1745 if b < 0x80 { 1746 break 1747 } 1748 } 1749 case 4: 1750 if wireType != 0 { 1751 return fmt.Errorf("proto: wrong wireType = %d for field MaxReserveCoinNum", wireType) 1752 } 1753 m.MaxReserveCoinNum = 0 1754 for shift := uint(0); ; shift += 7 { 1755 if shift >= 64 { 1756 return ErrIntOverflowLiquidity 1757 } 1758 if iNdEx >= l { 1759 return io.ErrUnexpectedEOF 1760 } 1761 b := dAtA[iNdEx] 1762 iNdEx++ 1763 m.MaxReserveCoinNum |= uint32(b&0x7F) << shift 1764 if b < 0x80 { 1765 break 1766 } 1767 } 1768 case 5: 1769 if wireType != 2 { 1770 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 1771 } 1772 var stringLen uint64 1773 for shift := uint(0); ; shift += 7 { 1774 if shift >= 64 { 1775 return ErrIntOverflowLiquidity 1776 } 1777 if iNdEx >= l { 1778 return io.ErrUnexpectedEOF 1779 } 1780 b := dAtA[iNdEx] 1781 iNdEx++ 1782 stringLen |= uint64(b&0x7F) << shift 1783 if b < 0x80 { 1784 break 1785 } 1786 } 1787 intStringLen := int(stringLen) 1788 if intStringLen < 0 { 1789 return ErrInvalidLengthLiquidity 1790 } 1791 postIndex := iNdEx + intStringLen 1792 if postIndex < 0 { 1793 return ErrInvalidLengthLiquidity 1794 } 1795 if postIndex > l { 1796 return io.ErrUnexpectedEOF 1797 } 1798 m.Description = string(dAtA[iNdEx:postIndex]) 1799 iNdEx = postIndex 1800 default: 1801 iNdEx = preIndex 1802 skippy, err := skipLiquidity(dAtA[iNdEx:]) 1803 if err != nil { 1804 return err 1805 } 1806 if (skippy < 0) || (iNdEx+skippy) < 0 { 1807 return ErrInvalidLengthLiquidity 1808 } 1809 if (iNdEx + skippy) > l { 1810 return io.ErrUnexpectedEOF 1811 } 1812 iNdEx += skippy 1813 } 1814 } 1815 1816 if iNdEx > l { 1817 return io.ErrUnexpectedEOF 1818 } 1819 return nil 1820 } 1821 func (m *Params) Unmarshal(dAtA []byte) error { 1822 l := len(dAtA) 1823 iNdEx := 0 1824 for iNdEx < l { 1825 preIndex := iNdEx 1826 var wire uint64 1827 for shift := uint(0); ; shift += 7 { 1828 if shift >= 64 { 1829 return ErrIntOverflowLiquidity 1830 } 1831 if iNdEx >= l { 1832 return io.ErrUnexpectedEOF 1833 } 1834 b := dAtA[iNdEx] 1835 iNdEx++ 1836 wire |= uint64(b&0x7F) << shift 1837 if b < 0x80 { 1838 break 1839 } 1840 } 1841 fieldNum := int32(wire >> 3) 1842 wireType := int(wire & 0x7) 1843 if wireType == 4 { 1844 return fmt.Errorf("proto: Params: wiretype end group for non-group") 1845 } 1846 if fieldNum <= 0 { 1847 return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) 1848 } 1849 switch fieldNum { 1850 case 1: 1851 if wireType != 2 { 1852 return fmt.Errorf("proto: wrong wireType = %d for field PoolTypes", wireType) 1853 } 1854 var msglen int 1855 for shift := uint(0); ; shift += 7 { 1856 if shift >= 64 { 1857 return ErrIntOverflowLiquidity 1858 } 1859 if iNdEx >= l { 1860 return io.ErrUnexpectedEOF 1861 } 1862 b := dAtA[iNdEx] 1863 iNdEx++ 1864 msglen |= int(b&0x7F) << shift 1865 if b < 0x80 { 1866 break 1867 } 1868 } 1869 if msglen < 0 { 1870 return ErrInvalidLengthLiquidity 1871 } 1872 postIndex := iNdEx + msglen 1873 if postIndex < 0 { 1874 return ErrInvalidLengthLiquidity 1875 } 1876 if postIndex > l { 1877 return io.ErrUnexpectedEOF 1878 } 1879 m.PoolTypes = append(m.PoolTypes, PoolType{}) 1880 if err := m.PoolTypes[len(m.PoolTypes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1881 return err 1882 } 1883 iNdEx = postIndex 1884 case 2: 1885 if wireType != 2 { 1886 return fmt.Errorf("proto: wrong wireType = %d for field MinInitDepositAmount", wireType) 1887 } 1888 var stringLen uint64 1889 for shift := uint(0); ; shift += 7 { 1890 if shift >= 64 { 1891 return ErrIntOverflowLiquidity 1892 } 1893 if iNdEx >= l { 1894 return io.ErrUnexpectedEOF 1895 } 1896 b := dAtA[iNdEx] 1897 iNdEx++ 1898 stringLen |= uint64(b&0x7F) << shift 1899 if b < 0x80 { 1900 break 1901 } 1902 } 1903 intStringLen := int(stringLen) 1904 if intStringLen < 0 { 1905 return ErrInvalidLengthLiquidity 1906 } 1907 postIndex := iNdEx + intStringLen 1908 if postIndex < 0 { 1909 return ErrInvalidLengthLiquidity 1910 } 1911 if postIndex > l { 1912 return io.ErrUnexpectedEOF 1913 } 1914 if err := m.MinInitDepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1915 return err 1916 } 1917 iNdEx = postIndex 1918 case 3: 1919 if wireType != 2 { 1920 return fmt.Errorf("proto: wrong wireType = %d for field InitPoolCoinMintAmount", wireType) 1921 } 1922 var stringLen uint64 1923 for shift := uint(0); ; shift += 7 { 1924 if shift >= 64 { 1925 return ErrIntOverflowLiquidity 1926 } 1927 if iNdEx >= l { 1928 return io.ErrUnexpectedEOF 1929 } 1930 b := dAtA[iNdEx] 1931 iNdEx++ 1932 stringLen |= uint64(b&0x7F) << shift 1933 if b < 0x80 { 1934 break 1935 } 1936 } 1937 intStringLen := int(stringLen) 1938 if intStringLen < 0 { 1939 return ErrInvalidLengthLiquidity 1940 } 1941 postIndex := iNdEx + intStringLen 1942 if postIndex < 0 { 1943 return ErrInvalidLengthLiquidity 1944 } 1945 if postIndex > l { 1946 return io.ErrUnexpectedEOF 1947 } 1948 if err := m.InitPoolCoinMintAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1949 return err 1950 } 1951 iNdEx = postIndex 1952 case 4: 1953 if wireType != 2 { 1954 return fmt.Errorf("proto: wrong wireType = %d for field MaxReserveCoinAmount", wireType) 1955 } 1956 var stringLen uint64 1957 for shift := uint(0); ; shift += 7 { 1958 if shift >= 64 { 1959 return ErrIntOverflowLiquidity 1960 } 1961 if iNdEx >= l { 1962 return io.ErrUnexpectedEOF 1963 } 1964 b := dAtA[iNdEx] 1965 iNdEx++ 1966 stringLen |= uint64(b&0x7F) << shift 1967 if b < 0x80 { 1968 break 1969 } 1970 } 1971 intStringLen := int(stringLen) 1972 if intStringLen < 0 { 1973 return ErrInvalidLengthLiquidity 1974 } 1975 postIndex := iNdEx + intStringLen 1976 if postIndex < 0 { 1977 return ErrInvalidLengthLiquidity 1978 } 1979 if postIndex > l { 1980 return io.ErrUnexpectedEOF 1981 } 1982 if err := m.MaxReserveCoinAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1983 return err 1984 } 1985 iNdEx = postIndex 1986 case 5: 1987 if wireType != 2 { 1988 return fmt.Errorf("proto: wrong wireType = %d for field PoolCreationFee", wireType) 1989 } 1990 var msglen int 1991 for shift := uint(0); ; shift += 7 { 1992 if shift >= 64 { 1993 return ErrIntOverflowLiquidity 1994 } 1995 if iNdEx >= l { 1996 return io.ErrUnexpectedEOF 1997 } 1998 b := dAtA[iNdEx] 1999 iNdEx++ 2000 msglen |= int(b&0x7F) << shift 2001 if b < 0x80 { 2002 break 2003 } 2004 } 2005 if msglen < 0 { 2006 return ErrInvalidLengthLiquidity 2007 } 2008 postIndex := iNdEx + msglen 2009 if postIndex < 0 { 2010 return ErrInvalidLengthLiquidity 2011 } 2012 if postIndex > l { 2013 return io.ErrUnexpectedEOF 2014 } 2015 m.PoolCreationFee = append(m.PoolCreationFee, types.Coin{}) 2016 if err := m.PoolCreationFee[len(m.PoolCreationFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2017 return err 2018 } 2019 iNdEx = postIndex 2020 case 6: 2021 if wireType != 2 { 2022 return fmt.Errorf("proto: wrong wireType = %d for field SwapFeeRate", wireType) 2023 } 2024 var stringLen uint64 2025 for shift := uint(0); ; shift += 7 { 2026 if shift >= 64 { 2027 return ErrIntOverflowLiquidity 2028 } 2029 if iNdEx >= l { 2030 return io.ErrUnexpectedEOF 2031 } 2032 b := dAtA[iNdEx] 2033 iNdEx++ 2034 stringLen |= uint64(b&0x7F) << shift 2035 if b < 0x80 { 2036 break 2037 } 2038 } 2039 intStringLen := int(stringLen) 2040 if intStringLen < 0 { 2041 return ErrInvalidLengthLiquidity 2042 } 2043 postIndex := iNdEx + intStringLen 2044 if postIndex < 0 { 2045 return ErrInvalidLengthLiquidity 2046 } 2047 if postIndex > l { 2048 return io.ErrUnexpectedEOF 2049 } 2050 if err := m.SwapFeeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2051 return err 2052 } 2053 iNdEx = postIndex 2054 case 7: 2055 if wireType != 2 { 2056 return fmt.Errorf("proto: wrong wireType = %d for field WithdrawFeeRate", wireType) 2057 } 2058 var stringLen uint64 2059 for shift := uint(0); ; shift += 7 { 2060 if shift >= 64 { 2061 return ErrIntOverflowLiquidity 2062 } 2063 if iNdEx >= l { 2064 return io.ErrUnexpectedEOF 2065 } 2066 b := dAtA[iNdEx] 2067 iNdEx++ 2068 stringLen |= uint64(b&0x7F) << shift 2069 if b < 0x80 { 2070 break 2071 } 2072 } 2073 intStringLen := int(stringLen) 2074 if intStringLen < 0 { 2075 return ErrInvalidLengthLiquidity 2076 } 2077 postIndex := iNdEx + intStringLen 2078 if postIndex < 0 { 2079 return ErrInvalidLengthLiquidity 2080 } 2081 if postIndex > l { 2082 return io.ErrUnexpectedEOF 2083 } 2084 if err := m.WithdrawFeeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2085 return err 2086 } 2087 iNdEx = postIndex 2088 case 8: 2089 if wireType != 2 { 2090 return fmt.Errorf("proto: wrong wireType = %d for field MaxOrderAmountRatio", wireType) 2091 } 2092 var stringLen uint64 2093 for shift := uint(0); ; shift += 7 { 2094 if shift >= 64 { 2095 return ErrIntOverflowLiquidity 2096 } 2097 if iNdEx >= l { 2098 return io.ErrUnexpectedEOF 2099 } 2100 b := dAtA[iNdEx] 2101 iNdEx++ 2102 stringLen |= uint64(b&0x7F) << shift 2103 if b < 0x80 { 2104 break 2105 } 2106 } 2107 intStringLen := int(stringLen) 2108 if intStringLen < 0 { 2109 return ErrInvalidLengthLiquidity 2110 } 2111 postIndex := iNdEx + intStringLen 2112 if postIndex < 0 { 2113 return ErrInvalidLengthLiquidity 2114 } 2115 if postIndex > l { 2116 return io.ErrUnexpectedEOF 2117 } 2118 if err := m.MaxOrderAmountRatio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2119 return err 2120 } 2121 iNdEx = postIndex 2122 case 9: 2123 if wireType != 0 { 2124 return fmt.Errorf("proto: wrong wireType = %d for field UnitBatchHeight", wireType) 2125 } 2126 m.UnitBatchHeight = 0 2127 for shift := uint(0); ; shift += 7 { 2128 if shift >= 64 { 2129 return ErrIntOverflowLiquidity 2130 } 2131 if iNdEx >= l { 2132 return io.ErrUnexpectedEOF 2133 } 2134 b := dAtA[iNdEx] 2135 iNdEx++ 2136 m.UnitBatchHeight |= uint32(b&0x7F) << shift 2137 if b < 0x80 { 2138 break 2139 } 2140 } 2141 case 10: 2142 if wireType != 0 { 2143 return fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerEnabled", wireType) 2144 } 2145 var v int 2146 for shift := uint(0); ; shift += 7 { 2147 if shift >= 64 { 2148 return ErrIntOverflowLiquidity 2149 } 2150 if iNdEx >= l { 2151 return io.ErrUnexpectedEOF 2152 } 2153 b := dAtA[iNdEx] 2154 iNdEx++ 2155 v |= int(b&0x7F) << shift 2156 if b < 0x80 { 2157 break 2158 } 2159 } 2160 m.CircuitBreakerEnabled = bool(v != 0) 2161 default: 2162 iNdEx = preIndex 2163 skippy, err := skipLiquidity(dAtA[iNdEx:]) 2164 if err != nil { 2165 return err 2166 } 2167 if (skippy < 0) || (iNdEx+skippy) < 0 { 2168 return ErrInvalidLengthLiquidity 2169 } 2170 if (iNdEx + skippy) > l { 2171 return io.ErrUnexpectedEOF 2172 } 2173 iNdEx += skippy 2174 } 2175 } 2176 2177 if iNdEx > l { 2178 return io.ErrUnexpectedEOF 2179 } 2180 return nil 2181 } 2182 func (m *Pool) Unmarshal(dAtA []byte) error { 2183 l := len(dAtA) 2184 iNdEx := 0 2185 for iNdEx < l { 2186 preIndex := iNdEx 2187 var wire uint64 2188 for shift := uint(0); ; shift += 7 { 2189 if shift >= 64 { 2190 return ErrIntOverflowLiquidity 2191 } 2192 if iNdEx >= l { 2193 return io.ErrUnexpectedEOF 2194 } 2195 b := dAtA[iNdEx] 2196 iNdEx++ 2197 wire |= uint64(b&0x7F) << shift 2198 if b < 0x80 { 2199 break 2200 } 2201 } 2202 fieldNum := int32(wire >> 3) 2203 wireType := int(wire & 0x7) 2204 if wireType == 4 { 2205 return fmt.Errorf("proto: Pool: wiretype end group for non-group") 2206 } 2207 if fieldNum <= 0 { 2208 return fmt.Errorf("proto: Pool: illegal tag %d (wire type %d)", fieldNum, wire) 2209 } 2210 switch fieldNum { 2211 case 1: 2212 if wireType != 0 { 2213 return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) 2214 } 2215 m.Id = 0 2216 for shift := uint(0); ; shift += 7 { 2217 if shift >= 64 { 2218 return ErrIntOverflowLiquidity 2219 } 2220 if iNdEx >= l { 2221 return io.ErrUnexpectedEOF 2222 } 2223 b := dAtA[iNdEx] 2224 iNdEx++ 2225 m.Id |= uint64(b&0x7F) << shift 2226 if b < 0x80 { 2227 break 2228 } 2229 } 2230 case 2: 2231 if wireType != 0 { 2232 return fmt.Errorf("proto: wrong wireType = %d for field TypeId", wireType) 2233 } 2234 m.TypeId = 0 2235 for shift := uint(0); ; shift += 7 { 2236 if shift >= 64 { 2237 return ErrIntOverflowLiquidity 2238 } 2239 if iNdEx >= l { 2240 return io.ErrUnexpectedEOF 2241 } 2242 b := dAtA[iNdEx] 2243 iNdEx++ 2244 m.TypeId |= uint32(b&0x7F) << shift 2245 if b < 0x80 { 2246 break 2247 } 2248 } 2249 case 3: 2250 if wireType != 2 { 2251 return fmt.Errorf("proto: wrong wireType = %d for field ReserveCoinDenoms", wireType) 2252 } 2253 var stringLen uint64 2254 for shift := uint(0); ; shift += 7 { 2255 if shift >= 64 { 2256 return ErrIntOverflowLiquidity 2257 } 2258 if iNdEx >= l { 2259 return io.ErrUnexpectedEOF 2260 } 2261 b := dAtA[iNdEx] 2262 iNdEx++ 2263 stringLen |= uint64(b&0x7F) << shift 2264 if b < 0x80 { 2265 break 2266 } 2267 } 2268 intStringLen := int(stringLen) 2269 if intStringLen < 0 { 2270 return ErrInvalidLengthLiquidity 2271 } 2272 postIndex := iNdEx + intStringLen 2273 if postIndex < 0 { 2274 return ErrInvalidLengthLiquidity 2275 } 2276 if postIndex > l { 2277 return io.ErrUnexpectedEOF 2278 } 2279 m.ReserveCoinDenoms = append(m.ReserveCoinDenoms, string(dAtA[iNdEx:postIndex])) 2280 iNdEx = postIndex 2281 case 4: 2282 if wireType != 2 { 2283 return fmt.Errorf("proto: wrong wireType = %d for field ReserveAccountAddress", wireType) 2284 } 2285 var stringLen uint64 2286 for shift := uint(0); ; shift += 7 { 2287 if shift >= 64 { 2288 return ErrIntOverflowLiquidity 2289 } 2290 if iNdEx >= l { 2291 return io.ErrUnexpectedEOF 2292 } 2293 b := dAtA[iNdEx] 2294 iNdEx++ 2295 stringLen |= uint64(b&0x7F) << shift 2296 if b < 0x80 { 2297 break 2298 } 2299 } 2300 intStringLen := int(stringLen) 2301 if intStringLen < 0 { 2302 return ErrInvalidLengthLiquidity 2303 } 2304 postIndex := iNdEx + intStringLen 2305 if postIndex < 0 { 2306 return ErrInvalidLengthLiquidity 2307 } 2308 if postIndex > l { 2309 return io.ErrUnexpectedEOF 2310 } 2311 m.ReserveAccountAddress = string(dAtA[iNdEx:postIndex]) 2312 iNdEx = postIndex 2313 case 5: 2314 if wireType != 2 { 2315 return fmt.Errorf("proto: wrong wireType = %d for field PoolCoinDenom", wireType) 2316 } 2317 var stringLen uint64 2318 for shift := uint(0); ; shift += 7 { 2319 if shift >= 64 { 2320 return ErrIntOverflowLiquidity 2321 } 2322 if iNdEx >= l { 2323 return io.ErrUnexpectedEOF 2324 } 2325 b := dAtA[iNdEx] 2326 iNdEx++ 2327 stringLen |= uint64(b&0x7F) << shift 2328 if b < 0x80 { 2329 break 2330 } 2331 } 2332 intStringLen := int(stringLen) 2333 if intStringLen < 0 { 2334 return ErrInvalidLengthLiquidity 2335 } 2336 postIndex := iNdEx + intStringLen 2337 if postIndex < 0 { 2338 return ErrInvalidLengthLiquidity 2339 } 2340 if postIndex > l { 2341 return io.ErrUnexpectedEOF 2342 } 2343 m.PoolCoinDenom = string(dAtA[iNdEx:postIndex]) 2344 iNdEx = postIndex 2345 default: 2346 iNdEx = preIndex 2347 skippy, err := skipLiquidity(dAtA[iNdEx:]) 2348 if err != nil { 2349 return err 2350 } 2351 if (skippy < 0) || (iNdEx+skippy) < 0 { 2352 return ErrInvalidLengthLiquidity 2353 } 2354 if (iNdEx + skippy) > l { 2355 return io.ErrUnexpectedEOF 2356 } 2357 iNdEx += skippy 2358 } 2359 } 2360 2361 if iNdEx > l { 2362 return io.ErrUnexpectedEOF 2363 } 2364 return nil 2365 } 2366 func (m *PoolMetadata) Unmarshal(dAtA []byte) error { 2367 l := len(dAtA) 2368 iNdEx := 0 2369 for iNdEx < l { 2370 preIndex := iNdEx 2371 var wire uint64 2372 for shift := uint(0); ; shift += 7 { 2373 if shift >= 64 { 2374 return ErrIntOverflowLiquidity 2375 } 2376 if iNdEx >= l { 2377 return io.ErrUnexpectedEOF 2378 } 2379 b := dAtA[iNdEx] 2380 iNdEx++ 2381 wire |= uint64(b&0x7F) << shift 2382 if b < 0x80 { 2383 break 2384 } 2385 } 2386 fieldNum := int32(wire >> 3) 2387 wireType := int(wire & 0x7) 2388 if wireType == 4 { 2389 return fmt.Errorf("proto: PoolMetadata: wiretype end group for non-group") 2390 } 2391 if fieldNum <= 0 { 2392 return fmt.Errorf("proto: PoolMetadata: illegal tag %d (wire type %d)", fieldNum, wire) 2393 } 2394 switch fieldNum { 2395 case 1: 2396 if wireType != 0 { 2397 return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) 2398 } 2399 m.PoolId = 0 2400 for shift := uint(0); ; shift += 7 { 2401 if shift >= 64 { 2402 return ErrIntOverflowLiquidity 2403 } 2404 if iNdEx >= l { 2405 return io.ErrUnexpectedEOF 2406 } 2407 b := dAtA[iNdEx] 2408 iNdEx++ 2409 m.PoolId |= uint64(b&0x7F) << shift 2410 if b < 0x80 { 2411 break 2412 } 2413 } 2414 case 2: 2415 if wireType != 2 { 2416 return fmt.Errorf("proto: wrong wireType = %d for field PoolCoinTotalSupply", wireType) 2417 } 2418 var msglen int 2419 for shift := uint(0); ; shift += 7 { 2420 if shift >= 64 { 2421 return ErrIntOverflowLiquidity 2422 } 2423 if iNdEx >= l { 2424 return io.ErrUnexpectedEOF 2425 } 2426 b := dAtA[iNdEx] 2427 iNdEx++ 2428 msglen |= int(b&0x7F) << shift 2429 if b < 0x80 { 2430 break 2431 } 2432 } 2433 if msglen < 0 { 2434 return ErrInvalidLengthLiquidity 2435 } 2436 postIndex := iNdEx + msglen 2437 if postIndex < 0 { 2438 return ErrInvalidLengthLiquidity 2439 } 2440 if postIndex > l { 2441 return io.ErrUnexpectedEOF 2442 } 2443 if err := m.PoolCoinTotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2444 return err 2445 } 2446 iNdEx = postIndex 2447 case 3: 2448 if wireType != 2 { 2449 return fmt.Errorf("proto: wrong wireType = %d for field ReserveCoins", wireType) 2450 } 2451 var msglen int 2452 for shift := uint(0); ; shift += 7 { 2453 if shift >= 64 { 2454 return ErrIntOverflowLiquidity 2455 } 2456 if iNdEx >= l { 2457 return io.ErrUnexpectedEOF 2458 } 2459 b := dAtA[iNdEx] 2460 iNdEx++ 2461 msglen |= int(b&0x7F) << shift 2462 if b < 0x80 { 2463 break 2464 } 2465 } 2466 if msglen < 0 { 2467 return ErrInvalidLengthLiquidity 2468 } 2469 postIndex := iNdEx + msglen 2470 if postIndex < 0 { 2471 return ErrInvalidLengthLiquidity 2472 } 2473 if postIndex > l { 2474 return io.ErrUnexpectedEOF 2475 } 2476 m.ReserveCoins = append(m.ReserveCoins, types.Coin{}) 2477 if err := m.ReserveCoins[len(m.ReserveCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2478 return err 2479 } 2480 iNdEx = postIndex 2481 default: 2482 iNdEx = preIndex 2483 skippy, err := skipLiquidity(dAtA[iNdEx:]) 2484 if err != nil { 2485 return err 2486 } 2487 if (skippy < 0) || (iNdEx+skippy) < 0 { 2488 return ErrInvalidLengthLiquidity 2489 } 2490 if (iNdEx + skippy) > l { 2491 return io.ErrUnexpectedEOF 2492 } 2493 iNdEx += skippy 2494 } 2495 } 2496 2497 if iNdEx > l { 2498 return io.ErrUnexpectedEOF 2499 } 2500 return nil 2501 } 2502 func (m *PoolBatch) Unmarshal(dAtA []byte) error { 2503 l := len(dAtA) 2504 iNdEx := 0 2505 for iNdEx < l { 2506 preIndex := iNdEx 2507 var wire uint64 2508 for shift := uint(0); ; shift += 7 { 2509 if shift >= 64 { 2510 return ErrIntOverflowLiquidity 2511 } 2512 if iNdEx >= l { 2513 return io.ErrUnexpectedEOF 2514 } 2515 b := dAtA[iNdEx] 2516 iNdEx++ 2517 wire |= uint64(b&0x7F) << shift 2518 if b < 0x80 { 2519 break 2520 } 2521 } 2522 fieldNum := int32(wire >> 3) 2523 wireType := int(wire & 0x7) 2524 if wireType == 4 { 2525 return fmt.Errorf("proto: PoolBatch: wiretype end group for non-group") 2526 } 2527 if fieldNum <= 0 { 2528 return fmt.Errorf("proto: PoolBatch: illegal tag %d (wire type %d)", fieldNum, wire) 2529 } 2530 switch fieldNum { 2531 case 1: 2532 if wireType != 0 { 2533 return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) 2534 } 2535 m.PoolId = 0 2536 for shift := uint(0); ; shift += 7 { 2537 if shift >= 64 { 2538 return ErrIntOverflowLiquidity 2539 } 2540 if iNdEx >= l { 2541 return io.ErrUnexpectedEOF 2542 } 2543 b := dAtA[iNdEx] 2544 iNdEx++ 2545 m.PoolId |= uint64(b&0x7F) << shift 2546 if b < 0x80 { 2547 break 2548 } 2549 } 2550 case 2: 2551 if wireType != 0 { 2552 return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) 2553 } 2554 m.Index = 0 2555 for shift := uint(0); ; shift += 7 { 2556 if shift >= 64 { 2557 return ErrIntOverflowLiquidity 2558 } 2559 if iNdEx >= l { 2560 return io.ErrUnexpectedEOF 2561 } 2562 b := dAtA[iNdEx] 2563 iNdEx++ 2564 m.Index |= uint64(b&0x7F) << shift 2565 if b < 0x80 { 2566 break 2567 } 2568 } 2569 case 3: 2570 if wireType != 0 { 2571 return fmt.Errorf("proto: wrong wireType = %d for field BeginHeight", wireType) 2572 } 2573 m.BeginHeight = 0 2574 for shift := uint(0); ; shift += 7 { 2575 if shift >= 64 { 2576 return ErrIntOverflowLiquidity 2577 } 2578 if iNdEx >= l { 2579 return io.ErrUnexpectedEOF 2580 } 2581 b := dAtA[iNdEx] 2582 iNdEx++ 2583 m.BeginHeight |= int64(b&0x7F) << shift 2584 if b < 0x80 { 2585 break 2586 } 2587 } 2588 case 4: 2589 if wireType != 0 { 2590 return fmt.Errorf("proto: wrong wireType = %d for field DepositMsgIndex", wireType) 2591 } 2592 m.DepositMsgIndex = 0 2593 for shift := uint(0); ; shift += 7 { 2594 if shift >= 64 { 2595 return ErrIntOverflowLiquidity 2596 } 2597 if iNdEx >= l { 2598 return io.ErrUnexpectedEOF 2599 } 2600 b := dAtA[iNdEx] 2601 iNdEx++ 2602 m.DepositMsgIndex |= uint64(b&0x7F) << shift 2603 if b < 0x80 { 2604 break 2605 } 2606 } 2607 case 5: 2608 if wireType != 0 { 2609 return fmt.Errorf("proto: wrong wireType = %d for field WithdrawMsgIndex", wireType) 2610 } 2611 m.WithdrawMsgIndex = 0 2612 for shift := uint(0); ; shift += 7 { 2613 if shift >= 64 { 2614 return ErrIntOverflowLiquidity 2615 } 2616 if iNdEx >= l { 2617 return io.ErrUnexpectedEOF 2618 } 2619 b := dAtA[iNdEx] 2620 iNdEx++ 2621 m.WithdrawMsgIndex |= uint64(b&0x7F) << shift 2622 if b < 0x80 { 2623 break 2624 } 2625 } 2626 case 6: 2627 if wireType != 0 { 2628 return fmt.Errorf("proto: wrong wireType = %d for field SwapMsgIndex", wireType) 2629 } 2630 m.SwapMsgIndex = 0 2631 for shift := uint(0); ; shift += 7 { 2632 if shift >= 64 { 2633 return ErrIntOverflowLiquidity 2634 } 2635 if iNdEx >= l { 2636 return io.ErrUnexpectedEOF 2637 } 2638 b := dAtA[iNdEx] 2639 iNdEx++ 2640 m.SwapMsgIndex |= uint64(b&0x7F) << shift 2641 if b < 0x80 { 2642 break 2643 } 2644 } 2645 case 7: 2646 if wireType != 0 { 2647 return fmt.Errorf("proto: wrong wireType = %d for field Executed", wireType) 2648 } 2649 var v int 2650 for shift := uint(0); ; shift += 7 { 2651 if shift >= 64 { 2652 return ErrIntOverflowLiquidity 2653 } 2654 if iNdEx >= l { 2655 return io.ErrUnexpectedEOF 2656 } 2657 b := dAtA[iNdEx] 2658 iNdEx++ 2659 v |= int(b&0x7F) << shift 2660 if b < 0x80 { 2661 break 2662 } 2663 } 2664 m.Executed = bool(v != 0) 2665 default: 2666 iNdEx = preIndex 2667 skippy, err := skipLiquidity(dAtA[iNdEx:]) 2668 if err != nil { 2669 return err 2670 } 2671 if (skippy < 0) || (iNdEx+skippy) < 0 { 2672 return ErrInvalidLengthLiquidity 2673 } 2674 if (iNdEx + skippy) > l { 2675 return io.ErrUnexpectedEOF 2676 } 2677 iNdEx += skippy 2678 } 2679 } 2680 2681 if iNdEx > l { 2682 return io.ErrUnexpectedEOF 2683 } 2684 return nil 2685 } 2686 func (m *DepositMsgState) Unmarshal(dAtA []byte) error { 2687 l := len(dAtA) 2688 iNdEx := 0 2689 for iNdEx < l { 2690 preIndex := iNdEx 2691 var wire uint64 2692 for shift := uint(0); ; shift += 7 { 2693 if shift >= 64 { 2694 return ErrIntOverflowLiquidity 2695 } 2696 if iNdEx >= l { 2697 return io.ErrUnexpectedEOF 2698 } 2699 b := dAtA[iNdEx] 2700 iNdEx++ 2701 wire |= uint64(b&0x7F) << shift 2702 if b < 0x80 { 2703 break 2704 } 2705 } 2706 fieldNum := int32(wire >> 3) 2707 wireType := int(wire & 0x7) 2708 if wireType == 4 { 2709 return fmt.Errorf("proto: DepositMsgState: wiretype end group for non-group") 2710 } 2711 if fieldNum <= 0 { 2712 return fmt.Errorf("proto: DepositMsgState: illegal tag %d (wire type %d)", fieldNum, wire) 2713 } 2714 switch fieldNum { 2715 case 1: 2716 if wireType != 0 { 2717 return fmt.Errorf("proto: wrong wireType = %d for field MsgHeight", wireType) 2718 } 2719 m.MsgHeight = 0 2720 for shift := uint(0); ; shift += 7 { 2721 if shift >= 64 { 2722 return ErrIntOverflowLiquidity 2723 } 2724 if iNdEx >= l { 2725 return io.ErrUnexpectedEOF 2726 } 2727 b := dAtA[iNdEx] 2728 iNdEx++ 2729 m.MsgHeight |= int64(b&0x7F) << shift 2730 if b < 0x80 { 2731 break 2732 } 2733 } 2734 case 2: 2735 if wireType != 0 { 2736 return fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType) 2737 } 2738 m.MsgIndex = 0 2739 for shift := uint(0); ; shift += 7 { 2740 if shift >= 64 { 2741 return ErrIntOverflowLiquidity 2742 } 2743 if iNdEx >= l { 2744 return io.ErrUnexpectedEOF 2745 } 2746 b := dAtA[iNdEx] 2747 iNdEx++ 2748 m.MsgIndex |= uint64(b&0x7F) << shift 2749 if b < 0x80 { 2750 break 2751 } 2752 } 2753 case 3: 2754 if wireType != 0 { 2755 return fmt.Errorf("proto: wrong wireType = %d for field Executed", wireType) 2756 } 2757 var v int 2758 for shift := uint(0); ; shift += 7 { 2759 if shift >= 64 { 2760 return ErrIntOverflowLiquidity 2761 } 2762 if iNdEx >= l { 2763 return io.ErrUnexpectedEOF 2764 } 2765 b := dAtA[iNdEx] 2766 iNdEx++ 2767 v |= int(b&0x7F) << shift 2768 if b < 0x80 { 2769 break 2770 } 2771 } 2772 m.Executed = bool(v != 0) 2773 case 4: 2774 if wireType != 0 { 2775 return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) 2776 } 2777 var v int 2778 for shift := uint(0); ; shift += 7 { 2779 if shift >= 64 { 2780 return ErrIntOverflowLiquidity 2781 } 2782 if iNdEx >= l { 2783 return io.ErrUnexpectedEOF 2784 } 2785 b := dAtA[iNdEx] 2786 iNdEx++ 2787 v |= int(b&0x7F) << shift 2788 if b < 0x80 { 2789 break 2790 } 2791 } 2792 m.Succeeded = bool(v != 0) 2793 case 5: 2794 if wireType != 0 { 2795 return fmt.Errorf("proto: wrong wireType = %d for field ToBeDeleted", wireType) 2796 } 2797 var v int 2798 for shift := uint(0); ; shift += 7 { 2799 if shift >= 64 { 2800 return ErrIntOverflowLiquidity 2801 } 2802 if iNdEx >= l { 2803 return io.ErrUnexpectedEOF 2804 } 2805 b := dAtA[iNdEx] 2806 iNdEx++ 2807 v |= int(b&0x7F) << shift 2808 if b < 0x80 { 2809 break 2810 } 2811 } 2812 m.ToBeDeleted = bool(v != 0) 2813 case 6: 2814 if wireType != 2 { 2815 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 2816 } 2817 var msglen int 2818 for shift := uint(0); ; shift += 7 { 2819 if shift >= 64 { 2820 return ErrIntOverflowLiquidity 2821 } 2822 if iNdEx >= l { 2823 return io.ErrUnexpectedEOF 2824 } 2825 b := dAtA[iNdEx] 2826 iNdEx++ 2827 msglen |= int(b&0x7F) << shift 2828 if b < 0x80 { 2829 break 2830 } 2831 } 2832 if msglen < 0 { 2833 return ErrInvalidLengthLiquidity 2834 } 2835 postIndex := iNdEx + msglen 2836 if postIndex < 0 { 2837 return ErrInvalidLengthLiquidity 2838 } 2839 if postIndex > l { 2840 return io.ErrUnexpectedEOF 2841 } 2842 if m.Msg == nil { 2843 m.Msg = &MsgDepositWithinBatch{} 2844 } 2845 if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2846 return err 2847 } 2848 iNdEx = postIndex 2849 default: 2850 iNdEx = preIndex 2851 skippy, err := skipLiquidity(dAtA[iNdEx:]) 2852 if err != nil { 2853 return err 2854 } 2855 if (skippy < 0) || (iNdEx+skippy) < 0 { 2856 return ErrInvalidLengthLiquidity 2857 } 2858 if (iNdEx + skippy) > l { 2859 return io.ErrUnexpectedEOF 2860 } 2861 iNdEx += skippy 2862 } 2863 } 2864 2865 if iNdEx > l { 2866 return io.ErrUnexpectedEOF 2867 } 2868 return nil 2869 } 2870 func (m *WithdrawMsgState) Unmarshal(dAtA []byte) error { 2871 l := len(dAtA) 2872 iNdEx := 0 2873 for iNdEx < l { 2874 preIndex := iNdEx 2875 var wire uint64 2876 for shift := uint(0); ; shift += 7 { 2877 if shift >= 64 { 2878 return ErrIntOverflowLiquidity 2879 } 2880 if iNdEx >= l { 2881 return io.ErrUnexpectedEOF 2882 } 2883 b := dAtA[iNdEx] 2884 iNdEx++ 2885 wire |= uint64(b&0x7F) << shift 2886 if b < 0x80 { 2887 break 2888 } 2889 } 2890 fieldNum := int32(wire >> 3) 2891 wireType := int(wire & 0x7) 2892 if wireType == 4 { 2893 return fmt.Errorf("proto: WithdrawMsgState: wiretype end group for non-group") 2894 } 2895 if fieldNum <= 0 { 2896 return fmt.Errorf("proto: WithdrawMsgState: illegal tag %d (wire type %d)", fieldNum, wire) 2897 } 2898 switch fieldNum { 2899 case 1: 2900 if wireType != 0 { 2901 return fmt.Errorf("proto: wrong wireType = %d for field MsgHeight", wireType) 2902 } 2903 m.MsgHeight = 0 2904 for shift := uint(0); ; shift += 7 { 2905 if shift >= 64 { 2906 return ErrIntOverflowLiquidity 2907 } 2908 if iNdEx >= l { 2909 return io.ErrUnexpectedEOF 2910 } 2911 b := dAtA[iNdEx] 2912 iNdEx++ 2913 m.MsgHeight |= int64(b&0x7F) << shift 2914 if b < 0x80 { 2915 break 2916 } 2917 } 2918 case 2: 2919 if wireType != 0 { 2920 return fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType) 2921 } 2922 m.MsgIndex = 0 2923 for shift := uint(0); ; shift += 7 { 2924 if shift >= 64 { 2925 return ErrIntOverflowLiquidity 2926 } 2927 if iNdEx >= l { 2928 return io.ErrUnexpectedEOF 2929 } 2930 b := dAtA[iNdEx] 2931 iNdEx++ 2932 m.MsgIndex |= uint64(b&0x7F) << shift 2933 if b < 0x80 { 2934 break 2935 } 2936 } 2937 case 3: 2938 if wireType != 0 { 2939 return fmt.Errorf("proto: wrong wireType = %d for field Executed", wireType) 2940 } 2941 var v int 2942 for shift := uint(0); ; shift += 7 { 2943 if shift >= 64 { 2944 return ErrIntOverflowLiquidity 2945 } 2946 if iNdEx >= l { 2947 return io.ErrUnexpectedEOF 2948 } 2949 b := dAtA[iNdEx] 2950 iNdEx++ 2951 v |= int(b&0x7F) << shift 2952 if b < 0x80 { 2953 break 2954 } 2955 } 2956 m.Executed = bool(v != 0) 2957 case 4: 2958 if wireType != 0 { 2959 return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) 2960 } 2961 var v int 2962 for shift := uint(0); ; shift += 7 { 2963 if shift >= 64 { 2964 return ErrIntOverflowLiquidity 2965 } 2966 if iNdEx >= l { 2967 return io.ErrUnexpectedEOF 2968 } 2969 b := dAtA[iNdEx] 2970 iNdEx++ 2971 v |= int(b&0x7F) << shift 2972 if b < 0x80 { 2973 break 2974 } 2975 } 2976 m.Succeeded = bool(v != 0) 2977 case 5: 2978 if wireType != 0 { 2979 return fmt.Errorf("proto: wrong wireType = %d for field ToBeDeleted", wireType) 2980 } 2981 var v int 2982 for shift := uint(0); ; shift += 7 { 2983 if shift >= 64 { 2984 return ErrIntOverflowLiquidity 2985 } 2986 if iNdEx >= l { 2987 return io.ErrUnexpectedEOF 2988 } 2989 b := dAtA[iNdEx] 2990 iNdEx++ 2991 v |= int(b&0x7F) << shift 2992 if b < 0x80 { 2993 break 2994 } 2995 } 2996 m.ToBeDeleted = bool(v != 0) 2997 case 6: 2998 if wireType != 2 { 2999 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 3000 } 3001 var msglen int 3002 for shift := uint(0); ; shift += 7 { 3003 if shift >= 64 { 3004 return ErrIntOverflowLiquidity 3005 } 3006 if iNdEx >= l { 3007 return io.ErrUnexpectedEOF 3008 } 3009 b := dAtA[iNdEx] 3010 iNdEx++ 3011 msglen |= int(b&0x7F) << shift 3012 if b < 0x80 { 3013 break 3014 } 3015 } 3016 if msglen < 0 { 3017 return ErrInvalidLengthLiquidity 3018 } 3019 postIndex := iNdEx + msglen 3020 if postIndex < 0 { 3021 return ErrInvalidLengthLiquidity 3022 } 3023 if postIndex > l { 3024 return io.ErrUnexpectedEOF 3025 } 3026 if m.Msg == nil { 3027 m.Msg = &MsgWithdrawWithinBatch{} 3028 } 3029 if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3030 return err 3031 } 3032 iNdEx = postIndex 3033 default: 3034 iNdEx = preIndex 3035 skippy, err := skipLiquidity(dAtA[iNdEx:]) 3036 if err != nil { 3037 return err 3038 } 3039 if (skippy < 0) || (iNdEx+skippy) < 0 { 3040 return ErrInvalidLengthLiquidity 3041 } 3042 if (iNdEx + skippy) > l { 3043 return io.ErrUnexpectedEOF 3044 } 3045 iNdEx += skippy 3046 } 3047 } 3048 3049 if iNdEx > l { 3050 return io.ErrUnexpectedEOF 3051 } 3052 return nil 3053 } 3054 func (m *SwapMsgState) Unmarshal(dAtA []byte) error { 3055 l := len(dAtA) 3056 iNdEx := 0 3057 for iNdEx < l { 3058 preIndex := iNdEx 3059 var wire uint64 3060 for shift := uint(0); ; shift += 7 { 3061 if shift >= 64 { 3062 return ErrIntOverflowLiquidity 3063 } 3064 if iNdEx >= l { 3065 return io.ErrUnexpectedEOF 3066 } 3067 b := dAtA[iNdEx] 3068 iNdEx++ 3069 wire |= uint64(b&0x7F) << shift 3070 if b < 0x80 { 3071 break 3072 } 3073 } 3074 fieldNum := int32(wire >> 3) 3075 wireType := int(wire & 0x7) 3076 if wireType == 4 { 3077 return fmt.Errorf("proto: SwapMsgState: wiretype end group for non-group") 3078 } 3079 if fieldNum <= 0 { 3080 return fmt.Errorf("proto: SwapMsgState: illegal tag %d (wire type %d)", fieldNum, wire) 3081 } 3082 switch fieldNum { 3083 case 1: 3084 if wireType != 0 { 3085 return fmt.Errorf("proto: wrong wireType = %d for field MsgHeight", wireType) 3086 } 3087 m.MsgHeight = 0 3088 for shift := uint(0); ; shift += 7 { 3089 if shift >= 64 { 3090 return ErrIntOverflowLiquidity 3091 } 3092 if iNdEx >= l { 3093 return io.ErrUnexpectedEOF 3094 } 3095 b := dAtA[iNdEx] 3096 iNdEx++ 3097 m.MsgHeight |= int64(b&0x7F) << shift 3098 if b < 0x80 { 3099 break 3100 } 3101 } 3102 case 2: 3103 if wireType != 0 { 3104 return fmt.Errorf("proto: wrong wireType = %d for field MsgIndex", wireType) 3105 } 3106 m.MsgIndex = 0 3107 for shift := uint(0); ; shift += 7 { 3108 if shift >= 64 { 3109 return ErrIntOverflowLiquidity 3110 } 3111 if iNdEx >= l { 3112 return io.ErrUnexpectedEOF 3113 } 3114 b := dAtA[iNdEx] 3115 iNdEx++ 3116 m.MsgIndex |= uint64(b&0x7F) << shift 3117 if b < 0x80 { 3118 break 3119 } 3120 } 3121 case 3: 3122 if wireType != 0 { 3123 return fmt.Errorf("proto: wrong wireType = %d for field Executed", wireType) 3124 } 3125 var v int 3126 for shift := uint(0); ; shift += 7 { 3127 if shift >= 64 { 3128 return ErrIntOverflowLiquidity 3129 } 3130 if iNdEx >= l { 3131 return io.ErrUnexpectedEOF 3132 } 3133 b := dAtA[iNdEx] 3134 iNdEx++ 3135 v |= int(b&0x7F) << shift 3136 if b < 0x80 { 3137 break 3138 } 3139 } 3140 m.Executed = bool(v != 0) 3141 case 4: 3142 if wireType != 0 { 3143 return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) 3144 } 3145 var v int 3146 for shift := uint(0); ; shift += 7 { 3147 if shift >= 64 { 3148 return ErrIntOverflowLiquidity 3149 } 3150 if iNdEx >= l { 3151 return io.ErrUnexpectedEOF 3152 } 3153 b := dAtA[iNdEx] 3154 iNdEx++ 3155 v |= int(b&0x7F) << shift 3156 if b < 0x80 { 3157 break 3158 } 3159 } 3160 m.Succeeded = bool(v != 0) 3161 case 5: 3162 if wireType != 0 { 3163 return fmt.Errorf("proto: wrong wireType = %d for field ToBeDeleted", wireType) 3164 } 3165 var v int 3166 for shift := uint(0); ; shift += 7 { 3167 if shift >= 64 { 3168 return ErrIntOverflowLiquidity 3169 } 3170 if iNdEx >= l { 3171 return io.ErrUnexpectedEOF 3172 } 3173 b := dAtA[iNdEx] 3174 iNdEx++ 3175 v |= int(b&0x7F) << shift 3176 if b < 0x80 { 3177 break 3178 } 3179 } 3180 m.ToBeDeleted = bool(v != 0) 3181 case 6: 3182 if wireType != 0 { 3183 return fmt.Errorf("proto: wrong wireType = %d for field OrderExpiryHeight", wireType) 3184 } 3185 m.OrderExpiryHeight = 0 3186 for shift := uint(0); ; shift += 7 { 3187 if shift >= 64 { 3188 return ErrIntOverflowLiquidity 3189 } 3190 if iNdEx >= l { 3191 return io.ErrUnexpectedEOF 3192 } 3193 b := dAtA[iNdEx] 3194 iNdEx++ 3195 m.OrderExpiryHeight |= int64(b&0x7F) << shift 3196 if b < 0x80 { 3197 break 3198 } 3199 } 3200 case 7: 3201 if wireType != 2 { 3202 return fmt.Errorf("proto: wrong wireType = %d for field ExchangedOfferCoin", wireType) 3203 } 3204 var msglen int 3205 for shift := uint(0); ; shift += 7 { 3206 if shift >= 64 { 3207 return ErrIntOverflowLiquidity 3208 } 3209 if iNdEx >= l { 3210 return io.ErrUnexpectedEOF 3211 } 3212 b := dAtA[iNdEx] 3213 iNdEx++ 3214 msglen |= int(b&0x7F) << shift 3215 if b < 0x80 { 3216 break 3217 } 3218 } 3219 if msglen < 0 { 3220 return ErrInvalidLengthLiquidity 3221 } 3222 postIndex := iNdEx + msglen 3223 if postIndex < 0 { 3224 return ErrInvalidLengthLiquidity 3225 } 3226 if postIndex > l { 3227 return io.ErrUnexpectedEOF 3228 } 3229 if err := m.ExchangedOfferCoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3230 return err 3231 } 3232 iNdEx = postIndex 3233 case 8: 3234 if wireType != 2 { 3235 return fmt.Errorf("proto: wrong wireType = %d for field RemainingOfferCoin", wireType) 3236 } 3237 var msglen int 3238 for shift := uint(0); ; shift += 7 { 3239 if shift >= 64 { 3240 return ErrIntOverflowLiquidity 3241 } 3242 if iNdEx >= l { 3243 return io.ErrUnexpectedEOF 3244 } 3245 b := dAtA[iNdEx] 3246 iNdEx++ 3247 msglen |= int(b&0x7F) << shift 3248 if b < 0x80 { 3249 break 3250 } 3251 } 3252 if msglen < 0 { 3253 return ErrInvalidLengthLiquidity 3254 } 3255 postIndex := iNdEx + msglen 3256 if postIndex < 0 { 3257 return ErrInvalidLengthLiquidity 3258 } 3259 if postIndex > l { 3260 return io.ErrUnexpectedEOF 3261 } 3262 if err := m.RemainingOfferCoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3263 return err 3264 } 3265 iNdEx = postIndex 3266 case 9: 3267 if wireType != 2 { 3268 return fmt.Errorf("proto: wrong wireType = %d for field ReservedOfferCoinFee", wireType) 3269 } 3270 var msglen int 3271 for shift := uint(0); ; shift += 7 { 3272 if shift >= 64 { 3273 return ErrIntOverflowLiquidity 3274 } 3275 if iNdEx >= l { 3276 return io.ErrUnexpectedEOF 3277 } 3278 b := dAtA[iNdEx] 3279 iNdEx++ 3280 msglen |= int(b&0x7F) << shift 3281 if b < 0x80 { 3282 break 3283 } 3284 } 3285 if msglen < 0 { 3286 return ErrInvalidLengthLiquidity 3287 } 3288 postIndex := iNdEx + msglen 3289 if postIndex < 0 { 3290 return ErrInvalidLengthLiquidity 3291 } 3292 if postIndex > l { 3293 return io.ErrUnexpectedEOF 3294 } 3295 if err := m.ReservedOfferCoinFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3296 return err 3297 } 3298 iNdEx = postIndex 3299 case 10: 3300 if wireType != 2 { 3301 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 3302 } 3303 var msglen int 3304 for shift := uint(0); ; shift += 7 { 3305 if shift >= 64 { 3306 return ErrIntOverflowLiquidity 3307 } 3308 if iNdEx >= l { 3309 return io.ErrUnexpectedEOF 3310 } 3311 b := dAtA[iNdEx] 3312 iNdEx++ 3313 msglen |= int(b&0x7F) << shift 3314 if b < 0x80 { 3315 break 3316 } 3317 } 3318 if msglen < 0 { 3319 return ErrInvalidLengthLiquidity 3320 } 3321 postIndex := iNdEx + msglen 3322 if postIndex < 0 { 3323 return ErrInvalidLengthLiquidity 3324 } 3325 if postIndex > l { 3326 return io.ErrUnexpectedEOF 3327 } 3328 if m.Msg == nil { 3329 m.Msg = &MsgSwapWithinBatch{} 3330 } 3331 if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3332 return err 3333 } 3334 iNdEx = postIndex 3335 default: 3336 iNdEx = preIndex 3337 skippy, err := skipLiquidity(dAtA[iNdEx:]) 3338 if err != nil { 3339 return err 3340 } 3341 if (skippy < 0) || (iNdEx+skippy) < 0 { 3342 return ErrInvalidLengthLiquidity 3343 } 3344 if (iNdEx + skippy) > l { 3345 return io.ErrUnexpectedEOF 3346 } 3347 iNdEx += skippy 3348 } 3349 } 3350 3351 if iNdEx > l { 3352 return io.ErrUnexpectedEOF 3353 } 3354 return nil 3355 } 3356 func skipLiquidity(dAtA []byte) (n int, err error) { 3357 l := len(dAtA) 3358 iNdEx := 0 3359 depth := 0 3360 for iNdEx < l { 3361 var wire uint64 3362 for shift := uint(0); ; shift += 7 { 3363 if shift >= 64 { 3364 return 0, ErrIntOverflowLiquidity 3365 } 3366 if iNdEx >= l { 3367 return 0, io.ErrUnexpectedEOF 3368 } 3369 b := dAtA[iNdEx] 3370 iNdEx++ 3371 wire |= (uint64(b) & 0x7F) << shift 3372 if b < 0x80 { 3373 break 3374 } 3375 } 3376 wireType := int(wire & 0x7) 3377 switch wireType { 3378 case 0: 3379 for shift := uint(0); ; shift += 7 { 3380 if shift >= 64 { 3381 return 0, ErrIntOverflowLiquidity 3382 } 3383 if iNdEx >= l { 3384 return 0, io.ErrUnexpectedEOF 3385 } 3386 iNdEx++ 3387 if dAtA[iNdEx-1] < 0x80 { 3388 break 3389 } 3390 } 3391 case 1: 3392 iNdEx += 8 3393 case 2: 3394 var length int 3395 for shift := uint(0); ; shift += 7 { 3396 if shift >= 64 { 3397 return 0, ErrIntOverflowLiquidity 3398 } 3399 if iNdEx >= l { 3400 return 0, io.ErrUnexpectedEOF 3401 } 3402 b := dAtA[iNdEx] 3403 iNdEx++ 3404 length |= (int(b) & 0x7F) << shift 3405 if b < 0x80 { 3406 break 3407 } 3408 } 3409 if length < 0 { 3410 return 0, ErrInvalidLengthLiquidity 3411 } 3412 iNdEx += length 3413 case 3: 3414 depth++ 3415 case 4: 3416 if depth == 0 { 3417 return 0, ErrUnexpectedEndOfGroupLiquidity 3418 } 3419 depth-- 3420 case 5: 3421 iNdEx += 4 3422 default: 3423 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 3424 } 3425 if iNdEx < 0 { 3426 return 0, ErrInvalidLengthLiquidity 3427 } 3428 if depth == 0 { 3429 return iNdEx, nil 3430 } 3431 } 3432 return 0, io.ErrUnexpectedEOF 3433 } 3434 3435 var ( 3436 ErrInvalidLengthLiquidity = fmt.Errorf("proto: negative length found during unmarshaling") 3437 ErrIntOverflowLiquidity = fmt.Errorf("proto: integer overflow") 3438 ErrUnexpectedEndOfGroupLiquidity = fmt.Errorf("proto: unexpected end of group") 3439 )