broadcaster

package
v0.30.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BroadcastBlockRetryTimeout = 300 * time.Second
)

Variables

View Source
var (
	// ErrBroadcastTx is used when a broadcast fails due to tendermint errors
	ErrBroadcastTx = errors.New("broadcast tx error")
)

Functions

func AdjustGas added in v0.24.0

func AdjustGas(ctx sdkclient.Context, txf tx.Factory, msgs ...sdk.Msg) (tx.Factory, error)

func BroadcastTX added in v0.24.0

func BroadcastTX(ctx context.Context, cctx sdkclient.Context, flags *pflag.FlagSet, msgs ...sdk.Msg) error

func PrepareFactory added in v0.24.0

func PrepareFactory(clientCtx sdkclient.Context, txf tx.Factory) (tx.Factory, error)

PrepareFactory has been copied from cosmos-sdk to make it public. Source: https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-rc2/client/tx/tx.go#L311

Types

type Client

type Client interface {
	Broadcast(ctx context.Context, msgs ...sdk.Msg) error
}

func NewClient

func NewClient(cctx sdkclient.Context, txf tx.Factory, info keyring.Info) Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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