types

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 37 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventOpen                   = "leveragelp/position_open"
	EventClose                  = "leveragelp/position_close"
	EventAddCollateral          = "leveragelp/add_collateral"
	EventClosePositions         = "leveragelp/close_positions"
	EventCloseUnhealthyPosition = "leveragelp/close_unhealthy_position"
	EventClosePositionStopLoss  = "leveragelp/close_position_stop_loss"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "leveragelp"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
	// ParamsKey is the prefix for parameters of leveragelp module
	ParamsKey = "leveragelp_params"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const MaxPageLimit = 50000
View Source
const (
	// PoolKeyPrefix is the prefix to retrieve all Pool
	PoolKeyPrefix = "Pool/value/"
)

Variables

View Source
var (
	ErrPositionDoesNotExist      = errorsmod.Register(ModuleName, 1, "position not found")
	ErrPositionInvalid           = errorsmod.Register(ModuleName, 2, "position invalid")
	ErrPositionDisabled          = errorsmod.Register(ModuleName, 3, "leveragelp not enabled for pool")
	ErrInvalidPosition           = errorsmod.Register(ModuleName, 6, "position position invalid")
	ErrMaxOpenPositions          = errorsmod.Register(ModuleName, 7, "max open positions reached")
	ErrUnauthorised              = errorsmod.Register(ModuleName, 8, "address not on whitelist")
	ErrBorrowTooLow              = errorsmod.Register(ModuleName, 9, "borrowed amount is too low")
	ErrBorrowTooHigh             = errorsmod.Register(ModuleName, 10, "borrowed amount is higher than pool depth")
	ErrCustodyTooHigh            = errorsmod.Register(ModuleName, 11, "custody amount is higher than pool depth")
	ErrPositionUnhealthy         = errorsmod.Register(ModuleName, 12, "position health would be too low for safety factor")
	ErrInvalidCollateralAsset    = errorsmod.Register(ModuleName, 13, "invalid collateral asset")
	ErrInvalidBorrowingAsset     = errorsmod.Register(ModuleName, 14, "invalid borrowing asset")
	ErrPoolDoesNotExist          = errorsmod.Register(ModuleName, 15, "pool does not exist")
	ErrBalanceNotAvailable       = errorsmod.Register(ModuleName, 18, "user does not have enough balance of the required coin")
	ErrAmountTooLow              = errorsmod.Register(ModuleName, 32, "Tx amount is too low")
	ErrLeveragelpDisabled        = errorsmod.Register(ModuleName, 33, "leveragelp disabled pool")
	ErrAmmPoolNotFound           = errorsmod.Register(ModuleName, 34, "amm pool not found")
	ErrOnlyBaseCurrencyAllowed   = errorsmod.Register(ModuleName, 35, "only base currency is allowed for leverage lp")
	ErrInsufficientUsdcAfterOp   = errorsmod.Register(ModuleName, 36, "insufficient amount of usdc after the operation for leveragelp withdrawal")
	ErrInvalidCloseSize          = errorsmod.Register(ModuleName, 37, "invalid close size")
	ErrNegUserAmountAfterRepay   = errorsmod.Register(ModuleName, 38, "negative user amount after repay")
	ErrInvalidLeverage           = errorsmod.Register(ModuleName, 39, "leverage should be same as existing position")
	ErrInvalidCollateral         = errorsmod.Register(ModuleName, 40, "collateral should not be more than total liability")
	ErrPoolLeverageAmountNotZero = errorsmod.Register(ModuleName, 41, "pool leverage amount is greater than zero")
	ErrLeverageTooSmall          = errorsmod.Register(ModuleName, 42, "leverage should be more than or equal to 1")
	ErrMaxLeverageLpExists       = errorsmod.Register(ModuleName, 43, "pool is already leveraged at maximum value")
)

x/leveragelp module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	PositionPrefix          = []byte{0x01}
	PositionCountPrefix     = []byte{0x02}
	OpenPositionCountPrefix = []byte{0x04}
	WhitelistPrefix         = []byte{0x05}
	SQBeginBlockPrefix      = []byte{0x06}
	LiquidationSortPrefix   = []byte{0x07} // Position liquidation sort prefix
	StopLossSortPrefix      = []byte{0x08} // Position stop loss sort prefix
	OffsetKeyPrefix         = []byte{0x09}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPool        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPool          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPool = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetPositionAddress added in v0.33.0

func GetPositionAddress(positionId uint64) sdk.AccAddress

func GetPositionKey

func GetPositionKey(creator sdk.AccAddress, id uint64) []byte

func GetPositionPrefixForAddress

func GetPositionPrefixForAddress(creator sdk.AccAddress) []byte

func GetUint64Bytes

func GetUint64Bytes(ID uint64) []byte

GetUint64Bytes returns the byte representation of the ID

func GetUint64FromBytes

func GetUint64FromBytes(bz []byte) uint64

GetUint64FromBytes returns ID in uint64 format from a byte array

func GetWhitelistKey

func GetWhitelistKey(acc sdk.AccAddress) []byte

func KeyPrefix

func KeyPrefix(p string) []byte

func PoolKey

func PoolKey(
	index uint64,
) []byte

PoolKey returns the store key to retrieve a Pool from the index fields

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v0.50.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(goCtx context.Context, addr sdk.AccAddress) sdk.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type AccountedPoolKeeper added in v0.49.0

type AccountedPoolKeeper interface {
	GetAccountedBalance(sdk.Context, uint64, string) sdkmath.Int
}

type AddPool added in v0.40.0

type AddPool struct {
	AmmPoolId   uint64                      `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"`
	LeverageMax cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=leverage_max,json=leverageMax,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage_max"`
}

func (*AddPool) Descriptor added in v0.40.0

func (*AddPool) Descriptor() ([]byte, []int)

func (*AddPool) GetAmmPoolId added in v0.40.0

func (m *AddPool) GetAmmPoolId() uint64

func (*AddPool) Marshal added in v0.40.0

func (m *AddPool) Marshal() (dAtA []byte, err error)

func (*AddPool) MarshalTo added in v0.40.0

func (m *AddPool) MarshalTo(dAtA []byte) (int, error)

func (*AddPool) MarshalToSizedBuffer added in v0.40.0

func (m *AddPool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AddPool) ProtoMessage added in v0.40.0

func (*AddPool) ProtoMessage()

func (*AddPool) Reset added in v0.40.0

func (m *AddPool) Reset()

func (*AddPool) Size added in v0.40.0

func (m *AddPool) Size() (n int)

func (*AddPool) String added in v0.40.0

func (m *AddPool) String() string

func (*AddPool) Unmarshal added in v0.40.0

func (m *AddPool) Unmarshal(dAtA []byte) error

func (*AddPool) XXX_DiscardUnknown added in v0.40.0

func (m *AddPool) XXX_DiscardUnknown()

func (*AddPool) XXX_Marshal added in v0.40.0

func (m *AddPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddPool) XXX_Merge added in v0.40.0

func (m *AddPool) XXX_Merge(src proto.Message)

func (*AddPool) XXX_Size added in v0.40.0

func (m *AddPool) XXX_Size() int

func (*AddPool) XXX_Unmarshal added in v0.40.0

func (m *AddPool) XXX_Unmarshal(b []byte) error

type AmmKeeper

type AmmKeeper interface {
	// GetPool returns a pool from its index
	GetPool(sdk.Context, uint64) (ammtypes.Pool, bool)
	// Get all pools
	GetAllPool(sdk.Context) []ammtypes.Pool
	ExitPoolEst(ctx sdk.Context, poolId uint64, shareInAmount sdkmath.Int, tokenOutDenom string) (exitCoins sdk.Coins, weightBalanceBonus sdkmath.LegacyDec, err error)
	JoinPoolEst(ctx sdk.Context, poolId uint64, tokenInMaxs sdk.Coins) (tokensIn sdk.Coins, sharesOut sdkmath.Int, slippage sdkmath.LegacyDec, weightBalanceBonus sdkmath.LegacyDec, err error)
	// IterateCommitments iterates over all Commitments and performs a callback.
	IterateLiquidityPools(sdk.Context, func(ammtypes.Pool) bool)
	GetAccountedPoolSnapshotOrSet(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 sdkmath.LegacyDec) (sdk.Coin, sdkmath.LegacyDec, error)
	CalcInAmtGivenOut(ctx sdk.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensOut sdk.Coins, tokenInDenom string, swapFee sdkmath.LegacyDec) (tokenIn sdk.Coin, slippage sdkmath.LegacyDec, err error)
	JoinPoolNoSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareOutAmount sdkmath.Int, tokenInMaxs sdk.Coins) (tokenIn sdk.Coins, sharesOut sdkmath.Int, err error)
	ExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount sdkmath.Int, tokenOutMins sdk.Coins, tokenOutDenom string, isLiquidation bool) (exitCoins sdk.Coins, err error)
}

AmmKeeper defines the expected interface needed to swap tokens

type AssetProfileKeeper added in v0.15.0

type AssetProfileKeeper interface {
	GetEntry(ctx sdk.Context, baseDenom string) (val assetprofiletypes.Entry, found bool)
	// GetUsdcDenom returns USDC denom
	GetUsdcDenom(ctx sdk.Context) (string, bool)
}

AssetProfileKeeper defines the expected interface needed to retrieve denom info

type BankKeeper

