Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AddressFromKey(key []byte, prefix []byte) sdk.AccAddress
- func CreateAdjustedBorrowKey(borrowerAddr sdk.AccAddress, tokenDenom string) []byte
- func CreateAdjustedBorrowKeyNoDenom(borrowerAddr sdk.AccAddress) []byte
- func CreateAdjustedTotalBorrowKey(tokenDenom string) []byte
- func CreateBadDebtKey(denom string, borrowerAddr sdk.AccAddress) []byte
- func CreateBadDebtKeyNoAddress() []byte
- func CreateCollateralAmountKey(lenderAddr sdk.AccAddress, uTokenDenom string) []byte
- func CreateCollateralAmountKeyNoAddress() []byte
- func CreateCollateralAmountKeyNoDenom(lenderAddr sdk.AccAddress) []byte
- func CreateCollateralSettingKey(borrowerAddr sdk.AccAddress, uTokenDenom string) []byte
- func CreateInterestScalarKey(tokenDenom string) []byte
- func CreateLastInterestTimeKey() []byte
- func CreateRegisteredTokenKey(baseTokenDenom string) []byte
- func CreateReserveAmountKey(tokenDenom string) []byte
- func CreateReserveAmountKeyNoDenom() []byte
- func DenomFromKey(key []byte, prefix []byte) string
- func DenomFromKeyWithAddress(key []byte, prefix []byte) string
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func UTokenFromTokenDenom(tokenDenom string) string
- type AccountKeeper
- type AdjustedBorrow
- func (*AdjustedBorrow) Descriptor() ([]byte, []int)
- func (m *AdjustedBorrow) GetAddress() string
- func (m *AdjustedBorrow) GetAmount() types.DecCoin
- func (m *AdjustedBorrow) Marshal() (dAtA []byte, err error)
- func (m *AdjustedBorrow) MarshalTo(dAtA []byte) (int, error)
- func (m *AdjustedBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AdjustedBorrow) ProtoMessage()
- func (m *AdjustedBorrow) Reset()
- func (m *AdjustedBorrow) Size() (n int)
- func (m *AdjustedBorrow) String() string
- func (m *AdjustedBorrow) Unmarshal(dAtA []byte) error
- func (m *AdjustedBorrow) XXX_DiscardUnknown()
- func (m *AdjustedBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AdjustedBorrow) XXX_Merge(src proto.Message)
- func (m *AdjustedBorrow) XXX_Size() int
- func (m *AdjustedBorrow) XXX_Unmarshal(b []byte) error
- type BadDebt
- func (*BadDebt) Descriptor() ([]byte, []int)
- func (m *BadDebt) GetAddress() string
- func (m *BadDebt) GetDenom() string
- func (m *BadDebt) Marshal() (dAtA []byte, err error)
- func (m *BadDebt) MarshalTo(dAtA []byte) (int, error)
- func (m *BadDebt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BadDebt) ProtoMessage()
- func (m *BadDebt) Reset()
- func (m *BadDebt) Size() (n int)
- func (m *BadDebt) String() string
- func (m *BadDebt) Unmarshal(dAtA []byte) error
- func (m *BadDebt) XXX_DiscardUnknown()
- func (m *BadDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BadDebt) XXX_Merge(src proto.Message)
- func (m *BadDebt) XXX_Size() int
- func (m *BadDebt) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type Collateral
- func (*Collateral) Descriptor() ([]byte, []int)
- func (m *Collateral) GetAddress() string
- func (m *Collateral) GetAmount() types.Coin
- func (m *Collateral) Marshal() (dAtA []byte, err error)
- func (m *Collateral) MarshalTo(dAtA []byte) (int, error)
- func (m *Collateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Collateral) ProtoMessage()
- func (m *Collateral) Reset()
- func (m *Collateral) Size() (n int)
- func (m *Collateral) String() string
- func (m *Collateral) Unmarshal(dAtA []byte) error
- func (m *Collateral) XXX_DiscardUnknown()
- func (m *Collateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Collateral) XXX_Merge(src proto.Message)
- func (m *Collateral) XXX_Size() int
- func (m *Collateral) XXX_Unmarshal(b []byte) error
- type CollateralSetting
- func (*CollateralSetting) Descriptor() ([]byte, []int)
- func (m *CollateralSetting) GetAddress() string
- func (m *CollateralSetting) GetDenom() string
- func (m *CollateralSetting) Marshal() (dAtA []byte, err error)
- func (m *CollateralSetting) MarshalTo(dAtA []byte) (int, error)
- func (m *CollateralSetting) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CollateralSetting) ProtoMessage()
- func (m *CollateralSetting) Reset()
- func (m *CollateralSetting) Size() (n int)
- func (m *CollateralSetting) String() string
- func (m *CollateralSetting) Unmarshal(dAtA []byte) error
- func (m *CollateralSetting) XXX_DiscardUnknown()
- func (m *CollateralSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollateralSetting) XXX_Merge(src proto.Message)
- func (m *CollateralSetting) XXX_Size() int
- func (m *CollateralSetting) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAdjustedBorrows() []AdjustedBorrow
- func (m *GenesisState) GetBadDebts() []BadDebt
- func (m *GenesisState) GetCollateral() []Collateral
- func (m *GenesisState) GetCollateralSettings() []CollateralSetting
- func (m *GenesisState) GetInterestScalars() []InterestScalar
- func (m *GenesisState) GetLastInterestTime() int64
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRegistry() []Token
- func (m *GenesisState) GetReserves() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Hooks
- type InterestScalar
- func (*InterestScalar) Descriptor() ([]byte, []int)
- func (m *InterestScalar) GetDenom() string
- func (m *InterestScalar) Marshal() (dAtA []byte, err error)
- func (m *InterestScalar) MarshalTo(dAtA []byte) (int, error)
- func (m *InterestScalar) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InterestScalar) ProtoMessage()
- func (m *InterestScalar) Reset()
- func (m *InterestScalar) Size() (n int)
- func (m *InterestScalar) String() string
- func (m *InterestScalar) Unmarshal(dAtA []byte) error
- func (m *InterestScalar) XXX_DiscardUnknown()
- func (m *InterestScalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InterestScalar) XXX_Merge(src proto.Message)
- func (m *InterestScalar) XXX_Size() int
- func (m *InterestScalar) XXX_Unmarshal(b []byte) error
- type MsgBorrowAsset
- func (*MsgBorrowAsset) Descriptor() ([]byte, []int)
- func (m *MsgBorrowAsset) GetAmount() types.Coin
- func (m *MsgBorrowAsset) GetBorrower() string
- func (msg *MsgBorrowAsset) GetSignBytes() []byte
- func (msg *MsgBorrowAsset) GetSigners() []sdk.AccAddress
- func (m *MsgBorrowAsset) Marshal() (dAtA []byte, err error)
- func (m *MsgBorrowAsset) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBorrowAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBorrowAsset) ProtoMessage()
- func (m *MsgBorrowAsset) Reset()
- func (msg MsgBorrowAsset) Route() string
- func (m *MsgBorrowAsset) Size() (n int)
- func (m *MsgBorrowAsset) String() string
- func (msg MsgBorrowAsset) Type() string
- func (m *MsgBorrowAsset) Unmarshal(dAtA []byte) error
- func (msg *MsgBorrowAsset) ValidateBasic() error
- func (m *MsgBorrowAsset) XXX_DiscardUnknown()
- func (m *MsgBorrowAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBorrowAsset) XXX_Merge(src proto.Message)
- func (m *MsgBorrowAsset) XXX_Size() int
- func (m *MsgBorrowAsset) XXX_Unmarshal(b []byte) error
- type MsgBorrowAssetResponse
- func (*MsgBorrowAssetResponse) Descriptor() ([]byte, []int)
- func (m *MsgBorrowAssetResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBorrowAssetResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBorrowAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBorrowAssetResponse) ProtoMessage()
- func (m *MsgBorrowAssetResponse) Reset()
- func (m *MsgBorrowAssetResponse) Size() (n int)
- func (m *MsgBorrowAssetResponse) String() string
- func (m *MsgBorrowAssetResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBorrowAssetResponse) XXX_DiscardUnknown()
- func (m *MsgBorrowAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBorrowAssetResponse) XXX_Merge(src proto.Message)
- func (m *MsgBorrowAssetResponse) XXX_Size() int
- func (m *MsgBorrowAssetResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgLendAsset
- func (*MsgLendAsset) Descriptor() ([]byte, []int)
- func (m *MsgLendAsset) GetAmount() types.Coin
- func (m *MsgLendAsset) GetLender() string
- func (msg *MsgLendAsset) GetSignBytes() []byte
- func (msg *MsgLendAsset) GetSigners() []sdk.AccAddress
- func (m *MsgLendAsset) Marshal() (dAtA []byte, err error)
- func (m *MsgLendAsset) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLendAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLendAsset) ProtoMessage()
- func (m *MsgLendAsset) Reset()
- func (msg MsgLendAsset) Route() string
- func (m *MsgLendAsset) Size() (n int)
- func (m *MsgLendAsset) String() string
- func (msg MsgLendAsset) Type() string
- func (m *MsgLendAsset) Unmarshal(dAtA []byte) error
- func (msg *MsgLendAsset) ValidateBasic() error
- func (m *MsgLendAsset) XXX_DiscardUnknown()
- func (m *MsgLendAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLendAsset) XXX_Merge(src proto.Message)
- func (m *MsgLendAsset) XXX_Size() int
- func (m *MsgLendAsset) XXX_Unmarshal(b []byte) error
- type MsgLendAssetResponse
- func (*MsgLendAssetResponse) Descriptor() ([]byte, []int)
- func (m *MsgLendAssetResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgLendAssetResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLendAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLendAssetResponse) ProtoMessage()
- func (m *MsgLendAssetResponse) Reset()
- func (m *MsgLendAssetResponse) Size() (n int)
- func (m *MsgLendAssetResponse) String() string
- func (m *MsgLendAssetResponse) Unmarshal(dAtA []byte) error
- func (m *MsgLendAssetResponse) XXX_DiscardUnknown()
- func (m *MsgLendAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLendAssetResponse) XXX_Merge(src proto.Message)
- func (m *MsgLendAssetResponse) XXX_Size() int
- func (m *MsgLendAssetResponse) XXX_Unmarshal(b []byte) error
- type MsgLiquidate
- func (*MsgLiquidate) Descriptor() ([]byte, []int)
- func (m *MsgLiquidate) GetBorrower() string
- func (m *MsgLiquidate) GetLiquidator() string
- func (m *MsgLiquidate) GetRepayment() types.Coin
- func (m *MsgLiquidate) GetRewardDenom() string
- func (msg *MsgLiquidate) GetSignBytes() []byte
- func (msg *MsgLiquidate) GetSigners() []sdk.AccAddress
- func (m *MsgLiquidate) Marshal() (dAtA []byte, err error)
- func (m *MsgLiquidate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLiquidate) ProtoMessage()
- func (m *MsgLiquidate) Reset()
- func (msg MsgLiquidate) Route() string
- func (m *MsgLiquidate) Size() (n int)
- func (m *MsgLiquidate) String() string
- func (msg MsgLiquidate) Type() string
- func (m *MsgLiquidate) Unmarshal(dAtA []byte) error
- func (msg *MsgLiquidate) ValidateBasic() error
- func (m *MsgLiquidate) XXX_DiscardUnknown()
- func (m *MsgLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLiquidate) XXX_Merge(src proto.Message)
- func (m *MsgLiquidate) XXX_Size() int
- func (m *MsgLiquidate) XXX_Unmarshal(b []byte) error
- type MsgLiquidateResponse
- func (*MsgLiquidateResponse) Descriptor() ([]byte, []int)
- func (m *MsgLiquidateResponse) GetRepaid() types.Coin
- func (m *MsgLiquidateResponse) GetReward() types.Coin
- func (m *MsgLiquidateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgLiquidateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLiquidateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLiquidateResponse) ProtoMessage()
- func (m *MsgLiquidateResponse) Reset()
- func (m *MsgLiquidateResponse) Size() (n int)
- func (m *MsgLiquidateResponse) String() string
- func (m *MsgLiquidateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgLiquidateResponse) XXX_DiscardUnknown()
- func (m *MsgLiquidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLiquidateResponse) XXX_Merge(src proto.Message)
- func (m *MsgLiquidateResponse) XXX_Size() int
- func (m *MsgLiquidateResponse) XXX_Unmarshal(b []byte) error
- type MsgRepayAsset
- func (*MsgRepayAsset) Descriptor() ([]byte, []int)
- func (m *MsgRepayAsset) GetAmount() types.Coin
- func (m *MsgRepayAsset) GetBorrower() string
- func (msg *MsgRepayAsset) GetSignBytes() []byte
- func (msg *MsgRepayAsset) GetSigners() []sdk.AccAddress
- func (m *MsgRepayAsset) Marshal() (dAtA []byte, err error)
- func (m *MsgRepayAsset) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRepayAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRepayAsset) ProtoMessage()
- func (m *MsgRepayAsset) Reset()
- func (msg MsgRepayAsset) Route() string
- func (m *MsgRepayAsset) Size() (n int)
- func (m *MsgRepayAsset) String() string
- func (msg MsgRepayAsset) Type() string
- func (m *MsgRepayAsset) Unmarshal(dAtA []byte) error
- func (msg *MsgRepayAsset) ValidateBasic() error
- func (m *MsgRepayAsset) XXX_DiscardUnknown()
- func (m *MsgRepayAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRepayAsset) XXX_Merge(src proto.Message)
- func (m *MsgRepayAsset) XXX_Size() int
- func (m *MsgRepayAsset) XXX_Unmarshal(b []byte) error
- type MsgRepayAssetResponse
- func (*MsgRepayAssetResponse) Descriptor() ([]byte, []int)
- func (m *MsgRepayAssetResponse) GetRepaid() types.Coin
- func (m *MsgRepayAssetResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRepayAssetResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRepayAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRepayAssetResponse) ProtoMessage()
- func (m *MsgRepayAssetResponse) Reset()
- func (m *MsgRepayAssetResponse) Size() (n int)
- func (m *MsgRepayAssetResponse) String() string
- func (m *MsgRepayAssetResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRepayAssetResponse) XXX_DiscardUnknown()
- func (m *MsgRepayAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRepayAssetResponse) XXX_Merge(src proto.Message)
- func (m *MsgRepayAssetResponse) XXX_Size() int
- func (m *MsgRepayAssetResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetCollateral
- func (*MsgSetCollateral) Descriptor() ([]byte, []int)
- func (m *MsgSetCollateral) GetBorrower() string
- func (m *MsgSetCollateral) GetDenom() string
- func (m *MsgSetCollateral) GetEnable() bool
- func (msg *MsgSetCollateral) GetSignBytes() []byte
- func (msg *MsgSetCollateral) GetSigners() []sdk.AccAddress
- func (m *MsgSetCollateral) Marshal() (dAtA []byte, err error)
- func (m *MsgSetCollateral) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetCollateral) ProtoMessage()
- func (m *MsgSetCollateral) Reset()
- func (msg MsgSetCollateral) Route() string
- func (m *MsgSetCollateral) Size() (n int)
- func (m *MsgSetCollateral) String() string
- func (msg MsgSetCollateral) Type() string
- func (m *MsgSetCollateral) Unmarshal(dAtA []byte) error
- func (msg *MsgSetCollateral) ValidateBasic() error
- func (m *MsgSetCollateral) XXX_DiscardUnknown()
- func (m *MsgSetCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetCollateral) XXX_Merge(src proto.Message)
- func (m *MsgSetCollateral) XXX_Size() int
- func (m *MsgSetCollateral) XXX_Unmarshal(b []byte) error
- type MsgSetCollateralResponse
- func (*MsgSetCollateralResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetCollateralResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetCollateralResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetCollateralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetCollateralResponse) ProtoMessage()
- func (m *MsgSetCollateralResponse) Reset()
- func (m *MsgSetCollateralResponse) Size() (n int)
- func (m *MsgSetCollateralResponse) String() string
- func (m *MsgSetCollateralResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetCollateralResponse) XXX_DiscardUnknown()
- func (m *MsgSetCollateralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetCollateralResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetCollateralResponse) XXX_Size() int
- func (m *MsgSetCollateralResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawAsset
- func (*MsgWithdrawAsset) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAsset) GetAmount() types.Coin
- func (m *MsgWithdrawAsset) GetLender() string
- func (msg *MsgWithdrawAsset) GetSignBytes() []byte
- func (msg *MsgWithdrawAsset) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawAsset) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAsset) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAsset) ProtoMessage()
- func (m *MsgWithdrawAsset) Reset()
- func (msg MsgWithdrawAsset) Route() string
- func (m *MsgWithdrawAsset) Size() (n int)
- func (m *MsgWithdrawAsset) String() string
- func (msg MsgWithdrawAsset) Type() string
- func (m *MsgWithdrawAsset) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawAsset) ValidateBasic() error
- func (m *MsgWithdrawAsset) XXX_DiscardUnknown()
- func (m *MsgWithdrawAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAsset) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAsset) XXX_Size() int
- func (m *MsgWithdrawAsset) XXX_Unmarshal(b []byte) error
- type MsgWithdrawAssetResponse
- func (*MsgWithdrawAssetResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAssetResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAssetResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAssetResponse) ProtoMessage()
- func (m *MsgWithdrawAssetResponse) Reset()
- func (m *MsgWithdrawAssetResponse) Size() (n int)
- func (m *MsgWithdrawAssetResponse) String() string
- func (m *MsgWithdrawAssetResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawAssetResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAssetResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAssetResponse) XXX_Size() int
- func (m *MsgWithdrawAssetResponse) XXX_Unmarshal(b []byte) error
- type MultiHooks
- type OracleKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAvailableBorrowRequest
- func (*QueryAvailableBorrowRequest) Descriptor() ([]byte, []int)
- func (m *QueryAvailableBorrowRequest) GetDenom() string
- func (m *QueryAvailableBorrowRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAvailableBorrowRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAvailableBorrowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAvailableBorrowRequest) ProtoMessage()
- func (m *QueryAvailableBorrowRequest) Reset()
- func (m *QueryAvailableBorrowRequest) Size() (n int)
- func (m *QueryAvailableBorrowRequest) String() string
- func (m *QueryAvailableBorrowRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAvailableBorrowRequest) XXX_DiscardUnknown()
- func (m *QueryAvailableBorrowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAvailableBorrowRequest) XXX_Merge(src proto.Message)
- func (m *QueryAvailableBorrowRequest) XXX_Size() int
- func (m *QueryAvailableBorrowRequest) XXX_Unmarshal(b []byte) error
- type QueryAvailableBorrowResponse
- func (*QueryAvailableBorrowResponse) Descriptor() ([]byte, []int)
- func (m *QueryAvailableBorrowResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAvailableBorrowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAvailableBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAvailableBorrowResponse) ProtoMessage()
- func (m *QueryAvailableBorrowResponse) Reset()
- func (m *QueryAvailableBorrowResponse) Size() (n int)
- func (m *QueryAvailableBorrowResponse) String() string
- func (m *QueryAvailableBorrowResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAvailableBorrowResponse) XXX_DiscardUnknown()
- func (m *QueryAvailableBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAvailableBorrowResponse) XXX_Merge(src proto.Message)
- func (m *QueryAvailableBorrowResponse) XXX_Size() int
- func (m *QueryAvailableBorrowResponse) XXX_Unmarshal(b []byte) error
- type QueryBorrowAPYRequest
- func (*QueryBorrowAPYRequest) Descriptor() ([]byte, []int)
- func (m *QueryBorrowAPYRequest) GetDenom() string
- func (m *QueryBorrowAPYRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBorrowAPYRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBorrowAPYRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBorrowAPYRequest) ProtoMessage()
- func (m *QueryBorrowAPYRequest) Reset()
- func (m *QueryBorrowAPYRequest) Size() (n int)
- func (m *QueryBorrowAPYRequest) String() string
- func (m *QueryBorrowAPYRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBorrowAPYRequest) XXX_DiscardUnknown()
- func (m *QueryBorrowAPYRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBorrowAPYRequest) XXX_Merge(src proto.Message)
- func (m *QueryBorrowAPYRequest) XXX_Size() int
- func (m *QueryBorrowAPYRequest) XXX_Unmarshal(b []byte) error
- type QueryBorrowAPYResponse
- func (*QueryBorrowAPYResponse) Descriptor() ([]byte, []int)
- func (m *QueryBorrowAPYResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBorrowAPYResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBorrowAPYResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBorrowAPYResponse) ProtoMessage()
- func (m *QueryBorrowAPYResponse) Reset()
- func (m *QueryBorrowAPYResponse) Size() (n int)
- func (m *QueryBorrowAPYResponse) String() string
- func (m *QueryBorrowAPYResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBorrowAPYResponse) XXX_DiscardUnknown()
- func (m *QueryBorrowAPYResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBorrowAPYResponse) XXX_Merge(src proto.Message)
- func (m *QueryBorrowAPYResponse) XXX_Size() int
- func (m *QueryBorrowAPYResponse) XXX_Unmarshal(b []byte) error
- type QueryBorrowLimitRequest
- func (*QueryBorrowLimitRequest) Descriptor() ([]byte, []int)
- func (m *QueryBorrowLimitRequest) GetAddress() string
- func (m *QueryBorrowLimitRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBorrowLimitRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBorrowLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBorrowLimitRequest) ProtoMessage()
- func (m *QueryBorrowLimitRequest) Reset()
- func (m *QueryBorrowLimitRequest) Size() (n int)
- func (m *QueryBorrowLimitRequest) String() string
- func (m *QueryBorrowLimitRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBorrowLimitRequest) XXX_DiscardUnknown()
- func (m *QueryBorrowLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBorrowLimitRequest) XXX_Merge(src proto.Message)
- func (m *QueryBorrowLimitRequest) XXX_Size() int
- func (m *QueryBorrowLimitRequest) XXX_Unmarshal(b []byte) error
- type QueryBorrowLimitResponse
- func (*QueryBorrowLimitResponse) Descriptor() ([]byte, []int)
- func (m *QueryBorrowLimitResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBorrowLimitResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBorrowLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBorrowLimitResponse) ProtoMessage()
- func (m *QueryBorrowLimitResponse) Reset()
- func (m *QueryBorrowLimitResponse) Size() (n int)
- func (m *QueryBorrowLimitResponse) String() string
- func (m *QueryBorrowLimitResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBorrowLimitResponse) XXX_DiscardUnknown()
- func (m *QueryBorrowLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBorrowLimitResponse) XXX_Merge(src proto.Message)
- func (m *QueryBorrowLimitResponse) XXX_Size() int
- func (m *QueryBorrowLimitResponse) XXX_Unmarshal(b []byte) error
- type QueryBorrowedRequest
- func (*QueryBorrowedRequest) Descriptor() ([]byte, []int)
- func (m *QueryBorrowedRequest) GetAddress() string
- func (m *QueryBorrowedRequest) GetDenom() string
- func (m *QueryBorrowedRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBorrowedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBorrowedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBorrowedRequest) ProtoMessage()
- func (m *QueryBorrowedRequest) Reset()
- func (m *QueryBorrowedRequest) Size() (n int)
- func (m *QueryBorrowedRequest) String() string
- func (m *QueryBorrowedRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBorrowedRequest) XXX_DiscardUnknown()
- func (m *QueryBorrowedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBorrowedRequest) XXX_Merge(src proto.Message)
- func (m *QueryBorrowedRequest) XXX_Size() int
- func (m *QueryBorrowedRequest) XXX_Unmarshal(b []byte) error
- type QueryBorrowedResponse
- func (*QueryBorrowedResponse) Descriptor() ([]byte, []int)
- func (m *QueryBorrowedResponse) GetBorrowed() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryBorrowedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBorrowedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBorrowedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBorrowedResponse) ProtoMessage()
- func (m *QueryBorrowedResponse) Reset()
- func (m *QueryBorrowedResponse) Size() (n int)
- func (m *QueryBorrowedResponse) String() string
- func (m *QueryBorrowedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBorrowedResponse) XXX_DiscardUnknown()
- func (m *QueryBorrowedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBorrowedResponse) XXX_Merge(src proto.Message)
- func (m *QueryBorrowedResponse) XXX_Size() int
- func (m *QueryBorrowedResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCollateralRequest
- func (*QueryCollateralRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollateralRequest) GetAddress() string
- func (m *QueryCollateralRequest) GetDenom() string
- func (m *QueryCollateralRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralRequest) ProtoMessage()
- func (m *QueryCollateralRequest) Reset()
- func (m *QueryCollateralRequest) Size() (n int)
- func (m *QueryCollateralRequest) String() string
- func (m *QueryCollateralRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralRequest) XXX_DiscardUnknown()
- func (m *QueryCollateralRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollateralRequest) XXX_Size() int
- func (m *QueryCollateralRequest) XXX_Unmarshal(b []byte) error
- type QueryCollateralResponse
- func (*QueryCollateralResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollateralResponse) GetCollateral() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryCollateralResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralResponse) ProtoMessage()
- func (m *QueryCollateralResponse) Reset()
- func (m *QueryCollateralResponse) Size() (n int)
- func (m *QueryCollateralResponse) String() string
- func (m *QueryCollateralResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralResponse) XXX_DiscardUnknown()
- func (m *QueryCollateralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollateralResponse) XXX_Size() int
- func (m *QueryCollateralResponse) XXX_Unmarshal(b []byte) error
- type QueryCollateralSettingRequest
- func (*QueryCollateralSettingRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollateralSettingRequest) GetAddress() string
- func (m *QueryCollateralSettingRequest) GetDenom() string
- func (m *QueryCollateralSettingRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralSettingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralSettingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralSettingRequest) ProtoMessage()
- func (m *QueryCollateralSettingRequest) Reset()
- func (m *QueryCollateralSettingRequest) Size() (n int)
- func (m *QueryCollateralSettingRequest) String() string
- func (m *QueryCollateralSettingRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralSettingRequest) XXX_DiscardUnknown()
- func (m *QueryCollateralSettingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralSettingRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollateralSettingRequest) XXX_Size() int
- func (m *QueryCollateralSettingRequest) XXX_Unmarshal(b []byte) error
- type QueryCollateralSettingResponse
- func (*QueryCollateralSettingResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollateralSettingResponse) GetEnabled() bool
- func (m *QueryCollateralSettingResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralSettingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralSettingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralSettingResponse) ProtoMessage()
- func (m *QueryCollateralSettingResponse) Reset()
- func (m *QueryCollateralSettingResponse) Size() (n int)
- func (m *QueryCollateralSettingResponse) String() string
- func (m *QueryCollateralSettingResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralSettingResponse) XXX_DiscardUnknown()
- func (m *QueryCollateralSettingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralSettingResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollateralSettingResponse) XXX_Size() int
- func (m *QueryCollateralSettingResponse) XXX_Unmarshal(b []byte) error
- type QueryExchangeRateRequest
- func (*QueryExchangeRateRequest) Descriptor() ([]byte, []int)
- func (m *QueryExchangeRateRequest) GetDenom() string
- func (m *QueryExchangeRateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryExchangeRateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryExchangeRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryExchangeRateRequest) ProtoMessage()
- func (m *QueryExchangeRateRequest) Reset()
- func (m *QueryExchangeRateRequest) Size() (n int)
- func (m *QueryExchangeRateRequest) String() string
- func (m *QueryExchangeRateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryExchangeRateRequest) XXX_DiscardUnknown()
- func (m *QueryExchangeRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryExchangeRateRequest) XXX_Merge(src proto.Message)
- func (m *QueryExchangeRateRequest) XXX_Size() int
- func (m *QueryExchangeRateRequest) XXX_Unmarshal(b []byte) error
- type QueryExchangeRateResponse
- func (*QueryExchangeRateResponse) Descriptor() ([]byte, []int)
- func (m *QueryExchangeRateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryExchangeRateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryExchangeRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryExchangeRateResponse) ProtoMessage()
- func (m *QueryExchangeRateResponse) Reset()
- func (m *QueryExchangeRateResponse) Size() (n int)
- func (m *QueryExchangeRateResponse) String() string
- func (m *QueryExchangeRateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryExchangeRateResponse) XXX_DiscardUnknown()
- func (m *QueryExchangeRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryExchangeRateResponse) XXX_Merge(src proto.Message)
- func (m *QueryExchangeRateResponse) XXX_Size() int
- func (m *QueryExchangeRateResponse) XXX_Unmarshal(b []byte) error
- type QueryLendAPYRequest
- func (*QueryLendAPYRequest) Descriptor() ([]byte, []int)
- func (m *QueryLendAPYRequest) GetDenom() string
- func (m *QueryLendAPYRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLendAPYRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLendAPYRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLendAPYRequest) ProtoMessage()
- func (m *QueryLendAPYRequest) Reset()
- func (m *QueryLendAPYRequest) Size() (n int)
- func (m *QueryLendAPYRequest) String() string
- func (m *QueryLendAPYRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLendAPYRequest) XXX_DiscardUnknown()
- func (m *QueryLendAPYRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLendAPYRequest) XXX_Merge(src proto.Message)
- func (m *QueryLendAPYRequest) XXX_Size() int
- func (m *QueryLendAPYRequest) XXX_Unmarshal(b []byte) error
- type QueryLendAPYResponse
- func (*QueryLendAPYResponse) Descriptor() ([]byte, []int)
- func (m *QueryLendAPYResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLendAPYResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLendAPYResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLendAPYResponse) ProtoMessage()
- func (m *QueryLendAPYResponse) Reset()
- func (m *QueryLendAPYResponse) Size() (n int)
- func (m *QueryLendAPYResponse) String() string
- func (m *QueryLendAPYResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLendAPYResponse) XXX_DiscardUnknown()
- func (m *QueryLendAPYResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLendAPYResponse) XXX_Merge(src proto.Message)
- func (m *QueryLendAPYResponse) XXX_Size() int
- func (m *QueryLendAPYResponse) XXX_Unmarshal(b []byte) error
- type QueryLiquidationTargetsRequest
- func (*QueryLiquidationTargetsRequest) Descriptor() ([]byte, []int)
- func (m *QueryLiquidationTargetsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidationTargetsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidationTargetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidationTargetsRequest) ProtoMessage()
- func (m *QueryLiquidationTargetsRequest) Reset()
- func (m *QueryLiquidationTargetsRequest) Size() (n int)
- func (m *QueryLiquidationTargetsRequest) String() string
- func (m *QueryLiquidationTargetsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidationTargetsRequest) XXX_DiscardUnknown()
- func (m *QueryLiquidationTargetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidationTargetsRequest) XXX_Merge(src proto.Message)
- func (m *QueryLiquidationTargetsRequest) XXX_Size() int
- func (m *QueryLiquidationTargetsRequest) XXX_Unmarshal(b []byte) error
- type QueryLiquidationTargetsResponse
- func (*QueryLiquidationTargetsResponse) Descriptor() ([]byte, []int)
- func (m *QueryLiquidationTargetsResponse) GetTargets() []string
- func (m *QueryLiquidationTargetsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidationTargetsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidationTargetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidationTargetsResponse) ProtoMessage()
- func (m *QueryLiquidationTargetsResponse) Reset()
- func (m *QueryLiquidationTargetsResponse) Size() (n int)
- func (m *QueryLiquidationTargetsResponse) String() string
- func (m *QueryLiquidationTargetsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidationTargetsResponse) XXX_DiscardUnknown()
- func (m *QueryLiquidationTargetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidationTargetsResponse) XXX_Merge(src proto.Message)
- func (m *QueryLiquidationTargetsResponse) XXX_Size() int
- func (m *QueryLiquidationTargetsResponse) XXX_Unmarshal(b []byte) error
- type QueryMarketSizeRequest
- func (*QueryMarketSizeRequest) Descriptor() ([]byte, []int)
- func (m *QueryMarketSizeRequest) GetDenom() string
- func (m *QueryMarketSizeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketSizeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketSizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketSizeRequest) ProtoMessage()
- func (m *QueryMarketSizeRequest) Reset()
- func (m *QueryMarketSizeRequest) Size() (n int)
- func (m *QueryMarketSizeRequest) String() string
- func (m *QueryMarketSizeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMarketSizeRequest) XXX_DiscardUnknown()
- func (m *QueryMarketSizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketSizeRequest) XXX_Merge(src proto.Message)
- func (m *QueryMarketSizeRequest) XXX_Size() int
- func (m *QueryMarketSizeRequest) XXX_Unmarshal(b []byte) error
- type QueryMarketSizeResponse
- func (*QueryMarketSizeResponse) Descriptor() ([]byte, []int)
- func (m *QueryMarketSizeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketSizeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketSizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketSizeResponse) ProtoMessage()
- func (m *QueryMarketSizeResponse) Reset()
- func (m *QueryMarketSizeResponse) Size() (n int)
- func (m *QueryMarketSizeResponse) String() string
- func (m *QueryMarketSizeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMarketSizeResponse) XXX_DiscardUnknown()
- func (m *QueryMarketSizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketSizeResponse) XXX_Merge(src proto.Message)
- func (m *QueryMarketSizeResponse) XXX_Size() int
- func (m *QueryMarketSizeResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryRegisteredTokens
- func (*QueryRegisteredTokens) Descriptor() ([]byte, []int)
- func (m *QueryRegisteredTokens) Marshal() (dAtA []byte, err error)
- func (m *QueryRegisteredTokens) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRegisteredTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRegisteredTokens) ProtoMessage()
- func (m *QueryRegisteredTokens) Reset()
- func (m *QueryRegisteredTokens) Size() (n int)
- func (m *QueryRegisteredTokens) String() string
- func (m *QueryRegisteredTokens) Unmarshal(dAtA []byte) error
- func (m *QueryRegisteredTokens) XXX_DiscardUnknown()
- func (m *QueryRegisteredTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRegisteredTokens) XXX_Merge(src proto.Message)
- func (m *QueryRegisteredTokens) XXX_Size() int
- func (m *QueryRegisteredTokens) XXX_Unmarshal(b []byte) error
- type QueryRegisteredTokensResponse
- func (*QueryRegisteredTokensResponse) Descriptor() ([]byte, []int)
- func (m *QueryRegisteredTokensResponse) GetRegistry() []Token
- func (m *QueryRegisteredTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRegisteredTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRegisteredTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRegisteredTokensResponse) ProtoMessage()
- func (m *QueryRegisteredTokensResponse) Reset()
- func (m *QueryRegisteredTokensResponse) Size() (n int)
- func (m *QueryRegisteredTokensResponse) String() string
- func (m *QueryRegisteredTokensResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRegisteredTokensResponse) XXX_DiscardUnknown()
- func (m *QueryRegisteredTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRegisteredTokensResponse) XXX_Merge(src proto.Message)
- func (m *QueryRegisteredTokensResponse) XXX_Size() int
- func (m *QueryRegisteredTokensResponse) XXX_Unmarshal(b []byte) error
- type QueryReserveAmountRequest
- func (*QueryReserveAmountRequest) Descriptor() ([]byte, []int)
- func (m *QueryReserveAmountRequest) GetDenom() string
- func (m *QueryReserveAmountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryReserveAmountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReserveAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReserveAmountRequest) ProtoMessage()
- func (m *QueryReserveAmountRequest) Reset()
- func (m *QueryReserveAmountRequest) Size() (n int)
- func (m *QueryReserveAmountRequest) String() string
- func (m *QueryReserveAmountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryReserveAmountRequest) XXX_DiscardUnknown()
- func (m *QueryReserveAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReserveAmountRequest) XXX_Merge(src proto.Message)
- func (m *QueryReserveAmountRequest) XXX_Size() int
- func (m *QueryReserveAmountRequest) XXX_Unmarshal(b []byte) error
- type QueryReserveAmountResponse
- func (*QueryReserveAmountResponse) Descriptor() ([]byte, []int)
- func (m *QueryReserveAmountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryReserveAmountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryReserveAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryReserveAmountResponse) ProtoMessage()
- func (m *QueryReserveAmountResponse) Reset()
- func (m *QueryReserveAmountResponse) Size() (n int)
- func (m *QueryReserveAmountResponse) String() string
- func (m *QueryReserveAmountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryReserveAmountResponse) XXX_DiscardUnknown()
- func (m *QueryReserveAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReserveAmountResponse) XXX_Merge(src proto.Message)
- func (m *QueryReserveAmountResponse) XXX_Size() int
- func (m *QueryReserveAmountResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (this *Token) Equal(that interface{}) bool
- func (m *Token) GetBaseDenom() string
- func (m *Token) GetExponent() uint32
- func (m *Token) GetSymbolDenom() string
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) error
- func (t Token) Validate() error
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BorrowAsset(ctx context.Context, req *MsgBorrowAsset) (*MsgBorrowAssetResponse, error)
- func (*UnimplementedMsgServer) LendAsset(ctx context.Context, req *MsgLendAsset) (*MsgLendAssetResponse, error)
- func (*UnimplementedMsgServer) Liquidate(ctx context.Context, req *MsgLiquidate) (*MsgLiquidateResponse, error)
- func (*UnimplementedMsgServer) RepayAsset(ctx context.Context, req *MsgRepayAsset) (*MsgRepayAssetResponse, error)
- func (*UnimplementedMsgServer) SetCollateral(ctx context.Context, req *MsgSetCollateral) (*MsgSetCollateralResponse, error)
- func (*UnimplementedMsgServer) WithdrawAsset(ctx context.Context, req *MsgWithdrawAsset) (*MsgWithdrawAssetResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AvailableBorrow(ctx context.Context, req *QueryAvailableBorrowRequest) (*QueryAvailableBorrowResponse, error)
- func (*UnimplementedQueryServer) BorrowAPY(ctx context.Context, req *QueryBorrowAPYRequest) (*QueryBorrowAPYResponse, error)
- func (*UnimplementedQueryServer) BorrowLimit(ctx context.Context, req *QueryBorrowLimitRequest) (*QueryBorrowLimitResponse, error)
- func (*UnimplementedQueryServer) Borrowed(ctx context.Context, req *QueryBorrowedRequest) (*QueryBorrowedResponse, error)
- func (*UnimplementedQueryServer) Collateral(ctx context.Context, req *QueryCollateralRequest) (*QueryCollateralResponse, error)
- func (*UnimplementedQueryServer) CollateralSetting(ctx context.Context, req *QueryCollateralSettingRequest) (*QueryCollateralSettingResponse, error)
- func (*UnimplementedQueryServer) ExchangeRate(ctx context.Context, req *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error)
- func (*UnimplementedQueryServer) LendAPY(ctx context.Context, req *QueryLendAPYRequest) (*QueryLendAPYResponse, error)
- func (*UnimplementedQueryServer) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargetsRequest) (*QueryLiquidationTargetsResponse, error)
- func (*UnimplementedQueryServer) MarketSize(ctx context.Context, req *QueryMarketSizeRequest) (*QueryMarketSizeResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RegisteredTokens(ctx context.Context, req *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error)
- func (*UnimplementedQueryServer) ReserveAmount(ctx context.Context, req *QueryReserveAmountRequest) (*QueryReserveAmountResponse, error)
- type UpdateRegistryProposal
- func (*UpdateRegistryProposal) Descriptor() ([]byte, []int)
- func (this *UpdateRegistryProposal) Equal(that interface{}) bool
- func (p *UpdateRegistryProposal) GetDescription() string
- func (p *UpdateRegistryProposal) GetTitle() string
- func (m *UpdateRegistryProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateRegistryProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateRegistryProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *UpdateRegistryProposal) ProposalRoute() string
- func (p *UpdateRegistryProposal) ProposalType() string
- func (*UpdateRegistryProposal) ProtoMessage()
- func (m *UpdateRegistryProposal) Reset()
- func (m *UpdateRegistryProposal) Size() (n int)
- func (p UpdateRegistryProposal) String() string
- func (m *UpdateRegistryProposal) Unmarshal(dAtA []byte) error
- func (p *UpdateRegistryProposal) ValidateBasic() error
- func (m *UpdateRegistryProposal) XXX_DiscardUnknown()
- func (m *UpdateRegistryProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRegistryProposal) XXX_Merge(src proto.Message)
- func (m *UpdateRegistryProposal) XXX_Size() int
- func (m *UpdateRegistryProposal) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeLoanAsset = "loan_asset" EventTypeWithdrawLoanedAsset = "withdraw_loaned_asset" EventTypeSetCollateralSetting = "set_collateral_setting" EventTypeBorrowAsset = "borrow_asset" EventTypeRepayBorrowedAsset = "repay_borrowed_asset" EventTypeLiquidate = "liquidate_borrow_position" EventTypeRepayBadDebt = "repay_bad_debt" EventTypeReservesExhausted = "reserves_exhausted" EventTypeInterestAccrual = "interest_accrual" EventTypeFundOracle = "fund_oracle" EventAttrModule = ModuleName EventAttrLender = "lender" EventAttrBorrower = "borrower" EventAttrLiquidator = "liquidator" EventAttrDenom = "denom" EventAttrEnable = "enabled" EventAttrAttempted = "attempted" EventAttrReward = "reward" EventAttrInterest = "total_interest" EventAttrBlockHeight = "block_height" EventAttrUnixTime = "unix_time" EventAttrReserved = "reserved" )
Event types and attributes for the leverage module
const ( // ModuleName defines the module name ModuleName = "leverage" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( // ProposalTypeUpdateRegistryProposal defines the type for a UpdateRegistryProposal // proposal type. ProposalTypeUpdateRegistryProposal = "UpdateRegistryProposal" )
const SecondsPerYear = 31536000
const (
// UTokenPrefix defines the uToken denomination prefix for all uToken types.
UTokenPrefix = "u/"
)
Variables ¶
var ( ErrInvalidAsset = sdkerrors.Register(ModuleName, 1100, "invalid asset") ErrInsufficientBalance = sdkerrors.Register(ModuleName, 1101, "insufficient balance") ErrBorrowLimitLow = sdkerrors.Register(ModuleName, 1102, "borrow limit too low") ErrLendingPoolInsufficient = sdkerrors.Register(ModuleName, 1103, "lending pool insufficient") ErrInvalidRepayment = sdkerrors.Register(ModuleName, 1104, "invalid repayment") ErrInvalidAddress = sdkerrors.Register(ModuleName, 1105, "invalid address") ErrNegativeTotalBorrowed = sdkerrors.Register(ModuleName, 1106, "total borrowed was negative") ErrInvalidUtilization = sdkerrors.Register(ModuleName, 1107, "invalid token utilization") ErrLiquidationIneligible = sdkerrors.Register(ModuleName, 1108, "borrower not eligible for liquidation") ErrBadValue = sdkerrors.Register(ModuleName, 1109, "bad USD value") ErrLiquidatorBalanceZero = sdkerrors.Register(ModuleName, 1110, "liquidator base asset balance is zero") ErrNegativeTimeElapsed = sdkerrors.Register(ModuleName, 1111, "negative time elapsed since last interest time") ErrInvalidOraclePrice = sdkerrors.Register(ModuleName, 1112, "invalid oracle price") ErrNegativeAPY = sdkerrors.Register(ModuleName, 1113, "negative APY") ErrInvalidExchangeRate = sdkerrors.Register(ModuleName, 1114, "exchange rate less than one") ErrInconsistentTotalBorrow = sdkerrors.Register(ModuleName, 1115, "total adjusted borrow inconsistency") ErrInvalidInteresrScalar = sdkerrors.Register(ModuleName, 1116, "interest scalar less than one") ErrEmptyAddress = sdkerrors.Register(ModuleName, 1117, "empty address") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( KeyPrefixRegisteredToken = []byte{0x01} KeyPrefixAdjustedBorrow = []byte{0x02} KeyPrefixCollateralSetting = []byte{0x03} KeyPrefixCollateralAmount = []byte{0x04} KeyPrefixReserveAmount = []byte{0x05} KeyPrefixLastInterestTime = []byte{0x06} KeyPrefixBadDebt = []byte{0x07} KeyPrefixInterestScalar = []byte{0x08} KeyPrefixAdjustedTotalBorrow = []byte{0x09} )
KVStore key prefixes
var ( ErrInvalidLengthLeverage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLeverage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLeverage = fmt.Errorf("proto: unexpected end of group") )
var ( KeyCompleteLiquidationThreshold = []byte("CompleteLiquidationThreshold") KeyMinimumCloseFactor = []byte("MinimumCloseFactor") KeyOracleRewardFactor = []byte("OracleRewardFactor") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/leverage module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding as // Amino is still used for that purpose. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func AddressFromKey ¶ added in v0.7.0
func AddressFromKey(key []byte, prefix []byte) sdk.AccAddress
AddressFromKey extracts address from a key with the form prefix | lengthPrefixed(addr) | ...
func CreateAdjustedBorrowKey ¶ added in v0.8.0
func CreateAdjustedBorrowKey(borrowerAddr sdk.AccAddress, tokenDenom string) []byte
CreateAdjustedBorrowKey returns a KVStore key for getting and setting an adjusted borrow for a denom and borrower address.
func CreateAdjustedBorrowKeyNoDenom ¶ added in v0.8.0
func CreateAdjustedBorrowKeyNoDenom(borrowerAddr sdk.AccAddress) []byte
CreateAdjustedBorrowKeyNoDenom returns the common prefix used by all borrows associated with a given borrower address.
func CreateAdjustedTotalBorrowKey ¶ added in v0.8.0
CreateAdjustedTotalBorrowKey returns a KVStore key for getting and setting the total ajdusted borrows for a given token.
func CreateBadDebtKey ¶ added in v0.7.0
func CreateBadDebtKey(denom string, borrowerAddr sdk.AccAddress) []byte
CreateBadDebtKey returns a KVStore key for tracking an address with unpaid bad debt
func CreateBadDebtKeyNoAddress ¶ added in v0.7.0
func CreateBadDebtKeyNoAddress() []byte
CreateBadDebtKeyNoAddress returns a safe copy of bad debt prefix
func CreateCollateralAmountKey ¶ added in v0.7.0
func CreateCollateralAmountKey(lenderAddr sdk.AccAddress, uTokenDenom string) []byte
CreateCollateralAmountKey returns a KVStore key for getting and setting the amount of collateral stored for a lender in a given denom.
func CreateCollateralAmountKeyNoAddress ¶ added in v0.7.0
func CreateCollateralAmountKeyNoAddress() []byte
CreateCollateralAmountKeyNoAddress returns a safe copy of collateralPrefix
func CreateCollateralAmountKeyNoDenom ¶ added in v0.7.0
func CreateCollateralAmountKeyNoDenom(lenderAddr sdk.AccAddress) []byte
CreateCollateralAmountKeyNoDenom returns the common prefix used by all collateral associated with a given lender address.
func CreateCollateralSettingKey ¶
func CreateCollateralSettingKey(borrowerAddr sdk.AccAddress, uTokenDenom string) []byte
CreateCollateralSettingKey returns a KVStore key for getting and setting a borrower's collateral setting for a single uToken
func CreateInterestScalarKey ¶ added in v0.8.0
CreateInterestScalarKey returns a KVStore key for getting and setting the interest scalar for a given token.
func CreateLastInterestTimeKey ¶ added in v0.7.0
func CreateLastInterestTimeKey() []byte
CreateLastInterestTimeKey returns a KVStore key for getting and setting the amount reserved of a a given token.
func CreateRegisteredTokenKey ¶
CreateRegisteredTokenKey returns a KVStore key for getting and setting a Token.
func CreateReserveAmountKey ¶ added in v0.7.0
CreateReserveAmountKey returns a KVStore key for getting and setting the amount reserved of a a given token.
func CreateReserveAmountKeyNoDenom ¶ added in v0.7.0
func CreateReserveAmountKeyNoDenom() []byte
CreateReserveAmountKeyNoDenom returns a safe copy of reserveAmountPrefix
func DenomFromKey ¶ added in v0.7.0
DenomFromKey extracts denom from a key with the form prefix | denom | 0x00
func DenomFromKeyWithAddress ¶ added in v0.7.0
DenomFromKeyWithAddress extracts denom from a key with the form prefix | lengthPrefixed(addr) | denom | 0x00
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the x/leverage module's parameter KeyTable expected by the x/params module.
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/leverage interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶ added in v0.7.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.7.0
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.7.0
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.7.0
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func UTokenFromTokenDenom ¶
UTokenFromTokenDenom returns the uToken denom given a token denom.
Types ¶
type AccountKeeper ¶ added in v0.7.0
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}
AccountKeeper defines the expected account keeper used for leverage simulations (noalias)
type AdjustedBorrow ¶ added in v0.8.0
type AdjustedBorrow struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount types.DecCoin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
AdjustedBorrow is a borrow struct used in the leverage module's genesis state.
func NewAdjustedBorrow ¶ added in v0.8.0
func NewAdjustedBorrow(addr string, amount sdk.DecCoin) AdjustedBorrow
NewAdjustedBorrow creates the Borrow struct used in GenesisState
func (*AdjustedBorrow) Descriptor ¶ added in v0.8.0
func (*AdjustedBorrow) Descriptor() ([]byte, []int)
func (*AdjustedBorrow) GetAddress ¶ added in v0.8.0
func (m *AdjustedBorrow) GetAddress() string
func (*AdjustedBorrow) GetAmount ¶ added in v0.8.0
func (m *AdjustedBorrow) GetAmount() types.DecCoin
func (*AdjustedBorrow) Marshal ¶ added in v0.8.0
func (m *AdjustedBorrow) Marshal() (dAtA []byte, err error)
func (*AdjustedBorrow) MarshalTo ¶ added in v0.8.0
func (m *AdjustedBorrow) MarshalTo(dAtA []byte) (int, error)
func (*AdjustedBorrow) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *AdjustedBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AdjustedBorrow) ProtoMessage ¶ added in v0.8.0
func (*AdjustedBorrow) ProtoMessage()
func (*AdjustedBorrow) Reset ¶ added in v0.8.0
func (m *AdjustedBorrow) Reset()
func (*AdjustedBorrow) Size ¶ added in v0.8.0
func (m *AdjustedBorrow) Size() (n int)
func (*AdjustedBorrow) String ¶ added in v0.8.0
func (m *AdjustedBorrow) String() string
func (*AdjustedBorrow) Unmarshal ¶ added in v0.8.0
func (m *AdjustedBorrow) Unmarshal(dAtA []byte) error
func (*AdjustedBorrow) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *AdjustedBorrow) XXX_DiscardUnknown()
func (*AdjustedBorrow) XXX_Marshal ¶ added in v0.8.0
func (m *AdjustedBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AdjustedBorrow) XXX_Merge ¶ added in v0.8.0
func (m *AdjustedBorrow) XXX_Merge(src proto.Message)
func (*AdjustedBorrow) XXX_Size ¶ added in v0.8.0
func (m *AdjustedBorrow) XXX_Size() int
func (*AdjustedBorrow) XXX_Unmarshal ¶ added in v0.8.0
func (m *AdjustedBorrow) XXX_Unmarshal(b []byte) error
type BadDebt ¶ added in v0.7.0
type BadDebt struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
BadDebt is a bad debt instance used in the leverage module's genesis state.
func NewBadDebt ¶ added in v0.7.0
NewBadDebt creates the BadDebt struct used in GenesisState
func (*BadDebt) Descriptor ¶ added in v0.7.0
func (*BadDebt) GetAddress ¶ added in v0.7.0
func (*BadDebt) MarshalToSizedBuffer ¶ added in v0.7.0
func (*BadDebt) ProtoMessage ¶ added in v0.7.0
func (*BadDebt) ProtoMessage()
func (*BadDebt) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *BadDebt) XXX_DiscardUnknown()
func (*BadDebt) XXX_Marshal ¶ added in v0.7.0
func (*BadDebt) XXX_Unmarshal ¶ added in v0.7.0
type BankKeeper ¶
type BankKeeper interface { GetSupply(ctx sdk.Context, denom string) sdk.Coin MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error SendCoinsFromModuleToAccount( ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, ) error SendCoinsFromAccountToModule( ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins, ) error SendCoinsFromModuleToModule( ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins, ) error SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper defines the expected x/bank keeper interface.
type Collateral ¶ added in v0.7.0
type Collateral struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
Collateral is a collateral struct used in the leverage module's genesis state.
func NewCollateral ¶ added in v0.7.0
func NewCollateral(addr string, amount sdk.Coin) Collateral
NewCollateral creates the Collateral struct used in GenesisState
func (*Collateral) Descriptor ¶ added in v0.7.0
func (*Collateral) Descriptor() ([]byte, []int)
func (*Collateral) GetAddress ¶ added in v0.7.0
func (m *Collateral) GetAddress() string
func (*Collateral) GetAmount ¶ added in v0.7.0
func (m *Collateral) GetAmount() types.Coin
func (*Collateral) Marshal ¶ added in v0.7.0
func (m *Collateral) Marshal() (dAtA []byte, err error)
func (*Collateral) MarshalTo ¶ added in v0.7.0
func (m *Collateral) MarshalTo(dAtA []byte) (int, error)
func (*Collateral) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *Collateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Collateral) ProtoMessage ¶ added in v0.7.0
func (*Collateral) ProtoMessage()
func (*Collateral) Reset ¶ added in v0.7.0
func (m *Collateral) Reset()
func (*Collateral) Size ¶ added in v0.7.0
func (m *Collateral) Size() (n int)
func (*Collateral) String ¶ added in v0.7.0
func (m *Collateral) String() string
func (*Collateral) Unmarshal ¶ added in v0.7.0
func (m *Collateral) Unmarshal(dAtA []byte) error
func (*Collateral) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *Collateral) XXX_DiscardUnknown()
func (*Collateral) XXX_Marshal ¶ added in v0.7.0
func (m *Collateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Collateral) XXX_Merge ¶ added in v0.7.0
func (m *Collateral) XXX_Merge(src proto.Message)
func (*Collateral) XXX_Size ¶ added in v0.7.0
func (m *Collateral) XXX_Size() int
func (*Collateral) XXX_Unmarshal ¶ added in v0.7.0
func (m *Collateral) XXX_Unmarshal(b []byte) error
type CollateralSetting ¶ added in v0.7.0
type CollateralSetting struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
CollateralSetting is a collateral setting struct used in the leverage module's genesis state.
func NewCollateralSetting ¶ added in v0.7.0
func NewCollateralSetting(addr, denom string) CollateralSetting
NewCollateralSetting creates the CollateralSetting struct used in GenesisState
func (*CollateralSetting) Descriptor ¶ added in v0.7.0
func (*CollateralSetting) Descriptor() ([]byte, []int)
func (*CollateralSetting) GetAddress ¶ added in v0.7.0
func (m *CollateralSetting) GetAddress() string
func (*CollateralSetting) GetDenom ¶ added in v0.7.0
func (m *CollateralSetting) GetDenom() string
func (*CollateralSetting) Marshal ¶ added in v0.7.0
func (m *CollateralSetting) Marshal() (dAtA []byte, err error)
func (*CollateralSetting) MarshalTo ¶ added in v0.7.0
func (m *CollateralSetting) MarshalTo(dAtA []byte) (int, error)
func (*CollateralSetting) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *CollateralSetting) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CollateralSetting) ProtoMessage ¶ added in v0.7.0
func (*CollateralSetting) ProtoMessage()
func (*CollateralSetting) Reset ¶ added in v0.7.0
func (m *CollateralSetting) Reset()
func (*CollateralSetting) Size ¶ added in v0.7.0
func (m *CollateralSetting) Size() (n int)
func (*CollateralSetting) String ¶ added in v0.7.0
func (m *CollateralSetting) String() string
func (*CollateralSetting) Unmarshal ¶ added in v0.7.0
func (m *CollateralSetting) Unmarshal(dAtA []byte) error
func (*CollateralSetting) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *CollateralSetting) XXX_DiscardUnknown()
func (*CollateralSetting) XXX_Marshal ¶ added in v0.7.0
func (m *CollateralSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollateralSetting) XXX_Merge ¶ added in v0.7.0
func (m *CollateralSetting) XXX_Merge(src proto.Message)
func (*CollateralSetting) XXX_Size ¶ added in v0.7.0
func (m *CollateralSetting) XXX_Size() int
func (*CollateralSetting) XXX_Unmarshal ¶ added in v0.7.0
func (m *CollateralSetting) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Registry []Token `protobuf:"bytes,2,rep,name=registry,proto3" json:"registry"` AdjustedBorrows []AdjustedBorrow `protobuf:"bytes,3,rep,name=adjusted_borrows,json=adjustedBorrows,proto3" json:"adjusted_borrows"` CollateralSettings []CollateralSetting `protobuf:"bytes,4,rep,name=collateral_settings,json=collateralSettings,proto3" json:"collateral_settings"` Collateral []Collateral `protobuf:"bytes,5,rep,name=collateral,proto3" json:"collateral"` Reserves github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=reserves,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reserves"` LastInterestTime int64 `protobuf:"varint,7,opt,name=last_interest_time,json=lastInterestTime,proto3" json:"last_interest_time,omitempty"` BadDebts []BadDebt `protobuf:"bytes,8,rep,name=bad_debts,json=badDebts,proto3" json:"bad_debts"` InterestScalars []InterestScalar `protobuf:"bytes,9,rep,name=interest_scalars,json=interestScalars,proto3" json:"interest_scalars"` }
GenesisState defines the x/leverage module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state of the x/leverage module.
func GetGenesisStateFromAppState ¶ added in v0.7.0
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/leverage GenesisState given raw application genesis state.
func NewGenesisState ¶ added in v0.7.0
func NewGenesisState( params Params, tokens []Token, adjustedBorrows []AdjustedBorrow, collateralSettings []CollateralSetting, collateral []Collateral, reserves sdk.Coins, lastInterestTime int64, badDebts []BadDebt, interestScalars []InterestScalar, ) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAdjustedBorrows ¶ added in v0.8.0
func (m *GenesisState) GetAdjustedBorrows() []AdjustedBorrow
func (*GenesisState) GetBadDebts ¶ added in v0.7.0
func (m *GenesisState) GetBadDebts() []BadDebt
func (*GenesisState) GetCollateral ¶ added in v0.7.0
func (m *GenesisState) GetCollateral() []Collateral
func (*GenesisState) GetCollateralSettings ¶ added in v0.7.0
func (m *GenesisState) GetCollateralSettings() []CollateralSetting
func (*GenesisState) GetInterestScalars ¶ added in v0.8.0
func (m *GenesisState) GetInterestScalars() []InterestScalar
func (*GenesisState) GetLastInterestTime ¶ added in v0.7.0
func (m *GenesisState) GetLastInterestTime() int64
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRegistry ¶
func (m *GenesisState) GetRegistry() []Token
func (*GenesisState) GetReserves ¶ added in v0.7.0
func (m *GenesisState) GetReserves() github_com_cosmos_cosmos_sdk_types.Coins
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 genesis state validation returning an error upon any failure.
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 Hooks ¶ added in v0.7.0
type Hooks interface { // AfterTokenRegistered defines a hook another keeper can execute after the // x/leverage registers a token. AfterTokenRegistered(ctx sdk.Context, token Token) // AfterRegisteredTokenRemoved defines a hook another keeper can execute after // the x/leverage module removes a registered token. AfterRegisteredTokenRemoved(ctx sdk.Context, token Token) }
Hooks defines pre or post processing hooks for various actions the x/leverage module takes.
type InterestScalar ¶ added in v0.8.0
type InterestScalar struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Scalar github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=scalar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"scalar"` }
InterestScalar is an interest scalar used in the leverage module's genesis state.
func NewInterestScalar ¶ added in v0.8.0
func NewInterestScalar(denom string, scalar sdk.Dec) InterestScalar
NewInterestScalar creates the InterestScalar struct used in GenesisState
func (*InterestScalar) Descriptor ¶ added in v0.8.0
func (*InterestScalar) Descriptor() ([]byte, []int)
func (*InterestScalar) GetDenom ¶ added in v0.8.0
func (m *InterestScalar) GetDenom() string
func (*InterestScalar) Marshal ¶ added in v0.8.0
func (m *InterestScalar) Marshal() (dAtA []byte, err error)
func (*InterestScalar) MarshalTo ¶ added in v0.8.0
func (m *InterestScalar) MarshalTo(dAtA []byte) (int, error)
func (*InterestScalar) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *InterestScalar) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InterestScalar) ProtoMessage ¶ added in v0.8.0
func (*InterestScalar) ProtoMessage()
func (*InterestScalar) Reset ¶ added in v0.8.0
func (m *InterestScalar) Reset()
func (*InterestScalar) Size ¶ added in v0.8.0
func (m *InterestScalar) Size() (n int)
func (*InterestScalar) String ¶ added in v0.8.0
func (m *InterestScalar) String() string
func (*InterestScalar) Unmarshal ¶ added in v0.8.0
func (m *InterestScalar) Unmarshal(dAtA []byte) error
func (*InterestScalar) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *InterestScalar) XXX_DiscardUnknown()
func (*InterestScalar) XXX_Marshal ¶ added in v0.8.0
func (m *InterestScalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InterestScalar) XXX_Merge ¶ added in v0.8.0
func (m *InterestScalar) XXX_Merge(src proto.Message)
func (*InterestScalar) XXX_Size ¶ added in v0.8.0
func (m *InterestScalar) XXX_Size() int
func (*InterestScalar) XXX_Unmarshal ¶ added in v0.8.0
func (m *InterestScalar) XXX_Unmarshal(b []byte) error
type MsgBorrowAsset ¶
type MsgBorrowAsset struct { Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
MsgBorrowAsset represents a lender's request to borrow a base asset type from the module.
func NewMsgBorrowAsset ¶ added in v0.7.0
func NewMsgBorrowAsset(borrower sdk.AccAddress, amount sdk.Coin) *MsgBorrowAsset
func (*MsgBorrowAsset) Descriptor ¶
func (*MsgBorrowAsset) Descriptor() ([]byte, []int)
func (*MsgBorrowAsset) GetAmount ¶
func (m *MsgBorrowAsset) GetAmount() types.Coin
func (*MsgBorrowAsset) GetBorrower ¶
func (m *MsgBorrowAsset) GetBorrower() string
func (*MsgBorrowAsset) GetSignBytes ¶ added in v0.8.0
func (msg *MsgBorrowAsset) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgBorrowAsset) GetSigners ¶
func (msg *MsgBorrowAsset) GetSigners() []sdk.AccAddress
func (*MsgBorrowAsset) Marshal ¶
func (m *MsgBorrowAsset) Marshal() (dAtA []byte, err error)
func (*MsgBorrowAsset) MarshalToSizedBuffer ¶
func (m *MsgBorrowAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBorrowAsset) ProtoMessage ¶
func (*MsgBorrowAsset) ProtoMessage()
func (*MsgBorrowAsset) Reset ¶
func (m *MsgBorrowAsset) Reset()
func (MsgBorrowAsset) Route ¶ added in v0.8.0
func (msg MsgBorrowAsset) Route() string
func (*MsgBorrowAsset) Size ¶
func (m *MsgBorrowAsset) Size() (n int)
func (*MsgBorrowAsset) String ¶
func (m *MsgBorrowAsset) String() string
func (MsgBorrowAsset) Type ¶ added in v0.8.0
func (msg MsgBorrowAsset) Type() string
func (*MsgBorrowAsset) Unmarshal ¶
func (m *MsgBorrowAsset) Unmarshal(dAtA []byte) error
func (*MsgBorrowAsset) ValidateBasic ¶
func (msg *MsgBorrowAsset) ValidateBasic() error
func (*MsgBorrowAsset) XXX_DiscardUnknown ¶
func (m *MsgBorrowAsset) XXX_DiscardUnknown()
func (*MsgBorrowAsset) XXX_Marshal ¶
func (m *MsgBorrowAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBorrowAsset) XXX_Merge ¶
func (m *MsgBorrowAsset) XXX_Merge(src proto.Message)
func (*MsgBorrowAsset) XXX_Size ¶
func (m *MsgBorrowAsset) XXX_Size() int
func (*MsgBorrowAsset) XXX_Unmarshal ¶
func (m *MsgBorrowAsset) XXX_Unmarshal(b []byte) error
type MsgBorrowAssetResponse ¶
type MsgBorrowAssetResponse struct { }
MsgBorrowAssetResponse defines the Msg/BorrowAsset response type.
func (*MsgBorrowAssetResponse) Descriptor ¶
func (*MsgBorrowAssetResponse) Descriptor() ([]byte, []int)
func (*MsgBorrowAssetResponse) Marshal ¶
func (m *MsgBorrowAssetResponse) Marshal() (dAtA []byte, err error)
func (*MsgBorrowAssetResponse) MarshalTo ¶
func (m *MsgBorrowAssetResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBorrowAssetResponse) MarshalToSizedBuffer ¶
func (m *MsgBorrowAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBorrowAssetResponse) ProtoMessage ¶
func (*MsgBorrowAssetResponse) ProtoMessage()
func (*MsgBorrowAssetResponse) Reset ¶
func (m *MsgBorrowAssetResponse) Reset()
func (*MsgBorrowAssetResponse) Size ¶
func (m *MsgBorrowAssetResponse) Size() (n int)
func (*MsgBorrowAssetResponse) String ¶
func (m *MsgBorrowAssetResponse) String() string
func (*MsgBorrowAssetResponse) Unmarshal ¶
func (m *MsgBorrowAssetResponse) Unmarshal(dAtA []byte) error
func (*MsgBorrowAssetResponse) XXX_DiscardUnknown ¶
func (m *MsgBorrowAssetResponse) XXX_DiscardUnknown()
func (*MsgBorrowAssetResponse) XXX_Marshal ¶
func (m *MsgBorrowAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBorrowAssetResponse) XXX_Merge ¶
func (m *MsgBorrowAssetResponse) XXX_Merge(src proto.Message)
func (*MsgBorrowAssetResponse) XXX_Size ¶
func (m *MsgBorrowAssetResponse) XXX_Size() int
func (*MsgBorrowAssetResponse) XXX_Unmarshal ¶
func (m *MsgBorrowAssetResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // LendAsset defines a method for lending coins to the capital facility. LendAsset(ctx context.Context, in *MsgLendAsset, opts ...grpc.CallOption) (*MsgLendAssetResponse, error) // WithdrawAsset defines a method for withdrawing previously lent coins from // the capital facility. WithdrawAsset(ctx context.Context, in *MsgWithdrawAsset, opts ...grpc.CallOption) (*MsgWithdrawAssetResponse, error) // SetCollateral defines a method for users to enable or disable a uToken // denomination in their wallet for use as collateral. SetCollateral(ctx context.Context, in *MsgSetCollateral, opts ...grpc.CallOption) (*MsgSetCollateralResponse, error) // BorrowAsset defines a method for borrowing coins from the capital facility. BorrowAsset(ctx context.Context, in *MsgBorrowAsset, opts ...grpc.CallOption) (*MsgBorrowAssetResponse, error) // RepayAsset defines a method for repaying borrowed coins to the capital facility. RepayAsset(ctx context.Context, in *MsgRepayAsset, opts ...grpc.CallOption) (*MsgRepayAssetResponse, error) // Liquidate defines a method for repaying a different user's borrowed coins to // the capital facility in exchange for some of their collateral. 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 MsgLendAsset ¶
type MsgLendAsset struct { Lender string `protobuf:"bytes,1,opt,name=lender,proto3" json:"lender,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
MsgLendAsset represents a lender's request to lend a base asset type to the module
func NewMsgLendAsset ¶ added in v0.7.0
func NewMsgLendAsset(lender sdk.AccAddress, amount sdk.Coin) *MsgLendAsset
func (*MsgLendAsset) Descriptor ¶
func (*MsgLendAsset) Descriptor() ([]byte, []int)
func (*MsgLendAsset) GetAmount ¶
func (m *MsgLendAsset) GetAmount() types.Coin
func (*MsgLendAsset) GetLender ¶
func (m *MsgLendAsset) GetLender() string
func (*MsgLendAsset) GetSignBytes ¶ added in v0.8.0
func (msg *MsgLendAsset) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgLendAsset) GetSigners ¶
func (msg *MsgLendAsset) GetSigners() []sdk.AccAddress
func (*MsgLendAsset) Marshal ¶
func (m *MsgLendAsset) Marshal() (dAtA []byte, err error)
func (*MsgLendAsset) MarshalToSizedBuffer ¶
func (m *MsgLendAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLendAsset) ProtoMessage ¶
func (*MsgLendAsset) ProtoMessage()
func (*MsgLendAsset) Reset ¶
func (m *MsgLendAsset) Reset()
func (MsgLendAsset) Route ¶ added in v0.8.0
func (msg MsgLendAsset) Route() string
func (*MsgLendAsset) Size ¶
func (m *MsgLendAsset) Size() (n int)
func (*MsgLendAsset) String ¶
func (m *MsgLendAsset) String() string
func (MsgLendAsset) Type ¶ added in v0.8.0
func (msg MsgLendAsset) Type() string
func (*MsgLendAsset) Unmarshal ¶
func (m *MsgLendAsset) Unmarshal(dAtA []byte) error
func (*MsgLendAsset) ValidateBasic ¶
func (msg *MsgLendAsset) ValidateBasic() error
func (*MsgLendAsset) XXX_DiscardUnknown ¶
func (m *MsgLendAsset) XXX_DiscardUnknown()
func (*MsgLendAsset) XXX_Marshal ¶
func (m *MsgLendAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLendAsset) XXX_Merge ¶
func (m *MsgLendAsset) XXX_Merge(src proto.Message)
func (*MsgLendAsset) XXX_Size ¶
func (m *MsgLendAsset) XXX_Size() int
func (*MsgLendAsset) XXX_Unmarshal ¶
func (m *MsgLendAsset) XXX_Unmarshal(b []byte) error
type MsgLendAssetResponse ¶
type MsgLendAssetResponse struct { }
MsgLendAssetResponse defines the Msg/LendAsset response type.
func (*MsgLendAssetResponse) Descriptor ¶
func (*MsgLendAssetResponse) Descriptor() ([]byte, []int)
func (*MsgLendAssetResponse) Marshal ¶
func (m *MsgLendAssetResponse) Marshal() (dAtA []byte, err error)
func (*MsgLendAssetResponse) MarshalTo ¶
func (m *MsgLendAssetResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgLendAssetResponse) MarshalToSizedBuffer ¶
func (m *MsgLendAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLendAssetResponse) ProtoMessage ¶
func (*MsgLendAssetResponse) ProtoMessage()
func (*MsgLendAssetResponse) Reset ¶
func (m *MsgLendAssetResponse) Reset()
func (*MsgLendAssetResponse) Size ¶
func (m *MsgLendAssetResponse) Size() (n int)
func (*MsgLendAssetResponse) String ¶
func (m *MsgLendAssetResponse) String() string
func (*MsgLendAssetResponse) Unmarshal ¶
func (m *MsgLendAssetResponse) Unmarshal(dAtA []byte) error
func (*MsgLendAssetResponse) XXX_DiscardUnknown ¶
func (m *MsgLendAssetResponse) XXX_DiscardUnknown()
func (*MsgLendAssetResponse) XXX_Marshal ¶
func (m *MsgLendAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLendAssetResponse) XXX_Merge ¶
func (m *MsgLendAssetResponse) XXX_Merge(src proto.Message)
func (*MsgLendAssetResponse) XXX_Size ¶
func (m *MsgLendAssetResponse) XXX_Size() int
func (*MsgLendAssetResponse) XXX_Unmarshal ¶
func (m *MsgLendAssetResponse) XXX_Unmarshal(b []byte) error
type MsgLiquidate ¶ added in v0.7.0
type MsgLiquidate struct { Liquidator string `protobuf:"bytes,1,opt,name=liquidator,proto3" json:"liquidator,omitempty"` Borrower string `protobuf:"bytes,2,opt,name=borrower,proto3" json:"borrower,omitempty"` Repayment types.Coin `protobuf:"bytes,3,opt,name=repayment,proto3" json:"repayment"` RewardDenom string `protobuf:"bytes,4,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom,omitempty" yaml:"reward_denom"` }
MsgLiquidate represents a liquidator's request to repay a specific borrower's borrowed base asset type to the module in exchange for collateral reward.
func NewMsgLiquidate ¶ added in v0.7.0
func NewMsgLiquidate(liquidator, borrower sdk.AccAddress, repayment sdk.Coin, rewardDenom string) *MsgLiquidate
func (*MsgLiquidate) Descriptor ¶ added in v0.7.0
func (*MsgLiquidate) Descriptor() ([]byte, []int)
func (*MsgLiquidate) GetBorrower ¶ added in v0.7.0
func (m *MsgLiquidate) GetBorrower() string
func (*MsgLiquidate) GetLiquidator ¶ added in v0.7.0
func (m *MsgLiquidate) GetLiquidator() string
func (*MsgLiquidate) GetRepayment ¶ added in v0.7.0
func (m *MsgLiquidate) GetRepayment() types.Coin
func (*MsgLiquidate) GetRewardDenom ¶ added in v0.7.0
func (m *MsgLiquidate) GetRewardDenom() string
func (*MsgLiquidate) GetSignBytes ¶ added in v0.8.0
func (msg *MsgLiquidate) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgLiquidate) GetSigners ¶ added in v0.7.0
func (msg *MsgLiquidate) GetSigners() []sdk.AccAddress
func (*MsgLiquidate) Marshal ¶ added in v0.7.0
func (m *MsgLiquidate) Marshal() (dAtA []byte, err error)
func (*MsgLiquidate) MarshalTo ¶ added in v0.7.0
func (m *MsgLiquidate) MarshalTo(dAtA []byte) (int, error)
func (*MsgLiquidate) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *MsgLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLiquidate) ProtoMessage ¶ added in v0.7.0
func (*MsgLiquidate) ProtoMessage()
func (*MsgLiquidate) Reset ¶ added in v0.7.0
func (m *MsgLiquidate) Reset()
func (MsgLiquidate) Route ¶ added in v0.8.0
func (msg MsgLiquidate) Route() string
func (*MsgLiquidate) Size ¶ added in v0.7.0
func (m *MsgLiquidate) Size() (n int)
func (*MsgLiquidate) String ¶ added in v0.7.0
func (m *MsgLiquidate) String() string
func (MsgLiquidate) Type ¶ added in v0.8.0
func (msg MsgLiquidate) Type() string
func (*MsgLiquidate) Unmarshal ¶ added in v0.7.0
func (m *MsgLiquidate) Unmarshal(dAtA []byte) error
func (*MsgLiquidate) ValidateBasic ¶ added in v0.7.0
func (msg *MsgLiquidate) ValidateBasic() error
func (*MsgLiquidate) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *MsgLiquidate) XXX_DiscardUnknown()
func (*MsgLiquidate) XXX_Marshal ¶ added in v0.7.0
func (m *MsgLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLiquidate) XXX_Merge ¶ added in v0.7.0
func (m *MsgLiquidate) XXX_Merge(src proto.Message)
func (*MsgLiquidate) XXX_Size ¶ added in v0.7.0
func (m *MsgLiquidate) XXX_Size() int
func (*MsgLiquidate) XXX_Unmarshal ¶ added in v0.7.0
func (m *MsgLiquidate) XXX_Unmarshal(b []byte) error
type MsgLiquidateResponse ¶ added in v0.7.0
type MsgLiquidateResponse struct { Repaid types.Coin `protobuf:"bytes,1,opt,name=repaid,proto3" json:"repaid"` Reward types.Coin `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward"` }
MsgLiquidateResponse defines the Msg/Liquidate response type.
func (*MsgLiquidateResponse) Descriptor ¶ added in v0.7.0
func (*MsgLiquidateResponse) Descriptor() ([]byte, []int)
func (*MsgLiquidateResponse) GetRepaid ¶ added in v0.7.0
func (m *MsgLiquidateResponse) GetRepaid() types.Coin
func (*MsgLiquidateResponse) GetReward ¶ added in v0.7.0
func (m *MsgLiquidateResponse) GetReward() types.Coin
func (*MsgLiquidateResponse) Marshal ¶ added in v0.7.0
func (m *MsgLiquidateResponse) Marshal() (dAtA []byte, err error)
func (*MsgLiquidateResponse) MarshalTo ¶ added in v0.7.0
func (m *MsgLiquidateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgLiquidateResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *MsgLiquidateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLiquidateResponse) ProtoMessage ¶ added in v0.7.0
func (*MsgLiquidateResponse) ProtoMessage()
func (*MsgLiquidateResponse) Reset ¶ added in v0.7.0
func (m *MsgLiquidateResponse) Reset()
func (*MsgLiquidateResponse) Size ¶ added in v0.7.0
func (m *MsgLiquidateResponse) Size() (n int)
func (*MsgLiquidateResponse) String ¶ added in v0.7.0
func (m *MsgLiquidateResponse) String() string
func (*MsgLiquidateResponse) Unmarshal ¶ added in v0.7.0
func (m *MsgLiquidateResponse) Unmarshal(dAtA []byte) error
func (*MsgLiquidateResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *MsgLiquidateResponse) XXX_DiscardUnknown()
func (*MsgLiquidateResponse) XXX_Marshal ¶ added in v0.7.0
func (m *MsgLiquidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLiquidateResponse) XXX_Merge ¶ added in v0.7.0
func (m *MsgLiquidateResponse) XXX_Merge(src proto.Message)
func (*MsgLiquidateResponse) XXX_Size ¶ added in v0.7.0
func (m *MsgLiquidateResponse) XXX_Size() int
func (*MsgLiquidateResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *MsgLiquidateResponse) XXX_Unmarshal(b []byte) error
type MsgRepayAsset ¶
type MsgRepayAsset struct { Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
MsgRepayAsset represents a lender's request to repay a borrowed base asset type to the module.
func NewMsgRepayAsset ¶ added in v0.7.0
func NewMsgRepayAsset(borrower sdk.AccAddress, amount sdk.Coin) *MsgRepayAsset
func (*MsgRepayAsset) Descriptor ¶
func (*MsgRepayAsset) Descriptor() ([]byte, []int)
func (*MsgRepayAsset) GetAmount ¶
func (m *MsgRepayAsset) GetAmount() types.Coin
func (*MsgRepayAsset) GetBorrower ¶
func (m *MsgRepayAsset) GetBorrower() string
func (*MsgRepayAsset) GetSignBytes ¶ added in v0.8.0
func (msg *MsgRepayAsset) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgRepayAsset) GetSigners ¶
func (msg *MsgRepayAsset) GetSigners() []sdk.AccAddress
func (*MsgRepayAsset) Marshal ¶
func (m *MsgRepayAsset) Marshal() (dAtA []byte, err error)
func (*MsgRepayAsset) MarshalToSizedBuffer ¶
func (m *MsgRepayAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRepayAsset) ProtoMessage ¶
func (*MsgRepayAsset) ProtoMessage()
func (*MsgRepayAsset) Reset ¶
func (m *MsgRepayAsset) Reset()
func (MsgRepayAsset) Route ¶ added in v0.8.0
func (msg MsgRepayAsset) Route() string
func (*MsgRepayAsset) Size ¶
func (m *MsgRepayAsset) Size() (n int)
func (*MsgRepayAsset) String ¶
func (m *MsgRepayAsset) String() string
func (MsgRepayAsset) Type ¶ added in v0.8.0
func (msg MsgRepayAsset) Type() string
func (*MsgRepayAsset) Unmarshal ¶
func (m *MsgRepayAsset) Unmarshal(dAtA []byte) error
func (*MsgRepayAsset) ValidateBasic ¶
func (msg *MsgRepayAsset) ValidateBasic() error
func (*MsgRepayAsset) XXX_DiscardUnknown ¶
func (m *MsgRepayAsset) XXX_DiscardUnknown()
func (*MsgRepayAsset) XXX_Marshal ¶
func (m *MsgRepayAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRepayAsset) XXX_Merge ¶
func (m *MsgRepayAsset) XXX_Merge(src proto.Message)
func (*MsgRepayAsset) XXX_Size ¶
func (m *MsgRepayAsset) XXX_Size() int
func (*MsgRepayAsset) XXX_Unmarshal ¶
func (m *MsgRepayAsset) XXX_Unmarshal(b []byte) error
type MsgRepayAssetResponse ¶
type MsgRepayAssetResponse struct {
Repaid types.Coin `protobuf:"bytes,1,opt,name=repaid,proto3" json:"repaid"`
}
MsgRepayAssetResponse defines the Msg/RepayAsset response type.
func (*MsgRepayAssetResponse) Descriptor ¶
func (*MsgRepayAssetResponse) Descriptor() ([]byte, []int)
func (*MsgRepayAssetResponse) GetRepaid ¶ added in v0.7.0
func (m *MsgRepayAssetResponse) GetRepaid() types.Coin
func (*MsgRepayAssetResponse) Marshal ¶
func (m *MsgRepayAssetResponse) Marshal() (dAtA []byte, err error)
func (*MsgRepayAssetResponse) MarshalTo ¶
func (m *MsgRepayAssetResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRepayAssetResponse) MarshalToSizedBuffer ¶
func (m *MsgRepayAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRepayAssetResponse) ProtoMessage ¶
func (*MsgRepayAssetResponse) ProtoMessage()
func (*MsgRepayAssetResponse) Reset ¶
func (m *MsgRepayAssetResponse) Reset()
func (*MsgRepayAssetResponse) Size ¶
func (m *MsgRepayAssetResponse) Size() (n int)
func (*MsgRepayAssetResponse) String ¶
func (m *MsgRepayAssetResponse) String() string
func (*MsgRepayAssetResponse) Unmarshal ¶
func (m *MsgRepayAssetResponse) Unmarshal(dAtA []byte) error
func (*MsgRepayAssetResponse) XXX_DiscardUnknown ¶
func (m *MsgRepayAssetResponse) XXX_DiscardUnknown()
func (*MsgRepayAssetResponse) XXX_Marshal ¶
func (m *MsgRepayAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRepayAssetResponse) XXX_Merge ¶
func (m *MsgRepayAssetResponse) XXX_Merge(src proto.Message)
func (*MsgRepayAssetResponse) XXX_Size ¶
func (m *MsgRepayAssetResponse) XXX_Size() int
func (*MsgRepayAssetResponse) XXX_Unmarshal ¶
func (m *MsgRepayAssetResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // LendAsset defines a method for lending coins to the capital facility. LendAsset(context.Context, *MsgLendAsset) (*MsgLendAssetResponse, error) // WithdrawAsset defines a method for withdrawing previously lent coins from // the capital facility. WithdrawAsset(context.Context, *MsgWithdrawAsset) (*MsgWithdrawAssetResponse, error) // SetCollateral defines a method for users to enable or disable a uToken // denomination in their wallet for use as collateral. SetCollateral(context.Context, *MsgSetCollateral) (*MsgSetCollateralResponse, error) // BorrowAsset defines a method for borrowing coins from the capital facility. BorrowAsset(context.Context, *MsgBorrowAsset) (*MsgBorrowAssetResponse, error) // RepayAsset defines a method for repaying borrowed coins to the capital facility. RepayAsset(context.Context, *MsgRepayAsset) (*MsgRepayAssetResponse, error) // Liquidate defines a method for repaying a different user's borrowed coins to // the capital facility in exchange for some of their collateral. Liquidate(context.Context, *MsgLiquidate) (*MsgLiquidateResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetCollateral ¶
type MsgSetCollateral struct { Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` }
MsgSetCollateral represents a lender's request to enable or disable a uToken type in their possession as collateral.
func NewMsgSetCollateral ¶ added in v0.7.0
func NewMsgSetCollateral(borrower sdk.AccAddress, denom string, enable bool) *MsgSetCollateral
func (*MsgSetCollateral) Descriptor ¶
func (*MsgSetCollateral) Descriptor() ([]byte, []int)
func (*MsgSetCollateral) GetBorrower ¶
func (m *MsgSetCollateral) GetBorrower() string
func (*MsgSetCollateral) GetDenom ¶
func (m *MsgSetCollateral) GetDenom() string
func (*MsgSetCollateral) GetEnable ¶
func (m *MsgSetCollateral) GetEnable() bool
func (*MsgSetCollateral) GetSignBytes ¶ added in v0.8.0
func (msg *MsgSetCollateral) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgSetCollateral) GetSigners ¶
func (msg *MsgSetCollateral) GetSigners() []sdk.AccAddress
func (*MsgSetCollateral) Marshal ¶
func (m *MsgSetCollateral) Marshal() (dAtA []byte, err error)
func (*MsgSetCollateral) MarshalToSizedBuffer ¶
func (m *MsgSetCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetCollateral) ProtoMessage ¶
func (*MsgSetCollateral) ProtoMessage()
func (*MsgSetCollateral) Reset ¶
func (m *MsgSetCollateral) Reset()
func (MsgSetCollateral) Route ¶ added in v0.8.0
func (msg MsgSetCollateral) Route() string
func (*MsgSetCollateral) Size ¶
func (m *MsgSetCollateral) Size() (n int)
func (*MsgSetCollateral) String ¶
func (m *MsgSetCollateral) String() string
func (MsgSetCollateral) Type ¶ added in v0.8.0
func (msg MsgSetCollateral) Type() string
func (*MsgSetCollateral) Unmarshal ¶
func (m *MsgSetCollateral) Unmarshal(dAtA []byte) error
func (*MsgSetCollateral) ValidateBasic ¶
func (msg *MsgSetCollateral) ValidateBasic() error
func (*MsgSetCollateral) XXX_DiscardUnknown ¶
func (m *MsgSetCollateral) XXX_DiscardUnknown()
func (*MsgSetCollateral) XXX_Marshal ¶
func (m *MsgSetCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetCollateral) XXX_Merge ¶
func (m *MsgSetCollateral) XXX_Merge(src proto.Message)
func (*MsgSetCollateral) XXX_Size ¶
func (m *MsgSetCollateral) XXX_Size() int
func (*MsgSetCollateral) XXX_Unmarshal ¶
func (m *MsgSetCollateral) XXX_Unmarshal(b []byte) error
type MsgSetCollateralResponse ¶
type MsgSetCollateralResponse struct { }
MsgSetCollateralResponse defines the Msg/SetCollateral response type.
func (*MsgSetCollateralResponse) Descriptor ¶
func (*MsgSetCollateralResponse) Descriptor() ([]byte, []int)
func (*MsgSetCollateralResponse) Marshal ¶
func (m *MsgSetCollateralResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetCollateralResponse) MarshalTo ¶
func (m *MsgSetCollateralResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetCollateralResponse) MarshalToSizedBuffer ¶
func (m *MsgSetCollateralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetCollateralResponse) ProtoMessage ¶
func (*MsgSetCollateralResponse) ProtoMessage()
func (*MsgSetCollateralResponse) Reset ¶
func (m *MsgSetCollateralResponse) Reset()
func (*MsgSetCollateralResponse) Size ¶
func (m *MsgSetCollateralResponse) Size() (n int)
func (*MsgSetCollateralResponse) String ¶
func (m *MsgSetCollateralResponse) String() string
func (*MsgSetCollateralResponse) Unmarshal ¶
func (m *MsgSetCollateralResponse) Unmarshal(dAtA []byte) error
func (*MsgSetCollateralResponse) XXX_DiscardUnknown ¶
func (m *MsgSetCollateralResponse) XXX_DiscardUnknown()
func (*MsgSetCollateralResponse) XXX_Marshal ¶
func (m *MsgSetCollateralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetCollateralResponse) XXX_Merge ¶
func (m *MsgSetCollateralResponse) XXX_Merge(src proto.Message)
func (*MsgSetCollateralResponse) XXX_Size ¶
func (m *MsgSetCollateralResponse) XXX_Size() int
func (*MsgSetCollateralResponse) XXX_Unmarshal ¶
func (m *MsgSetCollateralResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawAsset ¶
type MsgWithdrawAsset struct { Lender string `protobuf:"bytes,1,opt,name=lender,proto3" json:"lender,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
MsgWithdrawAsset represents a lender's request to withdraw a previously lent base asset type from the module
func NewMsgWithdrawAsset ¶ added in v0.7.0
func NewMsgWithdrawAsset(lender sdk.AccAddress, amount sdk.Coin) *MsgWithdrawAsset
func (*MsgWithdrawAsset) Descriptor ¶
func (*MsgWithdrawAsset) Descriptor() ([]byte, []int)
func (*MsgWithdrawAsset) GetAmount ¶
func (m *MsgWithdrawAsset) GetAmount() types.Coin
func (*MsgWithdrawAsset) GetLender ¶
func (m *MsgWithdrawAsset) GetLender() string
func (*MsgWithdrawAsset) GetSignBytes ¶ added in v0.8.0
func (msg *MsgWithdrawAsset) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgWithdrawAsset) GetSigners ¶
func (msg *MsgWithdrawAsset) GetSigners() []sdk.AccAddress
func (*MsgWithdrawAsset) Marshal ¶
func (m *MsgWithdrawAsset) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAsset) MarshalToSizedBuffer ¶
func (m *MsgWithdrawAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAsset) ProtoMessage ¶
func (*MsgWithdrawAsset) ProtoMessage()
func (*MsgWithdrawAsset) Reset ¶
func (m *MsgWithdrawAsset) Reset()
func (MsgWithdrawAsset) Route ¶ added in v0.8.0
func (msg MsgWithdrawAsset) Route() string
func (*MsgWithdrawAsset) Size ¶
func (m *MsgWithdrawAsset) Size() (n int)
func (*MsgWithdrawAsset) String ¶
func (m *MsgWithdrawAsset) String() string
func (MsgWithdrawAsset) Type ¶ added in v0.8.0
func (msg MsgWithdrawAsset) Type() string
func (*MsgWithdrawAsset) Unmarshal ¶
func (m *MsgWithdrawAsset) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAsset) ValidateBasic ¶
func (msg *MsgWithdrawAsset) ValidateBasic() error
func (*MsgWithdrawAsset) XXX_DiscardUnknown ¶
func (m *MsgWithdrawAsset) XXX_DiscardUnknown()
func (*MsgWithdrawAsset) XXX_Marshal ¶
func (m *MsgWithdrawAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAsset) XXX_Merge ¶
func (m *MsgWithdrawAsset) XXX_Merge(src proto.Message)
func (*MsgWithdrawAsset) XXX_Size ¶
func (m *MsgWithdrawAsset) XXX_Size() int
func (*MsgWithdrawAsset) XXX_Unmarshal ¶
func (m *MsgWithdrawAsset) XXX_Unmarshal(b []byte) error
type MsgWithdrawAssetResponse ¶
type MsgWithdrawAssetResponse struct { }
MsgWithdrawAssetResponse defines the Msg/WithdrawAsset response type.
func (*MsgWithdrawAssetResponse) Descriptor ¶
func (*MsgWithdrawAssetResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawAssetResponse) Marshal ¶
func (m *MsgWithdrawAssetResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAssetResponse) MarshalTo ¶
func (m *MsgWithdrawAssetResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawAssetResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAssetResponse) ProtoMessage ¶
func (*MsgWithdrawAssetResponse) ProtoMessage()
func (*MsgWithdrawAssetResponse) Reset ¶
func (m *MsgWithdrawAssetResponse) Reset()
func (*MsgWithdrawAssetResponse) Size ¶
func (m *MsgWithdrawAssetResponse) Size() (n int)
func (*MsgWithdrawAssetResponse) String ¶
func (m *MsgWithdrawAssetResponse) String() string
func (*MsgWithdrawAssetResponse) Unmarshal ¶
func (m *MsgWithdrawAssetResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAssetResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawAssetResponse) XXX_DiscardUnknown()
func (*MsgWithdrawAssetResponse) XXX_Marshal ¶
func (m *MsgWithdrawAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAssetResponse) XXX_Merge ¶
func (m *MsgWithdrawAssetResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawAssetResponse) XXX_Size ¶
func (m *MsgWithdrawAssetResponse) XXX_Size() int
func (*MsgWithdrawAssetResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawAssetResponse) XXX_Unmarshal(b []byte) error
type MultiHooks ¶ added in v0.7.0
type MultiHooks []Hooks
MultiHooks defines a type alias for multiple hooks, i.e. for multiple keepers to execute x/leverage hooks.
func NewMultiHooks ¶ added in v0.7.0
func NewMultiHooks(hooks ...Hooks) MultiHooks
func (MultiHooks) AfterRegisteredTokenRemoved ¶ added in v0.7.0
func (mh MultiHooks) AfterRegisteredTokenRemoved(ctx sdk.Context, token Token)
func (MultiHooks) AfterTokenRegistered ¶ added in v0.7.0
func (mh MultiHooks) AfterTokenRegistered(ctx sdk.Context, token Token)
type OracleKeeper ¶ added in v0.7.0
type OracleKeeper interface { GetExchangeRate(ctx sdk.Context, denom string) (sdk.Dec, error) GetExchangeRateBase(ctx sdk.Context, denom string) (sdk.Dec, error) }
OracleKeeper defines the expected x/oracle keeper interface.
type Params ¶
type Params struct { // The complete_liquidation_threshold determines how far over their borrow limit a borrower // must be in order for their positions to be liquidated fully in a single event. CompleteLiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 225-byte string literal not displayed */ // The minimum_close_factor determines the portion of a borrower's position that can be // liquidated in a single event, when the borrower is just barely over their borrow limit. MinimumCloseFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */ // The oracle_reward_factor determines the portion of interest accrued on borrows that is // sent to the oracle module to fund its reward pool. OracleRewardFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */ }
Params defines the parameters for the leverage module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of x/leverage module's parameters.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAvailableBorrowRequest ¶ added in v0.7.0
type QueryAvailableBorrowRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryAvailableBorrowRequest defines the request structure for the available amount for borrow gRPC service handler.
func (*QueryAvailableBorrowRequest) Descriptor ¶ added in v0.7.0
func (*QueryAvailableBorrowRequest) Descriptor() ([]byte, []int)
func (*QueryAvailableBorrowRequest) GetDenom ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) GetDenom() string
func (*QueryAvailableBorrowRequest) Marshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) Marshal() (dAtA []byte, err error)
func (*QueryAvailableBorrowRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAvailableBorrowRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAvailableBorrowRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryAvailableBorrowRequest) ProtoMessage()
func (*QueryAvailableBorrowRequest) Reset ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) Reset()
func (*QueryAvailableBorrowRequest) Size ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) Size() (n int)
func (*QueryAvailableBorrowRequest) String ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) String() string
func (*QueryAvailableBorrowRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) Unmarshal(dAtA []byte) error
func (*QueryAvailableBorrowRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) XXX_DiscardUnknown()
func (*QueryAvailableBorrowRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAvailableBorrowRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) XXX_Merge(src proto.Message)
func (*QueryAvailableBorrowRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) XXX_Size() int
func (*QueryAvailableBorrowRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowRequest) XXX_Unmarshal(b []byte) error
type QueryAvailableBorrowResponse ¶ added in v0.7.0
type QueryAvailableBorrowResponse struct {
Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}
QueryAvailableBorrowResponse defines the response structure for the available amount for borrow gRPC service handler.
func (*QueryAvailableBorrowResponse) Descriptor ¶ added in v0.7.0
func (*QueryAvailableBorrowResponse) Descriptor() ([]byte, []int)
func (*QueryAvailableBorrowResponse) Marshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) Marshal() (dAtA []byte, err error)
func (*QueryAvailableBorrowResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAvailableBorrowResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAvailableBorrowResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryAvailableBorrowResponse) ProtoMessage()
func (*QueryAvailableBorrowResponse) Reset ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) Reset()
func (*QueryAvailableBorrowResponse) Size ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) Size() (n int)
func (*QueryAvailableBorrowResponse) String ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) String() string
func (*QueryAvailableBorrowResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) Unmarshal(dAtA []byte) error
func (*QueryAvailableBorrowResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) XXX_DiscardUnknown()
func (*QueryAvailableBorrowResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAvailableBorrowResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) XXX_Merge(src proto.Message)
func (*QueryAvailableBorrowResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) XXX_Size() int
func (*QueryAvailableBorrowResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryAvailableBorrowResponse) XXX_Unmarshal(b []byte) error
type QueryBorrowAPYRequest ¶ added in v0.7.0
type QueryBorrowAPYRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryBorrowAPYRequest defines the request structure for the BorrowAPY gRPC service handler.
func (*QueryBorrowAPYRequest) Descriptor ¶ added in v0.7.0
func (*QueryBorrowAPYRequest) Descriptor() ([]byte, []int)
func (*QueryBorrowAPYRequest) GetDenom ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) GetDenom() string
func (*QueryBorrowAPYRequest) Marshal ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) Marshal() (dAtA []byte, err error)
func (*QueryBorrowAPYRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBorrowAPYRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBorrowAPYRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryBorrowAPYRequest) ProtoMessage()
func (*QueryBorrowAPYRequest) Reset ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) Reset()
func (*QueryBorrowAPYRequest) Size ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) Size() (n int)
func (*QueryBorrowAPYRequest) String ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) String() string
func (*QueryBorrowAPYRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) Unmarshal(dAtA []byte) error
func (*QueryBorrowAPYRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) XXX_DiscardUnknown()
func (*QueryBorrowAPYRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBorrowAPYRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) XXX_Merge(src proto.Message)
func (*QueryBorrowAPYRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) XXX_Size() int
func (*QueryBorrowAPYRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowAPYRequest) XXX_Unmarshal(b []byte) error
type QueryBorrowAPYResponse ¶ added in v0.7.0
type QueryBorrowAPYResponse struct {
APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=APY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"APY"`
}
QueryBorrowAPYResponse defines the response structure for the BorrowAPY gRPC service handler.
func (*QueryBorrowAPYResponse) Descriptor ¶ added in v0.7.0
func (*QueryBorrowAPYResponse) Descriptor() ([]byte, []int)
func (*QueryBorrowAPYResponse) Marshal ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) Marshal() (dAtA []byte, err error)
func (*QueryBorrowAPYResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBorrowAPYResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBorrowAPYResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryBorrowAPYResponse) ProtoMessage()
func (*QueryBorrowAPYResponse) Reset ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) Reset()
func (*QueryBorrowAPYResponse) Size ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) Size() (n int)
func (*QueryBorrowAPYResponse) String ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) String() string
func (*QueryBorrowAPYResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) Unmarshal(dAtA []byte) error
func (*QueryBorrowAPYResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) XXX_DiscardUnknown()
func (*QueryBorrowAPYResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBorrowAPYResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) XXX_Merge(src proto.Message)
func (*QueryBorrowAPYResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) XXX_Size() int
func (*QueryBorrowAPYResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowAPYResponse) XXX_Unmarshal(b []byte) error
type QueryBorrowLimitRequest ¶ added in v0.7.0
type QueryBorrowLimitRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
QueryBorrowLimitRequest defines the request structure for the BorrowLimit gRPC service handler.
func (*QueryBorrowLimitRequest) Descriptor ¶ added in v0.7.0
func (*QueryBorrowLimitRequest) Descriptor() ([]byte, []int)
func (*QueryBorrowLimitRequest) GetAddress ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) GetAddress() string
func (*QueryBorrowLimitRequest) Marshal ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) Marshal() (dAtA []byte, err error)
func (*QueryBorrowLimitRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBorrowLimitRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBorrowLimitRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryBorrowLimitRequest) ProtoMessage()
func (*QueryBorrowLimitRequest) Reset ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) Reset()
func (*QueryBorrowLimitRequest) Size ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) Size() (n int)
func (*QueryBorrowLimitRequest) String ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) String() string
func (*QueryBorrowLimitRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) Unmarshal(dAtA []byte) error
func (*QueryBorrowLimitRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) XXX_DiscardUnknown()
func (*QueryBorrowLimitRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBorrowLimitRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) XXX_Merge(src proto.Message)
func (*QueryBorrowLimitRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) XXX_Size() int
func (*QueryBorrowLimitRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowLimitRequest) XXX_Unmarshal(b []byte) error
type QueryBorrowLimitResponse ¶ added in v0.7.0
type QueryBorrowLimitResponse struct {
BorrowLimit github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */
}
QueryBorrowLimitResponse defines the response structure for the ExchangeRate gRPC service handler.
func (*QueryBorrowLimitResponse) Descriptor ¶ added in v0.7.0
func (*QueryBorrowLimitResponse) Descriptor() ([]byte, []int)
func (*QueryBorrowLimitResponse) Marshal ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) Marshal() (dAtA []byte, err error)
func (*QueryBorrowLimitResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBorrowLimitResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBorrowLimitResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryBorrowLimitResponse) ProtoMessage()
func (*QueryBorrowLimitResponse) Reset ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) Reset()
func (*QueryBorrowLimitResponse) Size ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) Size() (n int)
func (*QueryBorrowLimitResponse) String ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) String() string
func (*QueryBorrowLimitResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) Unmarshal(dAtA []byte) error
func (*QueryBorrowLimitResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) XXX_DiscardUnknown()
func (*QueryBorrowLimitResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBorrowLimitResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) XXX_Merge(src proto.Message)
func (*QueryBorrowLimitResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) XXX_Size() int
func (*QueryBorrowLimitResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowLimitResponse) XXX_Unmarshal(b []byte) error
type QueryBorrowedRequest ¶ added in v0.7.0
type QueryBorrowedRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryBorrowedRequest defines the request structure for the Borrowed gRPC service handler.
func (*QueryBorrowedRequest) Descriptor ¶ added in v0.7.0
func (*QueryBorrowedRequest) Descriptor() ([]byte, []int)
func (*QueryBorrowedRequest) GetAddress ¶ added in v0.7.0
func (m *QueryBorrowedRequest) GetAddress() string
func (*QueryBorrowedRequest) GetDenom ¶ added in v0.7.0
func (m *QueryBorrowedRequest) GetDenom() string
func (*QueryBorrowedRequest) Marshal ¶ added in v0.7.0
func (m *QueryBorrowedRequest) Marshal() (dAtA []byte, err error)
func (*QueryBorrowedRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryBorrowedRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBorrowedRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryBorrowedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBorrowedRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryBorrowedRequest) ProtoMessage()
func (*QueryBorrowedRequest) Reset ¶ added in v0.7.0
func (m *QueryBorrowedRequest) Reset()
func (*QueryBorrowedRequest) Size ¶ added in v0.7.0
func (m *QueryBorrowedRequest) Size() (n int)
func (*QueryBorrowedRequest) String ¶ added in v0.7.0
func (m *QueryBorrowedRequest) String() string
func (*QueryBorrowedRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowedRequest) Unmarshal(dAtA []byte) error
func (*QueryBorrowedRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryBorrowedRequest) XXX_DiscardUnknown()
func (*QueryBorrowedRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryBorrowedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBorrowedRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryBorrowedRequest) XXX_Merge(src proto.Message)
func (*QueryBorrowedRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryBorrowedRequest) XXX_Size() int
func (*QueryBorrowedRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowedRequest) XXX_Unmarshal(b []byte) error
type QueryBorrowedResponse ¶ added in v0.7.0
type QueryBorrowedResponse struct {
Borrowed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=borrowed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"borrowed"`
}
QueryBorrowedResponse defines the response structure for the Borrowed gRPC service handler.
func (*QueryBorrowedResponse) Descriptor ¶ added in v0.7.0
func (*QueryBorrowedResponse) Descriptor() ([]byte, []int)
func (*QueryBorrowedResponse) GetBorrowed ¶ added in v0.7.0
func (m *QueryBorrowedResponse) GetBorrowed() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryBorrowedResponse) Marshal ¶ added in v0.7.0
func (m *QueryBorrowedResponse) Marshal() (dAtA []byte, err error)
func (*QueryBorrowedResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryBorrowedResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBorrowedResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryBorrowedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBorrowedResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryBorrowedResponse) ProtoMessage()
func (*QueryBorrowedResponse) Reset ¶ added in v0.7.0
func (m *QueryBorrowedResponse) Reset()
func (*QueryBorrowedResponse) Size ¶ added in v0.7.0
func (m *QueryBorrowedResponse) Size() (n int)
func (*QueryBorrowedResponse) String ¶ added in v0.7.0
func (m *QueryBorrowedResponse) String() string
func (*QueryBorrowedResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowedResponse) Unmarshal(dAtA []byte) error
func (*QueryBorrowedResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryBorrowedResponse) XXX_DiscardUnknown()
func (*QueryBorrowedResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryBorrowedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBorrowedResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryBorrowedResponse) XXX_Merge(src proto.Message)
func (*QueryBorrowedResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryBorrowedResponse) XXX_Size() int
func (*QueryBorrowedResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryBorrowedResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // RegisteredTokens queries for all the registered tokens. RegisteredTokens(ctx context.Context, in *QueryRegisteredTokens, opts ...grpc.CallOption) (*QueryRegisteredTokensResponse, error) // Params queries the parameters of the x/leverage module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Borrowed queries for the borrowed amount of a user by token denomination. // If the denomination is not supplied, the total for each borrowed token is // returned. Borrowed(ctx context.Context, in *QueryBorrowedRequest, opts ...grpc.CallOption) (*QueryBorrowedResponse, error) // AvailableBorrow queries for the available amount to borrow of a specified denomination. AvailableBorrow(ctx context.Context, in *QueryAvailableBorrowRequest, opts ...grpc.CallOption) (*QueryAvailableBorrowResponse, error) // BorrowAPY queries for the borrow APY of a specified denomination. BorrowAPY(ctx context.Context, in *QueryBorrowAPYRequest, opts ...grpc.CallOption) (*QueryBorrowAPYResponse, error) // LendAPY queries for the lend APY of a specified denomination. LendAPY(ctx context.Context, in *QueryLendAPYRequest, opts ...grpc.CallOption) (*QueryLendAPYResponse, error) // MarketSize queries for the Market Size in USD of a specified denomination. MarketSize(ctx context.Context, in *QueryMarketSizeRequest, opts ...grpc.CallOption) (*QueryMarketSizeResponse, error) // ReserveAmount queries for the amount reserved of a specified denomination. // If the token is not valid, the reserved amount is zero. ReserveAmount(ctx context.Context, in *QueryReserveAmountRequest, opts ...grpc.CallOption) (*QueryReserveAmountResponse, error) // CollateralSetting queries a borrower's collateral setting of a specified // uToken denomination. CollateralSetting(ctx context.Context, in *QueryCollateralSettingRequest, opts ...grpc.CallOption) (*QueryCollateralSettingResponse, error) // Collateral queries the collateral amount of a user by token denomination. // If the denomination is not supplied, the total for each collateral token is // returned. Collateral(ctx context.Context, in *QueryCollateralRequest, opts ...grpc.CallOption) (*QueryCollateralResponse, error) // ExchangeRate queries the uToken exchange rate of a given uToken denomination. ExchangeRate(ctx context.Context, in *QueryExchangeRateRequest, opts ...grpc.CallOption) (*QueryExchangeRateResponse, error) // BorrowLimit queries the borrow limit in USD of a given borrower BorrowLimit(ctx context.Context, in *QueryBorrowLimitRequest, opts ...grpc.CallOption) (*QueryBorrowLimitResponse, error) // LiquidationTargets queries a list of all borrowers eligible for liquidation LiquidationTargets(ctx context.Context, in *QueryLiquidationTargetsRequest, opts ...grpc.CallOption) (*QueryLiquidationTargetsResponse, 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 QueryCollateralRequest ¶ added in v0.7.0
type QueryCollateralRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryCollateralRequest defines the request structure for the Collateral gRPC service handler.
func (*QueryCollateralRequest) Descriptor ¶ added in v0.7.0
func (*QueryCollateralRequest) Descriptor() ([]byte, []int)
func (*QueryCollateralRequest) GetAddress ¶ added in v0.7.0
func (m *QueryCollateralRequest) GetAddress() string
func (*QueryCollateralRequest) GetDenom ¶ added in v0.7.0
func (m *QueryCollateralRequest) GetDenom() string
func (*QueryCollateralRequest) Marshal ¶ added in v0.7.0
func (m *QueryCollateralRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollateralRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryCollateralRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryCollateralRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryCollateralRequest) ProtoMessage()
func (*QueryCollateralRequest) Reset ¶ added in v0.7.0
func (m *QueryCollateralRequest) Reset()
func (*QueryCollateralRequest) Size ¶ added in v0.7.0
func (m *QueryCollateralRequest) Size() (n int)
func (*QueryCollateralRequest) String ¶ added in v0.7.0
func (m *QueryCollateralRequest) String() string
func (*QueryCollateralRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralRequest) Unmarshal(dAtA []byte) error
func (*QueryCollateralRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryCollateralRequest) XXX_DiscardUnknown()
func (*QueryCollateralRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryCollateralRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryCollateralRequest) XXX_Merge(src proto.Message)
func (*QueryCollateralRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryCollateralRequest) XXX_Size() int
func (*QueryCollateralRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralRequest) XXX_Unmarshal(b []byte) error
type QueryCollateralResponse ¶ added in v0.7.0
type QueryCollateralResponse struct {
Collateral github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=collateral,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"collateral"`
}
QueryCollateralResponse defines the response structure for the Collateral gRPC service handler.
func (*QueryCollateralResponse) Descriptor ¶ added in v0.7.0
func (*QueryCollateralResponse) Descriptor() ([]byte, []int)
func (*QueryCollateralResponse) GetCollateral ¶ added in v0.7.0
func (m *QueryCollateralResponse) GetCollateral() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryCollateralResponse) Marshal ¶ added in v0.7.0
func (m *QueryCollateralResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollateralResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryCollateralResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryCollateralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryCollateralResponse) ProtoMessage()
func (*QueryCollateralResponse) Reset ¶ added in v0.7.0
func (m *QueryCollateralResponse) Reset()
func (*QueryCollateralResponse) Size ¶ added in v0.7.0
func (m *QueryCollateralResponse) Size() (n int)
func (*QueryCollateralResponse) String ¶ added in v0.7.0
func (m *QueryCollateralResponse) String() string
func (*QueryCollateralResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralResponse) Unmarshal(dAtA []byte) error
func (*QueryCollateralResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryCollateralResponse) XXX_DiscardUnknown()
func (*QueryCollateralResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryCollateralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryCollateralResponse) XXX_Merge(src proto.Message)
func (*QueryCollateralResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryCollateralResponse) XXX_Size() int
func (*QueryCollateralResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralResponse) XXX_Unmarshal(b []byte) error
type QueryCollateralSettingRequest ¶ added in v0.7.0
type QueryCollateralSettingRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryCollateralSettingsRequest defines the request structure for the CollateralSetting gRPC service handler.
func (*QueryCollateralSettingRequest) Descriptor ¶ added in v0.7.0
func (*QueryCollateralSettingRequest) Descriptor() ([]byte, []int)
func (*QueryCollateralSettingRequest) GetAddress ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) GetAddress() string
func (*QueryCollateralSettingRequest) GetDenom ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) GetDenom() string
func (*QueryCollateralSettingRequest) Marshal ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollateralSettingRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralSettingRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralSettingRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryCollateralSettingRequest) ProtoMessage()
func (*QueryCollateralSettingRequest) Reset ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) Reset()
func (*QueryCollateralSettingRequest) Size ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) Size() (n int)
func (*QueryCollateralSettingRequest) String ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) String() string
func (*QueryCollateralSettingRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) Unmarshal(dAtA []byte) error
func (*QueryCollateralSettingRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) XXX_DiscardUnknown()
func (*QueryCollateralSettingRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralSettingRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) XXX_Merge(src proto.Message)
func (*QueryCollateralSettingRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) XXX_Size() int
func (*QueryCollateralSettingRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralSettingRequest) XXX_Unmarshal(b []byte) error
type QueryCollateralSettingResponse ¶ added in v0.7.0
type QueryCollateralSettingResponse struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
}
QueryCollateralSettingsResponse defines the response structure for the CollateralSetting gRPC service handler.
func (*QueryCollateralSettingResponse) Descriptor ¶ added in v0.7.0
func (*QueryCollateralSettingResponse) Descriptor() ([]byte, []int)
func (*QueryCollateralSettingResponse) GetEnabled ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) GetEnabled() bool
func (*QueryCollateralSettingResponse) Marshal ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollateralSettingResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralSettingResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralSettingResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryCollateralSettingResponse) ProtoMessage()
func (*QueryCollateralSettingResponse) Reset ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) Reset()
func (*QueryCollateralSettingResponse) Size ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) Size() (n int)
func (*QueryCollateralSettingResponse) String ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) String() string
func (*QueryCollateralSettingResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) Unmarshal(dAtA []byte) error
func (*QueryCollateralSettingResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) XXX_DiscardUnknown()
func (*QueryCollateralSettingResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralSettingResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) XXX_Merge(src proto.Message)
func (*QueryCollateralSettingResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) XXX_Size() int
func (*QueryCollateralSettingResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryCollateralSettingResponse) XXX_Unmarshal(b []byte) error
type QueryExchangeRateRequest ¶ added in v0.7.0
type QueryExchangeRateRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryExchangeRateRequest defines the request structure for the ExchangeRate gRPC service handler.
func (*QueryExchangeRateRequest) Descriptor ¶ added in v0.7.0
func (*QueryExchangeRateRequest) Descriptor() ([]byte, []int)
func (*QueryExchangeRateRequest) GetDenom ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) GetDenom() string
func (*QueryExchangeRateRequest) Marshal ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) Marshal() (dAtA []byte, err error)
func (*QueryExchangeRateRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryExchangeRateRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryExchangeRateRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryExchangeRateRequest) ProtoMessage()
func (*QueryExchangeRateRequest) Reset ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) Reset()
func (*QueryExchangeRateRequest) Size ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) Size() (n int)
func (*QueryExchangeRateRequest) String ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) String() string
func (*QueryExchangeRateRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) Unmarshal(dAtA []byte) error
func (*QueryExchangeRateRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) XXX_DiscardUnknown()
func (*QueryExchangeRateRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryExchangeRateRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) XXX_Merge(src proto.Message)
func (*QueryExchangeRateRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) XXX_Size() int
func (*QueryExchangeRateRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryExchangeRateRequest) XXX_Unmarshal(b []byte) error
type QueryExchangeRateResponse ¶ added in v0.7.0
type QueryExchangeRateResponse struct {
ExchangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
}
QueryExchangeRateResponse defines the response structure for the ExchangeRate gRPC service handler.
func (*QueryExchangeRateResponse) Descriptor ¶ added in v0.7.0
func (*QueryExchangeRateResponse) Descriptor() ([]byte, []int)
func (*QueryExchangeRateResponse) Marshal ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) Marshal() (dAtA []byte, err error)
func (*QueryExchangeRateResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryExchangeRateResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryExchangeRateResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryExchangeRateResponse) ProtoMessage()
func (*QueryExchangeRateResponse) Reset ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) Reset()
func (*QueryExchangeRateResponse) Size ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) Size() (n int)
func (*QueryExchangeRateResponse) String ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) String() string
func (*QueryExchangeRateResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) Unmarshal(dAtA []byte) error
func (*QueryExchangeRateResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) XXX_DiscardUnknown()
func (*QueryExchangeRateResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryExchangeRateResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) XXX_Merge(src proto.Message)
func (*QueryExchangeRateResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) XXX_Size() int
func (*QueryExchangeRateResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryExchangeRateResponse) XXX_Unmarshal(b []byte) error
type QueryLendAPYRequest ¶ added in v0.7.0
type QueryLendAPYRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryLendAPYRequest defines the request structure for the LendAPY gRPC service handler.
func (*QueryLendAPYRequest) Descriptor ¶ added in v0.7.0
func (*QueryLendAPYRequest) Descriptor() ([]byte, []int)
func (*QueryLendAPYRequest) GetDenom ¶ added in v0.7.0
func (m *QueryLendAPYRequest) GetDenom() string
func (*QueryLendAPYRequest) Marshal ¶ added in v0.7.0
func (m *QueryLendAPYRequest) Marshal() (dAtA []byte, err error)
func (*QueryLendAPYRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryLendAPYRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLendAPYRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryLendAPYRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLendAPYRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryLendAPYRequest) ProtoMessage()
func (*QueryLendAPYRequest) Reset ¶ added in v0.7.0
func (m *QueryLendAPYRequest) Reset()
func (*QueryLendAPYRequest) Size ¶ added in v0.7.0
func (m *QueryLendAPYRequest) Size() (n int)
func (*QueryLendAPYRequest) String ¶ added in v0.7.0
func (m *QueryLendAPYRequest) String() string
func (*QueryLendAPYRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryLendAPYRequest) Unmarshal(dAtA []byte) error
func (*QueryLendAPYRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryLendAPYRequest) XXX_DiscardUnknown()
func (*QueryLendAPYRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryLendAPYRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLendAPYRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryLendAPYRequest) XXX_Merge(src proto.Message)
func (*QueryLendAPYRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryLendAPYRequest) XXX_Size() int
func (*QueryLendAPYRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryLendAPYRequest) XXX_Unmarshal(b []byte) error
type QueryLendAPYResponse ¶ added in v0.7.0
type QueryLendAPYResponse struct {
APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=APY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"APY"`
}
QueryLendAPYResponse defines the response structure for the LendAPY gRPC service handler.
func (*QueryLendAPYResponse) Descriptor ¶ added in v0.7.0
func (*QueryLendAPYResponse) Descriptor() ([]byte, []int)
func (*QueryLendAPYResponse) Marshal ¶ added in v0.7.0
func (m *QueryLendAPYResponse) Marshal() (dAtA []byte, err error)
func (*QueryLendAPYResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryLendAPYResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLendAPYResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryLendAPYResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLendAPYResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryLendAPYResponse) ProtoMessage()
func (*QueryLendAPYResponse) Reset ¶ added in v0.7.0
func (m *QueryLendAPYResponse) Reset()
func (*QueryLendAPYResponse) Size ¶ added in v0.7.0
func (m *QueryLendAPYResponse) Size() (n int)
func (*QueryLendAPYResponse) String ¶ added in v0.7.0
func (m *QueryLendAPYResponse) String() string
func (*QueryLendAPYResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryLendAPYResponse) Unmarshal(dAtA []byte) error
func (*QueryLendAPYResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryLendAPYResponse) XXX_DiscardUnknown()
func (*QueryLendAPYResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryLendAPYResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLendAPYResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryLendAPYResponse) XXX_Merge(src proto.Message)
func (*QueryLendAPYResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryLendAPYResponse) XXX_Size() int
func (*QueryLendAPYResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryLendAPYResponse) XXX_Unmarshal(b []byte) error
type QueryLiquidationTargetsRequest ¶ added in v0.7.0
type QueryLiquidationTargetsRequest struct { }
QueryLiquidationTargetsRequest defines the request structure for the BorrowLimit gRPC service handler.
func (*QueryLiquidationTargetsRequest) Descriptor ¶ added in v0.7.0
func (*QueryLiquidationTargetsRequest) Descriptor() ([]byte, []int)
func (*QueryLiquidationTargetsRequest) Marshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) Marshal() (dAtA []byte, err error)
func (*QueryLiquidationTargetsRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryLiquidationTargetsRequest) ProtoMessage()
func (*QueryLiquidationTargetsRequest) Reset ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) Reset()
func (*QueryLiquidationTargetsRequest) Size ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) Size() (n int)
func (*QueryLiquidationTargetsRequest) String ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) String() string
func (*QueryLiquidationTargetsRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) Unmarshal(dAtA []byte) error
func (*QueryLiquidationTargetsRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) XXX_DiscardUnknown()
func (*QueryLiquidationTargetsRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidationTargetsRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) XXX_Merge(src proto.Message)
func (*QueryLiquidationTargetsRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) XXX_Size() int
func (*QueryLiquidationTargetsRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsRequest) XXX_Unmarshal(b []byte) error
type QueryLiquidationTargetsResponse ¶ added in v0.7.0
type QueryLiquidationTargetsResponse struct {
Targets []string `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"`
}
QueryLiquidationTargetsResponse defines the response structure for the ExchangeRate gRPC service handler.
func (*QueryLiquidationTargetsResponse) Descriptor ¶ added in v0.7.0
func (*QueryLiquidationTargetsResponse) Descriptor() ([]byte, []int)
func (*QueryLiquidationTargetsResponse) GetTargets ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) GetTargets() []string
func (*QueryLiquidationTargetsResponse) Marshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) Marshal() (dAtA []byte, err error)
func (*QueryLiquidationTargetsResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryLiquidationTargetsResponse) ProtoMessage()
func (*QueryLiquidationTargetsResponse) Reset ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) Reset()
func (*QueryLiquidationTargetsResponse) Size ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) Size() (n int)
func (*QueryLiquidationTargetsResponse) String ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) String() string
func (*QueryLiquidationTargetsResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) Unmarshal(dAtA []byte) error
func (*QueryLiquidationTargetsResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) XXX_DiscardUnknown()
func (*QueryLiquidationTargetsResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidationTargetsResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) XXX_Merge(src proto.Message)
func (*QueryLiquidationTargetsResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) XXX_Size() int
func (*QueryLiquidationTargetsResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryLiquidationTargetsResponse) XXX_Unmarshal(b []byte) error
type QueryMarketSizeRequest ¶ added in v0.7.0
type QueryMarketSizeRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryMarketSizeRequest defines the request structure for the Market Size in USD gRPC service handler.
func (*QueryMarketSizeRequest) Descriptor ¶ added in v0.7.0
func (*QueryMarketSizeRequest) Descriptor() ([]byte, []int)
func (*QueryMarketSizeRequest) GetDenom ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) GetDenom() string
func (*QueryMarketSizeRequest) Marshal ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) Marshal() (dAtA []byte, err error)
func (*QueryMarketSizeRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketSizeRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketSizeRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryMarketSizeRequest) ProtoMessage()
func (*QueryMarketSizeRequest) Reset ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) Reset()
func (*QueryMarketSizeRequest) Size ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) Size() (n int)
func (*QueryMarketSizeRequest) String ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) String() string
func (*QueryMarketSizeRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) Unmarshal(dAtA []byte) error
func (*QueryMarketSizeRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) XXX_DiscardUnknown()
func (*QueryMarketSizeRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketSizeRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) XXX_Merge(src proto.Message)
func (*QueryMarketSizeRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) XXX_Size() int
func (*QueryMarketSizeRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryMarketSizeRequest) XXX_Unmarshal(b []byte) error
type QueryMarketSizeResponse ¶ added in v0.7.0
type QueryMarketSizeResponse struct {
MarketSizeUsd github_com_cosmos_cosmos_sdk_types.Dec `` /* 142-byte string literal not displayed */
}
QueryMarketSizeResponse defines the response structure for the Market Size in USD gRPC service handler.
func (*QueryMarketSizeResponse) Descriptor ¶ added in v0.7.0
func (*QueryMarketSizeResponse) Descriptor() ([]byte, []int)
func (*QueryMarketSizeResponse) Marshal ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) Marshal() (dAtA []byte, err error)
func (*QueryMarketSizeResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketSizeResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketSizeResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryMarketSizeResponse) ProtoMessage()
func (*QueryMarketSizeResponse) Reset ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) Reset()
func (*QueryMarketSizeResponse) Size ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) Size() (n int)
func (*QueryMarketSizeResponse) String ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) String() string
func (*QueryMarketSizeResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) Unmarshal(dAtA []byte) error
func (*QueryMarketSizeResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) XXX_DiscardUnknown()
func (*QueryMarketSizeResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketSizeResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) XXX_Merge(src proto.Message)
func (*QueryMarketSizeResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) XXX_Size() int
func (*QueryMarketSizeResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryMarketSizeResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.7.0
type QueryParamsRequest struct { }
QueryParamsRequest defines the request structure for the Params gRPC service handler.
func (*QueryParamsRequest) Descriptor ¶ added in v0.7.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.7.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.7.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.7.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.7.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.7.0
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response structure for the Params gRPC service handler.
func (*QueryParamsResponse) Descriptor ¶ added in v0.7.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.7.0
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.7.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.7.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.7.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.7.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryRegisteredTokens ¶ added in v0.7.0
type QueryRegisteredTokens struct { }
QueryRegisteredTokens defines the request structure for the RegisteredTokens gRPC service handler.
func (*QueryRegisteredTokens) Descriptor ¶ added in v0.7.0
func (*QueryRegisteredTokens) Descriptor() ([]byte, []int)
func (*QueryRegisteredTokens) Marshal ¶ added in v0.7.0
func (m *QueryRegisteredTokens) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredTokens) MarshalTo ¶ added in v0.7.0
func (m *QueryRegisteredTokens) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredTokens) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryRegisteredTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredTokens) ProtoMessage ¶ added in v0.7.0
func (*QueryRegisteredTokens) ProtoMessage()
func (*QueryRegisteredTokens) Reset ¶ added in v0.7.0
func (m *QueryRegisteredTokens) Reset()
func (*QueryRegisteredTokens) Size ¶ added in v0.7.0
func (m *QueryRegisteredTokens) Size() (n int)
func (*QueryRegisteredTokens) String ¶ added in v0.7.0
func (m *QueryRegisteredTokens) String() string
func (*QueryRegisteredTokens) Unmarshal ¶ added in v0.7.0
func (m *QueryRegisteredTokens) Unmarshal(dAtA []byte) error
func (*QueryRegisteredTokens) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryRegisteredTokens) XXX_DiscardUnknown()
func (*QueryRegisteredTokens) XXX_Marshal ¶ added in v0.7.0
func (m *QueryRegisteredTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredTokens) XXX_Merge ¶ added in v0.7.0
func (m *QueryRegisteredTokens) XXX_Merge(src proto.Message)
func (*QueryRegisteredTokens) XXX_Size ¶ added in v0.7.0
func (m *QueryRegisteredTokens) XXX_Size() int
func (*QueryRegisteredTokens) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryRegisteredTokens) XXX_Unmarshal(b []byte) error
type QueryRegisteredTokensResponse ¶ added in v0.7.0
type QueryRegisteredTokensResponse struct {
Registry []Token `protobuf:"bytes,1,rep,name=registry,proto3" json:"registry"`
}
QueryRegisteredTokensResponse defines the response structure for the RegisteredTokens gRPC service handler.
func (*QueryRegisteredTokensResponse) Descriptor ¶ added in v0.7.0
func (*QueryRegisteredTokensResponse) Descriptor() ([]byte, []int)
func (*QueryRegisteredTokensResponse) GetRegistry ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) GetRegistry() []Token
func (*QueryRegisteredTokensResponse) Marshal ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredTokensResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredTokensResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredTokensResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryRegisteredTokensResponse) ProtoMessage()
func (*QueryRegisteredTokensResponse) Reset ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) Reset()
func (*QueryRegisteredTokensResponse) Size ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) Size() (n int)
func (*QueryRegisteredTokensResponse) String ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) String() string
func (*QueryRegisteredTokensResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) Unmarshal(dAtA []byte) error
func (*QueryRegisteredTokensResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) XXX_DiscardUnknown()
func (*QueryRegisteredTokensResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredTokensResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) XXX_Merge(src proto.Message)
func (*QueryRegisteredTokensResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) XXX_Size() int
func (*QueryRegisteredTokensResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryRegisteredTokensResponse) XXX_Unmarshal(b []byte) error
type QueryReserveAmountRequest ¶ added in v0.7.0
type QueryReserveAmountRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryReserveAmountRequest defines the request structure for the ReserveAmount gRPC service handler.
func (*QueryReserveAmountRequest) Descriptor ¶ added in v0.7.0
func (*QueryReserveAmountRequest) Descriptor() ([]byte, []int)
func (*QueryReserveAmountRequest) GetDenom ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) GetDenom() string
func (*QueryReserveAmountRequest) Marshal ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) Marshal() (dAtA []byte, err error)
func (*QueryReserveAmountRequest) MarshalTo ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryReserveAmountRequest) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReserveAmountRequest) ProtoMessage ¶ added in v0.7.0
func (*QueryReserveAmountRequest) ProtoMessage()
func (*QueryReserveAmountRequest) Reset ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) Reset()
func (*QueryReserveAmountRequest) Size ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) Size() (n int)
func (*QueryReserveAmountRequest) String ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) String() string
func (*QueryReserveAmountRequest) Unmarshal ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) Unmarshal(dAtA []byte) error
func (*QueryReserveAmountRequest) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) XXX_DiscardUnknown()
func (*QueryReserveAmountRequest) XXX_Marshal ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReserveAmountRequest) XXX_Merge ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) XXX_Merge(src proto.Message)
func (*QueryReserveAmountRequest) XXX_Size ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) XXX_Size() int
func (*QueryReserveAmountRequest) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryReserveAmountRequest) XXX_Unmarshal(b []byte) error
type QueryReserveAmountResponse ¶ added in v0.7.0
type QueryReserveAmountResponse struct {
Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}
QueryReserveAmountResponse defines the response structure for the ReserveAmount gRPC service handler.
func (*QueryReserveAmountResponse) Descriptor ¶ added in v0.7.0
func (*QueryReserveAmountResponse) Descriptor() ([]byte, []int)
func (*QueryReserveAmountResponse) Marshal ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) Marshal() (dAtA []byte, err error)
func (*QueryReserveAmountResponse) MarshalTo ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryReserveAmountResponse) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryReserveAmountResponse) ProtoMessage ¶ added in v0.7.0
func (*QueryReserveAmountResponse) ProtoMessage()
func (*QueryReserveAmountResponse) Reset ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) Reset()
func (*QueryReserveAmountResponse) Size ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) Size() (n int)
func (*QueryReserveAmountResponse) String ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) String() string
func (*QueryReserveAmountResponse) Unmarshal ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) Unmarshal(dAtA []byte) error
func (*QueryReserveAmountResponse) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) XXX_DiscardUnknown()
func (*QueryReserveAmountResponse) XXX_Marshal ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReserveAmountResponse) XXX_Merge ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) XXX_Merge(src proto.Message)
func (*QueryReserveAmountResponse) XXX_Size ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) XXX_Size() int
func (*QueryReserveAmountResponse) XXX_Unmarshal ¶ added in v0.7.0
func (m *QueryReserveAmountResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // RegisteredTokens queries for all the registered tokens. RegisteredTokens(context.Context, *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error) // Params queries the parameters of the x/leverage module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Borrowed queries for the borrowed amount of a user by token denomination. // If the denomination is not supplied, the total for each borrowed token is // returned. Borrowed(context.Context, *QueryBorrowedRequest) (*QueryBorrowedResponse, error) // AvailableBorrow queries for the available amount to borrow of a specified denomination. AvailableBorrow(context.Context, *QueryAvailableBorrowRequest) (*QueryAvailableBorrowResponse, error) // BorrowAPY queries for the borrow APY of a specified denomination. BorrowAPY(context.Context, *QueryBorrowAPYRequest) (*QueryBorrowAPYResponse, error) // LendAPY queries for the lend APY of a specified denomination. LendAPY(context.Context, *QueryLendAPYRequest) (*QueryLendAPYResponse, error) // MarketSize queries for the Market Size in USD of a specified denomination. MarketSize(context.Context, *QueryMarketSizeRequest) (*QueryMarketSizeResponse, error) // ReserveAmount queries for the amount reserved of a specified denomination. // If the token is not valid, the reserved amount is zero. ReserveAmount(context.Context, *QueryReserveAmountRequest) (*QueryReserveAmountResponse, error) // CollateralSetting queries a borrower's collateral setting of a specified // uToken denomination. CollateralSetting(context.Context, *QueryCollateralSettingRequest) (*QueryCollateralSettingResponse, error) // Collateral queries the collateral amount of a user by token denomination. // If the denomination is not supplied, the total for each collateral token is // returned. Collateral(context.Context, *QueryCollateralRequest) (*QueryCollateralResponse, error) // ExchangeRate queries the uToken exchange rate of a given uToken denomination. ExchangeRate(context.Context, *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error) // BorrowLimit queries the borrow limit in USD of a given borrower BorrowLimit(context.Context, *QueryBorrowLimitRequest) (*QueryBorrowLimitResponse, error) // LiquidationTargets queries a list of all borrowers eligible for liquidation LiquidationTargets(context.Context, *QueryLiquidationTargetsRequest) (*QueryLiquidationTargetsResponse, error) }
QueryServer is the server API for Query service.
type Token ¶
type Token struct { // The base_denom defines the denomination of the underlying base token. BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"` // The reserve factor defines what portion of accrued interest of the asset type // goes to reserves. ReserveFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ // The collateral_weight defines what amount of the total value of the asset // can contribute to a users borrowing power. If the collateral_weight is zero, // using this asset as collateral against borrowing will be disabled. CollateralWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */ // The base_borrow_rate defines the base interest rate for borrowing this // asset. BaseBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ // The kink_borrow_rate defines the interest rate for borrowing this // asset when utilization is at the 'kink' utilization value as defined // on the utilization:interest graph. KinkBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ // The max_borrow_rate defines the interest rate for borrowing this // asset (seen when utilization is 100%). MaxBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ // The kink_utilization_rate defines the borrow utilization rate for this // asset where the 'kink' on the utilization:interest graph occurs. KinkUtilizationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 189-byte string literal not displayed */ // The liquidation_incentive determines the portion of bonus collateral of // a token type liquidators receive as a liquidation reward. LiquidationIncentive github_com_cosmos_cosmos_sdk_types.Dec `` /* 190-byte string literal not displayed */ // The symbol_denom and exponent are solely used to update the oracle's accept // list of allowed tokens. SymbolDenom string `protobuf:"bytes,9,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty" yaml:"symbol_denom"` Exponent uint32 `protobuf:"varint,10,opt,name=exponent,proto3" json:"exponent,omitempty" yaml:"exponent"` }
Token defines a token, along with its capital metadata, in the Umee capital facility that can be loaned and borrowed.
func (*Token) Descriptor ¶
func (*Token) GetBaseDenom ¶
func (*Token) GetExponent ¶ added in v0.7.0
func (*Token) GetSymbolDenom ¶ added in v0.7.0
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (Token) Validate ¶
Validate performs validation on an Token type returning an error if the Token is invalid.
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BorrowAsset ¶
func (*UnimplementedMsgServer) BorrowAsset(ctx context.Context, req *MsgBorrowAsset) (*MsgBorrowAssetResponse, error)
func (*UnimplementedMsgServer) LendAsset ¶
func (*UnimplementedMsgServer) LendAsset(ctx context.Context, req *MsgLendAsset) (*MsgLendAssetResponse, error)
func (*UnimplementedMsgServer) Liquidate ¶ added in v0.7.0
func (*UnimplementedMsgServer) Liquidate(ctx context.Context, req *MsgLiquidate) (*MsgLiquidateResponse, error)
func (*UnimplementedMsgServer) RepayAsset ¶
func (*UnimplementedMsgServer) RepayAsset(ctx context.Context, req *MsgRepayAsset) (*MsgRepayAssetResponse, error)
func (*UnimplementedMsgServer) SetCollateral ¶
func (*UnimplementedMsgServer) SetCollateral(ctx context.Context, req *MsgSetCollateral) (*MsgSetCollateralResponse, error)
func (*UnimplementedMsgServer) WithdrawAsset ¶
func (*UnimplementedMsgServer) WithdrawAsset(ctx context.Context, req *MsgWithdrawAsset) (*MsgWithdrawAssetResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AvailableBorrow ¶ added in v0.7.0
func (*UnimplementedQueryServer) AvailableBorrow(ctx context.Context, req *QueryAvailableBorrowRequest) (*QueryAvailableBorrowResponse, error)
func (*UnimplementedQueryServer) BorrowAPY ¶ added in v0.7.0
func (*UnimplementedQueryServer) BorrowAPY(ctx context.Context, req *QueryBorrowAPYRequest) (*QueryBorrowAPYResponse, error)
func (*UnimplementedQueryServer) BorrowLimit ¶ added in v0.7.0
func (*UnimplementedQueryServer) BorrowLimit(ctx context.Context, req *QueryBorrowLimitRequest) (*QueryBorrowLimitResponse, error)
func (*UnimplementedQueryServer) Borrowed ¶ added in v0.7.0
func (*UnimplementedQueryServer) Borrowed(ctx context.Context, req *QueryBorrowedRequest) (*QueryBorrowedResponse, error)
func (*UnimplementedQueryServer) Collateral ¶ added in v0.7.0
func (*UnimplementedQueryServer) Collateral(ctx context.Context, req *QueryCollateralRequest) (*QueryCollateralResponse, error)
func (*UnimplementedQueryServer) CollateralSetting ¶ added in v0.7.0
func (*UnimplementedQueryServer) CollateralSetting(ctx context.Context, req *QueryCollateralSettingRequest) (*QueryCollateralSettingResponse, error)
func (*UnimplementedQueryServer) ExchangeRate ¶ added in v0.7.0
func (*UnimplementedQueryServer) ExchangeRate(ctx context.Context, req *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error)
func (*UnimplementedQueryServer) LendAPY ¶ added in v0.7.0
func (*UnimplementedQueryServer) LendAPY(ctx context.Context, req *QueryLendAPYRequest) (*QueryLendAPYResponse, error)
func (*UnimplementedQueryServer) LiquidationTargets ¶ added in v0.7.0
func (*UnimplementedQueryServer) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargetsRequest) (*QueryLiquidationTargetsResponse, error)
func (*UnimplementedQueryServer) MarketSize ¶ added in v0.7.0
func (*UnimplementedQueryServer) MarketSize(ctx context.Context, req *QueryMarketSizeRequest) (*QueryMarketSizeResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.7.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RegisteredTokens ¶ added in v0.7.0
func (*UnimplementedQueryServer) RegisteredTokens(ctx context.Context, req *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error)
func (*UnimplementedQueryServer) ReserveAmount ¶ added in v0.7.0
func (*UnimplementedQueryServer) ReserveAmount(ctx context.Context, req *QueryReserveAmountRequest) (*QueryReserveAmountResponse, error)
type UpdateRegistryProposal ¶
type UpdateRegistryProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Registry []Token `protobuf:"bytes,3,rep,name=registry,proto3" json:"registry"` }
UpdateRegistryProposal defines a governance proposal type where the token registry can be updated in the Umee capital facility. Note, the registry defined in the proposal replaces the current registry in its entirety.
func NewUpdateRegistryProposal ¶
func NewUpdateRegistryProposal(title, description string, tokens []Token) *UpdateRegistryProposal
func (*UpdateRegistryProposal) Descriptor ¶
func (*UpdateRegistryProposal) Descriptor() ([]byte, []int)
func (*UpdateRegistryProposal) Equal ¶
func (this *UpdateRegistryProposal) Equal(that interface{}) bool
func (*UpdateRegistryProposal) GetDescription ¶
func (p *UpdateRegistryProposal) GetDescription() string
GetDescription returns the description of the proposal.
func (*UpdateRegistryProposal) GetTitle ¶
func (p *UpdateRegistryProposal) GetTitle() string
GetTitle returns the title of the proposal.
func (*UpdateRegistryProposal) Marshal ¶
func (m *UpdateRegistryProposal) Marshal() (dAtA []byte, err error)
func (*UpdateRegistryProposal) MarshalTo ¶
func (m *UpdateRegistryProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpdateRegistryProposal) MarshalToSizedBuffer ¶
func (m *UpdateRegistryProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateRegistryProposal) ProposalRoute ¶
func (p *UpdateRegistryProposal) ProposalRoute() string
ProposalRoute returns the x/gov routing key of the proposal.
func (*UpdateRegistryProposal) ProposalType ¶
func (p *UpdateRegistryProposal) ProposalType() string
ProposalType returns the x/gov type of the proposal.
func (*UpdateRegistryProposal) ProtoMessage ¶
func (*UpdateRegistryProposal) ProtoMessage()
func (*UpdateRegistryProposal) Reset ¶
func (m *UpdateRegistryProposal) Reset()
func (*UpdateRegistryProposal) Size ¶
func (m *UpdateRegistryProposal) Size() (n int)
func (UpdateRegistryProposal) String ¶
func (p UpdateRegistryProposal) String() string
String implements the Stringer interface.
func (*UpdateRegistryProposal) Unmarshal ¶
func (m *UpdateRegistryProposal) Unmarshal(dAtA []byte) error
func (*UpdateRegistryProposal) ValidateBasic ¶
func (p *UpdateRegistryProposal) ValidateBasic() error
ValidateBasic validates the proposal returning an error if invalid.
func (*UpdateRegistryProposal) XXX_DiscardUnknown ¶
func (m *UpdateRegistryProposal) XXX_DiscardUnknown()
func (*UpdateRegistryProposal) XXX_Marshal ¶
func (m *UpdateRegistryProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRegistryProposal) XXX_Merge ¶
func (m *UpdateRegistryProposal) XXX_Merge(src proto.Message)
func (*UpdateRegistryProposal) XXX_Size ¶
func (m *UpdateRegistryProposal) XXX_Size() int
func (*UpdateRegistryProposal) XXX_Unmarshal ¶
func (m *UpdateRegistryProposal) XXX_Unmarshal(b []byte) error