types

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 36 Imported by: 14

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeHardDeposit          = "hard_deposit"
	EventTypeHardWithdrawal       = "hard_withdrawal"
	EventTypeHardBorrow           = "hard_borrow"
	EventTypeHardLiquidation      = "hard_liquidation"
	EventTypeHardRepay            = "hard_repay"
	AttributeValueCategory        = ModuleName
	AttributeKeyDeposit           = "deposit"
	AttributeKeyDepositDenom      = "deposit_denom"
	AttributeKeyDepositCoins      = "deposit_coins"
	AttributeKeyDepositor         = "depositor"
	AttributeKeyBorrow            = "borrow"
	AttributeKeyBorrower          = "borrower"
	AttributeKeyBorrowCoins       = "borrow_coins"
	AttributeKeySender            = "sender"
	AttributeKeyRepayCoins        = "repay_coins"
	AttributeKeyLiquidatedOwner   = "liquidated_owner"
	AttributeKeyLiquidatedCoins   = "liquidated_coins"
	AttributeKeyKeeper            = "keeper"
	AttributeKeyKeeperRewardCoins = "keeper_reward_coins"
	AttributeKeyOwner             = "owner"
)

Event types for hard module

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

	// ModuleAccountName name of module account used to hold deposits
	ModuleAccountName = "hard"

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

	// RouterKey Top level router key
	RouterKey = ModuleName

	// QuerierRoute Top level query string
	QuerierRoute = ModuleName

	// DefaultParamspace default name for parameter store
	DefaultParamspace = ModuleName
)
View Source
const (
	QueryGetParams           = "params"
	QueryGetModuleAccounts   = "accounts"
	QueryGetDeposits         = "deposits"
	QueryGetUnsyncedDeposits = "unsynced-deposits"
	QueryGetTotalDeposited   = "total-deposited"
	QueryGetBorrows          = "borrows"
	QueryGetUnsyncedBorrows  = "unsynced-borrows"
	QueryGetTotalBorrowed    = "total-borrowed"
	QueryGetInterestRate     = "interest-rate"
	QueryGetReserves         = "reserves"
	QueryGetInterestFactors  = "interest-factors"
)

Querier routes for the hard module

Variables

View Source
var (
	// ErrInvalidDepositDenom error for invalid deposit denoms
	ErrInvalidDepositDenom = sdkerrors.Register(ModuleName, 2, "invalid deposit denom")
	// ErrDepositNotFound error for deposit not found
	ErrDepositNotFound = sdkerrors.Register(ModuleName, 3, "deposit not found")
	// ErrInvalidWithdrawAmount error for invalid withdrawal amount
	ErrInvalidWithdrawAmount = sdkerrors.Register(ModuleName, 4, "invalid withdrawal amount")
	// ErrInsufficientModAccountBalance error for module account with innsufficient balance
	ErrInsufficientModAccountBalance = sdkerrors.Register(ModuleName, 5, "module account has insufficient balance to pay reward")
	// ErrInvalidAccountType error for unsupported accounts
	ErrInvalidAccountType = sdkerrors.Register(ModuleName, 6, "receiver account type not supported")
	// ErrAccountNotFound error for accounts that are not found in state
	ErrAccountNotFound = sdkerrors.Register(ModuleName, 7, "account not found")
	// ErrInvalidReceiver error for when sending and receiving accounts don't match
	ErrInvalidReceiver = sdkerrors.Register(ModuleName, 8, "receiver account must match sender account")
	// ErrMoneyMarketNotFound error for money market param not found
	ErrMoneyMarketNotFound = sdkerrors.Register(ModuleName, 9, "no money market found")
	// ErrDepositsNotFound error for no deposits found
	ErrDepositsNotFound = sdkerrors.Register(ModuleName, 10, "no deposits found")
	// ErrInsufficientLoanToValue error for when an attempted borrow exceeds maximum loan-to-value
	ErrInsufficientLoanToValue = sdkerrors.Register(ModuleName, 11, "not enough collateral supplied by account")
	// ErrMarketNotFound error for when a market for the input denom is not found
	ErrMarketNotFound = sdkerrors.Register(ModuleName, 12, "no market found for denom")
	// ErrPriceNotFound error for when a price for the input market is not found
	ErrPriceNotFound = sdkerrors.Register(ModuleName, 13, "no price found for market")
	// ErrBorrowExceedsAvailableBalance for when a requested borrow exceeds available module acc balances
	ErrBorrowExceedsAvailableBalance = sdkerrors.Register(ModuleName, 14, "exceeds module account balance")
	// ErrBorrowedCoinsNotFound error for when the total amount of borrowed coins cannot be found
	ErrBorrowedCoinsNotFound = sdkerrors.Register(ModuleName, 15, "no borrowed coins found")
	// ErrNegativeBorrowedCoins error for when substracting coins from the total borrowed balance results in a negative amount
	ErrNegativeBorrowedCoins = sdkerrors.Register(ModuleName, 16, "subtraction results in negative borrow amount")
	// ErrGreaterThanAssetBorrowLimit error for when a proposed borrow would increase borrowed amount over the asset's global borrow limit
	ErrGreaterThanAssetBorrowLimit = sdkerrors.Register(ModuleName, 17, "fails global asset borrow limit validation")
	// ErrBorrowEmptyCoins error for when you cannot borrow empty coins
	ErrBorrowEmptyCoins = sdkerrors.Register(ModuleName, 18, "cannot borrow zero coins")
	// ErrBorrowNotFound error for when a user's borrow is not found in the store
	ErrBorrowNotFound = sdkerrors.Register(ModuleName, 19, "borrow not found")
	// ErrPreviousAccrualTimeNotFound error for no previous accrual time found in store
	ErrPreviousAccrualTimeNotFound = sdkerrors.Register(ModuleName, 20, "no previous accrual time found")
	// ErrInsufficientBalanceForRepay error for when requested repay exceeds user's balance
	ErrInsufficientBalanceForRepay = sdkerrors.Register(ModuleName, 21, "insufficient balance")
	// ErrBorrowNotLiquidatable error for when a borrow is within valid LTV and cannot be liquidated
	ErrBorrowNotLiquidatable = sdkerrors.Register(ModuleName, 22, "borrow not liquidatable")
	// ErrInsufficientCoins error for when there are not enough coins for the operation
	ErrInsufficientCoins = sdkerrors.Register(ModuleName, 23, "unrecoverable state - insufficient coins")
	// ErrInsufficientBalanceForBorrow error for when the requested borrow exceeds user's balance
	ErrInsufficientBalanceForBorrow = sdkerrors.Register(ModuleName, 24, "insufficient balance")
	// ErrSuppliedCoinsNotFound error for when the total amount of supplied coins cannot be found
	ErrSuppliedCoinsNotFound = sdkerrors.Register(ModuleName, 25, "no supplied coins found")
	// ErrNegativeSuppliedCoins error for when substracting coins from the total supplied balance results in a negative amount
	ErrNegativeSuppliedCoins = sdkerrors.Register(ModuleName, 26, "subtraction results in negative supplied amount")
	// ErrInvalidWithdrawDenom error for when user attempts to withdraw a non-supplied coin type
	ErrInvalidWithdrawDenom = sdkerrors.Register(ModuleName, 27, "no coins of this type deposited")
	// ErrInvalidRepaymentDenom error for when user attempts to repay a non-borrowed coin type
	ErrInvalidRepaymentDenom = sdkerrors.Register(ModuleName, 28, "no coins of this type borrowed")
	// ErrInvalidIndexFactorDenom error for when index factor denom cannot be found
	ErrInvalidIndexFactorDenom = sdkerrors.Register(ModuleName, 29, "no index factor found for denom")
	// ErrBelowMinimumBorrowValue error for when a proposed borrow position is less than the minimum USD value
	ErrBelowMinimumBorrowValue = sdkerrors.Register(ModuleName, 30, "invalid proposed borrow value")
	// ErrExceedsProtocolBorrowableBalance for when a requested borrow exceeds the module account's borrowable balance
	ErrExceedsProtocolBorrowableBalance = sdkerrors.Register(ModuleName, 31, "exceeds borrowable module account balance")
	// ErrReservesExceedCash for when the protocol is insolvent because available reserves exceeds available cash
	ErrReservesExceedCash = sdkerrors.Register(ModuleName, 32, "insolvency - protocol reserves exceed available cash")
)
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 (
	ErrInvalidLengthHard        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHard          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHard = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DepositsKeyPrefix             = []byte{0x01}
	BorrowsKeyPrefix              = []byte{0x02}
	BorrowedCoinsPrefix           = []byte{0x03}
	SuppliedCoinsPrefix           = []byte{0x04}
	MoneyMarketsPrefix            = []byte{0x05}
	PreviousAccrualTimePrefix     = []byte{0x06} // denom -> time
	TotalReservesPrefix           = []byte{0x07} // denom -> sdk.Coin
	BorrowInterestFactorPrefix    = []byte{0x08} // denom -> sdk.Dec
	SupplyInterestFactorPrefix    = []byte{0x09} // denom -> sdk.Dec
	DelegatorInterestFactorPrefix = []byte{0x10} // denom -> sdk.Dec
)
View Source
var (
	KeyMoneyMarkets              = []byte("MoneyMarkets")
	KeyMinimumBorrowUSDValue     = []byte("MinimumBorrowUSDValue")
	DefaultMoneyMarkets          = MoneyMarkets{}
	DefaultMinimumBorrowUSDValue = sdk.NewDec(10) // $10 USD minimum borrow value
	DefaultAccumulationTimes     = GenesisAccumulationTimes{}
	DefaultTotalSupplied         = sdk.Coins{}
	DefaultTotalBorrowed         = sdk.Coins{}
	DefaultTotalReserves         = sdk.Coins{}
	DefaultDeposits              = Deposits{}
	DefaultBorrows               = Borrows{}
)

Parameter keys and default values

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 DepositTypeIteratorKey

func DepositTypeIteratorKey(denom string) []byte

DepositTypeIteratorKey returns an interator prefix for interating over deposits by deposit denom

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 added in v0.16.0

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v0.16.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer added in v0.16.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.16.0

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 added in v0.16.0

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 added in v0.16.0

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 added in v0.16.0

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.16.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)

	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
}

AccountKeeper defines the expected keeper interface for interacting with account

type AuctionKeeper

type AuctionKeeper interface {
	StartCollateralAuction(ctx sdk.Context, seller string, lot sdk.Coin, maxBid sdk.Coin, lotReturnAddrs []sdk.AccAddress, lotReturnWeights []sdk.Int, debt sdk.Coin) (uint64, error)
}

AuctionKeeper expected interface for the auction keeper (noalias)

type BankKeeper added in v0.16.0

