-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Business Description
Currently there's no UI to interact with the main bridge
MPB docs and contracts:
https://docs.gooddollar.org/user-guides/bridge-gooddollars
To help understand the contract you are interacting with better there are three options:
- read/write proxy tabs on the eg. celoscan
- on the code tab on celoscan there is an option to open the contract in a web IDE
- the bridge repository: https://github.com/GoodDollar/GoodBridge
Detailed Description of Functionality
- Based on the microbridge UI add a new widget that makes a user able to interact with the MPB
- Take care of bridge fee (ie indicate to user and send correct value in native token)
- User should be able to see status of TX based on layerzero/axelar api
- Link to layerzero/axelar explorer relevant tx
Technical Implementation
-
Add react/typescript sdk to sdk-v2 package
- All the logic of interacting with the smart contracts or any api's you need should be part of this SDK.
- Reference the microbridge to help you understand the flow of SDK > design components in good-design
-
Add UI components to the good-design package
- the UI component should be nothing more then utilizing the SDK to build a easy-to-use widget for a user to interact with the bridge.
- Utilize repeating components like modals for feedback/color/design system to make it easier to align with existing design.
- We use native-base. the design system and recurrent colors/fonts etc can be found in theme.ts
- the design expected should be production ready. As a practice, as reference try out the microbridge on gooddapp
-
Microbridge stories
Good to knows
- When exploring the bridge transaction flow, consider that the G$ token integrates ERC677 (via transferAndCall). Reflecting on ERC677's mechanics might offer insights into the steps a user takes during transactions.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Review