types

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "tier"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
)
View Source
const DateFormat = "2006-01-02"
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrSample   = errorsmod.Register(ModuleName, 1100, "sample error")
	ErrNotFound = errorsmod.Register(ModuleName, 1101, "asset not found in asset profile")
)

x/tier 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 (
	PortfolioKeyPrefix = []byte{0x01}
	ParamKeyPrefix     = []byte{0x02}
)
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 (
	ErrInvalidLengthPortfolio        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPortfolio          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPortfolio = 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 (
	Basic = MembershipTier{
		Discount:         sdkmath.LegacyZeroDec(),
		Membership:       MembershipTierType_BASIC,
		MinimumPortfolio: sdkmath.LegacyZeroDec(),
	}
	Bronze = MembershipTier{
		Discount:         sdkmath.LegacyMustNewDecFromStr("0.05"),
		Membership:       MembershipTierType_BRONZE,
		MinimumPortfolio: sdkmath.LegacyMustNewDecFromStr("25000"),
	}
	Silver = MembershipTier{
		Discount:         sdkmath.LegacyMustNewDecFromStr("0.1"),
		Membership:       MembershipTierType_SILVER,
		MinimumPortfolio: sdkmath.LegacyMustNewDecFromStr("50000"),
	}
	Gold = MembershipTier{
		Discount:         sdkmath.LegacyMustNewDecFromStr("0.2"),
		Membership:       MembershipTierType_GOLD,
		MinimumPortfolio: sdkmath.LegacyMustNewDecFromStr("250000"),
	}
	Platinum = MembershipTier{
		Discount:         sdkmath.LegacyMustNewDecFromStr("0.3"),
		Membership:       MembershipTierType_PLATINUM,
		MinimumPortfolio: sdkmath.LegacyMustNewDecFromStr("500000"),
	}
)
View Source
var (
	ErrInvalidLengthUserdata        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUserdata          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUserdata = fmt.Errorf("proto: unexpected end of group")
)
View Source
var MembershipTierType_name = map[int32]string{
	0: "BASIC",
	1: "BRONZE",
	2: "SILVER",
	3: "GOLD",
	4: "PLATINUM",
}
View Source
var MembershipTierType_value = map[string]int32{
	"BASIC":    0,
	"BRONZE":   1,
	"SILVER":   2,
	"GOLD":     3,
	"PLATINUM": 4,
}

Functions

func GetPortfolioByDateIteratorKey added in v0.45.0

func GetPortfolioByDateIteratorKey(date string) []byte

func GetPortfolioKey added in v0.45.0

func GetPortfolioKey(date string, addr sdk.AccAddress) []byte

func KeyPrefix

func KeyPrefix(p string) []byte

func PortfolioKey

func PortfolioKey(
	asset string,
) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 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
	// IterateCommitments iterates over all Commitments and performs a callback.
	IterateLiquidityPools(sdk.Context, func(ammtypes.Pool) bool)
	PoolExtraInfo(ctx sdk.Context, pool ammtypes.Pool) ammtypes.PoolExtraInfo
	InRouteByDenom(goCtx context.Context, req *ammtypes.QueryInRouteByDenomRequest) (*ammtypes.QueryInRouteByDenomResponse, error)
	CalcInRouteSpotPrice(ctx sdk.Context,
		tokenIn sdk.Coin,
		routes []*ammtypes.SwapAmountInRoute,
		discount math.LegacyDec,
		overrideSwapFee math.LegacyDec,
	) (math.LegacyDec, math.LegacyDec, sdk.Coin, math.LegacyDec, math.LegacyDec, sdk.Coin, math.LegacyDec, math.LegacyDec, error)
	Balance(goCtx context.Context, req *ammtypes.QueryBalanceRequest) (*ammtypes.QueryBalanceResponse, error)
	GetEdenDenomPrice(ctx sdk.Context, baseCurrency string) math.LegacyDec
	CalculateUSDValue(ctx sdk.Context, denom string, amount math.Int) math.LegacyDec
	CalcAmmPrice(ctx sdk.Context, denom string, decimal uint64) math.LegacyDec
}

type AssetProfileKeeper

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

AssetProfileKeeper defines the expected interface needed to retrieve denom info

type BankKeeper

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

	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommitmentKeeper

type CommitmentKeeper interface {
	GetCommitments(ctx sdk.Context, creator sdk.AccAddress) commitmenttypes.Commitments
	CommitmentVestingInfo(goCtx context.Context, req *commitmenttypes.QueryCommitmentVestingInfoRequest) (*commitmenttypes.QueryCommitmentVestingInfoResponse, error)
	GetAllCommitmentsWithPagination(ctx sdk.Context, pagination *query.PageRequest) ([]*commitmenttypes.Commitments, *query.PageResponse, error)
}

type EstakingKeeper

type EstakingKeeper interface {
	Rewards(goCtx context.Context, req *estakingtypes.QueryRewardsRequest) (*estakingtypes.QueryRewardsResponse, error)
}

type GenesisState

type GenesisState struct {
	Params        Params      `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortfolioList []Portfolio `protobuf:"bytes,2,rep,name=portfolio_list,json=portfolioList,proto3" json:"portfolio_list"`
}

GenesisState defines the tier 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) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortfolioList

func (m *GenesisState) GetPortfolioList() []Portfolio

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. No data at genesis

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 LegacyPortfolio added in v0.45.0

type LegacyPortfolio struct {
	Creator   string                      `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Portfolio cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=portfolio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"portfolio"`
}

func (*LegacyPortfolio) Descriptor added in v0.45.0

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

func (*LegacyPortfolio) GetCreator added in v0.45.0

func (m *LegacyPortfolio) GetCreator() string

func (*LegacyPortfolio) Marshal added in v0.45.0

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

func (*LegacyPortfolio) MarshalTo added in v0.45.0

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

func (*LegacyPortfolio) MarshalToSizedBuffer added in v0.45.0

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

func (*LegacyPortfolio) ProtoMessage added in v0.45.0

func (*LegacyPortfolio) ProtoMessage()

func (*LegacyPortfolio) Reset added in v0.45.0

func (m *LegacyPortfolio) Reset()

func (*LegacyPortfolio) Size added in v0.45.0

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

func (*LegacyPortfolio) String added in v0.45.0

func (m *LegacyPortfolio) String() string

func (*LegacyPortfolio) Unmarshal added in v0.45.0

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

func (*LegacyPortfolio) XXX_DiscardUnknown added in v0.45.0

func (m *LegacyPortfolio) XXX_DiscardUnknown()

func (*LegacyPortfolio) XXX_Marshal added in v0.45.0

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

func (*LegacyPortfolio) XXX_Merge added in v0.45.0

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

func (*LegacyPortfolio) XXX_Size added in v0.45.0

func (m *LegacyPortfolio) XXX_Size() int

func (*LegacyPortfolio) XXX_Unmarshal added in v0.45.0

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

type LeverageLpKeeper added in v0.34.0

type LeverageLpKeeper interface {
	GetPositionsForAddress(ctx sdk.Context, positionAddress sdk.AccAddress, pagination *query.PageRequest) ([]*leveragelptypes.Position, *query.PageResponse, error)
}

type MasterchefKeeper

type MasterchefKeeper interface {
	UserPendingReward(goCtx context.Context, req *mastercheftypes.QueryUserPendingRewardRequest) (*mastercheftypes.QueryUserPendingRewardResponse, error)
}

type MembershipTier added in v0.51.0

type MembershipTier struct {
	MinimumPortfolio cosmossdk_io_math.LegacyDec `` /* 138-byte string literal not displayed */
	Membership       MembershipTierType          `protobuf:"varint,2,opt,name=membership,proto3,enum=elys.tier.MembershipTierType" json:"membership,omitempty"`
	Discount         cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=discount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"discount"`
}

func (*MembershipTier) Descriptor added in v0.51.0

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

func (*MembershipTier) GetMembership added in v0.51.0

func (m *MembershipTier) GetMembership() MembershipTierType

func (*MembershipTier) Marshal added in v0.51.0

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

func (*MembershipTier) MarshalTo added in v0.51.0

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

func (*MembershipTier) MarshalToSizedBuffer added in v0.51.0

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

func (*MembershipTier) ProtoMessage added in v0.51.0

func (*MembershipTier) ProtoMessage()

func (*MembershipTier) Reset added in v0.51.0

func (m *MembershipTier) Reset()

func (*MembershipTier) Size added in v0.51.0

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

func (*MembershipTier) String added in v0.51.0

func (m *MembershipTier) String() string

func (*MembershipTier) Unmarshal added in v0.51.0

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

func (*MembershipTier) XXX_DiscardUnknown added in v0.51.0

func (m *MembershipTier) XXX_DiscardUnknown()

func (*MembershipTier) XXX_Marshal added in v0.51.0

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

func (*MembershipTier) XXX_Merge added in v0.51.0

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

func (*MembershipTier) XXX_Size added in v0.51.0

func (m *MembershipTier) XXX_Size() int

func (*MembershipTier) XXX_Unmarshal added in v0.51.0

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

type MembershipTierType added in v0.51.0

type MembershipTierType int32
const (
	MembershipTierType_BASIC    MembershipTierType = 0
	MembershipTierType_BRONZE   MembershipTierType = 1
	MembershipTierType_SILVER   MembershipTierType = 2
	MembershipTierType_GOLD     MembershipTierType = 3
	MembershipTierType_PLATINUM MembershipTierType = 4
)

func (MembershipTierType) EnumDescriptor added in v0.51.0

func (MembershipTierType) EnumDescriptor() ([]byte, []int)

func (MembershipTierType) String added in v0.51.0

func (x MembershipTierType) String() string

type MsgClient

type MsgClient interface {
	SetPortfolio(ctx context.Context, in *MsgSetPortfolio, opts ...grpc.CallOption) (*MsgSetPortfolioResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	SetPortfolio(context.Context, *MsgSetPortfolio) (*MsgSetPortfolioResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetPortfolio

type MsgSetPortfolio struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	User    string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
}

func NewMsgSetPortfolio

func NewMsgSetPortfolio(creator string, user string) *MsgSetPortfolio

func (*MsgSetPortfolio) Descriptor

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

func (*MsgSetPortfolio) GetCreator

func (m *MsgSetPortfolio) GetCreator() string

func (*MsgSetPortfolio) GetUser

func (m *MsgSetPortfolio) GetUser() string

func (*MsgSetPortfolio) Marshal

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

func (*MsgSetPortfolio) MarshalTo

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

func (*MsgSetPortfolio) MarshalToSizedBuffer

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

func (*MsgSetPortfolio) ProtoMessage

func (*MsgSetPortfolio) ProtoMessage()

func (*MsgSetPortfolio) Reset

func (m *MsgSetPortfolio) Reset()

func (*MsgSetPortfolio) Size

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

func (*MsgSetPortfolio) String

func (m *MsgSetPortfolio) String() string

func (*MsgSetPortfolio) Unmarshal

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

func (*MsgSetPortfolio) ValidateBasic

func (msg *MsgSetPortfolio) ValidateBasic() error

func (*MsgSetPortfolio) XXX_DiscardUnknown

func (m *MsgSetPortfolio) XXX_DiscardUnknown()

func (*MsgSetPortfolio) XXX_Marshal

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

func (*MsgSetPortfolio) XXX_Merge

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

func (*MsgSetPortfolio) XXX_Size

func (m *MsgSetPortfolio) XXX_Size() int

func (*MsgSetPortfolio) XXX_Unmarshal

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

type MsgSetPortfolioResponse

type MsgSetPortfolioResponse struct {
}

func (*MsgSetPortfolioResponse) Descriptor

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

func (*MsgSetPortfolioResponse) Marshal

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

func (*MsgSetPortfolioResponse) MarshalTo

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

func (*MsgSetPortfolioResponse) MarshalToSizedBuffer

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

func (*MsgSetPortfolioResponse) ProtoMessage

func (*MsgSetPortfolioResponse) ProtoMessage()

func (*MsgSetPortfolioResponse) Reset

func (m *MsgSetPortfolioResponse) Reset()

func (*MsgSetPortfolioResponse) Size

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

func (*MsgSetPortfolioResponse) String

func (m *MsgSetPortfolioResponse) String() string

func (*MsgSetPortfolioResponse) Unmarshal

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

func (*MsgSetPortfolioResponse) XXX_DiscardUnknown

func (m *MsgSetPortfolioResponse) XXX_DiscardUnknown()

func (*MsgSetPortfolioResponse) XXX_Marshal

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

func (*MsgSetPortfolioResponse) XXX_Merge

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

func (*MsgSetPortfolioResponse) XXX_Size

func (m *MsgSetPortfolioResponse) XXX_Size() int

func (*MsgSetPortfolioResponse) XXX_Unmarshal

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

type OracleKeeper

type OracleKeeper interface {
	GetAssetInfo(ctx sdk.Context, denom string) (val oracletypes.AssetInfo, found bool)
	GetAssetPrice(ctx sdk.Context, asset string) (oracletypes.Price, bool)
	GetAssetPriceFromDenom(ctx sdk.Context, denom string) math.LegacyDec
	GetPriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) (val oracletypes.PriceFeeder, found bool)
}

type Params

type Params struct {
}

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) 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 PerpetualKeeper

type PerpetualKeeper interface {
	GetAllMTPsForAddress(ctx sdk.Context, mtpAddress sdk.AccAddress) []*perpetualtypes.MTP
	GetMTPsForAddressWithPagination(ctx sdk.Context, mtpAddress sdk.AccAddress, pagination *query.PageRequest) ([]*perpetualtypes.MtpAndPrice, *query.PageResponse, error)
}

type Pool added in v0.49.4

type Pool struct {
	PoolId    string                `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Pool      string                `protobuf:"bytes,2,opt,name=pool,proto3" json:"pool,omitempty"`
	FiatValue string                `protobuf:"bytes,3,opt,name=fiat_value,json=fiatValue,proto3" json:"fiat_value,omitempty"`
	Amount    cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"`
}

func (*Pool) Descriptor added in v0.49.4

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

func (*Pool) GetFiatValue added in v0.49.4

func (m *Pool) GetFiatValue() string

func (*Pool) GetPool added in v0.49.4

func (m *Pool) GetPool() string

func (*Pool) GetPoolId added in v0.49.4

func (m *Pool) GetPoolId() string

func (*Pool) Marshal added in v0.49.4

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

func (*Pool) MarshalTo added in v0.49.4

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

func (*Pool) MarshalToSizedBuffer added in v0.49.4

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

func (*Pool) ProtoMessage added in v0.49.4

func (*Pool) ProtoMessage()

func (*Pool) Reset added in v0.49.4

func (m *Pool) Reset()

func (*Pool) Size added in v0.49.4

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

func (*Pool) String added in v0.49.4

func (m *Pool) String() string

func (*Pool) Unmarshal added in v0.49.4

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

func (*Pool) XXX_DiscardUnknown added in v0.49.4

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal added in v0.49.4

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

func (*Pool) XXX_Merge added in v0.49.4

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

func (*Pool) XXX_Size added in v0.49.4

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal added in v0.49.4

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

type Portfolio

type Portfolio struct {
	Date      string                      `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	Creator   string                      `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Portfolio cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=portfolio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"portfolio"`
}

func NewPortfolioWithContextDate added in v0.45.0

func NewPortfolioWithContextDate(date string, creator sdk.AccAddress, value sdkmath.LegacyDec) Portfolio

func (*Portfolio) Descriptor

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

func (*Portfolio) GetCreator

func (m *Portfolio) GetCreator() string

func (Portfolio) GetCreatorAddress added in v0.45.0

func (p Portfolio) GetCreatorAddress() sdk.AccAddress

func (*Portfolio) GetDate added in v0.45.0

func (m *Portfolio) GetDate() string

func (*Portfolio) Marshal

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

func (*Portfolio) MarshalTo

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

func (*Portfolio) MarshalToSizedBuffer

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

func (*Portfolio) ProtoMessage

func (*Portfolio) ProtoMessage()

func (*Portfolio) Reset

func (m *Portfolio) Reset()

func (*Portfolio) Size

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

func (*Portfolio) String

func (m *Portfolio) String() string

func (*Portfolio) Unmarshal

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

func (*Portfolio) XXX_DiscardUnknown

func (m *Portfolio) XXX_DiscardUnknown()

func (*Portfolio) XXX_Marshal

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

func (*Portfolio) XXX_Merge

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

func (*Portfolio) XXX_Size

func (m *Portfolio) XXX_Size() int

func (*Portfolio) XXX_Unmarshal

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

type QueryAllPortfolioRequest

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

func (*QueryAllPortfolioRequest) Descriptor

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

func (*QueryAllPortfolioRequest) GetPagination

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

func (*QueryAllPortfolioRequest) Marshal

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

func (*QueryAllPortfolioRequest) MarshalTo

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

func (*QueryAllPortfolioRequest) MarshalToSizedBuffer

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

func (*QueryAllPortfolioRequest) ProtoMessage

func (*QueryAllPortfolioRequest) ProtoMessage()

func (*QueryAllPortfolioRequest) Reset

func (m *QueryAllPortfolioRequest) Reset()

func (*QueryAllPortfolioRequest) Size

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

func (*QueryAllPortfolioRequest) String

func (m *QueryAllPortfolioRequest) String() string

func (*QueryAllPortfolioRequest) Unmarshal

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

func (*QueryAllPortfolioRequest) XXX_DiscardUnknown

func (m *QueryAllPortfolioRequest) XXX_DiscardUnknown()

func (*QueryAllPortfolioRequest) XXX_Marshal

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

func (*QueryAllPortfolioRequest) XXX_Merge

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

func (*QueryAllPortfolioRequest) XXX_Size

func (m *QueryAllPortfolioRequest) XXX_Size() int

func (*QueryAllPortfolioRequest) XXX_Unmarshal

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

type QueryAllPortfolioResponse

type QueryAllPortfolioResponse struct {
	Portfolio  []Portfolio         `protobuf:"bytes,1,rep,name=portfolio,proto3" json:"portfolio"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPortfolioResponse) Descriptor

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

func (*QueryAllPortfolioResponse) GetPagination

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

func (*QueryAllPortfolioResponse) GetPortfolio

func (m *QueryAllPortfolioResponse) GetPortfolio() []Portfolio

func (*QueryAllPortfolioResponse) Marshal

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

func (*QueryAllPortfolioResponse) MarshalTo

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

func (*QueryAllPortfolioResponse) MarshalToSizedBuffer

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

func (*QueryAllPortfolioResponse) ProtoMessage

func (*QueryAllPortfolioResponse) ProtoMessage()

func (*QueryAllPortfolioResponse) Reset

func (m *QueryAllPortfolioResponse) Reset()

func (*QueryAllPortfolioResponse) Size

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

func (*QueryAllPortfolioResponse) String

func (m *QueryAllPortfolioResponse) String() string

func (*QueryAllPortfolioResponse) Unmarshal

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

func (*QueryAllPortfolioResponse) XXX_DiscardUnknown

func (m *QueryAllPortfolioResponse) XXX_DiscardUnknown()

func (*QueryAllPortfolioResponse) XXX_Marshal

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

func (*QueryAllPortfolioResponse) XXX_Merge

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

func (*QueryAllPortfolioResponse) XXX_Size

func (m *QueryAllPortfolioResponse) XXX_Size() int

func (*QueryAllPortfolioResponse) XXX_Unmarshal

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

type QueryCalculateDiscountRequest

type QueryCalculateDiscountRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryCalculateDiscountRequest) Descriptor

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

func (*QueryCalculateDiscountRequest) GetUser

func (*QueryCalculateDiscountRequest) Marshal

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

func (*QueryCalculateDiscountRequest) MarshalTo

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

func (*QueryCalculateDiscountRequest) MarshalToSizedBuffer

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

func (*QueryCalculateDiscountRequest) ProtoMessage

func (*QueryCalculateDiscountRequest) ProtoMessage()

func (*QueryCalculateDiscountRequest) Reset

func (m *QueryCalculateDiscountRequest) Reset()

func (*QueryCalculateDiscountRequest) Size

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

func (*QueryCalculateDiscountRequest) String

func (*QueryCalculateDiscountRequest) Unmarshal

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

func (*QueryCalculateDiscountRequest) XXX_DiscardUnknown

func (m *QueryCalculateDiscountRequest) XXX_DiscardUnknown()

func (*QueryCalculateDiscountRequest) XXX_Marshal

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

func (*QueryCalculateDiscountRequest) XXX_Merge

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

func (*QueryCalculateDiscountRequest) XXX_Size

func (m *QueryCalculateDiscountRequest) XXX_Size() int

func (*QueryCalculateDiscountRequest) XXX_Unmarshal

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

type QueryCalculateDiscountResponse

type QueryCalculateDiscountResponse struct {
	MembershipTier *MembershipTier `protobuf:"bytes,1,opt,name=membership_tier,json=membershipTier,proto3" json:"membership_tier,omitempty"`
	Portfolio      string          `protobuf:"bytes,2,opt,name=portfolio,proto3" json:"portfolio,omitempty"`
}

func (*QueryCalculateDiscountResponse) Descriptor

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

func (*QueryCalculateDiscountResponse) GetMembershipTier added in v0.51.0

func (m *QueryCalculateDiscountResponse) GetMembershipTier() *MembershipTier

func (*QueryCalculateDiscountResponse) GetPortfolio

func (m *QueryCalculateDiscountResponse) GetPortfolio() string

func (*QueryCalculateDiscountResponse) Marshal

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

func (*QueryCalculateDiscountResponse) MarshalTo

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

func (*QueryCalculateDiscountResponse) MarshalToSizedBuffer

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

func (*QueryCalculateDiscountResponse) ProtoMessage

func (*QueryCalculateDiscountResponse) ProtoMessage()

func (*QueryCalculateDiscountResponse) Reset

func (m *QueryCalculateDiscountResponse) Reset()

func (*QueryCalculateDiscountResponse) Size

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

func (*QueryCalculateDiscountResponse) String

func (*QueryCalculateDiscountResponse) Unmarshal

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

func (*QueryCalculateDiscountResponse) XXX_DiscardUnknown

func (m *QueryCalculateDiscountResponse) XXX_DiscardUnknown()

func (*QueryCalculateDiscountResponse) XXX_Marshal

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

func (*QueryCalculateDiscountResponse) XXX_Merge

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

func (*QueryCalculateDiscountResponse) XXX_Size

func (m *QueryCalculateDiscountResponse) XXX_Size() int

func (*QueryCalculateDiscountResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Portfolio items.
	Portfolio(ctx context.Context, in *QueryGetPortfolioRequest, opts ...grpc.CallOption) (*QueryGetPortfolioResponse, error)
	PortfolioAll(ctx context.Context, in *QueryAllPortfolioRequest, opts ...grpc.CallOption) (*QueryAllPortfolioResponse, error)
	// Queries a list of CalculateDiscount items.
	CalculateDiscount(ctx context.Context, in *QueryCalculateDiscountRequest, opts ...grpc.CallOption) (*QueryCalculateDiscountResponse, error)
	// Queries a list of LeverageLpTotal items.
	LeverageLpTotal(ctx context.Context, in *QueryLeverageLpTotalRequest, opts ...grpc.CallOption) (*QueryLeverageLpTotalResponse, error)
	// Queries a list of RewardsTotal items.
	RewardsTotal(ctx context.Context, in *QueryRewardsTotalRequest, opts ...grpc.CallOption) (*QueryRewardsTotalResponse, error)
	// Queries a list of StakedPool items.
	StakedPool(ctx context.Context, in *QueryStakedPoolRequest, opts ...grpc.CallOption) (*QueryStakedPoolResponse, error)
	// Queries a list of Perpetual items.
	Perpetual(ctx context.Context, in *QueryPerpetualRequest, opts ...grpc.CallOption) (*QueryPerpetualResponse, error)
	// Queries a list of LiquidTotal items.
	LiquidTotal(ctx context.Context, in *QueryLiquidTotalRequest, opts ...grpc.CallOption) (*QueryLiquidTotalResponse, error)
	// Queries a list of LockedOrder items.
	LockedOrder(ctx context.Context, in *QueryLockedOrderRequest, opts ...grpc.CallOption) (*QueryLockedOrderResponse, error)
	// Queries a list of GetAmmPrice items.
	GetAmmPrice(ctx context.Context, in *QueryGetAmmPriceRequest, opts ...grpc.CallOption) (*QueryGetAmmPriceResponse, error)
	// Queries a list of GetConsolidatedPrice items.
	GetConsolidatedPrice(ctx context.Context, in *QueryGetConsolidatedPriceRequest, opts ...grpc.CallOption) (*QueryGetConsolidatedPriceResponse, error)
	// Queries a list of Staked items.
	Staked(ctx context.Context, in *QueryStakedRequest, opts ...grpc.CallOption) (*QueryStakedResponse, error)
	// Queries a list of GetUsersPoolData items.
	GetUsersPoolData(ctx context.Context, in *QueryGetUsersPoolDataRequest, opts ...grpc.CallOption) (*QueryGetUsersPoolDataResponse, 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 QueryGetAmmPriceRequest added in v0.35.0

type QueryGetAmmPriceRequest struct {
	Denom   string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Decimal int32  `protobuf:"varint,2,opt,name=decimal,proto3" json:"decimal,omitempty"`
}

func (*QueryGetAmmPriceRequest) Descriptor added in v0.35.0

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

func (*QueryGetAmmPriceRequest) GetDecimal added in v0.35.0

func (m *QueryGetAmmPriceRequest) GetDecimal() int32

func (*QueryGetAmmPriceRequest) GetDenom added in v0.35.0

func (m *QueryGetAmmPriceRequest) GetDenom() string

func (*QueryGetAmmPriceRequest) Marshal added in v0.35.0

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

func (*QueryGetAmmPriceRequest) MarshalTo added in v0.35.0

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

func (*QueryGetAmmPriceRequest) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryGetAmmPriceRequest) ProtoMessage added in v0.35.0

func (*QueryGetAmmPriceRequest) ProtoMessage()

func (*QueryGetAmmPriceRequest) Reset added in v0.35.0

func (m *QueryGetAmmPriceRequest) Reset()

func (*QueryGetAmmPriceRequest) Size added in v0.35.0

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

func (*QueryGetAmmPriceRequest) String added in v0.35.0

func (m *QueryGetAmmPriceRequest) String() string

func (*QueryGetAmmPriceRequest) Unmarshal added in v0.35.0

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

func (*QueryGetAmmPriceRequest) XXX_DiscardUnknown added in v0.35.0

func (m *QueryGetAmmPriceRequest) XXX_DiscardUnknown()

func (*QueryGetAmmPriceRequest) XXX_Marshal added in v0.35.0

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

func (*QueryGetAmmPriceRequest) XXX_Merge added in v0.35.0

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

func (*QueryGetAmmPriceRequest) XXX_Size added in v0.35.0

func (m *QueryGetAmmPriceRequest) XXX_Size() int

func (*QueryGetAmmPriceRequest) XXX_Unmarshal added in v0.35.0

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

type QueryGetAmmPriceResponse added in v0.35.0

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

func (*QueryGetAmmPriceResponse) Descriptor added in v0.35.0

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

func (*QueryGetAmmPriceResponse) Marshal added in v0.35.0

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

func (*QueryGetAmmPriceResponse) MarshalTo added in v0.35.0

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

func (*QueryGetAmmPriceResponse) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryGetAmmPriceResponse) ProtoMessage added in v0.35.0

func (*QueryGetAmmPriceResponse) ProtoMessage()

func (*QueryGetAmmPriceResponse) Reset added in v0.35.0

func (m *QueryGetAmmPriceResponse) Reset()

func (*QueryGetAmmPriceResponse) Size added in v0.35.0

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

func (*QueryGetAmmPriceResponse) String added in v0.35.0

func (m *QueryGetAmmPriceResponse) String() string

func (*QueryGetAmmPriceResponse) Unmarshal added in v0.35.0

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

func (*QueryGetAmmPriceResponse) XXX_DiscardUnknown added in v0.35.0

func (m *QueryGetAmmPriceResponse) XXX_DiscardUnknown()

func (*QueryGetAmmPriceResponse) XXX_Marshal added in v0.35.0

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

func (*QueryGetAmmPriceResponse) XXX_Merge added in v0.35.0

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

func (*QueryGetAmmPriceResponse) XXX_Size added in v0.35.0

func (m *QueryGetAmmPriceResponse) XXX_Size() int

func (*QueryGetAmmPriceResponse) XXX_Unmarshal added in v0.35.0

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

type QueryGetConsolidatedPriceRequest added in v0.38.0

type QueryGetConsolidatedPriceRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryGetConsolidatedPriceRequest) Descriptor added in v0.38.0

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

func (*QueryGetConsolidatedPriceRequest) GetDenom added in v0.38.0

func (*QueryGetConsolidatedPriceRequest) Marshal added in v0.38.0

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

func (*QueryGetConsolidatedPriceRequest) MarshalTo added in v0.38.0

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

func (*QueryGetConsolidatedPriceRequest) MarshalToSizedBuffer added in v0.38.0

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

func (*QueryGetConsolidatedPriceRequest) ProtoMessage added in v0.38.0

func (*QueryGetConsolidatedPriceRequest) ProtoMessage()

func (*QueryGetConsolidatedPriceRequest) Reset added in v0.38.0

func (*QueryGetConsolidatedPriceRequest) Size added in v0.38.0

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

func (*QueryGetConsolidatedPriceRequest) String added in v0.38.0

func (*QueryGetConsolidatedPriceRequest) Unmarshal added in v0.38.0

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

func (*QueryGetConsolidatedPriceRequest) XXX_DiscardUnknown added in v0.38.0

func (m *QueryGetConsolidatedPriceRequest) XXX_DiscardUnknown()

func (*QueryGetConsolidatedPriceRequest) XXX_Marshal added in v0.38.0

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

func (*QueryGetConsolidatedPriceRequest) XXX_Merge added in v0.38.0

func (*QueryGetConsolidatedPriceRequest) XXX_Size added in v0.38.0

func (m *QueryGetConsolidatedPriceRequest) XXX_Size() int

func (*QueryGetConsolidatedPriceRequest) XXX_Unmarshal added in v0.38.0

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

type QueryGetConsolidatedPriceResponse added in v0.38.0

type QueryGetConsolidatedPriceResponse struct {
	AmmPrice       cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=amm_price,json=ammPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"amm_price"`
	OraclePrice    cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=oracle_price,json=oraclePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"oracle_price"`
	OraclePriceDec cosmossdk_io_math.LegacyDec `` /* 134-byte string literal not displayed */
}

func (*QueryGetConsolidatedPriceResponse) Descriptor added in v0.38.0

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

func (*QueryGetConsolidatedPriceResponse) Marshal added in v0.38.0

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

func (*QueryGetConsolidatedPriceResponse) MarshalTo added in v0.38.0

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

func (*QueryGetConsolidatedPriceResponse) MarshalToSizedBuffer added in v0.38.0

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

func (*QueryGetConsolidatedPriceResponse) ProtoMessage added in v0.38.0

func (*QueryGetConsolidatedPriceResponse) ProtoMessage()

func (*QueryGetConsolidatedPriceResponse) Reset added in v0.38.0

func (*QueryGetConsolidatedPriceResponse) Size added in v0.38.0

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

func (*QueryGetConsolidatedPriceResponse) String added in v0.38.0

func (*QueryGetConsolidatedPriceResponse) Unmarshal added in v0.38.0

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

func (*QueryGetConsolidatedPriceResponse) XXX_DiscardUnknown added in v0.38.0

func (m *QueryGetConsolidatedPriceResponse) XXX_DiscardUnknown()

func (*QueryGetConsolidatedPriceResponse) XXX_Marshal added in v0.38.0

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

func (*QueryGetConsolidatedPriceResponse) XXX_Merge added in v0.38.0

func (*QueryGetConsolidatedPriceResponse) XXX_Size added in v0.38.0

func (m *QueryGetConsolidatedPriceResponse) XXX_Size() int

func (*QueryGetConsolidatedPriceResponse) XXX_Unmarshal added in v0.38.0

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

type QueryGetPortfolioRequest

type QueryGetPortfolioRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryGetPortfolioRequest) Descriptor

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

func (*QueryGetPortfolioRequest) GetUser

func (m *QueryGetPortfolioRequest) GetUser() string

func (*QueryGetPortfolioRequest) Marshal

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

func (*QueryGetPortfolioRequest) MarshalTo

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

func (*QueryGetPortfolioRequest) MarshalToSizedBuffer

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

func (*QueryGetPortfolioRequest) ProtoMessage

func (*QueryGetPortfolioRequest) ProtoMessage()

func (*QueryGetPortfolioRequest) Reset

func (m *QueryGetPortfolioRequest) Reset()

func (*QueryGetPortfolioRequest) Size

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

func (*QueryGetPortfolioRequest) String

func (m *QueryGetPortfolioRequest) String() string

func (*QueryGetPortfolioRequest) Unmarshal

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

func (*QueryGetPortfolioRequest) XXX_DiscardUnknown

func (m *QueryGetPortfolioRequest) XXX_DiscardUnknown()

func (*QueryGetPortfolioRequest) XXX_Marshal

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

func (*QueryGetPortfolioRequest) XXX_Merge

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

func (*QueryGetPortfolioRequest) XXX_Size

func (m *QueryGetPortfolioRequest) XXX_Size() int

func (*QueryGetPortfolioRequest) XXX_Unmarshal

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

type QueryGetPortfolioResponse

type QueryGetPortfolioResponse struct {
	TotalPortfolio string `protobuf:"bytes,1,opt,name=total_portfolio,json=totalPortfolio,proto3" json:"total_portfolio,omitempty"`
}

func (*QueryGetPortfolioResponse) Descriptor

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

func (*QueryGetPortfolioResponse) GetTotalPortfolio

func (m *QueryGetPortfolioResponse) GetTotalPortfolio() string

func (*QueryGetPortfolioResponse) Marshal

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

func (*QueryGetPortfolioResponse) MarshalTo

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

func (*QueryGetPortfolioResponse) MarshalToSizedBuffer

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

func (*QueryGetPortfolioResponse) ProtoMessage

func (*QueryGetPortfolioResponse) ProtoMessage()

func (*QueryGetPortfolioResponse) Reset

func (m *QueryGetPortfolioResponse) Reset()

func (*QueryGetPortfolioResponse) Size

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

func (*QueryGetPortfolioResponse) String

func (m *QueryGetPortfolioResponse) String() string

func (*QueryGetPortfolioResponse) Unmarshal

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

func (*QueryGetPortfolioResponse) XXX_DiscardUnknown

func (m *QueryGetPortfolioResponse) XXX_DiscardUnknown()

func (*QueryGetPortfolioResponse) XXX_Marshal

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

func (*QueryGetPortfolioResponse) XXX_Merge

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

func (*QueryGetPortfolioResponse) XXX_Size

func (m *QueryGetPortfolioResponse) XXX_Size() int

func (*QueryGetPortfolioResponse) XXX_Unmarshal

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

type QueryGetUsersPoolDataRequest added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) Descriptor added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) GetPagination added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) Marshal added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) MarshalTo added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) MarshalToSizedBuffer added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) ProtoMessage added in v0.49.4

func (*QueryGetUsersPoolDataRequest) ProtoMessage()

func (*QueryGetUsersPoolDataRequest) Reset added in v0.49.4

func (m *QueryGetUsersPoolDataRequest) Reset()

func (*QueryGetUsersPoolDataRequest) Size added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) String added in v0.49.4

func (*QueryGetUsersPoolDataRequest) Unmarshal added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) XXX_DiscardUnknown added in v0.49.4

func (m *QueryGetUsersPoolDataRequest) XXX_DiscardUnknown()

func (*QueryGetUsersPoolDataRequest) XXX_Marshal added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) XXX_Merge added in v0.49.4

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

func (*QueryGetUsersPoolDataRequest) XXX_Size added in v0.49.4

func (m *QueryGetUsersPoolDataRequest) XXX_Size() int

func (*QueryGetUsersPoolDataRequest) XXX_Unmarshal added in v0.49.4

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

type QueryGetUsersPoolDataResponse added in v0.49.4

type QueryGetUsersPoolDataResponse struct {
	Users      []*UserData         `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryGetUsersPoolDataResponse) Descriptor added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) GetPagination added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) GetUsers added in v0.49.4

func (m *QueryGetUsersPoolDataResponse) GetUsers() []*UserData

func (*QueryGetUsersPoolDataResponse) Marshal added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) MarshalTo added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) MarshalToSizedBuffer added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) ProtoMessage added in v0.49.4

func (*QueryGetUsersPoolDataResponse) ProtoMessage()

func (*QueryGetUsersPoolDataResponse) Reset added in v0.49.4

func (m *QueryGetUsersPoolDataResponse) Reset()

func (*QueryGetUsersPoolDataResponse) Size added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) String added in v0.49.4

func (*QueryGetUsersPoolDataResponse) Unmarshal added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) XXX_DiscardUnknown added in v0.49.4

func (m *QueryGetUsersPoolDataResponse) XXX_DiscardUnknown()

func (*QueryGetUsersPoolDataResponse) XXX_Marshal added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) XXX_Merge added in v0.49.4

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

func (*QueryGetUsersPoolDataResponse) XXX_Size added in v0.49.4

func (m *QueryGetUsersPoolDataResponse) XXX_Size() int

func (*QueryGetUsersPoolDataResponse) XXX_Unmarshal added in v0.49.4

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

type QueryLeverageLpTotalRequest added in v0.34.0

type QueryLeverageLpTotalRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryLeverageLpTotalRequest) Descriptor added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) GetUser added in v0.34.0

func (m *QueryLeverageLpTotalRequest) GetUser() string

func (*QueryLeverageLpTotalRequest) Marshal added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) MarshalTo added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) MarshalToSizedBuffer added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) ProtoMessage added in v0.34.0

func (*QueryLeverageLpTotalRequest) ProtoMessage()

func (*QueryLeverageLpTotalRequest) Reset added in v0.34.0

func (m *QueryLeverageLpTotalRequest) Reset()

func (*QueryLeverageLpTotalRequest) Size added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) String added in v0.34.0

func (m *QueryLeverageLpTotalRequest) String() string

func (*QueryLeverageLpTotalRequest) Unmarshal added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) XXX_DiscardUnknown added in v0.34.0

func (m *QueryLeverageLpTotalRequest) XXX_DiscardUnknown()

func (*QueryLeverageLpTotalRequest) XXX_Marshal added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) XXX_Merge added in v0.34.0

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

func (*QueryLeverageLpTotalRequest) XXX_Size added in v0.34.0

func (m *QueryLeverageLpTotalRequest) XXX_Size() int

func (*QueryLeverageLpTotalRequest) XXX_Unmarshal added in v0.34.0

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

type QueryLeverageLpTotalResponse added in v0.34.0

type QueryLeverageLpTotalResponse struct {
	TotalValue   cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=total_value,json=totalValue,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"total_value"`
	TotalBorrows cosmossdk_io_math.LegacyDec `` /* 126-byte string literal not displayed */
}

func (*QueryLeverageLpTotalResponse) Descriptor added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) Marshal added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) MarshalTo added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) MarshalToSizedBuffer added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) ProtoMessage added in v0.34.0

func (*QueryLeverageLpTotalResponse) ProtoMessage()

func (*QueryLeverageLpTotalResponse) Reset added in v0.34.0

func (m *QueryLeverageLpTotalResponse) Reset()

func (*QueryLeverageLpTotalResponse) Size added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) String added in v0.34.0

func (*QueryLeverageLpTotalResponse) Unmarshal added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) XXX_DiscardUnknown added in v0.34.0

func (m *QueryLeverageLpTotalResponse) XXX_DiscardUnknown()

func (*QueryLeverageLpTotalResponse) XXX_Marshal added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) XXX_Merge added in v0.34.0

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

func (*QueryLeverageLpTotalResponse) XXX_Size added in v0.34.0

func (m *QueryLeverageLpTotalResponse) XXX_Size() int

func (*QueryLeverageLpTotalResponse) XXX_Unmarshal added in v0.34.0

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

type QueryLiquidTotalRequest added in v0.35.0

type QueryLiquidTotalRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryLiquidTotalRequest) Descriptor added in v0.35.0

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

func (*QueryLiquidTotalRequest) GetUser added in v0.35.0

func (m *QueryLiquidTotalRequest) GetUser() string

func (*QueryLiquidTotalRequest) Marshal added in v0.35.0

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

func (*QueryLiquidTotalRequest) MarshalTo added in v0.35.0

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

func (*QueryLiquidTotalRequest) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryLiquidTotalRequest) ProtoMessage added in v0.35.0

func (*QueryLiquidTotalRequest) ProtoMessage()

func (*QueryLiquidTotalRequest) Reset added in v0.35.0

func (m *QueryLiquidTotalRequest) Reset()

func (*QueryLiquidTotalRequest) Size added in v0.35.0

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

func (*QueryLiquidTotalRequest) String added in v0.35.0

func (m *QueryLiquidTotalRequest) String() string

func (*QueryLiquidTotalRequest) Unmarshal added in v0.35.0

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

func (*QueryLiquidTotalRequest) XXX_DiscardUnknown added in v0.35.0

func (m *QueryLiquidTotalRequest) XXX_DiscardUnknown()

func (*QueryLiquidTotalRequest) XXX_Marshal added in v0.35.0

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

func (*QueryLiquidTotalRequest) XXX_Merge added in v0.35.0

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

func (*QueryLiquidTotalRequest) XXX_Size added in v0.35.0

func (m *QueryLiquidTotalRequest) XXX_Size() int

func (*QueryLiquidTotalRequest) XXX_Unmarshal added in v0.35.0

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

type QueryLiquidTotalResponse added in v0.35.0

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

func (*QueryLiquidTotalResponse) Descriptor added in v0.35.0

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

func (*QueryLiquidTotalResponse) Marshal added in v0.35.0

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

func (*QueryLiquidTotalResponse) MarshalTo added in v0.35.0

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

func (*QueryLiquidTotalResponse) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryLiquidTotalResponse) ProtoMessage added in v0.35.0

func (*QueryLiquidTotalResponse) ProtoMessage()

func (*QueryLiquidTotalResponse) Reset added in v0.35.0

func (m *QueryLiquidTotalResponse) Reset()

func (*QueryLiquidTotalResponse) Size added in v0.35.0

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

func (*QueryLiquidTotalResponse) String added in v0.35.0

func (m *QueryLiquidTotalResponse) String() string

func (*QueryLiquidTotalResponse) Unmarshal added in v0.35.0

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

func (*QueryLiquidTotalResponse) XXX_DiscardUnknown added in v0.35.0

func (m *QueryLiquidTotalResponse) XXX_DiscardUnknown()

func (*QueryLiquidTotalResponse) XXX_Marshal added in v0.35.0

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

func (*QueryLiquidTotalResponse) XXX_Merge added in v0.35.0

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

func (*QueryLiquidTotalResponse) XXX_Size added in v0.35.0

func (m *QueryLiquidTotalResponse) XXX_Size() int

func (*QueryLiquidTotalResponse) XXX_Unmarshal added in v0.35.0

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

type QueryLockedOrderRequest added in v0.54.0

type QueryLockedOrderRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryLockedOrderRequest) Descriptor added in v0.54.0

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

func (*QueryLockedOrderRequest) GetUser added in v0.54.0

func (m *QueryLockedOrderRequest) GetUser() string

func (*QueryLockedOrderRequest) Marshal added in v0.54.0

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

func (*QueryLockedOrderRequest) MarshalTo added in v0.54.0

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

func (*QueryLockedOrderRequest) MarshalToSizedBuffer added in v0.54.0

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

func (*QueryLockedOrderRequest) ProtoMessage added in v0.54.0

func (*QueryLockedOrderRequest) ProtoMessage()

func (*QueryLockedOrderRequest) Reset added in v0.54.0

func (m *QueryLockedOrderRequest) Reset()

func (*QueryLockedOrderRequest) Size added in v0.54.0

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

func (*QueryLockedOrderRequest) String added in v0.54.0

func (m *QueryLockedOrderRequest) String() string

func (*QueryLockedOrderRequest) Unmarshal added in v0.54.0

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

func (*QueryLockedOrderRequest) XXX_DiscardUnknown added in v0.54.0

func (m *QueryLockedOrderRequest) XXX_DiscardUnknown()

func (*QueryLockedOrderRequest) XXX_Marshal added in v0.54.0

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

func (*QueryLockedOrderRequest) XXX_Merge added in v0.54.0

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

func (*QueryLockedOrderRequest) XXX_Size added in v0.54.0

func (m *QueryLockedOrderRequest) XXX_Size() int

func (*QueryLockedOrderRequest) XXX_Unmarshal added in v0.54.0

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

type QueryLockedOrderResponse added in v0.54.0

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

func (*QueryLockedOrderResponse) Descriptor added in v0.54.0

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

func (*QueryLockedOrderResponse) Marshal added in v0.54.0

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

func (*QueryLockedOrderResponse) MarshalTo added in v0.54.0

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

func (*QueryLockedOrderResponse) MarshalToSizedBuffer added in v0.54.0

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

func (*QueryLockedOrderResponse) ProtoMessage added in v0.54.0

func (*QueryLockedOrderResponse) ProtoMessage()

func (*QueryLockedOrderResponse) Reset added in v0.54.0

func (m *QueryLockedOrderResponse) Reset()

func (*QueryLockedOrderResponse) Size added in v0.54.0

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

func (*QueryLockedOrderResponse) String added in v0.54.0

func (m *QueryLockedOrderResponse) String() string

func (*QueryLockedOrderResponse) Unmarshal added in v0.54.0

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

func (*QueryLockedOrderResponse) XXX_DiscardUnknown added in v0.54.0

func (m *QueryLockedOrderResponse) XXX_DiscardUnknown()

func (*QueryLockedOrderResponse) XXX_Marshal added in v0.54.0

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

func (*QueryLockedOrderResponse) XXX_Merge added in v0.54.0

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

func (*QueryLockedOrderResponse) XXX_Size added in v0.54.0

func (m *QueryLockedOrderResponse) XXX_Size() int

func (*QueryLockedOrderResponse) XXX_Unmarshal added in v0.54.0

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryPerpetualRequest added in v0.35.0

type QueryPerpetualRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryPerpetualRequest) Descriptor added in v0.35.0

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

func (*QueryPerpetualRequest) GetUser added in v0.35.0

func (m *QueryPerpetualRequest) GetUser() string

func (*QueryPerpetualRequest) Marshal added in v0.35.0

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

func (*QueryPerpetualRequest) MarshalTo added in v0.35.0

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

func (*QueryPerpetualRequest) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryPerpetualRequest) ProtoMessage added in v0.35.0

func (*QueryPerpetualRequest) ProtoMessage()

func (*QueryPerpetualRequest) Reset added in v0.35.0

func (m *QueryPerpetualRequest) Reset()

func (*QueryPerpetualRequest) Size added in v0.35.0

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

func (*QueryPerpetualRequest) String added in v0.35.0

func (m *QueryPerpetualRequest) String() string

func (*QueryPerpetualRequest) Unmarshal added in v0.35.0

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

func (*QueryPerpetualRequest) XXX_DiscardUnknown added in v0.35.0

func (m *QueryPerpetualRequest) XXX_DiscardUnknown()

func (*QueryPerpetualRequest) XXX_Marshal added in v0.35.0

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

func (*QueryPerpetualRequest) XXX_Merge added in v0.35.0

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

func (*QueryPerpetualRequest) XXX_Size added in v0.35.0

func (m *QueryPerpetualRequest) XXX_Size() int

func (*QueryPerpetualRequest) XXX_Unmarshal added in v0.35.0

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

type QueryPerpetualResponse added in v0.35.0

