hardhat

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.4.2

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

type DeploymentProvider

type DeploymentProvider struct {
	NetworkIdMap map[string]int
}

func NewDeploymentProvider

func NewDeploymentProvider() *DeploymentProvider

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) GetDirectoryStructure added in v1.5.0

func (dp *DeploymentProvider) GetDirectoryStructure() []string

func (*DeploymentProvider) GetProviderName

func (*DeploymentProvider) MustGetConfig

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

type HardhatContract

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

type Solidity added in v1.4.2

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

type Wrapper added in v1.4.2

type Wrapper struct {
	ResolvedConfig Config `json:"resolvedConfig"`
}

Jump to

Keyboard shortcuts

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