| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- require("dotenv").config({ path: ".env" });
- const HDWalletProvider = require("@truffle/hdwallet-provider");
- module.exports = {
- networks: {
- development: {
- host: "127.0.0.1",
- port: 8545,
- network_id: "*",
- },
- mainnet: {
- provider: () =>
- new HDWalletProvider(
- process.env.MNEMONIC,
- `https://mainnet.infura.io/v3/` + process.env.INFURA_KEY
- ),
- network_id: 1,
- gas: 10000000,
- gasPrice: 191000000000,
- confirmations: 1,
- timeoutBlocks: 200,
- skipDryRun: false,
- },
- rinkeby: {
- provider: () =>
- new HDWalletProvider(
- process.env.MNEMONIC,
- `https://rinkeby.infura.io/v3/` + process.env.INFURA_KEY
- ),
- network_id: 4,
- gas: 5500000,
- confirmations: 2,
- timeoutBlocks: 200,
- skipDryRun: true,
- },
- goerli: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://goerli.infura.io/v3/" + process.env.INFURA_KEY
- );
- },
- network_id: "5",
- gas: 4465030,
- gasPrice: 10000000000,
- },
- binance: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://bsc-dataseed.binance.org/"
- );
- },
- network_id: "56",
- gas: 70000000,
- gasPrice: 8000000000,
- },
- binance_testnet: {
- provider: () => new HDWalletProvider(
- process.env.MNEMONIC,
- "https://data-seed-prebsc-1-s1.binance.org:8545/"
- ),
- network_id: "97",
- gas: 70000000,
- gasPrice: 8000000000,
- },
- polygon: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://polygon-rpc.com"
- );
- },
- network_id: "137",
- gas: 10000000,
- gasPrice: 700000000000,
- },
- mumbai: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://polygon-mumbai.infura.io/v3/" + process.env.INFURA_KEY)
- },
- network_id: "80001",
- },
- avalanche: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://api.avax.network/ext/bc/C/rpc"
- );
- },
- network_id: "43114",
- gas: 8000000,
- gasPrice: 26000000000,
- },
- fuji: {
- provider: () => new HDWalletProvider(
- process.env.MNEMONIC,
- "https://api.avax-test.network/ext/bc/C/rpc"
- ),
- network_id: "43113",
- },
- oasis: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://emerald.oasis.dev/"
- );
- },
- network_id: 42262,
- gas: 4465030,
- gasPrice: 30000000000,
- },
- aurora: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://mainnet.aurora.dev"
- );
- },
- network_id: 1313161554,
- },
- aurora_testnet: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://testnet.aurora.dev"
- )
- },
- network_id: 0x4e454153,
- gas: 70000000,
- gasPrice: 8000000000,
- },
- fantom: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://rpc.ftm.tools/"
- )
- },
- network_id: 250,
- gas: 8000000,
- gasPrice: 3000000000000,
- timeoutBlocks: 15000,
- },
- fantom_testnet: {
- provider: () => {
- return new HDWalletProvider(
- process.env.MNEMONIC,
- "https://rpc.testnet.fantom.network/"
- )
- },
- network_id: 0xfa2,
- gas: 4465030,
- gasPrice: 300000000000,
- },
- },
- compilers: {
- solc: {
- version: "0.8.4",
- settings: {
- optimizer: {
- enabled: true,
- runs: 200,
- },
- },
- },
- },
- plugins: ["@chainsafe/truffle-plugin-abigen", "truffle-plugin-verify"],
- api_keys: {
- etherscan: process.env.ETHERSCAN_KEY,
- },
- };
|