Documentation ¶
Overview ¶
Package auction is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func EmitFundRewardsAuction(ctx *sdk.Context, coins sdk.Coins)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateMinRewardsBid(min sdkmath.Int, bid sdk.Coin) error
- type BankKeeper
- type Bid
- func (*Bid) Descriptor() ([]byte, []int)
- func (m *Bid) Marshal() (dAtA []byte, err error)
- func (m *Bid) MarshalTo(dAtA []byte) (int, error)
- func (m *Bid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bid) ProtoMessage()
- func (m *Bid) Reset()
- func (m *Bid) Size() (n int)
- func (m *Bid) String() string
- func (m *Bid) Unmarshal(dAtA []byte) error
- func (m *Bid) XXX_DiscardUnknown()
- func (m *Bid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bid) XXX_Merge(src proto.Message)
- func (m *Bid) XXX_Size() int
- func (m *Bid) XXX_Unmarshal(b []byte) error
- type BidKV
- func (*BidKV) Descriptor() ([]byte, []int)
- func (m *BidKV) Marshal() (dAtA []byte, err error)
- func (m *BidKV) MarshalTo(dAtA []byte) (int, error)
- func (m *BidKV) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BidKV) ProtoMessage()
- func (m *BidKV) Reset()
- func (m *BidKV) Size() (n int)
- func (m *BidKV) String() string
- func (m *BidKV) Unmarshal(dAtA []byte) error
- func (m *BidKV) XXX_DiscardUnknown()
- func (m *BidKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BidKV) XXX_Merge(src proto.Message)
- func (m *BidKV) XXX_Size() int
- func (m *BidKV) XXX_Unmarshal(b []byte) error
- type EventFundRewardsAuction
- func (*EventFundRewardsAuction) Descriptor() ([]byte, []int)
- func (m *EventFundRewardsAuction) Marshal() (dAtA []byte, err error)
- func (m *EventFundRewardsAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *EventFundRewardsAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventFundRewardsAuction) ProtoMessage()
- func (m *EventFundRewardsAuction) Reset()
- func (m *EventFundRewardsAuction) Size() (n int)
- func (m *EventFundRewardsAuction) String() string
- func (m *EventFundRewardsAuction) Unmarshal(dAtA []byte) error
- func (m *EventFundRewardsAuction) XXX_DiscardUnknown()
- func (m *EventFundRewardsAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventFundRewardsAuction) XXX_Merge(src proto.Message)
- func (m *EventFundRewardsAuction) XXX_Size() int
- func (m *EventFundRewardsAuction) XXX_Unmarshal(b []byte) error
- type EventRewardsAuctionResult
- func (*EventRewardsAuctionResult) Descriptor() ([]byte, []int)
- func (m *EventRewardsAuctionResult) Marshal() (dAtA []byte, err error)
- func (m *EventRewardsAuctionResult) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRewardsAuctionResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRewardsAuctionResult) ProtoMessage()
- func (m *EventRewardsAuctionResult) Reset()
- func (m *EventRewardsAuctionResult) Size() (n int)
- func (m *EventRewardsAuctionResult) String() string
- func (m *EventRewardsAuctionResult) Unmarshal(dAtA []byte) error
- func (m *EventRewardsAuctionResult) XXX_DiscardUnknown()
- func (m *EventRewardsAuctionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRewardsAuctionResult) XXX_Merge(src proto.Message)
- func (m *EventRewardsAuctionResult) XXX_Size() int
- func (m *EventRewardsAuctionResult) XXX_Unmarshal(b []byte) error
- type EventRewardsBid
- func (*EventRewardsBid) Descriptor() ([]byte, []int)
- func (m *EventRewardsBid) Marshal() (dAtA []byte, err error)
- func (m *EventRewardsBid) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRewardsBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRewardsBid) ProtoMessage()
- func (m *EventRewardsBid) Reset()
- func (m *EventRewardsBid) Size() (n int)
- func (m *EventRewardsBid) String() string
- func (m *EventRewardsBid) Unmarshal(dAtA []byte) error
- func (m *EventRewardsBid) XXX_DiscardUnknown()
- func (m *EventRewardsBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRewardsBid) XXX_Merge(src proto.Message)
- func (m *EventRewardsBid) XXX_Size() int
- func (m *EventRewardsBid) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgGovSetRewardsParams
- func (*MsgGovSetRewardsParams) Descriptor() ([]byte, []int)
- func (msg *MsgGovSetRewardsParams) GetSignBytes() []byte
- func (msg *MsgGovSetRewardsParams) GetSigners() []sdk.AccAddress
- func (m *MsgGovSetRewardsParams) Marshal() (dAtA []byte, err error)
- func (m *MsgGovSetRewardsParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovSetRewardsParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovSetRewardsParams) ProtoMessage()
- func (m *MsgGovSetRewardsParams) Reset()
- func (msg MsgGovSetRewardsParams) Route() string
- func (m *MsgGovSetRewardsParams) Size() (n int)
- func (m *MsgGovSetRewardsParams) String() string
- func (msg MsgGovSetRewardsParams) Type() string
- func (m *MsgGovSetRewardsParams) Unmarshal(dAtA []byte) error
- func (msg *MsgGovSetRewardsParams) ValidateBasic() error
- func (m *MsgGovSetRewardsParams) XXX_DiscardUnknown()
- func (m *MsgGovSetRewardsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovSetRewardsParams) XXX_Merge(src proto.Message)
- func (*MsgGovSetRewardsParams) XXX_MessageName() string
- func (m *MsgGovSetRewardsParams) XXX_Size() int
- func (m *MsgGovSetRewardsParams) XXX_Unmarshal(b []byte) error
- type MsgGovSetRewardsParamsResponse
- func (*MsgGovSetRewardsParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgGovSetRewardsParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGovSetRewardsParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovSetRewardsParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovSetRewardsParamsResponse) ProtoMessage()
- func (m *MsgGovSetRewardsParamsResponse) Reset()
- func (m *MsgGovSetRewardsParamsResponse) Size() (n int)
- func (m *MsgGovSetRewardsParamsResponse) String() string
- func (m *MsgGovSetRewardsParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGovSetRewardsParamsResponse) XXX_DiscardUnknown()
- func (m *MsgGovSetRewardsParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovSetRewardsParamsResponse) XXX_Merge(src proto.Message)
- func (*MsgGovSetRewardsParamsResponse) XXX_MessageName() string
- func (m *MsgGovSetRewardsParamsResponse) XXX_Size() int
- func (m *MsgGovSetRewardsParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgRewardsBid
- func (*MsgRewardsBid) Descriptor() ([]byte, []int)
- func (msg *MsgRewardsBid) GetSignBytes() []byte
- func (msg *MsgRewardsBid) GetSigners() []sdk.AccAddress
- func (m *MsgRewardsBid) Marshal() (dAtA []byte, err error)
- func (m *MsgRewardsBid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRewardsBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRewardsBid) ProtoMessage()
- func (m *MsgRewardsBid) Reset()
- func (msg MsgRewardsBid) Route() string
- func (m *MsgRewardsBid) Size() (n int)
- func (m *MsgRewardsBid) String() string
- func (msg MsgRewardsBid) Type() string
- func (m *MsgRewardsBid) Unmarshal(dAtA []byte) error
- func (msg *MsgRewardsBid) ValidateBasic() error
- func (m *MsgRewardsBid) XXX_DiscardUnknown()
- func (m *MsgRewardsBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRewardsBid) XXX_Merge(src proto.Message)
- func (*MsgRewardsBid) XXX_MessageName() string
- func (m *MsgRewardsBid) XXX_Size() int
- func (m *MsgRewardsBid) XXX_Unmarshal(b []byte) error
- type MsgRewardsBidResponse
- func (*MsgRewardsBidResponse) Descriptor() ([]byte, []int)
- func (m *MsgRewardsBidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRewardsBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRewardsBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRewardsBidResponse) ProtoMessage()
- func (m *MsgRewardsBidResponse) Reset()
- func (m *MsgRewardsBidResponse) Size() (n int)
- func (m *MsgRewardsBidResponse) String() string
- func (m *MsgRewardsBidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRewardsBidResponse) XXX_DiscardUnknown()
- func (m *MsgRewardsBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRewardsBidResponse) XXX_Merge(src proto.Message)
- func (*MsgRewardsBidResponse) XXX_MessageName() string
- func (m *MsgRewardsBidResponse) XXX_Size() int
- func (m *MsgRewardsBidResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryRewardsAuction
- func (*QueryRewardsAuction) Descriptor() ([]byte, []int)
- func (m *QueryRewardsAuction) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsAuction) ProtoMessage()
- func (m *QueryRewardsAuction) Reset()
- func (m *QueryRewardsAuction) Size() (n int)
- func (m *QueryRewardsAuction) String() string
- func (m *QueryRewardsAuction) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsAuction) XXX_DiscardUnknown()
- func (m *QueryRewardsAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsAuction) XXX_Merge(src proto.Message)
- func (m *QueryRewardsAuction) XXX_Size() int
- func (m *QueryRewardsAuction) XXX_Unmarshal(b []byte) error
- type QueryRewardsAuctionResponse
- func (*QueryRewardsAuctionResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsAuctionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsAuctionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsAuctionResponse) ProtoMessage()
- func (m *QueryRewardsAuctionResponse) Reset()
- func (m *QueryRewardsAuctionResponse) Size() (n int)
- func (m *QueryRewardsAuctionResponse) String() string
- func (m *QueryRewardsAuctionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsAuctionResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsAuctionResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsAuctionResponse) XXX_Size() int
- func (m *QueryRewardsAuctionResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsAuctions
- func (*QueryRewardsAuctions) Descriptor() ([]byte, []int)
- func (m *QueryRewardsAuctions) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsAuctions) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsAuctions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsAuctions) ProtoMessage()
- func (m *QueryRewardsAuctions) Reset()
- func (m *QueryRewardsAuctions) Size() (n int)
- func (m *QueryRewardsAuctions) String() string
- func (m *QueryRewardsAuctions) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsAuctions) XXX_DiscardUnknown()
- func (m *QueryRewardsAuctions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsAuctions) XXX_Merge(src proto.Message)
- func (m *QueryRewardsAuctions) XXX_Size() int
- func (m *QueryRewardsAuctions) XXX_Unmarshal(b []byte) error
- type QueryRewardsAuctionsResponse
- func (*QueryRewardsAuctionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsAuctionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsAuctionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsAuctionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsAuctionsResponse) ProtoMessage()
- func (m *QueryRewardsAuctionsResponse) Reset()
- func (m *QueryRewardsAuctionsResponse) Size() (n int)
- func (m *QueryRewardsAuctionsResponse) String() string
- func (m *QueryRewardsAuctionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsAuctionsResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsAuctionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsAuctionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsAuctionsResponse) XXX_Size() int
- func (m *QueryRewardsAuctionsResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardsParams
- func (*QueryRewardsParams) Descriptor() ([]byte, []int)
- func (m *QueryRewardsParams) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsParams) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsParams) ProtoMessage()
- func (m *QueryRewardsParams) Reset()
- func (m *QueryRewardsParams) Size() (n int)
- func (m *QueryRewardsParams) String() string
- func (m *QueryRewardsParams) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsParams) XXX_DiscardUnknown()
- func (m *QueryRewardsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsParams) XXX_Merge(src proto.Message)
- func (m *QueryRewardsParams) XXX_Size() int
- func (m *QueryRewardsParams) XXX_Unmarshal(b []byte) error
- type QueryRewardsParamsResponse
- func (*QueryRewardsParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardsParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardsParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardsParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardsParamsResponse) ProtoMessage()
- func (m *QueryRewardsParamsResponse) Reset()
- func (m *QueryRewardsParamsResponse) Size() (n int)
- func (m *QueryRewardsParamsResponse) String() string
- func (m *QueryRewardsParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardsParamsResponse) XXX_DiscardUnknown()
- func (m *QueryRewardsParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardsParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardsParamsResponse) XXX_Size() int
- func (m *QueryRewardsParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Rewards
- func (*Rewards) Descriptor() ([]byte, []int)
- func (m *Rewards) Marshal() (dAtA []byte, err error)
- func (m *Rewards) MarshalTo(dAtA []byte) (int, error)
- func (m *Rewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Rewards) ProtoMessage()
- func (m *Rewards) Reset()
- func (m *Rewards) Size() (n int)
- func (m *Rewards) String() string
- func (m *Rewards) Unmarshal(dAtA []byte) error
- func (m *Rewards) XXX_DiscardUnknown()
- func (m *Rewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rewards) XXX_Merge(src proto.Message)
- func (m *Rewards) XXX_Size() int
- func (m *Rewards) XXX_Unmarshal(b []byte) error
- type RewardsKV
- func (*RewardsKV) Descriptor() ([]byte, []int)
- func (m *RewardsKV) Marshal() (dAtA []byte, err error)
- func (m *RewardsKV) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardsKV) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardsKV) ProtoMessage()
- func (m *RewardsKV) Reset()
- func (m *RewardsKV) Size() (n int)
- func (m *RewardsKV) String() string
- func (m *RewardsKV) Unmarshal(dAtA []byte) error
- func (m *RewardsKV) XXX_DiscardUnknown()
- func (m *RewardsKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardsKV) XXX_Merge(src proto.Message)
- func (m *RewardsKV) XXX_Size() int
- func (m *RewardsKV) XXX_Unmarshal(b []byte) error
- type RewardsParams
- func (*RewardsParams) Descriptor() ([]byte, []int)
- func (m *RewardsParams) Marshal() (dAtA []byte, err error)
- func (m *RewardsParams) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardsParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardsParams) ProtoMessage()
- func (m *RewardsParams) Reset()
- func (m *RewardsParams) Size() (n int)
- func (m *RewardsParams) String() string
- func (m *RewardsParams) Unmarshal(dAtA []byte) error
- func (m *RewardsParams) XXX_DiscardUnknown()
- func (m *RewardsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardsParams) XXX_Merge(src proto.Message)
- func (m *RewardsParams) XXX_Size() int
- func (m *RewardsParams) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) RewardsAuction(ctx context.Context, req *QueryRewardsAuction) (*QueryRewardsAuctionResponse, error)
- func (*UnimplementedQueryServer) RewardsAuctions(ctx context.Context, req *QueryRewardsAuctions) (*QueryRewardsAuctionsResponse, error)
- func (*UnimplementedQueryServer) RewardsParams(ctx context.Context, req *QueryRewardsParams) (*QueryRewardsParamsResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "auction" // StoreKey defines the primary module store key StoreKey = ModuleName )
Variables ¶
var ( ErrInvalidLengthAuction = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuction = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuction = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var MinRewardsBid = sdk.NewInt(50_000_000)
MinRewardsBid is the minimum increase of the previous bid or the minimum bid if it's the first one. 50 UX = 50e6uumee
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Amino codecs Note, the ModuleCdc should ONLY be used in certain instances of tests and for JSON encoding as Amino is still used for that purpose.
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.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 RegisterQueryHandler ¶
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 BankKeeper ¶
type BankKeeper interface { BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected x/bank keeper interface.
type Bid ¶
type Bid struct { Bidder string `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder,omitempty"` Amount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` }
Bid records a user bid
func (*Bid) Descriptor ¶
func (*Bid) ProtoMessage ¶
func (*Bid) ProtoMessage()
func (*Bid) XXX_DiscardUnknown ¶
func (m *Bid) XXX_DiscardUnknown()
func (*Bid) XXX_Unmarshal ¶
type BidKV ¶
type BidKV struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Bid Bid `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid"` }
BidKV combines a storage key (id) an value (bid)
func (*BidKV) Descriptor ¶
func (*BidKV) ProtoMessage ¶
func (*BidKV) ProtoMessage()
func (*BidKV) XXX_DiscardUnknown ¶
func (m *BidKV) XXX_DiscardUnknown()
func (*BidKV) XXX_Marshal ¶
func (*BidKV) XXX_Unmarshal ¶
type EventFundRewardsAuction ¶
type EventFundRewardsAuction struct {
Assets []types.Coin `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets"`
}
EventFundRewardsAuction is emitted when sending rewards to auction module
func (*EventFundRewardsAuction) Descriptor ¶
func (*EventFundRewardsAuction) Descriptor() ([]byte, []int)
func (*EventFundRewardsAuction) Marshal ¶
func (m *EventFundRewardsAuction) Marshal() (dAtA []byte, err error)
func (*EventFundRewardsAuction) MarshalTo ¶
func (m *EventFundRewardsAuction) MarshalTo(dAtA []byte) (int, error)
func (*EventFundRewardsAuction) MarshalToSizedBuffer ¶
func (m *EventFundRewardsAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventFundRewardsAuction) ProtoMessage ¶
func (*EventFundRewardsAuction) ProtoMessage()
func (*EventFundRewardsAuction) Reset ¶
func (m *EventFundRewardsAuction) Reset()
func (*EventFundRewardsAuction) Size ¶
func (m *EventFundRewardsAuction) Size() (n int)
func (*EventFundRewardsAuction) String ¶
func (m *EventFundRewardsAuction) String() string
func (*EventFundRewardsAuction) Unmarshal ¶
func (m *EventFundRewardsAuction) Unmarshal(dAtA []byte) error
func (*EventFundRewardsAuction) XXX_DiscardUnknown ¶
func (m *EventFundRewardsAuction) XXX_DiscardUnknown()
func (*EventFundRewardsAuction) XXX_Marshal ¶
func (m *EventFundRewardsAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventFundRewardsAuction) XXX_Merge ¶
func (m *EventFundRewardsAuction) XXX_Merge(src proto.Message)
func (*EventFundRewardsAuction) XXX_Size ¶
func (m *EventFundRewardsAuction) XXX_Size() int
func (*EventFundRewardsAuction) XXX_Unmarshal ¶
func (m *EventFundRewardsAuction) XXX_Unmarshal(b []byte) error
type EventRewardsAuctionResult ¶
type EventRewardsAuctionResult struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` }
EventRewardsAuctionResult is emitted at the end of each auction that has at least one bidder.
func (*EventRewardsAuctionResult) Descriptor ¶
func (*EventRewardsAuctionResult) Descriptor() ([]byte, []int)
func (*EventRewardsAuctionResult) Marshal ¶
func (m *EventRewardsAuctionResult) Marshal() (dAtA []byte, err error)
func (*EventRewardsAuctionResult) MarshalTo ¶
func (m *EventRewardsAuctionResult) MarshalTo(dAtA []byte) (int, error)
func (*EventRewardsAuctionResult) MarshalToSizedBuffer ¶
func (m *EventRewardsAuctionResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRewardsAuctionResult) ProtoMessage ¶
func (*EventRewardsAuctionResult) ProtoMessage()
func (*EventRewardsAuctionResult) Reset ¶
func (m *EventRewardsAuctionResult) Reset()
func (*EventRewardsAuctionResult) Size ¶
func (m *EventRewardsAuctionResult) Size() (n int)
func (*EventRewardsAuctionResult) String ¶
func (m *EventRewardsAuctionResult) String() string
func (*EventRewardsAuctionResult) Unmarshal ¶
func (m *EventRewardsAuctionResult) Unmarshal(dAtA []byte) error
func (*EventRewardsAuctionResult) XXX_DiscardUnknown ¶
func (m *EventRewardsAuctionResult) XXX_DiscardUnknown()
func (*EventRewardsAuctionResult) XXX_Marshal ¶
func (m *EventRewardsAuctionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRewardsAuctionResult) XXX_Merge ¶
func (m *EventRewardsAuctionResult) XXX_Merge(src proto.Message)
func (*EventRewardsAuctionResult) XXX_Size ¶
func (m *EventRewardsAuctionResult) XXX_Size() int
func (*EventRewardsAuctionResult) XXX_Unmarshal ¶
func (m *EventRewardsAuctionResult) XXX_Unmarshal(b []byte) error
type EventRewardsBid ¶
type EventRewardsBid struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` }
EventRewardsBid is emitted when the user bid the auction reward.
func (*EventRewardsBid) Descriptor ¶
func (*EventRewardsBid) Descriptor() ([]byte, []int)
func (*EventRewardsBid) Marshal ¶
func (m *EventRewardsBid) Marshal() (dAtA []byte, err error)
func (*EventRewardsBid) MarshalToSizedBuffer ¶
func (m *EventRewardsBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRewardsBid) ProtoMessage ¶
func (*EventRewardsBid) ProtoMessage()
func (*EventRewardsBid) Reset ¶
func (m *EventRewardsBid) Reset()
func (*EventRewardsBid) Size ¶
func (m *EventRewardsBid) Size() (n int)
func (*EventRewardsBid) String ¶
func (m *EventRewardsBid) String() string
func (*EventRewardsBid) Unmarshal ¶
func (m *EventRewardsBid) Unmarshal(dAtA []byte) error
func (*EventRewardsBid) XXX_DiscardUnknown ¶
func (m *EventRewardsBid) XXX_DiscardUnknown()
func (*EventRewardsBid) XXX_Marshal ¶
func (m *EventRewardsBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRewardsBid) XXX_Merge ¶
func (m *EventRewardsBid) XXX_Merge(src proto.Message)
func (*EventRewardsBid) XXX_Size ¶
func (m *EventRewardsBid) XXX_Size() int
func (*EventRewardsBid) XXX_Unmarshal ¶
func (m *EventRewardsBid) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { RewardsParams RewardsParams `protobuf:"bytes,1,opt,name=rewards_params,json=rewardsParams,proto3" json:"rewards_params"` // Latest active (in bid phase) reward auction. RewardAuctionId uint32 `protobuf:"varint,2,opt,name=reward_auction_id,json=rewardAuctionId,proto3" json:"reward_auction_id,omitempty"` // All rewards auctions with ID. RewardsAuctions []RewardsKV `protobuf:"bytes,3,rep,name=rewards_auctions,json=rewardsAuctions,proto3" json:"rewards_auctions"` // Highest bids for all rewards auctions with ID. RewardsBids []BidKV `protobuf:"bytes,4,rep,name=rewards_bids,json=rewardsBids,proto3" json:"rewards_bids"` }
GenesisState defines the x/auction module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis creates a default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 MsgClient ¶
type MsgClient interface { // Allows x/gov to update rewards auction parameters. GovSetRewardsParams(ctx context.Context, in *MsgGovSetRewardsParams, opts ...grpc.CallOption) (*MsgGovSetRewardsParamsResponse, error) // Places a bid for a reword auction. Must be higher than the previous bid by at least // RewardParams.RewardsParams. RewardsBid(ctx context.Context, in *MsgRewardsBid, opts ...grpc.CallOption) (*MsgRewardsBidResponse, 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 MsgGovSetRewardsParams ¶
type MsgGovSetRewardsParams struct { // authority must be the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Params RewardsParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgGovSetRewardsParams updates rewards auction parameters.
func (*MsgGovSetRewardsParams) Descriptor ¶
func (*MsgGovSetRewardsParams) Descriptor() ([]byte, []int)
func (*MsgGovSetRewardsParams) GetSignBytes ¶
func (msg *MsgGovSetRewardsParams) GetSignBytes() []byte
func (*MsgGovSetRewardsParams) GetSigners ¶
func (msg *MsgGovSetRewardsParams) GetSigners() []sdk.AccAddress
func (*MsgGovSetRewardsParams) Marshal ¶
func (m *MsgGovSetRewardsParams) Marshal() (dAtA []byte, err error)
func (*MsgGovSetRewardsParams) MarshalTo ¶
func (m *MsgGovSetRewardsParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovSetRewardsParams) MarshalToSizedBuffer ¶
func (m *MsgGovSetRewardsParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovSetRewardsParams) ProtoMessage ¶
func (*MsgGovSetRewardsParams) ProtoMessage()
func (*MsgGovSetRewardsParams) Reset ¶
func (m *MsgGovSetRewardsParams) Reset()
func (MsgGovSetRewardsParams) Route ¶
func (msg MsgGovSetRewardsParams) Route() string
LegacyMsg.Type implementations
func (*MsgGovSetRewardsParams) Size ¶
func (m *MsgGovSetRewardsParams) Size() (n int)
func (*MsgGovSetRewardsParams) String ¶
func (m *MsgGovSetRewardsParams) String() string
func (MsgGovSetRewardsParams) Type ¶
func (msg MsgGovSetRewardsParams) Type() string
func (*MsgGovSetRewardsParams) Unmarshal ¶
func (m *MsgGovSetRewardsParams) Unmarshal(dAtA []byte) error
func (*MsgGovSetRewardsParams) ValidateBasic ¶
func (msg *MsgGovSetRewardsParams) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgGovSetRewardsParams) XXX_DiscardUnknown ¶
func (m *MsgGovSetRewardsParams) XXX_DiscardUnknown()
func (*MsgGovSetRewardsParams) XXX_Marshal ¶
func (m *MsgGovSetRewardsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovSetRewardsParams) XXX_Merge ¶
func (m *MsgGovSetRewardsParams) XXX_Merge(src proto.Message)
func (*MsgGovSetRewardsParams) XXX_MessageName ¶
func (*MsgGovSetRewardsParams) XXX_MessageName() string
func (*MsgGovSetRewardsParams) XXX_Size ¶
func (m *MsgGovSetRewardsParams) XXX_Size() int
func (*MsgGovSetRewardsParams) XXX_Unmarshal ¶
func (m *MsgGovSetRewardsParams) XXX_Unmarshal(b []byte) error
type MsgGovSetRewardsParamsResponse ¶
type MsgGovSetRewardsParamsResponse struct { }
MsgGovSetRewardsParamsResponse defines the Msg/GovSetRewardsParams response type.
func (*MsgGovSetRewardsParamsResponse) Descriptor ¶
func (*MsgGovSetRewardsParamsResponse) Descriptor() ([]byte, []int)
func (*MsgGovSetRewardsParamsResponse) Marshal ¶
func (m *MsgGovSetRewardsParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgGovSetRewardsParamsResponse) MarshalTo ¶
func (m *MsgGovSetRewardsParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovSetRewardsParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgGovSetRewardsParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovSetRewardsParamsResponse) ProtoMessage ¶
func (*MsgGovSetRewardsParamsResponse) ProtoMessage()
func (*MsgGovSetRewardsParamsResponse) Reset ¶
func (m *MsgGovSetRewardsParamsResponse) Reset()
func (*MsgGovSetRewardsParamsResponse) Size ¶
func (m *MsgGovSetRewardsParamsResponse) Size() (n int)
func (*MsgGovSetRewardsParamsResponse) String ¶
func (m *MsgGovSetRewardsParamsResponse) String() string
func (*MsgGovSetRewardsParamsResponse) Unmarshal ¶
func (m *MsgGovSetRewardsParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgGovSetRewardsParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgGovSetRewardsParamsResponse) XXX_DiscardUnknown()
func (*MsgGovSetRewardsParamsResponse) XXX_Marshal ¶
func (m *MsgGovSetRewardsParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovSetRewardsParamsResponse) XXX_Merge ¶
func (m *MsgGovSetRewardsParamsResponse) XXX_Merge(src proto.Message)
func (*MsgGovSetRewardsParamsResponse) XXX_MessageName ¶
func (*MsgGovSetRewardsParamsResponse) XXX_MessageName() string
func (*MsgGovSetRewardsParamsResponse) XXX_Size ¶
func (m *MsgGovSetRewardsParamsResponse) XXX_Size() int
func (*MsgGovSetRewardsParamsResponse) XXX_Unmarshal ¶
func (m *MsgGovSetRewardsParamsResponse) XXX_Unmarshal(b []byte) error
type MsgRewardsBid ¶
type MsgRewardsBid struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // the current auction ID being bid on. Fails if the ID is not an ID of the current auction. Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // amount of the bid in the bond base tokens (uumee) Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` }
MsgRewardsBid places a bid for a reword auction.
func (*MsgRewardsBid) Descriptor ¶
func (*MsgRewardsBid) Descriptor() ([]byte, []int)
func (*MsgRewardsBid) GetSignBytes ¶
func (msg *MsgRewardsBid) GetSignBytes() []byte
func (*MsgRewardsBid) GetSigners ¶
func (msg *MsgRewardsBid) GetSigners() []sdk.AccAddress
func (*MsgRewardsBid) Marshal ¶
func (m *MsgRewardsBid) Marshal() (dAtA []byte, err error)
func (*MsgRewardsBid) MarshalToSizedBuffer ¶
func (m *MsgRewardsBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRewardsBid) ProtoMessage ¶
func (*MsgRewardsBid) ProtoMessage()
func (*MsgRewardsBid) Reset ¶
func (m *MsgRewardsBid) Reset()
func (*MsgRewardsBid) Size ¶
func (m *MsgRewardsBid) Size() (n int)
func (*MsgRewardsBid) String ¶
func (m *MsgRewardsBid) String() string
func (MsgRewardsBid) Type ¶
func (msg MsgRewardsBid) Type() string
func (*MsgRewardsBid) Unmarshal ¶
func (m *MsgRewardsBid) Unmarshal(dAtA []byte) error
func (*MsgRewardsBid) ValidateBasic ¶
func (msg *MsgRewardsBid) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgRewardsBid) XXX_DiscardUnknown ¶
func (m *MsgRewardsBid) XXX_DiscardUnknown()
func (*MsgRewardsBid) XXX_Marshal ¶
func (m *MsgRewardsBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRewardsBid) XXX_Merge ¶
func (m *MsgRewardsBid) XXX_Merge(src proto.Message)
func (*MsgRewardsBid) XXX_MessageName ¶
func (*MsgRewardsBid) XXX_MessageName() string
func (*MsgRewardsBid) XXX_Size ¶
func (m *MsgRewardsBid) XXX_Size() int
func (*MsgRewardsBid) XXX_Unmarshal ¶
func (m *MsgRewardsBid) XXX_Unmarshal(b []byte) error
type MsgRewardsBidResponse ¶
type MsgRewardsBidResponse struct { }
MsgRewardsBidResponse response type for Msg/RewardsBid
func (*MsgRewardsBidResponse) Descriptor ¶
func (*MsgRewardsBidResponse) Descriptor() ([]byte, []int)
func (*MsgRewardsBidResponse) Marshal ¶
func (m *MsgRewardsBidResponse) Marshal() (dAtA []byte, err error)
func (*MsgRewardsBidResponse) MarshalTo ¶
func (m *MsgRewardsBidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRewardsBidResponse) MarshalToSizedBuffer ¶
func (m *MsgRewardsBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRewardsBidResponse) ProtoMessage ¶
func (*MsgRewardsBidResponse) ProtoMessage()
func (*MsgRewardsBidResponse) Reset ¶
func (m *MsgRewardsBidResponse) Reset()
func (*MsgRewardsBidResponse) Size ¶
func (m *MsgRewardsBidResponse) Size() (n int)
func (*MsgRewardsBidResponse) String ¶
func (m *MsgRewardsBidResponse) String() string
func (*MsgRewardsBidResponse) Unmarshal ¶
func (m *MsgRewardsBidResponse) Unmarshal(dAtA []byte) error
func (*MsgRewardsBidResponse) XXX_DiscardUnknown ¶
func (m *MsgRewardsBidResponse) XXX_DiscardUnknown()
func (*MsgRewardsBidResponse) XXX_Marshal ¶
func (m *MsgRewardsBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRewardsBidResponse) XXX_Merge ¶
func (m *MsgRewardsBidResponse) XXX_Merge(src proto.Message)
func (*MsgRewardsBidResponse) XXX_MessageName ¶
func (*MsgRewardsBidResponse) XXX_MessageName() string
func (*MsgRewardsBidResponse) XXX_Size ¶
func (m *MsgRewardsBidResponse) XXX_Size() int
func (*MsgRewardsBidResponse) XXX_Unmarshal ¶
func (m *MsgRewardsBidResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Allows x/gov to update rewards auction parameters. GovSetRewardsParams(context.Context, *MsgGovSetRewardsParams) (*MsgGovSetRewardsParamsResponse, error) // Places a bid for a reword auction. Must be higher than the previous bid by at least // RewardParams.RewardsParams. RewardsBid(context.Context, *MsgRewardsBid) (*MsgRewardsBidResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface { // QueryRewardParams queries parameters for the reward auciton. RewardsParams(ctx context.Context, in *QueryRewardsParams, opts ...grpc.CallOption) (*QueryRewardsParamsResponse, error) // RewardAuction queries the information of the auction by ID. If ID is ommitted, returns // current reward auction. RewardsAuction(ctx context.Context, in *QueryRewardsAuction, opts ...grpc.CallOption) (*QueryRewardsAuctionResponse, error) // RewardsAuctions returns all reward auctions. RewardsAuctions(ctx context.Context, in *QueryRewardsAuctions, opts ...grpc.CallOption) (*QueryRewardsAuctionsResponse, 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 QueryRewardsAuction ¶
type QueryRewardsAuction struct { // If zero or not present, the current auction is returned Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
Query type for QueryRewardsAuction
func (*QueryRewardsAuction) Descriptor ¶
func (*QueryRewardsAuction) Descriptor() ([]byte, []int)
func (*QueryRewardsAuction) Marshal ¶
func (m *QueryRewardsAuction) Marshal() (dAtA []byte, err error)
func (*QueryRewardsAuction) MarshalTo ¶
func (m *QueryRewardsAuction) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsAuction) MarshalToSizedBuffer ¶
func (m *QueryRewardsAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsAuction) ProtoMessage ¶
func (*QueryRewardsAuction) ProtoMessage()
func (*QueryRewardsAuction) Reset ¶
func (m *QueryRewardsAuction) Reset()
func (*QueryRewardsAuction) Size ¶
func (m *QueryRewardsAuction) Size() (n int)
func (*QueryRewardsAuction) String ¶
func (m *QueryRewardsAuction) String() string
func (*QueryRewardsAuction) Unmarshal ¶
func (m *QueryRewardsAuction) Unmarshal(dAtA []byte) error
func (*QueryRewardsAuction) XXX_DiscardUnknown ¶
func (m *QueryRewardsAuction) XXX_DiscardUnknown()
func (*QueryRewardsAuction) XXX_Marshal ¶
func (m *QueryRewardsAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsAuction) XXX_Merge ¶
func (m *QueryRewardsAuction) XXX_Merge(src proto.Message)
func (*QueryRewardsAuction) XXX_Size ¶
func (m *QueryRewardsAuction) XXX_Size() int
func (*QueryRewardsAuction) XXX_Unmarshal ¶
func (m *QueryRewardsAuction) XXX_Unmarshal(b []byte) error
type QueryRewardsAuctionResponse ¶
type QueryRewardsAuctionResponse struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // highest bidder Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` Bid types.Coin `protobuf:"bytes,3,opt,name=bid,proto3" json:"bid"` Rewards []types.Coin `protobuf:"bytes,4,rep,name=rewards,proto3" json:"rewards"` EndsAt time.Time `protobuf:"bytes,5,opt,name=ends_at,json=endsAt,proto3,stdtime" json:"ends_at"` }
Response type for Query/RewardsAuctionResponse
func (*QueryRewardsAuctionResponse) Descriptor ¶
func (*QueryRewardsAuctionResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsAuctionResponse) Marshal ¶
func (m *QueryRewardsAuctionResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsAuctionResponse) MarshalTo ¶
func (m *QueryRewardsAuctionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsAuctionResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsAuctionResponse) ProtoMessage ¶
func (*QueryRewardsAuctionResponse) ProtoMessage()
func (*QueryRewardsAuctionResponse) Reset ¶
func (m *QueryRewardsAuctionResponse) Reset()
func (*QueryRewardsAuctionResponse) Size ¶
func (m *QueryRewardsAuctionResponse) Size() (n int)
func (*QueryRewardsAuctionResponse) String ¶
func (m *QueryRewardsAuctionResponse) String() string
func (*QueryRewardsAuctionResponse) Unmarshal ¶
func (m *QueryRewardsAuctionResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsAuctionResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsAuctionResponse) XXX_DiscardUnknown()
func (*QueryRewardsAuctionResponse) XXX_Marshal ¶
func (m *QueryRewardsAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsAuctionResponse) XXX_Merge ¶
func (m *QueryRewardsAuctionResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsAuctionResponse) XXX_Size ¶
func (m *QueryRewardsAuctionResponse) XXX_Size() int
func (*QueryRewardsAuctionResponse) XXX_Unmarshal ¶
func (m *QueryRewardsAuctionResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsAuctions ¶
type QueryRewardsAuctions struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
Query type for QueryRewardsAuctions
func (*QueryRewardsAuctions) Descriptor ¶
func (*QueryRewardsAuctions) Descriptor() ([]byte, []int)
func (*QueryRewardsAuctions) Marshal ¶
func (m *QueryRewardsAuctions) Marshal() (dAtA []byte, err error)
func (*QueryRewardsAuctions) MarshalTo ¶
func (m *QueryRewardsAuctions) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsAuctions) MarshalToSizedBuffer ¶
func (m *QueryRewardsAuctions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsAuctions) ProtoMessage ¶
func (*QueryRewardsAuctions) ProtoMessage()
func (*QueryRewardsAuctions) Reset ¶
func (m *QueryRewardsAuctions) Reset()
func (*QueryRewardsAuctions) Size ¶
func (m *QueryRewardsAuctions) Size() (n int)
func (*QueryRewardsAuctions) String ¶
func (m *QueryRewardsAuctions) String() string
func (*QueryRewardsAuctions) Unmarshal ¶
func (m *QueryRewardsAuctions) Unmarshal(dAtA []byte) error
func (*QueryRewardsAuctions) XXX_DiscardUnknown ¶
func (m *QueryRewardsAuctions) XXX_DiscardUnknown()
func (*QueryRewardsAuctions) XXX_Marshal ¶
func (m *QueryRewardsAuctions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsAuctions) XXX_Merge ¶
func (m *QueryRewardsAuctions) XXX_Merge(src proto.Message)
func (*QueryRewardsAuctions) XXX_Size ¶
func (m *QueryRewardsAuctions) XXX_Size() int
func (*QueryRewardsAuctions) XXX_Unmarshal ¶
func (m *QueryRewardsAuctions) XXX_Unmarshal(b []byte) error
type QueryRewardsAuctionsResponse ¶
type QueryRewardsAuctionsResponse struct { Auctions []*QueryRewardsAuctionResponse `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryRewardsAuctionsResponse is response type for Query/QueryRewardsAuctions
func (*QueryRewardsAuctionsResponse) Descriptor ¶
func (*QueryRewardsAuctionsResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsAuctionsResponse) Marshal ¶
func (m *QueryRewardsAuctionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsAuctionsResponse) MarshalTo ¶
func (m *QueryRewardsAuctionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsAuctionsResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsAuctionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsAuctionsResponse) ProtoMessage ¶
func (*QueryRewardsAuctionsResponse) ProtoMessage()
func (*QueryRewardsAuctionsResponse) Reset ¶
func (m *QueryRewardsAuctionsResponse) Reset()
func (*QueryRewardsAuctionsResponse) Size ¶
func (m *QueryRewardsAuctionsResponse) Size() (n int)
func (*QueryRewardsAuctionsResponse) String ¶
func (m *QueryRewardsAuctionsResponse) String() string
func (*QueryRewardsAuctionsResponse) Unmarshal ¶
func (m *QueryRewardsAuctionsResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsAuctionsResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsAuctionsResponse) XXX_DiscardUnknown()
func (*QueryRewardsAuctionsResponse) XXX_Marshal ¶
func (m *QueryRewardsAuctionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsAuctionsResponse) XXX_Merge ¶
func (m *QueryRewardsAuctionsResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsAuctionsResponse) XXX_Size ¶
func (m *QueryRewardsAuctionsResponse) XXX_Size() int
func (*QueryRewardsAuctionsResponse) XXX_Unmarshal ¶
func (m *QueryRewardsAuctionsResponse) XXX_Unmarshal(b []byte) error
type QueryRewardsParams ¶
type QueryRewardsParams struct { }
Query type for Query/RewardsParams
func (*QueryRewardsParams) Descriptor ¶
func (*QueryRewardsParams) Descriptor() ([]byte, []int)
func (*QueryRewardsParams) Marshal ¶
func (m *QueryRewardsParams) Marshal() (dAtA []byte, err error)
func (*QueryRewardsParams) MarshalTo ¶
func (m *QueryRewardsParams) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsParams) MarshalToSizedBuffer ¶
func (m *QueryRewardsParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsParams) ProtoMessage ¶
func (*QueryRewardsParams) ProtoMessage()
func (*QueryRewardsParams) Reset ¶
func (m *QueryRewardsParams) Reset()
func (*QueryRewardsParams) Size ¶
func (m *QueryRewardsParams) Size() (n int)
func (*QueryRewardsParams) String ¶
func (m *QueryRewardsParams) String() string
func (*QueryRewardsParams) Unmarshal ¶
func (m *QueryRewardsParams) Unmarshal(dAtA []byte) error
func (*QueryRewardsParams) XXX_DiscardUnknown ¶
func (m *QueryRewardsParams) XXX_DiscardUnknown()
func (*QueryRewardsParams) XXX_Marshal ¶
func (m *QueryRewardsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsParams) XXX_Merge ¶
func (m *QueryRewardsParams) XXX_Merge(src proto.Message)
func (*QueryRewardsParams) XXX_Size ¶
func (m *QueryRewardsParams) XXX_Size() int
func (*QueryRewardsParams) XXX_Unmarshal ¶
func (m *QueryRewardsParams) XXX_Unmarshal(b []byte) error
type QueryRewardsParamsResponse ¶
type QueryRewardsParamsResponse struct {
Params RewardsParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
Response type for Query/RewardsParams
func (*QueryRewardsParamsResponse) Descriptor ¶
func (*QueryRewardsParamsResponse) Descriptor() ([]byte, []int)
func (*QueryRewardsParamsResponse) Marshal ¶
func (m *QueryRewardsParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardsParamsResponse) MarshalTo ¶
func (m *QueryRewardsParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardsParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardsParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardsParamsResponse) ProtoMessage ¶
func (*QueryRewardsParamsResponse) ProtoMessage()
func (*QueryRewardsParamsResponse) Reset ¶
func (m *QueryRewardsParamsResponse) Reset()
func (*QueryRewardsParamsResponse) Size ¶
func (m *QueryRewardsParamsResponse) Size() (n int)
func (*QueryRewardsParamsResponse) String ¶
func (m *QueryRewardsParamsResponse) String() string
func (*QueryRewardsParamsResponse) Unmarshal ¶
func (m *QueryRewardsParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardsParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardsParamsResponse) XXX_DiscardUnknown()
func (*QueryRewardsParamsResponse) XXX_Marshal ¶
func (m *QueryRewardsParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardsParamsResponse) XXX_Merge ¶
func (m *QueryRewardsParamsResponse) XXX_Merge(src proto.Message)
func (*QueryRewardsParamsResponse) XXX_Size ¶
func (m *QueryRewardsParamsResponse) XXX_Size() int
func (*QueryRewardsParamsResponse) XXX_Unmarshal ¶
func (m *QueryRewardsParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // QueryRewardParams queries parameters for the reward auciton. RewardsParams(context.Context, *QueryRewardsParams) (*QueryRewardsParamsResponse, error) // RewardAuction queries the information of the auction by ID. If ID is ommitted, returns // current reward auction. RewardsAuction(context.Context, *QueryRewardsAuction) (*QueryRewardsAuctionResponse, error) // RewardsAuctions returns all reward auctions. RewardsAuctions(context.Context, *QueryRewardsAuctions) (*QueryRewardsAuctionsResponse, error) }
QueryServer is the server API for Query service.
type Rewards ¶
type Rewards struct { Rewards []types.Coin `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` EndsAt time.Time `protobuf:"bytes,2,opt,name=ends_at,json=endsAt,proto3,stdtime" json:"ends_at"` }
Auction Rewards
func (*Rewards) Descriptor ¶
func (*Rewards) MarshalToSizedBuffer ¶
func (*Rewards) ProtoMessage ¶
func (*Rewards) ProtoMessage()
func (*Rewards) XXX_DiscardUnknown ¶
func (m *Rewards) XXX_DiscardUnknown()
func (*Rewards) XXX_Marshal ¶
func (*Rewards) XXX_Unmarshal ¶
type RewardsKV ¶
type RewardsKV struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Rewards Rewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards"` }
RewardsKV combines a storage key (id) an value (rewards)
func (*RewardsKV) Descriptor ¶
func (*RewardsKV) MarshalToSizedBuffer ¶
func (*RewardsKV) ProtoMessage ¶
func (*RewardsKV) ProtoMessage()
func (*RewardsKV) XXX_DiscardUnknown ¶
func (m *RewardsKV) XXX_DiscardUnknown()
func (*RewardsKV) XXX_Marshal ¶
func (*RewardsKV) XXX_Unmarshal ¶
type RewardsParams ¶
type RewardsParams struct { // bid_duration is duration of the bid phase in seconds. BidDuration int64 `protobuf:"varint,1,opt,name=bid_duration,json=bidDuration,proto3" json:"bid_duration,omitempty"` }
RewardsParams defines parameters for the rewards auction.
func (*RewardsParams) Descriptor ¶
func (*RewardsParams) Descriptor() ([]byte, []int)
func (*RewardsParams) Marshal ¶
func (m *RewardsParams) Marshal() (dAtA []byte, err error)
func (*RewardsParams) MarshalToSizedBuffer ¶
func (m *RewardsParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardsParams) ProtoMessage ¶
func (*RewardsParams) ProtoMessage()
func (*RewardsParams) Reset ¶
func (m *RewardsParams) Reset()
func (*RewardsParams) Size ¶
func (m *RewardsParams) Size() (n int)
func (*RewardsParams) String ¶
func (m *RewardsParams) String() string
func (*RewardsParams) Unmarshal ¶
func (m *RewardsParams) Unmarshal(dAtA []byte) error
func (*RewardsParams) XXX_DiscardUnknown ¶
func (m *RewardsParams) XXX_DiscardUnknown()
func (*RewardsParams) XXX_Marshal ¶
func (m *RewardsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardsParams) XXX_Merge ¶
func (m *RewardsParams) XXX_Merge(src proto.Message)
func (*RewardsParams) XXX_Size ¶
func (m *RewardsParams) XXX_Size() int
func (*RewardsParams) XXX_Unmarshal ¶
func (m *RewardsParams) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) GovSetRewardsParams ¶
func (*UnimplementedMsgServer) GovSetRewardsParams(ctx context.Context, req *MsgGovSetRewardsParams) (*MsgGovSetRewardsParamsResponse, error)
func (*UnimplementedMsgServer) RewardsBid ¶
func (*UnimplementedMsgServer) RewardsBid(ctx context.Context, req *MsgRewardsBid) (*MsgRewardsBidResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) RewardsAuction ¶
func (*UnimplementedQueryServer) RewardsAuction(ctx context.Context, req *QueryRewardsAuction) (*QueryRewardsAuctionResponse, error)
func (*UnimplementedQueryServer) RewardsAuctions ¶
func (*UnimplementedQueryServer) RewardsAuctions(ctx context.Context, req *QueryRewardsAuctions) (*QueryRewardsAuctionsResponse, error)
func (*UnimplementedQueryServer) RewardsParams ¶
func (*UnimplementedQueryServer) RewardsParams(ctx context.Context, req *QueryRewardsParams) (*QueryRewardsParamsResponse, error)