From 3ea58d9efd8a7f6e76e6716698cfeb03af29858c Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 31 Oct 2024 16:06:29 -0400 Subject: [PATCH 1/2] feat: add base32 getters to udi class --- src/utils/Udi.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/utils/Udi.ts b/src/utils/Udi.ts index 6d8f438..d840946 100644 --- a/src/utils/Udi.ts +++ b/src/utils/Udi.ts @@ -145,6 +145,16 @@ class Udi { get rootHash(): string | null { return this._rootHash ? this._rootHash.toString('hex') : null; } + + // Getter for storeId as a hex string + get storeIdBase32(): string { + return this.bufferToString(this._storeId, 'base32') ; + } + + // Getter for rootHash as a hex string + get rootHashBase32(): string | null { + return this._rootHash ? this.bufferToString(this._rootHash, 'base32') : null; + } } export { Udi }; From ee3e2518d911f46148c560427dfacf5343e9e7a8 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 31 Oct 2024 16:07:14 -0400 Subject: [PATCH 2/2] chore(release): 0.0.1-alpha.180 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61597a2..b53fcc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.180](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.179...v0.0.1-alpha.180) (2024-10-31) + + +### Features + +* add base32 getters to udi class ([3ea58d9](https://github.com/DIG-Network/dig-chia-sdk/commit/3ea58d9efd8a7f6e76e6716698cfeb03af29858c)) + ### [0.0.1-alpha.179](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.178...v0.0.1-alpha.179) (2024-10-31) diff --git a/package-lock.json b/package-lock.json index 07061bb..7096c0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.179", + "version": "0.0.1-alpha.180", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.179", + "version": "0.0.1-alpha.180", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.29", diff --git a/package.json b/package.json index c8c06b5..77b6c5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.179", + "version": "0.0.1-alpha.180", "description": "", "type": "commonjs", "main": "./dist/index.js",