types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	USDXMintingClaimType           = "usdx_minting"
	HardLiquidityProviderClaimType = "hard_liquidity_provider"
	DelegatorClaimType             = "delegator_claim"
	SwapClaimType                  = "swap"
	SavingsClaimType               = "savings"
	EarnClaimType                  = "earn"
)
View Source
const (
	EventTypeClaim             = "claim_reward"
	EventTypeRewardPeriod      = "new_reward_period"
	EventTypeClaimPeriod       = "new_claim_period"
	EventTypeClaimPeriodExpiry = "claim_period_expiry"

	AttributeValueCategory   = ModuleName
	AttributeKeyClaimedBy    = "claimed_by"
	AttributeKeyClaimAmount  = "claim_amount"
	AttributeKeyClaimType    = "claim_type"
	AttributeKeyRewardPeriod = "reward_period"
	AttributeKeyClaimPeriod  = "claim_period"
)

Events emitted by the incentive module

View Source
const (
	// ModuleName The name that will be used throughout the module
	ModuleName = "incentive"

	// StoreKey Top level store key where all module items will be stored
	StoreKey = ModuleName

	// RouterKey Top level router key
	RouterKey = ModuleName

	// DefaultParamspace default name for parameter store
	DefaultParamspace = ModuleName

	// QuerierRoute route used for abci queries
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgClaimUSDXMintingReward = "claim_usdx_minting_reward"
	TypeMsgClaimHardReward        = "claim_hard_reward"
	TypeMsgClaimDelegatorReward   = "claim_delegator_reward"
	TypeMsgClaimSwapReward        = "claim_swap_reward"
	TypeMsgClaimSavingsReward     = "claim_savings_reward"
	TypeMsgClaimEarnReward        = "claim_earn_reward"
)
View Source
const (
	QueryGetHardRewards        = "hard-rewards"
	QueryGetUSDXMintingRewards = "usdx-minting-rewards"
	QueryGetDelegatorRewards   = "delegator-rewards"
	QueryGetSwapRewards        = "swap-rewards"
	QueryGetSavingsRewards     = "savings-rewards"
	QueryGetEarnRewards        = "earn-rewards"
	QueryGetRewardFactors      = "reward-factors"
	QueryGetParams             = "parameters"
	QueryGetAPYs               = "apys"

	RestClaimCollateralType = "collateral_type"
	RestClaimOwner          = "owner"
	RestClaimType           = "type"
	RestUnsynced            = "unsynced"
)

Querier routes for the incentive module

View Source
const MaxDenomsToClaim = 1000

Variables

View Source
var (
	ErrInvalidLengthApy        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApy          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApy = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthClaims        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClaims          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClaims = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrClaimNotFound                 = errorsmod.Register(ModuleName, 2, "no claimable rewards found for user")
	ErrRewardPeriodNotFound          = errorsmod.Register(ModuleName, 3, "no reward period found for collateral type")
	ErrInvalidAccountType            = errorsmod.Register(ModuleName, 4, "account type not supported")
	ErrNoClaimsFound                 = errorsmod.Register(ModuleName, 5, "no claimable rewards found")
	ErrInsufficientModAccountBalance = errorsmod.Register(ModuleName, 6, "module account has insufficient balance to pay claim")
	ErrAccountNotFound               = errorsmod.Register(ModuleName, 7, "account not found")
	ErrInvalidMultiplier             = errorsmod.Register(ModuleName, 8, "invalid rewards multiplier")
	ErrZeroClaim                     = errorsmod.Register(ModuleName, 9, "cannot claim - claim amount rounds to zero")
	ErrClaimExpired                  = errorsmod.Register(ModuleName, 10, "claim has expired")
	ErrInvalidClaimType              = errorsmod.Register(ModuleName, 11, "invalid claim type")
	ErrDecreasingRewardFactor        = errorsmod.Register(ModuleName, 13, "found new reward factor less than an old reward factor")
	ErrInvalidClaimDenoms            = errorsmod.Register(ModuleName, 14, "invalid claim denoms")
)

Incentive module errors

View Source
var (
	DefaultUSDXClaims         = USDXMintingClaims{}
	DefaultHardClaims         = HardLiquidityProviderClaims{}
	DefaultDelegatorClaims    = DelegatorClaims{}
	DefaultSwapClaims         = SwapClaims{}
	DefaultSavingsClaims      = SavingsClaims{}
	DefaultGenesisRewardState = NewGenesisRewardState(
		AccumulationTimes{},
		MultiRewardIndexes{},
	)
	DefaultEarnClaims = EarnClaims{}
)
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 (
	USDXMintingClaimKeyPrefix                     = []byte{0x01} // prefix for keys that store USDX minting claims
	USDXMintingRewardFactorKeyPrefix              = []byte{0x02} // prefix for key that stores USDX minting reward factors
	PreviousUSDXMintingRewardAccrualTimeKeyPrefix = []byte{0x03} // prefix for key that stores the blocktime
	HardLiquidityClaimKeyPrefix                   = []byte{0x04} // prefix for keys that store Hard liquidity claims
	HardSupplyRewardIndexesKeyPrefix              = []byte{0x05} // prefix for key that stores Hard supply reward indexes
	PreviousHardSupplyRewardAccrualTimeKeyPrefix  = []byte{0x06} // prefix for key that stores the previous time Hard supply rewards accrued
	HardBorrowRewardIndexesKeyPrefix              = []byte{0x07} // prefix for key that stores Hard borrow reward indexes
	PreviousHardBorrowRewardAccrualTimeKeyPrefix  = []byte{0x08} // prefix for key that stores the previous time Hard borrow rewards accrued
	DelegatorClaimKeyPrefix                       = []byte{0x09} // prefix for keys that store delegator claims
	DelegatorRewardIndexesKeyPrefix               = []byte{0x10} // prefix for key that stores delegator reward indexes
	PreviousDelegatorRewardAccrualTimeKeyPrefix   = []byte{0x11} // prefix for key that stores the previous time delegator rewards accrued
	SwapClaimKeyPrefix                            = []byte{0x12} // prefix for keys that store swap claims
	SwapRewardIndexesKeyPrefix                    = []byte{0x13} // prefix for key that stores swap reward indexes
	PreviousSwapRewardAccrualTimeKeyPrefix        = []byte{0x14} // prefix for key that stores the previous time swap rewards accrued
	SavingsClaimKeyPrefix                         = []byte{0x15} // prefix for keys that store savings claims
	SavingsRewardIndexesKeyPrefix                 = []byte{0x16} // prefix for key that stores savings reward indexes
	PreviousSavingsRewardAccrualTimeKeyPrefix     = []byte{0x17} // prefix for key that stores the previous time savings rewards accrued
	EarnClaimKeyPrefix                            = []byte{0x18} // prefix for keys that store earn claims
	EarnRewardIndexesKeyPrefix                    = []byte{0x19} // prefix for key that stores earn reward indexes
	PreviousEarnRewardAccrualTimeKeyPrefix        = []byte{0x20} // prefix for key that stores the previous time earn rewards accrued
)

Key Prefixes

View Source
var (
	KeyUSDXMintingRewardPeriods = []byte("USDXMintingRewardPeriods")
	KeyHardSupplyRewardPeriods  = []byte("HardSupplyRewardPeriods")
	KeyHardBorrowRewardPeriods  = []byte("HardBorrowRewardPeriods")
	KeyDelegatorRewardPeriods   = []byte("DelegatorRewardPeriods")
	KeySwapRewardPeriods        = []byte("SwapRewardPeriods")
	KeySavingsRewardPeriods     = []byte("SavingsRewardPeriods")
	KeyEarnRewardPeriods        = []byte("EarnRewardPeriods")
	KeyClaimEnd                 = []byte("ClaimEnd")
	KeyMultipliers              = []byte("ClaimMultipliers")

	DefaultActive             = false
	DefaultRewardPeriods      = RewardPeriods{}
	DefaultMultiRewardPeriods = MultiRewardPeriods{}
	DefaultMultipliers        = MultipliersPerDenoms{}
	DefaultClaimEnd           = tmtime.Canonical(time.Unix(1, 0))

	BondDenom              = "ufury"
	USDXMintingRewardDenom = "ufury"

	IncentiveMacc = furydistTypes.ModuleName
)

Parameter keys and default values

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func CalculatePerSecondRewards

func CalculatePerSecondRewards(
	periodStart time.Time,
	periodEnd time.Time,
	periodRewardsPerSecond sdk.DecCoins,
	previousTime, currentTime time.Time,
) (sdk.DecCoins, time.Time)

func GetTotalVestingPeriodLength

func GetTotalVestingPeriodLength(periods vestingtypes.Periods) int64

GetTotalVestingPeriodLength returns the summed length of all vesting periods

func NewPeriod

func NewPeriod(amount sdk.Coins, length int64) vestingtypes.Period

NewPeriod returns a new vesting period

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable Key declaration for parameters

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers all the necessary types and interfaces for the governance module.

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 APYs

type APYs []Apy

APYs is a slice of APY

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
}

AccountKeeper expected interface for the account keeper (noalias)

type AccumulationTime

type AccumulationTime struct {
	CollateralType           string    `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
	PreviousAccumulationTime time.Time `` /* 133-byte string literal not displayed */
}

AccumulationTime stores the previous reward distribution time and its corresponding collateral type

func NewAccumulationTime

func NewAccumulationTime(ctype string, prevTime time.Time) AccumulationTime

NewAccumulationTime returns a new GenesisAccumulationTime

func (*AccumulationTime) Descriptor

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

func (*AccumulationTime) Marshal

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

func (*AccumulationTime) MarshalTo

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

func (*AccumulationTime) MarshalToSizedBuffer

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

func (*AccumulationTime) ProtoMessage

func (*AccumulationTime) ProtoMessage()

func (*AccumulationTime) Reset

func (m *AccumulationTime) Reset()

func (*AccumulationTime) Size

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

func (*AccumulationTime) String

func (m *AccumulationTime) String() string

func (*AccumulationTime) Unmarshal

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

func (AccumulationTime) Validate

func (gat AccumulationTime) Validate() error

Validate performs validation of GenesisAccumulationTime

func (*AccumulationTime) XXX_DiscardUnknown

func (m *AccumulationTime) XXX_DiscardUnknown()

func (*AccumulationTime) XXX_Marshal

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

func (*AccumulationTime) XXX_Merge

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

func (*AccumulationTime) XXX_Size

func (m *AccumulationTime) XXX_Size() int

func (*AccumulationTime) XXX_Unmarshal

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

type AccumulationTimes

type AccumulationTimes []AccumulationTime

AccumulationTimes slice of GenesisAccumulationTime

func (AccumulationTimes) Validate

func (gats AccumulationTimes) Validate() error

Validate performs validation of GenesisAccumulationTimes

type Accumulator

type Accumulator struct {
	PreviousAccumulationTime time.Time
	Indexes                  RewardIndexes
}

An Accumulator handles calculating and tracking global reward distributions.

func NewAccumulator

func NewAccumulator(previousAccrual time.Time, indexes RewardIndexes) *Accumulator

func (*Accumulator) Accumulate

func (acc *Accumulator) Accumulate(period MultiRewardPeriod, totalSourceShares sdk.Dec, currentTime time.Time)

Accumulate accrues rewards up to the current time.

It calculates new rewards and adds them to the reward indexes for the period from PreviousAccumulationTime to currentTime. It stores the currentTime in PreviousAccumulationTime to be used for later accumulations.

Rewards are not accrued for times outside of the start and end times of a reward period. If a period ends before currentTime, the PreviousAccrualTime is shortened to the end time. This allows accumulate to be called sequentially on consecutive reward periods.

totalSourceShares is the sum of all users' source shares. For example:total btcb supplied to hard, total usdx borrowed from all bnb CDPs, or total shares in a swap pool.

func (*Accumulator) AccumulateDecCoins

func (acc *Accumulator) AccumulateDecCoins(
	periodStart time.Time,
	periodEnd time.Time,
	periodRewardsPerSecond sdk.DecCoins,
	totalSourceShares sdk.Dec,
	currentTime time.Time,
)

AccumulateDecCoins

type Apy

type Apy struct {
	CollateralType string                                 `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
	Apy            github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=apy,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"apy"`
}

Apy contains the calculated APY for a given collateral type at a specific instant in time.

func NewAPY

func NewAPY(collateralType string, apy sdk.Dec) Apy

NewAPY returns a new instance of APY

func (*Apy) Descriptor

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

func (*Apy) GetCollateralType

func (m *Apy) GetCollateralType() string

func (*Apy) Marshal

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

func (*Apy) MarshalTo

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

func (*Apy) MarshalToSizedBuffer

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

func (*Apy) ProtoMessage

func (*Apy) ProtoMessage()

func (*Apy) Reset

func (m *Apy) Reset()

func (*Apy) Size

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

func (*Apy) String

func (m *Apy) String() string

func (*Apy) Unmarshal

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

func (*Apy) XXX_DiscardUnknown

func (m *Apy) XXX_DiscardUnknown()

func (*Apy) XXX_Marshal

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

func (*Apy) XXX_Merge

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

func (*Apy) XXX_Size

func (m *Apy) XXX_Size() int

func (*Apy) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
}

BankKeeper defines the expected interface needed to send coins

type BaseClaim

type BaseClaim struct {
	Owner  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=owner,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"owner,omitempty"`
	Reward types.Coin                                    `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward"`
}

BaseClaim is a claim with a single reward coin types

func (*BaseClaim) Descriptor

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

func (BaseClaim) GetOwner

func (c BaseClaim) GetOwner() sdk.AccAddress

GetOwner is a getter for Claim Owner

func (BaseClaim) GetReward

func (c BaseClaim) GetReward() sdk.Coin

GetReward is a getter for Claim Reward

func (BaseClaim) GetType

func (c BaseClaim) GetType() string

GetType returns the claim type, used to identify auctions in event attributes

func (*BaseClaim) Marshal

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

func (*BaseClaim) MarshalTo

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

func (*BaseClaim) MarshalToSizedBuffer

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

func (*BaseClaim) ProtoMessage

func (*BaseClaim) ProtoMessage()

func (*BaseClaim) Reset

func (m *BaseClaim) Reset()

func (*BaseClaim) Size

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

func (*BaseClaim) String

func (m *BaseClaim) String() string

func (*BaseClaim) Unmarshal

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

func (BaseClaim) Validate

func (c BaseClaim) Validate() error

Validate performs a basic check of a BaseClaim fields

func (*BaseClaim) XXX_DiscardUnknown

func (m *BaseClaim) XXX_DiscardUnknown()

func (*BaseClaim) XXX_Marshal

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

func (*BaseClaim) XXX_Merge

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

func (*BaseClaim) XXX_Size

func (m *BaseClaim) XXX_Size() int

func (*BaseClaim) XXX_Unmarshal

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

type BaseMultiClaim

type BaseMultiClaim struct {
	Owner  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=owner,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"owner,omitempty"`
	Reward github_com_cosmos_cosmos_sdk_types.Coins      `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"`
}

BaseMultiClaim is a claim with multiple reward coin types

func (*BaseMultiClaim) Descriptor

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

func (BaseMultiClaim) GetOwner

func (c BaseMultiClaim) GetOwner() sdk.AccAddress

GetOwner is a getter for Claim Owner

func (BaseMultiClaim) GetReward

func (c BaseMultiClaim) GetReward() sdk.Coins

GetReward is a getter for Claim Reward

func (BaseMultiClaim) GetType

func (c BaseMultiClaim) GetType() string

GetType returns the claim type, used to identify auctions in event attributes

func (*BaseMultiClaim) Marshal

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

func (*BaseMultiClaim) MarshalTo

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

func (*BaseMultiClaim) MarshalToSizedBuffer

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

func (*BaseMultiClaim) ProtoMessage

func (*BaseMultiClaim) ProtoMessage()

func (*BaseMultiClaim) Reset

func (m *BaseMultiClaim) Reset()

func (*BaseMultiClaim) Size

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

func (*BaseMultiClaim) String

func (m *BaseMultiClaim) String() string

func (*BaseMultiClaim) Unmarshal

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

func (BaseMultiClaim) Validate

func (c BaseMultiClaim) Validate() error

Validate performs a basic check of a BaseClaim fields

func (*BaseMultiClaim) XXX_DiscardUnknown

func (m *BaseMultiClaim) XXX_DiscardUnknown()

func (*BaseMultiClaim) XXX_Marshal

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

func (*BaseMultiClaim) XXX_Merge

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

func (*BaseMultiClaim) XXX_Size

func (m *BaseMultiClaim) XXX_Size() int

func (*BaseMultiClaim) XXX_Unmarshal

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

type CDPHooks

type CDPHooks interface {
	AfterCDPCreated(ctx sdk.Context, cdp cdptypes.CDP)
	BeforeCDPModified(ctx sdk.Context, cdp cdptypes.CDP)
}

CDPHooks event hooks for other keepers to run code in response to CDP modifications

type CdpKeeper

type CdpKeeper interface {
	GetInterestFactor(ctx sdk.Context, collateralType string) (sdk.Dec, bool)
	GetTotalPrincipal(ctx sdk.Context, collateralType string, principalDenom string) (total sdkmath.Int)
	GetCdpByOwnerAndCollateralType(ctx sdk.Context, owner sdk.AccAddress, collateralType string) (cdptypes.CDP, bool)
	GetCollateral(ctx sdk.Context, collateralType string) (cdptypes.CollateralParam, bool)
}

CdpKeeper defines the expected cdp keeper for interacting with cdps

type DelegatorClaim

type DelegatorClaim struct {
	BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"`
	RewardIndexes  MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"`
}

DelegatorClaim stores delegation rewards that can be claimed by owner

func NewDelegatorClaim

func NewDelegatorClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) DelegatorClaim

NewDelegatorClaim returns a new DelegatorClaim

func (*DelegatorClaim) Descriptor

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

func (DelegatorClaim) GetOwner

func (c DelegatorClaim) GetOwner() sdk.AccAddress

GetOwner returns the claim's owner

func (DelegatorClaim) GetReward

func (c DelegatorClaim) GetReward() sdk.Coins

GetReward returns the claim's reward coin

func (DelegatorClaim) GetType

func (c DelegatorClaim) GetType() string

GetType returns the claim's type

func (DelegatorClaim) HasRewardIndex

func (c DelegatorClaim) HasRewardIndex(collateralType string) (int64, bool)

HasRewardIndex checks if a DelegatorClaim has a reward index for the input collateral type

func (*DelegatorClaim) Marshal

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

func (*DelegatorClaim) MarshalTo

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

func (*DelegatorClaim) MarshalToSizedBuffer

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

func (*DelegatorClaim) ProtoMessage

func (*DelegatorClaim) ProtoMessage()

func (*DelegatorClaim) Reset

func (m *DelegatorClaim) Reset()

func (*DelegatorClaim) Size

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

func (*DelegatorClaim) String

func (m *DelegatorClaim) String() string

func (*DelegatorClaim) Unmarshal

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

func (DelegatorClaim) Validate

func (c DelegatorClaim) Validate() error

Validate performs a basic check of a DelegatorClaim fields

func (*DelegatorClaim) XXX_DiscardUnknown

func (m *DelegatorClaim) XXX_DiscardUnknown()

func (*DelegatorClaim) XXX_Marshal

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

func (*DelegatorClaim) XXX_Merge

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

func (*DelegatorClaim) XXX_Size

func (m *DelegatorClaim) XXX_Size() int

func (*DelegatorClaim) XXX_Unmarshal

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

type DelegatorClaims

type DelegatorClaims []DelegatorClaim

DelegatorClaim slice of DelegatorClaim

func (DelegatorClaims) Validate

func (cs DelegatorClaims) Validate() error

Validate checks if all the claims are valid and there are no duplicated entries.

type DistrKeeper

type DistrKeeper interface {
	GetCommunityTax(ctx sdk.Context) (percent sdk.Dec)
}

DistrKeeper defines the required methods needed by this modules keeper

type EarnClaim

type EarnClaim struct {
	BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"`
	RewardIndexes  MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"`
}

EarnClaim stores the earn rewards that can be claimed by owner

func NewEarnClaim

func NewEarnClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) EarnClaim

NewEarnClaim returns a new EarnClaim

func (*EarnClaim) Descriptor

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

func (EarnClaim) GetOwner

func (c EarnClaim) GetOwner() sdk.AccAddress

GetOwner returns the claim's owner

func (EarnClaim) GetReward

func (c EarnClaim) GetReward() sdk.Coins

GetReward returns the claim's reward coin

func (EarnClaim) GetType

func (c EarnClaim) GetType() string

GetType returns the claim's type

func (EarnClaim) HasRewardIndex

func (c EarnClaim) HasRewardIndex(poolID string) (int64, bool)

HasRewardIndex check if a claim has a reward index for the input pool ID.

func (*EarnClaim) Marshal

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

func (*EarnClaim) MarshalTo

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

func (*EarnClaim) MarshalToSizedBuffer

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

func (*EarnClaim) ProtoMessage

func (*EarnClaim) ProtoMessage()

func (*EarnClaim) Reset

func (m *EarnClaim) Reset()

func (*EarnClaim) Size

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

func (*EarnClaim) String

func (m *EarnClaim) String() string

func (*EarnClaim) Unmarshal

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

func (EarnClaim) Validate

func (c EarnClaim) Validate() error

Validate performs a basic check of a SwapClaim fields

func (*EarnClaim) XXX_DiscardUnknown

func (m *EarnClaim) XXX_DiscardUnknown()

func (*EarnClaim) XXX_Marshal

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

func (*EarnClaim) XXX_Merge

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

func (*EarnClaim) XXX_Size

func (m *EarnClaim) XXX_Size() int

func (*EarnClaim) XXX_Unmarshal

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

type EarnClaims

type EarnClaims []EarnClaim

EarnClaims slice of EarnClaim

func (EarnClaims) Validate

func (cs EarnClaims) Validate() error

Validate checks if all the claims are valid.

type EarnKeeper

type EarnKeeper interface {
	GetVaultTotalShares(ctx sdk.Context, denom string) (shares earntypes.VaultShare, found bool)
	GetVaultTotalValue(ctx sdk.Context, denom string) (sdk.Coin, error)
	GetVaultAccountShares(ctx sdk.Context, acc sdk.AccAddress) (shares earntypes.VaultShares, found bool)
	IterateVaultRecords(ctx sdk.Context, cb func(record earntypes.VaultRecord) (stop bool))
}

EarnKeeper defines the required methods needed by this modules keeper

type GenesisRewardState

type GenesisRewardState struct {
	AccumulationTimes  AccumulationTimes  `` /* 133-byte string literal not displayed */
	MultiRewardIndexes MultiRewardIndexes `` /* 139-byte string literal not displayed */
}

GenesisRewardState groups together the global state for a particular reward so it can be exported in genesis.

func NewGenesisRewardState

func NewGenesisRewardState(accumTimes AccumulationTimes, indexes MultiRewardIndexes) GenesisRewardState

NewGenesisRewardState returns a new GenesisRewardState

func (*GenesisRewardState) Descriptor

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

func (*GenesisRewardState) Marshal

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

func (*GenesisRewardState) MarshalTo

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

func (*GenesisRewardState) MarshalToSizedBuffer

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

func (*GenesisRewardState) ProtoMessage

func (*GenesisRewardState) ProtoMessage()

func (*GenesisRewardState) Reset

func (m *GenesisRewardState) Reset()

func (*GenesisRewardState) Size

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

func (*GenesisRewardState) String

func (m *GenesisRewardState) String() string

func (*GenesisRewardState) Unmarshal

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

func (GenesisRewardState) Validate

func (grs GenesisRewardState) Validate() error

Validate performs validation of a GenesisRewardState

func (*GenesisRewardState) XXX_DiscardUnknown

func (m *GenesisRewardState) XXX_DiscardUnknown()

func (*GenesisRewardState) XXX_Marshal

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

func (*GenesisRewardState) XXX_Merge

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

func (*GenesisRewardState) XXX_Size

func (m *GenesisRewardState) XXX_Size() int

