hardhat

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: GPL-3.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDirectories

func FindDirectories() []string

Types

type DeploymentProvider

type DeploymentProvider struct {
	NetworkIdMap map[string]int
}

func NewDeploymentProvider

func NewDeploymentProvider() *DeploymentProvider

func (*DeploymentProvider) CheckIfProviderStructure

func (dp *DeploymentProvider) CheckIfProviderStructure(directory string) bool

func (*DeploymentProvider) GetConfig

func (dp *DeploymentProvider) GetConfig(configName string, projectDir string) (*providers.Config, error)

func (*DeploymentProvider) GetContracts

func (dp *DeploymentProvider) GetContracts(
	buildDir string,
	networkIDs []string,
	objects ...*model.StateObject,
) ([]providers.Contract, int, error)

func (*DeploymentProvider) GetProviderName

func (*DeploymentProvider) MustGetConfig

func (dp *DeploymentProvider) MustGetConfig() (*providers.Config, error)

func (*DeploymentProvider) NewContractSource

func (dp *DeploymentProvider) NewContractSource(path string, networkId string, client ethereum.Client) (stacktrace.ContractSource, error)

NewContractSource builds the Contract Source from the provided config, and scoped to the provided network.

type HardhatConfig

type HardhatConfig struct {
	ProjectDirectory string                             `json:"project_directory"`
	BuildDirectory   string                             `json:"contracts_build_directory"`
	Networks         map[string]providers.NetworkConfig `json:"networks"`
	Solidity         HardhatSolidity                    `json:"solidity"`
	ConfigType       string                             `json:"-"`
}

type HardhatContract

type HardhatContract struct {
	*providers.Contract
	Address  string         `json:"address"`
	Receipt  hardhatReceipt `json:"receipt"`
	Metadata string         `json:"metadata"`
}

type HardhatSolidity

type HardhatSolidity struct {
	Compilers []providers.Compiler `json:"compilers"`
}

Jump to

Keyboard shortcuts

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