@human-protocol/sdk 6.1.0 → 7.0.0

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.
Files changed (122) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.js +26 -14
  4. package/dist/encryption/encryption.d.ts +84 -0
  5. package/dist/encryption/encryption.d.ts.map +1 -0
  6. package/dist/{encryption.js → encryption/encryption.js} +3 -161
  7. package/dist/encryption/encryption_utils.d.ts +101 -0
  8. package/dist/encryption/encryption_utils.d.ts.map +1 -0
  9. package/dist/encryption/encryption_utils.js +191 -0
  10. package/dist/encryption/index.d.ts +4 -0
  11. package/dist/encryption/index.d.ts.map +1 -0
  12. package/dist/encryption/index.js +7 -0
  13. package/dist/encryption/types.d.ts +9 -0
  14. package/dist/encryption/types.d.ts.map +1 -0
  15. package/dist/encryption/types.js +9 -0
  16. package/dist/error.d.ts +6 -10
  17. package/dist/error.d.ts.map +1 -1
  18. package/dist/error.js +12 -14
  19. package/dist/{escrow.d.ts → escrow/escrow_client.d.ts} +4 -184
  20. package/dist/{escrow.d.ts.map → escrow/escrow_client.d.ts.map} +1 -1
  21. package/dist/{escrow.js → escrow/escrow_client.js} +35 -411
  22. package/dist/escrow/escrow_utils.d.ts +172 -0
  23. package/dist/escrow/escrow_utils.d.ts.map +1 -0
  24. package/dist/escrow/escrow_utils.js +388 -0
  25. package/dist/escrow/index.d.ts +3 -0
  26. package/dist/escrow/index.d.ts.map +1 -0
  27. package/dist/escrow/index.js +7 -0
  28. package/dist/graphql/queries/statistics.d.ts +1 -0
  29. package/dist/graphql/queries/statistics.d.ts.map +1 -1
  30. package/dist/graphql/queries/statistics.js +36 -2
  31. package/dist/graphql/types.d.ts +3 -1
  32. package/dist/graphql/types.d.ts.map +1 -1
  33. package/dist/index.d.ts +10 -10
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +23 -22
  36. package/dist/interfaces.d.ts +0 -5
  37. package/dist/interfaces.d.ts.map +1 -1
  38. package/dist/kvstore/index.d.ts +3 -0
  39. package/dist/kvstore/index.d.ts.map +1 -0
  40. package/dist/kvstore/index.js +7 -0
  41. package/dist/{kvstore.d.ts → kvstore/kvstore_client.d.ts} +3 -108
  42. package/dist/kvstore/kvstore_client.d.ts.map +1 -0
  43. package/dist/{kvstore.js → kvstore/kvstore_client.js} +22 -184
  44. package/dist/kvstore/kvstore_utils.d.ts +105 -0
  45. package/dist/kvstore/kvstore_utils.d.ts.map +1 -0
  46. package/dist/kvstore/kvstore_utils.js +184 -0
  47. package/dist/operator/index.d.ts +2 -0
  48. package/dist/operator/index.d.ts.map +1 -0
  49. package/dist/operator/index.js +5 -0
  50. package/dist/{operator.d.ts → operator/operator_utils.d.ts} +3 -3
  51. package/dist/operator/operator_utils.d.ts.map +1 -0
  52. package/dist/{operator.js → operator/operator_utils.js} +6 -6
  53. package/dist/staking/index.d.ts +3 -0
  54. package/dist/staking/index.d.ts.map +1 -0
  55. package/dist/staking/index.js +7 -0
  56. package/dist/{staking.d.ts → staking/staking_client.d.ts} +4 -65
  57. package/dist/staking/staking_client.d.ts.map +1 -0
  58. package/dist/{staking.js → staking/staking_client.js} +6 -136
  59. package/dist/staking/staking_utils.d.ts +63 -0
  60. package/dist/staking/staking_utils.d.ts.map +1 -0
  61. package/dist/staking/staking_utils.js +137 -0
  62. package/dist/statistics/index.d.ts +2 -0
  63. package/dist/statistics/index.d.ts.map +1 -0
  64. package/dist/statistics/index.js +5 -0
  65. package/dist/{statistics.d.ts → statistics/statistics_utils.d.ts} +4 -13
  66. package/dist/statistics/statistics_utils.d.ts.map +1 -0
  67. package/dist/{statistics.js → statistics/statistics_utils.js} +8 -22
  68. package/dist/transaction/index.d.ts +2 -0
  69. package/dist/transaction/index.d.ts.map +1 -0
  70. package/dist/transaction/index.js +5 -0
  71. package/dist/{transaction.d.ts → transaction/transaction_utils.d.ts} +3 -3
  72. package/dist/transaction/transaction_utils.d.ts.map +1 -0
  73. package/dist/{transaction.js → transaction/transaction_utils.js} +5 -5
  74. package/dist/types.d.ts +8 -0
  75. package/dist/types.d.ts.map +1 -1
  76. package/dist/utils.d.ts +15 -0
  77. package/dist/utils.d.ts.map +1 -1
  78. package/dist/utils.js +71 -4
  79. package/dist/worker/index.d.ts +2 -0
  80. package/dist/worker/index.d.ts.map +1 -0
  81. package/dist/worker/index.js +5 -0
  82. package/dist/{worker.d.ts → worker/worker_utils.d.ts} +3 -3
  83. package/dist/worker/worker_utils.d.ts.map +1 -0
  84. package/dist/{worker.js → worker/worker_utils.js} +5 -5
  85. package/package.json +4 -4
  86. package/src/constants.ts +38 -14
  87. package/src/{encryption.ts → encryption/encryption.ts} +1 -193
  88. package/src/encryption/encryption_utils.ts +179 -0
  89. package/src/encryption/index.ts +3 -0
  90. package/src/encryption/types.ts +15 -0
  91. package/src/error.ts +11 -17
  92. package/src/{escrow.ts → escrow/escrow_client.ts} +36 -556
  93. package/src/escrow/escrow_utils.ts +510 -0
  94. package/src/escrow/index.ts +2 -0
  95. package/src/graphql/queries/statistics.ts +37 -1
  96. package/src/graphql/types.ts +4 -1
  97. package/src/index.ts +11 -25
  98. package/src/interfaces.ts +0 -5
  99. package/src/kvstore/index.ts +2 -0
  100. package/src/{kvstore.ts → kvstore/kvstore_client.ts} +27 -241
  101. package/src/kvstore/kvstore_utils.ts +244 -0
  102. package/src/operator/index.ts +1 -0
  103. package/src/{operator.ts → operator/operator_utils.ts} +8 -8
  104. package/src/staking/index.ts +2 -0
  105. package/src/{staking.ts → staking/staking_client.ts} +8 -174
  106. package/src/staking/staking_utils.ts +170 -0
  107. package/src/statistics/index.ts +1 -0
  108. package/src/{statistics.ts → statistics/statistics_utils.ts} +14 -26
  109. package/src/transaction/index.ts +1 -0
  110. package/src/{transaction.ts → transaction/transaction_utils.ts} +7 -7
  111. package/src/types.ts +8 -0
  112. package/src/utils.ts +80 -3
  113. package/src/worker/index.ts +1 -0
  114. package/src/{worker.ts → worker/worker_utils.ts} +7 -7
  115. package/dist/encryption.d.ts +0 -189
  116. package/dist/encryption.d.ts.map +0 -1
  117. package/dist/kvstore.d.ts.map +0 -1
  118. package/dist/operator.d.ts.map +0 -1
  119. package/dist/staking.d.ts.map +0 -1
  120. package/dist/statistics.d.ts.map +0 -1
  121. package/dist/transaction.d.ts.map +0 -1
  122. package/dist/worker.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/graphql/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAA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,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { StakingClient, StakingUtils } from './staking';
