15

Your build artifacts are saved within the ./build directory, along side the compiled deployed contract artifacts in ./build/contracts.

What exactly are these artifacts?

Malone
  • 1,590
  • 12
  • 23
Kashish Khullar
  • 1,563
  • 3
  • 14
  • 26

3 Answers3

7

It saves the ABI, application binary interface of the contract and other info related to the contract. Open the contract_name.json in the ./build/contracts you can see all the information about the contract. If you want to deploy the contract again, then you don't have to compile it again, the contract bytecode from the contract_name.json file will be used.

Ali
  • 231
  • 3
  • 3
6

The more comprehensive explanation can be found here: What are Artifacts

In short, truffle artifact is a JSON bundle that contains a lot of useful information related to a contract like the ABI, the contract bytecode, the deployment details, compiler version, etc...

nambk
  • 161
  • 1
  • 3
1

Artifacts are simply the JSON files of the contracts. the meaning of artifact in software is anything that is created so a piece of software can be developed.

Yilmaz
  • 1,580
  • 10
  • 24