func (*GenesisRewardState) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params                      Params                      `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	USDXRewardState             GenesisRewardState          `protobuf:"bytes,2,opt,name=usdx_reward_state,json=usdxRewardState,proto3" json:"usdx_reward_state"`
	HardSupplyRewardState       GenesisRewardState          `protobuf:"bytes,3,opt,name=hard_supply_reward_state,json=hardSupplyRewardState,proto3" json:"hard_supply_reward_state"`
	HardBorrowRewardState       GenesisRewardState          `protobuf:"bytes,4,opt,name=hard_borrow_reward_state,json=hardBorrowRewardState,proto3" json:"hard_borrow_reward_state"`
	DelegatorRewardState        GenesisRewardState          `protobuf:"bytes,5,opt,name=delegator_reward_state,json=delegatorRewardState,proto3" json:"delegator_reward_state"`
	SwapRewardState             GenesisRewardState          `protobuf:"bytes,6,opt,name=swap_reward_state,json=swapRewardState,proto3" json:"swap_reward_state"`
	USDXMintingClaims           USDXMintingClaims           `` /* 135-byte string literal not displayed */
	HardLiquidityProviderClaims HardLiquidityProviderClaims `` /* 177-byte string literal not displayed */
	DelegatorClaims             DelegatorClaims             `protobuf:"bytes,9,rep,name=delegator_claims,json=delegatorClaims,proto3,castrepeated=DelegatorClaims" json:"delegator_claims"`
	SwapClaims                  SwapClaims                  `protobuf:"bytes,10,rep,name=swap_claims,json=swapClaims,proto3,castrepeated=SwapClaims" json:"swap_claims"`
	SavingsRewardState          GenesisRewardState          `protobuf:"bytes,11,opt,name=savings_reward_state,json=savingsRewardState,proto3" json:"savings_reward_state"`
	SavingsClaims               SavingsClaims               `protobuf:"bytes,12,rep,name=savings_claims,json=savingsClaims,proto3,castrepeated=SavingsClaims" json:"savings_claims"`
	EarnRewardState             GenesisRewardState          `protobuf:"bytes,13,opt,name=earn_reward_state,json=earnRewardState,proto3" json:"earn_reward_state"`
	EarnClaims                  EarnClaims                  `protobuf:"bytes,14,rep,name=earn_claims,json=earnClaims,proto3,castrepeated=EarnClaims" json:"earn_claims"`
}

GenesisState is the state that must be provided at genesis.

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState returns a default genesis state

func NewGenesisState

func NewGenesisState(
	params Params,
	usdxState, hardSupplyState, hardBorrowState, delegatorState, swapState, savingsState, earnState GenesisRewardState,
	c USDXMintingClaims, hc HardLiquidityProviderClaims, dc DelegatorClaims, sc SwapClaims, savingsc SavingsClaims,
	earnc EarnClaims,
) GenesisState

NewGenesisState returns a new 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

Validate performs basic validation of genesis data returning an error for any failed validation criteria.

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 HARDHooks

type HARDHooks interface {
	AfterDepositCreated(ctx sdk.Context, deposit hardtypes.Deposit)
	BeforeDepositModified(ctx sdk.Context, deposit hardtypes.Deposit)
	AfterDepositModified(ctx sdk.Context, deposit hardtypes.Deposit)
	AfterBorrowCreated(ctx sdk.Context, borrow hardtypes.Borrow)
	BeforeBorrowModified(ctx sdk.Context, borrow hardtypes.Borrow)
	AfterBorrowModified(ctx sdk.Context, deposit hardtypes.Deposit)
}

HARDHooks event hooks for other keepers to run code in response to HARD modifications

type HardKeeper

type HardKeeper interface {
	GetDeposit(ctx sdk.Context, depositor sdk.AccAddress) (hardtypes.Deposit, bool)
	GetBorrow(ctx sdk.Context, borrower sdk.AccAddress) (hardtypes.Borrow, bool)

	GetSupplyInterestFactor(ctx sdk.Context, denom string) (sdk.Dec, bool)
	GetBorrowInterestFactor(ctx sdk.Context, denom string) (sdk.Dec, bool)
	GetBorrowedCoins(ctx sdk.Context) (coins sdk.Coins, found bool)
	GetSuppliedCoins(ctx sdk.Context) (coins sdk.Coins, found bool)
}

HardKeeper defines the expected hard keeper for interacting with Hard protocol

type HardLiquidityProviderClaim

type HardLiquidityProviderClaim struct {
	BaseMultiClaim      `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"`
	SupplyRewardIndexes MultiRewardIndexes `` /* 142-byte string literal not displayed */
	BorrowRewardIndexes MultiRewardIndexes `` /* 142-byte string literal not displayed */
}

HardLiquidityProviderClaim stores the hard liquidity provider rewards that can be claimed by owner

func NewHardLiquidityProviderClaim

func NewHardLiquidityProviderClaim(owner sdk.AccAddress, rewards sdk.Coins,
	supplyRewardIndexes, borrowRewardIndexes MultiRewardIndexes,
) HardLiquidityProviderClaim

NewHardLiquidityProviderClaim returns a new HardLiquidityProviderClaim

func (*HardLiquidityProviderClaim) Descriptor

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

func (HardLiquidityProviderClaim) GetOwner

GetOwner returns the claim's owner

func (HardLiquidityProviderClaim) GetReward

func (c HardLiquidityProviderClaim) GetReward() sdk.Coins

GetReward returns the claim's reward coin

func (HardLiquidityProviderClaim) GetType

func (c HardLiquidityProviderClaim) GetType() string

GetType returns the claim's type

func (HardLiquidityProviderClaim) HasBorrowRewardIndex

func (c HardLiquidityProviderClaim) HasBorrowRewardIndex(denom string) (int64, bool)

HasBorrowRewardIndex check if a claim has a borrow reward index for the input collateral type

func (HardLiquidityProviderClaim) HasSupplyRewardIndex

func (c HardLiquidityProviderClaim) HasSupplyRewardIndex(denom string) (int64, bool)

HasSupplyRewardIndex check if a claim has a supply reward index for the input collateral type

func (*HardLiquidityProviderClaim) Marshal

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

func (*HardLiquidityProviderClaim) MarshalTo

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

func (*HardLiquidityProviderClaim) MarshalToSizedBuffer

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

func (*HardLiquidityProviderClaim) ProtoMessage

func (*HardLiquidityProviderClaim) ProtoMessage()

func (*HardLiquidityProviderClaim) Reset

func (m *HardLiquidityProviderClaim) Reset()

func (*HardLiquidityProviderClaim) Size

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

func (*HardLiquidityProviderClaim) String

func (m *HardLiquidityProviderClaim) String() string

func (*HardLiquidityProviderClaim) Unmarshal

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

func (HardLiquidityProviderClaim) Validate

func (c HardLiquidityProviderClaim) Validate() error

Validate performs a basic check of a HardLiquidityProviderClaim fields

func (*HardLiquidityProviderClaim) XXX_DiscardUnknown

func (m *HardLiquidityProviderClaim) XXX_DiscardUnknown()

func (*HardLiquidityProviderClaim) XXX_Marshal

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

func (*HardLiquidityProviderClaim) XXX_Merge

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

func (*HardLiquidityProviderClaim) XXX_Size

func (m *HardLiquidityProviderClaim) XXX_Size() int

func (*HardLiquidityProviderClaim) XXX_Unmarshal

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

type HardLiquidityProviderClaims

type HardLiquidityProviderClaims []HardLiquidityProviderClaim

HardLiquidityProviderClaims slice of HardLiquidityProviderClaim

func (HardLiquidityProviderClaims) Validate

func (cs HardLiquidityProviderClaims) Validate() error

Validate checks if all the claims are valid and there are no duplicated entries.

type LiquidKeeper

type LiquidKeeper interface {
	IsDerivativeDenom(ctx sdk.Context, denom string) bool
	GetTotalDerivativeValue(ctx sdk.Context) (sdk.Coin, error)
	GetDerivativeValue(ctx sdk.Context, denom string) (sdk.Coin, error)
	CollectStakingRewardsByDenom(
		ctx sdk.Context,
		derivativeDenom string,
		destinationModAccount string,
	) (sdk.Coins, error)
}

LiquidKeeper defines the required methods needed by this modules keeper

type MintKeeper

type MintKeeper interface {
	GetMinter(ctx sdk.Context) (minter minttypes.Minter)
}

MintKeeper defines the required methods needed by this modules keeper

type MsgClaimDelegatorReward

type MsgClaimDelegatorReward struct {
	Sender        string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"`
}

MsgClaimDelegatorReward message type used to claim delegator rewards

func NewMsgClaimDelegatorReward

func NewMsgClaimDelegatorReward(sender string, denomsToClaim Selections) MsgClaimDelegatorReward

NewMsgClaimDelegatorReward returns a new MsgClaimDelegatorReward.

func (*MsgClaimDelegatorReward) Descriptor

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

func (MsgClaimDelegatorReward) GetSignBytes

func (msg MsgClaimDelegatorReward) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgClaimDelegatorReward) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgClaimDelegatorReward) Marshal

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

func (*MsgClaimDelegatorReward) MarshalTo

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

func (*MsgClaimDelegatorReward) MarshalToSizedBuffer

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

func (*MsgClaimDelegatorReward) ProtoMessage

func (*MsgClaimDelegatorReward) ProtoMessage()

func (*MsgClaimDelegatorReward) Reset

func (m *MsgClaimDelegatorReward) Reset()

func (MsgClaimDelegatorReward) Route

func (msg MsgClaimDelegatorReward) Route() string

Route return the message type used for routing the message.

func (*MsgClaimDelegatorReward) Size

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

func (*MsgClaimDelegatorReward) String

func (m *MsgClaimDelegatorReward) String() string

func (MsgClaimDelegatorReward) Type

func (msg MsgClaimDelegatorReward) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgClaimDelegatorReward) Unmarshal

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

func (MsgClaimDelegatorReward) ValidateBasic

func (msg MsgClaimDelegatorReward) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to state.

func (*MsgClaimDelegatorReward) XXX_DiscardUnknown

func (m *MsgClaimDelegatorReward) XXX_DiscardUnknown()

func (*MsgClaimDelegatorReward) XXX_Marshal

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

func (*MsgClaimDelegatorReward) XXX_Merge

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

func (*MsgClaimDelegatorReward) XXX_Size

func (m *MsgClaimDelegatorReward) XXX_Size() int

func (*MsgClaimDelegatorReward) XXX_Unmarshal

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

type MsgClaimDelegatorRewardResponse

type MsgClaimDelegatorRewardResponse struct {
}

MsgClaimDelegatorRewardResponse defines the Msg/ClaimDelegatorReward response type.

func (*MsgClaimDelegatorRewardResponse) Descriptor

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

func (*MsgClaimDelegatorRewardResponse) Marshal

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

func (*MsgClaimDelegatorRewardResponse) MarshalTo

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

func (*MsgClaimDelegatorRewardResponse) MarshalToSizedBuffer

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

func (*MsgClaimDelegatorRewardResponse) ProtoMessage

func (*MsgClaimDelegatorRewardResponse) ProtoMessage()

func (*MsgClaimDelegatorRewardResponse) Reset

func (*MsgClaimDelegatorRewardResponse) Size

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

func (*MsgClaimDelegatorRewardResponse) String

func (*MsgClaimDelegatorRewardResponse) Unmarshal

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

func (*MsgClaimDelegatorRewardResponse) XXX_DiscardUnknown

func (m *MsgClaimDelegatorRewardResponse) XXX_DiscardUnknown()

func (*MsgClaimDelegatorRewardResponse) XXX_Marshal

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

func (*MsgClaimDelegatorRewardResponse) XXX_Merge

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

func (*MsgClaimDelegatorRewardResponse) XXX_Size

func (m *MsgClaimDelegatorRewardResponse) XXX_Size() int

func (*MsgClaimDelegatorRewardResponse) XXX_Unmarshal

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

type MsgClaimEarnReward

type MsgClaimEarnReward struct {
	Sender        string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"`
}

MsgClaimEarnReward message type used to claim earn rewards

func NewMsgClaimEarnReward

func NewMsgClaimEarnReward(sender string, denomsToClaim Selections) MsgClaimEarnReward

NewMsgClaimEarnReward returns a new MsgClaimEarnReward.

func (*MsgClaimEarnReward) Descriptor

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

func (MsgClaimEarnReward) GetSignBytes

func (msg MsgClaimEarnReward) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgClaimEarnReward) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgClaimEarnReward) Marshal

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

func (*MsgClaimEarnReward) MarshalTo

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

func (*MsgClaimEarnReward) MarshalToSizedBuffer

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

func (*MsgClaimEarnReward) ProtoMessage

func (*MsgClaimEarnReward) ProtoMessage()

func (*MsgClaimEarnReward) Reset

func (m *MsgClaimEarnReward) Reset()

func (MsgClaimEarnReward) Route

func (msg MsgClaimEarnReward) Route() string

Route return the message type used for routing the message.

func (*MsgClaimEarnReward) Size

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

func (*MsgClaimEarnReward) String

func (m *MsgClaimEarnReward) String() string

func (MsgClaimEarnReward) Type

func (msg MsgClaimEarnReward) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgClaimEarnReward) Unmarshal

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

func (MsgClaimEarnReward) ValidateBasic

func (msg MsgClaimEarnReward) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to state.

func (*MsgClaimEarnReward) XXX_DiscardUnknown

func (m *MsgClaimEarnReward) XXX_DiscardUnknown()

func (*MsgClaimEarnReward) XXX_Marshal

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

func (*MsgClaimEarnReward) XXX_Merge

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

func (*MsgClaimEarnReward) XXX_Size

func (m *MsgClaimEarnReward) XXX_Size() int

func (*MsgClaimEarnReward) XXX_Unmarshal

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

