Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible improvement #35

Open
tien opened this issue May 16, 2023 · 1 comment
Open

Possible improvement #35

tien opened this issue May 16, 2023 · 1 comment
Assignees

Comments

@tien
Copy link
Member

tien commented May 16, 2023

  • Expose simple REST endpoint accessible both via our internal ID or the chain genesis hash i.e. https://chaindata.talisman.xyz/0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e
  • REST endpoint for exposing static assets
  • Strongly typed TypeScript library similar to https://viem.sh/

Export

import rawChains from "./chain.json"

// Some TypeScript magic ...

Import

import {polkadot} from "@talismn/chaindata"

console.log(polkadot.name) // fully typed as string literal "Polkadot"
@tien tien assigned alecdwm, chidg and jonathanpdunne and unassigned chidg and jonathanpdunne May 16, 2023
@tien
Copy link
Member Author

tien commented May 16, 2023

cc @chidg @jonathanpdunne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants