types

package
v1.54.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ModuleName = "auction"
	StoreKey   = ModuleName
	TStoreKey  = "transient_auction"
)
View Source
const (
	RouterKey = ModuleName

	TypeMsgBid          = "bid"
	TypeMsgUpdateParams = "updateParams"
)
View Source
const (
	EventTypeNewBid = "new_bid"
)

Auction module event types

Variables

View Source
var (
	ErrInvalidLengthAuction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuction = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrBidInvalid = errors.Register(ModuleName, 1, "invalid bid denom")
	ErrBidRound   = errors.Register(ModuleName, 2, "invalid bid round")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// Keys for store prefixes
	BidsKey              = []byte{0x01}
	AuctionRoundKey      = []byte{0x03}
	KeyEndingTimeStamp   = []byte{0x04}
	KeyLastAuctionResult = []byte{0x05}
	ParamsKey            = []byte{0x10}
)
View Source
var (
	// DefaultAuctionPeriod represents the number of seconds in 1 week
	DefaultAuctionPeriod int64 = 60 * 60 * 24 * 7
	// DefaultMinNextBidIncrementRate represents default min increment rate 0.25%
	DefaultMinNextBidIncrementRate = math.LegacyNewDecWithPrec(25, 4)
)

Auction params default values

View Source
var (
	KeyAuctionPeriod           = []byte("AuctionPeriod")
	KeyMinNextBidIncrementRate = []byte("MinNextBidIncrementRate")
)

Parameter keys

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ModuleCdc references the global x/auction module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/auction and
	// defined at the application level.
	ModuleCdc = codec.NewLegacyAmino()
)

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/auction interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper methods

type Bid

type Bid struct {
	Bidder string                                  `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder" yaml:"bidder"`
	Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
}

func (*Bid) Descriptor

func (*Bid) Descriptor() ([]byte, []int)

func (*Bid) GetBidder

func (m *Bid) GetBidder() string

func (*Bid) Marshal

func (m *Bid) Marshal() (dAtA []byte, err error)

func (*Bid) MarshalTo

func (m *Bid) MarshalTo(dAtA []byte) (int, error)

func (*Bid) MarshalToSizedBuffer

func (m *Bid) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) Reset

func (m *Bid) Reset()

func (*Bid) Size

func (m *Bid) Size() (n int)

func (*Bid) String

func (m *Bid) String() string

func (*Bid) Unmarshal

func (m *Bid) Unmarshal(dAtA []byte) error

func (*Bid) XXX_DiscardUnknown

func (m *Bid) XXX_DiscardUnknown()

func (*Bid) XXX_Marshal

func (m *Bid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bid) XXX_Merge

func (m *Bid) XXX_Merge(src proto.Message)

func (*Bid) XXX_Size

func (m *Bid) XXX_Size() int

func (*Bid) XXX_Unmarshal

func (m *Bid) XXX_Unmarshal(b []byte) error

type EventAuctionResult added in v1.23.4

type EventAuctionResult struct {
	// winner describes the address of the winner
	Winner string `protobuf:"bytes,1,opt,name=winner,proto3" json:"winner,omitempty"`
	// amount describes the amount the winner get from the auction
	Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	// round defines the round number of auction
	Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
}

func (*EventAuctionResult) Descriptor added in v1.23.4

func (*EventAuctionResult) Descriptor() ([]byte, []int)

func (*EventAuctionResult) GetRound added in v1.23.4

func (m *EventAuctionResult) GetRound() uint64

func (*EventAuctionResult) GetWinner added in v1.23.4

func (m *EventAuctionResult) GetWinner() string

func (*EventAuctionResult) Marshal added in v1.23.4

func (m *EventAuctionResult) Marshal() (dAtA []byte, err error)

func (*EventAuctionResult) MarshalTo added in v1.23.4

func (m *EventAuctionResult) MarshalTo(dAtA []byte) (int, error)

func (*EventAuctionResult) MarshalToSizedBuffer added in v1.23.4

func (m *EventAuctionResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventAuctionResult) ProtoMessage added in v1.23.4

func (*EventAuctionResult) ProtoMessage()

func (*EventAuctionResult) Reset added in v1.23.4

func (m *EventAuctionResult) Reset()

func (*EventAuctionResult) Size added in v1.23.4

func (m *EventAuctionResult) Size() (n int)

func (*EventAuctionResult) String added in v1.23.4

func (m *EventAuctionResult) String() string

func (*EventAuctionResult) Unmarshal added in v1.23.4

func (m *EventAuctionResult) Unmarshal(dAtA []byte) error

func (*EventAuctionResult) XXX_DiscardUnknown added in v1.23.4

func (m *EventAuctionResult) XXX_DiscardUnknown()

func (*EventAuctionResult) XXX_Marshal added in v1.23.4

