Skip to content

Commit

Permalink
сhanged stakingAssetId type (#51)
Browse files Browse the repository at this point in the history
* сhanged stakingAssetId type

* сhanged stakingAssetId type

* pnpm changeset version
  • Loading branch information
Valentine1898 authored Jun 28, 2024
1 parent ec2dbda commit 4de4b30
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 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

## 9.1.0

### Minor Changes

- b5726c2: Changed stakingAssetId type

## 9.0.0

### Major 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": "9.0.0",
"version": "9.1.0",
"description": "Chain and asset registry for Penumbra",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
9 changes: 7 additions & 2 deletions npm/src/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import * as Deimos8 from '../../registry/chains/penumbra-testnet-deimos-8.json';
import * as GlobalsJson from '../../registry/globals.json';

import { Base64AssetId, Chain, Rpc } from './registry';
import { base64ToUint8Array } from './utils/base64';
import { AssetId } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';

export interface RegistryGlobals {
rpcs: Rpc[];
frontends: string[];
stakingAssetId: string;
stakingAssetId: AssetId;
}

export interface JsonRegistry {
Expand Down Expand Up @@ -49,4 +51,7 @@ export const allJsonRegistries: Record<string, JsonRegistry> = {
'penumbra-testnet-deimos-8': Deimos8,
};

export const registryGlobals = GlobalsJson;
export const registryGlobals: RegistryGlobals = {
...GlobalsJson,
stakingAssetId: new AssetId({ inner: base64ToUint8Array(GlobalsJson.stakingAssetId) }),
};

0 comments on commit 4de4b30

Please sign in to comment.