Documentation
¶
Overview ¶
Package testingtools provides common utilities and constants for Ethereum contract interactions.
Package testingtools provides common utilities and constants for Ethereum contract interactions.
Index ¶
- func DeployEmptyContract(auth *bind.TransactOpts, backend *simulated.Backend) (*common.Address, error)
- func FloatTo18z(amount float64) *big.Int
- func SetupBlockchain(t *testing.T, contractABI string, byteCode string, params ...interface{}) (*simulated.Backend, *bind.TransactOpts, *common.Address, *ecdsa.PrivateKey, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployEmptyContract ¶
func DeployEmptyContract(auth *bind.TransactOpts, backend *simulated.Backend) (*common.Address, error)
DeployEmptyContract deploys an empty contract for testing purposes
func FloatTo18z ¶
FloatTo18z converts a float64 to an 18-decimal big.Int representation
func SetupBlockchain ¶
func SetupBlockchain( t *testing.T, contractABI string, byteCode string, params ...interface{}, ) ( *simulated.Backend, *bind.TransactOpts, *common.Address, *ecdsa.PrivateKey, error, )
SetupBlockchain sets up a test blockchain environment with a deployed contract
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.