func (m *EventAuctionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventAuctionResult) XXX_Merge added in v1.23.4

func (m *EventAuctionResult) XXX_Merge(src proto.Message)

func (*EventAuctionResult) XXX_Size added in v1.23.4

func (m *EventAuctionResult) XXX_Size() int

func (*EventAuctionResult) XXX_Unmarshal added in v1.23.4

func (m *EventAuctionResult) XXX_Unmarshal(b []byte) error

type EventAuctionStart added in v1.28.0

type EventAuctionStart struct {
	// round defines the round number of auction
	Round uint64 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"`
	// ending_timestamp describes auction end time
	EndingTimestamp int64 `protobuf:"varint,2,opt,name=ending_timestamp,json=endingTimestamp,proto3" json:"ending_timestamp,omitempty"`
	// new_basket describes auction module balance at the time of new auction
	// start
	NewBasket github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}

func (*EventAuctionStart) Descriptor added in v1.28.0

func (*EventAuctionStart) Descriptor() ([]byte, []int)

func (*EventAuctionStart) GetEndingTimestamp added in v1.28.0

func (m *EventAuctionStart) GetEndingTimestamp() int64

func (*EventAuctionStart) GetNewBasket added in v1.28.0

func (*EventAuctionStart) GetRound added in v1.28.0

func (m *EventAuctionStart) GetRound() uint64

func (*EventAuctionStart) Marshal added in v1.28.0

func (m *EventAuctionStart) Marshal() (dAtA []byte, err error)

func (*EventAuctionStart) MarshalTo added in v1.28.0

func (m *EventAuctionStart) MarshalTo(dAtA []byte) (int, error)

func (*EventAuctionStart) MarshalToSizedBuffer added in v1.28.0

func (m *EventAuctionStart) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventAuctionStart) ProtoMessage added in v1.28.0

func (*EventAuctionStart) ProtoMessage()

func (*EventAuctionStart) Reset added in v1.28.0

func (m *EventAuctionStart) Reset()

func (*EventAuctionStart) Size added in v1.28.0

func (m *EventAuctionStart) Size() (n int)

func (*EventAuctionStart) String added in v1.28.0

func (m *EventAuctionStart) String() string

func (*EventAuctionStart) Unmarshal added in v1.28.0

func (m *EventAuctionStart) Unmarshal(dAtA []byte) error

func (*EventAuctionStart) XXX_DiscardUnknown added in v1.28.0

func (m *EventAuctionStart) XXX_DiscardUnknown()

func (*EventAuctionStart) XXX_Marshal added in v1.28.0

func (m *EventAuctionStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventAuctionStart) XXX_Merge added in v1.28.0

func (m *EventAuctionStart) XXX_Merge(src proto.Message)

func (*EventAuctionStart) XXX_Size added in v1.28.0

func (m *EventAuctionStart) XXX_Size() int

func (*EventAuctionStart) XXX_Unmarshal added in v1.28.0

func (m *EventAuctionStart) XXX_Unmarshal(b []byte) error

type EventBid added in v1.23.4

