@nomiclabs/buidler

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals


Type aliases

ActionType

Ƭ ActionType: function

Defined in types.ts:263

Type declaration

▸(taskArgs: ArgsT, env: BuidlerRuntimeEnvironment, runSuper: RunSuperFunction<ArgsT>): Promise<any>

Parameters:

Name Type
taskArgs ArgsT
env BuidlerRuntimeEnvironment
runSuper RunSuperFunction<ArgsT>

Returns: Promise<any>


BuidlerParamDefinitions

Ƭ BuidlerParamDefinitions: object

Defined in types.ts:232

Type declaration


ConfigExtender

Ƭ ConfigExtender: function

Defined in types.ts:131

Type declaration

▸(config: ResolvedBuidlerConfig, userConfig: DeepReadonly<BuidlerConfig>): void

Parameters:

Name Type
config ResolvedBuidlerConfig
userConfig DeepReadonly<BuidlerConfig>

Returns: void


EnvironmentExtender

Ƭ EnvironmentExtender: function

Defined in types.ts:129

A function that receives a BuidlerRuntimeEnvironment and modify its properties or add new ones.

Type declaration

▸(env: BuidlerRuntimeEnvironment): void

Parameters:

Name Type
env BuidlerRuntimeEnvironment

Returns: void


GlobalWithBuidlerContext

Ƭ GlobalWithBuidlerContext: Global & object

Defined in internal/internalTypes.ts:13


IEthereumProvider

Ƭ IEthereumProvider: EthereumProvider

Defined in types.ts:274


JsonRpcResponse

Ƭ JsonRpcResponse: SuccessfulJsonRpcResponse | FailedJsonRpcResponse

Defined in internal/core/providers/http.ts:34


NetworkConfig

Ƭ NetworkConfig: BuidlerNetworkConfig | HttpNetworkConfig

Defined in types.ts:54


NetworkConfigAccounts

Ƭ NetworkConfigAccounts: "remote" | string[] | HDAccountsConfig | OtherAccountsConfig

Defined in types.ts:42


RunTaskFunction

Ƭ RunTaskFunction: function

Defined in types.ts:253

Type declaration

▸(name: string, taskArguments?: TaskArguments): Promise<any>

Parameters:

Name Type
name string
Optional taskArguments TaskArguments

Returns: Promise<any>


TaskArguments

Ƭ TaskArguments: any

Defined in types.ts:251


Variables

<Const> ERROR_PREFIX

● ERROR_PREFIX: "BDLR" = "BDLR"

Defined in internal/core/errors-list.ts:1


<Const> types

● types: "/opt/build/repo/packages/buidler-core/src/internal/core/params/argumentTypes" = argumentTypes

Defined in internal/core/config/config-env.ts:72


Functions

applyErrorMessageTemplate

applyErrorMessageTemplate(template: string, values: object): string

Defined in internal/core/errors.ts:119

This function applies error messages templates like this:

  • Template is a string which contains a variable tags. A variable tag is a a variable name surrounded by %. Eg: %plugin1%
  • A variable name is a string of alphanumeric ascii characters.
  • Every variable tag is replaced by its value.
  • %% is replaced by %.
  • Values can't contain variable tags.
  • If a variable is not present in the template, but present in the values object, an error is thrown.

Parameters:

Name Type Description
template string The template string.
values object A map of variable names to their values.

Returns: string


createChainIdGetter

createChainIdGetter(provider: IEthereumProvider): getRealChainId

Defined in internal/core/providers/provider-utils.ts:29

Parameters:

Name Type
provider IEthereumProvider

Returns: getRealChainId


createChainIdValidationProvider

createChainIdValidationProvider(provider: IEthereumProvider, chainId?: undefined | number): EthereumProvider

Defined in internal/core/providers/chainId.ts:8

Parameters:

Name Type
provider IEthereumProvider
Optional chainId undefined | number

Returns: EthereumProvider


deriveKeyFromMnemonicAndPath

deriveKeyFromMnemonicAndPath(mnemonic: string, hdPath: string): Buffer | undefined

Defined in internal/util/keys-derivation.ts:4

Parameters:

Name Type
mnemonic string
hdPath string

Returns: Buffer | undefined


ensurePluginLoadedWithUsePlugin

ensurePluginLoadedWithUsePlugin(): void

Defined in internal/core/plugins.ts:148

Returns: void


extendConfig

extendConfig(extender: ConfigExtender): void

Defined in internal/core/config/config-env.ts:87

Parameters:

Name Type
extender ConfigExtender

Returns: void


extendEnvironment

extendEnvironment(extender: EnvironmentExtender): void

Defined in internal/core/config/config-env.ts:81

Register an environment extender what will be run after the Buidler Runtime Environment is initialized.

Parameters:

Name Type Description
extender EnvironmentExtender A function that receives the Buidler Runtime Environment.

Returns: void


getArtifactFromContractOutput

getArtifactFromContractOutput(contractName: string, contractOutput: any): Artifact

Defined in internal/artifacts.ts:15

Retrieves an artifact for the given contractName from the compilation output.

Parameters:

Name Type Description
contractName string the contract's name.
contractOutput any the contract's compilation output as emitted by `solc`.

Returns: Artifact


getErrorCode

getErrorCode(error: ErrorDescriptor): string

Defined in internal/core/errors-list.ts:12

Parameters:

Name Type
error ErrorDescriptor

Returns: string


getExecutionMode

getExecutionMode(): ExecutionMode

Defined in internal/core/execution-mode.ts:22

Returns: ExecutionMode


getInputFromDependencyGraph

getInputFromDependencyGraph(graph: DependencyGraph, optimizerConfig: SolcOptimizerConfig, evmVersion?: undefined | string): SolcInput

Defined in internal/solidity/compiler/compiler-input.ts:4

Parameters:

Name Type
graph DependencyGraph
optimizerConfig SolcOptimizerConfig
Optional evmVersion undefined | string

Returns: SolcInput


internalTask

internalTask<ArgsT>(name: string, description?: undefined | string, action?: ActionType<ArgsT>): ConfigurableTaskDefinition

internalTask<ArgsT>(name: string, action: ActionType<ArgsT>): ConfigurableTaskDefinition

Defined in internal/core/config/config-env.ts:42

Type parameters:

ArgsT : TaskArguments

Parameters:

Name Type
name string
Optional description undefined | string
Optional action ActionType<ArgsT>

Returns: ConfigurableTaskDefinition

Defined in internal/core/config/config-env.ts:48

Type parameters:

ArgsT : TaskArguments

Parameters:

Name Type
name string
action ActionType<ArgsT>

Returns: ConfigurableTaskDefinition


isTypescriptSupported

isTypescriptSupported(): boolean

Defined in internal/core/typescript-support.ts:18

Returns: boolean


isValidJsonResponse

isValidJsonResponse(payload: any): boolean

Defined in internal/core/providers/http.ts:128

Parameters:

Name Type
payload any

Returns: boolean


loadPluginFile

loadPluginFile(absolutePluginFilePath: string): void

Defined in internal/core/plugins.ts:122

Parameters:

Name Type
absolutePluginFilePath string

Returns: void


loadTsNodeIfPresent

loadTsNodeIfPresent(): void

Defined in internal/core/typescript-support.ts:45

