The App.js file will have the following methods defined under it:
- constructor (): Initializes the state variables.
- componentDidMount: Checks if the MetaMask web3 provider is available and fetches the user's Ethereum account.
- A set of session setters that set the role and the option selected. These include the following:
- BuyerSessionView
- BankSessionCreate
- BankSessionView
- SellerSessionView
- SellerSessionSettle
- SellerSessionVSettle
- A set of utility methods for navigation and operation, which include the following:
- onInputChangeUpdateField: For capturing and storing the input fields data to the state.
- closeTab: To close the current tab and go back to the landing page.
- closeViewTab: To ...