type BankKeeper interface {
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error

	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected bank keeper

type Borrow

type Borrow struct {
	Borrower github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=borrower,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"borrower,omitempty"`
	Amount   github_com_cosmos_cosmos_sdk_types.Coins      `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	Index    BorrowInterestFactors                         `protobuf:"bytes,3,rep,name=index,proto3,castrepeated=BorrowInterestFactors" json:"index"`
}

Borrow defines an amount of coins borrowed from a hard module account.

func NewBorrow

func NewBorrow(borrower sdk.AccAddress, amount sdk.Coins, index BorrowInterestFactors) Borrow

NewBorrow returns a new Borrow instance

func (*Borrow) Descriptor added in v0.16.0

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

func (*Borrow) Marshal added in v0.16.0

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

func (*Borrow) MarshalTo added in v0.16.0

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

func (*Borrow) MarshalToSizedBuffer added in v0.16.0

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

func (Borrow) NormalizedBorrow added in v0.15.0

func (b Borrow) NormalizedBorrow() (sdk.DecCoins, error)

NormalizedBorrow is the borrow amounts divided by the interest factors.

Multiplying the normalized borrow by the current global factors gives the current borrow (ie including all interest, ie a synced borrow). The normalized borrow is effectively how big the borrow would have been if it had been borrowed at time 0 and not touched since.

An error is returned if the borrow is in an invalid state.

func (*Borrow) ProtoMessage added in v0.16.0

func (*Borrow) ProtoMessage()

func (*Borrow) Reset added in v0.16.0

func (m *Borrow) Reset()

func (*Borrow) Size added in v0.16.0

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

func (*Borrow) String

func (m *Borrow) String() string

func (Borrow) ToResponse added in v0.16.0

func (b Borrow) ToResponse() BorrowResponse

ToResponse converts Borrow to BorrowResponse

func (*Borrow) Unmarshal added in v0.16.0

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

func (Borrow) Validate

func (b Borrow) Validate() error

Validate deposit validation

func (*Borrow) XXX_DiscardUnknown added in v0.16.0

func (m *Borrow) XXX_DiscardUnknown()

func (*Borrow) XXX_Marshal added in v0.16.0

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

func (*Borrow) XXX_Merge added in v0.16.0

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

func (*Borrow) XXX_Size added in v0.16.0

func (m *Borrow) XXX_Size() int

func (*Borrow) XXX_Unmarshal added in v0.16.0

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

type BorrowInterestFactor

type BorrowInterestFactor struct {
	Denom string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Value github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"value"`
}

BorrowInterestFactor defines an individual borrow interest factor.

func NewBorrowInterestFactor

func NewBorrowInterestFactor(denom string, value sdk.Dec) BorrowInterestFactor

NewBorrowInterestFactor returns a new BorrowInterestFactor instance

func (*BorrowInterestFactor) Descriptor added in v0.16.0

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

func (*BorrowInterestFactor) Marshal added in v0.16.0

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

func (*BorrowInterestFactor) MarshalTo added in v0.16.0

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

func (*BorrowInterestFactor) MarshalToSizedBuffer added in v0.16.0

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

func (*BorrowInterestFactor) ProtoMessage added in v0.16.0

func (*BorrowInterestFactor) ProtoMessage()

func (*BorrowInterestFactor) Reset added in v0.16.0

func (m *BorrowInterestFactor) Reset()

func (*BorrowInterestFactor) Size added in v0.16.0

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

func (*BorrowInterestFactor) String

func (m *BorrowInterestFactor) String() string

func (BorrowInterestFactor) ToResponse added in v0.16.0

ToResponse converts BorrowInterestFactor to BorrowInterestFactorResponse

func (*BorrowInterestFactor) Unmarshal added in v0.16.0

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

func (BorrowInterestFactor) Validate

func (bif BorrowInterestFactor) Validate() error

Validate validates BorrowInterestFactor values

func (*BorrowInterestFactor) XXX_DiscardUnknown added in v0.16.0

func (m *BorrowInterestFactor) XXX_DiscardUnknown()

func (*BorrowInterestFactor) XXX_Marshal added in v0.16.0

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

func (*BorrowInterestFactor) XXX_Merge added in v0.16.0

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

func (*BorrowInterestFactor) XXX_Size added in v0.16.0

func (m *BorrowInterestFactor) XXX_Size() int

func (*BorrowInterestFactor) XXX_Unmarshal added in v0.16.0

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

type BorrowInterestFactorResponse added in v0.16.0

type BorrowInterestFactorResponse struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// sdk.Dec as string
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

BorrowInterestFactorResponse defines an individual borrow interest factor.

func NewBorrowInterestFactorResponse added in v0.16.0

func NewBorrowInterestFactorResponse(denom string, value sdk.Dec) BorrowInterestFactorResponse

NewBorrowInterestFactorResponse returns a new BorrowInterestFactorResponse instance

func (*BorrowInterestFactorResponse) Descriptor added in v0.16.0

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

func (*BorrowInterestFactorResponse) GetDenom added in v0.16.0

func (m *BorrowInterestFactorResponse) GetDenom() string

func (*BorrowInterestFactorResponse) GetValue added in v0.16.0

func (m *BorrowInterestFactorResponse) GetValue() string

func (*BorrowInterestFactorResponse) Marshal added in v0.16.0

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

func (*BorrowInterestFactorResponse) MarshalTo added in v0.16.0

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

func (*BorrowInterestFactorResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*BorrowInterestFactorResponse) ProtoMessage added in v0.16.0

func (*BorrowInterestFactorResponse) ProtoMessage()

func (*BorrowInterestFactorResponse) Reset added in v0.16.0

func (m *BorrowInterestFactorResponse) Reset()

func (*BorrowInterestFactorResponse) Size added in v0.16.0

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

func (*BorrowInterestFactorResponse) String added in v0.16.0

func (*BorrowInterestFactorResponse) Unmarshal added in v0.16.0

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

func (*BorrowInterestFactorResponse) XXX_DiscardUnknown added in v0.16.0

func (m *BorrowInterestFactorResponse) XXX_DiscardUnknown()

func (*BorrowInterestFactorResponse) XXX_Marshal added in v0.16.0

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

func (*BorrowInterestFactorResponse) XXX_Merge added in v0.16.0

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

func (*BorrowInterestFactorResponse) XXX_Size added in v0.16.0

func (m *BorrowInterestFactorResponse) XXX_Size() int

func (*BorrowInterestFactorResponse) XXX_Unmarshal added in v0.16.0

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

type BorrowInterestFactorResponses added in v0.16.0

type BorrowInterestFactorResponses []BorrowInterestFactorResponse

BorrowInterestFactorResponses is a slice of BorrowInterestFactorResponse

type BorrowInterestFactors

type BorrowInterestFactors []BorrowInterestFactor

BorrowInterestFactors is a slice of BorrowInterestFactor, because Amino won't marshal maps

func (BorrowInterestFactors) GetInterestFactor

func (bifs BorrowInterestFactors) GetInterestFactor(denom string) (sdk.Dec, bool)

GetInterestFactor returns a denom's interest factor value

func (BorrowInterestFactors) RemoveInterestFactor

func (bifs BorrowInterestFactors) RemoveInterestFactor(denom string) (BorrowInterestFactors, bool)

RemoveInterestFactor removes a denom's interest factor value

func (BorrowInterestFactors) SetInterestFactor

func (bifs BorrowInterestFactors) SetInterestFactor(denom string, factor sdk.Dec) BorrowInterestFactors

SetInterestFactor sets a denom's interest factor value

func (BorrowInterestFactors) ToResponse added in v0.16.0

ToResponse converts BorrowInterestFactors to BorrowInterestFactorResponses

func (BorrowInterestFactors) Validate

func (bifs BorrowInterestFactors) Validate() error

Validate validates BorrowInterestFactors

type BorrowLimit

type BorrowLimit struct {
	HasMaxLimit  bool                                   `protobuf:"varint,1,opt,name=has_max_limit,json=hasMaxLimit,proto3" json:"has_max_limit"`
	MaximumLimit github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
	LoanToValue  github_com_cosmos_cosmos_sdk_types.Dec `` /* 136-byte string literal not displayed */
}

BorrowLimit enforces restrictions on a money market.

func NewBorrowLimit

func NewBorrowLimit(hasMaxLimit bool, maximumLimit, loanToValue sdk.Dec) BorrowLimit

NewBorrowLimit returns a new BorrowLimit

func (*BorrowLimit) Descriptor added in v0.16.0

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

func (BorrowLimit) Equal

func (bl BorrowLimit) Equal(blCompareTo BorrowLimit) bool

Equal returns a boolean indicating if an BorrowLimit is equal to another BorrowLimit

func (*BorrowLimit) Marshal added in v0.16.0

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

func (*BorrowLimit) MarshalTo added in v0.16.0

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

func (*BorrowLimit) MarshalToSizedBuffer added in v0.16.0

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

func (*BorrowLimit) ProtoMessage added in v0.16.0

func (*BorrowLimit) ProtoMessage()

func (*BorrowLimit) Reset added in v0.16.0

func (m *BorrowLimit) Reset()

func (*BorrowLimit) Size added in v0.16.0

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

func (*BorrowLimit) String added in v0.16.0

func (m *BorrowLimit) String() string

func (*BorrowLimit) Unmarshal added in v0.16.0

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

func (BorrowLimit) Validate

func (bl BorrowLimit) Validate() error

Validate BorrowLimit

func (*BorrowLimit) XXX_DiscardUnknown added in v0.16.0

func (m *BorrowLimit) XXX_DiscardUnknown()

func (*BorrowLimit) XXX_Marshal added in v0.16.0

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

func (*BorrowLimit) XXX_Merge added in v0.16.0

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

func (*BorrowLimit) XXX_Size added in v0.16.0

func (m *BorrowLimit) XXX_Size() int

func (*BorrowLimit) XXX_Unmarshal added in v0.16.0

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

type BorrowResponse added in v0.16.0

type BorrowResponse struct {
	Borrower string                                   `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"`
	Amount   github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	Index    BorrowInterestFactorResponses            `protobuf:"bytes,3,rep,name=index,proto3,castrepeated=BorrowInterestFactorResponses" json:"index"`
}

BorrowResponse defines an amount of coins borrowed from a hard module account.

func NewBorrowResponse added in v0.16.0

func NewBorrowResponse(borrower sdk.AccAddress, amount sdk.Coins, index BorrowInterestFactors) BorrowResponse

NewBorrowResponse returns a new BorrowResponse instance

func (*BorrowResponse) Descriptor added in v0.16.0

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

func (*BorrowResponse) GetAmount added in v0.16.0

func (*BorrowResponse) GetBorrower added in v0.16.0

func (m *BorrowResponse) GetBorrower() string

func (*BorrowResponse) GetIndex added in v0.16.0

func (*BorrowResponse) Marshal added in v0.16.0

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

func (*BorrowResponse) MarshalTo added in v0.16.0

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

func (*BorrowResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*BorrowResponse) ProtoMessage added in v0.16.0

func (*BorrowResponse) ProtoMessage()

func (*BorrowResponse) Reset added in v0.16.0

func (m *BorrowResponse) Reset()

func (*BorrowResponse) Size added in v0.16.0

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

func (*BorrowResponse) String added in v0.16.0

func (m *BorrowResponse) String() string

func (*BorrowResponse) Unmarshal added in v0.16.0

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

func (*BorrowResponse) XXX_DiscardUnknown added in v0.16.0

func (m *BorrowResponse) XXX_DiscardUnknown()

func (*BorrowResponse) XXX_Marshal added in v0.16.0

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

func (*BorrowResponse) XXX_Merge added in v0.16.0

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

func (*BorrowResponse) XXX_Size added in v0.16.0

func (m *BorrowResponse) XXX_Size() int

func (*BorrowResponse) XXX_Unmarshal added in v0.16.0

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

type BorrowResponses added in v0.16.0

type BorrowResponses []BorrowResponse

BorrowResponses is a slice of BorrowResponse

type Borrows

type Borrows []Borrow

Borrows is a slice of Borrow

func (Borrows) ToResponse added in v0.16.0

func (bs Borrows) ToResponse() BorrowResponses

ToResponse converts Borrows to BorrowResponses

func (Borrows) Validate

func (bs Borrows) Validate() error

Validate validates Borrows

type CoinsProto added in v0.16.0

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

CoinsProto defines a Protobuf wrapper around a Coins slice

func (*CoinsProto) Descriptor added in v0.16.0

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

func (*CoinsProto) Marshal added in v0.16.0

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

func (*CoinsProto) MarshalTo added in v0.16.0

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

func (*CoinsProto) MarshalToSizedBuffer added in v0.16.0

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

func (*CoinsProto) ProtoMessage added in v0.16.0

func (*CoinsProto) ProtoMessage()

func (*CoinsProto) Reset added in v0.16.0

func (m *CoinsProto) Reset()

func (*CoinsProto) Size added in v0.16.0

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

func (*CoinsProto) String added in v0.16.0

func (m *CoinsProto) String() string

func (*CoinsProto) Unmarshal added in v0.16.0

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

func (*CoinsProto) XXX_DiscardUnknown added in v0.16.0

func (m *CoinsProto) XXX_DiscardUnknown()

func (*CoinsProto) XXX_Marshal added in v0.16.0

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

func (*CoinsProto) XXX_Merge added in v0.16.0

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

func (*CoinsProto) XXX_Size added in v0.16.0

func (m *CoinsProto) XXX_Size() int

func (*CoinsProto) XXX_Unmarshal added in v0.16.0

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

type Deposit

type Deposit struct {
	Depositor github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 126-byte string literal not displayed */
	Amount    github_com_cosmos_cosmos_sdk_types.Coins      `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	Index     SupplyInterestFactors                         `protobuf:"bytes,3,rep,name=index,proto3,castrepeated=SupplyInterestFactors" json:"index"`
}

Deposit defines an amount of coins deposited into a hard module account.

func NewDeposit

func NewDeposit(depositor sdk.AccAddress, amount sdk.Coins, indexes SupplyInterestFactors) Deposit

NewDeposit returns a new deposit

func (*Deposit) Descriptor added in v0.16.0

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

func (*Deposit) Marshal added in v0.16.0

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

func (*Deposit) MarshalTo added in v0.16.0

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

func (*Deposit) MarshalToSizedBuffer added in v0.16.0

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

func (Deposit) NormalizedDeposit added in v0.15.0

func (b Deposit) NormalizedDeposit() (sdk.DecCoins, error)

NormalizedDeposit is the deposit amounts divided by the interest factors.

Multiplying the normalized deposit by the current global factors gives the current deposit (ie including all interest, ie a synced deposit). The normalized deposit is effectively how big the deposit would have been if it had been supplied at time 0 and not touched since.

An error is returned if the deposit is in an invalid state.

func (*Deposit) ProtoMessage added in v0.16.0

func (*Deposit) ProtoMessage()

func (*Deposit) Reset added in v0.16.0

func (m *Deposit) Reset()

func (*Deposit) Size added in v0.16.0

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

func (*Deposit) String

func (m *Deposit) String() string

func (Deposit) ToResponse added in v0.16.0

func (d Deposit) ToResponse() DepositResponse

ToResponse converts Deposit to DepositResponse

func (*Deposit) Unmarshal added in v0.16.0

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

func (Deposit) Validate

func (d Deposit) Validate() error

Validate deposit validation

func (*Deposit) XXX_DiscardUnknown added in v0.16.0

func (m *Deposit) XXX_DiscardUnknown()

func (*Deposit) XXX_Marshal added in v0.16.0

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

func (*Deposit) XXX_Merge added in v0.16.0

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

func (*Deposit) XXX_Size added in v0.16.0

func (m *Deposit) XXX_Size() int

func (*Deposit) XXX_Unmarshal added in v0.16.0

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

type DepositResponse added in v0.16.0

type DepositResponse struct {
	Depositor string                                   `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"`
	Amount    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	Index     SupplyInterestFactorResponses            `protobuf:"bytes,3,rep,name=index,proto3,castrepeated=SupplyInterestFactorResponses" json:"index"`
}

DepositResponse defines an amount of coins deposited into a hard module account.

func NewDepositResponse added in v0.16.0

func NewDepositResponse(depositor sdk.AccAddress, amount sdk.Coins, indexes SupplyInterestFactors) DepositResponse

NewDepositResponse returns a new DepositResponse

func (*DepositResponse) Descriptor added in v0.16.0

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

func (*DepositResponse) GetAmount added in v0.16.0

func (*DepositResponse) GetDepositor added in v0.16.0

func (m *DepositResponse) GetDepositor() string

func (*DepositResponse) GetIndex added in v0.16.0

func (*DepositResponse) Marshal added in v0.16.0

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

func (*DepositResponse) MarshalTo added in v0.16.0

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

func (*DepositResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*DepositResponse) ProtoMessage added in v0.16.0

func (*DepositResponse) ProtoMessage()

func (*DepositResponse) Reset added in v0.16.0

func (m *DepositResponse) Reset()

func (*DepositResponse) Size added in v0.16.0

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

func (*DepositResponse) String added in v0.16.0

func (m *DepositResponse) String() string

func (*DepositResponse) Unmarshal added in v0.16.0

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

func (*DepositResponse) XXX_DiscardUnknown added in v0.16.0

func (m *DepositResponse) XXX_DiscardUnknown()

func (*DepositResponse) XXX_Marshal added in v0.16.0

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

func (*DepositResponse) XXX_Merge added in v0.16.0

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

func (*DepositResponse) XXX_Size added in v0.16.0

func (m *DepositResponse) XXX_Size() int

func (*DepositResponse) XXX_Unmarshal added in v0.16.0

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

type DepositResponses added in v0.16.0

type DepositResponses []DepositResponse

DepositResponses is a slice of DepositResponse

type Deposits

type Deposits []Deposit

Deposits is a slice of Deposit

func (Deposits) ToResponse added in v0.16.0

func (ds Deposits) ToResponse() DepositResponses

ToResponse converts Deposits to DepositResponses

func (Deposits) Validate

func (ds Deposits) Validate() error

Validate validates Deposits

type GenesisAccumulationTime

type GenesisAccumulationTime 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 */
	SupplyInterestFactor     github_com_cosmos_cosmos_sdk_types.Dec `` /* 163-byte string literal not displayed */
	BorrowInterestFactor     github_com_cosmos_cosmos_sdk_types.Dec `` /* 163-byte string literal not displayed */
}