Returns: void


numberToRpcQuantity

numberToRpcQuantity(n: number): string

Defined in internal/core/providers/provider-utils.ts:24

Parameters:

Name Type
n number

Returns: string


pluralize

pluralize(n: number, singular: string, plural?: undefined | string): string

Defined in internal/util/strings.ts:10

Returns the plural form of a word.

Parameters:

Name Type Description
n number The number of things to represent. This dictates whether to return the singular or plural form of the word.
singular string The singular form of the word.
Optional plural undefined | string An optional plural form of the word. If non is given, the plural form is constructed by appending an "s" to the singular form.

Returns: string


readArtifact

readArtifact(artifactsPath: string, contractName: string): Promise<Artifact>

Defined in internal/artifacts.ts:82

Asynchronically reads an artifact with the given contractName from the given artifactPath.

Parameters:

Name Type Description
artifactsPath string the artifacts' directory.
contractName string the contract's name.

Returns: Promise<Artifact>


readArtifactSync

readArtifactSync(artifactsPath: string, contractName: string): Artifact

Defined in internal/artifacts.ts:101

Synchronically reads an artifact with the given contractName from the given artifactPath.

Parameters:

Name Type Description
artifactsPath string the artifacts directory.
contractName string the contract's name.

Returns: Artifact


readPackageJson

readPackageJson(packageName: string, from?: undefined | string): PackageJson | undefined

Defined in internal/core/plugins.ts:131

Parameters:

Name Type
packageName string
Optional from undefined | string

Returns: PackageJson | undefined


replaceAll

replaceAll(str: string, toReplace: string, replacement: string): string

Defined in internal/util/strings.ts:25

Replaces all the instances of [[toReplace]] by [[replacement]] in [[str]].

Parameters:

Name Type
str string
toReplace string
replacement string

Returns: string


resetBuidlerContext

resetBuidlerContext(): void

Defined in internal/reset.ts:11

Returns: void


rpcQuantityToNumber

rpcQuantityToNumber(quantity?: undefined | string): number

Defined in internal/core/providers/provider-utils.ts:5

Parameters:

Name Type
Optional quantity undefined | string

Returns: number


saveArtifact

saveArtifact(artifactsPath: string, artifact: Artifact): Promise<void>

Defined in internal/artifacts.ts:65

Stores an artifact in the given path.

Parameters:

Name Type Description
artifactsPath string the artifacts' directory.
artifact Artifact the artifact to be stored.

Returns: Promise<void>


task

task<ArgsT>(name: string, description?: undefined | string, action?: ActionType<ArgsT>): ConfigurableTaskDefinition

task<ArgsT>(name: string, action: ActionType<ArgsT>): ConfigurableTaskDefinition

Defined in internal/core/config/config-env.ts:12

Type parameters:

ArgsT : TaskArguments

Parameters:

Name Type
name string
Optional description undefined | string
Optional action ActionType<ArgsT>

Returns: ConfigurableTaskDefinition

Defined in internal/core/config/config-env.ts:18

Type parameters:

ArgsT : TaskArguments

Parameters:

Name Type
name string
action ActionType<ArgsT>

Returns: ConfigurableTaskDefinition


usePlugin

usePlugin(buidlerContext: BuidlerContext, pluginName: string, from?: undefined | string): void

Defined in internal/core/plugins.ts:28

Validates a plugin dependencies and loads it.

Parameters:

Name Type Description
buidlerContext BuidlerContext The BuidlerContext
pluginName string The plugin name.
Optional from undefined | string Where to resolve plugins and dependencies from. Only for testing purposes.

Returns: void


Object literals

<Const> ERRORS

ERRORS: object

Defined in internal/core/errors-list.ts:37

ARGUMENTS

ARGUMENTS: object

Defined in internal/core/errors-list.ts:350

INVALID_ENV_VAR_VALUE

INVALID_ENV_VAR_VALUE: object

Defined in internal/core/errors-list.ts:351

description

● description: string = `You are setting one of Buidler arguments using an environment variable, but it has an incorrect value.

Please double check your environment variables.`

Defined in internal/core/errors-list.ts:355


message

● message: string = "Invalid environment variable %varName%'s value: %value%"

Defined in internal/core/errors-list.ts:353


number

● number: number = 300

Defined in internal/core/errors-list.ts:352


title

● title: string = "Invalid environment variable value"

Defined in internal/core/errors-list.ts:354



INVALID_INPUT_FILE

INVALID_INPUT_FILE: object

Defined in internal/core/errors-list.ts:367

description

● description: string = `One of your tasks expected a file as an argument, but you provided a non-existent or non-readable file.

Please double check your arguments.`

Defined in internal/core/errors-list.ts:372


message

● message: string = "Invalid argument %name%: File %value% doesn't exist or is not a readable file."

Defined in internal/core/errors-list.ts:369


number

● number: number = 302

Defined in internal/core/errors-list.ts:368


title

● title: string = "Invalid file argument"

Defined in internal/core/errors-list.ts:371



INVALID_JSON_ARGUMENT

INVALID_JSON_ARGUMENT: object

Defined in internal/core/errors-list.ts:444

description

● description: string = `You tried to run a task with an invalid JSON parameter.

Please double check how you invoked Buidler or run your task.`

Defined in internal/core/errors-list.ts:448


message

● message: string = "Error parsing JSON value for argument %param%: %error%"

Defined in internal/core/errors-list.ts:446


number

● number: number = 311

Defined in internal/core/errors-list.ts:445


title

● title: string = "Invalid JSON parameter"

Defined in internal/core/errors-list.ts:447



INVALID_VALUE_FOR_TYPE

INVALID_VALUE_FOR_TYPE: object

Defined in internal/core/errors-list.ts:359

description

● description: string = `One of your Buidler or task's arguments has an invalid type.

Please double check your arguments.`

Defined in internal/core/errors-list.ts:363


message

● message: string = "Invalid value %value% for argument %name% of type %type%"

Defined in internal/core/errors-list.ts:361


number

● number: number = 301

Defined in internal/core/errors-list.ts:360


title

● title: string = "Invalid argument type"

Defined in internal/core/errors-list.ts:362



MISSING_POSITIONAL_ARG

MISSING_POSITIONAL_ARG: object

Defined in internal/core/errors-list.ts:412

description

● description: string = `You tried to run a task, but one of its required arguments was missing.

Please double check how you invoked Buidler or run your task.`

Defined in internal/core/errors-list.ts:416


message

● message: string = "Missing positional argument %param%"

Defined in internal/core/errors-list.ts:414


number

● number: number = 307

Defined in internal/core/errors-list.ts:413


title

● title: string = "Missing task positional argument"

Defined in internal/core/errors-list.ts:415



MISSING_TASK_ARGUMENT

MISSING_TASK_ARGUMENT: object

Defined in internal/core/errors-list.ts:404

description

● description: string = `You tried to run a task, but one of its required arguments was missing.

Please double check how you invoked Buidler or run your task.`

Defined in internal/core/errors-list.ts:408


message

● message: string = "Missing task argument %param%"

Defined in internal/core/errors-list.ts:406


number

● number: number = 306

Defined in internal/core/errors-list.ts:405


title

● title: string = "Missing task argument"

Defined in internal/core/errors-list.ts:407



PARAM_NAME_INVALID_CASING

PARAM_NAME_INVALID_CASING: object

Defined in internal/core/errors-list.ts:436

description

● description: string = `You tried to run buidler with a parameter with invalid casing. They must be lowercase.

Please double check how you invoked Buidler.`

Defined in internal/core/errors-list.ts:440


message

● message: string = "Invalid param %param%. Command line params must be lowercase."

Defined in internal/core/errors-list.ts:438


number

● number: number = 310

Defined in internal/core/errors-list.ts:437


title

● title: string = "Invalid casing in command line parameter"

Defined in internal/core/errors-list.ts:439



REPEATED_PARAM

REPEATED_PARAM: object

Defined in internal/core/errors-list.ts:428

description

● description: string = `You tried to run a task with a repeated parameter.

Please double check how you invoked Buidler or run your task.`

Defined in internal/core/errors-list.ts:432


message

● message: string = "Repeated parameter %param%"

Defined in internal/core/errors-list.ts:430


number

● number: number = 309

Defined in internal/core/errors-list.ts:429


title

● title: string = "Repeated task parameter"

Defined in internal/core/errors-list.ts:431



UNRECOGNIZED_COMMAND_LINE_ARG

UNRECOGNIZED_COMMAND_LINE_ARG: object

Defined in internal/core/errors-list.ts:385

description

● description: string = `Buidler couldn't recognize one of your command line arguments.

This may be because you are writing it before the task name. It should come after it.

Please double check how you invoked Buidler.`

Defined in internal/core/errors-list.ts:390


message

● message: string = "Unrecognised command line argument %argument%. Note that task arguments must come after the task name."

Defined in internal/core/errors-list.ts:387


number

● number: number = 304

Defined in internal/core/errors-list.ts:386


title

● title: string = "Unrecognized command line argument"

Defined in internal/core/errors-list.ts:389



UNRECOGNIZED_PARAM_NAME

UNRECOGNIZED_PARAM_NAME: object

Defined in internal/core/errors-list.ts:396

description

● description: string = `Buidler couldn't recognize one of your tasks' parameters.

Please double check how you invoked Buidler or run your task.`

Defined in internal/core/errors-list.ts:400


message

● message: string = "Unrecognized param %param%"

Defined in internal/core/errors-list.ts:398


number

● number: number = 305

Defined in internal/core/errors-list.ts:397


title

● title: string = "Unrecognized param"

Defined in internal/core/errors-list.ts:399



UNRECOGNIZED_POSITIONAL_ARG

UNRECOGNIZED_POSITIONAL_ARG: object

Defined in internal/core/errors-list.ts:420

description

● description: string = `You tried to run a task with more positional arguments than needed.

Please double check how you invoked Buidler or run your task.`

Defined in internal/core/errors-list.ts:424


message

● message: string = "Unrecognized positional argument %argument%"

Defined in internal/core/errors-list.ts:422


number

● number: number = 308

Defined in internal/core/errors-list.ts:421


title

● title: string = "Unrecognized task positional argument"

Defined in internal/core/errors-list.ts:423



UNRECOGNIZED_TASK

UNRECOGNIZED_TASK: object

Defined in internal/core/errors-list.ts:377

description

● description: string = `Tried to run a non-existent task.

Please double check the name of the task you are trying to run.`

Defined in internal/core/errors-list.ts:381


message

● message: string = "Unrecognized task %task%"

Defined in internal/core/errors-list.ts:379


number

● number: number = 303

Defined in internal/core/errors-list.ts:378


title

● title: string = "Unrecognized task"

Defined in internal/core/errors-list.ts:380




ARTIFACTS

ARTIFACTS: object

Defined in internal/core/errors-list.ts:591

NOT_FOUND

NOT_FOUND: object

Defined in internal/core/errors-list.ts:592

description

● description: string = `Tried to import a non-existing artifact.

Please double check that your contracts have been compiled and your artifact's name.`

Defined in internal/core/errors-list.ts:596


message

● message: string = "Artifact for contract "%contractName%" not found."

Defined in internal/core/errors-list.ts:594


number

● number: number = 700

Defined in internal/core/errors-list.ts:593


title

● title: string = "Artifact not found"

Defined in internal/core/errors-list.ts:595




BUILTIN_TASKS

BUILTIN_TASKS: object

Defined in internal/core/errors-list.ts:557

COMPILE_FAILURE

COMPILE_FAILURE: object

Defined in internal/core/errors-list.ts:558

description

● description: string = `Your smart contracts failed to compile.

Please check Buidler's output for more details.`

Defined in internal/core/errors-list.ts:562


message

● message: string = "Compilation failed"

Defined in internal/core/errors-list.ts:560


number

● number: number = 600

Defined in internal/core/errors-list.ts:559


title

● title: string = "Compilation failed"

Defined in internal/core/errors-list.ts:561



FLATTEN_CYCLE

FLATTEN_CYCLE: object

Defined in internal/core/errors-list.ts:582

description

● description: string = `Buidler flatten doesn't support cyclic dependencies.

We recommend not using this kind of dependencies.`

Defined in internal/core/errors-list.ts:586


message

● message: string = "Buidler flatten doesn't support cyclic dependencies."

Defined in internal/core/errors-list.ts:584


number

● number: number = 603

Defined in internal/core/errors-list.ts:583


title

● title: string = "Flatten detected cyclic dependencies"

Defined in internal/core/errors-list.ts:585



RUN_FILE_NOT_FOUND

RUN_FILE_NOT_FOUND: object

Defined in internal/core/errors-list.ts:566

description

● description: string = Tried to use \buidler run` to execut a non-existing script.

Please double check your script's path`

Defined in internal/core/errors-list.ts:570


message

● message: string = "Script %script% doesn't exist."

Defined in internal/core/errors-list.ts:568


number

● number: number = 601

Defined in internal/core/errors-list.ts:567


title

● title: string = "Script doesn't exist"

Defined in internal/core/errors-list.ts:569



RUN_SCRIPT_ERROR

RUN_SCRIPT_ERROR: object

Defined in internal/core/errors-list.ts:574

description

● description: string = `Running a script resulted in an error.

Please check Buidler's output for more details.`

Defined in internal/core/errors-list.ts:578


message

● message: string = "Error running script {%script%}: %error%"

Defined in internal/core/errors-list.ts:576


number

● number: number = 602

Defined in internal/core/errors-list.ts:575


title

● title: string = "Error running script"

Defined in internal/core/errors-list.ts:577




GENERAL

GENERAL: object

Defined in internal/core/errors-list.ts:42

CONTEXT_ALREADY_CREATED

CONTEXT_ALREADY_CREATED: object

Defined in internal/core/errors-list.ts:70

description

● description: string = `Buidler initialization was executed twice. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:74


message

● message: string = "BuidlerContext is already created."

Defined in internal/core/errors-list.ts:72


number

● number: number = 4

Defined in internal/core/errors-list.ts:71


title

● title: string = "Buidler was already initialized"

Defined in internal/core/errors-list.ts:73



CONTEXT_BRE_ALREADY_DEFINED

CONTEXT_BRE_ALREADY_DEFINED: object

Defined in internal/core/errors-list.ts:95

description

● description: string = `The Buidler initialization process was executed twice. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:100


