types

package
v7.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeBid = "bid"

	AttributeKeyBidID           = "bid_id"
	AttributeKeyAuctionID       = "auction_id"
	AttributeKeyBidder          = "max_bid"
	AttributeKeyMinimumAmount   = "minimum_amount"
	AttributeKeyFulfilledPrice  = "fulfilled_price_of_sale_token_in_usomm"
	AttributeKeyTotalPayment    = "total_payment_in_usomm"
	AttributeKeyFulfilledAmount = "total_sale_token_fulfilled_amount"

	EventTypeNewAuction = "new_auction"

	AttributeKeyStartBlock            = "start_block"
	AttributeKeyInitialDecreaseRate   = "initial_decrease_rate"
	AttributeKeyBlockDecreaseInterval = "block_decrease_interval"
	AttributeKeyStartingAmount        = "starting_amount_of_sale_token"
	AttributeKeyStartingDenom         = "starting_denom"
	AttributeKeyStartingUsommPrice    = "starting_price_in_usomm"

	EventTypeAuctionFinished = "auction_finished"

	AttributeKeyEndBlock            = "end_block"
	AttributeKeyCurrentDecreaseRate = "current_decrease_rate"
	AttributeKeyAmountRemaining     = "amount_remaining"

	EventTypeAuctionUpdated = "auction_updated"
	AttributeKeyLastPrice   = "last_price"
	AttributeKeyNewPrice    = "new_price"

	AttributeValueCategory = ModuleName
)

Auction module event types

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "auction"

	// StoreKey is the store key string for auction
	StoreKey = ModuleName

	// RouterKey is the message route for auction
	RouterKey = ModuleName

	// QuerierRoute is the querier route for auction
	QuerierRoute = ModuleName
)
View Source
const (

	// <prefix><auction_id>
	ActiveAuctionsPrefix

	// <prefix><auction_id>
	EndedAuctionsPrefix

	// <prefix><auction_id><bid_id>
	BidsByAuctionPrefix

	// <prefix><denom>
	TokenPricesPrefix

	// <prefix>
	LastAuctionIDKey

	// <prefix>
	LastBidIDKey
)

Keys for auction store, with <prefix><key> -> <value>

View Source
const DefaultParamspace = ModuleName
View Source
const (
	ProposalTypeSetTokenPrices = "SetTokenPrices"
)
View Source
const (
	TypeMsgSubmitBidRequest = "submit_bid"
)

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 (
	ErrCouldNotFindSaleTokenPrice                               = errorsmod.Register(ModuleName, 2, "could not find sale token price, need to resubmit token prices and try again")
	ErrCouldNotFindSommTokenPrice                               = errorsmod.Register(ModuleName, 3, "could not find usomm token price, need to resubmit token prices and try again")
	ErrLastSaleTokenPriceTooOld                                 = errorsmod.Register(ModuleName, 4, "last sale token price update too long ago, need to resubmit token prices and try again")
	ErrLastSommTokenPriceTooOld                                 = errorsmod.Register(ModuleName, 5, "last usomm token price update too long ago, need to resubmit token prices and try again")
	ErrAuctionStartingAmountMustBePositve                       = errorsmod.Register(ModuleName, 6, "minimum auction sale token starting amount must be a positive amount of coins")
	ErrCannotAuctionUsomm                                       = errorsmod.Register(ModuleName, 7, "auctioning usomm for usomm is pointless")
	ErrInvalidInitialDecreaseRate                               = errorsmod.Register(ModuleName, 8, "initial price decrease rate must be a float less than one and greater than zero")
	ErrInvalidBlockDecreaseInterval                             = errorsmod.Register(ModuleName, 9, "price decrease block interval cannot be 0")
	ErrUnauthorizedFundingModule                                = errorsmod.Register(ModuleName, 10, "unauthorized funding module account")
	ErrUnauthorizedProceedsModule                               = errorsmod.Register(ModuleName, 11, "unauthorized proceeds module account")
	ErrCannotStartTwoAuctionsForSameDenomSimultaneously         = errorsmod.Register(ModuleName, 12, "auction for this denom is currently ongoing, cannot create another auction for the same denom until completed")
	ErrConvertingStringToDec                                    = errorsmod.Register(ModuleName, 13, "could not convert string to dec")
	ErrAuctionNotFound                                          = errorsmod.Register(ModuleName, 14, "auction not found")
	ErrBidAuctionDenomMismatch                                  = errorsmod.Register(ModuleName, 15, "auction denom different from bid requested denom")
	ErrAuctionEnded                                             = errorsmod.Register(ModuleName, 16, "auction ended")
	ErrInsufficientBid                                          = errorsmod.Register(ModuleName, 17, "max bid amount is too small to purchase minimum sale tokens requested")
	ErrMinimumPurchaseAmountLargerThanTokensRemaining           = errorsmod.Register(ModuleName, 18, "minimum purchase amount is larger then the number of tokens remaining for sale")
	ErrAuctionIDMustBeNonZero                                   = errorsmod.Register(ModuleName, 19, "auction IDs must be non-zero")
	ErrInvalidStartBlock                                        = errorsmod.Register(ModuleName, 20, "start block cannot be 0")
	ErrInvalidCurrentDecreaseRate                               = errorsmod.Register(ModuleName, 21, "current price decrease rate must be a float less than one and greater than zero")
	ErrPriceMustBePositive                                      = errorsmod.Register(ModuleName, 22, "price must be positive")
	ErrDenomCannotBeEmpty                                       = errorsmod.Register(ModuleName, 23, "denom cannot be empty")
	ErrInvalidLastUpdatedBlock                                  = errorsmod.Register(ModuleName, 24, "last updated block cannot be 0")
	ErrBidIDMustBeNonZero                                       = errorsmod.Register(ModuleName, 25, "bid ID must be non-zero")
	ErrBidAmountMustBePositive                                  = errorsmod.Register(ModuleName, 26, "bid amount must be positive")
	ErrBidMustBeInUsomm                                         = errorsmod.Register(ModuleName, 27, "bid must be in usomm")
	ErrInvalidTokenBeingBidOn                                   = errorsmod.Register(ModuleName, 28, "tokens being bid on must have the gravity prefix")
	ErrMinimumAmountMustBePositive                              = errorsmod.Register(ModuleName, 29, "minimum amount to purchase with bid must be positive")
	ErrAddressExpected                                          = errorsmod.Register(ModuleName, 30, "address cannot be empty")
	ErrBidUnitPriceInUsommMustBePositive                        = errorsmod.Register(ModuleName, 31, "unit price of sale tokens in usomm must be positive")
	ErrInvalidTokenPriceDenom                                   = errorsmod.Register(ModuleName, 32, "token price denoms must be either usomm or addresses prefixed with 'gravity'")
	ErrTokenPriceProposalAttemptsToUpdateTokenPriceMoreThanOnce = errorsmod.Register(ModuleName, 33, "token price proposals should not attempt to update the same denom's price more than once per proposal")
	ErrTokenPriceMaxBlockAgeMustBePositive                      = errorsmod.Register(ModuleName, 34, "price max block age must be positive")
	ErrInvalidPriceMaxBlockAgeParameterType                     = errorsmod.Register(ModuleName, 35, "price max block age type must be uint64")
	ErrTokenPriceProposalMustHaveAtLeastOnePrice                = errorsmod.Register(ModuleName, 36, "list of proposed token prices must be non-zero")
	ErrBidFulfilledSaleTokenAmountMustBeNonNegative             = errorsmod.Register(ModuleName, 37, "total sale token fulfilled amount must be non-negative")
	ErrBidPaymentCannotBeNegative                               = errorsmod.Register(ModuleName, 38, "total amount paid in usomm cannot be negative")
	ErrBidAmountIsTooSmall                                      = errorsmod.Register(ModuleName, 39, "bid is below minimum amount")
	ErrMinimumBidParam                                          = errorsmod.Register(ModuleName, 40, "invalid minimum bid param")
	ErrInvalidAuctionMaxBlockAgeParam                           = errorsmod.Register(ModuleName, 41, "invalid auction max block age param")
	ErrInvalidAuctionPriceDecreaseAccelerationRateParam         = errorsmod.Register(ModuleName, 42, "invalid auction price decrease acceleration rate param")
	ErrTokenPriceExponentTooHigh                                = errorsmod.Register(ModuleName, 43, "token price exponent too high, maximum precision of 18")
	ErrInvalidMinimumSaleTokensUSDValue                         = errorsmod.Register(ModuleName, 44, "invalid minimum sale tokens USD value")
	ErrAuctionBelowMinimumUSDValue                              = errorsmod.Register(ModuleName, 45, "auction USD value below minimum")
	ErrInvalidMinimumAuctionHeightParam                         = errorsmod.Register(ModuleName, 46, "invalid minimum auction height param")
	ErrAuctionBelowMinimumHeight                                = errorsmod.Register(ModuleName, 47, "auction block height below minimum")
)