type BankKeeper interface {
	GetAllBalances(goCtx context.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(goCtx context.Context, addr sdk.AccAddress, denom string) sdk.Coin

	SpendableCoins(goCtx context.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToModule(goCtx context.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(goCtx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(goCtx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoins(goCtx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error

	BlockedAddr(addr sdk.AccAddress) bool
	HasBalance(goCtx context.Context, addr sdk.AccAddress, amt sdk.Coin) bool
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommitmentKeeper

type CommitmentKeeper interface {
	GetCommitments(ctx sdk.Context, creator sdk.AccAddress) commitmenttypes.Commitments
}

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"`
	PositionList     []Position `protobuf:"bytes,3,rep,name=position_list,json=positionList,proto3" json:"position_list"`
	AddressWhitelist []string   `protobuf:"bytes,4,rep,name=address_whitelist,json=addressWhitelist,proto3" json:"address_whitelist,omitempty"`
}

GenesisState defines the leveragelp 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

func (m *GenesisState) GetAddressWhitelist() []string

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPoolList

func (m *GenesisState) GetPoolList() []Pool

func (*GenesisState) GetPositionList

func (m *GenesisState) GetPositionList() []Position

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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

type IsWhitelistedRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*IsWhitelistedRequest) Descriptor

func (*IsWhitelistedRequest) Descriptor() ([]byte, []int)

func (*IsWhitelistedRequest) GetAddress

func (m *IsWhitelistedRequest) GetAddress() string

func (*IsWhitelistedRequest) Marshal

func (m *IsWhitelistedRequest) Marshal() (dAtA []byte, err error)

func (*IsWhitelistedRequest) MarshalTo

func (m *IsWhitelistedRequest) MarshalTo(dAtA []byte) (int, error)

func (*IsWhitelistedRequest) MarshalToSizedBuffer

func (m *IsWhitelistedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IsWhitelistedRequest) ProtoMessage

func (*IsWhitelistedRequest) ProtoMessage()

func (*IsWhitelistedRequest) Reset

func (m *IsWhitelistedRequest) Reset()

func (*IsWhitelistedRequest) Size

func (m *IsWhitelistedRequest) Size() (n int)

func (*IsWhitelistedRequest) String

func (m *IsWhitelistedRequest) String() string

func (*IsWhitelistedRequest) Unmarshal

func (m *IsWhitelistedRequest) Unmarshal(dAtA []byte) error

func (*IsWhitelistedRequest) XXX_DiscardUnknown

func (m *IsWhitelistedRequest) XXX_DiscardUnknown()

func (*IsWhitelistedRequest) XXX_Marshal

func (m *IsWhitelistedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsWhitelistedRequest) XXX_Merge

func (m *IsWhitelistedRequest) XXX_Merge(src proto.Message)

func (*IsWhitelistedRequest) XXX_Size

func (m *IsWhitelistedRequest) XXX_Size() int

func (*IsWhitelistedRequest) XXX_Unmarshal

func (m *IsWhitelistedRequest) XXX_Unmarshal(b []byte) error

type IsWhitelistedResponse

type IsWhitelistedResponse struct {
	Address       string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	IsWhitelisted bool   `protobuf:"varint,2,opt,name=is_whitelisted,json=isWhitelisted,proto3" json:"is_whitelisted,omitempty"`
}

func (*IsWhitelistedResponse) Descriptor

func (*IsWhitelistedResponse) Descriptor() ([]byte, []int)

func (*IsWhitelistedResponse) GetAddress

func (m *IsWhitelistedResponse) GetAddress() string

func (*IsWhitelistedResponse) GetIsWhitelisted

func (m *IsWhitelistedResponse) GetIsWhitelisted() bool

func (*IsWhitelistedResponse) Marshal

func (m *IsWhitelistedResponse) Marshal() (dAtA []byte, err error)

func (*IsWhitelistedResponse) MarshalTo

func (m *IsWhitelistedResponse) MarshalTo(dAtA []byte) (int, error)

func (*IsWhitelistedResponse) MarshalToSizedBuffer

func (m *IsWhitelistedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IsWhitelistedResponse) ProtoMessage

func (*IsWhitelistedResponse) ProtoMessage()

func (*IsWhitelistedResponse) Reset

func (m *IsWhitelistedResponse) Reset()

func (*IsWhitelistedResponse) Size

func (m *IsWhitelistedResponse) Size() (n int)

func (*IsWhitelistedResponse) String

func (m *IsWhitelistedResponse) String() string

func (*IsWhitelistedResponse) Unmarshal

func (m *IsWhitelistedResponse) Unmarshal(dAtA []byte) error

func (*IsWhitelistedResponse) XXX_DiscardUnknown

func (m *IsWhitelistedResponse) XXX_DiscardUnknown()

func (*IsWhitelistedResponse) XXX_Marshal

func (m *IsWhitelistedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsWhitelistedResponse) XXX_Merge

func (m *IsWhitelistedResponse) XXX_Merge(src proto.Message)

func (*IsWhitelistedResponse) XXX_Size

func (m *IsWhitelistedResponse) XXX_Size() int

func (*IsWhitelistedResponse) XXX_Unmarshal

func (m *IsWhitelistedResponse) XXX_Unmarshal(b []byte) error

type LegacyParams added in v0.42.0

type LegacyParams struct {
	LeverageMax         cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=leverage_max,json=leverageMax,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage_max"`
	MaxOpenPositions    int64                       `protobuf:"varint,2,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"`
	PoolOpenThreshold   cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	SafetyFactor        cosmossdk_io_math.LegacyDec `` /* 126-byte string literal not displayed */
	WhitelistingEnabled bool                        `protobuf:"varint,5,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"`
	EpochLength         int64                       `protobuf:"varint,6,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"`
}

Params defines the parameters for the module.

func (*LegacyParams) Descriptor added in v0.42.0

func (*LegacyParams) Descriptor() ([]byte, []int)

func (*LegacyParams) GetEpochLength added in v0.42.0

func (m *LegacyParams) GetEpochLength() int64

func (*LegacyParams) GetMaxOpenPositions added in v0.42.0

func (m *LegacyParams) GetMaxOpenPositions() int64

func (*LegacyParams) GetWhitelistingEnabled added in v0.42.0

func (m *LegacyParams) GetWhitelistingEnabled() bool

func (*LegacyParams) Marshal added in v0.42.0

func (m *LegacyParams) Marshal() (dAtA []byte, err error)

func (*LegacyParams) MarshalTo added in v0.42.0

func (m *LegacyParams) MarshalTo(dAtA []byte) (int, error)

func (*LegacyParams) MarshalToSizedBuffer added in v0.42.0

func (m *LegacyParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyParams) ProtoMessage added in v0.42.0

func (*LegacyParams) ProtoMessage()

func (*LegacyParams) Reset added in v0.42.0

func (m *LegacyParams) Reset()

func (*LegacyParams) Size added in v0.42.0

func (m *LegacyParams) Size() (n int)

func (*LegacyParams) String added in v0.42.0

func (m *LegacyParams) String() string

func (*LegacyParams) Unmarshal added in v0.42.0

func (m *LegacyParams) Unmarshal(dAtA []byte) error

func (*LegacyParams) XXX_DiscardUnknown added in v0.42.0

func (m *LegacyParams) XXX_DiscardUnknown()

func (*LegacyParams) XXX_Marshal added in v0.42.0

func (m *LegacyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LegacyParams) XXX_Merge added in v0.42.0

func (m *LegacyParams) XXX_Merge(src proto.Message)

func (*LegacyParams) XXX_Size added in v0.42.0

func (m *LegacyParams) XXX_Size() int

func (*LegacyParams) XXX_Unmarshal added in v0.42.0

func (m *LegacyParams) XXX_Unmarshal(b []byte) error

type LegacyPool added in v0.48.0

type LegacyPool struct {
	AmmPoolId         uint64                      `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"`
	Health            cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=health,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"health"`
	LeveragedLpAmount cosmossdk_io_math.Int       `` /* 137-byte string literal not displayed */
	LeverageMax       cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=leverage_max,json=leverageMax,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage_max"`
}

func (*LegacyPool) Descriptor added in v0.48.0

func (*LegacyPool) Descriptor() ([]byte, []int)

func (*LegacyPool) GetAmmPoolId added in v0.48.0

func (m *LegacyPool) GetAmmPoolId() uint64

func (*LegacyPool) Marshal added in v0.48.0

func (m *LegacyPool) Marshal() (dAtA []byte, err error)

func (*LegacyPool) MarshalTo added in v0.48.0

func (m *LegacyPool) MarshalTo(dAtA []byte) (int, error)

func (*LegacyPool) MarshalToSizedBuffer added in v0.48.0

func (m *LegacyPool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyPool) ProtoMessage added in v0.48.0

func (*LegacyPool) ProtoMessage()

func (*LegacyPool) Reset added in v0.48.0

func (m *LegacyPool) Reset()

func (*LegacyPool) Size added in v0.48.0

func (m *LegacyPool) Size() (n int)

func (*LegacyPool) String added in v0.48.0

func (m *LegacyPool) String() string

func (*LegacyPool) Unmarshal added in v0.48.0

func (m *LegacyPool) Unmarshal(dAtA []byte) error

func (*LegacyPool) XXX_DiscardUnknown added in v0.48.0

func (m *LegacyPool) XXX_DiscardUnknown()

func (*LegacyPool) XXX_Marshal added in v0.48.0

func (m *LegacyPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LegacyPool) XXX_Merge added in v0.48.0

func (m *LegacyPool) XXX_Merge(src proto.Message)

func (*LegacyPool) XXX_Size added in v0.48.0

func (m *LegacyPool) XXX_Size() int

func (*LegacyPool) XXX_Unmarshal added in v0.48.0

func (m *LegacyPool) XXX_Unmarshal(b []byte) error

type LegacyPosition added in v0.43.0

type LegacyPosition struct {
	Address           string                      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Collateral        types.Coin                  `protobuf:"bytes,2,opt,name=collateral,proto3" json:"collateral"`
	Liabilities       cosmossdk_io_math.Int       `protobuf:"bytes,3,opt,name=liabilities,proto3,customtype=cosmossdk.io/math.Int" json:"liabilities"`
	Leverage          cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"`
	LeveragedLpAmount cosmossdk_io_math.Int       `` /* 137-byte string literal not displayed */
	PositionHealth    cosmossdk_io_math.LegacyDec `` /* 132-byte string literal not displayed */
	Id                uint64                      `protobuf:"varint,7,opt,name=id,proto3" json:"id,omitempty"`
	AmmPoolId         uint64                      `protobuf:"varint,8,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"`
	StopLossPrice     cosmossdk_io_math.LegacyDec `` /* 131-byte string literal not displayed */
}

func (*LegacyPosition) Descriptor added in v0.43.0

func (*LegacyPosition) Descriptor() ([]byte, []int)

func (*LegacyPosition) GetAddress added in v0.43.0

func (m *LegacyPosition) GetAddress() string

func (*LegacyPosition) GetAmmPoolId added in v0.43.0

func (m *LegacyPosition) GetAmmPoolId() uint64

func (*LegacyPosition) GetCollateral added in v0.43.0

func (m *LegacyPosition) GetCollateral() types.Coin

func (*LegacyPosition) GetId added in v0.43.0

func (m *LegacyPosition) GetId() uint64

func (*LegacyPosition) Marshal added in v0.43.0

func (m *LegacyPosition) Marshal() (dAtA []byte, err error)

func (*LegacyPosition) MarshalTo added in v0.43.0

func (m *LegacyPosition) MarshalTo(dAtA []byte) (int, error)

func (*LegacyPosition) MarshalToSizedBuffer added in v0.43.0

func (m *LegacyPosition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyPosition) ProtoMessage added in v0.43.0

func (*LegacyPosition) ProtoMessage()

func (*LegacyPosition) Reset added in v0.43.0

func (m *LegacyPosition) Reset()

func (*LegacyPosition) Size added in v0.43.0

func (m *LegacyPosition) Size() (n int)

func (*LegacyPosition) String added in v0.43.0

func (m *LegacyPosition) String() string

func (*LegacyPosition) Unmarshal added in v0.43.0

func (m *LegacyPosition) Unmarshal(dAtA []byte) error

func (*LegacyPosition) XXX_DiscardUnknown added in v0.43.0

func (m *LegacyPosition) XXX_DiscardUnknown()

func (*LegacyPosition) XXX_Marshal added in v0.43.0

func (m *LegacyPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LegacyPosition) XXX_Merge added in v0.43.0

func (m *LegacyPosition) XXX_Merge(src proto.Message)

func (*LegacyPosition) XXX_Size added in v0.43.0

func (m *LegacyPosition) XXX_Size() int

func (*LegacyPosition) XXX_Unmarshal added in v0.43.0

func (m *LegacyPosition) XXX_Unmarshal(b []byte) error

type LeverageLpHooks added in v0.44.0

type LeverageLpHooks interface {
	AfterEnablingPool(ctx sdk.Context, ammPool ammtypes.Pool) error

	AfterDisablingPool(ctx sdk.Context, ammPool ammtypes.Pool) error

	// AfterLeverageLpPositionOpen is called after Open position.
	AfterLeverageLpPositionOpen(ctx sdk.Context, sender sdk.AccAddress, ammPool ammtypes.Pool) error

	// AfterLeverageLpPositionClose is called after a position gets closed.
	AfterLeverageLpPositionClose(ctx sdk.Context, sender sdk.AccAddress, ammPool ammtypes.Pool) error

	// AfterLeverageLpPositionConsolidate is called after a position gets closed.
	AfterLeverageLpPositionOpenConsolidate(ctx sdk.Context, sender sdk.AccAddress, ammPool ammtypes.Pool) error
}

type MasterchefKeeper added in v0.33.0

type MasterchefKeeper interface {
	ClaimRewards(ctx sdk.Context, sender sdk.AccAddress, poolIds []uint64, recipient sdk.AccAddress) error
	UserPoolPendingReward(ctx sdk.Context, user sdk.AccAddress, poolId uint64) sdk.Coins
}

MasterchefKeeper defines expected interface for masterchef keeper

type MsgAddPool added in v0.40.0

type MsgAddPool struct {
	Authority string  `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Pool      AddPool `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool"`
}

func NewMsgAddPool added in v0.44.0

func NewMsgAddPool(signer string, pool AddPool) *MsgAddPool

func (*MsgAddPool) Descriptor added in v0.40.0

func (*MsgAddPool) Descriptor() ([]byte, []int)

func (*MsgAddPool) GetAuthority added in v0.40.0

func (m *MsgAddPool) GetAuthority() string

func (*MsgAddPool) GetPool added in v0.40.0

func (m *MsgAddPool) GetPool() AddPool

func (*MsgAddPool) Marshal added in v0.40.0

func (m *MsgAddPool) Marshal() (dAtA []byte, err error)

func (*MsgAddPool) MarshalTo added in v0.40.0

func (m *MsgAddPool) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddPool) MarshalToSizedBuffer added in v0.40.0

func (m *MsgAddPool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddPool) ProtoMessage added in v0.40.0

func (*MsgAddPool) ProtoMessage()

func (*MsgAddPool) Reset added in v0.40.0

func (m *MsgAddPool) Reset()

func (*MsgAddPool) Size added in v0.40.0

func (m *MsgAddPool) Size() (n int)

func (*MsgAddPool) String added in v0.40.0

func (m *MsgAddPool) String() string

func (*MsgAddPool) Unmarshal added in v0.40.0

func (m *MsgAddPool) Unmarshal(dAtA []byte) error

func (*MsgAddPool) ValidateBasic added in v0.40.0

func (msg *MsgAddPool) ValidateBasic() error

func (*MsgAddPool) XXX_DiscardUnknown added in v0.40.0

func (m *MsgAddPool) XXX_DiscardUnknown()

func (*MsgAddPool) XXX_Marshal added in v0.40.0

func (m *MsgAddPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddPool) XXX_Merge added in v0.40.0

func (m *MsgAddPool) XXX_Merge(src proto.Message)

func (*MsgAddPool) XXX_Size added in v0.40.0

func (m *MsgAddPool) XXX_Size() int

func (*MsgAddPool) XXX_Unmarshal added in v0.40.0

func (m *MsgAddPool) XXX_Unmarshal(b []byte) error

type MsgAddPoolResponse added in v0.40.0

type MsgAddPoolResponse struct {
}

func (*MsgAddPoolResponse) Descriptor added in v0.40.0

func (*MsgAddPoolResponse) Descriptor() ([]byte, []int)

func (*MsgAddPoolResponse) Marshal added in v0.40.0

func (m *MsgAddPoolResponse) Marshal() (dAtA []byte, err error)

func (*MsgAddPoolResponse) MarshalTo added in v0.40.0

func (m *MsgAddPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAddPoolResponse) MarshalToSizedBuffer added in v0.40.0

func (m *MsgAddPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAddPoolResponse) ProtoMessage added in v0.40.0

func (*MsgAddPoolResponse) ProtoMessage()

func (*MsgAddPoolResponse) Reset added in v0.40.0

func (m *MsgAddPoolResponse) Reset()

func (*MsgAddPoolResponse) Size added in v0.40.0

func (m *MsgAddPoolResponse) Size() (n int)

func (*MsgAddPoolResponse) String added in v0.40.0

func (m *MsgAddPoolResponse) String() string

func (*MsgAddPoolResponse) Unmarshal added in v0.40.0

func (m *MsgAddPoolResponse) Unmarshal(dAtA []byte) error

func (*MsgAddPoolResponse) XXX_DiscardUnknown added in v0.40.0

func (m *MsgAddPoolResponse) XXX_DiscardUnknown()

func (*MsgAddPoolResponse) XXX_Marshal added in v0.40.0

func (m *MsgAddPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAddPoolResponse) XXX_Merge added in v0.40.0

func (m *MsgAddPoolResponse) XXX_Merge(src proto.Message)

func (*MsgAddPoolResponse) XXX_Size added in v0.40.0

func (m *MsgAddPoolResponse) XXX_Size() int

func (*MsgAddPoolResponse) XXX_Unmarshal added in v0.40.0

func (m *MsgAddPoolResponse) XXX_Unmarshal(b []byte) error

type MsgClaimRewards added in v0.33.0

type MsgClaimRewards struct {
	Sender string   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Ids    []uint64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"`
}

func NewMsgClaimRewards added in v0.33.0

func NewMsgClaimRewards(signer string, ids []uint64) *MsgClaimRewards

func (*MsgClaimRewards) Descriptor added in v0.33.0

func (*MsgClaimRewards) Descriptor() ([]byte, []int)

func (*MsgClaimRewards) GetIds added in v0.33.0

func (m *MsgClaimRewards) GetIds() []uint64

func (*MsgClaimRewards) GetSender added in v0.33.0

func (m *MsgClaimRewards) GetSender() string

func (*MsgClaimRewards) Marshal added in v0.33.0

func (m *MsgClaimRewards) Marshal() (dAtA []byte, err error)

func (*MsgClaimRewards) MarshalTo added in v0.33.0

func (m *MsgClaimRewards) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimRewards) MarshalToSizedBuffer added in v0.33.0

func (m *MsgClaimRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimRewards) ProtoMessage added in v0.33.0

func (*MsgClaimRewards) ProtoMessage()

func (*MsgClaimRewards) Reset added in v0.33.0

func (m *MsgClaimRewards) Reset()

func (*MsgClaimRewards) Size added in v0.33.0

func (m *MsgClaimRewards) Size() (n int)

func (*MsgClaimRewards) String added in v0.33.0

func (m *MsgClaimRewards) String() string

func (*MsgClaimRewards) Unmarshal added in v0.33.0

func (m *MsgClaimRewards) Unmarshal(dAtA []byte) error

func (*MsgClaimRewards) ValidateBasic added in v0.33.0

func (msg *MsgClaimRewards) ValidateBasic() error

func (*MsgClaimRewards) XXX_DiscardUnknown added in v0.33.0

func (m *MsgClaimRewards) XXX_DiscardUnknown()

func (*MsgClaimRewards) XXX_Marshal added in v0.33.0

func (m *MsgClaimRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimRewards) XXX_Merge added in v0.33.0

func (m *MsgClaimRewards) XXX_Merge(src proto.Message)

func (*MsgClaimRewards) XXX_Size added in v0.33.0

func (m *MsgClaimRewards) XXX_Size() int

func (*MsgClaimRewards) XXX_Unmarshal added in v0.33.0

func (m *MsgClaimRewards) XXX_Unmarshal(b []byte) error

type MsgClaimRewardsResponse added in v0.33.0

type MsgClaimRewardsResponse struct {
}

func (*MsgClaimRewardsResponse) Descriptor added in v0.33.0

func (*MsgClaimRewardsResponse) Descriptor() ([]byte, []int)

func (*MsgClaimRewardsResponse) Marshal added in v0.33.0

func (m *MsgClaimRewardsResponse) Marshal() (dAtA []byte, err error)

func (*MsgClaimRewardsResponse) MarshalTo added in v0.33.0

func (m *MsgClaimRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimRewardsResponse) MarshalToSizedBuffer added in v0.33.0

func (m *MsgClaimRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimRewardsResponse) ProtoMessage added in v0.33.0

func (*MsgClaimRewardsResponse) ProtoMessage()

func (*MsgClaimRewardsResponse) Reset added in v0.33.0

func (m *MsgClaimRewardsResponse) Reset()

func (*MsgClaimRewardsResponse) Size added in v0.33.0

func (m *MsgClaimRewardsResponse) Size() (n int)

func (*MsgClaimRewardsResponse) String added in v0.33.0

func (m *MsgClaimRewardsResponse) String() string

func (*MsgClaimRewardsResponse) Unmarshal added in v0.33.0

func (m *MsgClaimRewardsResponse) Unmarshal(dAtA []byte) error

func (*MsgClaimRewardsResponse) XXX_DiscardUnknown added in v0.33.0

func (m *MsgClaimRewardsResponse) XXX_DiscardUnknown()

func (*MsgClaimRewardsResponse) XXX_Marshal added in v0.33.0

func (m *MsgClaimRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimRewardsResponse) XXX_Merge added in v0.33.0

func (m *MsgClaimRewardsResponse) XXX_Merge(src proto.Message)

func (*MsgClaimRewardsResponse) XXX_Size added in v0.33.0

func (m *MsgClaimRewardsResponse) XXX_Size() int

func (*MsgClaimRewardsResponse) XXX_Unmarshal added in v0.33.0

func (m *MsgClaimRewardsResponse) XXX_Unmarshal(b []byte) error

type MsgClient

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

type MsgClose struct {
	Creator  string                `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id       uint64                `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	LpAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=lp_amount,json=lpAmount,proto3,customtype=cosmossdk.io/math.Int" json:"lp_amount"`
}

func NewMsgClose

func NewMsgClose(creator string, id uint64, amount math.Int) *MsgClose

func (*MsgClose) Descriptor

func (*MsgClose) Descriptor() ([]byte, []int)

func (*MsgClose) GetCreator

func (m *MsgClose) GetCreator() string

func (*MsgClose) GetId

func (m *MsgClose) GetId() uint64

func (*MsgClose) Marshal

func (m *MsgClose) Marshal() (dAtA []byte, err error)

func (*MsgClose) MarshalTo

func (m *MsgClose) MarshalTo(dAtA []byte) (int, error)

func (*MsgClose) MarshalToSizedBuffer

func (m *MsgClose) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClose) ProtoMessage

func (*MsgClose) ProtoMessage()

func (*MsgClose) Reset

func (m *MsgClose) Reset()

func (*MsgClose) Size

func (m *MsgClose) Size() (n int)

func (*MsgClose) String

func (m *MsgClose) String() string

func (*MsgClose) Unmarshal

func (m *MsgClose) Unmarshal(dAtA []byte) error

func (*MsgClose) ValidateBasic

func (msg *MsgClose) ValidateBasic() error

func (*MsgClose) XXX_DiscardUnknown

func (m *MsgClose) XXX_DiscardUnknown()

func (*MsgClose) XXX_Marshal

func (m *MsgClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClose) XXX_Merge

func (m *MsgClose) XXX_Merge(src proto.Message)

func (*MsgClose) XXX_Size

func (m *MsgClose) XXX_Size() int

func (*MsgClose) XXX_Unmarshal

func (m *MsgClose) XXX_Unmarshal(b []byte) error

type MsgClosePositions added in v0.42.0

type MsgClosePositions struct {
	Creator   string             `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Liquidate []*PositionRequest `protobuf:"bytes,2,rep,name=liquidate,proto3" json:"liquidate,omitempty"`
	StopLoss  []*PositionRequest `protobuf:"bytes,3,rep,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"`
}

func NewMsgClosePositions added in v0.42.0

func NewMsgClosePositions(creator sdk.AccAddress, liquidate []*PositionRequest, stoploss []*PositionRequest) *MsgClosePositions

func (*MsgClosePositions) Descriptor added in v0.42.0

func (*MsgClosePositions) Descriptor() ([]byte, []int)

func (*MsgClosePositions) GetCreator added in v0.42.0

func (m *MsgClosePositions) GetCreator() string

func (*MsgClosePositions) GetLiquidate added in v0.42.0

func (m *MsgClosePositions) GetLiquidate() []*PositionRequest

func (*MsgClosePositions) GetStopLoss added in v0.44.0

func (m *MsgClosePositions) GetStopLoss() []*PositionRequest

func (*MsgClosePositions) Marshal added in v0.42.0

func (m *MsgClosePositions) Marshal() (dAtA []byte, err error)

func (*MsgClosePositions) MarshalTo added in v0.42.0

func (m *MsgClosePositions) MarshalTo(dAtA []byte) (int, error)

func (*MsgClosePositions) MarshalToSizedBuffer added in v0.42.0

func (m *MsgClosePositions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClosePositions) ProtoMessage added in v0.42.0

func (*MsgClosePositions) ProtoMessage()

func (*MsgClosePositions) Reset added in v0.42.0

func (m *MsgClosePositions) Reset()

func (*MsgClosePositions) Size added in v0.42.0

func (m *MsgClosePositions) Size() (n int)

func (*MsgClosePositions) String added in v0.42.0

func (m *MsgClosePositions) String() string

func (*MsgClosePositions) Unmarshal added in v0.42.0

func (m *MsgClosePositions) Unmarshal(dAtA []byte) error

func (*MsgClosePositions) ValidateBasic added in v0.42.0

func (msg *MsgClosePositions) ValidateBasic() error

func (*MsgClosePositions) XXX_DiscardUnknown added in v0.42.0

func (m *MsgClosePositions) XXX_DiscardUnknown()

func (*MsgClosePositions) XXX_Marshal added in v0.42.0

func (m *MsgClosePositions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClosePositions) XXX_Merge added in v0.42.0

func (m *MsgClosePositions) XXX_Merge(src proto.Message)

func (*MsgClosePositions) XXX_Size added in v0.42.0

func (m *MsgClosePositions) XXX_Size() int

func (*MsgClosePositions) XXX_Unmarshal added in v0.42.0

func (m *MsgClosePositions) XXX_Unmarshal(b []byte) error

type MsgClosePositionsResponse added in v0.42.0

type MsgClosePositionsResponse struct {
}

func (*MsgClosePositionsResponse) Descriptor added in v0.42.0

func (*MsgClosePositionsResponse) Descriptor() ([]byte, []int)

func (*MsgClosePositionsResponse) Marshal added in v0.42.0

func (m *MsgClosePositionsResponse) Marshal() (dAtA []byte, err error)

func (*MsgClosePositionsResponse) MarshalTo added in v0.42.0

func (m *MsgClosePositionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgClosePositionsResponse) MarshalToSizedBuffer added in v0.42.0

func (m *MsgClosePositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClosePositionsResponse) ProtoMessage added in v0.42.0

func (*MsgClosePositionsResponse) ProtoMessage()

func (*MsgClosePositionsResponse) Reset added in v0.42.0

func (m *MsgClosePositionsResponse) Reset()

func (*MsgClosePositionsResponse) Size added in v0.42.0

func (m *MsgClosePositionsResponse) Size() (n int)

func (*MsgClosePositionsResponse) String added in v0.42.0

func (m *MsgClosePositionsResponse) String() string

func (*MsgClosePositionsResponse) Unmarshal added in v0.42.0

func (m *MsgClosePositionsResponse) Unmarshal(dAtA []byte) error

func (*MsgClosePositionsResponse) XXX_DiscardUnknown added in v0.42.0

func (m *MsgClosePositionsResponse) XXX_DiscardUnknown()

func (*MsgClosePositionsResponse) XXX_Marshal added in v0.42.0

func (m *MsgClosePositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClosePositionsResponse) XXX_Merge added in v0.42.0

func (m *MsgClosePositionsResponse) XXX_Merge(src proto.Message)

func (*MsgClosePositionsResponse) XXX_Size added in v0.42.0

func (m *MsgClosePositionsResponse) XXX_Size() int

func (*MsgClosePositionsResponse) XXX_Unmarshal added in v0.42.0

func (m *MsgClosePositionsResponse) XXX_Unmarshal(b []byte) error

type MsgCloseResponse

type MsgCloseResponse struct {
}

func (*MsgCloseResponse) Descriptor

func (*MsgCloseResponse) Descriptor() ([]byte, []int)

func (*MsgCloseResponse) Marshal

func (m *MsgCloseResponse) Marshal() (dAtA []byte, err error)

func (*MsgCloseResponse) MarshalTo

func (m *MsgCloseResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCloseResponse) MarshalToSizedBuffer

func (m *MsgCloseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCloseResponse) ProtoMessage

func (*MsgCloseResponse) ProtoMessage()

func (*MsgCloseResponse) Reset

func (m *MsgCloseResponse) Reset()

func (*MsgCloseResponse) Size

func (m *MsgCloseResponse) Size() (n int)

func (*MsgCloseResponse) String

func (m *MsgCloseResponse) String() string

func (*MsgCloseResponse) Unmarshal

func (m *MsgCloseResponse) Unmarshal(dAtA []byte) error

func (*MsgCloseResponse) XXX_DiscardUnknown

func (m *MsgCloseResponse) XXX_DiscardUnknown()

func (*MsgCloseResponse) XXX_Marshal

func (m *MsgCloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCloseResponse) XXX_Merge

func (m *MsgCloseResponse) XXX_Merge(src proto.Message)

func (*MsgCloseResponse) XXX_Size

func (m *MsgCloseResponse) XXX_Size() int

func (*MsgCloseResponse) XXX_Unmarshal

func (m *MsgCloseResponse) XXX_Unmarshal(b []byte) error

type MsgDewhitelist

type MsgDewhitelist struct {
	Authority          string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"`
}

func NewMsgDewhitelist

func NewMsgDewhitelist(signer string, whitelistedAddress string) *MsgDewhitelist

func (*MsgDewhitelist) Descriptor

func (*MsgDewhitelist) Descriptor() ([]byte, []int)

func (*MsgDewhitelist) GetAuthority

func (m *MsgDewhitelist) GetAuthority() string

func (*MsgDewhitelist) GetWhitelistedAddress

func (m *MsgDewhitelist) GetWhitelistedAddress() string

func (*MsgDewhitelist) Marshal

func (m *MsgDewhitelist) Marshal() (dAtA []byte, err error)

func (*MsgDewhitelist) MarshalTo

func (m *MsgDewhitelist) MarshalTo(dAtA []byte) (int, error)

func (*MsgDewhitelist) MarshalToSizedBuffer

func (m *MsgDewhitelist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDewhitelist) ProtoMessage

func (*MsgDewhitelist) ProtoMessage()

func (*MsgDewhitelist) Reset

func (m *MsgDewhitelist) Reset()

func (*MsgDewhitelist) Size

func (m *MsgDewhitelist) Size() (n int)

func (*MsgDewhitelist) String

func (m *MsgDewhitelist) String() string

func (*MsgDewhitelist) Unmarshal

func (m *MsgDewhitelist) Unmarshal(dAtA []byte) error

func (*MsgDewhitelist) ValidateBasic

func (msg *MsgDewhitelist) ValidateBasic() error

func (*MsgDewhitelist) XXX_DiscardUnknown

func (m *MsgDewhitelist) XXX_DiscardUnknown()

func (*MsgDewhitelist) XXX_Marshal

func (m *MsgDewhitelist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDewhitelist) XXX_Merge

func (m *MsgDewhitelist) XXX_Merge(src proto.Message)

func (*MsgDewhitelist) XXX_Size

func (m *MsgDewhitelist) XXX_Size() int

func (*MsgDewhitelist) XXX_Unmarshal

func (m *MsgDewhitelist) XXX_Unmarshal(b []byte) error

type MsgDewhitelistResponse

type MsgDewhitelistResponse struct {
}

func (*MsgDewhitelistResponse) Descriptor

func (*MsgDewhitelistResponse) Descriptor() ([]byte, []int)

func (*MsgDewhitelistResponse) Marshal

func (m *MsgDewhitelistResponse) Marshal() (dAtA []byte, err error)

func (*MsgDewhitelistResponse) MarshalTo

func (m *MsgDewhitelistResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDewhitelistResponse) MarshalToSizedBuffer

func (m *MsgDewhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDewhitelistResponse) ProtoMessage

func (*MsgDewhitelistResponse) ProtoMessage()

func (*MsgDewhitelistResponse) Reset

func (m *MsgDewhitelistResponse) Reset()

func (*MsgDewhitelistResponse) Size

func (m *MsgDewhitelistResponse) Size() (n int)

func (*MsgDewhitelistResponse) String

func (m *MsgDewhitelistResponse) String() string

func (*MsgDewhitelistResponse) Unmarshal

func (m *MsgDewhitelistResponse) Unmarshal(dAtA []byte) error

func (*MsgDewhitelistResponse) XXX_DiscardUnknown

func (m *MsgDewhitelistResponse) XXX_DiscardUnknown()

func (*MsgDewhitelistResponse) XXX_Marshal

func (m *MsgDewhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDewhitelistResponse) XXX_Merge

func (m *MsgDewhitelistResponse) XXX_Merge(src proto.Message)

func (*MsgDewhitelistResponse) XXX_Size

func (m *MsgDewhitelistResponse) XXX_Size() int

func (*MsgDewhitelistResponse) XXX_Unmarshal

func (m *MsgDewhitelistResponse) XXX_Unmarshal(b []byte) error

type MsgOpen

type MsgOpen struct {
	Creator          string                      `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	CollateralAsset  string                      `protobuf:"bytes,2,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"`
	CollateralAmount cosmossdk_io_math.Int       `` /* 132-byte string literal not displayed */
	AmmPoolId        uint64                      `protobuf:"varint,4,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"`
	Leverage         cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"`
	StopLossPrice    cosmossdk_io_math.LegacyDec `` /* 131-byte string literal not displayed */
}

func NewMsgOpen

func NewMsgOpen(creator string, collateralAsset string, collateralAmount math.Int, ammPoolId uint64, leverage math.LegacyDec, stopLossPrice math.LegacyDec) *MsgOpen

func (*MsgOpen) Descriptor

func (*MsgOpen) Descriptor() ([]byte, []int)

func (*MsgOpen) GetAmmPoolId

func (m *MsgOpen) GetAmmPoolId() uint64

func (*MsgOpen) GetCollateralAsset

func (m *MsgOpen) GetCollateralAsset() string

func (*MsgOpen) GetCreator

func (m *MsgOpen) GetCreator() string

func (*MsgOpen) Marshal

func (m *MsgOpen) Marshal() (dAtA []byte, err error)

func (*MsgOpen) MarshalTo

func (m *MsgOpen) MarshalTo(dAtA []byte) (int, error)

func (*MsgOpen) MarshalToSizedBuffer

func (m *MsgOpen) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgOpen) ProtoMessage

func (*MsgOpen) ProtoMessage()

func (*MsgOpen) Reset

func (m *MsgOpen) Reset()

func (*MsgOpen) Size

func (m *MsgOpen) Size() (n int)

func (*MsgOpen) String

func (m *MsgOpen) String() string

func (*MsgOpen) Unmarshal

func (m *MsgOpen) Unmarshal(dAtA []byte) error

func (*MsgOpen) ValidateBasic

func (msg *MsgOpen) ValidateBasic() error

func (*MsgOpen) XXX_DiscardUnknown

func (m *MsgOpen) XXX_DiscardUnknown()

func (*MsgOpen) XXX_Marshal

func (m *MsgOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgOpen) XXX_Merge

func (m *MsgOpen) XXX_Merge(src proto.Message)

func (*MsgOpen) XXX_Size

func (m *MsgOpen) XXX_Size() int

func (*MsgOpen) XXX_Unmarshal

func (m *MsgOpen) XXX_Unmarshal(b []byte) error

type MsgOpenResponse

type MsgOpenResponse struct {
}

func (*MsgOpenResponse) Descriptor

func (*MsgOpenResponse) Descriptor() ([]byte, []int)

func (*MsgOpenResponse) Marshal

func (m *MsgOpenResponse) Marshal() (dAtA []byte, err error)

func (*MsgOpenResponse) MarshalTo

func (m *MsgOpenResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgOpenResponse) MarshalToSizedBuffer

func (m *MsgOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgOpenResponse) ProtoMessage

func (*MsgOpenResponse) ProtoMessage()

func (*MsgOpenResponse) Reset

func (m *MsgOpenResponse) Reset()

func (*MsgOpenResponse) Size

func (m *MsgOpenResponse) Size() (n int)

func (*MsgOpenResponse) String

func (m *MsgOpenResponse) String() string

func (*MsgOpenResponse) Unmarshal

func (m *MsgOpenResponse) Unmarshal(dAtA []byte) error

func (*MsgOpenResponse) XXX_DiscardUnknown

func (m *MsgOpenResponse) XXX_DiscardUnknown()

func (*MsgOpenResponse) XXX_Marshal

func (m *MsgOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgOpenResponse) XXX_Merge

func (m *MsgOpenResponse) XXX_Merge(src proto.Message)

func (*MsgOpenResponse) XXX_Size

func (m *MsgOpenResponse) XXX_Size() int

func (*MsgOpenResponse) XXX_Unmarshal

func (m *MsgOpenResponse) XXX_Unmarshal(b []byte) error

type MsgRemovePool added in v0.40.0

type MsgRemovePool struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Id        uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}