message

● message: string = "Buidler Runtime Environment is already defined in the BuidlerContext"

Defined in internal/core/errors-list.ts:97


number

● number: number = 7

Defined in internal/core/errors-list.ts:96


title

● title: string = "Tried to create the Buidler Runtime Environment twice"

Defined in internal/core/errors-list.ts:99



CONTEXT_BRE_NOT_DEFINED

CONTEXT_BRE_NOT_DEFINED: object

Defined in internal/core/errors-list.ts:86

description

● description: string = `Buidler initialization failed. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:91


message

● message: string = "Buidler Runtime Environment is not defined in the BuidlerContext."

Defined in internal/core/errors-list.ts:88


number

● number: number = 6

Defined in internal/core/errors-list.ts:87


title

● title: string = "Buidler Runtime Environment not created"

Defined in internal/core/errors-list.ts:90



CONTEXT_NOT_CREATED

CONTEXT_NOT_CREATED: object

Defined in internal/core/errors-list.ts:78

description

● description: string = `Buidler initialization failed. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:82


message

● message: string = "BuidlerContext is not created."

Defined in internal/core/errors-list.ts:80


number

● number: number = 5

Defined in internal/core/errors-list.ts:79


title

● title: string = "Buidler wasn't initialized"

Defined in internal/core/errors-list.ts:81



INVALID_CONFIG

INVALID_CONFIG: object

Defined in internal/core/errors-list.ts:104

description

● description: string = `You have one or more errors in your config file.

Please consult the error message for details, or go to documentation to learn more.`

Defined in internal/core/errors-list.ts:112


message

● message: string = `There's one or more errors in your config file:

%errors%

To learn more about Buidler's configuration, please go to https://buidler.dev/documentation/#configuration`

Defined in internal/core/errors-list.ts:106


number

● number: number = 8

Defined in internal/core/errors-list.ts:105


title

● title: string = "Invalid Buidler config"

Defined in internal/core/errors-list.ts:111



INVALID_NODE_VERSION

INVALID_NODE_VERSION: object

Defined in internal/core/errors-list.ts:51

description

● description: string = `Buidler doesn't support your Node.js version.

Please upgrade your version of Node.js and try again.`

Defined in internal/core/errors-list.ts:56


message

● message: string = "Buidler doesn't support your Node.js version. It should be %requirement%."

Defined in internal/core/errors-list.ts:53


number

● number: number = 2

Defined in internal/core/errors-list.ts:52


title

● title: string = "Unsupported Node.js"

Defined in internal/core/errors-list.ts:55



LIB_IMPORTED_FROM_THE_CONFIG

LIB_IMPORTED_FROM_THE_CONFIG: object

Defined in internal/core/errors-list.ts:116

description

● description: string = `There was an error while loading your config file.

The most common source of errors is trying to import `@nomiclabs/buidler` instead of `@nomiclabs/buidler/config`.

Please make sure your config file is correct.`

Defined in internal/core/errors-list.ts:121


message

● message: string = Error while loading Buidler's configuration. You probably imported @nomiclabs/buidler instead of @nomiclabs/buidler/config

Defined in internal/core/errors-list.ts:118


number

● number: number = 9

Defined in internal/core/errors-list.ts:117


title

● title: string = "Failed to load config file"

Defined in internal/core/errors-list.ts:120



NOT_INSIDE_PROJECT

NOT_INSIDE_PROJECT: object

Defined in internal/core/errors-list.ts:43

description

● description: string = `You are trying to run Buidler outside of a Buidler project.

You can learn hoy to use Buidler by reading the Getting Started guide.`

Defined in internal/core/errors-list.ts:47


message

● message: string = "You are not inside a Buidler project."

Defined in internal/core/errors-list.ts:45


number

● number: number = 1

Defined in internal/core/errors-list.ts:44


title

● title: string = "You are not inside a Buidler project"

Defined in internal/core/errors-list.ts:46



UNSUPPORTED_OPERATION

UNSUPPORTED_OPERATION: object

Defined in internal/core/errors-list.ts:60

description

● description: string = `You are tying to perform an unsupported operation.

Unless you are creating a task or plugin, this is probably a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:64


message

● message: string = "%operation% is not supported in Buidler."

Defined in internal/core/errors-list.ts:62


number

● number: number = 3

Defined in internal/core/errors-list.ts:61


title

● title: string = "Unsupported operation"

Defined in internal/core/errors-list.ts:63



USER_CONFIG_MODIFIED

USER_CONFIG_MODIFIED: object

Defined in internal/core/errors-list.ts:127

description

● description: string = `An attempt to modify the user's config was made.

This is probably a bug in one of your plugins.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:132


message

● message: string = Error while loading Buidler's configuration. You or one of your plugins is trying to modify the userConfig.%path% value from a config extender

Defined in internal/core/errors-list.ts:129


number

● number: number = 10

Defined in internal/core/errors-list.ts:128


title

● title: string = "Attempted to modify the user's config"

Defined in internal/core/errors-list.ts:131




INTERNAL

INTERNAL: object

Defined in internal/core/errors-list.ts:640

TEMPLATE_INVALID_VARIABLE_NAME

TEMPLATE_INVALID_VARIABLE_NAME: object

Defined in internal/core/errors-list.ts:641

description

● description: string = `An error message template contains an invalid variable name. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:646


message

● message: string = "Variable names can only include ascii letters and numbers, and start with a letter, but got %variable%"

Defined in internal/core/errors-list.ts:643


number

● number: number = 900

Defined in internal/core/errors-list.ts:642


title

● title: string = "Invalid error message template"

Defined in internal/core/errors-list.ts:645



TEMPLATE_VALUE_CONTAINS_VARIABLE_TAG

TEMPLATE_VALUE_CONTAINS_VARIABLE_TAG: object

Defined in internal/core/errors-list.ts:650

description

● description: string = `Tried to replace an error message variable with a value that contains another variable name. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:655


message

● message: string = "Template values can't include variable tags, but %variable%'s value includes one"

Defined in internal/core/errors-list.ts:652


number

● number: number = 901

Defined in internal/core/errors-list.ts:651


title

● title: string = "Invalid error message replacement"

Defined in internal/core/errors-list.ts:654



TEMPLATE_VARIABLE_TAG_MISSING

TEMPLATE_VARIABLE_TAG_MISSING: object

Defined in internal/core/errors-list.ts:659

description

● description: string = `An error message template is missing a replacement value. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:663


message

● message: string = "Variable %variable%'s tag not present in the template"

Defined in internal/core/errors-list.ts:661


number

● number: number = 902

Defined in internal/core/errors-list.ts:660


title

● title: string = "Missing replacement value from error message template"

Defined in internal/core/errors-list.ts:662




NETWORK

NETWORK: object

Defined in internal/core/errors-list.ts:139

CANT_DERIVE_KEY

CANT_DERIVE_KEY: object

Defined in internal/core/errors-list.ts:247

description

● description: string = `One of your HD keys could not be derived.

