Devnet Configuration

Point to Arcology Devnet

Update the compiler version if you need to.

The truffle-config.js file is a configuration file used to define various settings and options for your Truffle project. It resides in the root directory of your Truffle project.

You need to modify the file to point Truffle to your Arcology devnet. To do this, you will need to define a new network configuration in the networks section of the truffle-config.js file.

  /*
   * run `develop` or `test`. You can ask a truffle command to use a specific
   * network from the command line, e.g
   *
   * $ truffle test --network <network-name>
   */

  networks: {
    // Useful for testing. The `development` name is special - truffle uses it by default
    // if it's defined here and no other network is specified at the command line.
    // You should run a client (like ganache, geth, or parity) in a separate terminal
    // tab if you use this network and you must also set the `host`, `port` and `network_id`
    // options below to some value.
    //
    arcology_devnet: {
      host: "127.0.0.1",     // Localhost (default: none)                
      port: 7545,            // Standard Ethereum port (default: none)
      network_id: "*",       // Any network (default: none)				 uuuuuuuu
    },
    //
    // goerli: {
    //   provider: () => new HDWalletProvider(mnemonic, `https://goerli.infura.io/v3/${infuraProjectId}`),
    //   network_id: 5,       // Goerli's id
    //   chain_id: 5
    // }
  },

  // Set default mocha options here, use special reporters etc.
  mocha: {
    // timeout: 100000
  },

  // Configure your compilers
  compilers: {
    solc: {
      version: "0.8.19",      // Fetch exact version from solc-bin
    }
  }
};

With this configuration in place, Truffle will use your devnet's settings for deployment, testing, and other interactions.

Last updated