This repository contains the code for an adoption tracking system for a pet shop built using Ethereum and smart contracts. It is based on the Ethereum Pet Shop tutorial from the Truffle Suite documentation.Tutorial
These instructions will help you get more in depth knowledge about some steps.
Please refer to the tutorial as this is not the official tutorial, here we gonna just give some steps their value.
in the compilation of the contracts we can see the generation of the build folder where we can see the .json file for each contract, in which there is the ABI and some other info.
Migration will send the .json to the network of ganache and this will trigger a transaction of "smart contract creation".
Having already configured metamask, and by adopting a pet, the code in the front will trigger web3 that will trigger metamask that will ask you for an approval, if you accepted, this will trigger a transaction of type: "user to smart contract" and this will invoke the functionnality of adotpin in the smart contract that will be executed in the EVM and will use GAS for it that you will pay during the transaction.