We need to set up interfaces that our app will use in order to interact with the smart contracts that will be deployed to our blockchain:
- Within the contracts folder, create the Gold.js, USD.js, and OrderbookABI.js files.
- Open the Gold.js file in a text editor.
- With the file open, navigate to your Truffle project environment that you used to deploy the smart contracts.
- In the Truffle environment, locate the build directory. Under build, you'll have the Gold.json build file.
- Open the file, and locate the ABI contract . It should look like the code that follows.
- Copy this entire ABI, and paste it in OrderbookABI.js as a parameter, as follows:
export default { abi: [ { "constant": true, "inputs": [], "name": ...