We now have a deployment of the governance contracts on testnets, which are now available in the SDK. We need to update the UI code to make use of these addresses instead of hardcoding contract addresses here.
To achieve this we should do the following:
Update the chain helper to include the contracts and addresses that are needed in the UI
Use the latest version of the SDK and set the correct addresses for the chains defined in the chain helper
Update the chain state data to include an object to store the addresses of the mento contracts, then ensure they are populated.
Remove any hard coded contract addresses and refactor to make use of the useChainState hook
Acceptance Criteria
[x] The chain helper (app/helpers/chains.ts) includes the required contracts and addresses.
[x] The correct addresses for the chains defined in the chain helper are pulled from the latest SDK version
[x] The chain state data (app/providers/chainState.provider.tsx) includes an object to store mento contract addresses.
[x] The mento contract addresses are populated in the chain state data.
[x] The UI interacts with the useChainState hook (app/providers/chainState.provider.tsx) to retrieve and use contract addresses.
[x] All UI features requiring contract interaction function correctly with the new addresses.
Description
We now have a deployment of the governance contracts on testnets, which are now available in the SDK. We need to update the UI code to make use of these addresses instead of hardcoding contract addresses here.
To achieve this we should do the following:
useChainState
hookAcceptance Criteria