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 HasUTokenPrefix(denom string) bool
- 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 KeyUTokenSupply(uTokenDenom string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ToTokenDenom(denom string) string
- func ToUTokenDenom(denom string) string
- type AccountKeeper
- 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 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 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 Hooks
- 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 MsgGovUpdateRegistry
- func (*MsgGovUpdateRegistry) Descriptor() ([]byte, []int)
- func (this *MsgGovUpdateRegistry) Equal(that interface{}) bool
- func (msg *MsgGovUpdateRegistry) GetDescription() string
- func (msg MsgGovUpdateRegistry) GetSignBytes() []byte
- func (msg MsgGovUpdateRegistry) GetSigners() []sdk.AccAddress
- func (msg *MsgGovUpdateRegistry) GetTitle() string
- 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 (msg *MsgGovUpdateRegistry) ProposalRoute() string
- func (msg *MsgGovUpdateRegistry) ProposalType() string
- func (*MsgGovUpdateRegistry) ProtoMessage()
- func (m *MsgGovUpdateRegistry) Reset()
- 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 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 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 MultiHooks
- type OracleKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type 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 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 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 (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 Token
- func (t Token) AssertBorrowEnabled() error
- func (t Token) AssertNotBlacklisted() error
- func (t Token) AssertSupplyEnabled() error
- 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 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) GovUpdateRegistry(ctx context.Context, req *MsgGovUpdateRegistry) (*MsgGovUpdateRegistryResponse, error)
- func (*UnimplementedMsgServer) Liquidate(ctx context.Context, req *MsgLiquidate) (*MsgLiquidateResponse, 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) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargets) (*QueryLiquidationTargetsResponse, error)
- func (*UnimplementedQueryServer) MarketSummary(ctx context.Context, req *QueryMarketSummary) (*QueryMarketSummaryResponse, 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)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "leverage" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const FlagEnableLiquidatorQuery = "enable-liquidator-query"
const SecondsPerYear = 31536000
const (
// UTokenPrefix defines the uToken denomination prefix for all uToken types.
UTokenPrefix = "u/"
)
Variables ¶
var ( // 1XX = General Validation ErrEmptyAddress = sdkerrors.Register(ModuleName, 100, "empty address") ErrNilAsset = sdkerrors.Register(ModuleName, 101, "nil asset") ErrGetAmount = sdkerrors.Register(ModuleName, 102, "retrieved invalid amount") ErrSetAmount = sdkerrors.Register(ModuleName, 103, "cannot set invalid amount") // 2XX = Token Registry ErrNotRegisteredToken = sdkerrors.Register(ModuleName, 200, "not a registered Token") ErrUToken = sdkerrors.Register(ModuleName, 201, "denom should not be a uToken") ErrNotUToken = sdkerrors.Register(ModuleName, 202, "denom should be a uToken") ErrSupplyNotAllowed = sdkerrors.Register(ModuleName, 203, "supplying of Token disabled") ErrBorrowNotAllowed = sdkerrors.Register(ModuleName, 204, "borrowing of Token disabled") ErrBlacklisted = sdkerrors.Register(ModuleName, 205, "blacklisted Token") ErrDuplicateToken = sdkerrors.Register(ModuleName, 207, "duplicate token") ErrCollateralWeightZero = sdkerrors.Register(ModuleName, 206, "collateral weight of Token is zero: can't be used as a collateral") // 3XX = User Positions ErrInsufficientBalance = sdkerrors.Register(ModuleName, 300, "insufficient balance") ErrInsufficientCollateral = sdkerrors.Register(ModuleName, 301, "insufficient collateral") ErrDenomNotBorrowed = sdkerrors.Register(ModuleName, 302, "denom not borrowed") ErrLiquidationRepayZero = sdkerrors.Register(ModuleName, 303, "liquidation would repay zero tokens") // 4XX = Price Sensitive ErrBadValue = sdkerrors.Register(ModuleName, 400, "bad USD value") ErrInvalidOraclePrice = sdkerrors.Register(ModuleName, 401, "invalid oracle price") ErrUndercollaterized = sdkerrors.Register(ModuleName, 402, "borrow positions are undercollaterized") ErrLiquidationIneligible = sdkerrors.Register(ModuleName, 403, "borrower not eligible for liquidation") // 5XX = Market Conditions ErrLendingPoolInsufficient = sdkerrors.Register(ModuleName, 500, "lending pool insufficient") ErrMaxSupplyUtilization = sdkerrors.Register(ModuleName, 501, "market would exceed MaxSupplyUtilization") ErrMinCollateralLiquidity = sdkerrors.Register(ModuleName, 502, "market would fall below MinCollateralLiquidity") ErrMaxSupply = sdkerrors.Register(ModuleName, 504, "market would exceed MaxSupply") // 6XX = Internal Failsafes ErrInvalidUtilization = sdkerrors.Register(ModuleName, 600, "invalid token utilization") ErrNegativeTotalBorrowed = sdkerrors.Register(ModuleName, 601, "total borrowed was negative") ErrNegativeAPY = sdkerrors.Register(ModuleName, 602, "negative APY") ErrNegativeTimeElapsed = sdkerrors.Register(ModuleName, 603, "negative time elapsed since last interest time") ErrInvalidExchangeRate = sdkerrors.Register(ModuleName, 604, "exchange rate less than one") ErrInconsistentTotalBorrow = sdkerrors.Register(ModuleName, 605, "total adjusted borrow inconsistency") ErrExcessiveTimeElapsed = sdkerrors.Register(ModuleName, 606, "excessive time elapsed since last interest time") // 7XX = Disabled Functionality ErrNotLiquidatorNode = sdkerrors.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} )
KVStore key prefixes
var ( ErrInvalidLengthLeverage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLeverage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLeverage = fmt.Errorf("proto: unexpected end of group") )
var ( KeyCompleteLiquidationThreshold = []byte("CompleteLiquidationThreshold") KeyMinimumCloseFactor = []byte("MinimumCloseFactor") KeyOracleRewardFactor = []byte("OracleRewardFactor") KeySmallLiquidationSize = []byte("SmallLiquidationSize") KeyDirectLiquidationFee = []byte("DirectLiquidationFee") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/leverage module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding as // Amino is still used for that purpose. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func AddressFromKey ¶
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 HasUTokenPrefix ¶
HasUTokenPrefix detects the uToken prefix on a denom.
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 ajdusted 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 KeyUTokenSupply ¶
KeyUTokenSupply returns a KVStore key for getting and setting a utoken's total supply.
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the x/leverage module's parameter KeyTable expected by the x/params module.
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/leverage interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 ToTokenDenom ¶
ToTokenDenom strips the uToken prefix from a denom, or returns an empty string if it was not present. Also returns an empty string if the prefix was repeated multiple times.
func ToUTokenDenom ¶
ToUTokenDenom adds the uToken prefix to a denom. Returns an empty string instead if the prefix was already present.
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 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 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 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 */ }
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, ) *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 Hooks ¶
type Hooks interface { // AfterTokenRegistered defines a hook another keeper can execute after the // x/leverage registers a token. AfterTokenRegistered(ctx sdk.Context, token Token) // AfterRegisteredTokenRemoved defines a hook another keeper can execute after // the x/leverage module removes a registered token. AfterRegisteredTokenRemoved(ctx sdk.Context, token Token) }
Hooks defines pre or post processing hooks for various actions the x/leverage module takes.
type InterestScalar ¶
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. 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) // 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) // 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) }
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 MsgGovUpdateRegistry ¶
type MsgGovUpdateRegistry struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` 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 NewMsgUpdateRegistry ¶
func NewMsgUpdateRegistry(authority, title, description string, updateTokens, addTokens []Token) *MsgGovUpdateRegistry
NewMsgUpdateRegistry will creates a new MsgUpdateRegistry instance
func (*MsgGovUpdateRegistry) Descriptor ¶
func (*MsgGovUpdateRegistry) Descriptor() ([]byte, []int)
func (*MsgGovUpdateRegistry) Equal ¶
func (this *MsgGovUpdateRegistry) Equal(that interface{}) bool
func (*MsgGovUpdateRegistry) GetDescription ¶
func (msg *MsgGovUpdateRegistry) GetDescription() string
GetDescription returns the description of a community pool spend proposal.
func (MsgGovUpdateRegistry) GetSignBytes ¶
func (msg MsgGovUpdateRegistry) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgGovUpdateRegistry) GetSigners ¶
func (msg MsgGovUpdateRegistry) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgGovUpdateRegistry) GetTitle ¶
func (msg *MsgGovUpdateRegistry) GetTitle() string
GetTitle returns the title of a community pool spend proposal.
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) ProposalRoute ¶
func (msg *MsgGovUpdateRegistry) ProposalRoute() string
GetDescription returns the routing key of a community pool spend proposal.
func (*MsgGovUpdateRegistry) ProposalType ¶
func (msg *MsgGovUpdateRegistry) ProposalType() string
ProposalType returns the type of a community pool spend proposal.
func (*MsgGovUpdateRegistry) ProtoMessage ¶
func (*MsgGovUpdateRegistry) ProtoMessage()
func (*MsgGovUpdateRegistry) Reset ¶
func (m *MsgGovUpdateRegistry) Reset()
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
Type implements Msg
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 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 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. 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) // 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) // 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) }
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 MultiHooks ¶
type MultiHooks []Hooks
MultiHooks defines a type alias for multiple hooks, i.e. for multiple keepers to execute x/leverage hooks.
func NewMultiHooks ¶
func NewMultiHooks(hooks ...Hooks) MultiHooks
func (MultiHooks) AfterRegisteredTokenRemoved ¶
func (mh MultiHooks) AfterRegisteredTokenRemoved(ctx sdk.Context, token Token)
func (MultiHooks) AfterTokenRegistered ¶
func (mh MultiHooks) AfterTokenRegistered(ctx sdk.Context, token Token)
type OracleKeeper ¶
type OracleKeeper interface { GetExchangeRate(ctx sdk.Context, denom string) (sdk.Dec, error) GetExchangeRateBase(ctx sdk.Context, denom string) (sdk.Dec, error) }
OracleKeeper defines the expected x/oracle keeper interface.
type Params ¶
type Params struct { // 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. See https://github.com/mokitanetwork/katana/blob/main/docs/design_docs/010-market-params.md for more details.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of x/leverage module's parameters.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type 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, includng interest earned. 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. 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. 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. 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. LiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 161-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) // 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) }
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 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 "KATANA" 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 ukatana = 1 KATANA. 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 ukatana for every 2 u/ukatana they wish to withdraw. The same applies in reverse: supplying 3 ukatana would award 2 u/ukatana 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/ukatana and uToken exhange rate is 1.2, then 5 KATANA 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 ukatana and maximum borrow is 4000000 ukatana, then 1 KATANA 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/ukatana, uToken exhange rate is 1.2, and maximum borrow is 7000000 ukatana, then a maximum of 2 additional KATANA is permitted to be collateralized. MaximumCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 153-byte string literal not displayed */ // Mimimum 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 ukatana and minimum liquidity is 8000000 ukatana, then a maximum of 1 additional KATANA 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 */ }
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 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 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) 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 types.Coin `protobuf:"bytes,1,opt,name=uTokens,proto3" json:"uTokens"` // Tokens is the equivalent of max uTokens converted to base tokens Tokens types.Coin `protobuf:"bytes,2,opt,name=tokens,proto3" 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 { }
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) // 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) }
QueryServer is the server API for Query service.
type Token ¶
type Token struct { // Base Denom is the denomination of the underlying base token. BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"` // 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. // 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). // See also: min_close_factor. // Valid values: 0-1. 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. // Valid values: 0 - 1 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 */ }
Token defines a token, along with its metadata and parameters, in the Katana capital facility that can be supplied and borrowed. See https://github.com/mokitanetwork/katana/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) 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 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) GovUpdateRegistry ¶
func (*UnimplementedMsgServer) GovUpdateRegistry(ctx context.Context, req *MsgGovUpdateRegistry) (*MsgGovUpdateRegistryResponse, error)
func (*UnimplementedMsgServer) Liquidate ¶
func (*UnimplementedMsgServer) Liquidate(ctx context.Context, req *MsgLiquidate) (*MsgLiquidateResponse, 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) 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) 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)