type MsgClaimEarnRewardResponse

type MsgClaimEarnRewardResponse struct {
}

MsgClaimEarnRewardResponse defines the Msg/ClaimEarnReward response type.

func (*MsgClaimEarnRewardResponse) Descriptor

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

func (*MsgClaimEarnRewardResponse) Marshal

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

func (*MsgClaimEarnRewardResponse) MarshalTo

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

func (*MsgClaimEarnRewardResponse) MarshalToSizedBuffer

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

func (*MsgClaimEarnRewardResponse) ProtoMessage

func (*MsgClaimEarnRewardResponse) ProtoMessage()

func (*MsgClaimEarnRewardResponse) Reset

func (m *MsgClaimEarnRewardResponse) Reset()

func (*MsgClaimEarnRewardResponse) Size

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

func (*MsgClaimEarnRewardResponse) String

func (m *MsgClaimEarnRewardResponse) String() string

func (*MsgClaimEarnRewardResponse) Unmarshal

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

func (*MsgClaimEarnRewardResponse) XXX_DiscardUnknown

func (m *MsgClaimEarnRewardResponse) XXX_DiscardUnknown()

func (*MsgClaimEarnRewardResponse) XXX_Marshal

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

func (*MsgClaimEarnRewardResponse) XXX_Merge

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

func (*MsgClaimEarnRewardResponse) XXX_Size

func (m *MsgClaimEarnRewardResponse) XXX_Size() int

func (*MsgClaimEarnRewardResponse) XXX_Unmarshal

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

type MsgClaimHardReward

type MsgClaimHardReward struct {
	Sender        string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"`
}

MsgClaimHardReward message type used to claim Hard liquidity provider rewards

func NewMsgClaimHardReward

func NewMsgClaimHardReward(sender string, denomsToClaim Selections) MsgClaimHardReward

NewMsgClaimHardReward returns a new MsgClaimHardReward.

func (*MsgClaimHardReward) Descriptor

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

func (MsgClaimHardReward) GetSignBytes

func (msg MsgClaimHardReward) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgClaimHardReward) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgClaimHardReward) Marshal

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

func (*MsgClaimHardReward) MarshalTo

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

func (*MsgClaimHardReward) MarshalToSizedBuffer

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

func (*MsgClaimHardReward) ProtoMessage

func (*MsgClaimHardReward) ProtoMessage()

func (*MsgClaimHardReward) Reset

func (m *MsgClaimHardReward) Reset()

func (MsgClaimHardReward) Route

func (msg MsgClaimHardReward) Route() string

Route return the message type used for routing the message.

func (*MsgClaimHardReward) Size

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

func (*MsgClaimHardReward) String

func (m *MsgClaimHardReward) String() string

func (MsgClaimHardReward) Type

func (msg MsgClaimHardReward) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgClaimHardReward) Unmarshal

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

func (MsgClaimHardReward) ValidateBasic

func (msg MsgClaimHardReward) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to state.

func (*MsgClaimHardReward) XXX_DiscardUnknown

func (m *MsgClaimHardReward) XXX_DiscardUnknown()

func (*MsgClaimHardReward) XXX_Marshal

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

func (*MsgClaimHardReward) XXX_Merge

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

func (*MsgClaimHardReward) XXX_Size

func (m *MsgClaimHardReward) XXX_Size() int

func (*MsgClaimHardReward) XXX_Unmarshal

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

type MsgClaimHardRewardResponse

type MsgClaimHardRewardResponse struct {
}

MsgClaimHardRewardResponse defines the Msg/ClaimHardReward response type.

func (*MsgClaimHardRewardResponse) Descriptor

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

func (*MsgClaimHardRewardResponse) Marshal

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

func (*MsgClaimHardRewardResponse) MarshalTo

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

func (*MsgClaimHardRewardResponse) MarshalToSizedBuffer

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

func (*MsgClaimHardRewardResponse) ProtoMessage

func (*MsgClaimHardRewardResponse) ProtoMessage()

func (*MsgClaimHardRewardResponse) Reset

func (m *MsgClaimHardRewardResponse) Reset()

func (*MsgClaimHardRewardResponse) Size

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

func (*MsgClaimHardRewardResponse) String

func (m *MsgClaimHardRewardResponse) String() string

func (*MsgClaimHardRewardResponse) Unmarshal

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

func (*MsgClaimHardRewardResponse) XXX_DiscardUnknown

func (m *MsgClaimHardRewardResponse) XXX_DiscardUnknown()

func (*MsgClaimHardRewardResponse) XXX_Marshal

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

func (*MsgClaimHardRewardResponse) XXX_Merge

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

func (*MsgClaimHardRewardResponse) XXX_Size

func (m *MsgClaimHardRewardResponse) XXX_Size() int

func (*MsgClaimHardRewardResponse) XXX_Unmarshal

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

type MsgClaimSavingsReward

type MsgClaimSavingsReward struct {
	Sender        string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"`
}

MsgClaimSavingsReward message type used to claim savings rewards

func NewMsgClaimSavingsReward

func NewMsgClaimSavingsReward(sender string, denomsToClaim Selections) MsgClaimSavingsReward

NewMsgClaimSavingsReward returns a new MsgClaimSavingsReward.

func (*MsgClaimSavingsReward) Descriptor

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

func (MsgClaimSavingsReward) GetSignBytes

func (msg MsgClaimSavingsReward) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgClaimSavingsReward) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgClaimSavingsReward) Marshal

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

func (*MsgClaimSavingsReward) MarshalTo

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

func (*MsgClaimSavingsReward) MarshalToSizedBuffer

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

func (*MsgClaimSavingsReward) ProtoMessage

func (*MsgClaimSavingsReward) ProtoMessage()

func (*MsgClaimSavingsReward) Reset

func (m *MsgClaimSavingsReward) Reset()

func (MsgClaimSavingsReward) Route

func (msg MsgClaimSavingsReward) Route() string

Route return the message type used for routing the message.

func (*MsgClaimSavingsReward) Size

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

func (*MsgClaimSavingsReward) String

func (m *MsgClaimSavingsReward) String() string

func (MsgClaimSavingsReward) Type

func (msg MsgClaimSavingsReward) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgClaimSavingsReward) Unmarshal

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

func (MsgClaimSavingsReward) ValidateBasic

func (msg MsgClaimSavingsReward) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to state.

func (*MsgClaimSavingsReward) XXX_DiscardUnknown

func (m *MsgClaimSavingsReward) XXX_DiscardUnknown()

func (*MsgClaimSavingsReward) XXX_Marshal

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

func (*MsgClaimSavingsReward) XXX_Merge

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

func (*MsgClaimSavingsReward) XXX_Size

func (m *MsgClaimSavingsReward) XXX_Size() int

func (*MsgClaimSavingsReward) XXX_Unmarshal

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

type MsgClaimSavingsRewardResponse

type MsgClaimSavingsRewardResponse struct {
}

MsgClaimSavingsRewardResponse defines the Msg/ClaimSavingsReward response type.

func (*MsgClaimSavingsRewardResponse) Descriptor

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

func (*MsgClaimSavingsRewardResponse) Marshal

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

func (*MsgClaimSavingsRewardResponse) MarshalTo

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

func (*MsgClaimSavingsRewardResponse) MarshalToSizedBuffer

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

func (*MsgClaimSavingsRewardResponse) ProtoMessage

func (*MsgClaimSavingsRewardResponse) ProtoMessage()

func (*MsgClaimSavingsRewardResponse) Reset

func (m *MsgClaimSavingsRewardResponse) Reset()

func (*MsgClaimSavingsRewardResponse) Size

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

func (*MsgClaimSavingsRewardResponse) String

func (*MsgClaimSavingsRewardResponse) Unmarshal

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

func (*MsgClaimSavingsRewardResponse) XXX_DiscardUnknown

func (m *MsgClaimSavingsRewardResponse) XXX_DiscardUnknown()

func (*MsgClaimSavingsRewardResponse) XXX_Marshal

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

func (*MsgClaimSavingsRewardResponse) XXX_Merge

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

func (*MsgClaimSavingsRewardResponse) XXX_Size

func (m *MsgClaimSavingsRewardResponse) XXX_Size() int

func (*MsgClaimSavingsRewardResponse) XXX_Unmarshal

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

type MsgClaimSwapReward

type MsgClaimSwapReward struct {
	Sender        string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	DenomsToClaim Selections `protobuf:"bytes,2,rep,name=denoms_to_claim,json=denomsToClaim,proto3,castrepeated=Selections" json:"denoms_to_claim"`
}

MsgClaimSwapReward message type used to claim delegator rewards

func NewMsgClaimSwapReward

func NewMsgClaimSwapReward(sender string, denomsToClaim Selections) MsgClaimSwapReward

NewMsgClaimSwapReward returns a new MsgClaimSwapReward.

func (*MsgClaimSwapReward) Descriptor

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

func (MsgClaimSwapReward) GetSignBytes

func (msg MsgClaimSwapReward) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgClaimSwapReward) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgClaimSwapReward) Marshal

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

func (*MsgClaimSwapReward) MarshalTo

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

func (*MsgClaimSwapReward) MarshalToSizedBuffer

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

func (*MsgClaimSwapReward) ProtoMessage

func (*MsgClaimSwapReward) ProtoMessage()

func (*MsgClaimSwapReward) Reset

func (m *MsgClaimSwapReward) Reset()

func (MsgClaimSwapReward) Route

func (msg MsgClaimSwapReward) Route() string

Route return the message type used for routing the message.

func (*MsgClaimSwapReward) Size

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

func (*MsgClaimSwapReward) String

func (m *MsgClaimSwapReward) String() string

func (MsgClaimSwapReward) Type

func (msg MsgClaimSwapReward) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgClaimSwapReward) Unmarshal

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

func (MsgClaimSwapReward) ValidateBasic

func (msg MsgClaimSwapReward) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to state.

func (*MsgClaimSwapReward) XXX_DiscardUnknown

func (m *MsgClaimSwapReward) XXX_DiscardUnknown()

func (*MsgClaimSwapReward) XXX_Marshal

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

func (*MsgClaimSwapReward) XXX_Merge

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

func (*MsgClaimSwapReward) XXX_Size

func (m *MsgClaimSwapReward) XXX_Size() int

func (*MsgClaimSwapReward) XXX_Unmarshal

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

type MsgClaimSwapRewardResponse

type MsgClaimSwapRewardResponse struct {
}

MsgClaimSwapRewardResponse defines the Msg/ClaimSwapReward response type.

func (*MsgClaimSwapRewardResponse) Descriptor

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

func (*MsgClaimSwapRewardResponse) Marshal

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

func (*MsgClaimSwapRewardResponse) MarshalTo

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

func (*MsgClaimSwapRewardResponse) MarshalToSizedBuffer

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

func (*MsgClaimSwapRewardResponse) ProtoMessage

func (*MsgClaimSwapRewardResponse) ProtoMessage()

func (*MsgClaimSwapRewardResponse) Reset

func (m *MsgClaimSwapRewardResponse) Reset()

func (*MsgClaimSwapRewardResponse) Size

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

func (*MsgClaimSwapRewardResponse) String

func (m *MsgClaimSwapRewardResponse) String() string

func (*MsgClaimSwapRewardResponse) Unmarshal

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

func (*MsgClaimSwapRewardResponse) XXX_DiscardUnknown

func (m *MsgClaimSwapRewardResponse) XXX_DiscardUnknown()

func (*MsgClaimSwapRewardResponse) XXX_Marshal

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

func (*MsgClaimSwapRewardResponse) XXX_Merge

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

func (*MsgClaimSwapRewardResponse) XXX_Size

func (m *MsgClaimSwapRewardResponse) XXX_Size() int

func (*MsgClaimSwapRewardResponse) XXX_Unmarshal

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

type MsgClaimUSDXMintingReward

type MsgClaimUSDXMintingReward struct {
	Sender         string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	MultiplierName string `protobuf:"bytes,2,opt,name=multiplier_name,json=multiplierName,proto3" json:"multiplier_name,omitempty"`
}

MsgClaimUSDXMintingReward message type used to claim USDX minting rewards

func NewMsgClaimUSDXMintingReward

func NewMsgClaimUSDXMintingReward(sender string, multiplierName string) MsgClaimUSDXMintingReward

NewMsgClaimUSDXMintingReward returns a new MsgClaimUSDXMintingReward.

func (*MsgClaimUSDXMintingReward) Descriptor

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

func (MsgClaimUSDXMintingReward) GetSignBytes

func (msg MsgClaimUSDXMintingReward) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgClaimUSDXMintingReward) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgClaimUSDXMintingReward) Marshal

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

func (*MsgClaimUSDXMintingReward) MarshalTo

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

