[Ethereum] Truffle artifacts (json files) – where are they

truffle

When truffle compiles a contract, it creates a json file instead of a pair of abi and bin files.

These json files are called artifacts, and they should reside in a known location.

It is briefly explained here and here.

In the past, I used to see them after running truffle compile or truffle test.

Now, I am no longer able to see them anywhere.

Here is my truffle-config.js file:

// See <http://truffleframework.com/docs/advanced/configuration>
module.exports = {
    contracts_build_directory: "./build/contracts",
    networks: {
        development: {
            host: "127.0.0.1",
            port: 8545,
            network_id: "*", // Match any network id
            gas: 4712388, // Gas limit used for deploys
            gasPrice: 100000000000, // Gas price used for deploys
        },
    },
    solc: {
        optimizer: {
            enabled: true,
            runs: 5000000,
        },
    },
};

Does anybody know where to find these artifacts?

Thank you!

Best Answer

In the folder {project root}/build/contracts/{contract name}.json