type EventBid struct {
	// bidder describes the address of bidder
	Bidder string `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// amount describes the amount the bidder put on the auction
	Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	// round defines the round number of auction
	Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
}

func (*EventBid) Descriptor added in v1.23.4

func (*EventBid) Descriptor() ([]byte, []int)

func (*EventBid) GetBidder added in v1.23.4

func (m *EventBid) GetBidder() string

func (*EventBid) GetRound added in v1.23.4

func (m *EventBid) GetRound() uint64

func (*EventBid) Marshal added in v1.23.4

func (m *EventBid) Marshal() (dAtA []byte, err error)

func (*EventBid) MarshalTo added in v1.23.4

func (m *EventBid) MarshalTo(dAtA []byte) (int, error)

func (*EventBid) MarshalToSizedBuffer added in v1.23.4

func (m *EventBid) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventBid) ProtoMessage added in v1.23.4

func (*EventBid) ProtoMessage()

func (*EventBid) Reset added in v1.23.4

func (m *EventBid) Reset()

func (*EventBid) Size added in v1.23.4

func (m *EventBid) Size() (n int)

func (*EventBid) String added in v1.23.4

func (m *EventBid) String() string

func (*EventBid) Unmarshal added in v1.23.4

func (m *EventBid) Unmarshal(dAtA []byte) error

func (*EventBid) XXX_DiscardUnknown added in v1.23.4

func (m *EventBid) XXX_DiscardUnknown()

func (*EventBid) XXX_Marshal added in v1.23.4

func (m *EventBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventBid) XXX_Merge added in v1.23.4

func (m *EventBid) XXX_Merge(src proto.Message)

func (*EventBid) XXX_Size added in v1.23.4

func (m *EventBid) XXX_Size() int

func (*EventBid) XXX_Unmarshal added in v1.23.4

func (m *EventBid) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// params defines all the parameters of related to auction.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// current auction round
	AuctionRound uint64 `protobuf:"varint,2,opt,name=auction_round,json=auctionRound,proto3" json:"auction_round,omitempty"`
	// current highest bid
	HighestBid *Bid `protobuf:"bytes,3,opt,name=highest_bid,json=highestBid,proto3" json:"highest_bid,omitempty"`
	// auction ending timestamp
	AuctionEndingTimestamp int64 `` /* 130-byte string literal not displayed */
	// last auction result
	LastAuctionResult *LastAuctionResult `protobuf:"bytes,5,opt,name=last_auction_result,json=lastAuctionResult,proto3" json:"last_auction_result,omitempty"`
}

GenesisState defines the auction module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState() GenesisState

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetAuctionEndingTimestamp added in v1.23.4

func (m *GenesisState) GetAuctionEndingTimestamp() int64

func (*GenesisState) GetAuctionRound added in v1.23.4

func (m *GenesisState) GetAuctionRound() uint64

func (*GenesisState) GetHighestBid added in v1.23.4

func (m *GenesisState) GetHighestBid() *Bid

func (*GenesisState) GetLastAuctionResult added in v1.51.0

func (m *GenesisState) GetLastAuctionResult() *LastAuctionResult

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type LastAuctionResult added in v1.51.0

type LastAuctionResult struct {
	// winner describes the address of the winner
	Winner string `protobuf:"bytes,1,opt,name=winner,proto3" json:"winner,omitempty"`
	// amount describes the amount the winner get from the auction
	Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	// round defines the round number of auction
	Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
}

func (*LastAuctionResult) Descriptor added in v1.51.0

func (*LastAuctionResult) Descriptor() ([]byte, []int)

func (*LastAuctionResult) GetRound added in v1.51.0

func (m *LastAuctionResult) GetRound() uint64

func (*LastAuctionResult) GetWinner added in v1.51.0

func (m *LastAuctionResult) GetWinner() string

func (*LastAuctionResult) Marshal added in v1.51.0

func (m *LastAuctionResult) Marshal() (dAtA []byte, err error)

func (*LastAuctionResult) MarshalTo added in v1.51.0

func (m *LastAuctionResult) MarshalTo(dAtA []byte) (int, error)

func (*LastAuctionResult) MarshalToSizedBuffer added in v1.51.0

func (m *LastAuctionResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LastAuctionResult) ProtoMessage added in v1.51.0

func (*LastAuctionResult) ProtoMessage()

func (*LastAuctionResult) Reset added in v1.51.0

func (m *LastAuctionResult) Reset()

func (*LastAuctionResult) Size added in v1.51.0

func (m *LastAuctionResult) Size() (n int)

func (*LastAuctionResult) String added in v1.51.0

func (m *LastAuctionResult) String() string

func (*LastAuctionResult) Unmarshal added in v1.51.0

func (m *LastAuctionResult) Unmarshal(dAtA []byte) error

func (*LastAuctionResult) XXX_DiscardUnknown added in v1.51.0

func (m *LastAuctionResult) XXX_DiscardUnknown()

func (*LastAuctionResult) XXX_Marshal added in v1.51.0

func (m *LastAuctionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LastAuctionResult) XXX_Merge added in v1.51.0

func (m *LastAuctionResult) XXX_Merge(src proto.Message)

func (*LastAuctionResult) XXX_Size added in v1.51.0

func (m *LastAuctionResult) XXX_Size() int

func (*LastAuctionResult) XXX_Unmarshal added in v1.51.0

func (m *LastAuctionResult) XXX_Unmarshal(b []byte) error

type MsgBid

type MsgBid struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// amount of the bid in INJ tokens
	BidAmount types.Coin `protobuf:"bytes,2,opt,name=bid_amount,json=bidAmount,proto3" json:"bid_amount"`
	// the current auction round being bid on
	Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
}

Bid defines a SDK message for placing a bid for an auction

func (*MsgBid) Descriptor

func (*MsgBid) Descriptor() ([]byte, []int)

func (*MsgBid) GetSignBytes

func (msg *MsgBid) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgBid) GetSigners

func (msg MsgBid) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgBid) Marshal

func (m *MsgBid) Marshal() (dAtA []byte, err error)

func (*MsgBid) MarshalTo

func (m *MsgBid) MarshalTo(dAtA []byte) (int, error)

func (*MsgBid) MarshalToSizedBuffer

func (m *MsgBid) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBid) ProtoMessage

func (*MsgBid) ProtoMessage()

func (*MsgBid) Reset

func (m *MsgBid) Reset()

func (MsgBid) Route

func (msg MsgBid) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgBid) Size

func (m *MsgBid) Size() (n int)

func (*MsgBid) String

func (m *MsgBid) String() string

func (MsgBid) Type

func (msg MsgBid) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgBid) Unmarshal

func (m *MsgBid) Unmarshal(dAtA []byte) error

func (MsgBid) ValidateBasic

func (msg MsgBid) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgBid) XXX_DiscardUnknown

func (m *MsgBid) XXX_DiscardUnknown()

func (*MsgBid) XXX_Marshal

func (m *MsgBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBid) XXX_Merge

func (m *MsgBid) XXX_Merge(src proto.Message)

func (*MsgBid) XXX_Size

func (m *MsgBid) XXX_Size() int

func (*MsgBid) XXX_Unmarshal

func (m *MsgBid) XXX_Unmarshal(b []byte) error

type MsgBidResponse

type MsgBidResponse struct {
}

func (*MsgBidResponse) Descriptor

func (*MsgBidResponse) Descriptor() ([]byte, []int)

func (*MsgBidResponse) Marshal

func (m *MsgBidResponse) Marshal() (dAtA []byte, err error)

func (*MsgBidResponse) MarshalTo

func (m *MsgBidResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBidResponse) MarshalToSizedBuffer

func (m *MsgBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBidResponse) ProtoMessage

func (*MsgBidResponse) ProtoMessage()

func (*MsgBidResponse) Reset

func (m *MsgBidResponse) Reset()

func (*MsgBidResponse) Size

func (m *MsgBidResponse) Size() (n int)

func (*MsgBidResponse) String

func (m *MsgBidResponse) String() string

func (*MsgBidResponse) Unmarshal

func (m *MsgBidResponse) Unmarshal(dAtA []byte) error

func (*MsgBidResponse) XXX_DiscardUnknown

func (m *MsgBidResponse) XXX_DiscardUnknown()

func (*MsgBidResponse) XXX_Marshal

func (m *MsgBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBidResponse) XXX_Merge

func (m *MsgBidResponse) XXX_Merge(src proto.Message)

func (*MsgBidResponse) XXX_Size

func (m *MsgBidResponse) XXX_Size() int

func (*MsgBidResponse) XXX_Unmarshal

func (m *MsgBidResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// Bid defines a method for placing a bid for an auction
	Bid(ctx context.Context, in *MsgBid, opts ...grpc.CallOption) (*MsgBidResponse, error)
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

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.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// Bid defines a method for placing a bid for an auction
	Bid(context.Context, *MsgBid) (*MsgBidResponse, error)
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams added in v1.47.1

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the ocr parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func (*MsgUpdateParams) Descriptor added in v1.47.1

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetAuthority added in v1.47.1

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v1.47.1

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes added in v1.47.1

func (msg *MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface. It encodes the message for signing

func (MsgUpdateParams) GetSigners added in v1.47.1

func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface. It defines whose signature is required

func (*MsgUpdateParams) Marshal added in v1.47.1

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo added in v1.47.1

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer added in v1.47.1

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage added in v1.47.1

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v1.47.1

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route added in v1.47.1

func (msg MsgUpdateParams) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgUpdateParams) Size added in v1.47.1

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String added in v1.47.1

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type added in v1.47.1

func (msg MsgUpdateParams) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgUpdateParams) Unmarshal added in v1.47.1

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (MsgUpdateParams) ValidateBasic added in v1.47.1

func (msg MsgUpdateParams) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message

func (*MsgUpdateParams) XXX_DiscardUnknown added in v1.47.1

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v1.47.1

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge added in v1.47.1

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size added in v1.47.1

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v1.47.1

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse added in v1.47.1

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor added in v1.47.1

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal added in v1.47.1

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo added in v1.47.1

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v1.47.1

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage added in v1.47.1

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v1.47.1

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v1.47.1

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String added in v1.47.1

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v1.47.1

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type ParamSet

type ParamSet interface {
	ParamSetPairs() ParamSetPairs
}

ParamSet defines an interface for structs containing parameters for a module

type ParamSetPair

type ParamSetPair struct {
	Key         []byte
	Value       interface{}
	ValidatorFn ValueValidatorFn
}

ParamSetPair is used for associating paramsubspace key and field of param structs.

func NewParamSetPair

func NewParamSetPair(key []byte, value interface{}, vfn ValueValidatorFn) ParamSetPair

NewParamSetPair creates a new ParamSetPair instance.

type ParamSetPairs

type ParamSetPairs []ParamSetPair

ParamSetPairs Slice of KeyFieldPair

type Params

type Params struct {
	// auction_period_duration defines the auction period duration
	AuctionPeriod int64 `protobuf:"varint,1,opt,name=auction_period,json=auctionPeriod,proto3" json:"auction_period,omitempty"`
	// min_next_bid_increment_rate defines the minimum increment rate for new bids
	MinNextBidIncrementRate cosmossdk_io_math.LegacyDec `` /* 165-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(
	auctionPeriod int64,
	minNextBidIncrementRate math.LegacyDec,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetAuctionPeriod

func (m *Params) GetAuctionPeriod() int64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate performs basic validation on auction parameters.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryAuctionParamsRequest

type QueryAuctionParamsRequest struct {
}

QueryAuctionParamsRequest is the request type for the Query/AuctionParams RPC method.

func (*QueryAuctionParamsRequest) Descriptor

func (*QueryAuctionParamsRequest) Descriptor() ([]byte, []int)

func (*QueryAuctionParamsRequest) Marshal

func (m *QueryAuctionParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAuctionParamsRequest) MarshalTo

func (m *QueryAuctionParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAuctionParamsRequest) MarshalToSizedBuffer

func (m *QueryAuctionParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAuctionParamsRequest) ProtoMessage

func (*QueryAuctionParamsRequest) ProtoMessage()

func (*QueryAuctionParamsRequest) Reset

func (m *QueryAuctionParamsRequest) Reset()

func (*QueryAuctionParamsRequest) Size

func (m *QueryAuctionParamsRequest) Size() (n int)

func (*QueryAuctionParamsRequest) String

func (m *QueryAuctionParamsRequest) String() string

func (*QueryAuctionParamsRequest) Unmarshal

func (m *QueryAuctionParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryAuctionParamsRequest) XXX_DiscardUnknown

func (m *QueryAuctionParamsRequest) XXX_DiscardUnknown()

func (*QueryAuctionParamsRequest) XXX_Marshal

func (m *QueryAuctionParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAuctionParamsRequest) XXX_Merge

func (m *QueryAuctionParamsRequest) XXX_Merge(src proto.Message)

func (*QueryAuctionParamsRequest) XXX_Size

func (m *QueryAuctionParamsRequest) XXX_Size() int

func (*QueryAuctionParamsRequest) XXX_Unmarshal

func (m *QueryAuctionParamsRequest) XXX_Unmarshal(b []byte) error

type QueryAuctionParamsResponse

type QueryAuctionParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryAuctionParamsRequest is the response type for the Query/AuctionParams RPC method.

func (*QueryAuctionParamsResponse) Descriptor

func (*QueryAuctionParamsResponse) Descriptor() ([]byte, []int)

func (*QueryAuctionParamsResponse) GetParams

func (m *QueryAuctionParamsResponse) GetParams() Params

func (*QueryAuctionParamsResponse) Marshal

func (m *QueryAuctionParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAuctionParamsResponse) MarshalTo

func (m *QueryAuctionParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAuctionParamsResponse) MarshalToSizedBuffer

func (m *QueryAuctionParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAuctionParamsResponse) ProtoMessage

func (*QueryAuctionParamsResponse) ProtoMessage()

func (*QueryAuctionParamsResponse) Reset

func (m *QueryAuctionParamsResponse) Reset()

func (*QueryAuctionParamsResponse) Size

func (m *QueryAuctionParamsResponse) Size() (n int)

func (*QueryAuctionParamsResponse) String

func (m *QueryAuctionParamsResponse) String() string

func (*QueryAuctionParamsResponse) Unmarshal

func (m *QueryAuctionParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryAuctionParamsResponse) XXX_DiscardUnknown

func (m *QueryAuctionParamsResponse) XXX_DiscardUnknown()

func (*QueryAuctionParamsResponse) XXX_Marshal

func (m *QueryAuctionParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAuctionParamsResponse) XXX_Merge

func (m *QueryAuctionParamsResponse) XXX_Merge(src proto.Message)

func (*QueryAuctionParamsResponse) XXX_Size

func (m *QueryAuctionParamsResponse) XXX_Size() int

func (*QueryAuctionParamsResponse) XXX_Unmarshal

func (m *QueryAuctionParamsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Retrieves auction params
	AuctionParams(ctx context.Context, in *QueryAuctionParamsRequest, opts ...grpc.CallOption) (*QueryAuctionParamsResponse, error)
	// Retrieves current auction basket with current highest bid and bidder
	CurrentAuctionBasket(ctx context.Context, in *QueryCurrentAuctionBasketRequest, opts ...grpc.CallOption) (*QueryCurrentAuctionBasketResponse, error)
	// Retrieves the entire auction module's state
	AuctionModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error)
	LastAuctionResult(ctx context.Context, in *QueryLastAuctionResultRequest, opts ...grpc.CallOption) (*QueryLastAuctionResultResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCurrentAuctionBasketRequest

type QueryCurrentAuctionBasketRequest struct {
}

QueryCurrentAuctionBasketRequest is the request type for the Query/CurrentAuctionBasket RPC method.

func (*QueryCurrentAuctionBasketRequest) Descriptor

func (*QueryCurrentAuctionBasketRequest) Descriptor() ([]byte, []int)

func (*QueryCurrentAuctionBasketRequest) Marshal

func (m *QueryCurrentAuctionBasketRequest) Marshal() (dAtA []byte, err error)

func (*QueryCurrentAuctionBasketRequest) MarshalTo

func (m *QueryCurrentAuctionBasketRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCurrentAuctionBasketRequest) MarshalToSizedBuffer

func (m *QueryCurrentAuctionBasketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCurrentAuctionBasketRequest) ProtoMessage

func (*QueryCurrentAuctionBasketRequest) ProtoMessage()

func (*QueryCurrentAuctionBasketRequest) Reset

func (*QueryCurrentAuctionBasketRequest) Size

func (m *QueryCurrentAuctionBasketRequest) Size() (n int)

func (*QueryCurrentAuctionBasketRequest) String

func (*QueryCurrentAuctionBasketRequest) Unmarshal

func (m *QueryCurrentAuctionBasketRequest) Unmarshal(dAtA []byte) error

func (*QueryCurrentAuctionBasketRequest) XXX_DiscardUnknown

func (m *QueryCurrentAuctionBasketRequest) XXX_DiscardUnknown()

func (*QueryCurrentAuctionBasketRequest) XXX_Marshal

func (m *QueryCurrentAuctionBasketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCurrentAuctionBasketRequest) XXX_Merge

func (*QueryCurrentAuctionBasketRequest) XXX_Size

func (m *QueryCurrentAuctionBasketRequest) XXX_Size() int

func (*QueryCurrentAuctionBasketRequest) XXX_Unmarshal

func (m *QueryCurrentAuctionBasketRequest) XXX_Unmarshal(b []byte) error

type QueryCurrentAuctionBasketResponse

type QueryCurrentAuctionBasketResponse struct {
	// amount describes the amount put on auction
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	// auctionRound describes current auction round
	AuctionRound uint64 `protobuf:"varint,2,opt,name=auctionRound,proto3" json:"auctionRound,omitempty"`
	// auctionClosingTime describes auction close time for the round
	AuctionClosingTime int64 `protobuf:"varint,3,opt,name=auctionClosingTime,proto3" json:"auctionClosingTime,omitempty"`
	// highestBidder describes highest bidder on current round
	HighestBidder string `protobuf:"bytes,4,opt,name=highestBidder,proto3" json:"highestBidder,omitempty"`
	// highestBidAmount describes highest bid amount on current round
	HighestBidAmount cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=highestBidAmount,proto3,customtype=cosmossdk.io/math.Int" json:"highestBidAmount"`
}