GenesisAccumulationTime stores the previous distribution time and its corresponding denom.

func NewGenesisAccumulationTime

func NewGenesisAccumulationTime(ctype string, prevTime time.Time, supplyFactor, borrowFactor sdk.Dec) GenesisAccumulationTime

NewGenesisAccumulationTime returns a new GenesisAccumulationTime

func (*GenesisAccumulationTime) Descriptor added in v0.16.0

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

func (*GenesisAccumulationTime) GetCollateralType added in v0.16.0

func (m *GenesisAccumulationTime) GetCollateralType() string

func (*GenesisAccumulationTime) GetPreviousAccumulationTime added in v0.16.0

func (m *GenesisAccumulationTime) GetPreviousAccumulationTime() time.Time

func (*GenesisAccumulationTime) Marshal added in v0.16.0

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

func (*GenesisAccumulationTime) MarshalTo added in v0.16.0

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

func (*GenesisAccumulationTime) MarshalToSizedBuffer added in v0.16.0

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

func (*GenesisAccumulationTime) ProtoMessage added in v0.16.0

func (*GenesisAccumulationTime) ProtoMessage()

func (*GenesisAccumulationTime) Reset added in v0.16.0

func (m *GenesisAccumulationTime) Reset()

func (*GenesisAccumulationTime) Size added in v0.16.0

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

func (*GenesisAccumulationTime) String added in v0.16.0

func (m *GenesisAccumulationTime) String() string

func (*GenesisAccumulationTime) Unmarshal added in v0.16.0

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

func (GenesisAccumulationTime) Validate

func (gat GenesisAccumulationTime) Validate() error

Validate performs validation of GenesisAccumulationTime

func (*GenesisAccumulationTime) XXX_DiscardUnknown added in v0.16.0

func (m *GenesisAccumulationTime) XXX_DiscardUnknown()

func (*GenesisAccumulationTime) XXX_Marshal added in v0.16.0

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

func (*GenesisAccumulationTime) XXX_Merge added in v0.16.0

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

func (*GenesisAccumulationTime) XXX_Size added in v0.16.0

func (m *GenesisAccumulationTime) XXX_Size() int

func (*GenesisAccumulationTime) XXX_Unmarshal added in v0.16.0

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

type GenesisAccumulationTimes

type GenesisAccumulationTimes []GenesisAccumulationTime

GenesisAccumulationTimes slice of GenesisAccumulationTime

func (GenesisAccumulationTimes) Validate

func (gats GenesisAccumulationTimes) Validate() error

Validate performs validation of GenesisAccumulationTimes

type GenesisState

type GenesisState struct {
	Params                    Params                                   `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PreviousAccumulationTimes GenesisAccumulationTimes                 `` /* 166-byte string literal not displayed */
	Deposits                  Deposits                                 `protobuf:"bytes,3,rep,name=deposits,proto3,castrepeated=Deposits" json:"deposits"`
	Borrows                   Borrows                                  `protobuf:"bytes,4,rep,name=borrows,proto3,castrepeated=Borrows" json:"borrows"`
	TotalSupplied             github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
	TotalBorrowed             github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
	TotalReserves             github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

GenesisState defines the hard module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState returns a default genesis state

func NewGenesisState

func NewGenesisState(
	params Params, prevAccumulationTimes GenesisAccumulationTimes, deposits Deposits,
	borrows Borrows, totalSupplied, totalBorrowed, totalReserves sdk.Coins,
) GenesisState

NewGenesisState returns a new genesis state

func (*GenesisState) Descriptor added in v0.16.0

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

func (*GenesisState) GetBorrows added in v0.16.0

func (m *GenesisState) GetBorrows() Borrows

func (*GenesisState) GetDeposits added in v0.16.0

func (m *GenesisState) GetDeposits() Deposits

func (*GenesisState) GetParams added in v0.16.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPreviousAccumulationTimes added in v0.16.0

func (m *GenesisState) GetPreviousAccumulationTimes() GenesisAccumulationTimes

func (*GenesisState) GetTotalBorrowed added in v0.16.0

func (*GenesisState) GetTotalReserves added in v0.16.0

func (*GenesisState) GetTotalSupplied added in v0.16.0

func (*GenesisState) Marshal added in v0.16.0

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

func (*GenesisState) MarshalTo added in v0.16.0

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

func (*GenesisState) MarshalToSizedBuffer added in v0.16.0

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

func (*GenesisState) ProtoMessage added in v0.16.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.16.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.16.0

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

func (*GenesisState) String added in v0.16.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.16.0

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 added in v0.16.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.16.0

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

func (*GenesisState) XXX_Merge added in v0.16.0

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

func (*GenesisState) XXX_Size added in v0.16.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.16.0

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

type HARDHooks

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

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

type InterestFactor added in v0.14.0

type InterestFactor struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// sdk.Dec as String
	BorrowInterestFactor string `protobuf:"bytes,2,opt,name=borrow_interest_factor,json=borrowInterestFactor,proto3" json:"borrow_interest_factor,omitempty"`
	// sdk.Dec as String
	SupplyInterestFactor string `protobuf:"bytes,3,opt,name=supply_interest_factor,json=supplyInterestFactor,proto3" json:"supply_interest_factor,omitempty"`
}

InterestFactor is a unique type returned by interest factor queries

func NewInterestFactor added in v0.14.0

func NewInterestFactor(denom string, supplyInterestFactor, borrowInterestFactor sdk.Dec) InterestFactor

NewInterestFactor returns a new instance of InterestFactor

func (*InterestFactor) Descriptor added in v0.16.0

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

func (*InterestFactor) GetBorrowInterestFactor added in v0.16.0

func (m *InterestFactor) GetBorrowInterestFactor() string

func (*InterestFactor) GetDenom added in v0.16.0

func (m *InterestFactor) GetDenom() string

func (*InterestFactor) GetSupplyInterestFactor added in v0.16.0

func (m *InterestFactor) GetSupplyInterestFactor() string

func (*InterestFactor) Marshal added in v0.16.0

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

func (*InterestFactor) MarshalTo added in v0.16.0

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

func (*InterestFactor) MarshalToSizedBuffer added in v0.16.0

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

func (*InterestFactor) ProtoMessage added in v0.16.0

func (*InterestFactor) ProtoMessage()

func (*InterestFactor) Reset added in v0.16.0

func (m *InterestFactor) Reset()

func (*InterestFactor) Size added in v0.16.0

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

func (*InterestFactor) String added in v0.16.0

func (m *InterestFactor) String() string

func (*InterestFactor) Unmarshal added in v0.16.0

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

func (*InterestFactor) XXX_DiscardUnknown added in v0.16.0

func (m *InterestFactor) XXX_DiscardUnknown()

func (*InterestFactor) XXX_Marshal added in v0.16.0

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

func (*InterestFactor) XXX_Merge added in v0.16.0

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

func (*InterestFactor) XXX_Size added in v0.16.0

func (m *InterestFactor) XXX_Size() int

func (*InterestFactor) XXX_Unmarshal added in v0.16.0

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

type InterestFactors added in v0.14.0

type InterestFactors []InterestFactor

InterestFactors is a slice of InterestFactor

type InterestRateModel

type InterestRateModel struct {
	BaseRateAPY    github_com_cosmos_cosmos_sdk_types.Dec `` /* 136-byte string literal not displayed */
	BaseMultiplier github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	Kink           github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=kink,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"kink"`
	JumpMultiplier github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
}

InterestRateModel contains information about an asset's interest rate.

func NewInterestRateModel

func NewInterestRateModel(baseRateAPY, baseMultiplier, kink, jumpMultiplier sdk.Dec) InterestRateModel

NewInterestRateModel returns a new InterestRateModel

func (*InterestRateModel) Descriptor added in v0.16.0

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

func (InterestRateModel) Equal

func (irm InterestRateModel) Equal(irmCompareTo InterestRateModel) bool

Equal returns a boolean indicating if an InterestRateModel is equal to another InterestRateModel

func (*InterestRateModel) Marshal added in v0.16.0

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

func (*InterestRateModel) MarshalTo added in v0.16.0

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

func (*InterestRateModel) MarshalToSizedBuffer added in v0.16.0

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

func (*InterestRateModel) ProtoMessage added in v0.16.0

func (*InterestRateModel) ProtoMessage()

func (*InterestRateModel) Reset added in v0.16.0

func (m *InterestRateModel) Reset()

func (*InterestRateModel) Size added in v0.16.0

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

func (*InterestRateModel) String added in v0.16.0

func (m *InterestRateModel) String() string

func (*InterestRateModel) Unmarshal added in v0.16.0

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

func (InterestRateModel) Validate

func (irm InterestRateModel) Validate() error

Validate InterestRateModel param

func (*InterestRateModel) XXX_DiscardUnknown added in v0.16.0

func (m *InterestRateModel) XXX_DiscardUnknown()

func (*InterestRateModel) XXX_Marshal added in v0.16.0

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

func (*InterestRateModel) XXX_Merge added in v0.16.0

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

func (*InterestRateModel) XXX_Size added in v0.16.0

func (m *InterestRateModel) XXX_Size() int

func (*InterestRateModel) XXX_Unmarshal added in v0.16.0

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

type InterestRateModels

type InterestRateModels []InterestRateModel

InterestRateModels slice of InterestRateModel

type ModAccountWithCoins added in v0.16.0

type ModAccountWithCoins struct {
	Account authtypes.ModuleAccountI `json:"account" yaml:"account"`
	Coins   sdk.Coins                `json:"coins" yaml:"coins"`
}

ModAccountWithCoins includes the module account with its coins

type MoneyMarket

type MoneyMarket struct {
	Denom                  string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	BorrowLimit            BorrowLimit                            `protobuf:"bytes,2,opt,name=borrow_limit,json=borrowLimit,proto3" json:"borrow_limit"`
	SpotMarketID           string                                 `protobuf:"bytes,3,opt,name=spot_market_id,json=spotMarketId,proto3" json:"spot_market_id,omitempty"`
	ConversionFactor       github_com_cosmos_cosmos_sdk_types.Int `` /* 149-byte string literal not displayed */
	InterestRateModel      InterestRateModel                      `protobuf:"bytes,5,opt,name=interest_rate_model,json=interestRateModel,proto3" json:"interest_rate_model"`
	ReserveFactor          github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
	KeeperRewardPercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */
}

MoneyMarket is a money market for an individual asset.

func NewMoneyMarket

func NewMoneyMarket(denom string, borrowLimit BorrowLimit, spotMarketID string, conversionFactor sdk.Int,
	interestRateModel InterestRateModel, reserveFactor, keeperRewardPercentage sdk.Dec,
) MoneyMarket

NewMoneyMarket returns a new MoneyMarket

func (*MoneyMarket) Descriptor added in v0.16.0

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

func (MoneyMarket) Equal

func (mm MoneyMarket) Equal(mmCompareTo MoneyMarket) bool

Equal returns a boolean indicating if a MoneyMarket is equal to another MoneyMarket

func (*MoneyMarket) Marshal added in v0.16.0

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

func (*MoneyMarket) MarshalTo added in v0.16.0

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

func (*MoneyMarket) MarshalToSizedBuffer added in v0.16.0

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

func (*MoneyMarket) ProtoMessage added in v0.16.0

func (*MoneyMarket) ProtoMessage()

func (*MoneyMarket) Reset added in v0.16.0

func (m *MoneyMarket) Reset()

func (*MoneyMarket) Size added in v0.16.0

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

func (*MoneyMarket) String added in v0.16.0

func (m *MoneyMarket) String() string

func (*MoneyMarket) Unmarshal added in v0.16.0

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

func (MoneyMarket) Validate

func (mm MoneyMarket) Validate() error

Validate MoneyMarket param

func (*MoneyMarket) XXX_DiscardUnknown added in v0.16.0

func (m *MoneyMarket) XXX_DiscardUnknown()

func (*MoneyMarket) XXX_Marshal added in v0.16.0

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

func (*MoneyMarket) XXX_Merge added in v0.16.0

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

func (*MoneyMarket) XXX_Size added in v0.16.0

func (m *MoneyMarket) XXX_Size() int

func (*MoneyMarket) XXX_Unmarshal added in v0.16.0

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

type MoneyMarketInterestRate

type MoneyMarketInterestRate struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// sdk.Dec as String
	SupplyInterestRate string `protobuf:"bytes,2,opt,name=supply_interest_rate,json=supplyInterestRate,proto3" json:"supply_interest_rate,omitempty"`
	// sdk.Dec as String
	BorrowInterestRate string `protobuf:"bytes,3,opt,name=borrow_interest_rate,json=borrowInterestRate,proto3" json:"borrow_interest_rate,omitempty"`
}

MoneyMarketInterestRate is a unique type returned by interest rate queries

func NewMoneyMarketInterestRate

func NewMoneyMarketInterestRate(denom string, supplyInterestRate, borrowInterestRate sdk.Dec) MoneyMarketInterestRate

NewMoneyMarketInterestRate returns a new instance of MoneyMarketInterestRate

func (*MoneyMarketInterestRate) Descriptor added in v0.16.0

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

func (*MoneyMarketInterestRate) GetBorrowInterestRate added in v0.16.0

func (m *MoneyMarketInterestRate) GetBorrowInterestRate() string

func (*MoneyMarketInterestRate) GetDenom added in v0.16.0

func (m *MoneyMarketInterestRate) GetDenom() string

func (*MoneyMarketInterestRate) GetSupplyInterestRate added in v0.16.0

func (m *MoneyMarketInterestRate) GetSupplyInterestRate() string

func (*MoneyMarketInterestRate) Marshal added in v0.16.0

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

func (*MoneyMarketInterestRate) MarshalTo added in v0.16.0

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

func (*MoneyMarketInterestRate) MarshalToSizedBuffer added in v0.16.0

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

