types

package
v0.4.2-20230907204745-... Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeJinxDeposit          = "jinx_deposit"
	EventTypeJinxWithdrawal       = "jinx_withdrawal"
	EventTypeJinxBorrow           = "jinx_borrow"
	EventTypeJinxLiquidation      = "jinx_liquidation"
	EventTypeJinxRepay            = "jinx_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 jinx module

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

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

	// 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 jinx module

Variables

View Source
var (
	// ErrInvalidDepositDenom error for invalid deposit denoms
	ErrInvalidDepositDenom = errorsmod.Register(ModuleName, 2, "invalid deposit denom")
	// ErrDepositNotFound error for deposit not found
	ErrDepositNotFound = errorsmod.Register(ModuleName, 3, "deposit not found")
	// ErrInvalidWithdrawAmount error for invalid withdrawal amount
	ErrInvalidWithdrawAmount = errorsmod.Register(ModuleName, 4, "invalid withdrawal amount")
	// ErrInsufficientModAccountBalance error for module account with innsufficient balance
	ErrInsufficientModAccountBalance = errorsmod.Register(ModuleName, 5, "module account has insufficient balance to pay reward")
	// ErrInvalidAccountType error for unsupported accounts
	ErrInvalidAccountType = errorsmod.Register(ModuleName, 6, "receiver account type not supported")
	// ErrAccountNotFound error for accounts that are not found in state
	ErrAccountNotFound = errorsmod.Register(ModuleName, 7, "account not found")
	// ErrInvalidReceiver error for when sending and receiving accounts don't match
	ErrInvalidReceiver = errorsmod.Register(ModuleName, 8, "receiver account must match sender account")
	// ErrMoneyMarketNotFound error for money market param not found
	ErrMoneyMarketNotFound = errorsmod.Register(ModuleName, 9, "no money market found")
	// ErrDepositsNotFound error for no deposits found
	ErrDepositsNotFound = errorsmod.Register(ModuleName, 10, "no deposits found")
	// ErrInsufficientLoanToValue error for when an attempted borrow exceeds maximum loan-to-value
	ErrInsufficientLoanToValue = errorsmod.Register(ModuleName, 11, "not enough collateral supplied by account")
	// ErrMarketNotFound error for when a market for the input denom is not found
	ErrMarketNotFound = errorsmod.Register(ModuleName, 12, "no market found for denom")
	// ErrPriceNotFound error for when a price for the input market is not found
	ErrPriceNotFound = errorsmod.Register(ModuleName, 13, "no price found for market")
	// ErrBorrowExceedsAvailableBalance for when a requested borrow exceeds available module acc balances
	ErrBorrowExceedsAvailableBalance = errorsmod.Register(ModuleName, 14, "exceeds module account balance")
	// ErrBorrowedCoinsNotFound error for when the total amount of borrowed coins cannot be found
	ErrBorrowedCoinsNotFound = errorsmod.Register(ModuleName, 15, "no borrowed coins found")
	// ErrNegativeBorrowedCoins error for when substracting coins from the total borrowed balance results in a negative amount
	ErrNegativeBorrowedCoins = errorsmod.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 = errorsmod.Register(ModuleName, 17, "fails global asset borrow limit validation")
	// ErrBorrowEmptyCoins error for when you cannot borrow empty coins
	ErrBorrowEmptyCoins = errorsmod.Register(ModuleName, 18, "cannot borrow zero coins")
	// ErrBorrowNotFound error for when a user's borrow is not found in the store
	ErrBorrowNotFound = errorsmod.Register(ModuleName, 19, "borrow not found")
	// ErrPreviousAccrualTimeNotFound error for no previous accrual time found in store
	ErrPreviousAccrualTimeNotFound = errorsmod.Register(ModuleName, 20, "no previous accrual time found")
	// ErrInsufficientBalanceForRepay error for when requested repay exceeds user's balance
	ErrInsufficientBalanceForRepay = errorsmod.Register(ModuleName, 21, "insufficient balance")
	// ErrBorrowNotLiquidatable error for when a borrow is within valid LTV and cannot be liquidated
	ErrBorrowNotLiquidatable = errorsmod.Register(ModuleName, 22, "borrow not liquidatable")
	// ErrInsufficientCoins error for when there are not enough coins for the operation
	ErrInsufficientCoins = errorsmod.Register(ModuleName, 23, "unrecoverable state - insufficient coins")
	// ErrInsufficientBalanceForBorrow error for when the requested borrow exceeds user's balance
	ErrInsufficientBalanceForBorrow = errorsmod.Register(ModuleName, 24, "insufficient balance")
	// ErrSuppliedCoinsNotFound error for when the total amount of supplied coins cannot be found
	ErrSuppliedCoinsNotFound = errorsmod.Register(ModuleName, 25, "no supplied coins found")
	// ErrNegativeSuppliedCoins error for when substracting coins from the total supplied balance results in a negative amount
	ErrNegativeSuppliedCoins = errorsmod.Register(ModuleName, 26, "subtraction results in negative supplied amount")
	// ErrInvalidWithdrawDenom error for when user attempts to withdraw a non-supplied coin type
	ErrInvalidWithdrawDenom = errorsmod.Register(ModuleName, 27, "no coins of this type deposited")
	// ErrInvalidRepaymentDenom error for when user attempts to repay a non-borrowed coin type
	ErrInvalidRepaymentDenom = errorsmod.Register(ModuleName, 28, "no coins of this type borrowed")
	// ErrInvalidIndexFactorDenom error for when index factor denom cannot be found
	ErrInvalidIndexFactorDenom = errorsmod.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 = errorsmod.Register(ModuleName, 30, "invalid proposed borrow value")
	// ErrExceedsProtocolBorrowableBalance for when a requested borrow exceeds the module account's borrowable balance
	ErrExceedsProtocolBorrowableBalance = errorsmod.Register(ModuleName, 31, "exceeds borrowable module account balance")
	// ErrReservesExceedCash for when the protocol is insolvent because available reserves exceeds available cash
	ErrReservesExceedCash = errorsmod.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 (
	ErrInvalidLengthJinx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowJinx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupJinx = 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

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type 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 []sdkmath.Int, debt sdk.Coin) (uint64, error)
}

AuctionKeeper expected interface for the auction keeper (noalias)

type BankKeeper

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 jinx module account.

func NewBorrow

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

NewBorrow returns a new Borrow instance

func (*Borrow) Descriptor

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

func (*Borrow) Marshal

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

func (*Borrow) MarshalTo

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

func (*Borrow) MarshalToSizedBuffer

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

func (Borrow) NormalizedBorrow

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

func (*Borrow) ProtoMessage()

func (*Borrow) Reset

func (m *Borrow) Reset()

func (*Borrow) Size

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

func (*Borrow) String

func (m *Borrow) String() string

func (Borrow) ToResponse

func (b Borrow) ToResponse() BorrowResponse

ToResponse converts Borrow to BorrowResponse

func (*Borrow) Unmarshal

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

func (Borrow) Validate

func (b Borrow) Validate() error

Validate deposit validation

func (*Borrow) XXX_DiscardUnknown

func (m *Borrow) XXX_DiscardUnknown()

func (*Borrow) XXX_Marshal

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

func (*Borrow) XXX_Merge

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

func (*Borrow) XXX_Size

func (m *Borrow) XXX_Size() int

func (*Borrow) XXX_Unmarshal

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

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

func (*BorrowInterestFactor) Marshal

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

func (*BorrowInterestFactor) MarshalTo

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

func (*BorrowInterestFactor) MarshalToSizedBuffer

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

func (*BorrowInterestFactor) ProtoMessage

func (*BorrowInterestFactor) ProtoMessage()

func (*BorrowInterestFactor) Reset

func (m *BorrowInterestFactor) Reset()

func (*BorrowInterestFactor) Size

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

func (*BorrowInterestFactor) String

func (m *BorrowInterestFactor) String() string

func (BorrowInterestFactor) ToResponse

ToResponse converts BorrowInterestFactor to BorrowInterestFactorResponse

func (*BorrowInterestFactor) Unmarshal

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

func (BorrowInterestFactor) Validate

func (bif BorrowInterestFactor) Validate() error

Validate validates BorrowInterestFactor values

func (*BorrowInterestFactor) XXX_DiscardUnknown

func (m *BorrowInterestFactor) XXX_DiscardUnknown()

func (*BorrowInterestFactor) XXX_Marshal

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