func NewMsgRemovePool added in v0.44.0

func NewMsgRemovePool(signer string, poolId uint64) *MsgRemovePool

func (*MsgRemovePool) Descriptor added in v0.40.0

func (*MsgRemovePool) Descriptor() ([]byte, []int)

func (*MsgRemovePool) GetAuthority added in v0.40.0

func (m *MsgRemovePool) GetAuthority() string

func (*MsgRemovePool) GetId added in v0.40.0

func (m *MsgRemovePool) GetId() uint64

func (*MsgRemovePool) Marshal added in v0.40.0

func (m *MsgRemovePool) Marshal() (dAtA []byte, err error)

func (*MsgRemovePool) MarshalTo added in v0.40.0

func (m *MsgRemovePool) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemovePool) MarshalToSizedBuffer added in v0.40.0

func (m *MsgRemovePool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemovePool) ProtoMessage added in v0.40.0

func (*MsgRemovePool) ProtoMessage()

func (*MsgRemovePool) Reset added in v0.40.0

func (m *MsgRemovePool) Reset()

func (*MsgRemovePool) Size added in v0.40.0

func (m *MsgRemovePool) Size() (n int)

func (*MsgRemovePool) String added in v0.40.0

func (m *MsgRemovePool) String() string

func (*MsgRemovePool) Unmarshal added in v0.40.0

