@trustvc/trustvc 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ var tokenRegistryV4$1 = require('@tradetrust-tt/token-registry-v4');
|
|
|
8
8
|
var tokenRegistryV5$1 = require('@tradetrust-tt/token-registry-v5');
|
|
9
9
|
var tokenRegistryV4 = require('../token-registry-v4');
|
|
10
10
|
var tokenRegistryV5 = require('../token-registry-v5');
|
|
11
|
-
var
|
|
11
|
+
var utils = require('../utils');
|
|
12
12
|
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
14
14
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -181,7 +181,7 @@ class DocumentBuilder {
|
|
|
181
181
|
// Private helper method to verify that the token registry supports the required interface for transferable records.
|
|
182
182
|
async verifyTokenRegistry() {
|
|
183
183
|
const chainId = this.document.credentialStatus.tokenNetwork.chainId;
|
|
184
|
-
if (!(chainId in
|
|
184
|
+
if (!(chainId in utils.SUPPORTED_CHAINS)) {
|
|
185
185
|
throw new Error(`Unsupported Chain: Chain ID ${chainId} is not supported.`);
|
|
186
186
|
}
|
|
187
187
|
try {
|
|
@@ -6,7 +6,7 @@ import { constants } from '@tradetrust-tt/token-registry-v4';
|
|
|
6
6
|
import { constants as constants$1 } from '@tradetrust-tt/token-registry-v5';
|
|
7
7
|
import { v4Contracts } from '../token-registry-v4';
|
|
8
8
|
import { v5Contracts } from '../token-registry-v5';
|
|
9
|
-
import { SUPPORTED_CHAINS } from '
|
|
9
|
+
import { SUPPORTED_CHAINS } from '../utils';
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
12
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustvc/trustvc",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "TrustVC library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
|
-
"@tradetrust-tt/dnsprove": "^2.
|
|
113
|
+
"@tradetrust-tt/dnsprove": "^2.18.0",
|
|
114
114
|
"@tradetrust-tt/ethers-aws-kms-signer": "^2.1.4",
|
|
115
115
|
"@tradetrust-tt/token-registry-v4": "npm:@tradetrust-tt/token-registry@^4.16.0",
|
|
116
|
-
"@tradetrust-tt/token-registry-v5": "npm:@tradetrust-tt/token-registry@^5.
|
|
116
|
+
"@tradetrust-tt/token-registry-v5": "npm:@tradetrust-tt/token-registry@^5.5.0",
|
|
117
117
|
"@tradetrust-tt/tradetrust": "^6.10.2",
|
|
118
|
-
"@tradetrust-tt/tradetrust-utils": "^2.
|
|
119
|
-
"@tradetrust-tt/tt-verify": "^9.
|
|
118
|
+
"@tradetrust-tt/tradetrust-utils": "^2.4.1",
|
|
119
|
+
"@tradetrust-tt/tt-verify": "^9.5.1",
|
|
120
120
|
"@trustvc/w3c-context": "^1.2.13",
|
|
121
121
|
"@trustvc/w3c-credential-status": "^1.2.13",
|
|
122
122
|
"@trustvc/w3c-issuer": "^1.2.4",
|