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 AddPool
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetAddressWhitelist() []string
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetPoolList() []*Pool
- func (x *GenesisState) GetPositionList() []*Position
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type IsWhitelistedRequest
- func (*IsWhitelistedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsWhitelistedRequest) GetAddress() string
- func (*IsWhitelistedRequest) ProtoMessage()
- func (x *IsWhitelistedRequest) ProtoReflect() protoreflect.Message
- func (x *IsWhitelistedRequest) Reset()
- func (x *IsWhitelistedRequest) String() string
- type IsWhitelistedResponse
- func (*IsWhitelistedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsWhitelistedResponse) GetAddress() string
- func (x *IsWhitelistedResponse) GetIsWhitelisted() bool
- func (*IsWhitelistedResponse) ProtoMessage()
- func (x *IsWhitelistedResponse) ProtoReflect() protoreflect.Message
- func (x *IsWhitelistedResponse) Reset()
- func (x *IsWhitelistedResponse) String() string
- type LegacyParams
- func (*LegacyParams) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyParams) GetEpochLength() int64
- func (x *LegacyParams) GetLeverageMax() string
- func (x *LegacyParams) GetMaxOpenPositions() int64
- func (x *LegacyParams) GetPoolOpenThreshold() string
- func (x *LegacyParams) GetSafetyFactor() string
- func (x *LegacyParams) GetWhitelistingEnabled() bool
- func (*LegacyParams) ProtoMessage()
- func (x *LegacyParams) ProtoReflect() protoreflect.Message
- func (x *LegacyParams) Reset()
- func (x *LegacyParams) String() string
- type LegacyPool
- func (*LegacyPool) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyPool) GetAmmPoolId() uint64
- func (x *LegacyPool) GetHealth() string
- func (x *LegacyPool) GetLeverageMax() string
- func (x *LegacyPool) GetLeveragedLpAmount() string
- func (*LegacyPool) ProtoMessage()
- func (x *LegacyPool) ProtoReflect() protoreflect.Message
- func (x *LegacyPool) Reset()
- func (x *LegacyPool) String() string
- type LegacyPosition
- func (*LegacyPosition) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyPosition) GetAddress() string
- func (x *LegacyPosition) GetAmmPoolId() uint64
- func (x *LegacyPosition) GetCollateral() *v1beta1.Coin
- func (x *LegacyPosition) GetId() uint64
- func (x *LegacyPosition) GetLeverage() string
- func (x *LegacyPosition) GetLeveragedLpAmount() string
- func (x *LegacyPosition) GetLiabilities() string
- func (x *LegacyPosition) GetPositionHealth() string
- func (x *LegacyPosition) GetStopLossPrice() string
- func (*LegacyPosition) ProtoMessage()
- func (x *LegacyPosition) ProtoReflect() protoreflect.Message
- func (x *LegacyPosition) Reset()
- func (x *LegacyPosition) String() string
- type MsgAddPool
- type MsgAddPoolResponse
- type MsgClaimRewards
- func (*MsgClaimRewards) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClaimRewards) GetIds() []uint64
- func (x *MsgClaimRewards) GetSender() string
- func (*MsgClaimRewards) ProtoMessage()
- func (x *MsgClaimRewards) ProtoReflect() protoreflect.Message
- func (x *MsgClaimRewards) Reset()
- func (x *MsgClaimRewards) String() string
- type MsgClaimRewardsResponse
- type MsgClient
- type MsgClose
- func (*MsgClose) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClose) GetCreator() string
- func (x *MsgClose) GetId() uint64
- func (x *MsgClose) GetLpAmount() string
- func (*MsgClose) ProtoMessage()
- func (x *MsgClose) ProtoReflect() protoreflect.Message
- func (x *MsgClose) Reset()
- func (x *MsgClose) String() string
- type MsgClosePositions
- func (*MsgClosePositions) Descriptor() ([]byte, []int)deprecated
- func (x *MsgClosePositions) GetCreator() string
- func (x *MsgClosePositions) GetLiquidate() []*PositionRequest
- func (x *MsgClosePositions) GetStopLoss() []*PositionRequest
- func (*MsgClosePositions) ProtoMessage()
- func (x *MsgClosePositions) ProtoReflect() protoreflect.Message
- func (x *MsgClosePositions) Reset()
- func (x *MsgClosePositions) String() string
- type MsgClosePositionsResponse
- type MsgCloseResponse
- type MsgDewhitelist
- func (*MsgDewhitelist) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDewhitelist) GetAuthority() string
- func (x *MsgDewhitelist) GetWhitelistedAddress() string
- func (*MsgDewhitelist) ProtoMessage()
- func (x *MsgDewhitelist) ProtoReflect() protoreflect.Message
- func (x *MsgDewhitelist) Reset()
- func (x *MsgDewhitelist) String() string
- type MsgDewhitelistResponse
- type MsgOpen
- func (*MsgOpen) Descriptor() ([]byte, []int)deprecated
- func (x *MsgOpen) GetAmmPoolId() uint64
- func (x *MsgOpen) GetCollateralAmount() string
- func (x *MsgOpen) GetCollateralAsset() string
- func (x *MsgOpen) GetCreator() string
- func (x *MsgOpen) GetLeverage() string
- func (x *MsgOpen) GetStopLossPrice() string
- func (*MsgOpen) ProtoMessage()
- func (x *MsgOpen) ProtoReflect() protoreflect.Message
- func (x *MsgOpen) Reset()
- func (x *MsgOpen) String() string
- type MsgOpenResponse
- type MsgRemovePool
- func (*MsgRemovePool) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRemovePool) GetAuthority() string
- func (x *MsgRemovePool) GetId() uint64
- func (*MsgRemovePool) ProtoMessage()
- func (x *MsgRemovePool) ProtoReflect() protoreflect.Message
- func (x *MsgRemovePool) Reset()
- func (x *MsgRemovePool) String() string
- type MsgRemovePoolResponse
- type MsgServer
- 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 MsgUpdateStopLoss
- func (*MsgUpdateStopLoss) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateStopLoss) GetCreator() string
- func (x *MsgUpdateStopLoss) GetPosition() uint64
- func (x *MsgUpdateStopLoss) GetPrice() string
- func (*MsgUpdateStopLoss) ProtoMessage()
- func (x *MsgUpdateStopLoss) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateStopLoss) Reset()
- func (x *MsgUpdateStopLoss) String() string
- type MsgUpdateStopLossResponse
- type MsgWhitelist
- func (*MsgWhitelist) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWhitelist) GetAuthority() string
- func (x *MsgWhitelist) GetWhitelistedAddress() string
- func (*MsgWhitelist) ProtoMessage()
- func (x *MsgWhitelist) ProtoReflect() protoreflect.Message
- func (x *MsgWhitelist) Reset()
- func (x *MsgWhitelist) String() string
- type MsgWhitelistResponse
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetEpochLength() int64
- func (x *Params) GetFallbackEnabled() bool
- func (x *Params) GetLeverageMax() string
- func (x *Params) GetMaxOpenPositions() int64
- func (x *Params) GetNumberPerBlock() int64
- func (x *Params) GetPoolOpenThreshold() string
- func (x *Params) GetSafetyFactor() string
- func (x *Params) GetWhitelistingEnabled() bool
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type ParamsRequest
- type ParamsResponse
- type Pool
- func (*Pool) Descriptor() ([]byte, []int)deprecated
- func (x *Pool) GetAmmPoolId() uint64
- func (x *Pool) GetHealth() string
- func (x *Pool) GetLeverageMax() string
- func (x *Pool) GetLeveragedLpAmount() string
- func (x *Pool) GetMaxLeveragelpRatio() string
- func (*Pool) ProtoMessage()
- func (x *Pool) ProtoReflect() protoreflect.Message
- func (x *Pool) Reset()
- func (x *Pool) String() string
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetAddress() string
- func (x *Position) GetAmmPoolId() uint64
- func (x *Position) GetCollateral() *v1beta1.Coin
- func (x *Position) GetId() uint64
- func (x *Position) GetLeveragedLpAmount() string
- func (x *Position) GetLiabilities() string
- func (x *Position) GetPositionHealth() string
- func (x *Position) GetStopLossPrice() string
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- type PositionAndInterest
- func (*PositionAndInterest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionAndInterest) GetInterestRateHour() string
- func (x *PositionAndInterest) GetInterestRateHourUsd() string
- func (x *PositionAndInterest) GetPosition() *QueryPosition
- func (*PositionAndInterest) ProtoMessage()
- func (x *PositionAndInterest) ProtoReflect() protoreflect.Message
- func (x *PositionAndInterest) Reset()
- func (x *PositionAndInterest) String() string
- type PositionRequest
- func (*PositionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionRequest) GetAddress() string
- func (x *PositionRequest) GetId() uint64
- func (*PositionRequest) ProtoMessage()
- func (x *PositionRequest) ProtoReflect() protoreflect.Message
- func (x *PositionRequest) Reset()
- func (x *PositionRequest) String() string
- type PositionResponse
- func (*PositionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PositionResponse) GetLockedLpToken() string
- func (x *PositionResponse) GetPosition() *QueryPosition
- func (*PositionResponse) ProtoMessage()
- func (x *PositionResponse) ProtoReflect() protoreflect.Message
- func (x *PositionResponse) Reset()
- func (x *PositionResponse) String() string
- type PositionsByPoolRequest
- func (*PositionsByPoolRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsByPoolRequest) GetAmmPoolId() uint64
- func (x *PositionsByPoolRequest) GetPagination() *v1beta1.PageRequest
- func (*PositionsByPoolRequest) ProtoMessage()
- func (x *PositionsByPoolRequest) ProtoReflect() protoreflect.Message
- func (x *PositionsByPoolRequest) Reset()
- func (x *PositionsByPoolRequest) String() string
- type PositionsByPoolResponse
- func (*PositionsByPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsByPoolResponse) GetPagination() *v1beta1.PageResponse
- func (x *PositionsByPoolResponse) GetPositions() []*QueryPosition
- func (*PositionsByPoolResponse) ProtoMessage()
- func (x *PositionsByPoolResponse) ProtoReflect() protoreflect.Message
- func (x *PositionsByPoolResponse) Reset()
- func (x *PositionsByPoolResponse) String() string
- type PositionsForAddressRequest
- func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsForAddressRequest) GetAddress() string
- func (x *PositionsForAddressRequest) GetPagination() *v1beta1.PageRequest
- func (*PositionsForAddressRequest) ProtoMessage()
- func (x *PositionsForAddressRequest) ProtoReflect() protoreflect.Message
- func (x *PositionsForAddressRequest) Reset()
- func (x *PositionsForAddressRequest) String() string
- type PositionsForAddressResponse
- func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsForAddressResponse) GetPagination() *v1beta1.PageResponse
- func (x *PositionsForAddressResponse) GetPositions() []*PositionAndInterest
- func (*PositionsForAddressResponse) ProtoMessage()
- func (x *PositionsForAddressResponse) ProtoReflect() protoreflect.Message
- func (x *PositionsForAddressResponse) Reset()
- func (x *PositionsForAddressResponse) String() string
- type PositionsRequest
- func (*PositionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsRequest) GetPagination() *v1beta1.PageRequest
- func (*PositionsRequest) ProtoMessage()
- func (x *PositionsRequest) ProtoReflect() protoreflect.Message
- func (x *PositionsRequest) Reset()
- func (x *PositionsRequest) String() string
- type PositionsResponse
- func (*PositionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PositionsResponse) GetPagination() *v1beta1.PageResponse
- func (x *PositionsResponse) GetPositions() []*QueryPosition
- func (*PositionsResponse) ProtoMessage()
- func (x *PositionsResponse) ProtoReflect() protoreflect.Message
- func (x *PositionsResponse) Reset()
- func (x *PositionsResponse) String() string
- type QueryAllPoolRequest
- func (*QueryAllPoolRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllPoolRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAllPoolRequest) ProtoMessage()
- func (x *QueryAllPoolRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllPoolRequest) Reset()
- func (x *QueryAllPoolRequest) String() string
- type QueryAllPoolResponse
- func (*QueryAllPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllPoolResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryAllPoolResponse) GetPool() []*Pool
- func (*QueryAllPoolResponse) ProtoMessage()
- func (x *QueryAllPoolResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllPoolResponse) Reset()
- func (x *QueryAllPoolResponse) String() string
- type QueryClient
- type QueryCloseEstRequest
- func (*QueryCloseEstRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCloseEstRequest) GetId() uint64
- func (x *QueryCloseEstRequest) GetLpAmount() string
- func (x *QueryCloseEstRequest) GetOwner() string
- func (*QueryCloseEstRequest) ProtoMessage()
- func (x *QueryCloseEstRequest) ProtoReflect() protoreflect.Message
- func (x *QueryCloseEstRequest) Reset()
- func (x *QueryCloseEstRequest) String() string
- type QueryCloseEstResponse
- func (*QueryCloseEstResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCloseEstResponse) GetAmountReturned() string
- func (x *QueryCloseEstResponse) GetLiability() string
- func (x *QueryCloseEstResponse) GetWeightBalanceRatio() string
- func (*QueryCloseEstResponse) ProtoMessage()
- func (x *QueryCloseEstResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCloseEstResponse) Reset()
- func (x *QueryCloseEstResponse) String() string
- type QueryCommittedTokensLockedRequest
- func (*QueryCommittedTokensLockedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCommittedTokensLockedRequest) GetAddress() string
- func (*QueryCommittedTokensLockedRequest) ProtoMessage()
- func (x *QueryCommittedTokensLockedRequest) ProtoReflect() protoreflect.Message
- func (x *QueryCommittedTokensLockedRequest) Reset()
- func (x *QueryCommittedTokensLockedRequest) String() string
- type QueryCommittedTokensLockedResponse
- func (*QueryCommittedTokensLockedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCommittedTokensLockedResponse) GetAddress() string
- func (x *QueryCommittedTokensLockedResponse) GetLockedCommitted() []*v1beta11.Coin
- func (x *QueryCommittedTokensLockedResponse) GetTotalCommitted() []*v1beta11.Coin
- func (*QueryCommittedTokensLockedResponse) ProtoMessage()
- func (x *QueryCommittedTokensLockedResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCommittedTokensLockedResponse) Reset()
- func (x *QueryCommittedTokensLockedResponse) String() string
- type QueryGetPoolRequest
- func (*QueryGetPoolRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetPoolRequest) GetIndex() uint64
- func (*QueryGetPoolRequest) ProtoMessage()
- func (x *QueryGetPoolRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetPoolRequest) Reset()
- func (x *QueryGetPoolRequest) String() string
- type QueryGetPoolResponse
- func (*QueryGetPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetPoolResponse) GetPool() *Pool
- func (*QueryGetPoolResponse) ProtoMessage()
- func (x *QueryGetPoolResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetPoolResponse) Reset()
- func (x *QueryGetPoolResponse) String() string
- type QueryLiquidationPriceRequest
- func (*QueryLiquidationPriceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryLiquidationPriceRequest) GetAddress() string
- func (x *QueryLiquidationPriceRequest) GetPositionId() uint64
- func (*QueryLiquidationPriceRequest) ProtoMessage()
- func (x *QueryLiquidationPriceRequest) ProtoReflect() protoreflect.Message
- func (x *QueryLiquidationPriceRequest) Reset()
- func (x *QueryLiquidationPriceRequest) String() string
- type QueryLiquidationPriceResponse
- func (*QueryLiquidationPriceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryLiquidationPriceResponse) GetPrice() string
- func (*QueryLiquidationPriceResponse) ProtoMessage()
- func (x *QueryLiquidationPriceResponse) ProtoReflect() protoreflect.Message
- func (x *QueryLiquidationPriceResponse) Reset()
- func (x *QueryLiquidationPriceResponse) String() string
- type QueryOpenEstRequest
- func (*QueryOpenEstRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOpenEstRequest) GetAmmPoolId() uint64
- func (x *QueryOpenEstRequest) GetCollateralAmount() string
- func (x *QueryOpenEstRequest) GetCollateralAsset() string
- func (x *QueryOpenEstRequest) GetLeverage() string
- func (*QueryOpenEstRequest) ProtoMessage()
- func (x *QueryOpenEstRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOpenEstRequest) Reset()
- func (x *QueryOpenEstRequest) String() string
- type QueryOpenEstResponse
- func (*QueryOpenEstResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOpenEstResponse) GetBorrowFee() string
- func (x *QueryOpenEstResponse) GetPositionSize() string
- func (x *QueryOpenEstResponse) GetWeightBalanceRatio() string
- func (*QueryOpenEstResponse) ProtoMessage()
- func (x *QueryOpenEstResponse) ProtoReflect() protoreflect.Message
- func (x *QueryOpenEstResponse) Reset()
- func (x *QueryOpenEstResponse) String() string
- type QueryPosition
- func (*QueryPosition) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPosition) GetPosition() *Position
- func (x *QueryPosition) GetPositionUsdValue() string
- func (x *QueryPosition) GetUpdatedLeverage() string
- func (*QueryPosition) ProtoMessage()
- func (x *QueryPosition) ProtoReflect() protoreflect.Message
- func (x *QueryPosition) Reset()
- func (x *QueryPosition) String() string
- type QueryRewardsRequest
- func (*QueryRewardsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRewardsRequest) GetAddress() string
- func (x *QueryRewardsRequest) GetIds() []uint64
- func (*QueryRewardsRequest) ProtoMessage()
- func (x *QueryRewardsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRewardsRequest) Reset()
- func (x *QueryRewardsRequest) String() string
- type QueryRewardsResponse
- func (*QueryRewardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRewardsResponse) GetRewards() []*RewardInfo
- func (x *QueryRewardsResponse) GetTotalRewards() []*v1beta11.Coin
- func (*QueryRewardsResponse) ProtoMessage()
- func (x *QueryRewardsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRewardsResponse) Reset()
- func (x *QueryRewardsResponse) String() string
- type QueryServer
- type RewardInfo
- func (*RewardInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RewardInfo) GetPositionId() uint64
- func (x *RewardInfo) GetReward() []*v1beta11.Coin
- func (*RewardInfo) ProtoMessage()
- func (x *RewardInfo) ProtoReflect() protoreflect.Message
- func (x *RewardInfo) Reset()
- func (x *RewardInfo) String() string
- type StatusRequest
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetLifetimePositionCount() uint64
- func (x *StatusResponse) GetOpenPositionCount() uint64
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) AddPool(context.Context, *MsgAddPool) (*MsgAddPoolResponse, error)
- func (UnimplementedMsgServer) ClaimRewards(context.Context, *MsgClaimRewards) (*MsgClaimRewardsResponse, error)
- func (UnimplementedMsgServer) Close(context.Context, *MsgClose) (*MsgCloseResponse, error)
- func (UnimplementedMsgServer) ClosePositions(context.Context, *MsgClosePositions) (*MsgClosePositionsResponse, error)
- func (UnimplementedMsgServer) Dewhitelist(context.Context, *MsgDewhitelist) (*MsgDewhitelistResponse, error)
- func (UnimplementedMsgServer) Open(context.Context, *MsgOpen) (*MsgOpenResponse, error)
- func (UnimplementedMsgServer) RemovePool(context.Context, *MsgRemovePool) (*MsgRemovePoolResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (UnimplementedMsgServer) UpdateStopLoss(context.Context, *MsgUpdateStopLoss) (*MsgUpdateStopLossResponse, error)
- func (UnimplementedMsgServer) Whitelist(context.Context, *MsgWhitelist) (*MsgWhitelistResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) CloseEst(context.Context, *QueryCloseEstRequest) (*QueryCloseEstResponse, error)
- func (UnimplementedQueryServer) CommittedTokensLocked(context.Context, *QueryCommittedTokensLockedRequest) (*QueryCommittedTokensLockedResponse, error)
- func (UnimplementedQueryServer) GetStatus(context.Context, *StatusRequest) (*StatusResponse, error)
- func (UnimplementedQueryServer) GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error)
- func (UnimplementedQueryServer) IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error)
- func (UnimplementedQueryServer) LiquidationPrice(context.Context, *QueryLiquidationPriceRequest) (*QueryLiquidationPriceResponse, error)
- func (UnimplementedQueryServer) OpenEst(context.Context, *QueryOpenEstRequest) (*QueryOpenEstResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
- func (UnimplementedQueryServer) Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error)
- func (UnimplementedQueryServer) Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error)
- func (UnimplementedQueryServer) Position(context.Context, *PositionRequest) (*PositionResponse, error)
- func (UnimplementedQueryServer) QueryPositions(context.Context, *PositionsRequest) (*PositionsResponse, error)
- func (UnimplementedQueryServer) QueryPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error)
- func (UnimplementedQueryServer) QueryPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
- func (UnimplementedQueryServer) Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type WhitelistRequest
- func (*WhitelistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WhitelistRequest) GetPagination() *v1beta1.PageRequest
- func (*WhitelistRequest) ProtoMessage()
- func (x *WhitelistRequest) ProtoReflect() protoreflect.Message
- func (x *WhitelistRequest) Reset()
- func (x *WhitelistRequest) String() string
- type WhitelistResponse
- func (*WhitelistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WhitelistResponse) GetPagination() *v1beta1.PageResponse
- func (x *WhitelistResponse) GetWhitelist() []string
- func (*WhitelistResponse) ProtoMessage()
- func (x *WhitelistResponse) ProtoReflect() protoreflect.Message
- func (x *WhitelistResponse) Reset()
- func (x *WhitelistResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_elys_leveragelp_genesis_proto protoreflect.FileDescriptor
var File_elys_leveragelp_params_proto protoreflect.FileDescriptor
var File_elys_leveragelp_pool_proto protoreflect.FileDescriptor
var File_elys_leveragelp_query_proto protoreflect.FileDescriptor
var File_elys_leveragelp_tx_proto protoreflect.FileDescriptor
var File_elys_leveragelp_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "elys.leveragelp.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Open", Handler: _Msg_Open_Handler, }, { MethodName: "Close", Handler: _Msg_Close_Handler, }, { MethodName: "ClaimRewards", Handler: _Msg_ClaimRewards_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "AddPool", Handler: _Msg_AddPool_Handler, }, { MethodName: "RemovePool", Handler: _Msg_RemovePool_Handler, }, { MethodName: "Whitelist", Handler: _Msg_Whitelist_Handler, }, { MethodName: "Dewhitelist", Handler: _Msg_Dewhitelist_Handler, }, { MethodName: "UpdateStopLoss", Handler: _Msg_UpdateStopLoss_Handler, }, { MethodName: "ClosePositions", Handler: _Msg_ClosePositions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "elys/leveragelp/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.leveragelp.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "QueryPositions", Handler: _Query_QueryPositions_Handler, }, { MethodName: "QueryPositionsByPool", Handler: _Query_QueryPositionsByPool_Handler, }, { MethodName: "GetStatus", Handler: _Query_GetStatus_Handler, }, { MethodName: "QueryPositionsForAddress", Handler: _Query_QueryPositionsForAddress_Handler, }, { MethodName: "GetWhitelist", Handler: _Query_GetWhitelist_Handler, }, { MethodName: "IsWhitelisted", Handler: _Query_IsWhitelisted_Handler, }, { MethodName: "Pool", Handler: _Query_Pool_Handler, }, { MethodName: "Pools", Handler: _Query_Pools_Handler, }, { MethodName: "Position", Handler: _Query_Position_Handler, }, { MethodName: "LiquidationPrice", Handler: _Query_LiquidationPrice_Handler, }, { MethodName: "OpenEst", Handler: _Query_OpenEst_Handler, }, { MethodName: "CloseEst", Handler: _Query_CloseEst_Handler, }, { MethodName: "Rewards", Handler: _Query_Rewards_Handler, }, { MethodName: "CommittedTokensLocked", Handler: _Query_CommittedTokensLocked_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "elys/leveragelp/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 AddPool ¶
type AddPool struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` LeverageMax string `protobuf:"bytes,3,opt,name=leverage_max,json=leverageMax,proto3" json:"leverage_max,omitempty"` // contains filtered or unexported fields }
func (*AddPool) Descriptor
deprecated
func (*AddPool) GetAmmPoolId ¶
func (*AddPool) GetLeverageMax ¶
func (*AddPool) ProtoMessage ¶
func (*AddPool) ProtoMessage()
func (*AddPool) ProtoReflect ¶
func (x *AddPool) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` PoolList []*Pool `protobuf:"bytes,2,rep,name=pool_list,json=poolList,proto3" json:"pool_list,omitempty"` PositionList []*Position `protobuf:"bytes,3,rep,name=position_list,json=positionList,proto3" json:"position_list,omitempty"` AddressWhitelist []string `protobuf:"bytes,4,rep,name=address_whitelist,json=addressWhitelist,proto3" json:"address_whitelist,omitempty"` // contains filtered or unexported fields }
GenesisState defines the leveragelp module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetAddressWhitelist ¶
func (x *GenesisState) GetAddressWhitelist() []string
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetPoolList ¶
func (x *GenesisState) GetPoolList() []*Pool
func (*GenesisState) GetPositionList ¶
func (x *GenesisState) GetPositionList() []*Position
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 IsWhitelistedRequest ¶
type IsWhitelistedRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*IsWhitelistedRequest) Descriptor
deprecated
func (*IsWhitelistedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsWhitelistedRequest.ProtoReflect.Descriptor instead.
func (*IsWhitelistedRequest) GetAddress ¶
func (x *IsWhitelistedRequest) GetAddress() string
func (*IsWhitelistedRequest) ProtoMessage ¶
func (*IsWhitelistedRequest) ProtoMessage()
func (*IsWhitelistedRequest) ProtoReflect ¶
func (x *IsWhitelistedRequest) ProtoReflect() protoreflect.Message
func (*IsWhitelistedRequest) Reset ¶
func (x *IsWhitelistedRequest) Reset()
func (*IsWhitelistedRequest) String ¶
func (x *IsWhitelistedRequest) String() string
type IsWhitelistedResponse ¶
type IsWhitelistedResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` IsWhitelisted bool `protobuf:"varint,2,opt,name=is_whitelisted,json=isWhitelisted,proto3" json:"is_whitelisted,omitempty"` // contains filtered or unexported fields }
func (*IsWhitelistedResponse) Descriptor
deprecated
func (*IsWhitelistedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsWhitelistedResponse.ProtoReflect.Descriptor instead.
func (*IsWhitelistedResponse) GetAddress ¶
func (x *IsWhitelistedResponse) GetAddress() string
func (*IsWhitelistedResponse) GetIsWhitelisted ¶
func (x *IsWhitelistedResponse) GetIsWhitelisted() bool
func (*IsWhitelistedResponse) ProtoMessage ¶
func (*IsWhitelistedResponse) ProtoMessage()
func (*IsWhitelistedResponse) ProtoReflect ¶
func (x *IsWhitelistedResponse) ProtoReflect() protoreflect.Message
func (*IsWhitelistedResponse) Reset ¶
func (x *IsWhitelistedResponse) Reset()
func (*IsWhitelistedResponse) String ¶
func (x *IsWhitelistedResponse) String() string
type LegacyParams ¶
type LegacyParams struct { LeverageMax string `protobuf:"bytes,1,opt,name=leverage_max,json=leverageMax,proto3" json:"leverage_max,omitempty"` MaxOpenPositions int64 `protobuf:"varint,2,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"` PoolOpenThreshold string `protobuf:"bytes,3,opt,name=pool_open_threshold,json=poolOpenThreshold,proto3" json:"pool_open_threshold,omitempty"` SafetyFactor string `protobuf:"bytes,4,opt,name=safety_factor,json=safetyFactor,proto3" json:"safety_factor,omitempty"` WhitelistingEnabled bool `protobuf:"varint,5,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"` EpochLength int64 `protobuf:"varint,6,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the module.
func (*LegacyParams) Descriptor
deprecated
func (*LegacyParams) Descriptor() ([]byte, []int)
Deprecated: Use LegacyParams.ProtoReflect.Descriptor instead.
func (*LegacyParams) GetEpochLength ¶
func (x *LegacyParams) GetEpochLength() int64
func (*LegacyParams) GetLeverageMax ¶
func (x *LegacyParams) GetLeverageMax() string
func (*LegacyParams) GetMaxOpenPositions ¶
func (x *LegacyParams) GetMaxOpenPositions() int64
func (*LegacyParams) GetPoolOpenThreshold ¶
func (x *LegacyParams) GetPoolOpenThreshold() string
func (*LegacyParams) GetSafetyFactor ¶
func (x *LegacyParams) GetSafetyFactor() string
func (*LegacyParams) GetWhitelistingEnabled ¶
func (x *LegacyParams) GetWhitelistingEnabled() bool
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 LegacyPool ¶
type LegacyPool struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Health string `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"` LeveragedLpAmount string `protobuf:"bytes,3,opt,name=leveraged_lp_amount,json=leveragedLpAmount,proto3" json:"leveraged_lp_amount,omitempty"` LeverageMax string `protobuf:"bytes,4,opt,name=leverage_max,json=leverageMax,proto3" json:"leverage_max,omitempty"` // contains filtered or unexported fields }
func (*LegacyPool) Descriptor
deprecated
func (*LegacyPool) Descriptor() ([]byte, []int)
Deprecated: Use LegacyPool.ProtoReflect.Descriptor instead.
func (*LegacyPool) GetAmmPoolId ¶
func (x *LegacyPool) GetAmmPoolId() uint64
func (*LegacyPool) GetHealth ¶
func (x *LegacyPool) GetHealth() string
func (*LegacyPool) GetLeverageMax ¶
func (x *LegacyPool) GetLeverageMax() string
func (*LegacyPool) GetLeveragedLpAmount ¶
func (x *LegacyPool) GetLeveragedLpAmount() string
func (*LegacyPool) ProtoMessage ¶
func (*LegacyPool) ProtoMessage()
func (*LegacyPool) ProtoReflect ¶
func (x *LegacyPool) ProtoReflect() protoreflect.Message
func (*LegacyPool) Reset ¶
func (x *LegacyPool) Reset()
func (*LegacyPool) String ¶
func (x *LegacyPool) String() string
type LegacyPosition ¶
type LegacyPosition struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Collateral *v1beta1.Coin `protobuf:"bytes,2,opt,name=collateral,proto3" json:"collateral,omitempty"` Liabilities string `protobuf:"bytes,3,opt,name=liabilities,proto3" json:"liabilities,omitempty"` // For recording Leverage string `protobuf:"bytes,4,opt,name=leverage,proto3" json:"leverage,omitempty"` LeveragedLpAmount string `protobuf:"bytes,5,opt,name=leveraged_lp_amount,json=leveragedLpAmount,proto3" json:"leveraged_lp_amount,omitempty"` PositionHealth string `protobuf:"bytes,6,opt,name=position_health,json=positionHealth,proto3" json:"position_health,omitempty"` Id uint64 `protobuf:"varint,7,opt,name=id,proto3" json:"id,omitempty"` AmmPoolId uint64 `protobuf:"varint,8,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` StopLossPrice string `protobuf:"bytes,9,opt,name=stop_loss_price,json=stopLossPrice,proto3" json:"stop_loss_price,omitempty"` // contains filtered or unexported fields }
func (*LegacyPosition) Descriptor
deprecated
func (*LegacyPosition) Descriptor() ([]byte, []int)
Deprecated: Use LegacyPosition.ProtoReflect.Descriptor instead.
func (*LegacyPosition) GetAddress ¶
func (x *LegacyPosition) GetAddress() string
func (*LegacyPosition) GetAmmPoolId ¶
func (x *LegacyPosition) GetAmmPoolId() uint64
func (*LegacyPosition) GetCollateral ¶
func (x *LegacyPosition) GetCollateral() *v1beta1.Coin
func (*LegacyPosition) GetId ¶
func (x *LegacyPosition) GetId() uint64
func (*LegacyPosition) GetLeverage ¶
func (x *LegacyPosition) GetLeverage() string
func (*LegacyPosition) GetLeveragedLpAmount ¶
func (x *LegacyPosition) GetLeveragedLpAmount() string
func (*LegacyPosition) GetLiabilities ¶
func (x *LegacyPosition) GetLiabilities() string
func (*LegacyPosition) GetPositionHealth ¶
func (x *LegacyPosition) GetPositionHealth() string
func (*LegacyPosition) GetStopLossPrice ¶
func (x *LegacyPosition) GetStopLossPrice() string
func (*LegacyPosition) ProtoMessage ¶
func (*LegacyPosition) ProtoMessage()
func (*LegacyPosition) ProtoReflect ¶
func (x *LegacyPosition) ProtoReflect() protoreflect.Message
func (*LegacyPosition) Reset ¶
func (x *LegacyPosition) Reset()
func (*LegacyPosition) String ¶
func (x *LegacyPosition) String() string
type MsgAddPool ¶
type MsgAddPool struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Pool *AddPool `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"` // contains filtered or unexported fields }
func (*MsgAddPool) Descriptor
deprecated
func (*MsgAddPool) Descriptor() ([]byte, []int)
Deprecated: Use MsgAddPool.ProtoReflect.Descriptor instead.
func (*MsgAddPool) GetAuthority ¶
func (x *MsgAddPool) GetAuthority() string
func (*MsgAddPool) GetPool ¶
func (x *MsgAddPool) GetPool() *AddPool
func (*MsgAddPool) ProtoMessage ¶
func (*MsgAddPool) ProtoMessage()
func (*MsgAddPool) ProtoReflect ¶
func (x *MsgAddPool) ProtoReflect() protoreflect.Message
func (*MsgAddPool) Reset ¶
func (x *MsgAddPool) Reset()
func (*MsgAddPool) String ¶
func (x *MsgAddPool) String() string
type MsgAddPoolResponse ¶
type MsgAddPoolResponse struct {
// contains filtered or unexported fields
}
func (*MsgAddPoolResponse) Descriptor
deprecated
func (*MsgAddPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgAddPoolResponse.ProtoReflect.Descriptor instead.
func (*MsgAddPoolResponse) ProtoMessage ¶
func (*MsgAddPoolResponse) ProtoMessage()
func (*MsgAddPoolResponse) ProtoReflect ¶
func (x *MsgAddPoolResponse) ProtoReflect() protoreflect.Message
func (*MsgAddPoolResponse) Reset ¶
func (x *MsgAddPoolResponse) Reset()
func (*MsgAddPoolResponse) String ¶
func (x *MsgAddPoolResponse) String() string
type MsgClaimRewards ¶
type MsgClaimRewards struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Ids []uint64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*MsgClaimRewards) Descriptor
deprecated
func (*MsgClaimRewards) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimRewards.ProtoReflect.Descriptor instead.
func (*MsgClaimRewards) GetIds ¶
func (x *MsgClaimRewards) GetIds() []uint64
func (*MsgClaimRewards) GetSender ¶
func (x *MsgClaimRewards) GetSender() string
func (*MsgClaimRewards) ProtoMessage ¶
func (*MsgClaimRewards) ProtoMessage()
func (*MsgClaimRewards) ProtoReflect ¶
func (x *MsgClaimRewards) ProtoReflect() protoreflect.Message
func (*MsgClaimRewards) Reset ¶
func (x *MsgClaimRewards) Reset()
func (*MsgClaimRewards) String ¶
func (x *MsgClaimRewards) String() string
type MsgClaimRewardsResponse ¶
type MsgClaimRewardsResponse struct {
// contains filtered or unexported fields
}
func (*MsgClaimRewardsResponse) Descriptor
deprecated
func (*MsgClaimRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgClaimRewardsResponse.ProtoReflect.Descriptor instead.
func (*MsgClaimRewardsResponse) ProtoMessage ¶
func (*MsgClaimRewardsResponse) ProtoMessage()
func (*MsgClaimRewardsResponse) ProtoReflect ¶
func (x *MsgClaimRewardsResponse) ProtoReflect() protoreflect.Message
func (*MsgClaimRewardsResponse) Reset ¶
func (x *MsgClaimRewardsResponse) Reset()
func (*MsgClaimRewardsResponse) String ¶
func (x *MsgClaimRewardsResponse) String() string
type MsgClient ¶
type MsgClient interface { Open(ctx context.Context, in *MsgOpen, opts ...grpc.CallOption) (*MsgOpenResponse, error) Close(ctx context.Context, in *MsgClose, opts ...grpc.CallOption) (*MsgCloseResponse, error) ClaimRewards(ctx context.Context, in *MsgClaimRewards, opts ...grpc.CallOption) (*MsgClaimRewardsResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) AddPool(ctx context.Context, in *MsgAddPool, opts ...grpc.CallOption) (*MsgAddPoolResponse, error) RemovePool(ctx context.Context, in *MsgRemovePool, opts ...grpc.CallOption) (*MsgRemovePoolResponse, error) Whitelist(ctx context.Context, in *MsgWhitelist, opts ...grpc.CallOption) (*MsgWhitelistResponse, error) Dewhitelist(ctx context.Context, in *MsgDewhitelist, opts ...grpc.CallOption) (*MsgDewhitelistResponse, error) UpdateStopLoss(ctx context.Context, in *MsgUpdateStopLoss, opts ...grpc.CallOption) (*MsgUpdateStopLossResponse, error) ClosePositions(ctx context.Context, in *MsgClosePositions, opts ...grpc.CallOption) (*MsgClosePositionsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgClose ¶
type MsgClose struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` LpAmount string `protobuf:"bytes,3,opt,name=lp_amount,json=lpAmount,proto3" json:"lp_amount,omitempty"` // contains filtered or unexported fields }
func (*MsgClose) Descriptor
deprecated
func (*MsgClose) GetCreator ¶
func (*MsgClose) GetLpAmount ¶
func (*MsgClose) ProtoMessage ¶
func (*MsgClose) ProtoMessage()
func (*MsgClose) ProtoReflect ¶
func (x *MsgClose) ProtoReflect() protoreflect.Message
type MsgClosePositions ¶
type MsgClosePositions struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Liquidate []*PositionRequest `protobuf:"bytes,2,rep,name=liquidate,proto3" json:"liquidate,omitempty"` StopLoss []*PositionRequest `protobuf:"bytes,3,rep,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"` // contains filtered or unexported fields }
func (*MsgClosePositions) Descriptor
deprecated
func (*MsgClosePositions) Descriptor() ([]byte, []int)
Deprecated: Use MsgClosePositions.ProtoReflect.Descriptor instead.
func (*MsgClosePositions) GetCreator ¶
func (x *MsgClosePositions) GetCreator() string
func (*MsgClosePositions) GetLiquidate ¶
func (x *MsgClosePositions) GetLiquidate() []*PositionRequest
func (*MsgClosePositions) GetStopLoss ¶
func (x *MsgClosePositions) GetStopLoss() []*PositionRequest
func (*MsgClosePositions) ProtoMessage ¶
func (*MsgClosePositions) ProtoMessage()
func (*MsgClosePositions) ProtoReflect ¶
func (x *MsgClosePositions) ProtoReflect() protoreflect.Message
func (*MsgClosePositions) Reset ¶
func (x *MsgClosePositions) Reset()
func (*MsgClosePositions) String ¶
func (x *MsgClosePositions) String() string
type MsgClosePositionsResponse ¶
type MsgClosePositionsResponse struct {
// contains filtered or unexported fields
}
func (*MsgClosePositionsResponse) Descriptor
deprecated
func (*MsgClosePositionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgClosePositionsResponse.ProtoReflect.Descriptor instead.
func (*MsgClosePositionsResponse) ProtoMessage ¶
func (*MsgClosePositionsResponse) ProtoMessage()
func (*MsgClosePositionsResponse) ProtoReflect ¶
func (x *MsgClosePositionsResponse) ProtoReflect() protoreflect.Message
func (*MsgClosePositionsResponse) Reset ¶
func (x *MsgClosePositionsResponse) Reset()
func (*MsgClosePositionsResponse) String ¶
func (x *MsgClosePositionsResponse) String() string
type MsgCloseResponse ¶
type MsgCloseResponse struct {
// contains filtered or unexported fields
}
func (*MsgCloseResponse) Descriptor
deprecated
func (*MsgCloseResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCloseResponse.ProtoReflect.Descriptor instead.
func (*MsgCloseResponse) ProtoMessage ¶
func (*MsgCloseResponse) ProtoMessage()
func (*MsgCloseResponse) ProtoReflect ¶
func (x *MsgCloseResponse) ProtoReflect() protoreflect.Message
func (*MsgCloseResponse) Reset ¶
func (x *MsgCloseResponse) Reset()
func (*MsgCloseResponse) String ¶
func (x *MsgCloseResponse) String() string
type MsgDewhitelist ¶
type MsgDewhitelist struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"` // contains filtered or unexported fields }
func (*MsgDewhitelist) Descriptor
deprecated
func (*MsgDewhitelist) Descriptor() ([]byte, []int)
Deprecated: Use MsgDewhitelist.ProtoReflect.Descriptor instead.
func (*MsgDewhitelist) GetAuthority ¶
func (x *MsgDewhitelist) GetAuthority() string
func (*MsgDewhitelist) GetWhitelistedAddress ¶
func (x *MsgDewhitelist) GetWhitelistedAddress() string
func (*MsgDewhitelist) ProtoMessage ¶
func (*MsgDewhitelist) ProtoMessage()
func (*MsgDewhitelist) ProtoReflect ¶
func (x *MsgDewhitelist) ProtoReflect() protoreflect.Message
func (*MsgDewhitelist) Reset ¶
func (x *MsgDewhitelist) Reset()
func (*MsgDewhitelist) String ¶
func (x *MsgDewhitelist) String() string
type MsgDewhitelistResponse ¶
type MsgDewhitelistResponse struct {
// contains filtered or unexported fields
}
func (*MsgDewhitelistResponse) Descriptor
deprecated
func (*MsgDewhitelistResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgDewhitelistResponse.ProtoReflect.Descriptor instead.
func (*MsgDewhitelistResponse) ProtoMessage ¶
func (*MsgDewhitelistResponse) ProtoMessage()
func (*MsgDewhitelistResponse) ProtoReflect ¶
func (x *MsgDewhitelistResponse) ProtoReflect() protoreflect.Message
func (*MsgDewhitelistResponse) Reset ¶
func (x *MsgDewhitelistResponse) Reset()
func (*MsgDewhitelistResponse) String ¶
func (x *MsgDewhitelistResponse) String() string
type MsgOpen ¶
type MsgOpen struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` CollateralAsset string `protobuf:"bytes,2,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"` CollateralAmount string `protobuf:"bytes,3,opt,name=collateral_amount,json=collateralAmount,proto3" json:"collateral_amount,omitempty"` AmmPoolId uint64 `protobuf:"varint,4,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Leverage string `protobuf:"bytes,5,opt,name=leverage,proto3" json:"leverage,omitempty"` StopLossPrice string `protobuf:"bytes,6,opt,name=stop_loss_price,json=stopLossPrice,proto3" json:"stop_loss_price,omitempty"` // contains filtered or unexported fields }
func (*MsgOpen) Descriptor
deprecated
func (*MsgOpen) GetAmmPoolId ¶
func (*MsgOpen) GetCollateralAmount ¶
func (*MsgOpen) GetCollateralAsset ¶
func (*MsgOpen) GetCreator ¶
func (*MsgOpen) GetLeverage ¶
func (*MsgOpen) GetStopLossPrice ¶
func (*MsgOpen) ProtoMessage ¶
func (*MsgOpen) ProtoMessage()
func (*MsgOpen) ProtoReflect ¶
func (x *MsgOpen) ProtoReflect() protoreflect.Message
type MsgOpenResponse ¶
type MsgOpenResponse struct {
// contains filtered or unexported fields
}
func (*MsgOpenResponse) Descriptor
deprecated
func (*MsgOpenResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgOpenResponse.ProtoReflect.Descriptor instead.
func (*MsgOpenResponse) ProtoMessage ¶
func (*MsgOpenResponse) ProtoMessage()
func (*MsgOpenResponse) ProtoReflect ¶
func (x *MsgOpenResponse) ProtoReflect() protoreflect.Message
func (*MsgOpenResponse) Reset ¶
func (x *MsgOpenResponse) Reset()
func (*MsgOpenResponse) String ¶
func (x *MsgOpenResponse) String() string
type MsgRemovePool ¶
type MsgRemovePool struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MsgRemovePool) Descriptor
deprecated
func (*MsgRemovePool) Descriptor() ([]byte, []int)
Deprecated: Use MsgRemovePool.ProtoReflect.Descriptor instead.
func (*MsgRemovePool) GetAuthority ¶
func (x *MsgRemovePool) GetAuthority() string
func (*MsgRemovePool) GetId ¶
func (x *MsgRemovePool) GetId() uint64
func (*MsgRemovePool) ProtoMessage ¶
func (*MsgRemovePool) ProtoMessage()
func (*MsgRemovePool) ProtoReflect ¶
func (x *MsgRemovePool) ProtoReflect() protoreflect.Message
func (*MsgRemovePool) Reset ¶
func (x *MsgRemovePool) Reset()
func (*MsgRemovePool) String ¶
func (x *MsgRemovePool) String() string
type MsgRemovePoolResponse ¶
type MsgRemovePoolResponse struct {
// contains filtered or unexported fields
}
func (*MsgRemovePoolResponse) Descriptor
deprecated
func (*MsgRemovePoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRemovePoolResponse.ProtoReflect.Descriptor instead.
func (*MsgRemovePoolResponse) ProtoMessage ¶
func (*MsgRemovePoolResponse) ProtoMessage()
func (*MsgRemovePoolResponse) ProtoReflect ¶
func (x *MsgRemovePoolResponse) ProtoReflect() protoreflect.Message
func (*MsgRemovePoolResponse) Reset ¶
func (x *MsgRemovePoolResponse) Reset()
func (*MsgRemovePoolResponse) String ¶
func (x *MsgRemovePoolResponse) String() string
type MsgServer ¶
type MsgServer interface { Open(context.Context, *MsgOpen) (*MsgOpenResponse, error) Close(context.Context, *MsgClose) (*MsgCloseResponse, error) ClaimRewards(context.Context, *MsgClaimRewards) (*MsgClaimRewardsResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) AddPool(context.Context, *MsgAddPool) (*MsgAddPoolResponse, error) RemovePool(context.Context, *MsgRemovePool) (*MsgRemovePoolResponse, error) Whitelist(context.Context, *MsgWhitelist) (*MsgWhitelistResponse, error) Dewhitelist(context.Context, *MsgDewhitelist) (*MsgDewhitelistResponse, error) UpdateStopLoss(context.Context, *MsgUpdateStopLoss) (*MsgUpdateStopLossResponse, error) ClosePositions(context.Context, *MsgClosePositions) (*MsgClosePositionsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
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 MsgUpdateStopLoss ¶
type MsgUpdateStopLoss struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Position uint64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*MsgUpdateStopLoss) Descriptor
deprecated
func (*MsgUpdateStopLoss) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateStopLoss.ProtoReflect.Descriptor instead.
func (*MsgUpdateStopLoss) GetCreator ¶
func (x *MsgUpdateStopLoss) GetCreator() string
func (*MsgUpdateStopLoss) GetPosition ¶
func (x *MsgUpdateStopLoss) GetPosition() uint64
func (*MsgUpdateStopLoss) GetPrice ¶
func (x *MsgUpdateStopLoss) GetPrice() string
func (*MsgUpdateStopLoss) ProtoMessage ¶
func (*MsgUpdateStopLoss) ProtoMessage()
func (*MsgUpdateStopLoss) ProtoReflect ¶
func (x *MsgUpdateStopLoss) ProtoReflect() protoreflect.Message
func (*MsgUpdateStopLoss) Reset ¶
func (x *MsgUpdateStopLoss) Reset()
func (*MsgUpdateStopLoss) String ¶
func (x *MsgUpdateStopLoss) String() string
type MsgUpdateStopLossResponse ¶
type MsgUpdateStopLossResponse struct {
// contains filtered or unexported fields
}
func (*MsgUpdateStopLossResponse) Descriptor
deprecated
func (*MsgUpdateStopLossResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateStopLossResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateStopLossResponse) ProtoMessage ¶
func (*MsgUpdateStopLossResponse) ProtoMessage()
func (*MsgUpdateStopLossResponse) ProtoReflect ¶
func (x *MsgUpdateStopLossResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateStopLossResponse) Reset ¶
func (x *MsgUpdateStopLossResponse) Reset()
func (*MsgUpdateStopLossResponse) String ¶
func (x *MsgUpdateStopLossResponse) String() string
type MsgWhitelist ¶
type MsgWhitelist struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"` // contains filtered or unexported fields }
func (*MsgWhitelist) Descriptor
deprecated
func (*MsgWhitelist) Descriptor() ([]byte, []int)
Deprecated: Use MsgWhitelist.ProtoReflect.Descriptor instead.
func (*MsgWhitelist) GetAuthority ¶
func (x *MsgWhitelist) GetAuthority() string
func (*MsgWhitelist) GetWhitelistedAddress ¶
func (x *MsgWhitelist) GetWhitelistedAddress() string
func (*MsgWhitelist) ProtoMessage ¶
func (*MsgWhitelist) ProtoMessage()
func (*MsgWhitelist) ProtoReflect ¶
func (x *MsgWhitelist) ProtoReflect() protoreflect.Message
func (*MsgWhitelist) Reset ¶
func (x *MsgWhitelist) Reset()
func (*MsgWhitelist) String ¶
func (x *MsgWhitelist) String() string
type MsgWhitelistResponse ¶
type MsgWhitelistResponse struct {
// contains filtered or unexported fields
}
func (*MsgWhitelistResponse) Descriptor
deprecated
func (*MsgWhitelistResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgWhitelistResponse.ProtoReflect.Descriptor instead.
func (*MsgWhitelistResponse) ProtoMessage ¶
func (*MsgWhitelistResponse) ProtoMessage()
func (*MsgWhitelistResponse) ProtoReflect ¶
func (x *MsgWhitelistResponse) ProtoReflect() protoreflect.Message
func (*MsgWhitelistResponse) Reset ¶
func (x *MsgWhitelistResponse) Reset()
func (*MsgWhitelistResponse) String ¶
func (x *MsgWhitelistResponse) String() string
type Params ¶
type Params struct { LeverageMax string `protobuf:"bytes,1,opt,name=leverage_max,json=leverageMax,proto3" json:"leverage_max,omitempty"` MaxOpenPositions int64 `protobuf:"varint,2,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"` PoolOpenThreshold string `protobuf:"bytes,3,opt,name=pool_open_threshold,json=poolOpenThreshold,proto3" json:"pool_open_threshold,omitempty"` SafetyFactor string `protobuf:"bytes,4,opt,name=safety_factor,json=safetyFactor,proto3" json:"safety_factor,omitempty"` WhitelistingEnabled bool `protobuf:"varint,5,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"` EpochLength int64 `protobuf:"varint,6,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` FallbackEnabled bool `protobuf:"varint,7,opt,name=fallback_enabled,json=fallbackEnabled,proto3" json:"fallback_enabled,omitempty"` NumberPerBlock int64 `protobuf:"varint,8,opt,name=number_per_block,json=numberPerBlock,proto3" json:"number_per_block,omitempty"` // Number of positions to process per block // contains filtered or unexported fields }
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) GetEpochLength ¶
func (*Params) GetFallbackEnabled ¶
func (*Params) GetLeverageMax ¶
func (*Params) GetMaxOpenPositions ¶
func (*Params) GetNumberPerBlock ¶
func (*Params) GetPoolOpenThreshold ¶
func (*Params) GetSafetyFactor ¶
func (*Params) GetWhitelistingEnabled ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type ParamsRequest ¶
type ParamsRequest struct {
// contains filtered or unexported fields
}
ParamsRequest is request type for the Query/Params RPC method.
func (*ParamsRequest) Descriptor
deprecated
func (*ParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead.
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) ProtoReflect ¶
func (x *ParamsRequest) ProtoReflect() protoreflect.Message
func (*ParamsRequest) Reset ¶
func (x *ParamsRequest) Reset()
func (*ParamsRequest) String ¶
func (x *ParamsRequest) String() string
type ParamsResponse ¶
type ParamsResponse 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 }
ParamsResponse is response type for the Query/Params RPC method.
func (*ParamsResponse) Descriptor
deprecated
func (*ParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead.
func (*ParamsResponse) GetParams ¶
func (x *ParamsResponse) GetParams() *Params
func (*ParamsResponse) ProtoMessage ¶
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) ProtoReflect ¶
func (x *ParamsResponse) ProtoReflect() protoreflect.Message
func (*ParamsResponse) Reset ¶
func (x *ParamsResponse) Reset()
func (*ParamsResponse) String ¶
func (x *ParamsResponse) String() string
type Pool ¶
type Pool struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Health string `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"` LeveragedLpAmount string `protobuf:"bytes,3,opt,name=leveraged_lp_amount,json=leveragedLpAmount,proto3" json:"leveraged_lp_amount,omitempty"` LeverageMax string `protobuf:"bytes,4,opt,name=leverage_max,json=leverageMax,proto3" json:"leverage_max,omitempty"` MaxLeveragelpRatio string `protobuf:"bytes,5,opt,name=max_leveragelp_ratio,json=maxLeveragelpRatio,proto3" json:"max_leveragelp_ratio,omitempty"` // contains filtered or unexported fields }
func (*Pool) Descriptor
deprecated
func (*Pool) GetAmmPoolId ¶
func (*Pool) GetLeverageMax ¶
func (*Pool) GetLeveragedLpAmount ¶
func (*Pool) GetMaxLeveragelpRatio ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) ProtoReflect ¶
func (x *Pool) ProtoReflect() protoreflect.Message
type Position ¶
type Position struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Collateral *v1beta1.Coin `protobuf:"bytes,2,opt,name=collateral,proto3" json:"collateral,omitempty"` Liabilities string `protobuf:"bytes,3,opt,name=liabilities,proto3" json:"liabilities,omitempty"` // For recording LeveragedLpAmount string `protobuf:"bytes,4,opt,name=leveraged_lp_amount,json=leveragedLpAmount,proto3" json:"leveraged_lp_amount,omitempty"` PositionHealth string `protobuf:"bytes,5,opt,name=position_health,json=positionHealth,proto3" json:"position_health,omitempty"` Id uint64 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` AmmPoolId uint64 `protobuf:"varint,7,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` StopLossPrice string `protobuf:"bytes,8,opt,name=stop_loss_price,json=stopLossPrice,proto3" json:"stop_loss_price,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) GetAddress ¶
func (*Position) GetAmmPoolId ¶
func (*Position) GetCollateral ¶
func (*Position) GetLeveragedLpAmount ¶
func (*Position) GetLiabilities ¶
func (*Position) GetPositionHealth ¶
func (*Position) GetStopLossPrice ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type PositionAndInterest ¶
type PositionAndInterest struct { Position *QueryPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` InterestRateHour string `protobuf:"bytes,2,opt,name=interest_rate_hour,json=interestRateHour,proto3" json:"interest_rate_hour,omitempty"` InterestRateHourUsd string `protobuf:"bytes,3,opt,name=interest_rate_hour_usd,json=interestRateHourUsd,proto3" json:"interest_rate_hour_usd,omitempty"` // contains filtered or unexported fields }
func (*PositionAndInterest) Descriptor
deprecated
func (*PositionAndInterest) Descriptor() ([]byte, []int)
Deprecated: Use PositionAndInterest.ProtoReflect.Descriptor instead.
func (*PositionAndInterest) GetInterestRateHour ¶
func (x *PositionAndInterest) GetInterestRateHour() string
func (*PositionAndInterest) GetInterestRateHourUsd ¶
func (x *PositionAndInterest) GetInterestRateHourUsd() string
func (*PositionAndInterest) GetPosition ¶
func (x *PositionAndInterest) GetPosition() *QueryPosition
func (*PositionAndInterest) ProtoMessage ¶
func (*PositionAndInterest) ProtoMessage()
func (*PositionAndInterest) ProtoReflect ¶
func (x *PositionAndInterest) ProtoReflect() protoreflect.Message
func (*PositionAndInterest) Reset ¶
func (x *PositionAndInterest) Reset()
func (*PositionAndInterest) String ¶
func (x *PositionAndInterest) String() string
type PositionRequest ¶
type PositionRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PositionRequest) Descriptor
deprecated
func (*PositionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionRequest.ProtoReflect.Descriptor instead.
func (*PositionRequest) GetAddress ¶
func (x *PositionRequest) GetAddress() string
func (*PositionRequest) GetId ¶
func (x *PositionRequest) GetId() uint64
func (*PositionRequest) ProtoMessage ¶
func (*PositionRequest) ProtoMessage()
func (*PositionRequest) ProtoReflect ¶
func (x *PositionRequest) ProtoReflect() protoreflect.Message
func (*PositionRequest) Reset ¶
func (x *PositionRequest) Reset()
func (*PositionRequest) String ¶
func (x *PositionRequest) String() string
type PositionResponse ¶
type PositionResponse struct { Position *QueryPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` LockedLpToken string `protobuf:"bytes,2,opt,name=locked_lp_token,json=lockedLpToken,proto3" json:"locked_lp_token,omitempty"` // contains filtered or unexported fields }
func (*PositionResponse) Descriptor
deprecated
func (*PositionResponse) Descriptor() ([]byte, []int)
Deprecated: Use PositionResponse.ProtoReflect.Descriptor instead.
func (*PositionResponse) GetLockedLpToken ¶
func (x *PositionResponse) GetLockedLpToken() string
func (*PositionResponse) GetPosition ¶
func (x *PositionResponse) GetPosition() *QueryPosition
func (*PositionResponse) ProtoMessage ¶
func (*PositionResponse) ProtoMessage()
func (*PositionResponse) ProtoReflect ¶
func (x *PositionResponse) ProtoReflect() protoreflect.Message
func (*PositionResponse) Reset ¶
func (x *PositionResponse) Reset()
func (*PositionResponse) String ¶
func (x *PositionResponse) String() string
type PositionsByPoolRequest ¶
type PositionsByPoolRequest struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsByPoolRequest) Descriptor
deprecated
func (*PositionsByPoolRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionsByPoolRequest.ProtoReflect.Descriptor instead.
func (*PositionsByPoolRequest) GetAmmPoolId ¶
func (x *PositionsByPoolRequest) GetAmmPoolId() uint64
func (*PositionsByPoolRequest) GetPagination ¶
func (x *PositionsByPoolRequest) GetPagination() *v1beta1.PageRequest
func (*PositionsByPoolRequest) ProtoMessage ¶
func (*PositionsByPoolRequest) ProtoMessage()
func (*PositionsByPoolRequest) ProtoReflect ¶
func (x *PositionsByPoolRequest) ProtoReflect() protoreflect.Message
func (*PositionsByPoolRequest) Reset ¶
func (x *PositionsByPoolRequest) Reset()
func (*PositionsByPoolRequest) String ¶
func (x *PositionsByPoolRequest) String() string
type PositionsByPoolResponse ¶
type PositionsByPoolResponse struct { Positions []*QueryPosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsByPoolResponse) Descriptor
deprecated
func (*PositionsByPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use PositionsByPoolResponse.ProtoReflect.Descriptor instead.
func (*PositionsByPoolResponse) GetPagination ¶
func (x *PositionsByPoolResponse) GetPagination() *v1beta1.PageResponse
func (*PositionsByPoolResponse) GetPositions ¶
func (x *PositionsByPoolResponse) GetPositions() []*QueryPosition
func (*PositionsByPoolResponse) ProtoMessage ¶
func (*PositionsByPoolResponse) ProtoMessage()
func (*PositionsByPoolResponse) ProtoReflect ¶
func (x *PositionsByPoolResponse) ProtoReflect() protoreflect.Message
func (*PositionsByPoolResponse) Reset ¶
func (x *PositionsByPoolResponse) Reset()
func (*PositionsByPoolResponse) String ¶
func (x *PositionsByPoolResponse) String() string
type PositionsForAddressRequest ¶
type PositionsForAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsForAddressRequest) Descriptor
deprecated
func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionsForAddressRequest.ProtoReflect.Descriptor instead.
func (*PositionsForAddressRequest) GetAddress ¶
func (x *PositionsForAddressRequest) GetAddress() string
func (*PositionsForAddressRequest) GetPagination ¶
func (x *PositionsForAddressRequest) GetPagination() *v1beta1.PageRequest
func (*PositionsForAddressRequest) ProtoMessage ¶
func (*PositionsForAddressRequest) ProtoMessage()
func (*PositionsForAddressRequest) ProtoReflect ¶
func (x *PositionsForAddressRequest) ProtoReflect() protoreflect.Message
func (*PositionsForAddressRequest) Reset ¶
func (x *PositionsForAddressRequest) Reset()
func (*PositionsForAddressRequest) String ¶
func (x *PositionsForAddressRequest) String() string
type PositionsForAddressResponse ¶
type PositionsForAddressResponse struct { Positions []*PositionAndInterest `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsForAddressResponse) Descriptor
deprecated
func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use PositionsForAddressResponse.ProtoReflect.Descriptor instead.
func (*PositionsForAddressResponse) GetPagination ¶
func (x *PositionsForAddressResponse) GetPagination() *v1beta1.PageResponse
func (*PositionsForAddressResponse) GetPositions ¶
func (x *PositionsForAddressResponse) GetPositions() []*PositionAndInterest
func (*PositionsForAddressResponse) ProtoMessage ¶
func (*PositionsForAddressResponse) ProtoMessage()
func (*PositionsForAddressResponse) ProtoReflect ¶
func (x *PositionsForAddressResponse) ProtoReflect() protoreflect.Message
func (*PositionsForAddressResponse) Reset ¶
func (x *PositionsForAddressResponse) Reset()
func (*PositionsForAddressResponse) String ¶
func (x *PositionsForAddressResponse) String() string
type PositionsRequest ¶
type PositionsRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsRequest) Descriptor
deprecated
func (*PositionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PositionsRequest.ProtoReflect.Descriptor instead.
func (*PositionsRequest) GetPagination ¶
func (x *PositionsRequest) GetPagination() *v1beta1.PageRequest
func (*PositionsRequest) ProtoMessage ¶
func (*PositionsRequest) ProtoMessage()
func (*PositionsRequest) ProtoReflect ¶
func (x *PositionsRequest) ProtoReflect() protoreflect.Message
func (*PositionsRequest) Reset ¶
func (x *PositionsRequest) Reset()
func (*PositionsRequest) String ¶
func (x *PositionsRequest) String() string
type PositionsResponse ¶
type PositionsResponse struct { Positions []*QueryPosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*PositionsResponse) Descriptor
deprecated
func (*PositionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PositionsResponse.ProtoReflect.Descriptor instead.
func (*PositionsResponse) GetPagination ¶
func (x *PositionsResponse) GetPagination() *v1beta1.PageResponse
func (*PositionsResponse) GetPositions ¶
func (x *PositionsResponse) GetPositions() []*QueryPosition
func (*PositionsResponse) ProtoMessage ¶
func (*PositionsResponse) ProtoMessage()
func (*PositionsResponse) ProtoReflect ¶
func (x *PositionsResponse) ProtoReflect() protoreflect.Message
func (*PositionsResponse) Reset ¶
func (x *PositionsResponse) Reset()
func (*PositionsResponse) String ¶
func (x *PositionsResponse) String() string
type QueryAllPoolRequest ¶
type QueryAllPoolRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllPoolRequest) Descriptor
deprecated
func (*QueryAllPoolRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllPoolRequest.ProtoReflect.Descriptor instead.
func (*QueryAllPoolRequest) GetPagination ¶
func (x *QueryAllPoolRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAllPoolRequest) ProtoMessage ¶
func (*QueryAllPoolRequest) ProtoMessage()
func (*QueryAllPoolRequest) ProtoReflect ¶
func (x *QueryAllPoolRequest) ProtoReflect() protoreflect.Message
func (*QueryAllPoolRequest) Reset ¶
func (x *QueryAllPoolRequest) Reset()
func (*QueryAllPoolRequest) String ¶
func (x *QueryAllPoolRequest) String() string
type QueryAllPoolResponse ¶
type QueryAllPoolResponse struct { Pool []*Pool `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllPoolResponse) Descriptor
deprecated
func (*QueryAllPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllPoolResponse.ProtoReflect.Descriptor instead.
func (*QueryAllPoolResponse) GetPagination ¶
func (x *QueryAllPoolResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAllPoolResponse) GetPool ¶
func (x *QueryAllPoolResponse) GetPool() []*Pool
func (*QueryAllPoolResponse) ProtoMessage ¶
func (*QueryAllPoolResponse) ProtoMessage()
func (*QueryAllPoolResponse) ProtoReflect ¶
func (x *QueryAllPoolResponse) ProtoReflect() protoreflect.Message
func (*QueryAllPoolResponse) Reset ¶
func (x *QueryAllPoolResponse) Reset()
func (*QueryAllPoolResponse) String ¶
func (x *QueryAllPoolResponse) String() string
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) // Queries a list of GetPositions items. QueryPositions(ctx context.Context, in *PositionsRequest, opts ...grpc.CallOption) (*PositionsResponse, error) // Queries a list of GetPositionsByPool items. QueryPositionsByPool(ctx context.Context, in *PositionsByPoolRequest, opts ...grpc.CallOption) (*PositionsByPoolResponse, error) // Queries a list of GetStatus items. GetStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) // Queries a list of GetPositionsForAddress items. QueryPositionsForAddress(ctx context.Context, in *PositionsForAddressRequest, opts ...grpc.CallOption) (*PositionsForAddressResponse, error) // Queries a list of GetWhitelist items. GetWhitelist(ctx context.Context, in *WhitelistRequest, opts ...grpc.CallOption) (*WhitelistResponse, error) // Queries a list of IsWhitelisted items. IsWhitelisted(ctx context.Context, in *IsWhitelistedRequest, opts ...grpc.CallOption) (*IsWhitelistedResponse, error) // Queries a list of Pool items. Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error) Pools(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error) // Queries a list of Position items. Position(ctx context.Context, in *PositionRequest, opts ...grpc.CallOption) (*PositionResponse, error) // Query a liquidation price for a position LiquidationPrice(ctx context.Context, in *QueryLiquidationPriceRequest, opts ...grpc.CallOption) (*QueryLiquidationPriceResponse, error) // Get estimated amount of return value opening a position OpenEst(ctx context.Context, in *QueryOpenEstRequest, opts ...grpc.CallOption) (*QueryOpenEstResponse, error) // Get estimated amount of return value closing a position CloseEst(ctx context.Context, in *QueryCloseEstRequest, opts ...grpc.CallOption) (*QueryCloseEstResponse, error) // Queries rewards on leveragelp Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error) // Queries a list of CommittedTokensLocked items. CommittedTokensLocked(ctx context.Context, in *QueryCommittedTokensLockedRequest, opts ...grpc.CallOption) (*QueryCommittedTokensLockedResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryCloseEstRequest ¶
type QueryCloseEstRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` LpAmount string `protobuf:"bytes,3,opt,name=lp_amount,json=lpAmount,proto3" json:"lp_amount,omitempty"` // contains filtered or unexported fields }
func (*QueryCloseEstRequest) Descriptor
deprecated
func (*QueryCloseEstRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCloseEstRequest.ProtoReflect.Descriptor instead.
func (*QueryCloseEstRequest) GetId ¶
func (x *QueryCloseEstRequest) GetId() uint64
func (*QueryCloseEstRequest) GetLpAmount ¶
func (x *QueryCloseEstRequest) GetLpAmount() string
func (*QueryCloseEstRequest) GetOwner ¶
func (x *QueryCloseEstRequest) GetOwner() string
func (*QueryCloseEstRequest) ProtoMessage ¶
func (*QueryCloseEstRequest) ProtoMessage()
func (*QueryCloseEstRequest) ProtoReflect ¶
func (x *QueryCloseEstRequest) ProtoReflect() protoreflect.Message
func (*QueryCloseEstRequest) Reset ¶
func (x *QueryCloseEstRequest) Reset()
func (*QueryCloseEstRequest) String ¶
func (x *QueryCloseEstRequest) String() string
type QueryCloseEstResponse ¶
type QueryCloseEstResponse struct { Liability string `protobuf:"bytes,1,opt,name=liability,proto3" json:"liability,omitempty"` WeightBalanceRatio string `protobuf:"bytes,2,opt,name=weight_balance_ratio,json=weightBalanceRatio,proto3" json:"weight_balance_ratio,omitempty"` AmountReturned string `protobuf:"bytes,3,opt,name=amount_returned,json=amountReturned,proto3" json:"amount_returned,omitempty"` // contains filtered or unexported fields }
func (*QueryCloseEstResponse) Descriptor
deprecated
func (*QueryCloseEstResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCloseEstResponse.ProtoReflect.Descriptor instead.
func (*QueryCloseEstResponse) GetAmountReturned ¶
func (x *QueryCloseEstResponse) GetAmountReturned() string
func (*QueryCloseEstResponse) GetLiability ¶
func (x *QueryCloseEstResponse) GetLiability() string
func (*QueryCloseEstResponse) GetWeightBalanceRatio ¶
func (x *QueryCloseEstResponse) GetWeightBalanceRatio() string
func (*QueryCloseEstResponse) ProtoMessage ¶
func (*QueryCloseEstResponse) ProtoMessage()
func (*QueryCloseEstResponse) ProtoReflect ¶
func (x *QueryCloseEstResponse) ProtoReflect() protoreflect.Message
func (*QueryCloseEstResponse) Reset ¶
func (x *QueryCloseEstResponse) Reset()
func (*QueryCloseEstResponse) String ¶
func (x *QueryCloseEstResponse) String() string
type QueryCommittedTokensLockedRequest ¶
type QueryCommittedTokensLockedRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*QueryCommittedTokensLockedRequest) Descriptor
deprecated
func (*QueryCommittedTokensLockedRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCommittedTokensLockedRequest.ProtoReflect.Descriptor instead.
func (*QueryCommittedTokensLockedRequest) GetAddress ¶
func (x *QueryCommittedTokensLockedRequest) GetAddress() string
func (*QueryCommittedTokensLockedRequest) ProtoMessage ¶
func (*QueryCommittedTokensLockedRequest) ProtoMessage()
func (*QueryCommittedTokensLockedRequest) ProtoReflect ¶
func (x *QueryCommittedTokensLockedRequest) ProtoReflect() protoreflect.Message
func (*QueryCommittedTokensLockedRequest) Reset ¶
func (x *QueryCommittedTokensLockedRequest) Reset()
func (*QueryCommittedTokensLockedRequest) String ¶
func (x *QueryCommittedTokensLockedRequest) String() string
type QueryCommittedTokensLockedResponse ¶
type QueryCommittedTokensLockedResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` LockedCommitted []*v1beta11.Coin `protobuf:"bytes,2,rep,name=locked_committed,json=lockedCommitted,proto3" json:"locked_committed,omitempty"` TotalCommitted []*v1beta11.Coin `protobuf:"bytes,3,rep,name=total_committed,json=totalCommitted,proto3" json:"total_committed,omitempty"` // contains filtered or unexported fields }
func (*QueryCommittedTokensLockedResponse) Descriptor
deprecated
func (*QueryCommittedTokensLockedResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCommittedTokensLockedResponse.ProtoReflect.Descriptor instead.
func (*QueryCommittedTokensLockedResponse) GetAddress ¶
func (x *QueryCommittedTokensLockedResponse) GetAddress() string
func (*QueryCommittedTokensLockedResponse) GetLockedCommitted ¶
func (x *QueryCommittedTokensLockedResponse) GetLockedCommitted() []*v1beta11.Coin
func (*QueryCommittedTokensLockedResponse) GetTotalCommitted ¶
func (x *QueryCommittedTokensLockedResponse) GetTotalCommitted() []*v1beta11.Coin
func (*QueryCommittedTokensLockedResponse) ProtoMessage ¶
func (*QueryCommittedTokensLockedResponse) ProtoMessage()
func (*QueryCommittedTokensLockedResponse) ProtoReflect ¶
func (x *QueryCommittedTokensLockedResponse) ProtoReflect() protoreflect.Message
func (*QueryCommittedTokensLockedResponse) Reset ¶
func (x *QueryCommittedTokensLockedResponse) Reset()
func (*QueryCommittedTokensLockedResponse) String ¶
func (x *QueryCommittedTokensLockedResponse) String() string
type QueryGetPoolRequest ¶
type QueryGetPoolRequest struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*QueryGetPoolRequest) Descriptor
deprecated
func (*QueryGetPoolRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetPoolRequest.ProtoReflect.Descriptor instead.
func (*QueryGetPoolRequest) GetIndex ¶
func (x *QueryGetPoolRequest) GetIndex() uint64
func (*QueryGetPoolRequest) ProtoMessage ¶
func (*QueryGetPoolRequest) ProtoMessage()
func (*QueryGetPoolRequest) ProtoReflect ¶
func (x *QueryGetPoolRequest) ProtoReflect() protoreflect.Message
func (*QueryGetPoolRequest) Reset ¶
func (x *QueryGetPoolRequest) Reset()
func (*QueryGetPoolRequest) String ¶
func (x *QueryGetPoolRequest) String() string
type QueryGetPoolResponse ¶
type QueryGetPoolResponse struct { Pool *Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` // contains filtered or unexported fields }
func (*QueryGetPoolResponse) Descriptor
deprecated
func (*QueryGetPoolResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetPoolResponse.ProtoReflect.Descriptor instead.
func (*QueryGetPoolResponse) GetPool ¶
func (x *QueryGetPoolResponse) GetPool() *Pool
func (*QueryGetPoolResponse) ProtoMessage ¶
func (*QueryGetPoolResponse) ProtoMessage()
func (*QueryGetPoolResponse) ProtoReflect ¶
func (x *QueryGetPoolResponse) ProtoReflect() protoreflect.Message
func (*QueryGetPoolResponse) Reset ¶
func (x *QueryGetPoolResponse) Reset()
func (*QueryGetPoolResponse) String ¶
func (x *QueryGetPoolResponse) String() string
type QueryLiquidationPriceRequest ¶
type QueryLiquidationPriceRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // contains filtered or unexported fields }
func (*QueryLiquidationPriceRequest) Descriptor
deprecated
func (*QueryLiquidationPriceRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryLiquidationPriceRequest.ProtoReflect.Descriptor instead.
func (*QueryLiquidationPriceRequest) GetAddress ¶
func (x *QueryLiquidationPriceRequest) GetAddress() string
func (*QueryLiquidationPriceRequest) GetPositionId ¶
func (x *QueryLiquidationPriceRequest) GetPositionId() uint64
func (*QueryLiquidationPriceRequest) ProtoMessage ¶
func (*QueryLiquidationPriceRequest) ProtoMessage()
func (*QueryLiquidationPriceRequest) ProtoReflect ¶
func (x *QueryLiquidationPriceRequest) ProtoReflect() protoreflect.Message
func (*QueryLiquidationPriceRequest) Reset ¶
func (x *QueryLiquidationPriceRequest) Reset()
func (*QueryLiquidationPriceRequest) String ¶
func (x *QueryLiquidationPriceRequest) String() string
type QueryLiquidationPriceResponse ¶
type QueryLiquidationPriceResponse struct { Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*QueryLiquidationPriceResponse) Descriptor
deprecated
func (*QueryLiquidationPriceResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryLiquidationPriceResponse.ProtoReflect.Descriptor instead.
func (*QueryLiquidationPriceResponse) GetPrice ¶
func (x *QueryLiquidationPriceResponse) GetPrice() string
func (*QueryLiquidationPriceResponse) ProtoMessage ¶
func (*QueryLiquidationPriceResponse) ProtoMessage()
func (*QueryLiquidationPriceResponse) ProtoReflect ¶
func (x *QueryLiquidationPriceResponse) ProtoReflect() protoreflect.Message
func (*QueryLiquidationPriceResponse) Reset ¶
func (x *QueryLiquidationPriceResponse) Reset()
func (*QueryLiquidationPriceResponse) String ¶
func (x *QueryLiquidationPriceResponse) String() string
type QueryOpenEstRequest ¶
type QueryOpenEstRequest struct { CollateralAsset string `protobuf:"bytes,1,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"` CollateralAmount string `protobuf:"bytes,2,opt,name=collateral_amount,json=collateralAmount,proto3" json:"collateral_amount,omitempty"` AmmPoolId uint64 `protobuf:"varint,3,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Leverage string `protobuf:"bytes,4,opt,name=leverage,proto3" json:"leverage,omitempty"` // contains filtered or unexported fields }
func (*QueryOpenEstRequest) Descriptor
deprecated
func (*QueryOpenEstRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryOpenEstRequest.ProtoReflect.Descriptor instead.
func (*QueryOpenEstRequest) GetAmmPoolId ¶
func (x *QueryOpenEstRequest) GetAmmPoolId() uint64
func (*QueryOpenEstRequest) GetCollateralAmount ¶
func (x *QueryOpenEstRequest) GetCollateralAmount() string
func (*QueryOpenEstRequest) GetCollateralAsset ¶
func (x *QueryOpenEstRequest) GetCollateralAsset() string
func (*QueryOpenEstRequest) GetLeverage ¶
func (x *QueryOpenEstRequest) GetLeverage() string
func (*QueryOpenEstRequest) ProtoMessage ¶
func (*QueryOpenEstRequest) ProtoMessage()
func (*QueryOpenEstRequest) ProtoReflect ¶
func (x *QueryOpenEstRequest) ProtoReflect() protoreflect.Message
func (*QueryOpenEstRequest) Reset ¶
func (x *QueryOpenEstRequest) Reset()
func (*QueryOpenEstRequest) String ¶
func (x *QueryOpenEstRequest) String() string
type QueryOpenEstResponse ¶
type QueryOpenEstResponse struct { PositionSize string `protobuf:"bytes,1,opt,name=position_size,json=positionSize,proto3" json:"position_size,omitempty"` WeightBalanceRatio string `protobuf:"bytes,2,opt,name=weight_balance_ratio,json=weightBalanceRatio,proto3" json:"weight_balance_ratio,omitempty"` BorrowFee string `protobuf:"bytes,3,opt,name=borrow_fee,json=borrowFee,proto3" json:"borrow_fee,omitempty"` // contains filtered or unexported fields }
func (*QueryOpenEstResponse) Descriptor
deprecated
func (*QueryOpenEstResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryOpenEstResponse.ProtoReflect.Descriptor instead.
func (*QueryOpenEstResponse) GetBorrowFee ¶
func (x *QueryOpenEstResponse) GetBorrowFee() string
func (*QueryOpenEstResponse) GetPositionSize ¶
func (x *QueryOpenEstResponse) GetPositionSize() string
func (*QueryOpenEstResponse) GetWeightBalanceRatio ¶
func (x *QueryOpenEstResponse) GetWeightBalanceRatio() string
func (*QueryOpenEstResponse) ProtoMessage ¶
func (*QueryOpenEstResponse) ProtoMessage()
func (*QueryOpenEstResponse) ProtoReflect ¶
func (x *QueryOpenEstResponse) ProtoReflect() protoreflect.Message
func (*QueryOpenEstResponse) Reset ¶
func (x *QueryOpenEstResponse) Reset()
func (*QueryOpenEstResponse) String ¶
func (x *QueryOpenEstResponse) String() string
type QueryPosition ¶
type QueryPosition struct { Position *Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` UpdatedLeverage string `protobuf:"bytes,2,opt,name=updated_leverage,json=updatedLeverage,proto3" json:"updated_leverage,omitempty"` PositionUsdValue string `protobuf:"bytes,3,opt,name=position_usd_value,json=positionUsdValue,proto3" json:"position_usd_value,omitempty"` // contains filtered or unexported fields }
func (*QueryPosition) Descriptor
deprecated
func (*QueryPosition) Descriptor() ([]byte, []int)
Deprecated: Use QueryPosition.ProtoReflect.Descriptor instead.
func (*QueryPosition) GetPosition ¶
func (x *QueryPosition) GetPosition() *Position
func (*QueryPosition) GetPositionUsdValue ¶
func (x *QueryPosition) GetPositionUsdValue() string
func (*QueryPosition) GetUpdatedLeverage ¶
func (x *QueryPosition) GetUpdatedLeverage() string
func (*QueryPosition) ProtoMessage ¶
func (*QueryPosition) ProtoMessage()
func (*QueryPosition) ProtoReflect ¶
func (x *QueryPosition) ProtoReflect() protoreflect.Message
func (*QueryPosition) Reset ¶
func (x *QueryPosition) Reset()
func (*QueryPosition) String ¶
func (x *QueryPosition) String() string
type QueryRewardsRequest ¶
type QueryRewardsRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Ids []uint64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*QueryRewardsRequest) Descriptor
deprecated
func (*QueryRewardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRewardsRequest.ProtoReflect.Descriptor instead.
func (*QueryRewardsRequest) GetAddress ¶
func (x *QueryRewardsRequest) GetAddress() string
func (*QueryRewardsRequest) GetIds ¶
func (x *QueryRewardsRequest) GetIds() []uint64
func (*QueryRewardsRequest) ProtoMessage ¶
func (*QueryRewardsRequest) ProtoMessage()
func (*QueryRewardsRequest) ProtoReflect ¶
func (x *QueryRewardsRequest) ProtoReflect() protoreflect.Message
func (*QueryRewardsRequest) Reset ¶
func (x *QueryRewardsRequest) Reset()
func (*QueryRewardsRequest) String ¶
func (x *QueryRewardsRequest) String() string
type QueryRewardsResponse ¶
type QueryRewardsResponse struct { Rewards []*RewardInfo `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` TotalRewards []*v1beta11.Coin `protobuf:"bytes,2,rep,name=total_rewards,json=totalRewards,proto3" json:"total_rewards,omitempty"` // contains filtered or unexported fields }
func (*QueryRewardsResponse) Descriptor
deprecated
func (*QueryRewardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryRewardsResponse.ProtoReflect.Descriptor instead.
func (*QueryRewardsResponse) GetRewards ¶
func (x *QueryRewardsResponse) GetRewards() []*RewardInfo
func (*QueryRewardsResponse) GetTotalRewards ¶
func (x *QueryRewardsResponse) GetTotalRewards() []*v1beta11.Coin
func (*QueryRewardsResponse) ProtoMessage ¶
func (*QueryRewardsResponse) ProtoMessage()
func (*QueryRewardsResponse) ProtoReflect ¶
func (x *QueryRewardsResponse) ProtoReflect() protoreflect.Message
func (*QueryRewardsResponse) Reset ¶
func (x *QueryRewardsResponse) Reset()
func (*QueryRewardsResponse) String ¶
func (x *QueryRewardsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) // Queries a list of GetPositions items. QueryPositions(context.Context, *PositionsRequest) (*PositionsResponse, error) // Queries a list of GetPositionsByPool items. QueryPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error) // Queries a list of GetStatus items. GetStatus(context.Context, *StatusRequest) (*StatusResponse, error) // Queries a list of GetPositionsForAddress items. QueryPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error) // Queries a list of GetWhitelist items. GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error) // Queries a list of IsWhitelisted items. IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error) // Queries a list of Pool items. Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error) Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error) // Queries a list of Position items. Position(context.Context, *PositionRequest) (*PositionResponse, error) // Query a liquidation price for a position LiquidationPrice(context.Context, *QueryLiquidationPriceRequest) (*QueryLiquidationPriceResponse, error) // Get estimated amount of return value opening a position OpenEst(context.Context, *QueryOpenEstRequest) (*QueryOpenEstResponse, error) // Get estimated amount of return value closing a position CloseEst(context.Context, *QueryCloseEstRequest) (*QueryCloseEstResponse, error) // Queries rewards on leveragelp Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error) // Queries a list of CommittedTokensLocked items. CommittedTokensLocked(context.Context, *QueryCommittedTokensLockedRequest) (*QueryCommittedTokensLockedResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type RewardInfo ¶
type RewardInfo struct { PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` Reward []*v1beta11.Coin `protobuf:"bytes,2,rep,name=reward,proto3" json:"reward,omitempty"` // contains filtered or unexported fields }
func (*RewardInfo) Descriptor
deprecated
func (*RewardInfo) Descriptor() ([]byte, []int)
Deprecated: Use RewardInfo.ProtoReflect.Descriptor instead.
func (*RewardInfo) GetPositionId ¶
func (x *RewardInfo) GetPositionId() uint64
func (*RewardInfo) GetReward ¶
func (x *RewardInfo) GetReward() []*v1beta11.Coin
func (*RewardInfo) ProtoMessage ¶
func (*RewardInfo) ProtoMessage()
func (*RewardInfo) ProtoReflect ¶
func (x *RewardInfo) ProtoReflect() protoreflect.Message
func (*RewardInfo) Reset ¶
func (x *RewardInfo) Reset()
func (*RewardInfo) String ¶
func (x *RewardInfo) String() string
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct { OpenPositionCount uint64 `protobuf:"varint,1,opt,name=open_position_count,json=openPositionCount,proto3" json:"open_position_count,omitempty"` LifetimePositionCount uint64 `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetLifetimePositionCount ¶
func (x *StatusResponse) GetLifetimePositionCount() uint64
func (*StatusResponse) GetOpenPositionCount ¶
func (x *StatusResponse) GetOpenPositionCount() uint64
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) AddPool ¶
func (UnimplementedMsgServer) AddPool(context.Context, *MsgAddPool) (*MsgAddPoolResponse, error)
func (UnimplementedMsgServer) ClaimRewards ¶
func (UnimplementedMsgServer) ClaimRewards(context.Context, *MsgClaimRewards) (*MsgClaimRewardsResponse, error)
func (UnimplementedMsgServer) Close ¶
func (UnimplementedMsgServer) Close(context.Context, *MsgClose) (*MsgCloseResponse, error)
func (UnimplementedMsgServer) ClosePositions ¶
func (UnimplementedMsgServer) ClosePositions(context.Context, *MsgClosePositions) (*MsgClosePositionsResponse, error)
func (UnimplementedMsgServer) Dewhitelist ¶
func (UnimplementedMsgServer) Dewhitelist(context.Context, *MsgDewhitelist) (*MsgDewhitelistResponse, error)
func (UnimplementedMsgServer) Open ¶
func (UnimplementedMsgServer) Open(context.Context, *MsgOpen) (*MsgOpenResponse, error)
func (UnimplementedMsgServer) RemovePool ¶
func (UnimplementedMsgServer) RemovePool(context.Context, *MsgRemovePool) (*MsgRemovePoolResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (UnimplementedMsgServer) UpdateStopLoss ¶
func (UnimplementedMsgServer) UpdateStopLoss(context.Context, *MsgUpdateStopLoss) (*MsgUpdateStopLossResponse, error)
func (UnimplementedMsgServer) Whitelist ¶
func (UnimplementedMsgServer) Whitelist(context.Context, *MsgWhitelist) (*MsgWhitelistResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) CloseEst ¶
func (UnimplementedQueryServer) CloseEst(context.Context, *QueryCloseEstRequest) (*QueryCloseEstResponse, error)
func (UnimplementedQueryServer) CommittedTokensLocked ¶
func (UnimplementedQueryServer) CommittedTokensLocked(context.Context, *QueryCommittedTokensLockedRequest) (*QueryCommittedTokensLockedResponse, error)
func (UnimplementedQueryServer) GetStatus ¶
func (UnimplementedQueryServer) GetStatus(context.Context, *StatusRequest) (*StatusResponse, error)
func (UnimplementedQueryServer) GetWhitelist ¶
func (UnimplementedQueryServer) GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error)
func (UnimplementedQueryServer) IsWhitelisted ¶
func (UnimplementedQueryServer) IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error)
func (UnimplementedQueryServer) LiquidationPrice ¶
func (UnimplementedQueryServer) LiquidationPrice(context.Context, *QueryLiquidationPriceRequest) (*QueryLiquidationPriceResponse, error)
func (UnimplementedQueryServer) OpenEst ¶
func (UnimplementedQueryServer) OpenEst(context.Context, *QueryOpenEstRequest) (*QueryOpenEstResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
func (UnimplementedQueryServer) Pool ¶
func (UnimplementedQueryServer) Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error)
func (UnimplementedQueryServer) Pools ¶
func (UnimplementedQueryServer) Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error)
func (UnimplementedQueryServer) Position ¶
func (UnimplementedQueryServer) Position(context.Context, *PositionRequest) (*PositionResponse, error)
func (UnimplementedQueryServer) QueryPositions ¶
func (UnimplementedQueryServer) QueryPositions(context.Context, *PositionsRequest) (*PositionsResponse, error)
func (UnimplementedQueryServer) QueryPositionsByPool ¶
func (UnimplementedQueryServer) QueryPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error)
func (UnimplementedQueryServer) QueryPositionsForAddress ¶
func (UnimplementedQueryServer) QueryPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
func (UnimplementedQueryServer) Rewards ¶
func (UnimplementedQueryServer) Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, 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.
type WhitelistRequest ¶
type WhitelistRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*WhitelistRequest) Descriptor
deprecated
func (*WhitelistRequest) Descriptor() ([]byte, []int)
Deprecated: Use WhitelistRequest.ProtoReflect.Descriptor instead.
func (*WhitelistRequest) GetPagination ¶
func (x *WhitelistRequest) GetPagination() *v1beta1.PageRequest
func (*WhitelistRequest) ProtoMessage ¶
func (*WhitelistRequest) ProtoMessage()
func (*WhitelistRequest) ProtoReflect ¶
func (x *WhitelistRequest) ProtoReflect() protoreflect.Message
func (*WhitelistRequest) Reset ¶
func (x *WhitelistRequest) Reset()
func (*WhitelistRequest) String ¶
func (x *WhitelistRequest) String() string
type WhitelistResponse ¶
type WhitelistResponse struct { Whitelist []string `protobuf:"bytes,1,rep,name=whitelist,proto3" json:"whitelist,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*WhitelistResponse) Descriptor
deprecated
func (*WhitelistResponse) Descriptor() ([]byte, []int)
Deprecated: Use WhitelistResponse.ProtoReflect.Descriptor instead.
func (*WhitelistResponse) GetPagination ¶
func (x *WhitelistResponse) GetPagination() *v1beta1.PageResponse
func (*WhitelistResponse) GetWhitelist ¶
func (x *WhitelistResponse) GetWhitelist() []string
func (*WhitelistResponse) ProtoMessage ¶
func (*WhitelistResponse) ProtoMessage()
func (*WhitelistResponse) ProtoReflect ¶
func (x *WhitelistResponse) ProtoReflect() protoreflect.Message
func (*WhitelistResponse) Reset ¶
func (x *WhitelistResponse) Reset()
func (*WhitelistResponse) String ¶
func (x *WhitelistResponse) String() string