func (m *MsgRemovePool) Unmarshal(dAtA []byte) error

func (*MsgRemovePool) ValidateBasic added in v0.43.0

func (msg *MsgRemovePool) ValidateBasic() error

func (*MsgRemovePool) XXX_DiscardUnknown added in v0.40.0

func (m *MsgRemovePool) XXX_DiscardUnknown()

func (*MsgRemovePool) XXX_Marshal added in v0.40.0

func (m *MsgRemovePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemovePool) XXX_Merge added in v0.40.0

func (m *MsgRemovePool) XXX_Merge(src proto.Message)

func (*MsgRemovePool) XXX_Size added in v0.40.0

func (m *MsgRemovePool) XXX_Size() int

func (*MsgRemovePool) XXX_Unmarshal added in v0.40.0

func (m *MsgRemovePool) XXX_Unmarshal(b []byte) error

type MsgRemovePoolResponse added in v0.40.0

type MsgRemovePoolResponse struct {
}

func (*MsgRemovePoolResponse) Descriptor added in v0.40.0

func (*MsgRemovePoolResponse) Descriptor() ([]byte, []int)

func (*MsgRemovePoolResponse) Marshal added in v0.40.0

func (m *MsgRemovePoolResponse) Marshal() (dAtA []byte, err error)

func (*MsgRemovePoolResponse) MarshalTo added in v0.40.0

func (m *MsgRemovePoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemovePoolResponse) MarshalToSizedBuffer added in v0.40.0

func (m *MsgRemovePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemovePoolResponse) ProtoMessage added in v0.40.0

func (*MsgRemovePoolResponse) ProtoMessage()

func (*MsgRemovePoolResponse) Reset added in v0.40.0

func (m *MsgRemovePoolResponse) Reset()

func (*MsgRemovePoolResponse) Size added in v0.40.0

func (m *MsgRemovePoolResponse) Size() (n int)

func (*MsgRemovePoolResponse) String added in v0.40.0

func (m *MsgRemovePoolResponse) String() string

func (*MsgRemovePoolResponse) Unmarshal added in v0.40.0

func (m *MsgRemovePoolResponse) Unmarshal(dAtA []byte) error

func (*MsgRemovePoolResponse) XXX_DiscardUnknown added in v0.40.0

func (m *MsgRemovePoolResponse) XXX_DiscardUnknown()

func (*MsgRemovePoolResponse) XXX_Marshal added in v0.40.0

func (m *MsgRemovePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemovePoolResponse) XXX_Merge added in v0.40.0

func (m *MsgRemovePoolResponse) XXX_Merge(src proto.Message)

func (*MsgRemovePoolResponse) XXX_Size added in v0.40.0

func (m *MsgRemovePoolResponse) XXX_Size() int

func (*MsgRemovePoolResponse) XXX_Unmarshal added in v0.40.0

func (m *MsgRemovePoolResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}

func NewMsgUpdateParams

func NewMsgUpdateParams(signer string, params *Params) *MsgUpdateParams

func (*MsgUpdateParams) Descriptor

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) Marshal

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateStopLoss added in v0.33.0

type MsgUpdateStopLoss struct {
	Creator  string                      `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Position uint64                      `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
	Price    cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"`
}

func NewMsgUpdateStopLoss added in v0.33.0

func NewMsgUpdateStopLoss(creator string, position uint64, price sdkmath.LegacyDec) *MsgUpdateStopLoss

func (*MsgUpdateStopLoss) Descriptor added in v0.33.0

func (*MsgUpdateStopLoss) Descriptor() ([]byte, []int)

func (*MsgUpdateStopLoss) GetCreator added in v0.33.0

func (m *MsgUpdateStopLoss) GetCreator() string

func (*MsgUpdateStopLoss) GetPosition added in v0.33.0

func (m *MsgUpdateStopLoss) GetPosition() uint64

func (*MsgUpdateStopLoss) Marshal added in v0.33.0

func (m *MsgUpdateStopLoss) Marshal() (dAtA []byte, err error)

func (*MsgUpdateStopLoss) MarshalTo added in v0.33.0

func (m *MsgUpdateStopLoss) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateStopLoss) MarshalToSizedBuffer added in v0.33.0

func (m *MsgUpdateStopLoss) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateStopLoss) ProtoMessage added in v0.33.0

func (*MsgUpdateStopLoss) ProtoMessage()

func (*MsgUpdateStopLoss) Reset added in v0.33.0

func (m *MsgUpdateStopLoss) Reset()

func (*MsgUpdateStopLoss) Size added in v0.33.0

func (m *MsgUpdateStopLoss) Size() (n int)

func (*MsgUpdateStopLoss) String added in v0.33.0

func (m *MsgUpdateStopLoss) String() string

func (*MsgUpdateStopLoss) Unmarshal added in v0.33.0

func (m *MsgUpdateStopLoss) Unmarshal(dAtA []byte) error

func (*MsgUpdateStopLoss) ValidateBasic added in v0.33.0

func (msg *MsgUpdateStopLoss) ValidateBasic() error

func (*MsgUpdateStopLoss) XXX_DiscardUnknown added in v0.33.0

func (m *MsgUpdateStopLoss) XXX_DiscardUnknown()

func (*MsgUpdateStopLoss) XXX_Marshal added in v0.33.0

func (m *MsgUpdateStopLoss) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateStopLoss) XXX_Merge added in v0.33.0

func (m *MsgUpdateStopLoss) XXX_Merge(src proto.Message)

func (*MsgUpdateStopLoss) XXX_Size added in v0.33.0

func (m *MsgUpdateStopLoss) XXX_Size() int

func (*MsgUpdateStopLoss) XXX_Unmarshal added in v0.33.0

func (m *MsgUpdateStopLoss) XXX_Unmarshal(b []byte) error

type MsgUpdateStopLossResponse added in v0.33.0

type MsgUpdateStopLossResponse struct {
}

func (*MsgUpdateStopLossResponse) Descriptor added in v0.33.0

func (*MsgUpdateStopLossResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateStopLossResponse) Marshal added in v0.33.0

func (m *MsgUpdateStopLossResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateStopLossResponse) MarshalTo added in v0.33.0

func (m *MsgUpdateStopLossResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateStopLossResponse) MarshalToSizedBuffer added in v0.33.0

func (m *MsgUpdateStopLossResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateStopLossResponse) ProtoMessage added in v0.33.0

func (*MsgUpdateStopLossResponse) ProtoMessage()

func (*MsgUpdateStopLossResponse) Reset added in v0.33.0

func (m *MsgUpdateStopLossResponse) Reset()

func (*MsgUpdateStopLossResponse) Size added in v0.33.0

func (m *MsgUpdateStopLossResponse) Size() (n int)

func (*MsgUpdateStopLossResponse) String added in v0.33.0

func (m *MsgUpdateStopLossResponse) String() string

func (*MsgUpdateStopLossResponse) Unmarshal added in v0.33.0

func (m *MsgUpdateStopLossResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateStopLossResponse) XXX_DiscardUnknown added in v0.33.0

func (m *MsgUpdateStopLossResponse) XXX_DiscardUnknown()

func (*MsgUpdateStopLossResponse) XXX_Marshal added in v0.33.0

func (m *MsgUpdateStopLossResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateStopLossResponse) XXX_Merge added in v0.33.0

func (m *MsgUpdateStopLossResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateStopLossResponse) XXX_Size added in v0.33.0

func (m *MsgUpdateStopLossResponse) XXX_Size() int

func (*MsgUpdateStopLossResponse) XXX_Unmarshal added in v0.33.0

func (m *MsgUpdateStopLossResponse) XXX_Unmarshal(b []byte) error

type MsgWhitelist

type MsgWhitelist struct {
	Authority          string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"`
}

func NewMsgWhitelist

func NewMsgWhitelist(signer string, whitelistedAddress string) *MsgWhitelist

func (*MsgWhitelist) Descriptor

func (*MsgWhitelist) Descriptor() ([]byte, []int)

func (*MsgWhitelist) GetAuthority

func (m *MsgWhitelist) GetAuthority() string

func (*MsgWhitelist) GetWhitelistedAddress

func (m *MsgWhitelist) GetWhitelistedAddress() string

func (*MsgWhitelist) Marshal

func (m *MsgWhitelist) Marshal() (dAtA []byte, err error)

func (*MsgWhitelist) MarshalTo

func (m *MsgWhitelist) MarshalTo(dAtA []byte) (int, error)

func (*MsgWhitelist) MarshalToSizedBuffer

func (m *MsgWhitelist) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWhitelist) ProtoMessage

func (*MsgWhitelist) ProtoMessage()

func (*MsgWhitelist) Reset

func (m *MsgWhitelist) Reset()

func (*MsgWhitelist) Size

func (m *MsgWhitelist) Size() (n int)

func (*MsgWhitelist) String

func (m *MsgWhitelist) String() string

func (*MsgWhitelist) Unmarshal

func (m *MsgWhitelist) Unmarshal(dAtA []byte) error

func (*MsgWhitelist) ValidateBasic

func (msg *MsgWhitelist) ValidateBasic() error

func (*MsgWhitelist) XXX_DiscardUnknown

func (m *MsgWhitelist) XXX_DiscardUnknown()

func (*MsgWhitelist) XXX_Marshal

func (m *MsgWhitelist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWhitelist) XXX_Merge

func (m *MsgWhitelist) XXX_Merge(src proto.Message)

func (*MsgWhitelist) XXX_Size

func (m *MsgWhitelist) XXX_Size() int

func (*MsgWhitelist) XXX_Unmarshal

func (m *MsgWhitelist) XXX_Unmarshal(b []byte) error

type MsgWhitelistResponse

type MsgWhitelistResponse struct {
}

func (*MsgWhitelistResponse) Descriptor

func (*MsgWhitelistResponse) Descriptor() ([]byte, []int)

func (*MsgWhitelistResponse) Marshal

func (m *MsgWhitelistResponse) Marshal() (dAtA []byte, err error)

func (*MsgWhitelistResponse) MarshalTo

func (m *MsgWhitelistResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgWhitelistResponse) MarshalToSizedBuffer

func (m *MsgWhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWhitelistResponse) ProtoMessage

func (*MsgWhitelistResponse) ProtoMessage()

func (*MsgWhitelistResponse) Reset

func (m *MsgWhitelistResponse) Reset()

func (*MsgWhitelistResponse) Size

func (m *MsgWhitelistResponse) Size() (n int)

func (*MsgWhitelistResponse) String

func (m *MsgWhitelistResponse) String() string

func (*MsgWhitelistResponse) Unmarshal

func (m *MsgWhitelistResponse) Unmarshal(dAtA []byte) error

func (*MsgWhitelistResponse) XXX_DiscardUnknown

func (m *MsgWhitelistResponse) XXX_DiscardUnknown()

func (*MsgWhitelistResponse) XXX_Marshal

func (m *MsgWhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWhitelistResponse) XXX_Merge

func (m *MsgWhitelistResponse) XXX_Merge(src proto.Message)

func (*MsgWhitelistResponse) XXX_Size

func (m *MsgWhitelistResponse) XXX_Size() int

func (*MsgWhitelistResponse) XXX_Unmarshal

func (m *MsgWhitelistResponse) XXX_Unmarshal(b []byte) error

type MultiLeverageLpHooks added in v0.44.0

type MultiLeverageLpHooks []LeverageLpHooks

combine multiple leverageLp hooks, all hook functions are run in array sequence.

func NewMultiLeverageLpHooks added in v0.44.0

func NewMultiLeverageLpHooks(hooks ...LeverageLpHooks) MultiLeverageLpHooks

func (MultiLeverageLpHooks) AfterDisablingPool added in v0.48.0

func (h MultiLeverageLpHooks) AfterDisablingPool(ctx sdk.Context, ammPool ammtypes.Pool) error

func (MultiLeverageLpHooks) AfterEnablingPool added in v0.48.0

func (h MultiLeverageLpHooks) AfterEnablingPool(ctx sdk.Context, ammPool ammtypes.Pool) error

func (MultiLeverageLpHooks) AfterLeverageLpPositionClose added in v0.44.0

func (h MultiLeverageLpHooks) AfterLeverageLpPositionClose(ctx sdk.Context, sender sdk.AccAddress, ammPool ammtypes.Pool) error

func (MultiLeverageLpHooks) AfterLeverageLpPositionOpen added in v0.44.0

func (h MultiLeverageLpHooks) AfterLeverageLpPositionOpen(ctx sdk.Context, sender sdk.AccAddress, ammPool ammtypes.Pool) error

func (MultiLeverageLpHooks) AfterLeverageLpPositionOpenConsolidate added in v0.44.0

func (h MultiLeverageLpHooks) AfterLeverageLpPositionOpenConsolidate(ctx sdk.Context, sender sdk.AccAddress, ammPool ammtypes.Pool) error

type Params

type Params struct {
	LeverageMax         cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=leverage_max,json=leverageMax,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage_max"`
	MaxOpenPositions    int64                       `protobuf:"varint,2,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"`
	PoolOpenThreshold   cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	SafetyFactor        cosmossdk_io_math.LegacyDec `` /* 126-byte string literal not displayed */
	WhitelistingEnabled bool                        `protobuf:"varint,5,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"`
	EpochLength         int64                       `protobuf:"varint,6,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"`
	FallbackEnabled     bool                        `protobuf:"varint,7,opt,name=fallback_enabled,json=fallbackEnabled,proto3" json:"fallback_enabled,omitempty"`
	NumberPerBlock      int64                       `protobuf:"varint,8,opt,name=number_per_block,json=numberPerBlock,proto3" json:"number_per_block,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetEpochLength

func (m *Params) GetEpochLength() int64

func (*Params) GetFallbackEnabled added in v0.42.0

func (m *Params) GetFallbackEnabled() bool

func (*Params) GetMaxOpenPositions

func (m *Params) GetMaxOpenPositions() int64

func (*Params) GetNumberPerBlock added in v0.42.0

func (m *Params) GetNumberPerBlock() int64

func (*Params) GetWhitelistingEnabled

func (m *Params) GetWhitelistingEnabled() bool

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type ParamsRequest

type ParamsRequest struct {
}

ParamsRequest is request type for the Query/Params RPC method.

func (*ParamsRequest) Descriptor

func (*ParamsRequest) Descriptor() ([]byte, []int)

func (*ParamsRequest) Marshal

func (m *ParamsRequest) Marshal() (dAtA []byte, err error)

func (*ParamsRequest) MarshalTo

func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ParamsRequest) MarshalToSizedBuffer

func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParamsRequest) ProtoMessage

func (*ParamsRequest) ProtoMessage()

func (*ParamsRequest) Reset

func (m *ParamsRequest) Reset()

func (*ParamsRequest) Size

func (m *ParamsRequest) Size() (n int)

func (*ParamsRequest) String

func (m *ParamsRequest) String() string

func (*ParamsRequest) Unmarshal

func (m *ParamsRequest) Unmarshal(dAtA []byte) error

func (*ParamsRequest) XXX_DiscardUnknown

func (m *ParamsRequest) XXX_DiscardUnknown()

func (*ParamsRequest) XXX_Marshal

func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParamsRequest) XXX_Merge

func (m *ParamsRequest) XXX_Merge(src proto.Message)

func (*ParamsRequest) XXX_Size

func (m *ParamsRequest) XXX_Size() int

func (*ParamsRequest) XXX_Unmarshal

func (m *ParamsRequest) XXX_Unmarshal(b []byte) error

type ParamsResponse

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

func (*ParamsResponse) Descriptor() ([]byte, []int)

func (*ParamsResponse) GetParams

func (m *ParamsResponse) GetParams() Params

func (*ParamsResponse) Marshal

func (m *ParamsResponse) Marshal() (dAtA []byte, err error)

func (*ParamsResponse) MarshalTo

func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ParamsResponse) MarshalToSizedBuffer

func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParamsResponse) ProtoMessage

func (*ParamsResponse) ProtoMessage()

func (*ParamsResponse) Reset

func (m *ParamsResponse) Reset()

func (*ParamsResponse) Size

func (m *ParamsResponse) Size() (n int)

func (*ParamsResponse) String

func (m *ParamsResponse) String() string

func (*ParamsResponse) Unmarshal

func (m *ParamsResponse) Unmarshal(dAtA []byte) error

func (*ParamsResponse) XXX_DiscardUnknown

func (m *ParamsResponse) XXX_DiscardUnknown()

func (*ParamsResponse) XXX_Marshal

func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParamsResponse) XXX_Merge

func (m *ParamsResponse) XXX_Merge(src proto.Message)

func (*ParamsResponse) XXX_Size

func (m *ParamsResponse) XXX_Size() int

func (*ParamsResponse) XXX_Unmarshal

func (m *ParamsResponse) XXX_Unmarshal(b []byte) error

type Pool

type Pool struct {
	AmmPoolId          uint64                      `protobuf:"varint,1,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"`
	Health             cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=health,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"health"`
	LeveragedLpAmount  cosmossdk_io_math.Int       `` /* 137-byte string literal not displayed */
	LeverageMax        cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=leverage_max,json=leverageMax,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage_max"`
	MaxLeveragelpRatio cosmossdk_io_math.LegacyDec `` /* 146-byte string literal not displayed */
}

