stablecoin-studio icon indicating copy to clipboard operation
stablecoin-studio copied to clipboard

[UI] Configure custom RPC

Open darius279 opened this issue 2 years ago • 0 comments

[UI] As a user, I want to configure the accelerator to use a custom RPC as a RPC provider

Description

When the user opens the UI, after connect the wallet, a “Settings” icon will be visible at the bottom left corner of the page. When the user selects this option, a new configuration page will be displayed.

Within this page, the users could switch between two tabs, Nodes and RPCs options, if it selects the RPCs tab the user will be able to see what RPCs are configured and the fields that allows it to add a new one. By default, default value for the dropdown will be “Testnet” but the user could choose between Testnet, Previewnet and Mainnet.

When the user add a new RPC, the list should be refreshed adding the selected RPC as default. When the user close and open the app, the previously selected RPC should be the one that will be used by default.

Note: Hashio RPC will be always available and you cannot delete it.

Note: API key field won’t be necessary to be filled in order to add a new node. Add button will be disabled until name and url will be filled or if the user agree that some API key is needed, Add button will be disabled until all fields are filled.

Image

Acceptance criteria

  • When I add the RPC data, data button is enabled and I can choose the newly added RPC configuration.
  • If I click on the trash button, the selected RPC is deleted.
  • If I close the UI and open again, the last selected RPC is my current RPC
### Tasks

darius279 avatar Oct 09 '23 08:10 darius279