func (*MsgClaimUSDXMintingReward) MarshalToSizedBuffer

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

func (*MsgClaimUSDXMintingReward) ProtoMessage

func (*MsgClaimUSDXMintingReward) ProtoMessage()

func (*MsgClaimUSDXMintingReward) Reset

func (m *MsgClaimUSDXMintingReward) Reset()

func (MsgClaimUSDXMintingReward) Route

func (msg MsgClaimUSDXMintingReward) Route() string

Route return the message type used for routing the message.

func (*MsgClaimUSDXMintingReward) Size

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

func (*MsgClaimUSDXMintingReward) String

func (m *MsgClaimUSDXMintingReward) String() string

func (MsgClaimUSDXMintingReward) Type

func (msg MsgClaimUSDXMintingReward) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgClaimUSDXMintingReward) Unmarshal

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

func (MsgClaimUSDXMintingReward) ValidateBasic

func (msg MsgClaimUSDXMintingReward) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to state.

func (*MsgClaimUSDXMintingReward) XXX_DiscardUnknown

func (m *MsgClaimUSDXMintingReward) XXX_DiscardUnknown()

func (*MsgClaimUSDXMintingReward) XXX_Marshal

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

func (*MsgClaimUSDXMintingReward) XXX_Merge

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

func (*MsgClaimUSDXMintingReward) XXX_Size

func (m *MsgClaimUSDXMintingReward) XXX_Size() int

func (*MsgClaimUSDXMintingReward) XXX_Unmarshal

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

type MsgClaimUSDXMintingRewardResponse

type MsgClaimUSDXMintingRewardResponse struct {
}

MsgClaimUSDXMintingRewardResponse defines the Msg/ClaimUSDXMintingReward response type.

func (*MsgClaimUSDXMintingRewardResponse) Descriptor

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

func (*MsgClaimUSDXMintingRewardResponse) Marshal

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

func (*MsgClaimUSDXMintingRewardResponse) MarshalTo

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

func (*MsgClaimUSDXMintingRewardResponse) MarshalToSizedBuffer

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

func (*MsgClaimUSDXMintingRewardResponse) ProtoMessage

func (*MsgClaimUSDXMintingRewardResponse) ProtoMessage()

func (*MsgClaimUSDXMintingRewardResponse) Reset

func (*MsgClaimUSDXMintingRewardResponse) Size

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

func (*MsgClaimUSDXMintingRewardResponse) String

func (*MsgClaimUSDXMintingRewardResponse) Unmarshal

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

func (*MsgClaimUSDXMintingRewardResponse) XXX_DiscardUnknown

func (m *MsgClaimUSDXMintingRewardResponse) XXX_DiscardUnknown()

func (*MsgClaimUSDXMintingRewardResponse) XXX_Marshal

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

func (*MsgClaimUSDXMintingRewardResponse) XXX_Merge

func (*MsgClaimUSDXMintingRewardResponse) XXX_Size

func (m *MsgClaimUSDXMintingRewardResponse) XXX_Size() int

func (*MsgClaimUSDXMintingRewardResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// ClaimUSDXMintingReward is a message type used to claim USDX minting rewards
	ClaimUSDXMintingReward(ctx context.Context, in *MsgClaimUSDXMintingReward, opts ...grpc.CallOption) (*MsgClaimUSDXMintingRewardResponse, error)
	// ClaimHardReward is a message type used to claim Hard liquidity provider rewards
	ClaimHardReward(ctx context.Context, in *MsgClaimHardReward, opts ...grpc.CallOption) (*MsgClaimHardRewardResponse, error)
	// ClaimDelegatorReward is a message type used to claim delegator rewards
	ClaimDelegatorReward(ctx context.Context, in *MsgClaimDelegatorReward, opts ...grpc.CallOption) (*MsgClaimDelegatorRewardResponse, error)
	// ClaimSwapReward is a message type used to claim swap rewards
	ClaimSwapReward(ctx context.Context, in *MsgClaimSwapReward, opts ...grpc.CallOption) (*MsgClaimSwapRewardResponse, error)
	// ClaimSavingsReward is a message type used to claim savings rewards
	ClaimSavingsReward(ctx context.Context, in *MsgClaimSavingsReward, opts ...grpc.CallOption) (*MsgClaimSavingsRewardResponse, error)
	// ClaimEarnReward is a message type used to claim earn rewards
	ClaimEarnReward(ctx context.Context, in *MsgClaimEarnReward, opts ...grpc.CallOption) (*MsgClaimEarnRewardResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// ClaimUSDXMintingReward is a message type used to claim USDX minting rewards
	ClaimUSDXMintingReward(context.Context, *MsgClaimUSDXMintingReward) (*MsgClaimUSDXMintingRewardResponse, error)
	// ClaimHardReward is a message type used to claim Hard liquidity provider rewards
	ClaimHardReward(context.Context, *MsgClaimHardReward) (*MsgClaimHardRewardResponse, error)
	// ClaimDelegatorReward is a message type used to claim delegator rewards
	ClaimDelegatorReward(context.Context, *MsgClaimDelegatorReward) (*MsgClaimDelegatorRewardResponse, error)
	// ClaimSwapReward is a message type used to claim swap rewards
	ClaimSwapReward(context.Context, *MsgClaimSwapReward) (*MsgClaimSwapRewardResponse, error)
	// ClaimSavingsReward is a message type used to claim savings rewards
	ClaimSavingsReward(context.Context, *MsgClaimSavingsReward) (*MsgClaimSavingsRewardResponse, error)
	// ClaimEarnReward is a message type used to claim earn rewards
	ClaimEarnReward(context.Context, *MsgClaimEarnReward) (*MsgClaimEarnRewardResponse, error)
}

MsgServer is the server API for Msg service.

type MultiRewardIndex

type MultiRewardIndex struct {
	CollateralType string        `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
	RewardIndexes  RewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=RewardIndexes" json:"reward_indexes"`
}

MultiRewardIndex stores reward accumulation information on multiple reward types

func NewMultiRewardIndex

func NewMultiRewardIndex(collateralType string, indexes RewardIndexes) MultiRewardIndex

NewMultiRewardIndex returns a new MultiRewardIndex

func (*MultiRewardIndex) Descriptor

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

func (MultiRewardIndex) GetFactorIndex

func (mri MultiRewardIndex) GetFactorIndex(denom string) (int, bool)

GetFactorIndex gets the index of a specific reward index inside the array by its index

func (*MultiRewardIndex) Marshal

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

func (*MultiRewardIndex) MarshalTo

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

func (*MultiRewardIndex) MarshalToSizedBuffer

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

func (*MultiRewardIndex) ProtoMessage

func (*MultiRewardIndex) ProtoMessage()

func (*MultiRewardIndex) Reset

func (m *MultiRewardIndex) Reset()

func (*MultiRewardIndex) Size

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

func (*MultiRewardIndex) String

func (m *MultiRewardIndex) String() string

func (*MultiRewardIndex) Unmarshal

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

func (MultiRewardIndex) Validate

func (mri MultiRewardIndex) Validate() error

Validate validates multi-reward index

func (*MultiRewardIndex) XXX_DiscardUnknown

func (m *MultiRewardIndex) XXX_DiscardUnknown()

func (*MultiRewardIndex) XXX_Marshal

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

func (*MultiRewardIndex) XXX_Merge

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

func (*MultiRewardIndex) XXX_Size

func (m *MultiRewardIndex) XXX_Size() int

func (*MultiRewardIndex) XXX_Unmarshal

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

type MultiRewardIndexes

type MultiRewardIndexes []MultiRewardIndex

MultiRewardIndexes slice of MultiRewardIndex

func (MultiRewardIndexes) Get

func (mris MultiRewardIndexes) Get(denom string) (RewardIndexes, bool)

Get fetches a RewardIndexes by it's denom

func (MultiRewardIndexes) GetCollateralTypes

func (mris MultiRewardIndexes) GetCollateralTypes() []string

GetCollateralTypes returns a slice of containing all collateral types

func (MultiRewardIndexes) GetRewardIndex

func (mris MultiRewardIndexes) GetRewardIndex(denom string) (MultiRewardIndex, bool)

GetRewardIndex fetches a RewardIndex from a MultiRewardIndex by its denom

func (MultiRewardIndexes) GetRewardIndexIndex

func (mris MultiRewardIndexes) GetRewardIndexIndex(denom string) (int, bool)

GetRewardIndexIndex fetches a specific reward index inside the array by its denom

func (MultiRewardIndexes) RemoveRewardIndex

func (mris MultiRewardIndexes) RemoveRewardIndex(denom string) MultiRewardIndexes

RemoveRewardIndex removes a denom's reward interest factor value

func (MultiRewardIndexes) Validate

func (mris MultiRewardIndexes) Validate() error

Validate validation for reward indexes

func (MultiRewardIndexes) With

func (mris MultiRewardIndexes) With(denom string, indexes RewardIndexes) MultiRewardIndexes

With returns a copy of the indexes with a new RewardIndexes added

type MultiRewardIndexesProto

type MultiRewardIndexesProto struct {
	MultiRewardIndexes MultiRewardIndexes `` /* 139-byte string literal not displayed */
}

MultiRewardIndexesProto defines a Protobuf wrapper around a MultiRewardIndexes slice

func (*MultiRewardIndexesProto) Descriptor

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

func (*MultiRewardIndexesProto) Marshal

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

func (*MultiRewardIndexesProto) MarshalTo

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

func (*MultiRewardIndexesProto) MarshalToSizedBuffer

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

func (*MultiRewardIndexesProto) ProtoMessage

func (*MultiRewardIndexesProto) ProtoMessage()

func (*MultiRewardIndexesProto) Reset

func (m *MultiRewardIndexesProto) Reset()

func (*MultiRewardIndexesProto) Size

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

func (*MultiRewardIndexesProto) String

func (m *MultiRewardIndexesProto) String() string

func (*MultiRewardIndexesProto) Unmarshal

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

func (*MultiRewardIndexesProto) XXX_DiscardUnknown

func (m *MultiRewardIndexesProto) XXX_DiscardUnknown()

func (*MultiRewardIndexesProto) XXX_Marshal

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

func (*MultiRewardIndexesProto) XXX_Merge

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

func (*MultiRewardIndexesProto) XXX_Size

func (m *MultiRewardIndexesProto) XXX_Size() int

func (*MultiRewardIndexesProto) XXX_Unmarshal

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

type MultiRewardPeriod

type MultiRewardPeriod struct {
	Active           bool                                     `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
	CollateralType   string                                   `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
	Start            time.Time                                `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start"`
	End              time.Time                                `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end"`
	RewardsPerSecond github_com_cosmos_cosmos_sdk_types.Coins `` /* 155-byte string literal not displayed */
}

MultiRewardPeriod supports multiple reward types

func NewMultiRewardPeriod

func NewMultiRewardPeriod(active bool, collateralType string, start time.Time, end time.Time, reward sdk.Coins) MultiRewardPeriod

NewMultiRewardPeriod returns a new MultiRewardPeriod

func NewMultiRewardPeriodFromRewardPeriod

func NewMultiRewardPeriodFromRewardPeriod(period RewardPeriod) MultiRewardPeriod

NewMultiRewardPeriodFromRewardPeriod converts a RewardPeriod into a MultiRewardPeriod. It's useful for compatibility between single and multi denom rewards.

func (*MultiRewardPeriod) Descriptor

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

func (*MultiRewardPeriod) Marshal

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

func (*MultiRewardPeriod) MarshalTo

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

func (*MultiRewardPeriod) MarshalToSizedBuffer

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

func (*MultiRewardPeriod) ProtoMessage

func (*MultiRewardPeriod) ProtoMessage()

func (*MultiRewardPeriod) Reset

func (m *MultiRewardPeriod) Reset()

func (*MultiRewardPeriod) Size

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

func (*MultiRewardPeriod) String

func (m *MultiRewardPeriod) String() string

func (*MultiRewardPeriod) Unmarshal

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

func (MultiRewardPeriod) Validate

func (mrp MultiRewardPeriod) Validate() error

Validate performs a basic check of a MultiRewardPeriod.

func (*MultiRewardPeriod) XXX_DiscardUnknown

func (m *MultiRewardPeriod) XXX_DiscardUnknown()

func (*MultiRewardPeriod) XXX_Marshal

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

func (*MultiRewardPeriod) XXX_Merge

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

func (*MultiRewardPeriod) XXX_Size

func (m *MultiRewardPeriod) XXX_Size() int

func (*MultiRewardPeriod) XXX_Unmarshal

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

type MultiRewardPeriods

type MultiRewardPeriods []MultiRewardPeriod

MultiRewardPeriods array of MultiRewardPeriod

func (MultiRewardPeriods) GetMultiRewardPeriod

func (mrps MultiRewardPeriods) GetMultiRewardPeriod(denom string) (MultiRewardPeriod, bool)

GetMultiRewardPeriod fetches a MultiRewardPeriod from an array of MultiRewardPeriods by its denom

func (MultiRewardPeriods) GetMultiRewardPeriodIndex

func (mrps MultiRewardPeriods) GetMultiRewardPeriodIndex(denom string) (int, bool)

GetMultiRewardPeriodIndex returns the index of a MultiRewardPeriod inside array MultiRewardPeriods

func (MultiRewardPeriods) Validate

func (mrps MultiRewardPeriods) Validate() error

Validate checks if all the RewardPeriods are valid and there are no duplicated entries.

type Multiplier

type Multiplier struct {
	Name         string                                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MonthsLockup int64                                  `protobuf:"varint,2,opt,name=months_lockup,json=monthsLockup,proto3" json:"months_lockup,omitempty"`
	Factor       github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=factor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"factor"`
}

Multiplier amount the claim rewards get increased by, along with how long the claim rewards are locked

func NewMultiplier

func NewMultiplier(name string, lockup int64, factor sdk.Dec) Multiplier

NewMultiplier returns a new Multiplier

func (*Multiplier) Descriptor

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

func (*Multiplier) Marshal

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

func (*Multiplier) MarshalTo

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

func (*Multiplier) MarshalToSizedBuffer

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

func (*Multiplier) ProtoMessage

func (*Multiplier) ProtoMessage()

func (*Multiplier) Reset

func (m *Multiplier) Reset()

func (*Multiplier) Size

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

func (*Multiplier) String

func (m *Multiplier) String() string

func (*Multiplier) Unmarshal

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

func (Multiplier) Validate

func (m Multiplier) Validate() error

Validate multiplier param

func (*Multiplier) XXX_DiscardUnknown

func (m *Multiplier) XXX_DiscardUnknown()

func (*Multiplier) XXX_Marshal

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

func (*Multiplier) XXX_Merge

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

func (*Multiplier) XXX_Size

func (m *Multiplier) XXX_Size() int

func (*Multiplier) XXX_Unmarshal

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

type Multipliers

type Multipliers []Multiplier

Multipliers is a slice of Multiplier

func (Multipliers) Get

func (ms Multipliers) Get(name string) (Multiplier, bool)

Get returns a multiplier with a matching name

func (Multipliers) Validate

func (ms Multipliers) Validate() error

Validate validates each multiplier

type MultipliersPerDenom

type MultipliersPerDenom struct {
	Denom       string      `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Multipliers Multipliers `protobuf:"bytes,2,rep,name=multipliers,proto3,castrepeated=Multipliers" json:"multipliers"`
}

MultipliersPerDenom is a map of denoms to a set of multipliers

func (*MultipliersPerDenom) Descriptor

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

func (*MultipliersPerDenom) Marshal

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

func (*MultipliersPerDenom) MarshalTo

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

func (*MultipliersPerDenom) MarshalToSizedBuffer

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

func (*MultipliersPerDenom) ProtoMessage

func (*MultipliersPerDenom) ProtoMessage()

func (*MultipliersPerDenom) Reset

func (m *MultipliersPerDenom) Reset()

func (*MultipliersPerDenom) Size

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

func (*MultipliersPerDenom) String

func (m *MultipliersPerDenom) String() string

func (*MultipliersPerDenom) Unmarshal

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

func (*MultipliersPerDenom) XXX_DiscardUnknown

func (m *MultipliersPerDenom) XXX_DiscardUnknown()

func (*MultipliersPerDenom) XXX_Marshal

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

func (*MultipliersPerDenom) XXX_Merge

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

func (*MultipliersPerDenom) XXX_Size

func (m *MultipliersPerDenom) XXX_Size() int

func (*MultipliersPerDenom) XXX_Unmarshal

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

type MultipliersPerDenoms

type MultipliersPerDenoms []MultipliersPerDenom

MultipliersPerDenoms is a slice of MultipliersPerDenom

func (MultipliersPerDenoms) Validate

func (mpd MultipliersPerDenoms) Validate() error

Validate checks each denom and multipliers for invalid values.

type ParamSubspace

type ParamSubspace interface {
	GetParamSet(sdk.Context, paramtypes.ParamSet)
	SetParamSet(sdk.Context, paramtypes.ParamSet)
	WithKeyTable(paramtypes.KeyTable) paramtypes.Subspace
	HasKeyTable() bool
}

ParamSubspace defines the expected Subspace interfacace

type Params

type Params struct {
	USDXMintingRewardPeriods RewardPeriods        `` /* 154-byte string literal not displayed */
	HardSupplyRewardPeriods  MultiRewardPeriods   `` /* 156-byte string literal not displayed */
	HardBorrowRewardPeriods  MultiRewardPeriods   `` /* 156-byte string literal not displayed */
	DelegatorRewardPeriods   MultiRewardPeriods   `` /* 151-byte string literal not displayed */
	SwapRewardPeriods        MultiRewardPeriods   `` /* 136-byte string literal not displayed */
	ClaimMultipliers         MultipliersPerDenoms `` /* 133-byte string literal not displayed */
	ClaimEnd                 time.Time            `protobuf:"bytes,7,opt,name=claim_end,json=claimEnd,proto3,stdtime" json:"claim_end"`
	SavingsRewardPeriods     MultiRewardPeriods   `` /* 145-byte string literal not displayed */
	EarnRewardPeriods        MultiRewardPeriods   `` /* 136-byte string literal not displayed */
}

Params

func DefaultParams

func DefaultParams() Params

DefaultParams returns default params for incentive module

func NewParams

func NewParams(
	usdxMinting RewardPeriods,

	hardSupply, hardBorrow, delegator, swap, savings, earn MultiRewardPeriods,
	multipliers MultipliersPerDenoms,
	claimEnd time.Time,
) Params

NewParams returns a new params object

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate checks that the parameters have valid values.

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 PricefeedKeeper

type PricefeedKeeper interface {
	GetCurrentPrice(ctx sdk.Context, marketID string) (pricefeedtypes.CurrentPrice, error)
}

PricefeedKeeper defines the required methods needed by this modules keeper

type QueryApyRequest

type QueryApyRequest struct {
}

QueryApysRequest is the request type for the Query/Apys RPC method.

func (*QueryApyRequest) Descriptor

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

func (*QueryApyRequest) Marshal

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

func (*QueryApyRequest) MarshalTo

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

func (*QueryApyRequest) MarshalToSizedBuffer

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

func (*QueryApyRequest) ProtoMessage

func (*QueryApyRequest) ProtoMessage()

func (*QueryApyRequest) Reset

func (m *QueryApyRequest) Reset()

func (*QueryApyRequest) Size

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

func (*QueryApyRequest) String

func (m *QueryApyRequest) String() string

func (*QueryApyRequest) Unmarshal

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

func (*QueryApyRequest) XXX_DiscardUnknown

func (m *QueryApyRequest) XXX_DiscardUnknown()

func (*QueryApyRequest) XXX_Marshal

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

func (*QueryApyRequest) XXX_Merge

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

func (*QueryApyRequest) XXX_Size

func (m *QueryApyRequest) XXX_Size() int

func (*QueryApyRequest) XXX_Unmarshal

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

type QueryApyResponse

type QueryApyResponse struct {
	Earn []Apy `protobuf:"bytes,1,rep,name=earn,proto3" json:"earn"`
}

QueryApysResponse is the response type for the Query/Apys RPC method.

func (*QueryApyResponse) Descriptor

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

func (*QueryApyResponse) GetEarn

func (m *QueryApyResponse) GetEarn() []Apy

func (*QueryApyResponse) Marshal

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

func (*QueryApyResponse) MarshalTo

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

func (*QueryApyResponse) MarshalToSizedBuffer

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

func (*QueryApyResponse) ProtoMessage

func (*QueryApyResponse) ProtoMessage()

func (*QueryApyResponse) Reset

func (m *QueryApyResponse) Reset()

func (*QueryApyResponse) Size

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

func (*QueryApyResponse) String

func (m *QueryApyResponse) String() string

func (*QueryApyResponse) Unmarshal

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

func (*QueryApyResponse) XXX_DiscardUnknown

func (m *QueryApyResponse) XXX_DiscardUnknown()

func (*QueryApyResponse) XXX_Marshal

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

func (*QueryApyResponse) XXX_Merge

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

func (*QueryApyResponse) XXX_Size

func (m *QueryApyResponse) XXX_Size() int

func (*QueryApyResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries module params.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Rewards queries reward information for a given user.
	Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error)
	// Rewards queries the reward factors.
	RewardFactors(ctx context.Context, in *QueryRewardFactorsRequest, opts ...grpc.CallOption) (*QueryRewardFactorsResponse, error)
	// Apy queries incentive reward apy for a reward.
	Apy(ctx context.Context, in *QueryApyRequest, opts ...grpc.CallOption) (*QueryApyResponse, 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 QueryGetAPYsResponse

type QueryGetAPYsResponse struct {
	Earn []Apy `json:"earn" yaml:"earn"`
}

QueryGetAPYsResponse holds the response to a APY query

func NewQueryGetAPYsResponse

func NewQueryGetAPYsResponse(earn []Apy) QueryGetAPYsResponse

NewQueryGetAPYsResponse returns a new instance of QueryGetAPYsResponse

type QueryGetRewardFactorsResponse

type QueryGetRewardFactorsResponse struct {
	USDXMintingRewardFactors RewardIndexes      `json:"usdx_minting_reward_factors" yaml:"usdx_minting_reward_factors"`
	HardSupplyRewardFactors  MultiRewardIndexes `json:"hard_supply_reward_factors" yaml:"hard_supply_reward_factors"`
	HardBorrowRewardFactors  MultiRewardIndexes `json:"hard_borrow_reward_factors" yaml:"hard_borrow_reward_factors"`
	DelegatorRewardFactors   MultiRewardIndexes `json:"delegator_reward_factors" yaml:"delegator_reward_factors"`
	SwapRewardFactors        MultiRewardIndexes `json:"swap_reward_factors" yaml:"swap_reward_factors"`
	SavingsRewardFactors     MultiRewardIndexes `json:"savings_reward_factors" yaml:"savings_reward_factors"`
	EarnRewardFactors        MultiRewardIndexes `json:"earn_reward_factors" yaml:"earn_reward_factors"`
}

QueryGetRewardFactorsResponse holds the response to a reward factor query

func NewQueryGetRewardFactorsResponse

func NewQueryGetRewardFactorsResponse(usdxMintingFactors RewardIndexes, supplyFactors,
	hardBorrowFactors, delegatorFactors, swapFactors, savingsFactors, earnFactors MultiRewardIndexes,
) QueryGetRewardFactorsResponse

NewQueryGetRewardFactorsResponse returns a new instance of QueryAllRewardFactorsResponse

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

QueryParamsResponse is the response type for the Query/Params RPC method.

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 QueryRewardFactorsRequest

type QueryRewardFactorsRequest struct {
}

QueryRewardFactorsRequest is the request type for the Query/RewardFactors RPC method.

func (*QueryRewardFactorsRequest) Descriptor

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

func (*QueryRewardFactorsRequest) Marshal

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

func (*QueryRewardFactorsRequest) MarshalTo

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

func (*QueryRewardFactorsRequest) MarshalToSizedBuffer

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

func (*QueryRewardFactorsRequest) ProtoMessage

func (*QueryRewardFactorsRequest) ProtoMessage()

func (*QueryRewardFactorsRequest) Reset

func (m *QueryRewardFactorsRequest) Reset()

func (*QueryRewardFactorsRequest) Size

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

func (*QueryRewardFactorsRequest) String

func (m *QueryRewardFactorsRequest) String() string

func (*QueryRewardFactorsRequest) Unmarshal

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

func (*QueryRewardFactorsRequest) XXX_DiscardUnknown

func (m *QueryRewardFactorsRequest) XXX_DiscardUnknown()

func (*QueryRewardFactorsRequest) XXX_Marshal

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

func (*QueryRewardFactorsRequest) XXX_Merge

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

func (*QueryRewardFactorsRequest) XXX_Size

func (m *QueryRewardFactorsRequest) XXX_Size() int

func (*QueryRewardFactorsRequest) XXX_Unmarshal

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

type QueryRewardFactorsResponse

type QueryRewardFactorsResponse struct {
	UsdxMintingRewardFactors RewardIndexes      `` /* 154-byte string literal not displayed */
	HardSupplyRewardFactors  MultiRewardIndexes `` /* 156-byte string literal not displayed */
	HardBorrowRewardFactors  MultiRewardIndexes `` /* 156-byte string literal not displayed */
	DelegatorRewardFactors   MultiRewardIndexes `` /* 151-byte string literal not displayed */
	SwapRewardFactors        MultiRewardIndexes `` /* 136-byte string literal not displayed */
	SavingsRewardFactors     MultiRewardIndexes `` /* 145-byte string literal not displayed */
	EarnRewardFactors        MultiRewardIndexes `` /* 136-byte string literal not displayed */
}

QueryRewardFactorsResponse is the response type for the Query/RewardFactors RPC method.

func (*QueryRewardFactorsResponse) Descriptor

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

func (*QueryRewardFactorsResponse) GetDelegatorRewardFactors

func (m *QueryRewardFactorsResponse) GetDelegatorRewardFactors() MultiRewardIndexes

func (*QueryRewardFactorsResponse) GetEarnRewardFactors

func (m *QueryRewardFactorsResponse) GetEarnRewardFactors() MultiRewardIndexes

func (*QueryRewardFactorsResponse) GetHardBorrowRewardFactors

func (m *QueryRewardFactorsResponse) GetHardBorrowRewardFactors() MultiRewardIndexes

func (*QueryRewardFactorsResponse) GetHardSupplyRewardFactors

func (m *QueryRewardFactorsResponse) GetHardSupplyRewardFactors() MultiRewardIndexes

func (*QueryRewardFactorsResponse) GetSavingsRewardFactors

func (m *QueryRewardFactorsResponse) GetSavingsRewardFactors() MultiRewardIndexes

func (*QueryRewardFactorsResponse) GetSwapRewardFactors

func (m *QueryRewardFactorsResponse) GetSwapRewardFactors() MultiRewardIndexes

func (*QueryRewardFactorsResponse) GetUsdxMintingRewardFactors

func (m *QueryRewardFactorsResponse) GetUsdxMintingRewardFactors() RewardIndexes

func (*QueryRewardFactorsResponse) Marshal

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

func (*QueryRewardFactorsResponse) MarshalTo

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

func (*QueryRewardFactorsResponse) MarshalToSizedBuffer

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

func (*QueryRewardFactorsResponse) ProtoMessage

func (*QueryRewardFactorsResponse) ProtoMessage()

func (*QueryRewardFactorsResponse) Reset

func (m *QueryRewardFactorsResponse) Reset()

func (*QueryRewardFactorsResponse) Size

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

func (*QueryRewardFactorsResponse) String

func (m *QueryRewardFactorsResponse) String() string

func (*QueryRewardFactorsResponse) Unmarshal

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

func (*QueryRewardFactorsResponse) XXX_DiscardUnknown

func (m *QueryRewardFactorsResponse) XXX_DiscardUnknown()

func (*QueryRewardFactorsResponse) XXX_Marshal

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

func (*QueryRewardFactorsResponse) XXX_Merge

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

func (*QueryRewardFactorsResponse) XXX_Size

func (m *QueryRewardFactorsResponse) XXX_Size() int

func (*QueryRewardFactorsResponse) XXX_Unmarshal

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

type QueryRewardsParams

type QueryRewardsParams struct {
	Page           int            `json:"page" yaml:"page"`
	Limit          int            `json:"limit" yaml:"limit"`
	Owner          sdk.AccAddress `json:"owner" yaml:"owner"`
	Unsynchronized bool           `json:"unsynchronized" yaml:"unsynchronized"`
}

QueryRewardsParams params for query /incentive/rewards/<claim type>

func NewQueryRewardsParams

func NewQueryRewardsParams(page, limit int, owner sdk.AccAddress, unsynchronized bool) QueryRewardsParams

NewQueryRewardsParams returns QueryRewardsParams

type QueryRewardsRequest

type QueryRewardsRequest struct {
	// owner is the address of the user to query rewards for.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// reward_type is the type of reward to query rewards for, e.g. hard, earn,
	// swap.
	RewardType string `protobuf:"bytes,2,opt,name=reward_type,json=rewardType,proto3" json:"reward_type,omitempty"`
	// unsynchronized is a flag to query rewards that are not simulated for reward
	// synchronized for the current block.
	Unsynchronized bool `protobuf:"varint,3,opt,name=unsynchronized,proto3" json:"unsynchronized,omitempty"`
}

QueryRewardsRequest is the request type for the Query/Rewards RPC method.

func (*QueryRewardsRequest) Descriptor

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

func (*QueryRewardsRequest) GetOwner

func (m *QueryRewardsRequest) GetOwner() string

func (*QueryRewardsRequest) GetRewardType

func (m *QueryRewardsRequest) GetRewardType() string

func (*QueryRewardsRequest) GetUnsynchronized

func (m *QueryRewardsRequest) GetUnsynchronized() bool

func (*QueryRewardsRequest) Marshal

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

func (*QueryRewardsRequest) MarshalTo

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

func (*QueryRewardsRequest) MarshalToSizedBuffer

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

func (*QueryRewardsRequest) ProtoMessage

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) Reset

func (m *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) Size

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

func (*QueryRewardsRequest) String

func (m *QueryRewardsRequest) String() string

func (*QueryRewardsRequest) Unmarshal

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

func (*QueryRewardsRequest) XXX_DiscardUnknown

func (m *QueryRewardsRequest) XXX_DiscardUnknown()

func (*QueryRewardsRequest) XXX_Marshal

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

func (*QueryRewardsRequest) XXX_Merge

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

func (*QueryRewardsRequest) XXX_Size

func (m *QueryRewardsRequest) XXX_Size() int

func (*QueryRewardsRequest) XXX_Unmarshal

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

type QueryRewardsResponse

type QueryRewardsResponse struct {
	USDXMintingClaims           USDXMintingClaims           `` /* 135-byte string literal not displayed */
	HardLiquidityProviderClaims HardLiquidityProviderClaims `` /* 177-byte string literal not displayed */
	DelegatorClaims             DelegatorClaims             `protobuf:"bytes,3,rep,name=delegator_claims,json=delegatorClaims,proto3,castrepeated=DelegatorClaims" json:"delegator_claims"`
	SwapClaims                  SwapClaims                  `protobuf:"bytes,4,rep,name=swap_claims,json=swapClaims,proto3,castrepeated=SwapClaims" json:"swap_claims"`
	SavingsClaims               SavingsClaims               `protobuf:"bytes,5,rep,name=savings_claims,json=savingsClaims,proto3,castrepeated=SavingsClaims" json:"savings_claims"`
	EarnClaims                  EarnClaims                  `protobuf:"bytes,6,rep,name=earn_claims,json=earnClaims,proto3,castrepeated=EarnClaims" json:"earn_claims"`
}

QueryRewardsResponse is the response type for the Query/Rewards RPC method.

func (*QueryRewardsResponse) Descriptor

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

func (*QueryRewardsResponse) GetDelegatorClaims

func (m *QueryRewardsResponse) GetDelegatorClaims() DelegatorClaims

func (*QueryRewardsResponse) GetEarnClaims

func (m *QueryRewardsResponse) GetEarnClaims() EarnClaims

func (*QueryRewardsResponse) GetHardLiquidityProviderClaims

func (m *QueryRewardsResponse) GetHardLiquidityProviderClaims() HardLiquidityProviderClaims

func (*QueryRewardsResponse) GetSavingsClaims

func (m *QueryRewardsResponse) GetSavingsClaims() SavingsClaims

func (*QueryRewardsResponse) GetSwapClaims

func (m *QueryRewardsResponse) GetSwapClaims() SwapClaims

func (*QueryRewardsResponse) GetUSDXMintingClaims

func (m *QueryRewardsResponse) GetUSDXMintingClaims() USDXMintingClaims

func (*QueryRewardsResponse) Marshal

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

func (*QueryRewardsResponse) MarshalTo

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

func (*QueryRewardsResponse) MarshalToSizedBuffer

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

func (*QueryRewardsResponse) ProtoMessage

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) Reset

