diff --git a/package.json b/package.json index de4cbdec7..1ed89e9e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "root", - "version": "0.10.0", + "version": "0.11.0", "private": true, "workspaces": [ "packages/*", diff --git a/packages/cheqd-blockchain-api/CHANGELOG.md b/packages/cheqd-blockchain-api/CHANGELOG.md index d55034947..1a3bab207 100644 --- a/packages/cheqd-blockchain-api/CHANGELOG.md +++ b/packages/cheqd-blockchain-api/CHANGELOG.md @@ -1,5 +1,11 @@ # @docknetwork/cheqd-blockchain-api +## 0.7.0 + +### Minor Changes + +- Fix `cheqd` import + ## 0.6.0 ### Minor Changes diff --git a/packages/cheqd-blockchain-api/package.json b/packages/cheqd-blockchain-api/package.json index 205bce7e6..8bf27c4ef 100644 --- a/packages/cheqd-blockchain-api/package.json +++ b/packages/cheqd-blockchain-api/package.json @@ -1,6 +1,6 @@ { "name": "@docknetwork/cheqd-blockchain-api", - "version": "0.6.0", + "version": "0.7.0", "license": "MIT", "main": "./dist/esm/index.js", "type": "module", diff --git a/packages/cheqd-blockchain-api/src/index.js b/packages/cheqd-blockchain-api/src/index.js index e44c22027..89f5bfb45 100644 --- a/packages/cheqd-blockchain-api/src/index.js +++ b/packages/cheqd-blockchain-api/src/index.js @@ -16,11 +16,11 @@ import { MsgUpdateDidDocPayload, MsgDeactivateDidDocPayload, protobufPackage as didProtobufPackage, -} from '@cheqd/ts-proto/cheqd/did/v2/index'; +} from '@cheqd/ts-proto/cheqd/did/v2/index.js'; import { MsgCreateResourcePayload, protobufPackage as resourceProtobufPackage, -} from '@cheqd/ts-proto/cheqd/resource/v2/index'; +} from '@cheqd/ts-proto/cheqd/resource/v2/index.js'; import { DIDRef, NamespaceDid } from '@docknetwork/credential-sdk/types'; import { TypedEnum } from '@docknetwork/credential-sdk/types/generic'; @@ -69,13 +69,14 @@ export class CheqdAPI extends AbstractApiProvider { Object.values(CheqdNetwork), )}\``, ); + } else if (!mnemonic) { + throw new Error('`mnemonic` must be provided'); } this.ensureNotInitialized(); - const wallet = mnemonic - && (await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { - prefix: 'cheqd', - })); + const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { + prefix: 'cheqd', + }); const options = { modules: [DIDModule, ResourceModule], rpcUrl: url, diff --git a/packages/cheqd-blockchain-modules/CHANGELOG.md b/packages/cheqd-blockchain-modules/CHANGELOG.md index 627efd4b7..846f68612 100644 --- a/packages/cheqd-blockchain-modules/CHANGELOG.md +++ b/packages/cheqd-blockchain-modules/CHANGELOG.md @@ -1,5 +1,11 @@ # @docknetwork/cheqd-blockchain-modules +## 0.7.1 + +### Patch Changes + +- Fix `cheqd` import + ## 0.7.0 ### Minor Changes diff --git a/packages/cheqd-blockchain-modules/package.json b/packages/cheqd-blockchain-modules/package.json index 8c9430346..53c85b05e 100644 --- a/packages/cheqd-blockchain-modules/package.json +++ b/packages/cheqd-blockchain-modules/package.json @@ -1,6 +1,6 @@ { "name": "@docknetwork/cheqd-blockchain-modules", - "version": "0.7.0", + "version": "0.7.1", "type": "module", "license": "MIT", "main": "./dist/esm/index.js", @@ -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.6.0", + "@docknetwork/cheqd-blockchain-api": "0.7.0", "@rollup/plugin-alias": "^4.0.2", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^24.0.0",