Try using another mnemonic or deriving less keys.`

Defined in internal/core/errors-list.ts:252


message

● message: string = "Cannot derive key %path% from mnemonic '%mnemonic%. Try using another mnemonic or deriving less keys."

Defined in internal/core/errors-list.ts:249


number

● number: number = 112

Defined in internal/core/errors-list.ts:248


title

● title: string = "Could not derive an HD key"

Defined in internal/core/errors-list.ts:251



CONFIG_NOT_FOUND

CONFIG_NOT_FOUND: object

Defined in internal/core/errors-list.ts:140

description

● description: string = `You are trying to run Buidler with a non-existent network.

Please, consult the documentation to learn how to define custom networks.`

Defined in internal/core/errors-list.ts:144


message

● message: string = "Network %network% doesn't exist"

Defined in internal/core/errors-list.ts:142


number

● number: number = 100

Defined in internal/core/errors-list.ts:141


title

● title: string = "Selected network doesn't exist"

Defined in internal/core/errors-list.ts:143



DEPRECATED_INVALID_TX_CHAIN_ID

DEPRECATED_INVALID_TX_CHAIN_ID: object

Defined in internal/core/errors-list.ts:158

description

● description: string = Buidler sent the \chainId` field in a transaction.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:163


message

● message: string = "Trying to send a tx with chain id %txChainId%, but Buidler is connected to a chain with id %chainId%."

Defined in internal/core/errors-list.ts:160


number

● number: number = 102

Defined in internal/core/errors-list.ts:159


title

● title: string = "Incorrectly send chainId in a transaction"

Defined in internal/core/errors-list.ts:162



ETHSIGN_MISSING_DATA_PARAM

ETHSIGN_MISSING_DATA_PARAM: object

Defined in internal/core/errors-list.ts:167

description

● description: string = You called \eth_sign` with incorrect parameters.

Please check that you are sending a `data` parameter.`

Defined in internal/core/errors-list.ts:171


message

● message: string = "Missing "data" param when calling eth_sign."

Defined in internal/core/errors-list.ts:169


number

● number: number = 103

Defined in internal/core/errors-list.ts:168


title

● title: string = "Missing data param when calling eth_sign."

Defined in internal/core/errors-list.ts:170



INVALID_GLOBAL_CHAIN_ID

INVALID_GLOBAL_CHAIN_ID: object

Defined in internal/core/errors-list.ts:148

description

● description: string = `Your config specifies a chain id for the network you are trying to used, but Buidler detected anotherone.

Please make sure you are setting your config correctly.`

Defined in internal/core/errors-list.ts:153


message

● message: string = "Buidler was set to use chain id %configChainId%, but connected to a chain with id %connectionChainId%."

Defined in internal/core/errors-list.ts:150


number

● number: number = 101

Defined in internal/core/errors-list.ts:149


title

● title: string = "Connected to the wrong network"

Defined in internal/core/errors-list.ts:152



INVALID_HD_PATH

INVALID_HD_PATH: object

Defined in internal/core/errors-list.ts:203

description

● description: string = `An invalid HD/BIP32 derivation path was provided in your config.

Please, consult the documentation to define HD accounts correctly.`

Defined in internal/core/errors-list.ts:208


message

● message: string = "HD path %path% is invalid. Read about BIP32 to know about the valid forms."

Defined in internal/core/errors-list.ts:205


number

● number: number = 107

Defined in internal/core/errors-list.ts:204


title

● title: string = "Invalid HD path"

Defined in internal/core/errors-list.ts:207



INVALID_JSON_RESPONSE

INVALID_JSON_RESPONSE: object

Defined in internal/core/errors-list.ts:239

description

● description: string = `One of your JSON-RPC requests received an invalid response.

Please make sure your node is running, and check your internet connection and networks config.`

Defined in internal/core/errors-list.ts:243


message

● message: string = "Invalid JSON-RPC response received: %response%"

Defined in internal/core/errors-list.ts:241


number

● number: number = 111

Defined in internal/core/errors-list.ts:240


title

● title: string = "Invalid JSON-RPC response"

Defined in internal/core/errors-list.ts:242



INVALID_RPC_QUANTITY_VALUE

INVALID_RPC_QUANTITY_VALUE: object

Defined in internal/core/errors-list.ts:212

description

● description: string = `One of your transactions sent or received an invalid JSON-RPC QUANTITY value.

Please double check your calls' parameters and keep your Ethereum node up to date.`

Defined in internal/core/errors-list.ts:217


message

● message: string = "Received invalid value %value% from/to the node's JSON-RPC, but a Quantity was expected."

Defined in internal/core/errors-list.ts:214


number

● number: number = 108

Defined in internal/core/errors-list.ts:213


title

● title: string = "Invalid JSON-RPC value"

Defined in internal/core/errors-list.ts:216



MISSING_TX_PARAM_TO_SIGN_LOCALLY

MISSING_TX_PARAM_TO_SIGN_LOCALLY: object

Defined in internal/core/errors-list.ts:185

description

● description: string = `You are trying to send a transaction with a locally managed account, and some parameters are missing.

Please double check your transactions' parameters.`

Defined in internal/core/errors-list.ts:189


message

● message: string = "Missing param %param% from a tx being signed locally."

Defined in internal/core/errors-list.ts:187


number

● number: number = 105

Defined in internal/core/errors-list.ts:186


title

● title: string = "Missing transaction parameter"

Defined in internal/core/errors-list.ts:188



NETWORK_TIMEOUT

NETWORK_TIMEOUT: object

Defined in internal/core/errors-list.ts:230

description

● description: string = `One of your JSON-RPC requests timed-out.

Please make sure your node is running, and check your internet connection and networks config.`

Defined in internal/core/errors-list.ts:235


message

● message: string = Network connection timed-out. Please check your internet connection and networks config

Defined in internal/core/errors-list.ts:232


number

● number: number = 110

Defined in internal/core/errors-list.ts:231


title

● title: string = "Network timeout"

Defined in internal/core/errors-list.ts:234



NODE_IS_NOT_RUNNING

NODE_IS_NOT_RUNNING: object

Defined in internal/core/errors-list.ts:221

description

● description: string = `Cannot connect to the network.

Please make sure your node is running, and check your internet connection and networks config.`

Defined in internal/core/errors-list.ts:226


message

● message: string = Cannot connect to the network %network%. Please make sure your node is running, and check your internet connection and networks config

Defined in internal/core/errors-list.ts:223


number

● number: number = 109

Defined in internal/core/errors-list.ts:222


title

● title: string = "Cannot connect to the network"

Defined in internal/core/errors-list.ts:225



NOT_LOCAL_ACCOUNT

NOT_LOCAL_ACCOUNT: object

Defined in internal/core/errors-list.ts:175

description

● description: string = `You are trying to send a transaction or sign some data with an account not managed by your Ethereum node nor Buidler.

Please double check your accounts and the `from` parameter in your RPC calls.`

Defined in internal/core/errors-list.ts:180


message

● message: string = "Account %account% is not managed by the node you are connected to."

Defined in internal/core/errors-list.ts:177


number

● number: number = 104

Defined in internal/core/errors-list.ts:176


title

● title: string = "Unrecognized account"

Defined in internal/core/errors-list.ts:179



NO_REMOTE_ACCOUNT_AVAILABLE

NO_REMOTE_ACCOUNT_AVAILABLE: object

Defined in internal/core/errors-list.ts:194

description

● description: string = `No local account was set and there are accounts in the remote node.

Please make sure that your Ethereum node has unlocked accounts.`

Defined in internal/core/errors-list.ts:199


message

● message: string = "No local account was set and there are accounts in the remote node."

Defined in internal/core/errors-list.ts:196


number

● number: number = 106

Defined in internal/core/errors-list.ts:195


title

● title: string = "No remote accounts available"

Defined in internal/core/errors-list.ts:198




PLUGINS

PLUGINS: object

Defined in internal/core/errors-list.ts:601

DEPENDENCY_VERSION_MISMATCH

DEPENDENCY_VERSION_MISMATCH: object

Defined in internal/core/errors-list.ts:620

description

● description: string = `You are trying to use a plugin that requires a different version of one of its dependencies.

Please follow Buidler's instructions to resolve this.`

Defined in internal/core/errors-list.ts:626


message

● message: string = Plugin %plugin% requires %dependency% version %versionSpec% but got %installedVersion%. %extraMessage%If you haven't installed %dependency% manually, please run: npm install --save-dev%extraFlags% %dependency%@%versionSpec% If you have installed %dependency% yourself, please reinstall it with a valid version.

Defined in internal/core/errors-list.ts:622


number

● number: number = 802

Defined in internal/core/errors-list.ts:621


title

● title: string = "Plugin dependencies's version mismatch"

Defined in internal/core/errors-list.ts:625



MISSING_DEPENDENCY

MISSING_DEPENDENCY: object

Defined in internal/core/errors-list.ts:611

description

● description: string = `You are trying to use a plugin with unmet dependencies.

Please follow Buidler's instructions to resolve this.`

Defined in internal/core/errors-list.ts:616


message

● message: string = Plugin %plugin% requires %dependency% to be installed. %extraMessage%Please run: npm install --save-dev%extraFlags% %dependency%@%versionSpec%

Defined in internal/core/errors-list.ts:613


number

● number: number = 801

Defined in internal/core/errors-list.ts:612


title

● title: string = "Plugin dependencies not installed"

Defined in internal/core/errors-list.ts:615



NOT_INSTALLED

NOT_INSTALLED: object

Defined in internal/core/errors-list.ts:602

description

● description: string = `You are trying to use a plugin that hasn't been installed.

Please follow Buidler's instructions to resolve this.`

Defined in internal/core/errors-list.ts:607


message

● message: string = Plugin %plugin% is not installed. %extraMessage%Please run: npm install --save-dev%extraFlags% %plugin%

Defined in internal/core/errors-list.ts:604


number

● number: number = 800

Defined in internal/core/errors-list.ts:603


title

● title: string = "Plugin not installed"

Defined in internal/core/errors-list.ts:606



OLD_STYLE_IMPORT_DETECTED

OLD_STYLE_IMPORT_DETECTED: object

Defined in internal/core/errors-list.ts:630

description

● description: string = You are trying to load a plugin with a call to \require`.

Please use `usePlugin(npm-plugin-package)` instead.`

Defined in internal/core/errors-list.ts:635


message

● message: string = You are trying to load %pluginNameText% with a require or import statement. Please replace it with a call to usePlugin("%pluginNameCode%").

Defined in internal/core/errors-list.ts:632


number

● number: number = 803

Defined in internal/core/errors-list.ts:631


title

● title: string = "Importing a plugin with require"

Defined in internal/core/errors-list.ts:634




RESOLVER

RESOLVER: object

Defined in internal/core/errors-list.ts:453

FILE_NOT_FOUND

FILE_NOT_FOUND: object

Defined in internal/core/errors-list.ts:454

description

● description: string = Tried to resolve a non-existing Solidity file as an entry-point.

Defined in internal/core/errors-list.ts:458


message

● message: string = "File %file% doesn't exist."

Defined in internal/core/errors-list.ts:456


number

● number: number = 400

Defined in internal/core/errors-list.ts:455


title

● title: string = "Solidity file not found"

Defined in internal/core/errors-list.ts:457



FILE_OUTSIDE_LIB

FILE_OUTSIDE_LIB: object

Defined in internal/core/errors-list.ts:501

description

● description: string = `One of your libraries tried to use a relative import to import a file outside of its scope.

This is disabled for security reasons.`

Defined in internal/core/errors-list.ts:506


message

● message: string = "File %file% from %library% is resolved to a path outside of its library."

Defined in internal/core/errors-list.ts:503


number

● number: number = 406

Defined in internal/core/errors-list.ts:502


title

● title: string = "Illegal Solidity import"

Defined in internal/core/errors-list.ts:505



FILE_OUTSIDE_PROJECT

FILE_OUTSIDE_PROJECT: object

Defined in internal/core/errors-list.ts:460

description

● description: string = `One of your projects tried to import a file that it's outside your Buidler project.

This is disabled for security reasons.`

Defined in internal/core/errors-list.ts:464


message

● message: string = "File %file% is outside the project."

Defined in internal/core/errors-list.ts:462


number

● number: number = 401

Defined in internal/core/errors-list.ts:461


title

● title: string = "Tried to import file outside your project"

Defined in internal/core/errors-list.ts:463



ILLEGAL_IMPORT

ILLEGAL_IMPORT: object

Defined in internal/core/errors-list.ts:493

description

● description: string = `One of your libraries tried to use a relative import to import a file outside of its scope.

This is disabled for security reasons.`

Defined in internal/core/errors-list.ts:497


message

● message: string = "Illegal import %imported% from %from%"

Defined in internal/core/errors-list.ts:495


number

● number: number = 405

Defined in internal/core/errors-list.ts:494


title

● title: string = "Illegal Solidity import"

Defined in internal/core/errors-list.ts:496



IMPORTED_FILE_NOT_FOUND

IMPORTED_FILE_NOT_FOUND: object

Defined in internal/core/errors-list.ts:510

description

● description: string = `One of your source files imported a non-existing one.

Please double check your imports.`

Defined in internal/core/errors-list.ts:514


message

● message: string = "File %imported%, imported from %from%, not found."

Defined in internal/core/errors-list.ts:512


number

● number: number = 407

Defined in internal/core/errors-list.ts:511


title

● title: string = "Imported file not found"

Defined in internal/core/errors-list.ts:513



LIBRARY_FILE_NOT_FOUND

LIBRARY_FILE_NOT_FOUND: object

Defined in internal/core/errors-list.ts:485

description

● description: string = `One of your libraries' files was imported but doesn't exist.

Please double check your imports or update your libraries.`

Defined in internal/core/errors-list.ts:489


message

● message: string = "File %file% doesn't exist."

Defined in internal/core/errors-list.ts:487


number

● number: number = 404

Defined in internal/core/errors-list.ts:486


title

● title: string = "Missing library file"

Defined in internal/core/errors-list.ts:488



LIBRARY_FILE_NOT_LOCAL

LIBRARY_FILE_NOT_LOCAL: object

Defined in internal/core/errors-list.ts:468

description

● description: string = `One of your libraries' files was treated as a local file. This is a bug.

Please report it to help us improve Buidler.`

Defined in internal/core/errors-list.ts:473


message

● message: string = "File %file% belongs to a library but was treated as a local one."

Defined in internal/core/errors-list.ts:470


number

● number: number = 402

Defined in internal/core/errors-list.ts:469


title

● title: string = "Resolved library file as a local one"

Defined in internal/core/errors-list.ts:472



