diff --git a/x/market/types/tx.pb.go b/x/market/types/tx.pb.go index b62bb1c..9be43ec 100644 --- a/x/market/types/tx.pb.go +++ b/x/market/types/tx.pb.go @@ -88,6 +88,12 @@ func (m *MsgCreatePool) GetCoinB() string { } type MsgCreatePoolResponse struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + DropUid uint64 `protobuf:"varint,2,opt,name=drop_uid,json=dropUid,proto3" json:"drop_uid,omitempty"` + Pair string `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair,omitempty"` + Drops string `protobuf:"bytes,4,opt,name=drops,proto3" json:"drops,omitempty"` + Coin1 string `protobuf:"bytes,5,opt,name=coin1,proto3" json:"coin1,omitempty"` + Coin2 string `protobuf:"bytes,6,opt,name=coin2,proto3" json:"coin2,omitempty"` } func (m *MsgCreatePoolResponse) Reset() { *m = MsgCreatePoolResponse{} } @@ -123,6 +129,48 @@ func (m *MsgCreatePoolResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreatePoolResponse proto.InternalMessageInfo +func (m *MsgCreatePoolResponse) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCreatePoolResponse) GetDropUid() uint64 { + if m != nil { + return m.DropUid + } + return 0 +} + +func (m *MsgCreatePoolResponse) GetPair() string { + if m != nil { + return m.Pair + } + return "" +} + +func (m *MsgCreatePoolResponse) GetDrops() string { + if m != nil { + return m.Drops + } + return "" +} + +func (m *MsgCreatePoolResponse) GetCoin1() string { + if m != nil { + return m.Coin1 + } + return "" +} + +func (m *MsgCreatePoolResponse) GetCoin2() string { + if m != nil { + return m.Coin2 + } + return "" +} + type MsgCreateDrop struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Pair string `protobuf:"bytes,2,opt,name=pair,proto3" json:"pair,omitempty"` @@ -184,6 +232,12 @@ func (m *MsgCreateDrop) GetDrops() string { } type MsgCreateDropResponse struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` + Pair string `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair,omitempty"` + Drops string `protobuf:"bytes,4,opt,name=drops,proto3" json:"drops,omitempty"` + Coin1 string `protobuf:"bytes,5,opt,name=coin1,proto3" json:"coin1,omitempty"` + Coin2 string `protobuf:"bytes,6,opt,name=coin2,proto3" json:"coin2,omitempty"` } func (m *MsgCreateDropResponse) Reset() { *m = MsgCreateDropResponse{} } @@ -219,6 +273,48 @@ func (m *MsgCreateDropResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateDropResponse proto.InternalMessageInfo +func (m *MsgCreateDropResponse) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCreateDropResponse) GetUid() uint64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *MsgCreateDropResponse) GetPair() string { + if m != nil { + return m.Pair + } + return "" +} + +func (m *MsgCreateDropResponse) GetDrops() string { + if m != nil { + return m.Drops + } + return "" +} + +func (m *MsgCreateDropResponse) GetCoin1() string { + if m != nil { + return m.Coin1 + } + return "" +} + +func (m *MsgCreateDropResponse) GetCoin2() string { + if m != nil { + return m.Coin2 + } + return "" +} + type MsgRedeemDrop struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` @@ -272,6 +368,16 @@ func (m *MsgRedeemDrop) GetUid() string { } type MsgRedeemDropResponse struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` + Pair string `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair,omitempty"` + Drops string `protobuf:"bytes,4,opt,name=drops,proto3" json:"drops,omitempty"` + TimeBeg string `protobuf:"bytes,5,opt,name=time_beg,json=timeBeg,proto3" json:"time_beg,omitempty"` + Coin1Beg string `protobuf:"bytes,6,opt,name=coin1_beg,json=coin1Beg,proto3" json:"coin1_beg,omitempty"` + Coin2Beg string `protobuf:"bytes,7,opt,name=coin2_beg,json=coin2Beg,proto3" json:"coin2_beg,omitempty"` + TimeEnd string `protobuf:"bytes,8,opt,name=time_end,json=timeEnd,proto3" json:"time_end,omitempty"` + Coin1End string `protobuf:"bytes,9,opt,name=coin1_end,json=coin1End,proto3" json:"coin1_end,omitempty"` + Coin2End string `protobuf:"bytes,10,opt,name=coin2_end,json=coin2End,proto3" json:"coin2_end,omitempty"` } func (m *MsgRedeemDropResponse) Reset() { *m = MsgRedeemDropResponse{} } @@ -307,6 +413,76 @@ func (m *MsgRedeemDropResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRedeemDropResponse proto.InternalMessageInfo +func (m *MsgRedeemDropResponse) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgRedeemDropResponse) GetUid() uint64 { + if m != nil { + return m.Uid + } + return 0 +} + +func (m *MsgRedeemDropResponse) GetPair() string { + if m != nil { + return m.Pair + } + return "" +} + +func (m *MsgRedeemDropResponse) GetDrops() string { + if m != nil { + return m.Drops + } + return "" +} + +func (m *MsgRedeemDropResponse) GetTimeBeg() string { + if m != nil { + return m.TimeBeg + } + return "" +} + +func (m *MsgRedeemDropResponse) GetCoin1Beg() string { + if m != nil { + return m.Coin1Beg + } + return "" +} + +func (m *MsgRedeemDropResponse) GetCoin2Beg() string { + if m != nil { + return m.Coin2Beg + } + return "" +} + +func (m *MsgRedeemDropResponse) GetTimeEnd() string { + if m != nil { + return m.TimeEnd + } + return "" +} + +func (m *MsgRedeemDropResponse) GetCoin1End() string { + if m != nil { + return m.Coin1End + } + return "" +} + +func (m *MsgRedeemDropResponse) GetCoin2End() string { + if m != nil { + return m.Coin2End + } + return "" +} + type MsgCreateOrder struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` DenomAsk string `protobuf:"bytes,2,opt,name=denomAsk,proto3" json:"denomAsk,omitempty"` @@ -710,42 +886,50 @@ func init() { func init() { proto.RegisterFile("market/tx.proto", fileDescriptor_2966ca2342567dca) } var fileDescriptor_2966ca2342567dca = []byte{ - // 559 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x3d, 0x6f, 0xd3, 0x40, - 0x18, 0xc7, 0xe3, 0xc6, 0x49, 0x93, 0x43, 0xbc, 0xc8, 0x82, 0x72, 0xb2, 0x2a, 0xab, 0xf2, 0x04, - 0x95, 0x70, 0x44, 0x19, 0x61, 0x69, 0x60, 0x60, 0x89, 0x40, 0x01, 0x16, 0x36, 0x27, 0x3e, 0x05, - 0x53, 0xdb, 0x77, 0x3a, 0xdb, 0x55, 0xba, 0xf2, 0x09, 0x98, 0xf8, 0x30, 0x7c, 0x02, 0xc6, 0x0e, - 0x0c, 0x8c, 0x28, 0xf9, 0x22, 0xe8, 0xb9, 0xb3, 0xcf, 0x67, 0x52, 0x72, 0x96, 0x98, 0x7a, 0xcf, - 0xcb, 0x3d, 0xbf, 0x7b, 0xfe, 0xea, 0x3f, 0x46, 0x77, 0xd3, 0x90, 0x5f, 0x90, 0x62, 0x52, 0xac, - 0x03, 0xc6, 0x69, 0x41, 0x1d, 0x97, 0x91, 0x2c, 0x2a, 0x93, 0x32, 0x4d, 0xc2, 0x45, 0x1e, 0xc8, - 0x6a, 0xf5, 0xc7, 0xff, 0x80, 0x6e, 0xcf, 0xf2, 0xd5, 0x4b, 0x4e, 0xc2, 0x82, 0xbc, 0xa5, 0x34, - 0x71, 0x30, 0x3a, 0x5c, 0x42, 0x44, 0x39, 0xb6, 0x4e, 0xac, 0x47, 0xe3, 0x79, 0x1d, 0x3a, 0xf7, - 0xd1, 0x60, 0x49, 0xe3, 0xec, 0x1c, 0x1f, 0x88, 0xbc, 0x0c, 0xea, 0xec, 0x14, 0xf7, 0x9b, 0xec, - 0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x3a, 0xa9, 0xe7, 0x3e, - 0x81, 0xc1, 0x93, 0xea, 0x4b, 0xb6, 0xae, 0x0f, 0xc5, 0x15, 0x23, 0xf9, 0x62, 0x28, 0x3e, 0x6b, - 0xcf, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x04, 0x21, 0x35, 0xaf, 0xe9, 0x06, 0x00, 0x00, + // 678 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x8e, 0xf3, 0x6b, 0x0f, 0xe2, 0x47, 0x16, 0x54, 0x6e, 0xa8, 0xac, 0xca, 0x27, 0xa8, 0x84, + 0xa3, 0x98, 0x23, 0x5c, 0x1a, 0xa8, 0xc4, 0x25, 0x02, 0x05, 0x7a, 0xe1, 0x52, 0x39, 0xf1, 0xca, + 0xb8, 0x8d, 0xbd, 0x96, 0xed, 0xa0, 0xf4, 0xca, 0x13, 0x70, 0x02, 0x71, 0xe5, 0x31, 0x78, 0x02, + 0x8e, 0x3d, 0x70, 0xe0, 0x88, 0x92, 0x17, 0x41, 0xbb, 0xde, 0xf5, 0xae, 0x49, 0x88, 0x2d, 0x55, + 0x3d, 0x65, 0x67, 0xbe, 0xf1, 0x7c, 0xf3, 0x7d, 0xeb, 0xdd, 0x18, 0xee, 0x86, 0x6e, 0x72, 0x81, + 0xb2, 0x41, 0xb6, 0xb4, 0xe3, 0x04, 0x67, 0x58, 0xef, 0xc7, 0x28, 0xf2, 0x16, 0xf3, 0x45, 0x38, + 0x77, 0xa7, 0xa9, 0x9d, 0xa3, 0xec, 0xc7, 0x3a, 0x85, 0xdb, 0xe3, 0xd4, 0x7f, 0x91, 0x20, 0x37, + 0x43, 0x6f, 0x30, 0x9e, 0xeb, 0x06, 0xf4, 0x66, 0x24, 0xc2, 0x89, 0xa1, 0x1c, 0x2a, 0x8f, 0xb4, + 0x09, 0x0f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0x9a, 0xff, 0xd2, + 0x54, 0x8e, 0x5f, 0x0c, 0xd1, 0x2e, 0x0f, 0xe1, 0x7c, 0xe9, 0x40, 0x6b, 0x9c, 0xfa, 0xfa, 0x39, + 0x80, 0x74, 0xcb, 0x3f, 0xb6, 0xff, 0xff, 0x9f, 0x60, 0x97, 0x2e, 0xee, 0xfe, 0xb0, 0x76, 0x69, + 0xa1, 0xae, 0xe0, 0xa2, 0x97, 0x4c, 0x3d, 0x2e, 0x52, 0x5a, 0x93, 0xab, 0x74, 0xf9, 0x9c, 0x03, + 0x48, 0x17, 0x5a, 0x15, 0x97, 0x28, 0xad, 0xe4, 0xda, 0x72, 0xd1, 0x85, 0x70, 0x4b, 0x3e, 0xe4, + 0x47, 0xb5, 0xa6, 0xa5, 0xb5, 0x7d, 0xa7, 0x7e, 0x6d, 0x89, 0x4e, 0x3a, 0x51, 0x95, 0x74, 0xa2, + 0xb6, 0x9a, 0x6e, 0xf3, 0xac, 0x11, 0x3a, 0xf9, 0x9c, 0x55, 0xd1, 0x49, 0xb5, 0x95, 0x74, 0x5b, + 0x8e, 0xc0, 0xe8, 0xd5, 0xcf, 0x95, 0xa9, 0x5c, 0xad, 0x4c, 0xe5, 0xcf, 0xca, 0x54, 0x3e, 0xaf, + 0xcd, 0xc6, 0xd5, 0xda, 0x6c, 0xfc, 0x5e, 0x9b, 0x8d, 0xf7, 0xb6, 0x1f, 0x64, 0x1f, 0x16, 0x53, + 0x7b, 0x86, 0xc3, 0x01, 0xef, 0xfb, 0x84, 0x34, 0x1e, 0xb0, 0x2f, 0x9b, 0x25, 0x5f, 0x64, 0x97, + 0x31, 0x4a, 0xa7, 0x5d, 0xfa, 0x99, 0xf3, 0xf4, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9e, 0xb5, + 0x1e, 0x2d, 0xf9, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1072,6 +1256,46 @@ func (m *MsgCreatePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Coin2) > 0 { + i -= len(m.Coin2) + copy(dAtA[i:], m.Coin2) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin2))) + i-- + dAtA[i] = 0x32 + } + if len(m.Coin1) > 0 { + i -= len(m.Coin1) + copy(dAtA[i:], m.Coin1) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin1))) + i-- + dAtA[i] = 0x2a + } + if len(m.Drops) > 0 { + i -= len(m.Drops) + copy(dAtA[i:], m.Drops) + i = encodeVarintTx(dAtA, i, uint64(len(m.Drops))) + i-- + dAtA[i] = 0x22 + } + if len(m.Pair) > 0 { + i -= len(m.Pair) + copy(dAtA[i:], m.Pair) + i = encodeVarintTx(dAtA, i, uint64(len(m.Pair))) + i-- + dAtA[i] = 0x1a + } + if m.DropUid != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.DropUid)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -1139,6 +1363,46 @@ func (m *MsgCreateDropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Coin2) > 0 { + i -= len(m.Coin2) + copy(dAtA[i:], m.Coin2) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin2))) + i-- + dAtA[i] = 0x32 + } + if len(m.Coin1) > 0 { + i -= len(m.Coin1) + copy(dAtA[i:], m.Coin1) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin1))) + i-- + dAtA[i] = 0x2a + } + if len(m.Drops) > 0 { + i -= len(m.Drops) + copy(dAtA[i:], m.Drops) + i = encodeVarintTx(dAtA, i, uint64(len(m.Drops))) + i-- + dAtA[i] = 0x22 + } + if len(m.Pair) > 0 { + i -= len(m.Pair) + copy(dAtA[i:], m.Pair) + i = encodeVarintTx(dAtA, i, uint64(len(m.Pair))) + i-- + dAtA[i] = 0x1a + } + if m.Uid != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Uid)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -1199,6 +1463,74 @@ func (m *MsgRedeemDropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Coin2End) > 0 { + i -= len(m.Coin2End) + copy(dAtA[i:], m.Coin2End) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin2End))) + i-- + dAtA[i] = 0x52 + } + if len(m.Coin1End) > 0 { + i -= len(m.Coin1End) + copy(dAtA[i:], m.Coin1End) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin1End))) + i-- + dAtA[i] = 0x4a + } + if len(m.TimeEnd) > 0 { + i -= len(m.TimeEnd) + copy(dAtA[i:], m.TimeEnd) + i = encodeVarintTx(dAtA, i, uint64(len(m.TimeEnd))) + i-- + dAtA[i] = 0x42 + } + if len(m.Coin2Beg) > 0 { + i -= len(m.Coin2Beg) + copy(dAtA[i:], m.Coin2Beg) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin2Beg))) + i-- + dAtA[i] = 0x3a + } + if len(m.Coin1Beg) > 0 { + i -= len(m.Coin1Beg) + copy(dAtA[i:], m.Coin1Beg) + i = encodeVarintTx(dAtA, i, uint64(len(m.Coin1Beg))) + i-- + dAtA[i] = 0x32 + } + if len(m.TimeBeg) > 0 { + i -= len(m.TimeBeg) + copy(dAtA[i:], m.TimeBeg) + i = encodeVarintTx(dAtA, i, uint64(len(m.TimeBeg))) + i-- + dAtA[i] = 0x2a + } + if len(m.Drops) > 0 { + i -= len(m.Drops) + copy(dAtA[i:], m.Drops) + i = encodeVarintTx(dAtA, i, uint64(len(m.Drops))) + i-- + dAtA[i] = 0x22 + } + if len(m.Pair) > 0 { + i -= len(m.Pair) + copy(dAtA[i:], m.Pair) + i = encodeVarintTx(dAtA, i, uint64(len(m.Pair))) + i-- + dAtA[i] = 0x1a + } + if m.Uid != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Uid)) + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -1525,6 +1857,29 @@ func (m *MsgCreatePoolResponse) Size() (n int) { } var l int _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.DropUid != 0 { + n += 1 + sovTx(uint64(m.DropUid)) + } + l = len(m.Pair) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Drops) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin1) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin2) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -1550,15 +1905,6 @@ func (m *MsgCreateDrop) Size() (n int) { } func (m *MsgCreateDropResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRedeemDrop) Size() (n int) { if m == nil { return 0 } @@ -1568,10 +1914,42 @@ func (m *MsgRedeemDrop) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } + if m.Uid != 0 { + n += 1 + sovTx(uint64(m.Uid)) + } + l = len(m.Pair) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Drops) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin1) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin2) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRedeemDrop) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Uid) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -1581,6 +1959,45 @@ func (m *MsgRedeemDropResponse) Size() (n int) { } var l int _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Uid != 0 { + n += 1 + sovTx(uint64(m.Uid)) + } + l = len(m.Pair) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Drops) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TimeBeg) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin1Beg) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin2Beg) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TimeEnd) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin1End) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Coin2End) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -1904,56 +2321,6 @@ func (m *MsgCreatePoolResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: MsgCreatePoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgCreateDrop) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgCreateDrop: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateDrop: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) @@ -1987,6 +2354,25 @@ func (m *MsgCreateDrop) Unmarshal(dAtA []byte) error { m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropUid", wireType) + } + m.DropUid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DropUid |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) } @@ -2018,7 +2404,7 @@ func (m *MsgCreateDrop) Unmarshal(dAtA []byte) error { } m.Pair = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Drops", wireType) } @@ -2050,56 +2436,70 @@ func (m *MsgCreateDrop) Unmarshal(dAtA []byte) error { } m.Drops = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin1", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgCreateDropResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx + m.Coin1 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin2", wireType) } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgCreateDropResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateDropResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coin2 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -2121,7 +2521,7 @@ func (m *MsgCreateDropResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRedeemDrop) Unmarshal(dAtA []byte) error { +func (m *MsgCreateDrop) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2144,10 +2544,10 @@ func (m *MsgRedeemDrop) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRedeemDrop: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateDrop: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRedeemDrop: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateDrop: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2184,7 +2584,7 @@ func (m *MsgRedeemDrop) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2212,30 +2612,62 @@ func (m *MsgRedeemDrop) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Uid = string(dAtA[iNdEx:postIndex]) + m.Pair = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Drops", wireType) } - iNdEx += skippy - } - } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Drops = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } -func (m *MsgRedeemDropResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateDropResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2258,12 +2690,662 @@ func (m *MsgRedeemDropResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRedeemDropResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateDropResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRedeemDropResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateDropResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + } + m.Uid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Uid |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pair = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Drops", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Drops = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin1", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coin1 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin2", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coin2 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRedeemDrop) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRedeemDrop: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRedeemDrop: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRedeemDropResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRedeemDropResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRedeemDropResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + } + m.Uid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Uid |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pair = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Drops", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Drops = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeBeg", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeBeg = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin1Beg", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coin1Beg = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin2Beg", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coin2Beg = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeEnd", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeEnd = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin1End", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coin1End = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coin2End", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coin2End = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])