Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { usePlugin } from "@nomiclabs/buidler/config";
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("buidler-gas-reporter");
usePlugin("buidler-typechain");
// // This is a sample Buidler task. To learn how to create your own go to
// // https://buidler.dev/guides/create-task.html
// task("accounts", "Prints the list of accounts", async (taskArgs, bre) => {
// const accounts = await bre.ethers.getSigners();
// for (const account of accounts) {
// console.log(await account.getAddress());
// }
// });
// You have to export an object to set up your config
// This object can have the following optional entries:
// defaultNetwork, networks, solc, and paths.
import { usePlugin } from "@nomiclabs/buidler/config";
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("buidler-gas-reporter");
usePlugin("buidler-typechain");
// // This is a sample Buidler task. To learn how to create your own go to
// // https://buidler.dev/guides/create-task.html
// task("accounts", "Prints the list of accounts", async (taskArgs, bre) => {
// const accounts = await bre.ethers.getSigners();
// for (const account of accounts) {
// console.log(await account.getAddress());
// }
// });
// You have to export an object to set up your config
// This object can have the following optional entries:
// defaultNetwork, networks, solc, and paths.
// Go to https://buidler.dev/config/ to learn more
module.exports = {
import { usePlugin } from "@nomiclabs/buidler/config";
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("buidler-gas-reporter");
usePlugin("buidler-typechain");
// // This is a sample Buidler task. To learn how to create your own go to
// // https://buidler.dev/guides/create-task.html
// task("accounts", "Prints the list of accounts", async (taskArgs, bre) => {
// const accounts = await bre.ethers.getSigners();
// for (const account of accounts) {
// console.log(await account.getAddress());
// }
// });
// You have to export an object to set up your config
// This object can have the following optional entries:
// defaultNetwork, networks, solc, and paths.
// Go to https://buidler.dev/config/ to learn more
const { usePlugin } = require('@nomiclabs/buidler/config')
usePlugin('buidler-typechain')
module.exports = {
// This is a sample solc configuration that specifies which version of solc to use
solc: {
version: '0.5.17',
optimizer: {
enabled: true,
runs: 200,
},
},
typechain: {
target: 'ethers-v4',
},
}
import { usePlugin, BuidlerConfig } from '@nomiclabs/buidler/config';
usePlugin('@nomiclabs/buidler-truffle5');
usePlugin('@nomiclabs/buidler-web3');
import './tasks/start';
const config: BuidlerConfig = {
defaultNetwork: 'localhost',
networks: {
localhost: {
url: 'http://localhost:8545',
accounts: [
"0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563",
"0xce8e3bda3b44269c147747a373646393b1504bfcbb73fc9564f5d753d8116608"
]
}
},
solc: {
export default function() {
usePlugin("@nomiclabs/buidler-web3-legacy");
let accounts: string[] | undefined;
extendEnvironment(env => {
accounts = undefined;
env.artifacts = lazyObject(() => {
const provisioner = new LazyTruffleContractProvisioner(
env.web3,
env.network.config,
env.network.config.from
);
return new TruffleEnvironmentArtifacts(
env.config.paths.artifacts,
provisioner
import { usePlugin, BuidlerConfig } from '@nomiclabs/buidler/config';
usePlugin('@nomiclabs/buidler-truffle5');
usePlugin('@nomiclabs/buidler-web3');
import './tasks/start';
const config: BuidlerConfig = {
defaultNetwork: 'localhost',
networks: {
localhost: {
url: 'http://localhost:8545',
accounts: [
"0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563",
"0xce8e3bda3b44269c147747a373646393b1504bfcbb73fc9564f5d753d8116608"
]
}
},
solc: {
version: '0.4.24',
export default function() {
usePlugin("@nomiclabs/buidler-web3");
let accounts: string[] | undefined;
extendEnvironment(env => {
env.artifacts = lazyObject(() => {
const networkConfig = env.network.config;
const provisioner = new LazyTruffleContractProvisioner(
env.web3,
networkConfig
);
const artifacts = new TruffleEnvironmentArtifacts(
env.config.paths.artifacts,
provisioner
);