x/auction module sentinel errors

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 (
	KeyPriceMaxBlockAge                     = []byte("PriceMaxBlockAge")
	KeyMinimumBidInUsomm                    = []byte("MinimumBidInUsomm")
	KeyMinimumSaleTokensUSDValue            = []byte("MinimumSaleTokensUSDValue")
	KeyAuctionMaxBlockAge                   = []byte("AuctionMaxBlockAge")
	KeyAuctionPriceDecreaseAccelerationRate = []byte("AuctionPriceDecreaseAccelerationRate")
	KeyMinimumAuctionHeight                 = []byte("MinimumAuctionHeight")
)

Parameter keys

View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
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/bank 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/staking and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetActiveAuctionKey

func GetActiveAuctionKey(id uint32) []byte

GetActiveAuctionKey returns the key for an active auction

func GetActiveAuctionsPrefix

func GetActiveAuctionsPrefix() []byte

GetActiveAuctionsPrefix returns the key prefix for active auctions

func GetBidKey

func GetBidKey(auctionID uint32, bidID uint64) []byte

GetBidKey returns the bid for an auction and bid id

func GetBidsByAuctionIDPrefix

func GetBidsByAuctionIDPrefix(auctionID uint32) []byte

GetBidsByAuctionIDPrefix returns the bids for an auction id

func GetBidsByAuctionPrefix

func GetBidsByAuctionPrefix() []byte

GetBidsByAuctionPrefix returns the key prefix for bids

func GetEndedAuctionKey

func GetEndedAuctionKey(id uint32) []byte

GetEndedAuctionsKey returns the key for an ended auction

func GetEndedAuctionsPrefix

func GetEndedAuctionsPrefix() []byte

GetEndedAuctionsPrefix returns the key prefix for ended auctions

func GetLastAuctionIDKey

func GetLastAuctionIDKey() []byte

GetLastAuctionIDKey returns the key prefix for the last stored auction id

func GetLastBidIDKey

func GetLastBidIDKey() []byte

GetLastBidIDKey returns the key prefix for the last stored bid id

func GetTokenPriceKey

func GetTokenPriceKey(denom string) []byte

GetTokenPriceKey returns the key for a token price

func GetTokenPricesPrefix

func GetTokenPricesPrefix() []byte

GetTokenPricesPrefix returns the key prefix for token prices

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the oracle proto files

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the vesting 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 RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
}

Updates here should also be reflected in the testutil's expected keeper mocks, and can be generated via: mockgen -source={ABS_REPO_PATH}/peggyJV/sommelier/x/auction/types/expected_keepers.go -destination={ABS_REPO_PATH}/peggyJV/sommelier/x/auction/testutil/expected_keepers_mocks.go

type Auction

type Auction struct {
	Id                         uint32                                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	StartingTokensForSale      types.Coin                             `protobuf:"bytes,2,opt,name=starting_tokens_for_sale,json=startingTokensForSale,proto3" json:"starting_tokens_for_sale"`
	StartBlock                 uint64                                 `protobuf:"varint,3,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
	EndBlock                   uint64                                 `protobuf:"varint,4,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
	InitialPriceDecreaseRate   github_com_cosmos_cosmos_sdk_types.Dec `` /* 177-byte string literal not displayed */
	CurrentPriceDecreaseRate   github_com_cosmos_cosmos_sdk_types.Dec `` /* 177-byte string literal not displayed */
	PriceDecreaseBlockInterval uint64                                 `` /* 144-byte string literal not displayed */
	InitialUnitPriceInUsomm    github_com_cosmos_cosmos_sdk_types.Dec `` /* 176-byte string literal not displayed */
	CurrentUnitPriceInUsomm    github_com_cosmos_cosmos_sdk_types.Dec `` /* 176-byte string literal not displayed */
	RemainingTokensForSale     types.Coin                             `protobuf:"bytes,10,opt,name=remaining_tokens_for_sale,json=remainingTokensForSale,proto3" json:"remaining_tokens_for_sale"`
	FundingModuleAccount       string                                 `protobuf:"bytes,11,opt,name=funding_module_account,json=fundingModuleAccount,proto3" json:"funding_module_account,omitempty"`
	ProceedsModuleAccount      string                                 `` /* 127-byte string literal not displayed */
}

func (*Auction) Descriptor

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

func (*Auction) GetEndBlock

func (m *Auction) GetEndBlock() uint64

func (*Auction) GetFundingModuleAccount

func (m *Auction) GetFundingModuleAccount() string

func (*Auction) GetId

func (m *Auction) GetId() uint32

func (*Auction) GetPriceDecreaseBlockInterval

func (m *Auction) GetPriceDecreaseBlockInterval() uint64

func (*Auction) GetProceedsModuleAccount

func (m *Auction) GetProceedsModuleAccount() string

func (*Auction) GetRemainingTokensForSale

func (m *Auction) GetRemainingTokensForSale() types.Coin

func (*Auction) GetStartBlock

func (m *Auction) GetStartBlock() uint64

func (*Auction) GetStartingTokensForSale

func (m *Auction) GetStartingTokensForSale() types.Coin

func (*Auction) Marshal

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

func (*Auction) MarshalTo

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

func (*Auction) MarshalToSizedBuffer

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

