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

Add typescript library #12

Merged
merged 5 commits into from
Apr 16, 2024
Merged

Add typescript library #12

merged 5 commits into from
Apr 16, 2024

Conversation

grod220
Copy link
Contributor

@grod220 grod220 commented Apr 16, 2024

Meant to be consumed by typescript codebases. Provides a helper class that handles typing + fetching + caching for the registry. Example:

import { ChainRegistryClient } from '@penumbra-labs/regisry';

const client = new ChainRegistryClient()

const { assetById, chainId, rpcs, ibcConfig } = await client.registry("penumbra-testnet-deimos-6")

Likely needs to be expanded in the future with more utility functions. Published to npm as @penumbra-labs/registry.

@grod220 grod220 merged commit fc2ec74 into main Apr 16, 2024
5 checks passed
@grod220 grod220 deleted the npm branch April 16, 2024 19:57
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

Successfully merging this pull request may close these issues.

1 participant