func NewPool

func NewPool(poolId uint64, maxLeverage sdkmath.LegacyDec) Pool

func (*Pool) Descriptor

func (*Pool) Descriptor() ([]byte, []int)

func (*Pool) GetAmmPoolId

func (m *Pool) GetAmmPoolId() uint64

func (*Pool) InitiatePool

func (p *Pool) InitiatePool(ctx sdk.Context, ammPool *ammtypes.Pool) error

Initialite pool asset according to its corresponding amm pool assets.

func (*Pool) Marshal

func (m *Pool) Marshal() (dAtA []byte, err error)

func (*Pool) MarshalTo

func (m *Pool) MarshalTo(dAtA []byte) (int, error)

func (*Pool) MarshalToSizedBuffer

func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) Reset

func (m *Pool) Reset()

func (*Pool) Size

func (m *Pool) Size() (n int)

func (*Pool) String

func (m *Pool) String() string

func (*Pool) Unmarshal

func (m *Pool) Unmarshal(dAtA []byte) error

func (*Pool) XXX_DiscardUnknown

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal

func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pool) XXX_Merge

func (m *Pool) XXX_Merge(src proto.Message)

func (*Pool) XXX_Size

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal

func (m *Pool) XXX_Unmarshal(b []byte) error

type Position

type Position struct {
	Address           string                      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Collateral        types.Coin                  `protobuf:"bytes,2,opt,name=collateral,proto3" json:"collateral"`
	Liabilities       cosmossdk_io_math.Int       `protobuf:"bytes,3,opt,name=liabilities,proto3,customtype=cosmossdk.io/math.Int" json:"liabilities"`
	LeveragedLpAmount cosmossdk_io_math.Int       `` /* 137-byte string literal not displayed */
	PositionHealth    cosmossdk_io_math.LegacyDec `` /* 132-byte string literal not displayed */
	Id                uint64                      `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"`
	AmmPoolId         uint64                      `protobuf:"varint,7,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"`
	StopLossPrice     cosmossdk_io_math.LegacyDec `` /* 131-byte string literal not displayed */
}

func NewPosition

func NewPosition(signer string, collateral sdk.Coin, poolId uint64) *Position

func (*Position) Descriptor

func (*Position) Descriptor() ([]byte, []int)

func (*Position) GetAddress

func (m *Position) GetAddress() string

func (*Position) GetAmmPoolId

func (m *Position) GetAmmPoolId() uint64

func (*Position) GetCollateral

func (m *Position) GetCollateral() types.Coin

func (*Position) GetId

func (m *Position) GetId() uint64

func (Position) GetOwnerAddress added in v0.42.0

func (position Position) GetOwnerAddress() sdk.AccAddress

func (Position) GetPositionAddress

func (p Position) GetPositionAddress() sdk.AccAddress

Get Position address

func (*Position) Marshal

func (m *Position) Marshal() (dAtA []byte, err error)

func (*Position) MarshalTo

func (m *Position) MarshalTo(dAtA []byte) (int, error)

func (*Position) MarshalToSizedBuffer

func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) Size

func (m *Position) Size() (n int)

func (*Position) String

func (m *Position) String() string

func (*Position) Unmarshal

func (m *Position) Unmarshal(dAtA []byte) error

func (Position) Validate

func (position Position) Validate() error

func (*Position) XXX_DiscardUnknown

func (m *Position) XXX_DiscardUnknown()

func (*Position) XXX_Marshal

func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Position) XXX_Merge

func (m *Position) XXX_Merge(src proto.Message)

func (*Position) XXX_Size

func (m *Position) XXX_Size() int

func (*Position) XXX_Unmarshal

func (m *Position) XXX_Unmarshal(b []byte) error

type PositionAndInterest added in v0.38.0

type PositionAndInterest struct {
	Position            *QueryPosition              `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	InterestRateHour    cosmossdk_io_math.LegacyDec `` /* 140-byte string literal not displayed */
	InterestRateHourUsd cosmossdk_io_math.LegacyDec `` /* 151-byte string literal not displayed */
}

func (*PositionAndInterest) Descriptor added in v0.38.0

func (*PositionAndInterest) Descriptor() ([]byte, []int)

func (*PositionAndInterest) GetPosition added in v0.38.0

func (m *PositionAndInterest) GetPosition() *QueryPosition

func (*PositionAndInterest) Marshal added in v0.38.0

func (m *PositionAndInterest) Marshal() (dAtA []byte, err error)

func (*PositionAndInterest) MarshalTo added in v0.38.0

func (m *PositionAndInterest) MarshalTo(dAtA []byte) (int, error)

func (*PositionAndInterest) MarshalToSizedBuffer added in v0.38.0

func (m *PositionAndInterest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionAndInterest) ProtoMessage added in v0.38.0

func (*PositionAndInterest) ProtoMessage()

func (*PositionAndInterest) Reset added in v0.38.0

func (m *PositionAndInterest) Reset()

func (*PositionAndInterest) Size added in v0.38.0

func (m *PositionAndInterest) Size() (n int)

func (*PositionAndInterest) String added in v0.38.0

func (m *PositionAndInterest) String() string

func (*PositionAndInterest) Unmarshal added in v0.38.0

func (m *PositionAndInterest) Unmarshal(dAtA []byte) error

func (*PositionAndInterest) XXX_DiscardUnknown added in v0.38.0

func (m *PositionAndInterest) XXX_DiscardUnknown()

func (*PositionAndInterest) XXX_Marshal added in v0.38.0

func (m *PositionAndInterest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionAndInterest) XXX_Merge added in v0.38.0

func (m *PositionAndInterest) XXX_Merge(src proto.Message)

func (*PositionAndInterest) XXX_Size added in v0.38.0

func (m *PositionAndInterest) XXX_Size() int

func (*PositionAndInterest) XXX_Unmarshal added in v0.38.0

func (m *PositionAndInterest) XXX_Unmarshal(b []byte) error

type PositionRequest

type PositionRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Id      uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}

func (*PositionRequest) Descriptor

func (*PositionRequest) Descriptor() ([]byte, []int)

func (PositionRequest) GetAccountAddress added in v0.42.0

func (pr PositionRequest) GetAccountAddress() sdk.AccAddress

func (*PositionRequest) GetAddress

func (m *PositionRequest) GetAddress() string

func (*PositionRequest) GetId

func (m *PositionRequest) GetId() uint64

func (*PositionRequest) Marshal

func (m *PositionRequest) Marshal() (dAtA []byte, err error)

func (*PositionRequest) MarshalTo

func (m *PositionRequest) MarshalTo(dAtA []byte) (int, error)

func (*PositionRequest) MarshalToSizedBuffer

func (m *PositionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionRequest) ProtoMessage

func (*PositionRequest) ProtoMessage()

func (*PositionRequest) Reset

func (m *PositionRequest) Reset()

func (*PositionRequest) Size

func (m *PositionRequest) Size() (n int)

func (*PositionRequest) String

func (m *PositionRequest) String() string

func (*PositionRequest) Unmarshal

func (m *PositionRequest) Unmarshal(dAtA []byte) error

func (*PositionRequest) XXX_DiscardUnknown

func (m *PositionRequest) XXX_DiscardUnknown()

func (*PositionRequest) XXX_Marshal

func (m *PositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionRequest) XXX_Merge

func (m *PositionRequest) XXX_Merge(src proto.Message)

func (*PositionRequest) XXX_Size

func (m *PositionRequest) XXX_Size() int

func (*PositionRequest) XXX_Unmarshal

func (m *PositionRequest) XXX_Unmarshal(b []byte) error

type PositionResponse

type PositionResponse struct {
	Position      *QueryPosition        `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	LockedLpToken cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=locked_lp_token,json=lockedLpToken,proto3,customtype=cosmossdk.io/math.Int" json:"locked_lp_token"`
}

func (*PositionResponse) Descriptor

func (*PositionResponse) Descriptor() ([]byte, []int)

func (*PositionResponse) GetPosition

func (m *PositionResponse) GetPosition() *QueryPosition

func (*PositionResponse) Marshal

func (m *PositionResponse) Marshal() (dAtA []byte, err error)

func (*PositionResponse) MarshalTo

func (m *PositionResponse) MarshalTo(dAtA []byte) (int, error)

func (*PositionResponse) MarshalToSizedBuffer

func (m *PositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionResponse) ProtoMessage

func (*PositionResponse) ProtoMessage()

func (*PositionResponse) Reset

func (m *PositionResponse) Reset()

func (*PositionResponse) Size

func (m *PositionResponse) Size() (n int)

func (*PositionResponse) String

func (m *PositionResponse) String() string

func (*PositionResponse) Unmarshal

func (m *PositionResponse) Unmarshal(dAtA []byte) error

func (*PositionResponse) XXX_DiscardUnknown

func (m *PositionResponse) XXX_DiscardUnknown()

func (*PositionResponse) XXX_Marshal

func (m *PositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionResponse) XXX_Merge

func (m *PositionResponse) XXX_Merge(src proto.Message)

func (*PositionResponse) XXX_Size

func (m *PositionResponse) XXX_Size() int

func (*PositionResponse) XXX_Unmarshal

func (m *PositionResponse) XXX_Unmarshal(b []byte) error

type PositionsByPoolRequest

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

func (*PositionsByPoolRequest) Descriptor() ([]byte, []int)

func (*PositionsByPoolRequest) GetAmmPoolId

func (m *PositionsByPoolRequest) GetAmmPoolId() uint64

func (*PositionsByPoolRequest) GetPagination

func (m *PositionsByPoolRequest) GetPagination() *query.PageRequest

func (*PositionsByPoolRequest) Marshal

func (m *PositionsByPoolRequest) Marshal() (dAtA []byte, err error)

func (*PositionsByPoolRequest) MarshalTo

func (m *PositionsByPoolRequest) MarshalTo(dAtA []byte) (int, error)

func (*PositionsByPoolRequest) MarshalToSizedBuffer

func (m *PositionsByPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionsByPoolRequest) ProtoMessage

func (*PositionsByPoolRequest) ProtoMessage()

func (*PositionsByPoolRequest) Reset

func (m *PositionsByPoolRequest) Reset()

func (*PositionsByPoolRequest) Size

func (m *PositionsByPoolRequest) Size() (n int)

func (*PositionsByPoolRequest) String

func (m *PositionsByPoolRequest) String() string

func (*PositionsByPoolRequest) Unmarshal

func (m *PositionsByPoolRequest) Unmarshal(dAtA []byte) error

func (*PositionsByPoolRequest) XXX_DiscardUnknown

func (m *PositionsByPoolRequest) XXX_DiscardUnknown()

func (*PositionsByPoolRequest) XXX_Marshal

func (m *PositionsByPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionsByPoolRequest) XXX_Merge

func (m *PositionsByPoolRequest) XXX_Merge(src proto.Message)

func (*PositionsByPoolRequest) XXX_Size

func (m *PositionsByPoolRequest) XXX_Size() int

func (*PositionsByPoolRequest) XXX_Unmarshal

func (m *PositionsByPoolRequest) XXX_Unmarshal(b []byte) error

type PositionsByPoolResponse

type PositionsByPoolResponse struct {
	Positions  []*QueryPosition    `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsByPoolResponse) Descriptor

func (*PositionsByPoolResponse) Descriptor() ([]byte, []int)

func (*PositionsByPoolResponse) GetPagination

func (m *PositionsByPoolResponse) GetPagination() *query.PageResponse

func (*PositionsByPoolResponse) GetPositions

func (m *PositionsByPoolResponse) GetPositions() []*QueryPosition

func (*PositionsByPoolResponse) Marshal

func (m *PositionsByPoolResponse) Marshal() (dAtA []byte, err error)

func (*PositionsByPoolResponse) MarshalTo

func (m *PositionsByPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*PositionsByPoolResponse) MarshalToSizedBuffer

func (m *PositionsByPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionsByPoolResponse) ProtoMessage

func (*PositionsByPoolResponse) ProtoMessage()

func (*PositionsByPoolResponse) Reset

func (m *PositionsByPoolResponse) Reset()

func (*PositionsByPoolResponse) Size

func (m *PositionsByPoolResponse) Size() (n int)

func (*PositionsByPoolResponse) String

func (m *PositionsByPoolResponse) String() string

func (*PositionsByPoolResponse) Unmarshal

func (m *PositionsByPoolResponse) Unmarshal(dAtA []byte) error

func (*PositionsByPoolResponse) XXX_DiscardUnknown

func (m *PositionsByPoolResponse) XXX_DiscardUnknown()

func (*PositionsByPoolResponse) XXX_Marshal

func (m *PositionsByPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionsByPoolResponse) XXX_Merge

func (m *PositionsByPoolResponse) XXX_Merge(src proto.Message)

func (*PositionsByPoolResponse) XXX_Size

func (m *PositionsByPoolResponse) XXX_Size() int

func (*PositionsByPoolResponse) XXX_Unmarshal

func (m *PositionsByPoolResponse) XXX_Unmarshal(b []byte) error

type PositionsForAddressRequest

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

func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)

func (*PositionsForAddressRequest) GetAddress

func (m *PositionsForAddressRequest) GetAddress() string

func (*PositionsForAddressRequest) GetPagination

func (m *PositionsForAddressRequest) GetPagination() *query.PageRequest

func (*PositionsForAddressRequest) Marshal

func (m *PositionsForAddressRequest) Marshal() (dAtA []byte, err error)

func (*PositionsForAddressRequest) MarshalTo

func (m *PositionsForAddressRequest) MarshalTo(dAtA []byte) (int, error)

func (*PositionsForAddressRequest) MarshalToSizedBuffer

func (m *PositionsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionsForAddressRequest) ProtoMessage

func (*PositionsForAddressRequest) ProtoMessage()

func (*PositionsForAddressRequest) Reset

func (m *PositionsForAddressRequest) Reset()

func (*PositionsForAddressRequest) Size

func (m *PositionsForAddressRequest) Size() (n int)

func (*PositionsForAddressRequest) String

func (m *PositionsForAddressRequest) String() string

func (*PositionsForAddressRequest) Unmarshal

func (m *PositionsForAddressRequest) Unmarshal(dAtA []byte) error

func (*PositionsForAddressRequest) XXX_DiscardUnknown

func (m *PositionsForAddressRequest) XXX_DiscardUnknown()

func (*PositionsForAddressRequest) XXX_Marshal

func (m *PositionsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionsForAddressRequest) XXX_Merge

func (m *PositionsForAddressRequest) XXX_Merge(src proto.Message)

func (*PositionsForAddressRequest) XXX_Size

func (m *PositionsForAddressRequest) XXX_Size() int

func (*PositionsForAddressRequest) XXX_Unmarshal

func (m *PositionsForAddressRequest) XXX_Unmarshal(b []byte) error

type PositionsForAddressResponse

type PositionsForAddressResponse struct {
	Positions  []*PositionAndInterest `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"`
	Pagination *query.PageResponse    `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsForAddressResponse) Descriptor

func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)

func (*PositionsForAddressResponse) GetPagination

func (m *PositionsForAddressResponse) GetPagination() *query.PageResponse

func (*PositionsForAddressResponse) GetPositions

func (m *PositionsForAddressResponse) GetPositions() []*PositionAndInterest

func (*PositionsForAddressResponse) Marshal

func (m *PositionsForAddressResponse) Marshal() (dAtA []byte, err error)

func (*PositionsForAddressResponse) MarshalTo

func (m *PositionsForAddressResponse) MarshalTo(dAtA []byte) (int, error)

func (*PositionsForAddressResponse) MarshalToSizedBuffer

func (m *PositionsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionsForAddressResponse) ProtoMessage

func (*PositionsForAddressResponse) ProtoMessage()

func (*PositionsForAddressResponse) Reset

func (m *PositionsForAddressResponse) Reset()

func (*PositionsForAddressResponse) Size

func (m *PositionsForAddressResponse) Size() (n int)

func (*PositionsForAddressResponse) String

func (m *PositionsForAddressResponse) String() string

func (*PositionsForAddressResponse) Unmarshal

func (m *PositionsForAddressResponse) Unmarshal(dAtA []byte) error

func (*PositionsForAddressResponse) XXX_DiscardUnknown

func (m *PositionsForAddressResponse) XXX_DiscardUnknown()

func (*PositionsForAddressResponse) XXX_Marshal

func (m *PositionsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionsForAddressResponse) XXX_Merge

func (m *PositionsForAddressResponse) XXX_Merge(src proto.Message)

func (*PositionsForAddressResponse) XXX_Size

func (m *PositionsForAddressResponse) XXX_Size() int

func (*PositionsForAddressResponse) XXX_Unmarshal

func (m *PositionsForAddressResponse) XXX_Unmarshal(b []byte) error

type PositionsRequest

type PositionsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsRequest) Descriptor

func (*PositionsRequest) Descriptor() ([]byte, []int)

func (*PositionsRequest) GetPagination

func (m *PositionsRequest) GetPagination() *query.PageRequest

func (*PositionsRequest) Marshal

func (m *PositionsRequest) Marshal() (dAtA []byte, err error)

func (*PositionsRequest) MarshalTo

func (m *PositionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*PositionsRequest) MarshalToSizedBuffer

func (m *PositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionsRequest) ProtoMessage

func (*PositionsRequest) ProtoMessage()

func (*PositionsRequest) Reset

func (m *PositionsRequest) Reset()

func (*PositionsRequest) Size

func (m *PositionsRequest) Size() (n int)

func (*PositionsRequest) String

func (m *PositionsRequest) String() string

func (*PositionsRequest) Unmarshal

func (m *PositionsRequest) Unmarshal(dAtA []byte) error

func (*PositionsRequest) XXX_DiscardUnknown

func (m *PositionsRequest) XXX_DiscardUnknown()

func (*PositionsRequest) XXX_Marshal

func (m *PositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionsRequest) XXX_Merge

func (m *PositionsRequest) XXX_Merge(src proto.Message)

func (*PositionsRequest) XXX_Size

func (m *PositionsRequest) XXX_Size() int

func (*PositionsRequest) XXX_Unmarshal

func (m *PositionsRequest) XXX_Unmarshal(b []byte) error

type PositionsResponse

type PositionsResponse struct {
	Positions  []*QueryPosition    `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsResponse) Descriptor