type QueryPerpetualResponse struct {
	TotalValue   cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=total_value,json=totalValue,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"total_value"`
	TotalBorrows cosmossdk_io_math.LegacyDec `` /* 126-byte string literal not displayed */
}

func (*QueryPerpetualResponse) Descriptor added in v0.35.0

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

func (*QueryPerpetualResponse) Marshal added in v0.35.0

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

func (*QueryPerpetualResponse) MarshalTo added in v0.35.0

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

func (*QueryPerpetualResponse) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryPerpetualResponse) ProtoMessage added in v0.35.0

func (*QueryPerpetualResponse) ProtoMessage()

func (*QueryPerpetualResponse) Reset added in v0.35.0

func (m *QueryPerpetualResponse) Reset()

func (*QueryPerpetualResponse) Size added in v0.35.0

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

func (*QueryPerpetualResponse) String added in v0.35.0

func (m *QueryPerpetualResponse) String() string

func (*QueryPerpetualResponse) Unmarshal added in v0.35.0

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

func (*QueryPerpetualResponse) XXX_DiscardUnknown added in v0.35.0

func (m *QueryPerpetualResponse) XXX_DiscardUnknown()

func (*QueryPerpetualResponse) XXX_Marshal added in v0.35.0

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

func (*QueryPerpetualResponse) XXX_Merge added in v0.35.0

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

func (*QueryPerpetualResponse) XXX_Size added in v0.35.0

func (m *QueryPerpetualResponse) XXX_Size() int

func (*QueryPerpetualResponse) XXX_Unmarshal added in v0.35.0

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

type QueryRewardsTotalRequest added in v0.35.0

type QueryRewardsTotalRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryRewardsTotalRequest) Descriptor added in v0.35.0

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

func (*QueryRewardsTotalRequest) GetUser added in v0.35.0

func (m *QueryRewardsTotalRequest) GetUser() string

func (*QueryRewardsTotalRequest) Marshal added in v0.35.0

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

func (*QueryRewardsTotalRequest) MarshalTo added in v0.35.0

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

func (*QueryRewardsTotalRequest) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryRewardsTotalRequest) ProtoMessage added in v0.35.0

func (*QueryRewardsTotalRequest) ProtoMessage()

func (*QueryRewardsTotalRequest) Reset added in v0.35.0

func (m *QueryRewardsTotalRequest) Reset()

func (*QueryRewardsTotalRequest) Size added in v0.35.0

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

func (*QueryRewardsTotalRequest) String added in v0.35.0

func (m *QueryRewardsTotalRequest) String() string

func (*QueryRewardsTotalRequest) Unmarshal added in v0.35.0

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

func (*QueryRewardsTotalRequest) XXX_DiscardUnknown added in v0.35.0

func (m *QueryRewardsTotalRequest) XXX_DiscardUnknown()

func (*QueryRewardsTotalRequest) XXX_Marshal added in v0.35.0

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

func (*QueryRewardsTotalRequest) XXX_Merge added in v0.35.0

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

func (*QueryRewardsTotalRequest) XXX_Size added in v0.35.0

func (m *QueryRewardsTotalRequest) XXX_Size() int

func (*QueryRewardsTotalRequest) XXX_Unmarshal added in v0.35.0

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

type QueryRewardsTotalResponse added in v0.35.0

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

func (*QueryRewardsTotalResponse) Descriptor added in v0.35.0

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

func (*QueryRewardsTotalResponse) Marshal added in v0.35.0

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

func (*QueryRewardsTotalResponse) MarshalTo added in v0.35.0

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

func (*QueryRewardsTotalResponse) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryRewardsTotalResponse) ProtoMessage added in v0.35.0

func (*QueryRewardsTotalResponse) ProtoMessage()

func (*QueryRewardsTotalResponse) Reset added in v0.35.0

func (m *QueryRewardsTotalResponse) Reset()

func (*QueryRewardsTotalResponse) Size added in v0.35.0

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

func (*QueryRewardsTotalResponse) String added in v0.35.0

func (m *QueryRewardsTotalResponse) String() string

func (*QueryRewardsTotalResponse) Unmarshal added in v0.35.0

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

func (*QueryRewardsTotalResponse) XXX_DiscardUnknown added in v0.35.0

func (m *QueryRewardsTotalResponse) XXX_DiscardUnknown()

func (*QueryRewardsTotalResponse) XXX_Marshal added in v0.35.0

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

func (*QueryRewardsTotalResponse) XXX_Merge added in v0.35.0

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

func (*QueryRewardsTotalResponse) XXX_Size added in v0.35.0

func (m *QueryRewardsTotalResponse) XXX_Size() int

func (*QueryRewardsTotalResponse) XXX_Unmarshal added in v0.35.0

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Portfolio items.
	Portfolio(context.Context, *QueryGetPortfolioRequest) (*QueryGetPortfolioResponse, error)
	PortfolioAll(context.Context, *QueryAllPortfolioRequest) (*QueryAllPortfolioResponse, error)
	// Queries a list of CalculateDiscount items.
	CalculateDiscount(context.Context, *QueryCalculateDiscountRequest) (*QueryCalculateDiscountResponse, error)
	// Queries a list of LeverageLpTotal items.
	LeverageLpTotal(context.Context, *QueryLeverageLpTotalRequest) (*QueryLeverageLpTotalResponse, error)
	// Queries a list of RewardsTotal items.
	RewardsTotal(context.Context, *QueryRewardsTotalRequest) (*QueryRewardsTotalResponse, error)
	// Queries a list of StakedPool items.
	StakedPool(context.Context, *QueryStakedPoolRequest) (*QueryStakedPoolResponse, error)
	// Queries a list of Perpetual items.
	Perpetual(context.Context, *QueryPerpetualRequest) (*QueryPerpetualResponse, error)
	// Queries a list of LiquidTotal items.
	LiquidTotal(context.Context, *QueryLiquidTotalRequest) (*QueryLiquidTotalResponse, error)
	// Queries a list of LockedOrder items.
	LockedOrder(context.Context, *QueryLockedOrderRequest) (*QueryLockedOrderResponse, error)
	// Queries a list of GetAmmPrice items.
	GetAmmPrice(context.Context, *QueryGetAmmPriceRequest) (*QueryGetAmmPriceResponse, error)
	// Queries a list of GetConsolidatedPrice items.
	GetConsolidatedPrice(context.Context, *QueryGetConsolidatedPriceRequest) (*QueryGetConsolidatedPriceResponse, error)
	// Queries a list of Staked items.
	Staked(context.Context, *QueryStakedRequest) (*QueryStakedResponse, error)
	// Queries a list of GetUsersPoolData items.
	GetUsersPoolData(context.Context, *QueryGetUsersPoolDataRequest) (*QueryGetUsersPoolDataResponse, error)
}

QueryServer is the server API for Query service.

type QueryStakedPoolRequest added in v0.35.0

type QueryStakedPoolRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryStakedPoolRequest) Descriptor added in v0.35.0

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

func (*QueryStakedPoolRequest) GetUser added in v0.35.0

func (m *QueryStakedPoolRequest) GetUser() string

func (*QueryStakedPoolRequest) Marshal added in v0.35.0

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

func (*QueryStakedPoolRequest) MarshalTo added in v0.35.0

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

func (*QueryStakedPoolRequest) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryStakedPoolRequest) ProtoMessage added in v0.35.0

func (*QueryStakedPoolRequest) ProtoMessage()

func (*QueryStakedPoolRequest) Reset added in v0.35.0

func (m *QueryStakedPoolRequest) Reset()

func (*QueryStakedPoolRequest) Size added in v0.35.0

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

func (*QueryStakedPoolRequest) String added in v0.35.0

func (m *QueryStakedPoolRequest) String() string

func (*QueryStakedPoolRequest) Unmarshal added in v0.35.0

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

func (*QueryStakedPoolRequest) XXX_DiscardUnknown added in v0.35.0

func (m *QueryStakedPoolRequest) XXX_DiscardUnknown()

func (*QueryStakedPoolRequest) XXX_Marshal added in v0.35.0

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

func (*QueryStakedPoolRequest) XXX_Merge added in v0.35.0

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

func (*QueryStakedPoolRequest) XXX_Size added in v0.35.0

func (m *QueryStakedPoolRequest) XXX_Size() int

func (*QueryStakedPoolRequest) XXX_Unmarshal added in v0.35.0

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

type QueryStakedPoolResponse added in v0.35.0

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

func (*QueryStakedPoolResponse) Descriptor added in v0.35.0

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

func (*QueryStakedPoolResponse) Marshal added in v0.35.0

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

func (*QueryStakedPoolResponse) MarshalTo added in v0.35.0

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

func (*QueryStakedPoolResponse) MarshalToSizedBuffer added in v0.35.0

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

func (*QueryStakedPoolResponse) ProtoMessage added in v0.35.0

func (*QueryStakedPoolResponse) ProtoMessage()

func (*QueryStakedPoolResponse) Reset added in v0.35.0

func (m *QueryStakedPoolResponse) Reset()

func (*QueryStakedPoolResponse) Size added in v0.35.0

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

func (*QueryStakedPoolResponse) String added in v0.35.0

func (m *QueryStakedPoolResponse) String() string

func (*QueryStakedPoolResponse) Unmarshal added in v0.35.0

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

func (*QueryStakedPoolResponse) XXX_DiscardUnknown added in v0.35.0

func (m *QueryStakedPoolResponse) XXX_DiscardUnknown()

func (*QueryStakedPoolResponse) XXX_Marshal added in v0.35.0

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

func (*QueryStakedPoolResponse) XXX_Merge added in v0.35.0

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

func (*QueryStakedPoolResponse) XXX_Size added in v0.35.0

func (m *QueryStakedPoolResponse) XXX_Size() int

func (*QueryStakedPoolResponse) XXX_Unmarshal added in v0.35.0

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

type QueryStakedRequest added in v0.39.0

type QueryStakedRequest struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

func (*QueryStakedRequest) Descriptor added in v0.39.0

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

func (*QueryStakedRequest) GetUser added in v0.39.0

func (m *QueryStakedRequest) GetUser() string

func (*QueryStakedRequest) Marshal added in v0.39.0

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

func (*QueryStakedRequest) MarshalTo added in v0.39.0

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

func (*QueryStakedRequest) MarshalToSizedBuffer added in v0.39.0

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

func (*QueryStakedRequest) ProtoMessage added in v0.39.0

func (*QueryStakedRequest) ProtoMessage()

func (*QueryStakedRequest) Reset added in v0.39.0

func (m *QueryStakedRequest) Reset()

func (*QueryStakedRequest) Size added in v0.39.0

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

func (*QueryStakedRequest) String added in v0.39.0

func (m *QueryStakedRequest) String() string

func (*QueryStakedRequest) Unmarshal added in v0.39.0

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

func (*QueryStakedRequest) XXX_DiscardUnknown added in v0.39.0

func (m *QueryStakedRequest) XXX_DiscardUnknown()

func (*QueryStakedRequest) XXX_Marshal added in v0.39.0

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

func (*QueryStakedRequest) XXX_Merge added in v0.39.0

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

func (*QueryStakedRequest) XXX_Size added in v0.39.0

func (m *QueryStakedRequest) XXX_Size() int

func (*QueryStakedRequest) XXX_Unmarshal added in v0.39.0

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

type QueryStakedResponse added in v0.39.0

type QueryStakedResponse struct {
	Commitments cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=commitments,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"commitments"`
	Delegations cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=delegations,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"delegations"`
	Unbondings  cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=unbondings,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"unbondings"`
	TotalVested cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=total_vested,json=totalVested,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"total_vested"`
}

func (*QueryStakedResponse) Descriptor added in v0.39.0

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

func (*QueryStakedResponse) Marshal added in v0.39.0

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

func (*QueryStakedResponse) MarshalTo added in v0.39.0

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

func (*QueryStakedResponse) MarshalToSizedBuffer added in v0.39.0

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

func (*QueryStakedResponse) ProtoMessage added in v0.39.0

func (*QueryStakedResponse) ProtoMessage()

func (*QueryStakedResponse) Reset added in v0.39.0

func (m *QueryStakedResponse) Reset()

func (*QueryStakedResponse) Size added in v0.39.0

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

func (*QueryStakedResponse) String added in v0.39.0

func (m *QueryStakedResponse) String() string

func (*QueryStakedResponse) Unmarshal added in v0.39.0

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

func (*QueryStakedResponse) XXX_DiscardUnknown added in v0.39.0

func (m *QueryStakedResponse) XXX_DiscardUnknown()

func (*QueryStakedResponse) XXX_Marshal added in v0.39.0

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

func (*QueryStakedResponse) XXX_Merge added in v0.39.0

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

func (*QueryStakedResponse) XXX_Size added in v0.39.0

func (m *QueryStakedResponse) XXX_Size() int

func (*QueryStakedResponse) XXX_Unmarshal added in v0.39.0

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

type StablestakeKeeper added in v0.39.0

type StablestakeKeeper interface {
	GetParams(ctx sdk.Context) (params stablestaketypes.Params)
	GetDebt(ctx sdk.Context, addr sdk.AccAddress) stablestaketypes.Debt
	UpdateInterestAndGetDebt(ctx sdk.Context, addr sdk.AccAddress) stablestaketypes.Debt
}

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx context.Context) (string, error)
	GetUnbondingDelegations(ctx context.Context, delegator sdk.AccAddress, maxRetrieve uint16) (unbondingDelegations []stakingtypes.UnbondingDelegation, err error)
	GetDelegatorValidators(ctx context.Context, delegatorAddr sdk.AccAddress, maxRetrieve uint32) (stakingtypes.Validators, error)
	GetAllDelegatorDelegations(ctx context.Context, delegator sdk.AccAddress) ([]stakingtypes.Delegation, error)
}

type TradeshieldKeeper added in v0.53.0

type TradeshieldKeeper interface {
	GetPendingPerpetualOrdersForAddress(ctx sdk.Context, address string, status *tradeshieldtypes.Status, pagination *query.PageRequest) ([]tradeshieldtypes.PerpetualOrder, *query.PageResponse, error)
	GetPendingSpotOrdersForAddress(ctx sdk.Context, address string, status *tradeshieldtypes.Status, pagination *query.PageRequest) ([]tradeshieldtypes.SpotOrder, *query.PageResponse, error)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SetPortfolio

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CalculateDiscount

func (*UnimplementedQueryServer) GetAmmPrice added in v0.35.0

func (*UnimplementedQueryServer) GetConsolidatedPrice added in v0.38.0

func (*UnimplementedQueryServer) GetUsersPoolData added in v0.49.4

func (*UnimplementedQueryServer) LeverageLpTotal added in v0.34.0

func (*UnimplementedQueryServer) LiquidTotal added in v0.35.0

func (*UnimplementedQueryServer) LockedOrder added in v0.54.0

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Perpetual added in v0.35.0

func (*UnimplementedQueryServer) Portfolio

func (*UnimplementedQueryServer) PortfolioAll

func (*UnimplementedQueryServer) RewardsTotal added in v0.35.0

func (*UnimplementedQueryServer) Staked added in v0.39.0

func (*UnimplementedQueryServer) StakedPool added in v0.35.0

type UserData added in v0.49.4

type UserData struct {
	User  string  `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Pools []*Pool `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty"`
}

func (*UserData) Descriptor added in v0.49.4

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

func (*UserData) GetPools added in v0.49.4

func (m *UserData) GetPools() []*Pool

func (*UserData) GetUser added in v0.49.4

func (m *UserData) GetUser() string

func (*UserData) Marshal added in v0.49.4

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

func (*UserData) MarshalTo added in v0.49.4

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

func (*UserData) MarshalToSizedBuffer added in v0.49.4

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

func (*UserData) ProtoMessage added in v0.49.4

func (*UserData) ProtoMessage()

func (*UserData) Reset added in v0.49.4

func (m *UserData) Reset()

func (*UserData) Size added in v0.49.4

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

func (*UserData) String added in v0.49.4

func (m *UserData) String() string

func (*UserData) Unmarshal added in v0.49.4

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

func (*UserData) XXX_DiscardUnknown added in v0.49.4

func (m *UserData) XXX_DiscardUnknown()

func (*UserData) XXX_Marshal added in v0.49.4

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

func (*UserData) XXX_Merge added in v0.49.4

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

func (*UserData) XXX_Size added in v0.49.4

func (m *UserData) XXX_Size() int

func (*UserData) XXX_Unmarshal added in v0.49.4

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

Jump to

Keyboard shortcuts

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