Documentation ¶
Overview ¶
Package contractutils contains utilities related to smart contracts and testing smart contracts
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupSimulatedClient ¶
func SetupSimulatedClient(gasLimit uint64) (*backends.SimulatedBackend, *bind.TransactOpts)
SetupSimulatedClient returns an an instance of the simulated backend.
Types ¶
type AllTestContracts ¶
type AllTestContracts struct { TokenAddr common.Address TokenContract *contract.CVLTokenContract PlcrAddr common.Address PlcrContract *contract.CivilPLCRVotingContract ParamAddr common.Address ParamContract *contract.ParameterizerContract GovtAddr common.Address GovtContract *contract.GovernmentContract CivilTcrAddr common.Address CivilTcrContract *contract.CivilTCRContract NewsroomAddr common.Address NewsroomContract *contract.NewsroomContract TokenTeleAddr common.Address TokenTeleContract *contract.DummyTokenTelemetryContract Client *backends.SimulatedBackend Auth *bind.TransactOpts }
AllTestContracts contains the values returned from SetupAllTestContracts
func SetupAllTestContracts ¶
func SetupAllTestContracts() (*AllTestContracts, error)
SetupAllTestContracts returns a struct with all the test contracts deployed to the simulated backend.
Click to show internal directories.
Click to hide internal directories.