Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type BalanceBorrowed
- func (*BalanceBorrowed) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceBorrowed) GetPercentage() string
- func (x *BalanceBorrowed) GetUsdAmount() string
- func (*BalanceBorrowed) ProtoMessage()
- func (x *BalanceBorrowed) ProtoReflect() protoreflect.Message
- func (x *BalanceBorrowed) Reset()
- func (x *BalanceBorrowed) String() string
- type Debt
- func (*Debt) Descriptor() ([]byte, []int)deprecated
- func (x *Debt) GetAddress() string
- func (x *Debt) GetBorrowTime() uint64
- func (x *Debt) GetBorrowed() string
- func (x *Debt) GetInterestPaid() string
- func (x *Debt) GetInterestStacked() string
- func (x *Debt) GetLastInterestCalcBlock() uint64
- func (x *Debt) GetLastInterestCalcTime() uint64
- func (*Debt) ProtoMessage()
- func (x *Debt) ProtoReflect() protoreflect.Message
- func (x *Debt) Reset()
- func (x *Debt) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetDebtList() []*Debt
- func (x *GenesisState) GetInterestList() []*InterestBlock
- func (x *GenesisState) GetParams() *Params
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type InterestBlock
- func (*InterestBlock) Descriptor() ([]byte, []int)deprecated
- func (x *InterestBlock) GetBlockHeight() uint64
- func (x *InterestBlock) GetBlockTime() int64
- func (x *InterestBlock) GetInterestRate() string
- func (*InterestBlock) ProtoMessage()
- func (x *InterestBlock) ProtoReflect() protoreflect.Message
- func (x *InterestBlock) Reset()
- func (x *InterestBlock) String() string
- type LegacyInterestBlock
- func (*LegacyInterestBlock) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyInterestBlock) GetBlockTime() int64
- func (x *LegacyInterestBlock) GetInterestRate() string
- func (*LegacyInterestBlock) ProtoMessage()
- func (x *LegacyInterestBlock) ProtoReflect() protoreflect.Message
- func (x *LegacyInterestBlock) Reset()
- func (x *LegacyInterestBlock) String() string
- type LegacyParams
- func (*LegacyParams) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyParams) GetDepositDenom() string
- func (x *LegacyParams) GetEpochLength() int64
- func (x *LegacyParams) GetHealthGainFactor() string
- func (x *LegacyParams) GetInterestRate() string
- func (x *LegacyParams) GetInterestRateDecrease() string
- func (x *LegacyParams) GetInterestRateIncrease() string
- func (x *LegacyParams) GetInterestRateMax() string
- func (x *LegacyParams) GetInterestRateMin() string
- func (x *LegacyParams) GetRedemptionRate() string
- func (x *LegacyParams) GetTotalValue() string
- func (*LegacyParams) ProtoMessage()
- func (x *LegacyParams) ProtoReflect() protoreflect.Message
- func (x *LegacyParams) Reset()
- func (x *LegacyParams) String() string
- type MsgBond
- type MsgBondResponse
- type MsgClient
- type MsgServer
- type MsgUnbond
- type MsgUnbondResponse
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetDepositDenom() string
- func (x *Params) GetEpochLength() int64
- func (x *Params) GetHealthGainFactor() string
- func (x *Params) GetInterestRate() string
- func (x *Params) GetInterestRateDecrease() string
- func (x *Params) GetInterestRateIncrease() string
- func (x *Params) GetInterestRateMax() string
- func (x *Params) GetInterestRateMin() string
- func (x *Params) GetMaxLeverageRatio() string
- func (x *Params) GetRedemptionRate() string
- func (x *Params) GetTotalValue() string
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryBorrowRatioRequest
- type QueryBorrowRatioResponse
- func (*QueryBorrowRatioResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBorrowRatioResponse) GetBorrowRatio() string
- func (x *QueryBorrowRatioResponse) GetTotalBorrow() string
- func (x *QueryBorrowRatioResponse) GetTotalDeposit() string
- func (*QueryBorrowRatioResponse) ProtoMessage()
- func (x *QueryBorrowRatioResponse) ProtoReflect() protoreflect.Message
- func (x *QueryBorrowRatioResponse) Reset()
- func (x *QueryBorrowRatioResponse) String() string
- type QueryClient
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
This section is empty.
Variables ¶
var File_elys_stablestake_debt_proto protoreflect.FileDescriptor
var File_elys_stablestake_genesis_proto protoreflect.FileDescriptor
var File_elys_stablestake_params_proto protoreflect.FileDescriptor
var File_elys_stablestake_query_proto protoreflect.FileDescriptor
var File_elys_stablestake_tx_proto protoreflect.FileDescriptor
var File_elys_stablestake_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "elys.stablestake.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Bond", Handler: _Msg_Bond_Handler, }, { MethodName: "Unbond", Handler: _Msg_Unbond_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "elys/stablestake/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "elys.stablestake.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "BorrowRatio", Handler: _Query_BorrowRatio_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "elys/stablestake/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type BalanceBorrowed ¶
type BalanceBorrowed struct { UsdAmount string `protobuf:"bytes,1,opt,name=usd_amount,json=usdAmount,proto3" json:"usd_amount,omitempty"` Percentage string `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
func (*BalanceBorrowed) Descriptor
deprecated
func (*BalanceBorrowed) Descriptor() ([]byte, []int)
Deprecated: Use BalanceBorrowed.ProtoReflect.Descriptor instead.
func (*BalanceBorrowed) GetPercentage ¶
func (x *BalanceBorrowed) GetPercentage() string
func (*BalanceBorrowed) GetUsdAmount ¶
func (x *BalanceBorrowed) GetUsdAmount() string
func (*BalanceBorrowed) ProtoMessage ¶
func (*BalanceBorrowed) ProtoMessage()
func (*BalanceBorrowed) ProtoReflect ¶
func (x *BalanceBorrowed) ProtoReflect() protoreflect.Message
func (*BalanceBorrowed) Reset ¶
func (x *BalanceBorrowed) Reset()
func (*BalanceBorrowed) String ¶
func (x *BalanceBorrowed) String() string
type Debt ¶
type Debt struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Borrowed string `protobuf:"bytes,2,opt,name=borrowed,proto3" json:"borrowed,omitempty"` InterestPaid string `protobuf:"bytes,3,opt,name=interest_paid,json=interestPaid,proto3" json:"interest_paid,omitempty"` InterestStacked string `protobuf:"bytes,4,opt,name=interest_stacked,json=interestStacked,proto3" json:"interest_stacked,omitempty"` BorrowTime uint64 `protobuf:"varint,5,opt,name=borrow_time,json=borrowTime,proto3" json:"borrow_time,omitempty"` LastInterestCalcTime uint64 `` /* 126-byte string literal not displayed */ LastInterestCalcBlock uint64 `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Debt) Descriptor
deprecated
func (*Debt) GetAddress ¶
func (*Debt) GetBorrowTime ¶
func (*Debt) GetBorrowed ¶
func (*Debt) GetInterestPaid ¶
func (*Debt) GetInterestStacked ¶
func (*Debt) GetLastInterestCalcBlock ¶
func (*Debt) GetLastInterestCalcTime ¶
func (*Debt) ProtoMessage ¶
func (*Debt) ProtoMessage()
func (*Debt) ProtoReflect ¶
func (x *Debt) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` DebtList []*Debt `protobuf:"bytes,2,rep,name=debt_list,json=debtList,proto3" json:"debt_list,omitempty"` InterestList []*InterestBlock `protobuf:"bytes,3,rep,name=interest_list,json=interestList,proto3" json:"interest_list,omitempty"` // contains filtered or unexported fields }
GenesisState defines the stablestake module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetDebtList ¶
func (x *GenesisState) GetDebtList() []*Debt
func (*GenesisState) GetInterestList ¶
func (x *GenesisState) GetInterestList() []*InterestBlock
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type InterestBlock ¶
type InterestBlock struct { InterestRate string `protobuf:"bytes,1,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"` BlockTime int64 `protobuf:"varint,2,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // contains filtered or unexported fields }
func (*InterestBlock) Descriptor
deprecated
func (*InterestBlock) Descriptor() ([]byte, []int)
Deprecated: Use InterestBlock.ProtoReflect.Descriptor instead.
func (*InterestBlock) GetBlockHeight ¶
func (x *InterestBlock) GetBlockHeight() uint64
func (*InterestBlock) GetBlockTime ¶
func (x *InterestBlock) GetBlockTime() int64
func (*InterestBlock) GetInterestRate ¶
func (x *InterestBlock) GetInterestRate() string
func (*InterestBlock) ProtoMessage ¶
func (*InterestBlock) ProtoMessage()
func (*InterestBlock) ProtoReflect ¶
func (x *InterestBlock) ProtoReflect() protoreflect.Message
func (*InterestBlock) Reset ¶
func (x *InterestBlock) Reset()
func (*InterestBlock) String ¶
func (x *InterestBlock) String() string
type LegacyInterestBlock ¶
type LegacyInterestBlock struct { InterestRate string `protobuf:"bytes,1,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"` BlockTime int64 `protobuf:"varint,2,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` // contains filtered or unexported fields }
func (*LegacyInterestBlock) Descriptor
deprecated
func (*LegacyInterestBlock) Descriptor() ([]byte, []int)
Deprecated: Use LegacyInterestBlock.ProtoReflect.Descriptor instead.
func (*LegacyInterestBlock) GetBlockTime ¶
func (x *LegacyInterestBlock) GetBlockTime() int64
func (*LegacyInterestBlock) GetInterestRate ¶
func (x *LegacyInterestBlock) GetInterestRate() string
func (*LegacyInterestBlock) ProtoMessage ¶
func (*LegacyInterestBlock) ProtoMessage()
func (*LegacyInterestBlock) ProtoReflect ¶
func (x *LegacyInterestBlock) ProtoReflect() protoreflect.Message
func (*LegacyInterestBlock) Reset ¶
func (x *LegacyInterestBlock) Reset()
func (*LegacyInterestBlock) String ¶
func (x *LegacyInterestBlock) String() string
type LegacyParams ¶
type LegacyParams struct { DepositDenom string `protobuf:"bytes,1,opt,name=deposit_denom,json=depositDenom,proto3" json:"deposit_denom,omitempty"` RedemptionRate string `protobuf:"bytes,2,opt,name=redemption_rate,json=redemptionRate,proto3" json:"redemption_rate,omitempty"` EpochLength int64 `protobuf:"varint,3,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` InterestRate string `protobuf:"bytes,4,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"` InterestRateMax string `protobuf:"bytes,5,opt,name=interest_rate_max,json=interestRateMax,proto3" json:"interest_rate_max,omitempty"` InterestRateMin string `protobuf:"bytes,6,opt,name=interest_rate_min,json=interestRateMin,proto3" json:"interest_rate_min,omitempty"` InterestRateIncrease string `protobuf:"bytes,7,opt,name=interest_rate_increase,json=interestRateIncrease,proto3" json:"interest_rate_increase,omitempty"` InterestRateDecrease string `protobuf:"bytes,8,opt,name=interest_rate_decrease,json=interestRateDecrease,proto3" json:"interest_rate_decrease,omitempty"` HealthGainFactor string `protobuf:"bytes,9,opt,name=health_gain_factor,json=healthGainFactor,proto3" json:"health_gain_factor,omitempty"` TotalValue string `protobuf:"bytes,10,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` // contains filtered or unexported fields }
func (*LegacyParams) Descriptor
deprecated
func (*LegacyParams) Descriptor() ([]byte, []int)
Deprecated: Use LegacyParams.ProtoReflect.Descriptor instead.
func (*LegacyParams) GetDepositDenom ¶
func (x *LegacyParams) GetDepositDenom() string
func (*LegacyParams) GetEpochLength ¶
func (x *LegacyParams) GetEpochLength() int64
func (*LegacyParams) GetHealthGainFactor ¶
func (x *LegacyParams) GetHealthGainFactor() string
func (*LegacyParams) GetInterestRate ¶
func (x *LegacyParams) GetInterestRate() string
func (*LegacyParams) GetInterestRateDecrease ¶
func (x *LegacyParams) GetInterestRateDecrease() string
func (*LegacyParams) GetInterestRateIncrease ¶
func (x *LegacyParams) GetInterestRateIncrease() string
func (*LegacyParams) GetInterestRateMax ¶
func (x *LegacyParams) GetInterestRateMax() string
func (*LegacyParams) GetInterestRateMin ¶
func (x *LegacyParams) GetInterestRateMin() string
func (*LegacyParams) GetRedemptionRate ¶
func (x *LegacyParams) GetRedemptionRate() string
func (*LegacyParams) GetTotalValue ¶
func (x *LegacyParams) GetTotalValue() string
func (*LegacyParams) ProtoMessage ¶
func (*LegacyParams) ProtoMessage()
func (*LegacyParams) ProtoReflect ¶
func (x *LegacyParams) ProtoReflect() protoreflect.Message
func (*LegacyParams) Reset ¶
func (x *LegacyParams) Reset()
func (*LegacyParams) String ¶
func (x *LegacyParams) String() string
type MsgBond ¶
type MsgBond struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*MsgBond) Descriptor
deprecated
func (*MsgBond) GetCreator ¶
func (*MsgBond) ProtoMessage ¶
func (*MsgBond) ProtoMessage()
func (*MsgBond) ProtoReflect ¶
func (x *MsgBond) ProtoReflect() protoreflect.Message
type MsgBondResponse ¶
type MsgBondResponse struct {
// contains filtered or unexported fields
}
func (*MsgBondResponse) Descriptor
deprecated
func (*MsgBondResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgBondResponse.ProtoReflect.Descriptor instead.
func (*MsgBondResponse) ProtoMessage ¶
func (*MsgBondResponse) ProtoMessage()
func (*MsgBondResponse) ProtoReflect ¶
func (x *MsgBondResponse) ProtoReflect() protoreflect.Message
func (*MsgBondResponse) Reset ¶
func (x *MsgBondResponse) Reset()
func (*MsgBondResponse) String ¶
func (x *MsgBondResponse) String() string
type MsgClient ¶
type MsgClient interface { Bond(ctx context.Context, in *MsgBond, opts ...grpc.CallOption) (*MsgBondResponse, error) Unbond(ctx context.Context, in *MsgUnbond, opts ...grpc.CallOption) (*MsgUnbondResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { Bond(context.Context, *MsgBond) (*MsgBondResponse, error) Unbond(context.Context, *MsgUnbond) (*MsgUnbondResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUnbond ¶
type MsgUnbond struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*MsgUnbond) Descriptor
deprecated
func (*MsgUnbond) GetCreator ¶
func (*MsgUnbond) ProtoMessage ¶
func (*MsgUnbond) ProtoMessage()
func (*MsgUnbond) ProtoReflect ¶
func (x *MsgUnbond) ProtoReflect() protoreflect.Message
type MsgUnbondResponse ¶
type MsgUnbondResponse struct {
// contains filtered or unexported fields
}
func (*MsgUnbondResponse) Descriptor
deprecated
func (*MsgUnbondResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUnbondResponse.ProtoReflect.Descriptor instead.
func (*MsgUnbondResponse) ProtoMessage ¶
func (*MsgUnbondResponse) ProtoMessage()
func (*MsgUnbondResponse) ProtoReflect ¶
func (x *MsgUnbondResponse) ProtoReflect() protoreflect.Message
func (*MsgUnbondResponse) Reset ¶
func (x *MsgUnbondResponse) Reset()
func (*MsgUnbondResponse) String ¶
func (x *MsgUnbondResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct { DepositDenom string `protobuf:"bytes,1,opt,name=deposit_denom,json=depositDenom,proto3" json:"deposit_denom,omitempty"` RedemptionRate string `protobuf:"bytes,2,opt,name=redemption_rate,json=redemptionRate,proto3" json:"redemption_rate,omitempty"` EpochLength int64 `protobuf:"varint,3,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` InterestRate string `protobuf:"bytes,4,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"` InterestRateMax string `protobuf:"bytes,5,opt,name=interest_rate_max,json=interestRateMax,proto3" json:"interest_rate_max,omitempty"` InterestRateMin string `protobuf:"bytes,6,opt,name=interest_rate_min,json=interestRateMin,proto3" json:"interest_rate_min,omitempty"` InterestRateIncrease string `protobuf:"bytes,7,opt,name=interest_rate_increase,json=interestRateIncrease,proto3" json:"interest_rate_increase,omitempty"` InterestRateDecrease string `protobuf:"bytes,8,opt,name=interest_rate_decrease,json=interestRateDecrease,proto3" json:"interest_rate_decrease,omitempty"` HealthGainFactor string `protobuf:"bytes,9,opt,name=health_gain_factor,json=healthGainFactor,proto3" json:"health_gain_factor,omitempty"` TotalValue string `protobuf:"bytes,10,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` MaxLeverageRatio string `protobuf:"bytes,11,opt,name=max_leverage_ratio,json=maxLeverageRatio,proto3" json:"max_leverage_ratio,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) GetDepositDenom ¶
func (*Params) GetEpochLength ¶
func (*Params) GetHealthGainFactor ¶
func (*Params) GetInterestRate ¶
func (*Params) GetInterestRateDecrease ¶
func (*Params) GetInterestRateIncrease ¶
func (*Params) GetInterestRateMax ¶
func (*Params) GetInterestRateMin ¶
func (*Params) GetMaxLeverageRatio ¶
func (*Params) GetRedemptionRate ¶
func (*Params) GetTotalValue ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryBorrowRatioRequest ¶
type QueryBorrowRatioRequest struct {
// contains filtered or unexported fields
}
QueryBorrowRatioRequest is request type for the Query/BorrowRatio RPC method.
func (*QueryBorrowRatioRequest) Descriptor
deprecated
func (*QueryBorrowRatioRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryBorrowRatioRequest.ProtoReflect.Descriptor instead.
func (*QueryBorrowRatioRequest) ProtoMessage ¶
func (*QueryBorrowRatioRequest) ProtoMessage()
func (*QueryBorrowRatioRequest) ProtoReflect ¶
func (x *QueryBorrowRatioRequest) ProtoReflect() protoreflect.Message
func (*QueryBorrowRatioRequest) Reset ¶
func (x *QueryBorrowRatioRequest) Reset()
func (*QueryBorrowRatioRequest) String ¶
func (x *QueryBorrowRatioRequest) String() string
type QueryBorrowRatioResponse ¶
type QueryBorrowRatioResponse struct { TotalDeposit string `protobuf:"bytes,1,opt,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit,omitempty"` TotalBorrow string `protobuf:"bytes,2,opt,name=total_borrow,json=totalBorrow,proto3" json:"total_borrow,omitempty"` BorrowRatio string `protobuf:"bytes,3,opt,name=borrow_ratio,json=borrowRatio,proto3" json:"borrow_ratio,omitempty"` // contains filtered or unexported fields }
QueryBorrowRatioResponse is response type for the Query/BorrowRatio RPC method.
func (*QueryBorrowRatioResponse) Descriptor
deprecated
func (*QueryBorrowRatioResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryBorrowRatioResponse.ProtoReflect.Descriptor instead.
func (*QueryBorrowRatioResponse) GetBorrowRatio ¶
func (x *QueryBorrowRatioResponse) GetBorrowRatio() string
func (*QueryBorrowRatioResponse) GetTotalBorrow ¶
func (x *QueryBorrowRatioResponse) GetTotalBorrow() string
func (*QueryBorrowRatioResponse) GetTotalDeposit ¶
func (x *QueryBorrowRatioResponse) GetTotalDeposit() string
func (*QueryBorrowRatioResponse) ProtoMessage ¶
func (*QueryBorrowRatioResponse) ProtoMessage()
func (*QueryBorrowRatioResponse) ProtoReflect ¶
func (x *QueryBorrowRatioResponse) ProtoReflect() protoreflect.Message
func (*QueryBorrowRatioResponse) Reset ¶
func (x *QueryBorrowRatioResponse) Reset()
func (*QueryBorrowRatioResponse) String ¶
func (x *QueryBorrowRatioResponse) String() string
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // BorrowRatio queries the borrow ratio compared to total deposit BorrowRatio(ctx context.Context, in *QueryBorrowRatioRequest, opts ...grpc.CallOption) (*QueryBorrowRatioResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // BorrowRatio queries the borrow ratio compared to total deposit BorrowRatio(context.Context, *QueryBorrowRatioRequest) (*QueryBorrowRatioResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Bond ¶
func (UnimplementedMsgServer) Bond(context.Context, *MsgBond) (*MsgBondResponse, error)
func (UnimplementedMsgServer) Unbond ¶
func (UnimplementedMsgServer) Unbond(context.Context, *MsgUnbond) (*MsgUnbondResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) BorrowRatio ¶
func (UnimplementedQueryServer) BorrowRatio(context.Context, *QueryBorrowRatioRequest) (*QueryBorrowRatioResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.