func (*BorrowInterestFactor) XXX_Merge

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

func (*BorrowInterestFactor) XXX_Size

func (m *BorrowInterestFactor) XXX_Size() int

func (*BorrowInterestFactor) XXX_Unmarshal

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

type BorrowInterestFactorResponse

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

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

NewBorrowInterestFactorResponse returns a new BorrowInterestFactorResponse instance

func (*BorrowInterestFactorResponse) Descriptor

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

func (*BorrowInterestFactorResponse) GetDenom

func (m *BorrowInterestFactorResponse) GetDenom() string

func (*BorrowInterestFactorResponse) GetValue

func (m *BorrowInterestFactorResponse) GetValue() string

func (*BorrowInterestFactorResponse) Marshal

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

func (*BorrowInterestFactorResponse) MarshalTo

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

func (*BorrowInterestFactorResponse) MarshalToSizedBuffer

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

func (*BorrowInterestFactorResponse) ProtoMessage

func (*BorrowInterestFactorResponse) ProtoMessage()

func (*BorrowInterestFactorResponse) Reset

func (m *BorrowInterestFactorResponse) Reset()

func (*BorrowInterestFactorResponse) Size

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

func (*BorrowInterestFactorResponse) String

func (*BorrowInterestFactorResponse) Unmarshal

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

func (*BorrowInterestFactorResponse) XXX_DiscardUnknown

func (m *BorrowInterestFactorResponse) XXX_DiscardUnknown()

func (*BorrowInterestFactorResponse) XXX_Marshal

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

func (*BorrowInterestFactorResponse) XXX_Merge

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

func (*BorrowInterestFactorResponse) XXX_Size

func (m *BorrowInterestFactorResponse) XXX_Size() int

func (*BorrowInterestFactorResponse) XXX_Unmarshal

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

type BorrowInterestFactorResponses

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

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

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

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

func (*BorrowLimit) MarshalTo

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

func (*BorrowLimit) MarshalToSizedBuffer

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

func (*BorrowLimit) ProtoMessage

func (*BorrowLimit) ProtoMessage()

func (*BorrowLimit) Reset

func (m *BorrowLimit) Reset()

func (*BorrowLimit) Size

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

func (*BorrowLimit) String

func (m *BorrowLimit) String() string

func (*BorrowLimit) Unmarshal

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

func (BorrowLimit) Validate

func (bl BorrowLimit) Validate() error

Validate BorrowLimit

func (*BorrowLimit) XXX_DiscardUnknown

func (m *BorrowLimit) XXX_DiscardUnknown()

func (*BorrowLimit) XXX_Marshal

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

func (*BorrowLimit) XXX_Merge

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

func (*BorrowLimit) XXX_Size

func (m *BorrowLimit) XXX_Size() int

func (*BorrowLimit) XXX_Unmarshal

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

type BorrowResponse

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 jinx module account.

func NewBorrowResponse

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

NewBorrowResponse returns a new BorrowResponse instance

func (*BorrowResponse) Descriptor

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

func (*BorrowResponse) GetAmount

func (*BorrowResponse) GetBorrower

func (m *BorrowResponse) GetBorrower() string

func (*BorrowResponse) GetIndex

func (*BorrowResponse) Marshal

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

func (*BorrowResponse) MarshalTo

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

func (*BorrowResponse) MarshalToSizedBuffer

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

func (*BorrowResponse) ProtoMessage

func (*BorrowResponse) ProtoMessage()

func (*BorrowResponse) Reset

func (m *BorrowResponse) Reset()

func (*BorrowResponse) Size

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

func (*BorrowResponse) String

func (m *BorrowResponse) String() string

func (*BorrowResponse) Unmarshal

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

func (*BorrowResponse) XXX_DiscardUnknown

func (m *BorrowResponse) XXX_DiscardUnknown()

func (*BorrowResponse) XXX_Marshal

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

func (*BorrowResponse) XXX_Merge

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

func (*BorrowResponse) XXX_Size

func (m *BorrowResponse) XXX_Size() int

func (*BorrowResponse) XXX_Unmarshal

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

type BorrowResponses

type BorrowResponses []BorrowResponse

BorrowResponses is a slice of BorrowResponse

type Borrows

type Borrows []Borrow

Borrows is a slice of Borrow

func (Borrows) ToResponse

func (bs Borrows) ToResponse() BorrowResponses

ToResponse converts Borrows to BorrowResponses

func (Borrows) Validate

func (bs Borrows) Validate() error

Validate validates Borrows

type CoinsProto

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

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

func (*CoinsProto) Marshal

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

func (*CoinsProto) MarshalTo

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

func (*CoinsProto) MarshalToSizedBuffer

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

func (*CoinsProto) ProtoMessage

func (*CoinsProto) ProtoMessage()

func (*CoinsProto) Reset

func (m *CoinsProto) Reset()

func (*CoinsProto) Size

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

func (*CoinsProto) String

func (m *CoinsProto) String() string

func (*CoinsProto) Unmarshal

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

func (*CoinsProto) XXX_DiscardUnknown

func (m *CoinsProto) XXX_DiscardUnknown()

func (*CoinsProto) XXX_Marshal

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

func (*CoinsProto) XXX_Merge

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

func (*CoinsProto) XXX_Size

func (m *CoinsProto) XXX_Size() int

func (*CoinsProto) XXX_Unmarshal

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 jinx module account.

func NewDeposit

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

NewDeposit returns a new deposit

func (*Deposit) Descriptor

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

func (*Deposit) Marshal

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

func (*Deposit) MarshalTo

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

func (*Deposit) MarshalToSizedBuffer

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

func (Deposit) NormalizedDeposit

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

func (*Deposit) ProtoMessage()

func (*Deposit) Reset

func (m *Deposit) Reset()

func (*Deposit) Size

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

func (*Deposit) String

func (m *Deposit) String() string

func (Deposit) ToResponse

func (d Deposit) ToResponse() DepositResponse

ToResponse converts Deposit to DepositResponse

func (*Deposit) Unmarshal

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

func (Deposit) Validate

func (d Deposit) Validate() error

Validate deposit validation

func (*Deposit) XXX_DiscardUnknown

func (m *Deposit) XXX_DiscardUnknown()

func (*Deposit) XXX_Marshal

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

func (*Deposit) XXX_Merge

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

func (*Deposit) XXX_Size

func (m *Deposit) XXX_Size() int

func (*Deposit) XXX_Unmarshal

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

type DepositResponse

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 jinx module account.

func NewDepositResponse

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

NewDepositResponse returns a new DepositResponse

func (*DepositResponse) Descriptor

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

func (*DepositResponse) GetAmount

func (*DepositResponse) GetDepositor

func (m *DepositResponse) GetDepositor() string

func (*DepositResponse) GetIndex

func (*DepositResponse) Marshal

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

func (*DepositResponse) MarshalTo

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

func (*DepositResponse) MarshalToSizedBuffer

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

func (*DepositResponse) ProtoMessage

func (*DepositResponse) ProtoMessage()

func (*DepositResponse) Reset

func (m *DepositResponse) Reset()

func (*DepositResponse) Size

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

func (*DepositResponse) String

func (m *DepositResponse) String() string

func (*DepositResponse) Unmarshal

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

func (*DepositResponse) XXX_DiscardUnknown

func (m *DepositResponse) XXX_DiscardUnknown()

func (*DepositResponse) XXX_Marshal

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

func (*DepositResponse) XXX_Merge

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

func (*DepositResponse) XXX_Size

func (m *DepositResponse) XXX_Size() int

func (*DepositResponse) XXX_Unmarshal

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

type DepositResponses

type DepositResponses []DepositResponse

DepositResponses is a slice of DepositResponse

type Deposits

type Deposits []Deposit

Deposits is a slice of Deposit

func (Deposits) ToResponse

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

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

func (*GenesisAccumulationTime) GetCollateralType

func (m *GenesisAccumulationTime) GetCollateralType() string

func (*GenesisAccumulationTime) GetPreviousAccumulationTime

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

func (*GenesisAccumulationTime) Marshal

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

func (*GenesisAccumulationTime) MarshalTo

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

func (*GenesisAccumulationTime) MarshalToSizedBuffer

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

func (*GenesisAccumulationTime) ProtoMessage

func (*GenesisAccumulationTime) ProtoMessage()

func (*GenesisAccumulationTime) Reset

func (m *GenesisAccumulationTime) Reset()

func (*GenesisAccumulationTime) Size

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

