Our exchange app will constitute the following:
- The main App.js file
- The following react components:
- Container.js
- AddressBar.js
- Orderbook.js
- TradePanel.js
- The following contract interfaces:
- Gold.js
- USD.js
- OrderbookABI.js
Here is a brief description of the components:
- App.js: The main App.js file that implements the methods that interact with our smart contract and sets the initial state. It invokes Container.js for rendering the child components and forwards the current state to Container.js.
- React components: These components render our exchange app:
- Container.js: It receives the current state from the App.js file, and passes it to the child components.
- AddressBar.js: It implements an address bar which shows ...