func (*MoneyMarketInterestRate) ProtoMessage added in v0.16.0

func (*MoneyMarketInterestRate) ProtoMessage()

func (*MoneyMarketInterestRate) Reset added in v0.16.0

func (m *MoneyMarketInterestRate) Reset()

func (*MoneyMarketInterestRate) Size added in v0.16.0

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

func (*MoneyMarketInterestRate) String added in v0.16.0

func (m *MoneyMarketInterestRate) String() string

func (*MoneyMarketInterestRate) Unmarshal added in v0.16.0

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

func (*MoneyMarketInterestRate) XXX_DiscardUnknown added in v0.16.0

func (m *MoneyMarketInterestRate) XXX_DiscardUnknown()

func (*MoneyMarketInterestRate) XXX_Marshal added in v0.16.0

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

func (*MoneyMarketInterestRate) XXX_Merge added in v0.16.0

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

func (*MoneyMarketInterestRate) XXX_Size added in v0.16.0

func (m *MoneyMarketInterestRate) XXX_Size() int

func (*MoneyMarketInterestRate) XXX_Unmarshal added in v0.16.0

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

type MoneyMarketInterestRates

type MoneyMarketInterestRates []MoneyMarketInterestRate

MoneyMarketInterestRates is a slice of MoneyMarketInterestRate

type MoneyMarkets

type MoneyMarkets []MoneyMarket

MoneyMarkets slice of MoneyMarket

func (MoneyMarkets) Validate

func (mms MoneyMarkets) Validate() error

Validate borrow limits

type MsgBorrow

type MsgBorrow struct {
	Borrower string                                   `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"`
	Amount   github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgBorrow defines the Msg/Borrow request type.

func NewMsgBorrow

func NewMsgBorrow(borrower sdk.AccAddress, amount sdk.Coins) MsgBorrow

NewMsgBorrow returns a new MsgBorrow

func (*MsgBorrow) Descriptor added in v0.16.0

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

func (*MsgBorrow) GetAmount added in v0.16.0

func (*MsgBorrow) GetBorrower added in v0.16.0

func (m *MsgBorrow) GetBorrower() string

func (MsgBorrow) GetSignBytes

func (msg MsgBorrow) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgBorrow) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgBorrow) Marshal added in v0.16.0

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

func (*MsgBorrow) MarshalTo added in v0.16.0

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

func (*MsgBorrow) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgBorrow) ProtoMessage added in v0.16.0

func (*MsgBorrow) ProtoMessage()

func (*MsgBorrow) Reset added in v0.16.0

func (m *MsgBorrow) Reset()

func (MsgBorrow) Route

func (msg MsgBorrow) Route() string

Route return the message type used for routing the message.

func (*MsgBorrow) Size added in v0.16.0

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

func (*MsgBorrow) String

func (m *MsgBorrow) String() string

func (MsgBorrow) Type

func (msg MsgBorrow) Type() string

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

func (*MsgBorrow) Unmarshal added in v0.16.0

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

func (MsgBorrow) ValidateBasic

func (msg MsgBorrow) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgBorrow) XXX_DiscardUnknown added in v0.16.0

func (m *MsgBorrow) XXX_DiscardUnknown()

func (*MsgBorrow) XXX_Marshal added in v0.16.0

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

func (*MsgBorrow) XXX_Merge added in v0.16.0

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

func (*MsgBorrow) XXX_Size added in v0.16.0

func (m *MsgBorrow) XXX_Size() int

func (*MsgBorrow) XXX_Unmarshal added in v0.16.0

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

type MsgBorrowResponse added in v0.16.0

type MsgBorrowResponse struct {
}

MsgBorrowResponse defines the Msg/Borrow response type.

func (*MsgBorrowResponse) Descriptor added in v0.16.0

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

func (*MsgBorrowResponse) Marshal added in v0.16.0

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

func (*MsgBorrowResponse) MarshalTo added in v0.16.0

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

func (*MsgBorrowResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgBorrowResponse) ProtoMessage added in v0.16.0

func (*MsgBorrowResponse) ProtoMessage()

func (*MsgBorrowResponse) Reset added in v0.16.0

func (m *MsgBorrowResponse) Reset()

func (*MsgBorrowResponse) Size added in v0.16.0

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

func (*MsgBorrowResponse) String added in v0.16.0

func (m *MsgBorrowResponse) String() string

func (*MsgBorrowResponse) Unmarshal added in v0.16.0

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

func (*MsgBorrowResponse) XXX_DiscardUnknown added in v0.16.0

func (m *MsgBorrowResponse) XXX_DiscardUnknown()

func (*MsgBorrowResponse) XXX_Marshal added in v0.16.0

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

func (*MsgBorrowResponse) XXX_Merge added in v0.16.0

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

func (*MsgBorrowResponse) XXX_Size added in v0.16.0

func (m *MsgBorrowResponse) XXX_Size() int

func (*MsgBorrowResponse) XXX_Unmarshal added in v0.16.0

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

type MsgClient added in v0.16.0

type MsgClient interface {
	// Deposit defines a method for depositing funds to hard liquidity pool.
	Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
	// Withdraw defines a method for withdrawing funds from hard liquidity pool.
	Withdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error)
	// Borrow defines a method for borrowing funds from hard liquidity pool.
	Borrow(ctx context.Context, in *MsgBorrow, opts ...grpc.CallOption) (*MsgBorrowResponse, error)
	// Repay defines a method for repaying funds borrowed from hard liquidity pool.
	Repay(ctx context.Context, in *MsgRepay, opts ...grpc.CallOption) (*MsgRepayResponse, error)
	// Liquidate defines a method for attempting to liquidate a borrower that is over their loan-to-value.
	Liquidate(ctx context.Context, in *MsgLiquidate, opts ...grpc.CallOption) (*MsgLiquidateResponse, 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 added in v0.16.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgDeposit

type MsgDeposit struct {
	Depositor string                                   `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"`
	Amount    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgDeposit defines the Msg/Deposit request type.

func NewMsgDeposit

func NewMsgDeposit(depositor sdk.AccAddress, amount sdk.Coins) MsgDeposit

NewMsgDeposit returns a new MsgDeposit

func (*MsgDeposit) Descriptor added in v0.16.0

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

func (*MsgDeposit) GetAmount added in v0.16.0

func (*MsgDeposit) GetDepositor added in v0.16.0

func (m *MsgDeposit) GetDepositor() string

func (MsgDeposit) GetSignBytes

func (msg MsgDeposit) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgDeposit) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgDeposit) Marshal added in v0.16.0

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

func (*MsgDeposit) MarshalTo added in v0.16.0

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

func (*MsgDeposit) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgDeposit) ProtoMessage added in v0.16.0

func (*MsgDeposit) ProtoMessage()

func (*MsgDeposit) Reset added in v0.16.0

func (m *MsgDeposit) Reset()

func (MsgDeposit) Route

func (msg MsgDeposit) Route() string

Route return the message type used for routing the message.

func (*MsgDeposit) Size added in v0.16.0

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

func (*MsgDeposit) String

func (m *MsgDeposit) String() string

func (MsgDeposit) Type

func (msg MsgDeposit) Type() string

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

func (*MsgDeposit) Unmarshal added in v0.16.0

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

func (MsgDeposit) ValidateBasic

func (msg MsgDeposit) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgDeposit) XXX_DiscardUnknown added in v0.16.0

func (m *MsgDeposit) XXX_DiscardUnknown()

func (*MsgDeposit) XXX_Marshal added in v0.16.0

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

func (*MsgDeposit) XXX_Merge added in v0.16.0

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

func (*MsgDeposit) XXX_Size added in v0.16.0

func (m *MsgDeposit) XXX_Size() int

func (*MsgDeposit) XXX_Unmarshal added in v0.16.0

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

type MsgDepositResponse added in v0.16.0

type MsgDepositResponse struct {
}

MsgDepositResponse defines the Msg/Deposit response type.

func (*MsgDepositResponse) Descriptor added in v0.16.0

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

func (*MsgDepositResponse) Marshal added in v0.16.0

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

func (*MsgDepositResponse) MarshalTo added in v0.16.0

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

func (*MsgDepositResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgDepositResponse) ProtoMessage added in v0.16.0

func (*MsgDepositResponse) ProtoMessage()

func (*MsgDepositResponse) Reset added in v0.16.0

func (m *MsgDepositResponse) Reset()

func (*MsgDepositResponse) Size added in v0.16.0

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

func (*MsgDepositResponse) String added in v0.16.0

func (m *MsgDepositResponse) String() string

func (*MsgDepositResponse) Unmarshal added in v0.16.0

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

func (*MsgDepositResponse) XXX_DiscardUnknown added in v0.16.0

func (m *MsgDepositResponse) XXX_DiscardUnknown()

func (*MsgDepositResponse) XXX_Marshal added in v0.16.0

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

func (*MsgDepositResponse) XXX_Merge added in v0.16.0

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

func (*MsgDepositResponse) XXX_Size added in v0.16.0

func (m *MsgDepositResponse) XXX_Size() int

func (*MsgDepositResponse) XXX_Unmarshal added in v0.16.0

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

type MsgLiquidate

type MsgLiquidate struct {
	Keeper   string `protobuf:"bytes,1,opt,name=keeper,proto3" json:"keeper,omitempty"`
	Borrower string `protobuf:"bytes,2,opt,name=borrower,proto3" json:"borrower,omitempty"`
}

MsgLiquidate defines the Msg/Liquidate request type.

func NewMsgLiquidate

func NewMsgLiquidate(keeper, borrower sdk.AccAddress) MsgLiquidate

NewMsgLiquidate returns a new MsgLiquidate

func (*MsgLiquidate) Descriptor added in v0.16.0

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

func (*MsgLiquidate) GetBorrower added in v0.16.0

func (m *MsgLiquidate) GetBorrower() string

func (*MsgLiquidate) GetKeeper added in v0.16.0

func (m *MsgLiquidate) GetKeeper() string

func (MsgLiquidate) GetSignBytes

func (msg MsgLiquidate) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgLiquidate) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgLiquidate) Marshal added in v0.16.0

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

func (*MsgLiquidate) MarshalTo added in v0.16.0

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

func (*MsgLiquidate) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgLiquidate) ProtoMessage added in v0.16.0

func (*MsgLiquidate) ProtoMessage()

func (*MsgLiquidate) Reset added in v0.16.0

func (m *MsgLiquidate) Reset()

func (MsgLiquidate) Route

func (msg MsgLiquidate) Route() string

Route return the message type used for routing the message.

func (*MsgLiquidate) Size added in v0.16.0

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

func (*MsgLiquidate) String

func (m *MsgLiquidate) String() string

func (MsgLiquidate) Type

func (msg MsgLiquidate) Type() string

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

func (*MsgLiquidate) Unmarshal added in v0.16.0

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

func (MsgLiquidate) ValidateBasic

func (msg MsgLiquidate) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgLiquidate) XXX_DiscardUnknown added in v0.16.0

func (m *MsgLiquidate) XXX_DiscardUnknown()

func (*MsgLiquidate) XXX_Marshal added in v0.16.0

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

func (*MsgLiquidate) XXX_Merge added in v0.16.0

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

func (*MsgLiquidate) XXX_Size added in v0.16.0

func (m *MsgLiquidate) XXX_Size() int

func (*MsgLiquidate) XXX_Unmarshal added in v0.16.0

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

type MsgLiquidateResponse added in v0.16.0

type MsgLiquidateResponse struct {
}

MsgLiquidateResponse defines the Msg/Liquidate response type.

func (*MsgLiquidateResponse) Descriptor added in v0.16.0

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

func (*MsgLiquidateResponse) Marshal added in v0.16.0

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

func (*MsgLiquidateResponse) MarshalTo added in v0.16.0

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

func (*MsgLiquidateResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgLiquidateResponse) ProtoMessage added in v0.16.0

func (*MsgLiquidateResponse) ProtoMessage()

func (*MsgLiquidateResponse) Reset added in v0.16.0

func (m *MsgLiquidateResponse) Reset()

func (*MsgLiquidateResponse) Size added in v0.16.0

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

func (*MsgLiquidateResponse) String added in v0.16.0

func (m *MsgLiquidateResponse) String() string

func (*MsgLiquidateResponse) Unmarshal added in v0.16.0

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

func (*MsgLiquidateResponse) XXX_DiscardUnknown added in v0.16.0

func (m *MsgLiquidateResponse) XXX_DiscardUnknown()

func (*MsgLiquidateResponse) XXX_Marshal added in v0.16.0

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

func (*MsgLiquidateResponse) XXX_Merge added in v0.16.0

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

func (*MsgLiquidateResponse) XXX_Size added in v0.16.0

func (m *MsgLiquidateResponse) XXX_Size() int

func (*MsgLiquidateResponse) XXX_Unmarshal added in v0.16.0

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

type MsgRepay

type MsgRepay struct {
	Sender string                                   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Owner  string                                   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgRepay defines the Msg/Repay request type.

func NewMsgRepay

func NewMsgRepay(sender, owner sdk.AccAddress, amount sdk.Coins) MsgRepay

NewMsgRepay returns a new MsgRepay

func (*MsgRepay) Descriptor added in v0.16.0

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

func (*MsgRepay) GetAmount added in v0.16.0

func (*MsgRepay) GetOwner added in v0.16.0

func (m *MsgRepay) GetOwner() string

func (*MsgRepay) GetSender added in v0.16.0

func (m *MsgRepay) GetSender() string

func (MsgRepay) GetSignBytes

func (msg MsgRepay) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgRepay) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgRepay) Marshal added in v0.16.0

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

func (*MsgRepay) MarshalTo added in v0.16.0

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

func (*MsgRepay) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgRepay) ProtoMessage added in v0.16.0

func (*MsgRepay) ProtoMessage()

func (*MsgRepay) Reset added in v0.16.0

func (m *MsgRepay) Reset()

func (MsgRepay) Route

func (msg MsgRepay) Route() string

Route return the message type used for routing the message.

func (*MsgRepay) Size added in v0.16.0

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

func (*MsgRepay) String

func (m *MsgRepay) String() string

func (MsgRepay) Type

func (msg MsgRepay) Type() string

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

func (*MsgRepay) Unmarshal added in v0.16.0

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

func (MsgRepay) ValidateBasic

