auction

package
v6.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

README

Auction

Summary

We propose a new Cosmos SDK module, that will provide mechanism for protocol owned auctions.

UX Chain will now auction a portion of collected fees and introduce a token burning mechanism, unlocking a way to a potentially deflationary UX token.

Rewards Auction

Rewards Auction will auction portion of protocol collected fees against the UX token. The winner of the auction will receive the rewards, while the bid UX tokens will be burned. This mechanism offers several potential benefits, including:

  • Counter the inflation mechanism. When burn rate is higher than the staking inflation, then the token supply can go into deflation mode.
  • The regular burning of UX tokens demonstrates a commitment to the long-term success of the project.
  • Access to a privileged functionality: when burning UX tokens, users will access the protocol revenues.
Mechanism

Burn mechanism will be implemented as a part of a new native module. The auction is composed from two phases:

  • bid collection: during this phase, everyone pledges UX tokens to auction revenues basket. At the end of this phase, the EndBlocker executes the auction and rewards the highest bidder.
  • revenue collection: time when we collect revenues for each auction. The revenue collection phase for auction a_(n+1) starts at the end of auction a_n. This way, bidders know exactly the amount of revenues collected for a_(n+1) .

Any UX token holder can place a bid to buy the basket. At the end of the bid collection phase we settle the auction.

If, during a bid collection phase, we didn’t get any bid, then the revenues are rolled over to the next auction.

timeline
    title Auction Timelines
    auction_1 revenue collection
    auction_2 revenue collection: auction_1 bids
    auction_3 revenue collection: auction_2 bids
Parameters
  1. duration : time duration when we collect bids for the current auction. Initial value: 14 days.
  2. min_bid is the minimum increase of the previous bid or the minimum bid if it's the
  3. auction_account: an account receiving protocol revenues and managing the burn auction. This will be a sub-module account, and used to share with x/leverage and x/metoken modules.

We also extend leverage and metoken params:

  1. leverage params.rewards_auction_fee: the interest increase that will be accrued on borrows that is sent to the auction module for the rewards auction. So, 2% means, that there is additional 2% per year fee collected.
  2. metoken params.rewards_auction_fee_factor: determines the portion of total fees collected by the metoken module that will go for the rewards auction. 2% means that 2% of collected fees will go to the rewards auction.
Storage
  • last_bid
  • reward_auction_id : current auction ID.
  • rewards_auction_end: current auction end time.
Settlement

The settlement of a given auction occurs when blockTime ≥ rewards_auction_end. If a non-zero UX bid was placed during this period (i.e. there exists a bid), the following procedure will take place:

  • The winning UX bid amount is burned.
  • The basket of coins held by the auction module is transferred to the winning bidder.
  • EventRewardsAuctionResult is emitted.
  • The last_bid is cleared.

Finally, we do:

  • The reward_auction_id is incremented by 1 and the current_rewards_auction_end is set to now + auction_duration.
  • TODO: The accumulated exchange fees are transferred to the auction module for the new upcoming auction.
Collecting revenues
x/leverage

Two new x/leverage params will have to be defined (as part of the x/leverage params):

  • leverage_revenue_rate: We should take a fraction of the lending fees, and send it to the auction_account every day using x/leverage EndBlocker.
    • TODO: need to think about the EndBlocker implementation or find something more efficient.
    • For example, if the ATOM pool is earning 5% yield every week, we should take 1/5th of that yield ie. 1% and set it aside to be auctioned every week against UMEE (UX token) and UMEE UX will be burnt
  • LeveragePools affected:
    • This should only be applied to the largest pools: Atom, Celestia, USDC
    • The logic behind this is that these are the only pools that have enough liquidity to warrant taking a fraction of the lending yield
    • Smaller pools do not have enough activity to warrant taking away yield from the lenders
      • additionally smaller pools do not have enough borrowers
x/metoken

All fees generated by meTokens will be allocated to the auction_account.

  • This is to replace the reward replacement model proposed above

Documentation

Overview

Package auction is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "auction"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
)

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 (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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 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

View Source
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 EmitFundRewardsAuction

func EmitFundRewardsAuction(ctx *sdk.Context, coins sdk.Coins)

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

func ValidateMinRewardsBid

func ValidateMinRewardsBid(min sdkmath.Int, bid sdk.Coin) error

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) Descriptor() ([]byte, []int)

func (*Bid) Marshal

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

func (*Bid) MarshalTo

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

func (*Bid) MarshalToSizedBuffer

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

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) Reset

func (m *Bid) Reset()

func (*Bid) Size

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

func (*Bid) String

func (m *Bid) String() string

func (*Bid) Unmarshal

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

func (*Bid) XXX_DiscardUnknown

func (m *Bid) XXX_DiscardUnknown()

func (*Bid) XXX_Marshal

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

func (*Bid) XXX_Merge

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

func (*Bid) XXX_Size

func (m *Bid) XXX_Size() int

func (*Bid) XXX_Unmarshal

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

type 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) Descriptor() ([]byte, []int)

func (*BidKV) Marshal

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

func (*BidKV) MarshalTo

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

func (*BidKV) MarshalToSizedBuffer

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

func (*BidKV) ProtoMessage

func (*BidKV) ProtoMessage()

func (*BidKV) Reset

func (m *BidKV) Reset()

func (*BidKV) Size

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

func (*BidKV) String

func (m *BidKV) String() string

func (*BidKV) Unmarshal

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

func (*BidKV) XXX_DiscardUnknown

func (m *BidKV) XXX_DiscardUnknown()

func (*BidKV) XXX_Marshal

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

func (*BidKV) XXX_Merge

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

func (*BidKV) XXX_Size

func (m *BidKV) XXX_Size() int

func (*BidKV) XXX_Unmarshal

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

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

func (m *EventRewardsBid) MarshalTo(dAtA []byte) (int, 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) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) Validate

func (gs *GenesisState) Validate() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type 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 (*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) MarshalTo

func (m *MsgRewardsBid) MarshalTo(dAtA []byte) (int, 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) Route

func (msg MsgRewardsBid) Route() string

LegacyMsg.Type implementations

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 (*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) Descriptor() ([]byte, []int)

func (*Rewards) Marshal

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

func (*Rewards) MarshalTo

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

func (*Rewards) MarshalToSizedBuffer

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

func (*Rewards) ProtoMessage

func (*Rewards) ProtoMessage()

func (*Rewards) Reset

func (m *Rewards) Reset()

func (*Rewards) Size

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

func (*Rewards) String

func (m *Rewards) String() string

func (*Rewards) Unmarshal

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

func (*Rewards) XXX_DiscardUnknown

func (m *Rewards) XXX_DiscardUnknown()

func (*Rewards) XXX_Marshal

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

func (*Rewards) XXX_Merge

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

func (*Rewards) XXX_Size

func (m *Rewards) XXX_Size() int

func (*Rewards) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*RewardsKV) Marshal

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

func (*RewardsKV) MarshalTo

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

func (*RewardsKV) MarshalToSizedBuffer

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

func (*RewardsKV) ProtoMessage

func (*RewardsKV) ProtoMessage()

func (*RewardsKV) Reset

func (m *RewardsKV) Reset()

func (*RewardsKV) Size

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

func (*RewardsKV) String

func (m *RewardsKV) String() string

func (*RewardsKV) Unmarshal

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

func (*RewardsKV) XXX_DiscardUnknown

func (m *RewardsKV) XXX_DiscardUnknown()

func (*RewardsKV) XXX_Marshal

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

func (*RewardsKV) XXX_Merge

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

func (*RewardsKV) XXX_Size

func (m *RewardsKV) XXX_Size() int

func (*RewardsKV) XXX_Unmarshal

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

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

func (m *RewardsParams) MarshalTo(dAtA []byte) (int, 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) RewardsBid

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) RewardsAuction

func (*UnimplementedQueryServer) RewardsAuctions

func (*UnimplementedQueryServer) RewardsParams

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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