func (*GenesisAccumulationTime) String

func (m *GenesisAccumulationTime) String() string

func (*GenesisAccumulationTime) Unmarshal

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

func (GenesisAccumulationTime) Validate

func (gat GenesisAccumulationTime) Validate() error

Validate performs validation of GenesisAccumulationTime

func (*GenesisAccumulationTime) XXX_DiscardUnknown

func (m *GenesisAccumulationTime) XXX_DiscardUnknown()

func (*GenesisAccumulationTime) XXX_Marshal

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

func (*GenesisAccumulationTime) XXX_Merge

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

func (*GenesisAccumulationTime) XXX_Size

func (m *GenesisAccumulationTime) XXX_Size() int

func (*GenesisAccumulationTime) XXX_Unmarshal

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

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

func (*GenesisState) GetBorrows

func (m *GenesisState) GetBorrows() Borrows

func (*GenesisState) GetDeposits

func (m *GenesisState) GetDeposits() Deposits

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPreviousAccumulationTimes

func (m *GenesisState) GetPreviousAccumulationTimes() GenesisAccumulationTimes

func (*GenesisState) GetTotalBorrowed

func (*GenesisState) GetTotalReserves

func (*GenesisState) GetTotalSupplied

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type InterestFactor

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

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

NewInterestFactor returns a new instance of InterestFactor

func (*InterestFactor) Descriptor

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

func (*InterestFactor) GetBorrowInterestFactor

func (m *InterestFactor) GetBorrowInterestFactor() string

func (*InterestFactor) GetDenom

func (m *InterestFactor) GetDenom() string

func (*InterestFactor) GetSupplyInterestFactor

func (m *InterestFactor) GetSupplyInterestFactor() string

func (*InterestFactor) Marshal

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

func (*InterestFactor) MarshalTo

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

func (*InterestFactor) MarshalToSizedBuffer

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

func (*InterestFactor) ProtoMessage

func (*InterestFactor) ProtoMessage()

func (*InterestFactor) Reset

func (m *InterestFactor) Reset()

func (*InterestFactor) Size

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

func (*InterestFactor) String

func (m *InterestFactor) String() string

func (*InterestFactor) Unmarshal

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

func (*InterestFactor) XXX_DiscardUnknown

func (m *InterestFactor) XXX_DiscardUnknown()

func (*InterestFactor) XXX_Marshal

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

func (*InterestFactor) XXX_Merge

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

func (*InterestFactor) XXX_Size

func (m *InterestFactor) XXX_Size() int

func (*InterestFactor) XXX_Unmarshal

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

type InterestFactors

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

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

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

func (*InterestRateModel) MarshalTo

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

func (*InterestRateModel) MarshalToSizedBuffer

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

func (*InterestRateModel) ProtoMessage

func (*InterestRateModel) ProtoMessage()

func (*InterestRateModel) Reset

func (m *InterestRateModel) Reset()

func (*InterestRateModel) Size

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

func (*InterestRateModel) String

func (m *InterestRateModel) String() string

func (*InterestRateModel) Unmarshal

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

func (InterestRateModel) Validate

func (irm InterestRateModel) Validate() error

Validate InterestRateModel param

func (*InterestRateModel) XXX_DiscardUnknown

func (m *InterestRateModel) XXX_DiscardUnknown()

func (*InterestRateModel) XXX_Marshal

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

func (*InterestRateModel) XXX_Merge

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

func (*InterestRateModel) XXX_Size

func (m *InterestRateModel) XXX_Size() int

func (*InterestRateModel) XXX_Unmarshal

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

type InterestRateModels

type InterestRateModels []InterestRateModel

InterestRateModels slice of InterestRateModel

type JINXHooks

type JINXHooks 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)
}

JINXHooks event hooks for other keepers to run code in response to JINX modifications

type ModAccountWithCoins

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 sdkmath.Int,
	interestRateModel InterestRateModel, reserveFactor, keeperRewardPercentage sdk.Dec,
) MoneyMarket

NewMoneyMarket returns a new MoneyMarket

func (*MoneyMarket) Descriptor

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

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

func (*MoneyMarket) MarshalTo

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

func (*MoneyMarket) MarshalToSizedBuffer

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

func (*MoneyMarket) ProtoMessage

func (*MoneyMarket) ProtoMessage()

func (*MoneyMarket) Reset

func (m *MoneyMarket) Reset()

func (*MoneyMarket) Size

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

func (*MoneyMarket) String

func (m *MoneyMarket) String() string

func (*MoneyMarket) Unmarshal

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

func (MoneyMarket) Validate

func (mm MoneyMarket) Validate() error

Validate MoneyMarket param

func (*MoneyMarket) XXX_DiscardUnknown

func (m *MoneyMarket) XXX_DiscardUnknown()

func (*MoneyMarket) XXX_Marshal

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

func (*MoneyMarket) XXX_Merge

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

func (*MoneyMarket) XXX_Size

func (m *MoneyMarket) XXX_Size() int

func (*MoneyMarket) XXX_Unmarshal

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

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

func (*MoneyMarketInterestRate) GetBorrowInterestRate

func (m *MoneyMarketInterestRate) GetBorrowInterestRate() string

func (*MoneyMarketInterestRate) GetDenom

func (m *MoneyMarketInterestRate) GetDenom() string

func (*MoneyMarketInterestRate) GetSupplyInterestRate

func (m *MoneyMarketInterestRate) GetSupplyInterestRate() string

func (*MoneyMarketInterestRate) Marshal

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

func (*MoneyMarketInterestRate) MarshalTo

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

func (*MoneyMarketInterestRate) MarshalToSizedBuffer

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

func (*MoneyMarketInterestRate) ProtoMessage

func (*MoneyMarketInterestRate) ProtoMessage()

func (*MoneyMarketInterestRate) Reset

func (m *MoneyMarketInterestRate) Reset()

func (*MoneyMarketInterestRate) Size

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

func (*MoneyMarketInterestRate) String

func (m *MoneyMarketInterestRate) String() string

func (*MoneyMarketInterestRate) Unmarshal

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

func (*MoneyMarketInterestRate) XXX_DiscardUnknown

func (m *MoneyMarketInterestRate) XXX_DiscardUnknown()

func (*MoneyMarketInterestRate) XXX_Marshal

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

func (*MoneyMarketInterestRate) XXX_Merge

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

func (*MoneyMarketInterestRate) XXX_Size

func (m *MoneyMarketInterestRate) XXX_Size() int

func (*MoneyMarketInterestRate) XXX_Unmarshal

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

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

func (*MsgBorrow) GetAmount

func (*MsgBorrow) GetBorrower

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

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

func (*MsgBorrow) MarshalTo

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

func (*MsgBorrow) MarshalToSizedBuffer

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

func (*MsgBorrow) ProtoMessage

func (*MsgBorrow) ProtoMessage()

func (*MsgBorrow) Reset

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

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

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

func (m *MsgBorrow) XXX_DiscardUnknown()

func (*MsgBorrow) XXX_Marshal

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

func (*MsgBorrow) XXX_Merge

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

func (*MsgBorrow) XXX_Size

func (m *MsgBorrow) XXX_Size() int

func (*MsgBorrow) XXX_Unmarshal

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

type MsgBorrowResponse

type MsgBorrowResponse struct {
}

MsgBorrowResponse defines the Msg/Borrow response type.

func (*MsgBorrowResponse) Descriptor

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

func (*MsgBorrowResponse) Marshal

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

func (*MsgBorrowResponse) MarshalTo

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

func (*MsgBorrowResponse) MarshalToSizedBuffer

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

func (*MsgBorrowResponse) ProtoMessage

func (*MsgBorrowResponse) ProtoMessage()

func (*MsgBorrowResponse) Reset

func (m *MsgBorrowResponse) Reset()

func (*MsgBorrowResponse) Size

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

func (*MsgBorrowResponse) String

func (m *MsgBorrowResponse) String() string

func (*MsgBorrowResponse) Unmarshal

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

func (*MsgBorrowResponse) XXX_DiscardUnknown

func (m *MsgBorrowResponse) XXX_DiscardUnknown()

func (*MsgBorrowResponse) XXX_Marshal

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

func (*MsgBorrowResponse) XXX_Merge

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

func (*MsgBorrowResponse) XXX_Size

func (m *MsgBorrowResponse) XXX_Size() int

func (*MsgBorrowResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Deposit defines a method for depositing funds to jinx liquidity pool.
	Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
	// Withdraw defines a method for withdrawing funds from jinx liquidity pool.
	Withdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error)
	// Borrow defines a method for borrowing funds from jinx liquidity pool.
	Borrow(ctx context.Context, in *MsgBorrow, opts ...grpc.CallOption) (*MsgBorrowResponse, error)
	// Repay defines a method for repaying funds borrowed from jinx 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

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

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

func (*MsgDeposit) GetAmount

func (*MsgDeposit) GetDepositor

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

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

func (*MsgDeposit) MarshalTo

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

func (*MsgDeposit) MarshalToSizedBuffer

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

func (*MsgDeposit) ProtoMessage

func (*MsgDeposit) ProtoMessage()

func (*MsgDeposit) Reset

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

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

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

func (m *MsgDeposit) XXX_DiscardUnknown()

func (*MsgDeposit) XXX_Marshal

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

func (*MsgDeposit) XXX_Merge

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

func (*MsgDeposit) XXX_Size

func (m *MsgDeposit) XXX_Size() int

func (*MsgDeposit) XXX_Unmarshal

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

type MsgDepositResponse

type MsgDepositResponse struct {
}

MsgDepositResponse defines the Msg/Deposit response type.

func (*MsgDepositResponse) Descriptor

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

func (*MsgDepositResponse) Marshal

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

func (*MsgDepositResponse) MarshalTo

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

func (*MsgDepositResponse) MarshalToSizedBuffer

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

func (*MsgDepositResponse) ProtoMessage

func (*MsgDepositResponse) ProtoMessage()

func (*MsgDepositResponse) Reset

func (m *MsgDepositResponse) Reset()

func (*MsgDepositResponse) Size

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

func (*MsgDepositResponse) String

func (m *MsgDepositResponse) String() string

func (*MsgDepositResponse) Unmarshal

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

func (*MsgDepositResponse) XXX_DiscardUnknown

func (m *MsgDepositResponse) XXX_DiscardUnknown()

func (*MsgDepositResponse) XXX_Marshal

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

func (*MsgDepositResponse) XXX_Merge

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

func (*MsgDepositResponse) XXX_Size

func (m *MsgDepositResponse) XXX_Size() int

func (*MsgDepositResponse) XXX_Unmarshal

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

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

func (*MsgLiquidate) GetBorrower

func (m *MsgLiquidate) GetBorrower() string

func (*MsgLiquidate) GetKeeper

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

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

func (*MsgLiquidate) MarshalTo

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

func (*MsgLiquidate) MarshalToSizedBuffer

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

func (*MsgLiquidate) ProtoMessage

func (*MsgLiquidate) ProtoMessage()

func (*MsgLiquidate) Reset

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

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

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

func (m *MsgLiquidate) XXX_DiscardUnknown()

func (*MsgLiquidate) XXX_Marshal

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

func (*MsgLiquidate) XXX_Merge

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

func (*MsgLiquidate) XXX_Size

func (m *MsgLiquidate) XXX_Size() int

func (*MsgLiquidate) XXX_Unmarshal

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

type MsgLiquidateResponse

type MsgLiquidateResponse struct {
}

MsgLiquidateResponse defines the Msg/Liquidate response type.

func (*MsgLiquidateResponse) Descriptor

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

func (*MsgLiquidateResponse) Marshal

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

func (*MsgLiquidateResponse) MarshalTo

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

func (*MsgLiquidateResponse) MarshalToSizedBuffer

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

func (*MsgLiquidateResponse) ProtoMessage

func (*MsgLiquidateResponse) ProtoMessage()

func (*MsgLiquidateResponse) Reset

func (m *MsgLiquidateResponse) Reset()

func (*MsgLiquidateResponse) Size

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

func (*MsgLiquidateResponse) String

func (m *MsgLiquidateResponse) String() string

func (*MsgLiquidateResponse) Unmarshal

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

func (*MsgLiquidateResponse) XXX_DiscardUnknown

func (m *MsgLiquidateResponse) XXX_DiscardUnknown()

func (*MsgLiquidateResponse) XXX_Marshal

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

func (*MsgLiquidateResponse) XXX_Merge

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

func (*MsgLiquidateResponse) XXX_Size

func (m *MsgLiquidateResponse) XXX_Size() int

func (*MsgLiquidateResponse) XXX_Unmarshal

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

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

func (*MsgRepay) GetAmount

func (*MsgRepay) GetOwner

func (m *MsgRepay) GetOwner() string

func (*MsgRepay) GetSender

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

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

func (*MsgRepay) MarshalTo

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

func (*MsgRepay) MarshalToSizedBuffer

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

func (*MsgRepay) ProtoMessage

func (*MsgRepay) ProtoMessage()

func (*MsgRepay) Reset

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

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

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

func (m *MsgRepay) XXX_DiscardUnknown()

func (*MsgRepay) XXX_Marshal

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

func (*MsgRepay) XXX_Merge

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

func (*MsgRepay) XXX_Size

func (m *MsgRepay) XXX_Size() int

func (*MsgRepay) XXX_Unmarshal

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

type MsgRepayResponse

type MsgRepayResponse struct {
}

MsgRepayResponse defines the Msg/Repay response type.

func (*MsgRepayResponse) Descriptor

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

func (*MsgRepayResponse) Marshal

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

func (*MsgRepayResponse) MarshalTo

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

func (*MsgRepayResponse) MarshalToSizedBuffer

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

func (*MsgRepayResponse) ProtoMessage

func (*MsgRepayResponse) ProtoMessage()

func (*MsgRepayResponse) Reset

func (m *MsgRepayResponse) Reset()

func (*MsgRepayResponse) Size

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

func (*MsgRepayResponse) String

func (m *MsgRepayResponse) String() string

func (*MsgRepayResponse) Unmarshal

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

func (*MsgRepayResponse) XXX_DiscardUnknown

func (m *MsgRepayResponse) XXX_DiscardUnknown()

func (*MsgRepayResponse) XXX_Marshal

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

func (*MsgRepayResponse) XXX_Merge

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

func (*MsgRepayResponse) XXX_Size

func (m *MsgRepayResponse) XXX_Size() int

func (*MsgRepayResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Deposit defines a method for depositing funds to jinx liquidity pool.
	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
	// Withdraw defines a method for withdrawing funds from jinx liquidity pool.
	Withdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error)
	// Borrow defines a method for borrowing funds from jinx liquidity pool.
	Borrow(context.Context, *MsgBorrow) (*MsgBorrowResponse, error)
	// Repay defines a method for repaying funds borrowed from jinx 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

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

func (*MsgWithdraw) GetAmount

func (*MsgWithdraw) GetDepositor

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

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

func (*MsgWithdraw) MarshalTo

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

func (*MsgWithdraw) MarshalToSizedBuffer

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

func (*MsgWithdraw) ProtoMessage

func (*MsgWithdraw) ProtoMessage()

func (*MsgWithdraw) Reset

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

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

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

func (m *MsgWithdraw) XXX_DiscardUnknown()

func (*MsgWithdraw) XXX_Marshal

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

func (*MsgWithdraw) XXX_Merge

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

func (*MsgWithdraw) XXX_Size

func (m *MsgWithdraw) XXX_Size() int

func (*MsgWithdraw) XXX_Unmarshal

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

type MsgWithdrawResponse

type MsgWithdrawResponse struct {
}

MsgWithdrawResponse defines the Msg/Withdraw response type.

func (*MsgWithdrawResponse) Descriptor

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

func (*MsgWithdrawResponse) Marshal

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

func (*MsgWithdrawResponse) MarshalTo

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

func (*MsgWithdrawResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawResponse) ProtoMessage

func (*MsgWithdrawResponse) ProtoMessage()

func (*MsgWithdrawResponse) Reset

func (m *MsgWithdrawResponse) Reset()

func (*MsgWithdrawResponse) Size

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

func (*MsgWithdrawResponse) String

func (m *MsgWithdrawResponse) String() string

func (*MsgWithdrawResponse) Unmarshal

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

func (*MsgWithdrawResponse) XXX_DiscardUnknown

func (m *MsgWithdrawResponse) XXX_DiscardUnknown()

func (*MsgWithdrawResponse) XXX_Marshal

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

func (*MsgWithdrawResponse) XXX_Merge

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

func (*MsgWithdrawResponse) XXX_Size

func (m *MsgWithdrawResponse) XXX_Size() int

func (*MsgWithdrawResponse) XXX_Unmarshal

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

