Skip to content

Commit

Permalink
Allow to instantiate cheqd core modules (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn authored Nov 15, 2024
1 parent b86814e commit e297fa2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
6 changes: 6 additions & 0 deletions packages/cheqd-blockchain-modules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @docknetwork/cheqd-blockchain-modules

## 0.7.0

### Minor Changes

- Allow to instantiate `CheqdCoreModules`

## 0.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion 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.6.0",
"version": "0.7.0",
"type": "module",
"license": "MIT",
"main": "./dist/esm/index.js",
Expand Down
23 changes: 14 additions & 9 deletions packages/cheqd-blockchain-modules/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ import CheqdPSModule from './offchain-signatures/ps';
// import CheqdTrustRegistryModule from './trust-registry/module';

export class CheqdCoreModules extends AbstractCoreModules {
// static AccumulatorModule = CheqdAccumulatorModule;

// static AnchorModule = CheqdAnchorModule;
static get ModuleMap() {
return {
...super.ModuleMap,
AccumulatorModule: { key: 'accumulator', optional: true },
StatusListCredentialModule: {
key: 'statusListCredential',
optional: true,
},
TrustRegistryModule: { key: 'trustRegistry', optional: true },
};
}

static AttestModule = CheqdAttestModule;

Expand All @@ -43,12 +51,9 @@ export {
CheqdBlobModule,
CheqdOffchainSignaturesModule,
// CheqdAccumulatorModule,
// CheqdAnchorModule,
// ,
// CheqdOffchainSignaturesModule,
// CheqdBBSModule,
// CheqdBBSPlusModule,
// CheqdPSModule,
CheqdBBSModule,
CheqdBBSPlusModule,
CheqdPSModule,
// CheqdStatusListCredentialModule,
// CheqdTrustRegistryModule,
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import {
import { MultiApiOffchainSignaturesModule } from "@docknetwork/credential-sdk/modules";
import generateOffchainSignaturesModuleTests from "@docknetwork/credential-sdk/modules/tests/offchain-signatures-module";
import { faucet } from "./constants";
import { CheqdOffchainSignaturesModule, CheqdDIDModule } from "../src";
import {
CheqdOffchainSignaturesModule,
CheqdDIDModule,
CheqdCoreModules,
} from "../src";
import { MultiApiDIDModule } from "@docknetwork/credential-sdk/modules";
import CheqdBBSModule from "../src/offchain-signatures/bbs";
import CheqdBBSPlusModule from "../src/offchain-signatures/bbs-plus";
Expand Down

0 comments on commit e297fa2

Please sign in to comment.