Documentation ¶
Index ¶
- func EncodingConfig() hubparams.EncodingConfig
- type Client
- func (c *Client) BroadcastTx(txBytes []byte) (res *sdk.TxResponse, err error)
- func (c *Client) CalculateGas(txf tx.Factory, messages ...sdk.Msg) (gas uint64, err error)
- func (c *Client) FromAddress() sdk.AccAddress
- func (c *Client) FromName() string
- func (c *Client) HasNodeForPlan(id uint64, nodeAddr hubtypes.NodeAddress) (result bool, err error)
- func (c *Client) PrepareTxFactory(messages ...sdk.Msg) (txf tx.Factory, err error)
- func (c *Client) QueryAccount(accAddr sdk.AccAddress) (result authtypes.AccountI, err error)
- func (c *Client) QueryNode(nodeAddr hubtypes.NodeAddress) (result *nodetypes.Node, err error)
- func (c *Client) QueryQuota(id uint64, accAddr sdk.AccAddress) (result *subscriptiontypes.Quota, err error)
- func (c *Client) QuerySession(id uint64) (result *sessiontypes.Session, err error)
- func (c *Client) QuerySubscription(id uint64) (result *subscriptiontypes.Subscription, err error)
- func (c *Client) SimulateAndExecute() bool
- func (c *Client) Tx(messages ...sdk.Msg) (res *sdk.TxResponse, err error)
- func (c *Client) TxConfig() client.TxConfig
- func (c *Client) WithAccountRetriever(v client.AccountRetriever) *Client
- func (c *Client) WithChainID(v string) *Client
- func (c *Client) WithContext(v client.Context) *Client
- func (c *Client) WithFeeGranterAddress(v sdk.AccAddress) *Client
- func (c *Client) WithFromAddress(v sdk.AccAddress) *Client
- func (c *Client) WithFromName(v string) *Client
- func (c *Client) WithGas(v uint64) *Client
- func (c *Client) WithGasAdjustment(v float64) *Client
- func (c *Client) WithGasPrices(v string) *Client
- func (c *Client) WithKeyring(v keyring.Keyring) *Client
- func (c *Client) WithLogger(v tmlog.Logger) *Client
- func (c *Client) WithQueryTimeout(v uint) *Client
- func (c *Client) WithRemotes(v []string) *Client
- func (c *Client) WithSignModeStr(v string) *Client
- func (c *Client) WithSimulateAndExecute(v bool) *Client
- func (c *Client) WithTxConfig(v client.TxConfig) *Client
- func (c *Client) WithTxTimeout(v uint) *Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodingConfig ¶ added in v0.6.0
func EncodingConfig() hubparams.EncodingConfig
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
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 (*Client) FromAddress ¶
func (c *Client) FromAddress() sdk.AccAddress
func (*Client) HasNodeForPlan ¶
func (*Client) PrepareTxFactory ¶ added in v0.6.0
func (*Client) QueryAccount ¶
func (*Client) QueryQuota ¶
func (c *Client) QueryQuota(id uint64, accAddr sdk.AccAddress) (result *subscriptiontypes.Quota, 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 (*Client) WithAccountRetriever ¶
func (c *Client) WithAccountRetriever(v client.AccountRetriever) *Client
func (*Client) WithChainID ¶
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 (*Client) WithGasAdjustment ¶
func (*Client) WithGasPrices ¶
func (*Client) WithQueryTimeout ¶ added in v0.6.0
func (*Client) WithRemotes ¶ added in v0.6.0
func (*Client) WithSignModeStr ¶ added in v0.6.0
func (*Client) WithSimulateAndExecute ¶
func (*Client) WithTxTimeout ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.