func (*PositionsResponse) Descriptor() ([]byte, []int)

func (*PositionsResponse) GetPagination

func (m *PositionsResponse) GetPagination() *query.PageResponse

func (*PositionsResponse) GetPositions

func (m *PositionsResponse) GetPositions() []*QueryPosition

func (*PositionsResponse) Marshal

func (m *PositionsResponse) Marshal() (dAtA []byte, err error)

func (*PositionsResponse) MarshalTo

func (m *PositionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*PositionsResponse) MarshalToSizedBuffer

func (m *PositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PositionsResponse) ProtoMessage

func (*PositionsResponse) ProtoMessage()

func (*PositionsResponse) Reset

func (m *PositionsResponse) Reset()

func (*PositionsResponse) Size

func (m *PositionsResponse) Size() (n int)

func (*PositionsResponse) String

func (m *PositionsResponse) String() string

func (*PositionsResponse) Unmarshal

func (m *PositionsResponse) Unmarshal(dAtA []byte) error

func (*PositionsResponse) XXX_DiscardUnknown

func (m *PositionsResponse) XXX_DiscardUnknown()

func (*PositionsResponse) XXX_Marshal

func (m *PositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionsResponse) XXX_Merge

func (m *PositionsResponse) XXX_Merge(src proto.Message)

func (*PositionsResponse) XXX_Size

func (m *PositionsResponse) XXX_Size() int

func (*PositionsResponse) XXX_Unmarshal

func (m *PositionsResponse) XXX_Unmarshal(b []byte) error

type QueryAllPoolRequest

type QueryAllPoolRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPoolRequest) Descriptor

func (*QueryAllPoolRequest) Descriptor() ([]byte, []int)

func (*QueryAllPoolRequest) GetPagination

func (m *QueryAllPoolRequest) GetPagination() *query.PageRequest

func (*QueryAllPoolRequest) Marshal

func (m *QueryAllPoolRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllPoolRequest) MarshalTo

func (m *QueryAllPoolRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPoolRequest) MarshalToSizedBuffer

func (m *QueryAllPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPoolRequest) ProtoMessage

func (*QueryAllPoolRequest) ProtoMessage()

func (*QueryAllPoolRequest) Reset

func (m *QueryAllPoolRequest) Reset()

func (*QueryAllPoolRequest) Size

func (m *QueryAllPoolRequest) Size() (n int)

func (*QueryAllPoolRequest) String

func (m *QueryAllPoolRequest) String() string

func (*QueryAllPoolRequest) Unmarshal

func (m *QueryAllPoolRequest) Unmarshal(dAtA []byte) error

func (*QueryAllPoolRequest) XXX_DiscardUnknown

func (m *QueryAllPoolRequest) XXX_DiscardUnknown()

func (*QueryAllPoolRequest) XXX_Marshal

func (m *QueryAllPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPoolRequest) XXX_Merge

func (m *QueryAllPoolRequest) XXX_Merge(src proto.Message)

func (*QueryAllPoolRequest) XXX_Size

func (m *QueryAllPoolRequest) XXX_Size() int

func (*QueryAllPoolRequest) XXX_Unmarshal

func (m *QueryAllPoolRequest) XXX_Unmarshal(b []byte) error

type QueryAllPoolResponse

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

func (*QueryAllPoolResponse) Descriptor() ([]byte, []int)

func (*QueryAllPoolResponse) GetPagination

func (m *QueryAllPoolResponse) GetPagination() *query.PageResponse

func (*QueryAllPoolResponse) GetPool

func (m *QueryAllPoolResponse) GetPool() []Pool

func (*QueryAllPoolResponse) Marshal

func (m *QueryAllPoolResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllPoolResponse) MarshalTo

func (m *QueryAllPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPoolResponse) MarshalToSizedBuffer

func (m *QueryAllPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPoolResponse) ProtoMessage

func (*QueryAllPoolResponse) ProtoMessage()

func (*QueryAllPoolResponse) Reset

func (m *QueryAllPoolResponse) Reset()

func (*QueryAllPoolResponse) Size

func (m *QueryAllPoolResponse) Size() (n int)

func (*QueryAllPoolResponse) String

func (m *QueryAllPoolResponse) String() string

func (*QueryAllPoolResponse) Unmarshal

func (m *QueryAllPoolResponse) Unmarshal(dAtA []byte) error

func (*QueryAllPoolResponse) XXX_DiscardUnknown

func (m *QueryAllPoolResponse) XXX_DiscardUnknown()

func (*QueryAllPoolResponse) XXX_Marshal

func (m *QueryAllPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPoolResponse) XXX_Merge

func (m *QueryAllPoolResponse) XXX_Merge(src proto.Message)

func (*QueryAllPoolResponse) XXX_Size

func (m *QueryAllPoolResponse) XXX_Size() int

func (*QueryAllPoolResponse) XXX_Unmarshal

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 GetPositions items.
	QueryPositions(ctx context.Context, in *PositionsRequest, opts ...grpc.CallOption) (*PositionsResponse, error)
	// Queries a list of GetPositionsByPool items.
	QueryPositionsByPool(ctx context.Context, in *PositionsByPoolRequest, opts ...grpc.CallOption) (*PositionsByPoolResponse, error)
	// Queries a list of GetStatus items.
	GetStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	// Queries a list of GetPositionsForAddress items.
	QueryPositionsForAddress(ctx context.Context, in *PositionsForAddressRequest, opts ...grpc.CallOption) (*PositionsForAddressResponse, error)
	// Queries a list of GetWhitelist items.
	GetWhitelist(ctx context.Context, in *WhitelistRequest, opts ...grpc.CallOption) (*WhitelistResponse, error)
	// Queries a list of IsWhitelisted items.
	IsWhitelisted(ctx context.Context, in *IsWhitelistedRequest, opts ...grpc.CallOption) (*IsWhitelistedResponse, error)
	// Queries a list of Pool items.
	Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error)
	Pools(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error)
	// Queries a list of Position items.
	Position(ctx context.Context, in *PositionRequest, opts ...grpc.CallOption) (*PositionResponse, error)
	// Query a liquidation price for a position
	LiquidationPrice(ctx context.Context, in *QueryLiquidationPriceRequest, opts ...grpc.CallOption) (*QueryLiquidationPriceResponse, error)
	// Get estimated amount of return value opening a position
	OpenEst(ctx context.Context, in *QueryOpenEstRequest, opts ...grpc.CallOption) (*QueryOpenEstResponse, error)
	// Get estimated amount of return value closing a position
	CloseEst(ctx context.Context, in *QueryCloseEstRequest, opts ...grpc.CallOption) (*QueryCloseEstResponse, error)
	// Queries rewards on leveragelp
	Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error)
	// Queries a list of CommittedTokensLocked items.
	CommittedTokensLocked(ctx context.Context, in *QueryCommittedTokensLockedRequest, opts ...grpc.CallOption) (*QueryCommittedTokensLockedResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCloseEstRequest added in v0.33.0

type QueryCloseEstRequest struct {
	Owner    string                `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Id       uint64                `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	LpAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=lp_amount,json=lpAmount,proto3,customtype=cosmossdk.io/math.Int" json:"lp_amount"`
}

func (*QueryCloseEstRequest) Descriptor added in v0.33.0

func (*QueryCloseEstRequest) Descriptor() ([]byte, []int)

func (*QueryCloseEstRequest) GetId added in v0.33.0

func (m *QueryCloseEstRequest) GetId() uint64

func (*QueryCloseEstRequest) GetOwner added in v0.33.0

func (m *QueryCloseEstRequest) GetOwner() string

func (*QueryCloseEstRequest) Marshal added in v0.33.0

func (m *QueryCloseEstRequest) Marshal() (dAtA []byte, err error)

func (*QueryCloseEstRequest) MarshalTo added in v0.33.0

func (m *QueryCloseEstRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCloseEstRequest) MarshalToSizedBuffer added in v0.33.0

func (m *QueryCloseEstRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCloseEstRequest) ProtoMessage added in v0.33.0

func (*QueryCloseEstRequest) ProtoMessage()

func (*QueryCloseEstRequest) Reset added in v0.33.0

func (m *QueryCloseEstRequest) Reset()

func (*QueryCloseEstRequest) Size added in v0.33.0

func (m *QueryCloseEstRequest) Size() (n int)

func (*QueryCloseEstRequest) String added in v0.33.0

func (m *QueryCloseEstRequest) String() string

func (*QueryCloseEstRequest) Unmarshal added in v0.33.0

func (m *QueryCloseEstRequest) Unmarshal(dAtA []byte) error

func (*QueryCloseEstRequest) XXX_DiscardUnknown added in v0.33.0

func (m *QueryCloseEstRequest) XXX_DiscardUnknown()

func (*QueryCloseEstRequest) XXX_Marshal added in v0.33.0

func (m *QueryCloseEstRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCloseEstRequest) XXX_Merge added in v0.33.0

func (m *QueryCloseEstRequest) XXX_Merge(src proto.Message)

func (*QueryCloseEstRequest) XXX_Size added in v0.33.0

func (m *QueryCloseEstRequest) XXX_Size() int

func (*QueryCloseEstRequest) XXX_Unmarshal added in v0.33.0

func (m *QueryCloseEstRequest) XXX_Unmarshal(b []byte) error

type QueryCloseEstResponse added in v0.33.0

type QueryCloseEstResponse struct {
	Liability          cosmossdk_io_math.Int       `protobuf:"bytes,1,opt,name=liability,proto3,customtype=cosmossdk.io/math.Int" json:"liability"`
	WeightBalanceRatio cosmossdk_io_math.LegacyDec `` /* 146-byte string literal not displayed */
	AmountReturned     cosmossdk_io_math.Int       `` /* 126-byte string literal not displayed */
}

func (*QueryCloseEstResponse) Descriptor added in v0.33.0

func (*QueryCloseEstResponse) Descriptor() ([]byte, []int)

func (*QueryCloseEstResponse) Marshal added in v0.33.0

func (m *QueryCloseEstResponse) Marshal() (dAtA []byte, err error)

func (*QueryCloseEstResponse) MarshalTo added in v0.33.0

func (m *QueryCloseEstResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCloseEstResponse) MarshalToSizedBuffer added in v0.33.0

func (m *QueryCloseEstResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCloseEstResponse) ProtoMessage added in v0.33.0

func (*QueryCloseEstResponse) ProtoMessage()

func (*QueryCloseEstResponse) Reset added in v0.33.0

func (m *QueryCloseEstResponse) Reset()

func (*QueryCloseEstResponse) Size added in v0.33.0

func (m *QueryCloseEstResponse) Size() (n int)

func (*QueryCloseEstResponse) String added in v0.33.0

func (m *QueryCloseEstResponse) String() string

func (*QueryCloseEstResponse) Unmarshal added in v0.33.0

func (m *QueryCloseEstResponse) Unmarshal(dAtA []byte) error

func (*QueryCloseEstResponse) XXX_DiscardUnknown added in v0.33.0

func (m *QueryCloseEstResponse) XXX_DiscardUnknown()

func (*QueryCloseEstResponse) XXX_Marshal added in v0.33.0

func (m *QueryCloseEstResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCloseEstResponse) XXX_Merge added in v0.33.0

func (m *QueryCloseEstResponse) XXX_Merge(src proto.Message)

func (*QueryCloseEstResponse) XXX_Size added in v0.33.0

func (m *QueryCloseEstResponse) XXX_Size() int

func (*QueryCloseEstResponse) XXX_Unmarshal added in v0.33.0

func (m *QueryCloseEstResponse) XXX_Unmarshal(b []byte) error

type QueryCommittedTokensLockedRequest added in v0.40.0

type QueryCommittedTokensLockedRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryCommittedTokensLockedRequest) Descriptor added in v0.40.0

func (*QueryCommittedTokensLockedRequest) Descriptor() ([]byte, []int)

func (*QueryCommittedTokensLockedRequest) GetAddress added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) GetAddress() string

func (*QueryCommittedTokensLockedRequest) Marshal added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) Marshal() (dAtA []byte, err error)

func (*QueryCommittedTokensLockedRequest) MarshalTo added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCommittedTokensLockedRequest) MarshalToSizedBuffer added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCommittedTokensLockedRequest) ProtoMessage added in v0.40.0

func (*QueryCommittedTokensLockedRequest) ProtoMessage()

func (*QueryCommittedTokensLockedRequest) Reset added in v0.40.0

func (*QueryCommittedTokensLockedRequest) Size added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) Size() (n int)

func (*QueryCommittedTokensLockedRequest) String added in v0.40.0

func (*QueryCommittedTokensLockedRequest) Unmarshal added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) Unmarshal(dAtA []byte) error

func (*QueryCommittedTokensLockedRequest) XXX_DiscardUnknown added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) XXX_DiscardUnknown()

