@trustvc/trustvc 1.2.8 → 1.2.10

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.
package/dist/cjs/index.js CHANGED
@@ -1,11 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var supportInterfaceIds = require('./token-registry-v4/supportInterfaceIds');
4
- var supportInterfaceIds$1 = require('./token-registry-v5/supportInterfaceIds');
5
3
  var tokenRegistryV4 = require('./token-registry-v4');
6
4
  var tokenRegistryV5 = require('./token-registry-v5');
7
- var contracts = require('@tradetrust-tt/token-registry-v4/contracts');
8
- var contracts$1 = require('@tradetrust-tt/token-registry-v5/contracts');
9
5
  var typedContractMethod = require('./token-registry-v5/typedContractMethod');
10
6
  var core = require('./core');
11
7
  var openAttestation = require('./open-attestation');
@@ -14,55 +10,76 @@ var w3c = require('./w3c');
14
10
  var utils = require('./utils');
15
11
  var dnsprove = require('./dnsprove');
16
12
 
17
- function _interopNamespace(e) {
18
- if (e && e.__esModule) return e;
19
- var n = Object.create(null);
20
- if (e) {
21
- Object.keys(e).forEach(function (k) {
22
- if (k !== 'default') {
23
- var d = Object.getOwnPropertyDescriptor(e, k);
24
- Object.defineProperty(n, k, d.get ? d : {
25
- enumerable: true,
26
- get: function () { return e[k]; }
27
- });
28
- }
29
- });
30
- }
31
- n.default = e;
32
- return Object.freeze(n);
33
- }
34
13
 
35
- var contracts__namespace = /*#__PURE__*/_interopNamespace(contracts);
36
- var contracts__namespace$1 = /*#__PURE__*/_interopNamespace(contracts$1);
37
14
 