LIBRARY_NOT_INSTALLED

LIBRARY_NOT_INSTALLED: object

Defined in internal/core/errors-list.ts:477

description

● description: string = `One of your Solidity sources imports a library that is not installed.

Please double check your imports or install the missing dependency.`

Defined in internal/core/errors-list.ts:481


message

● message: string = "Library %library% is not installed."

Defined in internal/core/errors-list.ts:479


number

● number: number = 403

Defined in internal/core/errors-list.ts:478


title

● title: string = "Solidity library not installed"

Defined in internal/core/errors-list.ts:480




SOLC

SOLC: object

Defined in internal/core/errors-list.ts:519

DOWNLOAD_FAILED

DOWNLOAD_FAILED: object

Defined in internal/core/errors-list.ts:529

description

● description: string = Couldn't download \solc`.

Please check your Internet connection.`

Defined in internal/core/errors-list.ts:534


message

● message: string = "Couldn't download compiler version %remoteVersion%. Please check your connection or use local version %localVersion%"

Defined in internal/core/errors-list.ts:531


number

● number: number = 501

Defined in internal/core/errors-list.ts:530


title

● title: string = "solc download failed"

Defined in internal/core/errors-list.ts:533



INVALID_DOWNLOAD

INVALID_DOWNLOAD: object

Defined in internal/core/errors-list.ts:547

description

● description: string = Downloaded \solc` verification failed..

Please check your Internet connection.`

Defined in internal/core/errors-list.ts:552


message

● message: string = "Couldn't download compiler version %remoteVersion%. Checksum verification failed. Please check your connection or use local version %localVersion%"

Defined in internal/core/errors-list.ts:549


number

● number: number = 503

Defined in internal/core/errors-list.ts:548


title

● title: string = "Downloaded solc checksum verification failed"

Defined in internal/core/errors-list.ts:551



INVALID_VERSION

INVALID_VERSION: object

Defined in internal/core/errors-list.ts:520

description

● description: string = `The Solidity version in your config is invalid or hasn't been released yet.

Please double check your `solc` config.`

Defined in internal/core/errors-list.ts:525


message

● message: string = "Solidity version %version% is invalid or hasn't been released yet."

Defined in internal/core/errors-list.ts:522


number

● number: number = 500

Defined in internal/core/errors-list.ts:521


title

● title: string = "Invalid solc version"

Defined in internal/core/errors-list.ts:524



VERSION_LIST_DOWNLOAD_FAILED

VERSION_LIST_DOWNLOAD_FAILED: object

Defined in internal/core/errors-list.ts:538

description

● description: string = Couldn't download \solc`'s version list.

Please check your Internet connection.`

Defined in internal/core/errors-list.ts:543


message

● message: string = "Couldn't download compiler versions list. Please check your connection or use local version %localVersion%"

Defined in internal/core/errors-list.ts:540


number

● number: number = 502

Defined in internal/core/errors-list.ts:539


title

● title: string = "Couldn't obtain solc version list"

Defined in internal/core/errors-list.ts:542




TASK_DEFINITIONS

TASK_DEFINITIONS: object

Defined in internal/core/errors-list.ts:257

ACTION_NOT_SET

ACTION_NOT_SET: object

Defined in internal/core/errors-list.ts:305

description

● description: string = `A task was run, but it has no action set.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:309


message

● message: string = "No action set for task %taskName%."

Defined in internal/core/errors-list.ts:307


number

● number: number = 205

Defined in internal/core/errors-list.ts:306


title

● title: string = "Tried to run task without an action"

Defined in internal/core/errors-list.ts:308



DEFAULT_IN_MANDATORY_PARAM

DEFAULT_IN_MANDATORY_PARAM: object

Defined in internal/core/errors-list.ts:331

description

● description: string = `One of your tasks has a required parameter with a default value.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:336


message

● message: string = "Default value for param %paramName% of task %taskName% shouldn't be set."

Defined in internal/core/errors-list.ts:333


number

● number: number = 208

Defined in internal/core/errors-list.ts:332


title

● title: string = "Required parameter has a default value"

Defined in internal/core/errors-list.ts:335



DEFAULT_VALUE_WRONG_TYPE

DEFAULT_VALUE_WRONG_TYPE: object

Defined in internal/core/errors-list.ts:322

description

● description: string = `One of your tasks has a parameter whose default value doesn't match the expected type.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:327


message

● message: string = "Default value for param %paramName% of task %taskName% doesn't match the default one, try specifying it."

Defined in internal/core/errors-list.ts:324


number

● number: number = 207

Defined in internal/core/errors-list.ts:323


title

● title: string = "Default value has incorrect type"

Defined in internal/core/errors-list.ts:326



INVALID_PARAM_NAME_CASING

INVALID_PARAM_NAME_CASING: object

Defined in internal/core/errors-list.ts:340

description

● description: string = `Your parameter names must use camelCase.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:345


message

● message: string = "Invalid param name %paramName% in task %taskName%. Param names must be camelCase."

Defined in internal/core/errors-list.ts:342


number

● number: number = 209

Defined in internal/core/errors-list.ts:341


title

● title: string = "Invalid casing in parameter name"

Defined in internal/core/errors-list.ts:344



MANDATORY_PARAM_AFTER_OPTIONAL

MANDATORY_PARAM_AFTER_OPTIONAL: object

Defined in internal/core/errors-list.ts:287

description

● description: string = `Could not add param to your task because it is required and it was added after an optional positional param.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:292


message

● message: string = "Could not set param %paramName% for task %taskName% because it is mandatory and it was added after an optional positional param."

Defined in internal/core/errors-list.ts:289


number

● number: number = 203

Defined in internal/core/errors-list.ts:288


title

● title: string = "Optional param followed by a required one"

Defined in internal/core/errors-list.ts:291



OVERRIDE_NO_PARAMS

OVERRIDE_NO_PARAMS: object

Defined in internal/core/errors-list.ts:296

description

● description: string = `You can't change param definitions in an overridden task.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:301


message

● message: string = "Redefinition of task %taskName% failed. You can't change param definitions in an overridden task."

Defined in internal/core/errors-list.ts:298


number

● number: number = 204

Defined in internal/core/errors-list.ts:297


title

● title: string = "Attempted to add params to an overridden task"

Defined in internal/core/errors-list.ts:300



PARAM_AFTER_VARIADIC

PARAM_AFTER_VARIADIC: object

Defined in internal/core/errors-list.ts:258

description

● description: string = `Could add a positional param to your task because there is already a variadic positional param and it has to be the last positional one.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:263


message

● message: string = "Could not set positional param %paramName% for task %taskName% because there is already a variadic positional param and it has to be the last positional one."

Defined in internal/core/errors-list.ts:260


number

● number: number = 200

Defined in internal/core/errors-list.ts:259


title

● title: string = "Could not add positional param"

Defined in internal/core/errors-list.ts:262



PARAM_ALREADY_DEFINED

PARAM_ALREADY_DEFINED: object

Defined in internal/core/errors-list.ts:269

description

● description: string = `Could not add a param to your task because its name is already used.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:274


message

● message: string = "Could not set param %paramName% for task %taskName% because its name is already used."

Defined in internal/core/errors-list.ts:271


number

● number: number = 201

Defined in internal/core/errors-list.ts:270


title

● title: string = "Repeated param name"

Defined in internal/core/errors-list.ts:273



PARAM_CLASHES_WITH_BUIDLER_PARAM

PARAM_CLASHES_WITH_BUIDLER_PARAM: object

Defined in internal/core/errors-list.ts:278

description

● description: string = `Could not add a param to your task because its name is used as a param for Buidler.

Please double check your task definitions.`

Defined in internal/core/errors-list.ts:283


message

● message: string = "Could not set param %paramName% for task %taskName% because its name is used as a param for Buidler."

Defined in internal/core/errors-list.ts:280


number

● number: number = 202

Defined in internal/core/errors-list.ts:279


title

● title: string = "Buidler and task param names clash"

Defined in internal/core/errors-list.ts:282



RUNSUPER_NOT_AVAILABLE

RUNSUPER_NOT_AVAILABLE: object

Defined in internal/core/errors-list.ts:313

description

● description: string = You tried to call \runSuper` from a non-overridden task.

Please use `runSuper.isDefined` to make sure that you can call it.`

Defined in internal/core/errors-list.ts:318


message

● message: string = "Tried to call runSuper from a non-overridden definition of task %taskName%"

Defined in internal/core/errors-list.ts:315


number

● number: number = 206

Defined in internal/core/errors-list.ts:314


title

● title: string = "runSuper not available"

Defined in internal/core/errors-list.ts:317





<Const> ERROR_RANGES

ERROR_RANGES: object

Defined in internal/core/errors-list.ts:16

ARGUMENTS

ARGUMENTS: object

Defined in internal/core/errors-list.ts:24

max

● max: number = 399

Defined in internal/core/errors-list.ts:24


min

● min: number = 300

Defined in internal/core/errors-list.ts:24


title

● title: string = "Arguments related errors"

Defined in internal/core/errors-list.ts:24



ARTIFACTS

ARTIFACTS: object

Defined in internal/core/errors-list.ts:32

max

● max: number = 799

Defined in internal/core/errors-list.ts:32


min

● min: number = 700

Defined in internal/core/errors-list.ts:32


title

● title: string = "Artifacts related errors"

Defined in internal/core/errors-list.ts:32



BUILTIN_TASKS

BUILTIN_TASKS: object

Defined in internal/core/errors-list.ts:31

max

● max: number = 699

Defined in internal/core/errors-list.ts:31


min

● min: number = 600

Defined in internal/core/errors-list.ts:31


title

● title: string = "Built-in tasks errors"

Defined in internal/core/errors-list.ts:31



GENERAL

GENERAL: object

Defined in internal/core/errors-list.ts:17

max

● max: number = 99

Defined in internal/core/errors-list.ts:17


min

● min: number = 0

Defined in internal/core/errors-list.ts:17


title

● title: string = "General errors"

Defined in internal/core/errors-list.ts:17



INTERNAL

INTERNAL: object

Defined in internal/core/errors-list.ts:34

max

● max: number = 999

Defined in internal/core/errors-list.ts:34


min

● min: number = 900

Defined in internal/core/errors-list.ts:34


title

● title: string = "Internal Buidler errors"

Defined in internal/core/errors-list.ts:34



NETWORK

NETWORK: object

Defined in internal/core/errors-list.ts:18

max

● max: number = 199

Defined in internal/core/errors-list.ts:18


min

● min: number = 100

Defined in internal/core/errors-list.ts:18


title

● title: string = "Network related errors"

Defined in internal/core/errors-list.ts:18



PLUGINS

PLUGINS: object

Defined in internal/core/errors-list.ts:33

max

● max: number = 899

Defined in internal/core/errors-list.ts:33


min

● min: number = 800

Defined in internal/core/errors-list.ts:33


title

● title: string = "Plugin system errors"

Defined in internal/core/errors-list.ts:33



RESOLVER

RESOLVER: object

Defined in internal/core/errors-list.ts:25

max

● max: number = 499

Defined in internal/core/errors-list.ts:27


min

● min: number = 400

Defined in internal/core/errors-list.ts:26


title

● title: string = "Dependencies resolution errors"

Defined in internal/core/errors-list.ts:28



SOLC

SOLC: object

Defined in internal/core/errors-list.ts:30

max

● max: number = 599

Defined in internal/core/errors-list.ts:30


min

● min: number = 500

Defined in internal/core/errors-list.ts:30


title

● title: string = "Solidity related errors"

Defined in internal/core/errors-list.ts:30



TASK_DEFINITIONS

TASK_DEFINITIONS: object

Defined in internal/core/errors-list.ts:19

max

● max: number = 299

Defined in internal/core/errors-list.ts:21


min

● min: number = 200

Defined in internal/core/errors-list.ts:20


title

● title: string = "Task definition errors"

Defined in internal/core/errors-list.ts:22




<Const> boolean

boolean: object

Defined in internal/core/params/argumentTypes.ts:45

Boolean type.

Accepts only 'true' or 'false' (case-insensitive).

throws: BDLR301

name

● name: string = "boolean"

Defined in internal/core/params/argumentTypes.ts:46


parse

parse(argName: string, strValue: string): boolean

Defined in internal/core/params/argumentTypes.ts:47

Parameters:

Name Type
argName string
strValue string

Returns: boolean



<Const> float

float: object

Defined in internal/core/params/argumentTypes.ts:94

Float type. Accepts either a decimal string number or hexadecimal string number.

throws: BDLR301

name

● name: string = "float"

Defined in internal/core/params/argumentTypes.ts:95


parse

parse(argName: string, strValue: string): number

Defined in internal/core/params/argumentTypes.ts:96

Parameters:

Name Type
argName string
strValue string

Returns: number



<Const> inputFile

inputFile: object

Defined in internal/core/params/argumentTypes.ts:120

Input file type. Accepts a path to a readable file..

throws: BDLR302

name

● name: string = "inputFile"

Defined in internal/core/params/argumentTypes.ts:121


parse

parse(argName: string, strValue: string): string

Defined in internal/core/params/argumentTypes.ts:122

Parameters:

Name Type
argName string
strValue string

Returns: string



<Const> int

int: object

Defined in internal/core/params/argumentTypes.ts:68

Int type. Accepts either a decimal string integer or hexadecimal string integer.

throws: BDLR301

name

● name: string = "int"

Defined in internal/core/params/argumentTypes.ts:69


parse

parse(argName: string, strValue: string): number

Defined in internal/core/params/argumentTypes.ts:70

Parameters:

Name Type
argName string
strValue string

Returns: number



<Const> json

json: object

Defined in internal/core/params/argumentTypes.ts:147

name

● name: string = "json"

Defined in internal/core/params/argumentTypes.ts:148


parse

parse(argName: string, strValue: string): any

Defined in internal/core/params/argumentTypes.ts:149

Parameters:

Name Type
argName string
strValue string

Returns: any



<Const> string

string: object

Defined in internal/core/params/argumentTypes.ts:34

String type.

Accepts any kind of string.

name

● name: string = "string"

Defined in internal/core/params/argumentTypes.ts:35


parse

parse(argName: string, strValue: string): string

Defined in internal/core/params/argumentTypes.ts:36

Parameters:

Name Type
argName string
strValue string

Returns: string