Skip to content

Commit

Permalink
Merge pull request #168 from DIG-Network/release/v0.0.1-alpha.180
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.180
  • Loading branch information
MichaelTaylor3D authored Oct 31, 2024
2 parents 155f2bf + ee3e251 commit 929d71b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 10 additions & 0 deletions src/utils/Udi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit 929d71b

Please sign in to comment.