2
- import { KVStoreClient, KVStoreUtils } from './kvstore';
3
- import { EscrowClient, EscrowUtils } from './escrow';
4
- import { StatisticsUtils } from './statistics';
5
- import { Encryption, EncryptionUtils, MessageDataType } from './encryption';
6
- import { OperatorUtils } from './operator';
7
- import { TransactionUtils } from './transaction';
8
- import { WorkerUtils } from './worker';
9
1
  export * from './constants';
10
2
  export * from './types';
11
3
  export * from './enums';
12
4
  export * from './interfaces';
13
- export { EthereumError, InvalidArgumentError, ReplacementUnderpriced, NumericFault, NonceExpired, TransactionReplaced, ContractExecutionError, InvalidEthereumAddressError, InvalidKeyError, } from './error';
14
- export { StakingClient, KVStoreClient, KVStoreUtils, EscrowClient, EscrowUtils, StatisticsUtils, Encryption, EncryptionUtils, OperatorUtils, TransactionUtils, WorkerUtils, StakingUtils, MessageDataType, };
5
+ export { EthereumError, InvalidArgumentError, ReplacementUnderpriced, NumericFault, NonceExpired, TransactionReplaced, ContractExecutionError, InvalidEthereumAddressError, SubgraphBadIndexerError, SubgraphRequestError, } from './error';
6
+ export { StakingClient, StakingUtils } from './staking';
7
+ export { KVStoreClient, KVStoreUtils } from './kvstore';
8
+ export { EscrowClient, EscrowUtils } from './escrow';
9
+ export { StatisticsUtils } from './statistics';
10
+ export { Encryption, EncryptionUtils } from './encryption';
11
+ export type { MessageDataType } from './encryption';
12
+ export { OperatorUtils } from './operator';
13
+ export { TransactionUtils } from './transaction';
14
+ export { WorkerUtils } from './worker';
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,UAAU,EACV,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,eAAe,GAChB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -14,27 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.StakingUtils = exports.WorkerUtils = exports.TransactionUtils = exports.OperatorUtils = exports.EncryptionUtils = exports.Encryption = exports.StatisticsUtils = exports.EscrowUtils = exports.EscrowClient = exports.KVStoreUtils = exports.KVStoreClient = exports.StakingClient = exports.InvalidKeyError = exports.InvalidEthereumAddressError = exports.ContractExecutionError = exports.TransactionReplaced = exports.NonceExpired = exports.NumericFault = exports.ReplacementUnderpriced = exports.InvalidArgumentError = exports.EthereumError = void 0;
18
- const staking_1 = require("./staking");
19
- Object.defineProperty(exports, "StakingClient", { enumerable: true, get: function () { return staking_1.StakingClient; } });
20
- Object.defineProperty(exports, "StakingUtils", { enumerable: true, get: function () { return staking_1.StakingUtils; } });
21
- const kvstore_1 = require("./kvstore");
22
- Object.defineProperty(exports, "KVStoreClient", { enumerable: true, get: function () { return kvstore_1.KVStoreClient; } });
23
- Object.defineProperty(exports, "KVStoreUtils", { enumerable: true, get: function () { return kvstore_1.KVStoreUtils; } });
24
- const escrow_1 = require("./escrow");
25
- Object.defineProperty(exports, "EscrowClient", { enumerable: true, get: function () { return escrow_1.EscrowClient; } });
26
- Object.defineProperty(exports, "EscrowUtils", { enumerable: true, get: function () { return escrow_1.EscrowUtils; } });
27
- const statistics_1 = require("./statistics");
28
- Object.defineProperty(exports, "StatisticsUtils", { enumerable: true, get: function () { return statistics_1.StatisticsUtils; } });
29
- const encryption_1 = require("./encryption");
30
- Object.defineProperty(exports, "Encryption", { enumerable: true, get: function () { return encryption_1.Encryption; } });
31
- Object.defineProperty(exports, "EncryptionUtils", { enumerable: true, get: function () { return encryption_1.EncryptionUtils; } });
32
- const operator_1 = require("./operator");
33
- Object.defineProperty(exports, "OperatorUtils", { enumerable: true, get: function () { return operator_1.OperatorUtils; } });
34
- const transaction_1 = require("./transaction");
35
- Object.defineProperty(exports, "TransactionUtils", { enumerable: true, get: function () { return transaction_1.TransactionUtils; } });
36
- const worker_1 = require("./worker");
37
- Object.defineProperty(exports, "WorkerUtils", { enumerable: true, get: function () { return worker_1.WorkerUtils; } });
17
+ exports.WorkerUtils = exports.TransactionUtils = exports.OperatorUtils = exports.EncryptionUtils = exports.Encryption = exports.StatisticsUtils = exports.EscrowUtils = exports.EscrowClient = exports.KVStoreUtils = exports.KVStoreClient = exports.StakingUtils = exports.StakingClient = exports.SubgraphRequestError = exports.SubgraphBadIndexerError = exports.InvalidEthereumAddressError = exports.ContractExecutionError = exports.TransactionReplaced = exports.NonceExpired = exports.NumericFault = exports.ReplacementUnderpriced = exports.InvalidArgumentError = exports.EthereumError = void 0;
38
18
  __exportStar(require("./constants"), exports);