type MultiJINXHooks

type MultiJINXHooks []JINXHooks

MultiJINXHooks combine multiple JINX hooks, all hook functions are run in array sequence

func NewMultiJINXHooks

func NewMultiJINXHooks(hooks ...JINXHooks) MultiJINXHooks

NewMultiJINXHooks returns a new MultiJINXHooks

func (MultiJINXHooks) AfterBorrowCreated

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

AfterBorrowCreated runs after a borrow is created

func (MultiJINXHooks) AfterBorrowModified

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

AfterBorrowModified runs after a borrow is modified

func (MultiJINXHooks) AfterDepositCreated

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

AfterDepositCreated runs after a deposit is created

func (MultiJINXHooks) AfterDepositModified

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

AfterDepositModified runs after a deposit is modified

func (MultiJINXHooks) BeforeBorrowModified

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

BeforeBorrowModified runs before a borrow is modified

func (MultiJINXHooks) BeforeDepositModified

func (h MultiJINXHooks) 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 jinx module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default params for jinx module

func NewParams

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

NewParams returns a new params object

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate checks that the parameters have valid values.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PricefeedKeeper

type PricefeedKeeper interface {
	GetCurrentPrice(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

type QueryAccountsRequest struct {
}

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

func (*QueryAccountsRequest) Descriptor

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

func (*QueryAccountsRequest) Marshal

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

func (*QueryAccountsRequest) MarshalTo

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

func (*QueryAccountsRequest) MarshalToSizedBuffer

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

func (*QueryAccountsRequest) ProtoMessage

func (*QueryAccountsRequest) ProtoMessage()

func (*QueryAccountsRequest) Reset

func (m *QueryAccountsRequest) Reset()

func (*QueryAccountsRequest) Size

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

func (*QueryAccountsRequest) String

func (m *QueryAccountsRequest) String() string

func (*QueryAccountsRequest) Unmarshal

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

func (*QueryAccountsRequest) XXX_DiscardUnknown

func (m *QueryAccountsRequest) XXX_DiscardUnknown()

func (*QueryAccountsRequest) XXX_Marshal

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

func (*QueryAccountsRequest) XXX_Merge

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

func (*QueryAccountsRequest) XXX_Size

func (m *QueryAccountsRequest) XXX_Size() int

func (*QueryAccountsRequest) XXX_Unmarshal

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

type QueryAccountsResponse

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

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

func (*QueryAccountsResponse) GetAccounts

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

func (*QueryAccountsResponse) Marshal

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

func (*QueryAccountsResponse) MarshalTo

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

func (*QueryAccountsResponse) MarshalToSizedBuffer

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

func (*QueryAccountsResponse) ProtoMessage

func (*QueryAccountsResponse) ProtoMessage()

func (*QueryAccountsResponse) Reset

func (m *QueryAccountsResponse) Reset()

func (*QueryAccountsResponse) Size

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

func (*QueryAccountsResponse) String

func (m *QueryAccountsResponse) String() string

func (*QueryAccountsResponse) Unmarshal

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

func (*QueryAccountsResponse) XXX_DiscardUnknown

func (m *QueryAccountsResponse) XXX_DiscardUnknown()

func (*QueryAccountsResponse) XXX_Marshal

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

func (*QueryAccountsResponse) XXX_Merge

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

func (*QueryAccountsResponse) XXX_Size

func (m *QueryAccountsResponse) XXX_Size() int

func (*QueryAccountsResponse) XXX_Unmarshal

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

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

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

func (*QueryBorrowsRequest) GetDenom

func (m *QueryBorrowsRequest) GetDenom() string

func (*QueryBorrowsRequest) GetOwner

func (m *QueryBorrowsRequest) GetOwner() string

func (*QueryBorrowsRequest) GetPagination

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

func (*QueryBorrowsRequest) Marshal

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

func (*QueryBorrowsRequest) MarshalTo

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

func (*QueryBorrowsRequest) MarshalToSizedBuffer

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

func (*QueryBorrowsRequest) ProtoMessage

func (*QueryBorrowsRequest) ProtoMessage()

func (*QueryBorrowsRequest) Reset

func (m *QueryBorrowsRequest) Reset()

func (*QueryBorrowsRequest) Size

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

func (*QueryBorrowsRequest) String

func (m *QueryBorrowsRequest) String() string

func (*QueryBorrowsRequest) Unmarshal

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

func (*QueryBorrowsRequest) XXX_DiscardUnknown

func (m *QueryBorrowsRequest) XXX_DiscardUnknown()

func (*QueryBorrowsRequest) XXX_Marshal

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

func (*QueryBorrowsRequest) XXX_Merge

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

func (*QueryBorrowsRequest) XXX_Size

func (m *QueryBorrowsRequest) XXX_Size() int

func (*QueryBorrowsRequest) XXX_Unmarshal

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

type QueryBorrowsResponse

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

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

func (*QueryBorrowsResponse) GetBorrows

func (m *QueryBorrowsResponse) GetBorrows() BorrowResponses

func (*QueryBorrowsResponse) GetPagination

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

func (*QueryBorrowsResponse) Marshal

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

func (*QueryBorrowsResponse) MarshalTo

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

func (*QueryBorrowsResponse) MarshalToSizedBuffer

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

func (*QueryBorrowsResponse) ProtoMessage

func (*QueryBorrowsResponse) ProtoMessage()

func (*QueryBorrowsResponse) Reset

func (m *QueryBorrowsResponse) Reset()

func (*QueryBorrowsResponse) Size

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

func (*QueryBorrowsResponse) String

func (m *QueryBorrowsResponse) String() string

func (*QueryBorrowsResponse) Unmarshal

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

func (*QueryBorrowsResponse) XXX_DiscardUnknown

func (m *QueryBorrowsResponse) XXX_DiscardUnknown()

func (*QueryBorrowsResponse) XXX_Marshal

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

func (*QueryBorrowsResponse) XXX_Merge

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

func (*QueryBorrowsResponse) XXX_Size

func (m *QueryBorrowsResponse) XXX_Size() int

func (*QueryBorrowsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries module params.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Accounts queries module accounts.
	Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error)
	// Deposits queries jinx 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 jinx liquidity pools.
	TotalDeposited(ctx context.Context, in *QueryTotalDepositedRequest, opts ...grpc.CallOption) (*QueryTotalDepositedResponse, error)
	// Borrows queries jinx 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 jinx liquidity pools.
	TotalBorrowed(ctx context.Context, in *QueryTotalBorrowedRequest, opts ...grpc.CallOption) (*QueryTotalBorrowedResponse, error)
	// InterestRate queries the jinx module interest rates.
	InterestRate(ctx context.Context, in *QueryInterestRateRequest, opts ...grpc.CallOption) (*QueryInterestRateResponse, error)
	// Reserves queries total jinx reserve coins.
	Reserves(ctx context.Context, in *QueryReservesRequest, opts ...grpc.CallOption) (*QueryReservesResponse, error)
	// InterestFactors queries jinx 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

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

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

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

func (*QueryDepositsRequest) GetDenom

func (m *QueryDepositsRequest) GetDenom() string

func (*QueryDepositsRequest) GetOwner

func (m *QueryDepositsRequest) GetOwner() string

func (*QueryDepositsRequest) GetPagination

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

func (*QueryDepositsRequest) Marshal

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

func (*QueryDepositsRequest) MarshalTo

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

func (*QueryDepositsRequest) MarshalToSizedBuffer

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

func (*QueryDepositsRequest) ProtoMessage

func (*QueryDepositsRequest) ProtoMessage()

func (*QueryDepositsRequest) Reset

func (m *QueryDepositsRequest) Reset()

func (*QueryDepositsRequest) Size

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

func (*QueryDepositsRequest) String

func (m *QueryDepositsRequest) String() string

func (*QueryDepositsRequest) Unmarshal

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

func (*QueryDepositsRequest) XXX_DiscardUnknown

func (m *QueryDepositsRequest) XXX_DiscardUnknown()

func (*QueryDepositsRequest) XXX_Marshal

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

func (*QueryDepositsRequest) XXX_Merge

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

func (*QueryDepositsRequest) XXX_Size

func (m *QueryDepositsRequest) XXX_Size() int

func (*QueryDepositsRequest) XXX_Unmarshal

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

type QueryDepositsResponse

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

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

func (*QueryDepositsResponse) GetDeposits

func (m *QueryDepositsResponse) GetDeposits() DepositResponses

func (*QueryDepositsResponse) GetPagination

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

func (*QueryDepositsResponse) Marshal

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

func (*QueryDepositsResponse) MarshalTo

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

func (*QueryDepositsResponse) MarshalToSizedBuffer

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

func (*QueryDepositsResponse) ProtoMessage

func (*QueryDepositsResponse) ProtoMessage()

func (*QueryDepositsResponse) Reset

func (m *QueryDepositsResponse) Reset()

func (*QueryDepositsResponse) Size

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

func (*QueryDepositsResponse) String

func (m *QueryDepositsResponse) String() string

func (*QueryDepositsResponse) Unmarshal

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

func (*QueryDepositsResponse) XXX_DiscardUnknown

func (m *QueryDepositsResponse) XXX_DiscardUnknown()

func (*QueryDepositsResponse) XXX_Marshal

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

func (*QueryDepositsResponse) XXX_Merge

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

func (*QueryDepositsResponse) XXX_Size

func (m *QueryDepositsResponse) XXX_Size() int

func (*QueryDepositsResponse) XXX_Unmarshal

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

type QueryInterestFactorsParams

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

QueryInterestFactorsParams is the params for a filtered interest factors query

func NewQueryInterestFactorsParams

func NewQueryInterestFactorsParams(denom string) QueryInterestFactorsParams

NewQueryInterestFactorsParams creates a new QueryInterestFactorsParams

type QueryInterestFactorsRequest

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

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

func (*QueryInterestFactorsRequest) GetDenom

func (m *QueryInterestFactorsRequest) GetDenom() string

func (*QueryInterestFactorsRequest) Marshal

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

func (*QueryInterestFactorsRequest) MarshalTo

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

func (*QueryInterestFactorsRequest) MarshalToSizedBuffer

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

func (*QueryInterestFactorsRequest) ProtoMessage

func (*QueryInterestFactorsRequest) ProtoMessage()

func (*QueryInterestFactorsRequest) Reset

func (m *QueryInterestFactorsRequest) Reset()

func (*QueryInterestFactorsRequest) Size

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

func (*QueryInterestFactorsRequest) String

func (m *QueryInterestFactorsRequest) String() string

func (*QueryInterestFactorsRequest) Unmarshal

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

func (*QueryInterestFactorsRequest) XXX_DiscardUnknown

func (m *QueryInterestFactorsRequest) XXX_DiscardUnknown()

func (*QueryInterestFactorsRequest) XXX_Marshal

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

func (*QueryInterestFactorsRequest) XXX_Merge

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

func (*QueryInterestFactorsRequest) XXX_Size

func (m *QueryInterestFactorsRequest) XXX_Size() int

func (*QueryInterestFactorsRequest) XXX_Unmarshal

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

type QueryInterestFactorsResponse

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

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

func (*QueryInterestFactorsResponse) GetInterestFactors

func (m *QueryInterestFactorsResponse) GetInterestFactors() InterestFactors

func (*QueryInterestFactorsResponse) Marshal

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

func (*QueryInterestFactorsResponse) MarshalTo

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

func (*QueryInterestFactorsResponse) MarshalToSizedBuffer

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

func (*QueryInterestFactorsResponse) ProtoMessage

func (*QueryInterestFactorsResponse) ProtoMessage()

func (*QueryInterestFactorsResponse) Reset

func (m *QueryInterestFactorsResponse) Reset()

func (*QueryInterestFactorsResponse) Size

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

func (*QueryInterestFactorsResponse) String

func (*QueryInterestFactorsResponse) Unmarshal

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

func (*QueryInterestFactorsResponse) XXX_DiscardUnknown

func (m *QueryInterestFactorsResponse) XXX_DiscardUnknown()

func (*QueryInterestFactorsResponse) XXX_Marshal

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

func (*QueryInterestFactorsResponse) XXX_Merge

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

func (*QueryInterestFactorsResponse) XXX_Size

func (m *QueryInterestFactorsResponse) XXX_Size() int

func (*QueryInterestFactorsResponse) XXX_Unmarshal

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

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

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

func (*QueryInterestRateRequest) GetDenom

func (m *QueryInterestRateRequest) GetDenom() string

func (*QueryInterestRateRequest) Marshal

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

func (*QueryInterestRateRequest) MarshalTo

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

func (*QueryInterestRateRequest) MarshalToSizedBuffer

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

func (*QueryInterestRateRequest) ProtoMessage

func (*QueryInterestRateRequest) ProtoMessage()

func (*QueryInterestRateRequest) Reset

func (m *QueryInterestRateRequest) Reset()

func (*QueryInterestRateRequest) Size

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

func (*QueryInterestRateRequest) String

func (m *QueryInterestRateRequest) String() string

func (*QueryInterestRateRequest) Unmarshal

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

func (*QueryInterestRateRequest) XXX_DiscardUnknown

func (m *QueryInterestRateRequest) XXX_DiscardUnknown()

func (*QueryInterestRateRequest) XXX_Marshal

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

func (*QueryInterestRateRequest) XXX_Merge

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

func (*QueryInterestRateRequest) XXX_Size

func (m *QueryInterestRateRequest) XXX_Size() int

func (*QueryInterestRateRequest) XXX_Unmarshal

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

type QueryInterestRateResponse

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

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

func (*QueryInterestRateResponse) GetInterestRates

func (*QueryInterestRateResponse) Marshal

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

func (*QueryInterestRateResponse) MarshalTo

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

func (*QueryInterestRateResponse) MarshalToSizedBuffer

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

func (*QueryInterestRateResponse) ProtoMessage

func (*QueryInterestRateResponse) ProtoMessage()

func (*QueryInterestRateResponse) Reset

func (m *QueryInterestRateResponse) Reset()

func (*QueryInterestRateResponse) Size

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

func (*QueryInterestRateResponse) String

func (m *QueryInterestRateResponse) String() string

func (*QueryInterestRateResponse) Unmarshal

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

func (*QueryInterestRateResponse) XXX_DiscardUnknown

func (m *QueryInterestRateResponse) XXX_DiscardUnknown()

func (*QueryInterestRateResponse) XXX_Marshal

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

func (*QueryInterestRateResponse) XXX_Merge

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

func (*QueryInterestRateResponse) XXX_Size

func (m *QueryInterestRateResponse) XXX_Size() int

func (*QueryInterestRateResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type 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

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

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

func (*QueryReservesRequest) GetDenom

func (m *QueryReservesRequest) GetDenom() string

func (*QueryReservesRequest) Marshal

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

func (*QueryReservesRequest) MarshalTo

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

func (*QueryReservesRequest) MarshalToSizedBuffer

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

func (*QueryReservesRequest) ProtoMessage

func (*QueryReservesRequest) ProtoMessage()

func (*QueryReservesRequest) Reset

func (m *QueryReservesRequest) Reset()

func (*QueryReservesRequest) Size

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

func (*QueryReservesRequest) String

func (m *QueryReservesRequest) String() string

func (*QueryReservesRequest) Unmarshal

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

func (*QueryReservesRequest) XXX_DiscardUnknown

func (m *QueryReservesRequest) XXX_DiscardUnknown()

func (*QueryReservesRequest) XXX_Marshal

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

func (*QueryReservesRequest) XXX_Merge

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

func (*QueryReservesRequest) XXX_Size

func (m *QueryReservesRequest) XXX_Size() int

func (*QueryReservesRequest) XXX_Unmarshal

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

type QueryReservesResponse

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

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

func (*QueryReservesResponse) GetAmount

func (*QueryReservesResponse) Marshal

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

func (*QueryReservesResponse) MarshalTo

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

func (*QueryReservesResponse) MarshalToSizedBuffer

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

func (*QueryReservesResponse) ProtoMessage

func (*QueryReservesResponse) ProtoMessage()

func (*QueryReservesResponse) Reset

func (m *QueryReservesResponse) Reset()

func (*QueryReservesResponse) Size

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

func (*QueryReservesResponse) String

func (m *QueryReservesResponse) String() string

func (*QueryReservesResponse) Unmarshal

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

func (*QueryReservesResponse) XXX_DiscardUnknown

func (m *QueryReservesResponse) XXX_DiscardUnknown()

func (*QueryReservesResponse) XXX_Marshal

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

func (*QueryReservesResponse) XXX_Merge

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

func (*QueryReservesResponse) XXX_Size

func (m *QueryReservesResponse) XXX_Size() int

func (*QueryReservesResponse) XXX_Unmarshal

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

type QueryServer

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 jinx deposits.
	Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
	// UnsyncedDeposits queries unsynced deposits.
	UnsyncedDeposits(context.Context, *QueryUnsyncedDepositsRequest) (*QueryUnsyncedDepositsResponse, error)
	// TotalDeposited queries total coins deposited to jinx liquidity pools.
	TotalDeposited(context.Context, *QueryTotalDepositedRequest) (*QueryTotalDepositedResponse, error)
	// Borrows queries jinx borrows.
	Borrows(context.Context, *QueryBorrowsRequest) (*QueryBorrowsResponse, error)
	// UnsyncedBorrows queries unsynced borrows.
	UnsyncedBorrows(context.Context, *QueryUnsyncedBorrowsRequest) (*QueryUnsyncedBorrowsResponse, error)
	// TotalBorrowed queries total coins borrowed from jinx liquidity pools.
	TotalBorrowed(context.Context, *QueryTotalBorrowedRequest) (*QueryTotalBorrowedResponse, error)
	// InterestRate queries the jinx module interest rates.
	InterestRate(context.Context, *QueryInterestRateRequest) (*QueryInterestRateResponse, error)
	// Reserves queries total jinx reserve coins.
	Reserves(context.Context, *QueryReservesRequest) (*QueryReservesResponse, error)
	// InterestFactors queries jinx 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

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

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

func (*QueryTotalBorrowedRequest) GetDenom

func (m *QueryTotalBorrowedRequest) GetDenom() string

func (*QueryTotalBorrowedRequest) Marshal

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

func (*QueryTotalBorrowedRequest) MarshalTo

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

func (*QueryTotalBorrowedRequest) MarshalToSizedBuffer

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

func (*QueryTotalBorrowedRequest) ProtoMessage

func (*QueryTotalBorrowedRequest) ProtoMessage()

func (*QueryTotalBorrowedRequest) Reset

func (m *QueryTotalBorrowedRequest) Reset()

func (*QueryTotalBorrowedRequest) Size

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

func (*QueryTotalBorrowedRequest) String

func (m *QueryTotalBorrowedRequest) String() string

func (*QueryTotalBorrowedRequest) Unmarshal

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

func (*QueryTotalBorrowedRequest) XXX_DiscardUnknown

func (m *QueryTotalBorrowedRequest) XXX_DiscardUnknown()

func (*QueryTotalBorrowedRequest) XXX_Marshal

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

func (*QueryTotalBorrowedRequest) XXX_Merge

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

func (*QueryTotalBorrowedRequest) XXX_Size

func (m *QueryTotalBorrowedRequest) XXX_Size() int

func (*QueryTotalBorrowedRequest) XXX_Unmarshal

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

type QueryTotalBorrowedResponse

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

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

func (*QueryTotalBorrowedResponse) GetBorrowedCoins

func (*QueryTotalBorrowedResponse) Marshal

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

func (*QueryTotalBorrowedResponse) MarshalTo

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

func (*QueryTotalBorrowedResponse) MarshalToSizedBuffer

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

func (*QueryTotalBorrowedResponse) ProtoMessage

func (*QueryTotalBorrowedResponse) ProtoMessage()

func (*QueryTotalBorrowedResponse) Reset

func (m *QueryTotalBorrowedResponse) Reset()

func (*QueryTotalBorrowedResponse) Size

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

func (*QueryTotalBorrowedResponse) String

func (m *QueryTotalBorrowedResponse) String() string

func (*QueryTotalBorrowedResponse) Unmarshal

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

func (*QueryTotalBorrowedResponse) XXX_DiscardUnknown

func (m *QueryTotalBorrowedResponse) XXX_DiscardUnknown()

func (*QueryTotalBorrowedResponse) XXX_Marshal

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

func (*QueryTotalBorrowedResponse) XXX_Merge

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

func (*QueryTotalBorrowedResponse) XXX_Size

func (m *QueryTotalBorrowedResponse) XXX_Size() int

func (*QueryTotalBorrowedResponse) XXX_Unmarshal

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

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

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

func (*QueryTotalDepositedRequest) GetDenom

func (m *QueryTotalDepositedRequest) GetDenom() string

func (*QueryTotalDepositedRequest) Marshal

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

func (*QueryTotalDepositedRequest) MarshalTo

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

func (*QueryTotalDepositedRequest) MarshalToSizedBuffer

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

func (*QueryTotalDepositedRequest) ProtoMessage

func (*QueryTotalDepositedRequest) ProtoMessage()

func (*QueryTotalDepositedRequest) Reset

func (m *QueryTotalDepositedRequest) Reset()

func (*QueryTotalDepositedRequest) Size

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

func (*QueryTotalDepositedRequest) String

func (m *QueryTotalDepositedRequest) String() string

func (*QueryTotalDepositedRequest) Unmarshal

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

func (*QueryTotalDepositedRequest) XXX_DiscardUnknown

func (m *QueryTotalDepositedRequest) XXX_DiscardUnknown()

func (*QueryTotalDepositedRequest) XXX_Marshal

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

func (*QueryTotalDepositedRequest) XXX_Merge

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

func (*QueryTotalDepositedRequest) XXX_Size

func (m *QueryTotalDepositedRequest) XXX_Size() int

func (*QueryTotalDepositedRequest) XXX_Unmarshal

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

type QueryTotalDepositedResponse

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

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

func (*QueryTotalDepositedResponse) GetSuppliedCoins

func (*QueryTotalDepositedResponse) Marshal

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

func (*QueryTotalDepositedResponse) MarshalTo

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

func (*QueryTotalDepositedResponse) MarshalToSizedBuffer

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

func (*QueryTotalDepositedResponse) ProtoMessage

func (*QueryTotalDepositedResponse) ProtoMessage()

func (*QueryTotalDepositedResponse) Reset

func (m *QueryTotalDepositedResponse) Reset()

func (*QueryTotalDepositedResponse) Size

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

func (*QueryTotalDepositedResponse) String

func (m *QueryTotalDepositedResponse) String() string

func (*QueryTotalDepositedResponse) Unmarshal

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

func (*QueryTotalDepositedResponse) XXX_DiscardUnknown

func (m *QueryTotalDepositedResponse) XXX_DiscardUnknown()

func (*QueryTotalDepositedResponse) XXX_Marshal

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

func (*QueryTotalDepositedResponse) XXX_Merge

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

func (*QueryTotalDepositedResponse) XXX_Size

func (m *QueryTotalDepositedResponse) XXX_Size() int

func (*QueryTotalDepositedResponse) XXX_Unmarshal

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

type QueryUnsyncedBorrowsParams

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

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

NewQueryUnsyncedBorrowsParams creates a new QueryUnsyncedBorrowsParams

type QueryUnsyncedBorrowsRequest

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

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

func (*QueryUnsyncedBorrowsRequest) GetDenom

func (m *QueryUnsyncedBorrowsRequest) GetDenom() string

func (*QueryUnsyncedBorrowsRequest) GetOwner

func (m *QueryUnsyncedBorrowsRequest) GetOwner() string

func (*QueryUnsyncedBorrowsRequest) GetPagination

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

func (*QueryUnsyncedBorrowsRequest) Marshal

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

func (*QueryUnsyncedBorrowsRequest) MarshalTo

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

func (*QueryUnsyncedBorrowsRequest) MarshalToSizedBuffer

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

func (*QueryUnsyncedBorrowsRequest) ProtoMessage

func (*QueryUnsyncedBorrowsRequest) ProtoMessage()

func (*QueryUnsyncedBorrowsRequest) Reset

func (m *QueryUnsyncedBorrowsRequest) Reset()

func (*QueryUnsyncedBorrowsRequest) Size

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

func (*QueryUnsyncedBorrowsRequest) String

func (m *QueryUnsyncedBorrowsRequest) String() string

func (*QueryUnsyncedBorrowsRequest) Unmarshal

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

func (*QueryUnsyncedBorrowsRequest) XXX_DiscardUnknown

func (m *QueryUnsyncedBorrowsRequest) XXX_DiscardUnknown()

func (*QueryUnsyncedBorrowsRequest) XXX_Marshal

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

func (*QueryUnsyncedBorrowsRequest) XXX_Merge

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

func (*QueryUnsyncedBorrowsRequest) XXX_Size

func (m *QueryUnsyncedBorrowsRequest) XXX_Size() int

func (*QueryUnsyncedBorrowsRequest) XXX_Unmarshal

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

type QueryUnsyncedBorrowsResponse

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

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

func (*QueryUnsyncedBorrowsResponse) GetBorrows

func (*QueryUnsyncedBorrowsResponse) GetPagination

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

func (*QueryUnsyncedBorrowsResponse) Marshal

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

func (*QueryUnsyncedBorrowsResponse) MarshalTo

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

func (*QueryUnsyncedBorrowsResponse) MarshalToSizedBuffer

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

func (*QueryUnsyncedBorrowsResponse) ProtoMessage

func (*QueryUnsyncedBorrowsResponse) ProtoMessage()

func (*QueryUnsyncedBorrowsResponse) Reset

func (m *QueryUnsyncedBorrowsResponse) Reset()

func (*QueryUnsyncedBorrowsResponse) Size

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

func (*QueryUnsyncedBorrowsResponse) String

func (*QueryUnsyncedBorrowsResponse) Unmarshal

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

func (*QueryUnsyncedBorrowsResponse) XXX_DiscardUnknown

func (m *QueryUnsyncedBorrowsResponse) XXX_DiscardUnknown()

func (*QueryUnsyncedBorrowsResponse) XXX_Marshal

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

func (*QueryUnsyncedBorrowsResponse) XXX_Merge

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

func (*QueryUnsyncedBorrowsResponse) XXX_Size

func (m *QueryUnsyncedBorrowsResponse) XXX_Size() int

func (*QueryUnsyncedBorrowsResponse) XXX_Unmarshal

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

type QueryUnsyncedDepositsParams

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

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

NewQueryUnsyncedDepositsParams creates a new QueryUnsyncedDepositsParams

type QueryUnsyncedDepositsRequest

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

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

func (*QueryUnsyncedDepositsRequest) GetDenom

func (m *QueryUnsyncedDepositsRequest) GetDenom() string

func (*QueryUnsyncedDepositsRequest) GetOwner

func (m *QueryUnsyncedDepositsRequest) GetOwner() string

func (*QueryUnsyncedDepositsRequest) GetPagination

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

func (*QueryUnsyncedDepositsRequest) Marshal

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

func (*QueryUnsyncedDepositsRequest) MarshalTo

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

func (*QueryUnsyncedDepositsRequest) MarshalToSizedBuffer

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

func (*QueryUnsyncedDepositsRequest) ProtoMessage

func (*QueryUnsyncedDepositsRequest) ProtoMessage()

func (*QueryUnsyncedDepositsRequest) Reset

func (m *QueryUnsyncedDepositsRequest) Reset()

func (*QueryUnsyncedDepositsRequest) Size

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

func (*QueryUnsyncedDepositsRequest) String

func (*QueryUnsyncedDepositsRequest) Unmarshal

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

func (*QueryUnsyncedDepositsRequest) XXX_DiscardUnknown

func (m *QueryUnsyncedDepositsRequest) XXX_DiscardUnknown()

func (*QueryUnsyncedDepositsRequest) XXX_Marshal

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

func (*QueryUnsyncedDepositsRequest) XXX_Merge

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

func (*QueryUnsyncedDepositsRequest) XXX_Size

func (m *QueryUnsyncedDepositsRequest) XXX_Size() int

func (*QueryUnsyncedDepositsRequest) XXX_Unmarshal

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

type QueryUnsyncedDepositsResponse

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

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

func (*QueryUnsyncedDepositsResponse) GetDeposits

func (*QueryUnsyncedDepositsResponse) GetPagination

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

func (*QueryUnsyncedDepositsResponse) Marshal

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

func (*QueryUnsyncedDepositsResponse) MarshalTo

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

func (*QueryUnsyncedDepositsResponse) MarshalToSizedBuffer

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

func (*QueryUnsyncedDepositsResponse) ProtoMessage

func (*QueryUnsyncedDepositsResponse) ProtoMessage()

func (*QueryUnsyncedDepositsResponse) Reset

func (m *QueryUnsyncedDepositsResponse) Reset()

func (*QueryUnsyncedDepositsResponse) Size

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

func (*QueryUnsyncedDepositsResponse) String

func (*QueryUnsyncedDepositsResponse) Unmarshal

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

func (*QueryUnsyncedDepositsResponse) XXX_DiscardUnknown

func (m *QueryUnsyncedDepositsResponse) XXX_DiscardUnknown()

func (*QueryUnsyncedDepositsResponse) XXX_Marshal

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

func (*QueryUnsyncedDepositsResponse) XXX_Merge

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

func (*QueryUnsyncedDepositsResponse) XXX_Size

func (m *QueryUnsyncedDepositsResponse) XXX_Size() int

func (*QueryUnsyncedDepositsResponse) XXX_Unmarshal

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

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

func (*SupplyInterestFactor) Marshal

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

func (*SupplyInterestFactor) MarshalTo

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

func (*SupplyInterestFactor) MarshalToSizedBuffer

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

func (*SupplyInterestFactor) ProtoMessage

func (*SupplyInterestFactor) ProtoMessage()

func (*SupplyInterestFactor) Reset

func (m *SupplyInterestFactor) Reset()

func (*SupplyInterestFactor) Size

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

func (*SupplyInterestFactor) String

func (m *SupplyInterestFactor) String() string

func (SupplyInterestFactor) ToResponse

ToResponse converts SupplyInterestFactor to SupplyInterestFactorResponse

func (*SupplyInterestFactor) Unmarshal

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

func (SupplyInterestFactor) Validate

func (sif SupplyInterestFactor) Validate() error

Validate validates SupplyInterestFactor values

func (*SupplyInterestFactor) XXX_DiscardUnknown

func (m *SupplyInterestFactor) XXX_DiscardUnknown()

func (*SupplyInterestFactor) XXX_Marshal

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

func (*SupplyInterestFactor) XXX_Merge

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

func (*SupplyInterestFactor) XXX_Size

func (m *SupplyInterestFactor) XXX_Size() int

func (*SupplyInterestFactor) XXX_Unmarshal

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

type SupplyInterestFactorResponse

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

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

NewSupplyInterestFactorResponse returns a new SupplyInterestFactorResponse instance

func (*SupplyInterestFactorResponse) Descriptor

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

func (*SupplyInterestFactorResponse) GetDenom

func (m *SupplyInterestFactorResponse) GetDenom() string

func (*SupplyInterestFactorResponse) GetValue

func (m *SupplyInterestFactorResponse) GetValue() string

func (*SupplyInterestFactorResponse) Marshal

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

func (*SupplyInterestFactorResponse) MarshalTo

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

func (*SupplyInterestFactorResponse) MarshalToSizedBuffer

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

func (*SupplyInterestFactorResponse) ProtoMessage

func (*SupplyInterestFactorResponse) ProtoMessage()

func (*SupplyInterestFactorResponse) Reset

func (m *SupplyInterestFactorResponse) Reset()

func (*SupplyInterestFactorResponse) Size

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

func (*SupplyInterestFactorResponse) String

func (*SupplyInterestFactorResponse) Unmarshal

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

func (*SupplyInterestFactorResponse) XXX_DiscardUnknown

func (m *SupplyInterestFactorResponse) XXX_DiscardUnknown()

func (*SupplyInterestFactorResponse) XXX_Marshal

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

func (*SupplyInterestFactorResponse) XXX_Merge

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

func (*SupplyInterestFactorResponse) XXX_Size

func (m *SupplyInterestFactorResponse) XXX_Size() int

func (*SupplyInterestFactorResponse) XXX_Unmarshal

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

type SupplyInterestFactorResponses

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

ToResponse converts SupplyInterestFactor to SupplyInterestFactorResponses

func (SupplyInterestFactors) Validate

func (sifs SupplyInterestFactors) Validate() error

Validate validates SupplyInterestFactors

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Borrow

func (*UnimplementedMsgServer) Deposit

func (*UnimplementedMsgServer) Liquidate

func (*UnimplementedMsgServer) Repay

func (*UnimplementedMsgServer) Withdraw

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Accounts

func (*UnimplementedQueryServer) Borrows

func (*UnimplementedQueryServer) Deposits

func (*UnimplementedQueryServer) InterestFactors

func (*UnimplementedQueryServer) InterestRate

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Reserves

func (*UnimplementedQueryServer) TotalBorrowed

func (*UnimplementedQueryServer) TotalDeposited

func (*UnimplementedQueryServer) UnsyncedBorrows

func (*UnimplementedQueryServer) UnsyncedDeposits

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