QueryCurrentAuctionBasketResponse is the response type for the Query/CurrentAuctionBasket RPC method.

func (*QueryCurrentAuctionBasketResponse) Descriptor

func (*QueryCurrentAuctionBasketResponse) Descriptor() ([]byte, []int)

func (*QueryCurrentAuctionBasketResponse) GetAmount

func (*QueryCurrentAuctionBasketResponse) GetAuctionClosingTime

func (m *QueryCurrentAuctionBasketResponse) GetAuctionClosingTime() int64

func (*QueryCurrentAuctionBasketResponse) GetAuctionRound added in v1.23.4

func (m *QueryCurrentAuctionBasketResponse) GetAuctionRound() uint64

func (*QueryCurrentAuctionBasketResponse) GetHighestBidder

func (m *QueryCurrentAuctionBasketResponse) GetHighestBidder() string

func (*QueryCurrentAuctionBasketResponse) Marshal

func (m *QueryCurrentAuctionBasketResponse) Marshal() (dAtA []byte, err error)

func (*QueryCurrentAuctionBasketResponse) MarshalTo

func (m *QueryCurrentAuctionBasketResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCurrentAuctionBasketResponse) MarshalToSizedBuffer

func (m *QueryCurrentAuctionBasketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCurrentAuctionBasketResponse) ProtoMessage

