Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AddOrAppendCoin(coins sdk.Coins, coin sdk.Coin) sdk.Coins
- func CalcFundingRate(longAmount, shortAmount sdk.Int, baseRate, maxRate, minRate sdk.Dec) sdk.Dec
- func CalcMTPConsolidateLiability(mtp *MTP) sdk.Dec
- func CalcMTPTakeProfitCustody(mtp *MTP) sdk.Int
- func CalcTakeAmount(custodyAmount sdk.Int, custodyAsset string, fundingRate sdk.Dec) sdk.Int
- func CheckLongAssets(collateralAsset string, borrowAsset string, baseCurrency string) error
- func CheckShortAssets(collateralAsset string, borrowAsset string, baseCurrency string) error
- func GenerateOpenEvent(mtp *MTP) sdk.Event
- func GetAmmPoolBalance(ammPool ammtypes.Pool, assetDenom string) (sdk.Int, error)
- func GetMTPKey(address string, id uint64) []byte
- func GetMTPPrefixForAddress(address string) []byte
- func GetMarginPoolBalances(marginPool Pool, denom string) (sdk.Int, sdk.Int, sdk.Int)
- func GetMarginPoolBalancesByPosition(marginPool Pool, denom string, position Position) (sdk.Int, sdk.Int, sdk.Int)
- func GetUint64Bytes(ID uint64) []byte
- func GetUint64FromBytes(bz []byte) uint64
- func GetWhitelistKey(address string) []byte
- func HasSufficientPoolBalance(ammPool ammtypes.Pool, assetDenom string, requiredAmount sdk.Int) bool
- func IsTakeProfitPriceInifite(mtp *MTP) bool
- func KeyPrefix(p string) []byte
- func NewMarginCollateralAddress(positionId uint64) sdk.AccAddress
- func NewMarginCustodyAddress(positionId uint64) sdk.AccAddress
- func ParamKeyTable() paramtypes.KeyTable
- func PoolKey(index uint64) []byte
- func ReachedTakeProfitPrice(mtp *MTP, assetPrice sdk.Int) bool
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateCollateralAsset(collateralAsset string, baseCurrency string) error
- type AccountKeeper
- type AmmKeeper
- type AssetProfileKeeper
- type AuthorizationChecker
- type BankKeeper
- type CloseLongChecker
- type CloseShortChecker
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAddressWhitelist() []string
- func (m *GenesisState) GetMtpList() []MTP
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPoolList() []Pool
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type IsWhitelistedRequest
- func (*IsWhitelistedRequest) Descriptor() ([]byte, []int)
- func (m *IsWhitelistedRequest) GetAddress() string
- func (m *IsWhitelistedRequest) Marshal() (dAtA []byte, err error)
- func (m *IsWhitelistedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *IsWhitelistedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IsWhitelistedRequest) ProtoMessage()
- func (m *IsWhitelistedRequest) Reset()
- func (m *IsWhitelistedRequest) Size() (n int)
- func (m *IsWhitelistedRequest) String() string
- func (m *IsWhitelistedRequest) Unmarshal(dAtA []byte) error
- func (m *IsWhitelistedRequest) XXX_DiscardUnknown()
- func (m *IsWhitelistedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsWhitelistedRequest) XXX_Merge(src proto.Message)
- func (m *IsWhitelistedRequest) XXX_Size() int
- func (m *IsWhitelistedRequest) XXX_Unmarshal(b []byte) error
- type IsWhitelistedResponse
- func (*IsWhitelistedResponse) Descriptor() ([]byte, []int)
- func (m *IsWhitelistedResponse) GetAddress() string
- func (m *IsWhitelistedResponse) GetIsWhitelisted() bool
- func (m *IsWhitelistedResponse) Marshal() (dAtA []byte, err error)
- func (m *IsWhitelistedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *IsWhitelistedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IsWhitelistedResponse) ProtoMessage()
- func (m *IsWhitelistedResponse) Reset()
- func (m *IsWhitelistedResponse) Size() (n int)
- func (m *IsWhitelistedResponse) String() string
- func (m *IsWhitelistedResponse) Unmarshal(dAtA []byte) error
- func (m *IsWhitelistedResponse) XXX_DiscardUnknown()
- func (m *IsWhitelistedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsWhitelistedResponse) XXX_Merge(src proto.Message)
- func (m *IsWhitelistedResponse) XXX_Size() int
- func (m *IsWhitelistedResponse) XXX_Unmarshal(b []byte) error
- type MTP
- func (*MTP) Descriptor() ([]byte, []int)
- func (m *MTP) GetAddress() string
- func (m *MTP) GetAmmPoolId() uint64
- func (m *MTP) GetCollateralAsset() string
- func (m *MTP) GetCustodyAsset() string
- func (m *MTP) GetId() uint64
- func (m *MTP) GetLiabilitiesAsset() string
- func (m *MTP) GetPosition() Position
- func (m *MTP) GetTradingAsset() string
- func (m *MTP) Marshal() (dAtA []byte, err error)
- func (m *MTP) MarshalTo(dAtA []byte) (int, error)
- func (m *MTP) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MTP) ProtoMessage()
- func (m *MTP) Reset()
- func (m *MTP) Size() (n int)
- func (m *MTP) String() string
- func (m *MTP) Unmarshal(dAtA []byte) error
- func (mtp MTP) Validate() error
- func (m *MTP) XXX_DiscardUnknown()
- func (m *MTP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MTP) XXX_Merge(src proto.Message)
- func (m *MTP) XXX_Size() int
- func (m *MTP) XXX_Unmarshal(b []byte) error
- type MTPRequest
- func (*MTPRequest) Descriptor() ([]byte, []int)
- func (m *MTPRequest) GetAddress() string
- func (m *MTPRequest) GetId() uint64
- func (m *MTPRequest) Marshal() (dAtA []byte, err error)
- func (m *MTPRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MTPRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MTPRequest) ProtoMessage()
- func (m *MTPRequest) Reset()
- func (m *MTPRequest) Size() (n int)
- func (m *MTPRequest) String() string
- func (m *MTPRequest) Unmarshal(dAtA []byte) error
- func (m *MTPRequest) XXX_DiscardUnknown()
- func (m *MTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MTPRequest) XXX_Merge(src proto.Message)
- func (m *MTPRequest) XXX_Size() int
- func (m *MTPRequest) XXX_Unmarshal(b []byte) error
- type MTPResponse
- func (*MTPResponse) Descriptor() ([]byte, []int)
- func (m *MTPResponse) GetMtp() *MTP
- func (m *MTPResponse) Marshal() (dAtA []byte, err error)
- func (m *MTPResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MTPResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MTPResponse) ProtoMessage()
- func (m *MTPResponse) Reset()
- func (m *MTPResponse) Size() (n int)
- func (m *MTPResponse) String() string
- func (m *MTPResponse) Unmarshal(dAtA []byte) error
- func (m *MTPResponse) XXX_DiscardUnknown()
- func (m *MTPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MTPResponse) XXX_Merge(src proto.Message)
- func (m *MTPResponse) XXX_Size() int
- func (m *MTPResponse) XXX_Unmarshal(b []byte) error
- type MarginHooks
- type MsgClient
- type MsgClose
- func (*MsgClose) Descriptor() ([]byte, []int)
- func (m *MsgClose) GetCreator() string
- func (m *MsgClose) GetId() uint64
- func (msg *MsgClose) GetSignBytes() []byte
- func (msg *MsgClose) GetSigners() []sdk.AccAddress
- func (m *MsgClose) Marshal() (dAtA []byte, err error)
- func (m *MsgClose) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClose) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClose) ProtoMessage()
- func (m *MsgClose) Reset()
- func (msg *MsgClose) Route() string
- func (m *MsgClose) Size() (n int)
- func (m *MsgClose) String() string
- func (msg *MsgClose) Type() string
- func (m *MsgClose) Unmarshal(dAtA []byte) error
- func (msg *MsgClose) ValidateBasic() error
- func (m *MsgClose) XXX_DiscardUnknown()
- func (m *MsgClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClose) XXX_Merge(src proto.Message)
- func (m *MsgClose) XXX_Size() int
- func (m *MsgClose) XXX_Unmarshal(b []byte) error
- type MsgCloseResponse
- func (*MsgCloseResponse) Descriptor() ([]byte, []int)
- func (m *MsgCloseResponse) GetId() uint64
- func (m *MsgCloseResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseResponse) ProtoMessage()
- func (m *MsgCloseResponse) Reset()
- func (m *MsgCloseResponse) Size() (n int)
- func (m *MsgCloseResponse) String() string
- func (m *MsgCloseResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCloseResponse) XXX_DiscardUnknown()
- func (m *MsgCloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseResponse) XXX_Merge(src proto.Message)
- func (m *MsgCloseResponse) XXX_Size() int
- func (m *MsgCloseResponse) XXX_Unmarshal(b []byte) error
- type MsgDewhitelist
- func (*MsgDewhitelist) Descriptor() ([]byte, []int)
- func (m *MsgDewhitelist) GetAuthority() string
- func (msg *MsgDewhitelist) GetSignBytes() []byte
- func (msg *MsgDewhitelist) GetSigners() []sdk.AccAddress
- func (m *MsgDewhitelist) GetWhitelistedAddress() string
- func (m *MsgDewhitelist) Marshal() (dAtA []byte, err error)
- func (m *MsgDewhitelist) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDewhitelist) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDewhitelist) ProtoMessage()
- func (m *MsgDewhitelist) Reset()
- func (msg *MsgDewhitelist) Route() string
- func (m *MsgDewhitelist) Size() (n int)
- func (m *MsgDewhitelist) String() string
- func (msg *MsgDewhitelist) Type() string
- func (m *MsgDewhitelist) Unmarshal(dAtA []byte) error
- func (msg *MsgDewhitelist) ValidateBasic() error
- func (m *MsgDewhitelist) XXX_DiscardUnknown()
- func (m *MsgDewhitelist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDewhitelist) XXX_Merge(src proto.Message)
- func (m *MsgDewhitelist) XXX_Size() int
- func (m *MsgDewhitelist) XXX_Unmarshal(b []byte) error
- type MsgDewhitelistResponse
- func (*MsgDewhitelistResponse) Descriptor() ([]byte, []int)
- func (m *MsgDewhitelistResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDewhitelistResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDewhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDewhitelistResponse) ProtoMessage()
- func (m *MsgDewhitelistResponse) Reset()
- func (m *MsgDewhitelistResponse) Size() (n int)
- func (m *MsgDewhitelistResponse) String() string
- func (m *MsgDewhitelistResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDewhitelistResponse) XXX_DiscardUnknown()
- func (m *MsgDewhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDewhitelistResponse) XXX_Merge(src proto.Message)
- func (m *MsgDewhitelistResponse) XXX_Size() int
- func (m *MsgDewhitelistResponse) XXX_Unmarshal(b []byte) error
- type MsgOpen
- func (*MsgOpen) Descriptor() ([]byte, []int)
- func (m *MsgOpen) GetCollateral() types.Coin
- func (m *MsgOpen) GetCreator() string
- func (m *MsgOpen) GetPosition() Position
- func (msg *MsgOpen) GetSignBytes() []byte
- func (msg *MsgOpen) GetSigners() []sdk.AccAddress
- func (m *MsgOpen) GetTradingAsset() string
- func (m *MsgOpen) Marshal() (dAtA []byte, err error)
- func (m *MsgOpen) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgOpen) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgOpen) ProtoMessage()
- func (m *MsgOpen) Reset()
- func (msg *MsgOpen) Route() string
- func (m *MsgOpen) Size() (n int)
- func (m *MsgOpen) String() string
- func (msg *MsgOpen) Type() string
- func (m *MsgOpen) Unmarshal(dAtA []byte) error
- func (msg *MsgOpen) ValidateBasic() error
- func (m *MsgOpen) XXX_DiscardUnknown()
- func (m *MsgOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgOpen) XXX_Merge(src proto.Message)
- func (m *MsgOpen) XXX_Size() int
- func (m *MsgOpen) XXX_Unmarshal(b []byte) error
- type MsgOpenResponse
- func (*MsgOpenResponse) Descriptor() ([]byte, []int)
- func (m *MsgOpenResponse) GetId() uint64
- func (m *MsgOpenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgOpenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgOpenResponse) ProtoMessage()
- func (m *MsgOpenResponse) Reset()
- func (m *MsgOpenResponse) Size() (n int)
- func (m *MsgOpenResponse) String() string
- func (m *MsgOpenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgOpenResponse) XXX_DiscardUnknown()
- func (m *MsgOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgOpenResponse) XXX_Merge(src proto.Message)
- func (m *MsgOpenResponse) XXX_Size() int
- func (m *MsgOpenResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() *Params
- func (msg *MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdatePools
- func (*MsgUpdatePools) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePools) GetAuthority() string
- func (m *MsgUpdatePools) GetClosedPools() []string
- func (m *MsgUpdatePools) GetPools() []string
- func (msg *MsgUpdatePools) GetSignBytes() []byte
- func (msg *MsgUpdatePools) GetSigners() []sdk.AccAddress
- func (m *MsgUpdatePools) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePools) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePools) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePools) ProtoMessage()
- func (m *MsgUpdatePools) Reset()
- func (msg *MsgUpdatePools) Route() string
- func (m *MsgUpdatePools) Size() (n int)
- func (m *MsgUpdatePools) String() string
- func (msg *MsgUpdatePools) Type() string
- func (m *MsgUpdatePools) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdatePools) ValidateBasic() error
- func (m *MsgUpdatePools) XXX_DiscardUnknown()
- func (m *MsgUpdatePools) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePools) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePools) XXX_Size() int
- func (m *MsgUpdatePools) XXX_Unmarshal(b []byte) error
- type MsgUpdatePoolsResponse
- func (*MsgUpdatePoolsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePoolsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePoolsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePoolsResponse) ProtoMessage()
- func (m *MsgUpdatePoolsResponse) Reset()
- func (m *MsgUpdatePoolsResponse) Size() (n int)
- func (m *MsgUpdatePoolsResponse) String() string
- func (m *MsgUpdatePoolsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdatePoolsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdatePoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePoolsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePoolsResponse) XXX_Size() int
- func (m *MsgUpdatePoolsResponse) XXX_Unmarshal(b []byte) error
- type MsgWhitelist
- func (*MsgWhitelist) Descriptor() ([]byte, []int)
- func (m *MsgWhitelist) GetAuthority() string
- func (msg *MsgWhitelist) GetSignBytes() []byte
- func (msg *MsgWhitelist) GetSigners() []sdk.AccAddress
- func (m *MsgWhitelist) GetWhitelistedAddress() string
- func (m *MsgWhitelist) Marshal() (dAtA []byte, err error)
- func (m *MsgWhitelist) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWhitelist) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWhitelist) ProtoMessage()
- func (m *MsgWhitelist) Reset()
- func (msg *MsgWhitelist) Route() string
- func (m *MsgWhitelist) Size() (n int)
- func (m *MsgWhitelist) String() string
- func (msg *MsgWhitelist) Type() string
- func (m *MsgWhitelist) Unmarshal(dAtA []byte) error
- func (msg *MsgWhitelist) ValidateBasic() error
- func (m *MsgWhitelist) XXX_DiscardUnknown()
- func (m *MsgWhitelist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWhitelist) XXX_Merge(src proto.Message)
- func (m *MsgWhitelist) XXX_Size() int
- func (m *MsgWhitelist) XXX_Unmarshal(b []byte) error
- type MsgWhitelistResponse
- func (*MsgWhitelistResponse) Descriptor() ([]byte, []int)
- func (m *MsgWhitelistResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWhitelistResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWhitelistResponse) ProtoMessage()
- func (m *MsgWhitelistResponse) Reset()
- func (m *MsgWhitelistResponse) Size() (n int)
- func (m *MsgWhitelistResponse) String() string
- func (m *MsgWhitelistResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWhitelistResponse) XXX_DiscardUnknown()
- func (m *MsgWhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWhitelistResponse) XXX_Merge(src proto.Message)
- func (m *MsgWhitelistResponse) XXX_Size() int
- func (m *MsgWhitelistResponse) XXX_Unmarshal(b []byte) error
- type MultiMarginHooks
- func (h MultiMarginHooks) AfterAmmExitPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool)
- func (h MultiMarginHooks) AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool)
- func (h MultiMarginHooks) AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool)
- func (h MultiMarginHooks) AfterAmmSwap(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool)
- func (h MultiMarginHooks) AfterMarginPositionClosed(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool)
- func (h MultiMarginHooks) AfterMarginPositionModified(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool)
- func (h MultiMarginHooks) AfterMarginPositionOpen(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool)
- type OpenChecker
- type OpenLongChecker
- type OpenShortChecker
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEpochLength() int64
- func (m *Params) GetForceCloseFundAddress() string
- func (m *Params) GetFundingFeeCollectionAddress() string
- func (m *Params) GetIncrementalBorrowInterestPaymentEnabled() bool
- func (m *Params) GetIncrementalBorrowInterestPaymentFundAddress() string
- func (m *Params) GetInvariantCheckEpoch() string
- func (m *Params) GetMaxOpenPositions() int64
- func (m *Params) GetWhitelistingEnabled() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type ParamsRequest
- func (*ParamsRequest) Descriptor() ([]byte, []int)
- func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsRequest) ProtoMessage()
- func (m *ParamsRequest) Reset()
- func (m *ParamsRequest) Size() (n int)
- func (m *ParamsRequest) String() string
- func (m *ParamsRequest) Unmarshal(dAtA []byte) error
- func (m *ParamsRequest) XXX_DiscardUnknown()
- func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsRequest) XXX_Merge(src proto.Message)
- func (m *ParamsRequest) XXX_Size() int
- func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
- type ParamsResponse
- func (*ParamsResponse) Descriptor() ([]byte, []int)
- func (m *ParamsResponse) GetParams() Params
- func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsResponse) ProtoMessage()
- func (m *ParamsResponse) Reset()
- func (m *ParamsResponse) Size() (n int)
- func (m *ParamsResponse) String() string
- func (m *ParamsResponse) Unmarshal(dAtA []byte) error
- func (m *ParamsResponse) XXX_DiscardUnknown()
- func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsResponse) XXX_Merge(src proto.Message)
- func (m *ParamsResponse) XXX_Size() int
- func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
- type Pool
- func (*Pool) Descriptor() ([]byte, []int)
- func (m *Pool) GetAmmPoolId() uint64
- func (m *Pool) GetClosed() bool
- func (m *Pool) GetEnabled() bool
- func (m *Pool) GetLastHeightBorrowInterestRateComputed() int64
- func (p *Pool) GetPoolAsset(position Position, assetDenom string) *PoolAsset
- func (p *Pool) GetPoolAssets(position Position) *[]PoolAsset
- func (m *Pool) GetPoolAssetsLong() []PoolAsset
- func (m *Pool) GetPoolAssetsShort() []PoolAsset
- func (p *Pool) InitiatePool(ctx sdk.Context, ammPool *ammtypes.Pool) error
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (p *Pool) UpdateBalance(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, ...) error
- func (p *Pool) UpdateBlockBorrowInterest(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, ...) error
- func (p *Pool) UpdateCustody(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, ...) error
- func (p *Pool) UpdateLiabilities(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, ...) error
- func (p *Pool) UpdateTakeProfitCustody(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, ...) error
- func (p *Pool) UpdateTakeProfitLiabilities(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, ...) error
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type PoolAsset
- func (*PoolAsset) Descriptor() ([]byte, []int)
- func (m *PoolAsset) GetAssetDenom() string
- func (m *PoolAsset) Marshal() (dAtA []byte, err error)
- func (m *PoolAsset) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolAsset) ProtoMessage()
- func (m *PoolAsset) Reset()
- func (m *PoolAsset) Size() (n int)
- func (m *PoolAsset) String() string
- func (m *PoolAsset) Unmarshal(dAtA []byte) error
- func (m *PoolAsset) XXX_DiscardUnknown()
- func (m *PoolAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolAsset) XXX_Merge(src proto.Message)
- func (m *PoolAsset) XXX_Size() int
- func (m *PoolAsset) XXX_Unmarshal(b []byte) error
- type PoolChecker
- type Position
- type PositionChecker
- type PositionsByPoolRequest
- func (*PositionsByPoolRequest) Descriptor() ([]byte, []int)
- func (m *PositionsByPoolRequest) GetAmmPoolId() uint64
- func (m *PositionsByPoolRequest) GetPagination() *query.PageRequest
- func (m *PositionsByPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *PositionsByPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionsByPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionsByPoolRequest) ProtoMessage()
- func (m *PositionsByPoolRequest) Reset()
- func (m *PositionsByPoolRequest) Size() (n int)
- func (m *PositionsByPoolRequest) String() string
- func (m *PositionsByPoolRequest) Unmarshal(dAtA []byte) error
- func (m *PositionsByPoolRequest) XXX_DiscardUnknown()
- func (m *PositionsByPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionsByPoolRequest) XXX_Merge(src proto.Message)
- func (m *PositionsByPoolRequest) XXX_Size() int
- func (m *PositionsByPoolRequest) XXX_Unmarshal(b []byte) error
- type PositionsByPoolResponse
- func (*PositionsByPoolResponse) Descriptor() ([]byte, []int)
- func (m *PositionsByPoolResponse) GetMtps() []*MTP
- func (m *PositionsByPoolResponse) GetPagination() *query.PageResponse
- func (m *PositionsByPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *PositionsByPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionsByPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionsByPoolResponse) ProtoMessage()
- func (m *PositionsByPoolResponse) Reset()
- func (m *PositionsByPoolResponse) Size() (n int)
- func (m *PositionsByPoolResponse) String() string
- func (m *PositionsByPoolResponse) Unmarshal(dAtA []byte) error
- func (m *PositionsByPoolResponse) XXX_DiscardUnknown()
- func (m *PositionsByPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionsByPoolResponse) XXX_Merge(src proto.Message)
- func (m *PositionsByPoolResponse) XXX_Size() int
- func (m *PositionsByPoolResponse) XXX_Unmarshal(b []byte) error
- type PositionsForAddressRequest
- func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)
- func (m *PositionsForAddressRequest) GetAddress() string
- func (m *PositionsForAddressRequest) GetPagination() *query.PageRequest
- func (m *PositionsForAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *PositionsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionsForAddressRequest) ProtoMessage()
- func (m *PositionsForAddressRequest) Reset()
- func (m *PositionsForAddressRequest) Size() (n int)
- func (m *PositionsForAddressRequest) String() string
- func (m *PositionsForAddressRequest) Unmarshal(dAtA []byte) error
- func (m *PositionsForAddressRequest) XXX_DiscardUnknown()
- func (m *PositionsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionsForAddressRequest) XXX_Merge(src proto.Message)
- func (m *PositionsForAddressRequest) XXX_Size() int
- func (m *PositionsForAddressRequest) XXX_Unmarshal(b []byte) error
- type PositionsForAddressResponse
- func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)
- func (m *PositionsForAddressResponse) GetMtps() []*MTP
- func (m *PositionsForAddressResponse) GetPagination() *query.PageResponse
- func (m *PositionsForAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *PositionsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionsForAddressResponse) ProtoMessage()
- func (m *PositionsForAddressResponse) Reset()
- func (m *PositionsForAddressResponse) Size() (n int)
- func (m *PositionsForAddressResponse) String() string
- func (m *PositionsForAddressResponse) Unmarshal(dAtA []byte) error
- func (m *PositionsForAddressResponse) XXX_DiscardUnknown()
- func (m *PositionsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionsForAddressResponse) XXX_Merge(src proto.Message)
- func (m *PositionsForAddressResponse) XXX_Size() int
- func (m *PositionsForAddressResponse) XXX_Unmarshal(b []byte) error
- type PositionsRequest
- func (*PositionsRequest) Descriptor() ([]byte, []int)
- func (m *PositionsRequest) GetPagination() *query.PageRequest
- func (m *PositionsRequest) Marshal() (dAtA []byte, err error)
- func (m *PositionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionsRequest) ProtoMessage()
- func (m *PositionsRequest) Reset()
- func (m *PositionsRequest) Size() (n int)
- func (m *PositionsRequest) String() string
- func (m *PositionsRequest) Unmarshal(dAtA []byte) error
- func (m *PositionsRequest) XXX_DiscardUnknown()
- func (m *PositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionsRequest) XXX_Merge(src proto.Message)
- func (m *PositionsRequest) XXX_Size() int
- func (m *PositionsRequest) XXX_Unmarshal(b []byte) error
- type PositionsResponse
- func (*PositionsResponse) Descriptor() ([]byte, []int)
- func (m *PositionsResponse) GetMtps() []*MTP
- func (m *PositionsResponse) GetPagination() *query.PageResponse
- func (m *PositionsResponse) Marshal() (dAtA []byte, err error)
- func (m *PositionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PositionsResponse) ProtoMessage()
- func (m *PositionsResponse) Reset()
- func (m *PositionsResponse) Size() (n int)
- func (m *PositionsResponse) String() string
- func (m *PositionsResponse) Unmarshal(dAtA []byte) error
- func (m *PositionsResponse) XXX_DiscardUnknown()
- func (m *PositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionsResponse) XXX_Merge(src proto.Message)
- func (m *PositionsResponse) XXX_Size() int
- func (m *PositionsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllPoolRequest
- func (*QueryAllPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllPoolRequest) GetPagination() *query.PageRequest
- func (m *QueryAllPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPoolRequest) ProtoMessage()
- func (m *QueryAllPoolRequest) Reset()
- func (m *QueryAllPoolRequest) Size() (n int)
- func (m *QueryAllPoolRequest) String() string
- func (m *QueryAllPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllPoolRequest) XXX_DiscardUnknown()
- func (m *QueryAllPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllPoolRequest) XXX_Size() int
- func (m *QueryAllPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryAllPoolResponse
- func (*QueryAllPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllPoolResponse) GetPagination() *query.PageResponse
- func (m *QueryAllPoolResponse) GetPool() []Pool
- func (m *QueryAllPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPoolResponse) ProtoMessage()
- func (m *QueryAllPoolResponse) Reset()
- func (m *QueryAllPoolResponse) Size() (n int)
- func (m *QueryAllPoolResponse) String() string
- func (m *QueryAllPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllPoolResponse) XXX_DiscardUnknown()
- func (m *QueryAllPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllPoolResponse) XXX_Size() int
- func (m *QueryAllPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetPoolRequest
- func (*QueryGetPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetPoolRequest) GetIndex() uint64
- func (m *QueryGetPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPoolRequest) ProtoMessage()
- func (m *QueryGetPoolRequest) Reset()
- func (m *QueryGetPoolRequest) Size() (n int)
- func (m *QueryGetPoolRequest) String() string
- func (m *QueryGetPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetPoolRequest) XXX_DiscardUnknown()
- func (m *QueryGetPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetPoolRequest) XXX_Size() int
- func (m *QueryGetPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryGetPoolResponse
- func (*QueryGetPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetPoolResponse) GetPool() Pool
- func (m *QueryGetPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPoolResponse) ProtoMessage()
- func (m *QueryGetPoolResponse) Reset()
- func (m *QueryGetPoolResponse) Size() (n int)
- func (m *QueryGetPoolResponse) String() string
- func (m *QueryGetPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetPoolResponse) XXX_DiscardUnknown()
- func (m *QueryGetPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetPoolResponse) XXX_Size() int
- func (m *QueryGetPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryOpenEstimationRequest
- func (*QueryOpenEstimationRequest) Descriptor() ([]byte, []int)
- func (m *QueryOpenEstimationRequest) GetCollateral() types.Coin
- func (m *QueryOpenEstimationRequest) GetPosition() Position
- func (m *QueryOpenEstimationRequest) GetTradingAsset() string
- func (m *QueryOpenEstimationRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOpenEstimationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOpenEstimationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOpenEstimationRequest) ProtoMessage()
- func (m *QueryOpenEstimationRequest) Reset()
- func (m *QueryOpenEstimationRequest) Size() (n int)
- func (m *QueryOpenEstimationRequest) String() string
- func (m *QueryOpenEstimationRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOpenEstimationRequest) XXX_DiscardUnknown()
- func (m *QueryOpenEstimationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOpenEstimationRequest) XXX_Merge(src proto.Message)
- func (m *QueryOpenEstimationRequest) XXX_Size() int
- func (m *QueryOpenEstimationRequest) XXX_Unmarshal(b []byte) error
- type QueryOpenEstimationResponse
- func (*QueryOpenEstimationResponse) Descriptor() ([]byte, []int)
- func (m *QueryOpenEstimationResponse) GetAvailableLiquidity() types.Coin
- func (m *QueryOpenEstimationResponse) GetCollateral() types.Coin
- func (m *QueryOpenEstimationResponse) GetMinCollateral() types.Coin
- func (m *QueryOpenEstimationResponse) GetPosition() Position
- func (m *QueryOpenEstimationResponse) GetPositionSize() types.Coin
- func (m *QueryOpenEstimationResponse) GetTradingAsset() string
- func (m *QueryOpenEstimationResponse) GetValidCollateral() bool
- func (m *QueryOpenEstimationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOpenEstimationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOpenEstimationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOpenEstimationResponse) ProtoMessage()
- func (m *QueryOpenEstimationResponse) Reset()
- func (m *QueryOpenEstimationResponse) Size() (n int)
- func (m *QueryOpenEstimationResponse) String() string
- func (m *QueryOpenEstimationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOpenEstimationResponse) XXX_DiscardUnknown()
- func (m *QueryOpenEstimationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOpenEstimationResponse) XXX_Merge(src proto.Message)
- func (m *QueryOpenEstimationResponse) XXX_Size() int
- func (m *QueryOpenEstimationResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StatusRequest
- func (*StatusRequest) Descriptor() ([]byte, []int)
- func (m *StatusRequest) Marshal() (dAtA []byte, err error)
- func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StatusRequest) ProtoMessage()
- func (m *StatusRequest) Reset()
- func (m *StatusRequest) Size() (n int)
- func (m *StatusRequest) String() string
- func (m *StatusRequest) Unmarshal(dAtA []byte) error
- func (m *StatusRequest) XXX_DiscardUnknown()
- func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusRequest) XXX_Merge(src proto.Message)
- func (m *StatusRequest) XXX_Size() int
- func (m *StatusRequest) XXX_Unmarshal(b []byte) error
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)
- func (m *StatusResponse) GetLifetimeMtpCount() uint64
- func (m *StatusResponse) GetOpenMtpCount() uint64
- func (m *StatusResponse) Marshal() (dAtA []byte, err error)
- func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StatusResponse) ProtoMessage()
- func (m *StatusResponse) Reset()
- func (m *StatusResponse) Size() (n int)
- func (m *StatusResponse) String() string
- func (m *StatusResponse) Unmarshal(dAtA []byte) error
- func (m *StatusResponse) XXX_DiscardUnknown()
- func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusResponse) XXX_Merge(src proto.Message)
- func (m *StatusResponse) XXX_Size() int
- func (m *StatusResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Close(ctx context.Context, req *MsgClose) (*MsgCloseResponse, error)
- func (*UnimplementedMsgServer) Dewhitelist(ctx context.Context, req *MsgDewhitelist) (*MsgDewhitelistResponse, error)
- func (*UnimplementedMsgServer) Open(ctx context.Context, req *MsgOpen) (*MsgOpenResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpdatePools(ctx context.Context, req *MsgUpdatePools) (*MsgUpdatePoolsResponse, error)
- func (*UnimplementedMsgServer) Whitelist(ctx context.Context, req *MsgWhitelist) (*MsgWhitelistResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) GetPositions(ctx context.Context, req *PositionsRequest) (*PositionsResponse, error)
- func (*UnimplementedQueryServer) GetPositionsByPool(ctx context.Context, req *PositionsByPoolRequest) (*PositionsByPoolResponse, error)
- func (*UnimplementedQueryServer) GetPositionsForAddress(ctx context.Context, req *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
- func (*UnimplementedQueryServer) GetStatus(ctx context.Context, req *StatusRequest) (*StatusResponse, error)
- func (*UnimplementedQueryServer) GetWhitelist(ctx context.Context, req *WhitelistRequest) (*WhitelistResponse, error)
- func (*UnimplementedQueryServer) IsWhitelisted(ctx context.Context, req *IsWhitelistedRequest) (*IsWhitelistedResponse, error)
- func (*UnimplementedQueryServer) MTP(ctx context.Context, req *MTPRequest) (*MTPResponse, error)
- func (*UnimplementedQueryServer) OpenEstimation(ctx context.Context, req *QueryOpenEstimationRequest) (*QueryOpenEstimationResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)
- func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryGetPoolRequest) (*QueryGetPoolResponse, error)
- func (*UnimplementedQueryServer) Pools(ctx context.Context, req *QueryAllPoolRequest) (*QueryAllPoolResponse, error)
- type WhiteList
- func (*WhiteList) Descriptor() ([]byte, []int)
- func (m *WhiteList) GetValidatorList() []string
- func (m *WhiteList) Marshal() (dAtA []byte, err error)
- func (m *WhiteList) MarshalTo(dAtA []byte) (int, error)
- func (m *WhiteList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhiteList) ProtoMessage()
- func (m *WhiteList) Reset()
- func (m *WhiteList) Size() (n int)
- func (m *WhiteList) String() string
- func (m *WhiteList) Unmarshal(dAtA []byte) error
- func (m *WhiteList) XXX_DiscardUnknown()
- func (m *WhiteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhiteList) XXX_Merge(src proto.Message)
- func (m *WhiteList) XXX_Size() int
- func (m *WhiteList) XXX_Unmarshal(b []byte) error
- type WhitelistRequest
- func (*WhitelistRequest) Descriptor() ([]byte, []int)
- func (m *WhitelistRequest) GetPagination() *query.PageRequest
- func (m *WhitelistRequest) Marshal() (dAtA []byte, err error)
- func (m *WhitelistRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *WhitelistRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhitelistRequest) ProtoMessage()
- func (m *WhitelistRequest) Reset()
- func (m *WhitelistRequest) Size() (n int)
- func (m *WhitelistRequest) String() string
- func (m *WhitelistRequest) Unmarshal(dAtA []byte) error
- func (m *WhitelistRequest) XXX_DiscardUnknown()
- func (m *WhitelistRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhitelistRequest) XXX_Merge(src proto.Message)
- func (m *WhitelistRequest) XXX_Size() int
- func (m *WhitelistRequest) XXX_Unmarshal(b []byte) error
- type WhitelistResponse
- func (*WhitelistResponse) Descriptor() ([]byte, []int)
- func (m *WhitelistResponse) GetPagination() *query.PageResponse
- func (m *WhitelistResponse) GetWhitelist() []string
- func (m *WhitelistResponse) Marshal() (dAtA []byte, err error)
- func (m *WhitelistResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *WhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhitelistResponse) ProtoMessage()
- func (m *WhitelistResponse) Reset()
- func (m *WhitelistResponse) Size() (n int)
- func (m *WhitelistResponse) String() string
- func (m *WhitelistResponse) Unmarshal(dAtA []byte) error
- func (m *WhitelistResponse) XXX_DiscardUnknown()
- func (m *WhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhitelistResponse) XXX_Merge(src proto.Message)
- func (m *WhitelistResponse) XXX_Size() int
- func (m *WhitelistResponse) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventOpen = "margin/mtp_open" EventClose = "margin/mtp_close" EventForceClose = "margin/mtp_force_close" EventIncrementalPayFund = "margin/incremental_pay_fund" EventRepayFund = "margin/repay_fund" )
const ( // ModuleName defines the module name ModuleName = "margin" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_margin" // ParamsKey is the prefix for parameters of margin module ParamsKey = "margin_params" )
const ( InfinitePriceString = "infinite" TakeProfitPriceDefault = "10000000000000000000000000000000000000000" // 10^40 )
const ( TypeMsgOpen = "open" TypeMsgClose = "close" TypeMsgUpdateParams = "update_params" TypeMsgWhitelist = "whitelist" TypeMsgUpdatePools = "update_pools" TypeMsgDewhitelist = "dewhitelist" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const MaxPageLimit = 100
const (
// PoolKeyPrefix is the prefix to retrieve all Pool
PoolKeyPrefix = "Pool/value/"
)
const (
ZeroAddress = "elys1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqnrec2l"
)
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrMTPDoesNotExist = sdkerrors.Register(ModuleName, 1, "mtp not found") ErrMTPInvalid = sdkerrors.Register(ModuleName, 2, "mtp invalid") ErrMTPDisabled = sdkerrors.Register(ModuleName, 3, "margin not enabled for pool") ErrUnknownRequest = sdkerrors.Register(ModuleName, 4, "unknown request") ErrMTPHealthy = sdkerrors.Register(ModuleName, 5, "mtp health above force close threshold") ErrInvalidPosition = sdkerrors.Register(ModuleName, 6, "mtp position invalid") ErrMaxOpenPositions = sdkerrors.Register(ModuleName, 7, "max open positions reached") ErrBorrowTooLow = sdkerrors.Register(ModuleName, 9, "borrowed amount is too low") ErrBorrowTooHigh = sdkerrors.Register(ModuleName, 10, "borrowed amount is higher than pool depth") ErrCustodyTooHigh = sdkerrors.Register(ModuleName, 11, "custody amount is higher than pool depth") ErrMTPUnhealthy = sdkerrors.Register(ModuleName, 12, "mtp health would be too low for safety factor") ErrInvalidCollateralAsset = sdkerrors.Register(ModuleName, 13, "invalid collateral asset") ErrInvalidBorrowingAsset = sdkerrors.Register(ModuleName, 14, "invalid borrowing asset") ErrPoolDoesNotExist = sdkerrors.Register(ModuleName, 15, "pool does not exist") ErrBalanceNotAvailable = sdkerrors.Register(ModuleName, 18, "user does not have enough balance of the required coin") ErrAmountTooLow = sdkerrors.Register(ModuleName, 32, "Tx amount is too low") ErrMarginDisabled = sdkerrors.Register(ModuleName, 33, "margin disabled pool") ErrDenomNotFound = sdkerrors.Register(ModuleName, 34, "denom not found") ErrInvalidLeverage = sdkerrors.Register(ModuleName, 35, "invalid leverage") ErrInvalidCloseSize = sdkerrors.Register(ModuleName, 36, "invalid close size") ErrCalcMinCollateral = sdkerrors.Register(ModuleName, 37, "error calculating min collateral") )
x/margin module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( MTPPrefix = []byte{0x01} MTPCountPrefix = []byte{0x02} OpenMTPCountPrefix = []byte{0x04} WhitelistPrefix = []byte{0x05} SQBeginBlockPrefix = []byte{0x06} )
var ( KeyLeverageMax = []byte("LeverageMax") KeyBorrowInterestRateMax = []byte("BorrowInterestRateMax") KeyBorrowInterestRateMin = []byte("BorrowInterestRateMin") KeyBorrowInterestRateIncrease = []byte("BorrowInterestRateIncrease") KeyBorrowInterestRateDecrease = []byte("BorrowInterestRateDecrease") KeyHealthGainFactor = []byte("HealthGainFactor") KeyEpochLength = []byte("EpochLength") KeyRemovalQueueThreshold = []byte("RemovalQueueThreshold") KeyMaxOpenPositions = []byte("MaxOpenPositions") KeyPoolOpenThreshold = []byte("PoolOpenThreshold") KeyForceCloseFundPercentage = []byte("ForceCloseFundPercentage") KeyForceCloseFundAddress = []byte("ForceCloseFundAddress") KeyIncrementalBorrowInterestPaymentFundPercentage = []byte("IncrementalBorrowInterestPaymentFundPercentage") KeyIncrementalBorrowInterestPaymentFundAddress = []byte("IncrementalBorrowInterestPaymentFundAddress") KeySqModifier = []byte("SqModifier") KeySafetyFactor = []byte("SafetyFactor") KeyIncrementalBorrowInterestPaymentEnabled = []byte("IncrementalBorrowInterestPaymentEnabled") KeyWhitelistingEnabled = []byte("WhitelistingEnabled") KeyInvariantCheckEpoch = []byte("InvariantCheckEpoch") KeyBrokerAddress = []byte("BrokerAddress") KeyTakeProfitBorrowInterestRateMin = []byte("TakeProfitBorrowInterestRateMin") KeyFundingFeeBaseRate = []byte("FundingFeeBaseRate") KeyFundingFeeMinRate = []byte("FundingFeeMinRate") KeyFundingFeeMaxRate = []byte("FundingFeeMaxRate") KeyFundingFeeCollectionAddress = []byte("FundingFeeCollectionAddress") KeySwapFee = []byte("SwapFee") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPool = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPool = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPool = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var Position_name = map[int32]string{
0: "UNSPECIFIED",
1: "LONG",
2: "SHORT",
}
var Position_value = map[string]int32{
"UNSPECIFIED": 0,
"LONG": 1,
"SHORT": 2,
}
Functions ¶
func AddOrAppendCoin ¶ added in v0.13.0
Utility function to add a new coin or aggregate the amount if coin with same denom already exists
func CalcFundingRate ¶ added in v0.16.0
CalculateFundingRate calculates and returns the funding rate based on long and short amounts
func CalcMTPConsolidateLiability ¶ added in v0.16.0
func CalcMTPTakeProfitCustody ¶ added in v0.19.0
func CalcTakeAmount ¶ added in v0.16.0
CalcTakeAmount calculates the take amount in the custody asset based on the funding rate
func CheckLongAssets ¶ added in v0.16.0
func CheckShortAssets ¶ added in v0.16.0
func GenerateOpenEvent ¶ added in v0.19.0
func GetAmmPoolBalance ¶ added in v0.16.0
Get balance of a denom
func GetMTPPrefixForAddress ¶ added in v0.10.0
func GetMarginPoolBalances ¶ added in v0.16.0
Get Margin Pool Balance
func GetMarginPoolBalancesByPosition ¶ added in v0.16.0
func GetUint64Bytes ¶ added in v0.10.0
GetUint64Bytes returns the byte representation of the ID
func GetUint64FromBytes ¶ added in v0.10.0
GetUint64FromBytes returns ID in uint64 format from a byte array
func GetWhitelistKey ¶ added in v0.10.0
func HasSufficientPoolBalance ¶ added in v0.16.0
func HasSufficientPoolBalance(ammPool ammtypes.Pool, assetDenom string, requiredAmount sdk.Int) bool
Check if amm pool has sufficcient balance
func IsTakeProfitPriceInifite ¶ added in v0.16.0
func NewMarginCollateralAddress ¶ added in v0.10.0
func NewMarginCollateralAddress(positionId uint64) sdk.AccAddress
Generate a new margin collateral wallet per position
func NewMarginCustodyAddress ¶ added in v0.10.0
func NewMarginCustodyAddress(positionId uint64) sdk.AccAddress
Generate a new margin custody wallet per position
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func PoolKey ¶ added in v0.10.0
PoolKey returns the store key to retrieve a Pool from the index fields
func ReachedTakeProfitPrice ¶ added in v0.19.0
ReachedTakeProfitPrice tells if the take profit price is reached
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateCollateralAsset ¶ added in v0.16.0
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AmmKeeper ¶ added in v0.10.0
type AmmKeeper interface { // Get pool Ids that contains the denom in pool assets GetAllPoolIdsWithDenom(sdk.Context, string) []uint64 // Get first pool id that contains all denoms in pool assets GetPoolIdWithAllDenoms(ctx sdk.Context, denoms []string) (poolId uint64, found bool) // GetPool returns a pool from its index GetPool(sdk.Context, uint64) (ammtypes.Pool, bool) // Get all pools GetAllPool(sdk.Context) []ammtypes.Pool // IterateCommitments iterates over all Commitments and performs a callback. IterateLiquidityPools(sdk.Context, func(ammtypes.Pool) bool) GetPoolSnapshotOrSet(ctx sdk.Context, pool ammtypes.Pool) (val ammtypes.Pool) CalcOutAmtGivenIn(ctx sdk.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (sdk.Coin, error) CalcInAmtGivenOut(ctx sdk.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensOut sdk.Coins, tokenInDenom string, swapFee sdk.Dec) (tokenIn sdk.Coin, err error) CalcSwapEstimationByDenom( ctx sdk.Context, amount sdk.Coin, denomIn string, denomOut string, baseCurrency string, discount sdk.Dec, overrideSwapFee sdk.Dec, ) ( inRoute []*ammtypes.SwapAmountInRoute, outRoute []*ammtypes.SwapAmountOutRoute, outAmount sdk.Coin, spotPrice sdk.Dec, swapFee sdk.Dec, discountOut sdk.Dec, availableLiquidity sdk.Coin, err error, ) }
AmmKeeper defines the expected interface needed to swap tokens
type AssetProfileKeeper ¶ added in v0.15.0
type AssetProfileKeeper interface { // GetEntry returns a entry from its index GetEntry(ctx sdk.Context, baseDenom string) (val atypes.Entry, found bool) }
AssetProfileKeeper defines the expected interfaces
type AuthorizationChecker ¶ added in v0.10.0
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error BlockedAddr(addr sdk.AccAddress) bool HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool }
BankKeeper defines the expected interface needed to retrieve account balances.
type CloseLongChecker ¶ added in v0.12.0
type CloseLongChecker interface { GetMTP(ctx sdk.Context, mtpAddress string, id uint64) (MTP, error) GetPool( ctx sdk.Context, poolId uint64, ) (val Pool, found bool) GetAmmPool(ctx sdk.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error) HandleBorrowInterest(ctx sdk.Context, mtp *MTP, pool *Pool, ammPool ammtypes.Pool) error TakeOutCustody(ctx sdk.Context, mtp MTP, pool *Pool, amount sdk.Int) error EstimateAndRepay(ctx sdk.Context, mtp MTP, pool Pool, ammPool ammtypes.Pool, amount sdk.Int, baseCurrency string) (sdk.Int, error) }
type CloseShortChecker ¶ added in v0.12.0
type CloseShortChecker interface { GetMTP(ctx sdk.Context, mtpAddress string, id uint64) (MTP, error) GetPool( ctx sdk.Context, poolId uint64, ) (val Pool, found bool) GetAmmPool(ctx sdk.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error) HandleBorrowInterest(ctx sdk.Context, mtp *MTP, pool *Pool, ammPool ammtypes.Pool) error TakeOutCustody(ctx sdk.Context, mtp MTP, pool *Pool, amount sdk.Int) error EstimateAndRepay(ctx sdk.Context, mtp MTP, pool Pool, ammPool ammtypes.Pool, amount sdk.Int, baseCurrency string) (sdk.Int, error) }
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` PoolList []Pool `protobuf:"bytes,2,rep,name=pool_list,json=poolList,proto3" json:"pool_list"` MtpList []MTP `protobuf:"bytes,3,rep,name=mtp_list,json=mtpList,proto3" json:"mtp_list"` AddressWhitelist []string `protobuf:"bytes,4,rep,name=address_whitelist,json=addressWhitelist,proto3" json:"address_whitelist,omitempty"` }
GenesisState defines the margin module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAddressWhitelist ¶ added in v0.10.0
func (m *GenesisState) GetAddressWhitelist() []string
func (*GenesisState) GetMtpList ¶ added in v0.10.0
func (m *GenesisState) GetMtpList() []MTP
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPoolList ¶ added in v0.10.0
func (m *GenesisState) GetPoolList() []Pool
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type IsWhitelistedRequest ¶ added in v0.10.0
type IsWhitelistedRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*IsWhitelistedRequest) Descriptor ¶ added in v0.10.0
func (*IsWhitelistedRequest) Descriptor() ([]byte, []int)
func (*IsWhitelistedRequest) GetAddress ¶ added in v0.10.0
func (m *IsWhitelistedRequest) GetAddress() string
func (*IsWhitelistedRequest) Marshal ¶ added in v0.10.0
func (m *IsWhitelistedRequest) Marshal() (dAtA []byte, err error)
func (*IsWhitelistedRequest) MarshalTo ¶ added in v0.10.0
func (m *IsWhitelistedRequest) MarshalTo(dAtA []byte) (int, error)
func (*IsWhitelistedRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *IsWhitelistedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IsWhitelistedRequest) ProtoMessage ¶ added in v0.10.0
func (*IsWhitelistedRequest) ProtoMessage()
func (*IsWhitelistedRequest) Reset ¶ added in v0.10.0
func (m *IsWhitelistedRequest) Reset()
func (*IsWhitelistedRequest) Size ¶ added in v0.10.0
func (m *IsWhitelistedRequest) Size() (n int)
func (*IsWhitelistedRequest) String ¶ added in v0.10.0
func (m *IsWhitelistedRequest) String() string
func (*IsWhitelistedRequest) Unmarshal ¶ added in v0.10.0
func (m *IsWhitelistedRequest) Unmarshal(dAtA []byte) error
func (*IsWhitelistedRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IsWhitelistedRequest) XXX_DiscardUnknown()
func (*IsWhitelistedRequest) XXX_Marshal ¶ added in v0.10.0
func (m *IsWhitelistedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsWhitelistedRequest) XXX_Merge ¶ added in v0.10.0
func (m *IsWhitelistedRequest) XXX_Merge(src proto.Message)
func (*IsWhitelistedRequest) XXX_Size ¶ added in v0.10.0
func (m *IsWhitelistedRequest) XXX_Size() int
func (*IsWhitelistedRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *IsWhitelistedRequest) XXX_Unmarshal(b []byte) error
type IsWhitelistedResponse ¶ added in v0.10.0
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"` }
func (*IsWhitelistedResponse) Descriptor ¶ added in v0.10.0
func (*IsWhitelistedResponse) Descriptor() ([]byte, []int)
func (*IsWhitelistedResponse) GetAddress ¶ added in v0.10.0
func (m *IsWhitelistedResponse) GetAddress() string
func (*IsWhitelistedResponse) GetIsWhitelisted ¶ added in v0.10.0
func (m *IsWhitelistedResponse) GetIsWhitelisted() bool
func (*IsWhitelistedResponse) Marshal ¶ added in v0.10.0
func (m *IsWhitelistedResponse) Marshal() (dAtA []byte, err error)
func (*IsWhitelistedResponse) MarshalTo ¶ added in v0.10.0
func (m *IsWhitelistedResponse) MarshalTo(dAtA []byte) (int, error)
func (*IsWhitelistedResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *IsWhitelistedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IsWhitelistedResponse) ProtoMessage ¶ added in v0.10.0
func (*IsWhitelistedResponse) ProtoMessage()
func (*IsWhitelistedResponse) Reset ¶ added in v0.10.0
func (m *IsWhitelistedResponse) Reset()
func (*IsWhitelistedResponse) Size ¶ added in v0.10.0
func (m *IsWhitelistedResponse) Size() (n int)
func (*IsWhitelistedResponse) String ¶ added in v0.10.0
func (m *IsWhitelistedResponse) String() string
func (*IsWhitelistedResponse) Unmarshal ¶ added in v0.10.0
func (m *IsWhitelistedResponse) Unmarshal(dAtA []byte) error
func (*IsWhitelistedResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IsWhitelistedResponse) XXX_DiscardUnknown()
func (*IsWhitelistedResponse) XXX_Marshal ¶ added in v0.10.0
func (m *IsWhitelistedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsWhitelistedResponse) XXX_Merge ¶ added in v0.10.0
func (m *IsWhitelistedResponse) XXX_Merge(src proto.Message)
func (*IsWhitelistedResponse) XXX_Size ¶ added in v0.10.0
func (m *IsWhitelistedResponse) XXX_Size() int
func (*IsWhitelistedResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *IsWhitelistedResponse) XXX_Unmarshal(b []byte) error
type MTP ¶ added in v0.10.0
type MTP struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` CollateralAsset string `protobuf:"bytes,2,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"` TradingAsset string `protobuf:"bytes,3,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` LiabilitiesAsset string `protobuf:"bytes,4,opt,name=liabilities_asset,json=liabilitiesAsset,proto3" json:"liabilities_asset,omitempty"` CustodyAsset string `protobuf:"bytes,5,opt,name=custody_asset,json=custodyAsset,proto3" json:"custody_asset,omitempty"` Collateral github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=collateral,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"collateral"` Liabilities github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=liabilities,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"liabilities"` BorrowInterestPaidCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 189-byte string literal not displayed */ BorrowInterestPaidCustody github_com_cosmos_cosmos_sdk_types.Int `` /* 180-byte string literal not displayed */ BorrowInterestUnpaidCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 196-byte string literal not displayed */ Custody github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=custody,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"custody"` TakeProfitLiabilities github_com_cosmos_cosmos_sdk_types.Int `` /* 167-byte string literal not displayed */ TakeProfitCustody github_com_cosmos_cosmos_sdk_types.Int `` /* 155-byte string literal not displayed */ Leverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,14,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"` MtpHealth github_com_cosmos_cosmos_sdk_types.Dec `` /* 129-byte string literal not displayed */ Position Position `protobuf:"varint,16,opt,name=position,proto3,enum=elys.margin.Position" json:"position,omitempty"` Id uint64 `protobuf:"varint,17,opt,name=id,proto3" json:"id,omitempty"` AmmPoolId uint64 `protobuf:"varint,18,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` ConsolidateLeverage github_com_cosmos_cosmos_sdk_types.Dec `` /* 159-byte string literal not displayed */ SumCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 141-byte string literal not displayed */ TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ TakeProfitBorrowRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */ // funding fee paid FundingFeePaidCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 178-byte string literal not displayed */ FundingFeePaidCustody github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */ // funding fee received FundingFeeReceivedCollateral github_com_cosmos_cosmos_sdk_types.Int `` /* 190-byte string literal not displayed */ FundingFeeReceivedCustody github_com_cosmos_cosmos_sdk_types.Int `` /* 181-byte string literal not displayed */ OpenPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 129-byte string literal not displayed */ }
func (*MTP) Descriptor ¶ added in v0.10.0
func (*MTP) GetAddress ¶ added in v0.10.0
func (*MTP) GetAmmPoolId ¶ added in v0.10.0
func (*MTP) GetCollateralAsset ¶ added in v0.10.0
func (*MTP) GetCustodyAsset ¶ added in v0.10.0
func (*MTP) GetLiabilitiesAsset ¶ added in v0.19.0
func (*MTP) GetPosition ¶ added in v0.10.0
func (*MTP) GetTradingAsset ¶ added in v0.19.0
func (*MTP) MarshalToSizedBuffer ¶ added in v0.10.0
func (*MTP) ProtoMessage ¶ added in v0.10.0
func (*MTP) ProtoMessage()
func (*MTP) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MTP) XXX_DiscardUnknown()
func (*MTP) XXX_Marshal ¶ added in v0.10.0
func (*MTP) XXX_Unmarshal ¶ added in v0.10.0
type MTPRequest ¶ added in v0.10.0
type MTPRequest 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"` }
func (*MTPRequest) Descriptor ¶ added in v0.10.0
func (*MTPRequest) Descriptor() ([]byte, []int)
func (*MTPRequest) GetAddress ¶ added in v0.10.0
func (m *MTPRequest) GetAddress() string
func (*MTPRequest) GetId ¶ added in v0.10.0
func (m *MTPRequest) GetId() uint64
func (*MTPRequest) Marshal ¶ added in v0.10.0
func (m *MTPRequest) Marshal() (dAtA []byte, err error)
func (*MTPRequest) MarshalTo ¶ added in v0.10.0
func (m *MTPRequest) MarshalTo(dAtA []byte) (int, error)
func (*MTPRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MTPRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MTPRequest) ProtoMessage ¶ added in v0.10.0
func (*MTPRequest) ProtoMessage()
func (*MTPRequest) Reset ¶ added in v0.10.0
func (m *MTPRequest) Reset()
func (*MTPRequest) Size ¶ added in v0.10.0
func (m *MTPRequest) Size() (n int)
func (*MTPRequest) String ¶ added in v0.10.0
func (m *MTPRequest) String() string
func (*MTPRequest) Unmarshal ¶ added in v0.10.0
func (m *MTPRequest) Unmarshal(dAtA []byte) error
func (*MTPRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MTPRequest) XXX_DiscardUnknown()
func (*MTPRequest) XXX_Marshal ¶ added in v0.10.0
func (m *MTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MTPRequest) XXX_Merge ¶ added in v0.10.0
func (m *MTPRequest) XXX_Merge(src proto.Message)
func (*MTPRequest) XXX_Size ¶ added in v0.10.0
func (m *MTPRequest) XXX_Size() int
func (*MTPRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *MTPRequest) XXX_Unmarshal(b []byte) error
type MTPResponse ¶ added in v0.10.0
type MTPResponse struct {
Mtp *MTP `protobuf:"bytes,1,opt,name=mtp,proto3" json:"mtp,omitempty"`
}
func (*MTPResponse) Descriptor ¶ added in v0.10.0
func (*MTPResponse) Descriptor() ([]byte, []int)
func (*MTPResponse) GetMtp ¶ added in v0.10.0
func (m *MTPResponse) GetMtp() *MTP
func (*MTPResponse) Marshal ¶ added in v0.10.0
func (m *MTPResponse) Marshal() (dAtA []byte, err error)
func (*MTPResponse) MarshalTo ¶ added in v0.10.0
func (m *MTPResponse) MarshalTo(dAtA []byte) (int, error)
func (*MTPResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MTPResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MTPResponse) ProtoMessage ¶ added in v0.10.0
func (*MTPResponse) ProtoMessage()
func (*MTPResponse) Reset ¶ added in v0.10.0
func (m *MTPResponse) Reset()
func (*MTPResponse) Size ¶ added in v0.10.0
func (m *MTPResponse) Size() (n int)
func (*MTPResponse) String ¶ added in v0.10.0
func (m *MTPResponse) String() string
func (*MTPResponse) Unmarshal ¶ added in v0.10.0
func (m *MTPResponse) Unmarshal(dAtA []byte) error
func (*MTPResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MTPResponse) XXX_DiscardUnknown()
func (*MTPResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MTPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MTPResponse) XXX_Merge ¶ added in v0.10.0
func (m *MTPResponse) XXX_Merge(src proto.Message)
func (*MTPResponse) XXX_Size ¶ added in v0.10.0
func (m *MTPResponse) XXX_Size() int
func (*MTPResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MTPResponse) XXX_Unmarshal(b []byte) error
type MarginHooks ¶ added in v0.11.0
type MarginHooks interface { // AfterMarginPositionOpen is called after OpenLong or OpenShort position. AfterMarginPositionOpen(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool) // AfterMarginPositionModified is called after a position gets modified. AfterMarginPositionModified(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool) // AfterMarginPositionClosed is called after a position gets closed. AfterMarginPositionClosed(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool) // AfterPoolCreated is called after CreatePool AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool) // AfterJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool) // AfterExitPool is called after ExitPool, ExitSwapShareAmountIn, and ExitSwapExternAmountOut AfterAmmExitPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool) // AfterSwap is called after SwapExactAmountIn and SwapExactAmountOut AfterAmmSwap(ctx sdk.Context, ammPool ammtypes.Pool, marginPool Pool) }
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) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) UpdatePools(ctx context.Context, in *MsgUpdatePools, opts ...grpc.CallOption) (*MsgUpdatePoolsResponse, error) Whitelist(ctx context.Context, in *MsgWhitelist, opts ...grpc.CallOption) (*MsgWhitelistResponse, error) Dewhitelist(ctx context.Context, in *MsgDewhitelist, opts ...grpc.CallOption) (*MsgDewhitelistResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgClose ¶ added in v0.10.0
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"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` }
func NewMsgClose ¶ added in v0.10.0
func (*MsgClose) Descriptor ¶ added in v0.10.0
func (*MsgClose) GetCreator ¶ added in v0.10.0
func (*MsgClose) GetSignBytes ¶ added in v0.10.0
func (*MsgClose) GetSigners ¶ added in v0.10.0
func (msg *MsgClose) GetSigners() []sdk.AccAddress
func (*MsgClose) MarshalToSizedBuffer ¶ added in v0.10.0
func (*MsgClose) ProtoMessage ¶ added in v0.10.0
func (*MsgClose) ProtoMessage()
func (*MsgClose) ValidateBasic ¶ added in v0.10.0
func (*MsgClose) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgClose) XXX_DiscardUnknown()
func (*MsgClose) XXX_Marshal ¶ added in v0.10.0
func (*MsgClose) XXX_Unmarshal ¶ added in v0.10.0
type MsgCloseResponse ¶ added in v0.10.0
type MsgCloseResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` }
func (*MsgCloseResponse) Descriptor ¶ added in v0.10.0
func (*MsgCloseResponse) Descriptor() ([]byte, []int)
func (*MsgCloseResponse) GetId ¶ added in v0.15.0
func (m *MsgCloseResponse) GetId() uint64
func (*MsgCloseResponse) Marshal ¶ added in v0.10.0
func (m *MsgCloseResponse) Marshal() (dAtA []byte, err error)
func (*MsgCloseResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgCloseResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgCloseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgCloseResponse) ProtoMessage()
func (*MsgCloseResponse) Reset ¶ added in v0.10.0
func (m *MsgCloseResponse) Reset()
func (*MsgCloseResponse) Size ¶ added in v0.10.0
func (m *MsgCloseResponse) Size() (n int)
func (*MsgCloseResponse) String ¶ added in v0.10.0
func (m *MsgCloseResponse) String() string
func (*MsgCloseResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgCloseResponse) Unmarshal(dAtA []byte) error
func (*MsgCloseResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgCloseResponse) XXX_DiscardUnknown()
func (*MsgCloseResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgCloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgCloseResponse) XXX_Merge(src proto.Message)
func (*MsgCloseResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgCloseResponse) XXX_Size() int
func (*MsgCloseResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgCloseResponse) XXX_Unmarshal(b []byte) error
type MsgDewhitelist ¶ added in v0.10.0
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"` }
func NewMsgDewhitelist ¶ added in v0.10.0
func NewMsgDewhitelist(signer string, whitelistedAddress string) *MsgDewhitelist
func (*MsgDewhitelist) Descriptor ¶ added in v0.10.0
func (*MsgDewhitelist) Descriptor() ([]byte, []int)
func (*MsgDewhitelist) GetAuthority ¶ added in v0.10.0
func (m *MsgDewhitelist) GetAuthority() string
func (*MsgDewhitelist) GetSignBytes ¶ added in v0.10.0
func (msg *MsgDewhitelist) GetSignBytes() []byte
func (*MsgDewhitelist) GetSigners ¶ added in v0.10.0
func (msg *MsgDewhitelist) GetSigners() []sdk.AccAddress
func (*MsgDewhitelist) GetWhitelistedAddress ¶ added in v0.10.0
func (m *MsgDewhitelist) GetWhitelistedAddress() string
func (*MsgDewhitelist) Marshal ¶ added in v0.10.0
func (m *MsgDewhitelist) Marshal() (dAtA []byte, err error)
func (*MsgDewhitelist) MarshalTo ¶ added in v0.10.0
func (m *MsgDewhitelist) MarshalTo(dAtA []byte) (int, error)
func (*MsgDewhitelist) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgDewhitelist) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDewhitelist) ProtoMessage ¶ added in v0.10.0
func (*MsgDewhitelist) ProtoMessage()
func (*MsgDewhitelist) Reset ¶ added in v0.10.0
func (m *MsgDewhitelist) Reset()
func (*MsgDewhitelist) Route ¶ added in v0.10.0
func (msg *MsgDewhitelist) Route() string
func (*MsgDewhitelist) Size ¶ added in v0.10.0
func (m *MsgDewhitelist) Size() (n int)
func (*MsgDewhitelist) String ¶ added in v0.10.0
func (m *MsgDewhitelist) String() string
func (*MsgDewhitelist) Type ¶ added in v0.10.0
func (msg *MsgDewhitelist) Type() string
func (*MsgDewhitelist) Unmarshal ¶ added in v0.10.0
func (m *MsgDewhitelist) Unmarshal(dAtA []byte) error
func (*MsgDewhitelist) ValidateBasic ¶ added in v0.10.0
func (msg *MsgDewhitelist) ValidateBasic() error
func (*MsgDewhitelist) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgDewhitelist) XXX_DiscardUnknown()
func (*MsgDewhitelist) XXX_Marshal ¶ added in v0.10.0
func (m *MsgDewhitelist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDewhitelist) XXX_Merge ¶ added in v0.10.0
func (m *MsgDewhitelist) XXX_Merge(src proto.Message)
func (*MsgDewhitelist) XXX_Size ¶ added in v0.10.0
func (m *MsgDewhitelist) XXX_Size() int
func (*MsgDewhitelist) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgDewhitelist) XXX_Unmarshal(b []byte) error
type MsgDewhitelistResponse ¶ added in v0.10.0
type MsgDewhitelistResponse struct { }
func (*MsgDewhitelistResponse) Descriptor ¶ added in v0.10.0
func (*MsgDewhitelistResponse) Descriptor() ([]byte, []int)
func (*MsgDewhitelistResponse) Marshal ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) Marshal() (dAtA []byte, err error)
func (*MsgDewhitelistResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDewhitelistResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDewhitelistResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgDewhitelistResponse) ProtoMessage()
func (*MsgDewhitelistResponse) Reset ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) Reset()
func (*MsgDewhitelistResponse) Size ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) Size() (n int)
func (*MsgDewhitelistResponse) String ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) String() string
func (*MsgDewhitelistResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) Unmarshal(dAtA []byte) error
func (*MsgDewhitelistResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) XXX_DiscardUnknown()
func (*MsgDewhitelistResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDewhitelistResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) XXX_Merge(src proto.Message)
func (*MsgDewhitelistResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) XXX_Size() int
func (*MsgDewhitelistResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgDewhitelistResponse) XXX_Unmarshal(b []byte) error
type MsgOpen ¶ added in v0.10.0
type MsgOpen struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Position Position `protobuf:"varint,2,opt,name=position,proto3,enum=elys.margin.Position" json:"position,omitempty"` Leverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"` TradingAsset string `protobuf:"bytes,4,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Collateral types.Coin `protobuf:"bytes,5,opt,name=collateral,proto3" json:"collateral"` TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */ }
func NewMsgOpen ¶ added in v0.10.0
func (*MsgOpen) Descriptor ¶ added in v0.10.0
func (*MsgOpen) GetCollateral ¶ added in v0.19.0
func (*MsgOpen) GetCreator ¶ added in v0.10.0
func (*MsgOpen) GetPosition ¶ added in v0.10.0
func (*MsgOpen) GetSignBytes ¶ added in v0.10.0
func (*MsgOpen) GetSigners ¶ added in v0.10.0
func (msg *MsgOpen) GetSigners() []sdk.AccAddress
func (*MsgOpen) GetTradingAsset ¶ added in v0.19.0
func (*MsgOpen) MarshalToSizedBuffer ¶ added in v0.10.0
func (*MsgOpen) ProtoMessage ¶ added in v0.10.0
func (*MsgOpen) ProtoMessage()
func (*MsgOpen) ValidateBasic ¶ added in v0.10.0
func (*MsgOpen) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgOpen) XXX_DiscardUnknown()
func (*MsgOpen) XXX_Marshal ¶ added in v0.10.0
func (*MsgOpen) XXX_Unmarshal ¶ added in v0.10.0
type MsgOpenResponse ¶ added in v0.10.0
type MsgOpenResponse struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*MsgOpenResponse) Descriptor ¶ added in v0.10.0
func (*MsgOpenResponse) Descriptor() ([]byte, []int)
func (*MsgOpenResponse) GetId ¶ added in v0.15.0
func (m *MsgOpenResponse) GetId() uint64
func (*MsgOpenResponse) Marshal ¶ added in v0.10.0
func (m *MsgOpenResponse) Marshal() (dAtA []byte, err error)
func (*MsgOpenResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgOpenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgOpenResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgOpenResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgOpenResponse) ProtoMessage()
func (*MsgOpenResponse) Reset ¶ added in v0.10.0
func (m *MsgOpenResponse) Reset()
func (*MsgOpenResponse) Size ¶ added in v0.10.0
func (m *MsgOpenResponse) Size() (n int)
func (*MsgOpenResponse) String ¶ added in v0.10.0
func (m *MsgOpenResponse) String() string
func (*MsgOpenResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgOpenResponse) Unmarshal(dAtA []byte) error
func (*MsgOpenResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgOpenResponse) XXX_DiscardUnknown()
func (*MsgOpenResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgOpenResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgOpenResponse) XXX_Merge(src proto.Message)
func (*MsgOpenResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgOpenResponse) XXX_Size() int
func (*MsgOpenResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgOpenResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Open(context.Context, *MsgOpen) (*MsgOpenResponse, error) Close(context.Context, *MsgClose) (*MsgCloseResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) UpdatePools(context.Context, *MsgUpdatePools) (*MsgUpdatePoolsResponse, error) Whitelist(context.Context, *MsgWhitelist) (*MsgWhitelistResponse, error) Dewhitelist(context.Context, *MsgDewhitelist) (*MsgDewhitelistResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶ added in v0.10.0
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"` }
func NewMsgUpdateParams ¶ added in v0.10.0
func NewMsgUpdateParams(signer string, params *Params) *MsgUpdateParams
func (*MsgUpdateParams) Descriptor ¶ added in v0.10.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.10.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.10.0
func (m *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) GetSignBytes ¶ added in v0.10.0
func (msg *MsgUpdateParams) GetSignBytes() []byte
func (*MsgUpdateParams) GetSigners ¶ added in v0.10.0
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
func (*MsgUpdateParams) Marshal ¶ added in v0.10.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.10.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.10.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.10.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶ added in v0.10.0
func (msg *MsgUpdateParams) Route() string
func (*MsgUpdateParams) Size ¶ added in v0.10.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.10.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶ added in v0.10.0
func (msg *MsgUpdateParams) Type() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.10.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v0.10.0
func (msg *MsgUpdateParams) ValidateBasic() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.10.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.10.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.10.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.10.0
type MsgUpdateParamsResponse struct { }
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.10.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgUpdatePools ¶ added in v0.10.0
type MsgUpdatePools struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Pools []string `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty"` ClosedPools []string `protobuf:"bytes,3,rep,name=closed_pools,json=closedPools,proto3" json:"closed_pools,omitempty"` }
func NewMsgUpdatePools ¶ added in v0.10.0
func NewMsgUpdatePools(signer string, pools []string, closedPools []string) *MsgUpdatePools
func (*MsgUpdatePools) Descriptor ¶ added in v0.10.0
func (*MsgUpdatePools) Descriptor() ([]byte, []int)
func (*MsgUpdatePools) GetAuthority ¶ added in v0.10.0
func (m *MsgUpdatePools) GetAuthority() string
func (*MsgUpdatePools) GetClosedPools ¶ added in v0.10.0
func (m *MsgUpdatePools) GetClosedPools() []string
func (*MsgUpdatePools) GetPools ¶ added in v0.10.0
func (m *MsgUpdatePools) GetPools() []string
func (*MsgUpdatePools) GetSignBytes ¶ added in v0.10.0
func (msg *MsgUpdatePools) GetSignBytes() []byte
func (*MsgUpdatePools) GetSigners ¶ added in v0.10.0
func (msg *MsgUpdatePools) GetSigners() []sdk.AccAddress
func (*MsgUpdatePools) Marshal ¶ added in v0.10.0
func (m *MsgUpdatePools) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePools) MarshalTo ¶ added in v0.10.0
func (m *MsgUpdatePools) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePools) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgUpdatePools) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePools) ProtoMessage ¶ added in v0.10.0
func (*MsgUpdatePools) ProtoMessage()
func (*MsgUpdatePools) Reset ¶ added in v0.10.0
func (m *MsgUpdatePools) Reset()
func (*MsgUpdatePools) Route ¶ added in v0.10.0
func (msg *MsgUpdatePools) Route() string
func (*MsgUpdatePools) Size ¶ added in v0.10.0
func (m *MsgUpdatePools) Size() (n int)
func (*MsgUpdatePools) String ¶ added in v0.10.0
func (m *MsgUpdatePools) String() string
func (*MsgUpdatePools) Type ¶ added in v0.10.0
func (msg *MsgUpdatePools) Type() string
func (*MsgUpdatePools) Unmarshal ¶ added in v0.10.0
func (m *MsgUpdatePools) Unmarshal(dAtA []byte) error
func (*MsgUpdatePools) ValidateBasic ¶ added in v0.10.0
func (msg *MsgUpdatePools) ValidateBasic() error
func (*MsgUpdatePools) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgUpdatePools) XXX_DiscardUnknown()
func (*MsgUpdatePools) XXX_Marshal ¶ added in v0.10.0
func (m *MsgUpdatePools) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePools) XXX_Merge ¶ added in v0.10.0
func (m *MsgUpdatePools) XXX_Merge(src proto.Message)
func (*MsgUpdatePools) XXX_Size ¶ added in v0.10.0
func (m *MsgUpdatePools) XXX_Size() int
func (*MsgUpdatePools) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgUpdatePools) XXX_Unmarshal(b []byte) error
type MsgUpdatePoolsResponse ¶ added in v0.10.0
type MsgUpdatePoolsResponse struct { }
func (*MsgUpdatePoolsResponse) Descriptor ¶ added in v0.10.0
func (*MsgUpdatePoolsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdatePoolsResponse) Marshal ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePoolsResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePoolsResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePoolsResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgUpdatePoolsResponse) ProtoMessage()
func (*MsgUpdatePoolsResponse) Reset ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) Reset()
func (*MsgUpdatePoolsResponse) Size ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) Size() (n int)
func (*MsgUpdatePoolsResponse) String ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) String() string
func (*MsgUpdatePoolsResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdatePoolsResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) XXX_DiscardUnknown()
func (*MsgUpdatePoolsResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePoolsResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdatePoolsResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) XXX_Size() int
func (*MsgUpdatePoolsResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgUpdatePoolsResponse) XXX_Unmarshal(b []byte) error
type MsgWhitelist ¶ added in v0.10.0
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"` }
func NewMsgWhitelist ¶ added in v0.10.0
func NewMsgWhitelist(signer string, whitelistedAddress string) *MsgWhitelist
func (*MsgWhitelist) Descriptor ¶ added in v0.10.0
func (*MsgWhitelist) Descriptor() ([]byte, []int)
func (*MsgWhitelist) GetAuthority ¶ added in v0.10.0
func (m *MsgWhitelist) GetAuthority() string
func (*MsgWhitelist) GetSignBytes ¶ added in v0.10.0
func (msg *MsgWhitelist) GetSignBytes() []byte
func (*MsgWhitelist) GetSigners ¶ added in v0.10.0
func (msg *MsgWhitelist) GetSigners() []sdk.AccAddress
func (*MsgWhitelist) GetWhitelistedAddress ¶ added in v0.10.0
func (m *MsgWhitelist) GetWhitelistedAddress() string
func (*MsgWhitelist) Marshal ¶ added in v0.10.0
func (m *MsgWhitelist) Marshal() (dAtA []byte, err error)
func (*MsgWhitelist) MarshalTo ¶ added in v0.10.0
func (m *MsgWhitelist) MarshalTo(dAtA []byte) (int, error)
func (*MsgWhitelist) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgWhitelist) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWhitelist) ProtoMessage ¶ added in v0.10.0
func (*MsgWhitelist) ProtoMessage()
func (*MsgWhitelist) Reset ¶ added in v0.10.0
func (m *MsgWhitelist) Reset()
func (*MsgWhitelist) Route ¶ added in v0.10.0
func (msg *MsgWhitelist) Route() string
func (*MsgWhitelist) Size ¶ added in v0.10.0
func (m *MsgWhitelist) Size() (n int)
func (*MsgWhitelist) String ¶ added in v0.10.0
func (m *MsgWhitelist) String() string
func (*MsgWhitelist) Type ¶ added in v0.10.0
func (msg *MsgWhitelist) Type() string
func (*MsgWhitelist) Unmarshal ¶ added in v0.10.0
func (m *MsgWhitelist) Unmarshal(dAtA []byte) error
func (*MsgWhitelist) ValidateBasic ¶ added in v0.10.0
func (msg *MsgWhitelist) ValidateBasic() error
func (*MsgWhitelist) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgWhitelist) XXX_DiscardUnknown()
func (*MsgWhitelist) XXX_Marshal ¶ added in v0.10.0
func (m *MsgWhitelist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWhitelist) XXX_Merge ¶ added in v0.10.0
func (m *MsgWhitelist) XXX_Merge(src proto.Message)
func (*MsgWhitelist) XXX_Size ¶ added in v0.10.0
func (m *MsgWhitelist) XXX_Size() int
func (*MsgWhitelist) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgWhitelist) XXX_Unmarshal(b []byte) error
type MsgWhitelistResponse ¶ added in v0.10.0
type MsgWhitelistResponse struct { }
func (*MsgWhitelistResponse) Descriptor ¶ added in v0.10.0
func (*MsgWhitelistResponse) Descriptor() ([]byte, []int)
func (*MsgWhitelistResponse) Marshal ¶ added in v0.10.0
func (m *MsgWhitelistResponse) Marshal() (dAtA []byte, err error)
func (*MsgWhitelistResponse) MarshalTo ¶ added in v0.10.0
func (m *MsgWhitelistResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWhitelistResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *MsgWhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWhitelistResponse) ProtoMessage ¶ added in v0.10.0
func (*MsgWhitelistResponse) ProtoMessage()
func (*MsgWhitelistResponse) Reset ¶ added in v0.10.0
func (m *MsgWhitelistResponse) Reset()
func (*MsgWhitelistResponse) Size ¶ added in v0.10.0
func (m *MsgWhitelistResponse) Size() (n int)
func (*MsgWhitelistResponse) String ¶ added in v0.10.0
func (m *MsgWhitelistResponse) String() string
func (*MsgWhitelistResponse) Unmarshal ¶ added in v0.10.0
func (m *MsgWhitelistResponse) Unmarshal(dAtA []byte) error
func (*MsgWhitelistResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *MsgWhitelistResponse) XXX_DiscardUnknown()
func (*MsgWhitelistResponse) XXX_Marshal ¶ added in v0.10.0
func (m *MsgWhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWhitelistResponse) XXX_Merge ¶ added in v0.10.0
func (m *MsgWhitelistResponse) XXX_Merge(src proto.Message)
func (*MsgWhitelistResponse) XXX_Size ¶ added in v0.10.0
func (m *MsgWhitelistResponse) XXX_Size() int
func (*MsgWhitelistResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *MsgWhitelistResponse) XXX_Unmarshal(b []byte) error
type MultiMarginHooks ¶ added in v0.11.0
type MultiMarginHooks []MarginHooks
combine multiple margin hooks, all hook functions are run in array sequence.
func NewMultiMarginHooks ¶ added in v0.11.0
func NewMultiMarginHooks(hooks ...MarginHooks) MultiMarginHooks
Creates hooks for the Amm Module.
func (MultiMarginHooks) AfterAmmExitPool ¶ added in v0.11.0
func (MultiMarginHooks) AfterAmmJoinPool ¶ added in v0.11.0
func (MultiMarginHooks) AfterAmmPoolCreated ¶ added in v0.11.0
func (h MultiMarginHooks) AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool)
func (MultiMarginHooks) AfterAmmSwap ¶ added in v0.11.0
func (MultiMarginHooks) AfterMarginPositionClosed ¶ added in v0.11.0
func (MultiMarginHooks) AfterMarginPositionModified ¶ added in v0.11.0
func (MultiMarginHooks) AfterMarginPositionOpen ¶ added in v0.13.0
type OpenChecker ¶ added in v0.12.0
type OpenChecker interface { CheckUserAuthorization(ctx sdk.Context, msg *MsgOpen) error CheckMaxOpenPositions(ctx sdk.Context) error PreparePools(ctx sdk.Context, collateralAsset, tradingAsset string) (poolId uint64, ammPool ammtypes.Pool, pool Pool, err error) CheckPoolHealth(ctx sdk.Context, poolId uint64) error OpenLong(ctx sdk.Context, poolId uint64, msg *MsgOpen, baseCurrency string) (*MTP, error) OpenShort(ctx sdk.Context, poolId uint64, msg *MsgOpen, baseCurrency string) (*MTP, error) EmitOpenEvent(ctx sdk.Context, mtp *MTP) SetMTP(ctx sdk.Context, mtp *MTP) error CheckSameAssetPosition(ctx sdk.Context, msg *MsgOpen) *MTP GetOpenMTPCount(ctx sdk.Context) uint64 GetMaxOpenPositions(ctx sdk.Context) uint64 }
type OpenLongChecker ¶ added in v0.10.0
type OpenLongChecker interface { GetMaxLeverageParam(ctx sdk.Context) sdk.Dec GetPool(ctx sdk.Context, poolId uint64) (Pool, bool) IsPoolEnabled(ctx sdk.Context, poolId uint64) bool GetAmmPool(ctx sdk.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error) CheckMinLiabilities(ctx sdk.Context, collateralTokenAmt sdk.Coin, eta sdk.Dec, ammPool ammtypes.Pool, borrowAsset string, baseCurrency string) error EstimateSwap(ctx sdk.Context, leveragedAmtTokenIn sdk.Coin, borrowAsset string, ammPool ammtypes.Pool) (sdk.Int, error) EstimateSwapGivenOut(ctx sdk.Context, tokenOutAmount sdk.Coin, tokenInDenom string, ammPool ammtypes.Pool) (sdk.Int, error) Borrow(ctx sdk.Context, collateralAmount sdk.Int, custodyAmount sdk.Int, mtp *MTP, ammPool *ammtypes.Pool, pool *Pool, eta sdk.Dec, baseCurrency string) error UpdatePoolHealth(ctx sdk.Context, pool *Pool) error TakeInCustody(ctx sdk.Context, mtp MTP, pool *Pool) error UpdateMTPHealth(ctx sdk.Context, mtp MTP, ammPool ammtypes.Pool, baseCurrency string) (sdk.Dec, error) GetSafetyFactor(ctx sdk.Context) sdk.Dec SetPool(ctx sdk.Context, pool Pool) CheckSameAssetPosition(ctx sdk.Context, msg *MsgOpen) *MTP SetMTP(ctx sdk.Context, mtp *MTP) error CalcMTPConsolidateCollateral(ctx sdk.Context, mtp *MTP, baseCurrency string) error }
type OpenShortChecker ¶ added in v0.12.0
type OpenShortChecker interface { GetMaxLeverageParam(ctx sdk.Context) sdk.Dec GetPool(ctx sdk.Context, poolId uint64) (Pool, bool) IsPoolEnabled(ctx sdk.Context, poolId uint64) bool GetAmmPool(ctx sdk.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error) CheckMinLiabilities(ctx sdk.Context, collateralTokenAmt sdk.Coin, eta sdk.Dec, ammPool ammtypes.Pool, borrowAsset string, baseCurrency string) error EstimateSwap(ctx sdk.Context, leveragedAmtTokenIn sdk.Coin, borrowAsset string, ammPool ammtypes.Pool) (sdk.Int, error) EstimateSwapGivenOut(ctx sdk.Context, tokenOutAmount sdk.Coin, tokenInDenom string, ammPool ammtypes.Pool) (sdk.Int, error) Borrow(ctx sdk.Context, collateralAmount sdk.Int, custodyAmount sdk.Int, mtp *MTP, ammPool *ammtypes.Pool, pool *Pool, eta sdk.Dec, baseCurrency string) error UpdatePoolHealth(ctx sdk.Context, pool *Pool) error TakeInCustody(ctx sdk.Context, mtp MTP, pool *Pool) error UpdateMTPHealth(ctx sdk.Context, mtp MTP, ammPool ammtypes.Pool, baseCurrency string) (sdk.Dec, error) GetSafetyFactor(ctx sdk.Context) sdk.Dec SetPool(ctx sdk.Context, pool Pool) CheckSameAssetPosition(ctx sdk.Context, msg *MsgOpen) *MTP SetMTP(ctx sdk.Context, mtp *MTP) error CalcMTPConsolidateCollateral(ctx sdk.Context, mtp *MTP, baseCurrency string) error }
type Params ¶
type Params struct { LeverageMax github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */ BorrowInterestRateMax github_com_cosmos_cosmos_sdk_types.Dec `` /* 168-byte string literal not displayed */ BorrowInterestRateMin github_com_cosmos_cosmos_sdk_types.Dec `` /* 168-byte string literal not displayed */ BorrowInterestRateIncrease github_com_cosmos_cosmos_sdk_types.Dec `` /* 183-byte string literal not displayed */ BorrowInterestRateDecrease github_com_cosmos_cosmos_sdk_types.Dec `` /* 183-byte string literal not displayed */ HealthGainFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */ EpochLength int64 `protobuf:"varint,7,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` RemovalQueueThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */ MaxOpenPositions int64 `protobuf:"varint,9,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"` PoolOpenThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 155-byte string literal not displayed */ ForceCloseFundPercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 178-byte string literal not displayed */ ForceCloseFundAddress string `` /* 129-byte string literal not displayed */ IncrementalBorrowInterestPaymentFundPercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 248-byte string literal not displayed */ IncrementalBorrowInterestPaymentFundAddress string `` /* 199-byte string literal not displayed */ SqModifier github_com_cosmos_cosmos_sdk_types.Dec `` /* 132-byte string literal not displayed */ SafetyFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */ IncrementalBorrowInterestPaymentEnabled bool `` /* 186-byte string literal not displayed */ WhitelistingEnabled bool `protobuf:"varint,18,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"` InvariantCheckEpoch string `protobuf:"bytes,19,opt,name=invariant_check_epoch,json=invariantCheckEpoch,proto3" json:"invariant_check_epoch,omitempty"` TakeProfitBorrowInterestRateMin github_com_cosmos_cosmos_sdk_types.Dec `` /* 203-byte string literal not displayed */ FundingFeeBaseRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */ FundingFeeMaxRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 157-byte string literal not displayed */ FundingFeeMinRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 157-byte string literal not displayed */ FundingFeeCollectionAddress string `` /* 147-byte string literal not displayed */ SwapFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,25,opt,name=swap_fee,json=swapFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"swap_fee"` }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetEpochLength ¶ added in v0.10.0
func (*Params) GetForceCloseFundAddress ¶ added in v0.10.0
func (*Params) GetFundingFeeCollectionAddress ¶ added in v0.16.0
func (*Params) GetIncrementalBorrowInterestPaymentEnabled ¶ added in v0.15.0
func (*Params) GetIncrementalBorrowInterestPaymentFundAddress ¶ added in v0.15.0
func (*Params) GetInvariantCheckEpoch ¶ added in v0.11.0
func (*Params) GetMaxOpenPositions ¶ added in v0.10.0
func (*Params) GetWhitelistingEnabled ¶ added in v0.10.0
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ParamsRequest ¶ added in v0.10.0
type ParamsRequest struct { }
ParamsRequest is request type for the Query/Params RPC method.
func (*ParamsRequest) Descriptor ¶ added in v0.10.0
func (*ParamsRequest) Descriptor() ([]byte, []int)
func (*ParamsRequest) Marshal ¶ added in v0.10.0
func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
func (*ParamsRequest) MarshalTo ¶ added in v0.10.0
func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ParamsRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsRequest) ProtoMessage ¶ added in v0.10.0
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) Reset ¶ added in v0.10.0
func (m *ParamsRequest) Reset()
func (*ParamsRequest) Size ¶ added in v0.10.0
func (m *ParamsRequest) Size() (n int)
func (*ParamsRequest) String ¶ added in v0.10.0
func (m *ParamsRequest) String() string
func (*ParamsRequest) Unmarshal ¶ added in v0.10.0
func (m *ParamsRequest) Unmarshal(dAtA []byte) error
func (*ParamsRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *ParamsRequest) XXX_DiscardUnknown()
func (*ParamsRequest) XXX_Marshal ¶ added in v0.10.0
func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsRequest) XXX_Merge ¶ added in v0.10.0
func (m *ParamsRequest) XXX_Merge(src proto.Message)
func (*ParamsRequest) XXX_Size ¶ added in v0.10.0
func (m *ParamsRequest) XXX_Size() int
func (*ParamsRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
type ParamsResponse ¶ added in v0.10.0
type ParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
ParamsResponse is response type for the Query/Params RPC method.
func (*ParamsResponse) Descriptor ¶ added in v0.10.0
func (*ParamsResponse) Descriptor() ([]byte, []int)
func (*ParamsResponse) GetParams ¶ added in v0.10.0
func (m *ParamsResponse) GetParams() Params
func (*ParamsResponse) Marshal ¶ added in v0.10.0
func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
func (*ParamsResponse) MarshalTo ¶ added in v0.10.0
func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ParamsResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsResponse) ProtoMessage ¶ added in v0.10.0
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) Reset ¶ added in v0.10.0
func (m *ParamsResponse) Reset()
func (*ParamsResponse) Size ¶ added in v0.10.0
func (m *ParamsResponse) Size() (n int)
func (*ParamsResponse) String ¶ added in v0.10.0
func (m *ParamsResponse) String() string
func (*ParamsResponse) Unmarshal ¶ added in v0.10.0
func (m *ParamsResponse) Unmarshal(dAtA []byte) error
func (*ParamsResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *ParamsResponse) XXX_DiscardUnknown()
func (*ParamsResponse) XXX_Marshal ¶ added in v0.10.0
func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsResponse) XXX_Merge ¶ added in v0.10.0
func (m *ParamsResponse) XXX_Merge(src proto.Message)
func (*ParamsResponse) XXX_Size ¶ added in v0.10.0
func (m *ParamsResponse) XXX_Size() int
func (*ParamsResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
type Pool ¶ added in v0.10.0
type Pool struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Health github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=health,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"health"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` Closed bool `protobuf:"varint,4,opt,name=closed,proto3" json:"closed,omitempty"` BorrowInterestRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 157-byte string literal not displayed */ PoolAssetsLong []PoolAsset `protobuf:"bytes,6,rep,name=pool_assets_long,json=poolAssetsLong,proto3" json:"pool_assets_long"` PoolAssetsShort []PoolAsset `protobuf:"bytes,7,rep,name=pool_assets_short,json=poolAssetsShort,proto3" json:"pool_assets_short"` LastHeightBorrowInterestRateComputed int64 `` /* 178-byte string literal not displayed */ // funding rate, if positive longs pay shorts, if negative shorts pay longs FundingRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */ }
func (*Pool) Descriptor ¶ added in v0.10.0
func (*Pool) GetAmmPoolId ¶ added in v0.10.0
func (*Pool) GetEnabled ¶ added in v0.10.0
func (*Pool) GetLastHeightBorrowInterestRateComputed ¶ added in v0.15.0
func (*Pool) GetPoolAsset ¶ added in v0.19.0
Get relevant pool asset based on position direction and asset denom
func (*Pool) GetPoolAssets ¶ added in v0.10.0
Get relevant pool asset array based on position direction
func (*Pool) GetPoolAssetsLong ¶ added in v0.15.0
func (*Pool) GetPoolAssetsShort ¶ added in v0.15.0
func (*Pool) InitiatePool ¶ added in v0.10.0
Initialite pool asset according to its corresponding amm pool assets.
func (*Pool) MarshalToSizedBuffer ¶ added in v0.10.0
func (*Pool) ProtoMessage ¶ added in v0.10.0
func (*Pool) ProtoMessage()
func (*Pool) UpdateBalance ¶ added in v0.10.0
func (p *Pool) UpdateBalance(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, position Position) error
Update the asset balance
func (*Pool) UpdateBlockBorrowInterest ¶ added in v0.15.0
func (p *Pool) UpdateBlockBorrowInterest(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, position Position) error
Update the unsettled liabilities balance
func (*Pool) UpdateCustody ¶ added in v0.10.0
func (p *Pool) UpdateCustody(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, position Position) error
Update the asset custody
func (*Pool) UpdateLiabilities ¶ added in v0.10.0
func (p *Pool) UpdateLiabilities(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, position Position) error
Update the asset liabilities
func (*Pool) UpdateTakeProfitCustody ¶ added in v0.16.0
func (p *Pool) UpdateTakeProfitCustody(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, position Position) error
Update the asset take profit custody
func (*Pool) UpdateTakeProfitLiabilities ¶ added in v0.16.0
func (p *Pool) UpdateTakeProfitLiabilities(ctx sdk.Context, assetDenom string, amount sdk.Int, isIncrease bool, position Position) error
Update the asset take profit liabilities
func (*Pool) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Marshal ¶ added in v0.10.0
func (*Pool) XXX_Unmarshal ¶ added in v0.10.0
type PoolAsset ¶ added in v0.10.0
type PoolAsset struct { Liabilities github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=liabilities,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"liabilities"` Custody github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=custody,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"custody"` TakeProfitLiabilities github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */ TakeProfitCustody github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */ AssetBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */ BlockBorrowInterest github_com_cosmos_cosmos_sdk_types.Int `` /* 160-byte string literal not displayed */ AssetDenom string `protobuf:"bytes,7,opt,name=asset_denom,json=assetDenom,proto3" json:"asset_denom,omitempty"` }
func (*PoolAsset) Descriptor ¶ added in v0.10.0
func (*PoolAsset) GetAssetDenom ¶ added in v0.10.0
func (*PoolAsset) MarshalToSizedBuffer ¶ added in v0.10.0
func (*PoolAsset) ProtoMessage ¶ added in v0.10.0
func (*PoolAsset) ProtoMessage()
func (*PoolAsset) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *PoolAsset) XXX_DiscardUnknown()
func (*PoolAsset) XXX_Marshal ¶ added in v0.10.0
func (*PoolAsset) XXX_Unmarshal ¶ added in v0.10.0
type PoolChecker ¶ added in v0.10.0
type Position ¶ added in v0.10.0
type Position int32
func GetPositionFromString ¶ added in v0.10.0
func (Position) EnumDescriptor ¶ added in v0.10.0
type PositionChecker ¶ added in v0.10.0
type PositionsByPoolRequest ¶ added in v0.10.0
type PositionsByPoolRequest struct { AmmPoolId uint64 `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*PositionsByPoolRequest) Descriptor ¶ added in v0.10.0
func (*PositionsByPoolRequest) Descriptor() ([]byte, []int)
func (*PositionsByPoolRequest) GetAmmPoolId ¶ added in v0.10.0
func (m *PositionsByPoolRequest) GetAmmPoolId() uint64
func (*PositionsByPoolRequest) GetPagination ¶ added in v0.10.0
func (m *PositionsByPoolRequest) GetPagination() *query.PageRequest
func (*PositionsByPoolRequest) Marshal ¶ added in v0.10.0
func (m *PositionsByPoolRequest) Marshal() (dAtA []byte, err error)
func (*PositionsByPoolRequest) MarshalTo ¶ added in v0.10.0
func (m *PositionsByPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*PositionsByPoolRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *PositionsByPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionsByPoolRequest) ProtoMessage ¶ added in v0.10.0
func (*PositionsByPoolRequest) ProtoMessage()
func (*PositionsByPoolRequest) Reset ¶ added in v0.10.0
func (m *PositionsByPoolRequest) Reset()
func (*PositionsByPoolRequest) Size ¶ added in v0.10.0
func (m *PositionsByPoolRequest) Size() (n int)
func (*PositionsByPoolRequest) String ¶ added in v0.10.0
func (m *PositionsByPoolRequest) String() string
func (*PositionsByPoolRequest) Unmarshal ¶ added in v0.10.0
func (m *PositionsByPoolRequest) Unmarshal(dAtA []byte) error
func (*PositionsByPoolRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *PositionsByPoolRequest) XXX_DiscardUnknown()
func (*PositionsByPoolRequest) XXX_Marshal ¶ added in v0.10.0
func (m *PositionsByPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionsByPoolRequest) XXX_Merge ¶ added in v0.10.0
func (m *PositionsByPoolRequest) XXX_Merge(src proto.Message)
func (*PositionsByPoolRequest) XXX_Size ¶ added in v0.10.0
func (m *PositionsByPoolRequest) XXX_Size() int
func (*PositionsByPoolRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *PositionsByPoolRequest) XXX_Unmarshal(b []byte) error
type PositionsByPoolResponse ¶ added in v0.10.0
type PositionsByPoolResponse struct { Mtps []*MTP `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*PositionsByPoolResponse) Descriptor ¶ added in v0.10.0
func (*PositionsByPoolResponse) Descriptor() ([]byte, []int)
func (*PositionsByPoolResponse) GetMtps ¶ added in v0.10.0
func (m *PositionsByPoolResponse) GetMtps() []*MTP
func (*PositionsByPoolResponse) GetPagination ¶ added in v0.10.0
func (m *PositionsByPoolResponse) GetPagination() *query.PageResponse
func (*PositionsByPoolResponse) Marshal ¶ added in v0.10.0
func (m *PositionsByPoolResponse) Marshal() (dAtA []byte, err error)
func (*PositionsByPoolResponse) MarshalTo ¶ added in v0.10.0
func (m *PositionsByPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*PositionsByPoolResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *PositionsByPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionsByPoolResponse) ProtoMessage ¶ added in v0.10.0
func (*PositionsByPoolResponse) ProtoMessage()
func (*PositionsByPoolResponse) Reset ¶ added in v0.10.0
func (m *PositionsByPoolResponse) Reset()
func (*PositionsByPoolResponse) Size ¶ added in v0.10.0
func (m *PositionsByPoolResponse) Size() (n int)
func (*PositionsByPoolResponse) String ¶ added in v0.10.0
func (m *PositionsByPoolResponse) String() string
func (*PositionsByPoolResponse) Unmarshal ¶ added in v0.10.0
func (m *PositionsByPoolResponse) Unmarshal(dAtA []byte) error
func (*PositionsByPoolResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *PositionsByPoolResponse) XXX_DiscardUnknown()
func (*PositionsByPoolResponse) XXX_Marshal ¶ added in v0.10.0
func (m *PositionsByPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionsByPoolResponse) XXX_Merge ¶ added in v0.10.0
func (m *PositionsByPoolResponse) XXX_Merge(src proto.Message)
func (*PositionsByPoolResponse) XXX_Size ¶ added in v0.10.0
func (m *PositionsByPoolResponse) XXX_Size() int
func (*PositionsByPoolResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *PositionsByPoolResponse) XXX_Unmarshal(b []byte) error
type PositionsForAddressRequest ¶ added in v0.10.0
type PositionsForAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*PositionsForAddressRequest) Descriptor ¶ added in v0.10.0
func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)
func (*PositionsForAddressRequest) GetAddress ¶ added in v0.10.0
func (m *PositionsForAddressRequest) GetAddress() string
func (*PositionsForAddressRequest) GetPagination ¶ added in v0.10.0
func (m *PositionsForAddressRequest) GetPagination() *query.PageRequest
func (*PositionsForAddressRequest) Marshal ¶ added in v0.10.0
func (m *PositionsForAddressRequest) Marshal() (dAtA []byte, err error)
func (*PositionsForAddressRequest) MarshalTo ¶ added in v0.10.0
func (m *PositionsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*PositionsForAddressRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *PositionsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionsForAddressRequest) ProtoMessage ¶ added in v0.10.0
func (*PositionsForAddressRequest) ProtoMessage()
func (*PositionsForAddressRequest) Reset ¶ added in v0.10.0
func (m *PositionsForAddressRequest) Reset()
func (*PositionsForAddressRequest) Size ¶ added in v0.10.0
func (m *PositionsForAddressRequest) Size() (n int)
func (*PositionsForAddressRequest) String ¶ added in v0.10.0
func (m *PositionsForAddressRequest) String() string
func (*PositionsForAddressRequest) Unmarshal ¶ added in v0.10.0
func (m *PositionsForAddressRequest) Unmarshal(dAtA []byte) error
func (*PositionsForAddressRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *PositionsForAddressRequest) XXX_DiscardUnknown()
func (*PositionsForAddressRequest) XXX_Marshal ¶ added in v0.10.0
func (m *PositionsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionsForAddressRequest) XXX_Merge ¶ added in v0.10.0
func (m *PositionsForAddressRequest) XXX_Merge(src proto.Message)
func (*PositionsForAddressRequest) XXX_Size ¶ added in v0.10.0
func (m *PositionsForAddressRequest) XXX_Size() int
func (*PositionsForAddressRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *PositionsForAddressRequest) XXX_Unmarshal(b []byte) error
type PositionsForAddressResponse ¶ added in v0.10.0
type PositionsForAddressResponse struct { Mtps []*MTP `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*PositionsForAddressResponse) Descriptor ¶ added in v0.10.0
func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)
func (*PositionsForAddressResponse) GetMtps ¶ added in v0.10.0
func (m *PositionsForAddressResponse) GetMtps() []*MTP
func (*PositionsForAddressResponse) GetPagination ¶ added in v0.10.0
func (m *PositionsForAddressResponse) GetPagination() *query.PageResponse
func (*PositionsForAddressResponse) Marshal ¶ added in v0.10.0
func (m *PositionsForAddressResponse) Marshal() (dAtA []byte, err error)
func (*PositionsForAddressResponse) MarshalTo ¶ added in v0.10.0
func (m *PositionsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*PositionsForAddressResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *PositionsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionsForAddressResponse) ProtoMessage ¶ added in v0.10.0
func (*PositionsForAddressResponse) ProtoMessage()
func (*PositionsForAddressResponse) Reset ¶ added in v0.10.0
func (m *PositionsForAddressResponse) Reset()
func (*PositionsForAddressResponse) Size ¶ added in v0.10.0
func (m *PositionsForAddressResponse) Size() (n int)
func (*PositionsForAddressResponse) String ¶ added in v0.10.0
func (m *PositionsForAddressResponse) String() string
func (*PositionsForAddressResponse) Unmarshal ¶ added in v0.10.0
func (m *PositionsForAddressResponse) Unmarshal(dAtA []byte) error
func (*PositionsForAddressResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *PositionsForAddressResponse) XXX_DiscardUnknown()
func (*PositionsForAddressResponse) XXX_Marshal ¶ added in v0.10.0
func (m *PositionsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionsForAddressResponse) XXX_Merge ¶ added in v0.10.0
func (m *PositionsForAddressResponse) XXX_Merge(src proto.Message)
func (*PositionsForAddressResponse) XXX_Size ¶ added in v0.10.0
func (m *PositionsForAddressResponse) XXX_Size() int
func (*PositionsForAddressResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *PositionsForAddressResponse) XXX_Unmarshal(b []byte) error
type PositionsRequest ¶ added in v0.10.0
type PositionsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*PositionsRequest) Descriptor ¶ added in v0.10.0
func (*PositionsRequest) Descriptor() ([]byte, []int)
func (*PositionsRequest) GetPagination ¶ added in v0.10.0
func (m *PositionsRequest) GetPagination() *query.PageRequest
func (*PositionsRequest) Marshal ¶ added in v0.10.0
func (m *PositionsRequest) Marshal() (dAtA []byte, err error)
func (*PositionsRequest) MarshalTo ¶ added in v0.10.0
func (m *PositionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*PositionsRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *PositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionsRequest) ProtoMessage ¶ added in v0.10.0
func (*PositionsRequest) ProtoMessage()
func (*PositionsRequest) Reset ¶ added in v0.10.0
func (m *PositionsRequest) Reset()
func (*PositionsRequest) Size ¶ added in v0.10.0
func (m *PositionsRequest) Size() (n int)
func (*PositionsRequest) String ¶ added in v0.10.0
func (m *PositionsRequest) String() string
func (*PositionsRequest) Unmarshal ¶ added in v0.10.0
func (m *PositionsRequest) Unmarshal(dAtA []byte) error
func (*PositionsRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *PositionsRequest) XXX_DiscardUnknown()
func (*PositionsRequest) XXX_Marshal ¶ added in v0.10.0
func (m *PositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionsRequest) XXX_Merge ¶ added in v0.10.0
func (m *PositionsRequest) XXX_Merge(src proto.Message)
func (*PositionsRequest) XXX_Size ¶ added in v0.10.0
func (m *PositionsRequest) XXX_Size() int
func (*PositionsRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *PositionsRequest) XXX_Unmarshal(b []byte) error
type PositionsResponse ¶ added in v0.10.0
type PositionsResponse struct { Mtps []*MTP `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*PositionsResponse) Descriptor ¶ added in v0.10.0
func (*PositionsResponse) Descriptor() ([]byte, []int)
func (*PositionsResponse) GetMtps ¶ added in v0.10.0
func (m *PositionsResponse) GetMtps() []*MTP
func (*PositionsResponse) GetPagination ¶ added in v0.10.0
func (m *PositionsResponse) GetPagination() *query.PageResponse
func (*PositionsResponse) Marshal ¶ added in v0.10.0
func (m *PositionsResponse) Marshal() (dAtA []byte, err error)
func (*PositionsResponse) MarshalTo ¶ added in v0.10.0
func (m *PositionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*PositionsResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *PositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PositionsResponse) ProtoMessage ¶ added in v0.10.0
func (*PositionsResponse) ProtoMessage()
func (*PositionsResponse) Reset ¶ added in v0.10.0
func (m *PositionsResponse) Reset()
func (*PositionsResponse) Size ¶ added in v0.10.0
func (m *PositionsResponse) Size() (n int)
func (*PositionsResponse) String ¶ added in v0.10.0
func (m *PositionsResponse) String() string
func (*PositionsResponse) Unmarshal ¶ added in v0.10.0
func (m *PositionsResponse) Unmarshal(dAtA []byte) error
func (*PositionsResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *PositionsResponse) XXX_DiscardUnknown()
func (*PositionsResponse) XXX_Marshal ¶ added in v0.10.0
func (m *PositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PositionsResponse) XXX_Merge ¶ added in v0.10.0
func (m *PositionsResponse) XXX_Merge(src proto.Message)
func (*PositionsResponse) XXX_Size ¶ added in v0.10.0
func (m *PositionsResponse) XXX_Size() int
func (*PositionsResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *PositionsResponse) XXX_Unmarshal(b []byte) error
type QueryAllPoolRequest ¶ added in v0.10.0
type QueryAllPoolRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllPoolRequest) Descriptor ¶ added in v0.10.0
func (*QueryAllPoolRequest) Descriptor() ([]byte, []int)
func (*QueryAllPoolRequest) GetPagination ¶ added in v0.10.0
func (m *QueryAllPoolRequest) GetPagination() *query.PageRequest
func (*QueryAllPoolRequest) Marshal ¶ added in v0.10.0
func (m *QueryAllPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllPoolRequest) MarshalTo ¶ added in v0.10.0
func (m *QueryAllPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPoolRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryAllPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPoolRequest) ProtoMessage ¶ added in v0.10.0
func (*QueryAllPoolRequest) ProtoMessage()
func (*QueryAllPoolRequest) Reset ¶ added in v0.10.0
func (m *QueryAllPoolRequest) Reset()
func (*QueryAllPoolRequest) Size ¶ added in v0.10.0
func (m *QueryAllPoolRequest) Size() (n int)
func (*QueryAllPoolRequest) String ¶ added in v0.10.0
func (m *QueryAllPoolRequest) String() string
func (*QueryAllPoolRequest) Unmarshal ¶ added in v0.10.0
func (m *QueryAllPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryAllPoolRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryAllPoolRequest) XXX_DiscardUnknown()
func (*QueryAllPoolRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QueryAllPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPoolRequest) XXX_Merge ¶ added in v0.10.0
func (m *QueryAllPoolRequest) XXX_Merge(src proto.Message)
func (*QueryAllPoolRequest) XXX_Size ¶ added in v0.10.0
func (m *QueryAllPoolRequest) XXX_Size() int
func (*QueryAllPoolRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryAllPoolRequest) XXX_Unmarshal(b []byte) error
type QueryAllPoolResponse ¶ added in v0.10.0
type QueryAllPoolResponse struct { Pool []Pool `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllPoolResponse) Descriptor ¶ added in v0.10.0
func (*QueryAllPoolResponse) Descriptor() ([]byte, []int)
func (*QueryAllPoolResponse) GetPagination ¶ added in v0.10.0
func (m *QueryAllPoolResponse) GetPagination() *query.PageResponse
func (*QueryAllPoolResponse) GetPool ¶ added in v0.10.0
func (m *QueryAllPoolResponse) GetPool() []Pool
func (*QueryAllPoolResponse) Marshal ¶ added in v0.10.0
func (m *QueryAllPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllPoolResponse) MarshalTo ¶ added in v0.10.0
func (m *QueryAllPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPoolResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryAllPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPoolResponse) ProtoMessage ¶ added in v0.10.0
func (*QueryAllPoolResponse) ProtoMessage()
func (*QueryAllPoolResponse) Reset ¶ added in v0.10.0
func (m *QueryAllPoolResponse) Reset()
func (*QueryAllPoolResponse) Size ¶ added in v0.10.0
func (m *QueryAllPoolResponse) Size() (n int)
func (*QueryAllPoolResponse) String ¶ added in v0.10.0
func (m *QueryAllPoolResponse) String() string
func (*QueryAllPoolResponse) Unmarshal ¶ added in v0.10.0
func (m *QueryAllPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryAllPoolResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryAllPoolResponse) XXX_DiscardUnknown()
func (*QueryAllPoolResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QueryAllPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPoolResponse) XXX_Merge ¶ added in v0.10.0
func (m *QueryAllPoolResponse) XXX_Merge(src proto.Message)
func (*QueryAllPoolResponse) XXX_Size ¶ added in v0.10.0
func (m *QueryAllPoolResponse) XXX_Size() int
func (*QueryAllPoolResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryAllPoolResponse) XXX_Unmarshal(b []byte) error
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 positions. GetPositions(ctx context.Context, in *PositionsRequest, opts ...grpc.CallOption) (*PositionsResponse, error) // Queries a list of mtp positions by pool. GetPositionsByPool(ctx context.Context, in *PositionsByPoolRequest, opts ...grpc.CallOption) (*PositionsByPoolResponse, error) // Retuns the total number of open and lifetime mtps. GetStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) // Queries a list of mtp positions for a given address. GetPositionsForAddress(ctx context.Context, in *PositionsForAddressRequest, opts ...grpc.CallOption) (*PositionsForAddressResponse, error) // Queries a list of whitelisted addresses. GetWhitelist(ctx context.Context, in *WhitelistRequest, opts ...grpc.CallOption) (*WhitelistResponse, error) // Is an address whitelisted? IsWhitelisted(ctx context.Context, in *IsWhitelistedRequest, opts ...grpc.CallOption) (*IsWhitelistedResponse, error) // Queries a single pool given its index. Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error) // Queries a list of all pools. Pools(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error) // Queries a single mtp position given its address and id. MTP(ctx context.Context, in *MTPRequest, opts ...grpc.CallOption) (*MTPResponse, error) // Queries an estimation of a new open position details. OpenEstimation(ctx context.Context, in *QueryOpenEstimationRequest, opts ...grpc.CallOption) (*QueryOpenEstimationResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetPoolRequest ¶ added in v0.10.0
type QueryGetPoolRequest struct {
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetPoolRequest) Descriptor ¶ added in v0.10.0
func (*QueryGetPoolRequest) Descriptor() ([]byte, []int)
func (*QueryGetPoolRequest) GetIndex ¶ added in v0.10.0
func (m *QueryGetPoolRequest) GetIndex() uint64
func (*QueryGetPoolRequest) Marshal ¶ added in v0.10.0
func (m *QueryGetPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetPoolRequest) MarshalTo ¶ added in v0.10.0
func (m *QueryGetPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPoolRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryGetPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPoolRequest) ProtoMessage ¶ added in v0.10.0
func (*QueryGetPoolRequest) ProtoMessage()
func (*QueryGetPoolRequest) Reset ¶ added in v0.10.0
func (m *QueryGetPoolRequest) Reset()
func (*QueryGetPoolRequest) Size ¶ added in v0.10.0
func (m *QueryGetPoolRequest) Size() (n int)
func (*QueryGetPoolRequest) String ¶ added in v0.10.0
func (m *QueryGetPoolRequest) String() string
func (*QueryGetPoolRequest) Unmarshal ¶ added in v0.10.0
func (m *QueryGetPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryGetPoolRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryGetPoolRequest) XXX_DiscardUnknown()
func (*QueryGetPoolRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QueryGetPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPoolRequest) XXX_Merge ¶ added in v0.10.0
func (m *QueryGetPoolRequest) XXX_Merge(src proto.Message)
func (*QueryGetPoolRequest) XXX_Size ¶ added in v0.10.0
func (m *QueryGetPoolRequest) XXX_Size() int
func (*QueryGetPoolRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryGetPoolRequest) XXX_Unmarshal(b []byte) error
type QueryGetPoolResponse ¶ added in v0.10.0
type QueryGetPoolResponse struct {
Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
}
func (*QueryGetPoolResponse) Descriptor ¶ added in v0.10.0
func (*QueryGetPoolResponse) Descriptor() ([]byte, []int)
func (*QueryGetPoolResponse) GetPool ¶ added in v0.10.0
func (m *QueryGetPoolResponse) GetPool() Pool
func (*QueryGetPoolResponse) Marshal ¶ added in v0.10.0
func (m *QueryGetPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetPoolResponse) MarshalTo ¶ added in v0.10.0
func (m *QueryGetPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPoolResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryGetPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPoolResponse) ProtoMessage ¶ added in v0.10.0
func (*QueryGetPoolResponse) ProtoMessage()
func (*QueryGetPoolResponse) Reset ¶ added in v0.10.0
func (m *QueryGetPoolResponse) Reset()
func (*QueryGetPoolResponse) Size ¶ added in v0.10.0
func (m *QueryGetPoolResponse) Size() (n int)
func (*QueryGetPoolResponse) String ¶ added in v0.10.0
func (m *QueryGetPoolResponse) String() string
func (*QueryGetPoolResponse) Unmarshal ¶ added in v0.10.0
func (m *QueryGetPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryGetPoolResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryGetPoolResponse) XXX_DiscardUnknown()
func (*QueryGetPoolResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QueryGetPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPoolResponse) XXX_Merge ¶ added in v0.10.0
func (m *QueryGetPoolResponse) XXX_Merge(src proto.Message)
func (*QueryGetPoolResponse) XXX_Size ¶ added in v0.10.0
func (m *QueryGetPoolResponse) XXX_Size() int
func (*QueryGetPoolResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryGetPoolResponse) XXX_Unmarshal(b []byte) error
type QueryOpenEstimationRequest ¶ added in v0.19.0
type QueryOpenEstimationRequest struct { Position Position `protobuf:"varint,1,opt,name=position,proto3,enum=elys.margin.Position" json:"position,omitempty"` Leverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"` TradingAsset string `protobuf:"bytes,3,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Collateral types.Coin `protobuf:"bytes,4,opt,name=collateral,proto3" json:"collateral"` Discount github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=discount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"discount"` TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */ }
func (*QueryOpenEstimationRequest) Descriptor ¶ added in v0.19.0
func (*QueryOpenEstimationRequest) Descriptor() ([]byte, []int)
func (*QueryOpenEstimationRequest) GetCollateral ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) GetCollateral() types.Coin
func (*QueryOpenEstimationRequest) GetPosition ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) GetPosition() Position
func (*QueryOpenEstimationRequest) GetTradingAsset ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) GetTradingAsset() string
func (*QueryOpenEstimationRequest) Marshal ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) Marshal() (dAtA []byte, err error)
func (*QueryOpenEstimationRequest) MarshalTo ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOpenEstimationRequest) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOpenEstimationRequest) ProtoMessage ¶ added in v0.19.0
func (*QueryOpenEstimationRequest) ProtoMessage()
func (*QueryOpenEstimationRequest) Reset ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) Reset()
func (*QueryOpenEstimationRequest) Size ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) Size() (n int)
func (*QueryOpenEstimationRequest) String ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) String() string
func (*QueryOpenEstimationRequest) Unmarshal ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) Unmarshal(dAtA []byte) error
func (*QueryOpenEstimationRequest) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) XXX_DiscardUnknown()
func (*QueryOpenEstimationRequest) XXX_Marshal ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOpenEstimationRequest) XXX_Merge ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) XXX_Merge(src proto.Message)
func (*QueryOpenEstimationRequest) XXX_Size ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) XXX_Size() int
func (*QueryOpenEstimationRequest) XXX_Unmarshal ¶ added in v0.19.0
func (m *QueryOpenEstimationRequest) XXX_Unmarshal(b []byte) error
type QueryOpenEstimationResponse ¶ added in v0.19.0
type QueryOpenEstimationResponse struct { Position Position `protobuf:"varint,1,opt,name=position,proto3,enum=elys.margin.Position" json:"position,omitempty"` Leverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"` TradingAsset string `protobuf:"bytes,3,opt,name=trading_asset,json=tradingAsset,proto3" json:"trading_asset,omitempty"` Collateral types.Coin `protobuf:"bytes,4,opt,name=collateral,proto3" json:"collateral"` MinCollateral types.Coin `protobuf:"bytes,5,opt,name=min_collateral,json=minCollateral,proto3" json:"min_collateral"` ValidCollateral bool `protobuf:"varint,6,opt,name=valid_collateral,json=validCollateral,proto3" json:"valid_collateral,omitempty"` PositionSize types.Coin `protobuf:"bytes,7,opt,name=position_size,json=positionSize,proto3" json:"position_size"` SwapFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=swap_fee,json=swapFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"swap_fee"` Discount github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,9,opt,name=discount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"discount"` OpenPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 129-byte string literal not displayed */ TakeProfitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ LiquidationPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */ EstimatedPnl github_com_cosmos_cosmos_sdk_types.Int `` /* 138-byte string literal not displayed */ AvailableLiquidity types.Coin `protobuf:"bytes,14,opt,name=available_liquidity,json=availableLiquidity,proto3" json:"available_liquidity"` }
func (*QueryOpenEstimationResponse) Descriptor ¶ added in v0.19.0
func (*QueryOpenEstimationResponse) Descriptor() ([]byte, []int)
func (*QueryOpenEstimationResponse) GetAvailableLiquidity ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) GetAvailableLiquidity() types.Coin
func (*QueryOpenEstimationResponse) GetCollateral ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) GetCollateral() types.Coin
func (*QueryOpenEstimationResponse) GetMinCollateral ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) GetMinCollateral() types.Coin
func (*QueryOpenEstimationResponse) GetPosition ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) GetPosition() Position
func (*QueryOpenEstimationResponse) GetPositionSize ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) GetPositionSize() types.Coin
func (*QueryOpenEstimationResponse) GetTradingAsset ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) GetTradingAsset() string
func (*QueryOpenEstimationResponse) GetValidCollateral ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) GetValidCollateral() bool
func (*QueryOpenEstimationResponse) Marshal ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) Marshal() (dAtA []byte, err error)
func (*QueryOpenEstimationResponse) MarshalTo ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOpenEstimationResponse) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOpenEstimationResponse) ProtoMessage ¶ added in v0.19.0
func (*QueryOpenEstimationResponse) ProtoMessage()
func (*QueryOpenEstimationResponse) Reset ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) Reset()
func (*QueryOpenEstimationResponse) Size ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) Size() (n int)
func (*QueryOpenEstimationResponse) String ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) String() string
func (*QueryOpenEstimationResponse) Unmarshal ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) Unmarshal(dAtA []byte) error
func (*QueryOpenEstimationResponse) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) XXX_DiscardUnknown()
func (*QueryOpenEstimationResponse) XXX_Marshal ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOpenEstimationResponse) XXX_Merge ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) XXX_Merge(src proto.Message)
func (*QueryOpenEstimationResponse) XXX_Size ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) XXX_Size() int
func (*QueryOpenEstimationResponse) XXX_Unmarshal ¶ added in v0.19.0
func (m *QueryOpenEstimationResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) // Queries a list of positions. GetPositions(context.Context, *PositionsRequest) (*PositionsResponse, error) // Queries a list of mtp positions by pool. GetPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error) // Retuns the total number of open and lifetime mtps. GetStatus(context.Context, *StatusRequest) (*StatusResponse, error) // Queries a list of mtp positions for a given address. GetPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error) // Queries a list of whitelisted addresses. GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error) // Is an address whitelisted? IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error) // Queries a single pool given its index. Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error) // Queries a list of all pools. Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error) // Queries a single mtp position given its address and id. MTP(context.Context, *MTPRequest) (*MTPResponse, error) // Queries an estimation of a new open position details. OpenEstimation(context.Context, *QueryOpenEstimationRequest) (*QueryOpenEstimationResponse, error) }
QueryServer is the server API for Query service.
type StatusRequest ¶ added in v0.10.0
type StatusRequest struct { }
func (*StatusRequest) Descriptor ¶ added in v0.10.0
func (*StatusRequest) Descriptor() ([]byte, []int)
func (*StatusRequest) Marshal ¶ added in v0.10.0
func (m *StatusRequest) Marshal() (dAtA []byte, err error)
func (*StatusRequest) MarshalTo ¶ added in v0.10.0
func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error)
func (*StatusRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StatusRequest) ProtoMessage ¶ added in v0.10.0
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) Reset ¶ added in v0.10.0
func (m *StatusRequest) Reset()
func (*StatusRequest) Size ¶ added in v0.10.0
func (m *StatusRequest) Size() (n int)
func (*StatusRequest) String ¶ added in v0.10.0
func (m *StatusRequest) String() string
func (*StatusRequest) Unmarshal ¶ added in v0.10.0
func (m *StatusRequest) Unmarshal(dAtA []byte) error
func (*StatusRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *StatusRequest) XXX_DiscardUnknown()
func (*StatusRequest) XXX_Marshal ¶ added in v0.10.0
func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatusRequest) XXX_Merge ¶ added in v0.10.0
func (m *StatusRequest) XXX_Merge(src proto.Message)
func (*StatusRequest) XXX_Size ¶ added in v0.10.0
func (m *StatusRequest) XXX_Size() int
func (*StatusRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *StatusRequest) XXX_Unmarshal(b []byte) error
type StatusResponse ¶ added in v0.10.0
type StatusResponse struct { OpenMtpCount uint64 `protobuf:"varint,1,opt,name=open_mtp_count,json=openMtpCount,proto3" json:"open_mtp_count,omitempty"` LifetimeMtpCount uint64 `protobuf:"varint,2,opt,name=lifetime_mtp_count,json=lifetimeMtpCount,proto3" json:"lifetime_mtp_count,omitempty"` }
func (*StatusResponse) Descriptor ¶ added in v0.10.0
func (*StatusResponse) Descriptor() ([]byte, []int)
func (*StatusResponse) GetLifetimeMtpCount ¶ added in v0.10.0
func (m *StatusResponse) GetLifetimeMtpCount() uint64
func (*StatusResponse) GetOpenMtpCount ¶ added in v0.10.0
func (m *StatusResponse) GetOpenMtpCount() uint64
func (*StatusResponse) Marshal ¶ added in v0.10.0
func (m *StatusResponse) Marshal() (dAtA []byte, err error)
func (*StatusResponse) MarshalTo ¶ added in v0.10.0
func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error)
func (*StatusResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StatusResponse) ProtoMessage ¶ added in v0.10.0
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) Reset ¶ added in v0.10.0
func (m *StatusResponse) Reset()
func (*StatusResponse) Size ¶ added in v0.10.0
func (m *StatusResponse) Size() (n int)
func (*StatusResponse) String ¶ added in v0.10.0
func (m *StatusResponse) String() string
func (*StatusResponse) Unmarshal ¶ added in v0.10.0
func (m *StatusResponse) Unmarshal(dAtA []byte) error
func (*StatusResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *StatusResponse) XXX_DiscardUnknown()
func (*StatusResponse) XXX_Marshal ¶ added in v0.10.0
func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatusResponse) XXX_Merge ¶ added in v0.10.0
func (m *StatusResponse) XXX_Merge(src proto.Message)
func (*StatusResponse) XXX_Size ¶ added in v0.10.0
func (m *StatusResponse) XXX_Size() int
func (*StatusResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *StatusResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Close ¶ added in v0.10.0
func (*UnimplementedMsgServer) Close(ctx context.Context, req *MsgClose) (*MsgCloseResponse, error)
func (*UnimplementedMsgServer) Dewhitelist ¶ added in v0.10.0
func (*UnimplementedMsgServer) Dewhitelist(ctx context.Context, req *MsgDewhitelist) (*MsgDewhitelistResponse, error)
func (*UnimplementedMsgServer) Open ¶ added in v0.10.0
func (*UnimplementedMsgServer) Open(ctx context.Context, req *MsgOpen) (*MsgOpenResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.10.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) UpdatePools ¶ added in v0.10.0
func (*UnimplementedMsgServer) UpdatePools(ctx context.Context, req *MsgUpdatePools) (*MsgUpdatePoolsResponse, error)
func (*UnimplementedMsgServer) Whitelist ¶ added in v0.10.0
func (*UnimplementedMsgServer) Whitelist(ctx context.Context, req *MsgWhitelist) (*MsgWhitelistResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetPositions ¶ added in v0.10.0
func (*UnimplementedQueryServer) GetPositions(ctx context.Context, req *PositionsRequest) (*PositionsResponse, error)
func (*UnimplementedQueryServer) GetPositionsByPool ¶ added in v0.10.0
func (*UnimplementedQueryServer) GetPositionsByPool(ctx context.Context, req *PositionsByPoolRequest) (*PositionsByPoolResponse, error)
func (*UnimplementedQueryServer) GetPositionsForAddress ¶ added in v0.10.0
func (*UnimplementedQueryServer) GetPositionsForAddress(ctx context.Context, req *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
func (*UnimplementedQueryServer) GetStatus ¶ added in v0.10.0
func (*UnimplementedQueryServer) GetStatus(ctx context.Context, req *StatusRequest) (*StatusResponse, error)
func (*UnimplementedQueryServer) GetWhitelist ¶ added in v0.10.0
func (*UnimplementedQueryServer) GetWhitelist(ctx context.Context, req *WhitelistRequest) (*WhitelistResponse, error)
func (*UnimplementedQueryServer) IsWhitelisted ¶ added in v0.10.0
func (*UnimplementedQueryServer) IsWhitelisted(ctx context.Context, req *IsWhitelistedRequest) (*IsWhitelistedResponse, error)
func (*UnimplementedQueryServer) MTP ¶ added in v0.10.0
func (*UnimplementedQueryServer) MTP(ctx context.Context, req *MTPRequest) (*MTPResponse, error)
func (*UnimplementedQueryServer) OpenEstimation ¶ added in v0.19.0
func (*UnimplementedQueryServer) OpenEstimation(ctx context.Context, req *QueryOpenEstimationRequest) (*QueryOpenEstimationResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)
func (*UnimplementedQueryServer) Pool ¶ added in v0.10.0
func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryGetPoolRequest) (*QueryGetPoolResponse, error)
func (*UnimplementedQueryServer) Pools ¶ added in v0.10.0
func (*UnimplementedQueryServer) Pools(ctx context.Context, req *QueryAllPoolRequest) (*QueryAllPoolResponse, error)
type WhiteList ¶ added in v0.10.0
type WhiteList struct {
ValidatorList []string `protobuf:"bytes,1,rep,name=validator_list,json=validatorList,proto3" json:"validator_list,omitempty"`
}
func (*WhiteList) Descriptor ¶ added in v0.10.0
func (*WhiteList) GetValidatorList ¶ added in v0.10.0
func (*WhiteList) MarshalToSizedBuffer ¶ added in v0.10.0
func (*WhiteList) ProtoMessage ¶ added in v0.10.0
func (*WhiteList) ProtoMessage()
func (*WhiteList) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *WhiteList) XXX_DiscardUnknown()
func (*WhiteList) XXX_Marshal ¶ added in v0.10.0
func (*WhiteList) XXX_Unmarshal ¶ added in v0.10.0
type WhitelistRequest ¶ added in v0.10.0
type WhitelistRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*WhitelistRequest) Descriptor ¶ added in v0.10.0
func (*WhitelistRequest) Descriptor() ([]byte, []int)
func (*WhitelistRequest) GetPagination ¶ added in v0.10.0
func (m *WhitelistRequest) GetPagination() *query.PageRequest
func (*WhitelistRequest) Marshal ¶ added in v0.10.0
func (m *WhitelistRequest) Marshal() (dAtA []byte, err error)
func (*WhitelistRequest) MarshalTo ¶ added in v0.10.0
func (m *WhitelistRequest) MarshalTo(dAtA []byte) (int, error)
func (*WhitelistRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *WhitelistRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WhitelistRequest) ProtoMessage ¶ added in v0.10.0
func (*WhitelistRequest) ProtoMessage()
func (*WhitelistRequest) Reset ¶ added in v0.10.0
func (m *WhitelistRequest) Reset()
func (*WhitelistRequest) Size ¶ added in v0.10.0
func (m *WhitelistRequest) Size() (n int)
func (*WhitelistRequest) String ¶ added in v0.10.0
func (m *WhitelistRequest) String() string
func (*WhitelistRequest) Unmarshal ¶ added in v0.10.0
func (m *WhitelistRequest) Unmarshal(dAtA []byte) error
func (*WhitelistRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *WhitelistRequest) XXX_DiscardUnknown()
func (*WhitelistRequest) XXX_Marshal ¶ added in v0.10.0
func (m *WhitelistRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WhitelistRequest) XXX_Merge ¶ added in v0.10.0
func (m *WhitelistRequest) XXX_Merge(src proto.Message)
func (*WhitelistRequest) XXX_Size ¶ added in v0.10.0
func (m *WhitelistRequest) XXX_Size() int
func (*WhitelistRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *WhitelistRequest) XXX_Unmarshal(b []byte) error
type WhitelistResponse ¶ added in v0.10.0
type WhitelistResponse struct { Whitelist []string `protobuf:"bytes,1,rep,name=whitelist,proto3" json:"whitelist,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*WhitelistResponse) Descriptor ¶ added in v0.10.0
func (*WhitelistResponse) Descriptor() ([]byte, []int)
func (*WhitelistResponse) GetPagination ¶ added in v0.10.0
func (m *WhitelistResponse) GetPagination() *query.PageResponse
func (*WhitelistResponse) GetWhitelist ¶ added in v0.10.0
func (m *WhitelistResponse) GetWhitelist() []string
func (*WhitelistResponse) Marshal ¶ added in v0.10.0
func (m *WhitelistResponse) Marshal() (dAtA []byte, err error)
func (*WhitelistResponse) MarshalTo ¶ added in v0.10.0
func (m *WhitelistResponse) MarshalTo(dAtA []byte) (int, error)
func (*WhitelistResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *WhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WhitelistResponse) ProtoMessage ¶ added in v0.10.0
func (*WhitelistResponse) ProtoMessage()
func (*WhitelistResponse) Reset ¶ added in v0.10.0
func (m *WhitelistResponse) Reset()
func (*WhitelistResponse) Size ¶ added in v0.10.0
func (m *WhitelistResponse) Size() (n int)
func (*WhitelistResponse) String ¶ added in v0.10.0
func (m *WhitelistResponse) String() string
func (*WhitelistResponse) Unmarshal ¶ added in v0.10.0
func (m *WhitelistResponse) Unmarshal(dAtA []byte) error
func (*WhitelistResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *WhitelistResponse) XXX_DiscardUnknown()
func (*WhitelistResponse) XXX_Marshal ¶ added in v0.10.0
func (m *WhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WhitelistResponse) XXX_Merge ¶ added in v0.10.0
func (m *WhitelistResponse) XXX_Merge(src proto.Message)
func (*WhitelistResponse) XXX_Size ¶ added in v0.10.0
func (m *WhitelistResponse) XXX_Size() int
func (*WhitelistResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *WhitelistResponse) XXX_Unmarshal(b []byte) error
Source Files ¶
- add_or_append_coin.go
- calc_funding_rate.go
- calc_mtp_consolidate_leverage.go
- calc_mtp_take_profit_custody.go
- calc_take_amount.go
- check_long_assets.go
- check_short_assets.go
- codec.go
- errors.go
- events.go
- expected_keepers.go
- generate_open_event.go
- genesis.go
- genesis.pb.go
- get_amm_pool_balance.go
- get_margin_pool_balance.go
- has_sufficient_pool_balance.go
- hooks.go
- is_take_profit_price_inifite.go
- key_pool.go
- keys.go
- msgs.go
- params.go
- params.pb.go
- pool.go
- pool.pb.go
- query.pb.go
- query.pb.gw.go
- reached_take_profit_price.go
- tx.pb.go
- types.go
- types.pb.go
- validate_collateral_asset.go