You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be better to refactor the contract descriptor screen, separating some of their views components to their own route, following remix routing idea and harnessing the nested routes concept where multiple routes match portions of an URL to render specific components forming a hierarchy.
A possible routing design:
/contracts?q=<contract-address>: It renders the ContractSelectorScreen
/contracts/<network-name-abbr>:<contract-address>/functions/<sig-hash>/describe: It renders the ContractDescriptorScreen.
/contracts/<network-name-abbr>:<contract-address>/functions/<sig-hash>/test: It renders the TestModal
In regards of network-name-abbr, we would use abbreviations similar to Gnosis Safe's, e.g., gno, matic, eth, etc
The text was updated successfully, but these errors were encountered:
PJColombo
changed the title
Re-think part of the app's routing architecture in terms of remix routing?
Refactor part of the app's routing architecture in terms of remix routing?
Jul 5, 2022
PJColombo
changed the title
Refactor part of the app's routing architecture in terms of remix routing?
Re-think part of the app's routing architecture in terms of remix routing?
Jul 5, 2022
It would be better to refactor the contract descriptor screen, separating some of their views components to their own route, following remix routing idea and harnessing the nested routes concept where multiple routes match portions of an URL to render specific components forming a hierarchy.
A possible routing design:
/contracts?q=<contract-address>
: It renders theContractSelectorScreen
/contracts/<network-name-abbr>:<contract-address>/functions/<sig-hash>/describe
: It renders theContractDescriptorScreen
./contracts/<network-name-abbr>:<contract-address>/functions/<sig-hash>/test
: It renders theTestModal
In regards of
network-name-abbr
, we would use abbreviations similar to Gnosis Safe's, e.g.,gno
,matic
,eth
, etcThe text was updated successfully, but these errors were encountered: