core

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PageRequest *query.PageRequest

Functions

func ClientForQuery

func ClientForQuery(i QueryClient) (cmclient.Context, error)

For auth module and gov module, make cosmos sdk client for querying.

func DefaultPagination

func DefaultPagination() *query.PageRequest

Set default pagination.

func PrintObjectLegacy

func PrintObjectLegacy(i QueryClient, toPrint interface{}) ([]byte, error)

Print object by using cosmos sdk legacy amino.

func PrintProto

func PrintProto(i QueryClient, toPrint proto.Message) ([]byte, error)

Print protobuf message by using cosmos sdk codec.

func ReadPageRequest

func ReadPageRequest(pagination types.Pagination) (*query.PageRequest, error)

Read pagination in the xpla client option

Types

type ModuleClient

type ModuleClient interface {
	GetChainId() string
	GetPrivateKey() key.PrivateKey
	GetEncoding() params.EncodingConfig
	GetContext() context.Context
	GetLcdURL() string
	GetGrpcUrl() string
	GetGrpcClient() grpc.ClientConn
	GetRpc() string
	GetEvmRpc() string
	GetBroadcastMode() string
	GetAccountNumber() string
	GetSequence() string
	GetGasLimit() string
	GetGasPrice() string
	GetGasAdjustment() string
	GetFeeAmount() string
	GetSignMode() signing.SignMode
	GetFeeGranter() sdk.AccAddress
	GetTimeoutHeight() string
	GetPagination() *query.PageRequest
	GetOutputDocument() string
	GetModule() string
	GetMsg() interface{}
	GetMsgType() string
}

type QueryClient

type QueryClient struct {
	Ixplac    ModuleClient
	QueryType uint8
}

Query internal XPLA client

func NewIXplaClient

func NewIXplaClient(moduleClient ModuleClient, qt uint8) *QueryClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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