hyperweb-io / hyperweb-io/telescope
multiplexing versions
Open
- Dominant language
- TypeScript
- Stars
- 154
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
In block explorers such as ping.pub, we need to write code that multiplexes versions.
[(see example from ping.pub)](https://github.com/ping-pub/explorer/blob/b0eca720e89b6ee2abe05e205c328b6d7eefae3b/src/libs/fetch.js#L97)
```js
const getProposalFunction = (sdk_version) => {
switch(sdk_version) {
case '0.46':
return client.cosmos.gov.v1.proposals;
default:
return client.cosmos.gov.v1beta1.proposals;
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.