func (*QueryCommittedTokensLockedRequest) XXX_Marshal added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCommittedTokensLockedRequest) XXX_Merge added in v0.40.0

func (*QueryCommittedTokensLockedRequest) XXX_Size added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) XXX_Size() int

func (*QueryCommittedTokensLockedRequest) XXX_Unmarshal added in v0.40.0

func (m *QueryCommittedTokensLockedRequest) XXX_Unmarshal(b []byte) error

type QueryCommittedTokensLockedResponse added in v0.40.0

type QueryCommittedTokensLockedResponse struct {
	Address         string                                   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	LockedCommitted github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
	TotalCommitted  github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */
}

func (*QueryCommittedTokensLockedResponse) Descriptor added in v0.40.0

func (*QueryCommittedTokensLockedResponse) Descriptor() ([]byte, []int)

func (*QueryCommittedTokensLockedResponse) GetAddress added in v0.40.0

func (*QueryCommittedTokensLockedResponse) GetLockedCommitted added in v0.40.0

func (*QueryCommittedTokensLockedResponse) GetTotalCommitted added in v0.40.0

func (*QueryCommittedTokensLockedResponse) Marshal added in v0.40.0

func (m *QueryCommittedTokensLockedResponse) Marshal() (dAtA []byte, err error)

func (*QueryCommittedTokensLockedResponse) MarshalTo added in v0.40.0

func (m *QueryCommittedTokensLockedResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCommittedTokensLockedResponse) MarshalToSizedBuffer added in v0.40.0

func (m *QueryCommittedTokensLockedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCommittedTokensLockedResponse) ProtoMessage added in v0.40.0

func (*QueryCommittedTokensLockedResponse) ProtoMessage()

func (*QueryCommittedTokensLockedResponse) Reset added in v0.40.0

func (*QueryCommittedTokensLockedResponse) Size added in v0.40.0

func (*QueryCommittedTokensLockedResponse) String added in v0.40.0

func (*QueryCommittedTokensLockedResponse) Unmarshal added in v0.40.0

func (m *QueryCommittedTokensLockedResponse) Unmarshal(dAtA []byte) error

func (*QueryCommittedTokensLockedResponse) XXX_DiscardUnknown added in v0.40.0

func (m *QueryCommittedTokensLockedResponse) XXX_DiscardUnknown()

func (*QueryCommittedTokensLockedResponse) XXX_Marshal added in v0.40.0

func (m *QueryCommittedTokensLockedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCommittedTokensLockedResponse) XXX_Merge added in v0.40.0

func (*QueryCommittedTokensLockedResponse) XXX_Size added in v0.40.0

func (*QueryCommittedTokensLockedResponse) XXX_Unmarshal added in v0.40.0

func (m *QueryCommittedTokensLockedResponse) XXX_Unmarshal(b []byte) error

type QueryGetPoolRequest

type QueryGetPoolRequest struct {
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryGetPoolRequest) Descriptor

func (*QueryGetPoolRequest) Descriptor() ([]byte, []int)

func (*QueryGetPoolRequest) GetIndex

func (m *QueryGetPoolRequest) GetIndex() uint64

func (*QueryGetPoolRequest) Marshal

func (m *QueryGetPoolRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetPoolRequest) MarshalTo

func (m *QueryGetPoolRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPoolRequest) MarshalToSizedBuffer

func (m *QueryGetPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPoolRequest) ProtoMessage

func (*QueryGetPoolRequest) ProtoMessage()

func (*QueryGetPoolRequest) Reset

func (m *QueryGetPoolRequest) Reset()

func (*QueryGetPoolRequest) Size

func (m *QueryGetPoolRequest) Size() (n int)

func (*QueryGetPoolRequest) String

func (m *QueryGetPoolRequest) String() string

func (*QueryGetPoolRequest) Unmarshal

func (m *QueryGetPoolRequest) Unmarshal(dAtA []byte) error

func (*QueryGetPoolRequest) XXX_DiscardUnknown

func (m *QueryGetPoolRequest) XXX_DiscardUnknown()

func (*QueryGetPoolRequest) XXX_Marshal

func (m *QueryGetPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPoolRequest) XXX_Merge

func (m *QueryGetPoolRequest) XXX_Merge(src proto.Message)

func (*QueryGetPoolRequest) XXX_Size

func (m *QueryGetPoolRequest) XXX_Size() int

func (*QueryGetPoolRequest) XXX_Unmarshal

func (m *QueryGetPoolRequest) XXX_Unmarshal(b []byte) error

type QueryGetPoolResponse

type QueryGetPoolResponse struct {
	Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
}

func (*QueryGetPoolResponse) Descriptor

func (*QueryGetPoolResponse) Descriptor() ([]byte, []int)

func (*QueryGetPoolResponse) GetPool

func (m *QueryGetPoolResponse) GetPool() Pool

func (*QueryGetPoolResponse) Marshal

func (m *QueryGetPoolResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetPoolResponse) MarshalTo

func (m *QueryGetPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPoolResponse) MarshalToSizedBuffer

func (m *QueryGetPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPoolResponse) ProtoMessage

func (*QueryGetPoolResponse) ProtoMessage()

func (*QueryGetPoolResponse) Reset

func (m *QueryGetPoolResponse) Reset()

func (*QueryGetPoolResponse) Size

func (m *QueryGetPoolResponse) Size() (n int)

func (*QueryGetPoolResponse) String

func (m *QueryGetPoolResponse) String() string

func (*QueryGetPoolResponse) Unmarshal

func (m *QueryGetPoolResponse) Unmarshal(dAtA []byte) error

func (*QueryGetPoolResponse) XXX_DiscardUnknown

func (m *QueryGetPoolResponse) XXX_DiscardUnknown()

func (*QueryGetPoolResponse) XXX_Marshal

func (m *QueryGetPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPoolResponse) XXX_Merge

func (m *QueryGetPoolResponse) XXX_Merge(src proto.Message)

func (*QueryGetPoolResponse) XXX_Size

func (m *QueryGetPoolResponse) XXX_Size() int

func (*QueryGetPoolResponse) XXX_Unmarshal

func (m *QueryGetPoolResponse) XXX_Unmarshal(b []byte) error

type QueryLiquidationPriceRequest added in v0.35.0

type QueryLiquidationPriceRequest struct {
	Address    string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
}

func (*QueryLiquidationPriceRequest) Descriptor added in v0.35.0

func (*QueryLiquidationPriceRequest) Descriptor() ([]byte, []int)

func (*QueryLiquidationPriceRequest) GetAddress added in v0.35.0

func (m *QueryLiquidationPriceRequest) GetAddress() string

func (*QueryLiquidationPriceRequest) GetPositionId added in v0.35.0

func (m *QueryLiquidationPriceRequest) GetPositionId() uint64

func (*QueryLiquidationPriceRequest) Marshal added in v0.35.0

func (m *QueryLiquidationPriceRequest) Marshal() (dAtA []byte, err error)

func (*QueryLiquidationPriceRequest) MarshalTo added in v0.35.0

func (m *QueryLiquidationPriceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryLiquidationPriceRequest) MarshalToSizedBuffer added in v0.35.0

func (m *QueryLiquidationPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryLiquidationPriceRequest) ProtoMessage added in v0.35.0

func (*QueryLiquidationPriceRequest) ProtoMessage()

func (*QueryLiquidationPriceRequest) Reset added in v0.35.0

func (m *QueryLiquidationPriceRequest) Reset()

func (*QueryLiquidationPriceRequest) Size added in v0.35.0

func (m *QueryLiquidationPriceRequest) Size() (n int)

func (*QueryLiquidationPriceRequest) String added in v0.35.0

func (*QueryLiquidationPriceRequest) Unmarshal added in v0.35.0

func (m *QueryLiquidationPriceRequest) Unmarshal(dAtA []byte) error

func (*QueryLiquidationPriceRequest) XXX_DiscardUnknown added in v0.35.0

func (m *QueryLiquidationPriceRequest) XXX_DiscardUnknown()

func (*QueryLiquidationPriceRequest) XXX_Marshal added in v0.35.0

func (m *QueryLiquidationPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryLiquidationPriceRequest) XXX_Merge added in v0.35.0

func (m *QueryLiquidationPriceRequest) XXX_Merge(src proto.Message)

func (*QueryLiquidationPriceRequest) XXX_Size added in v0.35.0

func (m *QueryLiquidationPriceRequest) XXX_Size() int

func (*QueryLiquidationPriceRequest) XXX_Unmarshal added in v0.35.0

func (m *QueryLiquidationPriceRequest) XXX_Unmarshal(b []byte) error

type QueryLiquidationPriceResponse added in v0.35.0

type QueryLiquidationPriceResponse struct {
	Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"`
}

func (*QueryLiquidationPriceResponse) Descriptor added in v0.35.0

func (*QueryLiquidationPriceResponse) Descriptor() ([]byte, []int)

func (*QueryLiquidationPriceResponse) Marshal added in v0.35.0

func (m *QueryLiquidationPriceResponse) Marshal() (dAtA []byte, err error)

func (*QueryLiquidationPriceResponse) MarshalTo added in v0.35.0

func (m *QueryLiquidationPriceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryLiquidationPriceResponse) MarshalToSizedBuffer added in v0.35.0

func (m *QueryLiquidationPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryLiquidationPriceResponse) ProtoMessage added in v0.35.0

func (*QueryLiquidationPriceResponse) ProtoMessage()

func (*QueryLiquidationPriceResponse) Reset added in v0.35.0

func (m *QueryLiquidationPriceResponse) Reset()

func (*QueryLiquidationPriceResponse) Size added in v0.35.0

func (m *QueryLiquidationPriceResponse) Size() (n int)

func (*QueryLiquidationPriceResponse) String added in v0.35.0

func (*QueryLiquidationPriceResponse) Unmarshal added in v0.35.0

func (m *QueryLiquidationPriceResponse) Unmarshal(dAtA []byte) error

func (*QueryLiquidationPriceResponse) XXX_DiscardUnknown added in v0.35.0

func (m *QueryLiquidationPriceResponse) XXX_DiscardUnknown()

func (*QueryLiquidationPriceResponse) XXX_Marshal added in v0.35.0

func (m *QueryLiquidationPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryLiquidationPriceResponse) XXX_Merge added in v0.35.0

func (m *QueryLiquidationPriceResponse) XXX_Merge(src proto.Message)

func (*QueryLiquidationPriceResponse) XXX_Size added in v0.35.0

func (m *QueryLiquidationPriceResponse) XXX_Size() int

func (*QueryLiquidationPriceResponse) XXX_Unmarshal added in v0.35.0

func (m *QueryLiquidationPriceResponse) XXX_Unmarshal(b []byte) error

type QueryOpenEstRequest added in v0.33.0

type QueryOpenEstRequest struct {
	CollateralAsset  string                      `protobuf:"bytes,1,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"`
	CollateralAmount cosmossdk_io_math.Int       `` /* 132-byte string literal not displayed */
	AmmPoolId        uint64                      `protobuf:"varint,3,opt,name=amm_pool_id,json=ammPoolId,proto3" json:"amm_pool_id,omitempty"`
	Leverage         cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=leverage,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"leverage"`
}

func (*QueryOpenEstRequest) Descriptor added in v0.33.0

func (*QueryOpenEstRequest) Descriptor() ([]byte, []int)

func (*QueryOpenEstRequest) GetAmmPoolId added in v0.33.0

func (m *QueryOpenEstRequest) GetAmmPoolId() uint64

func (*QueryOpenEstRequest) GetCollateralAsset added in v0.33.0

func (m *QueryOpenEstRequest) GetCollateralAsset() string

func (*QueryOpenEstRequest) Marshal added in v0.33.0

func (m *QueryOpenEstRequest) Marshal() (dAtA []byte, err error)

func (*QueryOpenEstRequest) MarshalTo added in v0.33.0

func (m *QueryOpenEstRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOpenEstRequest) MarshalToSizedBuffer added in v0.33.0

func (m *QueryOpenEstRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOpenEstRequest) ProtoMessage added in v0.33.0

func (*QueryOpenEstRequest) ProtoMessage()

func (*QueryOpenEstRequest) Reset added in v0.33.0

func (m *QueryOpenEstRequest) Reset()

func (*QueryOpenEstRequest) Size added in v0.33.0

func (m *QueryOpenEstRequest) Size() (n int)

func (*QueryOpenEstRequest) String added in v0.33.0

func (m *QueryOpenEstRequest) String() string

func (*QueryOpenEstRequest) Unmarshal added in v0.33.0

func (m *QueryOpenEstRequest) Unmarshal(dAtA []byte) error

func (*QueryOpenEstRequest) XXX_DiscardUnknown added in v0.33.0

func (m *QueryOpenEstRequest) XXX_DiscardUnknown()

func (*QueryOpenEstRequest) XXX_Marshal added in v0.33.0

func (m *QueryOpenEstRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOpenEstRequest) XXX_Merge added in v0.33.0

func (m *QueryOpenEstRequest) XXX_Merge(src proto.Message)

func (*QueryOpenEstRequest) XXX_Size added in v0.33.0

func (m *QueryOpenEstRequest) XXX_Size() int

func (*QueryOpenEstRequest) XXX_Unmarshal added in v0.33.0

func (m *QueryOpenEstRequest) XXX_Unmarshal(b []byte) error

type QueryOpenEstResponse added in v0.33.0

type QueryOpenEstResponse struct {
	PositionSize       cosmossdk_io_math.Int       `protobuf:"bytes,1,opt,name=position_size,json=positionSize,proto3,customtype=cosmossdk.io/math.Int" json:"position_size"`
	WeightBalanceRatio cosmossdk_io_math.LegacyDec `` /* 146-byte string literal not displayed */
	BorrowFee          cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=borrow_fee,json=borrowFee,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"borrow_fee"`
}

func (*QueryOpenEstResponse) Descriptor added in v0.33.0

func (*QueryOpenEstResponse) Descriptor() ([]byte, []int)

func (*QueryOpenEstResponse) Marshal added in v0.33.0

func (m *QueryOpenEstResponse) Marshal() (dAtA []byte, err error)

func (*QueryOpenEstResponse) MarshalTo added in v0.33.0

func (m *QueryOpenEstResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOpenEstResponse) MarshalToSizedBuffer added in v0.33.0

func (m *QueryOpenEstResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOpenEstResponse) ProtoMessage added in v0.33.0

func (*QueryOpenEstResponse) ProtoMessage()

func (*QueryOpenEstResponse) Reset added in v0.33.0

func (m *QueryOpenEstResponse) Reset()

func (*QueryOpenEstResponse) Size added in v0.33.0

func (m *QueryOpenEstResponse) Size() (n int)

func (*QueryOpenEstResponse) String added in v0.33.0

func (m *QueryOpenEstResponse) String() string

func (*QueryOpenEstResponse) Unmarshal added in v0.33.0

func (m *QueryOpenEstResponse) Unmarshal(dAtA []byte) error

func (*QueryOpenEstResponse) XXX_DiscardUnknown added in v0.33.0

func (m *QueryOpenEstResponse) XXX_DiscardUnknown()

func (*QueryOpenEstResponse) XXX_Marshal added in v0.33.0

func (m *QueryOpenEstResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOpenEstResponse) XXX_Merge added in v0.33.0

func (m *QueryOpenEstResponse) XXX_Merge(src proto.Message)

func (*QueryOpenEstResponse) XXX_Size added in v0.33.0

func (m *QueryOpenEstResponse) XXX_Size() int

func (*QueryOpenEstResponse) XXX_Unmarshal added in v0.33.0

func (m *QueryOpenEstResponse) XXX_Unmarshal(b []byte) error

type QueryPosition added in v0.43.0

type QueryPosition struct {
	Position         *Position                   `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	UpdatedLeverage  cosmossdk_io_math.LegacyDec `` /* 135-byte string literal not displayed */
	PositionUsdValue cosmossdk_io_math.LegacyDec `` /* 140-byte string literal not displayed */
}

func (*QueryPosition) Descriptor added in v0.43.0

func (*QueryPosition) Descriptor() ([]byte, []int)

func (*QueryPosition) GetPosition added in v0.43.0

func (m *QueryPosition) GetPosition() *Position

func (*QueryPosition) Marshal added in v0.43.0

func (m *QueryPosition) Marshal() (dAtA []byte, err error)

func (*QueryPosition) MarshalTo added in v0.43.0

func (m *QueryPosition) MarshalTo(dAtA []byte) (int, error)

func (*QueryPosition) MarshalToSizedBuffer added in v0.43.0

func (m *QueryPosition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPosition) ProtoMessage added in v0.43.0

func (*QueryPosition) ProtoMessage()

func (*QueryPosition) Reset added in v0.43.0

func (m *QueryPosition) Reset()

func (*QueryPosition) Size added in v0.43.0

func (m *QueryPosition) Size() (n int)

func (*QueryPosition) String added in v0.43.0

func (m *QueryPosition) String() string

func (*QueryPosition) Unmarshal added in v0.43.0

func (m *QueryPosition) Unmarshal(dAtA []byte) error

func (*QueryPosition) XXX_DiscardUnknown added in v0.43.0

func (m *QueryPosition) XXX_DiscardUnknown()

func (*QueryPosition) XXX_Marshal added in v0.43.0

func (m *QueryPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPosition) XXX_Merge added in v0.43.0

func (m *QueryPosition) XXX_Merge(src proto.Message)

func (*QueryPosition) XXX_Size added in v0.43.0

func (m *QueryPosition) XXX_Size() int

func (*QueryPosition) XXX_Unmarshal added in v0.43.0

func (m *QueryPosition) XXX_Unmarshal(b []byte) error

type QueryRewardsRequest added in v0.33.0

type QueryRewardsRequest struct {
	Address string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Ids     []uint64 `protobuf:"varint,2,rep,packed,name=ids,proto3" json:"ids,omitempty"`
}

func (*QueryRewardsRequest) Descriptor added in v0.33.0

func (*QueryRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryRewardsRequest) GetAddress added in v0.33.0

func (m *QueryRewardsRequest) GetAddress() string

func (*QueryRewardsRequest) GetIds added in v0.33.0

func (m *QueryRewardsRequest) GetIds() []uint64

func (*QueryRewardsRequest) Marshal added in v0.33.0

func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryRewardsRequest) MarshalTo added in v0.33.0

func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryRewardsRequest) MarshalToSizedBuffer added in v0.33.0

func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRewardsRequest) ProtoMessage added in v0.33.0

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) Reset added in v0.33.0

func (m *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) Size added in v0.33.0

func (m *QueryRewardsRequest) Size() (n int)

func (*QueryRewardsRequest) String added in v0.33.0

func (m *QueryRewardsRequest) String() string

func (*QueryRewardsRequest) Unmarshal added in v0.33.0

func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryRewardsRequest) XXX_DiscardUnknown added in v0.33.0

func (m *QueryRewardsRequest) XXX_DiscardUnknown()

func (*QueryRewardsRequest) XXX_Marshal added in v0.33.0

func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRewardsRequest) XXX_Merge added in v0.33.0

func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)

func (*QueryRewardsRequest) XXX_Size added in v0.33.0

func (m *QueryRewardsRequest) XXX_Size() int

func (*QueryRewardsRequest) XXX_Unmarshal added in v0.33.0

func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryRewardsResponse added in v0.33.0

type QueryRewardsResponse struct {
	Rewards      []*RewardInfo                            `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
	TotalRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */
}

func (*QueryRewardsResponse) Descriptor added in v0.33.0

func (*QueryRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryRewardsResponse) GetRewards added in v0.33.0

func (m *QueryRewardsResponse) GetRewards() []*RewardInfo

func (*QueryRewardsResponse) GetTotalRewards added in v0.33.0

func (*QueryRewardsResponse) Marshal added in v0.33.0

func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryRewardsResponse) MarshalTo added in v0.33.0

func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryRewardsResponse) MarshalToSizedBuffer added in v0.33.0

func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRewardsResponse) ProtoMessage added in v0.33.0

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) Reset added in v0.33.0

func (m *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) Size added in v0.33.0

func (m *QueryRewardsResponse) Size() (n int)

func (*QueryRewardsResponse) String added in v0.33.0

func (m *QueryRewardsResponse) String() string

func (*QueryRewardsResponse) Unmarshal added in v0.33.0

func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryRewardsResponse) XXX_DiscardUnknown added in v0.33.0

func (m *QueryRewardsResponse) XXX_DiscardUnknown()

func (*QueryRewardsResponse) XXX_Marshal added in v0.33.0

func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRewardsResponse) XXX_Merge added in v0.33.0

func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)

func (*QueryRewardsResponse) XXX_Size added in v0.33.0

func (m *QueryRewardsResponse) XXX_Size() int

func (*QueryRewardsResponse) XXX_Unmarshal added in v0.33.0

func (m *QueryRewardsResponse) 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 GetPositions items.
	QueryPositions(context.Context, *PositionsRequest) (*PositionsResponse, error)
	// Queries a list of GetPositionsByPool items.
	QueryPositionsByPool(context.Context, *PositionsByPoolRequest) (*PositionsByPoolResponse, error)
	// Queries a list of GetStatus items.
	GetStatus(context.Context, *StatusRequest) (*StatusResponse, error)
	// Queries a list of GetPositionsForAddress items.
	QueryPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
	// Queries a list of GetWhitelist items.
	GetWhitelist(context.Context, *WhitelistRequest) (*WhitelistResponse, error)
	// Queries a list of IsWhitelisted items.
	IsWhitelisted(context.Context, *IsWhitelistedRequest) (*IsWhitelistedResponse, error)
	// Queries a list of Pool items.
	Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error)
	Pools(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error)
	// Queries a list of Position items.
	Position(context.Context, *PositionRequest) (*PositionResponse, error)
	// Query a liquidation price for a position
	LiquidationPrice(context.Context, *QueryLiquidationPriceRequest) (*QueryLiquidationPriceResponse, error)
	// Get estimated amount of return value opening a position
	OpenEst(context.Context, *QueryOpenEstRequest) (*QueryOpenEstResponse, error)
	// Get estimated amount of return value closing a position
	CloseEst(context.Context, *QueryCloseEstRequest) (*QueryCloseEstResponse, error)
	// Queries rewards on leveragelp
	Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
	// Queries a list of CommittedTokensLocked items.
	CommittedTokensLocked(context.Context, *QueryCommittedTokensLockedRequest) (*QueryCommittedTokensLockedResponse, error)
}

QueryServer is the server API for Query service.

type RewardInfo added in v0.33.0

type RewardInfo struct {
	PositionId uint64                                   `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	Reward     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"`
}

func (*RewardInfo) Descriptor added in v0.33.0

func (*RewardInfo) Descriptor() ([]byte, []int)

func (*RewardInfo) GetPositionId added in v0.33.0

func (m *RewardInfo) GetPositionId() uint64

func (*RewardInfo) GetReward added in v0.33.0

func (*RewardInfo) Marshal added in v0.33.0

func (m *RewardInfo) Marshal() (dAtA []byte, err error)

func (*RewardInfo) MarshalTo added in v0.33.0

func (m *RewardInfo) MarshalTo(dAtA []byte) (int, error)

func (*RewardInfo) MarshalToSizedBuffer added in v0.33.0

func (m *RewardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardInfo) ProtoMessage added in v0.33.0

func (*RewardInfo) ProtoMessage()

func (*RewardInfo) Reset added in v0.33.0

func (m *RewardInfo) Reset()

func (*RewardInfo) Size added in v0.33.0

func (m *RewardInfo) Size() (n int)

func (*RewardInfo) String added in v0.33.0

func (m *RewardInfo) String() string

func (*RewardInfo) Unmarshal added in v0.33.0

func (m *RewardInfo) Unmarshal(dAtA []byte) error

func (*RewardInfo) XXX_DiscardUnknown added in v0.33.0

func (m *RewardInfo) XXX_DiscardUnknown()

func (*RewardInfo) XXX_Marshal added in v0.33.0

func (m *RewardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardInfo) XXX_Merge added in v0.33.0

func (m *RewardInfo) XXX_Merge(src proto.Message)

func (*RewardInfo) XXX_Size added in v0.33.0

func (m *RewardInfo) XXX_Size() int

func (*RewardInfo) XXX_Unmarshal added in v0.33.0

func (m *RewardInfo) XXX_Unmarshal(b []byte) error

type StableStakeKeeper

type StableStakeKeeper interface {
	GetParams(ctx sdk.Context) stablestaketypes.Params
	GetDepositDenom(ctx sdk.Context) string
	GetDebt(ctx sdk.Context, addr sdk.AccAddress) stablestaketypes.Debt
	UpdateInterestAndGetDebt(ctx sdk.Context, addr sdk.AccAddress) stablestaketypes.Debt
	Borrow(ctx sdk.Context, addr sdk.AccAddress, amount sdk.Coin) error
	Repay(ctx sdk.Context, addr sdk.AccAddress, amount sdk.Coin) error
	TVL(ctx sdk.Context, oracleKeeper stablestaketypes.OracleKeeper, baseCurrency string) sdkmath.LegacyDec
	GetInterest(ctx sdk.Context, startBlock uint64, startTime uint64, borrowed sdkmath.LegacyDec) sdkmath.Int
}

StableStakeKeeper defines the expected interface needed on stablestake

type StatusRequest

type StatusRequest struct {
}

func (*StatusRequest) Descriptor

func (*StatusRequest) Descriptor() ([]byte, []int)

func (*StatusRequest) Marshal

func (m *StatusRequest) Marshal() (dAtA []byte, err error)

func (*StatusRequest) MarshalTo

func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error)

func (*StatusRequest) MarshalToSizedBuffer

func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) Reset

func (m *StatusRequest) Reset()

func (*StatusRequest) Size

func (m *StatusRequest) Size() (n int)

func (*StatusRequest) String

func (m *StatusRequest) String() string

func (*StatusRequest) Unmarshal

func (m *StatusRequest) Unmarshal(dAtA []byte) error

func (*StatusRequest) XXX_DiscardUnknown

func (m *StatusRequest) XXX_DiscardUnknown()

func (*StatusRequest) XXX_Marshal

func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusRequest) XXX_Merge

func (m *StatusRequest) XXX_Merge(src proto.Message)

func (*StatusRequest) XXX_Size

func (m *StatusRequest) XXX_Size() int

func (*StatusRequest) XXX_Unmarshal

func (m *StatusRequest) XXX_Unmarshal(b []byte) error

type StatusResponse

type StatusResponse struct {
	OpenPositionCount     uint64 `protobuf:"varint,1,opt,name=open_position_count,json=openPositionCount,proto3" json:"open_position_count,omitempty"`
	LifetimePositionCount uint64 `` /* 127-byte string literal not displayed */
}

func (*StatusResponse) Descriptor

func (*StatusResponse) Descriptor() ([]byte, []int)

func (*StatusResponse) GetLifetimePositionCount

func (m *StatusResponse) GetLifetimePositionCount() uint64

func (*StatusResponse) GetOpenPositionCount

func (m *StatusResponse) GetOpenPositionCount() uint64

func (*StatusResponse) Marshal

func (m *StatusResponse) Marshal() (dAtA []byte, err error)

func (*StatusResponse) MarshalTo

func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error)

func (*StatusResponse) MarshalToSizedBuffer

func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset

func (m *StatusResponse) Reset()

func (*StatusResponse) Size

func (m *StatusResponse) Size() (n int)

func (*StatusResponse) String

func (m *StatusResponse) String() string

func (*StatusResponse) Unmarshal

func (m *StatusResponse) Unmarshal(dAtA []byte) error

func (*StatusResponse) XXX_DiscardUnknown

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal

func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusResponse) XXX_Merge

func (m *StatusResponse) XXX_Merge(src proto.Message)

func (*StatusResponse) XXX_Size

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal

func (m *StatusResponse) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddPool added in v0.44.0

func (*UnimplementedMsgServer) ClaimRewards added in v0.33.0

func (*UnimplementedMsgServer) Close

func (*UnimplementedMsgServer) ClosePositions added in v0.42.0

func (*UnimplementedMsgServer) Dewhitelist

func (*UnimplementedMsgServer) Open

func (*UnimplementedMsgServer) RemovePool added in v0.43.0

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdateStopLoss added in v0.33.0

func (*UnimplementedMsgServer) Whitelist

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CloseEst added in v0.33.0

func (*UnimplementedQueryServer) CommittedTokensLocked added in v0.40.0

func (*UnimplementedQueryServer) GetStatus

func (*UnimplementedQueryServer) GetWhitelist

func (*UnimplementedQueryServer) IsWhitelisted

func (*UnimplementedQueryServer) LiquidationPrice added in v0.35.0

func (*UnimplementedQueryServer) OpenEst added in v0.33.0

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Pool

func (*UnimplementedQueryServer) Pools

func (*UnimplementedQueryServer) Position

func (*UnimplementedQueryServer) QueryPositions

func (*UnimplementedQueryServer) QueryPositionsByPool

func (*UnimplementedQueryServer) QueryPositionsForAddress

func (*UnimplementedQueryServer) Rewards added in v0.33.0

type WhitelistRequest

type WhitelistRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*WhitelistRequest) Descriptor

func (*WhitelistRequest) Descriptor() ([]byte, []int)

func (*WhitelistRequest) GetPagination

func (m *WhitelistRequest) GetPagination() *query.PageRequest

func (*WhitelistRequest) Marshal

func (m *WhitelistRequest) Marshal() (dAtA []byte, err error)

func (*WhitelistRequest) MarshalTo

func (m *WhitelistRequest) MarshalTo(dAtA []byte) (int, error)

func (*WhitelistRequest) MarshalToSizedBuffer

func (m *WhitelistRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WhitelistRequest) ProtoMessage

func (*WhitelistRequest) ProtoMessage()

func (*WhitelistRequest) Reset

func (m *WhitelistRequest) Reset()

func (*WhitelistRequest) Size

func (m *WhitelistRequest) Size() (n int)

func (*WhitelistRequest) String

func (m *WhitelistRequest) String() string

func (*WhitelistRequest) Unmarshal

func (m *WhitelistRequest) Unmarshal(dAtA []byte) error

func (*WhitelistRequest) XXX_DiscardUnknown

func (m *WhitelistRequest) XXX_DiscardUnknown()

func (*WhitelistRequest) XXX_Marshal

func (m *WhitelistRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WhitelistRequest) XXX_Merge

func (m *WhitelistRequest) XXX_Merge(src proto.Message)

func (*WhitelistRequest) XXX_Size

func (m *WhitelistRequest) XXX_Size() int

func (*WhitelistRequest) XXX_Unmarshal

func (m *WhitelistRequest) XXX_Unmarshal(b []byte) error

type WhitelistResponse

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

func (*WhitelistResponse) Descriptor() ([]byte, []int)

func (*WhitelistResponse) GetPagination

func (m *WhitelistResponse) GetPagination() *query.PageResponse

func (*WhitelistResponse) GetWhitelist

func (m *WhitelistResponse) GetWhitelist() []string

func (*WhitelistResponse) Marshal

func (m *WhitelistResponse) Marshal() (dAtA []byte, err error)

func (*WhitelistResponse) MarshalTo

func (m *WhitelistResponse) MarshalTo(dAtA []byte) (int, error)

func (*WhitelistResponse) MarshalToSizedBuffer

func (m *WhitelistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WhitelistResponse) ProtoMessage

func (*WhitelistResponse) ProtoMessage()

func (*WhitelistResponse) Reset

func (m *WhitelistResponse) Reset()

func (*WhitelistResponse) Size

func (m *WhitelistResponse) Size() (n int)

func (*WhitelistResponse) String

func (m *WhitelistResponse) String() string

func (*WhitelistResponse) Unmarshal

func (m *WhitelistResponse) Unmarshal(dAtA []byte) error

func (*WhitelistResponse) XXX_DiscardUnknown

func (m *WhitelistResponse) XXX_DiscardUnknown()

func (*WhitelistResponse) XXX_Marshal

func (m *WhitelistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WhitelistResponse) XXX_Merge

func (m *WhitelistResponse) XXX_Merge(src proto.Message)

func (*WhitelistResponse) XXX_Size

func (m *WhitelistResponse) XXX_Size() int

func (*WhitelistResponse) XXX_Unmarshal

func (m *WhitelistResponse) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL