incentive

package
v0.1.0-nebula.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package incentive is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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 (
	ErrInvalidLengthIncentive        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIncentive          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIncentive = 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")
)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Bond

type Bond struct {
	Account string     `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Tier    uint32     `protobuf:"varint,2,opt,name=tier,proto3" json:"tier,omitempty"`
	Amount  types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

Bond tracks the amount of coins of one uToken denomination bonded to a given reward tier by a single account.

func (*Bond) Descriptor

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

func (*Bond) GetAccount

func (m *Bond) GetAccount() string

func (*Bond) GetAmount

func (m *Bond) GetAmount() types.Coin

func (*Bond) GetTier

func (m *Bond) GetTier() uint32

func (*Bond) Marshal

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

func (*Bond) MarshalTo

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

func (*Bond) MarshalToSizedBuffer

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

func (*Bond) ProtoMessage

func (*Bond) ProtoMessage()

func (*Bond) Reset

func (m *Bond) Reset()

func (*Bond) Size

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

func (*Bond) String

func (m *Bond) String() string

func (*Bond) Unmarshal

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

func (*Bond) XXX_DiscardUnknown

func (m *Bond) XXX_DiscardUnknown()

func (*Bond) XXX_Marshal

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

func (*Bond) XXX_Merge

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

func (*Bond) XXX_Size

func (m *Bond) XXX_Size() int

func (*Bond) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params             Params                                   `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	CompletedPrograms  []IncentiveProgram                       `protobuf:"bytes,2,rep,name=completed_programs,json=completedPrograms,proto3" json:"completed_programs"`
	OngoingPrograms    []IncentiveProgram                       `protobuf:"bytes,3,rep,name=ongoing_programs,json=ongoingPrograms,proto3" json:"ongoing_programs"`
	UpcomingPrograms   []IncentiveProgram                       `protobuf:"bytes,4,rep,name=upcoming_programs,json=upcomingPrograms,proto3" json:"upcoming_programs"`
	NextProgramId      uint32                                   `protobuf:"varint,5,opt,name=next_program_id,json=nextProgramId,proto3" json:"next_program_id,omitempty"`
	LastRewardsTime    uint64                                   `protobuf:"varint,6,opt,name=last_rewards_time,json=lastRewardsTime,proto3" json:"last_rewards_time,omitempty"`
	TotalBonded        github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
	Bonds              []Bond                                   `protobuf:"bytes,8,rep,name=bonds,proto3" json:"bonds"`
	PendingRewards     []PendingReward                          `protobuf:"bytes,9,rep,name=pending_rewards,json=pendingRewards,proto3" json:"pending_rewards"`
	RewardBases        []RewardTracker                          `protobuf:"bytes,10,rep,name=reward_bases,json=rewardBases,proto3" json:"reward_bases"`
	RewardAccumulators []RewardAccumulator                      `protobuf:"bytes,11,rep,name=reward_accumulators,json=rewardAccumulators,proto3" json:"reward_accumulators"`
	Unbondings         []Unbonding                              `protobuf:"bytes,12,rep,name=unbondings,proto3" json:"unbondings"`
}

GenesisState defines the x/incentive module's genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBonds

func (m *GenesisState) GetBonds() []Bond

func (*GenesisState) GetCompletedPrograms

func (m *GenesisState) GetCompletedPrograms() []IncentiveProgram

func (*GenesisState) GetLastRewardsTime

func (m *GenesisState) GetLastRewardsTime() uint64

func (*GenesisState) GetNextProgramId

func (m *GenesisState) GetNextProgramId() uint32

func (*GenesisState) GetOngoingPrograms

func (m *GenesisState) GetOngoingPrograms() []IncentiveProgram

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPendingRewards

func (m *GenesisState) GetPendingRewards() []PendingReward

func (*GenesisState) GetRewardAccumulators

func (m *GenesisState) GetRewardAccumulators() []RewardAccumulator

func (*GenesisState) GetRewardBases

func (m *GenesisState) GetRewardBases() []RewardTracker

func (*GenesisState) GetTotalBonded

func (*GenesisState) GetUnbondings

func (m *GenesisState) GetUnbondings() []Unbonding

func (*GenesisState) GetUpcomingPrograms

func (m *GenesisState) GetUpcomingPrograms() []IncentiveProgram

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

type IncentiveProgram struct {
	// ID uniquely identifies the incentive program after it has been created.
	// It is zero when the program is being proposed by governance.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// start_time is the unix time (in seconds) at which the incentives begin.
	StartTime uint64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// duration is the length of the incentive program in seconds.
	Duration uint64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
	// denom is the incentivized uToken collateral.
	Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
	// total_rewards are total amount of rewards which can be distributed to
	// suppliers by this program. This is set to its final value when the program
	// is proposed by governance.
	TotalRewards types.Coin `` /* 141-byte string literal not displayed */
	// funded_rewards are total amount of rewards which have been funded by a
	// sponsor to this program. This is zero until the program is both passed
	// by governance and funded.
	FundedRewards types.Coin `` /* 144-byte string literal not displayed */
	// remaining_rewards are total amount of this program's funded rewards
	// which have not yet been allocated to suppliers. This is zero until the
	// program is both passed by governance and funded, then begins decreasing
	// to zero as the program runs to completion.
	RemainingRewards types.Coin `` /* 153-byte string literal not displayed */
}

IncentiveProgram defines a liquidity mining incentive program on a single locked uToken denom that will run for a set amount of time.

func (*IncentiveProgram) Descriptor

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

func (*IncentiveProgram) Equal

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

func (*IncentiveProgram) GetDenom

func (m *IncentiveProgram) GetDenom() string

func (*IncentiveProgram) GetDuration

func (m *IncentiveProgram) GetDuration() uint64

func (*IncentiveProgram) GetFundedRewards

func (m *IncentiveProgram) GetFundedRewards() types.Coin

func (*IncentiveProgram) GetId

func (m *IncentiveProgram) GetId() uint32

func (*IncentiveProgram) GetRemainingRewards

func (m *IncentiveProgram) GetRemainingRewards() types.Coin

func (*IncentiveProgram) GetStartTime

func (m *IncentiveProgram) GetStartTime() uint64

func (*IncentiveProgram) GetTotalRewards

func (m *IncentiveProgram) GetTotalRewards() types.Coin

func (*IncentiveProgram) Marshal

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

func (*IncentiveProgram) MarshalTo

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

func (*IncentiveProgram) MarshalToSizedBuffer

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

func (*IncentiveProgram) ProtoMessage

func (*IncentiveProgram) ProtoMessage()

func (*IncentiveProgram) Reset

func (m *IncentiveProgram) Reset()

func (*IncentiveProgram) Size

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

func (*IncentiveProgram) String

func (m *IncentiveProgram) String() string

func (*IncentiveProgram) Unmarshal

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

func (*IncentiveProgram) XXX_DiscardUnknown

func (m *IncentiveProgram) XXX_DiscardUnknown()

func (*IncentiveProgram) XXX_Marshal

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

func (*IncentiveProgram) XXX_Merge

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

func (*IncentiveProgram) XXX_Size

func (m *IncentiveProgram) XXX_Size() int

func (*IncentiveProgram) XXX_Unmarshal

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

type MsgBeginUnbonding

type MsgBeginUnbonding struct {
	Account string     `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Tier    uint32     `protobuf:"varint,2,opt,name=tier,proto3" json:"tier,omitempty"`
	Asset   types.Coin `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset"`
}

MsgBeginUnbonding represents a account's request to begin unbonding uToken collateral.

func (*MsgBeginUnbonding) Descriptor

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

func (*MsgBeginUnbonding) GetAccount

func (m *MsgBeginUnbonding) GetAccount() string

func (*MsgBeginUnbonding) GetAsset

func (m *MsgBeginUnbonding) GetAsset() types.Coin

func (*MsgBeginUnbonding) GetTier

func (m *MsgBeginUnbonding) GetTier() uint32

func (*MsgBeginUnbonding) Marshal

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

func (*MsgBeginUnbonding) MarshalTo

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

func (*MsgBeginUnbonding) MarshalToSizedBuffer

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

func (*MsgBeginUnbonding) ProtoMessage

func (*MsgBeginUnbonding) ProtoMessage()

func (*MsgBeginUnbonding) Reset

func (m *MsgBeginUnbonding) Reset()

func (*MsgBeginUnbonding) Size

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

func (*MsgBeginUnbonding) String

func (m *MsgBeginUnbonding) String() string

func (*MsgBeginUnbonding) Unmarshal

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

func (*MsgBeginUnbonding) XXX_DiscardUnknown

func (m *MsgBeginUnbonding) XXX_DiscardUnknown()

func (*MsgBeginUnbonding) XXX_Marshal

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

func (*MsgBeginUnbonding) XXX_Merge

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

func (*MsgBeginUnbonding) XXX_Size

func (m *MsgBeginUnbonding) XXX_Size() int

func (*MsgBeginUnbonding) XXX_Unmarshal

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

type MsgBeginUnbondingResponse

type MsgBeginUnbondingResponse struct {
}

MsgBeginUnbondingResponse defines the Msg/BeginUnbonding response type.

func (*MsgBeginUnbondingResponse) Descriptor

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

func (*MsgBeginUnbondingResponse) Marshal

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

func (*MsgBeginUnbondingResponse) MarshalTo

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

func (*MsgBeginUnbondingResponse) MarshalToSizedBuffer

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

func (*MsgBeginUnbondingResponse) ProtoMessage

func (*MsgBeginUnbondingResponse) ProtoMessage()

func (*MsgBeginUnbondingResponse) Reset

func (m *MsgBeginUnbondingResponse) Reset()

func (*MsgBeginUnbondingResponse) Size

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

func (*MsgBeginUnbondingResponse) String

func (m *MsgBeginUnbondingResponse) String() string

func (*MsgBeginUnbondingResponse) Unmarshal

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

func (*MsgBeginUnbondingResponse) XXX_DiscardUnknown

func (m *MsgBeginUnbondingResponse) XXX_DiscardUnknown()

func (*MsgBeginUnbondingResponse) XXX_Marshal

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

func (*MsgBeginUnbondingResponse) XXX_Merge

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

func (*MsgBeginUnbondingResponse) XXX_Size

func (m *MsgBeginUnbondingResponse) XXX_Size() int

func (*MsgBeginUnbondingResponse) XXX_Unmarshal

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

type MsgBond

type MsgBond struct {
	Account string     `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Tier    uint32     `protobuf:"varint,2,opt,name=tier,proto3" json:"tier,omitempty"`
	Asset   types.Coin `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset"`
}

MsgBond represents a account's request to bond uToken collateral.

func (*MsgBond) Descriptor

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

func (*MsgBond) GetAccount

func (m *MsgBond) GetAccount() string

func (*MsgBond) GetAsset

func (m *MsgBond) GetAsset() types.Coin

func (*MsgBond) GetTier

func (m *MsgBond) GetTier() uint32

func (*MsgBond) Marshal

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

func (*MsgBond) MarshalTo

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

func (*MsgBond) MarshalToSizedBuffer

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

func (*MsgBond) ProtoMessage

func (*MsgBond) ProtoMessage()

func (*MsgBond) Reset

func (m *MsgBond) Reset()

func (*MsgBond) Size

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

func (*MsgBond) String

func (m *MsgBond) String() string

func (*MsgBond) Unmarshal

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

func (*MsgBond) XXX_DiscardUnknown

func (m *MsgBond) XXX_DiscardUnknown()

func (*MsgBond) XXX_Marshal

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

func (*MsgBond) XXX_Merge

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

func (*MsgBond) XXX_Size

func (m *MsgBond) XXX_Size() int

func (*MsgBond) XXX_Unmarshal

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

type MsgBondResponse

type MsgBondResponse struct {
}

MsgBondResponse defines the Msg/Lock response type.

func (*MsgBondResponse) Descriptor

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

func (*MsgBondResponse) Marshal

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

func (*MsgBondResponse) MarshalTo

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

func (*MsgBondResponse) MarshalToSizedBuffer

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

func (*MsgBondResponse) ProtoMessage

func (*MsgBondResponse) ProtoMessage()

func (*MsgBondResponse) Reset

func (m *MsgBondResponse) Reset()

func (*MsgBondResponse) Size

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

func (*MsgBondResponse) String

func (m *MsgBondResponse) String() string

func (*MsgBondResponse) Unmarshal

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

func (*MsgBondResponse) XXX_DiscardUnknown

func (m *MsgBondResponse) XXX_DiscardUnknown()

func (*MsgBondResponse) XXX_Marshal

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

func (*MsgBondResponse) XXX_Merge

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

func (*MsgBondResponse) XXX_Size

func (m *MsgBondResponse) XXX_Size() int

func (*MsgBondResponse) XXX_Unmarshal

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

type MsgClaim

type MsgClaim struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

MsgClaim represents a account's request to claim pending rewards.

func (*MsgClaim) Descriptor

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

func (*MsgClaim) GetAccount

func (m *MsgClaim) GetAccount() string

func (*MsgClaim) Marshal

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

func (*MsgClaim) MarshalTo

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

func (*MsgClaim) MarshalToSizedBuffer

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

func (*MsgClaim) ProtoMessage

func (*MsgClaim) ProtoMessage()

func (*MsgClaim) Reset

func (m *MsgClaim) Reset()

func (*MsgClaim) Size

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

func (*MsgClaim) String

func (m *MsgClaim) String() string

func (*MsgClaim) Unmarshal

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

func (*MsgClaim) XXX_DiscardUnknown

func (m *MsgClaim) XXX_DiscardUnknown()

func (*MsgClaim) XXX_Marshal

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

func (*MsgClaim) XXX_Merge

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

func (*MsgClaim) XXX_Size

func (m *MsgClaim) XXX_Size() int

func (*MsgClaim) XXX_Unmarshal

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

type MsgClaimResponse

type MsgClaimResponse struct {
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgClaimResponse defines the Msg/Claim response type.

func (*MsgClaimResponse) Descriptor

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

func (*MsgClaimResponse) GetAmount

func (*MsgClaimResponse) Marshal

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

func (*MsgClaimResponse) MarshalTo

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

func (*MsgClaimResponse) MarshalToSizedBuffer

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

func (*MsgClaimResponse) ProtoMessage

func (*MsgClaimResponse) ProtoMessage()

func (*MsgClaimResponse) Reset

func (m *MsgClaimResponse) Reset()

func (*MsgClaimResponse) Size

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

func (*MsgClaimResponse) String

func (m *MsgClaimResponse) String() string

func (*MsgClaimResponse) Unmarshal

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

func (*MsgClaimResponse) XXX_DiscardUnknown

func (m *MsgClaimResponse) XXX_DiscardUnknown()

func (*MsgClaimResponse) XXX_Marshal

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

func (*MsgClaimResponse) XXX_Merge

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

func (*MsgClaimResponse) XXX_Size

func (m *MsgClaimResponse) XXX_Size() int

func (*MsgClaimResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Claim defines a method for claiming any pending incentive rewards.
	Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, error)
	// Bond defines a method for bonding uToken collateral into reward tier.
	Bond(ctx context.Context, in *MsgBond, opts ...grpc.CallOption) (*MsgBondResponse, error)
	// BeginUnbonding defines a method for starting to unbond uToken collateral.
	BeginUnbonding(ctx context.Context, in *MsgBeginUnbonding, opts ...grpc.CallOption) (*MsgBeginUnbondingResponse, error)
	// Sponsor defines a permissionless method for sponsoring an upcoming, not yet funded incentive program.
	// In the current implementation, the sponsor must be a single account and the MsgSponsor must fully cover the expected program rewards.
	Sponsor(ctx context.Context, in *MsgSponsor, opts ...grpc.CallOption) (*MsgSponsorResponse, error)
	// GovSetParams is used by governance proposals to update parameters.
	GovSetParams(ctx context.Context, in *MsgGovSetParams, opts ...grpc.CallOption) (*MsgGovSetParamsResponse, error)
	// GovCreateProgram is used by governance proposals to create (but not fund) an incentive program.
	GovCreateProgram(ctx context.Context, in *MsgGovCreateProgram, opts ...grpc.CallOption) (*MsgGovCreateProgramResponse, 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 MsgGovCreateProgram

type MsgGovCreateProgram struct {
	// authority must be the address of the governance account.
	Authority   string           `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Title       string           `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string           `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Program     IncentiveProgram `protobuf:"bytes,4,opt,name=program,proto3" json:"program"`
	// from_community_fund defines the source of funds for a proposed incentive program.
	FromCommunityFund bool `protobuf:"varint,5,opt,name=from_community_fund,json=fromCommunityFund,proto3" json:"from_community_fund,omitempty"`
}

MsgGovCreateProgram is used by governance to create an incentive program. There are two funding scenarios, depending on from_community_fund. If it is true,the program's total rewards will be automatically withdrawn from the (parameter) community_fund_address to the incentive module account when this message is passed. (Insufficient funds cause the parameter to be treated as false.) If it is false, a MsgSponsor fundign the program's full amount must be submitted after this message passes, but before the program's start_time, or the program will be cancelled when it would otherwise start.

func (*MsgGovCreateProgram) Descriptor

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

func (*MsgGovCreateProgram) Equal

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

func (*MsgGovCreateProgram) Marshal

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

func (*MsgGovCreateProgram) MarshalTo

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

func (*MsgGovCreateProgram) MarshalToSizedBuffer

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

func (*MsgGovCreateProgram) ProtoMessage

func (*MsgGovCreateProgram) ProtoMessage()

func (*MsgGovCreateProgram) Reset

func (m *MsgGovCreateProgram) Reset()

func (*MsgGovCreateProgram) Size

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

func (*MsgGovCreateProgram) String

func (m *MsgGovCreateProgram) String() string

func (*MsgGovCreateProgram) Unmarshal

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

func (*MsgGovCreateProgram) XXX_DiscardUnknown

func (m *MsgGovCreateProgram) XXX_DiscardUnknown()

func (*MsgGovCreateProgram) XXX_Marshal

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

func (*MsgGovCreateProgram) XXX_Merge

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

func (*MsgGovCreateProgram) XXX_Size

func (m *MsgGovCreateProgram) XXX_Size() int

func (*MsgGovCreateProgram) XXX_Unmarshal

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

type MsgGovCreateProgramResponse

type MsgGovCreateProgramResponse struct {
}

MsgGovCreateProgramResponse defines the Msg/CreateProgram response type.

func (*MsgGovCreateProgramResponse) Descriptor

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

func (*MsgGovCreateProgramResponse) Marshal

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

func (*MsgGovCreateProgramResponse) MarshalTo

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

func (*MsgGovCreateProgramResponse) MarshalToSizedBuffer

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

func (*MsgGovCreateProgramResponse) ProtoMessage

func (*MsgGovCreateProgramResponse) ProtoMessage()

func (*MsgGovCreateProgramResponse) Reset

func (m *MsgGovCreateProgramResponse) Reset()

func (*MsgGovCreateProgramResponse) Size

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

func (*MsgGovCreateProgramResponse) String

func (m *MsgGovCreateProgramResponse) String() string

func (*MsgGovCreateProgramResponse) Unmarshal

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

func (*MsgGovCreateProgramResponse) XXX_DiscardUnknown

func (m *MsgGovCreateProgramResponse) XXX_DiscardUnknown()

func (*MsgGovCreateProgramResponse) XXX_Marshal

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

func (*MsgGovCreateProgramResponse) XXX_Merge

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

func (*MsgGovCreateProgramResponse) XXX_Size

func (m *MsgGovCreateProgramResponse) XXX_Size() int

func (*MsgGovCreateProgramResponse) XXX_Unmarshal

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

type MsgGovSetParams

type MsgGovSetParams struct {
	// authority must be the address of the governance account.
	Authority   string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Params      Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params"`
}

MsgGovSetParams is used by governance to update module parameters.

func (*MsgGovSetParams) Descriptor

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

func (*MsgGovSetParams) Equal

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

func (*MsgGovSetParams) Marshal

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

func (*MsgGovSetParams) MarshalTo

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

func (*MsgGovSetParams) MarshalToSizedBuffer

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

func (*MsgGovSetParams) ProtoMessage

func (*MsgGovSetParams) ProtoMessage()

func (*MsgGovSetParams) Reset

func (m *MsgGovSetParams) Reset()

func (*MsgGovSetParams) Size

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

func (*MsgGovSetParams) String

func (m *MsgGovSetParams) String() string

func (*MsgGovSetParams) Unmarshal

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

func (*MsgGovSetParams) XXX_DiscardUnknown

func (m *MsgGovSetParams) XXX_DiscardUnknown()

func (*MsgGovSetParams) XXX_Marshal

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

func (*MsgGovSetParams) XXX_Merge

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

func (*MsgGovSetParams) XXX_Size

func (m *MsgGovSetParams) XXX_Size() int

func (*MsgGovSetParams) XXX_Unmarshal

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

type MsgGovSetParamsResponse

type MsgGovSetParamsResponse struct {
}

MsgGovSetParamsResponse defines the Msg/SetParams response type.

func (*MsgGovSetParamsResponse) Descriptor

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

func (*MsgGovSetParamsResponse) Marshal

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

func (*MsgGovSetParamsResponse) MarshalTo

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

func (*MsgGovSetParamsResponse) MarshalToSizedBuffer

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

func (*MsgGovSetParamsResponse) ProtoMessage

func (*MsgGovSetParamsResponse) ProtoMessage()

func (*MsgGovSetParamsResponse) Reset

func (m *MsgGovSetParamsResponse) Reset()

func (*MsgGovSetParamsResponse) Size

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

func (*MsgGovSetParamsResponse) String

func (m *MsgGovSetParamsResponse) String() string

func (*MsgGovSetParamsResponse) Unmarshal

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

func (*MsgGovSetParamsResponse) XXX_DiscardUnknown

func (m *MsgGovSetParamsResponse) XXX_DiscardUnknown()

func (*MsgGovSetParamsResponse) XXX_Marshal

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

func (*MsgGovSetParamsResponse) XXX_Merge

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

func (*MsgGovSetParamsResponse) XXX_Size

func (m *MsgGovSetParamsResponse) XXX_Size() int

func (*MsgGovSetParamsResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Claim defines a method for claiming any pending incentive rewards.
	Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error)
	// Bond defines a method for bonding uToken collateral into reward tier.
	Bond(context.Context, *MsgBond) (*MsgBondResponse, error)
	// BeginUnbonding defines a method for starting to unbond uToken collateral.
	BeginUnbonding(context.Context, *MsgBeginUnbonding) (*MsgBeginUnbondingResponse, error)
	// Sponsor defines a permissionless method for sponsoring an upcoming, not yet funded incentive program.
	// In the current implementation, the sponsor must be a single account and the MsgSponsor must fully cover the expected program rewards.
	Sponsor(context.Context, *MsgSponsor) (*MsgSponsorResponse, error)
	// GovSetParams is used by governance proposals to update parameters.
	GovSetParams(context.Context, *MsgGovSetParams) (*MsgGovSetParamsResponse, error)
	// GovCreateProgram is used by governance proposals to create (but not fund) an incentive program.
	GovCreateProgram(context.Context, *MsgGovCreateProgram) (*MsgGovCreateProgramResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSponsor

type MsgSponsor struct {
	// Sponsor bech32 account address
	Sponsor string     `protobuf:"bytes,1,opt,name=sponsor,proto3" json:"sponsor,omitempty"`
	Program uint32     `protobuf:"varint,2,opt,name=program,proto3" json:"program,omitempty"`
	Asset   types.Coin `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset"`
}

MsgSponsor represents a sponsor's request to fund rewards for an incentive program. The program must have been passed by governance, not yet started, and not yet funded. Funded assets must be the full amount required by the program.

func (*MsgSponsor) Descriptor

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

func (*MsgSponsor) GetAsset

func (m *MsgSponsor) GetAsset() types.Coin

func (*MsgSponsor) GetProgram

func (m *MsgSponsor) GetProgram() uint32

func (*MsgSponsor) GetSponsor

func (m *MsgSponsor) GetSponsor() string

func (*MsgSponsor) Marshal

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

func (*MsgSponsor) MarshalTo

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

func (*MsgSponsor) MarshalToSizedBuffer

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

func (*MsgSponsor) ProtoMessage

func (*MsgSponsor) ProtoMessage()

func (*MsgSponsor) Reset

func (m *MsgSponsor) Reset()

func (*MsgSponsor) Size

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

func (*MsgSponsor) String

func (m *MsgSponsor) String() string

func (*MsgSponsor) Unmarshal

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

func (*MsgSponsor) XXX_DiscardUnknown

func (m *MsgSponsor) XXX_DiscardUnknown()

func (*MsgSponsor) XXX_Marshal

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

func (*MsgSponsor) XXX_Merge

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

func (*MsgSponsor) XXX_Size

func (m *MsgSponsor) XXX_Size() int

func (*MsgSponsor) XXX_Unmarshal

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

type MsgSponsorResponse

type MsgSponsorResponse struct {
}

MsgSponsorResponse defines the Msg/Sponsor response type.

func (*MsgSponsorResponse) Descriptor

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

func (*MsgSponsorResponse) Marshal

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

func (*MsgSponsorResponse) MarshalTo

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

func (*MsgSponsorResponse) MarshalToSizedBuffer

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

func (*MsgSponsorResponse) ProtoMessage

func (*MsgSponsorResponse) ProtoMessage()

func (*MsgSponsorResponse) Reset

func (m *MsgSponsorResponse) Reset()

func (*MsgSponsorResponse) Size

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

func (*MsgSponsorResponse) String

func (m *MsgSponsorResponse) String() string

func (*MsgSponsorResponse) Unmarshal

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

func (*MsgSponsorResponse) XXX_DiscardUnknown

func (m *MsgSponsorResponse) XXX_DiscardUnknown()

func (*MsgSponsorResponse) XXX_Marshal

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

func (*MsgSponsorResponse) XXX_Merge

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

func (*MsgSponsorResponse) XXX_Size

func (m *MsgSponsorResponse) XXX_Size() int

func (*MsgSponsorResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// max_unbondings defines the maximum amount of concurrent unbondings an address can have.
	MaxUnbondings uint32 `protobuf:"varint,1,opt,name=max_unbondings,json=maxUnbondings,proto3" json:"max_unbondings,omitempty"`
	// unbonding_duration_long defines the unbonding duration (in seconds) of the long tier.
	UnbondingDurationLong uint64 `` /* 127-byte string literal not displayed */
	// unbonding_duration_middle defines the unbonding duration (in seconds) of the middle tier.
	UnbondingDurationMiddle uint64 `` /* 133-byte string literal not displayed */
	// unbonding_duration_short defines the unbonding duration (in seconds) of the short tier.
	UnbondingDurationShort uint64 `` /* 130-byte string literal not displayed */
	// tier_weight_short defines the proportion of rewards which assets bonded
	// in the short unbonding duration receive compared to what the same amount
	// would receive bonded to the long tier.
	// valid values: [0;1]
	TierWeightShort github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */
	// tier_weight_middle defines the proportion of rewards which assets bonded
	// in the middle unbonding duration receive compared to what the same amount
	// would receive bonded to the long tier.
	// valid values: [0;1]
	TierWeightMiddle github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */
	// community_fund_address is the address from which all incentive programs
	// proposed with "from_community_fund = true" will receive their funding.
	// Since funds are withdrawn automatically when an incentive program passes
	// governance, this account should always contain sufficient balance to
	// cover incentive programs which are being voted upon.
	CommunityFundAddress string `protobuf:"bytes,7,opt,name=community_fund_address,json=communityFundAddress,proto3" json:"community_fund_address,omitempty"`
}

Params defines the parameters for the incentive module.

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetCommunityFundAddress

func (m *Params) GetCommunityFundAddress() string

func (*Params) GetMaxUnbondings

func (m *Params) GetMaxUnbondings() uint32

func (*Params) GetUnbondingDurationLong

func (m *Params) GetUnbondingDurationLong() uint64

func (*Params) GetUnbondingDurationMiddle

func (m *Params) GetUnbondingDurationMiddle() uint64

func (*Params) GetUnbondingDurationShort

func (m *Params) GetUnbondingDurationShort() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PendingReward

type PendingReward struct {
	Account       string                                   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	PendingReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

PendingReward tracks the amount of rewards that a given account has calculated but not yet claimed.

func (*PendingReward) Descriptor

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

func (*PendingReward) GetAccount

func (m *PendingReward) GetAccount() string

func (*PendingReward) GetPendingReward

func (*PendingReward) Marshal

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

func (*PendingReward) MarshalTo

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

func (*PendingReward) MarshalToSizedBuffer

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

func (*PendingReward) ProtoMessage

func (*PendingReward) ProtoMessage()

func (*PendingReward) Reset

func (m *PendingReward) Reset()

func (*PendingReward) Size

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

func (*PendingReward) String

func (m *PendingReward) String() string

func (*PendingReward) Unmarshal

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

func (*PendingReward) XXX_DiscardUnknown

func (m *PendingReward) XXX_DiscardUnknown()

func (*PendingReward) XXX_Marshal

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

func (*PendingReward) XXX_Merge

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

func (*PendingReward) XXX_Size

func (m *PendingReward) XXX_Size() int

func (*PendingReward) XXX_Unmarshal

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

type QueryBonded

type QueryBonded struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryBonded defines the request structure for the Bonded gRPC service handler.

func (*QueryBonded) Descriptor

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

func (*QueryBonded) GetAddress

func (m *QueryBonded) GetAddress() string

func (*QueryBonded) Marshal

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

func (*QueryBonded) MarshalTo

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

func (*QueryBonded) MarshalToSizedBuffer

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

func (*QueryBonded) ProtoMessage

func (*QueryBonded) ProtoMessage()

func (*QueryBonded) Reset

func (m *QueryBonded) Reset()

func (*QueryBonded) Size

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

func (*QueryBonded) String

func (m *QueryBonded) String() string

func (*QueryBonded) Unmarshal

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

func (*QueryBonded) XXX_DiscardUnknown

func (m *QueryBonded) XXX_DiscardUnknown()

func (*QueryBonded) XXX_Marshal

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

func (*QueryBonded) XXX_Merge

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

func (*QueryBonded) XXX_Size

func (m *QueryBonded) XXX_Size() int

func (*QueryBonded) XXX_Unmarshal

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

type QueryBondedResponse

type QueryBondedResponse struct {
	Bonded []TotalBond `protobuf:"bytes,1,rep,name=bonded,proto3" json:"bonded"`
}

QueryBondedResponse defines the response structure for the Bonded gRPC service handler.

func (*QueryBondedResponse) Descriptor

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

func (*QueryBondedResponse) GetBonded

func (m *QueryBondedResponse) GetBonded() []TotalBond

func (*QueryBondedResponse) Marshal

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

func (*QueryBondedResponse) MarshalTo

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

func (*QueryBondedResponse) MarshalToSizedBuffer

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

func (*QueryBondedResponse) ProtoMessage

func (*QueryBondedResponse) ProtoMessage()

func (*QueryBondedResponse) Reset

func (m *QueryBondedResponse) Reset()

func (*QueryBondedResponse) Size

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

func (*QueryBondedResponse) String

func (m *QueryBondedResponse) String() string

func (*QueryBondedResponse) Unmarshal

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

func (*QueryBondedResponse) XXX_DiscardUnknown

func (m *QueryBondedResponse) XXX_DiscardUnknown()

func (*QueryBondedResponse) XXX_Marshal

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

func (*QueryBondedResponse) XXX_Merge

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

func (*QueryBondedResponse) XXX_Size

func (m *QueryBondedResponse) XXX_Size() int

func (*QueryBondedResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries the parameters of the x/incentive module.
	Params(ctx context.Context, in *QueryParams, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// PendingRewards queries unclaimed incentive rewards associated with an account.
	PendingRewards(ctx context.Context, in *QueryPendingRewards, opts ...grpc.CallOption) (*QueryPendingRewardsResponse, error)
	// Bonded queries all bonded collateral uTokens associated with an account.
	Bonded(ctx context.Context, in *QueryBonded, opts ...grpc.CallOption) (*QueryBondedResponse, error)
	// Unbondings queries all current uToken unbondings associated with an account.
	Unbondings(ctx context.Context, in *QueryUnbondings, opts ...grpc.CallOption) (*QueryUnbondingsResponse, error)
	// TotalBonded queries the sum of all bonded collateral uTokens, separated by tier.
	TotalBonded(ctx context.Context, in *QueryTotalBonded, opts ...grpc.CallOption) (*QueryTotalBondedResponse, error)
	// CompletedIncentivePrograms queries for all incentives programs that have been passed
	// by governance, and either run to completion or expired immediately due to not being funded.
	CompletedIncentivePrograms(ctx context.Context, in *QueryCompletedIncentivePrograms, opts ...grpc.CallOption) (*QueryCompletedIncentiveProgramsResponse, error)
	// OngoingIncentivePrograms queries for all incentives programs that have been passed
	// by governance, funded, and started but not yet completed.
	OngoingIncentivePrograms(ctx context.Context, in *QueryOngoingIncentivePrograms, opts ...grpc.CallOption) (*QueryOngoingIncentiveProgramsResponse, error)
	// UpcomingIncentivePrograms queries for all incentives programs that have been passed
	// by governance, but not yet started. They may or may not have been funded.
	UpcomingIncentivePrograms(ctx context.Context, in *QueryUpcomingIncentivePrograms, opts ...grpc.CallOption) (*QueryUpcomingIncentiveProgramsResponse, error)
	// IncentiveProgram queries a single incentive program by ID.
	IncentiveProgram(ctx context.Context, in *QueryIncentiveProgram, opts ...grpc.CallOption) (*QueryIncentiveProgramResponse, 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 QueryCompletedIncentivePrograms

type QueryCompletedIncentivePrograms struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCompletedIncentivePrograms defines the request structure for the CompletedIncentivePrograms gRPC service handler.

func (*QueryCompletedIncentivePrograms) Descriptor

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

func (*QueryCompletedIncentivePrograms) GetPagination

func (*QueryCompletedIncentivePrograms) Marshal

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

func (*QueryCompletedIncentivePrograms) MarshalTo

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

func (*QueryCompletedIncentivePrograms) MarshalToSizedBuffer

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

func (*QueryCompletedIncentivePrograms) ProtoMessage

func (*QueryCompletedIncentivePrograms) ProtoMessage()

func (*QueryCompletedIncentivePrograms) Reset

func (*QueryCompletedIncentivePrograms) Size

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

func (*QueryCompletedIncentivePrograms) String

func (*QueryCompletedIncentivePrograms) Unmarshal

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

func (*QueryCompletedIncentivePrograms) XXX_DiscardUnknown

func (m *QueryCompletedIncentivePrograms) XXX_DiscardUnknown()

func (*QueryCompletedIncentivePrograms) XXX_Marshal

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

func (*QueryCompletedIncentivePrograms) XXX_Merge

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

func (*QueryCompletedIncentivePrograms) XXX_Size

func (m *QueryCompletedIncentivePrograms) XXX_Size() int

func (*QueryCompletedIncentivePrograms) XXX_Unmarshal

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

type QueryCompletedIncentiveProgramsResponse

type QueryCompletedIncentiveProgramsResponse struct {
	Programs []IncentiveProgram `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCompletedIncentiveProgramsResponse defines the response structure for the CompletedIncentivePrograms gRPC service handler.

func (*QueryCompletedIncentiveProgramsResponse) Descriptor

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

func (*QueryCompletedIncentiveProgramsResponse) GetPagination

func (*QueryCompletedIncentiveProgramsResponse) GetPrograms

func (*QueryCompletedIncentiveProgramsResponse) Marshal

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

func (*QueryCompletedIncentiveProgramsResponse) MarshalTo

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

func (*QueryCompletedIncentiveProgramsResponse) MarshalToSizedBuffer

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

func (*QueryCompletedIncentiveProgramsResponse) ProtoMessage

func (*QueryCompletedIncentiveProgramsResponse) Reset

func (*QueryCompletedIncentiveProgramsResponse) Size

func (*QueryCompletedIncentiveProgramsResponse) String

func (*QueryCompletedIncentiveProgramsResponse) Unmarshal

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

func (*QueryCompletedIncentiveProgramsResponse) XXX_DiscardUnknown

func (m *QueryCompletedIncentiveProgramsResponse) XXX_DiscardUnknown()

func (*QueryCompletedIncentiveProgramsResponse) XXX_Marshal

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

func (*QueryCompletedIncentiveProgramsResponse) XXX_Merge

func (*QueryCompletedIncentiveProgramsResponse) XXX_Size

func (*QueryCompletedIncentiveProgramsResponse) XXX_Unmarshal

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

type QueryIncentiveProgram

type QueryIncentiveProgram struct {
	// ID specifies which program to query for
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryIncentiveProgram defines the request structure for the IncentiveProgram gRPC service handler.

func (*QueryIncentiveProgram) Descriptor

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

func (*QueryIncentiveProgram) GetId

func (m *QueryIncentiveProgram) GetId() uint32

func (*QueryIncentiveProgram) Marshal

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

func (*QueryIncentiveProgram) MarshalTo

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

func (*QueryIncentiveProgram) MarshalToSizedBuffer

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

func (*QueryIncentiveProgram) ProtoMessage

func (*QueryIncentiveProgram) ProtoMessage()

func (*QueryIncentiveProgram) Reset

func (m *QueryIncentiveProgram) Reset()

func (*QueryIncentiveProgram) Size

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

func (*QueryIncentiveProgram) String

func (m *QueryIncentiveProgram) String() string

func (*QueryIncentiveProgram) Unmarshal

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

func (*QueryIncentiveProgram) XXX_DiscardUnknown

func (m *QueryIncentiveProgram) XXX_DiscardUnknown()

func (*QueryIncentiveProgram) XXX_Marshal

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

func (*QueryIncentiveProgram) XXX_Merge

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

func (*QueryIncentiveProgram) XXX_Size

func (m *QueryIncentiveProgram) XXX_Size() int

func (*QueryIncentiveProgram) XXX_Unmarshal

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

type QueryIncentiveProgramResponse

type QueryIncentiveProgramResponse struct {
	Program IncentiveProgram `protobuf:"bytes,1,opt,name=program,proto3" json:"program"`
}

QueryIncentivePrograResponse defines the response structure for the IncentiveProgram gRPC service handler.

func (*QueryIncentiveProgramResponse) Descriptor

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

func (*QueryIncentiveProgramResponse) GetProgram

func (*QueryIncentiveProgramResponse) Marshal

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

func (*QueryIncentiveProgramResponse) MarshalTo

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

func (*QueryIncentiveProgramResponse) MarshalToSizedBuffer

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

func (*QueryIncentiveProgramResponse) ProtoMessage

func (*QueryIncentiveProgramResponse) ProtoMessage()

func (*QueryIncentiveProgramResponse) Reset

func (m *QueryIncentiveProgramResponse) Reset()

func (*QueryIncentiveProgramResponse) Size

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

func (*QueryIncentiveProgramResponse) String

func (*QueryIncentiveProgramResponse) Unmarshal

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

func (*QueryIncentiveProgramResponse) XXX_DiscardUnknown

func (m *QueryIncentiveProgramResponse) XXX_DiscardUnknown()

func (*QueryIncentiveProgramResponse) XXX_Marshal

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

func (*QueryIncentiveProgramResponse) XXX_Merge

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

func (*QueryIncentiveProgramResponse) XXX_Size

func (m *QueryIncentiveProgramResponse) XXX_Size() int

func (*QueryIncentiveProgramResponse) XXX_Unmarshal

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

type QueryOngoingIncentivePrograms

type QueryOngoingIncentivePrograms struct {
}

QueryOngoingIncentivePrograms defines the request structure for the OngoingIncentivePrograms and UpcomingIncentivePrograms gRPC service handlers.

func (*QueryOngoingIncentivePrograms) Descriptor

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

func (*QueryOngoingIncentivePrograms) Marshal

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

func (*QueryOngoingIncentivePrograms) MarshalTo

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

func (*QueryOngoingIncentivePrograms) MarshalToSizedBuffer

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

func (*QueryOngoingIncentivePrograms) ProtoMessage

func (*QueryOngoingIncentivePrograms) ProtoMessage()

func (*QueryOngoingIncentivePrograms) Reset

func (m *QueryOngoingIncentivePrograms) Reset()

func (*QueryOngoingIncentivePrograms) Size

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

func (*QueryOngoingIncentivePrograms) String

func (*QueryOngoingIncentivePrograms) Unmarshal

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

func (*QueryOngoingIncentivePrograms) XXX_DiscardUnknown

func (m *QueryOngoingIncentivePrograms) XXX_DiscardUnknown()

func (*QueryOngoingIncentivePrograms) XXX_Marshal

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

func (*QueryOngoingIncentivePrograms) XXX_Merge

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

func (*QueryOngoingIncentivePrograms) XXX_Size

func (m *QueryOngoingIncentivePrograms) XXX_Size() int

func (*QueryOngoingIncentivePrograms) XXX_Unmarshal

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

type QueryOngoingIncentiveProgramsResponse

type QueryOngoingIncentiveProgramsResponse struct {
	Programs []IncentiveProgram `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs"`
}

QueryOngoingIncentiveProgramsResponse defines the response structure for the OngoingIncentivePrograms and UpcomingIncentivePrograms gRPC service handlers.

func (*QueryOngoingIncentiveProgramsResponse) Descriptor

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

func (*QueryOngoingIncentiveProgramsResponse) GetPrograms

func (*QueryOngoingIncentiveProgramsResponse) Marshal

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

func (*QueryOngoingIncentiveProgramsResponse) MarshalTo

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

func (*QueryOngoingIncentiveProgramsResponse) MarshalToSizedBuffer

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

func (*QueryOngoingIncentiveProgramsResponse) ProtoMessage

func (*QueryOngoingIncentiveProgramsResponse) ProtoMessage()

func (*QueryOngoingIncentiveProgramsResponse) Reset

func (*QueryOngoingIncentiveProgramsResponse) Size

func (*QueryOngoingIncentiveProgramsResponse) String

func (*QueryOngoingIncentiveProgramsResponse) Unmarshal

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

func (*QueryOngoingIncentiveProgramsResponse) XXX_DiscardUnknown

func (m *QueryOngoingIncentiveProgramsResponse) XXX_DiscardUnknown()

func (*QueryOngoingIncentiveProgramsResponse) XXX_Marshal

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

func (*QueryOngoingIncentiveProgramsResponse) XXX_Merge

func (*QueryOngoingIncentiveProgramsResponse) XXX_Size

func (*QueryOngoingIncentiveProgramsResponse) XXX_Unmarshal

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

type QueryParams

type QueryParams struct {
}

QueryParams defines the request structure for the Params gRPC service handler.

func (*QueryParams) Descriptor

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

func (*QueryParams) Marshal

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

func (*QueryParams) MarshalTo

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

func (*QueryParams) MarshalToSizedBuffer

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

func (*QueryParams) ProtoMessage

func (*QueryParams) ProtoMessage()

func (*QueryParams) Reset

func (m *QueryParams) Reset()

func (*QueryParams) Size

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

func (*QueryParams) String

func (m *QueryParams) String() string

func (*QueryParams) Unmarshal

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

func (*QueryParams) XXX_DiscardUnknown

func (m *QueryParams) XXX_DiscardUnknown()

func (*QueryParams) XXX_Marshal

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

func (*QueryParams) XXX_Merge

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

func (*QueryParams) XXX_Size

func (m *QueryParams) XXX_Size() int

func (*QueryParams) XXX_Unmarshal

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

type QueryParamsResponse

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

QueryParamsResponse defines the response structure for the Params gRPC service handler.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryPendingRewards

type QueryPendingRewards struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryPendingRewards defines the request structure for the PendingRewards gRPC service handler.

func (*QueryPendingRewards) Descriptor

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

func (*QueryPendingRewards) GetAddress

func (m *QueryPendingRewards) GetAddress() string

func (*QueryPendingRewards) Marshal

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

func (*QueryPendingRewards) MarshalTo

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

func (*QueryPendingRewards) MarshalToSizedBuffer

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

func (*QueryPendingRewards) ProtoMessage

func (*QueryPendingRewards) ProtoMessage()

func (*QueryPendingRewards) Reset

func (m *QueryPendingRewards) Reset()

func (*QueryPendingRewards) Size

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

func (*QueryPendingRewards) String

func (m *QueryPendingRewards) String() string

func (*QueryPendingRewards) Unmarshal

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

func (*QueryPendingRewards) XXX_DiscardUnknown

func (m *QueryPendingRewards) XXX_DiscardUnknown()

func (*QueryPendingRewards) XXX_Marshal

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

func (*QueryPendingRewards) XXX_Merge

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

func (*QueryPendingRewards) XXX_Size

func (m *QueryPendingRewards) XXX_Size() int

func (*QueryPendingRewards) XXX_Unmarshal

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

type QueryPendingRewardsResponse

type QueryPendingRewardsResponse struct {
	Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"`
}

QueryPendingRewardsResponse defines the response structure for the PendingRewards gRPC service handler.

func (*QueryPendingRewardsResponse) Descriptor

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

func (*QueryPendingRewardsResponse) GetRewards

func (*QueryPendingRewardsResponse) Marshal

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

func (*QueryPendingRewardsResponse) MarshalTo

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

func (*QueryPendingRewardsResponse) MarshalToSizedBuffer

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

func (*QueryPendingRewardsResponse) ProtoMessage

func (*QueryPendingRewardsResponse) ProtoMessage()

func (*QueryPendingRewardsResponse) Reset

func (m *QueryPendingRewardsResponse) Reset()

func (*QueryPendingRewardsResponse) Size

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

func (*QueryPendingRewardsResponse) String

func (m *QueryPendingRewardsResponse) String() string

func (*QueryPendingRewardsResponse) Unmarshal

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

func (*QueryPendingRewardsResponse) XXX_DiscardUnknown

func (m *QueryPendingRewardsResponse) XXX_DiscardUnknown()

func (*QueryPendingRewardsResponse) XXX_Marshal

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

func (*QueryPendingRewardsResponse) XXX_Merge

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

func (*QueryPendingRewardsResponse) XXX_Size

func (m *QueryPendingRewardsResponse) XXX_Size() int

func (*QueryPendingRewardsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries the parameters of the x/incentive module.
	Params(context.Context, *QueryParams) (*QueryParamsResponse, error)
	// PendingRewards queries unclaimed incentive rewards associated with an account.
	PendingRewards(context.Context, *QueryPendingRewards) (*QueryPendingRewardsResponse, error)
	// Bonded queries all bonded collateral uTokens associated with an account.
	Bonded(context.Context, *QueryBonded) (*QueryBondedResponse, error)
	// Unbondings queries all current uToken unbondings associated with an account.
	Unbondings(context.Context, *QueryUnbondings) (*QueryUnbondingsResponse, error)
	// TotalBonded queries the sum of all bonded collateral uTokens, separated by tier.
	TotalBonded(context.Context, *QueryTotalBonded) (*QueryTotalBondedResponse, error)
	// CompletedIncentivePrograms queries for all incentives programs that have been passed
	// by governance, and either run to completion or expired immediately due to not being funded.
	CompletedIncentivePrograms(context.Context, *QueryCompletedIncentivePrograms) (*QueryCompletedIncentiveProgramsResponse, error)
	// OngoingIncentivePrograms queries for all incentives programs that have been passed
	// by governance, funded, and started but not yet completed.
	OngoingIncentivePrograms(context.Context, *QueryOngoingIncentivePrograms) (*QueryOngoingIncentiveProgramsResponse, error)
	// UpcomingIncentivePrograms queries for all incentives programs that have been passed
	// by governance, but not yet started. They may or may not have been funded.
	UpcomingIncentivePrograms(context.Context, *QueryUpcomingIncentivePrograms) (*QueryUpcomingIncentiveProgramsResponse, error)
	// IncentiveProgram queries a single incentive program by ID.
	IncentiveProgram(context.Context, *QueryIncentiveProgram) (*QueryIncentiveProgramResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalBonded

type QueryTotalBonded struct {
}

QueryTotalBonded defines the request structure for the TotalBonded gRPC service handler.

func (*QueryTotalBonded) Descriptor

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

func (*QueryTotalBonded) Marshal

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

func (*QueryTotalBonded) MarshalTo

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

func (*QueryTotalBonded) MarshalToSizedBuffer

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

func (*QueryTotalBonded) ProtoMessage

func (*QueryTotalBonded) ProtoMessage()

func (*QueryTotalBonded) Reset

func (m *QueryTotalBonded) Reset()

func (*QueryTotalBonded) Size

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

func (*QueryTotalBonded) String

func (m *QueryTotalBonded) String() string

func (*QueryTotalBonded) Unmarshal

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

func (*QueryTotalBonded) XXX_DiscardUnknown

func (m *QueryTotalBonded) XXX_DiscardUnknown()

func (*QueryTotalBonded) XXX_Marshal

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

func (*QueryTotalBonded) XXX_Merge

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

func (*QueryTotalBonded) XXX_Size

func (m *QueryTotalBonded) XXX_Size() int

func (*QueryTotalBonded) XXX_Unmarshal

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

type QueryTotalBondedResponse

type QueryTotalBondedResponse struct {
	Bonded []TotalBond `protobuf:"bytes,1,rep,name=bonded,proto3" json:"bonded"`
}

QueryTotalBondedResponse defines the response structure for the TotalBonded gRPC service handler.

func (*QueryTotalBondedResponse) Descriptor

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

func (*QueryTotalBondedResponse) GetBonded

func (m *QueryTotalBondedResponse) GetBonded() []TotalBond

func (*QueryTotalBondedResponse) Marshal

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

func (*QueryTotalBondedResponse) MarshalTo

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

func (*QueryTotalBondedResponse) MarshalToSizedBuffer

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

func (*QueryTotalBondedResponse) ProtoMessage

func (*QueryTotalBondedResponse) ProtoMessage()

func (*QueryTotalBondedResponse) Reset

func (m *QueryTotalBondedResponse) Reset()

func (*QueryTotalBondedResponse) Size

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

func (*QueryTotalBondedResponse) String

func (m *QueryTotalBondedResponse) String() string

func (*QueryTotalBondedResponse) Unmarshal

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

func (*QueryTotalBondedResponse) XXX_DiscardUnknown

func (m *QueryTotalBondedResponse) XXX_DiscardUnknown()

func (*QueryTotalBondedResponse) XXX_Marshal

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

func (*QueryTotalBondedResponse) XXX_Merge

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

func (*QueryTotalBondedResponse) XXX_Size

func (m *QueryTotalBondedResponse) XXX_Size() int

func (*QueryTotalBondedResponse) XXX_Unmarshal

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

type QueryUnbondings

type QueryUnbondings struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryUnbondings defines the request structure for the Unbondings gRPC service handler.

func (*QueryUnbondings) Descriptor

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

func (*QueryUnbondings) GetAddress

func (m *QueryUnbondings) GetAddress() string

func (*QueryUnbondings) Marshal

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

func (*QueryUnbondings) MarshalTo

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

func (*QueryUnbondings) MarshalToSizedBuffer

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

func (*QueryUnbondings) ProtoMessage

func (*QueryUnbondings) ProtoMessage()

func (*QueryUnbondings) Reset

func (m *QueryUnbondings) Reset()

func (*QueryUnbondings) Size

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

func (*QueryUnbondings) String

func (m *QueryUnbondings) String() string

func (*QueryUnbondings) Unmarshal

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

func (*QueryUnbondings) XXX_DiscardUnknown

func (m *QueryUnbondings) XXX_DiscardUnknown()

func (*QueryUnbondings) XXX_Marshal

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

func (*QueryUnbondings) XXX_Merge

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

func (*QueryUnbondings) XXX_Size

func (m *QueryUnbondings) XXX_Size() int

func (*QueryUnbondings) XXX_Unmarshal

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

type QueryUnbondingsResponse

type QueryUnbondingsResponse struct {
	Unbondings []Unbonding `protobuf:"bytes,1,rep,name=unbondings,proto3" json:"unbondings"`
}

QueryUnbondingsResponse defines the response structure for the Unbondings gRPC service handler.

func (*QueryUnbondingsResponse) Descriptor

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

func (*QueryUnbondingsResponse) GetUnbondings

func (m *QueryUnbondingsResponse) GetUnbondings() []Unbonding

func (*QueryUnbondingsResponse) Marshal

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

func (*QueryUnbondingsResponse) MarshalTo

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

func (*QueryUnbondingsResponse) MarshalToSizedBuffer

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

func (*QueryUnbondingsResponse) ProtoMessage

func (*QueryUnbondingsResponse) ProtoMessage()

func (*QueryUnbondingsResponse) Reset

func (m *QueryUnbondingsResponse) Reset()

func (*QueryUnbondingsResponse) Size

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

func (*QueryUnbondingsResponse) String

func (m *QueryUnbondingsResponse) String() string

func (*QueryUnbondingsResponse) Unmarshal

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

func (*QueryUnbondingsResponse) XXX_DiscardUnknown

func (m *QueryUnbondingsResponse) XXX_DiscardUnknown()

func (*QueryUnbondingsResponse) XXX_Marshal

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

func (*QueryUnbondingsResponse) XXX_Merge

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

func (*QueryUnbondingsResponse) XXX_Size

func (m *QueryUnbondingsResponse) XXX_Size() int

func (*QueryUnbondingsResponse) XXX_Unmarshal

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

type QueryUpcomingIncentivePrograms

type QueryUpcomingIncentivePrograms struct {
}

QueryUpcomingIncentivePrograms defines the request structure for the OngoingIncentivePrograms and UpcomingIncentivePrograms gRPC service handlers.

func (*QueryUpcomingIncentivePrograms) Descriptor

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

func (*QueryUpcomingIncentivePrograms) Marshal

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

func (*QueryUpcomingIncentivePrograms) MarshalTo

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

func (*QueryUpcomingIncentivePrograms) MarshalToSizedBuffer

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

func (*QueryUpcomingIncentivePrograms) ProtoMessage

func (*QueryUpcomingIncentivePrograms) ProtoMessage()

func (*QueryUpcomingIncentivePrograms) Reset

func (m *QueryUpcomingIncentivePrograms) Reset()

func (*QueryUpcomingIncentivePrograms) Size

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

func (*QueryUpcomingIncentivePrograms) String

func (*QueryUpcomingIncentivePrograms) Unmarshal

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

func (*QueryUpcomingIncentivePrograms) XXX_DiscardUnknown

func (m *QueryUpcomingIncentivePrograms) XXX_DiscardUnknown()

func (*QueryUpcomingIncentivePrograms) XXX_Marshal

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

func (*QueryUpcomingIncentivePrograms) XXX_Merge

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

func (*QueryUpcomingIncentivePrograms) XXX_Size

func (m *QueryUpcomingIncentivePrograms) XXX_Size() int

func (*QueryUpcomingIncentivePrograms) XXX_Unmarshal

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

type QueryUpcomingIncentiveProgramsResponse

type QueryUpcomingIncentiveProgramsResponse struct {
	Programs []IncentiveProgram `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs"`
}

QueryUpcomingIncentiveProgramsResponse defines the response structure for the OngoingIncentivePrograms and UpcomingIncentivePrograms gRPC service handlers.

func (*QueryUpcomingIncentiveProgramsResponse) Descriptor

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

func (*QueryUpcomingIncentiveProgramsResponse) GetPrograms

func (*QueryUpcomingIncentiveProgramsResponse) Marshal

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

func (*QueryUpcomingIncentiveProgramsResponse) MarshalTo

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

func (*QueryUpcomingIncentiveProgramsResponse) MarshalToSizedBuffer

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

func (*QueryUpcomingIncentiveProgramsResponse) ProtoMessage

func (*QueryUpcomingIncentiveProgramsResponse) Reset

func (*QueryUpcomingIncentiveProgramsResponse) Size

func (*QueryUpcomingIncentiveProgramsResponse) String

func (*QueryUpcomingIncentiveProgramsResponse) Unmarshal

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

func (*QueryUpcomingIncentiveProgramsResponse) XXX_DiscardUnknown

func (m *QueryUpcomingIncentiveProgramsResponse) XXX_DiscardUnknown()

func (*QueryUpcomingIncentiveProgramsResponse) XXX_Marshal

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

func (*QueryUpcomingIncentiveProgramsResponse) XXX_Merge

func (*QueryUpcomingIncentiveProgramsResponse) XXX_Size

func (*QueryUpcomingIncentiveProgramsResponse) XXX_Unmarshal

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

type RewardAccumulator

type RewardAccumulator struct {
	Tier          uint32                                      `protobuf:"varint,1,opt,name=tier,proto3" json:"tier,omitempty"`
	Denom         string                                      `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	RewardTracker github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 147-byte string literal not displayed */
}

RewardAccumulator is a global reward tracking struct that indicates the amount of rewards that a single unit of denom would have acucmulated if it was bonded at a given tier since genesis.

func (*RewardAccumulator) Descriptor

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

func (*RewardAccumulator) GetDenom

func (m *RewardAccumulator) GetDenom() string

func (*RewardAccumulator) GetRewardTracker

func (*RewardAccumulator) GetTier

func (m *RewardAccumulator) GetTier() uint32

func (*RewardAccumulator) Marshal

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

func (*RewardAccumulator) MarshalTo

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

func (*RewardAccumulator) MarshalToSizedBuffer

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

func (*RewardAccumulator) ProtoMessage

func (*RewardAccumulator) ProtoMessage()

func (*RewardAccumulator) Reset

func (m *RewardAccumulator) Reset()

func (*RewardAccumulator) Size

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

func (*RewardAccumulator) String

func (m *RewardAccumulator) String() string

func (*RewardAccumulator) Unmarshal

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

func (*RewardAccumulator) XXX_DiscardUnknown

func (m *RewardAccumulator) XXX_DiscardUnknown()

func (*RewardAccumulator) XXX_Marshal

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

func (*RewardAccumulator) XXX_Merge

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

func (*RewardAccumulator) XXX_Size

func (m *RewardAccumulator) XXX_Size() int

func (*RewardAccumulator) XXX_Unmarshal

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

type RewardTracker

type RewardTracker struct {
	Account       string                                      `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Tier          uint32                                      `protobuf:"varint,2,opt,name=tier,proto3" json:"tier,omitempty"`
	Denom         string                                      `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	RewardTracker github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 147-byte string literal not displayed */
}

RewardTracker tracks the value of a given tier and lock denom's RewardAccumulator at the last time a specific account calculated pending rewards for it. When calculating available rewards, this value is used to determine the difference between the current RewardAccumulator for a tier and the last value at which the user updated bonds or claimed tokens. Their pending rewards increase by only the rewards accrued in that time period.

func (*RewardTracker) Descriptor

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

func (*RewardTracker) GetAccount

func (m *RewardTracker) GetAccount() string

func (*RewardTracker) GetDenom

func (m *RewardTracker) GetDenom() string

func (*RewardTracker) GetRewardTracker

func (*RewardTracker) GetTier

func (m *RewardTracker) GetTier() uint32

func (*RewardTracker) Marshal

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

func (*RewardTracker) MarshalTo

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

func (*RewardTracker) MarshalToSizedBuffer

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

func (*RewardTracker) ProtoMessage

func (*RewardTracker) ProtoMessage()

func (*RewardTracker) Reset

func (m *RewardTracker) Reset()

func (*RewardTracker) Size

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

func (*RewardTracker) String

func (m *RewardTracker) String() string

func (*RewardTracker) Unmarshal

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

func (*RewardTracker) XXX_DiscardUnknown

func (m *RewardTracker) XXX_DiscardUnknown()

func (*RewardTracker) XXX_Marshal

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

func (*RewardTracker) XXX_Merge

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

func (*RewardTracker) XXX_Size

func (m *RewardTracker) XXX_Size() int

func (*RewardTracker) XXX_Unmarshal

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

type TotalBond

type TotalBond struct {
	Tier   uint32     `protobuf:"varint,1,opt,name=tier,proto3" json:"tier,omitempty"`
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

TotalBond tracks the amount of coins of one uToken denomination bonded to a given reward tier without specifying an account.

func (*TotalBond) Descriptor

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

func (*TotalBond) GetAmount

func (m *TotalBond) GetAmount() types.Coin

func (*TotalBond) GetTier

func (m *TotalBond) GetTier() uint32

func (*TotalBond) Marshal

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

func (*TotalBond) MarshalTo

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

func (*TotalBond) MarshalToSizedBuffer

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

func (*TotalBond) ProtoMessage

func (*TotalBond) ProtoMessage()

func (*TotalBond) Reset

func (m *TotalBond) Reset()

func (*TotalBond) Size

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

func (*TotalBond) String

func (m *TotalBond) String() string

func (*TotalBond) Unmarshal

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

func (*TotalBond) XXX_DiscardUnknown

func (m *TotalBond) XXX_DiscardUnknown()

func (*TotalBond) XXX_Marshal

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

func (*TotalBond) XXX_Merge

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

func (*TotalBond) XXX_Size

func (m *TotalBond) XXX_Size() int

func (*TotalBond) XXX_Unmarshal

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

type Unbonding

type Unbonding struct {
	Account string     `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Tier    uint32     `protobuf:"varint,2,opt,name=tier,proto3" json:"tier,omitempty"`
	End     uint64     `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
	Amount  types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

Unbonding is a structure that tracks an in-progress token unbonding.

func (*Unbonding) Descriptor

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

func (*Unbonding) GetAccount

func (m *Unbonding) GetAccount() string

func (*Unbonding) GetAmount

func (m *Unbonding) GetAmount() types.Coin

func (*Unbonding) GetEnd

func (m *Unbonding) GetEnd() uint64

func (*Unbonding) GetTier

func (m *Unbonding) GetTier() uint32

func (*Unbonding) Marshal

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

func (*Unbonding) MarshalTo

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

func (*Unbonding) MarshalToSizedBuffer

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

func (*Unbonding) ProtoMessage

func (*Unbonding) ProtoMessage()

func (*Unbonding) Reset

func (m *Unbonding) Reset()

func (*Unbonding) Size

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

func (*Unbonding) String

func (m *Unbonding) String() string

func (*Unbonding) Unmarshal

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

func (*Unbonding) XXX_DiscardUnknown

func (m *Unbonding) XXX_DiscardUnknown()

func (*Unbonding) XXX_Marshal

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

func (*Unbonding) XXX_Merge

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

func (*Unbonding) XXX_Size

func (m *Unbonding) XXX_Size() int

func (*Unbonding) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BeginUnbonding

func (*UnimplementedMsgServer) Bond

func (*UnimplementedMsgServer) Claim

func (*UnimplementedMsgServer) GovCreateProgram

func (*UnimplementedMsgServer) GovSetParams

func (*UnimplementedMsgServer) Sponsor

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Bonded

func (*UnimplementedQueryServer) IncentiveProgram

func (*UnimplementedQueryServer) OngoingIncentivePrograms

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PendingRewards

func (*UnimplementedQueryServer) TotalBonded

func (*UnimplementedQueryServer) Unbondings

Jump to

Keyboard shortcuts

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