hardhat/types#NetworksUserConfig TypeScript Examples

The following examples show how to use hardhat/types#NetworksUserConfig. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: config.sample.ts    From BarnBridge-Barn with Apache License 2.0 6 votes vote down vote up
networks: NetworksUserConfig = {
    // Needed for `solidity-coverage`
    coverage: {
        url: 'http://localhost:8555',
    },

    // Kovan
    kovan: {
        url: 'https://kovan.infura.io/v3/YOUR-INFURA-API-KEY',
        chainId: 42,
        accounts: {
            mnemonic: 'your kovan mnemonic, get kovan eth for gas first',
            path: "m/44'/60'/0'/0",
            initialIndex: 0,
            count: 10,
        },
        gas: 'auto',
        gasPrice: 1000000000, // 1 gwei
        gasMultiplier: 1.5,
    },

    // Mainnet
    mainnet: {
        url: 'https://mainnet.infura.io/v3/YOUR-INFURA-KEY',
        chainId: 1,
        accounts: ['0xaaaa'],
        gas: 'auto',
        gasPrice: 50000000000,
        gasMultiplier: 1.5,
    },
}
Example #2
Source File: config.sample.ts    From BarnBridge-YieldFarming with Apache License 2.0 6 votes vote down vote up
networks: NetworksUserConfig = {
    // Needed for `solidity-coverage`
    coverage: {
        url: "http://localhost:8555"
    },

    // Kovan
    kovan: {
        url: "https://kovan.infura.io/v3/YOUR-INFURA-API-KEY",
        chainId: 42,
        accounts: {
            mnemonic: "your kovan mnemonic, get kovan eth for gas first",
            path: "m/44'/60'/0'/0",
            initialIndex: 0,
            count: 10
        },
        gas: "auto",
        gasPrice: 1000000000, // 1 gwei
        gasMultiplier: 1.5
    },

    // Mainnet
    mainnet: {
        url: "https://mainnet.infura.io/v3/YOUR-INFURA-KEY",
        chainId: 1,
        accounts: ["0xaaaa"],
        gas: "auto",
        gasPrice: 50000000000,
        gasMultiplier: 1.5
    }
}
Example #3
Source File: config.ts    From BarnBridge-YieldFarming with Apache License 2.0 6 votes vote down vote up
networks: NetworksUserConfig = {
    // Needed for `solidity-coverage`
    coverage: {
        url: "http://localhost:8555"
    },

    env_network: {
        url: process.env.PROVIDER,
        chainId: Number(process.env.CHAINID),
        accounts: {
            mnemonic: process.env.MNEMONIC,
            path: "m/44'/60'/0'/0",
            initialIndex: 0,
            count: 10
        },
        gas: "auto",
        gasPrice: 1000000000, // 1 gwei
        gasMultiplier: 1.5
    },

    // Mainnet
    mainnet: {
        url: process.env.PROVIDER,
        chainId: 1,
        accounts: ["0xaaaa"],
        gas: "auto",
        gasPrice: 50000000000,
        gasMultiplier: 1.5
    }
}
Example #4
Source File: hardhat.networks.ts    From solidity-utils with MIT License 5 votes vote down vote up
networks: NetworksUserConfig = {}
Example #5
Source File: hardhat.config.ts    From hoprnet with GNU General Public License v3.0 5 votes vote down vote up
networks: NetworksUserConfig = {}