transfer

package
v0.0.0-...-27df293 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConflictTransfer

type ConflictTransfer struct {
	CaseName string
	// contains filtered or unexported fields
}

func NewConflictTest

func NewConflictTest(name string, count int, initial uint64, steps int) *ConflictTransfer

func (*ConflictTransfer) Name

func (c *ConflictTransfer) Name() string

func (*ConflictTransfer) Run

type EthManager

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

func (*EthManager) AddTestCase

func (m *EthManager) AddTestCase(tc ...TestCase)

func (*EthManager) Configure

func (m *EthManager) Configure(cfg *conf.EthCaseConf, evmCfg *evm.GethConfig)

func (*EthManager) GetWalletManager

func (m *EthManager) GetWalletManager() *pkg.WalletManager

func (*EthManager) PreCreateWallets

func (m *EthManager) PreCreateWallets(walletCount int, initCount uint64) ([]*pkg.EthWallet, error)

func (*EthManager) Run

func (m *EthManager) Run(ctx context.Context) error

type RandomBenchmarkTest

type RandomBenchmarkTest struct {
	CaseName string
	// contains filtered or unexported fields
}

func NewRandomBenchmarkTest

func NewRandomBenchmarkTest(name string, initial uint64, wallets []*pkg.EthWallet, rm *rate.Limiter) *RandomBenchmarkTest

func (*RandomBenchmarkTest) Name

func (tc *RandomBenchmarkTest) Name() string

func (*RandomBenchmarkTest) Run

type RandomTransferTestCase

type RandomTransferTestCase struct {
	CaseName string
	// contains filtered or unexported fields
}

func NewRandomTest

func NewRandomTest(name string, count int, initial uint64, steps int) *RandomTransferTestCase

func (*RandomTransferTestCase) Name

func (tc *RandomTransferTestCase) Name() string

func (*RandomTransferTestCase) Run

type StateRootAssertTestCase

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

func NewStateRootAssertTestCase

func NewStateRootAssertTestCase(content []byte, initial uint64) *StateRootAssertTestCase

func (*StateRootAssertTestCase) Name

func (s *StateRootAssertTestCase) Name() string

func (*StateRootAssertTestCase) Run

type StateRootTestCase

type StateRootTestCase struct {
	*RandomTransferTestCase
}

func NewStateRootTestCase

func NewStateRootTestCase(name string, count int, initial uint64, steps int) *StateRootTestCase

func (*StateRootTestCase) Name

func (st *StateRootTestCase) Name() string

func (*StateRootTestCase) Run

type StateRootTestResult

type StateRootTestResult struct {
	Wallets      []*pkg.CaseEthWallet `json:"wallets"`
	TransferCase *pkg.TransferCase    `json:"transferCase"`
	StateRoot    yucommon.Hash        `json:"stateRoot"`
}

type TestCase

type TestCase interface {
	Run(ctx context.Context, m *pkg.WalletManager) error
	Name() string
}

Jump to

Keyboard shortcuts

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