Skip to content

Commit 929d71b

Browse files
Merge pull request #168 from DIG-Network/release/v0.0.1-alpha.180
Release/v0.0.1 alpha.180
2 parents 155f2bf + ee3e251 commit 929d71b

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
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.
44

5+
### [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)
6+
7+
8+
### Features
9+
10+
* add base32 getters to udi class ([3ea58d9](https://github.com/DIG-Network/dig-chia-sdk/commit/3ea58d9efd8a7f6e76e6716698cfeb03af29858c))
11+
512
### [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)
613

714

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dignetwork/dig-sdk",
3-
"version": "0.0.1-alpha.179",
3+
"version": "0.0.1-alpha.180",
44
"description": "",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/utils/Udi.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ class Udi {
145145
get rootHash(): string | null {
146146
return this._rootHash ? this._rootHash.toString('hex') : null;
147147
}
148+
149+
// Getter for storeId as a hex string
150+
get storeIdBase32(): string {
151+
return this.bufferToString(this._storeId, 'base32') ;
152+
}
153+
154+
// Getter for rootHash as a hex string
155+
get rootHashBase32(): string | null {
156+
return this._rootHash ? this.bufferToString(this._rootHash, 'base32') : null;
157+
}
148158
}
149159

150160
export { Udi };

0 commit comments

Comments
 (0)