Documentation ¶
Index ¶
- func DeployAndExecuteERC20WithBigInt(numRun int, numTransferInBatch int, gasSchedule map[string]map[string]uint64, ...) ([]time.Duration, error)
- func MakeHeaderHandlerStub(epoch uint32) data.HeaderHandler
- func RunERC20TransactionSet(testContext *vm.VMTestContext) error
- func RunERC20TransactionsWithBenchmarksInVMTestContext(testContext *vm.VMTestContext, numRun int, numTransferInBatch int, ...) ([]time.Duration, error)
- func SetupERC20Test(testContext *vm.VMTestContext, contractCodeFile string) error
- func ValidateERC20TransactionsInVMTestContext(testContext *vm.VMTestContext, numRun int, numTransferInBatch int, ...) error
- type ResultInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployAndExecuteERC20WithBigInt ¶
func DeployAndExecuteERC20WithBigInt( numRun int, numTransferInBatch int, gasSchedule map[string]map[string]uint64, fileName string, functionName string, ) ([]time.Duration, error)
DeployAndExecuteERC20WithBigInt will stress test the erc20 contract
func MakeHeaderHandlerStub ¶
func MakeHeaderHandlerStub(epoch uint32) data.HeaderHandler
MakeHeaderHandlerStub prepares a HeaderHandlerStub with the provided epoch
func RunERC20TransactionSet ¶
func RunERC20TransactionSet(testContext *vm.VMTestContext) error
RunERC20TransactionSet performs a predetermined set of ERC20 token transfers
func RunERC20TransactionsWithBenchmarksInVMTestContext ¶
func RunERC20TransactionsWithBenchmarksInVMTestContext( testContext *vm.VMTestContext, numRun int, numTransferInBatch int, functionName string, transferOnCalls *big.Int, ) ([]time.Duration, error)
RunERC20TransactionsWithBenchmarksInVMTestContext executes a configurable set of ERC20 token transfers
func SetupERC20Test ¶
func SetupERC20Test( testContext *vm.VMTestContext, contractCodeFile string, ) error
SetupERC20Test prepares an ERC20 contract and the accounts to transfer tokens between
func ValidateERC20TransactionsInVMTestContext ¶
func ValidateERC20TransactionsInVMTestContext( testContext *vm.VMTestContext, numRun int, numTransferInBatch int, transferOnCalls *big.Int, ) error
ValidateERC20TransactionsInVMTestContext verifies whether the ERC20 transfers were executed correctly
Types ¶
type ResultInfo ¶
ResultInfo will hold the result information after running the tests
Click to show internal directories.
Click to hide internal directories.