hypha-dao / hashed-wallet

Hashed Wallet
MIT License
3 stars 3 forks source link

Fetch Chain Endpoint Data #167

Open n13 opened 1 year ago

n13 commented 1 year ago

Spec

[TBD] Either access Github, or clone Github and access the cloned data directly

Or else store this data in Firebase or AWS, or even on the Telos chain for decentralized storage. - it won't update frequently so not really needed to have instant update, or automatic config changes.

Data format

See below - resources

Each healine - e.g. "Polkadot" is in its own file. Kusama is another file.

Logos / graphics are in a separate directory /ui/

I have not reviewed all the dev networks and options in detail - I don't think they are very important, as long as developers can add their own custom endpoint.

Resources

Polkadot App

Run Polkadot app locally -works perfectly: https://github.com/polkadot-js/apps/

Configuration (all endpoints, logos, etc)

Apps configuration:

This contains an explanation of this entire section of the Polkadot apps It also contains all data we need to switch chains.

https://github.com/polkadot-js/apps/tree/master/packages/apps-config

Production Chains Polkadot https://github.com/polkadot-js/apps/blob/master/packages/apps-config/src/endpoints/productionRelayPolkadot.ts

Kusama https://github.com/polkadot-js/apps/blob/master/packages/apps-config/src/endpoints/productionRelayKusama.ts

And many others thrown in there

Chain logos (graphics for UX): https://github.com/polkadot-js/apps/tree/master/packages/apps-config/src/ui/logos/chains

They seem to be tied to the chain name - same filename.

I am not sure they're all there.