func (*QueryCurrentAuctionBasketResponse) ProtoMessage()

func (*QueryCurrentAuctionBasketResponse) Reset

func (*QueryCurrentAuctionBasketResponse) Size

func (m *QueryCurrentAuctionBasketResponse) Size() (n int)

func (*QueryCurrentAuctionBasketResponse) String

func (*QueryCurrentAuctionBasketResponse) Unmarshal

func (m *QueryCurrentAuctionBasketResponse) Unmarshal(dAtA []byte) error

func (*QueryCurrentAuctionBasketResponse) XXX_DiscardUnknown

func (m *QueryCurrentAuctionBasketResponse) XXX_DiscardUnknown()

func (*QueryCurrentAuctionBasketResponse) XXX_Marshal

func (m *QueryCurrentAuctionBasketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCurrentAuctionBasketResponse) XXX_Merge

func (*QueryCurrentAuctionBasketResponse) XXX_Size

func (m *QueryCurrentAuctionBasketResponse) XXX_Size() int

func (*QueryCurrentAuctionBasketResponse) XXX_Unmarshal

func (m *QueryCurrentAuctionBasketResponse) XXX_Unmarshal(b []byte) error

type QueryLastAuctionResultRequest added in v1.51.0

type QueryLastAuctionResultRequest struct {
}

