gpu-compute-chain/x/cosmostest/types/tx.pb.go

1248 lines
30 KiB
Go
Raw Normal View History

2022-08-25 16:51:14 -07:00
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: cosmostest/tx.proto
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"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
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) {
return fileDescriptor_2fcd5aa4ac15d93c, []int{0}
}
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 ""
}
func (m *MsgNewAuction) GetName() string {
2022-08-27 14:19:03 -07:00
if m != nil {
return m.Name
2022-08-27 14:19:03 -07:00
}
return ""
}
func (m *MsgNewAuction) GetDescription() string {
2022-08-27 14:19:03 -07:00
if m != nil {
return m.Description
2022-08-27 14:19:03 -07:00
}
return ""
}
func (m *MsgNewAuction) GetCeiling() string {
if m != nil {
return m.Ceiling
}
return ""
}
func (m *MsgNewAuction) GetDenom() string {
2022-08-27 14:19:03 -07:00
if m != nil {
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) {
return fileDescriptor_2fcd5aa4ac15d93c, []int{1}
}
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) {
return fileDescriptor_2fcd5aa4ac15d93c, []int{2}
}
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) {
return fileDescriptor_2fcd5aa4ac15d93c, []int{3}
}
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() {
proto.RegisterType((*MsgNewAuction)(nil), "cosmostest.cosmostest.MsgNewAuction")
proto.RegisterType((*MsgNewAuctionResponse)(nil), "cosmostest.cosmostest.MsgNewAuctionResponse")
2022-08-28 10:57:06 -07:00
proto.RegisterType((*MsgNewBid)(nil), "cosmostest.cosmostest.MsgNewBid")
proto.RegisterType((*MsgNewBidResponse)(nil), "cosmostest.cosmostest.MsgNewBidResponse")
2022-08-27 14:19:03 -07:00
}
2022-08-25 16:51:14 -07:00
func init() { proto.RegisterFile("cosmostest/tx.proto", fileDescriptor_2fcd5aa4ac15d93c) }
var fileDescriptor_2fcd5aa4ac15d93c = []byte{
2022-09-01 12:13:17 -07:00
// 338 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x4a, 0xc3, 0x40,
0x10, 0xc6, 0xbb, 0xb6, 0x8d, 0x76, 0xd4, 0x83, 0x5b, 0x2b, 0x4b, 0x91, 0x25, 0x04, 0x0f, 0x3d,
0x68, 0x0a, 0x8a, 0xe0, 0xd5, 0x82, 0x07, 0x0f, 0xf5, 0x50, 0x3c, 0x79, 0x32, 0x66, 0x87, 0x12,
0x68, 0x76, 0x43, 0x76, 0x8b, 0xf5, 0x2d, 0x7c, 0x0f, 0x9f, 0xc1, 0xbb, 0xc7, 0x1e, 0x3d, 0x4a,
0xfb, 0x22, 0xe2, 0x66, 0xd3, 0x3f, 0x20, 0xd5, 0xdb, 0x7c, 0xbf, 0xcc, 0x37, 0x99, 0x2f, 0x19,
0x68, 0xc6, 0x4a, 0xa7, 0x4a, 0x1b, 0xd4, 0xa6, 0x6b, 0x26, 0x61, 0x96, 0x2b, 0xa3, 0x68, 0x6b,
0x09, 0xc3, 0x65, 0x19, 0xbc, 0x11, 0xd8, 0xef, 0xeb, 0xe1, 0x1d, 0x3e, 0x5f, 0x8f, 0x63, 0x93,
0x28, 0x49, 0x19, 0x6c, 0xc7, 0x39, 0x46, 0x46, 0xe5, 0x8c, 0xf8, 0xa4, 0xd3, 0x18, 0x94, 0x92,
0x52, 0xa8, 0xc9, 0x28, 0x45, 0xb6, 0x65, 0xb1, 0xad, 0xa9, 0x0f, 0xbb, 0x02, 0x75, 0x9c, 0x27,
0xd9, 0x8f, 0x99, 0x55, 0xed, 0xa3, 0x55, 0x64, 0xe7, 0x61, 0x32, 0x4a, 0xe4, 0x90, 0xd5, 0xdc,
0xbc, 0x42, 0xd2, 0x43, 0xa8, 0x0b, 0x94, 0x2a, 0x65, 0x75, 0xcb, 0x0b, 0x41, 0xdb, 0xb0, 0x33,
0xc2, 0x48, 0xe3, 0x8d, 0x14, 0xcc, 0xf3, 0x49, 0xa7, 0x36, 0x58, 0xe8, 0xe0, 0x12, 0x5a, 0x6b,
0xcb, 0x0e, 0x50, 0x67, 0x4a, 0x6a, 0xa4, 0xc7, 0xd0, 0x88, 0x0a, 0x74, 0x2b, 0xdc, 0xda, 0x4b,
0x10, 0x44, 0xd0, 0x28, 0x6c, 0xbd, 0x44, 0x6c, 0xc8, 0x17, 0xc0, 0x5e, 0xe9, 0x91, 0x02, 0x27,
0x2e, 0xe7, 0x1a, 0xa3, 0x47, 0xe0, 0x45, 0xa9, 0x1a, 0x4b, 0xe3, 0xa2, 0x3a, 0x15, 0x34, 0xe1,
0x60, 0xf1, 0x8a, 0x72, 0xab, 0xf3, 0x77, 0x02, 0xd5, 0xbe, 0x1e, 0xd2, 0x47, 0x80, 0x95, 0x0f,
0x7c, 0x12, 0xfe, 0xfa, 0x2b, 0xc2, 0xb5, 0x64, 0xed, 0xd3, 0xff, 0x74, 0x2d, 0xf2, 0xdf, 0x83,
0xe7, 0xe2, 0xf9, 0x1b, 0x7d, 0xbd, 0x44, 0xb4, 0x3b, 0x7f, 0x75, 0x94, 0x53, 0x7b, 0x57, 0x1f,
0x33, 0x4e, 0xa6, 0x33, 0x4e, 0xbe, 0x66, 0x9c, 0xbc, 0xce, 0x79, 0x65, 0x3a, 0xe7, 0x95, 0xcf,
0x39, 0xaf, 0x3c, 0xf0, 0xc2, 0x77, 0x66, 0x6f, 0x6c, 0xd2, 0x5d, 0x3d, 0xb8, 0x97, 0x0c, 0xf5,
0x93, 0x67, 0x8f, 0xee, 0xe2, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x58, 0xb3, 0x7c, 0x83, 0x8b, 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)
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Msg/NewAuction", in, out, opts...)
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)
err := c.cc.Invoke(ctx, "/cosmostest.cosmostest.Msg/NewBid", in, out, opts...)
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,
FullMethod: "/cosmostest.cosmostest.Msg/NewAuction",
}
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,
FullMethod: "/cosmostest.cosmostest.Msg/NewBid",
}
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{
ServiceName: "cosmostest.cosmostest.Msg",
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{},
Metadata: "cosmostest/tx.proto",
}
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
}
if len(m.Denom) > 0 {
i -= len(m.Denom)
copy(dAtA[i:], m.Denom)
i = encodeVarintTx(dAtA, i, uint64(len(m.Denom)))
i--
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--
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--
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))
}
l = len(m.Name)
2022-08-27 14:19:03 -07:00
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Description)
2022-08-27 14:19:03 -07:00
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Ceiling)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
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 {
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
}
m.Name = string(dAtA[iNdEx:postIndex])
2022-08-27 14:19:03 -07:00
iNdEx = postIndex
case 3:
if wireType != 2 {
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
}
m.Description = string(dAtA[iNdEx:postIndex])
2022-08-27 14:19:03 -07:00
iNdEx = postIndex
case 4:
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 {
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
}
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")
)