Skip to content

Commit

Permalink
Expose all ts interfaces (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 authored Apr 17, 2024
1 parent 89c262f commit fa61d0e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions npm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @penumbra-labs/registry

## 2.0.0

### Major Changes

- Expose more interfaces + change method name

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@penumbra-labs/registry",
"version": "1.1.0",
"version": "2.0.0",
"description": "Chain and asset registry for Penumbra",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
8 changes: 4 additions & 4 deletions npm/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ export interface Registry {
assetById: Record<Jsonified<AssetId>, Metadata>;
}

interface IbcConfig {
export interface IbcConfig {
addressPrefix: string;
chainId: string;
ibcChannel: string;
}

interface Rpc {
export interface Rpc {
name: string;
url: string;
images: Image[];
}

interface Image {
export interface Image {
png?: string;
svg?: string;
}
Expand All @@ -39,7 +39,7 @@ export class ChainRegistryClient {
this.github = new GithubFetcher();
}

async registry(chainId: string): Promise<Registry> {
async get(chainId: string): Promise<Registry> {
return this.github.fetchRegistryData(chainId);
}

Expand Down
3 changes: 1 addition & 2 deletions npm/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { ChainRegistryClient } from './client';
export type { Registry } from './client';
export * from './client';

0 comments on commit fa61d0e

Please sign in to comment.