Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AddressFromKey(key, prefix []byte) sdk.AccAddress
- func DenomFromKey(key, prefix []byte) string
- func DenomFromKeyWithAddress(key, prefix []byte) string
- func KeyAdjustedBorrow(borrowerAddr sdk.AccAddress, tokenDenom string) []byte
- func KeyAdjustedBorrowNoDenom(borrower sdk.AccAddress) []byte
- func KeyAdjustedTotalBorrow(tokenDenom string) []byte
- func KeyBadDebt(denom string, borrower sdk.AccAddress) []byte
- func KeyCollateralAmount(addr sdk.AccAddress, uTokenDenom string) []byte
- func KeyCollateralAmountNoDenom(addr sdk.AccAddress) []byte
- func KeyInterestScalar(tokenDenom string) []byte
- func KeyRegisteredToken(baseTokenDenom string) []byte
- func KeyReserveAmount(tokenDenom string) []byte
- func KeySpecialAssetPair(collateral, borrow string) []byte
- func KeySpecialAssetPairOneDenom(denom string) []byte
- func KeyUTokenSupply(uTokenDenom string) []byte
- 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 ValidateBaseDenom(denom string) error
- type AccountKeeper
- type AccountPosition
- func (ap *AccountPosition) BorrowedValue() sdk.Dec
- func (ap *AccountPosition) CollateralValue() sdk.Dec
- func (ap *AccountPosition) HasCollateral(denom string) bool
- func (ap *AccountPosition) IsHealthy() bool
- func (ap *AccountPosition) Limit() sdk.Dec
- func (ap *AccountPosition) MaxBorrow(denom string) (sdk.Dec, error)
- func (ap *AccountPosition) MaxWithdraw(denom string) (sdk.Dec, error)
- func (ap *AccountPosition) String() string
- func (ap *AccountPosition) Validate() error
- type AdjustedBorrow
- func (*AdjustedBorrow) Descriptor() ([]byte, []int)
- 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) 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 BondHooks
- type Collateral
- func (*Collateral) Descriptor() ([]byte, []int)
- 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 DecBalances
- func (*DecBalances) Descriptor() ([]byte, []int)
- func (m *DecBalances) Marshal() (dAtA []byte, err error)
- func (m *DecBalances) MarshalTo(dAtA []byte) (int, error)
- func (m *DecBalances) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DecBalances) ProtoMessage()
- func (m *DecBalances) Reset()
- func (m *DecBalances) Size() (n int)
- func (m *DecBalances) String() string
- func (m *DecBalances) Unmarshal(dAtA []byte) error
- func (m *DecBalances) XXX_DiscardUnknown()
- func (m *DecBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecBalances) XXX_Merge(src proto.Message)
- func (m *DecBalances) XXX_Size() int
- func (m *DecBalances) XXX_Unmarshal(b []byte) error
- type EventBorrow
- func (*EventBorrow) Descriptor() ([]byte, []int)
- func (m *EventBorrow) Marshal() (dAtA []byte, err error)
- func (m *EventBorrow) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBorrow) ProtoMessage()
- func (m *EventBorrow) Reset()
- func (m *EventBorrow) Size() (n int)
- func (m *EventBorrow) String() string
- func (m *EventBorrow) Unmarshal(dAtA []byte) error
- func (m *EventBorrow) XXX_DiscardUnknown()
- func (m *EventBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBorrow) XXX_Merge(src proto.Message)
- func (m *EventBorrow) XXX_Size() int
- func (m *EventBorrow) XXX_Unmarshal(b []byte) error
- type EventCollaterize
- func (*EventCollaterize) Descriptor() ([]byte, []int)
- func (m *EventCollaterize) Marshal() (dAtA []byte, err error)
- func (m *EventCollaterize) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCollaterize) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCollaterize) ProtoMessage()
- func (m *EventCollaterize) Reset()
- func (m *EventCollaterize) Size() (n int)
- func (m *EventCollaterize) String() string
- func (m *EventCollaterize) Unmarshal(dAtA []byte) error
- func (m *EventCollaterize) XXX_DiscardUnknown()
- func (m *EventCollaterize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCollaterize) XXX_Merge(src proto.Message)
- func (m *EventCollaterize) XXX_Size() int
- func (m *EventCollaterize) XXX_Unmarshal(b []byte) error
- type EventDecollaterize
- func (*EventDecollaterize) Descriptor() ([]byte, []int)
- func (m *EventDecollaterize) Marshal() (dAtA []byte, err error)
- func (m *EventDecollaterize) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDecollaterize) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDecollaterize) ProtoMessage()
- func (m *EventDecollaterize) Reset()
- func (m *EventDecollaterize) Size() (n int)
- func (m *EventDecollaterize) String() string
- func (m *EventDecollaterize) Unmarshal(dAtA []byte) error
- func (m *EventDecollaterize) XXX_DiscardUnknown()
- func (m *EventDecollaterize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDecollaterize) XXX_Merge(src proto.Message)
- func (m *EventDecollaterize) XXX_Size() int
- func (m *EventDecollaterize) XXX_Unmarshal(b []byte) error
- type EventFundOracle
- func (*EventFundOracle) Descriptor() ([]byte, []int)
- func (m *EventFundOracle) Marshal() (dAtA []byte, err error)
- func (m *EventFundOracle) MarshalTo(dAtA []byte) (int, error)
- func (m *EventFundOracle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventFundOracle) ProtoMessage()
- func (m *EventFundOracle) Reset()
- func (m *EventFundOracle) Size() (n int)
- func (m *EventFundOracle) String() string
- func (m *EventFundOracle) Unmarshal(dAtA []byte) error
- func (m *EventFundOracle) XXX_DiscardUnknown()
- func (m *EventFundOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventFundOracle) XXX_Merge(src proto.Message)
- func (m *EventFundOracle) XXX_Size() int
- func (m *EventFundOracle) XXX_Unmarshal(b []byte) error
- type EventInterestAccrual
- func (*EventInterestAccrual) Descriptor() ([]byte, []int)
- func (m *EventInterestAccrual) Marshal() (dAtA []byte, err error)
- func (m *EventInterestAccrual) MarshalTo(dAtA []byte) (int, error)
- func (m *EventInterestAccrual) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventInterestAccrual) ProtoMessage()
- func (m *EventInterestAccrual) Reset()
- func (m *EventInterestAccrual) Size() (n int)
- func (m *EventInterestAccrual) String() string
- func (m *EventInterestAccrual) Unmarshal(dAtA []byte) error
- func (m *EventInterestAccrual) XXX_DiscardUnknown()
- func (m *EventInterestAccrual) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventInterestAccrual) XXX_Merge(src proto.Message)
- func (m *EventInterestAccrual) XXX_Size() int
- func (m *EventInterestAccrual) XXX_Unmarshal(b []byte) error
- type EventLiquidate
- func (*EventLiquidate) Descriptor() ([]byte, []int)
- func (m *EventLiquidate) Marshal() (dAtA []byte, err error)
- func (m *EventLiquidate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventLiquidate) ProtoMessage()
- func (m *EventLiquidate) Reset()
- func (m *EventLiquidate) Size() (n int)
- func (m *EventLiquidate) String() string
- func (m *EventLiquidate) Unmarshal(dAtA []byte) error
- func (m *EventLiquidate) XXX_DiscardUnknown()
- func (m *EventLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventLiquidate) XXX_Merge(src proto.Message)
- func (m *EventLiquidate) XXX_Size() int
- func (m *EventLiquidate) XXX_Unmarshal(b []byte) error
- type EventRepay
- func (*EventRepay) Descriptor() ([]byte, []int)
- func (m *EventRepay) Marshal() (dAtA []byte, err error)
- func (m *EventRepay) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRepay) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRepay) ProtoMessage()
- func (m *EventRepay) Reset()
- func (m *EventRepay) Size() (n int)
- func (m *EventRepay) String() string
- func (m *EventRepay) Unmarshal(dAtA []byte) error
- func (m *EventRepay) XXX_DiscardUnknown()
- func (m *EventRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRepay) XXX_Merge(src proto.Message)
- func (m *EventRepay) XXX_Size() int
- func (m *EventRepay) XXX_Unmarshal(b []byte) error
- type EventRepayBadDebt
- func (*EventRepayBadDebt) Descriptor() ([]byte, []int)
- func (m *EventRepayBadDebt) Marshal() (dAtA []byte, err error)
- func (m *EventRepayBadDebt) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRepayBadDebt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRepayBadDebt) ProtoMessage()
- func (m *EventRepayBadDebt) Reset()
- func (m *EventRepayBadDebt) Size() (n int)
- func (m *EventRepayBadDebt) String() string
- func (m *EventRepayBadDebt) Unmarshal(dAtA []byte) error
- func (m *EventRepayBadDebt) XXX_DiscardUnknown()
- func (m *EventRepayBadDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRepayBadDebt) XXX_Merge(src proto.Message)
- func (m *EventRepayBadDebt) XXX_Size() int
- func (m *EventRepayBadDebt) XXX_Unmarshal(b []byte) error
- type EventReservesExhausted
- func (*EventReservesExhausted) Descriptor() ([]byte, []int)
- func (m *EventReservesExhausted) Marshal() (dAtA []byte, err error)
- func (m *EventReservesExhausted) MarshalTo(dAtA []byte) (int, error)
- func (m *EventReservesExhausted) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventReservesExhausted) ProtoMessage()
- func (m *EventReservesExhausted) Reset()
- func (m *EventReservesExhausted) Size() (n int)
- func (m *EventReservesExhausted) String() string
- func (m *EventReservesExhausted) Unmarshal(dAtA []byte) error
- func (m *EventReservesExhausted) XXX_DiscardUnknown()
- func (m *EventReservesExhausted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReservesExhausted) XXX_Merge(src proto.Message)
- func (m *EventReservesExhausted) XXX_Size() int
- func (m *EventReservesExhausted) XXX_Unmarshal(b []byte) error
- type EventSupply
- func (*EventSupply) Descriptor() ([]byte, []int)
- func (m *EventSupply) Marshal() (dAtA []byte, err error)
- func (m *EventSupply) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSupply) ProtoMessage()
- func (m *EventSupply) Reset()
- func (m *EventSupply) Size() (n int)
- func (m *EventSupply) String() string
- func (m *EventSupply) Unmarshal(dAtA []byte) error
- func (m *EventSupply) XXX_DiscardUnknown()
- func (m *EventSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSupply) XXX_Merge(src proto.Message)
- func (m *EventSupply) XXX_Size() int
- func (m *EventSupply) XXX_Unmarshal(b []byte) error
- type EventWithdraw
- func (*EventWithdraw) Descriptor() ([]byte, []int)
- func (m *EventWithdraw) Marshal() (dAtA []byte, err error)
- func (m *EventWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *EventWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventWithdraw) ProtoMessage()
- func (m *EventWithdraw) Reset()
- func (m *EventWithdraw) Size() (n int)
- func (m *EventWithdraw) String() string
- func (m *EventWithdraw) Unmarshal(dAtA []byte) error
- func (m *EventWithdraw) XXX_DiscardUnknown()
- func (m *EventWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventWithdraw) XXX_Merge(src proto.Message)
- func (m *EventWithdraw) XXX_Size() int
- func (m *EventWithdraw) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 InspectAccount
- func (*InspectAccount) Descriptor() ([]byte, []int)
- func (m *InspectAccount) Marshal() (dAtA []byte, err error)
- func (m *InspectAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *InspectAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InspectAccount) ProtoMessage()
- func (m *InspectAccount) Reset()
- func (m *InspectAccount) Size() (n int)
- func (m *InspectAccount) String() string
- func (m *InspectAccount) Unmarshal(dAtA []byte) error
- func (m *InspectAccount) XXX_DiscardUnknown()
- func (m *InspectAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InspectAccount) XXX_Merge(src proto.Message)
- func (m *InspectAccount) XXX_Size() int
- func (m *InspectAccount) XXX_Unmarshal(b []byte) error
- type InterestScalar
- func (*InterestScalar) Descriptor() ([]byte, []int)
- 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 MsgBorrow
- func (*MsgBorrow) Descriptor() ([]byte, []int)
- func (msg *MsgBorrow) GetSignBytes() []byte
- func (msg *MsgBorrow) GetSigners() []sdk.AccAddress
- func (m *MsgBorrow) Marshal() (dAtA []byte, err error)
- func (m *MsgBorrow) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBorrow) ProtoMessage()
- func (m *MsgBorrow) Reset()
- func (msg MsgBorrow) Route() string
- func (m *MsgBorrow) Size() (n int)
- func (m *MsgBorrow) String() string
- func (msg MsgBorrow) Type() string
- func (m *MsgBorrow) Unmarshal(dAtA []byte) error
- func (msg *MsgBorrow) ValidateBasic() error
- func (m *MsgBorrow) XXX_DiscardUnknown()
- func (m *MsgBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBorrow) XXX_Merge(src proto.Message)
- func (*MsgBorrow) XXX_MessageName() string
- func (m *MsgBorrow) XXX_Size() int
- func (m *MsgBorrow) XXX_Unmarshal(b []byte) error
- type MsgBorrowResponse
- func (*MsgBorrowResponse) Descriptor() ([]byte, []int)
- func (m *MsgBorrowResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBorrowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBorrowResponse) ProtoMessage()
- func (m *MsgBorrowResponse) Reset()
- func (m *MsgBorrowResponse) Size() (n int)
- func (m *MsgBorrowResponse) String() string
- func (m *MsgBorrowResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBorrowResponse) XXX_DiscardUnknown()
- func (m *MsgBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBorrowResponse) XXX_Merge(src proto.Message)
- func (*MsgBorrowResponse) XXX_MessageName() string
- func (m *MsgBorrowResponse) XXX_Size() int
- func (m *MsgBorrowResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCollateralize
- func (*MsgCollateralize) Descriptor() ([]byte, []int)
- func (msg *MsgCollateralize) GetSignBytes() []byte
- func (msg *MsgCollateralize) GetSigners() []sdk.AccAddress
- func (m *MsgCollateralize) Marshal() (dAtA []byte, err error)
- func (m *MsgCollateralize) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCollateralize) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCollateralize) ProtoMessage()
- func (m *MsgCollateralize) Reset()
- func (msg MsgCollateralize) Route() string
- func (m *MsgCollateralize) Size() (n int)
- func (m *MsgCollateralize) String() string
- func (msg MsgCollateralize) Type() string
- func (m *MsgCollateralize) Unmarshal(dAtA []byte) error
- func (msg *MsgCollateralize) ValidateBasic() error
- func (m *MsgCollateralize) XXX_DiscardUnknown()
- func (m *MsgCollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCollateralize) XXX_Merge(src proto.Message)
- func (*MsgCollateralize) XXX_MessageName() string
- func (m *MsgCollateralize) XXX_Size() int
- func (m *MsgCollateralize) XXX_Unmarshal(b []byte) error
- type MsgCollateralizeResponse
- func (*MsgCollateralizeResponse) Descriptor() ([]byte, []int)
- func (m *MsgCollateralizeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCollateralizeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCollateralizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCollateralizeResponse) ProtoMessage()
- func (m *MsgCollateralizeResponse) Reset()
- func (m *MsgCollateralizeResponse) Size() (n int)
- func (m *MsgCollateralizeResponse) String() string
- func (m *MsgCollateralizeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCollateralizeResponse) XXX_DiscardUnknown()
- func (m *MsgCollateralizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCollateralizeResponse) XXX_Merge(src proto.Message)
- func (*MsgCollateralizeResponse) XXX_MessageName() string
- func (m *MsgCollateralizeResponse) XXX_Size() int
- func (m *MsgCollateralizeResponse) XXX_Unmarshal(b []byte) error
- type MsgDecollateralize
- func (*MsgDecollateralize) Descriptor() ([]byte, []int)
- func (msg *MsgDecollateralize) GetSignBytes() []byte
- func (msg *MsgDecollateralize) GetSigners() []sdk.AccAddress
- func (m *MsgDecollateralize) Marshal() (dAtA []byte, err error)
- func (m *MsgDecollateralize) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDecollateralize) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDecollateralize) ProtoMessage()
- func (m *MsgDecollateralize) Reset()
- func (msg MsgDecollateralize) Route() string
- func (m *MsgDecollateralize) Size() (n int)
- func (m *MsgDecollateralize) String() string
- func (msg MsgDecollateralize) Type() string
- func (m *MsgDecollateralize) Unmarshal(dAtA []byte) error
- func (msg *MsgDecollateralize) ValidateBasic() error
- func (m *MsgDecollateralize) XXX_DiscardUnknown()
- func (m *MsgDecollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDecollateralize) XXX_Merge(src proto.Message)
- func (*MsgDecollateralize) XXX_MessageName() string
- func (m *MsgDecollateralize) XXX_Size() int
- func (m *MsgDecollateralize) XXX_Unmarshal(b []byte) error
- type MsgDecollateralizeResponse
- func (*MsgDecollateralizeResponse) Descriptor() ([]byte, []int)
- func (m *MsgDecollateralizeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDecollateralizeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDecollateralizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDecollateralizeResponse) ProtoMessage()
- func (m *MsgDecollateralizeResponse) Reset()
- func (m *MsgDecollateralizeResponse) Size() (n int)
- func (m *MsgDecollateralizeResponse) String() string
- func (m *MsgDecollateralizeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDecollateralizeResponse) XXX_DiscardUnknown()
- func (m *MsgDecollateralizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDecollateralizeResponse) XXX_Merge(src proto.Message)
- func (*MsgDecollateralizeResponse) XXX_MessageName() string
- func (m *MsgDecollateralizeResponse) XXX_Size() int
- func (m *MsgDecollateralizeResponse) XXX_Unmarshal(b []byte) error
- type MsgGovSetParams
- func (*MsgGovSetParams) Descriptor() ([]byte, []int)
- func (this *MsgGovSetParams) Equal(that interface{}) bool
- func (msg MsgGovSetParams) GetSignBytes() []byte
- func (msg MsgGovSetParams) GetSigners() []sdk.AccAddress
- func (m *MsgGovSetParams) Marshal() (dAtA []byte, err error)
- func (m *MsgGovSetParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovSetParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovSetParams) ProtoMessage()
- func (m *MsgGovSetParams) Reset()
- func (msg MsgGovSetParams) Route() string
- func (m *MsgGovSetParams) Size() (n int)
- func (msg MsgGovSetParams) String() string
- func (msg MsgGovSetParams) Type() string
- func (m *MsgGovSetParams) Unmarshal(dAtA []byte) error
- func (msg MsgGovSetParams) ValidateBasic() error
- func (m *MsgGovSetParams) XXX_DiscardUnknown()
- func (m *MsgGovSetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovSetParams) XXX_Merge(src proto.Message)
- func (*MsgGovSetParams) XXX_MessageName() string
- func (m *MsgGovSetParams) XXX_Size() int
- func (m *MsgGovSetParams) XXX_Unmarshal(b []byte) error
- type MsgGovSetParamsResponse
- func (*MsgGovSetParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgGovSetParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGovSetParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovSetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovSetParamsResponse) ProtoMessage()
- func (m *MsgGovSetParamsResponse) Reset()
- func (m *MsgGovSetParamsResponse) Size() (n int)
- func (m *MsgGovSetParamsResponse) String() string
- func (m *MsgGovSetParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGovSetParamsResponse) XXX_DiscardUnknown()
- func (m *MsgGovSetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovSetParamsResponse) XXX_Merge(src proto.Message)
- func (*MsgGovSetParamsResponse) XXX_MessageName() string
- func (m *MsgGovSetParamsResponse) XXX_Size() int
- func (m *MsgGovSetParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgGovUpdateRegistry
- func (*MsgGovUpdateRegistry) Descriptor() ([]byte, []int)
- func (this *MsgGovUpdateRegistry) Equal(that interface{}) bool
- func (msg MsgGovUpdateRegistry) GetSignBytes() []byte
- func (msg MsgGovUpdateRegistry) GetSigners() []sdk.AccAddress
- func (m *MsgGovUpdateRegistry) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateRegistry) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateRegistry) ProtoMessage()
- func (m *MsgGovUpdateRegistry) Reset()
- func (msg MsgGovUpdateRegistry) Route() string
- func (m *MsgGovUpdateRegistry) Size() (n int)
- func (msg MsgGovUpdateRegistry) String() string
- func (msg MsgGovUpdateRegistry) Type() string
- func (m *MsgGovUpdateRegistry) Unmarshal(dAtA []byte) error
- func (msg MsgGovUpdateRegistry) ValidateBasic() error
- func (m *MsgGovUpdateRegistry) XXX_DiscardUnknown()
- func (m *MsgGovUpdateRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateRegistry) XXX_Merge(src proto.Message)
- func (*MsgGovUpdateRegistry) XXX_MessageName() string
- func (m *MsgGovUpdateRegistry) XXX_Size() int
- func (m *MsgGovUpdateRegistry) XXX_Unmarshal(b []byte) error
- type MsgGovUpdateRegistryResponse
- func (*MsgGovUpdateRegistryResponse) Descriptor() ([]byte, []int)
- func (m *MsgGovUpdateRegistryResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateRegistryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateRegistryResponse) ProtoMessage()
- func (m *MsgGovUpdateRegistryResponse) Reset()
- func (m *MsgGovUpdateRegistryResponse) Size() (n int)
- func (m *MsgGovUpdateRegistryResponse) String() string
- func (m *MsgGovUpdateRegistryResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGovUpdateRegistryResponse) XXX_DiscardUnknown()
- func (m *MsgGovUpdateRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateRegistryResponse) XXX_Merge(src proto.Message)
- func (*MsgGovUpdateRegistryResponse) XXX_MessageName() string
- func (m *MsgGovUpdateRegistryResponse) XXX_Size() int
- func (m *MsgGovUpdateRegistryResponse) XXX_Unmarshal(b []byte) error
- type MsgGovUpdateSpecialAssets
- func (*MsgGovUpdateSpecialAssets) Descriptor() ([]byte, []int)
- func (this *MsgGovUpdateSpecialAssets) Equal(that interface{}) bool
- func (msg MsgGovUpdateSpecialAssets) GetSignBytes() []byte
- func (msg MsgGovUpdateSpecialAssets) GetSigners() []sdk.AccAddress
- func (m *MsgGovUpdateSpecialAssets) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateSpecialAssets) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateSpecialAssets) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateSpecialAssets) ProtoMessage()
- func (m *MsgGovUpdateSpecialAssets) Reset()
- func (msg MsgGovUpdateSpecialAssets) Route() string
- func (m *MsgGovUpdateSpecialAssets) Size() (n int)
- func (msg MsgGovUpdateSpecialAssets) String() string
- func (msg MsgGovUpdateSpecialAssets) Type() string
- func (m *MsgGovUpdateSpecialAssets) Unmarshal(dAtA []byte) error
- func (msg MsgGovUpdateSpecialAssets) ValidateBasic() error
- func (m *MsgGovUpdateSpecialAssets) XXX_DiscardUnknown()
- func (m *MsgGovUpdateSpecialAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateSpecialAssets) XXX_Merge(src proto.Message)
- func (*MsgGovUpdateSpecialAssets) XXX_MessageName() string
- func (m *MsgGovUpdateSpecialAssets) XXX_Size() int
- func (m *MsgGovUpdateSpecialAssets) XXX_Unmarshal(b []byte) error
- type MsgGovUpdateSpecialAssetsResponse
- func (*MsgGovUpdateSpecialAssetsResponse) Descriptor() ([]byte, []int)
- func (m *MsgGovUpdateSpecialAssetsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateSpecialAssetsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateSpecialAssetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateSpecialAssetsResponse) ProtoMessage()
- func (m *MsgGovUpdateSpecialAssetsResponse) Reset()
- func (m *MsgGovUpdateSpecialAssetsResponse) Size() (n int)
- func (m *MsgGovUpdateSpecialAssetsResponse) String() string
- func (m *MsgGovUpdateSpecialAssetsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGovUpdateSpecialAssetsResponse) XXX_DiscardUnknown()
- func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Merge(src proto.Message)
- func (*MsgGovUpdateSpecialAssetsResponse) XXX_MessageName() string
- func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Size() int
- func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Unmarshal(b []byte) error
- type MsgLeveragedLiquidate
- func (*MsgLeveragedLiquidate) Descriptor() ([]byte, []int)
- func (msg *MsgLeveragedLiquidate) GetSignBytes() []byte
- func (msg *MsgLeveragedLiquidate) GetSigners() []sdk.AccAddress
- func (m *MsgLeveragedLiquidate) Marshal() (dAtA []byte, err error)
- func (m *MsgLeveragedLiquidate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLeveragedLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLeveragedLiquidate) ProtoMessage()
- func (m *MsgLeveragedLiquidate) Reset()
- func (msg MsgLeveragedLiquidate) Route() string
- func (m *MsgLeveragedLiquidate) Size() (n int)
- func (m *MsgLeveragedLiquidate) String() string
- func (msg MsgLeveragedLiquidate) Type() string
- func (m *MsgLeveragedLiquidate) Unmarshal(dAtA []byte) error
- func (msg *MsgLeveragedLiquidate) ValidateBasic() error
- func (m *MsgLeveragedLiquidate) XXX_DiscardUnknown()
- func (m *MsgLeveragedLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLeveragedLiquidate) XXX_Merge(src proto.Message)
- func (*MsgLeveragedLiquidate) XXX_MessageName() string
- func (m *MsgLeveragedLiquidate) XXX_Size() int
- func (m *MsgLeveragedLiquidate) XXX_Unmarshal(b []byte) error
- type MsgLeveragedLiquidateResponse
- func (*MsgLeveragedLiquidateResponse) Descriptor() ([]byte, []int)
- func (m *MsgLeveragedLiquidateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgLeveragedLiquidateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgLeveragedLiquidateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgLeveragedLiquidateResponse) ProtoMessage()
- func (m *MsgLeveragedLiquidateResponse) Reset()
- func (m *MsgLeveragedLiquidateResponse) Size() (n int)
- func (m *MsgLeveragedLiquidateResponse) String() string
- func (m *MsgLeveragedLiquidateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgLeveragedLiquidateResponse) XXX_DiscardUnknown()
- func (m *MsgLeveragedLiquidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgLeveragedLiquidateResponse) XXX_Merge(src proto.Message)
- func (*MsgLeveragedLiquidateResponse) XXX_MessageName() string
- func (m *MsgLeveragedLiquidateResponse) XXX_Size() int
- func (m *MsgLeveragedLiquidateResponse) XXX_Unmarshal(b []byte) error
- type MsgLiquidate
- func (*MsgLiquidate) Descriptor() ([]byte, []int)
- 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 (*MsgLiquidate) XXX_MessageName() string
- func (m *MsgLiquidate) XXX_Size() int
- func (m *MsgLiquidate) XXX_Unmarshal(b []byte) error
- type MsgLiquidateResponse
- func (*MsgLiquidateResponse) Descriptor() ([]byte, []int)
- 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 (*MsgLiquidateResponse) XXX_MessageName() string
- func (m *MsgLiquidateResponse) XXX_Size() int
- func (m *MsgLiquidateResponse) XXX_Unmarshal(b []byte) error
- type MsgMaxBorrow
- func (*MsgMaxBorrow) Descriptor() ([]byte, []int)
- func (msg *MsgMaxBorrow) GetSignBytes() []byte
- func (msg *MsgMaxBorrow) GetSigners() []sdk.AccAddress
- func (m *MsgMaxBorrow) Marshal() (dAtA []byte, err error)
- func (m *MsgMaxBorrow) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMaxBorrow) ProtoMessage()
- func (m *MsgMaxBorrow) Reset()
- func (msg MsgMaxBorrow) Route() string
- func (m *MsgMaxBorrow) Size() (n int)
- func (m *MsgMaxBorrow) String() string
- func (msg MsgMaxBorrow) Type() string
- func (m *MsgMaxBorrow) Unmarshal(dAtA []byte) error
- func (msg *MsgMaxBorrow) ValidateBasic() error
- func (m *MsgMaxBorrow) XXX_DiscardUnknown()
- func (m *MsgMaxBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMaxBorrow) XXX_Merge(src proto.Message)
- func (*MsgMaxBorrow) XXX_MessageName() string
- func (m *MsgMaxBorrow) XXX_Size() int
- func (m *MsgMaxBorrow) XXX_Unmarshal(b []byte) error
- type MsgMaxBorrowResponse
- func (*MsgMaxBorrowResponse) Descriptor() ([]byte, []int)
- func (m *MsgMaxBorrowResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMaxBorrowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMaxBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMaxBorrowResponse) ProtoMessage()
- func (m *MsgMaxBorrowResponse) Reset()
- func (m *MsgMaxBorrowResponse) Size() (n int)
- func (m *MsgMaxBorrowResponse) String() string
- func (m *MsgMaxBorrowResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMaxBorrowResponse) XXX_DiscardUnknown()
- func (m *MsgMaxBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMaxBorrowResponse) XXX_Merge(src proto.Message)
- func (*MsgMaxBorrowResponse) XXX_MessageName() string
- func (m *MsgMaxBorrowResponse) XXX_Size() int
- func (m *MsgMaxBorrowResponse) XXX_Unmarshal(b []byte) error
- type MsgMaxWithdraw
- func (*MsgMaxWithdraw) Descriptor() ([]byte, []int)
- func (msg *MsgMaxWithdraw) GetSignBytes() []byte
- func (msg *MsgMaxWithdraw) GetSigners() []sdk.AccAddress
- func (m *MsgMaxWithdraw) Marshal() (dAtA []byte, err error)
- func (m *MsgMaxWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMaxWithdraw) ProtoMessage()
- func (m *MsgMaxWithdraw) Reset()
- func (msg MsgMaxWithdraw) Route() string
- func (m *MsgMaxWithdraw) Size() (n int)
- func (m *MsgMaxWithdraw) String() string
- func (msg MsgMaxWithdraw) Type() string
- func (m *MsgMaxWithdraw) Unmarshal(dAtA []byte) error
- func (msg *MsgMaxWithdraw) ValidateBasic() error
- func (m *MsgMaxWithdraw) XXX_DiscardUnknown()
- func (m *MsgMaxWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMaxWithdraw) XXX_Merge(src proto.Message)
- func (*MsgMaxWithdraw) XXX_MessageName() string
- func (m *MsgMaxWithdraw) XXX_Size() int
- func (m *MsgMaxWithdraw) XXX_Unmarshal(b []byte) error
- type MsgMaxWithdrawResponse
- func (*MsgMaxWithdrawResponse) Descriptor() ([]byte, []int)
- func (m *MsgMaxWithdrawResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMaxWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMaxWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMaxWithdrawResponse) ProtoMessage()
- func (m *MsgMaxWithdrawResponse) Reset()
- func (m *MsgMaxWithdrawResponse) Size() (n int)
- func (m *MsgMaxWithdrawResponse) String() string
- func (m *MsgMaxWithdrawResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMaxWithdrawResponse) XXX_DiscardUnknown()
- func (m *MsgMaxWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMaxWithdrawResponse) XXX_Merge(src proto.Message)
- func (*MsgMaxWithdrawResponse) XXX_MessageName() string
- func (m *MsgMaxWithdrawResponse) XXX_Size() int
- func (m *MsgMaxWithdrawResponse) XXX_Unmarshal(b []byte) error
- type MsgRepay
- func (*MsgRepay) Descriptor() ([]byte, []int)
- func (msg *MsgRepay) GetSignBytes() []byte
- func (msg *MsgRepay) GetSigners() []sdk.AccAddress
- func (m *MsgRepay) Marshal() (dAtA []byte, err error)
- func (m *MsgRepay) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRepay) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRepay) ProtoMessage()
- func (m *MsgRepay) Reset()
- func (msg MsgRepay) Route() string
- func (m *MsgRepay) Size() (n int)
- func (m *MsgRepay) String() string
- func (msg MsgRepay) Type() string
- func (m *MsgRepay) Unmarshal(dAtA []byte) error
- func (msg *MsgRepay) ValidateBasic() error
- func (m *MsgRepay) XXX_DiscardUnknown()
- func (m *MsgRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRepay) XXX_Merge(src proto.Message)
- func (*MsgRepay) XXX_MessageName() string
- func (m *MsgRepay) XXX_Size() int
- func (m *MsgRepay) XXX_Unmarshal(b []byte) error
- type MsgRepayResponse
- func (*MsgRepayResponse) Descriptor() ([]byte, []int)
- func (m *MsgRepayResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRepayResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRepayResponse) ProtoMessage()
- func (m *MsgRepayResponse) Reset()
- func (m *MsgRepayResponse) Size() (n int)
- func (m *MsgRepayResponse) String() string
- func (m *MsgRepayResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRepayResponse) XXX_DiscardUnknown()
- func (m *MsgRepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRepayResponse) XXX_Merge(src proto.Message)
- func (*MsgRepayResponse) XXX_MessageName() string
- func (m *MsgRepayResponse) XXX_Size() int
- func (m *MsgRepayResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSupply
- func (*MsgSupply) Descriptor() ([]byte, []int)
- func (msg *MsgSupply) GetSignBytes() []byte
- func (msg *MsgSupply) GetSigners() []sdk.AccAddress
- func (m *MsgSupply) Marshal() (dAtA []byte, err error)
- func (m *MsgSupply) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSupply) ProtoMessage()
- func (m *MsgSupply) Reset()
- func (msg MsgSupply) Route() string
- func (m *MsgSupply) Size() (n int)
- func (m *MsgSupply) String() string
- func (msg MsgSupply) Type() string
- func (m *MsgSupply) Unmarshal(dAtA []byte) error
- func (msg *MsgSupply) ValidateBasic() error
- func (m *MsgSupply) XXX_DiscardUnknown()
- func (m *MsgSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSupply) XXX_Merge(src proto.Message)
- func (*MsgSupply) XXX_MessageName() string
- func (m *MsgSupply) XXX_Size() int
- func (m *MsgSupply) XXX_Unmarshal(b []byte) error
- type MsgSupplyCollateral
- func (*MsgSupplyCollateral) Descriptor() ([]byte, []int)
- func (msg *MsgSupplyCollateral) GetSignBytes() []byte
- func (msg *MsgSupplyCollateral) GetSigners() []sdk.AccAddress
- func (m *MsgSupplyCollateral) Marshal() (dAtA []byte, err error)
- func (m *MsgSupplyCollateral) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSupplyCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSupplyCollateral) ProtoMessage()
- func (m *MsgSupplyCollateral) Reset()
- func (msg MsgSupplyCollateral) Route() string
- func (m *MsgSupplyCollateral) Size() (n int)
- func (m *MsgSupplyCollateral) String() string
- func (msg MsgSupplyCollateral) Type() string
- func (m *MsgSupplyCollateral) Unmarshal(dAtA []byte) error
- func (msg *MsgSupplyCollateral) ValidateBasic() error
- func (m *MsgSupplyCollateral) XXX_DiscardUnknown()
- func (m *MsgSupplyCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSupplyCollateral) XXX_Merge(src proto.Message)
- func (*MsgSupplyCollateral) XXX_MessageName() string
- func (m *MsgSupplyCollateral) XXX_Size() int
- func (m *MsgSupplyCollateral) XXX_Unmarshal(b []byte) error
- type MsgSupplyCollateralResponse
- func (*MsgSupplyCollateralResponse) Descriptor() ([]byte, []int)
- func (m *MsgSupplyCollateralResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSupplyCollateralResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSupplyCollateralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSupplyCollateralResponse) ProtoMessage()
- func (m *MsgSupplyCollateralResponse) Reset()
- func (m *MsgSupplyCollateralResponse) Size() (n int)
- func (m *MsgSupplyCollateralResponse) String() string
- func (m *MsgSupplyCollateralResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSupplyCollateralResponse) XXX_DiscardUnknown()
- func (m *MsgSupplyCollateralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSupplyCollateralResponse) XXX_Merge(src proto.Message)
- func (*MsgSupplyCollateralResponse) XXX_MessageName() string
- func (m *MsgSupplyCollateralResponse) XXX_Size() int
- func (m *MsgSupplyCollateralResponse) XXX_Unmarshal(b []byte) error
- type MsgSupplyResponse
- func (*MsgSupplyResponse) Descriptor() ([]byte, []int)
- func (m *MsgSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSupplyResponse) ProtoMessage()
- func (m *MsgSupplyResponse) Reset()
- func (m *MsgSupplyResponse) Size() (n int)
- func (m *MsgSupplyResponse) String() string
- func (m *MsgSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSupplyResponse) XXX_DiscardUnknown()
- func (m *MsgSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSupplyResponse) XXX_Merge(src proto.Message)
- func (*MsgSupplyResponse) XXX_MessageName() string
- func (m *MsgSupplyResponse) XXX_Size() int
- func (m *MsgSupplyResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdraw
- func (*MsgWithdraw) Descriptor() ([]byte, []int)
- func (msg *MsgWithdraw) GetSignBytes() []byte
- func (msg *MsgWithdraw) GetSigners() []sdk.AccAddress
- func (m *MsgWithdraw) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdraw) ProtoMessage()
- func (m *MsgWithdraw) Reset()
- func (msg MsgWithdraw) Route() string
- func (m *MsgWithdraw) Size() (n int)
- func (m *MsgWithdraw) String() string
- func (msg MsgWithdraw) Type() string
- func (m *MsgWithdraw) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdraw) ValidateBasic() error
- func (m *MsgWithdraw) XXX_DiscardUnknown()
- func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdraw) XXX_Merge(src proto.Message)
- func (*MsgWithdraw) XXX_MessageName() string
- func (m *MsgWithdraw) XXX_Size() int
- func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error
- type MsgWithdrawResponse
- func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawResponse) ProtoMessage()
- func (m *MsgWithdrawResponse) Reset()
- func (m *MsgWithdrawResponse) Size() (n int)
- func (m *MsgWithdrawResponse) String() string
- func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message)
- func (*MsgWithdrawResponse) XXX_MessageName() string
- func (m *MsgWithdrawResponse) XXX_Size() int
- func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error
- type OracleKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *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 PriceMode
- type QueryAccountBalances
- func (*QueryAccountBalances) Descriptor() ([]byte, []int)
- func (m *QueryAccountBalances) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountBalances) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountBalances) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountBalances) ProtoMessage()
- func (m *QueryAccountBalances) Reset()
- func (m *QueryAccountBalances) Size() (n int)
- func (m *QueryAccountBalances) String() string
- func (m *QueryAccountBalances) Unmarshal(dAtA []byte) error
- func (m *QueryAccountBalances) XXX_DiscardUnknown()
- func (m *QueryAccountBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountBalances) XXX_Merge(src proto.Message)
- func (m *QueryAccountBalances) XXX_Size() int
- func (m *QueryAccountBalances) XXX_Unmarshal(b []byte) error
- type QueryAccountBalancesResponse
- func (*QueryAccountBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountBalancesResponse) ProtoMessage()
- func (m *QueryAccountBalancesResponse) Reset()
- func (m *QueryAccountBalancesResponse) Size() (n int)
- func (m *QueryAccountBalancesResponse) String() string
- func (m *QueryAccountBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryAccountBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountBalancesResponse) XXX_Size() int
- func (m *QueryAccountBalancesResponse) XXX_Unmarshal(b []byte) error
- type QueryAccountSummary
- func (*QueryAccountSummary) Descriptor() ([]byte, []int)
- func (m *QueryAccountSummary) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountSummary) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountSummary) ProtoMessage()
- func (m *QueryAccountSummary) Reset()
- func (m *QueryAccountSummary) Size() (n int)
- func (m *QueryAccountSummary) String() string
- func (m *QueryAccountSummary) Unmarshal(dAtA []byte) error
- func (m *QueryAccountSummary) XXX_DiscardUnknown()
- func (m *QueryAccountSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountSummary) XXX_Merge(src proto.Message)
- func (m *QueryAccountSummary) XXX_Size() int
- func (m *QueryAccountSummary) XXX_Unmarshal(b []byte) error
- type QueryAccountSummaryResponse
- func (*QueryAccountSummaryResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountSummaryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountSummaryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountSummaryResponse) ProtoMessage()
- func (m *QueryAccountSummaryResponse) Reset()
- func (m *QueryAccountSummaryResponse) Size() (n int)
- func (m *QueryAccountSummaryResponse) String() string
- func (m *QueryAccountSummaryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountSummaryResponse) XXX_DiscardUnknown()
- func (m *QueryAccountSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountSummaryResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountSummaryResponse) XXX_Size() int
- func (m *QueryAccountSummaryResponse) XXX_Unmarshal(b []byte) error
- type QueryBadDebts
- func (*QueryBadDebts) Descriptor() ([]byte, []int)
- func (m *QueryBadDebts) Marshal() (dAtA []byte, err error)
- func (m *QueryBadDebts) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBadDebts) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBadDebts) ProtoMessage()
- func (m *QueryBadDebts) Reset()
- func (m *QueryBadDebts) Size() (n int)
- func (m *QueryBadDebts) String() string
- func (m *QueryBadDebts) Unmarshal(dAtA []byte) error
- func (m *QueryBadDebts) XXX_DiscardUnknown()
- func (m *QueryBadDebts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBadDebts) XXX_Merge(src proto.Message)
- func (m *QueryBadDebts) XXX_Size() int
- func (m *QueryBadDebts) XXX_Unmarshal(b []byte) error
- type QueryBadDebtsResponse
- func (*QueryBadDebtsResponse) Descriptor() ([]byte, []int)
- func (m *QueryBadDebtsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBadDebtsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBadDebtsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBadDebtsResponse) ProtoMessage()
- func (m *QueryBadDebtsResponse) Reset()
- func (m *QueryBadDebtsResponse) Size() (n int)
- func (m *QueryBadDebtsResponse) String() string
- func (m *QueryBadDebtsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBadDebtsResponse) XXX_DiscardUnknown()
- func (m *QueryBadDebtsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBadDebtsResponse) XXX_Merge(src proto.Message)
- func (m *QueryBadDebtsResponse) XXX_Size() int
- func (m *QueryBadDebtsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryInspect
- func (*QueryInspect) Descriptor() ([]byte, []int)
- func (m *QueryInspect) Marshal() (dAtA []byte, err error)
- func (m *QueryInspect) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInspect) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInspect) ProtoMessage()
- func (m *QueryInspect) Reset()
- func (m *QueryInspect) Size() (n int)
- func (m *QueryInspect) String() string
- func (m *QueryInspect) Unmarshal(dAtA []byte) error
- func (m *QueryInspect) XXX_DiscardUnknown()
- func (m *QueryInspect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInspect) XXX_Merge(src proto.Message)
- func (m *QueryInspect) XXX_Size() int
- func (m *QueryInspect) XXX_Unmarshal(b []byte) error
- type QueryInspectResponse
- func (*QueryInspectResponse) Descriptor() ([]byte, []int)
- func (m *QueryInspectResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInspectResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInspectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInspectResponse) ProtoMessage()
- func (m *QueryInspectResponse) Reset()
- func (m *QueryInspectResponse) Size() (n int)
- func (m *QueryInspectResponse) String() string
- func (m *QueryInspectResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInspectResponse) XXX_DiscardUnknown()
- func (m *QueryInspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInspectResponse) XXX_Merge(src proto.Message)
- func (m *QueryInspectResponse) XXX_Size() int
- func (m *QueryInspectResponse) XXX_Unmarshal(b []byte) error
- type QueryLiquidationTargets
- func (*QueryLiquidationTargets) Descriptor() ([]byte, []int)
- func (m *QueryLiquidationTargets) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidationTargets) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidationTargets) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidationTargets) ProtoMessage()
- func (m *QueryLiquidationTargets) Reset()
- func (m *QueryLiquidationTargets) Size() (n int)
- func (m *QueryLiquidationTargets) String() string
- func (m *QueryLiquidationTargets) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidationTargets) XXX_DiscardUnknown()
- func (m *QueryLiquidationTargets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidationTargets) XXX_Merge(src proto.Message)
- func (m *QueryLiquidationTargets) XXX_Size() int
- func (m *QueryLiquidationTargets) XXX_Unmarshal(b []byte) error
- type QueryLiquidationTargetsResponse
- func (*QueryLiquidationTargetsResponse) Descriptor() ([]byte, []int)
- 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 QueryMarketSummary
- func (*QueryMarketSummary) Descriptor() ([]byte, []int)
- func (m *QueryMarketSummary) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketSummary) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketSummary) ProtoMessage()
- func (m *QueryMarketSummary) Reset()
- func (m *QueryMarketSummary) Size() (n int)
- func (m *QueryMarketSummary) String() string
- func (m *QueryMarketSummary) Unmarshal(dAtA []byte) error
- func (m *QueryMarketSummary) XXX_DiscardUnknown()
- func (m *QueryMarketSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketSummary) XXX_Merge(src proto.Message)
- func (m *QueryMarketSummary) XXX_Size() int
- func (m *QueryMarketSummary) XXX_Unmarshal(b []byte) error
- type QueryMarketSummaryResponse
- func (*QueryMarketSummaryResponse) Descriptor() ([]byte, []int)
- func (m *QueryMarketSummaryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketSummaryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketSummaryResponse) ProtoMessage()
- func (m *QueryMarketSummaryResponse) Reset()
- func (m *QueryMarketSummaryResponse) Size() (n int)
- func (m *QueryMarketSummaryResponse) String() string
- func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMarketSummaryResponse) XXX_DiscardUnknown()
- func (m *QueryMarketSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketSummaryResponse) XXX_Merge(src proto.Message)
- func (m *QueryMarketSummaryResponse) XXX_Size() int
- func (m *QueryMarketSummaryResponse) XXX_Unmarshal(b []byte) error
- type QueryMaxBorrow
- func (*QueryMaxBorrow) Descriptor() ([]byte, []int)
- func (m *QueryMaxBorrow) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxBorrow) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxBorrow) ProtoMessage()
- func (m *QueryMaxBorrow) Reset()
- func (m *QueryMaxBorrow) Size() (n int)
- func (m *QueryMaxBorrow) String() string
- func (m *QueryMaxBorrow) Unmarshal(dAtA []byte) error
- func (m *QueryMaxBorrow) XXX_DiscardUnknown()
- func (m *QueryMaxBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxBorrow) XXX_Merge(src proto.Message)
- func (m *QueryMaxBorrow) XXX_Size() int
- func (m *QueryMaxBorrow) XXX_Unmarshal(b []byte) error
- type QueryMaxBorrowResponse
- func (*QueryMaxBorrowResponse) Descriptor() ([]byte, []int)
- func (m *QueryMaxBorrowResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxBorrowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxBorrowResponse) ProtoMessage()
- func (m *QueryMaxBorrowResponse) Reset()
- func (m *QueryMaxBorrowResponse) Size() (n int)
- func (m *QueryMaxBorrowResponse) String() string
- func (m *QueryMaxBorrowResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMaxBorrowResponse) XXX_DiscardUnknown()
- func (m *QueryMaxBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxBorrowResponse) XXX_Merge(src proto.Message)
- func (m *QueryMaxBorrowResponse) XXX_Size() int
- func (m *QueryMaxBorrowResponse) XXX_Unmarshal(b []byte) error
- type QueryMaxWithdraw
- func (*QueryMaxWithdraw) Descriptor() ([]byte, []int)
- func (m *QueryMaxWithdraw) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxWithdraw) ProtoMessage()
- func (m *QueryMaxWithdraw) Reset()
- func (m *QueryMaxWithdraw) Size() (n int)
- func (m *QueryMaxWithdraw) String() string
- func (m *QueryMaxWithdraw) Unmarshal(dAtA []byte) error
- func (q QueryMaxWithdraw) ValidateBasic() error
- func (m *QueryMaxWithdraw) XXX_DiscardUnknown()
- func (m *QueryMaxWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxWithdraw) XXX_Merge(src proto.Message)
- func (m *QueryMaxWithdraw) XXX_Size() int
- func (m *QueryMaxWithdraw) XXX_Unmarshal(b []byte) error
- type QueryMaxWithdrawResponse
- func (*QueryMaxWithdrawResponse) Descriptor() ([]byte, []int)
- func (m *QueryMaxWithdrawResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxWithdrawResponse) ProtoMessage()
- func (m *QueryMaxWithdrawResponse) Reset()
- func (m *QueryMaxWithdrawResponse) Size() (n int)
- func (m *QueryMaxWithdrawResponse) String() string
- func (m *QueryMaxWithdrawResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMaxWithdrawResponse) XXX_DiscardUnknown()
- func (m *QueryMaxWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxWithdrawResponse) XXX_Merge(src proto.Message)
- func (m *QueryMaxWithdrawResponse) XXX_Size() int
- func (m *QueryMaxWithdrawResponse) XXX_Unmarshal(b []byte) error
- type QueryParams
- func (*QueryParams) Descriptor() ([]byte, []int)
- func (m *QueryParams) Marshal() (dAtA []byte, err error)
- func (m *QueryParams) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParams) ProtoMessage()
- func (m *QueryParams) Reset()
- func (m *QueryParams) Size() (n int)
- func (m *QueryParams) String() string
- func (m *QueryParams) Unmarshal(dAtA []byte) error
- func (m *QueryParams) XXX_DiscardUnknown()
- func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParams) XXX_Merge(src proto.Message)
- func (m *QueryParams) XXX_Size() int
- func (m *QueryParams) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- 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) 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 QueryServer
- type QuerySpecialAssets
- func (*QuerySpecialAssets) Descriptor() ([]byte, []int)
- func (m *QuerySpecialAssets) Marshal() (dAtA []byte, err error)
- func (m *QuerySpecialAssets) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpecialAssets) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpecialAssets) ProtoMessage()
- func (m *QuerySpecialAssets) Reset()
- func (m *QuerySpecialAssets) Size() (n int)
- func (m *QuerySpecialAssets) String() string
- func (m *QuerySpecialAssets) Unmarshal(dAtA []byte) error
- func (m *QuerySpecialAssets) XXX_DiscardUnknown()
- func (m *QuerySpecialAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpecialAssets) XXX_Merge(src proto.Message)
- func (m *QuerySpecialAssets) XXX_Size() int
- func (m *QuerySpecialAssets) XXX_Unmarshal(b []byte) error
- type QuerySpecialAssetsResponse
- func (*QuerySpecialAssetsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySpecialAssetsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySpecialAssetsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpecialAssetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpecialAssetsResponse) ProtoMessage()
- func (m *QuerySpecialAssetsResponse) Reset()
- func (m *QuerySpecialAssetsResponse) Size() (n int)
- func (m *QuerySpecialAssetsResponse) String() string
- func (m *QuerySpecialAssetsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySpecialAssetsResponse) XXX_DiscardUnknown()
- func (m *QuerySpecialAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpecialAssetsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySpecialAssetsResponse) XXX_Size() int
- func (m *QuerySpecialAssetsResponse) XXX_Unmarshal(b []byte) error
- type RiskInfo
- func (*RiskInfo) Descriptor() ([]byte, []int)
- func (m *RiskInfo) Marshal() (dAtA []byte, err error)
- func (m *RiskInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RiskInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RiskInfo) ProtoMessage()
- func (m *RiskInfo) Reset()
- func (m *RiskInfo) Size() (n int)
- func (m *RiskInfo) String() string
- func (m *RiskInfo) Unmarshal(dAtA []byte) error
- func (m *RiskInfo) XXX_DiscardUnknown()
- func (m *RiskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RiskInfo) XXX_Merge(src proto.Message)
- func (m *RiskInfo) XXX_Size() int
- func (m *RiskInfo) XXX_Unmarshal(b []byte) error
- type SpecialAssetPair
- func (*SpecialAssetPair) Descriptor() ([]byte, []int)
- func (this *SpecialAssetPair) Equal(that interface{}) bool
- func (m *SpecialAssetPair) Marshal() (dAtA []byte, err error)
- func (m *SpecialAssetPair) MarshalTo(dAtA []byte) (int, error)
- func (m *SpecialAssetPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SpecialAssetPair) ProtoMessage()
- func (m *SpecialAssetPair) Reset()
- func (m *SpecialAssetPair) Size() (n int)
- func (m *SpecialAssetPair) String() string
- func (m *SpecialAssetPair) Unmarshal(dAtA []byte) error
- func (p SpecialAssetPair) Validate() error
- func (m *SpecialAssetPair) XXX_DiscardUnknown()
- func (m *SpecialAssetPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpecialAssetPair) XXX_Merge(src proto.Message)
- func (m *SpecialAssetPair) XXX_Size() int
- func (m *SpecialAssetPair) XXX_Unmarshal(b []byte) error
- type SpecialAssetSet
- func (*SpecialAssetSet) Descriptor() ([]byte, []int)
- func (this *SpecialAssetSet) Equal(that interface{}) bool
- func (m *SpecialAssetSet) Marshal() (dAtA []byte, err error)
- func (m *SpecialAssetSet) MarshalTo(dAtA []byte) (int, error)
- func (m *SpecialAssetSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SpecialAssetSet) ProtoMessage()
- func (m *SpecialAssetSet) Reset()
- func (m *SpecialAssetSet) Size() (n int)
- func (m *SpecialAssetSet) String() string
- func (m *SpecialAssetSet) Unmarshal(dAtA []byte) error
- func (s SpecialAssetSet) Validate() error
- func (m *SpecialAssetSet) XXX_DiscardUnknown()
- func (m *SpecialAssetSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpecialAssetSet) XXX_Merge(src proto.Message)
- func (m *SpecialAssetSet) XXX_Size() int
- func (m *SpecialAssetSet) XXX_Unmarshal(b []byte) error
- type Token
- func (t Token) AssertBorrowEnabled() error
- func (t Token) AssertNotBlacklisted() error
- func (t Token) AssertSupplyEnabled() error
- func (t Token) BorrowFactor() sdk.Dec
- func (*Token) Descriptor() ([]byte, []int)
- func (this *Token) Equal(that interface{}) bool
- 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 TokenHooks
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Borrow(ctx context.Context, req *MsgBorrow) (*MsgBorrowResponse, error)
- func (*UnimplementedMsgServer) Collateralize(ctx context.Context, req *MsgCollateralize) (*MsgCollateralizeResponse, error)
- func (*UnimplementedMsgServer) Decollateralize(ctx context.Context, req *MsgDecollateralize) (*MsgDecollateralizeResponse, error)
- func (*UnimplementedMsgServer) GovSetParams(ctx context.Context, req *MsgGovSetParams) (*MsgGovSetParamsResponse, error)
- func (*UnimplementedMsgServer) GovUpdateRegistry(ctx context.Context, req *MsgGovUpdateRegistry) (*MsgGovUpdateRegistryResponse, error)
- func (*UnimplementedMsgServer) GovUpdateSpecialAssets(ctx context.Context, req *MsgGovUpdateSpecialAssets) (*MsgGovUpdateSpecialAssetsResponse, error)
- func (*UnimplementedMsgServer) LeveragedLiquidate(ctx context.Context, req *MsgLeveragedLiquidate) (*MsgLeveragedLiquidateResponse, error)
- func (*UnimplementedMsgServer) Liquidate(ctx context.Context, req *MsgLiquidate) (*MsgLiquidateResponse, error)
- func (*UnimplementedMsgServer) MaxBorrow(ctx context.Context, req *MsgMaxBorrow) (*MsgMaxBorrowResponse, error)
- func (*UnimplementedMsgServer) MaxWithdraw(ctx context.Context, req *MsgMaxWithdraw) (*MsgMaxWithdrawResponse, error)
- func (*UnimplementedMsgServer) Repay(ctx context.Context, req *MsgRepay) (*MsgRepayResponse, error)
- func (*UnimplementedMsgServer) Supply(ctx context.Context, req *MsgSupply) (*MsgSupplyResponse, error)
- func (*UnimplementedMsgServer) SupplyCollateral(ctx context.Context, req *MsgSupplyCollateral) (*MsgSupplyCollateralResponse, error)
- func (*UnimplementedMsgServer) Withdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AccountBalances(ctx context.Context, req *QueryAccountBalances) (*QueryAccountBalancesResponse, error)
- func (*UnimplementedQueryServer) AccountSummary(ctx context.Context, req *QueryAccountSummary) (*QueryAccountSummaryResponse, error)
- func (*UnimplementedQueryServer) BadDebts(ctx context.Context, req *QueryBadDebts) (*QueryBadDebtsResponse, error)
- func (*UnimplementedQueryServer) Inspect(ctx context.Context, req *QueryInspect) (*QueryInspectResponse, error)
- func (*UnimplementedQueryServer) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargets) (*QueryLiquidationTargetsResponse, error)
- func (*UnimplementedQueryServer) MarketSummary(ctx context.Context, req *QueryMarketSummary) (*QueryMarketSummaryResponse, error)
- func (*UnimplementedQueryServer) MaxBorrow(ctx context.Context, req *QueryMaxBorrow) (*QueryMaxBorrowResponse, error)
- func (*UnimplementedQueryServer) MaxWithdraw(ctx context.Context, req *QueryMaxWithdraw) (*QueryMaxWithdrawResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RegisteredTokens(ctx context.Context, req *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error)
- func (*UnimplementedQueryServer) SpecialAssets(ctx context.Context, req *QuerySpecialAssets) (*QuerySpecialAssetsResponse, error)
- type WeightedDecCoin
- type WeightedDecCoins
- type WeightedNormalPair
- type WeightedNormalPairs
- type WeightedSpecialPair
- type WeightedSpecialPairs
Constants ¶
const ( // ModuleName defines the module name ModuleName = "leverage" // StoreKey defines the primary module store key StoreKey = ModuleName )
const FlagEnableLiquidatorQuery = "enable-liquidator-query"
const SecondsPerYear = 31536000
Variables ¶
var ( // 1XX = General Validation ErrEmptyAddress = errors.Register(ModuleName, 100, "empty address") ErrNilAsset = errors.Register(ModuleName, 101, "nil asset") ErrGetAmount = errors.Register(ModuleName, 102, "retrieved invalid amount") ErrSetAmount = errors.Register(ModuleName, 103, "cannot set invalid amount") ErrInvalidPriceMode = errors.Register(ModuleName, 104, "invalid price mode") // 2XX = Token Registry ErrNotRegisteredToken = errors.Register(ModuleName, 200, "not a registered Token") ErrUToken = errors.Register(ModuleName, 201, "denom should not be a uToken") ErrNotUToken = errors.Register(ModuleName, 202, "denom should be a uToken") ErrSupplyNotAllowed = errors.Register(ModuleName, 203, "supplying of Token disabled") ErrBorrowNotAllowed = errors.Register(ModuleName, 204, "borrowing of Token disabled") ErrBlacklisted = errors.Register(ModuleName, 205, "blacklisted Token") ErrCollateralWeightZero = errors.Register( ModuleName, 206, "collateral weight of Token is zero: can't be used as a collateral", ) ErrDuplicateToken = errors.Register(ModuleName, 207, "duplicate token") ErrEmptyAddAndUpdateTokens = errors.Register(ModuleName, 208, "empty add and update tokens") // 3XX = User Positions ErrInsufficientBalance = errors.Register(ModuleName, 300, "insufficient balance") ErrInsufficientCollateral = errors.Register(ModuleName, 301, "insufficient collateral") ErrLiquidationRepayZero = errors.Register(ModuleName, 303, "liquidation would repay zero tokens") ErrBondedCollateral = errors.Register(ModuleName, 304, "collateral is bonded to incentive module") // 4XX = Price Sensitive ErrBadValue = errors.Register(ModuleName, 400, "bad USD value") ErrInvalidOraclePrice = errors.Register(ModuleName, 401, "invalid oracle price") ErrUndercollateralized = errors.Register(ModuleName, 402, "borrow positions are undercollateralized") ErrLiquidationIneligible = errors.Register(ModuleName, 403, "borrower not eligible for liquidation") ErrNoHistoricMedians = errors.Register(ModuleName, 405, "insufficient historic medians available") // 5XX = Market Conditions ErrLendingPoolInsufficient = errors.Register(ModuleName, 500, "lending pool insufficient") ErrMaxSupplyUtilization = errors.Register(ModuleName, 501, "market would exceed MaxSupplyUtilization") ErrMinCollateralLiquidity = errors.Register(ModuleName, 502, "market would fall below MinCollateralLiquidity") ErrMaxSupply = errors.Register(ModuleName, 504, "market would exceed MaxSupply") // 6XX = Internal Failsafes ErrInvalidUtilization = errors.Register(ModuleName, 600, "invalid token utilization") ErrNegativeTotalBorrowed = errors.Register(ModuleName, 601, "total borrowed was negative") ErrNegativeAPY = errors.Register(ModuleName, 602, "negative APY") ErrNegativeTimeElapsed = errors.Register(ModuleName, 603, "negative time elapsed since last interest time") ErrInvalidExchangeRate = errors.Register(ModuleName, 604, "exchange rate less than one") ErrInconsistentTotalBorrow = errors.Register(ModuleName, 605, "total adjusted borrow inconsistency") ErrExcessiveTimeElapsed = errors.Register(ModuleName, 606, "excessive time elapsed since last interest time") ErrIncentiveKeeperNotSet = errors.Register(ModuleName, 607, "incentive keeper not set") // 7XX = Disabled Functionality ErrNotLiquidatorNode = errors.Register(ModuleName, 700, "node has disabled liquidator queries") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( KeyPrefixRegisteredToken = []byte{0x01} KeyPrefixAdjustedBorrow = []byte{0x02} KeyPrefixCollateralAmount = []byte{0x04} KeyPrefixReserveAmount = []byte{0x05} KeyPrefixLastInterestTime = []byte{0x06} KeyPrefixBadDebt = []byte{0x07} KeyPrefixInterestScalar = []byte{0x08} KeyPrefixAdjustedTotalBorrow = []byte{0x09} KeyPrefixUtokenSupply = []byte{0x0A} KeyPrefixSpecialAssetPair = []byte{0x0B} KeyParams = []byte{0x0C} )
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 ( 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, Amino // is required for ledger signing of messages, and Kepler signing. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func AddressFromKey ¶
func AddressFromKey(key, prefix []byte) sdk.AccAddress
AddressFromKey extracts address from a key with the form prefix | lengthPrefixed(addr) | ...
func DenomFromKey ¶
DenomFromKey extracts denom from a key with the form prefix | denom | 0x00
func DenomFromKeyWithAddress ¶
DenomFromKeyWithAddress extracts denom from a key with the form prefix | lengthPrefixed(addr) | denom | 0x00
func KeyAdjustedBorrow ¶
func KeyAdjustedBorrow(borrowerAddr sdk.AccAddress, tokenDenom string) []byte
KeyAdjustedBorrow returns a KVStore key for getting and setting an adjusted borrow for a denom and borrower address.
func KeyAdjustedBorrowNoDenom ¶
func KeyAdjustedBorrowNoDenom(borrower sdk.AccAddress) []byte
KeyAdjustedBorrowNoDenom returns the common prefix used by all borrows associated with a given borrower address.
func KeyAdjustedTotalBorrow ¶
KeyAdjustedTotalBorrow returns a KVStore key for getting and setting the total adjusted borrows for a given token.
func KeyBadDebt ¶
func KeyBadDebt(denom string, borrower sdk.AccAddress) []byte
KeyBadDebt returns a KVStore key for tracking an address with unpaid bad debt
func KeyCollateralAmount ¶
func KeyCollateralAmount(addr sdk.AccAddress, uTokenDenom string) []byte
KeyCollateralAmount returns a KVStore key for getting and setting the amount of collateral stored for a user in a given denom.
func KeyCollateralAmountNoDenom ¶
func KeyCollateralAmountNoDenom(addr sdk.AccAddress) []byte
KeyCollateralAmountNoDenom returns the common prefix used by all collateral associated with a given address.
func KeyInterestScalar ¶
KeyInterestScalar returns a KVStore key for getting and setting the interest scalar for a given token.
func KeyRegisteredToken ¶
KeyRegisteredToken returns a KVStore key for getting and setting a Token.
func KeyReserveAmount ¶
KeyReserveAmount returns a KVStore key for getting and setting the amount reserved of a a given token.
func KeySpecialAssetPair ¶
KeySpecialAssetPair returns a KVStore key for getting and setting a SpecialAssetPair.
func KeySpecialAssetPairOneDenom ¶
KeySpecialAssetPairOneDenom returns the shared prefix for all special asset pairs affecting a single denom.
func KeyUTokenSupply ¶
KeyUTokenSupply returns a KVStore key for getting and setting a utoken's total supply.
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 ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateBaseDenom ¶
ValidateBaseDenom validates a denom and ensures it is not a uToken.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}
AccountKeeper defines the expected account keeper used for leverage simulations (noalias)
type AccountPosition ¶
type AccountPosition struct {
// contains filtered or unexported fields
}
AccountPosition must be created by NewAccountPosition for proper initialization. Contains an account's borrowed and collateral values, arranged into special asset pairs and regular assets. Each list will always be sorted by collateral weight. Also caches some relevant values that will be reused in computation, like token settings and the borrower's total borrowed value and collateral value.
func NewAccountPosition ¶
func NewAccountPosition( tokens []Token, pairs []SpecialAssetPair, unsortedCollateralValue, unsortedBorrowValue sdk.DecCoins, isLiquidation bool, minimumBorrowFactor sdk.Dec, ) (AccountPosition, error)
NewAccountPosition creates and sorts an account position based on token settings, special asset pairs, and the collateral and borrowed value of each token in an account. Once this structure is created, borrow limit calculations can be performed without keeper or context.
func (*AccountPosition) BorrowedValue ¶
func (ap *AccountPosition) BorrowedValue() sdk.Dec
BorrowedValue returns an account's total USD value borrowed
func (*AccountPosition) CollateralValue ¶
func (ap *AccountPosition) CollateralValue() sdk.Dec
CollateralValue returns an account's collateral's total USD value
func (*AccountPosition) HasCollateral ¶
func (ap *AccountPosition) HasCollateral(denom string) bool
HasCollateral returns true if a position has nonzero collateral value of a given token in special pairs, normal pairs, or unpaired collateral.
func (*AccountPosition) IsHealthy ¶
func (ap *AccountPosition) IsHealthy() bool
IsHealthy returns true if an account's borrowed value is less than its borrow limit.
func (*AccountPosition) Limit ¶
func (ap *AccountPosition) Limit() sdk.Dec
Limit computes the borrow limit or liquidation threshold of a position, depending on position.isForLiquidation. The result may be less or more than its borrowed value.
func (*AccountPosition) MaxBorrow ¶
func (ap *AccountPosition) MaxBorrow(denom string) (sdk.Dec, error)
MaxBorrow computes the maximum USD value of a given base token denom a position can borrow without exceeding its borrow limit. Mutates the AccountPosition to show the new borrow amount, meaning subsequent calls to MaxBorrow will return zero.
func (*AccountPosition) MaxWithdraw ¶
func (ap *AccountPosition) MaxWithdraw(denom string) (sdk.Dec, error)
MaxWithdraw computes the maximum USD value of a given base token denom a position can withdraw from its collateral.
func (*AccountPosition) String ¶
func (ap *AccountPosition) String() string
func (*AccountPosition) Validate ¶
func (ap *AccountPosition) Validate() error
validates basic properties of a position that should always be true
type AdjustedBorrow ¶
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 ¶
func NewAdjustedBorrow(addr string, amount sdk.DecCoin) AdjustedBorrow
NewAdjustedBorrow creates the Borrow struct used in GenesisState
func (*AdjustedBorrow) Descriptor ¶
func (*AdjustedBorrow) Descriptor() ([]byte, []int)
func (*AdjustedBorrow) Marshal ¶
func (m *AdjustedBorrow) Marshal() (dAtA []byte, err error)
func (*AdjustedBorrow) MarshalToSizedBuffer ¶
func (m *AdjustedBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AdjustedBorrow) ProtoMessage ¶
func (*AdjustedBorrow) ProtoMessage()
func (*AdjustedBorrow) Reset ¶
func (m *AdjustedBorrow) Reset()
func (*AdjustedBorrow) Size ¶
func (m *AdjustedBorrow) Size() (n int)
func (*AdjustedBorrow) String ¶
func (m *AdjustedBorrow) String() string
func (*AdjustedBorrow) Unmarshal ¶
func (m *AdjustedBorrow) Unmarshal(dAtA []byte) error
func (*AdjustedBorrow) XXX_DiscardUnknown ¶
func (m *AdjustedBorrow) XXX_DiscardUnknown()
func (*AdjustedBorrow) XXX_Marshal ¶
func (m *AdjustedBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AdjustedBorrow) XXX_Merge ¶
func (m *AdjustedBorrow) XXX_Merge(src proto.Message)
func (*AdjustedBorrow) XXX_Size ¶
func (m *AdjustedBorrow) XXX_Size() int
func (*AdjustedBorrow) XXX_Unmarshal ¶
func (m *AdjustedBorrow) XXX_Unmarshal(b []byte) error
type BadDebt ¶
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 ¶
NewBadDebt creates the BadDebt struct used in GenesisState
func (*BadDebt) Descriptor ¶
func (*BadDebt) MarshalToSizedBuffer ¶
func (*BadDebt) ProtoMessage ¶
func (*BadDebt) ProtoMessage()
func (*BadDebt) XXX_DiscardUnknown ¶
func (m *BadDebt) XXX_DiscardUnknown()
func (*BadDebt) XXX_Marshal ¶
func (*BadDebt) XXX_Unmarshal ¶
type BankKeeper ¶
type BankKeeper interface { 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, toAddr sdk.AccAddress, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper defines the expected x/bank keeper interface.
type BondHooks ¶
type BondHooks interface { // Used to ensure bonded or unbonding collateral cannot be decollateralized or withdrawn. GetBonded(ctx sdk.Context, addr sdk.AccAddress, uDenom string) sdkmath.Int // Used when liquidating an account, and collateral must be unbonded instantly until bonded amount // is no greater than the account's remaining collateral uTokens. ForceUnbondTo(ctx sdk.Context, addr sdk.AccAddress, uToken sdk.Coin) error }
BondHooks defines hooks leverage module can call on other modules to determine how much of a user's uToken collateral is bonded (i.e. not allowed to be withrdawn) or to force this amount to be reduced in the event of a liquidation.
type Collateral ¶
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 ¶
func NewCollateral(addr string, amount sdk.Coin) Collateral
NewCollateral creates the Collateral struct used in GenesisState
func (*Collateral) Descriptor ¶
func (*Collateral) Descriptor() ([]byte, []int)
func (*Collateral) Marshal ¶
func (m *Collateral) Marshal() (dAtA []byte, err error)
func (*Collateral) MarshalToSizedBuffer ¶
func (m *Collateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Collateral) ProtoMessage ¶
func (*Collateral) ProtoMessage()
func (*Collateral) Reset ¶
func (m *Collateral) Reset()
func (*Collateral) Size ¶
func (m *Collateral) Size() (n int)
func (*Collateral) String ¶
func (m *Collateral) String() string
func (*Collateral) Unmarshal ¶
func (m *Collateral) Unmarshal(dAtA []byte) error
func (*Collateral) XXX_DiscardUnknown ¶
func (m *Collateral) XXX_DiscardUnknown()
func (*Collateral) XXX_Marshal ¶
func (m *Collateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Collateral) XXX_Merge ¶
func (m *Collateral) XXX_Merge(src proto.Message)
func (*Collateral) XXX_Size ¶
func (m *Collateral) XXX_Size() int
func (*Collateral) XXX_Unmarshal ¶
func (m *Collateral) XXX_Unmarshal(b []byte) error
type DecBalances ¶
type DecBalances struct { // Collateral contains all uTokens the account has collateralized. It has been converted from uTokens to tokens. Collateral github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=collateral,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"collateral"` // Borrowed contains all tokens the account has borrowed, including interest owed. Borrowed github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=borrowed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"borrowed"` }
DecBalances contains an account's position denoted in symbol denom tokens.
func (*DecBalances) Descriptor ¶
func (*DecBalances) Descriptor() ([]byte, []int)
func (*DecBalances) Marshal ¶
func (m *DecBalances) Marshal() (dAtA []byte, err error)
func (*DecBalances) MarshalToSizedBuffer ¶
func (m *DecBalances) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DecBalances) ProtoMessage ¶
func (*DecBalances) ProtoMessage()
func (*DecBalances) Reset ¶
func (m *DecBalances) Reset()
func (*DecBalances) Size ¶
func (m *DecBalances) Size() (n int)
func (*DecBalances) String ¶
func (m *DecBalances) String() string
func (*DecBalances) Unmarshal ¶
func (m *DecBalances) Unmarshal(dAtA []byte) error
func (*DecBalances) XXX_DiscardUnknown ¶
func (m *DecBalances) XXX_DiscardUnknown()
func (*DecBalances) XXX_Marshal ¶
func (m *DecBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecBalances) XXX_Merge ¶
func (m *DecBalances) XXX_Merge(src proto.Message)
func (*DecBalances) XXX_Size ¶
func (m *DecBalances) XXX_Size() int
func (*DecBalances) XXX_Unmarshal ¶
func (m *DecBalances) XXX_Unmarshal(b []byte) error
type EventBorrow ¶
type EventBorrow struct { // Borrower bech32 address. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` // Asset borrowed. Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
EventBorrow is emitted on Msg/Borrow
func (*EventBorrow) Descriptor ¶
func (*EventBorrow) Descriptor() ([]byte, []int)
func (*EventBorrow) Marshal ¶
func (m *EventBorrow) Marshal() (dAtA []byte, err error)
func (*EventBorrow) MarshalToSizedBuffer ¶
func (m *EventBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBorrow) ProtoMessage ¶
func (*EventBorrow) ProtoMessage()
func (*EventBorrow) Reset ¶
func (m *EventBorrow) Reset()
func (*EventBorrow) Size ¶
func (m *EventBorrow) Size() (n int)
func (*EventBorrow) String ¶
func (m *EventBorrow) String() string
func (*EventBorrow) Unmarshal ¶
func (m *EventBorrow) Unmarshal(dAtA []byte) error
func (*EventBorrow) XXX_DiscardUnknown ¶
func (m *EventBorrow) XXX_DiscardUnknown()
func (*EventBorrow) XXX_Marshal ¶
func (m *EventBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBorrow) XXX_Merge ¶
func (m *EventBorrow) XXX_Merge(src proto.Message)
func (*EventBorrow) XXX_Size ¶
func (m *EventBorrow) XXX_Size() int
func (*EventBorrow) XXX_Unmarshal ¶
func (m *EventBorrow) XXX_Unmarshal(b []byte) error
type EventCollaterize ¶
type EventCollaterize struct { // Borrower bech32 address. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` // uToken provided as a collateral. Utoken types.Coin `protobuf:"bytes,2,opt,name=utoken,proto3" json:"utoken"` }
EventCollaterize is emitted on Msg/Collaterize
func (*EventCollaterize) Descriptor ¶
func (*EventCollaterize) Descriptor() ([]byte, []int)
func (*EventCollaterize) Marshal ¶
func (m *EventCollaterize) Marshal() (dAtA []byte, err error)
func (*EventCollaterize) MarshalToSizedBuffer ¶
func (m *EventCollaterize) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCollaterize) ProtoMessage ¶
func (*EventCollaterize) ProtoMessage()
func (*EventCollaterize) Reset ¶
func (m *EventCollaterize) Reset()
func (*EventCollaterize) Size ¶
func (m *EventCollaterize) Size() (n int)
func (*EventCollaterize) String ¶
func (m *EventCollaterize) String() string
func (*EventCollaterize) Unmarshal ¶
func (m *EventCollaterize) Unmarshal(dAtA []byte) error
func (*EventCollaterize) XXX_DiscardUnknown ¶
func (m *EventCollaterize) XXX_DiscardUnknown()
func (*EventCollaterize) XXX_Marshal ¶
func (m *EventCollaterize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCollaterize) XXX_Merge ¶
func (m *EventCollaterize) XXX_Merge(src proto.Message)
func (*EventCollaterize) XXX_Size ¶
func (m *EventCollaterize) XXX_Size() int
func (*EventCollaterize) XXX_Unmarshal ¶
func (m *EventCollaterize) XXX_Unmarshal(b []byte) error
type EventDecollaterize ¶
type EventDecollaterize struct { // Borrower bech32 address. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` // utoken removed from collateral. Utoken types.Coin `protobuf:"bytes,2,opt,name=utoken,proto3" json:"utoken"` }
EventDecollaterize is emitted on Msg/Decollateralize
func (*EventDecollaterize) Descriptor ¶
func (*EventDecollaterize) Descriptor() ([]byte, []int)
func (*EventDecollaterize) Marshal ¶
func (m *EventDecollaterize) Marshal() (dAtA []byte, err error)
func (*EventDecollaterize) MarshalTo ¶
func (m *EventDecollaterize) MarshalTo(dAtA []byte) (int, error)
func (*EventDecollaterize) MarshalToSizedBuffer ¶
func (m *EventDecollaterize) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDecollaterize) ProtoMessage ¶
func (*EventDecollaterize) ProtoMessage()
func (*EventDecollaterize) Reset ¶
func (m *EventDecollaterize) Reset()
func (*EventDecollaterize) Size ¶
func (m *EventDecollaterize) Size() (n int)
func (*EventDecollaterize) String ¶
func (m *EventDecollaterize) String() string
func (*EventDecollaterize) Unmarshal ¶
func (m *EventDecollaterize) Unmarshal(dAtA []byte) error
func (*EventDecollaterize) XXX_DiscardUnknown ¶
func (m *EventDecollaterize) XXX_DiscardUnknown()
func (*EventDecollaterize) XXX_Marshal ¶
func (m *EventDecollaterize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDecollaterize) XXX_Merge ¶
func (m *EventDecollaterize) XXX_Merge(src proto.Message)
func (*EventDecollaterize) XXX_Size ¶
func (m *EventDecollaterize) XXX_Size() int
func (*EventDecollaterize) XXX_Unmarshal ¶
func (m *EventDecollaterize) XXX_Unmarshal(b []byte) error
type EventFundOracle ¶
type EventFundOracle struct { // Assets sent to oracle module Assets []types.Coin `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets"` }
EventFundOracle is emitted when sending rewards to oracle module
func (*EventFundOracle) Descriptor ¶
func (*EventFundOracle) Descriptor() ([]byte, []int)
func (*EventFundOracle) Marshal ¶
func (m *EventFundOracle) Marshal() (dAtA []byte, err error)
func (*EventFundOracle) MarshalToSizedBuffer ¶
func (m *EventFundOracle) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventFundOracle) ProtoMessage ¶
func (*EventFundOracle) ProtoMessage()
func (*EventFundOracle) Reset ¶
func (m *EventFundOracle) Reset()
func (*EventFundOracle) Size ¶
func (m *EventFundOracle) Size() (n int)
func (*EventFundOracle) String ¶
func (m *EventFundOracle) String() string
func (*EventFundOracle) Unmarshal ¶
func (m *EventFundOracle) Unmarshal(dAtA []byte) error
func (*EventFundOracle) XXX_DiscardUnknown ¶
func (m *EventFundOracle) XXX_DiscardUnknown()
func (*EventFundOracle) XXX_Marshal ¶
func (m *EventFundOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventFundOracle) XXX_Merge ¶
func (m *EventFundOracle) XXX_Merge(src proto.Message)
func (*EventFundOracle) XXX_Size ¶
func (m *EventFundOracle) XXX_Size() int
func (*EventFundOracle) XXX_Unmarshal ¶
func (m *EventFundOracle) XXX_Unmarshal(b []byte) error
type EventInterestAccrual ¶
type EventInterestAccrual struct { BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // Unix timestamp (in seconds) Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` TotalInterest []types.Coin `protobuf:"bytes,3,rep,name=total_interest,json=totalInterest,proto3" json:"total_interest"` Reserved []types.Coin `protobuf:"bytes,4,rep,name=reserved,proto3" json:"reserved"` }
EventInterestAccrual is emitted when interest accrues in EndBlock
func (*EventInterestAccrual) Descriptor ¶
func (*EventInterestAccrual) Descriptor() ([]byte, []int)
func (*EventInterestAccrual) Marshal ¶
func (m *EventInterestAccrual) Marshal() (dAtA []byte, err error)
func (*EventInterestAccrual) MarshalTo ¶
func (m *EventInterestAccrual) MarshalTo(dAtA []byte) (int, error)
func (*EventInterestAccrual) MarshalToSizedBuffer ¶
func (m *EventInterestAccrual) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventInterestAccrual) ProtoMessage ¶
func (*EventInterestAccrual) ProtoMessage()
func (*EventInterestAccrual) Reset ¶
func (m *EventInterestAccrual) Reset()
func (*EventInterestAccrual) Size ¶
func (m *EventInterestAccrual) Size() (n int)
func (*EventInterestAccrual) String ¶
func (m *EventInterestAccrual) String() string
func (*EventInterestAccrual) Unmarshal ¶
func (m *EventInterestAccrual) Unmarshal(dAtA []byte) error
func (*EventInterestAccrual) XXX_DiscardUnknown ¶
func (m *EventInterestAccrual) XXX_DiscardUnknown()
func (*EventInterestAccrual) XXX_Marshal ¶
func (m *EventInterestAccrual) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventInterestAccrual) XXX_Merge ¶
func (m *EventInterestAccrual) XXX_Merge(src proto.Message)
func (*EventInterestAccrual) XXX_Size ¶
func (m *EventInterestAccrual) XXX_Size() int
func (*EventInterestAccrual) XXX_Unmarshal ¶
func (m *EventInterestAccrual) XXX_Unmarshal(b []byte) error
type EventLiquidate ¶
type EventLiquidate struct { // Liquidator bech32 address. Liquidator string `protobuf:"bytes,1,opt,name=liquidator,proto3" json:"liquidator,omitempty"` // Borrower bech32 address. Borrower string `protobuf:"bytes,2,opt,name=borrower,proto3" json:"borrower,omitempty"` // Assets liquidated from the borrower Liquidated types.Coin `protobuf:"bytes,3,opt,name=liquidated,proto3" json:"liquidated"` }
EventLiquidate is emitted on Msg/Liquidate
func (*EventLiquidate) Descriptor ¶
func (*EventLiquidate) Descriptor() ([]byte, []int)
func (*EventLiquidate) Marshal ¶
func (m *EventLiquidate) Marshal() (dAtA []byte, err error)
func (*EventLiquidate) MarshalToSizedBuffer ¶
func (m *EventLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventLiquidate) ProtoMessage ¶
func (*EventLiquidate) ProtoMessage()
func (*EventLiquidate) Reset ¶
func (m *EventLiquidate) Reset()
func (*EventLiquidate) Size ¶
func (m *EventLiquidate) Size() (n int)
func (*EventLiquidate) String ¶
func (m *EventLiquidate) String() string
func (*EventLiquidate) Unmarshal ¶
func (m *EventLiquidate) Unmarshal(dAtA []byte) error
func (*EventLiquidate) XXX_DiscardUnknown ¶
func (m *EventLiquidate) XXX_DiscardUnknown()
func (*EventLiquidate) XXX_Marshal ¶
func (m *EventLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventLiquidate) XXX_Merge ¶
func (m *EventLiquidate) XXX_Merge(src proto.Message)
func (*EventLiquidate) XXX_Size ¶
func (m *EventLiquidate) XXX_Size() int
func (*EventLiquidate) XXX_Unmarshal ¶
func (m *EventLiquidate) XXX_Unmarshal(b []byte) error
type EventRepay ¶
type EventRepay struct { // Borrower bech32 address. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` // Asset repaid Repaid types.Coin `protobuf:"bytes,2,opt,name=repaid,proto3" json:"repaid"` }
EventRepay is emitted on Msg/Repay
func (*EventRepay) Descriptor ¶
func (*EventRepay) Descriptor() ([]byte, []int)
func (*EventRepay) Marshal ¶
func (m *EventRepay) Marshal() (dAtA []byte, err error)
func (*EventRepay) MarshalToSizedBuffer ¶
func (m *EventRepay) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRepay) ProtoMessage ¶
func (*EventRepay) ProtoMessage()
func (*EventRepay) Reset ¶
func (m *EventRepay) Reset()
func (*EventRepay) Size ¶
func (m *EventRepay) Size() (n int)
func (*EventRepay) String ¶
func (m *EventRepay) String() string
func (*EventRepay) Unmarshal ¶
func (m *EventRepay) Unmarshal(dAtA []byte) error
func (*EventRepay) XXX_DiscardUnknown ¶
func (m *EventRepay) XXX_DiscardUnknown()
func (*EventRepay) XXX_Marshal ¶
func (m *EventRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRepay) XXX_Merge ¶
func (m *EventRepay) XXX_Merge(src proto.Message)
func (*EventRepay) XXX_Size ¶
func (m *EventRepay) XXX_Size() int
func (*EventRepay) XXX_Unmarshal ¶
func (m *EventRepay) XXX_Unmarshal(b []byte) error
type EventRepayBadDebt ¶
type EventRepayBadDebt struct { // Borrower bech32 address. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` // Asset repaid Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
EventRepayBadDebt is emitted when bad debt is detected and repayed (potentially partially)
func (*EventRepayBadDebt) Descriptor ¶
func (*EventRepayBadDebt) Descriptor() ([]byte, []int)
func (*EventRepayBadDebt) Marshal ¶
func (m *EventRepayBadDebt) Marshal() (dAtA []byte, err error)
func (*EventRepayBadDebt) MarshalTo ¶
func (m *EventRepayBadDebt) MarshalTo(dAtA []byte) (int, error)
func (*EventRepayBadDebt) MarshalToSizedBuffer ¶
func (m *EventRepayBadDebt) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRepayBadDebt) ProtoMessage ¶
func (*EventRepayBadDebt) ProtoMessage()
func (*EventRepayBadDebt) Reset ¶
func (m *EventRepayBadDebt) Reset()
func (*EventRepayBadDebt) Size ¶
func (m *EventRepayBadDebt) Size() (n int)
func (*EventRepayBadDebt) String ¶
func (m *EventRepayBadDebt) String() string
func (*EventRepayBadDebt) Unmarshal ¶
func (m *EventRepayBadDebt) Unmarshal(dAtA []byte) error
func (*EventRepayBadDebt) XXX_DiscardUnknown ¶
func (m *EventRepayBadDebt) XXX_DiscardUnknown()
func (*EventRepayBadDebt) XXX_Marshal ¶
func (m *EventRepayBadDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRepayBadDebt) XXX_Merge ¶
func (m *EventRepayBadDebt) XXX_Merge(src proto.Message)
func (*EventRepayBadDebt) XXX_Size ¶
func (m *EventRepayBadDebt) XXX_Size() int
func (*EventRepayBadDebt) XXX_Unmarshal ¶
func (m *EventRepayBadDebt) XXX_Unmarshal(b []byte) error
type EventReservesExhausted ¶
type EventReservesExhausted struct { // Borrower bech32 address. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` // Outstanding bad debt OutstandingDebt types.Coin `protobuf:"bytes,2,opt,name=outstanding_debt,json=outstandingDebt,proto3" json:"outstanding_debt"` // Module balance remaining ModuleBalance types.Coin `protobuf:"bytes,3,opt,name=module_balance,json=moduleBalance,proto3" json:"module_balance"` // Reserves remaining Reserves types.Coin `protobuf:"bytes,4,opt,name=reserves,proto3" json:"reserves"` }
EventReservesExhausted is emitted when the module reserves are exhausted by paying off bad debts.
func (*EventReservesExhausted) Descriptor ¶
func (*EventReservesExhausted) Descriptor() ([]byte, []int)
func (*EventReservesExhausted) Marshal ¶
func (m *EventReservesExhausted) Marshal() (dAtA []byte, err error)
func (*EventReservesExhausted) MarshalTo ¶
func (m *EventReservesExhausted) MarshalTo(dAtA []byte) (int, error)
func (*EventReservesExhausted) MarshalToSizedBuffer ¶
func (m *EventReservesExhausted) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventReservesExhausted) ProtoMessage ¶
func (*EventReservesExhausted) ProtoMessage()
func (*EventReservesExhausted) Reset ¶
func (m *EventReservesExhausted) Reset()
func (*EventReservesExhausted) Size ¶
func (m *EventReservesExhausted) Size() (n int)
func (*EventReservesExhausted) String ¶
func (m *EventReservesExhausted) String() string
func (*EventReservesExhausted) Unmarshal ¶
func (m *EventReservesExhausted) Unmarshal(dAtA []byte) error
func (*EventReservesExhausted) XXX_DiscardUnknown ¶
func (m *EventReservesExhausted) XXX_DiscardUnknown()
func (*EventReservesExhausted) XXX_Marshal ¶
func (m *EventReservesExhausted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReservesExhausted) XXX_Merge ¶
func (m *EventReservesExhausted) XXX_Merge(src proto.Message)
func (*EventReservesExhausted) XXX_Size ¶
func (m *EventReservesExhausted) XXX_Size() int
func (*EventReservesExhausted) XXX_Unmarshal ¶
func (m *EventReservesExhausted) XXX_Unmarshal(b []byte) error
type EventSupply ¶
type EventSupply struct { // Liquidity supplier bech32 address. Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"` // Liquidity provided to the module. Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` // uToken received by the supplier in exchange for the provided liquidity. Utoken types.Coin `protobuf:"bytes,3,opt,name=utoken,proto3" json:"utoken"` }
EventSupply is emitted on Msg/Supply
func (*EventSupply) Descriptor ¶
func (*EventSupply) Descriptor() ([]byte, []int)
func (*EventSupply) Marshal ¶
func (m *EventSupply) Marshal() (dAtA []byte, err error)
func (*EventSupply) MarshalToSizedBuffer ¶
func (m *EventSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSupply) ProtoMessage ¶
func (*EventSupply) ProtoMessage()
func (*EventSupply) Reset ¶
func (m *EventSupply) Reset()
func (*EventSupply) Size ¶
func (m *EventSupply) Size() (n int)
func (*EventSupply) String ¶
func (m *EventSupply) String() string
func (*EventSupply) Unmarshal ¶
func (m *EventSupply) Unmarshal(dAtA []byte) error
func (*EventSupply) XXX_DiscardUnknown ¶
func (m *EventSupply) XXX_DiscardUnknown()
func (*EventSupply) XXX_Marshal ¶
func (m *EventSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSupply) XXX_Merge ¶
func (m *EventSupply) XXX_Merge(src proto.Message)
func (*EventSupply) XXX_Size ¶
func (m *EventSupply) XXX_Size() int
func (*EventSupply) XXX_Unmarshal ¶
func (m *EventSupply) XXX_Unmarshal(b []byte) error
type EventWithdraw ¶
type EventWithdraw struct { // Liquidity supplier bech32 address. Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"` // uToken sent to the module in exchange for the underlying asset. Utoken types.Coin `protobuf:"bytes,2,opt,name=utoken,proto3" json:"utoken"` // Liquidity received by the supplier. Asset types.Coin `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset"` }
EventWithdraw is emitted on Msg/Withdraw
func (*EventWithdraw) Descriptor ¶
func (*EventWithdraw) Descriptor() ([]byte, []int)
func (*EventWithdraw) Marshal ¶
func (m *EventWithdraw) Marshal() (dAtA []byte, err error)
func (*EventWithdraw) MarshalToSizedBuffer ¶
func (m *EventWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventWithdraw) ProtoMessage ¶
func (*EventWithdraw) ProtoMessage()
func (*EventWithdraw) Reset ¶
func (m *EventWithdraw) Reset()
func (*EventWithdraw) Size ¶
func (m *EventWithdraw) Size() (n int)
func (*EventWithdraw) String ¶
func (m *EventWithdraw) String() string
func (*EventWithdraw) Unmarshal ¶
func (m *EventWithdraw) Unmarshal(dAtA []byte) error
func (*EventWithdraw) XXX_DiscardUnknown ¶
func (m *EventWithdraw) XXX_DiscardUnknown()
func (*EventWithdraw) XXX_Marshal ¶
func (m *EventWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventWithdraw) XXX_Merge ¶
func (m *EventWithdraw) XXX_Merge(src proto.Message)
func (*EventWithdraw) XXX_Size ¶
func (m *EventWithdraw) XXX_Size() int
func (*EventWithdraw) XXX_Unmarshal ¶
func (m *EventWithdraw) 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"` Collateral []Collateral `protobuf:"bytes,4,rep,name=collateral,proto3" json:"collateral"` Reserves github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=reserves,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reserves"` LastInterestTime int64 `protobuf:"varint,6,opt,name=last_interest_time,json=lastInterestTime,proto3" json:"last_interest_time,omitempty"` BadDebts []BadDebt `protobuf:"bytes,7,rep,name=bad_debts,json=badDebts,proto3" json:"bad_debts"` InterestScalars []InterestScalar `protobuf:"bytes,8,rep,name=interest_scalars,json=interestScalars,proto3" json:"interest_scalars"` UtokenSupply github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */ SpecialPairs []SpecialAssetPair `protobuf:"bytes,10,rep,name=special_pairs,json=specialPairs,proto3" json:"special_pairs"` }
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 ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/leverage GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState( params Params, tokens []Token, adjustedBorrows []AdjustedBorrow, collateral []Collateral, reserves sdk.Coins, lastInterestTime int64, badDebts []BadDebt, interestScalars []InterestScalar, uTokenSupply sdk.Coins, specialPairs []SpecialAssetPair, ) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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 InspectAccount ¶
type InspectAccount struct { // Address of a borrower Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // USD totals of borrower's collateral, debt, and liquidation threshold. Analysis *RiskInfo `protobuf:"bytes,2,opt,name=analysis,proto3" json:"analysis,omitempty"` // Collateral and borrowed tokens, denoted in human-readable symbol denom instead of ibc denom. Position *DecBalances `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"` }
InspectAccount contains risk and balance info for a single account for the inspector query.
func (*InspectAccount) Descriptor ¶
func (*InspectAccount) Descriptor() ([]byte, []int)
func (*InspectAccount) Marshal ¶
func (m *InspectAccount) Marshal() (dAtA []byte, err error)
func (*InspectAccount) MarshalToSizedBuffer ¶
func (m *InspectAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InspectAccount) ProtoMessage ¶
func (*InspectAccount) ProtoMessage()
func (*InspectAccount) Reset ¶
func (m *InspectAccount) Reset()
func (*InspectAccount) Size ¶
func (m *InspectAccount) Size() (n int)
func (*InspectAccount) String ¶
func (m *InspectAccount) String() string
func (*InspectAccount) Unmarshal ¶
func (m *InspectAccount) Unmarshal(dAtA []byte) error
func (*InspectAccount) XXX_DiscardUnknown ¶
func (m *InspectAccount) XXX_DiscardUnknown()
func (*InspectAccount) XXX_Marshal ¶
func (m *InspectAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InspectAccount) XXX_Merge ¶
func (m *InspectAccount) XXX_Merge(src proto.Message)
func (*InspectAccount) XXX_Size ¶
func (m *InspectAccount) XXX_Size() int
func (*InspectAccount) XXX_Unmarshal ¶
func (m *InspectAccount) XXX_Unmarshal(b []byte) error
type InterestScalar ¶
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 ¶
func NewInterestScalar(denom string, scalar sdk.Dec) InterestScalar
NewInterestScalar creates the InterestScalar struct used in GenesisState
func (*InterestScalar) Descriptor ¶
func (*InterestScalar) Descriptor() ([]byte, []int)
func (*InterestScalar) Marshal ¶
func (m *InterestScalar) Marshal() (dAtA []byte, err error)
func (*InterestScalar) MarshalToSizedBuffer ¶
func (m *InterestScalar) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InterestScalar) ProtoMessage ¶
func (*InterestScalar) ProtoMessage()
func (*InterestScalar) Reset ¶
func (m *InterestScalar) Reset()
func (*InterestScalar) Size ¶
func (m *InterestScalar) Size() (n int)
func (*InterestScalar) String ¶
func (m *InterestScalar) String() string
func (*InterestScalar) Unmarshal ¶
func (m *InterestScalar) Unmarshal(dAtA []byte) error
func (*InterestScalar) XXX_DiscardUnknown ¶
func (m *InterestScalar) XXX_DiscardUnknown()
func (*InterestScalar) XXX_Marshal ¶
func (m *InterestScalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InterestScalar) XXX_Merge ¶
func (m *InterestScalar) XXX_Merge(src proto.Message)
func (*InterestScalar) XXX_Size ¶
func (m *InterestScalar) XXX_Size() int
func (*InterestScalar) XXX_Unmarshal ¶
func (m *InterestScalar) XXX_Unmarshal(b []byte) error
type MsgBorrow ¶
type MsgBorrow struct { // Borrower is the account address taking a loan and the signer // of the message. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
MsgBorrow represents a user's request to borrow a base asset type from the module.
func NewMsgBorrow ¶
func NewMsgBorrow(borrower sdk.AccAddress, asset sdk.Coin) *MsgBorrow
func (*MsgBorrow) Descriptor ¶
func (*MsgBorrow) GetSignBytes ¶
GetSignBytes get the bytes for the message signer to sign on
func (*MsgBorrow) GetSigners ¶
func (msg *MsgBorrow) GetSigners() []sdk.AccAddress
func (*MsgBorrow) MarshalToSizedBuffer ¶
func (*MsgBorrow) ProtoMessage ¶
func (*MsgBorrow) ProtoMessage()
func (*MsgBorrow) ValidateBasic ¶
func (*MsgBorrow) XXX_DiscardUnknown ¶
func (m *MsgBorrow) XXX_DiscardUnknown()
func (*MsgBorrow) XXX_Marshal ¶
func (*MsgBorrow) XXX_MessageName ¶
func (*MsgBorrow) XXX_Unmarshal ¶
type MsgBorrowResponse ¶
type MsgBorrowResponse struct { }
MsgBorrowResponse defines the Msg/Borrow response type.
func (*MsgBorrowResponse) Descriptor ¶
func (*MsgBorrowResponse) Descriptor() ([]byte, []int)
func (*MsgBorrowResponse) Marshal ¶
func (m *MsgBorrowResponse) Marshal() (dAtA []byte, err error)
func (*MsgBorrowResponse) MarshalTo ¶
func (m *MsgBorrowResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBorrowResponse) MarshalToSizedBuffer ¶
func (m *MsgBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBorrowResponse) ProtoMessage ¶
func (*MsgBorrowResponse) ProtoMessage()
func (*MsgBorrowResponse) Reset ¶
func (m *MsgBorrowResponse) Reset()
func (*MsgBorrowResponse) Size ¶
func (m *MsgBorrowResponse) Size() (n int)
func (*MsgBorrowResponse) String ¶
func (m *MsgBorrowResponse) String() string
func (*MsgBorrowResponse) Unmarshal ¶
func (m *MsgBorrowResponse) Unmarshal(dAtA []byte) error
func (*MsgBorrowResponse) XXX_DiscardUnknown ¶
func (m *MsgBorrowResponse) XXX_DiscardUnknown()
func (*MsgBorrowResponse) XXX_Marshal ¶
func (m *MsgBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBorrowResponse) XXX_Merge ¶
func (m *MsgBorrowResponse) XXX_Merge(src proto.Message)
func (*MsgBorrowResponse) XXX_MessageName ¶
func (*MsgBorrowResponse) XXX_MessageName() string
func (*MsgBorrowResponse) XXX_Size ¶
func (m *MsgBorrowResponse) XXX_Size() int
func (*MsgBorrowResponse) XXX_Unmarshal ¶
func (m *MsgBorrowResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Supply moves tokens from user balance to the module for lending or collateral. // The user receives uTokens in return. Supply(ctx context.Context, in *MsgSupply, opts ...grpc.CallOption) (*MsgSupplyResponse, error) // Withdraw moves previously supplied tokens from the module back to the user balance in // exchange for burning uTokens. Withdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error) // MaxWithdraw moves previously supplied tokens from the module back to the user balance in // exchange for burning uTokens. It automatically calculates the maximum valid amount to withdraw. // Zero is returned if no more tokens can be withdrawn. MaxWithdraw(ctx context.Context, in *MsgMaxWithdraw, opts ...grpc.CallOption) (*MsgMaxWithdrawResponse, error) // Collateralize enables selected uTokens as collateral, which moves them to the module. Collateralize(ctx context.Context, in *MsgCollateralize, opts ...grpc.CallOption) (*MsgCollateralizeResponse, error) // Decollateralize disables selected uTokens as collateral. They are returned to the user's // balance from the module. Decollateralize(ctx context.Context, in *MsgDecollateralize, opts ...grpc.CallOption) (*MsgDecollateralizeResponse, error) // Borrow allows a user to borrow tokens from the module if they have sufficient collateral. Borrow(ctx context.Context, in *MsgBorrow, opts ...grpc.CallOption) (*MsgBorrowResponse, error) // MaxBorrow allows a user to borrow the maximum amount of tokens their collateral will allow. // Zero is returned if no more can be borrowed. MaxBorrow(ctx context.Context, in *MsgMaxBorrow, opts ...grpc.CallOption) (*MsgMaxBorrowResponse, error) // Repay allows a user to repay previously borrowed tokens and interest. Repay(ctx context.Context, in *MsgRepay, opts ...grpc.CallOption) (*MsgRepayResponse, error) // Liquidate allows a user to repay a different user's borrowed coins in exchange for some // of the target's collateral. Liquidate(ctx context.Context, in *MsgLiquidate, opts ...grpc.CallOption) (*MsgLiquidateResponse, error) // LeveragedLiquidate allows a user to repay a different user's borrowed coins in exchange for some // of the target's collateral. For leveraged liquidations, the tokens to repay are borrowed instead of // being taken from the liquidator's wallet, and the reward is immediately collateralized. Borrow // limit checks for the liquidator are deferred until after the reward is collateralized, allowing // this initial borrow to exceed the liquidator's borrow limit as long as it is healthy by the end // of the transaction. Repay amount is calculated automatically, so the liquidator only specifies // repay and reward token denoms. For safety, the liquidator cannot exceed 80% of their borrow limit when // executing this transaction, instead of the regular 100%. Also allows repayment and reward denoms to // be left blank - if not specified, the module will automatically select the first (alphabetically by denom) // borrow and/or collateral on the target account and the proceed normally. // After v6.0, includes a MaxRepay field which limits repay value in USD. To prevent dust exploits, this // value cannot be below $1.00 LeveragedLiquidate(ctx context.Context, in *MsgLeveragedLiquidate, opts ...grpc.CallOption) (*MsgLeveragedLiquidateResponse, error) // SupplyCollateral combines the Supply and Collateralize actions. SupplyCollateral(ctx context.Context, in *MsgSupplyCollateral, opts ...grpc.CallOption) (*MsgSupplyCollateralResponse, error) // GovUpdateRegistry adds new tokens to the token registry or // updates existing tokens with new settings. GovUpdateRegistry(ctx context.Context, in *MsgGovUpdateRegistry, opts ...grpc.CallOption) (*MsgGovUpdateRegistryResponse, error) // GovUpdateSpecialAssets adds, updates, or removes special asset pairs. Note that a special asset // pair can be removed by setting its special collateral weight to negative one. Also allows for the creation // of sets of assets, where each asset in the set forms a special asset pair with all of the others. GovUpdateSpecialAssets(ctx context.Context, in *MsgGovUpdateSpecialAssets, opts ...grpc.CallOption) (*MsgGovUpdateSpecialAssetsResponse, error) // GovSetParams is used by governance proposals to update parameters. GovSetParams(ctx context.Context, in *MsgGovSetParams, opts ...grpc.CallOption) (*MsgGovSetParamsResponse, 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 MsgCollateralize ¶
type MsgCollateralize struct { // Borrower is the account address adding collateral and the signer of the message. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
MsgCollateralize represents a user's request to enable selected uTokens as collateral.
func NewMsgCollateralize ¶
func NewMsgCollateralize(borrower sdk.AccAddress, asset sdk.Coin) *MsgCollateralize
func (*MsgCollateralize) Descriptor ¶
func (*MsgCollateralize) Descriptor() ([]byte, []int)
func (*MsgCollateralize) GetSignBytes ¶
func (msg *MsgCollateralize) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgCollateralize) GetSigners ¶
func (msg *MsgCollateralize) GetSigners() []sdk.AccAddress
func (*MsgCollateralize) Marshal ¶
func (m *MsgCollateralize) Marshal() (dAtA []byte, err error)
func (*MsgCollateralize) MarshalToSizedBuffer ¶
func (m *MsgCollateralize) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCollateralize) ProtoMessage ¶
func (*MsgCollateralize) ProtoMessage()
func (*MsgCollateralize) Reset ¶
func (m *MsgCollateralize) Reset()
func (MsgCollateralize) Route ¶
func (msg MsgCollateralize) Route() string
func (*MsgCollateralize) Size ¶
func (m *MsgCollateralize) Size() (n int)
func (*MsgCollateralize) String ¶
func (m *MsgCollateralize) String() string
func (MsgCollateralize) Type ¶
func (msg MsgCollateralize) Type() string
func (*MsgCollateralize) Unmarshal ¶
func (m *MsgCollateralize) Unmarshal(dAtA []byte) error
func (*MsgCollateralize) ValidateBasic ¶
func (msg *MsgCollateralize) ValidateBasic() error
func (*MsgCollateralize) XXX_DiscardUnknown ¶
func (m *MsgCollateralize) XXX_DiscardUnknown()
func (*MsgCollateralize) XXX_Marshal ¶
func (m *MsgCollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCollateralize) XXX_Merge ¶
func (m *MsgCollateralize) XXX_Merge(src proto.Message)
func (*MsgCollateralize) XXX_MessageName ¶
func (*MsgCollateralize) XXX_MessageName() string
func (*MsgCollateralize) XXX_Size ¶
func (m *MsgCollateralize) XXX_Size() int
func (*MsgCollateralize) XXX_Unmarshal ¶
func (m *MsgCollateralize) XXX_Unmarshal(b []byte) error
type MsgCollateralizeResponse ¶
type MsgCollateralizeResponse struct { }
MsgCollateralizeResponse defines the Msg/Collateralize response type.
func (*MsgCollateralizeResponse) Descriptor ¶
func (*MsgCollateralizeResponse) Descriptor() ([]byte, []int)
func (*MsgCollateralizeResponse) Marshal ¶
func (m *MsgCollateralizeResponse) Marshal() (dAtA []byte, err error)
func (*MsgCollateralizeResponse) MarshalTo ¶
func (m *MsgCollateralizeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCollateralizeResponse) MarshalToSizedBuffer ¶
func (m *MsgCollateralizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCollateralizeResponse) ProtoMessage ¶
func (*MsgCollateralizeResponse) ProtoMessage()
func (*MsgCollateralizeResponse) Reset ¶
func (m *MsgCollateralizeResponse) Reset()
func (*MsgCollateralizeResponse) Size ¶
func (m *MsgCollateralizeResponse) Size() (n int)
func (*MsgCollateralizeResponse) String ¶
func (m *MsgCollateralizeResponse) String() string
func (*MsgCollateralizeResponse) Unmarshal ¶
func (m *MsgCollateralizeResponse) Unmarshal(dAtA []byte) error
func (*MsgCollateralizeResponse) XXX_DiscardUnknown ¶
func (m *MsgCollateralizeResponse) XXX_DiscardUnknown()
func (*MsgCollateralizeResponse) XXX_Marshal ¶
func (m *MsgCollateralizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCollateralizeResponse) XXX_Merge ¶
func (m *MsgCollateralizeResponse) XXX_Merge(src proto.Message)
func (*MsgCollateralizeResponse) XXX_MessageName ¶
func (*MsgCollateralizeResponse) XXX_MessageName() string
func (*MsgCollateralizeResponse) XXX_Size ¶
func (m *MsgCollateralizeResponse) XXX_Size() int
func (*MsgCollateralizeResponse) XXX_Unmarshal ¶
func (m *MsgCollateralizeResponse) XXX_Unmarshal(b []byte) error
type MsgDecollateralize ¶
type MsgDecollateralize struct { // Borrower is the account address removing collateral and the signer of the message. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
MsgDecollateralize represents a user's request to disable selected uTokens as collateral.
func NewMsgDecollateralize ¶
func NewMsgDecollateralize(borrower sdk.AccAddress, asset sdk.Coin) *MsgDecollateralize
func (*MsgDecollateralize) Descriptor ¶
func (*MsgDecollateralize) Descriptor() ([]byte, []int)
func (*MsgDecollateralize) GetSignBytes ¶
func (msg *MsgDecollateralize) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgDecollateralize) GetSigners ¶
func (msg *MsgDecollateralize) GetSigners() []sdk.AccAddress
func (*MsgDecollateralize) Marshal ¶
func (m *MsgDecollateralize) Marshal() (dAtA []byte, err error)
func (*MsgDecollateralize) MarshalTo ¶
func (m *MsgDecollateralize) MarshalTo(dAtA []byte) (int, error)
func (*MsgDecollateralize) MarshalToSizedBuffer ¶
func (m *MsgDecollateralize) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDecollateralize) ProtoMessage ¶
func (*MsgDecollateralize) ProtoMessage()
func (*MsgDecollateralize) Reset ¶
func (m *MsgDecollateralize) Reset()
func (MsgDecollateralize) Route ¶
func (msg MsgDecollateralize) Route() string
func (*MsgDecollateralize) Size ¶
func (m *MsgDecollateralize) Size() (n int)
func (*MsgDecollateralize) String ¶
func (m *MsgDecollateralize) String() string
func (MsgDecollateralize) Type ¶
func (msg MsgDecollateralize) Type() string
func (*MsgDecollateralize) Unmarshal ¶
func (m *MsgDecollateralize) Unmarshal(dAtA []byte) error
func (*MsgDecollateralize) ValidateBasic ¶
func (msg *MsgDecollateralize) ValidateBasic() error
func (*MsgDecollateralize) XXX_DiscardUnknown ¶
func (m *MsgDecollateralize) XXX_DiscardUnknown()
func (*MsgDecollateralize) XXX_Marshal ¶
func (m *MsgDecollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDecollateralize) XXX_Merge ¶
func (m *MsgDecollateralize) XXX_Merge(src proto.Message)
func (*MsgDecollateralize) XXX_MessageName ¶
func (*MsgDecollateralize) XXX_MessageName() string
func (*MsgDecollateralize) XXX_Size ¶
func (m *MsgDecollateralize) XXX_Size() int
func (*MsgDecollateralize) XXX_Unmarshal ¶
func (m *MsgDecollateralize) XXX_Unmarshal(b []byte) error
type MsgDecollateralizeResponse ¶
type MsgDecollateralizeResponse struct { }
MsgDecollateralizeResponse defines the Msg/Decollateralize response type.
func (*MsgDecollateralizeResponse) Descriptor ¶
func (*MsgDecollateralizeResponse) Descriptor() ([]byte, []int)
func (*MsgDecollateralizeResponse) Marshal ¶
func (m *MsgDecollateralizeResponse) Marshal() (dAtA []byte, err error)
func (*MsgDecollateralizeResponse) MarshalTo ¶
func (m *MsgDecollateralizeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDecollateralizeResponse) MarshalToSizedBuffer ¶
func (m *MsgDecollateralizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDecollateralizeResponse) ProtoMessage ¶
func (*MsgDecollateralizeResponse) ProtoMessage()
func (*MsgDecollateralizeResponse) Reset ¶
func (m *MsgDecollateralizeResponse) Reset()
func (*MsgDecollateralizeResponse) Size ¶
func (m *MsgDecollateralizeResponse) Size() (n int)
func (*MsgDecollateralizeResponse) String ¶
func (m *MsgDecollateralizeResponse) String() string
func (*MsgDecollateralizeResponse) Unmarshal ¶
func (m *MsgDecollateralizeResponse) Unmarshal(dAtA []byte) error
func (*MsgDecollateralizeResponse) XXX_DiscardUnknown ¶
func (m *MsgDecollateralizeResponse) XXX_DiscardUnknown()
func (*MsgDecollateralizeResponse) XXX_Marshal ¶
func (m *MsgDecollateralizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDecollateralizeResponse) XXX_Merge ¶
func (m *MsgDecollateralizeResponse) XXX_Merge(src proto.Message)
func (*MsgDecollateralizeResponse) XXX_MessageName ¶
func (*MsgDecollateralizeResponse) XXX_MessageName() string
func (*MsgDecollateralizeResponse) XXX_Size ¶
func (m *MsgDecollateralizeResponse) XXX_Size() int
func (*MsgDecollateralizeResponse) XXX_Unmarshal ¶
func (m *MsgDecollateralizeResponse) XXX_Unmarshal(b []byte) error
type MsgGovSetParams ¶
type MsgGovSetParams struct { // authority must be the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgGovSetParams is used by governance to update module parameters.
func NewMsgGovSetParams ¶
func NewMsgGovSetParams(authority string, params Params) *MsgGovSetParams
NewMsgGovSetParams will create a new MsgGovSetParams instance. Authority must be a valid bech32 address.
func (*MsgGovSetParams) Descriptor ¶
func (*MsgGovSetParams) Descriptor() ([]byte, []int)
func (*MsgGovSetParams) Equal ¶
func (this *MsgGovSetParams) Equal(that interface{}) bool
func (MsgGovSetParams) GetSignBytes ¶
func (msg MsgGovSetParams) GetSignBytes() []byte
func (MsgGovSetParams) GetSigners ¶
func (msg MsgGovSetParams) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgGovSetParams) Marshal ¶
func (m *MsgGovSetParams) Marshal() (dAtA []byte, err error)
func (*MsgGovSetParams) MarshalToSizedBuffer ¶
func (m *MsgGovSetParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovSetParams) ProtoMessage ¶
func (*MsgGovSetParams) ProtoMessage()
func (*MsgGovSetParams) Reset ¶
func (m *MsgGovSetParams) Reset()
func (MsgGovSetParams) Route ¶
func (msg MsgGovSetParams) Route() string
func (*MsgGovSetParams) Size ¶
func (m *MsgGovSetParams) Size() (n int)
func (MsgGovSetParams) String ¶
func (msg MsgGovSetParams) String() string
String implements the Stringer interface.
func (MsgGovSetParams) Type ¶
func (msg MsgGovSetParams) Type() string
func (*MsgGovSetParams) Unmarshal ¶
func (m *MsgGovSetParams) Unmarshal(dAtA []byte) error
func (MsgGovSetParams) ValidateBasic ¶
func (msg MsgGovSetParams) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgGovSetParams) XXX_DiscardUnknown ¶
func (m *MsgGovSetParams) XXX_DiscardUnknown()
func (*MsgGovSetParams) XXX_Marshal ¶
func (m *MsgGovSetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovSetParams) XXX_Merge ¶
func (m *MsgGovSetParams) XXX_Merge(src proto.Message)
func (*MsgGovSetParams) XXX_MessageName ¶
func (*MsgGovSetParams) XXX_MessageName() string
func (*MsgGovSetParams) XXX_Size ¶
func (m *MsgGovSetParams) XXX_Size() int
func (*MsgGovSetParams) XXX_Unmarshal ¶
func (m *MsgGovSetParams) XXX_Unmarshal(b []byte) error
type MsgGovSetParamsResponse ¶
type MsgGovSetParamsResponse struct { }
MsgGovSetParamsResponse defines the Msg/SetParams response type.
func (*MsgGovSetParamsResponse) Descriptor ¶
func (*MsgGovSetParamsResponse) Descriptor() ([]byte, []int)
func (*MsgGovSetParamsResponse) Marshal ¶
func (m *MsgGovSetParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgGovSetParamsResponse) MarshalTo ¶
func (m *MsgGovSetParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovSetParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgGovSetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovSetParamsResponse) ProtoMessage ¶
func (*MsgGovSetParamsResponse) ProtoMessage()
func (*MsgGovSetParamsResponse) Reset ¶
func (m *MsgGovSetParamsResponse) Reset()
func (*MsgGovSetParamsResponse) Size ¶
func (m *MsgGovSetParamsResponse) Size() (n int)
func (*MsgGovSetParamsResponse) String ¶
func (m *MsgGovSetParamsResponse) String() string
func (*MsgGovSetParamsResponse) Unmarshal ¶
func (m *MsgGovSetParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgGovSetParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgGovSetParamsResponse) XXX_DiscardUnknown()
func (*MsgGovSetParamsResponse) XXX_Marshal ¶
func (m *MsgGovSetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovSetParamsResponse) XXX_Merge ¶
func (m *MsgGovSetParamsResponse) XXX_Merge(src proto.Message)
func (*MsgGovSetParamsResponse) XXX_MessageName ¶
func (*MsgGovSetParamsResponse) XXX_MessageName() string
func (*MsgGovSetParamsResponse) XXX_Size ¶
func (m *MsgGovSetParamsResponse) XXX_Size() int
func (*MsgGovSetParamsResponse) XXX_Unmarshal ¶
func (m *MsgGovSetParamsResponse) XXX_Unmarshal(b []byte) error
type MsgGovUpdateRegistry ¶
type MsgGovUpdateRegistry struct { // authority is the address of the governance account or the Emergency Group. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // description motivating the change. Should be used only when executing by the // Emergency Group. Otherwise the x/gov Proposal metadata should be used. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // add_tokens defines new token settings. AddTokens []Token `protobuf:"bytes,4,rep,name=add_tokens,json=addTokens,proto3" json:"add_tokens"` // update_tokens defines the new settings for existed tokens. UpdateTokens []Token `protobuf:"bytes,5,rep,name=update_tokens,json=updateTokens,proto3" json:"update_tokens"` }
MsgGovUpdateRegistry defines the Msg/GovUpdateRegistry request type.
func NewMsgGovUpdateRegistry ¶
func NewMsgGovUpdateRegistry(authority, description string, update, add []Token) *MsgGovUpdateRegistry
NewMsgGovUpdateRegistry will create a new MsgUpdateRegistry instance. Authority must be a valid bech32 address.
func (*MsgGovUpdateRegistry) Descriptor ¶
func (*MsgGovUpdateRegistry) Descriptor() ([]byte, []int)
func (*MsgGovUpdateRegistry) Equal ¶
func (this *MsgGovUpdateRegistry) Equal(that interface{}) bool
func (MsgGovUpdateRegistry) GetSignBytes ¶
func (msg MsgGovUpdateRegistry) GetSignBytes() []byte
func (MsgGovUpdateRegistry) GetSigners ¶
func (msg MsgGovUpdateRegistry) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgGovUpdateRegistry) Marshal ¶
func (m *MsgGovUpdateRegistry) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateRegistry) MarshalTo ¶
func (m *MsgGovUpdateRegistry) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateRegistry) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateRegistry) ProtoMessage ¶
func (*MsgGovUpdateRegistry) ProtoMessage()
func (*MsgGovUpdateRegistry) Reset ¶
func (m *MsgGovUpdateRegistry) Reset()
func (MsgGovUpdateRegistry) Route ¶
func (msg MsgGovUpdateRegistry) Route() string
func (*MsgGovUpdateRegistry) Size ¶
func (m *MsgGovUpdateRegistry) Size() (n int)
func (MsgGovUpdateRegistry) String ¶
func (msg MsgGovUpdateRegistry) String() string
String implements the Stringer interface.
func (MsgGovUpdateRegistry) Type ¶
func (msg MsgGovUpdateRegistry) Type() string
func (*MsgGovUpdateRegistry) Unmarshal ¶
func (m *MsgGovUpdateRegistry) Unmarshal(dAtA []byte) error
func (MsgGovUpdateRegistry) ValidateBasic ¶
func (msg MsgGovUpdateRegistry) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgGovUpdateRegistry) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateRegistry) XXX_DiscardUnknown()
func (*MsgGovUpdateRegistry) XXX_Marshal ¶
func (m *MsgGovUpdateRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateRegistry) XXX_Merge ¶
func (m *MsgGovUpdateRegistry) XXX_Merge(src proto.Message)
func (*MsgGovUpdateRegistry) XXX_MessageName ¶
func (*MsgGovUpdateRegistry) XXX_MessageName() string
func (*MsgGovUpdateRegistry) XXX_Size ¶
func (m *MsgGovUpdateRegistry) XXX_Size() int
func (*MsgGovUpdateRegistry) XXX_Unmarshal ¶
func (m *MsgGovUpdateRegistry) XXX_Unmarshal(b []byte) error
type MsgGovUpdateRegistryResponse ¶
type MsgGovUpdateRegistryResponse struct { }
MsgGovUpdateRegistryResponse defines the Msg/GovUpdateRegistry response type.
func (*MsgGovUpdateRegistryResponse) Descriptor ¶
func (*MsgGovUpdateRegistryResponse) Descriptor() ([]byte, []int)
func (*MsgGovUpdateRegistryResponse) Marshal ¶
func (m *MsgGovUpdateRegistryResponse) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateRegistryResponse) MarshalTo ¶
func (m *MsgGovUpdateRegistryResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateRegistryResponse) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateRegistryResponse) ProtoMessage ¶
func (*MsgGovUpdateRegistryResponse) ProtoMessage()
func (*MsgGovUpdateRegistryResponse) Reset ¶
func (m *MsgGovUpdateRegistryResponse) Reset()
func (*MsgGovUpdateRegistryResponse) Size ¶
func (m *MsgGovUpdateRegistryResponse) Size() (n int)
func (*MsgGovUpdateRegistryResponse) String ¶
func (m *MsgGovUpdateRegistryResponse) String() string
func (*MsgGovUpdateRegistryResponse) Unmarshal ¶
func (m *MsgGovUpdateRegistryResponse) Unmarshal(dAtA []byte) error
func (*MsgGovUpdateRegistryResponse) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateRegistryResponse) XXX_DiscardUnknown()
func (*MsgGovUpdateRegistryResponse) XXX_Marshal ¶
func (m *MsgGovUpdateRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateRegistryResponse) XXX_Merge ¶
func (m *MsgGovUpdateRegistryResponse) XXX_Merge(src proto.Message)
func (*MsgGovUpdateRegistryResponse) XXX_MessageName ¶
func (*MsgGovUpdateRegistryResponse) XXX_MessageName() string
func (*MsgGovUpdateRegistryResponse) XXX_Size ¶
func (m *MsgGovUpdateRegistryResponse) XXX_Size() int
func (*MsgGovUpdateRegistryResponse) XXX_Unmarshal ¶
func (m *MsgGovUpdateRegistryResponse) XXX_Unmarshal(b []byte) error
type MsgGovUpdateSpecialAssets ¶
type MsgGovUpdateSpecialAssets struct { // authority is the address of the governance account or the Emergency Group. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // description motivating the change. Should be used only when executing by the // Emergency Group. Otherwise the x/gov Proposal metadata should be used. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // sets are bidirectional groups of special asset pairs. Creating a special asset // set causes all assets in the set to have a certain collateral weight when borrowing // against each other (but not looping with themselves). Overrides any existing // special asset pairs between assets in the set. Using both collateral weight // and liquidation theshold of zero will clear all existing special pairs in the set instead. Sets []SpecialAssetSet `protobuf:"bytes,3,rep,name=sets,proto3" json:"sets"` // pairs are new or updated special asset pairs. Updating both a special asset pair's // collateral weight and liquidation threshold to zero deletes the pair instead. // These pairs will be applied after any sets above when passing a proposal, // so they can be used to override certain set elements, set directional relationships, // or set an asset's relation to itself (looping). Pairs []SpecialAssetPair `protobuf:"bytes,4,rep,name=pairs,proto3" json:"pairs"` }
MsgGovUpdateSpecialAssets defines the Msg/GovUpdateSpecialAssets request type.
func NewMsgGovUpdateSpecialAssets ¶
func NewMsgGovUpdateSpecialAssets(authority string, sets []SpecialAssetSet, pairs []SpecialAssetPair, ) *MsgGovUpdateSpecialAssets
NewMsgGovUpdateSpecialAssets will create a new MsgGovUpdateSpecialAssets instance
func (*MsgGovUpdateSpecialAssets) Descriptor ¶
func (*MsgGovUpdateSpecialAssets) Descriptor() ([]byte, []int)
func (*MsgGovUpdateSpecialAssets) Equal ¶
func (this *MsgGovUpdateSpecialAssets) Equal(that interface{}) bool
func (MsgGovUpdateSpecialAssets) GetSignBytes ¶
func (msg MsgGovUpdateSpecialAssets) GetSignBytes() []byte
func (MsgGovUpdateSpecialAssets) GetSigners ¶
func (msg MsgGovUpdateSpecialAssets) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgGovUpdateSpecialAssets) Marshal ¶
func (m *MsgGovUpdateSpecialAssets) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateSpecialAssets) MarshalTo ¶
func (m *MsgGovUpdateSpecialAssets) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateSpecialAssets) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateSpecialAssets) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateSpecialAssets) ProtoMessage ¶
func (*MsgGovUpdateSpecialAssets) ProtoMessage()
func (*MsgGovUpdateSpecialAssets) Reset ¶
func (m *MsgGovUpdateSpecialAssets) Reset()
func (MsgGovUpdateSpecialAssets) Route ¶
func (msg MsgGovUpdateSpecialAssets) Route() string
func (*MsgGovUpdateSpecialAssets) Size ¶
func (m *MsgGovUpdateSpecialAssets) Size() (n int)
func (MsgGovUpdateSpecialAssets) String ¶
func (msg MsgGovUpdateSpecialAssets) String() string
String implements the Stringer interface.
func (MsgGovUpdateSpecialAssets) Type ¶
func (msg MsgGovUpdateSpecialAssets) Type() string
func (*MsgGovUpdateSpecialAssets) Unmarshal ¶
func (m *MsgGovUpdateSpecialAssets) Unmarshal(dAtA []byte) error
func (MsgGovUpdateSpecialAssets) ValidateBasic ¶
func (msg MsgGovUpdateSpecialAssets) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgGovUpdateSpecialAssets) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateSpecialAssets) XXX_DiscardUnknown()
func (*MsgGovUpdateSpecialAssets) XXX_Marshal ¶
func (m *MsgGovUpdateSpecialAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateSpecialAssets) XXX_Merge ¶
func (m *MsgGovUpdateSpecialAssets) XXX_Merge(src proto.Message)
func (*MsgGovUpdateSpecialAssets) XXX_MessageName ¶
func (*MsgGovUpdateSpecialAssets) XXX_MessageName() string
func (*MsgGovUpdateSpecialAssets) XXX_Size ¶
func (m *MsgGovUpdateSpecialAssets) XXX_Size() int
func (*MsgGovUpdateSpecialAssets) XXX_Unmarshal ¶
func (m *MsgGovUpdateSpecialAssets) XXX_Unmarshal(b []byte) error
type MsgGovUpdateSpecialAssetsResponse ¶
type MsgGovUpdateSpecialAssetsResponse struct { }
MsgGovUpdateSpecialAssetsResponse defines the Msg/GovUpdateSpecialAssets response type.
func (*MsgGovUpdateSpecialAssetsResponse) Descriptor ¶
func (*MsgGovUpdateSpecialAssetsResponse) Descriptor() ([]byte, []int)
func (*MsgGovUpdateSpecialAssetsResponse) Marshal ¶
func (m *MsgGovUpdateSpecialAssetsResponse) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateSpecialAssetsResponse) MarshalTo ¶
func (m *MsgGovUpdateSpecialAssetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateSpecialAssetsResponse) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateSpecialAssetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateSpecialAssetsResponse) ProtoMessage ¶
func (*MsgGovUpdateSpecialAssetsResponse) ProtoMessage()
func (*MsgGovUpdateSpecialAssetsResponse) Reset ¶
func (m *MsgGovUpdateSpecialAssetsResponse) Reset()
func (*MsgGovUpdateSpecialAssetsResponse) Size ¶
func (m *MsgGovUpdateSpecialAssetsResponse) Size() (n int)
func (*MsgGovUpdateSpecialAssetsResponse) String ¶
func (m *MsgGovUpdateSpecialAssetsResponse) String() string
func (*MsgGovUpdateSpecialAssetsResponse) Unmarshal ¶
func (m *MsgGovUpdateSpecialAssetsResponse) Unmarshal(dAtA []byte) error
func (*MsgGovUpdateSpecialAssetsResponse) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateSpecialAssetsResponse) XXX_DiscardUnknown()
func (*MsgGovUpdateSpecialAssetsResponse) XXX_Marshal ¶
func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateSpecialAssetsResponse) XXX_Merge ¶
func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Merge(src proto.Message)
func (*MsgGovUpdateSpecialAssetsResponse) XXX_MessageName ¶
func (*MsgGovUpdateSpecialAssetsResponse) XXX_MessageName() string
func (*MsgGovUpdateSpecialAssetsResponse) XXX_Size ¶
func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Size() int
func (*MsgGovUpdateSpecialAssetsResponse) XXX_Unmarshal ¶
func (m *MsgGovUpdateSpecialAssetsResponse) XXX_Unmarshal(b []byte) error
type MsgLeveragedLiquidate ¶
type MsgLeveragedLiquidate struct { // Liquidator is the account address performing a liquidation and the signer // of the message. Liquidator string `protobuf:"bytes,1,opt,name=liquidator,proto3" json:"liquidator,omitempty"` // Borrower is the account whose borrow is being repaid, and collateral consumed, // by the liquidation. It does not sign the message. Borrower string `protobuf:"bytes,2,opt,name=borrower,proto3" json:"borrower,omitempty"` // RepayDenom is the base token that the liquidator will borrow in order to repay on behalf of // the borrower. RepayDenom string `protobuf:"bytes,3,opt,name=repay_denom,json=repayDenom,proto3" json:"repay_denom,omitempty"` // RewardDenom is the uToken denom that the liquidator will receive as a liquidation reward // and immediately collateralize. RewardDenom string `protobuf:"bytes,4,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom,omitempty"` // MaxRepay optionally limits the USD value to repay. If specified, this cannot be below $1.00 MaxRepay github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=max_repay,json=maxRepay,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_repay"` }
MsgLeveragedLiquidate is the request structure for the LeveragedLiquidate RPC.
func NewMsgLeveragedLiquidate ¶
func NewMsgLeveragedLiquidate( liquidator, borrower sdk.AccAddress, repayDenom, rewardDenom string, maxRepay sdk.Dec, ) *MsgLeveragedLiquidate
func (*MsgLeveragedLiquidate) Descriptor ¶
func (*MsgLeveragedLiquidate) Descriptor() ([]byte, []int)
func (*MsgLeveragedLiquidate) GetSignBytes ¶
func (msg *MsgLeveragedLiquidate) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgLeveragedLiquidate) GetSigners ¶
func (msg *MsgLeveragedLiquidate) GetSigners() []sdk.AccAddress
func (*MsgLeveragedLiquidate) Marshal ¶
func (m *MsgLeveragedLiquidate) Marshal() (dAtA []byte, err error)
func (*MsgLeveragedLiquidate) MarshalTo ¶
func (m *MsgLeveragedLiquidate) MarshalTo(dAtA []byte) (int, error)
func (*MsgLeveragedLiquidate) MarshalToSizedBuffer ¶
func (m *MsgLeveragedLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLeveragedLiquidate) ProtoMessage ¶
func (*MsgLeveragedLiquidate) ProtoMessage()
func (*MsgLeveragedLiquidate) Reset ¶
func (m *MsgLeveragedLiquidate) Reset()
func (MsgLeveragedLiquidate) Route ¶
func (msg MsgLeveragedLiquidate) Route() string
func (*MsgLeveragedLiquidate) Size ¶
func (m *MsgLeveragedLiquidate) Size() (n int)
func (*MsgLeveragedLiquidate) String ¶
func (m *MsgLeveragedLiquidate) String() string
func (MsgLeveragedLiquidate) Type ¶
func (msg MsgLeveragedLiquidate) Type() string
func (*MsgLeveragedLiquidate) Unmarshal ¶
func (m *MsgLeveragedLiquidate) Unmarshal(dAtA []byte) error
func (*MsgLeveragedLiquidate) ValidateBasic ¶
func (msg *MsgLeveragedLiquidate) ValidateBasic() error
func (*MsgLeveragedLiquidate) XXX_DiscardUnknown ¶
func (m *MsgLeveragedLiquidate) XXX_DiscardUnknown()
func (*MsgLeveragedLiquidate) XXX_Marshal ¶
func (m *MsgLeveragedLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLeveragedLiquidate) XXX_Merge ¶
func (m *MsgLeveragedLiquidate) XXX_Merge(src proto.Message)
func (*MsgLeveragedLiquidate) XXX_MessageName ¶
func (*MsgLeveragedLiquidate) XXX_MessageName() string
func (*MsgLeveragedLiquidate) XXX_Size ¶
func (m *MsgLeveragedLiquidate) XXX_Size() int
func (*MsgLeveragedLiquidate) XXX_Unmarshal ¶
func (m *MsgLeveragedLiquidate) XXX_Unmarshal(b []byte) error
type MsgLeveragedLiquidateResponse ¶
type MsgLeveragedLiquidateResponse struct { // Repaid is the amount of base tokens that the liquidator borrowed and repaid // to the module on behalf of the borrower. Repaid types.Coin `protobuf:"bytes,1,opt,name=repaid,proto3" json:"repaid"` // Reward is the amount of collateral that the liquidator gained // as reward for the liquidation. Reward types.Coin `protobuf:"bytes,2,opt,name=reward,proto3" json:"reward"` }
MsgLeveragedLiquidateResponse defines the Msg/LeveragedLiquidate response type.
func (*MsgLeveragedLiquidateResponse) Descriptor ¶
func (*MsgLeveragedLiquidateResponse) Descriptor() ([]byte, []int)
func (*MsgLeveragedLiquidateResponse) Marshal ¶
func (m *MsgLeveragedLiquidateResponse) Marshal() (dAtA []byte, err error)
func (*MsgLeveragedLiquidateResponse) MarshalTo ¶
func (m *MsgLeveragedLiquidateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgLeveragedLiquidateResponse) MarshalToSizedBuffer ¶
func (m *MsgLeveragedLiquidateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLeveragedLiquidateResponse) ProtoMessage ¶
func (*MsgLeveragedLiquidateResponse) ProtoMessage()
func (*MsgLeveragedLiquidateResponse) Reset ¶
func (m *MsgLeveragedLiquidateResponse) Reset()
func (*MsgLeveragedLiquidateResponse) Size ¶
func (m *MsgLeveragedLiquidateResponse) Size() (n int)
func (*MsgLeveragedLiquidateResponse) String ¶
func (m *MsgLeveragedLiquidateResponse) String() string
func (*MsgLeveragedLiquidateResponse) Unmarshal ¶
func (m *MsgLeveragedLiquidateResponse) Unmarshal(dAtA []byte) error
func (*MsgLeveragedLiquidateResponse) XXX_DiscardUnknown ¶
func (m *MsgLeveragedLiquidateResponse) XXX_DiscardUnknown()
func (*MsgLeveragedLiquidateResponse) XXX_Marshal ¶
func (m *MsgLeveragedLiquidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLeveragedLiquidateResponse) XXX_Merge ¶
func (m *MsgLeveragedLiquidateResponse) XXX_Merge(src proto.Message)
func (*MsgLeveragedLiquidateResponse) XXX_MessageName ¶
func (*MsgLeveragedLiquidateResponse) XXX_MessageName() string
func (*MsgLeveragedLiquidateResponse) XXX_Size ¶
func (m *MsgLeveragedLiquidateResponse) XXX_Size() int
func (*MsgLeveragedLiquidateResponse) XXX_Unmarshal ¶
func (m *MsgLeveragedLiquidateResponse) XXX_Unmarshal(b []byte) error
type MsgLiquidate ¶
type MsgLiquidate struct { // Liquidator is the account address performing a liquidation and the signer // of the message. Liquidator string `protobuf:"bytes,1,opt,name=liquidator,proto3" json:"liquidator,omitempty"` // Borrower is the account whose borrow is being repaid, and collateral consumed, // by the liquidation. It does not sign the message. Borrower string `protobuf:"bytes,2,opt,name=borrower,proto3" json:"borrower,omitempty"` // Repayment is the maximum amount of base tokens that the liquidator is willing // to repay. Repayment types.Coin `protobuf:"bytes,3,opt,name=repayment,proto3" json:"repayment"` // RewardDenom is the denom that the liquidator will receive as a liquidation reward. // If it is a uToken, the liquidator will receive uTokens from the borrower's // collateral. If it is a base token, the uTokens will be redeemed directly at // a reduced Liquidation Incentive, and the liquidator will receive base tokens. RewardDenom string `protobuf:"bytes,4,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom,omitempty"` }
MsgLiquidate is the request structure for the Liquidate RPC.
func NewMsgLiquidate ¶
func NewMsgLiquidate(liquidator, borrower sdk.AccAddress, repayment sdk.Coin, rewardDenom string) *MsgLiquidate
func (*MsgLiquidate) Descriptor ¶
func (*MsgLiquidate) Descriptor() ([]byte, []int)
func (*MsgLiquidate) GetSignBytes ¶
func (msg *MsgLiquidate) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgLiquidate) GetSigners ¶
func (msg *MsgLiquidate) GetSigners() []sdk.AccAddress
func (*MsgLiquidate) Marshal ¶
func (m *MsgLiquidate) Marshal() (dAtA []byte, err error)
func (*MsgLiquidate) MarshalToSizedBuffer ¶
func (m *MsgLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLiquidate) ProtoMessage ¶
func (*MsgLiquidate) ProtoMessage()
func (*MsgLiquidate) Reset ¶
func (m *MsgLiquidate) Reset()
func (MsgLiquidate) Route ¶
func (msg MsgLiquidate) Route() string
func (*MsgLiquidate) Size ¶
func (m *MsgLiquidate) Size() (n int)
func (*MsgLiquidate) String ¶
func (m *MsgLiquidate) String() string
func (MsgLiquidate) Type ¶
func (msg MsgLiquidate) Type() string
func (*MsgLiquidate) Unmarshal ¶
func (m *MsgLiquidate) Unmarshal(dAtA []byte) error
func (*MsgLiquidate) ValidateBasic ¶
func (msg *MsgLiquidate) ValidateBasic() error
func (*MsgLiquidate) XXX_DiscardUnknown ¶
func (m *MsgLiquidate) XXX_DiscardUnknown()
func (*MsgLiquidate) XXX_Marshal ¶
func (m *MsgLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLiquidate) XXX_Merge ¶
func (m *MsgLiquidate) XXX_Merge(src proto.Message)
func (*MsgLiquidate) XXX_MessageName ¶
func (*MsgLiquidate) XXX_MessageName() string
func (*MsgLiquidate) XXX_Size ¶
func (m *MsgLiquidate) XXX_Size() int
func (*MsgLiquidate) XXX_Unmarshal ¶
func (m *MsgLiquidate) XXX_Unmarshal(b []byte) error
type MsgLiquidateResponse ¶
type MsgLiquidateResponse struct { // Repaid is the amount of borrowed base tokens that the liquidator repaid // to the module on behalf of the borrower. Repaid types.Coin `protobuf:"bytes,1,opt,name=repaid,proto3" json:"repaid"` // Collateral is the amount of the borrower's uToken collateral that // was liquidated. Collateral types.Coin `protobuf:"bytes,2,opt,name=collateral,proto3" json:"collateral"` // Reward is the amount of base tokens that the liquidator received from // the module as reward for the liquidation. Reward types.Coin `protobuf:"bytes,3,opt,name=reward,proto3" json:"reward"` }
MsgLiquidateResponse defines the Msg/Liquidate response type.
func (*MsgLiquidateResponse) Descriptor ¶
func (*MsgLiquidateResponse) Descriptor() ([]byte, []int)
func (*MsgLiquidateResponse) Marshal ¶
func (m *MsgLiquidateResponse) Marshal() (dAtA []byte, err error)
func (*MsgLiquidateResponse) MarshalTo ¶
func (m *MsgLiquidateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgLiquidateResponse) MarshalToSizedBuffer ¶
func (m *MsgLiquidateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgLiquidateResponse) ProtoMessage ¶
func (*MsgLiquidateResponse) ProtoMessage()
func (*MsgLiquidateResponse) Reset ¶
func (m *MsgLiquidateResponse) Reset()
func (*MsgLiquidateResponse) Size ¶
func (m *MsgLiquidateResponse) Size() (n int)
func (*MsgLiquidateResponse) String ¶
func (m *MsgLiquidateResponse) String() string
func (*MsgLiquidateResponse) Unmarshal ¶
func (m *MsgLiquidateResponse) Unmarshal(dAtA []byte) error
func (*MsgLiquidateResponse) XXX_DiscardUnknown ¶
func (m *MsgLiquidateResponse) XXX_DiscardUnknown()
func (*MsgLiquidateResponse) XXX_Marshal ¶
func (m *MsgLiquidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgLiquidateResponse) XXX_Merge ¶
func (m *MsgLiquidateResponse) XXX_Merge(src proto.Message)
func (*MsgLiquidateResponse) XXX_MessageName ¶
func (*MsgLiquidateResponse) XXX_MessageName() string
func (*MsgLiquidateResponse) XXX_Size ¶
func (m *MsgLiquidateResponse) XXX_Size() int
func (*MsgLiquidateResponse) XXX_Unmarshal ¶
func (m *MsgLiquidateResponse) XXX_Unmarshal(b []byte) error
type MsgMaxBorrow ¶
type MsgMaxBorrow struct { // Borrower is the account address taking a loan and the signer // of the message. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
MsgMaxBorrow represents a user's request to borrow a base asset type from the module, using the maximum available amount.
func NewMsgMaxBorrow ¶
func NewMsgMaxBorrow(borrower sdk.AccAddress, denom string) *MsgMaxBorrow
func (*MsgMaxBorrow) Descriptor ¶
func (*MsgMaxBorrow) Descriptor() ([]byte, []int)
func (*MsgMaxBorrow) GetSignBytes ¶
func (msg *MsgMaxBorrow) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgMaxBorrow) GetSigners ¶
func (msg *MsgMaxBorrow) GetSigners() []sdk.AccAddress
func (*MsgMaxBorrow) Marshal ¶
func (m *MsgMaxBorrow) Marshal() (dAtA []byte, err error)
func (*MsgMaxBorrow) MarshalToSizedBuffer ¶
func (m *MsgMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMaxBorrow) ProtoMessage ¶
func (*MsgMaxBorrow) ProtoMessage()
func (*MsgMaxBorrow) Reset ¶
func (m *MsgMaxBorrow) Reset()
func (MsgMaxBorrow) Route ¶
func (msg MsgMaxBorrow) Route() string
func (*MsgMaxBorrow) Size ¶
func (m *MsgMaxBorrow) Size() (n int)
func (*MsgMaxBorrow) String ¶
func (m *MsgMaxBorrow) String() string
func (MsgMaxBorrow) Type ¶
func (msg MsgMaxBorrow) Type() string
func (*MsgMaxBorrow) Unmarshal ¶
func (m *MsgMaxBorrow) Unmarshal(dAtA []byte) error
func (*MsgMaxBorrow) ValidateBasic ¶
func (msg *MsgMaxBorrow) ValidateBasic() error
func (*MsgMaxBorrow) XXX_DiscardUnknown ¶
func (m *MsgMaxBorrow) XXX_DiscardUnknown()
func (*MsgMaxBorrow) XXX_Marshal ¶
func (m *MsgMaxBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMaxBorrow) XXX_Merge ¶
func (m *MsgMaxBorrow) XXX_Merge(src proto.Message)
func (*MsgMaxBorrow) XXX_MessageName ¶
func (*MsgMaxBorrow) XXX_MessageName() string
func (*MsgMaxBorrow) XXX_Size ¶
func (m *MsgMaxBorrow) XXX_Size() int
func (*MsgMaxBorrow) XXX_Unmarshal ¶
func (m *MsgMaxBorrow) XXX_Unmarshal(b []byte) error
type MsgMaxBorrowResponse ¶
type MsgMaxBorrowResponse struct { // Borrowed is the amount of tokens borrowed. Borrowed types.Coin `protobuf:"bytes,1,opt,name=borrowed,proto3" json:"borrowed"` }
MsgMaxBorrowResponse defines the Msg/MaxBorrow response type.
func (*MsgMaxBorrowResponse) Descriptor ¶
func (*MsgMaxBorrowResponse) Descriptor() ([]byte, []int)
func (*MsgMaxBorrowResponse) Marshal ¶
func (m *MsgMaxBorrowResponse) Marshal() (dAtA []byte, err error)
func (*MsgMaxBorrowResponse) MarshalTo ¶
func (m *MsgMaxBorrowResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMaxBorrowResponse) MarshalToSizedBuffer ¶
func (m *MsgMaxBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMaxBorrowResponse) ProtoMessage ¶
func (*MsgMaxBorrowResponse) ProtoMessage()
func (*MsgMaxBorrowResponse) Reset ¶
func (m *MsgMaxBorrowResponse) Reset()
func (*MsgMaxBorrowResponse) Size ¶
func (m *MsgMaxBorrowResponse) Size() (n int)
func (*MsgMaxBorrowResponse) String ¶
func (m *MsgMaxBorrowResponse) String() string
func (*MsgMaxBorrowResponse) Unmarshal ¶
func (m *MsgMaxBorrowResponse) Unmarshal(dAtA []byte) error
func (*MsgMaxBorrowResponse) XXX_DiscardUnknown ¶
func (m *MsgMaxBorrowResponse) XXX_DiscardUnknown()
func (*MsgMaxBorrowResponse) XXX_Marshal ¶
func (m *MsgMaxBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMaxBorrowResponse) XXX_Merge ¶
func (m *MsgMaxBorrowResponse) XXX_Merge(src proto.Message)
func (*MsgMaxBorrowResponse) XXX_MessageName ¶
func (*MsgMaxBorrowResponse) XXX_MessageName() string
func (*MsgMaxBorrowResponse) XXX_Size ¶
func (m *MsgMaxBorrowResponse) XXX_Size() int
func (*MsgMaxBorrowResponse) XXX_Unmarshal ¶
func (m *MsgMaxBorrowResponse) XXX_Unmarshal(b []byte) error
type MsgMaxWithdraw ¶
type MsgMaxWithdraw struct { // Supplier is the account address withdrawing assets and the signer of the message. Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"` // Denom is base token denom to withdraw Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
MsgMaxWithdraw represents a user's request to withdraw the maximum valid amount of supplied assets.
func NewMsgMaxWithdraw ¶
func NewMsgMaxWithdraw(supplier sdk.AccAddress, denom string) *MsgMaxWithdraw
func (*MsgMaxWithdraw) Descriptor ¶
func (*MsgMaxWithdraw) Descriptor() ([]byte, []int)
func (*MsgMaxWithdraw) GetSignBytes ¶
func (msg *MsgMaxWithdraw) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgMaxWithdraw) GetSigners ¶
func (msg *MsgMaxWithdraw) GetSigners() []sdk.AccAddress
func (*MsgMaxWithdraw) Marshal ¶
func (m *MsgMaxWithdraw) Marshal() (dAtA []byte, err error)
func (*MsgMaxWithdraw) MarshalToSizedBuffer ¶
func (m *MsgMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMaxWithdraw) ProtoMessage ¶
func (*MsgMaxWithdraw) ProtoMessage()
func (*MsgMaxWithdraw) Reset ¶
func (m *MsgMaxWithdraw) Reset()
func (MsgMaxWithdraw) Route ¶
func (msg MsgMaxWithdraw) Route() string
func (*MsgMaxWithdraw) Size ¶
func (m *MsgMaxWithdraw) Size() (n int)
func (*MsgMaxWithdraw) String ¶
func (m *MsgMaxWithdraw) String() string
func (MsgMaxWithdraw) Type ¶
func (msg MsgMaxWithdraw) Type() string
func (*MsgMaxWithdraw) Unmarshal ¶
func (m *MsgMaxWithdraw) Unmarshal(dAtA []byte) error
func (*MsgMaxWithdraw) ValidateBasic ¶
func (msg *MsgMaxWithdraw) ValidateBasic() error
func (*MsgMaxWithdraw) XXX_DiscardUnknown ¶
func (m *MsgMaxWithdraw) XXX_DiscardUnknown()
func (*MsgMaxWithdraw) XXX_Marshal ¶
func (m *MsgMaxWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMaxWithdraw) XXX_Merge ¶
func (m *MsgMaxWithdraw) XXX_Merge(src proto.Message)
func (*MsgMaxWithdraw) XXX_MessageName ¶
func (*MsgMaxWithdraw) XXX_MessageName() string
func (*MsgMaxWithdraw) XXX_Size ¶
func (m *MsgMaxWithdraw) XXX_Size() int
func (*MsgMaxWithdraw) XXX_Unmarshal ¶
func (m *MsgMaxWithdraw) XXX_Unmarshal(b []byte) error
type MsgMaxWithdrawResponse ¶
type MsgMaxWithdrawResponse struct { // Withdrawn is the amount of uTokens withdrawn. Withdrawn types.Coin `protobuf:"bytes,1,opt,name=withdrawn,proto3" json:"withdrawn"` // Received is the amount of base tokens received. Received types.Coin `protobuf:"bytes,2,opt,name=received,proto3" json:"received"` }
MsgMaxWithdrawResponse defines the Msg/MaxWithdraw response type.
func (*MsgMaxWithdrawResponse) Descriptor ¶
func (*MsgMaxWithdrawResponse) Descriptor() ([]byte, []int)
func (*MsgMaxWithdrawResponse) Marshal ¶
func (m *MsgMaxWithdrawResponse) Marshal() (dAtA []byte, err error)
func (*MsgMaxWithdrawResponse) MarshalTo ¶
func (m *MsgMaxWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMaxWithdrawResponse) MarshalToSizedBuffer ¶
func (m *MsgMaxWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMaxWithdrawResponse) ProtoMessage ¶
func (*MsgMaxWithdrawResponse) ProtoMessage()
func (*MsgMaxWithdrawResponse) Reset ¶
func (m *MsgMaxWithdrawResponse) Reset()
func (*MsgMaxWithdrawResponse) Size ¶
func (m *MsgMaxWithdrawResponse) Size() (n int)
func (*MsgMaxWithdrawResponse) String ¶
func (m *MsgMaxWithdrawResponse) String() string
func (*MsgMaxWithdrawResponse) Unmarshal ¶
func (m *MsgMaxWithdrawResponse) Unmarshal(dAtA []byte) error
func (*MsgMaxWithdrawResponse) XXX_DiscardUnknown ¶
func (m *MsgMaxWithdrawResponse) XXX_DiscardUnknown()
func (*MsgMaxWithdrawResponse) XXX_Marshal ¶
func (m *MsgMaxWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMaxWithdrawResponse) XXX_Merge ¶
func (m *MsgMaxWithdrawResponse) XXX_Merge(src proto.Message)
func (*MsgMaxWithdrawResponse) XXX_MessageName ¶
func (*MsgMaxWithdrawResponse) XXX_MessageName() string
func (*MsgMaxWithdrawResponse) XXX_Size ¶
func (m *MsgMaxWithdrawResponse) XXX_Size() int
func (*MsgMaxWithdrawResponse) XXX_Unmarshal ¶
func (m *MsgMaxWithdrawResponse) XXX_Unmarshal(b []byte) error
type MsgRepay ¶
type MsgRepay struct { // Borrower is the account address repaying a loan and the signer // of the message. Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
MsgRepay represents a user's request to repay a borrowed base asset type to the module.
func NewMsgRepay ¶
func NewMsgRepay(borrower sdk.AccAddress, asset sdk.Coin) *MsgRepay
func (*MsgRepay) Descriptor ¶
func (*MsgRepay) GetSignBytes ¶
GetSignBytes get the bytes for the message signer to sign on
func (*MsgRepay) GetSigners ¶
func (msg *MsgRepay) GetSigners() []sdk.AccAddress
func (*MsgRepay) MarshalToSizedBuffer ¶
func (*MsgRepay) ProtoMessage ¶
func (*MsgRepay) ProtoMessage()
func (*MsgRepay) ValidateBasic ¶
func (*MsgRepay) XXX_DiscardUnknown ¶
func (m *MsgRepay) XXX_DiscardUnknown()
func (*MsgRepay) XXX_Marshal ¶
func (*MsgRepay) XXX_MessageName ¶
func (*MsgRepay) XXX_Unmarshal ¶
type MsgRepayResponse ¶
type MsgRepayResponse struct { // Repaid is the amount of base tokens repaid to the module. Repaid types.Coin `protobuf:"bytes,1,opt,name=repaid,proto3" json:"repaid"` }
MsgRepayResponse defines the Msg/Repay response type.
func (*MsgRepayResponse) Descriptor ¶
func (*MsgRepayResponse) Descriptor() ([]byte, []int)
func (*MsgRepayResponse) Marshal ¶
func (m *MsgRepayResponse) Marshal() (dAtA []byte, err error)
func (*MsgRepayResponse) MarshalToSizedBuffer ¶
func (m *MsgRepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRepayResponse) ProtoMessage ¶
func (*MsgRepayResponse) ProtoMessage()
func (*MsgRepayResponse) Reset ¶
func (m *MsgRepayResponse) Reset()
func (*MsgRepayResponse) Size ¶
func (m *MsgRepayResponse) Size() (n int)
func (*MsgRepayResponse) String ¶
func (m *MsgRepayResponse) String() string
func (*MsgRepayResponse) Unmarshal ¶
func (m *MsgRepayResponse) Unmarshal(dAtA []byte) error
func (*MsgRepayResponse) XXX_DiscardUnknown ¶
func (m *MsgRepayResponse) XXX_DiscardUnknown()
func (*MsgRepayResponse) XXX_Marshal ¶
func (m *MsgRepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRepayResponse) XXX_Merge ¶
func (m *MsgRepayResponse) XXX_Merge(src proto.Message)
func (*MsgRepayResponse) XXX_MessageName ¶
func (*MsgRepayResponse) XXX_MessageName() string
func (*MsgRepayResponse) XXX_Size ¶
func (m *MsgRepayResponse) XXX_Size() int
func (*MsgRepayResponse) XXX_Unmarshal ¶
func (m *MsgRepayResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Supply moves tokens from user balance to the module for lending or collateral. // The user receives uTokens in return. Supply(context.Context, *MsgSupply) (*MsgSupplyResponse, error) // Withdraw moves previously supplied tokens from the module back to the user balance in // exchange for burning uTokens. Withdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error) // MaxWithdraw moves previously supplied tokens from the module back to the user balance in // exchange for burning uTokens. It automatically calculates the maximum valid amount to withdraw. // Zero is returned if no more tokens can be withdrawn. MaxWithdraw(context.Context, *MsgMaxWithdraw) (*MsgMaxWithdrawResponse, error) // Collateralize enables selected uTokens as collateral, which moves them to the module. Collateralize(context.Context, *MsgCollateralize) (*MsgCollateralizeResponse, error) // Decollateralize disables selected uTokens as collateral. They are returned to the user's // balance from the module. Decollateralize(context.Context, *MsgDecollateralize) (*MsgDecollateralizeResponse, error) // Borrow allows a user to borrow tokens from the module if they have sufficient collateral. Borrow(context.Context, *MsgBorrow) (*MsgBorrowResponse, error) // MaxBorrow allows a user to borrow the maximum amount of tokens their collateral will allow. // Zero is returned if no more can be borrowed. MaxBorrow(context.Context, *MsgMaxBorrow) (*MsgMaxBorrowResponse, error) // Repay allows a user to repay previously borrowed tokens and interest. Repay(context.Context, *MsgRepay) (*MsgRepayResponse, error) // Liquidate allows a user to repay a different user's borrowed coins in exchange for some // of the target's collateral. Liquidate(context.Context, *MsgLiquidate) (*MsgLiquidateResponse, error) // LeveragedLiquidate allows a user to repay a different user's borrowed coins in exchange for some // of the target's collateral. For leveraged liquidations, the tokens to repay are borrowed instead of // being taken from the liquidator's wallet, and the reward is immediately collateralized. Borrow // limit checks for the liquidator are deferred until after the reward is collateralized, allowing // this initial borrow to exceed the liquidator's borrow limit as long as it is healthy by the end // of the transaction. Repay amount is calculated automatically, so the liquidator only specifies // repay and reward token denoms. For safety, the liquidator cannot exceed 80% of their borrow limit when // executing this transaction, instead of the regular 100%. Also allows repayment and reward denoms to // be left blank - if not specified, the module will automatically select the first (alphabetically by denom) // borrow and/or collateral on the target account and the proceed normally. // After v6.0, includes a MaxRepay field which limits repay value in USD. To prevent dust exploits, this // value cannot be below $1.00 LeveragedLiquidate(context.Context, *MsgLeveragedLiquidate) (*MsgLeveragedLiquidateResponse, error) // SupplyCollateral combines the Supply and Collateralize actions. SupplyCollateral(context.Context, *MsgSupplyCollateral) (*MsgSupplyCollateralResponse, error) // GovUpdateRegistry adds new tokens to the token registry or // updates existing tokens with new settings. GovUpdateRegistry(context.Context, *MsgGovUpdateRegistry) (*MsgGovUpdateRegistryResponse, error) // GovUpdateSpecialAssets adds, updates, or removes special asset pairs. Note that a special asset // pair can be removed by setting its special collateral weight to negative one. Also allows for the creation // of sets of assets, where each asset in the set forms a special asset pair with all of the others. GovUpdateSpecialAssets(context.Context, *MsgGovUpdateSpecialAssets) (*MsgGovUpdateSpecialAssetsResponse, error) // GovSetParams is used by governance proposals to update parameters. GovSetParams(context.Context, *MsgGovSetParams) (*MsgGovSetParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSupply ¶
type MsgSupply struct { // Supplier is the account address supplying assets and the signer of the message. Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
MsgSupply represents a user's request to supply assets to the module.
func NewMsgSupply ¶
func NewMsgSupply(supplier sdk.AccAddress, asset sdk.Coin) *MsgSupply
func (*MsgSupply) Descriptor ¶
func (*MsgSupply) GetSignBytes ¶
GetSignBytes get the bytes for the message signer to sign on
func (*MsgSupply) GetSigners ¶
func (msg *MsgSupply) GetSigners() []sdk.AccAddress
func (*MsgSupply) MarshalToSizedBuffer ¶
func (*MsgSupply) ProtoMessage ¶
func (*MsgSupply) ProtoMessage()
func (*MsgSupply) ValidateBasic ¶
func (*MsgSupply) XXX_DiscardUnknown ¶
func (m *MsgSupply) XXX_DiscardUnknown()
func (*MsgSupply) XXX_Marshal ¶
func (*MsgSupply) XXX_MessageName ¶
func (*MsgSupply) XXX_Unmarshal ¶
type MsgSupplyCollateral ¶
type MsgSupplyCollateral struct { // Supplier is the account address supplying assets and the signer of the message. Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
MsgSupplyCollateral represents a user's request to supply and collateralize assets to the module.
func NewMsgSupplyCollateral ¶
func NewMsgSupplyCollateral(supplier sdk.AccAddress, asset sdk.Coin) *MsgSupplyCollateral
func (*MsgSupplyCollateral) Descriptor ¶
func (*MsgSupplyCollateral) Descriptor() ([]byte, []int)
func (*MsgSupplyCollateral) GetSignBytes ¶
func (msg *MsgSupplyCollateral) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgSupplyCollateral) GetSigners ¶
func (msg *MsgSupplyCollateral) GetSigners() []sdk.AccAddress
func (*MsgSupplyCollateral) Marshal ¶
func (m *MsgSupplyCollateral) Marshal() (dAtA []byte, err error)
func (*MsgSupplyCollateral) MarshalTo ¶
func (m *MsgSupplyCollateral) MarshalTo(dAtA []byte) (int, error)
func (*MsgSupplyCollateral) MarshalToSizedBuffer ¶
func (m *MsgSupplyCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSupplyCollateral) ProtoMessage ¶
func (*MsgSupplyCollateral) ProtoMessage()
func (*MsgSupplyCollateral) Reset ¶
func (m *MsgSupplyCollateral) Reset()
func (MsgSupplyCollateral) Route ¶
func (msg MsgSupplyCollateral) Route() string
func (*MsgSupplyCollateral) Size ¶
func (m *MsgSupplyCollateral) Size() (n int)
func (*MsgSupplyCollateral) String ¶
func (m *MsgSupplyCollateral) String() string
func (MsgSupplyCollateral) Type ¶
func (msg MsgSupplyCollateral) Type() string
func (*MsgSupplyCollateral) Unmarshal ¶
func (m *MsgSupplyCollateral) Unmarshal(dAtA []byte) error
func (*MsgSupplyCollateral) ValidateBasic ¶
func (msg *MsgSupplyCollateral) ValidateBasic() error
func (*MsgSupplyCollateral) XXX_DiscardUnknown ¶
func (m *MsgSupplyCollateral) XXX_DiscardUnknown()
func (*MsgSupplyCollateral) XXX_Marshal ¶
func (m *MsgSupplyCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSupplyCollateral) XXX_Merge ¶
func (m *MsgSupplyCollateral) XXX_Merge(src proto.Message)
func (*MsgSupplyCollateral) XXX_MessageName ¶
func (*MsgSupplyCollateral) XXX_MessageName() string
func (*MsgSupplyCollateral) XXX_Size ¶
func (m *MsgSupplyCollateral) XXX_Size() int
func (*MsgSupplyCollateral) XXX_Unmarshal ¶
func (m *MsgSupplyCollateral) XXX_Unmarshal(b []byte) error
type MsgSupplyCollateralResponse ¶
type MsgSupplyCollateralResponse struct { // Collateralized is the amount of uTokens collateralized. Collateralized types.Coin `protobuf:"bytes,1,opt,name=collateralized,proto3" json:"collateralized"` }
MsgSupplyCollateralResponse defines the Msg/SupplyCollateral response type.
func (*MsgSupplyCollateralResponse) Descriptor ¶
func (*MsgSupplyCollateralResponse) Descriptor() ([]byte, []int)
func (*MsgSupplyCollateralResponse) Marshal ¶
func (m *MsgSupplyCollateralResponse) Marshal() (dAtA []byte, err error)
func (*MsgSupplyCollateralResponse) MarshalTo ¶
func (m *MsgSupplyCollateralResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSupplyCollateralResponse) MarshalToSizedBuffer ¶
func (m *MsgSupplyCollateralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSupplyCollateralResponse) ProtoMessage ¶
func (*MsgSupplyCollateralResponse) ProtoMessage()
func (*MsgSupplyCollateralResponse) Reset ¶
func (m *MsgSupplyCollateralResponse) Reset()
func (*MsgSupplyCollateralResponse) Size ¶
func (m *MsgSupplyCollateralResponse) Size() (n int)
func (*MsgSupplyCollateralResponse) String ¶
func (m *MsgSupplyCollateralResponse) String() string
func (*MsgSupplyCollateralResponse) Unmarshal ¶
func (m *MsgSupplyCollateralResponse) Unmarshal(dAtA []byte) error
func (*MsgSupplyCollateralResponse) XXX_DiscardUnknown ¶
func (m *MsgSupplyCollateralResponse) XXX_DiscardUnknown()
func (*MsgSupplyCollateralResponse) XXX_Marshal ¶
func (m *MsgSupplyCollateralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSupplyCollateralResponse) XXX_Merge ¶
func (m *MsgSupplyCollateralResponse) XXX_Merge(src proto.Message)
func (*MsgSupplyCollateralResponse) XXX_MessageName ¶
func (*MsgSupplyCollateralResponse) XXX_MessageName() string
func (*MsgSupplyCollateralResponse) XXX_Size ¶
func (m *MsgSupplyCollateralResponse) XXX_Size() int
func (*MsgSupplyCollateralResponse) XXX_Unmarshal ¶
func (m *MsgSupplyCollateralResponse) XXX_Unmarshal(b []byte) error
type MsgSupplyResponse ¶
type MsgSupplyResponse struct { // Received is the amount of uTokens received. Received types.Coin `protobuf:"bytes,1,opt,name=received,proto3" json:"received"` }
MsgSupplyResponse defines the Msg/Supply response type.
func (*MsgSupplyResponse) Descriptor ¶
func (*MsgSupplyResponse) Descriptor() ([]byte, []int)
func (*MsgSupplyResponse) Marshal ¶
func (m *MsgSupplyResponse) Marshal() (dAtA []byte, err error)
func (*MsgSupplyResponse) MarshalTo ¶
func (m *MsgSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSupplyResponse) MarshalToSizedBuffer ¶
func (m *MsgSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSupplyResponse) ProtoMessage ¶
func (*MsgSupplyResponse) ProtoMessage()
func (*MsgSupplyResponse) Reset ¶
func (m *MsgSupplyResponse) Reset()
func (*MsgSupplyResponse) Size ¶
func (m *MsgSupplyResponse) Size() (n int)
func (*MsgSupplyResponse) String ¶
func (m *MsgSupplyResponse) String() string
func (*MsgSupplyResponse) Unmarshal ¶
func (m *MsgSupplyResponse) Unmarshal(dAtA []byte) error
func (*MsgSupplyResponse) XXX_DiscardUnknown ¶
func (m *MsgSupplyResponse) XXX_DiscardUnknown()
func (*MsgSupplyResponse) XXX_Marshal ¶
func (m *MsgSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSupplyResponse) XXX_Merge ¶
func (m *MsgSupplyResponse) XXX_Merge(src proto.Message)
func (*MsgSupplyResponse) XXX_MessageName ¶
func (*MsgSupplyResponse) XXX_MessageName() string
func (*MsgSupplyResponse) XXX_Size ¶
func (m *MsgSupplyResponse) XXX_Size() int
func (*MsgSupplyResponse) XXX_Unmarshal ¶
func (m *MsgSupplyResponse) XXX_Unmarshal(b []byte) error
type MsgWithdraw ¶
type MsgWithdraw struct { // Supplier is the account address withdrawing assets and the signer of the message. Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` }
MsgWithdraw represents a user's request to withdraw supplied assets. Asset must be a uToken.
func NewMsgWithdraw ¶
func NewMsgWithdraw(supplier sdk.AccAddress, asset sdk.Coin) *MsgWithdraw
func (*MsgWithdraw) Descriptor ¶
func (*MsgWithdraw) Descriptor() ([]byte, []int)
func (*MsgWithdraw) GetSignBytes ¶
func (msg *MsgWithdraw) GetSignBytes() []byte
GetSignBytes get the bytes for the message signer to sign on
func (*MsgWithdraw) GetSigners ¶
func (msg *MsgWithdraw) GetSigners() []sdk.AccAddress
func (*MsgWithdraw) Marshal ¶
func (m *MsgWithdraw) Marshal() (dAtA []byte, err error)
func (*MsgWithdraw) MarshalToSizedBuffer ¶
func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdraw) ProtoMessage ¶
func (*MsgWithdraw) ProtoMessage()
func (*MsgWithdraw) Reset ¶
func (m *MsgWithdraw) Reset()
func (MsgWithdraw) Route ¶
func (msg MsgWithdraw) Route() string
func (*MsgWithdraw) Size ¶
func (m *MsgWithdraw) Size() (n int)
func (*MsgWithdraw) String ¶
func (m *MsgWithdraw) String() string
func (MsgWithdraw) Type ¶
func (msg MsgWithdraw) Type() string
func (*MsgWithdraw) Unmarshal ¶
func (m *MsgWithdraw) Unmarshal(dAtA []byte) error
func (*MsgWithdraw) ValidateBasic ¶
func (msg *MsgWithdraw) ValidateBasic() error
func (*MsgWithdraw) XXX_DiscardUnknown ¶
func (m *MsgWithdraw) XXX_DiscardUnknown()
func (*MsgWithdraw) XXX_Marshal ¶
func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdraw) XXX_Merge ¶
func (m *MsgWithdraw) XXX_Merge(src proto.Message)
func (*MsgWithdraw) XXX_MessageName ¶
func (*MsgWithdraw) XXX_MessageName() string
func (*MsgWithdraw) XXX_Size ¶
func (m *MsgWithdraw) XXX_Size() int
func (*MsgWithdraw) XXX_Unmarshal ¶
func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error
type MsgWithdrawResponse ¶
type MsgWithdrawResponse struct { // Received is the amount of base tokens received. Received types.Coin `protobuf:"bytes,1,opt,name=received,proto3" json:"received"` }
MsgWithdrawResponse defines the Msg/Withdraw response type.
func (*MsgWithdrawResponse) Descriptor ¶
func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawResponse) Marshal ¶
func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawResponse) MarshalTo ¶
func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawResponse) ProtoMessage ¶
func (*MsgWithdrawResponse) ProtoMessage()
func (*MsgWithdrawResponse) Reset ¶
func (m *MsgWithdrawResponse) Reset()
func (*MsgWithdrawResponse) Size ¶
func (m *MsgWithdrawResponse) Size() (n int)
func (*MsgWithdrawResponse) String ¶
func (m *MsgWithdrawResponse) String() string
func (*MsgWithdrawResponse) Unmarshal ¶
func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawResponse) XXX_DiscardUnknown()
func (*MsgWithdrawResponse) XXX_Marshal ¶
func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawResponse) XXX_Merge ¶
func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawResponse) XXX_MessageName ¶
func (*MsgWithdrawResponse) XXX_MessageName() string
func (*MsgWithdrawResponse) XXX_Size ¶
func (m *MsgWithdrawResponse) XXX_Size() int
func (*MsgWithdrawResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error
type OracleKeeper ¶
type OracleKeeper interface { GetExchangeRate(ctx sdk.Context, denom string) (sdk.Dec, error) MedianOfHistoricMedians(ctx sdk.Context, denom string, numStamps uint64) (sdk.Dec, uint32, error) }
OracleKeeper defines the expected x/oracle keeper interface.
type Params ¶
type Params struct { // Complete Liquidation Threshold determines how far between // liquidation_threshold (LT) and collateral_value (CV) a borrower's // borrowed value must have progressed in order to allow a full liquidation. // 0.3 indicates 30% of the way from LT to CV. // See also `minimum_close_factor` for more information. // Valid values: 0-1. CompleteLiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 225-byte string literal not displayed */ // Close Factor determines the portion of a borrower's position that can be // liquidated in a single event. Minimum Close Factor is Close Factor at // liquidation_threshold. 0.1 means that that 10% of the borrower position can // be liquidated when the borrowed value passes the liquidation_threshold. // close_factor scales linearly between minimum_close_factor and 1.0, // reaching its maximum when borrowed value passes // complete_liquidation_threshold. We can put it into the picture: // // borrowed CV := collateral // value value // --- | ------- | ----- | -------- | -------> // LV CL // // LV = liquidation value = liquidation_threshold * CV // CL = LV + (CV-LV) * complete_liquidation_threshold // is the borrowed value above which close factor will be 1. // // Valid values: 0-1. MinimumCloseFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */ // Oracle Reward Factor determines the portion of interest accrued on // borrows that is sent to the oracle module to fund its reward pool. // Valid values: 0-1. OracleRewardFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */ // Small Liquidation Size determines the USD value at which a borrow is // considered small enough to be liquidated in a single transaction, bypassing // dynamic close factor. SmallLiquidationSize github_com_cosmos_cosmos_sdk_types.Dec `` /* 193-byte string literal not displayed */ // Direct Liquidation Fee is a reduction factor in liquidation incentive // experienced by liquidators who choose to receive base assets instead of // uTokens as liquidation rewards. // Valid values: 0-1. DirectLiquidationFee github_com_cosmos_cosmos_sdk_types.Dec `` /* 193-byte string literal not displayed */ }
Params defines the parameters for the leverage module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PriceMode ¶
type PriceMode uint64
Enumerates different ways to request the price of a token
const ( // Spot mode requests the most recent prices from oracle PriceModeSpot PriceMode = iota // Historic mode requests the median of the most recent historic medians PriceModeHistoric // High mode uses the higher of either Spot or Historic prices PriceModeHigh // Low mode uses the lower of either Spot or Historic prices PriceModeLow )
type QueryAccountBalances ¶
type QueryAccountBalances struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
QueryAccountBalances defines the request structure for the AccountBalances gRPC service handler.
func (*QueryAccountBalances) Descriptor ¶
func (*QueryAccountBalances) Descriptor() ([]byte, []int)
func (*QueryAccountBalances) Marshal ¶
func (m *QueryAccountBalances) Marshal() (dAtA []byte, err error)
func (*QueryAccountBalances) MarshalTo ¶
func (m *QueryAccountBalances) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountBalances) MarshalToSizedBuffer ¶
func (m *QueryAccountBalances) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountBalances) ProtoMessage ¶
func (*QueryAccountBalances) ProtoMessage()
func (*QueryAccountBalances) Reset ¶
func (m *QueryAccountBalances) Reset()
func (*QueryAccountBalances) Size ¶
func (m *QueryAccountBalances) Size() (n int)
func (*QueryAccountBalances) String ¶
func (m *QueryAccountBalances) String() string
func (*QueryAccountBalances) Unmarshal ¶
func (m *QueryAccountBalances) Unmarshal(dAtA []byte) error
func (*QueryAccountBalances) XXX_DiscardUnknown ¶
func (m *QueryAccountBalances) XXX_DiscardUnknown()
func (*QueryAccountBalances) XXX_Marshal ¶
func (m *QueryAccountBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountBalances) XXX_Merge ¶
func (m *QueryAccountBalances) XXX_Merge(src proto.Message)
func (*QueryAccountBalances) XXX_Size ¶
func (m *QueryAccountBalances) XXX_Size() int
func (*QueryAccountBalances) XXX_Unmarshal ¶
func (m *QueryAccountBalances) XXX_Unmarshal(b []byte) error
type QueryAccountBalancesResponse ¶
type QueryAccountBalancesResponse struct { // Supplied contains all tokens the account has supplied, including interest earned. It is denominated in base tokens, so exponent from each coin's registered_tokens entry must be applied to convert to symbol denom. Supplied github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supplied,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supplied"` // Collateral contains all uTokens the account has collateralized. It is denominated in uTokens, so both exponent and uToken exchange rate from each coin's market_summary must be applied to convert to base token symbol denom. Collateral github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=collateral,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"collateral"` // Borrowed contains all tokens the account has borrowed, including interest owed. It is denominated in base tokens, so exponent from each coin's registered_tokens entry must be applied to convert to symbol denom. Borrowed github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=borrowed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"borrowed"` }
QueryAccountBalancesResponse defines the response structure for the AccountBalances gRPC service handler.
func (*QueryAccountBalancesResponse) Descriptor ¶
func (*QueryAccountBalancesResponse) Descriptor() ([]byte, []int)
func (*QueryAccountBalancesResponse) Marshal ¶
func (m *QueryAccountBalancesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountBalancesResponse) MarshalTo ¶
func (m *QueryAccountBalancesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountBalancesResponse) MarshalToSizedBuffer ¶
func (m *QueryAccountBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountBalancesResponse) ProtoMessage ¶
func (*QueryAccountBalancesResponse) ProtoMessage()
func (*QueryAccountBalancesResponse) Reset ¶
func (m *QueryAccountBalancesResponse) Reset()
func (*QueryAccountBalancesResponse) Size ¶
func (m *QueryAccountBalancesResponse) Size() (n int)
func (*QueryAccountBalancesResponse) String ¶
func (m *QueryAccountBalancesResponse) String() string
func (*QueryAccountBalancesResponse) Unmarshal ¶
func (m *QueryAccountBalancesResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountBalancesResponse) XXX_DiscardUnknown ¶
func (m *QueryAccountBalancesResponse) XXX_DiscardUnknown()
func (*QueryAccountBalancesResponse) XXX_Marshal ¶
func (m *QueryAccountBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountBalancesResponse) XXX_Merge ¶
func (m *QueryAccountBalancesResponse) XXX_Merge(src proto.Message)
func (*QueryAccountBalancesResponse) XXX_Size ¶
func (m *QueryAccountBalancesResponse) XXX_Size() int
func (*QueryAccountBalancesResponse) XXX_Unmarshal ¶
func (m *QueryAccountBalancesResponse) XXX_Unmarshal(b []byte) error
type QueryAccountSummary ¶
type QueryAccountSummary struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
QueryAccountSummary defines the request structure for the AccountSummary gRPC service handler.
func (*QueryAccountSummary) Descriptor ¶
func (*QueryAccountSummary) Descriptor() ([]byte, []int)
func (*QueryAccountSummary) Marshal ¶
func (m *QueryAccountSummary) Marshal() (dAtA []byte, err error)
func (*QueryAccountSummary) MarshalTo ¶
func (m *QueryAccountSummary) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountSummary) MarshalToSizedBuffer ¶
func (m *QueryAccountSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountSummary) ProtoMessage ¶
func (*QueryAccountSummary) ProtoMessage()
func (*QueryAccountSummary) Reset ¶
func (m *QueryAccountSummary) Reset()
func (*QueryAccountSummary) Size ¶
func (m *QueryAccountSummary) Size() (n int)
func (*QueryAccountSummary) String ¶
func (m *QueryAccountSummary) String() string
func (*QueryAccountSummary) Unmarshal ¶
func (m *QueryAccountSummary) Unmarshal(dAtA []byte) error
func (*QueryAccountSummary) XXX_DiscardUnknown ¶
func (m *QueryAccountSummary) XXX_DiscardUnknown()
func (*QueryAccountSummary) XXX_Marshal ¶
func (m *QueryAccountSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountSummary) XXX_Merge ¶
func (m *QueryAccountSummary) XXX_Merge(src proto.Message)
func (*QueryAccountSummary) XXX_Size ¶
func (m *QueryAccountSummary) XXX_Size() int
func (*QueryAccountSummary) XXX_Unmarshal ¶
func (m *QueryAccountSummary) XXX_Unmarshal(b []byte) error
type QueryAccountSummaryResponse ¶
type QueryAccountSummaryResponse struct { // Supplied Value is the sum of the USD value of all tokens the account has supplied, including interest earned. // Computation skips assets which are missing oracle prices, potentially resulting in a lower supplied // value than if prices were all available. SuppliedValue github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */ // Collateral Value is the sum of the USD value of all uTokens the account has collateralized. // Computation skips collateral which is missing an oracle price, potentially resulting in a lower collateral // value than if prices were all available. CollateralValue github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */ // Borrowed Value is the sum of the USD value of all tokens the account has borrowed, including interest owed. // It always uses spot prices. // Computation skips borrows which are missing oracle prices, potentially resulting in a lower borrowed // value than if prices were all available. BorrowedValue github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */ // Borrow Limit is the maximum Borrowed Value the account is allowed to reach through direct borrowing. // The lower of spot or historic price for each collateral token is used when calculating borrow limits. // Computation skips collateral which is missing an oracle price, potentially resulting in a lower borrow // limit than if prices were all available. BorrowLimit github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */ // Liquidation Threshold is the Borrowed Value at which the account becomes eligible for liquidation. // Will be null if an oracle price required for computation is missing. LiquidationThreshold *github_com_cosmos_cosmos_sdk_types.Dec `` /* 171-byte string literal not displayed */ }
QueryAccountSummaryResponse defines the response structure for the AccountSummary gRPC service handler.
func (*QueryAccountSummaryResponse) Descriptor ¶
func (*QueryAccountSummaryResponse) Descriptor() ([]byte, []int)
func (*QueryAccountSummaryResponse) Marshal ¶
func (m *QueryAccountSummaryResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountSummaryResponse) MarshalTo ¶
func (m *QueryAccountSummaryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountSummaryResponse) MarshalToSizedBuffer ¶
func (m *QueryAccountSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountSummaryResponse) ProtoMessage ¶
func (*QueryAccountSummaryResponse) ProtoMessage()
func (*QueryAccountSummaryResponse) Reset ¶
func (m *QueryAccountSummaryResponse) Reset()
func (*QueryAccountSummaryResponse) Size ¶
func (m *QueryAccountSummaryResponse) Size() (n int)
func (*QueryAccountSummaryResponse) String ¶
func (m *QueryAccountSummaryResponse) String() string
func (*QueryAccountSummaryResponse) Unmarshal ¶
func (m *QueryAccountSummaryResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountSummaryResponse) XXX_DiscardUnknown ¶
func (m *QueryAccountSummaryResponse) XXX_DiscardUnknown()
func (*QueryAccountSummaryResponse) XXX_Marshal ¶
func (m *QueryAccountSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountSummaryResponse) XXX_Merge ¶
func (m *QueryAccountSummaryResponse) XXX_Merge(src proto.Message)
func (*QueryAccountSummaryResponse) XXX_Size ¶
func (m *QueryAccountSummaryResponse) XXX_Size() int
func (*QueryAccountSummaryResponse) XXX_Unmarshal ¶
func (m *QueryAccountSummaryResponse) XXX_Unmarshal(b []byte) error
type QueryBadDebts ¶
type QueryBadDebts struct { }
QueryBadDebts defines the request structure for the BedDebts gRPC service handler.
func (*QueryBadDebts) Descriptor ¶
func (*QueryBadDebts) Descriptor() ([]byte, []int)
func (*QueryBadDebts) Marshal ¶
func (m *QueryBadDebts) Marshal() (dAtA []byte, err error)
func (*QueryBadDebts) MarshalToSizedBuffer ¶
func (m *QueryBadDebts) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBadDebts) ProtoMessage ¶
func (*QueryBadDebts) ProtoMessage()
func (*QueryBadDebts) Reset ¶
func (m *QueryBadDebts) Reset()
func (*QueryBadDebts) Size ¶
func (m *QueryBadDebts) Size() (n int)
func (*QueryBadDebts) String ¶
func (m *QueryBadDebts) String() string
func (*QueryBadDebts) Unmarshal ¶
func (m *QueryBadDebts) Unmarshal(dAtA []byte) error
func (*QueryBadDebts) XXX_DiscardUnknown ¶
func (m *QueryBadDebts) XXX_DiscardUnknown()
func (*QueryBadDebts) XXX_Marshal ¶
func (m *QueryBadDebts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBadDebts) XXX_Merge ¶
func (m *QueryBadDebts) XXX_Merge(src proto.Message)
func (*QueryBadDebts) XXX_Size ¶
func (m *QueryBadDebts) XXX_Size() int
func (*QueryBadDebts) XXX_Unmarshal ¶
func (m *QueryBadDebts) XXX_Unmarshal(b []byte) error
type QueryBadDebtsResponse ¶
type QueryBadDebtsResponse struct { // Targets are borrow positions currently marked for bad debt repayment. Each contains an Address and a Denom. Targets []BadDebt `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets"` }
QueryBadDebtsResponse defines the response structure for the BedDebts gRPC service handler.
func (*QueryBadDebtsResponse) Descriptor ¶
func (*QueryBadDebtsResponse) Descriptor() ([]byte, []int)
func (*QueryBadDebtsResponse) Marshal ¶
func (m *QueryBadDebtsResponse) Marshal() (dAtA []byte, err error)
func (*QueryBadDebtsResponse) MarshalTo ¶
func (m *QueryBadDebtsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBadDebtsResponse) MarshalToSizedBuffer ¶
func (m *QueryBadDebtsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBadDebtsResponse) ProtoMessage ¶
func (*QueryBadDebtsResponse) ProtoMessage()
func (*QueryBadDebtsResponse) Reset ¶
func (m *QueryBadDebtsResponse) Reset()
func (*QueryBadDebtsResponse) Size ¶
func (m *QueryBadDebtsResponse) Size() (n int)
func (*QueryBadDebtsResponse) String ¶
func (m *QueryBadDebtsResponse) String() string
func (*QueryBadDebtsResponse) Unmarshal ¶
func (m *QueryBadDebtsResponse) Unmarshal(dAtA []byte) error
func (*QueryBadDebtsResponse) XXX_DiscardUnknown ¶
func (m *QueryBadDebtsResponse) XXX_DiscardUnknown()
func (*QueryBadDebtsResponse) XXX_Marshal ¶
func (m *QueryBadDebtsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBadDebtsResponse) XXX_Merge ¶
func (m *QueryBadDebtsResponse) XXX_Merge(src proto.Message)
func (*QueryBadDebtsResponse) XXX_Size ¶
func (m *QueryBadDebtsResponse) XXX_Size() int
func (*QueryBadDebtsResponse) XXX_Unmarshal ¶
func (m *QueryBadDebtsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the x/leverage module. Params(ctx context.Context, in *QueryParams, opts ...grpc.CallOption) (*QueryParamsResponse, error) // RegisteredTokens queries for all the registered tokens. RegisteredTokens(ctx context.Context, in *QueryRegisteredTokens, opts ...grpc.CallOption) (*QueryRegisteredTokensResponse, error) // SpecialAssets queries for all special asset pairs. SpecialAssets(ctx context.Context, in *QuerySpecialAssets, opts ...grpc.CallOption) (*QuerySpecialAssetsResponse, error) // MarketSummary queries a base asset's current borrowing and supplying conditions. MarketSummary(ctx context.Context, in *QueryMarketSummary, opts ...grpc.CallOption) (*QueryMarketSummaryResponse, error) // AccountBalances queries an account's current supply, collateral, and borrow positions. AccountBalances(ctx context.Context, in *QueryAccountBalances, opts ...grpc.CallOption) (*QueryAccountBalancesResponse, error) // AccountSummary queries USD values representing an account's total positions and borrowing limits. It requires oracle prices to return successfully. AccountSummary(ctx context.Context, in *QueryAccountSummary, opts ...grpc.CallOption) (*QueryAccountSummaryResponse, error) // LiquidationTargets queries a list of all borrower account addresses eligible for liquidation. LiquidationTargets(ctx context.Context, in *QueryLiquidationTargets, opts ...grpc.CallOption) (*QueryLiquidationTargetsResponse, error) // BadDebts queries a list of borrow positions that have been marked for bad debt repayment. BadDebts(ctx context.Context, in *QueryBadDebts, opts ...grpc.CallOption) (*QueryBadDebtsResponse, error) // MaxWithdraw queries the maximum amount of a given token an address can withdraw. MaxWithdraw(ctx context.Context, in *QueryMaxWithdraw, opts ...grpc.CallOption) (*QueryMaxWithdrawResponse, error) // MaxBorrow queries the maximum amount of a given token an address can borrow. MaxBorrow(ctx context.Context, in *QueryMaxBorrow, opts ...grpc.CallOption) (*QueryMaxBorrowResponse, error) // Inspect is the customizable inspector query. It returns a list of all borrowers, // starting from the highest borrowed value, filtered by any combination of: minimum // borrowed value (optionally of a specified token), minimum collateral value, minimum // progress toward liquidation threshold, and minimum LTV. Each account is displayed // with its address and borrowed/liquidation/collateral USD values, as well as its // actual token positions in human-readable symbol denoms instead of uTokens or ibc denoms. Inspect(ctx context.Context, in *QueryInspect, opts ...grpc.CallOption) (*QueryInspectResponse, 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 QueryInspect ¶
type QueryInspect struct { // Symbol selects a symbol denom to sort accounts by borrowed value. Use "all" or empty string to show all. Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // Borrowed is the minimum USD value an account must have borrowed to show. Use 0 to show all. Borrowed float64 `protobuf:"fixed64,2,opt,name=borrowed,proto3" json:"borrowed,omitempty"` // Collateral is the minimum USD value of collateral an account must have to show. Use 0 to show all. Collateral float64 `protobuf:"fixed64,3,opt,name=collateral,proto3" json:"collateral,omitempty"` // Danger is the minimum progress toward liquidation an account must have to show. Use 0 to show all. // Measured as the ratio (borrowed value / liquidation threshold), where > 1 is liquidation-eligible. Danger float64 `protobuf:"fixed64,4,opt,name=danger,proto3" json:"danger,omitempty"` // LTV is the minimum ratio (borrowed value / collateral value) an account must have to show. Use 0 to show all. Ltv float64 `protobuf:"fixed64,5,opt,name=ltv,proto3" json:"ltv,omitempty"` }
QueryInspect defines the request structure for the Inspect gRPC service handler.
func (*QueryInspect) Descriptor ¶
func (*QueryInspect) Descriptor() ([]byte, []int)
func (*QueryInspect) Marshal ¶
func (m *QueryInspect) Marshal() (dAtA []byte, err error)
func (*QueryInspect) MarshalToSizedBuffer ¶
func (m *QueryInspect) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInspect) ProtoMessage ¶
func (*QueryInspect) ProtoMessage()
func (*QueryInspect) Reset ¶
func (m *QueryInspect) Reset()
func (*QueryInspect) Size ¶
func (m *QueryInspect) Size() (n int)
func (*QueryInspect) String ¶
func (m *QueryInspect) String() string
func (*QueryInspect) Unmarshal ¶
func (m *QueryInspect) Unmarshal(dAtA []byte) error
func (*QueryInspect) XXX_DiscardUnknown ¶
func (m *QueryInspect) XXX_DiscardUnknown()
func (*QueryInspect) XXX_Marshal ¶
func (m *QueryInspect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInspect) XXX_Merge ¶
func (m *QueryInspect) XXX_Merge(src proto.Message)
func (*QueryInspect) XXX_Size ¶
func (m *QueryInspect) XXX_Size() int
func (*QueryInspect) XXX_Unmarshal ¶
func (m *QueryInspect) XXX_Unmarshal(b []byte) error
type QueryInspectResponse ¶
type QueryInspectResponse struct {
Borrowers []InspectAccount `protobuf:"bytes,1,rep,name=borrowers,proto3" json:"borrowers"`
}
QueryInspectResponse defines the response structure for the Inspect gRPC service handler.
func (*QueryInspectResponse) Descriptor ¶
func (*QueryInspectResponse) Descriptor() ([]byte, []int)
func (*QueryInspectResponse) Marshal ¶
func (m *QueryInspectResponse) Marshal() (dAtA []byte, err error)
func (*QueryInspectResponse) MarshalTo ¶
func (m *QueryInspectResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInspectResponse) MarshalToSizedBuffer ¶
func (m *QueryInspectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInspectResponse) ProtoMessage ¶
func (*QueryInspectResponse) ProtoMessage()
func (*QueryInspectResponse) Reset ¶
func (m *QueryInspectResponse) Reset()
func (*QueryInspectResponse) Size ¶
func (m *QueryInspectResponse) Size() (n int)
func (*QueryInspectResponse) String ¶
func (m *QueryInspectResponse) String() string
func (*QueryInspectResponse) Unmarshal ¶
func (m *QueryInspectResponse) Unmarshal(dAtA []byte) error
func (*QueryInspectResponse) XXX_DiscardUnknown ¶
func (m *QueryInspectResponse) XXX_DiscardUnknown()
func (*QueryInspectResponse) XXX_Marshal ¶
func (m *QueryInspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInspectResponse) XXX_Merge ¶
func (m *QueryInspectResponse) XXX_Merge(src proto.Message)
func (*QueryInspectResponse) XXX_Size ¶
func (m *QueryInspectResponse) XXX_Size() int
func (*QueryInspectResponse) XXX_Unmarshal ¶
func (m *QueryInspectResponse) XXX_Unmarshal(b []byte) error
type QueryLiquidationTargets ¶
type QueryLiquidationTargets struct { }
QueryLiquidationTargets defines the request structure for the LiquidationTargets gRPC service handler.
func (*QueryLiquidationTargets) Descriptor ¶
func (*QueryLiquidationTargets) Descriptor() ([]byte, []int)
func (*QueryLiquidationTargets) Marshal ¶
func (m *QueryLiquidationTargets) Marshal() (dAtA []byte, err error)
func (*QueryLiquidationTargets) MarshalTo ¶
func (m *QueryLiquidationTargets) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidationTargets) MarshalToSizedBuffer ¶
func (m *QueryLiquidationTargets) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidationTargets) ProtoMessage ¶
func (*QueryLiquidationTargets) ProtoMessage()
func (*QueryLiquidationTargets) Reset ¶
func (m *QueryLiquidationTargets) Reset()
func (*QueryLiquidationTargets) Size ¶
func (m *QueryLiquidationTargets) Size() (n int)
func (*QueryLiquidationTargets) String ¶
func (m *QueryLiquidationTargets) String() string
func (*QueryLiquidationTargets) Unmarshal ¶
func (m *QueryLiquidationTargets) Unmarshal(dAtA []byte) error
func (*QueryLiquidationTargets) XXX_DiscardUnknown ¶
func (m *QueryLiquidationTargets) XXX_DiscardUnknown()
func (*QueryLiquidationTargets) XXX_Marshal ¶
func (m *QueryLiquidationTargets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidationTargets) XXX_Merge ¶
func (m *QueryLiquidationTargets) XXX_Merge(src proto.Message)
func (*QueryLiquidationTargets) XXX_Size ¶
func (m *QueryLiquidationTargets) XXX_Size() int
func (*QueryLiquidationTargets) XXX_Unmarshal ¶
func (m *QueryLiquidationTargets) XXX_Unmarshal(b []byte) error
type QueryLiquidationTargetsResponse ¶
type QueryLiquidationTargetsResponse struct { // Targets are the addresses of borrowers eligible for liquidation. Targets []string `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` }
QueryLiquidationTargetsResponse defines the response structure for the LiquidationTargets gRPC service handler.
func (*QueryLiquidationTargetsResponse) Descriptor ¶
func (*QueryLiquidationTargetsResponse) Descriptor() ([]byte, []int)
func (*QueryLiquidationTargetsResponse) Marshal ¶
func (m *QueryLiquidationTargetsResponse) Marshal() (dAtA []byte, err error)
func (*QueryLiquidationTargetsResponse) MarshalTo ¶
func (m *QueryLiquidationTargetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsResponse) MarshalToSizedBuffer ¶
func (m *QueryLiquidationTargetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsResponse) ProtoMessage ¶
func (*QueryLiquidationTargetsResponse) ProtoMessage()
func (*QueryLiquidationTargetsResponse) Reset ¶
func (m *QueryLiquidationTargetsResponse) Reset()
func (*QueryLiquidationTargetsResponse) Size ¶
func (m *QueryLiquidationTargetsResponse) Size() (n int)
func (*QueryLiquidationTargetsResponse) String ¶
func (m *QueryLiquidationTargetsResponse) String() string
func (*QueryLiquidationTargetsResponse) Unmarshal ¶
func (m *QueryLiquidationTargetsResponse) Unmarshal(dAtA []byte) error
func (*QueryLiquidationTargetsResponse) XXX_DiscardUnknown ¶
func (m *QueryLiquidationTargetsResponse) XXX_DiscardUnknown()
func (*QueryLiquidationTargetsResponse) XXX_Marshal ¶
func (m *QueryLiquidationTargetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidationTargetsResponse) XXX_Merge ¶
func (m *QueryLiquidationTargetsResponse) XXX_Merge(src proto.Message)
func (*QueryLiquidationTargetsResponse) XXX_Size ¶
func (m *QueryLiquidationTargetsResponse) XXX_Size() int
func (*QueryLiquidationTargetsResponse) XXX_Unmarshal ¶
func (m *QueryLiquidationTargetsResponse) XXX_Unmarshal(b []byte) error
type QueryMarketSummary ¶
type QueryMarketSummary struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryMarketSummary defines the request structure for the MarketSummary gRPC service handler.
func (*QueryMarketSummary) Descriptor ¶
func (*QueryMarketSummary) Descriptor() ([]byte, []int)
func (*QueryMarketSummary) Marshal ¶
func (m *QueryMarketSummary) Marshal() (dAtA []byte, err error)
func (*QueryMarketSummary) MarshalTo ¶
func (m *QueryMarketSummary) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketSummary) MarshalToSizedBuffer ¶
func (m *QueryMarketSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketSummary) ProtoMessage ¶
func (*QueryMarketSummary) ProtoMessage()
func (*QueryMarketSummary) Reset ¶
func (m *QueryMarketSummary) Reset()
func (*QueryMarketSummary) Size ¶
func (m *QueryMarketSummary) Size() (n int)
func (*QueryMarketSummary) String ¶
func (m *QueryMarketSummary) String() string
func (*QueryMarketSummary) Unmarshal ¶
func (m *QueryMarketSummary) Unmarshal(dAtA []byte) error
func (*QueryMarketSummary) XXX_DiscardUnknown ¶
func (m *QueryMarketSummary) XXX_DiscardUnknown()
func (*QueryMarketSummary) XXX_Marshal ¶
func (m *QueryMarketSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketSummary) XXX_Merge ¶
func (m *QueryMarketSummary) XXX_Merge(src proto.Message)
func (*QueryMarketSummary) XXX_Size ¶
func (m *QueryMarketSummary) XXX_Size() int
func (*QueryMarketSummary) XXX_Unmarshal ¶
func (m *QueryMarketSummary) XXX_Unmarshal(b []byte) error
type QueryMarketSummaryResponse ¶
type QueryMarketSummaryResponse struct { // Symbol Denom is the human-readable representation of a token denom, for example "UMEE" or "ATOM". SymbolDenom string `protobuf:"bytes,1,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty"` // Exponent is the power of ten required to get from base denom to symbol denom. For example, an exponent of 6 means 10^6 uumee = 1 UMEE. Exponent uint32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` // Oracle Price is the current USD value of a token. Oracle price is nil when the oracle is down. OraclePrice *github_com_cosmos_cosmos_sdk_types.Dec `` /* 144-byte string literal not displayed */ // uToken Exchange Rate is the amount of base tokens received when withdrawing 1 uToken. For example, a uToken exchange rate of 1.5 means a supplier receives 3 uumee for every 2 u/uumee they wish to withdraw. The same applies in reverse: supplying 3 uumee would award 2 u/uumee at that time. UTokenExchangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 157-byte string literal not displayed */ // Supply APY is the current interest rate suppliers are receiving for their deposits. For example, 0.11 would mean 11% APY. Supply APY is always less than borrow APY. Supply_APY github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */ // Borrow APY is the current interest rate borrowers are being charged on their loans. For example, 0.2 would mean 20% APY. Borrow_APY github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */ // Supplied is the total amount of tokens supplied to the the system by all suppliers, including any interest earned. This includes that tokens which have been borrowed out or enabled as collateral, but excludes reserves. Supplied is denominated in base tokens, so exponent must be applied to convert to symbol denom. Supplied github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=supplied,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"supplied"` // Reserved is the total amount of tokens held in reserve by the module for emergencies. Reserves are always excluded from total supply, borrow, collateral, and liqduidity queries. Reserves are denominated in base tokens, so exponent must be applied to convert to symbol denom. Reserved github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=reserved,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserved"` // Collateral is the total amount of uTokens collateralized by all borrowers. Collateral is denominated in uTokenso, so both uToken exchange rate and exponent must also be applied to convert to symbol denom. For example, if collateral is 4000000 u/uumee and uToken exchange rate is 1.2, then 5 UMEE have been collateralized. Collateral github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=collateral,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"collateral"` // Borrowed is the total amount of debt in this token held across all borrowers. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. Borrowed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=borrowed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"borrowed"` // Liquidity is the amount of a token that has been supplied but not yet borrowed or reserved. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. Liquidity github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=liquidity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"liquidity"` // Maximum Borrow is the amount of a token that is available for borrowing, including that which has already been borrowed out. This amount is less than total supply due to safety limits. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. For example, if borrowed is 3000000 uumee and maximum borrow is 4000000 uumee, then 1 UMEE is currently available for borrowing. MaximumBorrow github_com_cosmos_cosmos_sdk_types.Int `` /* 141-byte string literal not displayed */ // Maximum Collateral is the amount of a token that can be collateralized, including that which is already collateral. This amount is less than total supply due to safety limits. It is denominated in uTokens, so both uToken exchange rate and exponent must be applied to convert to symbol denom. For example, if collateral is 4000000 u/uumee, uToken exchange rate is 1.2, and maximum borrow is 7000000 uumee, then a maximum of 2 additional UMEE is permitted to be collateralized. MaximumCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 153-byte string literal not displayed */ // Minimum Liquidity is the minimum amount of liquidity in the module required by safety limits, based on the current collateral. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. For example, if liquidity is 9000000 uumee and minimum liquidity is 8000000 uumee, then a maximum of 1 additional UMEE is currently available for borrowing or withdrawal. MinimumLiquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 150-byte string literal not displayed */ // uToken Supply is the total amount of a base token's associated uToken in circulation. UTokenSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 138-byte string literal not displayed */ // Available Borrow is the maximum additional amount of base tokens than can be borrowed based on current liquidity and system safety limits. It can also be calculated by MIN(maximum_borrow - borrowed, liquidity - minimum_liquidity). It is denominated in base tokens, so exponent must be applied to convert to symbol denom. A negative availability means safety limits have been exceeded and borrowing is temporarily unavailable. AvailableBorrow github_com_cosmos_cosmos_sdk_types.Int `` /* 147-byte string literal not displayed */ // Available Withdraw is the maximum amount of uTokens than can currently be withdrawn based on liquidity and system safety limits. It can also be calculated by (liquidity - minimum_liquidity). It is denominated in uTokens, so both uToken exchange rate and exponent must be applied to convert to symbol denom. A negative availability means safety limits have been exceeded and withdrawal is temporarily unavailable. AvailableWithdraw github_com_cosmos_cosmos_sdk_types.Int `` /* 153-byte string literal not displayed */ // Available Collateralize is the maximum additional amount of uTokens than can be collateralized based on current liquidity and system safety limits. It can also be calculated by (maximum_collateral, - collateral). It is denominated in uTokens, so both uToken exchange rate and exponent must be applied to convert to symbol denom. A negative availability means safety limits have been exceeded and additional collateral cannot be created until more liquidity is present. AvailableCollateralize github_com_cosmos_cosmos_sdk_types.Int `` /* 168-byte string literal not displayed */ // Oracle Historic Price is the historic USD value of a token. Historic price is defined as the median of the last N historic median prices from the oracle module, with N being this token's HistoricMedians in the leverage registry. Current price is used if required medians is zero. Price is nil when the oracle is down or insufficient historic medians are available. OracleHistoricPrice *github_com_cosmos_cosmos_sdk_types.Dec `` /* 171-byte string literal not displayed */ Errors string `protobuf:"bytes,20,opt,name=errors,proto3" json:"errors,omitempty"` }
QueryMarketSummaryResponse defines the response structure for the MarketSummary gRPC service handler.
func (*QueryMarketSummaryResponse) Descriptor ¶
func (*QueryMarketSummaryResponse) Descriptor() ([]byte, []int)
func (*QueryMarketSummaryResponse) Marshal ¶
func (m *QueryMarketSummaryResponse) Marshal() (dAtA []byte, err error)
func (*QueryMarketSummaryResponse) MarshalTo ¶
func (m *QueryMarketSummaryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketSummaryResponse) MarshalToSizedBuffer ¶
func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketSummaryResponse) ProtoMessage ¶
func (*QueryMarketSummaryResponse) ProtoMessage()
func (*QueryMarketSummaryResponse) Reset ¶
func (m *QueryMarketSummaryResponse) Reset()
func (*QueryMarketSummaryResponse) Size ¶
func (m *QueryMarketSummaryResponse) Size() (n int)
func (*QueryMarketSummaryResponse) String ¶
func (m *QueryMarketSummaryResponse) String() string
func (*QueryMarketSummaryResponse) Unmarshal ¶
func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error
func (*QueryMarketSummaryResponse) XXX_DiscardUnknown ¶
func (m *QueryMarketSummaryResponse) XXX_DiscardUnknown()
func (*QueryMarketSummaryResponse) XXX_Marshal ¶
func (m *QueryMarketSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketSummaryResponse) XXX_Merge ¶
func (m *QueryMarketSummaryResponse) XXX_Merge(src proto.Message)
func (*QueryMarketSummaryResponse) XXX_Size ¶
func (m *QueryMarketSummaryResponse) XXX_Size() int
func (*QueryMarketSummaryResponse) XXX_Unmarshal ¶
func (m *QueryMarketSummaryResponse) XXX_Unmarshal(b []byte) error
type QueryMaxBorrow ¶
type QueryMaxBorrow struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // denom is the base token denom to borrow. // empty denom will query all registered tokens. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryMaxBorrow defines the request structure for the MaxBorrow gRPC service handler.
func (*QueryMaxBorrow) Descriptor ¶
func (*QueryMaxBorrow) Descriptor() ([]byte, []int)
func (*QueryMaxBorrow) Marshal ¶
func (m *QueryMaxBorrow) Marshal() (dAtA []byte, err error)
func (*QueryMaxBorrow) MarshalToSizedBuffer ¶
func (m *QueryMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxBorrow) ProtoMessage ¶
func (*QueryMaxBorrow) ProtoMessage()
func (*QueryMaxBorrow) Reset ¶
func (m *QueryMaxBorrow) Reset()
func (*QueryMaxBorrow) Size ¶
func (m *QueryMaxBorrow) Size() (n int)
func (*QueryMaxBorrow) String ¶
func (m *QueryMaxBorrow) String() string
func (*QueryMaxBorrow) Unmarshal ¶
func (m *QueryMaxBorrow) Unmarshal(dAtA []byte) error
func (*QueryMaxBorrow) XXX_DiscardUnknown ¶
func (m *QueryMaxBorrow) XXX_DiscardUnknown()
func (*QueryMaxBorrow) XXX_Marshal ¶
func (m *QueryMaxBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxBorrow) XXX_Merge ¶
func (m *QueryMaxBorrow) XXX_Merge(src proto.Message)
func (*QueryMaxBorrow) XXX_Size ¶
func (m *QueryMaxBorrow) XXX_Size() int
func (*QueryMaxBorrow) XXX_Unmarshal ¶
func (m *QueryMaxBorrow) XXX_Unmarshal(b []byte) error
type QueryMaxBorrowResponse ¶
type QueryMaxBorrowResponse struct { // Tokens is the maximum amount of tokens that can be borrowed Tokens github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=tokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"tokens"` }
QueryMaxBorrowResponse defines the response structure for the MaxBorrow gRPC service handler.
func (*QueryMaxBorrowResponse) Descriptor ¶
func (*QueryMaxBorrowResponse) Descriptor() ([]byte, []int)
func (*QueryMaxBorrowResponse) Marshal ¶
func (m *QueryMaxBorrowResponse) Marshal() (dAtA []byte, err error)
func (*QueryMaxBorrowResponse) MarshalTo ¶
func (m *QueryMaxBorrowResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxBorrowResponse) MarshalToSizedBuffer ¶
func (m *QueryMaxBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxBorrowResponse) ProtoMessage ¶
func (*QueryMaxBorrowResponse) ProtoMessage()
func (*QueryMaxBorrowResponse) Reset ¶
func (m *QueryMaxBorrowResponse) Reset()
func (*QueryMaxBorrowResponse) Size ¶
func (m *QueryMaxBorrowResponse) Size() (n int)
func (*QueryMaxBorrowResponse) String ¶
func (m *QueryMaxBorrowResponse) String() string
func (*QueryMaxBorrowResponse) Unmarshal ¶
func (m *QueryMaxBorrowResponse) Unmarshal(dAtA []byte) error
func (*QueryMaxBorrowResponse) XXX_DiscardUnknown ¶
func (m *QueryMaxBorrowResponse) XXX_DiscardUnknown()
func (*QueryMaxBorrowResponse) XXX_Marshal ¶
func (m *QueryMaxBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxBorrowResponse) XXX_Merge ¶
func (m *QueryMaxBorrowResponse) XXX_Merge(src proto.Message)
func (*QueryMaxBorrowResponse) XXX_Size ¶
func (m *QueryMaxBorrowResponse) XXX_Size() int
func (*QueryMaxBorrowResponse) XXX_Unmarshal ¶
func (m *QueryMaxBorrowResponse) XXX_Unmarshal(b []byte) error
type QueryMaxWithdraw ¶
type QueryMaxWithdraw struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // denom is the base token denom associated with the uToken to withdraw. // empty denom will query all registered tokens. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryMaxWithdraw defines the request structure for the MaxWithdraw gRPC service handler.
func (*QueryMaxWithdraw) Descriptor ¶
func (*QueryMaxWithdraw) Descriptor() ([]byte, []int)
func (*QueryMaxWithdraw) Marshal ¶
func (m *QueryMaxWithdraw) Marshal() (dAtA []byte, err error)
func (*QueryMaxWithdraw) MarshalToSizedBuffer ¶
func (m *QueryMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxWithdraw) ProtoMessage ¶
func (*QueryMaxWithdraw) ProtoMessage()
func (*QueryMaxWithdraw) Reset ¶
func (m *QueryMaxWithdraw) Reset()
func (*QueryMaxWithdraw) Size ¶
func (m *QueryMaxWithdraw) Size() (n int)
func (*QueryMaxWithdraw) String ¶
func (m *QueryMaxWithdraw) String() string
func (*QueryMaxWithdraw) Unmarshal ¶
func (m *QueryMaxWithdraw) Unmarshal(dAtA []byte) error
func (QueryMaxWithdraw) ValidateBasic ¶
func (q QueryMaxWithdraw) ValidateBasic() error
func (*QueryMaxWithdraw) XXX_DiscardUnknown ¶
func (m *QueryMaxWithdraw) XXX_DiscardUnknown()
func (*QueryMaxWithdraw) XXX_Marshal ¶
func (m *QueryMaxWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxWithdraw) XXX_Merge ¶
func (m *QueryMaxWithdraw) XXX_Merge(src proto.Message)
func (*QueryMaxWithdraw) XXX_Size ¶
func (m *QueryMaxWithdraw) XXX_Size() int
func (*QueryMaxWithdraw) XXX_Unmarshal ¶
func (m *QueryMaxWithdraw) XXX_Unmarshal(b []byte) error
type QueryMaxWithdrawResponse ¶
type QueryMaxWithdrawResponse struct { // uTokens is the maximum amount of uTokens that can be withdrawn UTokens github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=uTokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"uTokens"` // Tokens is the equivalent of max uTokens converted to base tokens Tokens github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=tokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"tokens"` }
QueryMaxWithdrawResponse defines the response structure for the MaxWithdraw gRPC service handler.
func (*QueryMaxWithdrawResponse) Descriptor ¶
func (*QueryMaxWithdrawResponse) Descriptor() ([]byte, []int)
func (*QueryMaxWithdrawResponse) Marshal ¶
func (m *QueryMaxWithdrawResponse) Marshal() (dAtA []byte, err error)
func (*QueryMaxWithdrawResponse) MarshalTo ¶
func (m *QueryMaxWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxWithdrawResponse) MarshalToSizedBuffer ¶
func (m *QueryMaxWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxWithdrawResponse) ProtoMessage ¶
func (*QueryMaxWithdrawResponse) ProtoMessage()
func (*QueryMaxWithdrawResponse) Reset ¶
func (m *QueryMaxWithdrawResponse) Reset()
func (*QueryMaxWithdrawResponse) Size ¶
func (m *QueryMaxWithdrawResponse) Size() (n int)
func (*QueryMaxWithdrawResponse) String ¶
func (m *QueryMaxWithdrawResponse) String() string
func (*QueryMaxWithdrawResponse) Unmarshal ¶
func (m *QueryMaxWithdrawResponse) Unmarshal(dAtA []byte) error
func (*QueryMaxWithdrawResponse) XXX_DiscardUnknown ¶
func (m *QueryMaxWithdrawResponse) XXX_DiscardUnknown()
func (*QueryMaxWithdrawResponse) XXX_Marshal ¶
func (m *QueryMaxWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxWithdrawResponse) XXX_Merge ¶
func (m *QueryMaxWithdrawResponse) XXX_Merge(src proto.Message)
func (*QueryMaxWithdrawResponse) XXX_Size ¶
func (m *QueryMaxWithdrawResponse) XXX_Size() int
func (*QueryMaxWithdrawResponse) XXX_Unmarshal ¶
func (m *QueryMaxWithdrawResponse) XXX_Unmarshal(b []byte) error
type QueryParams ¶
type QueryParams struct { }
QueryParams defines the request structure for the Params gRPC service handler.
func (*QueryParams) Descriptor ¶
func (*QueryParams) Descriptor() ([]byte, []int)
func (*QueryParams) Marshal ¶
func (m *QueryParams) Marshal() (dAtA []byte, err error)
func (*QueryParams) MarshalToSizedBuffer ¶
func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParams) ProtoMessage ¶
func (*QueryParams) ProtoMessage()
func (*QueryParams) Reset ¶
func (m *QueryParams) Reset()
func (*QueryParams) Size ¶
func (m *QueryParams) Size() (n int)
func (*QueryParams) String ¶
func (m *QueryParams) String() string
func (*QueryParams) Unmarshal ¶
func (m *QueryParams) Unmarshal(dAtA []byte) error
func (*QueryParams) XXX_DiscardUnknown ¶
func (m *QueryParams) XXX_DiscardUnknown()
func (*QueryParams) XXX_Marshal ¶
func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParams) XXX_Merge ¶
func (m *QueryParams) XXX_Merge(src proto.Message)
func (*QueryParams) XXX_Size ¶
func (m *QueryParams) XXX_Size() int
func (*QueryParams) XXX_Unmarshal ¶
func (m *QueryParams) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response structure for the Params gRPC service handler.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryRegisteredTokens ¶
type QueryRegisteredTokens struct {
BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
}
QueryRegisteredTokens defines the request structure for the RegisteredTokens gRPC service handler.
func (*QueryRegisteredTokens) Descriptor ¶
func (*QueryRegisteredTokens) Descriptor() ([]byte, []int)
func (*QueryRegisteredTokens) Marshal ¶
func (m *QueryRegisteredTokens) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredTokens) MarshalTo ¶
func (m *QueryRegisteredTokens) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredTokens) MarshalToSizedBuffer ¶
func (m *QueryRegisteredTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredTokens) ProtoMessage ¶
func (*QueryRegisteredTokens) ProtoMessage()
func (*QueryRegisteredTokens) Reset ¶
func (m *QueryRegisteredTokens) Reset()
func (*QueryRegisteredTokens) Size ¶
func (m *QueryRegisteredTokens) Size() (n int)
func (*QueryRegisteredTokens) String ¶
func (m *QueryRegisteredTokens) String() string
func (*QueryRegisteredTokens) Unmarshal ¶
func (m *QueryRegisteredTokens) Unmarshal(dAtA []byte) error
func (*QueryRegisteredTokens) XXX_DiscardUnknown ¶
func (m *QueryRegisteredTokens) XXX_DiscardUnknown()
func (*QueryRegisteredTokens) XXX_Marshal ¶
func (m *QueryRegisteredTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredTokens) XXX_Merge ¶
func (m *QueryRegisteredTokens) XXX_Merge(src proto.Message)
func (*QueryRegisteredTokens) XXX_Size ¶
func (m *QueryRegisteredTokens) XXX_Size() int
func (*QueryRegisteredTokens) XXX_Unmarshal ¶
func (m *QueryRegisteredTokens) XXX_Unmarshal(b []byte) error
type QueryRegisteredTokensResponse ¶
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 ¶
func (*QueryRegisteredTokensResponse) Descriptor() ([]byte, []int)
func (*QueryRegisteredTokensResponse) Marshal ¶
func (m *QueryRegisteredTokensResponse) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredTokensResponse) MarshalTo ¶
func (m *QueryRegisteredTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredTokensResponse) MarshalToSizedBuffer ¶
func (m *QueryRegisteredTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredTokensResponse) ProtoMessage ¶
func (*QueryRegisteredTokensResponse) ProtoMessage()
func (*QueryRegisteredTokensResponse) Reset ¶
func (m *QueryRegisteredTokensResponse) Reset()
func (*QueryRegisteredTokensResponse) Size ¶
func (m *QueryRegisteredTokensResponse) Size() (n int)
func (*QueryRegisteredTokensResponse) String ¶
func (m *QueryRegisteredTokensResponse) String() string
func (*QueryRegisteredTokensResponse) Unmarshal ¶
func (m *QueryRegisteredTokensResponse) Unmarshal(dAtA []byte) error
func (*QueryRegisteredTokensResponse) XXX_DiscardUnknown ¶
func (m *QueryRegisteredTokensResponse) XXX_DiscardUnknown()
func (*QueryRegisteredTokensResponse) XXX_Marshal ¶
func (m *QueryRegisteredTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredTokensResponse) XXX_Merge ¶
func (m *QueryRegisteredTokensResponse) XXX_Merge(src proto.Message)
func (*QueryRegisteredTokensResponse) XXX_Size ¶
func (m *QueryRegisteredTokensResponse) XXX_Size() int
func (*QueryRegisteredTokensResponse) XXX_Unmarshal ¶
func (m *QueryRegisteredTokensResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the x/leverage module. Params(context.Context, *QueryParams) (*QueryParamsResponse, error) // RegisteredTokens queries for all the registered tokens. RegisteredTokens(context.Context, *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error) // SpecialAssets queries for all special asset pairs. SpecialAssets(context.Context, *QuerySpecialAssets) (*QuerySpecialAssetsResponse, error) // MarketSummary queries a base asset's current borrowing and supplying conditions. MarketSummary(context.Context, *QueryMarketSummary) (*QueryMarketSummaryResponse, error) // AccountBalances queries an account's current supply, collateral, and borrow positions. AccountBalances(context.Context, *QueryAccountBalances) (*QueryAccountBalancesResponse, error) // AccountSummary queries USD values representing an account's total positions and borrowing limits. It requires oracle prices to return successfully. AccountSummary(context.Context, *QueryAccountSummary) (*QueryAccountSummaryResponse, error) // LiquidationTargets queries a list of all borrower account addresses eligible for liquidation. LiquidationTargets(context.Context, *QueryLiquidationTargets) (*QueryLiquidationTargetsResponse, error) // BadDebts queries a list of borrow positions that have been marked for bad debt repayment. BadDebts(context.Context, *QueryBadDebts) (*QueryBadDebtsResponse, error) // MaxWithdraw queries the maximum amount of a given token an address can withdraw. MaxWithdraw(context.Context, *QueryMaxWithdraw) (*QueryMaxWithdrawResponse, error) // MaxBorrow queries the maximum amount of a given token an address can borrow. MaxBorrow(context.Context, *QueryMaxBorrow) (*QueryMaxBorrowResponse, error) // Inspect is the customizable inspector query. It returns a list of all borrowers, // starting from the highest borrowed value, filtered by any combination of: minimum // borrowed value (optionally of a specified token), minimum collateral value, minimum // progress toward liquidation threshold, and minimum LTV. Each account is displayed // with its address and borrowed/liquidation/collateral USD values, as well as its // actual token positions in human-readable symbol denoms instead of uTokens or ibc denoms. Inspect(context.Context, *QueryInspect) (*QueryInspectResponse, error) }
QueryServer is the server API for Query service.
type QuerySpecialAssets ¶
type QuerySpecialAssets struct { // denom can be used to query only pairs affecting a specific asset Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` }
QuerySpecialAssets defines the request structure for the SpecialAssets gRPC service handler.
func (*QuerySpecialAssets) Descriptor ¶
func (*QuerySpecialAssets) Descriptor() ([]byte, []int)
func (*QuerySpecialAssets) Marshal ¶
func (m *QuerySpecialAssets) Marshal() (dAtA []byte, err error)
func (*QuerySpecialAssets) MarshalTo ¶
func (m *QuerySpecialAssets) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpecialAssets) MarshalToSizedBuffer ¶
func (m *QuerySpecialAssets) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpecialAssets) ProtoMessage ¶
func (*QuerySpecialAssets) ProtoMessage()
func (*QuerySpecialAssets) Reset ¶
func (m *QuerySpecialAssets) Reset()
func (*QuerySpecialAssets) Size ¶
func (m *QuerySpecialAssets) Size() (n int)
func (*QuerySpecialAssets) String ¶
func (m *QuerySpecialAssets) String() string
func (*QuerySpecialAssets) Unmarshal ¶
func (m *QuerySpecialAssets) Unmarshal(dAtA []byte) error
func (*QuerySpecialAssets) XXX_DiscardUnknown ¶
func (m *QuerySpecialAssets) XXX_DiscardUnknown()
func (*QuerySpecialAssets) XXX_Marshal ¶
func (m *QuerySpecialAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpecialAssets) XXX_Merge ¶
func (m *QuerySpecialAssets) XXX_Merge(src proto.Message)
func (*QuerySpecialAssets) XXX_Size ¶
func (m *QuerySpecialAssets) XXX_Size() int
func (*QuerySpecialAssets) XXX_Unmarshal ¶
func (m *QuerySpecialAssets) XXX_Unmarshal(b []byte) error
type QuerySpecialAssetsResponse ¶
type QuerySpecialAssetsResponse struct {
Pairs []SpecialAssetPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}
QuerySpecialAssetsResponse defines the response structure for the SpecialAssets gRPC service handler.
func (*QuerySpecialAssetsResponse) Descriptor ¶
func (*QuerySpecialAssetsResponse) Descriptor() ([]byte, []int)
func (*QuerySpecialAssetsResponse) Marshal ¶
func (m *QuerySpecialAssetsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySpecialAssetsResponse) MarshalTo ¶
func (m *QuerySpecialAssetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpecialAssetsResponse) MarshalToSizedBuffer ¶
func (m *QuerySpecialAssetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpecialAssetsResponse) ProtoMessage ¶
func (*QuerySpecialAssetsResponse) ProtoMessage()
func (*QuerySpecialAssetsResponse) Reset ¶
func (m *QuerySpecialAssetsResponse) Reset()
func (*QuerySpecialAssetsResponse) Size ¶
func (m *QuerySpecialAssetsResponse) Size() (n int)
func (*QuerySpecialAssetsResponse) String ¶
func (m *QuerySpecialAssetsResponse) String() string
func (*QuerySpecialAssetsResponse) Unmarshal ¶
func (m *QuerySpecialAssetsResponse) Unmarshal(dAtA []byte) error
func (*QuerySpecialAssetsResponse) XXX_DiscardUnknown ¶
func (m *QuerySpecialAssetsResponse) XXX_DiscardUnknown()
func (*QuerySpecialAssetsResponse) XXX_Marshal ¶
func (m *QuerySpecialAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpecialAssetsResponse) XXX_Merge ¶
func (m *QuerySpecialAssetsResponse) XXX_Merge(src proto.Message)
func (*QuerySpecialAssetsResponse) XXX_Size ¶
func (m *QuerySpecialAssetsResponse) XXX_Size() int
func (*QuerySpecialAssetsResponse) XXX_Unmarshal ¶
func (m *QuerySpecialAssetsResponse) XXX_Unmarshal(b []byte) error
type RiskInfo ¶
type RiskInfo struct { // Borrowed is account's borrowed value in USD. Borrowed float64 `protobuf:"fixed64,1,opt,name=Borrowed,proto3" json:"Borrowed,omitempty"` // Liquidation is account's liquidation threshold in USD. Liquidation float64 `protobuf:"fixed64,2,opt,name=Liquidation,proto3" json:"Liquidation,omitempty"` // Value is account's collateral value in USD. Value float64 `protobuf:"fixed64,3,opt,name=Value,proto3" json:"Value,omitempty"` }
RiskInfo defines a borrower's account health without requiring sdk.Dec formatting.
func (*RiskInfo) Descriptor ¶
func (*RiskInfo) MarshalToSizedBuffer ¶
func (*RiskInfo) ProtoMessage ¶
func (*RiskInfo) ProtoMessage()
func (*RiskInfo) XXX_DiscardUnknown ¶
func (m *RiskInfo) XXX_DiscardUnknown()
func (*RiskInfo) XXX_Marshal ¶
func (*RiskInfo) XXX_Unmarshal ¶
type SpecialAssetPair ¶
type SpecialAssetPair struct { // Collateral base token denom. Collateral string `protobuf:"bytes,1,opt,name=collateral,proto3" json:"collateral,omitempty"` // Borrow base token denom. Borrow string `protobuf:"bytes,2,opt,name=borrow,proto3" json:"borrow,omitempty"` // Collateral Weight defines what portion of the total value of the asset // can contribute to a users borrowing power. For special asset pairs, this // also overrides the borrowed asset's collateral weight when evaluating borrow // factor. Valid values: 0-1. CollateralWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ // Liquidation threshold defines what portion of the total value of the assets // can contribute to a users liquidation threshold, when borrowing within the pair. // Valid values in range [collateral_weight,1] LiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 161-byte string literal not displayed */ }
SpecialAssetPair defines a special (increased) CollateralWeight used when a specified Collateral is used to collateralize a specified Borrow. This association is one-way (so it does not work in reverse).
func (*SpecialAssetPair) Descriptor ¶
func (*SpecialAssetPair) Descriptor() ([]byte, []int)
func (*SpecialAssetPair) Equal ¶
func (this *SpecialAssetPair) Equal(that interface{}) bool
func (*SpecialAssetPair) Marshal ¶
func (m *SpecialAssetPair) Marshal() (dAtA []byte, err error)
func (*SpecialAssetPair) MarshalToSizedBuffer ¶
func (m *SpecialAssetPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SpecialAssetPair) ProtoMessage ¶
func (*SpecialAssetPair) ProtoMessage()
func (*SpecialAssetPair) Reset ¶
func (m *SpecialAssetPair) Reset()
func (*SpecialAssetPair) Size ¶
func (m *SpecialAssetPair) Size() (n int)
func (*SpecialAssetPair) String ¶
func (m *SpecialAssetPair) String() string
func (*SpecialAssetPair) Unmarshal ¶
func (m *SpecialAssetPair) Unmarshal(dAtA []byte) error
func (SpecialAssetPair) Validate ¶
func (p SpecialAssetPair) Validate() error
Validate performs validation on an SpecialAssetPair type
func (*SpecialAssetPair) XXX_DiscardUnknown ¶
func (m *SpecialAssetPair) XXX_DiscardUnknown()
func (*SpecialAssetPair) XXX_Marshal ¶
func (m *SpecialAssetPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpecialAssetPair) XXX_Merge ¶
func (m *SpecialAssetPair) XXX_Merge(src proto.Message)
func (*SpecialAssetPair) XXX_Size ¶
func (m *SpecialAssetPair) XXX_Size() int
func (*SpecialAssetPair) XXX_Unmarshal ¶
func (m *SpecialAssetPair) XXX_Unmarshal(b []byte) error
type SpecialAssetSet ¶
type SpecialAssetSet struct { // Collateral or borrowed base token denoms. Assets []string `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // Collateral Weight defines what portion of the total value of the assets // can contribute to a users borrowing power, when borrowing within the set. // Valid values: 0-1. CollateralWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ // Liquidation threshold defines what portion of the total value of the assets // can contribute to a users liquidation threshold, when borrowing within the set. // Valid values in range [collateral_weight,1] LiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 161-byte string literal not displayed */ }
SpecialAssetSet defines a special (increased) CollateralWeight used when any of a set of assets are used to borrow each other (except for looping). It is used in gov proposals to create all the pairs that make up a set at once.
func (*SpecialAssetSet) Descriptor ¶
func (*SpecialAssetSet) Descriptor() ([]byte, []int)
func (*SpecialAssetSet) Equal ¶
func (this *SpecialAssetSet) Equal(that interface{}) bool
func (*SpecialAssetSet) Marshal ¶
func (m *SpecialAssetSet) Marshal() (dAtA []byte, err error)
func (*SpecialAssetSet) MarshalToSizedBuffer ¶
func (m *SpecialAssetSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SpecialAssetSet) ProtoMessage ¶
func (*SpecialAssetSet) ProtoMessage()
func (*SpecialAssetSet) Reset ¶
func (m *SpecialAssetSet) Reset()
func (*SpecialAssetSet) Size ¶
func (m *SpecialAssetSet) Size() (n int)
func (*SpecialAssetSet) String ¶
func (m *SpecialAssetSet) String() string
func (*SpecialAssetSet) Unmarshal ¶
func (m *SpecialAssetSet) Unmarshal(dAtA []byte) error
func (SpecialAssetSet) Validate ¶
func (s SpecialAssetSet) Validate() error
Validate performs validation on an SpecialAssetSet type
func (*SpecialAssetSet) XXX_DiscardUnknown ¶
func (m *SpecialAssetSet) XXX_DiscardUnknown()
func (*SpecialAssetSet) XXX_Marshal ¶
func (m *SpecialAssetSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpecialAssetSet) XXX_Merge ¶
func (m *SpecialAssetSet) XXX_Merge(src proto.Message)
func (*SpecialAssetSet) XXX_Size ¶
func (m *SpecialAssetSet) XXX_Size() int
func (*SpecialAssetSet) XXX_Unmarshal ¶
func (m *SpecialAssetSet) XXX_Unmarshal(b []byte) error
type Token ¶
type Token struct { // Base Denom is the denomination of the underlying base token. Must be the base // denom as registered in the Bank module (so IBC denom for IBC tokens). BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"` // Reserve Factor defines what portion of accrued interest goes to reserves // when this token is borrowed. // Valid values: 0-1. ReserveFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ // Collateral Weight defines what portion 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. // Must be smaller than `liquidation_threshold`. // Valid values: 0-1. CollateralWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */ // Liquidation Threshold defines what amount of the total value of the // asset as a collateral can contribute to a user's liquidation threshold // (above which they become eligible for liquidation). // Must be bigger than `collateral_weight`. // Valid values: 0-1. // See also: min_close_factor. LiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 190-byte string literal not displayed */ // Base Borrow Rate defines the minimum interest rate for borrowing this // asset. // Valid values: 0-∞ BaseBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ // Kink Borrow Rate defines the interest rate for borrowing this // asset when supply utilization is equal to 'kink_utilization'. // Valid values: 0-∞ KinkBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ // Max Borrow Rate defines the interest rate for borrowing this // asset when supply utilization is at its maximum. // Valid values: 0-∞ MaxBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ // Kink Utilization defines the supply utilization value where // the kink in the borrow interest rate function occurs. // Valid values: 0-1. KinkUtilization github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-byte string literal not displayed */ // Liquidation Incentive determines the portion of bonus collateral of // a token type liquidators receive as a liquidation reward. // Valid values: 0-1. LiquidationIncentive github_com_cosmos_cosmos_sdk_types.Dec `` /* 190-byte string literal not displayed */ // Symbol Denom is the human readable denomination of this token. SymbolDenom string `protobuf:"bytes,10,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty" yaml:"symbol_denom"` // Exponent is the power of ten by which to multiply, in order to convert // an amount of the token denoted in its symbol denom to the actual amount // of its base denom. Exponent uint32 `protobuf:"varint,11,opt,name=exponent,proto3" json:"exponent,omitempty" yaml:"exponent"` // Enable Msg Supply allows supplying for lending or collateral using this // token. `false` means that a token can no longer be supplied. // Note that withdrawing is always enabled. Disabling supply would // be one step in phasing out an asset type. EnableMsgSupply bool `` /* 135-byte string literal not displayed */ // Enable Msg Borrow allows borrowing of this token. Note that repaying is // always enabled. Disabling borrowing would be one step in phasing out an // asset type, but could also be used from the start for asset types meant // to be collateral only, like meTokens. EnableMsgBorrow bool `` /* 135-byte string literal not displayed */ // Blacklist should only be used to eliminate an asset completely. A blacklisted // asset is treated as though its oracle price is zero, and thus ignored by // calculations such as collateral value and borrow limit. Can still be repaid // or withdrawn, but not liquidated. A blacklisted token must have enable_msg_supply // and enable_msg_borrow set to false. Such tokens can be safely removed from the // oracle and price feeder as well. Blacklist bool `protobuf:"varint,14,opt,name=blacklist,proto3" json:"blacklist,omitempty"` // can be provided by a given token. 1.0 means that the token has no restriction. // 0.1 means maximum 10% of system's total collateral value can be provided by this token. // Valid values: 0-1. MaxCollateralShare github_com_cosmos_cosmos_sdk_types.Dec `` /* 186-byte string literal not displayed */ // Max Supply Utilization specifies the maximum supply utilization a token is // allowed to reach as a direct result of user borrowing. New borrows are not allowed when // the supply utilization is above `max_supply_utilization`. // supply_utilization(token) = total_borrowed(token) / total_supply(token) // Valid values: 0-1. MaxSupplyUtilization github_com_cosmos_cosmos_sdk_types.Dec `` /* 194-byte string literal not displayed */ // Min Collateral Liquidity specifies min limit for the following function: // collateral_liquidity(token) = available(token) / total_collateral(token) // Borrowing, collateralizing, or withdrawing assets is not allowed when the // result of such action invalidates min_collateral_liquidity. // Liquidity can only drop below this value due to interest or liquidations. // The goal is to assure that there is enough available (not borrowed) token to be available // for withdraw when there is a collateral liquidation and the liquidator needs to // withdraw uToken. // Valid values: 0 - inf MinCollateralLiquidity github_com_cosmos_cosmos_sdk_types.Dec `` /* 202-byte string literal not displayed */ // Max Supply is the maximum amount of tokens the protocol can hold. // Adding more supply of the given token to the protocol will return an error. // Must be a non negative value. 0 means that there is no limit. // To mark a token as not valid for supply, `msg_supply` must be set to false. MaxSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 147-byte string literal not displayed */ // Historic Medians is the number of median historic prices to request from // the oracle module when evaluating new borrow positions containing this token. // All MsgBorrow, MsgWithdraw, and MsgDecollateralize must result in healthy // borrow positions under both current and historic prices. The default value of // zero for this field causes current price to be used in those calculations // for the affected Token. // The time span covered by the historic median will be: // oracle.Params.median_stamp_period * oracle.Params.historic_stamp_period * historic_medians. HistoricMedians uint32 `` /* 132-byte string literal not displayed */ }
Token defines a token, along with its metadata and parameters, in the Umee capital facility that can be supplied and borrowed. See https://github.com/umee-network/umee/blob/main/docs/design_docs/010-market-params.md for more details.
func DefaultRegistry ¶
func DefaultRegistry() []Token
func (Token) AssertBorrowEnabled ¶
AssertBorrowEnabled returns an error if a Token cannot be borrowed.
func (Token) AssertNotBlacklisted ¶
AssertNotBlacklisted returns an error if a Token is blacklisted.
func (Token) AssertSupplyEnabled ¶
AssertSupplyEnabled returns an error if a Token cannot be supplied.
func (Token) BorrowFactor ¶
BorrowFactor returns the minimum of 2.0 or 1 / collateralWeight.
func (*Token) Descriptor ¶
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 TokenHooks ¶
type TokenHooks interface { // AfterTokenRegistered defines a hook any keeper can execute after the // x/leverage registers a token. AfterTokenRegistered(ctx sdk.Context, token Token) // AfterRegisteredTokenRemoved defines a hook any keeper can execute after // the x/leverage module deletes a registered token. AfterRegisteredTokenRemoved(ctx sdk.Context, token Token) }
TokenHooks defines hooks other modules can execute when the leverage module adds or removes a token.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Borrow ¶
func (*UnimplementedMsgServer) Borrow(ctx context.Context, req *MsgBorrow) (*MsgBorrowResponse, error)
func (*UnimplementedMsgServer) Collateralize ¶
func (*UnimplementedMsgServer) Collateralize(ctx context.Context, req *MsgCollateralize) (*MsgCollateralizeResponse, error)
func (*UnimplementedMsgServer) Decollateralize ¶
func (*UnimplementedMsgServer) Decollateralize(ctx context.Context, req *MsgDecollateralize) (*MsgDecollateralizeResponse, error)
func (*UnimplementedMsgServer) GovSetParams ¶
func (*UnimplementedMsgServer) GovSetParams(ctx context.Context, req *MsgGovSetParams) (*MsgGovSetParamsResponse, error)
func (*UnimplementedMsgServer) GovUpdateRegistry ¶
func (*UnimplementedMsgServer) GovUpdateRegistry(ctx context.Context, req *MsgGovUpdateRegistry) (*MsgGovUpdateRegistryResponse, error)
func (*UnimplementedMsgServer) GovUpdateSpecialAssets ¶
func (*UnimplementedMsgServer) GovUpdateSpecialAssets(ctx context.Context, req *MsgGovUpdateSpecialAssets) (*MsgGovUpdateSpecialAssetsResponse, error)
func (*UnimplementedMsgServer) LeveragedLiquidate ¶
func (*UnimplementedMsgServer) LeveragedLiquidate(ctx context.Context, req *MsgLeveragedLiquidate) (*MsgLeveragedLiquidateResponse, error)
func (*UnimplementedMsgServer) Liquidate ¶
func (*UnimplementedMsgServer) Liquidate(ctx context.Context, req *MsgLiquidate) (*MsgLiquidateResponse, error)
func (*UnimplementedMsgServer) MaxBorrow ¶
func (*UnimplementedMsgServer) MaxBorrow(ctx context.Context, req *MsgMaxBorrow) (*MsgMaxBorrowResponse, error)
func (*UnimplementedMsgServer) MaxWithdraw ¶
func (*UnimplementedMsgServer) MaxWithdraw(ctx context.Context, req *MsgMaxWithdraw) (*MsgMaxWithdrawResponse, error)
func (*UnimplementedMsgServer) Repay ¶
func (*UnimplementedMsgServer) Repay(ctx context.Context, req *MsgRepay) (*MsgRepayResponse, error)
func (*UnimplementedMsgServer) Supply ¶
func (*UnimplementedMsgServer) Supply(ctx context.Context, req *MsgSupply) (*MsgSupplyResponse, error)
func (*UnimplementedMsgServer) SupplyCollateral ¶
func (*UnimplementedMsgServer) SupplyCollateral(ctx context.Context, req *MsgSupplyCollateral) (*MsgSupplyCollateralResponse, error)
func (*UnimplementedMsgServer) Withdraw ¶
func (*UnimplementedMsgServer) Withdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AccountBalances ¶
func (*UnimplementedQueryServer) AccountBalances(ctx context.Context, req *QueryAccountBalances) (*QueryAccountBalancesResponse, error)
func (*UnimplementedQueryServer) AccountSummary ¶
func (*UnimplementedQueryServer) AccountSummary(ctx context.Context, req *QueryAccountSummary) (*QueryAccountSummaryResponse, error)
func (*UnimplementedQueryServer) BadDebts ¶
func (*UnimplementedQueryServer) BadDebts(ctx context.Context, req *QueryBadDebts) (*QueryBadDebtsResponse, error)
func (*UnimplementedQueryServer) Inspect ¶
func (*UnimplementedQueryServer) Inspect(ctx context.Context, req *QueryInspect) (*QueryInspectResponse, error)
func (*UnimplementedQueryServer) LiquidationTargets ¶
func (*UnimplementedQueryServer) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargets) (*QueryLiquidationTargetsResponse, error)
func (*UnimplementedQueryServer) MarketSummary ¶
func (*UnimplementedQueryServer) MarketSummary(ctx context.Context, req *QueryMarketSummary) (*QueryMarketSummaryResponse, error)
func (*UnimplementedQueryServer) MaxBorrow ¶
func (*UnimplementedQueryServer) MaxBorrow(ctx context.Context, req *QueryMaxBorrow) (*QueryMaxBorrowResponse, error)
func (*UnimplementedQueryServer) MaxWithdraw ¶
func (*UnimplementedQueryServer) MaxWithdraw(ctx context.Context, req *QueryMaxWithdraw) (*QueryMaxWithdrawResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RegisteredTokens ¶
func (*UnimplementedQueryServer) RegisteredTokens(ctx context.Context, req *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error)
func (*UnimplementedQueryServer) SpecialAssets ¶
func (*UnimplementedQueryServer) SpecialAssets(ctx context.Context, req *QuerySpecialAssets) (*QuerySpecialAssetsResponse, error)
type WeightedDecCoin ¶
type WeightedDecCoin struct { // the USD value of an Asset in a position Asset sdk.DecCoin // the collateral Weight or liquidation threshold Weight sdk.Dec }
WeightedDecCoin holds an sdk.DecCoin representing a USD value amount of a given token denom, with no information on the underlying token amount. It also holds the token's collateral weight OR liquidation threshold, depending on usage.
func (WeightedDecCoin) String ¶
func (wdc WeightedDecCoin) String() string
String represents a WeightedDecCoin in the form coin (weight) e.g. 10 uumee (0.35)
type WeightedDecCoins ¶
type WeightedDecCoins []WeightedDecCoin
A list of WeightedDecCoin sorted by collateral weight (descending) and denom (alphabetical) to break ties.
func (WeightedDecCoins) Add ¶
func (wdc WeightedDecCoins) Add(add WeightedDecCoin) (sum WeightedDecCoins)
Add returns the sum of a weightedDecCoins and an additional weightedDecCoin. The result is sorted, has any duplicate denoms combined, and any zero amounts omitted.
func (WeightedDecCoins) Sub ¶
func (wdc WeightedDecCoins) Sub(sub sdk.DecCoin) (diff WeightedDecCoins)
Sub subtracts a sdk.DecCoin from a WeightedDecCoins. Panics if the result would be negative. Does not sort or change the order of the input denoms, combine duplicates, or remove zero coins.
type WeightedNormalPair ¶
type WeightedNormalPair struct { // the collateral asset and its weight and value Collateral WeightedDecCoin // the borrowed asset and its weight and value Borrow WeightedDecCoin }
WeightedNormalPair contains borrowed and collateral value that has been matched together using regular collateral weights after special asset pairs are taken from an account's position.
func (WeightedNormalPair) String ¶
func (wnp WeightedNormalPair) String() string
String represents a WeightedNormalPair in the form [WeightedDecCoin, WeightedDecCoin] e.g. [10 uumee (0.35), 3.5 uumee (0.35)]
type WeightedNormalPairs ¶
type WeightedNormalPairs []WeightedNormalPair
A list of WeightedNormalPair sorted by collateral weight (of the collateral, then of the borrow), and denom (alphabetical) of the two to break ties.
func (WeightedNormalPairs) Add ¶
func (wnp WeightedNormalPairs) Add(add WeightedNormalPair) (sum WeightedNormalPairs)
Add returns the sum of a WeightedNormalPairs and an additional WeightedNormalPair. The result is sorted.
type WeightedSpecialPair ¶
type WeightedSpecialPair struct { // the collateral asset and its value Collateral sdk.DecCoin // the borrowed asset and its value Borrow sdk.DecCoin // the collateral weight (or liquidation treshold) of the special pair SpecialWeight sdk.Dec }
WeightedSpecialPair contains borrowed and collateral value that has been matched together as part of a special asset pair in an account's position. The collateral weight OR liquidation threshold of the special pair, depending on usage, is also included.
func (WeightedSpecialPair) String ¶
func (wsp WeightedSpecialPair) String() string
String represents a WeightedSpecialPair in the form [weight, DecCoin, DecCoin] e.g. {0.35, 10 uumee, 3.5 uumee}
type WeightedSpecialPairs ¶
type WeightedSpecialPairs []WeightedSpecialPair
A list of WeightedSpecialPair sorted by collateral weight (descending), and denom (alphabetical) to break ties.
func (WeightedSpecialPairs) Add ¶
func (wsp WeightedSpecialPairs) Add(add WeightedSpecialPair) (sum WeightedSpecialPairs)
Add returns the sum of a WeightedSpecialPairs and an additional WeightedSpecialPair. The result is sorted. Zero amount pairs are not omitted.