2022-08-25 16:51:14 -07:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2022-09-06 14:29:55 -07:00
|
|
|
// source: colinear-core/tx.proto
|
2022-08-25 16:51:14 -07:00
|
|
|
|
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
grpc1 "github.com/gogo/protobuf/grpc"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
grpc "google.golang.org/grpc"
|
2022-08-27 14:19:03 -07:00
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
io "io"
|
2022-08-25 16:51:14 -07:00
|
|
|
math "math"
|
2022-08-27 14:19:03 -07:00
|
|
|
math_bits "math/bits"
|
2022-08-25 16:51:14 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
type MsgNewAuction struct {
|
|
|
|
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
|
2022-08-31 21:49:24 -07:00
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
2022-08-31 23:09:36 -07:00
|
|
|
Ceiling string `protobuf:"bytes,4,opt,name=ceiling,proto3" json:"ceiling,omitempty"`
|
|
|
|
Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"`
|
2022-09-01 12:13:17 -07:00
|
|
|
LeaseEnd uint64 `protobuf:"varint,6,opt,name=leaseEnd,proto3" json:"leaseEnd,omitempty"`
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuction) Reset() { *m = MsgNewAuction{} }
|
|
|
|
func (m *MsgNewAuction) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MsgNewAuction) ProtoMessage() {}
|
|
|
|
func (*MsgNewAuction) Descriptor() ([]byte, []int) {
|
2022-09-06 14:29:55 -07:00
|
|
|
return fileDescriptor_a752a1f2bf4fb99e, []int{0}
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
func (m *MsgNewAuction) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_MsgNewAuction.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuction) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_MsgNewAuction.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuction) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuction) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_MsgNewAuction.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_MsgNewAuction proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *MsgNewAuction) GetCreator() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Creator
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-08-31 21:49:24 -07:00
|
|
|
func (m *MsgNewAuction) GetName() string {
|
2022-08-27 14:19:03 -07:00
|
|
|
if m != nil {
|
2022-08-31 21:49:24 -07:00
|
|
|
return m.Name
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-08-31 21:49:24 -07:00
|
|
|
func (m *MsgNewAuction) GetDescription() string {
|
2022-08-27 14:19:03 -07:00
|
|
|
if m != nil {
|
2022-08-31 21:49:24 -07:00
|
|
|
return m.Description
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-08-31 23:09:36 -07:00
|
|
|
func (m *MsgNewAuction) GetCeiling() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ceiling
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-08-31 21:49:24 -07:00
|
|
|
func (m *MsgNewAuction) GetDenom() string {
|
2022-08-27 14:19:03 -07:00
|
|
|
if m != nil {
|
2022-08-31 21:49:24 -07:00
|
|
|
return m.Denom
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-09-01 12:13:17 -07:00
|
|
|
func (m *MsgNewAuction) GetLeaseEnd() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.LeaseEnd
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
type MsgNewAuctionResponse struct {
|
|
|
|
AuctionId string `protobuf:"bytes,1,opt,name=auctionId,proto3" json:"auctionId,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuctionResponse) Reset() { *m = MsgNewAuctionResponse{} }
|
|
|
|
func (m *MsgNewAuctionResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MsgNewAuctionResponse) ProtoMessage() {}
|
|
|
|
func (*MsgNewAuctionResponse) Descriptor() ([]byte, []int) {
|
2022-09-06 14:29:55 -07:00
|
|
|
return fileDescriptor_a752a1f2bf4fb99e, []int{1}
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
func (m *MsgNewAuctionResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_MsgNewAuctionResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuctionResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_MsgNewAuctionResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuctionResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuctionResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_MsgNewAuctionResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_MsgNewAuctionResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *MsgNewAuctionResponse) GetAuctionId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuctionId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-08-28 10:57:06 -07:00
|
|
|
type MsgNewBid struct {
|
|
|
|
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
|
|
|
|
AuctionIndex string `protobuf:"bytes,2,opt,name=auctionIndex,proto3" json:"auctionIndex,omitempty"`
|
|
|
|
Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBid) Reset() { *m = MsgNewBid{} }
|
|
|
|
func (m *MsgNewBid) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MsgNewBid) ProtoMessage() {}
|
|
|
|
func (*MsgNewBid) Descriptor() ([]byte, []int) {
|
2022-09-06 14:29:55 -07:00
|
|
|
return fileDescriptor_a752a1f2bf4fb99e, []int{2}
|
2022-08-28 10:57:06 -07:00
|
|
|
}
|
|
|
|
func (m *MsgNewBid) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *MsgNewBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_MsgNewBid.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *MsgNewBid) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_MsgNewBid.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *MsgNewBid) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *MsgNewBid) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_MsgNewBid.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_MsgNewBid proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *MsgNewBid) GetCreator() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Creator
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBid) GetAuctionIndex() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuctionIndex
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBid) GetAmount() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Amount
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type MsgNewBidResponse struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBidResponse) Reset() { *m = MsgNewBidResponse{} }
|
|
|
|
func (m *MsgNewBidResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MsgNewBidResponse) ProtoMessage() {}
|
|
|
|
func (*MsgNewBidResponse) Descriptor() ([]byte, []int) {
|
2022-09-06 14:29:55 -07:00
|
|
|
return fileDescriptor_a752a1f2bf4fb99e, []int{3}
|
2022-08-28 10:57:06 -07:00
|
|
|
}
|
|
|
|
func (m *MsgNewBidResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *MsgNewBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_MsgNewBidResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *MsgNewBidResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_MsgNewBidResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *MsgNewBidResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *MsgNewBidResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_MsgNewBidResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_MsgNewBidResponse proto.InternalMessageInfo
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
func init() {
|
2022-09-06 14:29:55 -07:00
|
|
|
proto.RegisterType((*MsgNewAuction)(nil), "colinear.colinearcore.MsgNewAuction")
|
|
|
|
proto.RegisterType((*MsgNewAuctionResponse)(nil), "colinear.colinearcore.MsgNewAuctionResponse")
|
|
|
|
proto.RegisterType((*MsgNewBid)(nil), "colinear.colinearcore.MsgNewBid")
|
|
|
|
proto.RegisterType((*MsgNewBidResponse)(nil), "colinear.colinearcore.MsgNewBidResponse")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("colinear-core/tx.proto", fileDescriptor_a752a1f2bf4fb99e) }
|
|
|
|
|
|
|
|
var fileDescriptor_a752a1f2bf4fb99e = []byte{
|
|
|
|
// 342 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x4e, 0xfb, 0x30,
|
|
|
|
0x10, 0xc6, 0xeb, 0x7f, 0xdb, 0xfc, 0xe9, 0x01, 0x03, 0x86, 0x56, 0x56, 0x85, 0xac, 0x28, 0x62,
|
|
|
|
0xe8, 0x00, 0xa9, 0x04, 0x42, 0x62, 0xa5, 0x12, 0x03, 0x43, 0x19, 0x2a, 0x26, 0x26, 0x4c, 0x7c,
|
|
|
|
0xaa, 0x2c, 0xb5, 0x76, 0x14, 0xa7, 0xa2, 0xbc, 0x05, 0xef, 0xc1, 0x33, 0xb0, 0x33, 0x76, 0x64,
|
|
|
|
0x44, 0xed, 0x8b, 0xa0, 0x26, 0x71, 0x69, 0x10, 0x2a, 0x6c, 0xfe, 0x7e, 0xbe, 0xef, 0x72, 0x5f,
|
|
|
|
0x7c, 0xd0, 0x8a, 0xcc, 0x48, 0x69, 0x14, 0xc9, 0x49, 0x64, 0x12, 0xec, 0xa6, 0xd3, 0x30, 0x4e,
|
|
|
|
0x4c, 0x6a, 0x68, 0xd3, 0xf1, 0xd0, 0x1d, 0x96, 0xf7, 0xc1, 0x0b, 0x81, 0xdd, 0xbe, 0x1d, 0xde,
|
|
|
|
0xe0, 0xe3, 0xe5, 0x24, 0x4a, 0x95, 0xd1, 0x94, 0xc1, 0xff, 0x28, 0x41, 0x91, 0x9a, 0x84, 0x11,
|
|
|
|
0x9f, 0x74, 0x1a, 0x03, 0x27, 0x29, 0x85, 0x9a, 0x16, 0x63, 0x64, 0xff, 0x32, 0x9c, 0x9d, 0xa9,
|
|
|
|
0x0f, 0xdb, 0x12, 0x6d, 0x94, 0xa8, 0x78, 0x69, 0x66, 0xd5, 0xec, 0x6a, 0x1d, 0x65, 0xfd, 0x50,
|
|
|
|
0x8d, 0x94, 0x1e, 0xb2, 0x5a, 0xd1, 0x2f, 0x97, 0xf4, 0x00, 0xea, 0x12, 0xb5, 0x19, 0xb3, 0x7a,
|
|
|
|
0xc6, 0x73, 0x41, 0xdb, 0xb0, 0x35, 0x42, 0x61, 0xf1, 0x4a, 0x4b, 0xe6, 0xf9, 0xa4, 0x53, 0x1b,
|
|
|
|
0xac, 0x74, 0x70, 0x0e, 0xcd, 0xd2, 0xb0, 0x03, 0xb4, 0xb1, 0xd1, 0x16, 0xe9, 0x21, 0x34, 0x44,
|
|
|
|
0x8e, 0xae, 0x65, 0x31, 0xf6, 0x17, 0x08, 0x04, 0x34, 0x72, 0x5b, 0x4f, 0xc9, 0x0d, 0xf9, 0x02,
|
|
|
|
0xd8, 0x71, 0x1e, 0x2d, 0x71, 0x5a, 0xe4, 0x2c, 0x31, 0xda, 0x02, 0x4f, 0x8c, 0xcd, 0x44, 0xa7,
|
|
|
|
0x45, 0xd4, 0x42, 0x05, 0xfb, 0xb0, 0xb7, 0xfa, 0x84, 0x9b, 0xea, 0xf4, 0x95, 0x40, 0xb5, 0x6f,
|
|
|
|
0x87, 0xf4, 0x1e, 0x60, 0xed, 0x07, 0x1f, 0x85, 0x3f, 0x3e, 0x45, 0x58, 0x4a, 0xd6, 0x3e, 0xfe,
|
|
|
|
0x4b, 0xd5, 0x2a, 0xff, 0x2d, 0x78, 0x45, 0x3c, 0x7f, 0xa3, 0xaf, 0xa7, 0x64, 0xbb, 0xf3, 0x5b,
|
|
|
|
0x85, 0xeb, 0xda, 0xbb, 0x78, 0x9b, 0x73, 0x32, 0x9b, 0x73, 0xf2, 0x31, 0xe7, 0xe4, 0x79, 0xc1,
|
|
|
|
0x2b, 0xb3, 0x05, 0xaf, 0xbc, 0x2f, 0x78, 0xe5, 0x8e, 0x3b, 0x67, 0x77, 0xda, 0xfd, 0xb6, 0x70,
|
|
|
|
0x4f, 0x31, 0xda, 0x07, 0x2f, 0x5b, 0xba, 0xb3, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x05, 0x4a,
|
|
|
|
0x01, 0x9b, 0x8e, 0x02, 0x00, 0x00,
|
2022-08-25 16:51:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// MsgClient is the client API for Msg service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type MsgClient interface {
|
2022-08-27 14:19:03 -07:00
|
|
|
NewAuction(ctx context.Context, in *MsgNewAuction, opts ...grpc.CallOption) (*MsgNewAuctionResponse, error)
|
2022-08-28 10:57:06 -07:00
|
|
|
NewBid(ctx context.Context, in *MsgNewBid, opts ...grpc.CallOption) (*MsgNewBidResponse, error)
|
2022-08-25 16:51:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type msgClient struct {
|
|
|
|
cc grpc1.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
|
|
|
|
return &msgClient{cc}
|
|
|
|
}
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
func (c *msgClient) NewAuction(ctx context.Context, in *MsgNewAuction, opts ...grpc.CallOption) (*MsgNewAuctionResponse, error) {
|
|
|
|
out := new(MsgNewAuctionResponse)
|
2022-09-06 14:29:55 -07:00
|
|
|
err := c.cc.Invoke(ctx, "/colinear.colinearcore.Msg/NewAuction", in, out, opts...)
|
2022-08-27 14:19:03 -07:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2022-08-28 10:57:06 -07:00
|
|
|
func (c *msgClient) NewBid(ctx context.Context, in *MsgNewBid, opts ...grpc.CallOption) (*MsgNewBidResponse, error) {
|
|
|
|
out := new(MsgNewBidResponse)
|
2022-09-06 14:29:55 -07:00
|
|
|
err := c.cc.Invoke(ctx, "/colinear.colinearcore.Msg/NewBid", in, out, opts...)
|
2022-08-28 10:57:06 -07:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2022-08-25 16:51:14 -07:00
|
|
|
// MsgServer is the server API for Msg service.
|
|
|
|
type MsgServer interface {
|
2022-08-27 14:19:03 -07:00
|
|
|
NewAuction(context.Context, *MsgNewAuction) (*MsgNewAuctionResponse, error)
|
2022-08-28 10:57:06 -07:00
|
|
|
NewBid(context.Context, *MsgNewBid) (*MsgNewBidResponse, error)
|
2022-08-25 16:51:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedMsgServer struct {
|
|
|
|
}
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
func (*UnimplementedMsgServer) NewAuction(ctx context.Context, req *MsgNewAuction) (*MsgNewAuctionResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method NewAuction not implemented")
|
|
|
|
}
|
2022-08-28 10:57:06 -07:00
|
|
|
func (*UnimplementedMsgServer) NewBid(ctx context.Context, req *MsgNewBid) (*MsgNewBidResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method NewBid not implemented")
|
|
|
|
}
|
2022-08-27 14:19:03 -07:00
|
|
|
|
2022-08-25 16:51:14 -07:00
|
|
|
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
|
|
|
|
s.RegisterService(&_Msg_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
func _Msg_NewAuction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(MsgNewAuction)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(MsgServer).NewAuction(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2022-09-06 14:29:55 -07:00
|
|
|
FullMethod: "/colinear.colinearcore.Msg/NewAuction",
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(MsgServer).NewAuction(ctx, req.(*MsgNewAuction))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2022-08-28 10:57:06 -07:00
|
|
|
func _Msg_NewBid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(MsgNewBid)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(MsgServer).NewBid(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2022-09-06 14:29:55 -07:00
|
|
|
FullMethod: "/colinear.colinearcore.Msg/NewBid",
|
2022-08-28 10:57:06 -07:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(MsgServer).NewBid(ctx, req.(*MsgNewBid))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2022-08-25 16:51:14 -07:00
|
|
|
var _Msg_serviceDesc = grpc.ServiceDesc{
|
2022-09-06 14:29:55 -07:00
|
|
|
ServiceName: "colinear.colinearcore.Msg",
|
2022-08-25 16:51:14 -07:00
|
|
|
HandlerType: (*MsgServer)(nil),
|
2022-08-27 14:19:03 -07:00
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "NewAuction",
|
|
|
|
Handler: _Msg_NewAuction_Handler,
|
|
|
|
},
|
2022-08-28 10:57:06 -07:00
|
|
|
{
|
|
|
|
MethodName: "NewBid",
|
|
|
|
Handler: _Msg_NewBid_Handler,
|
|
|
|
},
|
2022-08-27 14:19:03 -07:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2022-09-06 14:29:55 -07:00
|
|
|
Metadata: "colinear-core/tx.proto",
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuction) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuction) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2022-09-01 12:13:17 -07:00
|
|
|
if m.LeaseEnd != 0 {
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(m.LeaseEnd))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
}
|
2022-08-31 21:49:24 -07:00
|
|
|
if len(m.Denom) > 0 {
|
|
|
|
i -= len(m.Denom)
|
|
|
|
copy(dAtA[i:], m.Denom)
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Denom)))
|
|
|
|
i--
|
2022-08-31 23:09:36 -07:00
|
|
|
dAtA[i] = 0x2a
|
|
|
|
}
|
|
|
|
if len(m.Ceiling) > 0 {
|
|
|
|
i -= len(m.Ceiling)
|
|
|
|
copy(dAtA[i:], m.Ceiling)
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Ceiling)))
|
|
|
|
i--
|
2022-08-31 21:49:24 -07:00
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
2022-08-27 14:19:03 -07:00
|
|
|
if len(m.Description) > 0 {
|
|
|
|
i -= len(m.Description)
|
|
|
|
copy(dAtA[i:], m.Description)
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Description)))
|
|
|
|
i--
|
2022-08-31 21:49:24 -07:00
|
|
|
dAtA[i] = 0x1a
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
if len(m.Name) > 0 {
|
|
|
|
i -= len(m.Name)
|
|
|
|
copy(dAtA[i:], m.Name)
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuctionResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuctionResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.AuctionId) > 0 {
|
|
|
|
i -= len(m.AuctionId)
|
|
|
|
copy(dAtA[i:], m.AuctionId)
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.AuctionId)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2022-08-28 10:57:06 -07:00
|
|
|
func (m *MsgNewBid) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBid) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBid) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Amount) > 0 {
|
|
|
|
i -= len(m.Amount)
|
|
|
|
copy(dAtA[i:], m.Amount)
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.Amount)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
|
|
|
if len(m.AuctionIndex) > 0 {
|
|
|
|
i -= len(m.AuctionIndex)
|
|
|
|
copy(dAtA[i:], m.AuctionIndex)
|
|
|
|
i = encodeVarintTx(dAtA, i, uint64(len(m.AuctionIndex)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBidResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBidResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
|
|
|
|
offset -= sovTx(v)
|
|
|
|
base := offset
|
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
|
|
|
return base
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuction) 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))
|
|
|
|
}
|
2022-08-31 21:49:24 -07:00
|
|
|
l = len(m.Name)
|
2022-08-27 14:19:03 -07:00
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovTx(uint64(l))
|
|
|
|
}
|
2022-08-31 21:49:24 -07:00
|
|
|
l = len(m.Description)
|
2022-08-27 14:19:03 -07:00
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovTx(uint64(l))
|
|
|
|
}
|
2022-08-31 23:09:36 -07:00
|
|
|
l = len(m.Ceiling)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovTx(uint64(l))
|
|
|
|
}
|
2022-08-31 21:49:24 -07:00
|
|
|
l = len(m.Denom)
|
2022-08-27 14:19:03 -07:00
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovTx(uint64(l))
|
|
|
|
}
|
2022-09-01 12:13:17 -07:00
|
|
|
if m.LeaseEnd != 0 {
|
|
|
|
n += 1 + sovTx(uint64(m.LeaseEnd))
|
|
|
|
}
|
2022-08-27 14:19:03 -07:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewAuctionResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.AuctionId)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovTx(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2022-08-28 10:57:06 -07:00
|
|
|
func (m *MsgNewBid) 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.AuctionIndex)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovTx(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Amount)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovTx(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MsgNewBidResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2022-08-27 14:19:03 -07:00
|
|
|
func sovTx(x uint64) (n int) {
|
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2022-08-25 16:51:14 -07:00
|
|
|
}
|
2022-08-27 14:19:03 -07:00
|
|
|
func sozTx(x uint64) (n int) {
|
|
|
|
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (m *MsgNewAuction) 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: MsgNewAuction: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: MsgNewAuction: 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 {
|
2022-08-31 21:49:24 -07:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2022-08-31 21:49:24 -07:00
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
2022-08-27 14:19:03 -07:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2022-08-31 21:49:24 -07:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2022-08-31 21:49:24 -07:00
|
|
|
m.Description = string(dAtA[iNdEx:postIndex])
|
2022-08-27 14:19:03 -07:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
2022-08-31 23:09:36 -07:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ceiling", 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.Ceiling = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
2022-08-27 14:19:03 -07:00
|
|
|
if wireType != 2 {
|
2022-08-31 21:49:24 -07:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
|
2022-08-27 14:19:03 -07:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2022-08-31 21:49:24 -07:00
|
|
|
m.Denom = string(dAtA[iNdEx:postIndex])
|
2022-08-27 14:19:03 -07:00
|
|
|
iNdEx = postIndex
|
2022-09-01 12:13:17 -07:00
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LeaseEnd", wireType)
|
|
|
|
}
|
|
|
|
m.LeaseEnd = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowTx
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.LeaseEnd |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2022-08-27 14:19:03 -07:00
|
|
|
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 *MsgNewAuctionResponse) 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: MsgNewAuctionResponse: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: MsgNewAuctionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AuctionId", 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.AuctionId = 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
|
|
|
|
}
|
2022-08-28 10:57:06 -07:00
|
|
|
func (m *MsgNewBid) 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: MsgNewBid: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: MsgNewBid: 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 AuctionIndex", 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.AuctionIndex = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = 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 *MsgNewBidResponse) 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: MsgNewBidResponse: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: MsgNewBidResponse: 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
|
|
|
|
}
|
2022-08-27 14:19:03 -07:00
|
|
|
func skipTx(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
depth := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowTx
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowTx
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowTx
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthTx
|
|
|
|
}
|
|
|
|
iNdEx += length
|
|
|
|
case 3:
|
|
|
|
depth++
|
|
|
|
case 4:
|
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupTx
|
|
|
|
}
|
|
|
|
depth--
|
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthTx
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
|
|
|
|
)
|