120 lines
2.6 KiB
JavaScript
120 lines
2.6 KiB
JavaScript
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: 101000000000,
|
|
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,
|
|
},
|
|
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_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,
|
|
},
|
|
};
|