This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
Support non-mainnet chains #19
kevinhalliday
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are two approaches we could take. I suggest we take them in sequence.
Right now we support just one provider url. We assume that url to represent mainnet. With excercise that assumption a few places in code, but not many. Instead, we should allow users to provider any rpc url, and infer a single, constant chain id from that. This would be quick to implement.
The above approach would still enforce users can only use a single chain at a time. So switching chains while using a dapp would continue not to work. We could support multiple chains with the following changes:
Beta Was this translation helpful? Give feedback.
All reactions