Agoric / ui-kit

Components and tools for building graphical UIs
https://ui-kit-dwm.pages.dev/
Apache License 2.0
3 stars 3 forks source link

Integrate `NetworkDropdown` and `AgoricProvider` more closely #96

Closed LuqiPan closed 2 months ago

LuqiPan commented 3 months ago

What is the Problem Being Solved?

Paraphrased from @samsiegart

Currently when you select a config from the NetworkDropdown it will write to local storage and override AgoricProvider's defaultNetworkConfig.

I think we could make this better though. Maybe have the provider take networkConfigs as a list, change it to defaultChainId which references one of the network configs, and have networkDropdown read from networkConfigs to show the options.

Description of the Design

Outlined in above section

Security Considerations

N/A

Scaling Considerations

N/A

Test Plan

N/A