func (*QueryLastAuctionResultRequest) Descriptor added in v1.51.0

func (*QueryLastAuctionResultRequest) Descriptor() ([]byte, []int)

func (*QueryLastAuctionResultRequest) Marshal added in v1.51.0

func (m *QueryLastAuctionResultRequest) Marshal() (dAtA []byte, err error)

func (*QueryLastAuctionResultRequest) MarshalTo added in v1.51.0

func (m *QueryLastAuctionResultRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryLastAuctionResultRequest) MarshalToSizedBuffer added in v1.51.0

func (m *QueryLastAuctionResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryLastAuctionResultRequest) ProtoMessage added in v1.51.0

func (*QueryLastAuctionResultRequest) ProtoMessage()

func (*QueryLastAuctionResultRequest) Reset added in v1.51.0

func (m *QueryLastAuctionResultRequest) Reset()

func (*QueryLastAuctionResultRequest) Size added in v1.51.0

func (m *QueryLastAuctionResultRequest) Size() (n int)

func (*QueryLastAuctionResultRequest) String added in v1.51.0

func (*QueryLastAuctionResultRequest) Unmarshal added in v1.51.0

func (m *QueryLastAuctionResultRequest) Unmarshal(dAtA []byte) error

func (*QueryLastAuctionResultRequest) XXX_DiscardUnknown added in v1.51.0

func (m *QueryLastAuctionResultRequest) XXX_DiscardUnknown()

func (*QueryLastAuctionResultRequest) XXX_Marshal added in v1.51.0

func (m *QueryLastAuctionResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryLastAuctionResultRequest) XXX_Merge added in v1.51.0

func (m *QueryLastAuctionResultRequest) XXX_Merge(src proto.Message)

func (*QueryLastAuctionResultRequest) XXX_Size added in v1.51.0

func (m *QueryLastAuctionResultRequest) XXX_Size() int

func (*QueryLastAuctionResultRequest) XXX_Unmarshal added in v1.51.0

func (m *QueryLastAuctionResultRequest) XXX_Unmarshal(b []byte) error

type QueryLastAuctionResultResponse added in v1.51.0

type QueryLastAuctionResultResponse struct {
	LastAuctionResult *LastAuctionResult `protobuf:"bytes,1,opt,name=last_auction_result,json=lastAuctionResult,proto3" json:"last_auction_result,omitempty"`
}

func (*QueryLastAuctionResultResponse) Descriptor added in v1.51.0

func (*QueryLastAuctionResultResponse) Descriptor() ([]byte, []int)

func (*QueryLastAuctionResultResponse) GetLastAuctionResult added in v1.51.0

func (m *QueryLastAuctionResultResponse) GetLastAuctionResult() *LastAuctionResult

func (*QueryLastAuctionResultResponse) Marshal added in v1.51.0

func (m *QueryLastAuctionResultResponse) Marshal() (dAtA []byte, err error)

func (*QueryLastAuctionResultResponse) MarshalTo added in v1.51.0

func (m *QueryLastAuctionResultResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryLastAuctionResultResponse) MarshalToSizedBuffer added in v1.51.0

func (m *QueryLastAuctionResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryLastAuctionResultResponse) ProtoMessage added in v1.51.0

func (*QueryLastAuctionResultResponse) ProtoMessage()

func (*QueryLastAuctionResultResponse) Reset added in v1.51.0

func (m *QueryLastAuctionResultResponse) Reset()

func (*QueryLastAuctionResultResponse) Size added in v1.51.0

func (m *QueryLastAuctionResultResponse) Size() (n int)

func (*QueryLastAuctionResultResponse) String added in v1.51.0

func (*QueryLastAuctionResultResponse) Unmarshal added in v1.51.0

func (m *QueryLastAuctionResultResponse) Unmarshal(dAtA []byte) error

func (*QueryLastAuctionResultResponse) XXX_DiscardUnknown added in v1.51.0

func (m *QueryLastAuctionResultResponse) XXX_DiscardUnknown()

func (*QueryLastAuctionResultResponse) XXX_Marshal added in v1.51.0

func (m *QueryLastAuctionResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryLastAuctionResultResponse) XXX_Merge added in v1.51.0

func (m *QueryLastAuctionResultResponse) XXX_Merge(src proto.Message)

