Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- 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)
- 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 Collateral
- func (*Collateral) Descriptor() ([]byte, []int)
- func (m *Collateral) Marshal() (dAtA []byte, err error)
- func (m *Collateral) MarshalTo(dAtA []byte) (int, error)
- func (m *Collateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Collateral) ProtoMessage()
- func (m *Collateral) Reset()
- func (m *Collateral) Size() (n int)
- func (m *Collateral) String() string
- func (m *Collateral) Unmarshal(dAtA []byte) error
- func (m *Collateral) XXX_DiscardUnknown()
- func (m *Collateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Collateral) XXX_Merge(src proto.Message)
- func (m *Collateral) XXX_Size() int
- func (m *Collateral) XXX_Unmarshal(b []byte) error
- type DecBalances
- func (*DecBalances) Descriptor() ([]byte, []int)
- func (m *DecBalances) Marshal() (dAtA []byte, err error)
- func (m *DecBalances) MarshalTo(dAtA []byte) (int, error)
- func (m *DecBalances) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DecBalances) ProtoMessage()
- func (m *DecBalances) Reset()
- func (m *DecBalances) Size() (n int)
- func (m *DecBalances) String() string
- func (m *DecBalances) Unmarshal(dAtA []byte) error
- func (m *DecBalances) XXX_DiscardUnknown()
- func (m *DecBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecBalances) XXX_Merge(src proto.Message)
- func (m *DecBalances) XXX_Size() int
- func (m *DecBalances) XXX_Unmarshal(b []byte) error
- type 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 (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type InspectAccount
- func (*InspectAccount) Descriptor() ([]byte, []int)
- func (m *InspectAccount) Marshal() (dAtA []byte, err error)
- func (m *InspectAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *InspectAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InspectAccount) ProtoMessage()
- func (m *InspectAccount) Reset()
- func (m *InspectAccount) Size() (n int)
- func (m *InspectAccount) String() string
- func (m *InspectAccount) Unmarshal(dAtA []byte) error
- func (m *InspectAccount) XXX_DiscardUnknown()
- func (m *InspectAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InspectAccount) XXX_Merge(src proto.Message)
- func (m *InspectAccount) XXX_Size() int
- func (m *InspectAccount) XXX_Unmarshal(b []byte) error
- type InterestScalar
- func (*InterestScalar) Descriptor() ([]byte, []int)
- func (m *InterestScalar) Marshal() (dAtA []byte, err error)
- func (m *InterestScalar) MarshalTo(dAtA []byte) (int, error)
- func (m *InterestScalar) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InterestScalar) ProtoMessage()
- func (m *InterestScalar) Reset()
- func (m *InterestScalar) Size() (n int)
- func (m *InterestScalar) String() string
- func (m *InterestScalar) Unmarshal(dAtA []byte) error
- func (m *InterestScalar) XXX_DiscardUnknown()
- func (m *InterestScalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InterestScalar) XXX_Merge(src proto.Message)
- func (m *InterestScalar) XXX_Size() int
- func (m *InterestScalar) XXX_Unmarshal(b []byte) error
- type 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 QueryInspect
- func (*QueryInspect) Descriptor() ([]byte, []int)
- func (m *QueryInspect) Marshal() (dAtA []byte, err error)
- func (m *QueryInspect) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInspect) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInspect) ProtoMessage()
- func (m *QueryInspect) Reset()
- func (m *QueryInspect) Size() (n int)
- func (m *QueryInspect) String() string
- func (m *QueryInspect) Unmarshal(dAtA []byte) error
- func (m *QueryInspect) XXX_DiscardUnknown()
- func (m *QueryInspect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInspect) XXX_Merge(src proto.Message)
- func (m *QueryInspect) XXX_Size() int
- func (m *QueryInspect) XXX_Unmarshal(b []byte) error
- type QueryInspectResponse
- func (*QueryInspectResponse) Descriptor() ([]byte, []int)
- func (m *QueryInspectResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInspectResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInspectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInspectResponse) ProtoMessage()
- func (m *QueryInspectResponse) Reset()
- func (m *QueryInspectResponse) Size() (n int)
- func (m *QueryInspectResponse) String() string
- func (m *QueryInspectResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInspectResponse) XXX_DiscardUnknown()
- func (m *QueryInspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInspectResponse) XXX_Merge(src proto.Message)
- func (m *QueryInspectResponse) XXX_Size() int
- func (m *QueryInspectResponse) XXX_Unmarshal(b []byte) error
- type QueryLiquidationTargets
- func (*QueryLiquidationTargets) Descriptor() ([]byte, []int)
- func (m *QueryLiquidationTargets) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidationTargets) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidationTargets) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidationTargets) ProtoMessage()
- func (m *QueryLiquidationTargets) Reset()
- func (m *QueryLiquidationTargets) Size() (n int)
- func (m *QueryLiquidationTargets) String() string
- func (m *QueryLiquidationTargets) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidationTargets) XXX_DiscardUnknown()
- func (m *QueryLiquidationTargets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidationTargets) XXX_Merge(src proto.Message)
- func (m *QueryLiquidationTargets) XXX_Size() int
- func (m *QueryLiquidationTargets) XXX_Unmarshal(b []byte) error
- type QueryLiquidationTargetsResponse
- func (*QueryLiquidationTargetsResponse) Descriptor() ([]byte, []int)
- func (m *QueryLiquidationTargetsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidationTargetsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidationTargetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidationTargetsResponse) ProtoMessage()
- func (m *QueryLiquidationTargetsResponse) Reset()
- func (m *QueryLiquidationTargetsResponse) Size() (n int)
- func (m *QueryLiquidationTargetsResponse) String() string
- func (m *QueryLiquidationTargetsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidationTargetsResponse) XXX_DiscardUnknown()
- func (m *QueryLiquidationTargetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidationTargetsResponse) XXX_Merge(src proto.Message)
- func (m *QueryLiquidationTargetsResponse) XXX_Size() int
- func (m *QueryLiquidationTargetsResponse) XXX_Unmarshal(b []byte) error
- type QueryMarketSummary
- func (*QueryMarketSummary) Descriptor() ([]byte, []int)
- func (m *QueryMarketSummary) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketSummary) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketSummary) ProtoMessage()
- func (m *QueryMarketSummary) Reset()
- func (m *QueryMarketSummary) Size() (n int)
- func (m *QueryMarketSummary) String() string
- func (m *QueryMarketSummary) Unmarshal(dAtA []byte) error
- func (m *QueryMarketSummary) XXX_DiscardUnknown()
- func (m *QueryMarketSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketSummary) XXX_Merge(src proto.Message)
- func (m *QueryMarketSummary) XXX_Size() int
- func (m *QueryMarketSummary) XXX_Unmarshal(b []byte) error
- type QueryMarketSummaryResponse
- func (*QueryMarketSummaryResponse) Descriptor() ([]byte, []int)
- func (m *QueryMarketSummaryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketSummaryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketSummaryResponse) ProtoMessage()
- func (m *QueryMarketSummaryResponse) Reset()
- func (m *QueryMarketSummaryResponse) Size() (n int)
- func (m *QueryMarketSummaryResponse) String() string
- func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMarketSummaryResponse) XXX_DiscardUnknown()
- func (m *QueryMarketSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketSummaryResponse) XXX_Merge(src proto.Message)
- func (m *QueryMarketSummaryResponse) XXX_Size() int
- func (m *QueryMarketSummaryResponse) XXX_Unmarshal(b []byte) error
- type QueryMaxBorrow
- func (*QueryMaxBorrow) Descriptor() ([]byte, []int)
- func (m *QueryMaxBorrow) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxBorrow) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxBorrow) ProtoMessage()
- func (m *QueryMaxBorrow) Reset()
- func (m *QueryMaxBorrow) Size() (n int)
- func (m *QueryMaxBorrow) String() string
- func (m *QueryMaxBorrow) Unmarshal(dAtA []byte) error
- func (m *QueryMaxBorrow) XXX_DiscardUnknown()
- func (m *QueryMaxBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxBorrow) XXX_Merge(src proto.Message)
- func (m *QueryMaxBorrow) XXX_Size() int
- func (m *QueryMaxBorrow) XXX_Unmarshal(b []byte) error
- type QueryMaxBorrowResponse
- func (*QueryMaxBorrowResponse) Descriptor() ([]byte, []int)
- func (m *QueryMaxBorrowResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxBorrowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxBorrowResponse) ProtoMessage()
- func (m *QueryMaxBorrowResponse) Reset()
- func (m *QueryMaxBorrowResponse) Size() (n int)
- func (m *QueryMaxBorrowResponse) String() string
- func (m *QueryMaxBorrowResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMaxBorrowResponse) XXX_DiscardUnknown()
- func (m *QueryMaxBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxBorrowResponse) XXX_Merge(src proto.Message)
- func (m *QueryMaxBorrowResponse) XXX_Size() int
- func (m *QueryMaxBorrowResponse) XXX_Unmarshal(b []byte) error
- type QueryMaxWithdraw
- func (*QueryMaxWithdraw) Descriptor() ([]byte, []int)
- func (m *QueryMaxWithdraw) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxWithdraw) ProtoMessage()
- func (m *QueryMaxWithdraw) Reset()
- func (m *QueryMaxWithdraw) Size() (n int)
- func (m *QueryMaxWithdraw) String() string
- func (m *QueryMaxWithdraw) Unmarshal(dAtA []byte) error
- func (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 RiskInfo
- func (*RiskInfo) Descriptor() ([]byte, []int)
- func (m *RiskInfo) Marshal() (dAtA []byte, err error)
- func (m *RiskInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RiskInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RiskInfo) ProtoMessage()
- func (m *RiskInfo) Reset()
- func (m *RiskInfo) Size() (n int)
- func (m *RiskInfo) String() string
- func (m *RiskInfo) Unmarshal(dAtA []byte) error
- func (m *RiskInfo) XXX_DiscardUnknown()
- func (m *RiskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RiskInfo) XXX_Merge(src proto.Message)
- func (m *RiskInfo) XXX_Size() int
- func (m *RiskInfo) XXX_Unmarshal(b []byte) error
- type Token
- 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 (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 UnimplementedQueryServer
- func (*UnimplementedQueryServer) AccountBalances(ctx context.Context, req *QueryAccountBalances) (*QueryAccountBalancesResponse, error)
- func (*UnimplementedQueryServer) AccountSummary(ctx context.Context, req *QueryAccountSummary) (*QueryAccountSummaryResponse, error)
- func (*UnimplementedQueryServer) BadDebts(ctx context.Context, req *QueryBadDebts) (*QueryBadDebtsResponse, error)
- func (*UnimplementedQueryServer) Inspect(ctx context.Context, req *QueryInspect) (*QueryInspectResponse, error)
- func (*UnimplementedQueryServer) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargets) (*QueryLiquidationTargetsResponse, error)
- func (*UnimplementedQueryServer) MarketSummary(ctx context.Context, req *QueryMarketSummary) (*QueryMarketSummaryResponse, error)
- func (*UnimplementedQueryServer) MaxBorrow(ctx context.Context, req *QueryMaxBorrow) (*QueryMaxBorrowResponse, error)
- func (*UnimplementedQueryServer) MaxWithdraw(ctx context.Context, req *QueryMaxWithdraw) (*QueryMaxWithdrawResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RegisteredTokens(ctx context.Context, req *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error)
Constants ¶
This section is empty.
Variables ¶
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 ( 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") )
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the x/leverage module's parameter KeyTable expected by the x/params module.
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)
Types ¶
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 (*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 (*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 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 (*Collateral) Descriptor ¶
func (*Collateral) Descriptor() ([]byte, []int)
func (*Collateral) Marshal ¶
func (m *Collateral) Marshal() (dAtA []byte, err error)
func (*Collateral) MarshalToSizedBuffer ¶
func (m *Collateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Collateral) ProtoMessage ¶
func (*Collateral) ProtoMessage()
func (*Collateral) Reset ¶
func (m *Collateral) Reset()
func (*Collateral) Size ¶
func (m *Collateral) Size() (n int)
func (*Collateral) String ¶
func (m *Collateral) String() string
func (*Collateral) Unmarshal ¶
func (m *Collateral) Unmarshal(dAtA []byte) error
func (*Collateral) XXX_DiscardUnknown ¶
func (m *Collateral) XXX_DiscardUnknown()
func (*Collateral) XXX_Marshal ¶
func (m *Collateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Collateral) XXX_Merge ¶
func (m *Collateral) XXX_Merge(src proto.Message)
func (*Collateral) XXX_Size ¶
func (m *Collateral) XXX_Size() int
func (*Collateral) XXX_Unmarshal ¶
func (m *Collateral) XXX_Unmarshal(b []byte) error
type DecBalances ¶
type DecBalances struct { // Collateral contains all uTokens the account has collateralized. It has been converted from uTokens to tokens. Collateral github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=collateral,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"collateral"` // Borrowed contains all tokens the account has borrowed, including interest owed. Borrowed github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=borrowed,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"borrowed"` }
DecBalances contains an account's position denoted in symbol denom tokens.
func (*DecBalances) Descriptor ¶
func (*DecBalances) Descriptor() ([]byte, []int)
func (*DecBalances) Marshal ¶
func (m *DecBalances) Marshal() (dAtA []byte, err error)
func (*DecBalances) MarshalToSizedBuffer ¶
func (m *DecBalances) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DecBalances) ProtoMessage ¶
func (*DecBalances) ProtoMessage()
func (*DecBalances) Reset ¶
func (m *DecBalances) Reset()
func (*DecBalances) Size ¶
func (m *DecBalances) Size() (n int)
func (*DecBalances) String ¶
func (m *DecBalances) String() string
func (*DecBalances) Unmarshal ¶
func (m *DecBalances) Unmarshal(dAtA []byte) error
func (*DecBalances) XXX_DiscardUnknown ¶
func (m *DecBalances) XXX_DiscardUnknown()
func (*DecBalances) XXX_Marshal ¶
func (m *DecBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecBalances) XXX_Merge ¶
func (m *DecBalances) XXX_Merge(src proto.Message)
func (*DecBalances) XXX_Size ¶
func (m *DecBalances) XXX_Size() int
func (*DecBalances) XXX_Unmarshal ¶
func (m *DecBalances) XXX_Unmarshal(b []byte) error
type 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 (*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) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type InspectAccount ¶
type InspectAccount struct { // Address of a borrower Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // USD totals of borrower's collateral, debt, and liquidation threshold. Analysis *RiskInfo `protobuf:"bytes,2,opt,name=analysis,proto3" json:"analysis,omitempty"` // Collateral and borrowed tokens, denoted in human-readable symbol denom instead of ibc denom. Position *DecBalances `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"` }
InspectAccount contains risk and balance info for a single account for the inspector query.
func (*InspectAccount) Descriptor ¶
func (*InspectAccount) Descriptor() ([]byte, []int)
func (*InspectAccount) Marshal ¶
func (m *InspectAccount) Marshal() (dAtA []byte, err error)
func (*InspectAccount) MarshalToSizedBuffer ¶
func (m *InspectAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InspectAccount) ProtoMessage ¶
func (*InspectAccount) ProtoMessage()
func (*InspectAccount) Reset ¶
func (m *InspectAccount) Reset()
func (*InspectAccount) Size ¶
func (m *InspectAccount) Size() (n int)
func (*InspectAccount) String ¶
func (m *InspectAccount) String() string
func (*InspectAccount) Unmarshal ¶
func (m *InspectAccount) Unmarshal(dAtA []byte) error
func (*InspectAccount) XXX_DiscardUnknown ¶
func (m *InspectAccount) XXX_DiscardUnknown()
func (*InspectAccount) XXX_Marshal ¶
func (m *InspectAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InspectAccount) XXX_Merge ¶
func (m *InspectAccount) XXX_Merge(src proto.Message)
func (*InspectAccount) XXX_Size ¶
func (m *InspectAccount) XXX_Size() int
func (*InspectAccount) XXX_Unmarshal ¶
func (m *InspectAccount) XXX_Unmarshal(b []byte) error
type InterestScalar ¶
type InterestScalar struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Scalar github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=scalar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"scalar"` }
InterestScalar is an interest scalar used in the leverage module's genesis state.
func (*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 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/umee-network/umee/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, including interest earned. // Computation skips assets which are missing oracle prices, potentially resulting in a lower supplied // value than if prices were all available. SuppliedValue github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */ // Collateral Value is the sum of the USD value of all uTokens the account has collateralized. // Computation skips collateral which is missing an oracle price, potentially resulting in a lower collateral // value than if prices were all available. CollateralValue github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */ // Borrowed Value is the sum of the USD value of all tokens the account has borrowed, including interest owed. // It always uses spot prices. // Computation skips borrows which are missing oracle prices, potentially resulting in a lower borrowed // value than if prices were all available. BorrowedValue github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */ // Borrow Limit is the maximum Borrowed Value the account is allowed to reach through direct borrowing. // The lower of spot or historic price for each collateral token is used when calculating borrow limits. // Computation skips collateral which is missing an oracle price, potentially resulting in a lower borrow // limit than if prices were all available. BorrowLimit github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */ // Liquidation Threshold is the Borrowed Value at which the account becomes eligible for liquidation. // Will be null if an oracle price required for computation is missing. LiquidationThreshold *github_com_cosmos_cosmos_sdk_types.Dec `` /* 171-byte string literal not displayed */ }
QueryAccountSummaryResponse defines the response structure for the AccountSummary gRPC service handler.
func (*QueryAccountSummaryResponse) Descriptor ¶
func (*QueryAccountSummaryResponse) Descriptor() ([]byte, []int)
func (*QueryAccountSummaryResponse) Marshal ¶
func (m *QueryAccountSummaryResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountSummaryResponse) MarshalTo ¶
func (m *QueryAccountSummaryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountSummaryResponse) MarshalToSizedBuffer ¶
func (m *QueryAccountSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountSummaryResponse) ProtoMessage ¶
func (*QueryAccountSummaryResponse) ProtoMessage()
func (*QueryAccountSummaryResponse) Reset ¶
func (m *QueryAccountSummaryResponse) Reset()
func (*QueryAccountSummaryResponse) Size ¶
func (m *QueryAccountSummaryResponse) Size() (n int)
func (*QueryAccountSummaryResponse) String ¶
func (m *QueryAccountSummaryResponse) String() string
func (*QueryAccountSummaryResponse) Unmarshal ¶
func (m *QueryAccountSummaryResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountSummaryResponse) XXX_DiscardUnknown ¶
func (m *QueryAccountSummaryResponse) XXX_DiscardUnknown()
func (*QueryAccountSummaryResponse) XXX_Marshal ¶
func (m *QueryAccountSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountSummaryResponse) XXX_Merge ¶
func (m *QueryAccountSummaryResponse) XXX_Merge(src proto.Message)
func (*QueryAccountSummaryResponse) XXX_Size ¶
func (m *QueryAccountSummaryResponse) XXX_Size() int
func (*QueryAccountSummaryResponse) XXX_Unmarshal ¶
func (m *QueryAccountSummaryResponse) XXX_Unmarshal(b []byte) error
type QueryBadDebts ¶
type QueryBadDebts struct { }
QueryBadDebts defines the request structure for the BedDebts gRPC service handler.
func (*QueryBadDebts) Descriptor ¶
func (*QueryBadDebts) Descriptor() ([]byte, []int)
func (*QueryBadDebts) Marshal ¶
func (m *QueryBadDebts) Marshal() (dAtA []byte, err error)
func (*QueryBadDebts) MarshalToSizedBuffer ¶
func (m *QueryBadDebts) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBadDebts) ProtoMessage ¶
func (*QueryBadDebts) ProtoMessage()
func (*QueryBadDebts) Reset ¶
func (m *QueryBadDebts) Reset()
func (*QueryBadDebts) Size ¶
func (m *QueryBadDebts) Size() (n int)
func (*QueryBadDebts) String ¶
func (m *QueryBadDebts) String() string
func (*QueryBadDebts) Unmarshal ¶
func (m *QueryBadDebts) Unmarshal(dAtA []byte) error
func (*QueryBadDebts) XXX_DiscardUnknown ¶
func (m *QueryBadDebts) XXX_DiscardUnknown()
func (*QueryBadDebts) XXX_Marshal ¶
func (m *QueryBadDebts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBadDebts) XXX_Merge ¶
func (m *QueryBadDebts) XXX_Merge(src proto.Message)
func (*QueryBadDebts) XXX_Size ¶
func (m *QueryBadDebts) XXX_Size() int
func (*QueryBadDebts) XXX_Unmarshal ¶
func (m *QueryBadDebts) XXX_Unmarshal(b []byte) error
type QueryBadDebtsResponse ¶
type QueryBadDebtsResponse struct { // Targets are borrow positions currently marked for bad debt repayment. Each contains an Address and a Denom. Targets []BadDebt `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets"` }
QueryBadDebtsResponse defines the response structure for the BedDebts gRPC service handler.
func (*QueryBadDebtsResponse) Descriptor ¶
func (*QueryBadDebtsResponse) Descriptor() ([]byte, []int)
func (*QueryBadDebtsResponse) Marshal ¶
func (m *QueryBadDebtsResponse) Marshal() (dAtA []byte, err error)
func (*QueryBadDebtsResponse) MarshalTo ¶
func (m *QueryBadDebtsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBadDebtsResponse) MarshalToSizedBuffer ¶
func (m *QueryBadDebtsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBadDebtsResponse) ProtoMessage ¶
func (*QueryBadDebtsResponse) ProtoMessage()
func (*QueryBadDebtsResponse) Reset ¶
func (m *QueryBadDebtsResponse) Reset()
func (*QueryBadDebtsResponse) Size ¶
func (m *QueryBadDebtsResponse) Size() (n int)
func (*QueryBadDebtsResponse) String ¶
func (m *QueryBadDebtsResponse) String() string
func (*QueryBadDebtsResponse) Unmarshal ¶
func (m *QueryBadDebtsResponse) Unmarshal(dAtA []byte) error
func (*QueryBadDebtsResponse) XXX_DiscardUnknown ¶
func (m *QueryBadDebtsResponse) XXX_DiscardUnknown()
func (*QueryBadDebtsResponse) XXX_Marshal ¶
func (m *QueryBadDebtsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBadDebtsResponse) XXX_Merge ¶
func (m *QueryBadDebtsResponse) XXX_Merge(src proto.Message)
func (*QueryBadDebtsResponse) XXX_Size ¶
func (m *QueryBadDebtsResponse) XXX_Size() int
func (*QueryBadDebtsResponse) XXX_Unmarshal ¶
func (m *QueryBadDebtsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the x/leverage module. Params(ctx context.Context, in *QueryParams, opts ...grpc.CallOption) (*QueryParamsResponse, error) // RegisteredTokens queries for all the registered tokens. RegisteredTokens(ctx context.Context, in *QueryRegisteredTokens, opts ...grpc.CallOption) (*QueryRegisteredTokensResponse, error) // MarketSummary queries a base asset's current borrowing and supplying conditions. MarketSummary(ctx context.Context, in *QueryMarketSummary, opts ...grpc.CallOption) (*QueryMarketSummaryResponse, error) // AccountBalances queries an account's current supply, collateral, and borrow positions. AccountBalances(ctx context.Context, in *QueryAccountBalances, opts ...grpc.CallOption) (*QueryAccountBalancesResponse, error) // AccountSummary queries USD values representing an account's total positions and borrowing limits. It requires oracle prices to return successfully. AccountSummary(ctx context.Context, in *QueryAccountSummary, opts ...grpc.CallOption) (*QueryAccountSummaryResponse, error) // LiquidationTargets queries a list of all borrower account addresses eligible for liquidation. LiquidationTargets(ctx context.Context, in *QueryLiquidationTargets, opts ...grpc.CallOption) (*QueryLiquidationTargetsResponse, error) // BadDebts queries a list of borrow positions that have been marked for bad debt repayment. BadDebts(ctx context.Context, in *QueryBadDebts, opts ...grpc.CallOption) (*QueryBadDebtsResponse, error) // MaxWithdraw queries the maximum amount of a given token an address can withdraw. MaxWithdraw(ctx context.Context, in *QueryMaxWithdraw, opts ...grpc.CallOption) (*QueryMaxWithdrawResponse, error) // MaxBorrow queries the maximum amount of a given token an address can borrow. MaxBorrow(ctx context.Context, in *QueryMaxBorrow, opts ...grpc.CallOption) (*QueryMaxBorrowResponse, error) // Inspect is the customizable inspector query. It returns a list of all borrowers, // starting from the highest borrowed value, filtered by any combination of: minimum // borrowed value (optionally of a specified token), minimum collateral value, minimum // progress toward liquidation threshold, and minimum LTV. Each account is displayed // with its address and borrowed/liquidation/collateral USD values, as well as its // actual token positions in human-readable symbol denoms instead of uTokens or ibc denoms. Inspect(ctx context.Context, in *QueryInspect, opts ...grpc.CallOption) (*QueryInspectResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryInspect ¶
type QueryInspect struct { // Symbol selects a symbol denom to sort accounts by borrowed value. Use "all" or empty string to show all. Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // Borrowed is the minimum USD value an account must have borrowed to show. Use 0 to show all. Borrowed float64 `protobuf:"fixed64,2,opt,name=borrowed,proto3" json:"borrowed,omitempty"` // Collateral is the minimum USD value of collateral an account must have to show. Use 0 to show all. Collateral float64 `protobuf:"fixed64,3,opt,name=collateral,proto3" json:"collateral,omitempty"` // Danger is the minimum progress toward liquidation an account must have to show. Use 0 to show all. // Measured as the ratio (borrowed value / liquidation threshold), where > 1 is liquidation-eligible. Danger float64 `protobuf:"fixed64,4,opt,name=danger,proto3" json:"danger,omitempty"` // LTV is the minimum ratio (borrowed value / collateral value) an account must have to show. Use 0 to show all. Ltv float64 `protobuf:"fixed64,5,opt,name=ltv,proto3" json:"ltv,omitempty"` }
QueryInspect defines the request structure for the Inspect gRPC service handler.
func (*QueryInspect) Descriptor ¶
func (*QueryInspect) Descriptor() ([]byte, []int)
func (*QueryInspect) Marshal ¶
func (m *QueryInspect) Marshal() (dAtA []byte, err error)
func (*QueryInspect) MarshalToSizedBuffer ¶
func (m *QueryInspect) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInspect) ProtoMessage ¶
func (*QueryInspect) ProtoMessage()
func (*QueryInspect) Reset ¶
func (m *QueryInspect) Reset()
func (*QueryInspect) Size ¶
func (m *QueryInspect) Size() (n int)
func (*QueryInspect) String ¶
func (m *QueryInspect) String() string
func (*QueryInspect) Unmarshal ¶
func (m *QueryInspect) Unmarshal(dAtA []byte) error
func (*QueryInspect) XXX_DiscardUnknown ¶
func (m *QueryInspect) XXX_DiscardUnknown()
func (*QueryInspect) XXX_Marshal ¶
func (m *QueryInspect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInspect) XXX_Merge ¶
func (m *QueryInspect) XXX_Merge(src proto.Message)
func (*QueryInspect) XXX_Size ¶
func (m *QueryInspect) XXX_Size() int
func (*QueryInspect) XXX_Unmarshal ¶
func (m *QueryInspect) XXX_Unmarshal(b []byte) error
type QueryInspectResponse ¶
type QueryInspectResponse struct {
Borrowers []InspectAccount `protobuf:"bytes,1,rep,name=borrowers,proto3" json:"borrowers"`
}
QueryInspectResponse defines the response structure for the Inspect gRPC service handler.
func (*QueryInspectResponse) Descriptor ¶
func (*QueryInspectResponse) Descriptor() ([]byte, []int)
func (*QueryInspectResponse) Marshal ¶
func (m *QueryInspectResponse) Marshal() (dAtA []byte, err error)
func (*QueryInspectResponse) MarshalTo ¶
func (m *QueryInspectResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInspectResponse) MarshalToSizedBuffer ¶
func (m *QueryInspectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInspectResponse) ProtoMessage ¶
func (*QueryInspectResponse) ProtoMessage()
func (*QueryInspectResponse) Reset ¶
func (m *QueryInspectResponse) Reset()
func (*QueryInspectResponse) Size ¶
func (m *QueryInspectResponse) Size() (n int)
func (*QueryInspectResponse) String ¶
func (m *QueryInspectResponse) String() string
func (*QueryInspectResponse) Unmarshal ¶
func (m *QueryInspectResponse) Unmarshal(dAtA []byte) error
func (*QueryInspectResponse) XXX_DiscardUnknown ¶
func (m *QueryInspectResponse) XXX_DiscardUnknown()
func (*QueryInspectResponse) XXX_Marshal ¶
func (m *QueryInspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInspectResponse) XXX_Merge ¶
func (m *QueryInspectResponse) XXX_Merge(src proto.Message)
func (*QueryInspectResponse) XXX_Size ¶
func (m *QueryInspectResponse) XXX_Size() int
func (*QueryInspectResponse) XXX_Unmarshal ¶
func (m *QueryInspectResponse) XXX_Unmarshal(b []byte) error
type QueryLiquidationTargets ¶
type QueryLiquidationTargets struct { }
QueryLiquidationTargets defines the request structure for the LiquidationTargets gRPC service handler.
func (*QueryLiquidationTargets) Descriptor ¶
func (*QueryLiquidationTargets) Descriptor() ([]byte, []int)
func (*QueryLiquidationTargets) Marshal ¶
func (m *QueryLiquidationTargets) Marshal() (dAtA []byte, err error)
func (*QueryLiquidationTargets) MarshalTo ¶
func (m *QueryLiquidationTargets) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidationTargets) MarshalToSizedBuffer ¶
func (m *QueryLiquidationTargets) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidationTargets) ProtoMessage ¶
func (*QueryLiquidationTargets) ProtoMessage()
func (*QueryLiquidationTargets) Reset ¶
func (m *QueryLiquidationTargets) Reset()
func (*QueryLiquidationTargets) Size ¶
func (m *QueryLiquidationTargets) Size() (n int)
func (*QueryLiquidationTargets) String ¶
func (m *QueryLiquidationTargets) String() string
func (*QueryLiquidationTargets) Unmarshal ¶
func (m *QueryLiquidationTargets) Unmarshal(dAtA []byte) error
func (*QueryLiquidationTargets) XXX_DiscardUnknown ¶
func (m *QueryLiquidationTargets) XXX_DiscardUnknown()
func (*QueryLiquidationTargets) XXX_Marshal ¶
func (m *QueryLiquidationTargets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidationTargets) XXX_Merge ¶
func (m *QueryLiquidationTargets) XXX_Merge(src proto.Message)
func (*QueryLiquidationTargets) XXX_Size ¶
func (m *QueryLiquidationTargets) XXX_Size() int
func (*QueryLiquidationTargets) XXX_Unmarshal ¶
func (m *QueryLiquidationTargets) XXX_Unmarshal(b []byte) error
type QueryLiquidationTargetsResponse ¶
type QueryLiquidationTargetsResponse struct { // Targets are the addresses of borrowers eligible for liquidation. Targets []string `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` }
QueryLiquidationTargetsResponse defines the response structure for the LiquidationTargets gRPC service handler.
func (*QueryLiquidationTargetsResponse) Descriptor ¶
func (*QueryLiquidationTargetsResponse) Descriptor() ([]byte, []int)
func (*QueryLiquidationTargetsResponse) Marshal ¶
func (m *QueryLiquidationTargetsResponse) Marshal() (dAtA []byte, err error)
func (*QueryLiquidationTargetsResponse) MarshalTo ¶
func (m *QueryLiquidationTargetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsResponse) MarshalToSizedBuffer ¶
func (m *QueryLiquidationTargetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidationTargetsResponse) ProtoMessage ¶
func (*QueryLiquidationTargetsResponse) ProtoMessage()
func (*QueryLiquidationTargetsResponse) Reset ¶
func (m *QueryLiquidationTargetsResponse) Reset()
func (*QueryLiquidationTargetsResponse) Size ¶
func (m *QueryLiquidationTargetsResponse) Size() (n int)
func (*QueryLiquidationTargetsResponse) String ¶
func (m *QueryLiquidationTargetsResponse) String() string
func (*QueryLiquidationTargetsResponse) Unmarshal ¶
func (m *QueryLiquidationTargetsResponse) Unmarshal(dAtA []byte) error
func (*QueryLiquidationTargetsResponse) XXX_DiscardUnknown ¶
func (m *QueryLiquidationTargetsResponse) XXX_DiscardUnknown()
func (*QueryLiquidationTargetsResponse) XXX_Marshal ¶
func (m *QueryLiquidationTargetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidationTargetsResponse) XXX_Merge ¶
func (m *QueryLiquidationTargetsResponse) XXX_Merge(src proto.Message)
func (*QueryLiquidationTargetsResponse) XXX_Size ¶
func (m *QueryLiquidationTargetsResponse) XXX_Size() int
func (*QueryLiquidationTargetsResponse) XXX_Unmarshal ¶
func (m *QueryLiquidationTargetsResponse) XXX_Unmarshal(b []byte) error
type QueryMarketSummary ¶
type QueryMarketSummary struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryMarketSummary defines the request structure for the MarketSummary gRPC service handler.
func (*QueryMarketSummary) Descriptor ¶
func (*QueryMarketSummary) Descriptor() ([]byte, []int)
func (*QueryMarketSummary) Marshal ¶
func (m *QueryMarketSummary) Marshal() (dAtA []byte, err error)
func (*QueryMarketSummary) MarshalTo ¶
func (m *QueryMarketSummary) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketSummary) MarshalToSizedBuffer ¶
func (m *QueryMarketSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketSummary) ProtoMessage ¶
func (*QueryMarketSummary) ProtoMessage()
func (*QueryMarketSummary) Reset ¶
func (m *QueryMarketSummary) Reset()
func (*QueryMarketSummary) Size ¶
func (m *QueryMarketSummary) Size() (n int)
func (*QueryMarketSummary) String ¶
func (m *QueryMarketSummary) String() string
func (*QueryMarketSummary) Unmarshal ¶
func (m *QueryMarketSummary) Unmarshal(dAtA []byte) error
func (*QueryMarketSummary) XXX_DiscardUnknown ¶
func (m *QueryMarketSummary) XXX_DiscardUnknown()
func (*QueryMarketSummary) XXX_Marshal ¶
func (m *QueryMarketSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketSummary) XXX_Merge ¶
func (m *QueryMarketSummary) XXX_Merge(src proto.Message)
func (*QueryMarketSummary) XXX_Size ¶
func (m *QueryMarketSummary) XXX_Size() int
func (*QueryMarketSummary) XXX_Unmarshal ¶
func (m *QueryMarketSummary) XXX_Unmarshal(b []byte) error
type QueryMarketSummaryResponse ¶
type QueryMarketSummaryResponse struct { // Symbol Denom is the human-readable representation of a token denom, for example "UMEE" or "ATOM". SymbolDenom string `protobuf:"bytes,1,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty"` // Exponent is the power of ten required to get from base denom to symbol denom. For example, an exponent of 6 means 10^6 uumee = 1 UMEE. Exponent uint32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` // Oracle Price is the current USD value of a token. Oracle price is nil when the oracle is down. OraclePrice *github_com_cosmos_cosmos_sdk_types.Dec `` /* 144-byte string literal not displayed */ // uToken Exchange Rate is the amount of base tokens received when withdrawing 1 uToken. For example, a uToken exchange rate of 1.5 means a supplier receives 3 uumee for every 2 u/uumee they wish to withdraw. The same applies in reverse: supplying 3 uumee would award 2 u/uumee at that time. UTokenExchangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 157-byte string literal not displayed */ // Supply APY is the current interest rate suppliers are receiving for their deposits. For example, 0.11 would mean 11% APY. Supply APY is always less than borrow APY. Supply_APY github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */ // Borrow APY is the current interest rate borrowers are being charged on their loans. For example, 0.2 would mean 20% APY. Borrow_APY github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */ // Supplied is the total amount of tokens supplied to the the system by all suppliers, including any interest earned. This includes that tokens which have been borrowed out or enabled as collateral, but excludes reserves. Supplied is denominated in base tokens, so exponent must be applied to convert to symbol denom. Supplied github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=supplied,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"supplied"` // Reserved is the total amount of tokens held in reserve by the module for emergencies. Reserves are always excluded from total supply, borrow, collateral, and liqduidity queries. Reserves are denominated in base tokens, so exponent must be applied to convert to symbol denom. Reserved github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=reserved,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserved"` // Collateral is the total amount of uTokens collateralized by all borrowers. Collateral is denominated in uTokenso, so both uToken exchange rate and exponent must also be applied to convert to symbol denom. For example, if collateral is 4000000 u/uumee and uToken exchange rate is 1.2, then 5 UMEE have been collateralized. Collateral github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=collateral,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"collateral"` // Borrowed is the total amount of debt in this token held across all borrowers. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. Borrowed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=borrowed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"borrowed"` // Liquidity is the amount of a token that has been supplied but not yet borrowed or reserved. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. Liquidity github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=liquidity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"liquidity"` // Maximum Borrow is the amount of a token that is available for borrowing, including that which has already been borrowed out. This amount is less than total supply due to safety limits. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. For example, if borrowed is 3000000 uumee and maximum borrow is 4000000 uumee, then 1 UMEE is currently available for borrowing. MaximumBorrow github_com_cosmos_cosmos_sdk_types.Int `` /* 141-byte string literal not displayed */ // Maximum Collateral is the amount of a token that can be collateralized, including that which is already collateral. This amount is less than total supply due to safety limits. It is denominated in uTokens, so both uToken exchange rate and exponent must be applied to convert to symbol denom. For example, if collateral is 4000000 u/uumee, uToken exchange rate is 1.2, and maximum borrow is 7000000 uumee, then a maximum of 2 additional UMEE is permitted to be collateralized. MaximumCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 153-byte string literal not displayed */ // Minimum Liquidity is the minimum amount of liquidity in the module required by safety limits, based on the current collateral. It is denominated in base tokens, so exponent must be applied to convert to symbol denom. For example, if liquidity is 9000000 uumee and minimum liquidity is 8000000 uumee, then a maximum of 1 additional UMEE is currently available for borrowing or withdrawal. MinimumLiquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 150-byte string literal not displayed */ // uToken Supply is the total amount of a base token's associated uToken in circulation. UTokenSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 138-byte string literal not displayed */ // Available Borrow is the maximum additional amount of base tokens than can be borrowed based on current liquidity and system safety limits. It can also be calculated by MIN(maximum_borrow - borrowed, liquidity - minimum_liquidity). It is denominated in base tokens, so exponent must be applied to convert to symbol denom. A negative availability means safety limits have been exceeded and borrowing is temporarily unavailable. AvailableBorrow github_com_cosmos_cosmos_sdk_types.Int `` /* 147-byte string literal not displayed */ // Available Withdraw is the maximum amount of uTokens than can currently be withdrawn based on liquidity and system safety limits. It can also be calculated by (liquidity - minimum_liquidity). It is denominated in uTokens, so both uToken exchange rate and exponent must be applied to convert to symbol denom. A negative availability means safety limits have been exceeded and withdrawal is temporarily unavailable. AvailableWithdraw github_com_cosmos_cosmos_sdk_types.Int `` /* 153-byte string literal not displayed */ // Available Collateralize is the maximum additional amount of uTokens than can be collateralized based on current liquidity and system safety limits. It can also be calculated by (maximum_collateral, - collateral). It is denominated in uTokens, so both uToken exchange rate and exponent must be applied to convert to symbol denom. A negative availability means safety limits have been exceeded and additional collateral cannot be created until more liquidity is present. AvailableCollateralize github_com_cosmos_cosmos_sdk_types.Int `` /* 168-byte string literal not displayed */ // Oracle Historic Price is the historic USD value of a token. Historic price is defined as the median of the last N historic median prices from the oracle module, with N being this token's HistoricMedians in the leverage registry. Current price is used if required medians is zero. Price is nil when the oracle is down or insufficient historic medians are available. OracleHistoricPrice *github_com_cosmos_cosmos_sdk_types.Dec `` /* 171-byte string literal not displayed */ Errors string `protobuf:"bytes,20,opt,name=errors,proto3" json:"errors,omitempty"` }
QueryMarketSummaryResponse defines the response structure for the MarketSummary gRPC service handler.
func (*QueryMarketSummaryResponse) Descriptor ¶
func (*QueryMarketSummaryResponse) Descriptor() ([]byte, []int)
func (*QueryMarketSummaryResponse) Marshal ¶
func (m *QueryMarketSummaryResponse) Marshal() (dAtA []byte, err error)
func (*QueryMarketSummaryResponse) MarshalTo ¶
func (m *QueryMarketSummaryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketSummaryResponse) MarshalToSizedBuffer ¶
func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketSummaryResponse) ProtoMessage ¶
func (*QueryMarketSummaryResponse) ProtoMessage()
func (*QueryMarketSummaryResponse) Reset ¶
func (m *QueryMarketSummaryResponse) Reset()
func (*QueryMarketSummaryResponse) Size ¶
func (m *QueryMarketSummaryResponse) Size() (n int)
func (*QueryMarketSummaryResponse) String ¶
func (m *QueryMarketSummaryResponse) String() string
func (*QueryMarketSummaryResponse) Unmarshal ¶
func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error
func (*QueryMarketSummaryResponse) XXX_DiscardUnknown ¶
func (m *QueryMarketSummaryResponse) XXX_DiscardUnknown()
func (*QueryMarketSummaryResponse) XXX_Marshal ¶
func (m *QueryMarketSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketSummaryResponse) XXX_Merge ¶
func (m *QueryMarketSummaryResponse) XXX_Merge(src proto.Message)
func (*QueryMarketSummaryResponse) XXX_Size ¶
func (m *QueryMarketSummaryResponse) XXX_Size() int
func (*QueryMarketSummaryResponse) XXX_Unmarshal ¶
func (m *QueryMarketSummaryResponse) XXX_Unmarshal(b []byte) error
type QueryMaxBorrow ¶
type QueryMaxBorrow struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // denom is the base token denom to borrow. // empty denom will query all registered tokens. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryMaxBorrow defines the request structure for the MaxBorrow gRPC service handler.
func (*QueryMaxBorrow) Descriptor ¶
func (*QueryMaxBorrow) Descriptor() ([]byte, []int)
func (*QueryMaxBorrow) Marshal ¶
func (m *QueryMaxBorrow) Marshal() (dAtA []byte, err error)
func (*QueryMaxBorrow) MarshalToSizedBuffer ¶
func (m *QueryMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxBorrow) ProtoMessage ¶
func (*QueryMaxBorrow) ProtoMessage()
func (*QueryMaxBorrow) Reset ¶
func (m *QueryMaxBorrow) Reset()
func (*QueryMaxBorrow) Size ¶
func (m *QueryMaxBorrow) Size() (n int)
func (*QueryMaxBorrow) String ¶
func (m *QueryMaxBorrow) String() string
func (*QueryMaxBorrow) Unmarshal ¶
func (m *QueryMaxBorrow) Unmarshal(dAtA []byte) error
func (*QueryMaxBorrow) XXX_DiscardUnknown ¶
func (m *QueryMaxBorrow) XXX_DiscardUnknown()
func (*QueryMaxBorrow) XXX_Marshal ¶
func (m *QueryMaxBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxBorrow) XXX_Merge ¶
func (m *QueryMaxBorrow) XXX_Merge(src proto.Message)
func (*QueryMaxBorrow) XXX_Size ¶
func (m *QueryMaxBorrow) XXX_Size() int
func (*QueryMaxBorrow) XXX_Unmarshal ¶
func (m *QueryMaxBorrow) XXX_Unmarshal(b []byte) error
type QueryMaxBorrowResponse ¶
type QueryMaxBorrowResponse struct { // Tokens is the maximum amount of tokens that can be borrowed Tokens github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=tokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"tokens"` }
QueryMaxBorrowResponse defines the response structure for the MaxBorrow gRPC service handler.
func (*QueryMaxBorrowResponse) Descriptor ¶
func (*QueryMaxBorrowResponse) Descriptor() ([]byte, []int)
func (*QueryMaxBorrowResponse) Marshal ¶
func (m *QueryMaxBorrowResponse) Marshal() (dAtA []byte, err error)
func (*QueryMaxBorrowResponse) MarshalTo ¶
func (m *QueryMaxBorrowResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxBorrowResponse) MarshalToSizedBuffer ¶
func (m *QueryMaxBorrowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxBorrowResponse) ProtoMessage ¶
func (*QueryMaxBorrowResponse) ProtoMessage()
func (*QueryMaxBorrowResponse) Reset ¶
func (m *QueryMaxBorrowResponse) Reset()
func (*QueryMaxBorrowResponse) Size ¶
func (m *QueryMaxBorrowResponse) Size() (n int)
func (*QueryMaxBorrowResponse) String ¶
func (m *QueryMaxBorrowResponse) String() string
func (*QueryMaxBorrowResponse) Unmarshal ¶
func (m *QueryMaxBorrowResponse) Unmarshal(dAtA []byte) error
func (*QueryMaxBorrowResponse) XXX_DiscardUnknown ¶
func (m *QueryMaxBorrowResponse) XXX_DiscardUnknown()
func (*QueryMaxBorrowResponse) XXX_Marshal ¶
func (m *QueryMaxBorrowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxBorrowResponse) XXX_Merge ¶
func (m *QueryMaxBorrowResponse) XXX_Merge(src proto.Message)
func (*QueryMaxBorrowResponse) XXX_Size ¶
func (m *QueryMaxBorrowResponse) XXX_Size() int
func (*QueryMaxBorrowResponse) XXX_Unmarshal ¶
func (m *QueryMaxBorrowResponse) XXX_Unmarshal(b []byte) error
type QueryMaxWithdraw ¶
type QueryMaxWithdraw struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // denom is the base token denom associated with the uToken to withdraw. // empty denom will query all registered tokens. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryMaxWithdraw defines the request structure for the MaxWithdraw gRPC service handler.
func (*QueryMaxWithdraw) Descriptor ¶
func (*QueryMaxWithdraw) Descriptor() ([]byte, []int)
func (*QueryMaxWithdraw) Marshal ¶
func (m *QueryMaxWithdraw) Marshal() (dAtA []byte, err error)
func (*QueryMaxWithdraw) MarshalToSizedBuffer ¶
func (m *QueryMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxWithdraw) ProtoMessage ¶
func (*QueryMaxWithdraw) ProtoMessage()
func (*QueryMaxWithdraw) Reset ¶
func (m *QueryMaxWithdraw) Reset()
func (*QueryMaxWithdraw) Size ¶
func (m *QueryMaxWithdraw) Size() (n int)
func (*QueryMaxWithdraw) String ¶
func (m *QueryMaxWithdraw) String() string
func (*QueryMaxWithdraw) Unmarshal ¶
func (m *QueryMaxWithdraw) Unmarshal(dAtA []byte) error
func (*QueryMaxWithdraw) XXX_DiscardUnknown ¶
func (m *QueryMaxWithdraw) XXX_DiscardUnknown()
func (*QueryMaxWithdraw) XXX_Marshal ¶
func (m *QueryMaxWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxWithdraw) XXX_Merge ¶
func (m *QueryMaxWithdraw) XXX_Merge(src proto.Message)
func (*QueryMaxWithdraw) XXX_Size ¶
func (m *QueryMaxWithdraw) XXX_Size() int
func (*QueryMaxWithdraw) XXX_Unmarshal ¶
func (m *QueryMaxWithdraw) XXX_Unmarshal(b []byte) error
type QueryMaxWithdrawResponse ¶
type QueryMaxWithdrawResponse struct { // uTokens is the maximum amount of uTokens that can be withdrawn UTokens github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=uTokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"uTokens"` // Tokens is the equivalent of max uTokens converted to base tokens Tokens github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=tokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"tokens"` }
QueryMaxWithdrawResponse defines the response structure for the MaxWithdraw gRPC service handler.
func (*QueryMaxWithdrawResponse) Descriptor ¶
func (*QueryMaxWithdrawResponse) Descriptor() ([]byte, []int)
func (*QueryMaxWithdrawResponse) Marshal ¶
func (m *QueryMaxWithdrawResponse) Marshal() (dAtA []byte, err error)
func (*QueryMaxWithdrawResponse) MarshalTo ¶
func (m *QueryMaxWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxWithdrawResponse) MarshalToSizedBuffer ¶
func (m *QueryMaxWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxWithdrawResponse) ProtoMessage ¶
func (*QueryMaxWithdrawResponse) ProtoMessage()
func (*QueryMaxWithdrawResponse) Reset ¶
func (m *QueryMaxWithdrawResponse) Reset()
func (*QueryMaxWithdrawResponse) Size ¶
func (m *QueryMaxWithdrawResponse) Size() (n int)
func (*QueryMaxWithdrawResponse) String ¶
func (m *QueryMaxWithdrawResponse) String() string
func (*QueryMaxWithdrawResponse) Unmarshal ¶
func (m *QueryMaxWithdrawResponse) Unmarshal(dAtA []byte) error
func (*QueryMaxWithdrawResponse) XXX_DiscardUnknown ¶
func (m *QueryMaxWithdrawResponse) XXX_DiscardUnknown()
func (*QueryMaxWithdrawResponse) XXX_Marshal ¶
func (m *QueryMaxWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxWithdrawResponse) XXX_Merge ¶
func (m *QueryMaxWithdrawResponse) XXX_Merge(src proto.Message)
func (*QueryMaxWithdrawResponse) XXX_Size ¶
func (m *QueryMaxWithdrawResponse) XXX_Size() int
func (*QueryMaxWithdrawResponse) XXX_Unmarshal ¶
func (m *QueryMaxWithdrawResponse) XXX_Unmarshal(b []byte) error
type QueryParams ¶
type QueryParams struct { }
QueryParams defines the request structure for the Params gRPC service handler.
func (*QueryParams) Descriptor ¶
func (*QueryParams) Descriptor() ([]byte, []int)
func (*QueryParams) Marshal ¶
func (m *QueryParams) Marshal() (dAtA []byte, err error)
func (*QueryParams) MarshalToSizedBuffer ¶
func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParams) ProtoMessage ¶
func (*QueryParams) ProtoMessage()
func (*QueryParams) Reset ¶
func (m *QueryParams) Reset()
func (*QueryParams) Size ¶
func (m *QueryParams) Size() (n int)
func (*QueryParams) String ¶
func (m *QueryParams) String() string
func (*QueryParams) Unmarshal ¶
func (m *QueryParams) Unmarshal(dAtA []byte) error
func (*QueryParams) XXX_DiscardUnknown ¶
func (m *QueryParams) XXX_DiscardUnknown()
func (*QueryParams) XXX_Marshal ¶
func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParams) XXX_Merge ¶
func (m *QueryParams) XXX_Merge(src proto.Message)
func (*QueryParams) XXX_Size ¶
func (m *QueryParams) XXX_Size() int
func (*QueryParams) XXX_Unmarshal ¶
func (m *QueryParams) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response structure for the Params gRPC service handler.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryRegisteredTokens ¶
type QueryRegisteredTokens struct {
BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
}
QueryRegisteredTokens defines the request structure for the RegisteredTokens gRPC service handler.
func (*QueryRegisteredTokens) Descriptor ¶
func (*QueryRegisteredTokens) Descriptor() ([]byte, []int)
func (*QueryRegisteredTokens) Marshal ¶
func (m *QueryRegisteredTokens) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredTokens) MarshalTo ¶
func (m *QueryRegisteredTokens) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredTokens) MarshalToSizedBuffer ¶
func (m *QueryRegisteredTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredTokens) ProtoMessage ¶
func (*QueryRegisteredTokens) ProtoMessage()
func (*QueryRegisteredTokens) Reset ¶
func (m *QueryRegisteredTokens) Reset()
func (*QueryRegisteredTokens) Size ¶
func (m *QueryRegisteredTokens) Size() (n int)
func (*QueryRegisteredTokens) String ¶
func (m *QueryRegisteredTokens) String() string
func (*QueryRegisteredTokens) Unmarshal ¶
func (m *QueryRegisteredTokens) Unmarshal(dAtA []byte) error
func (*QueryRegisteredTokens) XXX_DiscardUnknown ¶
func (m *QueryRegisteredTokens) XXX_DiscardUnknown()
func (*QueryRegisteredTokens) XXX_Marshal ¶
func (m *QueryRegisteredTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredTokens) XXX_Merge ¶
func (m *QueryRegisteredTokens) XXX_Merge(src proto.Message)
func (*QueryRegisteredTokens) XXX_Size ¶
func (m *QueryRegisteredTokens) XXX_Size() int
func (*QueryRegisteredTokens) XXX_Unmarshal ¶
func (m *QueryRegisteredTokens) XXX_Unmarshal(b []byte) error
type QueryRegisteredTokensResponse ¶
type QueryRegisteredTokensResponse struct {
Registry []Token `protobuf:"bytes,1,rep,name=registry,proto3" json:"registry"`
}
QueryRegisteredTokensResponse defines the response structure for the RegisteredTokens gRPC service handler.
func (*QueryRegisteredTokensResponse) Descriptor ¶
func (*QueryRegisteredTokensResponse) Descriptor() ([]byte, []int)
func (*QueryRegisteredTokensResponse) Marshal ¶
func (m *QueryRegisteredTokensResponse) Marshal() (dAtA []byte, err error)
func (*QueryRegisteredTokensResponse) MarshalTo ¶
func (m *QueryRegisteredTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRegisteredTokensResponse) MarshalToSizedBuffer ¶
func (m *QueryRegisteredTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRegisteredTokensResponse) ProtoMessage ¶
func (*QueryRegisteredTokensResponse) ProtoMessage()
func (*QueryRegisteredTokensResponse) Reset ¶
func (m *QueryRegisteredTokensResponse) Reset()
func (*QueryRegisteredTokensResponse) Size ¶
func (m *QueryRegisteredTokensResponse) Size() (n int)
func (*QueryRegisteredTokensResponse) String ¶
func (m *QueryRegisteredTokensResponse) String() string
func (*QueryRegisteredTokensResponse) Unmarshal ¶
func (m *QueryRegisteredTokensResponse) Unmarshal(dAtA []byte) error
func (*QueryRegisteredTokensResponse) XXX_DiscardUnknown ¶
func (m *QueryRegisteredTokensResponse) XXX_DiscardUnknown()
func (*QueryRegisteredTokensResponse) XXX_Marshal ¶
func (m *QueryRegisteredTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRegisteredTokensResponse) XXX_Merge ¶
func (m *QueryRegisteredTokensResponse) XXX_Merge(src proto.Message)
func (*QueryRegisteredTokensResponse) XXX_Size ¶
func (m *QueryRegisteredTokensResponse) XXX_Size() int
func (*QueryRegisteredTokensResponse) XXX_Unmarshal ¶
func (m *QueryRegisteredTokensResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the x/leverage module. Params(context.Context, *QueryParams) (*QueryParamsResponse, error) // RegisteredTokens queries for all the registered tokens. RegisteredTokens(context.Context, *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error) // MarketSummary queries a base asset's current borrowing and supplying conditions. MarketSummary(context.Context, *QueryMarketSummary) (*QueryMarketSummaryResponse, error) // AccountBalances queries an account's current supply, collateral, and borrow positions. AccountBalances(context.Context, *QueryAccountBalances) (*QueryAccountBalancesResponse, error) // AccountSummary queries USD values representing an account's total positions and borrowing limits. It requires oracle prices to return successfully. AccountSummary(context.Context, *QueryAccountSummary) (*QueryAccountSummaryResponse, error) // LiquidationTargets queries a list of all borrower account addresses eligible for liquidation. LiquidationTargets(context.Context, *QueryLiquidationTargets) (*QueryLiquidationTargetsResponse, error) // BadDebts queries a list of borrow positions that have been marked for bad debt repayment. BadDebts(context.Context, *QueryBadDebts) (*QueryBadDebtsResponse, error) // MaxWithdraw queries the maximum amount of a given token an address can withdraw. MaxWithdraw(context.Context, *QueryMaxWithdraw) (*QueryMaxWithdrawResponse, error) // MaxBorrow queries the maximum amount of a given token an address can borrow. MaxBorrow(context.Context, *QueryMaxBorrow) (*QueryMaxBorrowResponse, error) // Inspect is the customizable inspector query. It returns a list of all borrowers, // starting from the highest borrowed value, filtered by any combination of: minimum // borrowed value (optionally of a specified token), minimum collateral value, minimum // progress toward liquidation threshold, and minimum LTV. Each account is displayed // with its address and borrowed/liquidation/collateral USD values, as well as its // actual token positions in human-readable symbol denoms instead of uTokens or ibc denoms. Inspect(context.Context, *QueryInspect) (*QueryInspectResponse, error) }
QueryServer is the server API for Query service.
type RiskInfo ¶
type RiskInfo struct { // Borrowed is account's borrowed value in USD. Borrowed float64 `protobuf:"fixed64,1,opt,name=Borrowed,proto3" json:"Borrowed,omitempty"` // Liquidation is account's liquidation threshold in USD. Liquidation float64 `protobuf:"fixed64,2,opt,name=Liquidation,proto3" json:"Liquidation,omitempty"` // Value is account's collateral value in USD. Value float64 `protobuf:"fixed64,3,opt,name=Value,proto3" json:"Value,omitempty"` }
RiskInfo defines a borrower's account health without requiring sdk.Dec formatting.
func (*RiskInfo) Descriptor ¶
func (*RiskInfo) MarshalToSizedBuffer ¶
func (*RiskInfo) ProtoMessage ¶
func (*RiskInfo) ProtoMessage()
func (*RiskInfo) XXX_DiscardUnknown ¶
func (m *RiskInfo) XXX_DiscardUnknown()
func (*RiskInfo) XXX_Marshal ¶
func (*RiskInfo) XXX_Unmarshal ¶
type Token ¶
type Token struct { // Base Denom is the denomination of the underlying base token. Must be the base // denom as registered in the Bank module (so IBC denom for IBC tokens). BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"` // Reserve Factor defines what portion of accrued interest goes to reserves // when this token is borrowed. // Valid values: 0-1. ReserveFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */ // Collateral Weight defines what portion of the total value of the asset // can contribute to a users borrowing power. If the collateral weight is // zero, using this asset as collateral against borrowing will be disabled. // Must be smaller than `liquidation_threshold`. // Valid values: 0-1. CollateralWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */ // Liquidation Threshold defines what amount of the total value of the // asset as a collateral can contribute to a user's liquidation threshold // (above which they become eligible for liquidation). // Must be bigger than `collateral_weight`. // Valid values: 0-1. // See also: min_close_factor. LiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 190-byte string literal not displayed */ // Base Borrow Rate defines the minimum interest rate for borrowing this // asset. // Valid values: 0-∞ BaseBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ // Kink Borrow Rate defines the interest rate for borrowing this // asset when supply utilization is equal to 'kink_utilization'. // Valid values: 0-∞ KinkBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ // Max Borrow Rate defines the interest rate for borrowing this // asset when supply utilization is at its maximum. // Valid values: 0-∞ MaxBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 165-byte string literal not displayed */ // Kink Utilization defines the supply utilization value where // the kink in the borrow interest rate function occurs. // Valid values: 0-1. KinkUtilization github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-byte string literal not displayed */ // Liquidation Incentive determines the portion of bonus collateral of // a token type liquidators receive as a liquidation reward. // Valid values: 0-1. LiquidationIncentive github_com_cosmos_cosmos_sdk_types.Dec `` /* 190-byte string literal not displayed */ // Symbol Denom is the human readable denomination of this token. SymbolDenom string `protobuf:"bytes,10,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty" yaml:"symbol_denom"` // Exponent is the power of ten by which to multiply, in order to convert // an amount of the token denoted in its symbol denom to the actual amount // of its base denom. Exponent uint32 `protobuf:"varint,11,opt,name=exponent,proto3" json:"exponent,omitempty" yaml:"exponent"` // Enable Msg Supply allows supplying for lending or collateral using this // token. `false` means that a token can no longer be supplied. // Note that withdrawing is always enabled. Disabling supply would // be one step in phasing out an asset type. EnableMsgSupply bool `` /* 135-byte string literal not displayed */ // Enable Msg Borrow allows borrowing of this token. Note that repaying is // always enabled. Disabling borrowing would be one step in phasing out an // asset type, but could also be used from the start for asset types meant // to be collateral only, like meTokens. EnableMsgBorrow bool `` /* 135-byte string literal not displayed */ // Blacklist should only be used to eliminate an asset completely. A blacklisted // asset is treated as though its oracle price is zero, and thus ignored by // calculations such as collateral value and borrow limit. Can still be repaid // or withdrawn, but not liquidated. A blacklisted token must have enable_msg_supply // and enable_msg_borrow set to false. Such tokens can be safely removed from the // oracle and price feeder as well. Blacklist bool `protobuf:"varint,14,opt,name=blacklist,proto3" json:"blacklist,omitempty"` // can be provided by a given token. 1.0 means that the token has no restriction. // 0.1 means maximum 10% of system's total collateral value can be provided by this token. // Valid values: 0-1. MaxCollateralShare github_com_cosmos_cosmos_sdk_types.Dec `` /* 186-byte string literal not displayed */ // Max Supply Utilization specifies the maximum supply utilization a token is // allowed to reach as a direct result of user borrowing. New borrows are not allowed when // the supply utilization is above `max_supply_utilization`. // supply_utilization(token) = total_borrowed(token) / total_supply(token) // Valid values: 0-1. MaxSupplyUtilization github_com_cosmos_cosmos_sdk_types.Dec `` /* 194-byte string literal not displayed */ // Min Collateral Liquidity specifies min limit for the following function: // collateral_liquidity(token) = available(token) / total_collateral(token) // Borrowing, collateralizing, or withdrawing assets is not allowed when the // result of such action invalidates min_collateral_liquidity. // Liquidity can only drop below this value due to interest or liquidations. // The goal is to assure that there is enough available (not borrowed) token to be available // for withdraw when there is a collateral liquidation and the liquidator needs to // withdraw uToken. // Valid values: 0 - inf MinCollateralLiquidity github_com_cosmos_cosmos_sdk_types.Dec `` /* 202-byte string literal not displayed */ // Max Supply is the maximum amount of tokens the protocol can hold. // Adding more supply of the given token to the protocol will return an error. // Must be a non negative value. 0 means that there is no limit. // To mark a token as not valid for supply, `msg_supply` must be set to false. MaxSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 147-byte string literal not displayed */ // Historic Medians is the number of median historic prices to request from // the oracle module when evaluating new borrow positions containing this token. // All MsgBorrow, MsgWithdraw, and MsgDecollateralize must result in healthy // borrow positions under both current and historic prices. The default value of // zero for this field causes current price to be used in those calculations // for the affected Token. // The time span covered by the historic median will be: // oracle.Params.median_stamp_period * oracle.Params.historic_stamp_period * historic_medians. HistoricMedians uint32 `` /* 132-byte string literal not displayed */ }
Token defines a token, along with its metadata and parameters, in the Umee capital facility that can be supplied and borrowed. See https://github.com/umee-network/umee/blob/main/docs/design_docs/010-market-params.md for more details.
func (*Token) Descriptor ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AccountBalances ¶
func (*UnimplementedQueryServer) AccountBalances(ctx context.Context, req *QueryAccountBalances) (*QueryAccountBalancesResponse, error)
func (*UnimplementedQueryServer) AccountSummary ¶
func (*UnimplementedQueryServer) AccountSummary(ctx context.Context, req *QueryAccountSummary) (*QueryAccountSummaryResponse, error)
func (*UnimplementedQueryServer) BadDebts ¶
func (*UnimplementedQueryServer) BadDebts(ctx context.Context, req *QueryBadDebts) (*QueryBadDebtsResponse, error)
func (*UnimplementedQueryServer) Inspect ¶
func (*UnimplementedQueryServer) Inspect(ctx context.Context, req *QueryInspect) (*QueryInspectResponse, error)
func (*UnimplementedQueryServer) LiquidationTargets ¶
func (*UnimplementedQueryServer) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargets) (*QueryLiquidationTargetsResponse, error)
func (*UnimplementedQueryServer) MarketSummary ¶
func (*UnimplementedQueryServer) MarketSummary(ctx context.Context, req *QueryMarketSummary) (*QueryMarketSummaryResponse, error)
func (*UnimplementedQueryServer) MaxBorrow ¶
func (*UnimplementedQueryServer) MaxBorrow(ctx context.Context, req *QueryMaxBorrow) (*QueryMaxBorrowResponse, error)
func (*UnimplementedQueryServer) MaxWithdraw ¶
func (*UnimplementedQueryServer) MaxWithdraw(ctx context.Context, req *QueryMaxWithdraw) (*QueryMaxWithdrawResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RegisteredTokens ¶
func (*UnimplementedQueryServer) RegisteredTokens(ctx context.Context, req *QueryRegisteredTokens) (*QueryRegisteredTokensResponse, error)