func (m *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) Size

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

func (*QueryRewardsResponse) String

func (m *QueryRewardsResponse) String() string

func (*QueryRewardsResponse) Unmarshal

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

func (*QueryRewardsResponse) XXX_DiscardUnknown

func (m *QueryRewardsResponse) XXX_DiscardUnknown()

func (*QueryRewardsResponse) XXX_Marshal

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

func (*QueryRewardsResponse) XXX_Merge

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

func (*QueryRewardsResponse) XXX_Size

func (m *QueryRewardsResponse) XXX_Size() int

func (*QueryRewardsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries module params.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Rewards queries reward information for a given user.
	Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
	// Rewards queries the reward factors.
	RewardFactors(context.Context, *QueryRewardFactorsRequest) (*QueryRewardFactorsResponse, error)
	// Apy queries incentive reward apy for a reward.
	Apy(context.Context, *QueryApyRequest) (*QueryApyResponse, error)
}

QueryServer is the server API for Query service.

type RewardIndex

type RewardIndex struct {
	CollateralType string                                 `protobuf:"bytes,1,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
	RewardFactor   github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
}

RewardIndex stores reward accumulation information

func NewRewardIndex

func NewRewardIndex(collateralType string, factor sdk.Dec) RewardIndex

NewRewardIndex returns a new RewardIndex

func (*RewardIndex) Descriptor

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

func (*RewardIndex) Marshal

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

func (*RewardIndex) MarshalTo

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

func (*RewardIndex) MarshalToSizedBuffer

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

func (*RewardIndex) ProtoMessage

func (*RewardIndex) ProtoMessage()

func (*RewardIndex) Reset

func (m *RewardIndex) Reset()

func (*RewardIndex) Size

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

func (*RewardIndex) String

func (m *RewardIndex) String() string

func (*RewardIndex) Unmarshal

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

func (RewardIndex) Validate

func (ri RewardIndex) Validate() error

Validate validates reward index

func (*RewardIndex) XXX_DiscardUnknown

func (m *RewardIndex) XXX_DiscardUnknown()

func (*RewardIndex) XXX_Marshal

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

func (*RewardIndex) XXX_Merge

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

func (*RewardIndex) XXX_Size

func (m *RewardIndex) XXX_Size() int

func (*RewardIndex) XXX_Unmarshal

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

type RewardIndexes

type RewardIndexes []RewardIndex

RewardIndexes slice of RewardIndex

func NewRewardIndexesFromCoins

func NewRewardIndexesFromCoins(coins sdk.DecCoins) RewardIndexes

NewRewardIndexesFromCoins is a helper function to initialize a RewardIndexes slice with the values from a Coins slice.

func (RewardIndexes) Add

func (ris RewardIndexes) Add(addend RewardIndexes) RewardIndexes

Add combines two reward indexes by adding together factors with the same CollateralType. Any CollateralTypes unique to either reward indexes are included in the output as is.

func (RewardIndexes) Get

func (ris RewardIndexes) Get(denom string) (sdk.Dec, bool)

Get fetches a RewardFactor by it's denom

func (RewardIndexes) GetFactorIndex

func (ris RewardIndexes) GetFactorIndex(denom string) (int, bool)

GetFactorIndex gets the index of a specific reward index inside the array by its index

func (RewardIndexes) GetRewardIndex

func (ris RewardIndexes) GetRewardIndex(denom string) (RewardIndex, bool)

GetRewardIndex fetches a RewardIndex by its denom

func (RewardIndexes) Mul

func (ris RewardIndexes) Mul(multiplier sdk.Dec) RewardIndexes

Mul returns a copy of RewardIndexes with all factors multiplied by a single value.

func (RewardIndexes) Quo

func (ris RewardIndexes) Quo(divisor sdk.Dec) RewardIndexes

Quo returns a copy of RewardIndexes with all factors divided by a single value. It uses sdk.Dec.Quo for the division.

func (RewardIndexes) Validate

func (ris RewardIndexes) Validate() error

Validate validation for reward indexes

func (RewardIndexes) With

func (ris RewardIndexes) With(denom string, factor sdk.Dec) RewardIndexes

With returns a copy of the indexes with a new reward factor added

type RewardIndexesProto

type RewardIndexesProto struct {
	RewardIndexes RewardIndexes `protobuf:"bytes,1,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=RewardIndexes" json:"reward_indexes"`
}

RewardIndexesProto defines a Protobuf wrapper around a RewardIndexes slice

func (*RewardIndexesProto) Descriptor

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

func (*RewardIndexesProto) Marshal

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

func (*RewardIndexesProto) MarshalTo

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

func (*RewardIndexesProto) MarshalToSizedBuffer

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

func (*RewardIndexesProto) ProtoMessage

func (*RewardIndexesProto) ProtoMessage()

func (*RewardIndexesProto) Reset

func (m *RewardIndexesProto) Reset()

func (*RewardIndexesProto) Size

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

func (*RewardIndexesProto) String

func (m *RewardIndexesProto) String() string

func (*RewardIndexesProto) Unmarshal

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

func (*RewardIndexesProto) XXX_DiscardUnknown

func (m *RewardIndexesProto) XXX_DiscardUnknown()

func (*RewardIndexesProto) XXX_Marshal

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

func (*RewardIndexesProto) XXX_Merge

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

func (*RewardIndexesProto) XXX_Size

func (m *RewardIndexesProto) XXX_Size() int

func (*RewardIndexesProto) XXX_Unmarshal

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

type RewardPeriod

type RewardPeriod struct {
	Active           bool       `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
	CollateralType   string     `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
	Start            time.Time  `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start"`
	End              time.Time  `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end"`
	RewardsPerSecond types.Coin `protobuf:"bytes,5,opt,name=rewards_per_second,json=rewardsPerSecond,proto3" json:"rewards_per_second"`
}

