@trustvc/trustvc 1.4.1 → 1.4.3

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.
@@ -16,9 +16,12 @@ const TitleEscrowInterface = {
16
16
  V4: supportInterfaceIds$1.supportInterfaceIds.TitleEscrow,
17
17
  V5: supportInterfaceIds.supportInterfaceIds.TitleEscrow
18
18
  };
19
- const fetchTitleEscrowFactoryAddress = /* @__PURE__ */ __name(async (tokenRegistry) => {
20
- return tokenRegistry.titleEscrowFactory();
21
- }, "fetchTitleEscrowFactoryAddress");
19
+ const getTitleEscrowFactoryAddress = /* @__PURE__ */ __name(async (tokenRegistryAddress, provider) => {
20
+ const Contract = ethers.getEthersContractFromProvider(provider);
21
+ const tokenRegistryAbi = ["function titleEscrowFactory() external view returns (address)"];
22
+ const tokenRegistry = new Contract(tokenRegistryAddress, tokenRegistryAbi, provider);
23
+ return await tokenRegistry.titleEscrowFactory();
24
+ }, "getTitleEscrowFactoryAddress");
22
25
  const calldata = /* @__PURE__ */ __name(async (provider, functionSignature, contractAddress, functionTypes, params) => {
23
26
  const functionSelector = ethers$1.ethers.utils.id(functionSignature).slice(0, 10);
24
27
  const encodedParams = ethers$1.ethers.utils.defaultAbiCoder.encode(functionTypes, [...params]);
@@ -67,17 +70,14 @@ const resolveTitleEscrowAddress = /* @__PURE__ */ __name(async (provider, titleE
67
70
  }
68
71
  }, "resolveTitleEscrowAddress");
69
72
  const getTitleEscrowAddress = /* @__PURE__ */ __name(async (tokenRegistryAddress, tokenId, provider, options) => {
70
- const Contract = ethers.getEthersContractFromProvider(provider);
71
- const tokenRegistryAbi = [
72
- "function titleEscrowFactory() external view returns (address)",
73
- "function ownerOf(uint256 tokenId) view returns (address)"
74
- ];
75
- const tokenRegistry = new Contract(tokenRegistryAddress, tokenRegistryAbi, provider);
76
- const titleEscrowOwner = await tokenRegistry.ownerOf(tokenId);
73
+ const titleEscrowOwner = await getDocumentOwner(tokenRegistryAddress, tokenId, provider);
77
74
  const BURN_ADDRESS = "0x000000000000000000000000000000000000dEaD";
78
75
  const isInactiveEscrow = [BURN_ADDRESS, tokenRegistryAddress].map((address) => address.toLowerCase()).includes(titleEscrowOwner.toLowerCase());
79
76
  if (!isInactiveEscrow) return titleEscrowOwner;
80
- const titleEscrowFactoryAddress = await fetchTitleEscrowFactoryAddress(tokenRegistry);
77
+ const titleEscrowFactoryAddress = await getTitleEscrowFactoryAddress(
78
+ tokenRegistryAddress,
79
+ provider
80
+ );
81
81
  return resolveTitleEscrowAddress(
82
82
  provider,
83
83
  titleEscrowFactoryAddress,
@@ -86,6 +86,12 @@ const getTitleEscrowAddress = /* @__PURE__ */ __name(async (tokenRegistryAddress
86
86
  options
87
87
  );
88
88
  }, "getTitleEscrowAddress");
89
+ const getDocumentOwner = /* @__PURE__ */ __name(async (tokenRegistryAddress, tokenId, provider) => {
90
+ const Contract = ethers.getEthersContractFromProvider(provider);
91
+ const tokenRegistryAbi = ["function ownerOf(uint256 tokenId) view returns (address)"];
92
+ const tokenRegistry = new Contract(tokenRegistryAddress, tokenRegistryAbi, provider);
93
+ return await tokenRegistry.ownerOf(tokenId);
94
+ }, "getDocumentOwner");
89
95
  const checkSupportsInterface = /* @__PURE__ */ __name(async (titleEscrowAddress, interfaceId, provider) => {
90
96
  try {
91
97
  const Contract = ethers.getEthersContractFromProvider(provider);
@@ -160,5 +166,6 @@ const fetchEndorsementChain = /* @__PURE__ */ __name(async (tokenRegistryAddress
160
166
 
161
167
  exports.TitleEscrowInterface = TitleEscrowInterface;
162
168
  exports.fetchEndorsementChain = fetchEndorsementChain;
169
+ exports.getDocumentOwner = getDocumentOwner;
163
170
  exports.getTitleEscrowAddress = getTitleEscrowAddress;
164
171
  exports.isTitleEscrowVersion = isTitleEscrowVersion;
@@ -6,17 +6,21 @@ var verify = require('../verify');
6
6
 
7
7
  var __defProp = Object.defineProperty;
8
8
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- const verifyDocument = /* @__PURE__ */ __name(async (document, rpcProviderUrl) => {
9
+ const verifyDocument = /* @__PURE__ */ __name((document, options) => {
10
+ if (typeof options === "string") {
11
+ options = { rpcProviderUrl: options };
12
+ }
10
13
  if (tradetrust.utils.isWrappedV2Document(document) || tradetrust.utils.isWrappedV3Document(document)) {
11
14
  const verify$1 = verify.verificationBuilder(verify.openAttestationVerifiers, {
12
- provider: new ethers.ethers.providers.JsonRpcProvider(rpcProviderUrl)
15
+ provider: new ethers.ethers.providers.JsonRpcProvider(options?.rpcProviderUrl)
13
16
  // Use user-provided provider URL
14
17
  });
15
18
  return verify$1(document);
16
19
  } else {
17
20
  const verify$1 = verify.verificationBuilder(verify.w3cVerifiers, {
18
- provider: new ethers.ethers.providers.JsonRpcProvider(rpcProviderUrl)
21
+ provider: new ethers.ethers.providers.JsonRpcProvider(options?.rpcProviderUrl),
19
22
  // Use user-provided provider URL
23
+ documentLoader: options?.documentLoader
20
24
  });
21
25
  return verify$1(document);
22
26
  }
@@ -21,9 +21,9 @@ const w3cSignatureIntegrity = {
21
21
  const doc = document;
22
22
  return doc.proof?.type === "BbsBlsSignature2020";
23
23
  }, "test"),
24
- verify: /* @__PURE__ */ __name(async (document) => {
24
+ verify: /* @__PURE__ */ __name(async (document, verifierOptions) => {
25
25
  const doc = document;
26
- const verificationResult = await __.verifyW3CSignature(doc);
26
+ const verificationResult = await __.verifyW3CSignature(doc, verifierOptions);
27
27
  if (verificationResult.verified) {
28
28
  return {
29
29
  type: "DOCUMENT_INTEGRITY",
@@ -27,11 +27,13 @@ const w3cCredentialStatus = {
27
27
  return false;
28
28
  }
29
29
  }, "test"),
30
- verify: /* @__PURE__ */ __name(async (document) => {
30
+ verify: /* @__PURE__ */ __name(async (document, verifierOptions) => {
31
31
  const doc = document;
32
32
  const credentialStatuses = Array.isArray(doc.credentialStatus) ? doc.credentialStatus : [doc.credentialStatus];
33
33
  const verificationResult = await Promise.all(
34
- credentialStatuses.map((cs) => w3cVc.verifyCredentialStatus(cs, cs?.type))
34
+ credentialStatuses.map(
35
+ (cs) => w3cVc.verifyCredentialStatus(cs, cs?.type, verifierOptions)
36
+ )
35
37
  );
36
38
  if (verificationResult.some((r) => r.error)) {
37
39
  return {
@@ -23,9 +23,9 @@ const w3cEmptyCredentialStatus = {
23
23
  const doc = document;
24
24
  return !!doc.credentialStatus === false || Array.isArray(doc.credentialStatus) && doc.credentialStatus.length === 0 || Object.keys(doc.credentialStatus)?.length === 0;
25
25
  }, "test"),
26
- verify: /* @__PURE__ */ __name(async (document) => {
26
+ verify: /* @__PURE__ */ __name(async (document, verifierOptions) => {
27
27
  const doc = document;
28
- const verificationResult = await w3c.verifyW3CSignature(doc);
28
+ const verificationResult = await w3c.verifyW3CSignature(doc, verifierOptions);
29
29
  if (verificationResult.verified) {
30
30
  return {
31
31
  type,
@@ -4,8 +4,8 @@ var w3cVc = require('@trustvc/w3c-vc');
4
4
 
5
5
  var __defProp = Object.defineProperty;
6
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- const verifyW3CSignature = /* @__PURE__ */ __name(async (credential) => {
8
- return w3cVc.verifyCredential(credential);
7
+ const verifyW3CSignature = /* @__PURE__ */ __name(async (credential, options) => {
8
+ return w3cVc.verifyCredential(credential, options);
9
9
  }, "verifyW3CSignature");
10
10
 
11
11
  exports.verifyW3CSignature = verifyW3CSignature;
@@ -14,9 +14,12 @@ const TitleEscrowInterface = {
14
14
  V4: supportInterfaceIds$1.TitleEscrow,
15
15
  V5: supportInterfaceIds.TitleEscrow
16
16
  };
17
- const fetchTitleEscrowFactoryAddress = /* @__PURE__ */ __name(async (tokenRegistry) => {
18
- return tokenRegistry.titleEscrowFactory();
19
- }, "fetchTitleEscrowFactoryAddress");
17
+ const getTitleEscrowFactoryAddress = /* @__PURE__ */ __name(async (tokenRegistryAddress, provider) => {
18
+ const Contract = getEthersContractFromProvider(provider);
19
+ const tokenRegistryAbi = ["function titleEscrowFactory() external view returns (address)"];
20
+ const tokenRegistry = new Contract(tokenRegistryAddress, tokenRegistryAbi, provider);
21
+ return await tokenRegistry.titleEscrowFactory();
22
+ }, "getTitleEscrowFactoryAddress");
20
23
  const calldata = /* @__PURE__ */ __name(async (provider, functionSignature, contractAddress, functionTypes, params) => {
21
24
  const functionSelector = ethers.utils.id(functionSignature).slice(0, 10);
22
25
  const encodedParams = ethers.utils.defaultAbiCoder.encode(functionTypes, [...params]);
@@ -65,17 +68,14 @@ const resolveTitleEscrowAddress = /* @__PURE__ */ __name(async (provider, titleE
65
68
  }
66
69
  }, "resolveTitleEscrowAddress");
67
70
  const getTitleEscrowAddress = /* @__PURE__ */ __name(async (tokenRegistryAddress, tokenId, provider, options) => {
68
- const Contract = getEthersContractFromProvider(provider);
69
- const tokenRegistryAbi = [
70
- "function titleEscrowFactory() external view returns (address)",
71
- "function ownerOf(uint256 tokenId) view returns (address)"
72
- ];
73
- const tokenRegistry = new Contract(tokenRegistryAddress, tokenRegistryAbi, provider);
74
- const titleEscrowOwner = await tokenRegistry.ownerOf(tokenId);
71
+ const titleEscrowOwner = await getDocumentOwner(tokenRegistryAddress, tokenId, provider);
75
72
  const BURN_ADDRESS = "0x000000000000000000000000000000000000dEaD";
76
73
  const isInactiveEscrow = [BURN_ADDRESS, tokenRegistryAddress].map((address) => address.toLowerCase()).includes(titleEscrowOwner.toLowerCase());
77
74
  if (!isInactiveEscrow) return titleEscrowOwner;
78
- const titleEscrowFactoryAddress = await fetchTitleEscrowFactoryAddress(tokenRegistry);
75
+ const titleEscrowFactoryAddress = await getTitleEscrowFactoryAddress(
76
+ tokenRegistryAddress,
77
+ provider
78
+ );
79
79
  return resolveTitleEscrowAddress(
80
80
  provider,
81
81
  titleEscrowFactoryAddress,
@@ -84,6 +84,12 @@ const getTitleEscrowAddress = /* @__PURE__ */ __name(async (tokenRegistryAddress
84
84
  options
85
85
  );
86
86
  }, "getTitleEscrowAddress");
87
+ const getDocumentOwner = /* @__PURE__ */ __name(async (tokenRegistryAddress, tokenId, provider) => {
88
+ const Contract = getEthersContractFromProvider(provider);
89
+ const tokenRegistryAbi = ["function ownerOf(uint256 tokenId) view returns (address)"];
90
+ const tokenRegistry = new Contract(tokenRegistryAddress, tokenRegistryAbi, provider);
91
+ return await tokenRegistry.ownerOf(tokenId);
92
+ }, "getDocumentOwner");
87
93
  const checkSupportsInterface = /* @__PURE__ */ __name(async (titleEscrowAddress, interfaceId, provider) => {
88
94
  try {
89
95
  const Contract = getEthersContractFromProvider(provider);
@@ -156,4 +162,4 @@ const fetchEndorsementChain = /* @__PURE__ */ __name(async (tokenRegistryAddress
156
162
  }));
157
163
  }, "fetchEndorsementChain");
158
164
 
159
- export { TitleEscrowInterface, fetchEndorsementChain, getTitleEscrowAddress, isTitleEscrowVersion };
165
+ export { TitleEscrowInterface, fetchEndorsementChain, getDocumentOwner, getTitleEscrowAddress, isTitleEscrowVersion };
@@ -4,17 +4,21 @@ import { verificationBuilder, openAttestationVerifiers, w3cVerifiers } from '../
4
4
 
5
5
  var __defProp = Object.defineProperty;
6
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- const verifyDocument = /* @__PURE__ */ __name(async (document, rpcProviderUrl) => {
7
+ const verifyDocument = /* @__PURE__ */ __name((document, options) => {
8
+ if (typeof options === "string") {
9
+ options = { rpcProviderUrl: options };
10
+ }
8
11
  if (utils.isWrappedV2Document(document) || utils.isWrappedV3Document(document)) {
9
12
  const verify = verificationBuilder(openAttestationVerifiers, {
10
- provider: new ethers.providers.JsonRpcProvider(rpcProviderUrl)
13
+ provider: new ethers.providers.JsonRpcProvider(options?.rpcProviderUrl)
11
14
  // Use user-provided provider URL
12
15
  });
13
16
  return verify(document);
14
17
  } else {
15
18
  const verify = verificationBuilder(w3cVerifiers, {
16
- provider: new ethers.providers.JsonRpcProvider(rpcProviderUrl)
19
+ provider: new ethers.providers.JsonRpcProvider(options?.rpcProviderUrl),
17
20
  // Use user-provided provider URL
21
+ documentLoader: options?.documentLoader
18
22
  });
19
23
  return verify(document);
20
24
  }
@@ -19,9 +19,9 @@ const w3cSignatureIntegrity = {
19
19
  const doc = document;
20
20
  return doc.proof?.type === "BbsBlsSignature2020";
21
21
  }, "test"),
22
- verify: /* @__PURE__ */ __name(async (document) => {
22
+ verify: /* @__PURE__ */ __name(async (document, verifierOptions) => {
23
23
  const doc = document;
24
- const verificationResult = await verifyW3CSignature(doc);
24
+ const verificationResult = await verifyW3CSignature(doc, verifierOptions);
25
25
  if (verificationResult.verified) {
26
26
  return {
27
27
  type: "DOCUMENT_INTEGRITY",
@@ -25,11 +25,13 @@ const w3cCredentialStatus = {
25
25
  return false;
26
26
  }
27
27
  }, "test"),
28
- verify: /* @__PURE__ */ __name(async (document) => {
28
+ verify: /* @__PURE__ */ __name(async (document, verifierOptions) => {
29
29
  const doc = document;
30
30
  const credentialStatuses = Array.isArray(doc.credentialStatus) ? doc.credentialStatus : [doc.credentialStatus];
31
31
  const verificationResult = await Promise.all(
32
- credentialStatuses.map((cs) => verifyCredentialStatus(cs, cs?.type))
32
+ credentialStatuses.map(
33
+ (cs) => verifyCredentialStatus(cs, cs?.type, verifierOptions)
34
+ )
33
35
  );
34
36
  if (verificationResult.some((r) => r.error)) {
35
37
  return {
@@ -21,9 +21,9 @@ const w3cEmptyCredentialStatus = {
21
21
  const doc = document;
22
22
  return !!doc.credentialStatus === false || Array.isArray(doc.credentialStatus) && doc.credentialStatus.length === 0 || Object.keys(doc.credentialStatus)?.length === 0;
23
23
  }, "test"),
24
- verify: /* @__PURE__ */ __name(async (document) => {
24
+ verify: /* @__PURE__ */ __name(async (document, verifierOptions) => {
25
25
  const doc = document;
26
- const verificationResult = await verifyW3CSignature(doc);
26
+ const verificationResult = await verifyW3CSignature(doc, verifierOptions);
27
27
  if (verificationResult.verified) {
28
28
  return {
29
29
  type,
@@ -2,8 +2,8 @@ import { verifyCredential } from '@trustvc/w3c-vc';
2
2
 
3
3
  var __defProp = Object.defineProperty;
4
4
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
- const verifyW3CSignature = /* @__PURE__ */ __name(async (credential) => {
6
- return verifyCredential(credential);
5
+ const verifyW3CSignature = /* @__PURE__ */ __name(async (credential, options) => {
6
+ return verifyCredential(credential, options);
7
7
  }, "verifyW3CSignature");
8
8
 
9
9
  export { verifyW3CSignature };
@@ -3,7 +3,7 @@ export { fetchTokenTransfers } from './fetchTokenTransfer.js';
3
3
  export { fetchEventTime, mergeTransfersV4, mergeTransfersV5, sortLogChain } from './helpers.js';
4
4
  export { getEndorsementChain } from './retrieveEndorsementChain.js';
5
5
  export { EndorsementChain, ParsedLog, TitleEscrowTransferEvent, TitleEscrowTransferEventType, TokenTransferEvent, TokenTransferEventType, TradeTrustTokenEventType, TransferBaseEvent, TransferEvent, TransferEventType, TypedEvent } from './types.js';
6
- export { TitleEscrowInterface, fetchEndorsementChain, getTitleEscrowAddress, isTitleEscrowVersion } from './useEndorsementChain.js';
6
+ export { TitleEscrowInterface, fetchEndorsementChain, getDocumentOwner, getTitleEscrowAddress, isTitleEscrowVersion } from './useEndorsementChain.js';
7
7
  import 'ethersV6';
8
8
  import '@ethersproject/abstract-provider';
9
9
  import 'ethers';
@@ -11,6 +11,7 @@ declare const TitleEscrowInterface: {
11
11
  declare const getTitleEscrowAddress: (tokenRegistryAddress: string, tokenId: string, provider: Provider | ethers.Provider, options?: {
12
12
  titleEscrowVersion?: "v4" | "v5";
13
13
  }) => Promise<string>;
14
+ declare const getDocumentOwner: (tokenRegistryAddress: string, tokenId: string, provider: Provider | ethers.Provider) => Promise<string>;
14
15
  interface TitleEscrowVersionParams {
15
16
  tokenRegistryAddress?: string;
16
17
  tokenId?: string;
@@ -21,4 +22,4 @@ interface TitleEscrowVersionParams {
21
22
  declare const isTitleEscrowVersion: ({ tokenRegistryAddress, tokenId, titleEscrowAddress, versionInterface, provider, }: TitleEscrowVersionParams) => Promise<boolean>;
22
23
  declare const fetchEndorsementChain: (tokenRegistryAddress: string, tokenId: string, provider: Provider | ethers.Provider, keyId?: string) => Promise<EndorsementChain>;
23
24
 
24
- export { TitleEscrowInterface, fetchEndorsementChain, getTitleEscrowAddress, isTitleEscrowVersion };
25
+ export { TitleEscrowInterface, fetchEndorsementChain, getDocumentOwner, getTitleEscrowAddress, isTitleEscrowVersion };
@@ -6,7 +6,7 @@ export { fetchTokenTransfers } from './endorsement-chain/fetchTokenTransfer.js';
6
6
  export { fetchEventTime, mergeTransfersV4, mergeTransfersV5, sortLogChain } from './endorsement-chain/helpers.js';
7
7
  export { getEndorsementChain } from './endorsement-chain/retrieveEndorsementChain.js';
8
8
  export { EndorsementChain, ParsedLog, TitleEscrowTransferEvent, TitleEscrowTransferEventType, TokenTransferEvent, TokenTransferEventType, TradeTrustTokenEventType, TransferBaseEvent, TransferEvent, TransferEventType, TypedEvent } from './endorsement-chain/types.js';
9
- export { TitleEscrowInterface, fetchEndorsementChain, getTitleEscrowAddress, isTitleEscrowVersion } from './endorsement-chain/useEndorsementChain.js';
9
+ export { TitleEscrowInterface, fetchEndorsementChain, getDocumentOwner, getTitleEscrowAddress, isTitleEscrowVersion } from './endorsement-chain/useEndorsementChain.js';
10
10
  export { DocumentBuilder, RenderMethod, W3CTransferableRecordsConfig, W3CVerifiableDocumentConfig } from './documentBuilder.js';
11
11
  import '@trustvc/w3c-vc';
12
12
  import '@tradetrust-tt/tt-verify/dist/types/src/types/core';
@@ -1,6 +1,14 @@
1
- import { SignedVerifiableCredential } from '@trustvc/w3c-vc';
1
+ import { SignedVerifiableCredential, DocumentLoader } from '@trustvc/w3c-vc';
2
2
  import { DocumentsToVerify, VerificationFragment } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
3
3
 
4
- declare const verifyDocument: (document: DocumentsToVerify | SignedVerifiableCredential, rpcProviderUrl: string) => Promise<VerificationFragment[]>;
4
+ type VerificationBuilderOptions = {
5
+ rpcProviderUrl?: string;
6
+ documentLoader?: DocumentLoader;
7
+ };
8
+ interface VerifyDocumentParams {
9
+ (document: DocumentsToVerify | SignedVerifiableCredential, options: string): Promise<VerificationFragment[]>;
10
+ (document: DocumentsToVerify | SignedVerifiableCredential, options?: VerificationBuilderOptions): Promise<VerificationFragment[]>;
11
+ }
12
+ declare const verifyDocument: VerifyDocumentParams;
5
13
 
6
14
  export { verifyDocument };
@@ -18,7 +18,7 @@ export { fetchTokenTransfers } from './core/endorsement-chain/fetchTokenTransfer
18
18
  export { fetchEventTime, mergeTransfersV4, mergeTransfersV5, sortLogChain } from './core/endorsement-chain/helpers.js';
19
19
  export { getEndorsementChain } from './core/endorsement-chain/retrieveEndorsementChain.js';
20
20
  export { EndorsementChain, ParsedLog, TitleEscrowTransferEvent, TitleEscrowTransferEventType, TokenTransferEvent, TokenTransferEventType, TradeTrustTokenEventType, TransferBaseEvent, TransferEvent, TransferEventType, TypedEvent } from './core/endorsement-chain/types.js';
21
- export { TitleEscrowInterface, fetchEndorsementChain, getTitleEscrowAddress, isTitleEscrowVersion } from './core/endorsement-chain/useEndorsementChain.js';
21
+ export { TitleEscrowInterface, fetchEndorsementChain, getDocumentOwner, getTitleEscrowAddress, isTitleEscrowVersion } from './core/endorsement-chain/useEndorsementChain.js';
22
22
  export { DocumentBuilder, RenderMethod, W3CTransferableRecordsConfig, W3CVerifiableDocumentConfig } from './core/documentBuilder.js';
23
23
  export { signOA } from './open-attestation/sign.js';
24
24
  export { KeyPair } from './open-attestation/types.js';
@@ -1,5 +1,7 @@
1
- import { SignedVerifiableCredential, VerificationResult } from '@trustvc/w3c-vc';
1
+ import { SignedVerifiableCredential, DocumentLoader, VerificationResult } from '@trustvc/w3c-vc';
2
2
 
3
- declare const verifyW3CSignature: (credential: SignedVerifiableCredential) => Promise<VerificationResult>;
3
+ declare const verifyW3CSignature: (credential: SignedVerifiableCredential, options?: {
4
+ documentLoader?: DocumentLoader;
5
+ }) => Promise<VerificationResult>;
4
6
 
5
7
  export { verifyW3CSignature };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustvc/trustvc",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "TrustVC library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -110,19 +110,19 @@
110
110
  }
111
111
  },
112
112
  "dependencies": {
113
- "@tradetrust-tt/dnsprove": "^2.16.0",
113
+ "@tradetrust-tt/dnsprove": "^2.17.0",
114
114
  "@tradetrust-tt/token-registry-v4": "npm:@tradetrust-tt/token-registry@^4.15.2",
115
- "@tradetrust-tt/token-registry-v5": "npm:@tradetrust-tt/token-registry@^5.1.4",
115
+ "@tradetrust-tt/token-registry-v5": "npm:@tradetrust-tt/token-registry@^5.2.0",
116
116
  "@tradetrust-tt/tradetrust": "^6.10.1",
117
117
  "@tradetrust-tt/tradetrust-utils": "^2.2.1",
118
- "@tradetrust-tt/tt-verify": "^9.3.1",
119
- "@trustvc/w3c-context": "^1.2.2",
120
- "@trustvc/w3c-credential-status": "^1.2.2",
118
+ "@tradetrust-tt/tt-verify": "^9.3.3",
119
+ "@trustvc/w3c-context": "^1.2.3",
120
+ "@trustvc/w3c-credential-status": "^1.2.3",
121
121
  "@trustvc/w3c-issuer": "^1.2.1",
122
- "@trustvc/w3c-vc": "^1.2.4",
122
+ "@trustvc/w3c-vc": "^1.2.7",
123
123
  "did-resolver": "^4.1.0",
124
- "ethers": "^5.7.2",
125
- "ethersV6": "npm:ethers@^6.13.5",
124
+ "ethers": "^5.8.0",
125
+ "ethersV6": "npm:ethers@^6.13.6",
126
126
  "js-sha3": "^0.9.3",
127
127
  "ts-chacha20": "^1.2.0",
128
128
  "web-did-resolver": "^2.0.27"
@@ -162,10 +162,10 @@
162
162
  "vitest": "^1.6.0"
163
163
  },
164
164
  "overrides": {
165
- "ethers": "^5.7.2"
165
+ "ethers": "^5.8.0"
166
166
  },
167
167
  "peerDependencies": {
168
- "ethers": "^5.7.2"
168
+ "ethers": "^5.8.0"
169
169
  },
170
170
  "optionalDependencies": {
171
171
  "@rollup/rollup-linux-x64-gnu": "~4.28.0"