func (*Auction) ProtoMessage

func (*Auction) ProtoMessage()

func (*Auction) Reset

func (m *Auction) Reset()

func (*Auction) Size

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

func (*Auction) String

func (m *Auction) String() string

func (*Auction) Unmarshal

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

func (*Auction) ValidateBasic

func (a *Auction) ValidateBasic() error

func (*Auction) XXX_DiscardUnknown

func (m *Auction) XXX_DiscardUnknown()

func (*Auction) XXX_Marshal

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

func (*Auction) XXX_Merge

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

func (*Auction) XXX_Size

func (m *Auction) XXX_Size() int

func (*Auction) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
}

type Bid

type Bid struct {
	Id                        uint64                                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	AuctionId                 uint32                                 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	Bidder                    string                                 `protobuf:"bytes,3,opt,name=bidder,proto3" json:"bidder,omitempty"`
	MaxBidInUsomm             types.Coin                             `protobuf:"bytes,4,opt,name=max_bid_in_usomm,json=maxBidInUsomm,proto3" json:"max_bid_in_usomm"`
	SaleTokenMinimumAmount    types.Coin                             `protobuf:"bytes,5,opt,name=sale_token_minimum_amount,json=saleTokenMinimumAmount,proto3" json:"sale_token_minimum_amount"`
	TotalFulfilledSaleTokens  types.Coin                             `` /* 127-byte string literal not displayed */
	SaleTokenUnitPriceInUsomm github_com_cosmos_cosmos_sdk_types.Dec `` /* 184-byte string literal not displayed */
	TotalUsommPaid            types.Coin                             `protobuf:"bytes,8,opt,name=total_usomm_paid,json=totalUsommPaid,proto3" json:"total_usomm_paid"`
	BlockHeight               uint64                                 `protobuf:"varint,9,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
}

func (*Bid) Descriptor

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

func (*Bid) GetAuctionId

func (m *Bid) GetAuctionId() uint32

func (*Bid) GetBidder

func (m *Bid) GetBidder() string

func (*Bid) GetBlockHeight

func (m *Bid) GetBlockHeight() uint64

func (*Bid) GetId

func (m *Bid) GetId() uint64

func (*Bid) GetMaxBidInUsomm

func (m *Bid) GetMaxBidInUsomm() types.Coin

func (*Bid) GetSaleTokenMinimumAmount

func (m *Bid) GetSaleTokenMinimumAmount() types.Coin

func (*Bid) GetTotalFulfilledSaleTokens

func (m *Bid) GetTotalFulfilledSaleTokens() types.Coin

func (*Bid) GetTotalUsommPaid

func (m *Bid) GetTotalUsommPaid() types.Coin

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) ValidateBasic

func (b *Bid) ValidateBasic() 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 GenesisState

type GenesisState struct {
	Params        Params        `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Auctions      []*Auction    `protobuf:"bytes,2,rep,name=auctions,proto3" json:"auctions,omitempty"`
	Bids          []*Bid        `protobuf:"bytes,3,rep,name=bids,proto3" json:"bids,omitempty"`
	TokenPrices   []*TokenPrice `protobuf:"bytes,4,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"`
	LastAuctionId uint32        `protobuf:"varint,5,opt,name=last_auction_id,json=lastAuctionId,proto3" json:"last_auction_id,omitempty"`
	LastBidId     uint64        `protobuf:"varint,6,opt,name=last_bid_id,json=lastBidId,proto3" json:"last_bid_id,omitempty"`
}

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState get raw genesis raw message for testing

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAuctions

func (m *GenesisState) GetAuctions() []*Auction

func (*GenesisState) GetBids

func (m *GenesisState) GetBids() []*Bid

func (*GenesisState) GetLastAuctionId

func (m *GenesisState) GetLastAuctionId() uint32

func (*GenesisState) GetLastBidId

func (m *GenesisState) GetLastBidId() uint64

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetTokenPrices

func (m *GenesisState) GetTokenPrices() []*TokenPrice

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

Validate performs a basic stateless validation of the genesis fields.

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 MsgClient

