github.com/gravity-devs/liquidity@v1.5.3/x/liquidity/types/tx.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/liquidity/v1beta1/tx.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
    10  	types "github.com/cosmos/cosmos-sdk/types"
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	grpc1 "github.com/gogo/protobuf/grpc"
    13  	proto "github.com/gogo/protobuf/proto"
    14  	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
    15  	grpc "google.golang.org/grpc"
    16  	codes "google.golang.org/grpc/codes"
    17  	status "google.golang.org/grpc/status"
    18  	io "io"
    19  	math "math"
    20  	math_bits "math/bits"
    21  )
    22  
    23  // Reference imports to suppress errors if they are not otherwise used.
    24  var _ = proto.Marshal
    25  var _ = fmt.Errorf
    26  var _ = math.Inf
    27  
    28  // This is a compile-time assertion to ensure that this generated file
    29  // is compatible with the proto package it is being compiled against.
    30  // A compilation error at this line likely means your copy of the
    31  // proto package needs to be updated.
    32  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    33  
    34  // MsgCreatePool defines an sdk.Msg type that supports submitting a create liquidity pool tx.
    35  //
    36  // See: https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
    37  type MsgCreatePool struct {
    38  	PoolCreatorAddress string `protobuf:"bytes,1,opt,name=pool_creator_address,json=poolCreatorAddress,proto3" json:"pool_creator_address,omitempty" yaml:"pool_creator_address"`
    39  	// id of the target pool type, must match the value in the pool. Only pool-type-id 1 is supported.
    40  	PoolTypeId uint32 `protobuf:"varint,2,opt,name=pool_type_id,json=poolTypeId,proto3" json:"pool_type_id,omitempty" yaml:"pool_type_id"`
    41  	// reserve coin pair of the pool to deposit.
    42  	DepositCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=deposit_coins,json=depositCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"deposit_coins" yaml:"deposit_coins"`
    43  }
    44  
    45  func (m *MsgCreatePool) Reset()         { *m = MsgCreatePool{} }
    46  func (m *MsgCreatePool) String() string { return proto.CompactTextString(m) }
    47  func (*MsgCreatePool) ProtoMessage()    {}
    48  func (*MsgCreatePool) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_deae1e5d4eb3529c, []int{0}
    50  }
    51  func (m *MsgCreatePool) XXX_Unmarshal(b []byte) error {
    52  	return m.Unmarshal(b)
    53  }
    54  func (m *MsgCreatePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    55  	if deterministic {
    56  		return xxx_messageInfo_MsgCreatePool.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 *MsgCreatePool) XXX_Merge(src proto.Message) {
    67  	xxx_messageInfo_MsgCreatePool.Merge(m, src)
    68  }
    69  func (m *MsgCreatePool) XXX_Size() int {
    70  	return m.Size()
    71  }
    72  func (m *MsgCreatePool) XXX_DiscardUnknown() {
    73  	xxx_messageInfo_MsgCreatePool.DiscardUnknown(m)
    74  }
    75  
    76  var xxx_messageInfo_MsgCreatePool proto.InternalMessageInfo
    77  
    78  // MsgCreatePoolResponse defines the Msg/CreatePool response type.
    79  type MsgCreatePoolResponse struct {
    80  }
    81  
    82  func (m *MsgCreatePoolResponse) Reset()         { *m = MsgCreatePoolResponse{} }
    83  func (m *MsgCreatePoolResponse) String() string { return proto.CompactTextString(m) }
    84  func (*MsgCreatePoolResponse) ProtoMessage()    {}
    85  func (*MsgCreatePoolResponse) Descriptor() ([]byte, []int) {
    86  	return fileDescriptor_deae1e5d4eb3529c, []int{1}
    87  }
    88  func (m *MsgCreatePoolResponse) XXX_Unmarshal(b []byte) error {
    89  	return m.Unmarshal(b)
    90  }
    91  func (m *MsgCreatePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    92  	if deterministic {
    93  		return xxx_messageInfo_MsgCreatePoolResponse.Marshal(b, m, deterministic)
    94  	} else {
    95  		b = b[:cap(b)]
    96  		n, err := m.MarshalToSizedBuffer(b)
    97  		if err != nil {
    98  			return nil, err
    99  		}
   100  		return b[:n], nil
   101  	}
   102  }
   103  func (m *MsgCreatePoolResponse) XXX_Merge(src proto.Message) {
   104  	xxx_messageInfo_MsgCreatePoolResponse.Merge(m, src)
   105  }
   106  func (m *MsgCreatePoolResponse) XXX_Size() int {
   107  	return m.Size()
   108  }
   109  func (m *MsgCreatePoolResponse) XXX_DiscardUnknown() {
   110  	xxx_messageInfo_MsgCreatePoolResponse.DiscardUnknown(m)
   111  }
   112  
   113  var xxx_messageInfo_MsgCreatePoolResponse proto.InternalMessageInfo
   114  
   115  // `MsgDepositWithinBatch defines` an `sdk.Msg` type that supports submitting
   116  // a deposit request to the batch of the liquidity pool.
   117  // Deposit is submitted to the batch of the Liquidity pool with the specified
   118  // `pool_id`, `deposit_coins` for reserve.
   119  // This request is stacked in the batch of the liquidity pool, is not processed
   120  // immediately, and is processed in the `endblock` at the same time as other requests.
   121  //
   122  // See: https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
   123  type MsgDepositWithinBatch struct {
   124  	DepositorAddress string `protobuf:"bytes,1,opt,name=depositor_address,json=depositorAddress,proto3" json:"depositor_address,omitempty" yaml:"depositor_address"`
   125  	// id of the target pool
   126  	PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id" yaml:"pool_id"`
   127  	// reserve coin pair of the pool to deposit
   128  	DepositCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=deposit_coins,json=depositCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"deposit_coins" yaml:"deposit_coins"`
   129  }
   130  
   131  func (m *MsgDepositWithinBatch) Reset()         { *m = MsgDepositWithinBatch{} }
   132  func (m *MsgDepositWithinBatch) String() string { return proto.CompactTextString(m) }
   133  func (*MsgDepositWithinBatch) ProtoMessage()    {}
   134  func (*MsgDepositWithinBatch) Descriptor() ([]byte, []int) {
   135  	return fileDescriptor_deae1e5d4eb3529c, []int{2}
   136  }
   137  func (m *MsgDepositWithinBatch) XXX_Unmarshal(b []byte) error {
   138  	return m.Unmarshal(b)
   139  }
   140  func (m *MsgDepositWithinBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   141  	if deterministic {
   142  		return xxx_messageInfo_MsgDepositWithinBatch.Marshal(b, m, deterministic)
   143  	} else {
   144  		b = b[:cap(b)]
   145  		n, err := m.MarshalToSizedBuffer(b)
   146  		if err != nil {
   147  			return nil, err
   148  		}
   149  		return b[:n], nil
   150  	}
   151  }
   152  func (m *MsgDepositWithinBatch) XXX_Merge(src proto.Message) {
   153  	xxx_messageInfo_MsgDepositWithinBatch.Merge(m, src)
   154  }
   155  func (m *MsgDepositWithinBatch) XXX_Size() int {
   156  	return m.Size()
   157  }
   158  func (m *MsgDepositWithinBatch) XXX_DiscardUnknown() {
   159  	xxx_messageInfo_MsgDepositWithinBatch.DiscardUnknown(m)
   160  }
   161  
   162  var xxx_messageInfo_MsgDepositWithinBatch proto.InternalMessageInfo
   163  
   164  // MsgDepositWithinBatchResponse defines the Msg/DepositWithinBatch response type.
   165  type MsgDepositWithinBatchResponse struct {
   166  }
   167  
   168  func (m *MsgDepositWithinBatchResponse) Reset()         { *m = MsgDepositWithinBatchResponse{} }
   169  func (m *MsgDepositWithinBatchResponse) String() string { return proto.CompactTextString(m) }
   170  func (*MsgDepositWithinBatchResponse) ProtoMessage()    {}
   171  func (*MsgDepositWithinBatchResponse) Descriptor() ([]byte, []int) {
   172  	return fileDescriptor_deae1e5d4eb3529c, []int{3}
   173  }
   174  func (m *MsgDepositWithinBatchResponse) XXX_Unmarshal(b []byte) error {
   175  	return m.Unmarshal(b)
   176  }
   177  func (m *MsgDepositWithinBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   178  	if deterministic {
   179  		return xxx_messageInfo_MsgDepositWithinBatchResponse.Marshal(b, m, deterministic)
   180  	} else {
   181  		b = b[:cap(b)]
   182  		n, err := m.MarshalToSizedBuffer(b)
   183  		if err != nil {
   184  			return nil, err
   185  		}
   186  		return b[:n], nil
   187  	}
   188  }
   189  func (m *MsgDepositWithinBatchResponse) XXX_Merge(src proto.Message) {
   190  	xxx_messageInfo_MsgDepositWithinBatchResponse.Merge(m, src)
   191  }
   192  func (m *MsgDepositWithinBatchResponse) XXX_Size() int {
   193  	return m.Size()
   194  }
   195  func (m *MsgDepositWithinBatchResponse) XXX_DiscardUnknown() {
   196  	xxx_messageInfo_MsgDepositWithinBatchResponse.DiscardUnknown(m)
   197  }
   198  
   199  var xxx_messageInfo_MsgDepositWithinBatchResponse proto.InternalMessageInfo
   200  
   201  // `MsgWithdrawWithinBatch` defines an `sdk.Msg` type that supports submitting
   202  // a withdraw request to the batch of the liquidity pool.
   203  // Withdraw is submitted to the batch from the Liquidity pool with the
   204  // specified `pool_id`, `pool_coin` of the pool.
   205  // This request is stacked in the batch of the liquidity pool, is not processed
   206  // immediately, and is processed in the `endblock` at the same time as other requests.
   207  //
   208  // See: https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
   209  type MsgWithdrawWithinBatch struct {
   210  	WithdrawerAddress string `protobuf:"bytes,1,opt,name=withdrawer_address,json=withdrawerAddress,proto3" json:"withdrawer_address,omitempty" yaml:"withdrawer_address"`
   211  	// id of the target pool
   212  	PoolId   uint64     `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id" yaml:"pool_id"`
   213  	PoolCoin types.Coin `protobuf:"bytes,3,opt,name=pool_coin,json=poolCoin,proto3" json:"pool_coin" yaml:"pool_coin"`
   214  }
   215  
   216  func (m *MsgWithdrawWithinBatch) Reset()         { *m = MsgWithdrawWithinBatch{} }
   217  func (m *MsgWithdrawWithinBatch) String() string { return proto.CompactTextString(m) }
   218  func (*MsgWithdrawWithinBatch) ProtoMessage()    {}
   219  func (*MsgWithdrawWithinBatch) Descriptor() ([]byte, []int) {
   220  	return fileDescriptor_deae1e5d4eb3529c, []int{4}
   221  }
   222  func (m *MsgWithdrawWithinBatch) XXX_Unmarshal(b []byte) error {
   223  	return m.Unmarshal(b)
   224  }
   225  func (m *MsgWithdrawWithinBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   226  	if deterministic {
   227  		return xxx_messageInfo_MsgWithdrawWithinBatch.Marshal(b, m, deterministic)
   228  	} else {
   229  		b = b[:cap(b)]
   230  		n, err := m.MarshalToSizedBuffer(b)
   231  		if err != nil {
   232  			return nil, err
   233  		}
   234  		return b[:n], nil
   235  	}
   236  }
   237  func (m *MsgWithdrawWithinBatch) XXX_Merge(src proto.Message) {
   238  	xxx_messageInfo_MsgWithdrawWithinBatch.Merge(m, src)
   239  }
   240  func (m *MsgWithdrawWithinBatch) XXX_Size() int {
   241  	return m.Size()
   242  }
   243  func (m *MsgWithdrawWithinBatch) XXX_DiscardUnknown() {
   244  	xxx_messageInfo_MsgWithdrawWithinBatch.DiscardUnknown(m)
   245  }
   246  
   247  var xxx_messageInfo_MsgWithdrawWithinBatch proto.InternalMessageInfo
   248  
   249  // MsgWithdrawWithinBatchResponse defines the Msg/WithdrawWithinBatch response type.
   250  type MsgWithdrawWithinBatchResponse struct {
   251  }
   252  
   253  func (m *MsgWithdrawWithinBatchResponse) Reset()         { *m = MsgWithdrawWithinBatchResponse{} }
   254  func (m *MsgWithdrawWithinBatchResponse) String() string { return proto.CompactTextString(m) }
   255  func (*MsgWithdrawWithinBatchResponse) ProtoMessage()    {}
   256  func (*MsgWithdrawWithinBatchResponse) Descriptor() ([]byte, []int) {
   257  	return fileDescriptor_deae1e5d4eb3529c, []int{5}
   258  }
   259  func (m *MsgWithdrawWithinBatchResponse) XXX_Unmarshal(b []byte) error {
   260  	return m.Unmarshal(b)
   261  }
   262  func (m *MsgWithdrawWithinBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   263  	if deterministic {
   264  		return xxx_messageInfo_MsgWithdrawWithinBatchResponse.Marshal(b, m, deterministic)
   265  	} else {
   266  		b = b[:cap(b)]
   267  		n, err := m.MarshalToSizedBuffer(b)
   268  		if err != nil {
   269  			return nil, err
   270  		}
   271  		return b[:n], nil
   272  	}
   273  }
   274  func (m *MsgWithdrawWithinBatchResponse) XXX_Merge(src proto.Message) {
   275  	xxx_messageInfo_MsgWithdrawWithinBatchResponse.Merge(m, src)
   276  }
   277  func (m *MsgWithdrawWithinBatchResponse) XXX_Size() int {
   278  	return m.Size()
   279  }
   280  func (m *MsgWithdrawWithinBatchResponse) XXX_DiscardUnknown() {
   281  	xxx_messageInfo_MsgWithdrawWithinBatchResponse.DiscardUnknown(m)
   282  }
   283  
   284  var xxx_messageInfo_MsgWithdrawWithinBatchResponse proto.InternalMessageInfo
   285  
   286  // `MsgSwapWithinBatch` defines an sdk.Msg type that supports submitting a swap offer request to the batch of the liquidity pool.
   287  // Submit swap offer to the liquidity pool batch with the specified the `pool_id`, `swap_type_id`,
   288  // `demand_coin_denom` with the coin and the price you're offering
   289  // and `offer_coin_fee` must be half of offer coin amount * current `params.swap_fee_rate` and ceil for reservation to pay fees.
   290  // This request is stacked in the batch of the liquidity pool, is not processed
   291  // immediately, and is processed in the `endblock` at the same time as other requests.
   292  // You must request the same fields as the pool.
   293  // Only the default `swap_type_id` 1 is supported.
   294  //
   295  // See: https://github.com/gravity-devs/liquidity/tree/develop/doc
   296  // https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
   297  type MsgSwapWithinBatch struct {
   298  	// address of swap requester
   299  	SwapRequesterAddress string `protobuf:"bytes,1,opt,name=swap_requester_address,json=swapRequesterAddress,proto3" json:"swap_requester_address,omitempty" yaml:"swap_requester_address"`
   300  	// id of swap type, must match the value in the pool. Only `swap_type_id` 1 is supported.
   301  	PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id" yaml:"pool_id"`
   302  	// id of swap type. Must match the value in the pool.
   303  	SwapTypeId uint32 `protobuf:"varint,3,opt,name=swap_type_id,json=swapTypeId,proto3" json:"swap_type_id,omitempty" yaml:"swap_type_id"`
   304  	// offer sdk.coin for the swap request, must match the denom in the pool.
   305  	OfferCoin types.Coin `protobuf:"bytes,4,opt,name=offer_coin,json=offerCoin,proto3" json:"offer_coin" yaml:"offer_coin"`
   306  	// denom of demand coin to be exchanged on the swap request, must match the denom in the pool.
   307  	DemandCoinDenom string `protobuf:"bytes,5,opt,name=demand_coin_denom,json=demandCoinDenom,proto3" json:"demand_coin_denom,omitempty" yaml:"demand_coin_denom"`
   308  	// half of offer coin amount * params.swap_fee_rate and ceil for reservation to pay fees.
   309  	OfferCoinFee types.Coin `protobuf:"bytes,6,opt,name=offer_coin_fee,json=offerCoinFee,proto3" json:"offer_coin_fee" yaml:"offer_coin_fee"`
   310  	// limit order price for the order, the price is the exchange ratio of X/Y
   311  	// where X is the amount of the first coin and Y is the amount
   312  	// of the second coin when their denoms are sorted alphabetically.
   313  	OrderPrice github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=order_price,json=orderPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"order_price" yaml:"order_price"`
   314  }
   315  
   316  func (m *MsgSwapWithinBatch) Reset()         { *m = MsgSwapWithinBatch{} }
   317  func (m *MsgSwapWithinBatch) String() string { return proto.CompactTextString(m) }
   318  func (*MsgSwapWithinBatch) ProtoMessage()    {}
   319  func (*MsgSwapWithinBatch) Descriptor() ([]byte, []int) {
   320  	return fileDescriptor_deae1e5d4eb3529c, []int{6}
   321  }
   322  func (m *MsgSwapWithinBatch) XXX_Unmarshal(b []byte) error {
   323  	return m.Unmarshal(b)
   324  }
   325  func (m *MsgSwapWithinBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   326  	if deterministic {
   327  		return xxx_messageInfo_MsgSwapWithinBatch.Marshal(b, m, deterministic)
   328  	} else {
   329  		b = b[:cap(b)]
   330  		n, err := m.MarshalToSizedBuffer(b)
   331  		if err != nil {
   332  			return nil, err
   333  		}
   334  		return b[:n], nil
   335  	}
   336  }
   337  func (m *MsgSwapWithinBatch) XXX_Merge(src proto.Message) {
   338  	xxx_messageInfo_MsgSwapWithinBatch.Merge(m, src)
   339  }
   340  func (m *MsgSwapWithinBatch) XXX_Size() int {
   341  	return m.Size()
   342  }
   343  func (m *MsgSwapWithinBatch) XXX_DiscardUnknown() {
   344  	xxx_messageInfo_MsgSwapWithinBatch.DiscardUnknown(m)
   345  }
   346  
   347  var xxx_messageInfo_MsgSwapWithinBatch proto.InternalMessageInfo
   348  
   349  // MsgSwapWithinBatchResponse defines the Msg/Swap response type.
   350  type MsgSwapWithinBatchResponse struct {
   351  }
   352  
   353  func (m *MsgSwapWithinBatchResponse) Reset()         { *m = MsgSwapWithinBatchResponse{} }
   354  func (m *MsgSwapWithinBatchResponse) String() string { return proto.CompactTextString(m) }
   355  func (*MsgSwapWithinBatchResponse) ProtoMessage()    {}
   356  func (*MsgSwapWithinBatchResponse) Descriptor() ([]byte, []int) {
   357  	return fileDescriptor_deae1e5d4eb3529c, []int{7}
   358  }
   359  func (m *MsgSwapWithinBatchResponse) XXX_Unmarshal(b []byte) error {
   360  	return m.Unmarshal(b)
   361  }
   362  func (m *MsgSwapWithinBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   363  	if deterministic {
   364  		return xxx_messageInfo_MsgSwapWithinBatchResponse.Marshal(b, m, deterministic)
   365  	} else {
   366  		b = b[:cap(b)]
   367  		n, err := m.MarshalToSizedBuffer(b)
   368  		if err != nil {
   369  			return nil, err
   370  		}
   371  		return b[:n], nil
   372  	}
   373  }
   374  func (m *MsgSwapWithinBatchResponse) XXX_Merge(src proto.Message) {
   375  	xxx_messageInfo_MsgSwapWithinBatchResponse.Merge(m, src)
   376  }
   377  func (m *MsgSwapWithinBatchResponse) XXX_Size() int {
   378  	return m.Size()
   379  }
   380  func (m *MsgSwapWithinBatchResponse) XXX_DiscardUnknown() {
   381  	xxx_messageInfo_MsgSwapWithinBatchResponse.DiscardUnknown(m)
   382  }
   383  
   384  var xxx_messageInfo_MsgSwapWithinBatchResponse proto.InternalMessageInfo
   385  
   386  func init() {
   387  	proto.RegisterType((*MsgCreatePool)(nil), "tendermint.liquidity.v1beta1.MsgCreatePool")
   388  	proto.RegisterType((*MsgCreatePoolResponse)(nil), "tendermint.liquidity.v1beta1.MsgCreatePoolResponse")
   389  	proto.RegisterType((*MsgDepositWithinBatch)(nil), "tendermint.liquidity.v1beta1.MsgDepositWithinBatch")
   390  	proto.RegisterType((*MsgDepositWithinBatchResponse)(nil), "tendermint.liquidity.v1beta1.MsgDepositWithinBatchResponse")
   391  	proto.RegisterType((*MsgWithdrawWithinBatch)(nil), "tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch")
   392  	proto.RegisterType((*MsgWithdrawWithinBatchResponse)(nil), "tendermint.liquidity.v1beta1.MsgWithdrawWithinBatchResponse")
   393  	proto.RegisterType((*MsgSwapWithinBatch)(nil), "tendermint.liquidity.v1beta1.MsgSwapWithinBatch")
   394  	proto.RegisterType((*MsgSwapWithinBatchResponse)(nil), "tendermint.liquidity.v1beta1.MsgSwapWithinBatchResponse")
   395  }
   396  
   397  func init() {
   398  	proto.RegisterFile("tendermint/liquidity/v1beta1/tx.proto", fileDescriptor_deae1e5d4eb3529c)
   399  }
   400  
   401  var fileDescriptor_deae1e5d4eb3529c = []byte{
   402  	// 1161 bytes of a gzipped FileDescriptorProto
   403  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x97, 0xcf, 0x6f, 0xdb, 0x54,
   404  	0x1c, 0xc0, 0xe3, 0x26, 0xeb, 0x8f, 0xb7, 0xb6, 0xac, 0x5e, 0xb7, 0x65, 0x61, 0x8b, 0xad, 0x27,
   405  	0x0d, 0x05, 0xb1, 0x3a, 0x89, 0x9d, 0xb4, 0x4d, 0xe1, 0xe2, 0x24, 0x2d, 0x22, 0x52, 0xa5, 0x61,
   406  	0x86, 0x18, 0x20, 0x14, 0xb9, 0xf6, 0x6b, 0x6a, 0x96, 0xbc, 0xe7, 0xfa, 0x39, 0x6d, 0x03, 0xda,
   407  	0x15, 0x81, 0x76, 0x19, 0x99, 0xb8, 0x21, 0x31, 0xf5, 0x88, 0xc4, 0xbf, 0x80, 0x84, 0x84, 0xd0,
   408  	0x0e, 0x1c, 0x76, 0x44, 0x1c, 0x02, 0x6a, 0x2f, 0x88, 0x03, 0x87, 0x1e, 0x10, 0x27, 0x84, 0x9e,
   409  	0xed, 0xa4, 0x6e, 0x12, 0x96, 0x6d, 0x9a, 0xd4, 0xc3, 0x72, 0xc9, 0x7b, 0xdf, 0xdf, 0xdf, 0xf7,
   410  	0x3e, 0x7e, 0xcf, 0x06, 0xd7, 0x5c, 0x84, 0x4d, 0xe4, 0x34, 0x2c, 0xec, 0xa6, 0xeb, 0xd6, 0x76,
   411  	0xd3, 0x32, 0x2d, 0xb7, 0x95, 0xde, 0xc9, 0x6e, 0x20, 0x57, 0xcf, 0xa6, 0xdd, 0x3d, 0xc9, 0x76,
   412  	0x88, 0x4b, 0xf8, 0x2b, 0xc7, 0x66, 0x52, 0xcf, 0x4c, 0x0a, 0xcc, 0x12, 0xf3, 0x35, 0x52, 0x23,
   413  	0x9e, 0x61, 0x9a, 0x8d, 0x7c, 0x9f, 0xc4, 0x25, 0x83, 0xd0, 0x06, 0xa1, 0x55, 0x5f, 0x61, 0x10,
   414  	0x0b, 0x07, 0x0a, 0xff, 0xcf, 0x58, 0xa8, 0x21, 0xbc, 0x40, 0x6c, 0x84, 0x75, 0xdb, 0xda, 0x91,
   415  	0xd3, 0xc4, 0x76, 0x2d, 0x82, 0x69, 0x5a, 0xc7, 0x98, 0xb8, 0xba, 0x37, 0xf6, 0x0d, 0xe1, 0x37,
   416  	0x31, 0x30, 0xb3, 0x4e, 0x6b, 0x25, 0x07, 0xe9, 0x2e, 0xba, 0x41, 0x48, 0x9d, 0xff, 0x89, 0x03,
   417  	0xf3, 0x36, 0x21, 0xf5, 0xaa, 0xc1, 0x64, 0xc4, 0xa9, 0xea, 0xa6, 0xe9, 0x20, 0x4a, 0xe3, 0x9c,
   418  	0xc8, 0xa5, 0xa6, 0x8a, 0xf7, 0xb9, 0xb6, 0xba, 0x2d, 0x2f, 0xe8, 0x86, 0x41, 0x9a, 0xd8, 0x15,
   419  	0x03, 0xa5, 0x48, 0x36, 0x45, 0x77, 0x0b, 0x89, 0xc4, 0xb1, 0x6a, 0x16, 0xf6, 0x67, 0x16, 0x15,
   420  	0x1b, 0x88, 0x52, 0xbd, 0x86, 0x2a, 0x69, 0xe8, 0xd7, 0x9b, 0x45, 0x4a, 0xbe, 0xb5, 0x58, 0x70,
   421  	0xb6, 0x1c, 0x77, 0xa9, 0x95, 0x6b, 0x19, 0x28, 0x5f, 0xcf, 0x37, 0x97, 0x14, 0xfa, 0x31, 0xde,
   422  	0x6b, 0x66, 0xea, 0x8a, 0xb2, 0xbb, 0xf3, 0x09, 0x6e, 0x35, 0x31, 0xdc, 0x1f, 0x9b, 0xa5, 0xe6,
   423  	0x6d, 0x49, 0x35, 0x0c, 0xd5, 0x8f, 0x7f, 0xd4, 0x11, 0x5e, 0x6e, 0xe9, 0x8d, 0xfa, 0x0a, 0x1c,
   424  	0x56, 0x1a, 0xd4, 0x78, 0x26, 0x2e, 0xf9, 0xd2, 0xc0, 0x85, 0xaf, 0x80, 0x69, 0xcf, 0xd8, 0x6d,
   425  	0xd9, 0xa8, 0x6a, 0x99, 0xf1, 0x31, 0x91, 0x4b, 0xcd, 0x14, 0x53, 0x6d, 0x75, 0xb6, 0x12, 0x85,
   426  	0x59, 0xb8, 0x3f, 0x36, 0xde, 0xb4, 0xb0, 0xab, 0xc8, 0x47, 0x1d, 0xe1, 0x7c, 0x28, 0x76, 0x60,
   427  	0x0e, 0x35, 0xc0, 0xa6, 0x37, 0x5b, 0x36, 0x7a, 0xcb, 0xe4, 0xff, 0xe2, 0xc0, 0x8c, 0x89, 0x6c,
   428  	0x42, 0x2d, 0xb7, 0xca, 0x56, 0x9b, 0xc6, 0x63, 0x62, 0x34, 0x75, 0x56, 0xbe, 0x2c, 0xf9, 0x8d,
   429  	0x49, 0x1b, 0x3a, 0x45, 0xdd, 0x3d, 0x93, 0x4a, 0xc4, 0xc2, 0xc5, 0xef, 0xb8, 0xb6, 0xba, 0x51,
   430  	0xb9, 0xf9, 0xe1, 0xa7, 0xd0, 0x44, 0x98, 0x34, 0xe0, 0x8a, 0xe8, 0x0f, 0x6e, 0xc1, 0xeb, 0x22,
   431  	0xd4, 0x1b, 0x6c, 0xf5, 0x98, 0x2c, 0x9b, 0xf1, 0x7e, 0xf0, 0xce, 0x75, 0xb1, 0xdf, 0xf2, 0xfd,
   432  	0x93, 0x96, 0x72, 0xd7, 0xf2, 0xa3, 0xfd, 0xb1, 0x29, 0xb6, 0x3c, 0x2c, 0x0d, 0x7d, 0xd8, 0x11,
   433  	0x22, 0x47, 0x1d, 0x61, 0xde, 0xef, 0xe0, 0x44, 0x8d, 0xf0, 0xdb, 0xdf, 0x84, 0x54, 0xcd, 0x72,
   434  	0xb7, 0x9a, 0x1b, 0x92, 0x41, 0x1a, 0x69, 0xbf, 0xd4, 0xe0, 0x6f, 0x81, 0x9a, 0xb7, 0xd3, 0xac,
   435  	0x57, 0xea, 0xc7, 0xd1, 0xa6, 0x03, 0x5f, 0x6f, 0xb6, 0x32, 0xf9, 0xf9, 0x03, 0x21, 0xf2, 0xc7,
   436  	0x03, 0x21, 0x02, 0x2f, 0x81, 0x0b, 0x27, 0x00, 0xd1, 0x10, 0xb5, 0x09, 0xa6, 0x08, 0x7e, 0x1d,
   437  	0xf3, 0x34, 0x65, 0xdf, 0xed, 0x3d, 0xcb, 0xdd, 0xb2, 0x70, 0x51, 0x77, 0x8d, 0x2d, 0xfe, 0x7b,
   438  	0x0e, 0xcc, 0x05, 0xd1, 0x06, 0xf8, 0xb9, 0x77, 0x5a, 0xfc, 0xc4, 0x4f, 0xac, 0x50, 0x18, 0x9e,
   439  	0x73, 0x3d, 0x59, 0x17, 0x9d, 0x37, 0xc1, 0x84, 0xc7, 0x42, 0x40, 0x4d, 0xac, 0x28, 0xf5, 0x51,
   440  	0xb3, 0x98, 0xfb, 0xb3, 0x23, 0x74, 0x6d, 0x8e, 0x3a, 0xc2, 0x6c, 0x08, 0x20, 0xc6, 0xce, 0x38,
   441  	0x1b, 0x0d, 0xe5, 0x26, 0xfa, 0xa2, 0x70, 0x23, 0x80, 0xab, 0x43, 0xe9, 0xe8, 0xf1, 0xf3, 0x77,
   442  	0x14, 0x5c, 0x5c, 0xa7, 0x35, 0xa6, 0x32, 0x1d, 0x7d, 0x37, 0x0c, 0xd0, 0x0f, 0x1c, 0xe0, 0x77,
   443  	0x03, 0x39, 0xea, 0x27, 0xe8, 0xcb, 0xd3, 0x22, 0xe8, 0xb2, 0xbf, 0x56, 0x83, 0x85, 0x41, 0x6d,
   444  	0xee, 0x58, 0xf8, 0xdc, 0x19, 0xfa, 0x91, 0x03, 0x53, 0xfe, 0xa9, 0x47, 0x2c, 0x1c, 0x8f, 0x8a,
   445  	0xdc, 0xe3, 0xf9, 0xb9, 0xcb, 0xb5, 0x55, 0xbb, 0x62, 0x84, 0xa0, 0x60, 0xce, 0x65, 0x25, 0xaf,
   446  	0x66, 0x4a, 0xa5, 0xec, 0xe2, 0xea, 0x6a, 0xbe, 0xb0, 0xbc, 0x56, 0xc8, 0x14, 0x33, 0xb9, 0x5c,
   447  	0x69, 0x55, 0x2e, 0x2c, 0xaa, 0xb9, 0x4c, 0xbe, 0xa8, 0x16, 0x4a, 0xca, 0x72, 0x76, 0x55, 0x59,
   448  	0x5e, 0x56, 0x96, 0xf2, 0x85, 0x42, 0xb9, 0xb0, 0xb8, 0x26, 0xaf, 0x2d, 0x65, 0x4a, 0xf2, 0x5a,
   449  	0x46, 0x56, 0x65, 0x45, 0xcd, 0x0d, 0xc2, 0x07, 0xef, 0xec, 0x8f, 0x4d, 0x76, 0x71, 0x0a, 0x68,
   450  	0x3a, 0x17, 0x3e, 0xa3, 0x89, 0x85, 0xa1, 0x36, 0xe9, 0x1d, 0xcc, 0xc4, 0xc2, 0x21, 0x32, 0x44,
   451  	0x90, 0x1c, 0xbe, 0xef, 0x3d, 0x34, 0xfe, 0x19, 0x07, 0xfc, 0x3a, 0xad, 0xbd, 0xb3, 0xab, 0xdb,
   452  	0x61, 0x2c, 0x7e, 0xe6, 0xc0, 0x45, 0xba, 0xab, 0xdb, 0x55, 0x07, 0x6d, 0x37, 0x11, 0x75, 0x07,
   453  	0xd0, 0xf8, 0xea, 0xb4, 0xd0, 0xb8, 0xea, 0x37, 0x3e, 0xbc, 0x38, 0xa8, 0xcd, 0x33, 0x85, 0xd6,
   454  	0x95, 0x3f, 0x77, 0x42, 0x2a, 0x60, 0xda, 0xcb, 0xdc, 0xbd, 0xe9, 0xa2, 0x23, 0x6f, 0xba, 0xb0,
   455  	0x39, 0xd4, 0x00, 0x9b, 0x06, 0x37, 0xdd, 0x5d, 0x0e, 0x00, 0xb2, 0xb9, 0x89, 0x1c, 0x1f, 0xb7,
   456  	0xd8, 0x28, 0xdc, 0xde, 0x6e, 0xab, 0xf9, 0x4a, 0xea, 0x49, 0x0f, 0xab, 0x41, 0x64, 0xe6, 0xfc,
   457  	0x82, 0x8e, 0x53, 0x42, 0x6d, 0xca, 0x9b, 0x30, 0x1b, 0xfe, 0x5d, 0x76, 0x91, 0x34, 0x74, 0x6c,
   458  	0x7a, 0xaa, 0xaa, 0x17, 0x3b, 0x7e, 0xc6, 0xdb, 0xeb, 0x57, 0xdb, 0x2a, 0xa8, 0x4c, 0xfa, 0xe9,
   459  	0x8a, 0x30, 0x7c, 0xc0, 0xf7, 0xd9, 0x43, 0xed, 0x25, 0x5f, 0xc6, 0x22, 0x96, 0x99, 0x84, 0xbf,
   460  	0xcf, 0x81, 0xd9, 0xe3, 0x8c, 0xd5, 0x4d, 0x84, 0xe2, 0xe3, 0xa3, 0x1a, 0xd5, 0xda, 0xaa, 0x5c,
   461  	0xb9, 0x36, 0xa2, 0xd1, 0xfc, 0xff, 0x74, 0x79, 0xa1, 0xbf, 0x4b, 0x96, 0x13, 0x6a, 0xd3, 0xbd,
   462  	0x4e, 0xd7, 0x10, 0xe2, 0x5b, 0xe0, 0x2c, 0x71, 0x4c, 0xe4, 0x54, 0x6d, 0xc7, 0x32, 0x50, 0x7c,
   463  	0xc2, 0x6b, 0xf3, 0x56, 0x5b, 0x9d, 0xab, 0x9c, 0x81, 0x59, 0x89, 0xed, 0xe3, 0x04, 0x0b, 0x5b,
   464  	0x46, 0x06, 0x8b, 0xfa, 0x6b, 0x47, 0x78, 0xe5, 0x09, 0x0e, 0xe9, 0x32, 0x32, 0x8e, 0x3a, 0x02,
   465  	0x1f, 0xe4, 0x3f, 0x0e, 0x0f, 0x35, 0xe0, 0xcd, 0x6e, 0xb0, 0x49, 0xe8, 0xe1, 0xbc, 0x02, 0x12,
   466  	0x83, 0x4f, 0x5e, 0xf7, 0xc1, 0x94, 0xff, 0x8d, 0x82, 0xe8, 0x3a, 0xad, 0xf1, 0x18, 0x80, 0xd0,
   467  	0x2b, 0xe3, 0x6b, 0xd2, 0xe3, 0x5e, 0x61, 0xa5, 0x13, 0xaf, 0x0f, 0x09, 0xe5, 0x29, 0x8c, 0xbb,
   468  	0x79, 0xf9, 0xcf, 0x38, 0xc0, 0x0f, 0x79, 0xd1, 0x18, 0x1d, 0x6b, 0xd0, 0x29, 0xf1, 0xfa, 0x33,
   469  	0x38, 0xf5, 0x0a, 0xf9, 0x82, 0x03, 0xe7, 0x87, 0xdd, 0x58, 0xb9, 0x91, 0x41, 0x87, 0x78, 0x25,
   470  	0xde, 0x78, 0x16, 0xaf, 0x5e, 0x2d, 0x0e, 0x88, 0xb1, 0x7d, 0xe2, 0x33, 0x23, 0xa3, 0xf4, 0x6d,
   471  	0x67, 0x62, 0xf9, 0x69, 0x3d, 0xba, 0x39, 0x8b, 0xeb, 0x0f, 0x0f, 0x92, 0xdc, 0xa3, 0x83, 0x24,
   472  	0xf7, 0xfb, 0x41, 0x92, 0xbb, 0x77, 0x98, 0x8c, 0x3c, 0x3a, 0x4c, 0x46, 0x7e, 0x39, 0x4c, 0x46,
   473  	0x3e, 0x50, 0x42, 0x30, 0xd6, 0x1c, 0x7d, 0xc7, 0x72, 0x5b, 0x0b, 0x26, 0xda, 0xa1, 0xa1, 0x4f,
   474  	0x9f, 0xbd, 0xd0, 0xd8, 0xa3, 0x73, 0x63, 0xdc, 0xfb, 0x0a, 0x51, 0xfe, 0x0b, 0x00, 0x00, 0xff,
   475  	0xff, 0x43, 0x80, 0x9a, 0x7c, 0x2b, 0x0d, 0x00, 0x00,
   476  }
   477  
   478  // Reference imports to suppress errors if they are not otherwise used.
   479  var _ context.Context
   480  var _ grpc.ClientConn
   481  
   482  // This is a compile-time assertion to ensure that this generated file
   483  // is compatible with the grpc package it is being compiled against.
   484  const _ = grpc.SupportPackageIsVersion4
   485  
   486  // MsgClient is the client API for Msg service.
   487  //
   488  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   489  type MsgClient interface {
   490  	// Submit a create liquidity pool message.
   491  	CreatePool(ctx context.Context, in *MsgCreatePool, opts ...grpc.CallOption) (*MsgCreatePoolResponse, error)
   492  	// Submit a deposit to the liquidity pool batch.
   493  	DepositWithinBatch(ctx context.Context, in *MsgDepositWithinBatch, opts ...grpc.CallOption) (*MsgDepositWithinBatchResponse, error)
   494  	// Submit a withdraw from the liquidity pool batch.
   495  	WithdrawWithinBatch(ctx context.Context, in *MsgWithdrawWithinBatch, opts ...grpc.CallOption) (*MsgWithdrawWithinBatchResponse, error)
   496  	// Submit a swap to the liquidity pool batch.
   497  	Swap(ctx context.Context, in *MsgSwapWithinBatch, opts ...grpc.CallOption) (*MsgSwapWithinBatchResponse, error)
   498  }
   499  
   500  type msgClient struct {
   501  	cc grpc1.ClientConn
   502  }
   503  
   504  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   505  	return &msgClient{cc}
   506  }
   507  
   508  func (c *msgClient) CreatePool(ctx context.Context, in *MsgCreatePool, opts ...grpc.CallOption) (*MsgCreatePoolResponse, error) {
   509  	out := new(MsgCreatePoolResponse)
   510  	err := c.cc.Invoke(ctx, "/tendermint.liquidity.v1beta1.Msg/CreatePool", in, out, opts...)
   511  	if err != nil {
   512  		return nil, err
   513  	}
   514  	return out, nil
   515  }
   516  
   517  func (c *msgClient) DepositWithinBatch(ctx context.Context, in *MsgDepositWithinBatch, opts ...grpc.CallOption) (*MsgDepositWithinBatchResponse, error) {
   518  	out := new(MsgDepositWithinBatchResponse)
   519  	err := c.cc.Invoke(ctx, "/tendermint.liquidity.v1beta1.Msg/DepositWithinBatch", in, out, opts...)
   520  	if err != nil {
   521  		return nil, err
   522  	}
   523  	return out, nil
   524  }
   525  
   526  func (c *msgClient) WithdrawWithinBatch(ctx context.Context, in *MsgWithdrawWithinBatch, opts ...grpc.CallOption) (*MsgWithdrawWithinBatchResponse, error) {
   527  	out := new(MsgWithdrawWithinBatchResponse)
   528  	err := c.cc.Invoke(ctx, "/tendermint.liquidity.v1beta1.Msg/WithdrawWithinBatch", in, out, opts...)
   529  	if err != nil {
   530  		return nil, err
   531  	}
   532  	return out, nil
   533  }
   534  
   535  func (c *msgClient) Swap(ctx context.Context, in *MsgSwapWithinBatch, opts ...grpc.CallOption) (*MsgSwapWithinBatchResponse, error) {
   536  	out := new(MsgSwapWithinBatchResponse)
   537  	err := c.cc.Invoke(ctx, "/tendermint.liquidity.v1beta1.Msg/Swap", in, out, opts...)
   538  	if err != nil {
   539  		return nil, err
   540  	}
   541  	return out, nil
   542  }
   543  
   544  // MsgServer is the server API for Msg service.
   545  type MsgServer interface {
   546  	// Submit a create liquidity pool message.
   547  	CreatePool(context.Context, *MsgCreatePool) (*MsgCreatePoolResponse, error)
   548  	// Submit a deposit to the liquidity pool batch.
   549  	DepositWithinBatch(context.Context, *MsgDepositWithinBatch) (*MsgDepositWithinBatchResponse, error)
   550  	// Submit a withdraw from the liquidity pool batch.
   551  	WithdrawWithinBatch(context.Context, *MsgWithdrawWithinBatch) (*MsgWithdrawWithinBatchResponse, error)
   552  	// Submit a swap to the liquidity pool batch.
   553  	Swap(context.Context, *MsgSwapWithinBatch) (*MsgSwapWithinBatchResponse, error)
   554  }
   555  
   556  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   557  type UnimplementedMsgServer struct {
   558  }
   559  
   560  func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePool) (*MsgCreatePoolResponse, error) {
   561  	return nil, status.Errorf(codes.Unimplemented, "method CreatePool not implemented")
   562  }
   563  func (*UnimplementedMsgServer) DepositWithinBatch(ctx context.Context, req *MsgDepositWithinBatch) (*MsgDepositWithinBatchResponse, error) {
   564  	return nil, status.Errorf(codes.Unimplemented, "method DepositWithinBatch not implemented")
   565  }
   566  func (*UnimplementedMsgServer) WithdrawWithinBatch(ctx context.Context, req *MsgWithdrawWithinBatch) (*MsgWithdrawWithinBatchResponse, error) {
   567  	return nil, status.Errorf(codes.Unimplemented, "method WithdrawWithinBatch not implemented")
   568  }
   569  func (*UnimplementedMsgServer) Swap(ctx context.Context, req *MsgSwapWithinBatch) (*MsgSwapWithinBatchResponse, error) {
   570  	return nil, status.Errorf(codes.Unimplemented, "method Swap not implemented")
   571  }
   572  
   573  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   574  	s.RegisterService(&_Msg_serviceDesc, srv)
   575  }
   576  
   577  func _Msg_CreatePool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   578  	in := new(MsgCreatePool)
   579  	if err := dec(in); err != nil {
   580  		return nil, err
   581  	}
   582  	if interceptor == nil {
   583  		return srv.(MsgServer).CreatePool(ctx, in)
   584  	}
   585  	info := &grpc.UnaryServerInfo{
   586  		Server:     srv,
   587  		FullMethod: "/tendermint.liquidity.v1beta1.Msg/CreatePool",
   588  	}
   589  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   590  		return srv.(MsgServer).CreatePool(ctx, req.(*MsgCreatePool))
   591  	}
   592  	return interceptor(ctx, in, info, handler)
   593  }
   594  
   595  func _Msg_DepositWithinBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   596  	in := new(MsgDepositWithinBatch)
   597  	if err := dec(in); err != nil {
   598  		return nil, err
   599  	}
   600  	if interceptor == nil {
   601  		return srv.(MsgServer).DepositWithinBatch(ctx, in)
   602  	}
   603  	info := &grpc.UnaryServerInfo{
   604  		Server:     srv,
   605  		FullMethod: "/tendermint.liquidity.v1beta1.Msg/DepositWithinBatch",
   606  	}
   607  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   608  		return srv.(MsgServer).DepositWithinBatch(ctx, req.(*MsgDepositWithinBatch))
   609  	}
   610  	return interceptor(ctx, in, info, handler)
   611  }
   612  
   613  func _Msg_WithdrawWithinBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   614  	in := new(MsgWithdrawWithinBatch)
   615  	if err := dec(in); err != nil {
   616  		return nil, err
   617  	}
   618  	if interceptor == nil {
   619  		return srv.(MsgServer).WithdrawWithinBatch(ctx, in)
   620  	}
   621  	info := &grpc.UnaryServerInfo{
   622  		Server:     srv,
   623  		FullMethod: "/tendermint.liquidity.v1beta1.Msg/WithdrawWithinBatch",
   624  	}
   625  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   626  		return srv.(MsgServer).WithdrawWithinBatch(ctx, req.(*MsgWithdrawWithinBatch))
   627  	}
   628  	return interceptor(ctx, in, info, handler)
   629  }
   630  
   631  func _Msg_Swap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   632  	in := new(MsgSwapWithinBatch)
   633  	if err := dec(in); err != nil {
   634  		return nil, err
   635  	}
   636  	if interceptor == nil {
   637  		return srv.(MsgServer).Swap(ctx, in)
   638  	}
   639  	info := &grpc.UnaryServerInfo{
   640  		Server:     srv,
   641  		FullMethod: "/tendermint.liquidity.v1beta1.Msg/Swap",
   642  	}
   643  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   644  		return srv.(MsgServer).Swap(ctx, req.(*MsgSwapWithinBatch))
   645  	}
   646  	return interceptor(ctx, in, info, handler)
   647  }
   648  
   649  var _Msg_serviceDesc = grpc.ServiceDesc{
   650  	ServiceName: "tendermint.liquidity.v1beta1.Msg",
   651  	HandlerType: (*MsgServer)(nil),
   652  	Methods: []grpc.MethodDesc{
   653  		{
   654  			MethodName: "CreatePool",
   655  			Handler:    _Msg_CreatePool_Handler,
   656  		},
   657  		{
   658  			MethodName: "DepositWithinBatch",
   659  			Handler:    _Msg_DepositWithinBatch_Handler,
   660  		},
   661  		{
   662  			MethodName: "WithdrawWithinBatch",
   663  			Handler:    _Msg_WithdrawWithinBatch_Handler,
   664  		},
   665  		{
   666  			MethodName: "Swap",
   667  			Handler:    _Msg_Swap_Handler,
   668  		},
   669  	},
   670  	Streams:  []grpc.StreamDesc{},
   671  	Metadata: "tendermint/liquidity/v1beta1/tx.proto",
   672  }
   673  
   674  func (m *MsgCreatePool) Marshal() (dAtA []byte, err error) {
   675  	size := m.Size()
   676  	dAtA = make([]byte, size)
   677  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   678  	if err != nil {
   679  		return nil, err
   680  	}
   681  	return dAtA[:n], nil
   682  }
   683  
   684  func (m *MsgCreatePool) MarshalTo(dAtA []byte) (int, error) {
   685  	size := m.Size()
   686  	return m.MarshalToSizedBuffer(dAtA[:size])
   687  }
   688  
   689  func (m *MsgCreatePool) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   690  	i := len(dAtA)
   691  	_ = i
   692  	var l int
   693  	_ = l
   694  	if len(m.DepositCoins) > 0 {
   695  		for iNdEx := len(m.DepositCoins) - 1; iNdEx >= 0; iNdEx-- {
   696  			{
   697  				size, err := m.DepositCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   698  				if err != nil {
   699  					return 0, err
   700  				}
   701  				i -= size
   702  				i = encodeVarintTx(dAtA, i, uint64(size))
   703  			}
   704  			i--
   705  			dAtA[i] = 0x22
   706  		}
   707  	}
   708  	if m.PoolTypeId != 0 {
   709  		i = encodeVarintTx(dAtA, i, uint64(m.PoolTypeId))
   710  		i--
   711  		dAtA[i] = 0x10
   712  	}
   713  	if len(m.PoolCreatorAddress) > 0 {
   714  		i -= len(m.PoolCreatorAddress)
   715  		copy(dAtA[i:], m.PoolCreatorAddress)
   716  		i = encodeVarintTx(dAtA, i, uint64(len(m.PoolCreatorAddress)))
   717  		i--
   718  		dAtA[i] = 0xa
   719  	}
   720  	return len(dAtA) - i, nil
   721  }
   722  
   723  func (m *MsgCreatePoolResponse) Marshal() (dAtA []byte, err error) {
   724  	size := m.Size()
   725  	dAtA = make([]byte, size)
   726  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   727  	if err != nil {
   728  		return nil, err
   729  	}
   730  	return dAtA[:n], nil
   731  }
   732  
   733  func (m *MsgCreatePoolResponse) MarshalTo(dAtA []byte) (int, error) {
   734  	size := m.Size()
   735  	return m.MarshalToSizedBuffer(dAtA[:size])
   736  }
   737  
   738  func (m *MsgCreatePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   739  	i := len(dAtA)
   740  	_ = i
   741  	var l int
   742  	_ = l
   743  	return len(dAtA) - i, nil
   744  }
   745  
   746  func (m *MsgDepositWithinBatch) Marshal() (dAtA []byte, err error) {
   747  	size := m.Size()
   748  	dAtA = make([]byte, size)
   749  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   750  	if err != nil {
   751  		return nil, err
   752  	}
   753  	return dAtA[:n], nil
   754  }
   755  
   756  func (m *MsgDepositWithinBatch) MarshalTo(dAtA []byte) (int, error) {
   757  	size := m.Size()
   758  	return m.MarshalToSizedBuffer(dAtA[:size])
   759  }
   760  
   761  func (m *MsgDepositWithinBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   762  	i := len(dAtA)
   763  	_ = i
   764  	var l int
   765  	_ = l
   766  	if len(m.DepositCoins) > 0 {
   767  		for iNdEx := len(m.DepositCoins) - 1; iNdEx >= 0; iNdEx-- {
   768  			{
   769  				size, err := m.DepositCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   770  				if err != nil {
   771  					return 0, err
   772  				}
   773  				i -= size
   774  				i = encodeVarintTx(dAtA, i, uint64(size))
   775  			}
   776  			i--
   777  			dAtA[i] = 0x1a
   778  		}
   779  	}
   780  	if m.PoolId != 0 {
   781  		i = encodeVarintTx(dAtA, i, uint64(m.PoolId))
   782  		i--
   783  		dAtA[i] = 0x10
   784  	}
   785  	if len(m.DepositorAddress) > 0 {
   786  		i -= len(m.DepositorAddress)
   787  		copy(dAtA[i:], m.DepositorAddress)
   788  		i = encodeVarintTx(dAtA, i, uint64(len(m.DepositorAddress)))
   789  		i--
   790  		dAtA[i] = 0xa
   791  	}
   792  	return len(dAtA) - i, nil
   793  }
   794  
   795  func (m *MsgDepositWithinBatchResponse) Marshal() (dAtA []byte, err error) {
   796  	size := m.Size()
   797  	dAtA = make([]byte, size)
   798  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   799  	if err != nil {
   800  		return nil, err
   801  	}
   802  	return dAtA[:n], nil
   803  }
   804  
   805  func (m *MsgDepositWithinBatchResponse) MarshalTo(dAtA []byte) (int, error) {
   806  	size := m.Size()
   807  	return m.MarshalToSizedBuffer(dAtA[:size])
   808  }
   809  
   810  func (m *MsgDepositWithinBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   811  	i := len(dAtA)
   812  	_ = i
   813  	var l int
   814  	_ = l
   815  	return len(dAtA) - i, nil
   816  }
   817  
   818  func (m *MsgWithdrawWithinBatch) Marshal() (dAtA []byte, err error) {
   819  	size := m.Size()
   820  	dAtA = make([]byte, size)
   821  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   822  	if err != nil {
   823  		return nil, err
   824  	}
   825  	return dAtA[:n], nil
   826  }
   827  
   828  func (m *MsgWithdrawWithinBatch) MarshalTo(dAtA []byte) (int, error) {
   829  	size := m.Size()
   830  	return m.MarshalToSizedBuffer(dAtA[:size])
   831  }
   832  
   833  func (m *MsgWithdrawWithinBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   834  	i := len(dAtA)
   835  	_ = i
   836  	var l int
   837  	_ = l
   838  	{
   839  		size, err := m.PoolCoin.MarshalToSizedBuffer(dAtA[:i])
   840  		if err != nil {
   841  			return 0, err
   842  		}
   843  		i -= size
   844  		i = encodeVarintTx(dAtA, i, uint64(size))
   845  	}
   846  	i--
   847  	dAtA[i] = 0x1a
   848  	if m.PoolId != 0 {
   849  		i = encodeVarintTx(dAtA, i, uint64(m.PoolId))
   850  		i--
   851  		dAtA[i] = 0x10
   852  	}
   853  	if len(m.WithdrawerAddress) > 0 {
   854  		i -= len(m.WithdrawerAddress)
   855  		copy(dAtA[i:], m.WithdrawerAddress)
   856  		i = encodeVarintTx(dAtA, i, uint64(len(m.WithdrawerAddress)))
   857  		i--
   858  		dAtA[i] = 0xa
   859  	}
   860  	return len(dAtA) - i, nil
   861  }
   862  
   863  func (m *MsgWithdrawWithinBatchResponse) Marshal() (dAtA []byte, err error) {
   864  	size := m.Size()
   865  	dAtA = make([]byte, size)
   866  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   867  	if err != nil {
   868  		return nil, err
   869  	}
   870  	return dAtA[:n], nil
   871  }
   872  
   873  func (m *MsgWithdrawWithinBatchResponse) MarshalTo(dAtA []byte) (int, error) {
   874  	size := m.Size()
   875  	return m.MarshalToSizedBuffer(dAtA[:size])
   876  }
   877  
   878  func (m *MsgWithdrawWithinBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   879  	i := len(dAtA)
   880  	_ = i
   881  	var l int
   882  	_ = l
   883  	return len(dAtA) - i, nil
   884  }
   885  
   886  func (m *MsgSwapWithinBatch) Marshal() (dAtA []byte, err error) {
   887  	size := m.Size()
   888  	dAtA = make([]byte, size)
   889  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   890  	if err != nil {
   891  		return nil, err
   892  	}
   893  	return dAtA[:n], nil
   894  }
   895  
   896  func (m *MsgSwapWithinBatch) MarshalTo(dAtA []byte) (int, error) {
   897  	size := m.Size()
   898  	return m.MarshalToSizedBuffer(dAtA[:size])
   899  }
   900  
   901  func (m *MsgSwapWithinBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   902  	i := len(dAtA)
   903  	_ = i
   904  	var l int
   905  	_ = l
   906  	{
   907  		size := m.OrderPrice.Size()
   908  		i -= size
   909  		if _, err := m.OrderPrice.MarshalTo(dAtA[i:]); err != nil {
   910  			return 0, err
   911  		}
   912  		i = encodeVarintTx(dAtA, i, uint64(size))
   913  	}
   914  	i--
   915  	dAtA[i] = 0x3a
   916  	{
   917  		size, err := m.OfferCoinFee.MarshalToSizedBuffer(dAtA[:i])
   918  		if err != nil {
   919  			return 0, err
   920  		}
   921  		i -= size
   922  		i = encodeVarintTx(dAtA, i, uint64(size))
   923  	}
   924  	i--
   925  	dAtA[i] = 0x32
   926  	if len(m.DemandCoinDenom) > 0 {
   927  		i -= len(m.DemandCoinDenom)
   928  		copy(dAtA[i:], m.DemandCoinDenom)
   929  		i = encodeVarintTx(dAtA, i, uint64(len(m.DemandCoinDenom)))
   930  		i--
   931  		dAtA[i] = 0x2a
   932  	}
   933  	{
   934  		size, err := m.OfferCoin.MarshalToSizedBuffer(dAtA[:i])
   935  		if err != nil {
   936  			return 0, err
   937  		}
   938  		i -= size
   939  		i = encodeVarintTx(dAtA, i, uint64(size))
   940  	}
   941  	i--
   942  	dAtA[i] = 0x22
   943  	if m.SwapTypeId != 0 {
   944  		i = encodeVarintTx(dAtA, i, uint64(m.SwapTypeId))
   945  		i--
   946  		dAtA[i] = 0x18
   947  	}
   948  	if m.PoolId != 0 {
   949  		i = encodeVarintTx(dAtA, i, uint64(m.PoolId))
   950  		i--
   951  		dAtA[i] = 0x10
   952  	}
   953  	if len(m.SwapRequesterAddress) > 0 {
   954  		i -= len(m.SwapRequesterAddress)
   955  		copy(dAtA[i:], m.SwapRequesterAddress)
   956  		i = encodeVarintTx(dAtA, i, uint64(len(m.SwapRequesterAddress)))
   957  		i--
   958  		dAtA[i] = 0xa
   959  	}
   960  	return len(dAtA) - i, nil
   961  }
   962  
   963  func (m *MsgSwapWithinBatchResponse) Marshal() (dAtA []byte, err error) {
   964  	size := m.Size()
   965  	dAtA = make([]byte, size)
   966  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   967  	if err != nil {
   968  		return nil, err
   969  	}
   970  	return dAtA[:n], nil
   971  }
   972  
   973  func (m *MsgSwapWithinBatchResponse) MarshalTo(dAtA []byte) (int, error) {
   974  	size := m.Size()
   975  	return m.MarshalToSizedBuffer(dAtA[:size])
   976  }
   977  
   978  func (m *MsgSwapWithinBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   979  	i := len(dAtA)
   980  	_ = i
   981  	var l int
   982  	_ = l
   983  	return len(dAtA) - i, nil
   984  }
   985  
   986  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
   987  	offset -= sovTx(v)
   988  	base := offset
   989  	for v >= 1<<7 {
   990  		dAtA[offset] = uint8(v&0x7f | 0x80)
   991  		v >>= 7
   992  		offset++
   993  	}
   994  	dAtA[offset] = uint8(v)
   995  	return base
   996  }
   997  func (m *MsgCreatePool) Size() (n int) {
   998  	if m == nil {
   999  		return 0
  1000  	}
  1001  	var l int
  1002  	_ = l
  1003  	l = len(m.PoolCreatorAddress)
  1004  	if l > 0 {
  1005  		n += 1 + l + sovTx(uint64(l))
  1006  	}
  1007  	if m.PoolTypeId != 0 {
  1008  		n += 1 + sovTx(uint64(m.PoolTypeId))
  1009  	}
  1010  	if len(m.DepositCoins) > 0 {
  1011  		for _, e := range m.DepositCoins {
  1012  			l = e.Size()
  1013  			n += 1 + l + sovTx(uint64(l))
  1014  		}
  1015  	}
  1016  	return n
  1017  }
  1018  
  1019  func (m *MsgCreatePoolResponse) Size() (n int) {
  1020  	if m == nil {
  1021  		return 0
  1022  	}
  1023  	var l int
  1024  	_ = l
  1025  	return n
  1026  }
  1027  
  1028  func (m *MsgDepositWithinBatch) Size() (n int) {
  1029  	if m == nil {
  1030  		return 0
  1031  	}
  1032  	var l int
  1033  	_ = l
  1034  	l = len(m.DepositorAddress)
  1035  	if l > 0 {
  1036  		n += 1 + l + sovTx(uint64(l))
  1037  	}
  1038  	if m.PoolId != 0 {
  1039  		n += 1 + sovTx(uint64(m.PoolId))
  1040  	}
  1041  	if len(m.DepositCoins) > 0 {
  1042  		for _, e := range m.DepositCoins {
  1043  			l = e.Size()
  1044  			n += 1 + l + sovTx(uint64(l))
  1045  		}
  1046  	}
  1047  	return n
  1048  }
  1049  
  1050  func (m *MsgDepositWithinBatchResponse) Size() (n int) {
  1051  	if m == nil {
  1052  		return 0
  1053  	}
  1054  	var l int
  1055  	_ = l
  1056  	return n
  1057  }
  1058  
  1059  func (m *MsgWithdrawWithinBatch) Size() (n int) {
  1060  	if m == nil {
  1061  		return 0
  1062  	}
  1063  	var l int
  1064  	_ = l
  1065  	l = len(m.WithdrawerAddress)
  1066  	if l > 0 {
  1067  		n += 1 + l + sovTx(uint64(l))
  1068  	}
  1069  	if m.PoolId != 0 {
  1070  		n += 1 + sovTx(uint64(m.PoolId))
  1071  	}
  1072  	l = m.PoolCoin.Size()
  1073  	n += 1 + l + sovTx(uint64(l))
  1074  	return n
  1075  }
  1076  
  1077  func (m *MsgWithdrawWithinBatchResponse) Size() (n int) {
  1078  	if m == nil {
  1079  		return 0
  1080  	}
  1081  	var l int
  1082  	_ = l
  1083  	return n
  1084  }
  1085  
  1086  func (m *MsgSwapWithinBatch) Size() (n int) {
  1087  	if m == nil {
  1088  		return 0
  1089  	}
  1090  	var l int
  1091  	_ = l
  1092  	l = len(m.SwapRequesterAddress)
  1093  	if l > 0 {
  1094  		n += 1 + l + sovTx(uint64(l))
  1095  	}
  1096  	if m.PoolId != 0 {
  1097  		n += 1 + sovTx(uint64(m.PoolId))
  1098  	}
  1099  	if m.SwapTypeId != 0 {
  1100  		n += 1 + sovTx(uint64(m.SwapTypeId))
  1101  	}
  1102  	l = m.OfferCoin.Size()
  1103  	n += 1 + l + sovTx(uint64(l))
  1104  	l = len(m.DemandCoinDenom)
  1105  	if l > 0 {
  1106  		n += 1 + l + sovTx(uint64(l))
  1107  	}
  1108  	l = m.OfferCoinFee.Size()
  1109  	n += 1 + l + sovTx(uint64(l))
  1110  	l = m.OrderPrice.Size()
  1111  	n += 1 + l + sovTx(uint64(l))
  1112  	return n
  1113  }
  1114  
  1115  func (m *MsgSwapWithinBatchResponse) Size() (n int) {
  1116  	if m == nil {
  1117  		return 0
  1118  	}
  1119  	var l int
  1120  	_ = l
  1121  	return n
  1122  }
  1123  
  1124  func sovTx(x uint64) (n int) {
  1125  	return (math_bits.Len64(x|1) + 6) / 7
  1126  }
  1127  func sozTx(x uint64) (n int) {
  1128  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1129  }
  1130  func (m *MsgCreatePool) Unmarshal(dAtA []byte) error {
  1131  	l := len(dAtA)
  1132  	iNdEx := 0
  1133  	for iNdEx < l {
  1134  		preIndex := iNdEx
  1135  		var wire uint64
  1136  		for shift := uint(0); ; shift += 7 {
  1137  			if shift >= 64 {
  1138  				return ErrIntOverflowTx
  1139  			}
  1140  			if iNdEx >= l {
  1141  				return io.ErrUnexpectedEOF
  1142  			}
  1143  			b := dAtA[iNdEx]
  1144  			iNdEx++
  1145  			wire |= uint64(b&0x7F) << shift
  1146  			if b < 0x80 {
  1147  				break
  1148  			}
  1149  		}
  1150  		fieldNum := int32(wire >> 3)
  1151  		wireType := int(wire & 0x7)
  1152  		if wireType == 4 {
  1153  			return fmt.Errorf("proto: MsgCreatePool: wiretype end group for non-group")
  1154  		}
  1155  		if fieldNum <= 0 {
  1156  			return fmt.Errorf("proto: MsgCreatePool: illegal tag %d (wire type %d)", fieldNum, wire)
  1157  		}
  1158  		switch fieldNum {
  1159  		case 1:
  1160  			if wireType != 2 {
  1161  				return fmt.Errorf("proto: wrong wireType = %d for field PoolCreatorAddress", wireType)
  1162  			}
  1163  			var stringLen uint64
  1164  			for shift := uint(0); ; shift += 7 {
  1165  				if shift >= 64 {
  1166  					return ErrIntOverflowTx
  1167  				}
  1168  				if iNdEx >= l {
  1169  					return io.ErrUnexpectedEOF
  1170  				}
  1171  				b := dAtA[iNdEx]
  1172  				iNdEx++
  1173  				stringLen |= uint64(b&0x7F) << shift
  1174  				if b < 0x80 {
  1175  					break
  1176  				}
  1177  			}
  1178  			intStringLen := int(stringLen)
  1179  			if intStringLen < 0 {
  1180  				return ErrInvalidLengthTx
  1181  			}
  1182  			postIndex := iNdEx + intStringLen
  1183  			if postIndex < 0 {
  1184  				return ErrInvalidLengthTx
  1185  			}
  1186  			if postIndex > l {
  1187  				return io.ErrUnexpectedEOF
  1188  			}
  1189  			m.PoolCreatorAddress = string(dAtA[iNdEx:postIndex])
  1190  			iNdEx = postIndex
  1191  		case 2:
  1192  			if wireType != 0 {
  1193  				return fmt.Errorf("proto: wrong wireType = %d for field PoolTypeId", wireType)
  1194  			}
  1195  			m.PoolTypeId = 0
  1196  			for shift := uint(0); ; shift += 7 {
  1197  				if shift >= 64 {
  1198  					return ErrIntOverflowTx
  1199  				}
  1200  				if iNdEx >= l {
  1201  					return io.ErrUnexpectedEOF
  1202  				}
  1203  				b := dAtA[iNdEx]
  1204  				iNdEx++
  1205  				m.PoolTypeId |= uint32(b&0x7F) << shift
  1206  				if b < 0x80 {
  1207  					break
  1208  				}
  1209  			}
  1210  		case 4:
  1211  			if wireType != 2 {
  1212  				return fmt.Errorf("proto: wrong wireType = %d for field DepositCoins", wireType)
  1213  			}
  1214  			var msglen int
  1215  			for shift := uint(0); ; shift += 7 {
  1216  				if shift >= 64 {
  1217  					return ErrIntOverflowTx
  1218  				}
  1219  				if iNdEx >= l {
  1220  					return io.ErrUnexpectedEOF
  1221  				}
  1222  				b := dAtA[iNdEx]
  1223  				iNdEx++
  1224  				msglen |= int(b&0x7F) << shift
  1225  				if b < 0x80 {
  1226  					break
  1227  				}
  1228  			}
  1229  			if msglen < 0 {
  1230  				return ErrInvalidLengthTx
  1231  			}
  1232  			postIndex := iNdEx + msglen
  1233  			if postIndex < 0 {
  1234  				return ErrInvalidLengthTx
  1235  			}
  1236  			if postIndex > l {
  1237  				return io.ErrUnexpectedEOF
  1238  			}
  1239  			m.DepositCoins = append(m.DepositCoins, types.Coin{})
  1240  			if err := m.DepositCoins[len(m.DepositCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1241  				return err
  1242  			}
  1243  			iNdEx = postIndex
  1244  		default:
  1245  			iNdEx = preIndex
  1246  			skippy, err := skipTx(dAtA[iNdEx:])
  1247  			if err != nil {
  1248  				return err
  1249  			}
  1250  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1251  				return ErrInvalidLengthTx
  1252  			}
  1253  			if (iNdEx + skippy) > l {
  1254  				return io.ErrUnexpectedEOF
  1255  			}
  1256  			iNdEx += skippy
  1257  		}
  1258  	}
  1259  
  1260  	if iNdEx > l {
  1261  		return io.ErrUnexpectedEOF
  1262  	}
  1263  	return nil
  1264  }
  1265  func (m *MsgCreatePoolResponse) Unmarshal(dAtA []byte) error {
  1266  	l := len(dAtA)
  1267  	iNdEx := 0
  1268  	for iNdEx < l {
  1269  		preIndex := iNdEx
  1270  		var wire uint64
  1271  		for shift := uint(0); ; shift += 7 {
  1272  			if shift >= 64 {
  1273  				return ErrIntOverflowTx
  1274  			}
  1275  			if iNdEx >= l {
  1276  				return io.ErrUnexpectedEOF
  1277  			}
  1278  			b := dAtA[iNdEx]
  1279  			iNdEx++
  1280  			wire |= uint64(b&0x7F) << shift
  1281  			if b < 0x80 {
  1282  				break
  1283  			}
  1284  		}
  1285  		fieldNum := int32(wire >> 3)
  1286  		wireType := int(wire & 0x7)
  1287  		if wireType == 4 {
  1288  			return fmt.Errorf("proto: MsgCreatePoolResponse: wiretype end group for non-group")
  1289  		}
  1290  		if fieldNum <= 0 {
  1291  			return fmt.Errorf("proto: MsgCreatePoolResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1292  		}
  1293  		switch fieldNum {
  1294  		default:
  1295  			iNdEx = preIndex
  1296  			skippy, err := skipTx(dAtA[iNdEx:])
  1297  			if err != nil {
  1298  				return err
  1299  			}
  1300  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1301  				return ErrInvalidLengthTx
  1302  			}
  1303  			if (iNdEx + skippy) > l {
  1304  				return io.ErrUnexpectedEOF
  1305  			}
  1306  			iNdEx += skippy
  1307  		}
  1308  	}
  1309  
  1310  	if iNdEx > l {
  1311  		return io.ErrUnexpectedEOF
  1312  	}
  1313  	return nil
  1314  }
  1315  func (m *MsgDepositWithinBatch) Unmarshal(dAtA []byte) error {
  1316  	l := len(dAtA)
  1317  	iNdEx := 0
  1318  	for iNdEx < l {
  1319  		preIndex := iNdEx
  1320  		var wire uint64
  1321  		for shift := uint(0); ; shift += 7 {
  1322  			if shift >= 64 {
  1323  				return ErrIntOverflowTx
  1324  			}
  1325  			if iNdEx >= l {
  1326  				return io.ErrUnexpectedEOF
  1327  			}
  1328  			b := dAtA[iNdEx]
  1329  			iNdEx++
  1330  			wire |= uint64(b&0x7F) << shift
  1331  			if b < 0x80 {
  1332  				break
  1333  			}
  1334  		}
  1335  		fieldNum := int32(wire >> 3)
  1336  		wireType := int(wire & 0x7)
  1337  		if wireType == 4 {
  1338  			return fmt.Errorf("proto: MsgDepositWithinBatch: wiretype end group for non-group")
  1339  		}
  1340  		if fieldNum <= 0 {
  1341  			return fmt.Errorf("proto: MsgDepositWithinBatch: illegal tag %d (wire type %d)", fieldNum, wire)
  1342  		}
  1343  		switch fieldNum {
  1344  		case 1:
  1345  			if wireType != 2 {
  1346  				return fmt.Errorf("proto: wrong wireType = %d for field DepositorAddress", wireType)
  1347  			}
  1348  			var stringLen uint64
  1349  			for shift := uint(0); ; shift += 7 {
  1350  				if shift >= 64 {
  1351  					return ErrIntOverflowTx
  1352  				}
  1353  				if iNdEx >= l {
  1354  					return io.ErrUnexpectedEOF
  1355  				}
  1356  				b := dAtA[iNdEx]
  1357  				iNdEx++
  1358  				stringLen |= uint64(b&0x7F) << shift
  1359  				if b < 0x80 {
  1360  					break
  1361  				}
  1362  			}
  1363  			intStringLen := int(stringLen)
  1364  			if intStringLen < 0 {
  1365  				return ErrInvalidLengthTx
  1366  			}
  1367  			postIndex := iNdEx + intStringLen
  1368  			if postIndex < 0 {
  1369  				return ErrInvalidLengthTx
  1370  			}
  1371  			if postIndex > l {
  1372  				return io.ErrUnexpectedEOF
  1373  			}
  1374  			m.DepositorAddress = string(dAtA[iNdEx:postIndex])
  1375  			iNdEx = postIndex
  1376  		case 2:
  1377  			if wireType != 0 {
  1378  				return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType)
  1379  			}
  1380  			m.PoolId = 0
  1381  			for shift := uint(0); ; shift += 7 {
  1382  				if shift >= 64 {
  1383  					return ErrIntOverflowTx
  1384  				}
  1385  				if iNdEx >= l {
  1386  					return io.ErrUnexpectedEOF
  1387  				}
  1388  				b := dAtA[iNdEx]
  1389  				iNdEx++
  1390  				m.PoolId |= uint64(b&0x7F) << shift
  1391  				if b < 0x80 {
  1392  					break
  1393  				}
  1394  			}
  1395  		case 3:
  1396  			if wireType != 2 {
  1397  				return fmt.Errorf("proto: wrong wireType = %d for field DepositCoins", wireType)
  1398  			}
  1399  			var msglen int
  1400  			for shift := uint(0); ; shift += 7 {
  1401  				if shift >= 64 {
  1402  					return ErrIntOverflowTx
  1403  				}
  1404  				if iNdEx >= l {
  1405  					return io.ErrUnexpectedEOF
  1406  				}
  1407  				b := dAtA[iNdEx]
  1408  				iNdEx++
  1409  				msglen |= int(b&0x7F) << shift
  1410  				if b < 0x80 {
  1411  					break
  1412  				}
  1413  			}
  1414  			if msglen < 0 {
  1415  				return ErrInvalidLengthTx
  1416  			}
  1417  			postIndex := iNdEx + msglen
  1418  			if postIndex < 0 {
  1419  				return ErrInvalidLengthTx
  1420  			}
  1421  			if postIndex > l {
  1422  				return io.ErrUnexpectedEOF
  1423  			}
  1424  			m.DepositCoins = append(m.DepositCoins, types.Coin{})
  1425  			if err := m.DepositCoins[len(m.DepositCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1426  				return err
  1427  			}
  1428  			iNdEx = postIndex
  1429  		default:
  1430  			iNdEx = preIndex
  1431  			skippy, err := skipTx(dAtA[iNdEx:])
  1432  			if err != nil {
  1433  				return err
  1434  			}
  1435  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1436  				return ErrInvalidLengthTx
  1437  			}
  1438  			if (iNdEx + skippy) > l {
  1439  				return io.ErrUnexpectedEOF
  1440  			}
  1441  			iNdEx += skippy
  1442  		}
  1443  	}
  1444  
  1445  	if iNdEx > l {
  1446  		return io.ErrUnexpectedEOF
  1447  	}
  1448  	return nil
  1449  }
  1450  func (m *MsgDepositWithinBatchResponse) Unmarshal(dAtA []byte) error {
  1451  	l := len(dAtA)
  1452  	iNdEx := 0
  1453  	for iNdEx < l {
  1454  		preIndex := iNdEx
  1455  		var wire uint64
  1456  		for shift := uint(0); ; shift += 7 {
  1457  			if shift >= 64 {
  1458  				return ErrIntOverflowTx
  1459  			}
  1460  			if iNdEx >= l {
  1461  				return io.ErrUnexpectedEOF
  1462  			}
  1463  			b := dAtA[iNdEx]
  1464  			iNdEx++
  1465  			wire |= uint64(b&0x7F) << shift
  1466  			if b < 0x80 {
  1467  				break
  1468  			}
  1469  		}
  1470  		fieldNum := int32(wire >> 3)
  1471  		wireType := int(wire & 0x7)
  1472  		if wireType == 4 {
  1473  			return fmt.Errorf("proto: MsgDepositWithinBatchResponse: wiretype end group for non-group")
  1474  		}
  1475  		if fieldNum <= 0 {
  1476  			return fmt.Errorf("proto: MsgDepositWithinBatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1477  		}
  1478  		switch fieldNum {
  1479  		default:
  1480  			iNdEx = preIndex
  1481  			skippy, err := skipTx(dAtA[iNdEx:])
  1482  			if err != nil {
  1483  				return err
  1484  			}
  1485  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1486  				return ErrInvalidLengthTx
  1487  			}
  1488  			if (iNdEx + skippy) > l {
  1489  				return io.ErrUnexpectedEOF
  1490  			}
  1491  			iNdEx += skippy
  1492  		}
  1493  	}
  1494  
  1495  	if iNdEx > l {
  1496  		return io.ErrUnexpectedEOF
  1497  	}
  1498  	return nil
  1499  }
  1500  func (m *MsgWithdrawWithinBatch) Unmarshal(dAtA []byte) error {
  1501  	l := len(dAtA)
  1502  	iNdEx := 0
  1503  	for iNdEx < l {
  1504  		preIndex := iNdEx
  1505  		var wire uint64
  1506  		for shift := uint(0); ; shift += 7 {
  1507  			if shift >= 64 {
  1508  				return ErrIntOverflowTx
  1509  			}
  1510  			if iNdEx >= l {
  1511  				return io.ErrUnexpectedEOF
  1512  			}
  1513  			b := dAtA[iNdEx]
  1514  			iNdEx++
  1515  			wire |= uint64(b&0x7F) << shift
  1516  			if b < 0x80 {
  1517  				break
  1518  			}
  1519  		}
  1520  		fieldNum := int32(wire >> 3)
  1521  		wireType := int(wire & 0x7)
  1522  		if wireType == 4 {
  1523  			return fmt.Errorf("proto: MsgWithdrawWithinBatch: wiretype end group for non-group")
  1524  		}
  1525  		if fieldNum <= 0 {
  1526  			return fmt.Errorf("proto: MsgWithdrawWithinBatch: illegal tag %d (wire type %d)", fieldNum, wire)
  1527  		}
  1528  		switch fieldNum {
  1529  		case 1:
  1530  			if wireType != 2 {
  1531  				return fmt.Errorf("proto: wrong wireType = %d for field WithdrawerAddress", wireType)
  1532  			}
  1533  			var stringLen uint64
  1534  			for shift := uint(0); ; shift += 7 {
  1535  				if shift >= 64 {
  1536  					return ErrIntOverflowTx
  1537  				}
  1538  				if iNdEx >= l {
  1539  					return io.ErrUnexpectedEOF
  1540  				}
  1541  				b := dAtA[iNdEx]
  1542  				iNdEx++
  1543  				stringLen |= uint64(b&0x7F) << shift
  1544  				if b < 0x80 {
  1545  					break
  1546  				}
  1547  			}
  1548  			intStringLen := int(stringLen)
  1549  			if intStringLen < 0 {
  1550  				return ErrInvalidLengthTx
  1551  			}
  1552  			postIndex := iNdEx + intStringLen
  1553  			if postIndex < 0 {
  1554  				return ErrInvalidLengthTx
  1555  			}
  1556  			if postIndex > l {
  1557  				return io.ErrUnexpectedEOF
  1558  			}
  1559  			m.WithdrawerAddress = string(dAtA[iNdEx:postIndex])
  1560  			iNdEx = postIndex
  1561  		case 2:
  1562  			if wireType != 0 {
  1563  				return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType)
  1564  			}
  1565  			m.PoolId = 0
  1566  			for shift := uint(0); ; shift += 7 {
  1567  				if shift >= 64 {
  1568  					return ErrIntOverflowTx
  1569  				}
  1570  				if iNdEx >= l {
  1571  					return io.ErrUnexpectedEOF
  1572  				}
  1573  				b := dAtA[iNdEx]
  1574  				iNdEx++
  1575  				m.PoolId |= uint64(b&0x7F) << shift
  1576  				if b < 0x80 {
  1577  					break
  1578  				}
  1579  			}
  1580  		case 3:
  1581  			if wireType != 2 {
  1582  				return fmt.Errorf("proto: wrong wireType = %d for field PoolCoin", wireType)
  1583  			}
  1584  			var msglen int
  1585  			for shift := uint(0); ; shift += 7 {
  1586  				if shift >= 64 {
  1587  					return ErrIntOverflowTx
  1588  				}
  1589  				if iNdEx >= l {
  1590  					return io.ErrUnexpectedEOF
  1591  				}
  1592  				b := dAtA[iNdEx]
  1593  				iNdEx++
  1594  				msglen |= int(b&0x7F) << shift
  1595  				if b < 0x80 {
  1596  					break
  1597  				}
  1598  			}
  1599  			if msglen < 0 {
  1600  				return ErrInvalidLengthTx
  1601  			}
  1602  			postIndex := iNdEx + msglen
  1603  			if postIndex < 0 {
  1604  				return ErrInvalidLengthTx
  1605  			}
  1606  			if postIndex > l {
  1607  				return io.ErrUnexpectedEOF
  1608  			}
  1609  			if err := m.PoolCoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1610  				return err
  1611  			}
  1612  			iNdEx = postIndex
  1613  		default:
  1614  			iNdEx = preIndex
  1615  			skippy, err := skipTx(dAtA[iNdEx:])
  1616  			if err != nil {
  1617  				return err
  1618  			}
  1619  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1620  				return ErrInvalidLengthTx
  1621  			}
  1622  			if (iNdEx + skippy) > l {
  1623  				return io.ErrUnexpectedEOF
  1624  			}
  1625  			iNdEx += skippy
  1626  		}
  1627  	}
  1628  
  1629  	if iNdEx > l {
  1630  		return io.ErrUnexpectedEOF
  1631  	}
  1632  	return nil
  1633  }
  1634  func (m *MsgWithdrawWithinBatchResponse) Unmarshal(dAtA []byte) error {
  1635  	l := len(dAtA)
  1636  	iNdEx := 0
  1637  	for iNdEx < l {
  1638  		preIndex := iNdEx
  1639  		var wire uint64
  1640  		for shift := uint(0); ; shift += 7 {
  1641  			if shift >= 64 {
  1642  				return ErrIntOverflowTx
  1643  			}
  1644  			if iNdEx >= l {
  1645  				return io.ErrUnexpectedEOF
  1646  			}
  1647  			b := dAtA[iNdEx]
  1648  			iNdEx++
  1649  			wire |= uint64(b&0x7F) << shift
  1650  			if b < 0x80 {
  1651  				break
  1652  			}
  1653  		}
  1654  		fieldNum := int32(wire >> 3)
  1655  		wireType := int(wire & 0x7)
  1656  		if wireType == 4 {
  1657  			return fmt.Errorf("proto: MsgWithdrawWithinBatchResponse: wiretype end group for non-group")
  1658  		}
  1659  		if fieldNum <= 0 {
  1660  			return fmt.Errorf("proto: MsgWithdrawWithinBatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1661  		}
  1662  		switch fieldNum {
  1663  		default:
  1664  			iNdEx = preIndex
  1665  			skippy, err := skipTx(dAtA[iNdEx:])
  1666  			if err != nil {
  1667  				return err
  1668  			}
  1669  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1670  				return ErrInvalidLengthTx
  1671  			}
  1672  			if (iNdEx + skippy) > l {
  1673  				return io.ErrUnexpectedEOF
  1674  			}
  1675  			iNdEx += skippy
  1676  		}
  1677  	}
  1678  
  1679  	if iNdEx > l {
  1680  		return io.ErrUnexpectedEOF
  1681  	}
  1682  	return nil
  1683  }
  1684  func (m *MsgSwapWithinBatch) Unmarshal(dAtA []byte) error {
  1685  	l := len(dAtA)
  1686  	iNdEx := 0
  1687  	for iNdEx < l {
  1688  		preIndex := iNdEx
  1689  		var wire uint64
  1690  		for shift := uint(0); ; shift += 7 {
  1691  			if shift >= 64 {
  1692  				return ErrIntOverflowTx
  1693  			}
  1694  			if iNdEx >= l {
  1695  				return io.ErrUnexpectedEOF
  1696  			}
  1697  			b := dAtA[iNdEx]
  1698  			iNdEx++
  1699  			wire |= uint64(b&0x7F) << shift
  1700  			if b < 0x80 {
  1701  				break
  1702  			}
  1703  		}
  1704  		fieldNum := int32(wire >> 3)
  1705  		wireType := int(wire & 0x7)
  1706  		if wireType == 4 {
  1707  			return fmt.Errorf("proto: MsgSwapWithinBatch: wiretype end group for non-group")
  1708  		}
  1709  		if fieldNum <= 0 {
  1710  			return fmt.Errorf("proto: MsgSwapWithinBatch: illegal tag %d (wire type %d)", fieldNum, wire)
  1711  		}
  1712  		switch fieldNum {
  1713  		case 1:
  1714  			if wireType != 2 {
  1715  				return fmt.Errorf("proto: wrong wireType = %d for field SwapRequesterAddress", wireType)
  1716  			}
  1717  			var stringLen uint64
  1718  			for shift := uint(0); ; shift += 7 {
  1719  				if shift >= 64 {
  1720  					return ErrIntOverflowTx
  1721  				}
  1722  				if iNdEx >= l {
  1723  					return io.ErrUnexpectedEOF
  1724  				}
  1725  				b := dAtA[iNdEx]
  1726  				iNdEx++
  1727  				stringLen |= uint64(b&0x7F) << shift
  1728  				if b < 0x80 {
  1729  					break
  1730  				}
  1731  			}
  1732  			intStringLen := int(stringLen)
  1733  			if intStringLen < 0 {
  1734  				return ErrInvalidLengthTx
  1735  			}
  1736  			postIndex := iNdEx + intStringLen
  1737  			if postIndex < 0 {
  1738  				return ErrInvalidLengthTx
  1739  			}
  1740  			if postIndex > l {
  1741  				return io.ErrUnexpectedEOF
  1742  			}
  1743  			m.SwapRequesterAddress = string(dAtA[iNdEx:postIndex])
  1744  			iNdEx = postIndex
  1745  		case 2:
  1746  			if wireType != 0 {
  1747  				return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType)
  1748  			}
  1749  			m.PoolId = 0
  1750  			for shift := uint(0); ; shift += 7 {
  1751  				if shift >= 64 {
  1752  					return ErrIntOverflowTx
  1753  				}
  1754  				if iNdEx >= l {
  1755  					return io.ErrUnexpectedEOF
  1756  				}
  1757  				b := dAtA[iNdEx]
  1758  				iNdEx++
  1759  				m.PoolId |= uint64(b&0x7F) << shift
  1760  				if b < 0x80 {
  1761  					break
  1762  				}
  1763  			}
  1764  		case 3:
  1765  			if wireType != 0 {
  1766  				return fmt.Errorf("proto: wrong wireType = %d for field SwapTypeId", wireType)
  1767  			}
  1768  			m.SwapTypeId = 0
  1769  			for shift := uint(0); ; shift += 7 {
  1770  				if shift >= 64 {
  1771  					return ErrIntOverflowTx
  1772  				}
  1773  				if iNdEx >= l {
  1774  					return io.ErrUnexpectedEOF
  1775  				}
  1776  				b := dAtA[iNdEx]
  1777  				iNdEx++
  1778  				m.SwapTypeId |= uint32(b&0x7F) << shift
  1779  				if b < 0x80 {
  1780  					break
  1781  				}
  1782  			}
  1783  		case 4:
  1784  			if wireType != 2 {
  1785  				return fmt.Errorf("proto: wrong wireType = %d for field OfferCoin", wireType)
  1786  			}
  1787  			var msglen int
  1788  			for shift := uint(0); ; shift += 7 {
  1789  				if shift >= 64 {
  1790  					return ErrIntOverflowTx
  1791  				}
  1792  				if iNdEx >= l {
  1793  					return io.ErrUnexpectedEOF
  1794  				}
  1795  				b := dAtA[iNdEx]
  1796  				iNdEx++
  1797  				msglen |= int(b&0x7F) << shift
  1798  				if b < 0x80 {
  1799  					break
  1800  				}
  1801  			}
  1802  			if msglen < 0 {
  1803  				return ErrInvalidLengthTx
  1804  			}
  1805  			postIndex := iNdEx + msglen
  1806  			if postIndex < 0 {
  1807  				return ErrInvalidLengthTx
  1808  			}
  1809  			if postIndex > l {
  1810  				return io.ErrUnexpectedEOF
  1811  			}
  1812  			if err := m.OfferCoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1813  				return err
  1814  			}
  1815  			iNdEx = postIndex
  1816  		case 5:
  1817  			if wireType != 2 {
  1818  				return fmt.Errorf("proto: wrong wireType = %d for field DemandCoinDenom", wireType)
  1819  			}
  1820  			var stringLen uint64
  1821  			for shift := uint(0); ; shift += 7 {
  1822  				if shift >= 64 {
  1823  					return ErrIntOverflowTx
  1824  				}
  1825  				if iNdEx >= l {
  1826  					return io.ErrUnexpectedEOF
  1827  				}
  1828  				b := dAtA[iNdEx]
  1829  				iNdEx++
  1830  				stringLen |= uint64(b&0x7F) << shift
  1831  				if b < 0x80 {
  1832  					break
  1833  				}
  1834  			}
  1835  			intStringLen := int(stringLen)
  1836  			if intStringLen < 0 {
  1837  				return ErrInvalidLengthTx
  1838  			}
  1839  			postIndex := iNdEx + intStringLen
  1840  			if postIndex < 0 {
  1841  				return ErrInvalidLengthTx
  1842  			}
  1843  			if postIndex > l {
  1844  				return io.ErrUnexpectedEOF
  1845  			}
  1846  			m.DemandCoinDenom = string(dAtA[iNdEx:postIndex])
  1847  			iNdEx = postIndex
  1848  		case 6:
  1849  			if wireType != 2 {
  1850  				return fmt.Errorf("proto: wrong wireType = %d for field OfferCoinFee", wireType)
  1851  			}
  1852  			var msglen int
  1853  			for shift := uint(0); ; shift += 7 {
  1854  				if shift >= 64 {
  1855  					return ErrIntOverflowTx
  1856  				}
  1857  				if iNdEx >= l {
  1858  					return io.ErrUnexpectedEOF
  1859  				}
  1860  				b := dAtA[iNdEx]
  1861  				iNdEx++
  1862  				msglen |= int(b&0x7F) << shift
  1863  				if b < 0x80 {
  1864  					break
  1865  				}
  1866  			}
  1867  			if msglen < 0 {
  1868  				return ErrInvalidLengthTx
  1869  			}
  1870  			postIndex := iNdEx + msglen
  1871  			if postIndex < 0 {
  1872  				return ErrInvalidLengthTx
  1873  			}
  1874  			if postIndex > l {
  1875  				return io.ErrUnexpectedEOF
  1876  			}
  1877  			if err := m.OfferCoinFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1878  				return err
  1879  			}
  1880  			iNdEx = postIndex
  1881  		case 7:
  1882  			if wireType != 2 {
  1883  				return fmt.Errorf("proto: wrong wireType = %d for field OrderPrice", wireType)
  1884  			}
  1885  			var stringLen uint64
  1886  			for shift := uint(0); ; shift += 7 {
  1887  				if shift >= 64 {
  1888  					return ErrIntOverflowTx
  1889  				}
  1890  				if iNdEx >= l {
  1891  					return io.ErrUnexpectedEOF
  1892  				}
  1893  				b := dAtA[iNdEx]
  1894  				iNdEx++
  1895  				stringLen |= uint64(b&0x7F) << shift
  1896  				if b < 0x80 {
  1897  					break
  1898  				}
  1899  			}
  1900  			intStringLen := int(stringLen)
  1901  			if intStringLen < 0 {
  1902  				return ErrInvalidLengthTx
  1903  			}
  1904  			postIndex := iNdEx + intStringLen
  1905  			if postIndex < 0 {
  1906  				return ErrInvalidLengthTx
  1907  			}
  1908  			if postIndex > l {
  1909  				return io.ErrUnexpectedEOF
  1910  			}
  1911  			if err := m.OrderPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1912  				return err
  1913  			}
  1914  			iNdEx = postIndex
  1915  		default:
  1916  			iNdEx = preIndex
  1917  			skippy, err := skipTx(dAtA[iNdEx:])
  1918  			if err != nil {
  1919  				return err
  1920  			}
  1921  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1922  				return ErrInvalidLengthTx
  1923  			}
  1924  			if (iNdEx + skippy) > l {
  1925  				return io.ErrUnexpectedEOF
  1926  			}
  1927  			iNdEx += skippy
  1928  		}
  1929  	}
  1930  
  1931  	if iNdEx > l {
  1932  		return io.ErrUnexpectedEOF
  1933  	}
  1934  	return nil
  1935  }
  1936  func (m *MsgSwapWithinBatchResponse) Unmarshal(dAtA []byte) error {
  1937  	l := len(dAtA)
  1938  	iNdEx := 0
  1939  	for iNdEx < l {
  1940  		preIndex := iNdEx
  1941  		var wire uint64
  1942  		for shift := uint(0); ; shift += 7 {
  1943  			if shift >= 64 {
  1944  				return ErrIntOverflowTx
  1945  			}
  1946  			if iNdEx >= l {
  1947  				return io.ErrUnexpectedEOF
  1948  			}
  1949  			b := dAtA[iNdEx]
  1950  			iNdEx++
  1951  			wire |= uint64(b&0x7F) << shift
  1952  			if b < 0x80 {
  1953  				break
  1954  			}
  1955  		}
  1956  		fieldNum := int32(wire >> 3)
  1957  		wireType := int(wire & 0x7)
  1958  		if wireType == 4 {
  1959  			return fmt.Errorf("proto: MsgSwapWithinBatchResponse: wiretype end group for non-group")
  1960  		}
  1961  		if fieldNum <= 0 {
  1962  			return fmt.Errorf("proto: MsgSwapWithinBatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1963  		}
  1964  		switch fieldNum {
  1965  		default:
  1966  			iNdEx = preIndex
  1967  			skippy, err := skipTx(dAtA[iNdEx:])
  1968  			if err != nil {
  1969  				return err
  1970  			}
  1971  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1972  				return ErrInvalidLengthTx
  1973  			}
  1974  			if (iNdEx + skippy) > l {
  1975  				return io.ErrUnexpectedEOF
  1976  			}
  1977  			iNdEx += skippy
  1978  		}
  1979  	}
  1980  
  1981  	if iNdEx > l {
  1982  		return io.ErrUnexpectedEOF
  1983  	}
  1984  	return nil
  1985  }
  1986  func skipTx(dAtA []byte) (n int, err error) {
  1987  	l := len(dAtA)
  1988  	iNdEx := 0
  1989  	depth := 0
  1990  	for iNdEx < l {
  1991  		var wire uint64
  1992  		for shift := uint(0); ; shift += 7 {
  1993  			if shift >= 64 {
  1994  				return 0, ErrIntOverflowTx
  1995  			}
  1996  			if iNdEx >= l {
  1997  				return 0, io.ErrUnexpectedEOF
  1998  			}
  1999  			b := dAtA[iNdEx]
  2000  			iNdEx++
  2001  			wire |= (uint64(b) & 0x7F) << shift
  2002  			if b < 0x80 {
  2003  				break
  2004  			}
  2005  		}
  2006  		wireType := int(wire & 0x7)
  2007  		switch wireType {
  2008  		case 0:
  2009  			for shift := uint(0); ; shift += 7 {
  2010  				if shift >= 64 {
  2011  					return 0, ErrIntOverflowTx
  2012  				}
  2013  				if iNdEx >= l {
  2014  					return 0, io.ErrUnexpectedEOF
  2015  				}
  2016  				iNdEx++
  2017  				if dAtA[iNdEx-1] < 0x80 {
  2018  					break
  2019  				}
  2020  			}
  2021  		case 1:
  2022  			iNdEx += 8
  2023  		case 2:
  2024  			var length int
  2025  			for shift := uint(0); ; shift += 7 {
  2026  				if shift >= 64 {
  2027  					return 0, ErrIntOverflowTx
  2028  				}
  2029  				if iNdEx >= l {
  2030  					return 0, io.ErrUnexpectedEOF
  2031  				}
  2032  				b := dAtA[iNdEx]
  2033  				iNdEx++
  2034  				length |= (int(b) & 0x7F) << shift
  2035  				if b < 0x80 {
  2036  					break
  2037  				}
  2038  			}
  2039  			if length < 0 {
  2040  				return 0, ErrInvalidLengthTx
  2041  			}
  2042  			iNdEx += length
  2043  		case 3:
  2044  			depth++
  2045  		case 4:
  2046  			if depth == 0 {
  2047  				return 0, ErrUnexpectedEndOfGroupTx
  2048  			}
  2049  			depth--
  2050  		case 5:
  2051  			iNdEx += 4
  2052  		default:
  2053  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2054  		}
  2055  		if iNdEx < 0 {
  2056  			return 0, ErrInvalidLengthTx
  2057  		}
  2058  		if depth == 0 {
  2059  			return iNdEx, nil
  2060  		}
  2061  	}
  2062  	return 0, io.ErrUnexpectedEOF
  2063  }
  2064  
  2065  var (
  2066  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
  2067  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
  2068  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
  2069  )