Skip to content

Commit

Permalink
Align with the latest cheqd node version (3.1.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Jan 13, 2025
1 parent 0df7786 commit 4b36c22
Show file tree
Hide file tree
Showing 20 changed files with 138 additions and 163 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cheqd-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
env:
CHEQD_MNEMONIC: "steak come surprise obvious remain black trouble measure design volume retreat float coach amused match album moment radio stuff crack orphan ranch dose endorse"
IMAGE_TAG: 3.0.1
IMAGE_TAG: 3.1.1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down
9 changes: 9 additions & 0 deletions examples/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @docknetwork/sdk-examples

## 0.6.9

### Patch Changes

- Updated dependencies
- @docknetwork/credential-sdk@0.23.0
- @docknetwork/dock-blockchain-api@0.9.1
- @docknetwork/dock-blockchain-modules@0.12.1

## 0.6.8

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@docknetwork/sdk-examples",
"private": true,
"type": "module",
"version": "0.6.8",
"version": "0.6.9",
"scripts": {
"bbs-dock-example": "babel-node ./bbs-dock.js",
"claim-deduction-example": "babel-node ./claim-deduction.js",
Expand All @@ -19,9 +19,9 @@
"lint": "eslint \"*.js\""
},
"dependencies": {
"@docknetwork/credential-sdk": "0.22.0",
"@docknetwork/dock-blockchain-api": "0.9.0",
"@docknetwork/dock-blockchain-modules": "0.12.0"
"@docknetwork/credential-sdk": "0.23.0",
"@docknetwork/dock-blockchain-api": "0.9.1",
"@docknetwork/dock-blockchain-modules": "0.12.1"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/cheqd-blockchain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @docknetwork/cheqd-blockchain-api

## 0.18.0

### Minor Changes

- Align with the latest `cheqd` node version (`3.1.1`)

### Patch Changes

- Updated dependencies
- @docknetwork/credential-sdk@0.23.0

## 0.17.0

- Implementation of the `cheqd` migration and the associated identifier mappers.
Expand Down
4 changes: 2 additions & 2 deletions packages/cheqd-blockchain-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/cheqd-blockchain-api",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"main": "./dist/esm/index.js",
"type": "module",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"@cheqd/sdk": "cjs",
"@docknetwork/credential-sdk": "0.22.0"
"@docknetwork/credential-sdk": "0.23.0"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/cheqd-blockchain-api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ export class CheqdAPI extends AbstractApiProvider {
*/
async disconnect() {
this.ensureInitialized();

delete this.sdk;

return this;
Expand All @@ -181,6 +180,7 @@ export class CheqdAPI extends AbstractApiProvider {
* @returns {Promise<Uint8Array>}
*/
async stateChangeBytes(method, payload) {
this.ensureInitialized();
const { [method]: Payloads } = this.constructor.Payloads;
if (Payloads == null) {
throw new Error(
Expand Down Expand Up @@ -212,6 +212,7 @@ export class CheqdAPI extends AbstractApiProvider {
* @returns {Promise<*>}
*/
async signAndSend(tx, { from, fee, memo } = {}) {
this.ensureInitialized();
const { PayloadWrappers, Prefixes, Fees } = this.constructor;
const { typeUrl } = tx;

Expand Down
11 changes: 11 additions & 0 deletions packages/cheqd-blockchain-modules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @docknetwork/cheqd-blockchain-modules

## 0.15.0

### Minor Changes

- Align with the latest `cheqd` node version (`3.1.1`)

### Patch Changes

- Updated dependencies
- @docknetwork/credential-sdk@0.23.0

## 0.14.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/cheqd-blockchain-modules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/cheqd-blockchain-modules",
"version": "0.14.0",
"version": "0.15.0",
"type": "module",
"license": "MIT",
"main": "./dist/esm/index.js",
Expand Down Expand Up @@ -33,7 +33,7 @@
"node": ">=18.0.0"
},
"dependencies": {
"@docknetwork/credential-sdk": "0.22.0"
"@docknetwork/credential-sdk": "0.23.0"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
Expand All @@ -42,7 +42,7 @@
"@babel/plugin-syntax-import-attributes": "^7.25.6",
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
"@babel/preset-env": "^7.24.3",
"@docknetwork/cheqd-blockchain-api": "0.17.0",
"@docknetwork/cheqd-blockchain-api": "0.18.0",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^24.0.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/credential-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @docknetwork/credential-sdk

## 0.23.0

### Minor Changes

- Align with the latest `cheqd` node version (`3.1.1`)

## 0.22.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/credential-sdk",
"version": "0.22.0",
"version": "0.23.0",
"license": "MIT",
"type": "module",
"files": [
Expand Down
Loading

0 comments on commit 4b36c22

Please sign in to comment.