type MsgClient interface {
	SubmitBid(ctx context.Context, in *MsgSubmitBidRequest, opts ...grpc.CallOption) (*MsgSubmitBidResponse, 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 {
	SubmitBid(context.Context, *MsgSubmitBidRequest) (*MsgSubmitBidResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitBidRequest

type MsgSubmitBidRequest struct {
	AuctionId              uint32     `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	Signer                 string     `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
	MaxBidInUsomm          types.Coin `protobuf:"bytes,3,opt,name=max_bid_in_usomm,json=maxBidInUsomm,proto3" json:"max_bid_in_usomm"`
	SaleTokenMinimumAmount types.Coin `protobuf:"bytes,4,opt,name=sale_token_minimum_amount,json=saleTokenMinimumAmount,proto3" json:"sale_token_minimum_amount"`
}

func NewMsgSubmitBidRequest

func NewMsgSubmitBidRequest(auctionID uint32, maxBidInUsomm sdk.Coin, saleTokenMinimumAmount sdk.Coin, signer sdk.AccAddress) (*MsgSubmitBidRequest, error)

NewMsgSubmitBidRequest return a new MsgSubmitBidRequest

func (*MsgSubmitBidRequest) Descriptor

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

func (*MsgSubmitBidRequest) GetAuctionId

func (m *MsgSubmitBidRequest) GetAuctionId() uint32

func (*MsgSubmitBidRequest) GetMaxBidInUsomm

func (m *MsgSubmitBidRequest) GetMaxBidInUsomm() types.Coin

func (*MsgSubmitBidRequest) GetSaleTokenMinimumAmount

func (m *MsgSubmitBidRequest) GetSaleTokenMinimumAmount() types.Coin

func (*MsgSubmitBidRequest) GetSignBytes

func (m *MsgSubmitBidRequest) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgSubmitBidRequest) GetSigner

func (m *MsgSubmitBidRequest) GetSigner() string

func (*MsgSubmitBidRequest) GetSigners

func (m *MsgSubmitBidRequest) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgSubmitBidRequest) Marshal

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

func (*MsgSubmitBidRequest) MarshalTo

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

func (*MsgSubmitBidRequest) MarshalToSizedBuffer

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

func (*MsgSubmitBidRequest) MustGetSigner

func (m *MsgSubmitBidRequest) MustGetSigner() sdk.AccAddress

MustGetSigner returns the signer address (which is also the bidder)

func (*MsgSubmitBidRequest) ProtoMessage

func (*MsgSubmitBidRequest) ProtoMessage()

func (*MsgSubmitBidRequest) Reset

func (m *MsgSubmitBidRequest) Reset()

func (*MsgSubmitBidRequest) Route

func (m *MsgSubmitBidRequest) Route() string

Route implements sdk.Msg

func (*MsgSubmitBidRequest) Size

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

func (*MsgSubmitBidRequest) String

func (m *MsgSubmitBidRequest) String() string

func (*MsgSubmitBidRequest) Type

func (m *MsgSubmitBidRequest) Type() string

Type implements sdk.Msg

func (*MsgSubmitBidRequest) Unmarshal

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

func (*MsgSubmitBidRequest) ValidateBasic

func (m *MsgSubmitBidRequest) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgSubmitBidRequest) XXX_DiscardUnknown

func (m *MsgSubmitBidRequest) XXX_DiscardUnknown()

func (*MsgSubmitBidRequest) XXX_Marshal

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

func (*MsgSubmitBidRequest) XXX_Merge

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

func (*MsgSubmitBidRequest) XXX_Size

func (m *MsgSubmitBidRequest) XXX_Size() int

func (*MsgSubmitBidRequest) XXX_Unmarshal

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

type MsgSubmitBidResponse

type MsgSubmitBidResponse struct {
	Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"`
}

func (*MsgSubmitBidResponse) Descriptor

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

func (*MsgSubmitBidResponse) GetBid

func (m *MsgSubmitBidResponse) GetBid() *Bid

func (*MsgSubmitBidResponse) Marshal

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

func (*MsgSubmitBidResponse) MarshalTo

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

func (*MsgSubmitBidResponse) MarshalToSizedBuffer

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

func (*MsgSubmitBidResponse) ProtoMessage

func (*MsgSubmitBidResponse) ProtoMessage()

func (*MsgSubmitBidResponse) Reset

func (m *MsgSubmitBidResponse) Reset()

func (*MsgSubmitBidResponse) Size

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

func (*MsgSubmitBidResponse) String

func (m *MsgSubmitBidResponse) String() string

func (*MsgSubmitBidResponse) Unmarshal

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

func (*MsgSubmitBidResponse) XXX_DiscardUnknown

func (m *MsgSubmitBidResponse) XXX_DiscardUnknown()

func (*MsgSubmitBidResponse) XXX_Marshal

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

func (*MsgSubmitBidResponse) XXX_Merge

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

func (*MsgSubmitBidResponse) XXX_Size

func (m *MsgSubmitBidResponse) XXX_Size() int

func (*MsgSubmitBidResponse) XXX_Unmarshal

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

type Params

type Params struct {
	PriceMaxBlockAge                     uint64                                 `protobuf:"varint,1,opt,name=price_max_block_age,json=priceMaxBlockAge,proto3" json:"price_max_block_age,omitempty"`
	MinimumBidInUsomm                    uint64                                 `protobuf:"varint,2,opt,name=minimum_bid_in_usomm,json=minimumBidInUsomm,proto3" json:"minimum_bid_in_usomm,omitempty"`
	MinimumSaleTokensUsdValue            github_com_cosmos_cosmos_sdk_types.Dec `` /* 182-byte string literal not displayed */
	AuctionMaxBlockAge                   uint64                                 `protobuf:"varint,4,opt,name=auction_max_block_age,json=auctionMaxBlockAge,proto3" json:"auction_max_block_age,omitempty"`
	AuctionPriceDecreaseAccelerationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 215-byte string literal not displayed */
	MinimumAuctionHeight                 uint64                                 `protobuf:"varint,6,opt,name=minimum_auction_height,json=minimumAuctionHeight,proto3" json:"minimum_auction_height,omitempty"`
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns default auction parameters

func (*Params) Descriptor

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

func (*Params) GetAuctionMaxBlockAge

func (m *Params) GetAuctionMaxBlockAge() uint64

func (*Params) GetMinimumAuctionHeight

func (m *Params) GetMinimumAuctionHeight() uint64

func (*Params) GetMinimumBidInUsomm

func (m *Params) GetMinimumBidInUsomm() uint64

func (*Params) GetPriceMaxBlockAge

func (m *Params) GetPriceMaxBlockAge() uint64

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) ValidateBasic

func (p *Params) ValidateBasic() error

ValidateBasic 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 ProposedTokenPrice

type ProposedTokenPrice struct {
	Denom    string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Exponent uint64                                 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"`
	UsdPrice github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=usd_price,json=usdPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"usd_price"`
}

func (*ProposedTokenPrice) Descriptor

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

func (*ProposedTokenPrice) GetDenom

func (m *ProposedTokenPrice) GetDenom() string

func (*ProposedTokenPrice) GetExponent

func (m *ProposedTokenPrice) GetExponent() uint64

func (*ProposedTokenPrice) Marshal

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

func (*ProposedTokenPrice) MarshalTo

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

func (*ProposedTokenPrice) MarshalToSizedBuffer

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

func (*ProposedTokenPrice) ProtoMessage

func (*ProposedTokenPrice) ProtoMessage()

func (*ProposedTokenPrice) Reset

func (m *ProposedTokenPrice) Reset()

func (*ProposedTokenPrice) Size

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

func (*ProposedTokenPrice) String

func (m *ProposedTokenPrice) String() string

func (*ProposedTokenPrice) Unmarshal

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

func (*ProposedTokenPrice) ValidateBasic

func (t *ProposedTokenPrice) ValidateBasic() error

func (*ProposedTokenPrice) XXX_DiscardUnknown

func (m *ProposedTokenPrice) XXX_DiscardUnknown()

func (*ProposedTokenPrice) XXX_Marshal

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

func (*ProposedTokenPrice) XXX_Merge

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

func (*ProposedTokenPrice) XXX_Size

func (m *ProposedTokenPrice) XXX_Size() int

func (*ProposedTokenPrice) XXX_Unmarshal

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

type QueryActiveAuctionRequest

type QueryActiveAuctionRequest struct {
	AuctionId uint32 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

func (*QueryActiveAuctionRequest) Descriptor

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

func (*QueryActiveAuctionRequest) GetAuctionId

func (m *QueryActiveAuctionRequest) GetAuctionId() uint32

func (*QueryActiveAuctionRequest) Marshal

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

func (*QueryActiveAuctionRequest) MarshalTo

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

func (*QueryActiveAuctionRequest) MarshalToSizedBuffer

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

func (*QueryActiveAuctionRequest) ProtoMessage

func (*QueryActiveAuctionRequest) ProtoMessage()

func (*QueryActiveAuctionRequest) Reset

func (m *QueryActiveAuctionRequest) Reset()

func (*QueryActiveAuctionRequest) Size

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

func (*QueryActiveAuctionRequest) String

func (m *QueryActiveAuctionRequest) String() string

func (*QueryActiveAuctionRequest) Unmarshal

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

func (*QueryActiveAuctionRequest) XXX_DiscardUnknown

func (m *QueryActiveAuctionRequest) XXX_DiscardUnknown()

func (*QueryActiveAuctionRequest) XXX_Marshal

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

func (*QueryActiveAuctionRequest) XXX_Merge

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

func (*QueryActiveAuctionRequest) XXX_Size

func (m *QueryActiveAuctionRequest) XXX_Size() int

func (*QueryActiveAuctionRequest) XXX_Unmarshal

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

type QueryActiveAuctionResponse

type QueryActiveAuctionResponse struct {
	Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
}

func (*QueryActiveAuctionResponse) Descriptor

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

func (*QueryActiveAuctionResponse) GetAuction

func (m *QueryActiveAuctionResponse) GetAuction() *Auction

func (*QueryActiveAuctionResponse) Marshal

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

func (*QueryActiveAuctionResponse) MarshalTo

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

func (*QueryActiveAuctionResponse) MarshalToSizedBuffer

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

func (*QueryActiveAuctionResponse) ProtoMessage

func (*QueryActiveAuctionResponse) ProtoMessage()

func (*QueryActiveAuctionResponse) Reset

func (m *QueryActiveAuctionResponse) Reset()

func (*QueryActiveAuctionResponse) Size

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

func (*QueryActiveAuctionResponse) String

func (m *QueryActiveAuctionResponse) String() string

func (*QueryActiveAuctionResponse) Unmarshal

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

func (*QueryActiveAuctionResponse) XXX_DiscardUnknown

func (m *QueryActiveAuctionResponse) XXX_DiscardUnknown()

func (*QueryActiveAuctionResponse) XXX_Marshal

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

func (*QueryActiveAuctionResponse) XXX_Merge

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

func (*QueryActiveAuctionResponse) XXX_Size

func (m *QueryActiveAuctionResponse) XXX_Size() int

func (*QueryActiveAuctionResponse) XXX_Unmarshal

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

type QueryActiveAuctionsRequest

type QueryActiveAuctionsRequest struct {
}

func (*QueryActiveAuctionsRequest) Descriptor

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

func (*QueryActiveAuctionsRequest) Marshal

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

func (*QueryActiveAuctionsRequest) MarshalTo

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

func (*QueryActiveAuctionsRequest) MarshalToSizedBuffer

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

func (*QueryActiveAuctionsRequest) ProtoMessage

func (*QueryActiveAuctionsRequest) ProtoMessage()

func (*QueryActiveAuctionsRequest) Reset

func (m *QueryActiveAuctionsRequest) Reset()

func (*QueryActiveAuctionsRequest) Size

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

func (*QueryActiveAuctionsRequest) String

func (m *QueryActiveAuctionsRequest) String() string

func (*QueryActiveAuctionsRequest) Unmarshal

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

func (*QueryActiveAuctionsRequest) XXX_DiscardUnknown

func (m *QueryActiveAuctionsRequest) XXX_DiscardUnknown()

func (*QueryActiveAuctionsRequest) XXX_Marshal

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

func (*QueryActiveAuctionsRequest) XXX_Merge

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

func (*QueryActiveAuctionsRequest) XXX_Size

func (m *QueryActiveAuctionsRequest) XXX_Size() int

func (*QueryActiveAuctionsRequest) XXX_Unmarshal

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

type QueryActiveAuctionsResponse

type QueryActiveAuctionsResponse struct {
	Auctions []*Auction `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions,omitempty"`
}

func (*QueryActiveAuctionsResponse) Descriptor

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

func (*QueryActiveAuctionsResponse) GetAuctions

func (m *QueryActiveAuctionsResponse) GetAuctions() []*Auction

func (*QueryActiveAuctionsResponse) Marshal

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

func (*QueryActiveAuctionsResponse) MarshalTo

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

func (*QueryActiveAuctionsResponse) MarshalToSizedBuffer

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

func (*QueryActiveAuctionsResponse) ProtoMessage

func (*QueryActiveAuctionsResponse) ProtoMessage()

func (*QueryActiveAuctionsResponse) Reset

func (m *QueryActiveAuctionsResponse) Reset()

func (*QueryActiveAuctionsResponse) Size

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

func (*QueryActiveAuctionsResponse) String

func (m *QueryActiveAuctionsResponse) String() string

func (*QueryActiveAuctionsResponse) Unmarshal

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

func (*QueryActiveAuctionsResponse) XXX_DiscardUnknown

func (m *QueryActiveAuctionsResponse) XXX_DiscardUnknown()

func (*QueryActiveAuctionsResponse) XXX_Marshal

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

func (*QueryActiveAuctionsResponse) XXX_Merge

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

func (*QueryActiveAuctionsResponse) XXX_Size

func (m *QueryActiveAuctionsResponse) XXX_Size() int

func (*QueryActiveAuctionsResponse) XXX_Unmarshal

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

type QueryBidRequest

type QueryBidRequest struct {
	BidId     uint64 `protobuf:"varint,1,opt,name=bid_id,json=bidId,proto3" json:"bid_id,omitempty"`
	AuctionId uint32 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

func (*QueryBidRequest) Descriptor

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

func (*QueryBidRequest) GetAuctionId

func (m *QueryBidRequest) GetAuctionId() uint32

func (*QueryBidRequest) GetBidId

func (m *QueryBidRequest) GetBidId() uint64

func (*QueryBidRequest) Marshal

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

func (*QueryBidRequest) MarshalTo

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

func (*QueryBidRequest) MarshalToSizedBuffer

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

func (*QueryBidRequest) ProtoMessage

func (*QueryBidRequest) ProtoMessage()

func (*QueryBidRequest) Reset

func (m *QueryBidRequest) Reset()

func (*QueryBidRequest) Size

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

func (*QueryBidRequest) String

func (m *QueryBidRequest) String() string

func (*QueryBidRequest) Unmarshal

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

func (*QueryBidRequest) XXX_DiscardUnknown

func (m *QueryBidRequest) XXX_DiscardUnknown()

func (*QueryBidRequest) XXX_Marshal

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

func (*QueryBidRequest) XXX_Merge

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

func (*QueryBidRequest) XXX_Size

func (m *QueryBidRequest) XXX_Size() int

func (*QueryBidRequest) XXX_Unmarshal

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

type QueryBidResponse

type QueryBidResponse struct {
	Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"`
}

func (*QueryBidResponse) Descriptor

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

func (*QueryBidResponse) GetBid

func (m *QueryBidResponse) GetBid() *Bid

func (*QueryBidResponse) Marshal

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

func (*QueryBidResponse) MarshalTo

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

func (*QueryBidResponse) MarshalToSizedBuffer

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

func (*QueryBidResponse) ProtoMessage

func (*QueryBidResponse) ProtoMessage()

func (*QueryBidResponse) Reset

func (m *QueryBidResponse) Reset()

func (*QueryBidResponse) Size

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

func (*QueryBidResponse) String

func (m *QueryBidResponse) String() string

func (*QueryBidResponse) Unmarshal

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

func (*QueryBidResponse) XXX_DiscardUnknown

func (m *QueryBidResponse) XXX_DiscardUnknown()

func (*QueryBidResponse) XXX_Marshal

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

func (*QueryBidResponse) XXX_Merge

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

func (*QueryBidResponse) XXX_Size

func (m *QueryBidResponse) XXX_Size() int

func (*QueryBidResponse) XXX_Unmarshal

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

type QueryBidsByAuctionRequest

type QueryBidsByAuctionRequest struct {
	AuctionId  uint32            `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	Pagination query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"`
}

func (*QueryBidsByAuctionRequest) Descriptor

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

func (*QueryBidsByAuctionRequest) GetAuctionId

func (m *QueryBidsByAuctionRequest) GetAuctionId() uint32

func (*QueryBidsByAuctionRequest) GetPagination

func (m *QueryBidsByAuctionRequest) GetPagination() query.PageRequest

func (*QueryBidsByAuctionRequest) Marshal

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

func (*QueryBidsByAuctionRequest) MarshalTo

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

func (*QueryBidsByAuctionRequest) MarshalToSizedBuffer

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

func (*QueryBidsByAuctionRequest) ProtoMessage

func (*QueryBidsByAuctionRequest) ProtoMessage()

func (*QueryBidsByAuctionRequest) Reset

func (m *QueryBidsByAuctionRequest) Reset()

func (*QueryBidsByAuctionRequest) Size

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

func (*QueryBidsByAuctionRequest) String

func (m *QueryBidsByAuctionRequest) String() string

func (*QueryBidsByAuctionRequest) Unmarshal

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

func (*QueryBidsByAuctionRequest) XXX_DiscardUnknown

func (m *QueryBidsByAuctionRequest) XXX_DiscardUnknown()

func (*QueryBidsByAuctionRequest) XXX_Marshal

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

func (*QueryBidsByAuctionRequest) XXX_Merge

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

func (*QueryBidsByAuctionRequest) XXX_Size

func (m *QueryBidsByAuctionRequest) XXX_Size() int

func (*QueryBidsByAuctionRequest) XXX_Unmarshal

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

type QueryBidsByAuctionResponse

type QueryBidsByAuctionResponse struct {
	Bids       []*Bid             `protobuf:"bytes,1,rep,name=bids,proto3" json:"bids,omitempty"`
	Pagination query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"`
}

func (*QueryBidsByAuctionResponse) Descriptor

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

func (*QueryBidsByAuctionResponse) GetBids

func (m *QueryBidsByAuctionResponse) GetBids() []*Bid

func (*QueryBidsByAuctionResponse) GetPagination

func (m *QueryBidsByAuctionResponse) GetPagination() query.PageResponse

func (*QueryBidsByAuctionResponse) Marshal

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

func (*QueryBidsByAuctionResponse) MarshalTo

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

func (*QueryBidsByAuctionResponse) MarshalToSizedBuffer

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

func (*QueryBidsByAuctionResponse) ProtoMessage

func (*QueryBidsByAuctionResponse) ProtoMessage()

func (*QueryBidsByAuctionResponse) Reset

func (m *QueryBidsByAuctionResponse) Reset()

func (*QueryBidsByAuctionResponse) Size

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

func (*QueryBidsByAuctionResponse) String

func (m *QueryBidsByAuctionResponse) String() string

func (*QueryBidsByAuctionResponse) Unmarshal

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

func (*QueryBidsByAuctionResponse) XXX_DiscardUnknown

func (m *QueryBidsByAuctionResponse) XXX_DiscardUnknown()

func (*QueryBidsByAuctionResponse) XXX_Marshal

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

func (*QueryBidsByAuctionResponse) XXX_Merge

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

func (*QueryBidsByAuctionResponse) XXX_Size

func (m *QueryBidsByAuctionResponse) XXX_Size() int

func (*QueryBidsByAuctionResponse) XXX_Unmarshal

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

type QueryClient

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 QueryEndedAuctionRequest

type QueryEndedAuctionRequest struct {
	AuctionId uint32 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

func (*QueryEndedAuctionRequest) Descriptor

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

func (*QueryEndedAuctionRequest) GetAuctionId

func (m *QueryEndedAuctionRequest) GetAuctionId() uint32

func (*QueryEndedAuctionRequest) Marshal

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

func (*QueryEndedAuctionRequest) MarshalTo

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

func (*QueryEndedAuctionRequest) MarshalToSizedBuffer

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

func (*QueryEndedAuctionRequest) ProtoMessage

func (*QueryEndedAuctionRequest) ProtoMessage()

func (*QueryEndedAuctionRequest) Reset

func (m *QueryEndedAuctionRequest) Reset()

func (*QueryEndedAuctionRequest) Size

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

func (*QueryEndedAuctionRequest) String

func (m *QueryEndedAuctionRequest) String() string

func (*QueryEndedAuctionRequest) Unmarshal

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

func (*QueryEndedAuctionRequest) XXX_DiscardUnknown

func (m *QueryEndedAuctionRequest) XXX_DiscardUnknown()

func (*QueryEndedAuctionRequest) XXX_Marshal

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

func (*QueryEndedAuctionRequest) XXX_Merge

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

func (*QueryEndedAuctionRequest) XXX_Size

func (m *QueryEndedAuctionRequest) XXX_Size() int

func (*QueryEndedAuctionRequest) XXX_Unmarshal

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

type QueryEndedAuctionResponse

type QueryEndedAuctionResponse struct {
	Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
}

func (*QueryEndedAuctionResponse) Descriptor

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

func (*QueryEndedAuctionResponse) GetAuction

func (m *QueryEndedAuctionResponse) GetAuction() *Auction

func (*QueryEndedAuctionResponse) Marshal

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

func (*QueryEndedAuctionResponse) MarshalTo

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

func (*QueryEndedAuctionResponse) MarshalToSizedBuffer

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

func (*QueryEndedAuctionResponse) ProtoMessage

func (*QueryEndedAuctionResponse) ProtoMessage()

func (*QueryEndedAuctionResponse) Reset

func (m *QueryEndedAuctionResponse) Reset()

func (*QueryEndedAuctionResponse) Size

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

func (*QueryEndedAuctionResponse) String

func (m *QueryEndedAuctionResponse) String() string

func (*QueryEndedAuctionResponse) Unmarshal

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

func (*QueryEndedAuctionResponse) XXX_DiscardUnknown

func (m *QueryEndedAuctionResponse) XXX_DiscardUnknown()

func (*QueryEndedAuctionResponse) XXX_Marshal

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

func (*QueryEndedAuctionResponse) XXX_Merge

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

func (*QueryEndedAuctionResponse) XXX_Size

func (m *QueryEndedAuctionResponse) XXX_Size() int

func (*QueryEndedAuctionResponse) XXX_Unmarshal

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

type QueryEndedAuctionsRequest

type QueryEndedAuctionsRequest struct {
	Pagination query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination"`
}

func (*QueryEndedAuctionsRequest) Descriptor

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

func (*QueryEndedAuctionsRequest) GetPagination

func (m *QueryEndedAuctionsRequest) GetPagination() query.PageRequest

func (*QueryEndedAuctionsRequest) Marshal

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

func (*QueryEndedAuctionsRequest) MarshalTo

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

func (*QueryEndedAuctionsRequest) MarshalToSizedBuffer

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

func (*QueryEndedAuctionsRequest) ProtoMessage

func (*QueryEndedAuctionsRequest) ProtoMessage()

func (*QueryEndedAuctionsRequest) Reset

func (m *QueryEndedAuctionsRequest) Reset()

func (*QueryEndedAuctionsRequest) Size

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

func (*QueryEndedAuctionsRequest) String

func (m *QueryEndedAuctionsRequest) String() string

func (*QueryEndedAuctionsRequest) Unmarshal

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

func (*QueryEndedAuctionsRequest) XXX_DiscardUnknown

func (m *QueryEndedAuctionsRequest) XXX_DiscardUnknown()

func (*QueryEndedAuctionsRequest) XXX_Marshal

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

func (*QueryEndedAuctionsRequest) XXX_Merge

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

func (*QueryEndedAuctionsRequest) XXX_Size

func (m *QueryEndedAuctionsRequest) XXX_Size() int

func (*QueryEndedAuctionsRequest) XXX_Unmarshal

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

type QueryEndedAuctionsResponse

type QueryEndedAuctionsResponse struct {
	Auctions   []*Auction         `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions,omitempty"`
	Pagination query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"`
}

func (*QueryEndedAuctionsResponse) Descriptor

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

func (*QueryEndedAuctionsResponse) GetAuctions

func (m *QueryEndedAuctionsResponse) GetAuctions() []*Auction

func (*QueryEndedAuctionsResponse) GetPagination

func (m *QueryEndedAuctionsResponse) GetPagination() query.PageResponse

func (*QueryEndedAuctionsResponse) Marshal

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

func (*QueryEndedAuctionsResponse) MarshalTo

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

func (*QueryEndedAuctionsResponse) MarshalToSizedBuffer

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

func (*QueryEndedAuctionsResponse) ProtoMessage

func (*QueryEndedAuctionsResponse) ProtoMessage()

func (*QueryEndedAuctionsResponse) Reset

func (m *QueryEndedAuctionsResponse) Reset()

func (*QueryEndedAuctionsResponse) Size

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

func (*QueryEndedAuctionsResponse) String

func (m *QueryEndedAuctionsResponse) String() string

func (*QueryEndedAuctionsResponse) Unmarshal

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

func (*QueryEndedAuctionsResponse) XXX_DiscardUnknown

func (m *QueryEndedAuctionsResponse) XXX_DiscardUnknown()

func (*QueryEndedAuctionsResponse) XXX_Marshal

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

func (*QueryEndedAuctionsResponse) XXX_Merge

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

func (*QueryEndedAuctionsResponse) XXX_Size

func (m *QueryEndedAuctionsResponse) XXX_Size() int

func (*QueryEndedAuctionsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryTokenPriceRequest

type QueryTokenPriceRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryTokenPriceRequest) Descriptor

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

func (*QueryTokenPriceRequest) GetDenom

func (m *QueryTokenPriceRequest) GetDenom() string

func (*QueryTokenPriceRequest) Marshal

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

func (*QueryTokenPriceRequest) MarshalTo

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

func (*QueryTokenPriceRequest) MarshalToSizedBuffer

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

func (*QueryTokenPriceRequest) ProtoMessage

func (*QueryTokenPriceRequest) ProtoMessage()

func (*QueryTokenPriceRequest) Reset

func (m *QueryTokenPriceRequest) Reset()

func (*QueryTokenPriceRequest) Size

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

func (*QueryTokenPriceRequest) String

func (m *QueryTokenPriceRequest) String() string

func (*QueryTokenPriceRequest) Unmarshal

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

func (*QueryTokenPriceRequest) XXX_DiscardUnknown

func (m *QueryTokenPriceRequest) XXX_DiscardUnknown()

func (*QueryTokenPriceRequest) XXX_Marshal

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

func (*QueryTokenPriceRequest) XXX_Merge

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

func (*QueryTokenPriceRequest) XXX_Size

func (m *QueryTokenPriceRequest) XXX_Size() int

func (*QueryTokenPriceRequest) XXX_Unmarshal

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

type QueryTokenPriceResponse

type QueryTokenPriceResponse struct {
	TokenPrice *TokenPrice `protobuf:"bytes,1,opt,name=token_price,json=tokenPrice,proto3" json:"token_price,omitempty"`
}

func (*QueryTokenPriceResponse) Descriptor

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

func (*QueryTokenPriceResponse) GetTokenPrice

func (m *QueryTokenPriceResponse) GetTokenPrice() *TokenPrice

func (*QueryTokenPriceResponse) Marshal

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

func (*QueryTokenPriceResponse) MarshalTo

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

func (*QueryTokenPriceResponse) MarshalToSizedBuffer

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

func (*QueryTokenPriceResponse) ProtoMessage

func (*QueryTokenPriceResponse) ProtoMessage()

func (*QueryTokenPriceResponse) Reset

func (m *QueryTokenPriceResponse) Reset()

func (*QueryTokenPriceResponse) Size

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

func (*QueryTokenPriceResponse) String

func (m *QueryTokenPriceResponse) String() string

func (*QueryTokenPriceResponse) Unmarshal

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

func (*QueryTokenPriceResponse) XXX_DiscardUnknown

func (m *QueryTokenPriceResponse) XXX_DiscardUnknown()

func (*QueryTokenPriceResponse) XXX_Marshal

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

func (*QueryTokenPriceResponse) XXX_Merge

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

func (*QueryTokenPriceResponse) XXX_Size

func (m *QueryTokenPriceResponse) XXX_Size() int

func (*QueryTokenPriceResponse) XXX_Unmarshal

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

type QueryTokenPricesRequest

type QueryTokenPricesRequest struct {
}

func (*QueryTokenPricesRequest) Descriptor

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

func (*QueryTokenPricesRequest) Marshal

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

func (*QueryTokenPricesRequest) MarshalTo

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

func (*QueryTokenPricesRequest) MarshalToSizedBuffer

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

func (*QueryTokenPricesRequest) ProtoMessage

func (*QueryTokenPricesRequest) ProtoMessage()

func (*QueryTokenPricesRequest) Reset

func (m *QueryTokenPricesRequest) Reset()

func (*QueryTokenPricesRequest) Size

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

func (*QueryTokenPricesRequest) String

func (m *QueryTokenPricesRequest) String() string

func (*QueryTokenPricesRequest) Unmarshal

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

func (*QueryTokenPricesRequest) XXX_DiscardUnknown

func (m *QueryTokenPricesRequest) XXX_DiscardUnknown()

func (*QueryTokenPricesRequest) XXX_Marshal

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

func (*QueryTokenPricesRequest) XXX_Merge

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

func (*QueryTokenPricesRequest) XXX_Size

func (m *QueryTokenPricesRequest) XXX_Size() int

func (*QueryTokenPricesRequest) XXX_Unmarshal

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

type QueryTokenPricesResponse

type QueryTokenPricesResponse struct {
	TokenPrices []*TokenPrice `protobuf:"bytes,1,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"`
}

func (*QueryTokenPricesResponse) Descriptor

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

func (*QueryTokenPricesResponse) GetTokenPrices

func (m *QueryTokenPricesResponse) GetTokenPrices() []*TokenPrice

func (*QueryTokenPricesResponse) Marshal

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

func (*QueryTokenPricesResponse) MarshalTo

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

func (*QueryTokenPricesResponse) MarshalToSizedBuffer

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

func (*QueryTokenPricesResponse) ProtoMessage

func (*QueryTokenPricesResponse) ProtoMessage()

func (*QueryTokenPricesResponse) Reset

func (m *QueryTokenPricesResponse) Reset()

func (*QueryTokenPricesResponse) Size

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

func (*QueryTokenPricesResponse) String

func (m *QueryTokenPricesResponse) String() string

func (*QueryTokenPricesResponse) Unmarshal

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

func (*QueryTokenPricesResponse) XXX_DiscardUnknown

func (m *QueryTokenPricesResponse) XXX_DiscardUnknown()

func (*QueryTokenPricesResponse) XXX_Marshal

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

func (*QueryTokenPricesResponse) XXX_Merge

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

func (*QueryTokenPricesResponse) XXX_Size

func (m *QueryTokenPricesResponse) XXX_Size() int

func (*QueryTokenPricesResponse) XXX_Unmarshal

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

type SetTokenPricesProposal

type SetTokenPricesProposal struct {
	Title       string                `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	TokenPrices []*ProposedTokenPrice `protobuf:"bytes,3,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"`
}

func NewSetTokenPricesProposal

func NewSetTokenPricesProposal(title string, description string, proposedTokenPrices []*ProposedTokenPrice) *SetTokenPricesProposal

func (*SetTokenPricesProposal) Descriptor

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

func (*SetTokenPricesProposal) GetDescription

func (m *SetTokenPricesProposal) GetDescription() string

func (*SetTokenPricesProposal) GetTitle

func (m *SetTokenPricesProposal) GetTitle() string

func (*SetTokenPricesProposal) GetTokenPrices

func (m *SetTokenPricesProposal) GetTokenPrices() []*ProposedTokenPrice

func (*SetTokenPricesProposal) Marshal

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

func (*SetTokenPricesProposal) MarshalTo

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

func (*SetTokenPricesProposal) MarshalToSizedBuffer

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

func (*SetTokenPricesProposal) ProposalRoute

func (m *SetTokenPricesProposal) ProposalRoute() string

func (*SetTokenPricesProposal) ProposalType

func (m *SetTokenPricesProposal) ProposalType() string

func (*SetTokenPricesProposal) ProtoMessage

func (*SetTokenPricesProposal) ProtoMessage()

func (*SetTokenPricesProposal) Reset

func (m *SetTokenPricesProposal) Reset()

func (*SetTokenPricesProposal) Size

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

func (*SetTokenPricesProposal) String

func (m *SetTokenPricesProposal) String() string

func (*SetTokenPricesProposal) Unmarshal

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

func (*SetTokenPricesProposal) ValidateBasic

func (m *SetTokenPricesProposal) ValidateBasic() error

func (*SetTokenPricesProposal) XXX_DiscardUnknown

func (m *SetTokenPricesProposal) XXX_DiscardUnknown()

func (*SetTokenPricesProposal) XXX_Marshal

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

func (*SetTokenPricesProposal) XXX_Merge

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

func (*SetTokenPricesProposal) XXX_Size

func (m *SetTokenPricesProposal) XXX_Size() int

func (*SetTokenPricesProposal) XXX_Unmarshal

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

type SetTokenPricesProposalWithDeposit

type SetTokenPricesProposalWithDeposit struct {
	Title       string                `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	TokenPrices []*ProposedTokenPrice `protobuf:"bytes,3,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"`
	Deposit     string                `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit,omitempty"`
}

func (*SetTokenPricesProposalWithDeposit) Descriptor

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

func (*SetTokenPricesProposalWithDeposit) GetDeposit

func (m *SetTokenPricesProposalWithDeposit) GetDeposit() string

func (*SetTokenPricesProposalWithDeposit) GetDescription

func (m *SetTokenPricesProposalWithDeposit) GetDescription() string

func (*SetTokenPricesProposalWithDeposit) GetTitle

func (*SetTokenPricesProposalWithDeposit) GetTokenPrices

func (*SetTokenPricesProposalWithDeposit) Marshal

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

func (*SetTokenPricesProposalWithDeposit) MarshalTo

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

func (*SetTokenPricesProposalWithDeposit) MarshalToSizedBuffer

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

func (*SetTokenPricesProposalWithDeposit) ProtoMessage

func (*SetTokenPricesProposalWithDeposit) ProtoMessage()

func (*SetTokenPricesProposalWithDeposit) Reset

func (*SetTokenPricesProposalWithDeposit) Size

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

func (*SetTokenPricesProposalWithDeposit) String

func (*SetTokenPricesProposalWithDeposit) Unmarshal

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

func (*SetTokenPricesProposalWithDeposit) XXX_DiscardUnknown

func (m *SetTokenPricesProposalWithDeposit) XXX_DiscardUnknown()

func (*SetTokenPricesProposalWithDeposit) XXX_Marshal

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

func (*SetTokenPricesProposalWithDeposit) XXX_Merge

func (*SetTokenPricesProposalWithDeposit) XXX_Size

func (m *SetTokenPricesProposalWithDeposit) XXX_Size() int

func (*SetTokenPricesProposalWithDeposit) XXX_Unmarshal

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

type TokenPrice

type TokenPrice struct {
	Denom            string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Exponent         uint64                                 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"`
	UsdPrice         github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=usd_price,json=usdPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"usd_price"`
	LastUpdatedBlock uint64                                 `protobuf:"varint,4,opt,name=last_updated_block,json=lastUpdatedBlock,proto3" json:"last_updated_block,omitempty"`
}

USD price is the value for one non-fractional token (smallest unit of the token * 10^exponent)

func (*TokenPrice) Descriptor

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

func (*TokenPrice) GetDenom

func (m *TokenPrice) GetDenom() string

func (*TokenPrice) GetExponent

func (m *TokenPrice) GetExponent() uint64

func (*TokenPrice) GetLastUpdatedBlock

func (m *TokenPrice) GetLastUpdatedBlock() uint64

func (*TokenPrice) Marshal

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

func (*TokenPrice) MarshalTo

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

func (*TokenPrice) MarshalToSizedBuffer

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

func (*TokenPrice) ProtoMessage

func (*TokenPrice) ProtoMessage()

func (*TokenPrice) Reset

func (m *TokenPrice) Reset()

func (*TokenPrice) Size

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

func (*TokenPrice) String

func (m *TokenPrice) String() string

func (*TokenPrice) Unmarshal

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

func (*TokenPrice) ValidateBasic

func (t *TokenPrice) ValidateBasic() error

func (*TokenPrice) XXX_DiscardUnknown

func (m *TokenPrice) XXX_DiscardUnknown()

func (*TokenPrice) XXX_Marshal

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

func (*TokenPrice) XXX_Merge

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

func (*TokenPrice) XXX_Size

func (m *TokenPrice) XXX_Size() int

func (*TokenPrice) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SubmitBid

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryActiveAuction

func (*UnimplementedQueryServer) QueryActiveAuctions

func (*UnimplementedQueryServer) QueryBid

func (*UnimplementedQueryServer) QueryBidsByAuction

func (*UnimplementedQueryServer) QueryEndedAuction

func (*UnimplementedQueryServer) QueryEndedAuctions

func (*UnimplementedQueryServer) QueryParams

func (*UnimplementedQueryServer) QueryTokenPrice

func (*UnimplementedQueryServer) QueryTokenPrices

Jump to

Keyboard shortcuts

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