upgrade auction structure ton include denom + no owner in tx

master
michael 2022-09-01 04:49:24 +00:00
parent 9727e246ee
commit ed2061213e
9 changed files with 227 additions and 98 deletions

View File

@ -20153,6 +20153,10 @@ paths:
deadline: deadline:
type: string type: string
format: uint64 format: uint64
denom:
type: string
owner:
type: string
pagination: pagination:
type: object type: object
properties: properties:
@ -20286,6 +20290,10 @@ paths:
deadline: deadline:
type: string type: string
format: uint64 format: uint64
denom:
type: string
owner:
type: string
default: default:
description: An unexpected error response. description: An unexpected error response.
schema: schema:
@ -47466,6 +47474,10 @@ definitions:
deadline: deadline:
type: string type: string
format: uint64 format: uint64
denom:
type: string
owner:
type: string
cosmostest.cosmostest.Bid: cosmostest.cosmostest.Bid:
type: object type: object
properties: properties:
@ -47513,6 +47525,10 @@ definitions:
deadline: deadline:
type: string type: string
format: uint64 format: uint64
denom:
type: string
owner:
type: string
pagination: pagination:
type: object type: object
properties: properties:
@ -47572,6 +47588,10 @@ definitions:
deadline: deadline:
type: string type: string
format: uint64 format: uint64
denom:
type: string
owner:
type: string
cosmostest.cosmostest.QueryGetNextAuctionResponse: cosmostest.cosmostest.QueryGetNextAuctionResponse:
type: object type: object
properties: properties:

View File

@ -11,5 +11,6 @@ message Auction {
string description = 3; string description = 3;
Bid best = 4; Bid best = 4;
uint64 deadline = 5; uint64 deadline = 5;
string denom = 6;
string owner = 7;
} }

View File

