Change polygon cfg

This commit is contained in:
Drew 2022-06-30 19:45:37 +00:00
parent da2fc8b4c6
commit 1630b18b47
No known key found for this signature in database
GPG Key ID: 0B6C033EAE9DA870
1 changed files with 33 additions and 33 deletions

View File

@ -1,7 +1,6 @@
const HDWalletProvider = require('@truffle/hdwallet-provider'); const HDWalletProvider = require("@truffle/hdwallet-provider");
require("dotenv").config({ path: ".env" });
require('dotenv').config({path:'.env'});
/** /**
* Use this file to configure your truffle project. It's seeded with some * Use this file to configure your truffle project. It's seeded with some
@ -29,9 +28,9 @@ require('dotenv').config({path:'.env'});
// const mnemonic = fs.readFileSync('.secret').toString().trim(); // const mnemonic = fs.readFileSync('.secret').toString().trim();
module.exports = { module.exports = {
contracts_directory: './contracts', contracts_directory: "./contracts",
contracts_build_directory: './build/contracts', contracts_build_directory: "./build/contracts",
migrations_directory: './migrations/polygon', migrations_directory: "./migrations/polygon",
/** /**
* Networks define how you connect to your ethereum client and let you set the * Networks define how you connect to your ethereum client and let you set the
* defaults web3 uses to send transactions. If you don't specify one truffle * defaults web3 uses to send transactions. If you don't specify one truffle
@ -50,9 +49,9 @@ module.exports = {
// options below to some value. // options below to some value.
// //
development: { development: {
host: '127.0.0.1', // Localhost (default: none) host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none) port: 8545, // Standard Ethereum port (default: none)
network_id: '*', // Any network (default: none) network_id: "*", // Any network (default: none)
}, },
// Another network with more advanced options... // Another network with more advanced options...
// advanced: { // advanced: {
@ -68,10 +67,11 @@ module.exports = {
mumbai: { mumbai: {
provider: () => new HDWalletProvider(process.env.ETH_PRIVATE_KEY, process.env.MUMBAI_PROVIDER), provider: () => new HDWalletProvider(process.env.ETH_PRIVATE_KEY, process.env.MUMBAI_PROVIDER),
network_id: 80001, network_id: 80001,
//gas: 4465030, gasPrice: 80000000000,
gas: 7000000,
//confirmations: 2, // # of confs to wait between deployments. (default: 0) //confirmations: 2, // # of confs to wait between deployments. (default: 0)
//timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50) timeoutBlocks: 50, // # of blocks before a deployment times out (minimum/default: 50)
//skipDryRun: true // Skip dry run before migrations? (default: false for public nets ) skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
}, },
// Useful for private networks // Useful for private networks
// private: { // private: {
@ -89,16 +89,16 @@ module.exports = {
// Configure your compilers // Configure your compilers
compilers: { compilers: {
solc: { solc: {
version: '0.7.6', // Fetch exact version from solc-bin (default: truffle's version) version: "0.7.6", // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use '0.5.1' you've installed locally with docker (default: false) // docker: true, // Use '0.5.1' you've installed locally with docker (default: false)
// settings: { // See the solidity docs for advice about optimization and evmVersion // settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: { optimizer: {
enabled: false, enabled: false,
runs: 200 runs: 200,
}, },
// evmVersion: 'byzantium' // evmVersion: 'byzantium'
// } // }
} },
}, },
// Truffle DB is currently disabled by default; to enable it, change enabled: // Truffle DB is currently disabled by default; to enable it, change enabled: