Documentation ¶
Index ¶
- func CreateConsecutiveTransactions(utxo *avax.UTXO, numTxs, amount, txFee uint64, ...) ([][]byte, []ids.ID, error)
- func CreateSingleUTXOTx(utxo *avax.UTXO, inputAmount, outputAmount uint64, address ids.ShortID, ...) (*avm.Tx, error)
- func NewBombardExecutor(clients []*apis.Client, numTxs, txFee uint64, acceptanceTimeout time.Duration) tester.CaminoTester
- type StakingNetworkBombardTest
- func (test StakingNetworkBombardTest) GetExecutionTimeout() time.Duration
- func (test StakingNetworkBombardTest) GetNetworkLoader() (networks.NetworkLoader, error)
- func (test StakingNetworkBombardTest) GetSetupBuffer() time.Duration
- func (test StakingNetworkBombardTest) Run(network networks.Network, context testsuite.TestContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConsecutiveTransactions ¶
func CreateConsecutiveTransactions(utxo *avax.UTXO, numTxs, amount, txFee uint64, privateKey *crypto.PrivateKeySECP256K1R) ([][]byte, []ids.ID, error)
CreateConsecutiveTransactions returns a string of [numTxs] sending [utxo] back and forth assumes that [privateKey] is the sole owner of [utxo]
func CreateSingleUTXOTx ¶
func CreateSingleUTXOTx(utxo *avax.UTXO, inputAmount, outputAmount uint64, address ids.ShortID, privateKey *crypto.PrivateKeySECP256K1R, codecManager codec.Manager) (*avm.Tx, error)
CreateSingleUTXOTx returns a transaction spending an individual utxo owned by [privateKey]
func NewBombardExecutor ¶
func NewBombardExecutor(clients []*apis.Client, numTxs, txFee uint64, acceptanceTimeout time.Duration) tester.CaminoTester
NewBombardExecutor returns a new bombard test bombardExecutor
Types ¶
type StakingNetworkBombardTest ¶
type StakingNetworkBombardTest struct { ImageName string NumTxs uint64 TxFee uint64 AcceptanceTimeout time.Duration }
StakingNetworkBombardTest funds individual clients with a starting UTXO for each and then creates a string of transactions to send to each one based off of the original UTXO. Then it adds two nodes to ensure that they can bootstrap the new data on the X chain.
func (StakingNetworkBombardTest) GetExecutionTimeout ¶
func (test StakingNetworkBombardTest) GetExecutionTimeout() time.Duration
GetExecutionTimeout implements the Kurtosis Test interface
func (StakingNetworkBombardTest) GetNetworkLoader ¶
func (test StakingNetworkBombardTest) GetNetworkLoader() (networks.NetworkLoader, error)
GetNetworkLoader implements the Kurtosis Test interface
func (StakingNetworkBombardTest) GetSetupBuffer ¶
func (test StakingNetworkBombardTest) GetSetupBuffer() time.Duration
GetSetupBuffer implements the Kurtosis Test interface
func (StakingNetworkBombardTest) Run ¶
func (test StakingNetworkBombardTest) Run(network networks.Network, context testsuite.TestContext)
Run implements the Kurtosis Test interface