types

package
v0.11.0-externliq Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 32 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 = "poolaccounted"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_poolaccounted"

	// ParamsKey is the prefix for parameters of poolaccounted module
	ParamsKey = "poolaccounted_params"
)
View Source
const (
	// AccountedPoolKeyPrefix is the prefix to retrieve all AccountedPool
	AccountedPoolKeyPrefix = "AccountedPool/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidLengthAccountedPool        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccountedPool          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccountedPool = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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 (
	ErrInvalidLengthPoolAsset        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPoolAsset          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPoolAsset = 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 (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/tvl module sentinel errors

Functions

func AccountedPoolKey

func AccountedPoolKey(
	poolId uint64,
) []byte

AccountedPoolKey returns the store key to retrieve a AccountedPool from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

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(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

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

type AccountedPool

type AccountedPool struct {
	PoolId      uint64                                 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty"`
	TotalShares types.Coin                             `protobuf:"bytes,2,opt,name=totalShares,proto3" json:"totalShares"`
	PoolAssets  []types1.PoolAsset                     `protobuf:"bytes,3,rep,name=poolAssets,proto3" json:"poolAssets"`
	TotalWeight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=totalWeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalWeight"`
}

func (*AccountedPool) Descriptor

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

func (*AccountedPool) GetPoolAssets

func (m *AccountedPool) GetPoolAssets() []types1.PoolAsset

func (*AccountedPool) GetPoolId

func (m *AccountedPool) GetPoolId() uint64

func (*AccountedPool) GetTotalShares

func (m *AccountedPool) GetTotalShares() types.Coin

func (*AccountedPool) Marshal

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

func (*AccountedPool) MarshalTo

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

func (*AccountedPool) MarshalToSizedBuffer

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

func (*AccountedPool) ProtoMessage

func (*AccountedPool) ProtoMessage()

func (*AccountedPool) Reset

func (m *AccountedPool) Reset()

func (*AccountedPool) Size

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

func (*AccountedPool) String

func (m *AccountedPool) String() string

func (*AccountedPool) Unmarshal

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

func (*AccountedPool) XXX_DiscardUnknown

func (m *AccountedPool) XXX_DiscardUnknown()

func (*AccountedPool) XXX_Marshal

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

func (*AccountedPool) XXX_Merge

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

func (*AccountedPool) XXX_Size

func (m *AccountedPool) XXX_Size() int

func (*AccountedPool) XXX_Unmarshal

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

type AmmKeeper

type AmmKeeper interface {
	// Get pool Ids that contains the denom in pool assets
	GetAllPoolIdsWithDenom(sdk.Context, string) []uint64
	// 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)
}

AmmKeeper defines the expected interface needed to swap tokens

type BankKeeper

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

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

	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error

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

BankKeeper defines the expected interface needed to retrieve account balances.

type GenesisState

type GenesisState struct {
	Params            Params          `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	AccountedPoolList []AccountedPool `protobuf:"bytes,2,rep,name=accountedPoolList,proto3" json:"accountedPoolList"`
}

GenesisState defines the tvl 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) GetAccountedPoolList

func (m *GenesisState) GetAccountedPoolList() []AccountedPool

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 MarginKeeper

type MarginKeeper interface {
	GetPool(ctx sdk.Context, poolId uint64) (margintypes.Pool, bool)
	IsPoolEnabled(ctx sdk.Context, poolId uint64) bool
	IsPoolClosed(ctx sdk.Context, poolId uint64) bool
	GetAllMTPs(ctx sdk.Context) []margintypes.MTP
}

MarginKeeper defines the expected interface needed

type MsgClient

type MsgClient interface {
}

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 {
}

MsgServer is the server API for Msg service.

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

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

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 PoolAsset

type PoolAsset struct {
	Token  types.Coin                             `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
	Weight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"weight"`
}

func (*PoolAsset) Descriptor

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

func (*PoolAsset) GetToken

func (m *PoolAsset) GetToken() types.Coin

func (*PoolAsset) Marshal

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

func (*PoolAsset) MarshalTo

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

func (*PoolAsset) MarshalToSizedBuffer

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

func (*PoolAsset) ProtoMessage

func (*PoolAsset) ProtoMessage()

func (*PoolAsset) Reset

func (m *PoolAsset) Reset()

func (*PoolAsset) Size

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

func (*PoolAsset) String

func (m *PoolAsset) String() string

func (*PoolAsset) Unmarshal

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

func (*PoolAsset) XXX_DiscardUnknown

func (m *PoolAsset) XXX_DiscardUnknown()

func (*PoolAsset) XXX_Marshal

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

func (*PoolAsset) XXX_Merge

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

func (*PoolAsset) XXX_Size

func (m *PoolAsset) XXX_Size() int

func (*PoolAsset) XXX_Unmarshal

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

type QueryAllAccountedPoolRequest

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

func (*QueryAllAccountedPoolRequest) Descriptor

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

func (*QueryAllAccountedPoolRequest) GetPagination

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

func (*QueryAllAccountedPoolRequest) Marshal

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

func (*QueryAllAccountedPoolRequest) MarshalTo

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

func (*QueryAllAccountedPoolRequest) MarshalToSizedBuffer

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

func (*QueryAllAccountedPoolRequest) ProtoMessage

func (*QueryAllAccountedPoolRequest) ProtoMessage()

func (*QueryAllAccountedPoolRequest) Reset

func (m *QueryAllAccountedPoolRequest) Reset()

func (*QueryAllAccountedPoolRequest) Size

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

func (*QueryAllAccountedPoolRequest) String

func (*QueryAllAccountedPoolRequest) Unmarshal

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

func (*QueryAllAccountedPoolRequest) XXX_DiscardUnknown

func (m *QueryAllAccountedPoolRequest) XXX_DiscardUnknown()

func (*QueryAllAccountedPoolRequest) XXX_Marshal

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

func (*QueryAllAccountedPoolRequest) XXX_Merge

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

func (*QueryAllAccountedPoolRequest) XXX_Size

func (m *QueryAllAccountedPoolRequest) XXX_Size() int

func (*QueryAllAccountedPoolRequest) XXX_Unmarshal

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

type QueryAllAccountedPoolResponse

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

func (*QueryAllAccountedPoolResponse) Descriptor

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

func (*QueryAllAccountedPoolResponse) GetAccountedPool

func (m *QueryAllAccountedPoolResponse) GetAccountedPool() []AccountedPool

func (*QueryAllAccountedPoolResponse) GetPagination

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

func (*QueryAllAccountedPoolResponse) Marshal

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

func (*QueryAllAccountedPoolResponse) MarshalTo

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

func (*QueryAllAccountedPoolResponse) MarshalToSizedBuffer

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

func (*QueryAllAccountedPoolResponse) ProtoMessage

func (*QueryAllAccountedPoolResponse) ProtoMessage()

func (*QueryAllAccountedPoolResponse) Reset

func (m *QueryAllAccountedPoolResponse) Reset()

func (*QueryAllAccountedPoolResponse) Size

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

func (*QueryAllAccountedPoolResponse) String

func (*QueryAllAccountedPoolResponse) Unmarshal

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

func (*QueryAllAccountedPoolResponse) XXX_DiscardUnknown

func (m *QueryAllAccountedPoolResponse) XXX_DiscardUnknown()

func (*QueryAllAccountedPoolResponse) XXX_Marshal

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

func (*QueryAllAccountedPoolResponse) XXX_Merge

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

func (*QueryAllAccountedPoolResponse) XXX_Size

func (m *QueryAllAccountedPoolResponse) XXX_Size() int

func (*QueryAllAccountedPoolResponse) XXX_Unmarshal

func (m *QueryAllAccountedPoolResponse) 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 AccountedPool items.
	AccountedPool(ctx context.Context, in *QueryGetAccountedPoolRequest, opts ...grpc.CallOption) (*QueryGetAccountedPoolResponse, error)
	AccountedPoolAll(ctx context.Context, in *QueryAllAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAllAccountedPoolResponse, 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 QueryGetAccountedPoolRequest

type QueryGetAccountedPoolRequest struct {
	PoolId uint64 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty"`
}

func (*QueryGetAccountedPoolRequest) Descriptor

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

func (*QueryGetAccountedPoolRequest) GetPoolId

func (m *QueryGetAccountedPoolRequest) GetPoolId() uint64

func (*QueryGetAccountedPoolRequest) Marshal

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

func (*QueryGetAccountedPoolRequest) MarshalTo

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

func (*QueryGetAccountedPoolRequest) MarshalToSizedBuffer

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

func (*QueryGetAccountedPoolRequest) ProtoMessage

func (*QueryGetAccountedPoolRequest) ProtoMessage()

func (*QueryGetAccountedPoolRequest) Reset

func (m *QueryGetAccountedPoolRequest) Reset()

func (*QueryGetAccountedPoolRequest) Size

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

func (*QueryGetAccountedPoolRequest) String

func (*QueryGetAccountedPoolRequest) Unmarshal

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

func (*QueryGetAccountedPoolRequest) XXX_DiscardUnknown

func (m *QueryGetAccountedPoolRequest) XXX_DiscardUnknown()

func (*QueryGetAccountedPoolRequest) XXX_Marshal

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

func (*QueryGetAccountedPoolRequest) XXX_Merge

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

func (*QueryGetAccountedPoolRequest) XXX_Size

func (m *QueryGetAccountedPoolRequest) XXX_Size() int

func (*QueryGetAccountedPoolRequest) XXX_Unmarshal

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

type QueryGetAccountedPoolResponse

type QueryGetAccountedPoolResponse struct {
	AccountedPool AccountedPool `protobuf:"bytes,1,opt,name=accountedPool,proto3" json:"accountedPool"`
}

func (*QueryGetAccountedPoolResponse) Descriptor

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

func (*QueryGetAccountedPoolResponse) GetAccountedPool

func (m *QueryGetAccountedPoolResponse) GetAccountedPool() AccountedPool

func (*QueryGetAccountedPoolResponse) Marshal

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

func (*QueryGetAccountedPoolResponse) MarshalTo

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

func (*QueryGetAccountedPoolResponse) MarshalToSizedBuffer

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

func (*QueryGetAccountedPoolResponse) ProtoMessage

func (*QueryGetAccountedPoolResponse) ProtoMessage()

func (*QueryGetAccountedPoolResponse) Reset

func (m *QueryGetAccountedPoolResponse) Reset()

func (*QueryGetAccountedPoolResponse) Size

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

func (*QueryGetAccountedPoolResponse) String

func (*QueryGetAccountedPoolResponse) Unmarshal

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

func (*QueryGetAccountedPoolResponse) XXX_DiscardUnknown

func (m *QueryGetAccountedPoolResponse) XXX_DiscardUnknown()

func (*QueryGetAccountedPoolResponse) XXX_Marshal

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

func (*QueryGetAccountedPoolResponse) XXX_Merge

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

func (*QueryGetAccountedPoolResponse) XXX_Size

func (m *QueryGetAccountedPoolResponse) XXX_Size() int

func (*QueryGetAccountedPoolResponse) XXX_Unmarshal

func (m *QueryGetAccountedPoolResponse) 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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of AccountedPool items.
	AccountedPool(context.Context, *QueryGetAccountedPoolRequest) (*QueryGetAccountedPoolResponse, error)
	AccountedPoolAll(context.Context, *QueryAllAccountedPoolRequest) (*QueryAllAccountedPoolResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccountedPool

func (*UnimplementedQueryServer) AccountedPoolAll

func (*UnimplementedQueryServer) Params

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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