package
0.0.0-20240904134818-08f901de4bfb
Repository: https://github.com/dharitrione/drt-chain-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
CreateHostAndInstanceBuilder creates a new host and instance builder.
DeployAndExecuteERC20WithBigInt will stress test the erc20 contract.
GetAddressForNewAccount -.
GetAddressForNewAccountOnWalletAndNode -.
GetAddressForNewAccountOnWalletAndNodeWithVM -.
GetAddressForNewAccountWithVM -.
InitializeMockContracts -.
InitializeMockContractsWithVMContainer -.
InitializeMockContractsWithVMContainerAndVMTypes -.
MakeHeaderHandlerStub prepares a HeaderHandlerStub with the provided epoch.
MakeTestWalletAddress generates a new wallet address to be used for testing based on the given identifier.
RegisterAsyncCallForMockContract is resued also in some tests before async context serialization.
RunERC20TransactionSet performs a predetermined set of ERC20 token transfers.
RunERC20TransactionsWithBenchmarksInVMTestContext executes a configurable set of ERC20 token transfers.
RunTest runs a test with the provided parameters.
SetCodeMetadata -.
SetupERC20Test prepares an ERC20 contract and the accounts to transfer tokens between.
ValidateERC20TransactionsInVMTestContext verifies whether the ERC20 transfers were executed correctly.
# Variables
DcdtTokenIdentifier is the token identifier in tests.
InitialDcdt is the initial amount minted for dcdt.
MockInitialBalance represents a mock balance.
WalletAddressPrefix is the prefix of any smart contract address used for testing.
# Structs
ResultInfo will hold the result information after running the tests.