func (*QueryLastAuctionResultResponse) XXX_Size added in v1.51.0

func (m *QueryLastAuctionResultResponse) XXX_Size() int

func (*QueryLastAuctionResultResponse) XXX_Unmarshal added in v1.51.0

func (m *QueryLastAuctionResultResponse) XXX_Unmarshal(b []byte) error

type QueryModuleStateRequest added in v1.23.4

type QueryModuleStateRequest struct {
}

QueryModuleStateRequest is the request type for the Query/AuctionModuleState RPC method.

func (*QueryModuleStateRequest) Descriptor added in v1.23.4

func (*QueryModuleStateRequest) Descriptor() ([]byte, []int)

func (*QueryModuleStateRequest) Marshal added in v1.23.4

func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error)

func (*QueryModuleStateRequest) MarshalTo added in v1.23.4

func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryModuleStateRequest) MarshalToSizedBuffer added in v1.23.4

func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryModuleStateRequest) ProtoMessage added in v1.23.4

func (*QueryModuleStateRequest) ProtoMessage()

func (*QueryModuleStateRequest) Reset added in v1.23.4

func (m *QueryModuleStateRequest) Reset()

func (*QueryModuleStateRequest) Size added in v1.23.4

func (m *QueryModuleStateRequest) Size() (n int)

func (*QueryModuleStateRequest) String added in v1.23.4

func (m *QueryModuleStateRequest) String() string

func (*QueryModuleStateRequest) Unmarshal added in v1.23.4

func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error

func (*QueryModuleStateRequest) XXX_DiscardUnknown added in v1.23.4

func (m *QueryModuleStateRequest) XXX_DiscardUnknown()

func (*QueryModuleStateRequest) XXX_Marshal added in v1.23.4

func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryModuleStateRequest) XXX_Merge added in v1.23.4

func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message)

func (*QueryModuleStateRequest) XXX_Size added in v1.23.4

func (m *QueryModuleStateRequest) XXX_Size() int

func (*QueryModuleStateRequest) XXX_Unmarshal added in v1.23.4

func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error

type QueryModuleStateResponse added in v1.23.4

type QueryModuleStateResponse struct {
	State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}

QueryModuleStateResponse is the response type for the Query/AuctionModuleState RPC method.

func (*QueryModuleStateResponse) Descriptor added in v1.23.4

func (*QueryModuleStateResponse) Descriptor() ([]byte, []int)

func (*QueryModuleStateResponse) GetState added in v1.23.4

func (m *QueryModuleStateResponse) GetState() *GenesisState

func (*QueryModuleStateResponse) Marshal added in v1.23.4

func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error)

func (*QueryModuleStateResponse) MarshalTo added in v1.23.4

func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryModuleStateResponse) MarshalToSizedBuffer added in v1.23.4

func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryModuleStateResponse) ProtoMessage added in v1.23.4

func (*QueryModuleStateResponse) ProtoMessage()

func (*QueryModuleStateResponse) Reset added in v1.23.4

func (m *QueryModuleStateResponse) Reset()

func (*QueryModuleStateResponse) Size added in v1.23.4

func (m *QueryModuleStateResponse) Size() (n int)

func (*QueryModuleStateResponse) String added in v1.23.4

func (m *QueryModuleStateResponse) String() string

func (*QueryModuleStateResponse) Unmarshal added in v1.23.4

func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error

func (*QueryModuleStateResponse) XXX_DiscardUnknown added in v1.23.4

func (m *QueryModuleStateResponse) XXX_DiscardUnknown()

func (*QueryModuleStateResponse) XXX_Marshal added in v1.23.4

func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryModuleStateResponse) XXX_Merge added in v1.23.4

func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message)

func (*QueryModuleStateResponse) XXX_Size added in v1.23.4

func (m *QueryModuleStateResponse) XXX_Size() int

func (*QueryModuleStateResponse) XXX_Unmarshal added in v1.23.4

func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Retrieves auction params
	AuctionParams(context.Context, *QueryAuctionParamsRequest) (*QueryAuctionParamsResponse, error)
	// Retrieves current auction basket with current highest bid and bidder
	CurrentAuctionBasket(context.Context, *QueryCurrentAuctionBasketRequest) (*QueryCurrentAuctionBasketResponse, error)
	// Retrieves the entire auction module's state
	AuctionModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error)
	LastAuctionResult(context.Context, *QueryLastAuctionResultRequest) (*QueryLastAuctionResultResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Bid

func (*UnimplementedMsgServer) UpdateParams added in v1.47.1

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AuctionModuleState added in v1.23.4

func (*UnimplementedQueryServer) AuctionParams

func (*UnimplementedQueryServer) LastAuctionResult added in v1.51.0

type ValueValidatorFn

type ValueValidatorFn func(value interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL