Facebook
From Mature Curlew, 2 Months ago, written in HTML5.
Embed
Download Paste or View Raw
Hits: 32
  1. const HDWalletProvider = require('@truffle/hdwallet-provider');
  2. const privateKeys = process.env.PRIVATE_KEYS || ""
  3. module.exports = {
  4.   networks: {
  5.     development: {
  6.       host: "127.0.0.1",
  7.       port: 7545,
  8.       network_id: "*"
  9.     },
  10.     binancetestnet: {
  11.       provider: function() {
  12.         return new HDWalletProvider(
  13.           privateKeys.split(','), // Array of account private keys
  14.           `https://data-seed-prebsc-1-s1.binance.org:8545/${process.env.INFURA_API_KEY}`// Url to an Ethereum Node
  15.         )
  16.       },
  17.       gas: 5000000,
  18.       gasPrice: 25000000000,
  19.       network_id: 97
  20.     }
  21.   },
  22.  
  23.   // Set default mocha options here, use special reporters etc.
  24.   mocha: {
  25.     // timeout: 100000
  26.   },
  27.  
  28.   // Configure your compilers
  29.   compilers: {
  30.     solc: {
  31.        version: "0.7.3",    // Fetch exact version from solc-bin (default: truffle's version)
  32.       // docker: true,        // Use "0.5.1" you've installed locally with docker (default: false)
  33.       // settings: {          // See the solidity docs for advice about optimization and evmVersion
  34.       //  optimizer: {
  35.       //    enabled: false,
  36.       //    runs: 200
  37.       //  },
  38.       //  evmVersion: "byzantium"
  39.       // }
  40.     }
  41.   }
  42. };
  43.