39
19
  __exportStar(require("./types"), exports);
40
20
  __exportStar(require("./enums"), exports);
@@ -48,4 +28,25 @@ Object.defineProperty(exports, "NonceExpired", { enumerable: true, get: function
48
28
  Object.defineProperty(exports, "TransactionReplaced", { enumerable: true, get: function () { return error_1.TransactionReplaced; } });
49
29
  Object.defineProperty(exports, "ContractExecutionError", { enumerable: true, get: function () { return error_1.ContractExecutionError; } });
50
30
  Object.defineProperty(exports, "InvalidEthereumAddressError", { enumerable: true, get: function () { return error_1.InvalidEthereumAddressError; } });
51
- Object.defineProperty(exports, "InvalidKeyError", { enumerable: true, get: function () { return error_1.InvalidKeyError; } });
31
+ Object.defineProperty(exports, "SubgraphBadIndexerError", { enumerable: true, get: function () { return error_1.SubgraphBadIndexerError; } });
32
+ Object.defineProperty(exports, "SubgraphRequestError", { enumerable: true, get: function () { return error_1.SubgraphRequestError; } });
33
+ var staking_1 = require("./staking");
34
+ Object.defineProperty(exports, "StakingClient", { enumerable: true, get: function () { return staking_1.StakingClient; } });
35
+ Object.defineProperty(exports, "StakingUtils", { enumerable: true, get: function () { return staking_1.StakingUtils; } });
36
+ var kvstore_1 = require("./kvstore");
37
+ Object.defineProperty(exports, "KVStoreClient", { enumerable: true, get: function () { return kvstore_1.KVStoreClient; } });
38
+ Object.defineProperty(exports, "KVStoreUtils", { enumerable: true, get: function () { return kvstore_1.KVStoreUtils; } });
39
+ var escrow_1 = require("./escrow");
40
+ Object.defineProperty(exports, "EscrowClient", { enumerable: true, get: function () { return escrow_1.EscrowClient; } });
41
+ Object.defineProperty(exports, "EscrowUtils", { enumerable: true, get: function () { return escrow_1.EscrowUtils; } });
42
+ var statistics_1 = require("./statistics");
43
+ Object.defineProperty(exports, "StatisticsUtils", { enumerable: true, get: function () { return statistics_1.StatisticsUtils; } });
44
+ var encryption_1 = require("./encryption");
45
+ Object.defineProperty(exports, "Encryption", { enumerable: true, get: function () { return encryption_1.Encryption; } });
46
+ Object.defineProperty(exports, "EncryptionUtils", { enumerable: true, get: function () { return encryption_1.EncryptionUtils; } });
47
+ var operator_1 = require("./operator");
48
+ Object.defineProperty(exports, "OperatorUtils", { enumerable: true, get: function () { return operator_1.OperatorUtils; } });
49
+ var transaction_1 = require("./transaction");
50
+ Object.defineProperty(exports, "TransactionUtils", { enumerable: true, get: function () { return transaction_1.TransactionUtils; } });
51
+ var worker_1 = require("./worker");
52
+ Object.defineProperty(exports, "WorkerUtils", { enumerable: true, get: function () { return worker_1.WorkerUtils; } });
@@ -80,9 +80,6 @@ export interface IEscrowConfig {
80
80
  recordingOracle: string;
81
81
  reputationOracle: string;
82
82
  exchangeOracle: string;
83
- recordingOracleFee: bigint;
84
- reputationOracleFee: bigint;
85
- exchangeOracleFee: bigint;
86
83
  manifest: string;
87
84
  manifestHash: string;
88
85
  }
@@ -222,9 +219,7 @@ export interface IWorkerStatistics {
222
219
  }
223
220
  export interface IDailyPayment {
224
221
  timestamp: number;
225
- totalAmountPaid: bigint;
226
222
  totalCount: number;
227
- averageAmountPerWorker: bigint;
228
223
  }
229
224
  export interface IPaymentStatistics {
230
225
  dailyPaymentsData: IDailyPayment[];
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,oBAAoB,EAAE,MAAM,GAAG,IAAI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B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ export { KVStoreClient } from './kvstore_client';
2
+ export { KVStoreUtils } from './kvstore_utils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kvstore/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KVStoreUtils = exports.KVStoreClient = void 0;
4
+ var kvstore_client_1 = require("./kvstore_client");
5
+ Object.defineProperty(exports, "KVStoreClient", { enumerable: true, get: function () { return kvstore_client_1.KVStoreClient; } });
6
+ var kvstore_utils_1 = require("./kvstore_utils");
7
+ Object.defineProperty(exports, "KVStoreUtils", { enumerable: true, get: function () { return kvstore_utils_1.KVStoreUtils; } });
@@ -1,9 +1,7 @@
1
1
  import { KVStore } from '@human-protocol/core/typechain-types';
2
2
  import { ContractRunner } from 'ethers';
3
- import { BaseEthersClient } from './base';
4
- import { ChainId } from './enums';
5
- import { NetworkData, TransactionOverrides } from './types';
6
- import { IKVStore, SubgraphOptions } from './interfaces';
3
+ import { BaseEthersClient } from '../base';
4
+ import { NetworkData, TransactionOverrides } from '../types';
7
5
  /**
8
6
  * Client for interacting with the KVStore contract.
9
7
  *
@@ -160,107 +158,4 @@ export declare class KVStoreClient extends BaseEthersClient {
160
158
  */
161
159
  get(address: string, key: string): Promise<string>;
162
160
  }
163
- /**
164
- * Utility helpers for KVStore-related queries.
165
- *
166
- * @example
167
- * ```ts
168
- * import { ChainId, KVStoreUtils } from '@human-protocol/sdk';
169
- *
170
- * const kvStoreData = await KVStoreUtils.getKVStoreData(
171
- * ChainId.POLYGON_AMOY,
172
- * "0x1234567890123456789012345678901234567890"
173
- * );
174
- * console.log('KVStore data:', kvStoreData);
175
- * ```
176
- */
177
- export declare class KVStoreUtils {
178
- /**
179
- * This function returns the KVStore data for a given address.
180
- *
181
- * @param chainId - Network in which the KVStore is deployed
182
- * @param address - Address of the KVStore
183
- * @param options - Optional configuration for subgraph requests.
184
- * @returns KVStore data
185
- * @throws ErrorUnsupportedChainID If the network's chainId is not supported
186
- * @throws ErrorInvalidAddress If the address is invalid
187
- *
188
- * @example
189
- * ```ts
190
- * const kvStoreData = await KVStoreUtils.getKVStoreData(
191
- * ChainId.POLYGON_AMOY,
192
- * "0x1234567890123456789012345678901234567890"
193
- * );
194
- * console.log('KVStore data:', kvStoreData);
195
- * ```
196
- */
197
- static getKVStoreData(chainId: ChainId, address: string, options?: SubgraphOptions): Promise<IKVStore[]>;
198
- /**
199
- * Gets the value of a key-value pair in the KVStore using the subgraph.
200
- *
201
- * @param chainId - Network in which the KVStore is deployed
202
- * @param address - Address from which to get the key value.
203
- * @param key - Key to obtain the value.
204
- * @param options - Optional configuration for subgraph requests.
205
- * @returns Value of the key.
206
- * @throws ErrorUnsupportedChainID If the network's chainId is not supported
207
- * @throws ErrorInvalidAddress If the address is invalid
208
- * @throws ErrorKVStoreEmptyKey If the key is empty
209
- * @throws InvalidKeyError If the key is not found
210
- *
211
- * @example
212
- * ```ts
213
- * const value = await KVStoreUtils.get(
214
- * ChainId.POLYGON_AMOY,
215
- * '0x1234567890123456789012345678901234567890',
216
- * 'role'
217
- * );
218
- * console.log('Value:', value);
219
- * ```
220
- */
221
- static get(chainId: ChainId, address: string, key: string, options?: SubgraphOptions): Promise<string>;
222
- /**
223
- * Gets the URL value of the given entity, and verifies its hash.
224
- *
225
- * @param chainId - Network in which the KVStore is deployed
226
- * @param address - Address from which to get the URL value.
227
- * @param urlKey - Configurable URL key. `url` by default.
228
- * @param options - Optional configuration for subgraph requests.
229
- * @returns URL value for the given address if it exists, and the content is valid
230
- * @throws ErrorInvalidAddress If the address is invalid
231
- * @throws ErrorInvalidHash If the hash verification fails
232
- * @throws Error If fetching URL or hash fails
233
- *
234
- * @example
235
- * ```ts
236
- * const url = await KVStoreUtils.getFileUrlAndVerifyHash(
237
- * ChainId.POLYGON_AMOY,
238
- * '0x1234567890123456789012345678901234567890'
239
- * );
240
- * console.log('Verified URL:', url);
241
- * ```
242
- */
243
- static getFileUrlAndVerifyHash(chainId: ChainId, address: string, urlKey?: string, options?: SubgraphOptions): Promise<string>;
244
- /**
245
- * Gets the public key of the given entity, and verifies its hash.
246
- *
247
- * @param chainId - Network in which the KVStore is deployed
248
- * @param address - Address from which to get the public key.
249
- * @param options - Optional configuration for subgraph requests.
250
- * @returns Public key for the given address if it exists, and the content is valid
251
- * @throws ErrorInvalidAddress If the address is invalid
252
- * @throws ErrorInvalidHash If the hash verification fails
253
- * @throws Error If fetching the public key fails
254
- *
255
- * @example
256
- * ```ts
257
- * const publicKey = await KVStoreUtils.getPublicKey(
258
- * ChainId.POLYGON_AMOY,
259
- * '0x1234567890123456789012345678901234567890'
260
- * );
261
- * console.log('Public key:', publicKey);
262
- * ```
263
- */
264
- static getPublicKey(chainId: ChainId, address: string, options?: SubgraphOptions): Promise<string>;
265
- }
266
- //# sourceMappingURL=kvstore.d.ts.map
161
+ //# sourceMappingURL=kvstore_client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kvstore_client.d.ts","sourceRoot":"","sources":["../../src/kvstore/kvstore_client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAER,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAU,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAY3C,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,qBAAa,aAAc,SAAQ,gBAAgB;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAEzB;;;;;OAKG;gBACS,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW;IAS5D;;;;;;;;;;;;;;;;;;;;OAoBG;WACiB,KAAK,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAiBzE;;;;;;;;;;;;;;OAcG;IAEU,GAAG,CACd,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,oBAAyB,GACnC,OAAO,CAAC,IAAI,CAAC;IAgBhB;;;;;;;;;;;;;;;;;OAiBG;IAEU,OAAO,CAClB,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,GAAE,oBAAyB,GACnC,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;;;;;;;;;;;;OAeG;IAEU,iBAAiB,CAC5B,GAAG,EAAE,MAAM,EACX,MAAM,SAAQ,EACd,SAAS,GAAE,oBAAyB,GACnC,OAAO,CAAC,IAAI,CAAC;IA2BhB;;;;;;;;;;;;;;;OAeG;IACU,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAmBhE"}
@@ -9,15 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.KVStoreUtils = exports.KVStoreClient = void 0;
12
+ exports.KVStoreClient = void 0;
13
13
  const typechain_types_1 = require("@human-protocol/core/typechain-types");
14
14
  const ethers_1 = require("ethers");
15
- const base_1 = require("./base");
16
- const constants_1 = require("./constants");
17
- const decorators_1 = require("./decorators");
18
- const error_1 = require("./error");
19
- const utils_1 = require("./utils");
20
- const kvstore_1 = require("./graphql/queries/kvstore");
15
+ const base_1 = require("../base");
16
+ const constants_1 = require("../constants");
17
+ const decorators_1 = require("../decorators");
18
+ const error_1 = require("../error");
19
+ const utils_1 = require("../utils");
21
20
  /**
22
21
  * Client for interacting with the KVStore contract.
23
22
  *
@@ -139,8 +138,10 @@ class KVStoreClient extends base_1.BaseEthersClient {
139
138
  await this.sendTxAndWait((overrides) => this.contract.set(key, value, overrides), txOptions);
140
139
  }
141
140
  catch (e) {
142
- if (e instanceof Error)
141
+ if (e instanceof Error) {
143
142
  throw Error(`Failed to set value: ${e.message}`);
143
+ }
144
+ throw e;
144
145
  }
145
146
  }
146
147
  /**
@@ -170,8 +171,10 @@ class KVStoreClient extends base_1.BaseEthersClient {
170
171
  await this.sendTxAndWait((overrides) => this.contract.setBulk(keys, values, overrides), txOptions);
171
172
  }
172
173
  catch (e) {
173
- if (e instanceof Error)
174
+ if (e instanceof Error) {
174
175
  throw Error(`Failed to set bulk values: ${e.message}`);
176
+ }
177
+ throw e;
175
178
  }
176
179
  }
177
180
  /**
@@ -201,8 +204,10 @@ class KVStoreClient extends base_1.BaseEthersClient {
201
204
  await this.sendTxAndWait((overrides) => this.contract.setBulk([urlKey, hashKey], [url, contentHash], overrides), txOptions);
202
205
  }
203
206
  catch (e) {
204
- if (e instanceof Error)
207
+ if (e instanceof Error) {
205
208
  throw Error(`Failed to set URL and hash: ${e.message}`);
209
+ }
210
+ throw e;
206
211
  }
207
212
  }
208
213
  /**
@@ -222,18 +227,21 @@ class KVStoreClient extends base_1.BaseEthersClient {
222
227
  * ```
223
228
  */
224
229
  async get(address, key) {
225
- if (key === '')
230
+ if (key === '') {
226
231
  throw error_1.ErrorKVStoreEmptyKey;
227
- if (!ethers_1.ethers.isAddress(address))
232
+ }
233
+ if (!ethers_1.ethers.isAddress(address)) {
228
234
  throw error_1.ErrorInvalidAddress;
235
+ }
229
236
  try {
230
237
  const result = await this.contract?.get(address, key);
231
238
  return result;
232
239
  }
233
240
  catch (e) {
234
- if (e instanceof Error)
241
+ if (e instanceof Error) {
235
242
  throw Error(`Failed to get value: ${e.message}`);
236
- return e;
243
+ }
244
+ throw e;
237
245
  }
238
246
  }
239
247
  }
@@ -256,173 +264,3 @@ __decorate([
256
264
  __metadata("design:paramtypes", [String, Object, Object]),
257
265
  __metadata("design:returntype", Promise)
258
266
  ], KVStoreClient.prototype, "setFileUrlAndHash", null);
259
- /**
260
- * Utility helpers for KVStore-related queries.
261
- *
262
- * @example
263
- * ```ts
264
- * import { ChainId, KVStoreUtils } from '@human-protocol/sdk';
265
- *
266
- * const kvStoreData = await KVStoreUtils.getKVStoreData(
267
- * ChainId.POLYGON_AMOY,
268
- * "0x1234567890123456789012345678901234567890"
269
- * );
270
- * console.log('KVStore data:', kvStoreData);
271
- * ```
272
- */
273
- class KVStoreUtils {
274
- /**
275
- * This function returns the KVStore data for a given address.
276
- *
277
- * @param chainId - Network in which the KVStore is deployed
278
- * @param address - Address of the KVStore
279
- * @param options - Optional configuration for subgraph requests.
280
- * @returns KVStore data
281
- * @throws ErrorUnsupportedChainID If the network's chainId is not supported
282
- * @throws ErrorInvalidAddress If the address is invalid
283
- *
284
- * @example
285
- * ```ts
286
- * const kvStoreData = await KVStoreUtils.getKVStoreData(
287
- * ChainId.POLYGON_AMOY,
288
- * "0x1234567890123456789012345678901234567890"
289
- * );
290
- * console.log('KVStore data:', kvStoreData);
291
- * ```
292
- */
293
- static async getKVStoreData(chainId, address, options) {
294
- const networkData = constants_1.NETWORKS[chainId];
295
- if (!networkData) {
296
- throw error_1.ErrorUnsupportedChainID;
297
- }
298
- if (address && !ethers_1.ethers.isAddress(address)) {
299
- throw error_1.ErrorInvalidAddress;
300
- }
301
- const { kvstores } = await (0, utils_1.customGqlFetch)((0, utils_1.getSubgraphUrl)(networkData), (0, kvstore_1.GET_KVSTORE_BY_ADDRESS_QUERY)(), { address: address.toLowerCase() }, options);
302
- const kvStoreData = kvstores.map((item) => ({
303
- key: item.key,
304
- value: item.value,
305
- }));
306
- return kvStoreData || [];
307
- }
308
- /**
309
- * Gets the value of a key-value pair in the KVStore using the subgraph.
310
- *
311
- * @param chainId - Network in which the KVStore is deployed
312
- * @param address - Address from which to get the key value.
313
- * @param key - Key to obtain the value.
314
- * @param options - Optional configuration for subgraph requests.
315
- * @returns Value of the key.
316
- * @throws ErrorUnsupportedChainID If the network's chainId is not supported
317
- * @throws ErrorInvalidAddress If the address is invalid
318
- * @throws ErrorKVStoreEmptyKey If the key is empty
319
- * @throws InvalidKeyError If the key is not found
320
- *
321
- * @example
322
- * ```ts
323
- * const value = await KVStoreUtils.get(
324
- * ChainId.POLYGON_AMOY,
325
- * '0x1234567890123456789012345678901234567890',
326
- * 'role'
327
- * );
328
- * console.log('Value:', value);
329
- * ```
330
- */
331
- static async get(chainId, address, key, options) {
332
- if (key === '')
333
- throw error_1.ErrorKVStoreEmptyKey;
334
- if (!ethers_1.ethers.isAddress(address))
335
- throw error_1.ErrorInvalidAddress;
336
- const networkData = constants_1.NETWORKS[chainId];
337
- if (!networkData) {
338
- throw error_1.ErrorUnsupportedChainID;
339
- }
340
- const { kvstores } = await (0, utils_1.customGqlFetch)((0, utils_1.getSubgraphUrl)(networkData), (0, kvstore_1.GET_KVSTORE_BY_ADDRESS_AND_KEY_QUERY)(), { address: address.toLowerCase(), key }, options);
341
- if (!kvstores || kvstores.length === 0) {
342
- throw new error_1.InvalidKeyError(key, address);
343
- }
344
- return kvstores[0].value;
345
- }
346
- /**
347
- * Gets the URL value of the given entity, and verifies its hash.
348
- *
349
- * @param chainId - Network in which the KVStore is deployed
350
- * @param address - Address from which to get the URL value.
351
- * @param urlKey - Configurable URL key. `url` by default.
352
- * @param options - Optional configuration for subgraph requests.
353
- * @returns URL value for the given address if it exists, and the content is valid
354
- * @throws ErrorInvalidAddress If the address is invalid
355
- * @throws ErrorInvalidHash If the hash verification fails
356
- * @throws Error If fetching URL or hash fails
357
- *
358
- * @example
359
- * ```ts
360
- * const url = await KVStoreUtils.getFileUrlAndVerifyHash(
361
- * ChainId.POLYGON_AMOY,
362
- * '0x1234567890123456789012345678901234567890'
363
- * );
364
- * console.log('Verified URL:', url);
365
- * ```
366
- */
367
- static async getFileUrlAndVerifyHash(chainId, address, urlKey = 'url', options) {
368
- if (!ethers_1.ethers.isAddress(address))
369
- throw error_1.ErrorInvalidAddress;
370
- const hashKey = urlKey + '_hash';
371
- let url = '', hash = '';
372
- try {
373
- url = await this.get(chainId, address, urlKey, options);
374
- }
375
- catch (e) {
376
- if (e instanceof Error)
377
- throw Error(`Failed to get URL: ${e.message}`);
378
- }
379
- // Return empty string
380
- if (!url?.length) {
381
- return '';
382
- }
383
- try {
384
- hash = await this.get(chainId, address, hashKey);
385
- }
386
- catch (e) {
387
- if (e instanceof Error)
388
- throw Error(`Failed to get Hash: ${e.message}`);
389
- }
390
- const content = await fetch(url).then((res) => res.text());
391
- const contentHash = ethers_1.ethers.keccak256(ethers_1.ethers.toUtf8Bytes(content));
392
- const formattedHash = hash?.replace(/^0x/, '');
393
- const formattedContentHash = contentHash?.replace(/^0x/, '');
394
- if (formattedHash !== formattedContentHash) {
395
- throw error_1.ErrorInvalidHash;
396
- }
397
- return url;
398
- }
399
- /**
400
- * Gets the public key of the given entity, and verifies its hash.
401
- *
402
- * @param chainId - Network in which the KVStore is deployed
403
- * @param address - Address from which to get the public key.
404
- * @param options - Optional configuration for subgraph requests.
405
- * @returns Public key for the given address if it exists, and the content is valid
406
- * @throws ErrorInvalidAddress If the address is invalid
407
- * @throws ErrorInvalidHash If the hash verification fails
408
- * @throws Error If fetching the public key fails
409
- *
410
- * @example
411
- * ```ts
412
- * const publicKey = await KVStoreUtils.getPublicKey(
413
- * ChainId.POLYGON_AMOY,
414
- * '0x1234567890123456789012345678901234567890'
415
- * );
416
- * console.log('Public key:', publicKey);
417
- * ```
418
- */
419
- static async getPublicKey(chainId, address, options) {
420
- const publicKeyUrl = await this.getFileUrlAndVerifyHash(chainId, address, constants_1.KVStoreKeys.publicKey, options);
421
- if (publicKeyUrl === '') {
422
- return '';
423
- }
424
- const publicKey = await fetch(publicKeyUrl).then((res) => res.text());
425
- return publicKey;
426
- }
427
- }
428
- exports.KVStoreUtils = KVStoreUtils;