From 4de4b30ed92387c46c38c68b0d88f0ff6627dd02 Mon Sep 17 00:00:00 2001 From: Valentine Date: Fri, 28 Jun 2024 11:04:53 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81hanged=20stakingAssetId=20type=20(#51)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * сhanged stakingAssetId type * сhanged stakingAssetId type * pnpm changeset version --- npm/CHANGELOG.md | 6 ++++++ npm/package.json | 2 +- npm/src/json.ts | 9 +++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/npm/CHANGELOG.md b/npm/CHANGELOG.md index 93ce034..be85042 100644 --- a/npm/CHANGELOG.md +++ b/npm/CHANGELOG.md @@ -1,5 +1,11 @@ # @penumbra-labs/registry +## 9.1.0 + +### Minor Changes + +- b5726c2: Changed stakingAssetId type + ## 9.0.0 ### Major Changes diff --git a/npm/package.json b/npm/package.json index 255af38..b9f5fc0 100644 --- a/npm/package.json +++ b/npm/package.json @@ -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", diff --git a/npm/src/json.ts b/npm/src/json.ts index 6c1406c..11a44bb 100644 --- a/npm/src/json.ts +++ b/npm/src/json.ts @@ -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 { @@ -49,4 +51,7 @@ export const allJsonRegistries: Record = { 'penumbra-testnet-deimos-8': Deimos8, }; -export const registryGlobals = GlobalsJson; +export const registryGlobals: RegistryGlobals = { + ...GlobalsJson, + stakingAssetId: new AssetId({ inner: base64ToUint8Array(GlobalsJson.stakingAssetId) }), +};