func (msg MsgRepay) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgRepay) XXX_DiscardUnknown added in v0.16.0

func (m *MsgRepay) XXX_DiscardUnknown()

func (*MsgRepay) XXX_Marshal added in v0.16.0

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

func (*MsgRepay) XXX_Merge added in v0.16.0

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

func (*MsgRepay) XXX_Size added in v0.16.0

func (m *MsgRepay) XXX_Size() int

func (*MsgRepay) XXX_Unmarshal added in v0.16.0

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

type MsgRepayResponse added in v0.16.0

type MsgRepayResponse struct {
}

MsgRepayResponse defines the Msg/Repay response type.

func (*MsgRepayResponse) Descriptor added in v0.16.0

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

func (*MsgRepayResponse) Marshal added in v0.16.0

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

func (*MsgRepayResponse) MarshalTo added in v0.16.0

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

func (*MsgRepayResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgRepayResponse) ProtoMessage added in v0.16.0

func (*MsgRepayResponse) ProtoMessage()

func (*MsgRepayResponse) Reset added in v0.16.0

func (m *MsgRepayResponse) Reset()

func (*MsgRepayResponse) Size added in v0.16.0

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

func (*MsgRepayResponse) String added in v0.16.0

func (m *MsgRepayResponse) String() string

func (*MsgRepayResponse) Unmarshal added in v0.16.0

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

func (*MsgRepayResponse) XXX_DiscardUnknown added in v0.16.0

func (m *MsgRepayResponse) XXX_DiscardUnknown()

func (*MsgRepayResponse) XXX_Marshal added in v0.16.0

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

func (*MsgRepayResponse) XXX_Merge added in v0.16.0

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

func (*MsgRepayResponse) XXX_Size added in v0.16.0

func (m *MsgRepayResponse) XXX_Size() int

func (*MsgRepayResponse) XXX_Unmarshal added in v0.16.0

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

type MsgServer added in v0.16.0

type MsgServer interface {
	// Deposit defines a method for depositing funds to hard liquidity pool.
	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
	// Withdraw defines a method for withdrawing funds from hard liquidity pool.
	Withdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error)
	// Borrow defines a method for borrowing funds from hard liquidity pool.
	Borrow(context.Context, *MsgBorrow) (*MsgBorrowResponse, error)
	// Repay defines a method for repaying funds borrowed from hard liquidity pool.
	Repay(context.Context, *MsgRepay) (*MsgRepayResponse, error)
	// Liquidate defines a method for attempting to liquidate a borrower that is over their loan-to-value.
	Liquidate(context.Context, *MsgLiquidate) (*MsgLiquidateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgWithdraw

type MsgWithdraw struct {
	Depositor string                                   `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"`
	Amount    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgWithdraw defines the Msg/Withdraw request type.

func NewMsgWithdraw

func NewMsgWithdraw(depositor sdk.AccAddress, amount sdk.Coins) MsgWithdraw

NewMsgWithdraw returns a new MsgWithdraw

func (*MsgWithdraw) Descriptor added in v0.16.0

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

func (*MsgWithdraw) GetAmount added in v0.16.0

func (*MsgWithdraw) GetDepositor added in v0.16.0

func (m *MsgWithdraw) GetDepositor() string

func (MsgWithdraw) GetSignBytes

func (msg MsgWithdraw) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgWithdraw) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgWithdraw) Marshal added in v0.16.0

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

func (*MsgWithdraw) MarshalTo added in v0.16.0

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

func (*MsgWithdraw) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgWithdraw) ProtoMessage added in v0.16.0

func (*MsgWithdraw) ProtoMessage()

func (*MsgWithdraw) Reset added in v0.16.0

func (m *MsgWithdraw) Reset()

func (MsgWithdraw) Route

func (msg MsgWithdraw) Route() string

Route return the message type used for routing the message.

func (*MsgWithdraw) Size added in v0.16.0

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

func (*MsgWithdraw) String

func (m *MsgWithdraw) String() string

func (MsgWithdraw) Type

func (msg MsgWithdraw) Type() string

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

func (*MsgWithdraw) Unmarshal added in v0.16.0

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

func (MsgWithdraw) ValidateBasic

func (msg MsgWithdraw) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgWithdraw) XXX_DiscardUnknown added in v0.16.0

func (m *MsgWithdraw) XXX_DiscardUnknown()

func (*MsgWithdraw) XXX_Marshal added in v0.16.0

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

func (*MsgWithdraw) XXX_Merge added in v0.16.0

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

func (*MsgWithdraw) XXX_Size added in v0.16.0

func (m *MsgWithdraw) XXX_Size() int

func (*MsgWithdraw) XXX_Unmarshal added in v0.16.0

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

type MsgWithdrawResponse added in v0.16.0

type MsgWithdrawResponse struct {
}

MsgWithdrawResponse defines the Msg/Withdraw response type.

func (*MsgWithdrawResponse) Descriptor added in v0.16.0

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

func (*MsgWithdrawResponse) Marshal added in v0.16.0

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

func (*MsgWithdrawResponse) MarshalTo added in v0.16.0

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

func (*MsgWithdrawResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgWithdrawResponse) ProtoMessage added in v0.16.0

func (*MsgWithdrawResponse) ProtoMessage()

func (*MsgWithdrawResponse) Reset added in v0.16.0

func (m *MsgWithdrawResponse) Reset()

func (*MsgWithdrawResponse) Size added in v0.16.0

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

func (*MsgWithdrawResponse) String added in v0.16.0

func (m *MsgWithdrawResponse) String() string

func (*MsgWithdrawResponse) Unmarshal added in v0.16.0

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

func (*MsgWithdrawResponse) XXX_DiscardUnknown added in v0.16.0

func (m *MsgWithdrawResponse) XXX_DiscardUnknown()

func (*MsgWithdrawResponse) XXX_Marshal added in v0.16.0

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

func (*MsgWithdrawResponse) XXX_Merge added in v0.16.0

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

func (*MsgWithdrawResponse) XXX_Size added in v0.16.0

func (m *MsgWithdrawResponse) XXX_Size() int

func (*MsgWithdrawResponse) XXX_Unmarshal added in v0.16.0

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

type MultiHARDHooks

type MultiHARDHooks []HARDHooks

MultiHARDHooks combine multiple HARD hooks, all hook functions are run in array sequence

func NewMultiHARDHooks

func NewMultiHARDHooks(hooks ...HARDHooks) MultiHARDHooks

NewMultiHARDHooks returns a new MultiHARDHooks

func (MultiHARDHooks) AfterBorrowCreated

func (h MultiHARDHooks) AfterBorrowCreated(ctx sdk.Context, borrow Borrow)

AfterBorrowCreated runs after a borrow is created

func (MultiHARDHooks) AfterBorrowModified

func (h MultiHARDHooks) AfterBorrowModified(ctx sdk.Context, borrow Borrow)

AfterBorrowModified runs after a borrow is modified

func (MultiHARDHooks) AfterDepositCreated

func (h MultiHARDHooks) AfterDepositCreated(ctx sdk.Context, deposit Deposit)

AfterDepositCreated runs after a deposit is created

func (MultiHARDHooks) AfterDepositModified

func (h MultiHARDHooks) AfterDepositModified(ctx sdk.Context, deposit Deposit)

AfterDepositModified runs after a deposit is modified

func (MultiHARDHooks) BeforeBorrowModified

func (h MultiHARDHooks) BeforeBorrowModified(ctx sdk.Context, borrow Borrow)

BeforeBorrowModified runs before a borrow is modified

func (MultiHARDHooks) BeforeDepositModified

func (h MultiHARDHooks) BeforeDepositModified(ctx sdk.Context, deposit Deposit)

BeforeDepositModified runs before a deposit is modified

type Params

type Params struct {
	MoneyMarkets          MoneyMarkets                           `protobuf:"bytes,1,rep,name=money_markets,json=moneyMarkets,proto3,castrepeated=MoneyMarkets" json:"money_markets"`
	MinimumBorrowUSDValue github_com_cosmos_cosmos_sdk_types.Dec `` /* 168-byte string literal not displayed */
}

Params defines the parameters for the hard module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default params for hard module

func NewParams

func NewParams(moneyMarkets MoneyMarkets, minimumBorrowUSDValue sdk.Dec) Params

NewParams returns a new params object

func (*Params) Descriptor added in v0.16.0

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

func (*Params) Marshal added in v0.16.0

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

func (*Params) MarshalTo added in v0.16.0

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

func (*Params) MarshalToSizedBuffer added in v0.16.0

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 added in v0.16.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.16.0

func (m *Params) Reset()

func (*Params) Size added in v0.16.0

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal added in v0.16.0

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 added in v0.16.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.16.0

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

func (*Params) XXX_Merge added in v0.16.0

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

func (*Params) XXX_Size added in v0.16.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.16.0

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

type PricefeedKeeper

type PricefeedKeeper interface {
	GetCurrentPrice(sdk.Context, string) (pftypes.CurrentPrice, error)
}

PricefeedKeeper defines the expected interface for the pricefeed

type QueryAccountParams

type QueryAccountParams struct {
	Page  int    `json:"page" yaml:"page"`
	Limit int    `json:"limit" yaml:"limit"`
	Name  string `json:"name" yaml:"name"`
}

QueryAccountParams is the params for a filtered module account query

func NewQueryAccountParams

func NewQueryAccountParams(page, limit int, name string) QueryAccountParams

NewQueryAccountParams returns QueryAccountParams

type QueryAccountsRequest added in v0.16.0

type QueryAccountsRequest struct {
}

QueryAccountsRequest is the request type for the Query/Accounts RPC method.

func (*QueryAccountsRequest) Descriptor added in v0.16.0

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

func (*QueryAccountsRequest) Marshal added in v0.16.0

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

func (*QueryAccountsRequest) MarshalTo added in v0.16.0

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

func (*QueryAccountsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryAccountsRequest) ProtoMessage added in v0.16.0

func (*QueryAccountsRequest) ProtoMessage()

func (*QueryAccountsRequest) Reset added in v0.16.0

func (m *QueryAccountsRequest) Reset()

func (*QueryAccountsRequest) Size added in v0.16.0

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

func (*QueryAccountsRequest) String added in v0.16.0

func (m *QueryAccountsRequest) String() string

func (*QueryAccountsRequest) Unmarshal added in v0.16.0

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

func (*QueryAccountsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryAccountsRequest) XXX_DiscardUnknown()

func (*QueryAccountsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryAccountsRequest) XXX_Merge added in v0.16.0

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

func (*QueryAccountsRequest) XXX_Size added in v0.16.0

func (m *QueryAccountsRequest) XXX_Size() int

func (*QueryAccountsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryAccountsResponse added in v0.16.0

type QueryAccountsResponse struct {
	Accounts []types.ModuleAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"`
}

QueryAccountsResponse is the response type for the Query/Accounts RPC method.

func (*QueryAccountsResponse) Descriptor added in v0.16.0

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

func (*QueryAccountsResponse) GetAccounts added in v0.16.0

func (m *QueryAccountsResponse) GetAccounts() []types.ModuleAccount

func (*QueryAccountsResponse) Marshal added in v0.16.0

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

func (*QueryAccountsResponse) MarshalTo added in v0.16.0

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

func (*QueryAccountsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryAccountsResponse) ProtoMessage added in v0.16.0

func (*QueryAccountsResponse) ProtoMessage()

func (*QueryAccountsResponse) Reset added in v0.16.0

func (m *QueryAccountsResponse) Reset()

func (*QueryAccountsResponse) Size added in v0.16.0

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

func (*QueryAccountsResponse) String added in v0.16.0

func (m *QueryAccountsResponse) String() string

func (*QueryAccountsResponse) Unmarshal added in v0.16.0

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

func (*QueryAccountsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryAccountsResponse) XXX_DiscardUnknown()

func (*QueryAccountsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryAccountsResponse) XXX_Merge added in v0.16.0

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

func (*QueryAccountsResponse) XXX_Size added in v0.16.0

func (m *QueryAccountsResponse) XXX_Size() int

func (*QueryAccountsResponse) XXX_Unmarshal added in v0.16.0

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

type QueryBorrowsParams

type QueryBorrowsParams struct {
	Page  int            `json:"page" yaml:"page"`
	Limit int            `json:"limit" yaml:"limit"`
	Owner sdk.AccAddress `json:"owner" yaml:"owner"`
	Denom string         `json:"denom" yaml:"denom"`
}

QueryBorrowsParams is the params for a filtered borrows query

func NewQueryBorrowsParams

func NewQueryBorrowsParams(page, limit int, owner sdk.AccAddress, denom string) QueryBorrowsParams

NewQueryBorrowsParams creates a new QueryBorrowsParams

type QueryBorrowsRequest added in v0.16.0

type QueryBorrowsRequest struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Owner      string             `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBorrowsRequest is the request type for the Query/Borrows RPC method.

func (*QueryBorrowsRequest) Descriptor added in v0.16.0

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

func (*QueryBorrowsRequest) GetDenom added in v0.16.0

func (m *QueryBorrowsRequest) GetDenom() string

func (*QueryBorrowsRequest) GetOwner added in v0.16.0

func (m *QueryBorrowsRequest) GetOwner() string

func (*QueryBorrowsRequest) GetPagination added in v0.16.0

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

func (*QueryBorrowsRequest) Marshal added in v0.16.0

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

func (*QueryBorrowsRequest) MarshalTo added in v0.16.0

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

func (*QueryBorrowsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryBorrowsRequest) ProtoMessage added in v0.16.0

func (*QueryBorrowsRequest) ProtoMessage()

func (*QueryBorrowsRequest) Reset added in v0.16.0

func (m *QueryBorrowsRequest) Reset()

func (*QueryBorrowsRequest) Size added in v0.16.0

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

func (*QueryBorrowsRequest) String added in v0.16.0

func (m *QueryBorrowsRequest) String() string

func (*QueryBorrowsRequest) Unmarshal added in v0.16.0

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

func (*QueryBorrowsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryBorrowsRequest) XXX_DiscardUnknown()

func (*QueryBorrowsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryBorrowsRequest) XXX_Merge added in v0.16.0

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

func (*QueryBorrowsRequest) XXX_Size added in v0.16.0

func (m *QueryBorrowsRequest) XXX_Size() int

func (*QueryBorrowsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryBorrowsResponse added in v0.16.0

type QueryBorrowsResponse struct {
	Borrows    BorrowResponses     `protobuf:"bytes,1,rep,name=borrows,proto3,castrepeated=BorrowResponses" json:"borrows"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBorrowsResponse is the response type for the Query/Borrows RPC method.

func (*QueryBorrowsResponse) Descriptor added in v0.16.0

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

func (*QueryBorrowsResponse) GetBorrows added in v0.16.0

func (m *QueryBorrowsResponse) GetBorrows() BorrowResponses

func (*QueryBorrowsResponse) GetPagination added in v0.16.0

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

func (*QueryBorrowsResponse) Marshal added in v0.16.0

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

func (*QueryBorrowsResponse) MarshalTo added in v0.16.0

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

func (*QueryBorrowsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryBorrowsResponse) ProtoMessage added in v0.16.0

func (*QueryBorrowsResponse) ProtoMessage()

func (*QueryBorrowsResponse) Reset added in v0.16.0

func (m *QueryBorrowsResponse) Reset()

func (*QueryBorrowsResponse) Size added in v0.16.0

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

func (*QueryBorrowsResponse) String added in v0.16.0

func (m *QueryBorrowsResponse) String() string

func (*QueryBorrowsResponse) Unmarshal added in v0.16.0

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

func (*QueryBorrowsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryBorrowsResponse) XXX_DiscardUnknown()

func (*QueryBorrowsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryBorrowsResponse) XXX_Merge added in v0.16.0

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

func (*QueryBorrowsResponse) XXX_Size added in v0.16.0

func (m *QueryBorrowsResponse) XXX_Size() int

func (*QueryBorrowsResponse) XXX_Unmarshal added in v0.16.0

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

type QueryClient added in v0.16.0

type QueryClient interface {
	// Params queries module params.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Accounts queries module accounts.
	Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error)
	// Deposits queries hard deposits.
	Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error)
	// UnsyncedDeposits queries unsynced deposits.
	UnsyncedDeposits(ctx context.Context, in *QueryUnsyncedDepositsRequest, opts ...grpc.CallOption) (*QueryUnsyncedDepositsResponse, error)
	// TotalDeposited queries total coins deposited to hard liquidity pools.
	TotalDeposited(ctx context.Context, in *QueryTotalDepositedRequest, opts ...grpc.CallOption) (*QueryTotalDepositedResponse, error)
	// Borrows queries hard borrows.
	Borrows(ctx context.Context, in *QueryBorrowsRequest, opts ...grpc.CallOption) (*QueryBorrowsResponse, error)
	// UnsyncedBorrows queries unsynced borrows.
	UnsyncedBorrows(ctx context.Context, in *QueryUnsyncedBorrowsRequest, opts ...grpc.CallOption) (*QueryUnsyncedBorrowsResponse, error)
	// TotalBorrowed queries total coins borrowed from hard liquidity pools.
	TotalBorrowed(ctx context.Context, in *QueryTotalBorrowedRequest, opts ...grpc.CallOption) (*QueryTotalBorrowedResponse, error)
	// InterestRate queries the hard module interest rates.
	InterestRate(ctx context.Context, in *QueryInterestRateRequest, opts ...grpc.CallOption) (*QueryInterestRateResponse, error)
	// Reserves queries total hard reserve coins.
	Reserves(ctx context.Context, in *QueryReservesRequest, opts ...grpc.CallOption) (*QueryReservesResponse, error)
	// InterestFactors queries hard module interest factors.
	InterestFactors(ctx context.Context, in *QueryInterestFactorsRequest, opts ...grpc.CallOption) (*QueryInterestFactorsResponse, 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 added in v0.16.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDepositsParams

type QueryDepositsParams struct {
	Page  int            `json:"page" yaml:"page"`
	Limit int            `json:"limit" yaml:"limit"`
	Denom string         `json:"denom" yaml:"denom"`
	Owner sdk.AccAddress `json:"owner" yaml:"owner"`
}

QueryDepositsParams is the params for a filtered deposit query

func NewQueryDepositsParams

func NewQueryDepositsParams(page, limit int, denom string, owner sdk.AccAddress) QueryDepositsParams

NewQueryDepositsParams creates a new QueryDepositsParams

type QueryDepositsRequest added in v0.16.0

type QueryDepositsRequest struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Owner      string             `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDepositsRequest is the request type for the Query/Deposits RPC method.

func (*QueryDepositsRequest) Descriptor added in v0.16.0

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

func (*QueryDepositsRequest) GetDenom added in v0.16.0

func (m *QueryDepositsRequest) GetDenom() string

func (*QueryDepositsRequest) GetOwner added in v0.16.0

func (m *QueryDepositsRequest) GetOwner() string

func (*QueryDepositsRequest) GetPagination added in v0.16.0

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

func (*QueryDepositsRequest) Marshal added in v0.16.0

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

func (*QueryDepositsRequest) MarshalTo added in v0.16.0

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

func (*QueryDepositsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryDepositsRequest) ProtoMessage added in v0.16.0

func (*QueryDepositsRequest) ProtoMessage()

func (*QueryDepositsRequest) Reset added in v0.16.0

func (m *QueryDepositsRequest) Reset()

func (*QueryDepositsRequest) Size added in v0.16.0

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

func (*QueryDepositsRequest) String added in v0.16.0

func (m *QueryDepositsRequest) String() string

func (*QueryDepositsRequest) Unmarshal added in v0.16.0

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

func (*QueryDepositsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryDepositsRequest) XXX_DiscardUnknown()

func (*QueryDepositsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryDepositsRequest) XXX_Merge added in v0.16.0

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

func (*QueryDepositsRequest) XXX_Size added in v0.16.0

func (m *QueryDepositsRequest) XXX_Size() int

func (*QueryDepositsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryDepositsResponse added in v0.16.0

type QueryDepositsResponse struct {
	Deposits   DepositResponses    `protobuf:"bytes,1,rep,name=deposits,proto3,castrepeated=DepositResponses" json:"deposits"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDepositsResponse is the response type for the Query/Deposits RPC method.

func (*QueryDepositsResponse) Descriptor added in v0.16.0

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

func (*QueryDepositsResponse) GetDeposits added in v0.16.0

func (m *QueryDepositsResponse) GetDeposits() DepositResponses

func (*QueryDepositsResponse) GetPagination added in v0.16.0

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

func (*QueryDepositsResponse) Marshal added in v0.16.0

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

func (*QueryDepositsResponse) MarshalTo added in v0.16.0

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

func (*QueryDepositsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryDepositsResponse) ProtoMessage added in v0.16.0

func (*QueryDepositsResponse) ProtoMessage()

func (*QueryDepositsResponse) Reset added in v0.16.0

func (m *QueryDepositsResponse) Reset()

func (*QueryDepositsResponse) Size added in v0.16.0

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

func (*QueryDepositsResponse) String added in v0.16.0

func (m *QueryDepositsResponse) String() string

func (*QueryDepositsResponse) Unmarshal added in v0.16.0

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

func (*QueryDepositsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryDepositsResponse) XXX_DiscardUnknown()

func (*QueryDepositsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryDepositsResponse) XXX_Merge added in v0.16.0

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

func (*QueryDepositsResponse) XXX_Size added in v0.16.0

func (m *QueryDepositsResponse) XXX_Size() int

func (*QueryDepositsResponse) XXX_Unmarshal added in v0.16.0

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

type QueryInterestFactorsParams added in v0.14.0

type QueryInterestFactorsParams struct {
	Denom string `json:"denom" yaml:"denom"`
}

QueryInterestFactorsParams is the params for a filtered interest factors query

func NewQueryInterestFactorsParams added in v0.14.0

func NewQueryInterestFactorsParams(denom string) QueryInterestFactorsParams

NewQueryInterestFactorsParams creates a new QueryInterestFactorsParams

type QueryInterestFactorsRequest added in v0.16.0

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

QueryInterestFactorsRequest is the request type for the Query/InterestFactors RPC method.

func (*QueryInterestFactorsRequest) Descriptor added in v0.16.0

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

func (*QueryInterestFactorsRequest) GetDenom added in v0.16.0

func (m *QueryInterestFactorsRequest) GetDenom() string

func (*QueryInterestFactorsRequest) Marshal added in v0.16.0

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

func (*QueryInterestFactorsRequest) MarshalTo added in v0.16.0

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

func (*QueryInterestFactorsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryInterestFactorsRequest) ProtoMessage added in v0.16.0

func (*QueryInterestFactorsRequest) ProtoMessage()

func (*QueryInterestFactorsRequest) Reset added in v0.16.0

func (m *QueryInterestFactorsRequest) Reset()

func (*QueryInterestFactorsRequest) Size added in v0.16.0

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

func (*QueryInterestFactorsRequest) String added in v0.16.0

func (m *QueryInterestFactorsRequest) String() string

func (*QueryInterestFactorsRequest) Unmarshal added in v0.16.0

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

func (*QueryInterestFactorsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryInterestFactorsRequest) XXX_DiscardUnknown()

func (*QueryInterestFactorsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryInterestFactorsRequest) XXX_Merge added in v0.16.0

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

func (*QueryInterestFactorsRequest) XXX_Size added in v0.16.0

func (m *QueryInterestFactorsRequest) XXX_Size() int

func (*QueryInterestFactorsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryInterestFactorsResponse added in v0.16.0

type QueryInterestFactorsResponse struct {
	InterestFactors InterestFactors `protobuf:"bytes,1,rep,name=interest_factors,json=interestFactors,proto3,castrepeated=InterestFactors" json:"interest_factors"`
}

QueryInterestFactorsResponse is the response type for the Query/InterestFactors RPC method.

func (*QueryInterestFactorsResponse) Descriptor added in v0.16.0

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

func (*QueryInterestFactorsResponse) GetInterestFactors added in v0.16.0

func (m *QueryInterestFactorsResponse) GetInterestFactors() InterestFactors

func (*QueryInterestFactorsResponse) Marshal added in v0.16.0

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

func (*QueryInterestFactorsResponse) MarshalTo added in v0.16.0

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

func (*QueryInterestFactorsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryInterestFactorsResponse) ProtoMessage added in v0.16.0

func (*QueryInterestFactorsResponse) ProtoMessage()

func (*QueryInterestFactorsResponse) Reset added in v0.16.0

func (m *QueryInterestFactorsResponse) Reset()

func (*QueryInterestFactorsResponse) Size added in v0.16.0

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

func (*QueryInterestFactorsResponse) String added in v0.16.0

func (*QueryInterestFactorsResponse) Unmarshal added in v0.16.0

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

func (*QueryInterestFactorsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryInterestFactorsResponse) XXX_DiscardUnknown()

func (*QueryInterestFactorsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryInterestFactorsResponse) XXX_Merge added in v0.16.0

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

func (*QueryInterestFactorsResponse) XXX_Size added in v0.16.0

func (m *QueryInterestFactorsResponse) XXX_Size() int

func (*QueryInterestFactorsResponse) XXX_Unmarshal added in v0.16.0

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

type QueryInterestRateParams

type QueryInterestRateParams struct {
	Denom string `json:"denom" yaml:"denom"`
}

QueryInterestRateParams is the params for a filtered interest rate query

func NewQueryInterestRateParams

func NewQueryInterestRateParams(denom string) QueryInterestRateParams

NewQueryInterestRateParams creates a new QueryInterestRateParams

type QueryInterestRateRequest added in v0.16.0

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

QueryInterestRateRequest is the request type for the Query/InterestRate RPC method.

func (*QueryInterestRateRequest) Descriptor added in v0.16.0

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

func (*QueryInterestRateRequest) GetDenom added in v0.16.0

func (m *QueryInterestRateRequest) GetDenom() string

func (*QueryInterestRateRequest) Marshal added in v0.16.0

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

func (*QueryInterestRateRequest) MarshalTo added in v0.16.0

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

func (*QueryInterestRateRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryInterestRateRequest) ProtoMessage added in v0.16.0

func (*QueryInterestRateRequest) ProtoMessage()

func (*QueryInterestRateRequest) Reset added in v0.16.0

func (m *QueryInterestRateRequest) Reset()

func (*QueryInterestRateRequest) Size added in v0.16.0

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

func (*QueryInterestRateRequest) String added in v0.16.0

func (m *QueryInterestRateRequest) String() string

func (*QueryInterestRateRequest) Unmarshal added in v0.16.0

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

func (*QueryInterestRateRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryInterestRateRequest) XXX_DiscardUnknown()

func (*QueryInterestRateRequest) XXX_Marshal added in v0.16.0

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

func (*QueryInterestRateRequest) XXX_Merge added in v0.16.0

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

func (*QueryInterestRateRequest) XXX_Size added in v0.16.0

func (m *QueryInterestRateRequest) XXX_Size() int

func (*QueryInterestRateRequest) XXX_Unmarshal added in v0.16.0

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

type QueryInterestRateResponse added in v0.16.0

type QueryInterestRateResponse struct {
	InterestRates MoneyMarketInterestRates `` /* 128-byte string literal not displayed */
}

QueryInterestRateResponse is the response type for the Query/InterestRate RPC method.

func (*QueryInterestRateResponse) Descriptor added in v0.16.0

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

func (*QueryInterestRateResponse) GetInterestRates added in v0.16.0

func (*QueryInterestRateResponse) Marshal added in v0.16.0

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

func (*QueryInterestRateResponse) MarshalTo added in v0.16.0

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

func (*QueryInterestRateResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryInterestRateResponse) ProtoMessage added in v0.16.0

func (*QueryInterestRateResponse) ProtoMessage()

func (*QueryInterestRateResponse) Reset added in v0.16.0

func (m *QueryInterestRateResponse) Reset()

func (*QueryInterestRateResponse) Size added in v0.16.0

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

func (*QueryInterestRateResponse) String added in v0.16.0

func (m *QueryInterestRateResponse) String() string

func (*QueryInterestRateResponse) Unmarshal added in v0.16.0

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

func (*QueryInterestRateResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryInterestRateResponse) XXX_DiscardUnknown()

func (*QueryInterestRateResponse) XXX_Marshal added in v0.16.0

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

func (*QueryInterestRateResponse) XXX_Merge added in v0.16.0

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

func (*QueryInterestRateResponse) XXX_Size added in v0.16.0

func (m *QueryInterestRateResponse) XXX_Size() int

func (*QueryInterestRateResponse) XXX_Unmarshal added in v0.16.0

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

type QueryParamsRequest added in v0.16.0

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor added in v0.16.0

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

func (*QueryParamsRequest) Marshal added in v0.16.0

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

func (*QueryParamsRequest) MarshalTo added in v0.16.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryParamsRequest) ProtoMessage added in v0.16.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.16.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.16.0

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

func (*QueryParamsRequest) String added in v0.16.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.16.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryParamsRequest) XXX_Merge added in v0.16.0

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