38
-
39
-
40
- Object.defineProperty(exports, "v4SupportInterfaceIds", {
15
+ Object.defineProperty(exports, "v4ComputeInterfaceId", {
41
16
  enumerable: true,
42
- get: function () { return supportInterfaceIds.supportInterfaceIds; }
17
+ get: function () { return tokenRegistryV4.v4ComputeInterfaceId; }
43
18
  });
44
- Object.defineProperty(exports, "v5SupportInterfaceIds", {
19
+ Object.defineProperty(exports, "v4ComputeTitleEscrowAddress", {
45
20
  enumerable: true,
46
- get: function () { return supportInterfaceIds$1.supportInterfaceIds; }
21
+ get: function () { return tokenRegistryV4.v4ComputeTitleEscrowAddress; }
47
22
  });
48
23
  Object.defineProperty(exports, "v4ContractAddress", {
49
24
  enumerable: true,
50
25
  get: function () { return tokenRegistryV4.v4ContractAddress; }
51
26
  });
27
+ Object.defineProperty(exports, "v4Contracts", {
28
+ enumerable: true,
29
+ get: function () { return tokenRegistryV4.v4Contracts; }
30
+ });
31
+ Object.defineProperty(exports, "v4EncodeInitParams", {
32
+ enumerable: true,
33
+ get: function () { return tokenRegistryV4.v4EncodeInitParams; }
34
+ });
35
+ Object.defineProperty(exports, "v4GetEventFromReceipt", {
36
+ enumerable: true,
37
+ get: function () { return tokenRegistryV4.v4GetEventFromReceipt; }
38
+ });
52
39
  Object.defineProperty(exports, "v4RoleHash", {
53
40
  enumerable: true,
54
41
  get: function () { return tokenRegistryV4.v4RoleHash; }
55
42
  });
43
+ Object.defineProperty(exports, "v4SupportInterfaceIds", {
44
+ enumerable: true,
45
+ get: function () { return tokenRegistryV4.v4SupportInterfaceIds; }
46
+ });
47
+ Object.defineProperty(exports, "v4Utils", {
48
+ enumerable: true,
49
+ get: function () { return tokenRegistryV4.v4Utils; }
50
+ });
51
+ Object.defineProperty(exports, "v5ComputeInterfaceId", {
52
+ enumerable: true,
53
+ get: function () { return tokenRegistryV5.v5ComputeInterfaceId; }
54
+ });
56
55
  Object.defineProperty(exports, "v5ContractAddress", {
57
56
  enumerable: true,
58
57
  get: function () { return tokenRegistryV5.v5ContractAddress; }
59
58
  });
59
+ Object.defineProperty(exports, "v5Contracts", {
60
+ enumerable: true,
61
+ get: function () { return tokenRegistryV5.v5Contracts; }
62
+ });
63
+ Object.defineProperty(exports, "v5EncodeInitParams", {
64
+ enumerable: true,
65
+ get: function () { return tokenRegistryV5.v5EncodeInitParams; }
66
+ });
67
+ Object.defineProperty(exports, "v5GetEventFromReceipt", {
68
+ enumerable: true,
69
+ get: function () { return tokenRegistryV5.v5GetEventFromReceipt; }
70
+ });
60
71
  Object.defineProperty(exports, "v5RoleHash", {
61
72
  enumerable: true,
62
73
  get: function () { return tokenRegistryV5.v5RoleHash; }
63
74
  });
64
- exports.v4Contracts = contracts__namespace;
65
- exports.v5Contracts = contracts__namespace$1;
75
+ Object.defineProperty(exports, "v5SupportInterfaceIds", {
76
+ enumerable: true,
77
+ get: function () { return tokenRegistryV5.v5SupportInterfaceIds; }
78
+ });
79
+ Object.defineProperty(exports, "v5Utils", {
80
+ enumerable: true,
81
+ get: function () { return tokenRegistryV5.v5Utils; }
82
+ });
66
83
  Object.defineProperty(exports, "TypedContractMethod", {
67
84
  enumerable: true,
68
85
  get: function () { return typedContractMethod.TypedContractMethod; }
@@ -2,8 +2,31 @@
2
2
 
3
3
  var roleHash = require('./roleHash');
4
4
  var contractAddress = require('./contractAddress');
5
+ var supportInterfaceIds = require('./supportInterfaceIds');
6
+ var contracts = require('./contracts');
7
+ var utils = require('./utils');
5
8
  var tokenRegistryV4 = require('@tradetrust-tt/token-registry-v4');
6
9
 
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n.default = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var contracts__namespace = /*#__PURE__*/_interopNamespace(contracts);
29
+
7
30
 
8
31
 
9
32
  Object.defineProperty(exports, "v4RoleHash", {
@@ -14,6 +37,27 @@ Object.defineProperty(exports, "v4ContractAddress", {
14
37
  enumerable: true,
15
38
  get: function () { return contractAddress.contractAddress; }
16
39
  });
40
+ Object.defineProperty(exports, "v4SupportInterfaceIds", {
41
+ enumerable: true,
42
+ get: function () { return supportInterfaceIds.supportInterfaceIds; }
43
+ });
44
+ exports.v4Contracts = contracts__namespace;
45
+ Object.defineProperty(exports, "v4ComputeInterfaceId", {
46
+ enumerable: true,
47
+ get: function () { return utils.computeInterfaceId; }
48
+ });
49
+ Object.defineProperty(exports, "v4ComputeTitleEscrowAddress", {
50
+ enumerable: true,
51
+ get: function () { return utils.computeTitleEscrowAddress; }
52
+ });
53
+ Object.defineProperty(exports, "v4EncodeInitParams", {
54
+ enumerable: true,
55
+ get: function () { return utils.encodeInitParams; }
56
+ });
57
+ Object.defineProperty(exports, "v4GetEventFromReceipt", {
58
+ enumerable: true,
59
+ get: function () { return utils.getEventFromReceipt; }
60
+ });
17
61
  Object.defineProperty(exports, "constants", {
18
62
  enumerable: true,
19
63
  get: function () { return tokenRegistryV4.constants; }
@@ -22,3 +66,7 @@ Object.defineProperty(exports, "utils", {
22
66
  enumerable: true,
23
67
  get: function () { return tokenRegistryV4.utils; }
24
68
  });
69
+ Object.defineProperty(exports, "v4Utils", {
70
+ enumerable: true,
71
+ get: function () { return tokenRegistryV4.utils; }
72
+ });
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var tokenRegistryV4 = require('@tradetrust-tt/token-registry-v4');
4
+
5
+ const { computeTitleEscrowAddress, encodeInitParams, getEventFromReceipt, computeInterfaceId } = tokenRegistryV4.utils;
6
+
7
+ exports.computeInterfaceId = computeInterfaceId;
8
+ exports.computeTitleEscrowAddress = computeTitleEscrowAddress;
9
+ exports.encodeInitParams = encodeInitParams;
10
+ exports.getEventFromReceipt = getEventFromReceipt;
@@ -2,7 +2,30 @@
2
2
 
3
3
  var contractAddress = require('./contractAddress');
4
4
  var roleHash = require('./roleHash');
5
- var tokenRegistryV5 = require('@tradetrust-tt/token-registry-v5');
5
+ var supportInterfaceIds = require('./supportInterfaceIds');
6
+ var contracts = require('./contracts');
7
+ var utils = require('./utils');
8
+ var tokenRegistryV4 = require('@tradetrust-tt/token-registry-v4');
9
+
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n.default = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var contracts__namespace = /*#__PURE__*/_interopNamespace(contracts);
6
29
 
7
30
 
8
31
 
@@ -14,11 +37,32 @@ Object.defineProperty(exports, "v5RoleHash", {
14
37
  enumerable: true,
15
38
  get: function () { return roleHash.roleHash; }
16
39
  });
40
+ Object.defineProperty(exports, "v5SupportInterfaceIds", {
41
+ enumerable: true,
42
+ get: function () { return supportInterfaceIds.supportInterfaceIds; }
43
+ });
44
+ exports.v5Contracts = contracts__namespace;
45
+ Object.defineProperty(exports, "v5ComputeInterfaceId", {
46
+ enumerable: true,
47
+ get: function () { return utils.computeInterfaceId; }
48
+ });
49
+ Object.defineProperty(exports, "v5EncodeInitParams", {
50
+ enumerable: true,
51
+ get: function () { return utils.encodeInitParams; }
52
+ });
53
+ Object.defineProperty(exports, "v5GetEventFromReceipt", {
54
+ enumerable: true,
55
+ get: function () { return utils.getEventFromReceipt; }
56
+ });
17
57
  Object.defineProperty(exports, "constants", {
18
58
  enumerable: true,
19
- get: function () { return tokenRegistryV5.constants; }
59
+ get: function () { return tokenRegistryV4.constants; }
20
60
  });
21
61
  Object.defineProperty(exports, "utils", {
22
62
  enumerable: true,
23
- get: function () { return tokenRegistryV5.utils; }
63
+ get: function () { return tokenRegistryV4.utils; }
64
+ });
65
+ Object.defineProperty(exports, "v5Utils", {
66
+ enumerable: true,
67
+ get: function () { return tokenRegistryV4.utils; }
24
68
  });
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var tokenRegistryV5 = require('@tradetrust-tt/token-registry-v5');
4
+
5
+ const { encodeInitParams, getEventFromReceipt, computeInterfaceId } = tokenRegistryV5.utils;
6
+
7
+ exports.computeInterfaceId = computeInterfaceId;
8
+ exports.encodeInitParams = encodeInitParams;
9
+ exports.getEventFromReceipt = getEventFromReceipt;
package/dist/esm/index.js CHANGED
@@ -1,11 +1,5 @@
1
- export { supportInterfaceIds as v4SupportInterfaceIds } from './token-registry-v4/supportInterfaceIds';
2
- export { supportInterfaceIds as v5SupportInterfaceIds } from './token-registry-v5/supportInterfaceIds';
3
- export { v4ContractAddress, v4RoleHash } from './token-registry-v4';
4
- export { v5ContractAddress, v5RoleHash } from './token-registry-v5';
5
- import * as contracts from '@tradetrust-tt/token-registry-v4/contracts';
6
- export { contracts as v4Contracts };
7
- import * as contracts$1 from '@tradetrust-tt/token-registry-v5/contracts';
8
- export { contracts$1 as v5Contracts };
1
+ export { v4ComputeInterfaceId, v4ComputeTitleEscrowAddress, v4ContractAddress, v4Contracts, v4EncodeInitParams, v4GetEventFromReceipt, v4RoleHash, v4SupportInterfaceIds, v4Utils } from './token-registry-v4';
2
+ export { v5ComputeInterfaceId, v5ContractAddress, v5Contracts, v5EncodeInitParams, v5GetEventFromReceipt, v5RoleHash, v5SupportInterfaceIds, v5Utils } from './token-registry-v5';
9
3
  export { TypedContractMethod } from './token-registry-v5/typedContractMethod';
10
4
  export * from './core';
11
5
  export * from './open-attestation';
@@ -1,3 +1,7 @@
1
1
  export { roleHash as v4RoleHash } from './roleHash';
2
2
  export { contractAddress as v4ContractAddress } from './contractAddress';
3
- export { constants, utils } from '@tradetrust-tt/token-registry-v4';
3
+ export { supportInterfaceIds as v4SupportInterfaceIds } from './supportInterfaceIds';
4
+ import * as contracts from './contracts';
5
+ export { contracts as v4Contracts };
6
+ export { computeInterfaceId as v4ComputeInterfaceId, computeTitleEscrowAddress as v4ComputeTitleEscrowAddress, encodeInitParams as v4EncodeInitParams, getEventFromReceipt as v4GetEventFromReceipt } from './utils';
7
+ export { constants, utils, utils as v4Utils } from '@tradetrust-tt/token-registry-v4';
@@ -0,0 +1,5 @@
1
+ import { utils } from '@tradetrust-tt/token-registry-v4';
2
+
3
+ const { computeTitleEscrowAddress, encodeInitParams, getEventFromReceipt, computeInterfaceId } = utils;
4
+
5
+ export { computeInterfaceId, computeTitleEscrowAddress, encodeInitParams, getEventFromReceipt };
@@ -1,3 +1,7 @@
1
1
  export { contractAddress as v5ContractAddress } from './contractAddress';
2
2
  export { roleHash as v5RoleHash } from './roleHash';
3
- export { constants, utils } from '@tradetrust-tt/token-registry-v5';
3
+ export { supportInterfaceIds as v5SupportInterfaceIds } from './supportInterfaceIds';
4
+ import * as contracts from './contracts';
5
+ export { contracts as v5Contracts };
6
+ export { computeInterfaceId as v5ComputeInterfaceId, encodeInitParams as v5EncodeInitParams, getEventFromReceipt as v5GetEventFromReceipt } from './utils';
7
+ export { constants, utils, utils as v5Utils } from '@tradetrust-tt/token-registry-v4';
@@ -0,0 +1,5 @@
1
+ import { utils } from '@tradetrust-tt/token-registry-v5';
2
+
3
+ const { encodeInitParams, getEventFromReceipt, computeInterfaceId } = utils;
4
+
5
+ export { computeInterfaceId, encodeInitParams, getEventFromReceipt };
@@ -0,0 +1,15 @@
1
+ import { TDocDeployer, TDocDeployer__factory, TitleEscrow, TitleEscrowFactory, TitleEscrowFactory__factory, TitleEscrow__factory, TradeTrustToken, TradeTrustToken__factory } from '@tradetrust-tt/token-registry-v5/contracts';
2
+
3
+ declare const contracts_TDocDeployer: typeof TDocDeployer;
4
+ declare const contracts_TDocDeployer__factory: typeof TDocDeployer__factory;
5
+ declare const contracts_TitleEscrow: typeof TitleEscrow;
6
+ declare const contracts_TitleEscrowFactory: typeof TitleEscrowFactory;
7
+ declare const contracts_TitleEscrowFactory__factory: typeof TitleEscrowFactory__factory;
8
+ declare const contracts_TitleEscrow__factory: typeof TitleEscrow__factory;
9
+ declare const contracts_TradeTrustToken: typeof TradeTrustToken;
10
+ declare const contracts_TradeTrustToken__factory: typeof TradeTrustToken__factory;
11
+ declare namespace contracts {
12
+ export { contracts_TDocDeployer as TDocDeployer, contracts_TDocDeployer__factory as TDocDeployer__factory, contracts_TitleEscrow as TitleEscrow, contracts_TitleEscrowFactory as TitleEscrowFactory, contracts_TitleEscrowFactory__factory as TitleEscrowFactory__factory, contracts_TitleEscrow__factory as TitleEscrow__factory, contracts_TradeTrustToken as TradeTrustToken, contracts_TradeTrustToken__factory as TradeTrustToken__factory };
13
+ }
14
+
15
+ export { contracts as c };
@@ -0,0 +1,15 @@
1
+ import { TDocDeployer, TDocDeployer__factory, TitleEscrow, TitleEscrowFactory, TitleEscrowFactory__factory, TitleEscrow__factory, TradeTrustToken, TradeTrustToken__factory } from '@tradetrust-tt/token-registry-v4/contracts';
2
+
3
+ declare const contracts_TDocDeployer: typeof TDocDeployer;
4
+ declare const contracts_TDocDeployer__factory: typeof TDocDeployer__factory;
5
+ declare const contracts_TitleEscrow: typeof TitleEscrow;
6
+ declare const contracts_TitleEscrowFactory: typeof TitleEscrowFactory;
7
+ declare const contracts_TitleEscrowFactory__factory: typeof TitleEscrowFactory__factory;
8
+ declare const contracts_TitleEscrow__factory: typeof TitleEscrow__factory;
9
+ declare const contracts_TradeTrustToken: typeof TradeTrustToken;
10
+ declare const contracts_TradeTrustToken__factory: typeof TradeTrustToken__factory;
11
+ declare namespace contracts {
12
+ export { contracts_TDocDeployer as TDocDeployer, contracts_TDocDeployer__factory as TDocDeployer__factory, contracts_TitleEscrow as TitleEscrow, contracts_TitleEscrowFactory as TitleEscrowFactory, contracts_TitleEscrowFactory__factory as TitleEscrowFactory__factory, contracts_TitleEscrow__factory as TitleEscrow__factory, contracts_TradeTrustToken as TradeTrustToken, contracts_TradeTrustToken__factory as TradeTrustToken__factory };
13
+ }
14
+
15
+ export { contracts as c };
@@ -1,14 +1,15 @@
1
- export { supportInterfaceIds as v4SupportInterfaceIds } from './token-registry-v4/supportInterfaceIds.js';
2
- export { supportInterfaceIds as v5SupportInterfaceIds } from './token-registry-v5/supportInterfaceIds.js';
3
1
  export { roleHash as v4RoleHash } from './token-registry-v4/roleHash.js';
4
2
  export { contractAddress as v4ContractAddress } from './token-registry-v4/contractAddress.js';
3
+ export { supportInterfaceIds as v4SupportInterfaceIds } from './token-registry-v4/supportInterfaceIds.js';
4
+ export { c as v4Contracts } from './contracts-Cm_HLW0r.js';
5
+ export { computeInterfaceId as v4ComputeInterfaceId, computeTitleEscrowAddress as v4ComputeTitleEscrowAddress, encodeInitParams as v4EncodeInitParams, getEventFromReceipt as v4GetEventFromReceipt } from './token-registry-v4/utils.js';
6
+ export { utils as v4Utils, utils as v5Utils } from '@tradetrust-tt/token-registry-v4';
5
7
  export { contractAddress as v5ContractAddress } from './token-registry-v5/contractAddress.js';
6
8
  export { roleHash as v5RoleHash } from './token-registry-v5/roleHash.js';
9
+ export { supportInterfaceIds as v5SupportInterfaceIds } from './token-registry-v5/supportInterfaceIds.js';
10
+ export { c as v5Contracts } from './contracts-BjEOaRKV.js';
11
+ export { computeInterfaceId as v5ComputeInterfaceId, encodeInitParams as v5EncodeInitParams, getEventFromReceipt as v5GetEventFromReceipt } from './token-registry-v5/utils.js';
7
12
  export { TypedContractMethod } from '@tradetrust-tt/token-registry-v5/contracts/common';
8
- import * as contracts from '@tradetrust-tt/token-registry-v4/contracts';
9
- export { contracts as v4Contracts };
10
- import * as contracts$1 from '@tradetrust-tt/token-registry-v5/contracts';
11
- export { contracts$1 as v5Contracts };
12
13
  export { decrypt } from './core/decrypt.js';
13
14
  export { encrypt } from './core/encrypt.js';
14
15
  export { verifyDocument } from './core/verify.js';
@@ -43,9 +44,13 @@ export { OpenAttestationDocument, SUPPORTED_SIGNING_ALGORITHM, SchemaId, SignedW
43
44
  export { DiagnoseError } from '@tradetrust-tt/tradetrust/dist/types/shared/utils';
44
45
  export { createResolver, getIdentifier, isValid, openAttestationDidIdentityProof, utils, verificationBuilder, verify } from '@tradetrust-tt/tt-verify';
45
46
  export { DocumentsToVerify, ErrorVerificationFragment, InvalidVerificationFragment, ProviderDetails, providerType as ProviderType, SkippedVerificationFragment, ValidVerificationFragment, VerificationBuilderOptions, VerificationFragment, VerificationFragmentStatus, VerificationFragmentType, VerificationFragmentWithData, Verifier, VerifierOptions } from '@tradetrust-tt/tt-verify/dist/types/src/types/core';
47
+ import '@tradetrust-tt/token-registry-v4/contracts';
48
+ import 'ethers';
49
+ import '@typechain/ethers-v5/static/common';
50
+ import '@tradetrust-tt/token-registry-v5/contracts';
51
+ import '@tradetrust-tt/token-registry-v5';
46
52
  import 'ethersV6';
47
53
  import '@ethersproject/abstract-provider';
48
- import 'ethers';
49
54
  import 'ethers/lib/utils';
50
55
  import '@ethersproject/abstract-signer';
51
56
  import '@tradetrust-tt/tradetrust/dist/types/3.0/types';
@@ -1,3 +1,9 @@
1
1
  export { roleHash as v4RoleHash } from './roleHash.js';
2
2
  export { contractAddress as v4ContractAddress } from './contractAddress.js';
3
- export { constants, utils } from '@tradetrust-tt/token-registry-v4';
3
+ export { supportInterfaceIds as v4SupportInterfaceIds } from './supportInterfaceIds.js';
4
+ export { c as v4Contracts } from '../contracts-Cm_HLW0r.js';
5
+ export { computeInterfaceId as v4ComputeInterfaceId, computeTitleEscrowAddress as v4ComputeTitleEscrowAddress, encodeInitParams as v4EncodeInitParams, getEventFromReceipt as v4GetEventFromReceipt } from './utils.js';
6
+ export { constants, utils, utils as v4Utils } from '@tradetrust-tt/token-registry-v4';
7
+ import '@tradetrust-tt/token-registry-v4/contracts';
8
+ import 'ethers';
9
+ import '@typechain/ethers-v5/static/common';
@@ -0,0 +1,10 @@
1
+ import * as ethers from 'ethers';
2
+ import * as _typechain_ethers_v5_static_common from '@typechain/ethers-v5/static/common';
3
+ import { utils } from '@tradetrust-tt/token-registry-v4';
4
+
5
+ declare const computeTitleEscrowAddress: (params: utils.ComputeTitleEscrowAddressParams) => string;
6
+ declare const encodeInitParams: ({ name, symbol, deployer }: utils.Params) => string;
7
+ declare const getEventFromReceipt: <T extends _typechain_ethers_v5_static_common.TypedEvent<any, any>>(receipt: ethers.ContractReceipt, topic: string, iface?: any) => T;
8
+ declare const computeInterfaceId: (functionSignatures?: string[]) => string;
9
+
10
+ export { computeInterfaceId, computeTitleEscrowAddress, encodeInitParams, getEventFromReceipt };
@@ -1,4 +1,9 @@
1
1
  export { contractAddress as v5ContractAddress } from './contractAddress.js';
2
2
  export { roleHash as v5RoleHash } from './roleHash.js';
3
- export { constants, utils } from '@tradetrust-tt/token-registry-v5';
3
+ export { supportInterfaceIds as v5SupportInterfaceIds } from './supportInterfaceIds.js';
4
+ export { c as v5Contracts } from '../contracts-BjEOaRKV.js';
5
+ export { computeInterfaceId as v5ComputeInterfaceId, encodeInitParams as v5EncodeInitParams, getEventFromReceipt as v5GetEventFromReceipt } from './utils.js';
6
+ export { constants, utils, utils as v5Utils } from '@tradetrust-tt/token-registry-v4';
4
7
  export { TypedContractMethod } from '@tradetrust-tt/token-registry-v5/contracts/common';
8
+ import '@tradetrust-tt/token-registry-v5/contracts';
9
+ import '@tradetrust-tt/token-registry-v5';
@@ -5,5 +5,3 @@ import '@tradetrust-tt/tradetrust-utils';
5
5
  import '@tradetrust-tt/tradetrust-utils/constants/network';
6
6
  import '@tradetrust-tt/tradetrust-utils/constants/supportedChains';
7
7
  import '@tradetrust-tt/dnsprove';
8
- import '@tradetrust-tt/token-registry-v4/contracts';
9
- import '@tradetrust-tt/token-registry-v5/contracts';
@@ -0,0 +1,7 @@
1
+ import { utils } from '@tradetrust-tt/token-registry-v5';
2
+
3
+ declare const encodeInitParams: ({ name, symbol, deployer }: utils.Params) => any;
4
+ declare const getEventFromReceipt: <T extends unknown>(receipt: any, topic: string, iface: any) => T;
5
+ declare const computeInterfaceId: (functionSignatures?: string[]) => string;
6
+
7
+ export { computeInterfaceId, encodeInitParams, getEventFromReceipt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustvc/trustvc",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "description": "TrustVC library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -111,11 +111,11 @@
111
111
  },
112
112
  "dependencies": {
113
113
  "@tradetrust-tt/dnsprove": "^2.16.0",
114
- "@tradetrust-tt/token-registry-v4": "npm:@tradetrust-tt/token-registry@^4.15.1",
115
- "@tradetrust-tt/token-registry-v5": "npm:@tradetrust-tt/token-registry@^5.1.3",
116
- "@tradetrust-tt/tradetrust": "^6.10.0",
117
- "@tradetrust-tt/tradetrust-utils": "^2.1.6",
118
- "@tradetrust-tt/tt-verify": "^9.3.0",
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",
116
+ "@tradetrust-tt/tradetrust": "^6.10.1",
117
+ "@tradetrust-tt/tradetrust-utils": "^2.2.0",
118
+ "@tradetrust-tt/tt-verify": "^9.3.1",
119
119
  "@trustvc/w3c-context": "^1.2.1",
120
120
  "@trustvc/w3c-credential-status": "^1.2.1",
121
121
  "@trustvc/w3c-issuer": "^1.2.1",