contractutils

package
v0.0.0-...-2646333 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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