lite

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func NewDefaultClient

func NewDefaultClient() *Client

func (*Client) BroadcastTx

func (c *Client) BroadcastTx(txBytes []byte) (res *sdk.TxResponse, err error)

func (*Client) CalculateGas added in v0.6.0

func (c *Client) CalculateGas(txf tx.Factory, messages ...sdk.Msg) (gas uint64, err error)

func (*Client) FromAddress

func (c *Client) FromAddress() sdk.AccAddress

func (*Client) FromName added in v0.6.0

func (c *Client) FromName() string

func (*Client) HasNodeForPlan

func (c *Client) HasNodeForPlan(id uint64, nodeAddr hubtypes.NodeAddress) (result bool, err error)

func (*Client) PrepareTxFactory added in v0.6.0

func (c *Client) PrepareTxFactory(messages ...sdk.Msg) (txf tx.Factory, err error)

func (*Client) QueryAccount

func (c *Client) QueryAccount(accAddr sdk.AccAddress) (result authtypes.AccountI, err error)

func (*Client) QueryAllocation added in v0.7.0

func (c *Client) QueryAllocation(id uint64, accAddr sdk.AccAddress) (result *subscriptiontypes.Allocation, err error)

func (*Client) QueryNode

func (c *Client) QueryNode(nodeAddr hubtypes.NodeAddress) (result *nodetypes.Node, err error)

func (*Client) QuerySession

func (c *Client) QuerySession(id uint64) (result *sessiontypes.Session, err error)

func (*Client) QuerySubscription

func (c *Client) QuerySubscription(id uint64) (result subscriptiontypes.Subscription, err error)

func (*Client) SimulateAndExecute

func (c *Client) SimulateAndExecute() bool

func (*Client) Tx added in v0.1.7

func (c *Client) Tx(messages ...sdk.Msg) (res *sdk.TxResponse, err error)

func (*Client) TxConfig

func (c *Client) TxConfig() client.TxConfig

func (*Client) WithAccountRetriever

func (c *Client) WithAccountRetriever(v client.AccountRetriever) *Client

func (*Client) WithChainID

func (c *Client) WithChainID(v string) *Client

func (*Client) WithContext added in v0.6.0

func (c *Client) WithContext(v client.Context) *Client

func (*Client) WithFeeGranterAddress added in v0.6.0

func (c *Client) WithFeeGranterAddress(v sdk.AccAddress) *Client

func (*Client) WithFromAddress

func (c *Client) WithFromAddress(v sdk.AccAddress) *Client

func (*Client) WithFromName

func (c *Client) WithFromName(v string) *Client

func (*Client) WithGas

func (c *Client) WithGas(v uint64) *Client

func (*Client) WithGasAdjustment

func (c *Client) WithGasAdjustment(v float64) *Client

func (*Client) WithGasPrices

func (c *Client) WithGasPrices(v string) *Client

func (*Client) WithKeyring

func (c *Client) WithKeyring(v keyring.Keyring) *Client

func (*Client) WithLogger

func (c *Client) WithLogger(v tmlog.Logger) *Client

func (*Client) WithQueryTimeout added in v0.6.0

func (c *Client) WithQueryTimeout(v uint) *Client

func (*Client) WithRemotes added in v0.6.0

func (c *Client) WithRemotes(v []string) *Client

func (*Client) WithSignModeStr added in v0.6.0

func (c *Client) WithSignModeStr(v string) *Client

func (*Client) WithSimulateAndExecute

func (c *Client) WithSimulateAndExecute(v bool) *Client

func (*Client) WithTxConfig

func (c *Client) WithTxConfig(v client.TxConfig) *Client

func (*Client) WithTxTimeout added in v0.6.0

func (c *Client) WithTxTimeout(v uint) *Client

type EncodingConfig added in v0.6.0

type EncodingConfig struct {
	Amino             *codec.LegacyAmino
	Codec             codec.Codec
	InterfaceRegistry codectypes.InterfaceRegistry
	TxConfig          client.TxConfig
}

func DefaultEncodingConfig added in v0.7.0

func DefaultEncodingConfig() EncodingConfig

func NewEncodingConfig added in v0.7.0

func NewEncodingConfig() EncodingConfig

Jump to

Keyboard shortcuts

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