RewardPeriod stores the state of an ongoing reward

func NewRewardPeriod

func NewRewardPeriod(active bool, collateralType string, start time.Time, end time.Time, reward sdk.Coin) RewardPeriod

NewRewardPeriod returns a new RewardPeriod

func (*RewardPeriod) Descriptor

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

func (*RewardPeriod) Marshal

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

func (*RewardPeriod) MarshalTo

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

func (*RewardPeriod) MarshalToSizedBuffer

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

func (*RewardPeriod) ProtoMessage

func (*RewardPeriod) ProtoMessage()

func (*RewardPeriod) Reset

func (m *RewardPeriod) Reset()

func (*RewardPeriod) Size

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

func (*RewardPeriod) String

func (m *RewardPeriod) String() string

func (*RewardPeriod) Unmarshal

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

func (RewardPeriod) Validate

func (rp RewardPeriod) Validate() error

Validate performs a basic check of a RewardPeriod fields.

func (*RewardPeriod) XXX_DiscardUnknown

func (m *RewardPeriod) XXX_DiscardUnknown()

func (*RewardPeriod) XXX_Marshal

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

func (*RewardPeriod) XXX_Merge

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

func (*RewardPeriod) XXX_Size

func (m *RewardPeriod) XXX_Size() int

func (*RewardPeriod) XXX_Unmarshal

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

type RewardPeriods

type RewardPeriods []RewardPeriod

RewardPeriods array of RewardPeriod

func (RewardPeriods) Validate

func (rps RewardPeriods) Validate() error

Validate checks if all the RewardPeriods are valid and there are no duplicated entries.

type SavingsClaim

type SavingsClaim struct {
	BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"`
	RewardIndexes  MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"`
}

SavingsClaim stores the savings rewards that can be claimed by owner

func NewSavingsClaim

func NewSavingsClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) SavingsClaim

NewSavingsClaim returns a new SavingsClaim

func (*SavingsClaim) Descriptor

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

func (SavingsClaim) GetOwner

func (c SavingsClaim) GetOwner() sdk.AccAddress

GetOwner returns the claim's owner

func (SavingsClaim) GetReward

func (c SavingsClaim) GetReward() sdk.Coins

GetReward returns the claim's reward coin

func (SavingsClaim) GetType

func (c SavingsClaim) GetType() string

GetType returns the claim's type

func (SavingsClaim) HasRewardIndex

func (c SavingsClaim) HasRewardIndex(denom string) (int64, bool)

HasRewardIndex check if a claim has a reward index for the input denom

func (*SavingsClaim) Marshal

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

func (*SavingsClaim) MarshalTo

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

func (*SavingsClaim) MarshalToSizedBuffer

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

func (*SavingsClaim) ProtoMessage

func (*SavingsClaim) ProtoMessage()

func (*SavingsClaim) Reset

func (m *SavingsClaim) Reset()

func (*SavingsClaim) Size

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

func (*SavingsClaim) String

func (m *SavingsClaim) String() string

func (*SavingsClaim) Unmarshal

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

func (SavingsClaim) Validate

func (c SavingsClaim) Validate() error

Validate performs a basic check of a SavingsClaim fields

func (*SavingsClaim) XXX_DiscardUnknown

func (m *SavingsClaim) XXX_DiscardUnknown()

func (*SavingsClaim) XXX_Marshal

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

func (*SavingsClaim) XXX_Merge

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

func (*SavingsClaim) XXX_Size

func (m *SavingsClaim) XXX_Size() int

func (*SavingsClaim) XXX_Unmarshal

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

type SavingsClaims

type SavingsClaims []SavingsClaim

SavingsClaims slice of SavingsClaim

func (SavingsClaims) Validate

func (cs SavingsClaims) Validate() error

Validate checks if all the claims are valid.

type SavingsKeeper

type SavingsKeeper interface {
	GetDeposit(ctx sdk.Context, depositor sdk.AccAddress) (savingstypes.Deposit, bool)
	GetSavingsModuleAccountBalances(ctx sdk.Context) sdk.Coins
}

SavingsKeeper defines the required methods needed by this module's keeper

type Selection

type Selection struct {
	Denom          string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	MultiplierName string `protobuf:"bytes,2,opt,name=multiplier_name,json=multiplierName,proto3" json:"multiplier_name,omitempty"`
}

Selection is a pair of denom and multiplier name. It holds the choice of multiplier a user makes when they claim a denom.

func NewSelection

func NewSelection(denom, multiplierName string) Selection

NewSelection returns a new Selection

func (*Selection) Descriptor

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

func (*Selection) Marshal

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

func (*Selection) MarshalTo

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

func (*Selection) MarshalToSizedBuffer

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

func (*Selection) ProtoMessage

func (*Selection) ProtoMessage()

func (*Selection) Reset

func (m *Selection) Reset()

func (*Selection) Size

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

func (*Selection) String

func (m *Selection) String() string

func (*Selection) Unmarshal

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

func (Selection) Validate

func (s Selection) Validate() error

Validate performs basic validation checks

func (*Selection) XXX_DiscardUnknown

func (m *Selection) XXX_DiscardUnknown()

func (*Selection) XXX_Marshal

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

func (*Selection) XXX_Merge

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

func (*Selection) XXX_Size

func (m *Selection) XXX_Size() int

func (*Selection) XXX_Unmarshal

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

type Selections

type Selections []Selection

Selections are a list of denom - multiplier pairs that specify what rewards to claim and with what lockups.

func NewSelectionsFromMap

func NewSelectionsFromMap(selectionMap map[string]string) Selections

NewSelectionsFromMap creates a new set of selections from a string to string map. It sorts the output before returning.

func (Selections) Validate

func (ss Selections) Validate() error

Valdate performs basic validaton checks

type StakingKeeper

type StakingKeeper interface {
	GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []stakingtypes.Delegation)
	GetValidatorDelegations(ctx sdk.Context, valAddr sdk.ValAddress) (delegations []stakingtypes.Delegation)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	TotalBondedTokens(ctx sdk.Context) sdkmath.Int
}

StakingKeeper defines the expected staking keeper for module accounts

type SwapClaim

type SwapClaim struct {
	BaseMultiClaim `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"`
	RewardIndexes  MultiRewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=MultiRewardIndexes" json:"reward_indexes"`
}

SwapClaim stores the swap rewards that can be claimed by owner

func NewSwapClaim

func NewSwapClaim(owner sdk.AccAddress, rewards sdk.Coins, rewardIndexes MultiRewardIndexes) SwapClaim

NewSwapClaim returns a new SwapClaim

func (*SwapClaim) Descriptor

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

func (SwapClaim) GetOwner

func (c SwapClaim) GetOwner() sdk.AccAddress

GetOwner returns the claim's owner

func (SwapClaim) GetReward

func (c SwapClaim) GetReward() sdk.Coins

GetReward returns the claim's reward coin

func (SwapClaim) GetType

func (c SwapClaim) GetType() string

GetType returns the claim's type

func (SwapClaim) HasRewardIndex

func (c SwapClaim) HasRewardIndex(poolID string) (int64, bool)

HasRewardIndex check if a claim has a reward index for the input pool ID.

func (*SwapClaim) Marshal

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

func (*SwapClaim) MarshalTo

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

func (*SwapClaim) MarshalToSizedBuffer

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

func (*SwapClaim) ProtoMessage

func (*SwapClaim) ProtoMessage()

func (*SwapClaim) Reset

func (m *SwapClaim) Reset()

func (*SwapClaim) Size

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

func (*SwapClaim) String

func (m *SwapClaim) String() string

func (*SwapClaim) Unmarshal

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

func (SwapClaim) Validate

func (c SwapClaim) Validate() error

Validate performs a basic check of a SwapClaim fields

func (*SwapClaim) XXX_DiscardUnknown

func (m *SwapClaim) XXX_DiscardUnknown()

func (*SwapClaim) XXX_Marshal

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

func (*SwapClaim) XXX_Merge

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

func (*SwapClaim) XXX_Size

func (m *SwapClaim) XXX_Size() int

func (*SwapClaim) XXX_Unmarshal

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

type SwapClaims

type SwapClaims []SwapClaim

SwapClaims slice of SwapClaim

func (SwapClaims) Validate

func (cs SwapClaims) Validate() error

Validate checks if all the claims are valid.

type SwapKeeper

type SwapKeeper interface {
	GetPoolShares(ctx sdk.Context, poolID string) (shares sdkmath.Int, found bool)
	GetDepositorSharesAmount(ctx sdk.Context, depositor sdk.AccAddress, poolID string) (shares sdkmath.Int, found bool)
}

SwapKeeper defines the required methods needed by this modules keeper

type USDXMintingClaim

type USDXMintingClaim struct {
	BaseClaim     `protobuf:"bytes,1,opt,name=base_claim,json=baseClaim,proto3,embedded=base_claim" json:"base_claim"`
	RewardIndexes RewardIndexes `protobuf:"bytes,2,rep,name=reward_indexes,json=rewardIndexes,proto3,castrepeated=RewardIndexes" json:"reward_indexes"`
}

USDXMintingClaim is for USDX minting rewards

func NewUSDXMintingClaim

func NewUSDXMintingClaim(owner sdk.AccAddress, reward sdk.Coin, rewardIndexes RewardIndexes) USDXMintingClaim

NewUSDXMintingClaim returns a new USDXMintingClaim

func (*USDXMintingClaim) Descriptor

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

func (USDXMintingClaim) GetOwner

func (c USDXMintingClaim) GetOwner() sdk.AccAddress

GetOwner returns the claim's owner

func (USDXMintingClaim) GetReward

func (c USDXMintingClaim) GetReward() sdk.Coin

GetReward returns the claim's reward coin

func (USDXMintingClaim) GetType

func (c USDXMintingClaim) GetType() string

GetType returns the claim's type

func (USDXMintingClaim) HasRewardIndex

func (c USDXMintingClaim) HasRewardIndex(collateralType string) (int64, bool)

HasRewardIndex check if a claim has a reward index for the input collateral type

func (*USDXMintingClaim) Marshal

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

func (*USDXMintingClaim) MarshalTo

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

func (*USDXMintingClaim) MarshalToSizedBuffer

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

func (*USDXMintingClaim) ProtoMessage

func (*USDXMintingClaim) ProtoMessage()

func (*USDXMintingClaim) Reset

func (m *USDXMintingClaim) Reset()

func (*USDXMintingClaim) Size

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

func (*USDXMintingClaim) String

func (m *USDXMintingClaim) String() string

func (*USDXMintingClaim) Unmarshal

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

func (USDXMintingClaim) Validate

func (c USDXMintingClaim) Validate() error

Validate performs a basic check of a Claim fields

func (*USDXMintingClaim) XXX_DiscardUnknown

func (m *USDXMintingClaim) XXX_DiscardUnknown()

func (*USDXMintingClaim) XXX_Marshal

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

func (*USDXMintingClaim) XXX_Merge

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

func (*USDXMintingClaim) XXX_Size

func (m *USDXMintingClaim) XXX_Size() int

func (*USDXMintingClaim) XXX_Unmarshal

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

type USDXMintingClaims

type USDXMintingClaims []USDXMintingClaim

USDXMintingClaims slice of USDXMintingClaim

func (USDXMintingClaims) Validate

func (cs USDXMintingClaims) Validate() error

Validate checks if all the claims are valid and there are no duplicated entries.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClaimDelegatorReward

func (*UnimplementedMsgServer) ClaimEarnReward

func (*UnimplementedMsgServer) ClaimHardReward

func (*UnimplementedMsgServer) ClaimSavingsReward

func (*UnimplementedMsgServer) ClaimSwapReward

func (*UnimplementedMsgServer) ClaimUSDXMintingReward

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Apy

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) RewardFactors

func (*UnimplementedQueryServer) Rewards

Jump to

Keyboard shortcuts

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