queries

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientForQuery added in v0.1.2

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

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

func PrintObjectLegacy added in v0.1.2

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

Print object by using cosmos sdk legacy amino.

func PrintProto added in v0.1.2

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

Print protobuf message by using cosmos sdk codec.

Types

type IXplaClient

type IXplaClient struct {
	Ixplac    ModuleClient
	QueryType uint8
}

Query internal XPLA client

func NewIXplaClient

func NewIXplaClient(moduleClient ModuleClient, qt uint8) *IXplaClient

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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