cmd

package
v0.0.0-...-539a74e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePoolsCmd

func CreatePoolsCmd() *cobra.Command

CreatePoolsCmd creates liquidity pools of every pair of coins exist in the network. This command is useful for stress testing to bootstrap test pools as soon as new network is spun up.

func DepositCmd

func DepositCmd() *cobra.Command

func DstChainsend

func DstChainsend(ctx context.Context, cmd *cobra.Command, MainChainClient *client.Client, accountindex int, dstchaininfo config.IBCchain, mainchainibcinfo []grpc.OpenChannel, mainchain config.IBCchain, cfg *config.Config, args []string) error

func IBCBalances

func IBCBalances() *cobra.Command

func IBCMuiltTransferCmd

func IBCMuiltTransferCmd() *cobra.Command

func IBCtraceCmd

func IBCtraceCmd() *cobra.Command

func IBCtransferCmd

func IBCtransferCmd() *cobra.Command

func RootCmd

func RootCmd() *cobra.Command

RootCmd creates a new root command for tester. It is called once in the main function.

func SetLogger

func SetLogger(logLevel string) error

SetLogger sets the global override for log level and format.

func SrcChainsend

func SrcChainsend(ctx context.Context, cmd *cobra.Command, cfg *config.Config, dstchains []string, chainname string, args []string) error

func StressTestCmd

func StressTestCmd() *cobra.Command

func SwapCmd

func SwapCmd() *cobra.Command

func WithdrawCmd

func WithdrawCmd() *cobra.Command

Types

type AccountDispenser

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

func NewAccountDispenser

func NewAccountDispenser(c *client.Client, mnemonics []string) *AccountDispenser

func (*AccountDispenser) AccNum

func (d *AccountDispenser) AccNum() uint64

func (*AccountDispenser) AccSeq

func (d *AccountDispenser) AccSeq() uint64

func (*AccountDispenser) Addr

func (d *AccountDispenser) Addr() string

func (*AccountDispenser) DecAccSeq

func (d *AccountDispenser) DecAccSeq()

func (*AccountDispenser) IncAccSeq

func (d *AccountDispenser) IncAccSeq() uint64

func (*AccountDispenser) Next

func (d *AccountDispenser) Next() error

func (*AccountDispenser) PrivKey

func (d *AccountDispenser) PrivKey() *secp256k1.PrivKey

type Scenario

type Scenario struct {
	Rounds         int
	NumTxsPerBlock int
}

Jump to

Keyboard shortcuts

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