How to use the @nomiclabs/buidler/config.usePlugin function in @nomiclabs/buidler

To help you get started, we’ve selected a few @nomiclabs/buidler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cosmos / gravity-bridge / solidity / buidler.config.ts View on Github external
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.
github cosmos / gravity-bridge / solidity / buidler.config.ts View on Github external
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 = {
github cosmos / gravity-bridge / solidity / buidler.config.ts View on Github external
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
github OffchainLabs / arbitrum / packages / arbos-contracts / buidler.config.js View on Github external
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',
  },
}
github aragon / aragon-cli / packages / buidler / buidler.config.ts View on Github external
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: {
github nomiclabs / buidler / packages / buidler-truffle4 / src / index.ts View on Github external
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
github aragon / aragon-cli / packages / buidler / buidler.config.ts View on Github external
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',
github nomiclabs / buidler / packages / buidler-truffle5 / src / index.ts View on Github external
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
      );