@ -14,9 +14,9 @@ service Msg {
message MsgNewAuction { message MsgNewAuction {
string creator = 1; string creator = 1;
string owner = 2; string name = 2;
string name = 3; string description = 3;
string description = 4; string denom = 4;
} }
message MsgNewAuctionResponse { message MsgNewAuctionResponse {

View File

@ -4,6 +4,7 @@ import (
"strconv" "strconv"
"cosmos-test/x/cosmostest/types" "cosmos-test/x/cosmostest/types"
"github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx" "github.com/cosmos/cosmos-sdk/client/tx"
@ -14,13 +15,13 @@ var _ = strconv.Itoa(0)
func CmdNewAuction() *cobra.Command { func CmdNewAuction() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "new-auction [owner] [name] [description]", Use: "new-auction [name] [description] [denom]",
Short: "Broadcast message newAuction", Short: "Broadcast message newAuction",
Args: cobra.ExactArgs(3), Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) (err error) { RunE: func(cmd *cobra.Command, args []string) (err error) {
argOwner := args[0] argName := args[0]
argName := args[1] argDescription := args[1]
argDescription := args[2] argDenom := args[2]
clientCtx, err := client.GetClientTxContext(cmd) clientCtx, err := client.GetClientTxContext(cmd)
if err != nil { if err != nil {
@ -29,9 +30,9 @@ func CmdNewAuction() *cobra.Command {
msg := types.NewMsgNewAuction( msg := types.NewMsgNewAuction(
clientCtx.GetFromAddress().String(), clientCtx.GetFromAddress().String(),
argOwner,
argName, argName,
argDescription, argDescription,
argDenom,
) )
if err := msg.ValidateBasic(); err != nil { if err := msg.ValidateBasic(); err != nil {
return err return err

View File

@ -4,6 +4,7 @@ import (
"strconv" "strconv"
"cosmos-test/x/cosmostest/types" "cosmos-test/x/cosmostest/types"
"github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx" "github.com/cosmos/cosmos-sdk/client/tx"

View File

@ -24,8 +24,10 @@ func (k msgServer) NewAuction(goCtx context.Context, msg *types.MsgNewAuction) (
Index: index, Index: index,
Name: msg.Name, Name: msg.Name,
Description: msg.Description, Description: msg.Description,
Best: new(types.Bid), // Best: new(types.Bid),
Deadline: uint64(ctx.BlockHeight()) + auctionconfig.AuctionTime, Deadline: uint64(ctx.BlockHeight()) + auctionconfig.AuctionTime,
Denom: msg.Denom,
Owner: msg.Creator,
} }
k.Keeper.SetAuction(ctx, auction) k.Keeper.SetAuction(ctx, auction)

View File

@ -28,6 +28,8 @@ type Auction struct {
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Best *Bid `protobuf:"bytes,4,opt,name=best,proto3" json:"best,omitempty"` Best *Bid `protobuf:"bytes,4,opt,name=best,proto3" json:"best,omitempty"`
Deadline uint64 `protobuf:"varint,5,opt,name=deadline,proto3" json:"deadline,omitempty"` Deadline uint64 `protobuf:"varint,5,opt,name=deadline,proto3" json:"deadline,omitempty"`
Denom string `protobuf:"bytes,6,opt,name=denom,proto3" json:"denom,omitempty"`
Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
} }
func (m *Auction) Reset() { *m = Auction{} } func (m *Auction) Reset() { *m = Auction{} }
@ -98,6 +100,20 @@ func (m *Auction) GetDeadline() uint64 {
return 0 return 0
} }
func (m *Auction) GetDenom() string {
if m != nil {
return m.Denom
}
return ""
}
func (m *Auction) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func init() { func init() {
proto.RegisterType((*Auction)(nil), "cosmostest.cosmostest.Auction") proto.RegisterType((*Auction)(nil), "cosmostest.cosmostest.Auction")
} }
@ -105,21 +121,23 @@ func init() {
func init() { proto.RegisterFile("cosmostest/auction.proto", fileDescriptor_631f6f59914101d9) } func init() { proto.RegisterFile("cosmostest/auction.proto", fileDescriptor_631f6f59914101d9) }
var fileDescriptor_631f6f59914101d9 = []byte{ var fileDescriptor_631f6f59914101d9 = []byte{
// 221 bytes of a gzipped FileDescriptorProto // 244 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
0xcd,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0x94, 0xec, 0x34, 0x4a, 0xf6, 0x33, 0x4a, 0xf6, 0x31, 0xc9, 0xec, 0x34,
0x02, 0x00, 0x00, 0xff, 0xff, 0xb5, 0xb0, 0xd9, 0xd2, 0x2d, 0x01, 0x00, 0x00, 0xc9, 0xec, 0x7b, 0x92, 0xd9, 0xb3, 0x4c, 0x7f, 0xef, 0xa8, 0x80, 0xe3, 0x7e, 0xd1, 0x46, 0x7c,
0xef, 0x31, 0x34, 0x6b, 0x2a, 0xe4, 0xe1, 0x37, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x3e, 0xfb, 0xb2,
0x59, 0x01, 0x00, 0x00,
} }
func (m *Auction) Marshal() (dAtA []byte, err error) { func (m *Auction) Marshal() (dAtA []byte, err error) {
@ -142,6 +160,20 @@ func (m *Auction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if len(m.Owner) > 0 {
i -= len(m.Owner)
copy(dAtA[i:], m.Owner)
i = encodeVarintAuction(dAtA, i, uint64(len(m.Owner)))
i--
dAtA[i] = 0x3a
}
if len(m.Denom) > 0 {
i -= len(m.Denom)
copy(dAtA[i:], m.Denom)
i = encodeVarintAuction(dAtA, i, uint64(len(m.Denom)))
i--
dAtA[i] = 0x32
}
if m.Deadline != 0 { if m.Deadline != 0 {
i = encodeVarintAuction(dAtA, i, uint64(m.Deadline)) i = encodeVarintAuction(dAtA, i, uint64(m.Deadline))
i-- i--
@ -219,6 +251,14 @@ func (m *Auction) Size() (n int) {
if m.Deadline != 0 { if m.Deadline != 0 {
n += 1 + sovAuction(uint64(m.Deadline)) n += 1 + sovAuction(uint64(m.Deadline))
} }
l = len(m.Denom)
if l > 0 {
n += 1 + l + sovAuction(uint64(l))
}
l = len(m.Owner)
if l > 0 {
n += 1 + l + sovAuction(uint64(l))
}
return n return n
} }
@ -408,6 +448,70 @@ func (m *Auction) Unmarshal(dAtA []byte) error {
break break
} }
} }
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowAuction
}
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 ErrInvalidLengthAuction
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthAuction
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Denom = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowAuction
}
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 ErrInvalidLengthAuction
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthAuction
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Owner = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipAuction(dAtA[iNdEx:]) skippy, err := skipAuction(dAtA[iNdEx:])

View File

@ -9,12 +9,12 @@ const TypeMsgNewAuction = "new_auction"
var _ sdk.Msg = &MsgNewAuction{} var _ sdk.Msg = &MsgNewAuction{}
func NewMsgNewAuction(creator string, owner string, name string, description string) *MsgNewAuction { func NewMsgNewAuction(creator string, name string, description string, denom string) *MsgNewAuction {
return &MsgNewAuction{ return &MsgNewAuction{
Creator: creator, Creator: creator,
Owner: owner,
Name: name, Name: name,
Description: description, Description: description,
Denom: denom,
} }
} }

View File

@ -29,9 +29,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type MsgNewAuction struct { type MsgNewAuction struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
} }
func (m *MsgNewAuction) Reset() { *m = MsgNewAuction{} } func (m *MsgNewAuction) Reset() { *m = MsgNewAuction{} }
@ -74,13 +74,6 @@ func (m *MsgNewAuction) GetCreator() string {
return "" return ""
} }
func (m *MsgNewAuction) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *MsgNewAuction) GetName() string { func (m *MsgNewAuction) GetName() string {
if m != nil { if m != nil {
return m.Name return m.Name
@ -95,6 +88,13 @@ func (m *MsgNewAuction) GetDescription() string {
return "" return ""
} }
func (m *MsgNewAuction) GetDenom() string {
if m != nil {
return m.Denom
}
return ""
}
type MsgNewAuctionResponse struct { type MsgNewAuctionResponse struct {
AuctionId string `protobuf:"bytes,1,opt,name=auctionId,proto3" json:"auctionId,omitempty"` AuctionId string `protobuf:"bytes,1,opt,name=auctionId,proto3" json:"auctionId,omitempty"`
} }
@ -250,21 +250,21 @@ var fileDescriptor_2fcd5aa4ac15d93c = []byte{
0xcd, 0x2f, 0x2e, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xcd, 0x2f, 0x2e, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
0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ac, 0x61, 0xaa, 0x87, 0xe2, 0x33, 0x29, 0x1d, 0x62, 0x54, 0xc1,
0xfb, 0x3f, 0x84, 0x8b, 0x0d, 0xea, 0x3d, 0x05, 0xbc, 0xfa, 0x9c, 0x32, 0x53, 0xa4, 0x34, 0x08, 0xfd, 0x1f, 0xc2, 0xc5, 0x06, 0xf5, 0x9e, 0x02, 0x5e, 0x7d, 0x4e, 0x99, 0x29, 0x52, 0x1a, 0x84,
0xa9, 0x80, 0x99, 0xea, 0x64, 0x71, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0x54, 0xc0, 0x4c, 0x75, 0xb2, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f,
0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28,
0x72, 0x10, 0x7d, 0xba, 0xe0, 0xc4, 0x52, 0xa1, 0x8f, 0x9c, 0x72, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0x39, 0x88, 0x3e, 0x5d, 0x70, 0x62, 0xa9, 0xd0, 0x47, 0x4e, 0x39, 0x95, 0x05, 0xa9, 0xc5, 0x49,
0xd8, 0xc0, 0xa9, 0xc7, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xf4, 0xdf, 0xab, 0x54, 0x02, 0x6c, 0xe0, 0xd4, 0x63, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x30, 0x36, 0x68, 0x3f, 0x54, 0x02,
0x00, 0x00, 0x00, 0x00,
} }
@ -404,25 +404,25 @@ func (m *MsgNewAuction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
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] = 0x22
}
if len(m.Description) > 0 { if len(m.Description) > 0 {
i -= len(m.Description) i -= len(m.Description)
copy(dAtA[i:], m.Description) copy(dAtA[i:], m.Description)
i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) i = encodeVarintTx(dAtA, i, uint64(len(m.Description)))
i-- i--
dAtA[i] = 0x22 dAtA[i] = 0x1a
} }
if len(m.Name) > 0 { if len(m.Name) > 0 {
i -= len(m.Name) i -= len(m.Name)
copy(dAtA[i:], m.Name) copy(dAtA[i:], m.Name)
i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) i = encodeVarintTx(dAtA, i, uint64(len(m.Name)))
i-- i--
dAtA[i] = 0x1a
}
if len(m.Owner) > 0 {
i -= len(m.Owner)
copy(dAtA[i:], m.Owner)
i = encodeVarintTx(dAtA, i, uint64(len(m.Owner)))
i--
dAtA[i] = 0x12 dAtA[i] = 0x12
} }
if len(m.Creator) > 0 { if len(m.Creator) > 0 {
@ -553,10 +553,6 @@ func (m *MsgNewAuction) Size() (n int) {
if l > 0 { if l > 0 {
n += 1 + l + sovTx(uint64(l)) n += 1 + l + sovTx(uint64(l))
} }
l = len(m.Owner)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Name) l = len(m.Name)
if l > 0 { if l > 0 {
n += 1 + l + sovTx(uint64(l)) n += 1 + l + sovTx(uint64(l))
@ -565,6 +561,10 @@ func (m *MsgNewAuction) Size() (n int) {
if l > 0 { if l > 0 {
n += 1 + l + sovTx(uint64(l)) n += 1 + l + sovTx(uint64(l))
} }
l = len(m.Denom)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n return n
} }
@ -679,38 +679,6 @@ func (m *MsgNewAuction) Unmarshal(dAtA []byte) error {
m.Creator = string(dAtA[iNdEx:postIndex]) m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 2: case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
} }
@ -742,7 +710,7 @@ func (m *MsgNewAuction) Unmarshal(dAtA []byte) error {
} }
m.Name = string(dAtA[iNdEx:postIndex]) m.Name = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 4: case 3:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
} }
@ -774,6 +742,38 @@ func (m *MsgNewAuction) Unmarshal(dAtA []byte) error {
} }
m.Description = string(dAtA[iNdEx:postIndex]) m.Description = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:]) skippy, err := skipTx(dAtA[iNdEx:])