func (*QueryParamsRequest) XXX_Size added in v0.16.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryParamsResponse added in v0.16.0

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 added in v0.16.0

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

func (*QueryParamsResponse) GetParams added in v0.16.0

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.16.0

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

func (*QueryParamsResponse) MarshalTo added in v0.16.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryParamsResponse) ProtoMessage added in v0.16.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.16.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.16.0

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

func (*QueryParamsResponse) String added in v0.16.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.16.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryParamsResponse) XXX_Merge added in v0.16.0

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

func (*QueryParamsResponse) XXX_Size added in v0.16.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.16.0

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

type QueryReservesParams

type QueryReservesParams struct {
	Denom string `json:"denom" yaml:"denom"`
}

QueryReservesParams is the params for a filtered reserves query

func NewQueryReservesParams

func NewQueryReservesParams(denom string) QueryReservesParams

NewQueryReservesParams creates a new QueryReservesParams

type QueryReservesRequest added in v0.16.0

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

QueryReservesRequest is the request type for the Query/Reserves RPC method.

func (*QueryReservesRequest) Descriptor added in v0.16.0

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

func (*QueryReservesRequest) GetDenom added in v0.16.0

func (m *QueryReservesRequest) GetDenom() string

func (*QueryReservesRequest) Marshal added in v0.16.0

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

func (*QueryReservesRequest) MarshalTo added in v0.16.0

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

func (*QueryReservesRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryReservesRequest) ProtoMessage added in v0.16.0

func (*QueryReservesRequest) ProtoMessage()

func (*QueryReservesRequest) Reset added in v0.16.0

func (m *QueryReservesRequest) Reset()

func (*QueryReservesRequest) Size added in v0.16.0

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

func (*QueryReservesRequest) String added in v0.16.0

func (m *QueryReservesRequest) String() string

func (*QueryReservesRequest) Unmarshal added in v0.16.0

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

func (*QueryReservesRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryReservesRequest) XXX_DiscardUnknown()

func (*QueryReservesRequest) XXX_Marshal added in v0.16.0

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

func (*QueryReservesRequest) XXX_Merge added in v0.16.0

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

func (*QueryReservesRequest) XXX_Size added in v0.16.0

func (m *QueryReservesRequest) XXX_Size() int

func (*QueryReservesRequest) XXX_Unmarshal added in v0.16.0

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

type QueryReservesResponse added in v0.16.0

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

QueryReservesResponse is the response type for the Query/Reserves RPC method.

func (*QueryReservesResponse) Descriptor added in v0.16.0

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

func (*QueryReservesResponse) GetAmount added in v0.16.0

func (*QueryReservesResponse) Marshal added in v0.16.0

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

func (*QueryReservesResponse) MarshalTo added in v0.16.0

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

func (*QueryReservesResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryReservesResponse) ProtoMessage added in v0.16.0

func (*QueryReservesResponse) ProtoMessage()

func (*QueryReservesResponse) Reset added in v0.16.0

func (m *QueryReservesResponse) Reset()

func (*QueryReservesResponse) Size added in v0.16.0

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

func (*QueryReservesResponse) String added in v0.16.0

func (m *QueryReservesResponse) String() string

func (*QueryReservesResponse) Unmarshal added in v0.16.0

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

func (*QueryReservesResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryReservesResponse) XXX_DiscardUnknown()

func (*QueryReservesResponse) XXX_Marshal added in v0.16.0

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

func (*QueryReservesResponse) XXX_Merge added in v0.16.0

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

func (*QueryReservesResponse) XXX_Size added in v0.16.0

func (m *QueryReservesResponse) XXX_Size() int

func (*QueryReservesResponse) XXX_Unmarshal added in v0.16.0

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

type QueryServer added in v0.16.0

type QueryServer interface {
	// Params queries module params.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Accounts queries module accounts.
	Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error)
	// Deposits queries hard deposits.
	Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
	// UnsyncedDeposits queries unsynced deposits.
	UnsyncedDeposits(context.Context, *QueryUnsyncedDepositsRequest) (*QueryUnsyncedDepositsResponse, error)
	// TotalDeposited queries total coins deposited to hard liquidity pools.
	TotalDeposited(context.Context, *QueryTotalDepositedRequest) (*QueryTotalDepositedResponse, error)
	// Borrows queries hard borrows.
	Borrows(context.Context, *QueryBorrowsRequest) (*QueryBorrowsResponse, error)
	// UnsyncedBorrows queries unsynced borrows.
	UnsyncedBorrows(context.Context, *QueryUnsyncedBorrowsRequest) (*QueryUnsyncedBorrowsResponse, error)
	// TotalBorrowed queries total coins borrowed from hard liquidity pools.
	TotalBorrowed(context.Context, *QueryTotalBorrowedRequest) (*QueryTotalBorrowedResponse, error)
	// InterestRate queries the hard module interest rates.
	InterestRate(context.Context, *QueryInterestRateRequest) (*QueryInterestRateResponse, error)
	// Reserves queries total hard reserve coins.
	Reserves(context.Context, *QueryReservesRequest) (*QueryReservesResponse, error)
	// InterestFactors queries hard module interest factors.
	InterestFactors(context.Context, *QueryInterestFactorsRequest) (*QueryInterestFactorsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalBorrowedParams

type QueryTotalBorrowedParams struct {
	Denom string `json:"denom" yaml:"denom"`
}

QueryTotalBorrowedParams is the params for a filtered total borrowed coins query

func NewQueryTotalBorrowedParams

func NewQueryTotalBorrowedParams(denom string) QueryTotalBorrowedParams

NewQueryTotalBorrowedParams creates a new QueryTotalBorrowedParams

type QueryTotalBorrowedRequest added in v0.16.0

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

QueryTotalBorrowedRequest is the request type for the Query/TotalBorrowed RPC method.

func (*QueryTotalBorrowedRequest) Descriptor added in v0.16.0

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

func (*QueryTotalBorrowedRequest) GetDenom added in v0.16.0

func (m *QueryTotalBorrowedRequest) GetDenom() string

func (*QueryTotalBorrowedRequest) Marshal added in v0.16.0

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

func (*QueryTotalBorrowedRequest) MarshalTo added in v0.16.0

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

func (*QueryTotalBorrowedRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryTotalBorrowedRequest) ProtoMessage added in v0.16.0

func (*QueryTotalBorrowedRequest) ProtoMessage()

func (*QueryTotalBorrowedRequest) Reset added in v0.16.0

func (m *QueryTotalBorrowedRequest) Reset()

func (*QueryTotalBorrowedRequest) Size added in v0.16.0

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

func (*QueryTotalBorrowedRequest) String added in v0.16.0

func (m *QueryTotalBorrowedRequest) String() string

func (*QueryTotalBorrowedRequest) Unmarshal added in v0.16.0

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

func (*QueryTotalBorrowedRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryTotalBorrowedRequest) XXX_DiscardUnknown()

func (*QueryTotalBorrowedRequest) XXX_Marshal added in v0.16.0

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

func (*QueryTotalBorrowedRequest) XXX_Merge added in v0.16.0

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

func (*QueryTotalBorrowedRequest) XXX_Size added in v0.16.0

func (m *QueryTotalBorrowedRequest) XXX_Size() int

func (*QueryTotalBorrowedRequest) XXX_Unmarshal added in v0.16.0

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

type QueryTotalBorrowedResponse added in v0.16.0

type QueryTotalBorrowedResponse struct {
	BorrowedCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

QueryTotalBorrowedResponse is the response type for the Query/TotalBorrowed RPC method.

func (*QueryTotalBorrowedResponse) Descriptor added in v0.16.0

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

func (*QueryTotalBorrowedResponse) GetBorrowedCoins added in v0.16.0

func (*QueryTotalBorrowedResponse) Marshal added in v0.16.0

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

func (*QueryTotalBorrowedResponse) MarshalTo added in v0.16.0

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

func (*QueryTotalBorrowedResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryTotalBorrowedResponse) ProtoMessage added in v0.16.0

func (*QueryTotalBorrowedResponse) ProtoMessage()

func (*QueryTotalBorrowedResponse) Reset added in v0.16.0

func (m *QueryTotalBorrowedResponse) Reset()

func (*QueryTotalBorrowedResponse) Size added in v0.16.0

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

func (*QueryTotalBorrowedResponse) String added in v0.16.0

func (m *QueryTotalBorrowedResponse) String() string

func (*QueryTotalBorrowedResponse) Unmarshal added in v0.16.0

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

func (*QueryTotalBorrowedResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryTotalBorrowedResponse) XXX_DiscardUnknown()

func (*QueryTotalBorrowedResponse) XXX_Marshal added in v0.16.0

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

func (*QueryTotalBorrowedResponse) XXX_Merge added in v0.16.0

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

func (*QueryTotalBorrowedResponse) XXX_Size added in v0.16.0

func (m *QueryTotalBorrowedResponse) XXX_Size() int

func (*QueryTotalBorrowedResponse) XXX_Unmarshal added in v0.16.0

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

type QueryTotalDepositedParams

type QueryTotalDepositedParams struct {
	Denom string `json:"denom" yaml:"denom"`
}

QueryTotalDepositedParams is the params for a filtered total deposited coins query

func NewQueryTotalDepositedParams

func NewQueryTotalDepositedParams(denom string) QueryTotalDepositedParams

NewQueryTotalDepositedParams creates a new QueryTotalDepositedParams

type QueryTotalDepositedRequest added in v0.16.0

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

QueryTotalDepositedRequest is the request type for the Query/TotalDeposited RPC method.

func (*QueryTotalDepositedRequest) Descriptor added in v0.16.0

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

func (*QueryTotalDepositedRequest) GetDenom added in v0.16.0

func (m *QueryTotalDepositedRequest) GetDenom() string

func (*QueryTotalDepositedRequest) Marshal added in v0.16.0

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

func (*QueryTotalDepositedRequest) MarshalTo added in v0.16.0

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

func (*QueryTotalDepositedRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryTotalDepositedRequest) ProtoMessage added in v0.16.0

func (*QueryTotalDepositedRequest) ProtoMessage()

func (*QueryTotalDepositedRequest) Reset added in v0.16.0

func (m *QueryTotalDepositedRequest) Reset()

func (*QueryTotalDepositedRequest) Size added in v0.16.0

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

func (*QueryTotalDepositedRequest) String added in v0.16.0

func (m *QueryTotalDepositedRequest) String() string

func (*QueryTotalDepositedRequest) Unmarshal added in v0.16.0

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

func (*QueryTotalDepositedRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryTotalDepositedRequest) XXX_DiscardUnknown()

func (*QueryTotalDepositedRequest) XXX_Marshal added in v0.16.0

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

func (*QueryTotalDepositedRequest) XXX_Merge added in v0.16.0

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

func (*QueryTotalDepositedRequest) XXX_Size added in v0.16.0

func (m *QueryTotalDepositedRequest) XXX_Size() int

func (*QueryTotalDepositedRequest) XXX_Unmarshal added in v0.16.0

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

type QueryTotalDepositedResponse added in v0.16.0

type QueryTotalDepositedResponse struct {
	SuppliedCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

QueryTotalDepositedResponse is the response type for the Query/TotalDeposited RPC method.

func (*QueryTotalDepositedResponse) Descriptor added in v0.16.0

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

func (*QueryTotalDepositedResponse) GetSuppliedCoins added in v0.16.0

func (*QueryTotalDepositedResponse) Marshal added in v0.16.0

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

func (*QueryTotalDepositedResponse) MarshalTo added in v0.16.0

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

func (*QueryTotalDepositedResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryTotalDepositedResponse) ProtoMessage added in v0.16.0

func (*QueryTotalDepositedResponse) ProtoMessage()

func (*QueryTotalDepositedResponse) Reset added in v0.16.0

func (m *QueryTotalDepositedResponse) Reset()

func (*QueryTotalDepositedResponse) Size added in v0.16.0

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

func (*QueryTotalDepositedResponse) String added in v0.16.0

func (m *QueryTotalDepositedResponse) String() string

func (*QueryTotalDepositedResponse) Unmarshal added in v0.16.0

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

func (*QueryTotalDepositedResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryTotalDepositedResponse) XXX_DiscardUnknown()

func (*QueryTotalDepositedResponse) XXX_Marshal added in v0.16.0

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

func (*QueryTotalDepositedResponse) XXX_Merge added in v0.16.0

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

func (*QueryTotalDepositedResponse) XXX_Size added in v0.16.0

func (m *QueryTotalDepositedResponse) XXX_Size() int

func (*QueryTotalDepositedResponse) XXX_Unmarshal added in v0.16.0

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

type QueryUnsyncedBorrowsParams added in v0.14.0

type QueryUnsyncedBorrowsParams struct {
	Page  int            `json:"page" yaml:"page"`
	Limit int            `json:"limit" yaml:"limit"`
	Owner sdk.AccAddress `json:"owner" yaml:"owner"`
	Denom string         `json:"denom" yaml:"denom"`
}

QueryUnsyncedBorrowsParams is the params for a filtered unsynced borrows query

func NewQueryUnsyncedBorrowsParams added in v0.14.0

func NewQueryUnsyncedBorrowsParams(page, limit int, owner sdk.AccAddress, denom string) QueryUnsyncedBorrowsParams

NewQueryUnsyncedBorrowsParams creates a new QueryUnsyncedBorrowsParams

type QueryUnsyncedBorrowsRequest added in v0.16.0

type QueryUnsyncedBorrowsRequest struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Owner      string             `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUnsyncedBorrowsRequest is the request type for the Query/UnsyncedBorrows RPC method.

func (*QueryUnsyncedBorrowsRequest) Descriptor added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) GetDenom added in v0.16.0

func (m *QueryUnsyncedBorrowsRequest) GetDenom() string

func (*QueryUnsyncedBorrowsRequest) GetOwner added in v0.16.0

func (m *QueryUnsyncedBorrowsRequest) GetOwner() string

func (*QueryUnsyncedBorrowsRequest) GetPagination added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) Marshal added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) MarshalTo added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) ProtoMessage added in v0.16.0

func (*QueryUnsyncedBorrowsRequest) ProtoMessage()

func (*QueryUnsyncedBorrowsRequest) Reset added in v0.16.0

func (m *QueryUnsyncedBorrowsRequest) Reset()

func (*QueryUnsyncedBorrowsRequest) Size added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) String added in v0.16.0

func (m *QueryUnsyncedBorrowsRequest) String() string

func (*QueryUnsyncedBorrowsRequest) Unmarshal added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUnsyncedBorrowsRequest) XXX_DiscardUnknown()

func (*QueryUnsyncedBorrowsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) XXX_Merge added in v0.16.0

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

func (*QueryUnsyncedBorrowsRequest) XXX_Size added in v0.16.0

func (m *QueryUnsyncedBorrowsRequest) XXX_Size() int

func (*QueryUnsyncedBorrowsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryUnsyncedBorrowsResponse added in v0.16.0

type QueryUnsyncedBorrowsResponse struct {
	Borrows    BorrowResponses     `protobuf:"bytes,1,rep,name=borrows,proto3,castrepeated=BorrowResponses" json:"borrows"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUnsyncedBorrowsResponse is the response type for the Query/UnsyncedBorrows RPC method.

func (*QueryUnsyncedBorrowsResponse) Descriptor added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) GetBorrows added in v0.16.0

func (*QueryUnsyncedBorrowsResponse) GetPagination added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) Marshal added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) MarshalTo added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) ProtoMessage added in v0.16.0

func (*QueryUnsyncedBorrowsResponse) ProtoMessage()

func (*QueryUnsyncedBorrowsResponse) Reset added in v0.16.0

func (m *QueryUnsyncedBorrowsResponse) Reset()

func (*QueryUnsyncedBorrowsResponse) Size added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) String added in v0.16.0

func (*QueryUnsyncedBorrowsResponse) Unmarshal added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUnsyncedBorrowsResponse) XXX_DiscardUnknown()

func (*QueryUnsyncedBorrowsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) XXX_Merge added in v0.16.0

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

func (*QueryUnsyncedBorrowsResponse) XXX_Size added in v0.16.0

func (m *QueryUnsyncedBorrowsResponse) XXX_Size() int

func (*QueryUnsyncedBorrowsResponse) XXX_Unmarshal added in v0.16.0

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

type QueryUnsyncedDepositsParams added in v0.14.0

type QueryUnsyncedDepositsParams struct {
	Page  int            `json:"page" yaml:"page"`
	Limit int            `json:"limit" yaml:"limit"`
	Denom string         `json:"denom" yaml:"denom"`
	Owner sdk.AccAddress `json:"owner" yaml:"owner"`
}

QueryUnsyncedDepositsParams is the params for a filtered unsynced deposit query.

func NewQueryUnsyncedDepositsParams added in v0.14.0

func NewQueryUnsyncedDepositsParams(page, limit int, denom string, owner sdk.AccAddress) QueryUnsyncedDepositsParams

NewQueryUnsyncedDepositsParams creates a new QueryUnsyncedDepositsParams

type QueryUnsyncedDepositsRequest added in v0.16.0

type QueryUnsyncedDepositsRequest struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Owner      string             `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUnsyncedDepositsRequest is the request type for the Query/UnsyncedDeposits RPC method.

func (*QueryUnsyncedDepositsRequest) Descriptor added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) GetDenom added in v0.16.0

func (m *QueryUnsyncedDepositsRequest) GetDenom() string

func (*QueryUnsyncedDepositsRequest) GetOwner added in v0.16.0

func (m *QueryUnsyncedDepositsRequest) GetOwner() string

func (*QueryUnsyncedDepositsRequest) GetPagination added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) Marshal added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) MarshalTo added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) ProtoMessage added in v0.16.0

func (*QueryUnsyncedDepositsRequest) ProtoMessage()

func (*QueryUnsyncedDepositsRequest) Reset added in v0.16.0

func (m *QueryUnsyncedDepositsRequest) Reset()

func (*QueryUnsyncedDepositsRequest) Size added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) String added in v0.16.0

func (*QueryUnsyncedDepositsRequest) Unmarshal added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUnsyncedDepositsRequest) XXX_DiscardUnknown()

func (*QueryUnsyncedDepositsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) XXX_Merge added in v0.16.0

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

func (*QueryUnsyncedDepositsRequest) XXX_Size added in v0.16.0

func (m *QueryUnsyncedDepositsRequest) XXX_Size() int

func (*QueryUnsyncedDepositsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryUnsyncedDepositsResponse added in v0.16.0

type QueryUnsyncedDepositsResponse struct {
	Deposits   DepositResponses    `protobuf:"bytes,1,rep,name=deposits,proto3,castrepeated=DepositResponses" json:"deposits"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUnsyncedDepositsResponse is the response type for the Query/UnsyncedDeposits RPC method.

func (*QueryUnsyncedDepositsResponse) Descriptor added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) GetDeposits added in v0.16.0

func (*QueryUnsyncedDepositsResponse) GetPagination added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) Marshal added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) MarshalTo added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) ProtoMessage added in v0.16.0

func (*QueryUnsyncedDepositsResponse) ProtoMessage()

func (*QueryUnsyncedDepositsResponse) Reset added in v0.16.0

func (m *QueryUnsyncedDepositsResponse) Reset()

func (*QueryUnsyncedDepositsResponse) Size added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) String added in v0.16.0

func (*QueryUnsyncedDepositsResponse) Unmarshal added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUnsyncedDepositsResponse) XXX_DiscardUnknown()

func (*QueryUnsyncedDepositsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) XXX_Merge added in v0.16.0

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

func (*QueryUnsyncedDepositsResponse) XXX_Size added in v0.16.0

func (m *QueryUnsyncedDepositsResponse) XXX_Size() int

func (*QueryUnsyncedDepositsResponse) XXX_Unmarshal added in v0.16.0

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

type StakingKeeper

type StakingKeeper interface {
	IterateLastValidators(ctx sdk.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool))
	IterateValidators(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool))
	IterateAllDelegations(ctx sdk.Context, cb func(delegation stakingtypes.Delegation) (stop bool))
	GetBondedPool(ctx sdk.Context) (bondedPool authtypes.ModuleAccountI)
	BondDenom(ctx sdk.Context) (res string)
}

StakingKeeper defines the expected keeper interface for the staking keeper

type SupplyInterestFactor

type SupplyInterestFactor struct {
	Denom string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Value github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"value"`
}

SupplyInterestFactor defines an individual borrow interest factor.

func NewSupplyInterestFactor

func NewSupplyInterestFactor(denom string, value sdk.Dec) SupplyInterestFactor

NewSupplyInterestFactor returns a new SupplyInterestFactor instance

func (*SupplyInterestFactor) Descriptor added in v0.16.0

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

func (*SupplyInterestFactor) Marshal added in v0.16.0

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

func (*SupplyInterestFactor) MarshalTo added in v0.16.0

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

func (*SupplyInterestFactor) MarshalToSizedBuffer added in v0.16.0

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

func (*SupplyInterestFactor) ProtoMessage added in v0.16.0

func (*SupplyInterestFactor) ProtoMessage()

func (*SupplyInterestFactor) Reset added in v0.16.0

func (m *SupplyInterestFactor) Reset()

func (*SupplyInterestFactor) Size added in v0.16.0

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

func (*SupplyInterestFactor) String

func (m *SupplyInterestFactor) String() string

func (SupplyInterestFactor) ToResponse added in v0.16.0

ToResponse converts SupplyInterestFactor to SupplyInterestFactorResponse

func (*SupplyInterestFactor) Unmarshal added in v0.16.0

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

func (SupplyInterestFactor) Validate

func (sif SupplyInterestFactor) Validate() error

Validate validates SupplyInterestFactor values

func (*SupplyInterestFactor) XXX_DiscardUnknown added in v0.16.0

func (m *SupplyInterestFactor) XXX_DiscardUnknown()

func (*SupplyInterestFactor) XXX_Marshal added in v0.16.0

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

func (*SupplyInterestFactor) XXX_Merge added in v0.16.0

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

func (*SupplyInterestFactor) XXX_Size added in v0.16.0

func (m *SupplyInterestFactor) XXX_Size() int

func (*SupplyInterestFactor) XXX_Unmarshal added in v0.16.0

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

type SupplyInterestFactorResponse added in v0.16.0

type SupplyInterestFactorResponse struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// sdk.Dec as string
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

SupplyInterestFactorResponse defines an individual borrow interest factor.

func NewSupplyInterestFactorResponse added in v0.16.0

func NewSupplyInterestFactorResponse(denom string, value sdk.Dec) SupplyInterestFactorResponse

NewSupplyInterestFactorResponse returns a new SupplyInterestFactorResponse instance

func (*SupplyInterestFactorResponse) Descriptor added in v0.16.0

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

func (*SupplyInterestFactorResponse) GetDenom added in v0.16.0

func (m *SupplyInterestFactorResponse) GetDenom() string

func (*SupplyInterestFactorResponse) GetValue added in v0.16.0

func (m *SupplyInterestFactorResponse) GetValue() string

func (*SupplyInterestFactorResponse) Marshal added in v0.16.0

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

func (*SupplyInterestFactorResponse) MarshalTo added in v0.16.0

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

func (*SupplyInterestFactorResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*SupplyInterestFactorResponse) ProtoMessage added in v0.16.0

func (*SupplyInterestFactorResponse) ProtoMessage()

func (*SupplyInterestFactorResponse) Reset added in v0.16.0

func (m *SupplyInterestFactorResponse) Reset()

func (*SupplyInterestFactorResponse) Size added in v0.16.0

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

func (*SupplyInterestFactorResponse) String added in v0.16.0

func (*SupplyInterestFactorResponse) Unmarshal added in v0.16.0

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

func (*SupplyInterestFactorResponse) XXX_DiscardUnknown added in v0.16.0

func (m *SupplyInterestFactorResponse) XXX_DiscardUnknown()

func (*SupplyInterestFactorResponse) XXX_Marshal added in v0.16.0

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

func (*SupplyInterestFactorResponse) XXX_Merge added in v0.16.0

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

func (*SupplyInterestFactorResponse) XXX_Size added in v0.16.0

func (m *SupplyInterestFactorResponse) XXX_Size() int

func (*SupplyInterestFactorResponse) XXX_Unmarshal added in v0.16.0

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

type SupplyInterestFactorResponses added in v0.16.0

type SupplyInterestFactorResponses []SupplyInterestFactorResponse

SupplyInterestFactorResponses is a slice of SupplyInterestFactorResponse

type SupplyInterestFactors

type SupplyInterestFactors []SupplyInterestFactor

SupplyInterestFactors is a slice of SupplyInterestFactor, because Amino won't marshal maps

func (SupplyInterestFactors) GetInterestFactor

func (sifs SupplyInterestFactors) GetInterestFactor(denom string) (sdk.Dec, bool)

GetInterestFactor returns a denom's interest factor value

func (SupplyInterestFactors) RemoveInterestFactor

func (sifs SupplyInterestFactors) RemoveInterestFactor(denom string) (SupplyInterestFactors, bool)

RemoveInterestFactor removes a denom's interest factor value

func (SupplyInterestFactors) SetInterestFactor

func (sifs SupplyInterestFactors) SetInterestFactor(denom string, factor sdk.Dec) SupplyInterestFactors

SetInterestFactor sets a denom's interest factor value

func (SupplyInterestFactors) ToResponse added in v0.16.0

ToResponse converts SupplyInterestFactor to SupplyInterestFactorResponses

func (SupplyInterestFactors) Validate

func (sifs SupplyInterestFactors) Validate() error

Validate validates SupplyInterestFactors

type UnimplementedMsgServer added in v0.16.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Borrow added in v0.16.0

func (*UnimplementedMsgServer) Deposit added in v0.16.0

func (*UnimplementedMsgServer) Liquidate added in v0.16.0

func (*UnimplementedMsgServer) Repay added in v0.16.0

func (*UnimplementedMsgServer) Withdraw added in v0.16.0

type UnimplementedQueryServer added in v0.16.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Accounts added in v0.16.0

func (*UnimplementedQueryServer) Borrows added in v0.16.0

func (*UnimplementedQueryServer) Deposits added in v0.16.0

func (*UnimplementedQueryServer) InterestFactors added in v0.16.0

func (*UnimplementedQueryServer) InterestRate added in v0.16.0

func (*UnimplementedQueryServer) Params added in v0.16.0

func (*UnimplementedQueryServer) Reserves added in v0.16.0

func (*UnimplementedQueryServer) TotalBorrowed added in v0.16.0

func (*UnimplementedQueryServer) TotalDeposited added in v0.16.0

func (*UnimplementedQueryServer) UnsyncedBorrows added in v0.16.0

func (*UnimplementedQueryServer) UnsyncedDeposits added in v0.16.0

type ValuationMap

type ValuationMap struct {
	Usd map[string]sdk.Dec
}

ValuationMap holds the USD value of various coin types

func NewValuationMap

func NewValuationMap() ValuationMap

NewValuationMap returns a new instance of ValuationMap

func (ValuationMap) Decrement

func (m ValuationMap) Decrement(denom string, amount sdk.Dec)

Decrement decrements the USD value of a denom

func (ValuationMap) Get

func (m ValuationMap) Get(denom string) sdk.Dec

Get returns the USD value for a specific denom

func (ValuationMap) GetSortedKeys

func (m ValuationMap) GetSortedKeys() []string

GetSortedKeys returns an array of the map's keys in alphabetical order

func (ValuationMap) Increment

func (m ValuationMap) Increment(denom string, amount sdk.Dec)

Increment increments the USD value of a denom

func (ValuationMap) SetZero

func (m ValuationMap) SetZero(denom string)

SetZero sets the USD value for a specific denom to 0

func (ValuationMap) Sum

func (m ValuationMap) Sum() sdk.Dec

Sum returns the total USD value of all coins in the map

Jump to

Keyboard shortcuts

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