@human-protocol/sdk 5.0.0-beta.3 → 5.1.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 (52) hide show
  1. package/dist/base.d.ts +1 -10
  2. package/dist/base.d.ts.map +1 -1
  3. package/dist/base.js +0 -21
  4. package/dist/constants.d.ts +0 -1
  5. package/dist/constants.d.ts.map +1 -1
  6. package/dist/constants.js +7 -22
  7. package/dist/enums.d.ts +0 -1
  8. package/dist/enums.d.ts.map +1 -1
  9. package/dist/enums.js +0 -1
  10. package/dist/error.d.ts +4 -0
  11. package/dist/error.d.ts.map +1 -1
  12. package/dist/error.js +5 -1
  13. package/dist/escrow.d.ts +75 -19
  14. package/dist/escrow.d.ts.map +1 -1
  15. package/dist/escrow.js +144 -58
  16. package/dist/interfaces.d.ts +9 -0
  17. package/dist/interfaces.d.ts.map +1 -1
  18. package/dist/kvstore.d.ts +9 -5
  19. package/dist/kvstore.d.ts.map +1 -1
  20. package/dist/kvstore.js +15 -15
  21. package/dist/operator.d.ts +9 -5
  22. package/dist/operator.d.ts.map +1 -1
  23. package/dist/operator.js +16 -16
  24. package/dist/staking.d.ts +6 -3
  25. package/dist/staking.d.ts.map +1 -1
  26. package/dist/staking.js +13 -14
  27. package/dist/statistics.d.ts +13 -7
  28. package/dist/statistics.d.ts.map +1 -1
  29. package/dist/statistics.js +24 -22
  30. package/dist/transaction.d.ts +5 -3
  31. package/dist/transaction.d.ts.map +1 -1
  32. package/dist/transaction.js +8 -10
  33. package/dist/utils.d.ts +7 -0
  34. package/dist/utils.d.ts.map +1 -1
  35. package/dist/utils.js +51 -1
  36. package/dist/worker.d.ts +5 -3
  37. package/dist/worker.d.ts.map +1 -1
  38. package/dist/worker.js +8 -10
  39. package/package.json +3 -2
  40. package/src/base.ts +1 -23
  41. package/src/constants.ts +6 -24
  42. package/src/enums.ts +0 -1
  43. package/src/error.ts +7 -0
  44. package/src/escrow.ts +232 -97
  45. package/src/interfaces.ts +10 -0
  46. package/src/kvstore.ts +26 -24
  47. package/src/operator.ts +54 -26
  48. package/src/staking.ts +27 -26
  49. package/src/statistics.ts +87 -47
  50. package/src/transaction.ts +39 -25
  51. package/src/utils.ts +64 -0
  52. package/src/worker.ts +32 -17
package/dist/base.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ContractRunner, Overrides } from 'ethers';
1
+ import { ContractRunner } from 'ethers';
2
2
  import { NetworkData } from './types';
3
3
  /**
4
4
  * ## Introduction
@@ -16,14 +16,5 @@ export declare abstract class BaseEthersClient {
16
16
  * @param {NetworkData} networkData The network information required to connect to the contracts
17
17
  */
18
18
  constructor(runner: ContractRunner, networkData: NetworkData);
19
- /**
20
- * Internal helper to enrich transaction overrides with network specific defaults.
21
- *
22
- * Aurora networks use a fixed gas price. We always override any user provided
23
- * gasPrice with the canonical DEFAULT_AURORA_GAS_PRICE to avoid mismatches
24
- * or tx failures due to an unexpected value. For other networks the user
25
- * supplied fee parameters are left untouched.
26
- */
27
- protected applyTxDefaults(txOptions?: Overrides): Overrides;
28
19
  }
29
20
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC;;;;;GAKG;AACH,8BAAsB,gBAAgB;IACpC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IAEhC;;;;;OAKG;gBACS,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW;IAK5D;;;;;;;OAOG;IACH,SAAS,CAAC,eAAe,CAAC,SAAS,GAAE,SAAc,GAAG,SAAS;CAWhE"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;GAKG;AACH,8BAAsB,gBAAgB;IACpC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC;IAC1B,WAAW,EAAE,WAAW,CAAC;IAEhC;;;;;OAKG;gBACS,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW;CAI7D"}
package/dist/base.js CHANGED
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseEthersClient = void 0;
4
- const enums_1 = require("./enums");
5
- const constants_1 = require("./constants");
6
4
  /**
7
5
  * ## Introduction
8
6
  *
@@ -20,24 +18,5 @@ class BaseEthersClient {
20
18
  this.networkData = networkData;
21
19
  this.runner = runner;
22
20
  }
23
- /**
24
- * Internal helper to enrich transaction overrides with network specific defaults.
25
- *
26
- * Aurora networks use a fixed gas price. We always override any user provided
27
- * gasPrice with the canonical DEFAULT_AURORA_GAS_PRICE to avoid mismatches
28
- * or tx failures due to an unexpected value. For other networks the user
29
- * supplied fee parameters are left untouched.
30
- */
31
- applyTxDefaults(txOptions = {}) {
32
- if (this.networkData.chainId === enums_1.ChainId.AURORA_TESTNET) {
33
- return {
34
- ...txOptions,
35
- gasPrice: constants_1.DEFAULT_AURORA_GAS_PRICE,
36
- maxFeePerGas: undefined,
37
- maxPriorityFeePerGas: undefined,
38
- };
39
- }
40
- return txOptions;
41
- }
42
21
  }
43
22
  exports.BaseEthersClient = BaseEthersClient;
@@ -5,7 +5,6 @@ export declare const DEFAULT_ENDPOINT = "localhost";
5
5
  export declare const DEFAULT_REGION = "eu";
6
6
  export declare const DEFAULT_PORT = 9000;
7
7
  export declare const DEFAULT_USE_SSL = false;
8
- export declare const DEFAULT_AURORA_GAS_PRICE: bigint;
9
8
  export declare enum HttpStatus {
10
9
  OK = 200,
11
10
  CREATED = 201,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC,eAAO,MAAM,wBAAwB,QAAoC,CAAC;AAE1E,oBAAY,UAAU;IACpB,EAAE,MAAM;IACR,OAAO,MAAM;IACb,WAAW,MAAM;IACjB,YAAY,MAAM;IAClB,gBAAgB,MAAM;IACtB,SAAS,MAAM;IACf,SAAS,MAAM;IACf,qBAAqB,MAAM;CAC5B;AAED,eAAO,MAAM,QAAQ,EAAE;KACpB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,WAAW;CA0HnC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;CAKhB,CAAC;AAEF,eAAO,MAAM,4BAA4B,uBAAuB,CAAC;AAEjE,eAAO,MAAM,4BAA4B,KAAK,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC,oBAAY,UAAU;IACpB,EAAE,MAAM;IACR,OAAO,MAAM;IACb,WAAW,MAAM;IACjB,YAAY,MAAM;IAClB,gBAAgB,MAAM;IACtB,SAAS,MAAM;IACf,SAAS,MAAM;IACf,qBAAqB,MAAM;CAC5B;AAED,eAAO,MAAM,QAAQ,EAAE;KACpB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,WAAW;CA2GnC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;CAKhB,CAAC;AAEF,eAAO,MAAM,4BAA4B,uBAAuB,CAAC;AAEjE,eAAO,MAAM,4BAA4B,KAAK,CAAC"}
package/dist/constants.js CHANGED
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESCROW_BULK_PAYOUT_MAX_ITEMS = exports.SUBGRAPH_API_KEY_PLACEHOLDER = exports.Role = exports.KVStoreKeys = exports.NETWORKS = exports.HttpStatus = exports.DEFAULT_AURORA_GAS_PRICE = exports.DEFAULT_USE_SSL = exports.DEFAULT_PORT = exports.DEFAULT_REGION = exports.DEFAULT_ENDPOINT = exports.DEFAULT_PUBLIC_BUCKET = void 0;
4
- const ethers_1 = require("ethers");
3
+ exports.ESCROW_BULK_PAYOUT_MAX_ITEMS = exports.SUBGRAPH_API_KEY_PLACEHOLDER = exports.Role = exports.KVStoreKeys = exports.NETWORKS = exports.HttpStatus = exports.DEFAULT_USE_SSL = exports.DEFAULT_PORT = exports.DEFAULT_REGION = exports.DEFAULT_ENDPOINT = exports.DEFAULT_PUBLIC_BUCKET = void 0;
5
4
  const enums_1 = require("./enums");
6
5
  exports.DEFAULT_PUBLIC_BUCKET = 'escrow-public-results';
7
6
  exports.DEFAULT_ENDPOINT = 'localhost';
8
7
  exports.DEFAULT_REGION = 'eu';
9
8
  exports.DEFAULT_PORT = 9000;
10
9
  exports.DEFAULT_USE_SSL = false;
11
- exports.DEFAULT_AURORA_GAS_PRICE = ethers_1.ethers.parseUnits('0.07', 'gwei');
12
10
  var HttpStatus;
13
11
  (function (HttpStatus) {
14
12
  HttpStatus[HttpStatus["OK"] = 200] = "OK";
@@ -30,7 +28,7 @@ exports.NETWORKS = {
30
28
  stakingAddress: '0xEf6Da3aB52c33925Be3F84038193a7e1331F51E6',
31
29
  kvstoreAddress: '0xB6d36B1CDaD50302BCB3DB43bAb0D349458e1b8D',
32
30
  subgraphUrl: 'https://api.studio.thegraph.com/query/74256/ethereum/version/latest',
33
- subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmQwp4Rr2J4UbPFykb9eXg2t7GPcGRS6WT7QzExZtv32jK',
31
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmXGmcjEtwwEgB83KE2ECjjYY38kLMqzaq4ip8GWY7A6zz',
34
32
  oldSubgraphUrl: '',
35
33
  oldFactoryAddress: '',
36
34
  },
@@ -43,7 +41,7 @@ exports.NETWORKS = {
43
41
  stakingAddress: '0x2163e3A40032Af1C359ac731deaB48258b317890',
44
42
  kvstoreAddress: '0xCc0AF0635aa19fE799B6aFDBe28fcFAeA7f00a60',
45
43
  subgraphUrl: 'https://api.studio.thegraph.com/query/74256/sepolia/version/latest',
46
- subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmaDx3yapopC5xbXqqpkuZ5yLNPjs35wui9kyLS2oX55uE',
44
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmT4xNvZh8ymarrk1zdytjLhCW59iuTavsd4JgHS4LbCVB',
47
45
  oldSubgraphUrl: '',
48
46
  oldFactoryAddress: '',
49
47
  },
@@ -56,7 +54,7 @@ exports.NETWORKS = {
56
54
  stakingAddress: '0xE24e5C08E28331D24758b69A5E9f383D2bDD1c98',
57
55
  kvstoreAddress: '0x21A0C4CED7aE447fCf87D9FE3A29FA9B3AB20Ff1',
58
56
  subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc/version/latest',
59
- subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmT2VoBLjAfc4pQzDmeCGra6weoLuk2jPRgnRz5iSMUw1t',
57
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmdVdpm9NnFz5B8QyzhW1bW1nNfRWemTiFn2MrhYZGTSQD',
60
58
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc',
61
59
  oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4',
62
60
  },
@@ -69,7 +67,7 @@ exports.NETWORKS = {
69
67
  stakingAddress: '0xD6D347ba6987519B4e42EcED43dF98eFf5465a23',
70
68
  kvstoreAddress: '0x32e27177BA6Ea91cf28dfd91a0Da9822A4b74EcF',
71
69
  subgraphUrl: 'https://api.studio.thegraph.com/query/74256/bsc-testnet/version/latest',
72
- subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/Qmezp2vvVWXasTeyBmLHUaMA8WyX253r7RXcs1M4Zw2hN8',
70
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZjYMktZe8RAz7W7qL33VZBV6AC57xsLyE1cEfv6NABdZ',
73
71
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest',
74
72
  oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f',
75
73
  },
@@ -82,7 +80,7 @@ exports.NETWORKS = {
82
80
  stakingAddress: '0x01D115E9E8bF0C58318793624CC662a030D07F1D',
83
81
  kvstoreAddress: '0xbcB28672F826a50B03EE91B28145EAbddA73B2eD',
84
82
  subgraphUrl: 'https://api.studio.thegraph.com/query/74256/polygon/version/latest',
85
- subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmT72ecfx6Zaje21kLNi17kDJTpPKFYvzQETDyLpQgDrPu',
83
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmUt9mmfNjtC5ZnQNiWHRbFG3k5zfngMuoTyky9jhXYqG2',
86
84
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon',
87
85
  oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794',
88
86
  },
@@ -95,20 +93,7 @@ exports.NETWORKS = {
95
93
  stakingAddress: '0xffE496683F842a923110415b7278ded3F265f2C5',
96
94
  kvstoreAddress: '0x724AeFC243EdacCA27EAB86D3ec5a76Af4436Fc7',
97
95
  subgraphUrl: 'https://api.studio.thegraph.com/query/74256/amoy/version/latest',
98
- subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZq6nAyJZgTqCEChm95xqntPpHJ7mnMBi9iDPDAQSyxZa',
99
- oldSubgraphUrl: '',
100
- oldFactoryAddress: '',
101
- },
102
- [enums_1.ChainId.AURORA_TESTNET]: {
103
- chainId: enums_1.ChainId.AURORA_TESTNET,
104
- title: 'Aurora Testnet',
105
- scanUrl: 'https://explorer.testnet.aurora.dev/',
106
- factoryAddress: '0xbA537fEF2442cD48f60686FE1Bbbe40F964a7940',
107
- hmtAddress: '0x792abbcC99c01dbDec49c9fa9A828a186Da45C33',
108
- stakingAddress: '0x7457d26a3C70Bd71F7557C773b303c1dB82BBB68',
109
- kvstoreAddress: '0xD6D347ba6987519B4e42EcED43dF98eFf5465a23',
110
- subgraphUrl: 'https://api.studio.thegraph.com/query/74256/amoy/version/latest',
111
- subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmVHYvjbsgAroR9EMgqqGTQ7aKPRFMVekY6evU6mFPUU7J',
96
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWRUFWpWoRRUh7Ec1HUJEwxc84DkP4iFTfLLsoVngJAPa',
112
97
  oldSubgraphUrl: '',
113
98
  oldFactoryAddress: '',
114
99
  },
package/dist/enums.d.ts CHANGED
@@ -6,7 +6,6 @@ export declare enum ChainId {
6
6
  BSC_TESTNET = 97,
7
7
  POLYGON = 137,
8
8
  POLYGON_AMOY = 80002,
9
- AURORA_TESTNET = 1313161555,
10
9
  LOCALHOST = 1338
11
10
  }
12
11
  export declare enum OrderDirection {
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,GAAG,KAAK;IACR,OAAO,IAAI;IACX,OAAO,WAAW;IAClB,WAAW,KAAK;IAChB,WAAW,KAAK;IAChB,OAAO,MAAM;IACb,YAAY,QAAQ;IACpB,cAAc,aAAa;IAC3B,SAAS,OAAO;CACjB;AAED,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,gBAAgB,qBAAqB;IACrC,aAAa,kBAAkB;CAChC"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,GAAG,KAAK;IACR,OAAO,IAAI;IACX,OAAO,WAAW;IAClB,WAAW,KAAK;IAChB,WAAW,KAAK;IAChB,OAAO,MAAM;IACb,YAAY,QAAQ;IACpB,SAAS,OAAO;CACjB;AAED,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,gBAAgB,qBAAqB;IACrC,aAAa,kBAAkB;CAChC"}
package/dist/enums.js CHANGED
@@ -10,7 +10,6 @@ var ChainId;
10
10
  ChainId[ChainId["BSC_TESTNET"] = 97] = "BSC_TESTNET";
11
11
  ChainId[ChainId["POLYGON"] = 137] = "POLYGON";
12
12
  ChainId[ChainId["POLYGON_AMOY"] = 80002] = "POLYGON_AMOY";
13
- ChainId[ChainId["AURORA_TESTNET"] = 1313161555] = "AURORA_TESTNET";
14
13
  ChainId[ChainId["LOCALHOST"] = 1338] = "LOCALHOST";
15
14
  })(ChainId || (exports.ChainId = ChainId = {}));
16
15
  var OrderDirection;
package/dist/error.d.ts CHANGED
@@ -198,6 +198,10 @@ export declare const ErrorStoreResultsVersion: Error;
198
198
  * @constant {Error} - Invalid bulkPayOut parameters for the escrow version
199
199
  */
200
200
  export declare const ErrorBulkPayOutVersion: Error;
201
+ /**
202
+ * @constant {Error} - Retry configuration is missing required parameters.
203
+ */
204
+ export declare const ErrorRetryParametersMissing: Error;
201
205
  /**
202
206
  * @constant {Warning} - Possible version mismatch.
203
207
  */
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB,OAA2C,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,gCAAgC,OAE5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,OAEvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B,OAE1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,OAAgC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,wBAAwB,OAA8B,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,2BAA2B,OAAiC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,oBAAoB,OAAmC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,uBAAuB,OAEnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,OAA+B,CAAC;AAEhE;;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SAAQ,KAAK;gBAC5B,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAGzC"}
package/dist/error.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorBulkPayOutVersion = exports.ErrorStoreResultsVersion = exports.ErrorUnsupportedStatus = exports.ErrorInvalidHash = exports.ErrorHashIsEmptyString = exports.ErrorLaunchedEventIsNotEmitted = exports.ErrorRecipientAndAmountsMustBeSameLength = exports.ErrorAmountsCannotBeEmptyArray = exports.ErrorEscrowDoesNotHaveEnoughBalance = exports.ErrorAmountMustBeGreaterThanZero = exports.ErrorTooManyRecipients = exports.ErrorRecipientCannotBeEmptyArray = exports.ErrorTotalFeeMustBeLessThanHundred = exports.ErrorFeeMustBeBetweenZeroAndHundred = exports.ErrorNoURLprovided = exports.ErrorInvalidManifest = exports.ErrorInvalidUrl = exports.ErrorManifestFileDoesNotExist = exports.ErrorTransferEventNotFoundInTransactionLogs = exports.ErrorEscrowAddressIsNotProvidedByFactory = exports.ErrorSigner = exports.ErrorStakerNotFound = exports.ErrorUnsupportedChainID = exports.ErrorProviderDoesNotExist = exports.ErrorHMTokenAmountNotApproved = exports.ErrorFailedToCheckAllowance = exports.ErrorFailedToApproveStakingAmountSignerDoesNotExist = exports.ErrorStakingGetStakers = exports.ErrorInvalidEscrowAddressProvided = exports.ErrorCannotUseDateAndBlockSimultaneously = exports.ErrorInvalidHashProvided = exports.ErrorInvalidStakerAddressProvided = exports.ErrorInvalidSlasherAddressProvided = exports.ErrorInvalidStakingValueSign = exports.ErrorInvalidStakingValueType = exports.ErrorStakingValueMustBePositive = exports.ErrorInvalidExchangeOracleAddressProvided = exports.ErrorInvalidReputationOracleAddressProvided = exports.ErrorInvalidRecordingOracleAddressProvided = exports.ErrorInvalidTokenAddress = exports.ErrorInvalidAddress = exports.ErrorKVStoreArrayLength = exports.ErrorKVStoreEmptyKey = exports.ErrorStorageFileNotUploaded = exports.ErrorStorageFileNotFound = exports.ErrorStorageBucketNotFound = exports.ErrorStorageCredentialsMissing = exports.ErrorStorageClientNotExists = exports.ErrorStorageClientNotInitialized = exports.ErrorStakingMissing = void 0;
4
- exports.InvalidKeyError = exports.InvalidEthereumAddressError = exports.ContractExecutionError = exports.TransactionReplaced = exports.NonceExpired = exports.NumericFault = exports.ReplacementUnderpriced = exports.InvalidArgumentError = exports.EthereumError = exports.WarnSubgraphApiKeyNotProvided = exports.WarnVersionMismatch = void 0;
4
+ exports.InvalidKeyError = exports.InvalidEthereumAddressError = exports.ContractExecutionError = exports.TransactionReplaced = exports.NonceExpired = exports.NumericFault = exports.ReplacementUnderpriced = exports.InvalidArgumentError = exports.EthereumError = exports.WarnSubgraphApiKeyNotProvided = exports.WarnVersionMismatch = exports.ErrorRetryParametersMissing = void 0;
5
5
  /**
6
6
  * @constant {Error} - The Staking contract is missing.
7
7
  */
@@ -202,6 +202,10 @@ exports.ErrorStoreResultsVersion = new Error('Invalid storeResults parameters fo
202
202
  * @constant {Error} - Invalid bulkPayOut parameters for the escrow version
203
203
  */
204
204
  exports.ErrorBulkPayOutVersion = new Error('Invalid bulkPayOut parameters for the contract version of the specified escrow address');
205
+ /**
206
+ * @constant {Error} - Retry configuration is missing required parameters.
207
+ */
208
+ exports.ErrorRetryParametersMissing = new Error('Retry configuration must include both maxRetries and baseDelay');
205
209
  /**
206
210
  * @constant {Warning} - Possible version mismatch.
207
211
  */
package/dist/escrow.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ContractRunner, Overrides } from 'ethers';
2
2
  import { BaseEthersClient } from './base';
3
- import { ChainId, OrderDirection } from './enums';
4
- import { IEscrow, IEscrowConfig, IEscrowsFilter, IPayoutFilter, IStatusEventFilter, IStatusEvent, ICancellationRefund, IPayout, IEscrowWithdraw } from './interfaces';
3
+ import { ChainId } from './enums';
4
+ import { IEscrow, IEscrowConfig, IEscrowsFilter, IPayoutFilter, IStatusEventFilter, IStatusEvent, ICancellationRefund, ICancellationRefundFilter, IPayout, IEscrowWithdraw, SubgraphOptions } from './interfaces';
5
5
  import { EscrowStatus, NetworkData, TransactionLikeWithNonce } from './types';
6
6
  /**
7
7
  * ## Introduction
@@ -100,8 +100,8 @@ export declare class EscrowClient extends BaseEthersClient {
100
100
  /**
101
101
  * This function creates an escrow contract that uses the token passed to pay oracle fees and reward workers.
102
102
  *
103
- * @param {string} tokenAddress Token address to use for payouts.
104
- * @param {string} jobRequesterId Job Requester Id
103
+ * @param {string} tokenAddress - The address of the token to use for escrow funding.
104
+ * @param {string} jobRequesterId - Identifier for the job requester.
105
105
  * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
106
106
  * @returns {Promise<string>} Returns the address of the escrow created.
107
107
  *
@@ -127,6 +127,65 @@ export declare class EscrowClient extends BaseEthersClient {
127
127
  * ```
128
128
  */
129
129
  createEscrow(tokenAddress: string, jobRequesterId: string, txOptions?: Overrides): Promise<string>;
130
+ private verifySetupParameters;
131
+ /**
132
+ * Creates, funds, and sets up a new escrow contract in a single transaction.
133
+ *
134
+ * @param {string} tokenAddress - The ERC-20 token address used to fund the escrow.
135
+ * @param {bigint} amount - The token amount to fund the escrow with.
136
+ * @param {string} jobRequesterId - An off-chain identifier for the job requester.
137
+ * @param {IEscrowConfig} escrowConfig - Configuration parameters for escrow setup:
138
+ * - `recordingOracle`: Address of the recording oracle.
139
+ * - `reputationOracle`: Address of the reputation oracle.
140
+ * - `exchangeOracle`: Address of the exchange oracle.
141
+ * - `recordingOracleFee`: Fee (in basis points or percentage * 100) for the recording oracle.
142
+ * - `reputationOracleFee`: Fee for the reputation oracle.
143
+ * - `exchangeOracleFee`: Fee for the exchange oracle.
144
+ * - `manifest`: URL to the manifest file.
145
+ * - `manifestHash`: Hash of the manifest content.
146
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
147
+ *
148
+ * @returns {Promise<string>} Returns the address of the escrow created.
149
+ *
150
+ * @example
151
+ * import { Wallet, ethers } from 'ethers';
152
+ * import { EscrowClient, IERC20__factory } from '@human-protocol/sdk';
153
+ *
154
+ * const rpcUrl = 'YOUR_RPC_URL';
155
+ * const privateKey = 'YOUR_PRIVATE_KEY';
156
+ * const provider = new ethers.JsonRpcProvider(rpcUrl);
157
+ * const signer = new Wallet(privateKey, provider);
158
+ *
159
+ * const escrowClient = await EscrowClient.build(signer);
160
+ *
161
+ * const tokenAddress = '0xTokenAddress';
162
+ * const amount = ethers.parseUnits('1000', 18);
163
+ * const jobRequesterId = 'requester-123';
164
+ *
165
+ * const token = IERC20__factory.connect(tokenAddress, signer);
166
+ * await token.approve(escrowClient.escrowFactoryContract.target, amount);
167
+ *
168
+ * const escrowConfig = {
169
+ * recordingOracle: '0xRecordingOracle',
170
+ * reputationOracle: '0xReputationOracle',
171
+ * exchangeOracle: '0xExchangeOracle',
172
+ * recordingOracleFee: 5n,
173
+ * reputationOracleFee: 5n,
174
+ * exchangeOracleFee: 5n,
175
+ * manifest: 'https://example.com/manifest.json',
176
+ * manifestHash: 'manifestHash-123',
177
+ * } satisfies IEscrowConfig;
178
+ *
179
+ * const escrowAddress = await escrowClient.createFundAndSetupEscrow(
180
+ * tokenAddress,
181
+ * amount,
182
+ * jobRequesterId,
183
+ * escrowConfig
184
+ * );
185
+ *
186
+ * console.log('Escrow created at:', escrowAddress);
187
+ */
188
+ createFundAndSetupEscrow(tokenAddress: string, amount: bigint, jobRequesterId: string, escrowConfig: IEscrowConfig, txOptions?: Overrides): Promise<string>;
130
189
  /**
131
190
  * This function sets up the parameters of the escrow.
132
191
  *
@@ -896,6 +955,7 @@ export declare class EscrowUtils {
896
955
  *
897
956
  *
898
957
  * @param {IEscrowsFilter} filter Filter parameters.
958
+ * @param {SubgraphOptions} options Optional configuration for subgraph requests.
899
959
  * @returns {IEscrow[]} List of escrows that match the filter.
900
960
  *
901
961
  * **Code example**
@@ -912,7 +972,7 @@ export declare class EscrowUtils {
912
972
  * const escrows = await EscrowUtils.getEscrows(filters);
913
973
  * ```
914
974
  */
915
- static getEscrows(filter: IEscrowsFilter): Promise<IEscrow[]>;
975
+ static getEscrows(filter: IEscrowsFilter, options?: SubgraphOptions): Promise<IEscrow[]>;
916
976
  /**
917
977
  * This function returns the escrow data for a given address.
918
978
  *
@@ -966,6 +1026,7 @@ export declare class EscrowUtils {
966
1026
  *
967
1027
  * @param {ChainId} chainId Network in which the escrow has been deployed
968
1028
  * @param {string} escrowAddress Address of the escrow
1029
+ * @param {SubgraphOptions} options Optional configuration for subgraph requests.
969
1030
  * @returns {Promise<IEscrow | null>} - Escrow data or null if not found.
970
1031
  *
971
1032
  * **Code example**
@@ -976,7 +1037,7 @@ export declare class EscrowUtils {
976
1037
  * const escrow = new EscrowUtils.getEscrow(ChainId.POLYGON_AMOY, "0x1234567890123456789012345678901234567890");
977
1038
  * ```
978
1039
  */
979
- static getEscrow(chainId: ChainId, escrowAddress: string): Promise<IEscrow | null>;
1040
+ static getEscrow(chainId: ChainId, escrowAddress: string, options?: SubgraphOptions): Promise<IEscrow | null>;
980
1041
  /**
981
1042
  * This function returns the status events for a given set of networks within an optional date range.
982
1043
  *
@@ -1013,6 +1074,7 @@ export declare class EscrowUtils {
1013
1074
  * ```
1014
1075
  *
1015
1076
  * @param {IStatusEventFilter} filter Filter parameters.
1077
+ * @param {SubgraphOptions} options Optional configuration for subgraph requests.
1016
1078
  * @returns {Promise<StatusEvent[]>} - Array of status events with their corresponding statuses.
1017
1079
  *
1018
1080
  * **Code example**
@@ -1033,7 +1095,7 @@ export declare class EscrowUtils {
1033
1095
  * })();
1034
1096
  * ```
1035
1097
  */
1036
- static getStatusEvents(filter: IStatusEventFilter): Promise<IStatusEvent[]>;
1098
+ static getStatusEvents(filter: IStatusEventFilter, options?: SubgraphOptions): Promise<IStatusEvent[]>;
1037
1099
  /**
1038
1100
  * This function returns the payouts for a given set of networks.
1039
1101
  *
@@ -1043,6 +1105,7 @@ export declare class EscrowUtils {
1043
1105
  * Fetch payouts from the subgraph.
1044
1106
  *
1045
1107
  * @param {IPayoutFilter} filter Filter parameters.
1108
+ * @param {SubgraphOptions} options Optional configuration for subgraph requests.
1046
1109
  * @returns {Promise<IPayout[]>} List of payouts matching the filters.
1047
1110
  *
1048
1111
  * **Code example**
@@ -1060,7 +1123,7 @@ export declare class EscrowUtils {
1060
1123
  * console.log(payouts);
1061
1124
  * ```
1062
1125
  */
1063
- static getPayouts(filter: IPayoutFilter): Promise<IPayout[]>;
1126
+ static getPayouts(filter: IPayoutFilter, options?: SubgraphOptions): Promise<IPayout[]>;
1064
1127
  /**
1065
1128
  * This function returns the cancellation refunds for a given set of networks.
1066
1129
  *
@@ -1095,6 +1158,7 @@ export declare class EscrowUtils {
1095
1158
  *
1096
1159
  *
1097
1160
  * @param {Object} filter Filter parameters.
1161
+ * @param {SubgraphOptions} options Optional configuration for subgraph requests.
1098
1162
  * @returns {Promise<ICancellationRefund[]>} List of cancellation refunds matching the filters.
1099
1163
  *
1100
1164
  * **Code example**
@@ -1109,16 +1173,7 @@ export declare class EscrowUtils {
1109
1173
  * console.log(cancellationRefunds);
1110
1174
  * ```
1111
1175
  */
1112
- static getCancellationRefunds(filter: {
1113
- chainId: ChainId;
1114
- escrowAddress?: string;
1115
- receiver?: string;
1116
- from?: Date;
1117
- to?: Date;
1118
- first?: number;
1119
- skip?: number;
1120
- orderDirection?: OrderDirection;
1121
- }): Promise<ICancellationRefund[]>;
1176
+ static getCancellationRefunds(filter: ICancellationRefundFilter, options?: SubgraphOptions): Promise<ICancellationRefund[]>;
1122
1177
  /**
1123
1178
  * This function returns the cancellation refund for a given escrow address.
1124
1179
  *
@@ -1154,6 +1209,7 @@ export declare class EscrowUtils {
1154
1209
  *
1155
1210
  * @param {ChainId} chainId Network in which the escrow has been deployed
1156
1211
  * @param {string} escrowAddress Address of the escrow
1212
+ * @param {SubgraphOptions} options Optional configuration for subgraph requests.
1157
1213
  * @returns {Promise<ICancellationRefund>} Cancellation refund data
1158
1214
  *
1159
1215
  * **Code example**
@@ -1164,6 +1220,6 @@ export declare class EscrowUtils {
1164
1220
  * const cancellationRefund = await EscrowUtils.getCancellationRefund(ChainId.POLYGON_AMOY, "0x1234567890123456789012345678901234567890");
1165
1221
  * ```
1166
1222
  */
1167
- static getCancellationRefund(chainId: ChainId, escrowAddress: string): Promise<ICancellationRefund | null>;
1223
+ static getCancellationRefund(chainId: ChainId, escrowAddress: string, options?: SubgraphOptions): Promise<ICancellationRefund | null>;
1168
1224
  }
1169
1225
  //# sourceMappingURL=escrow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"escrow.d.ts","sourceRoot":"","sources":["../src/escrow.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,cAAc,EAAY,SAAS,EAAkB,MAAM,QAAQ,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAwClD,OAAO,EACL,OAAO,EACP,aAAa,EACb,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,OAAO,EACP,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAS9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,OAAO,CAAC,qBAAqB,CAAgB;IAE7C;;;;;OAKG;gBACS,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW;IAS5D;;;;;;;;OAQG;WACiB,KAAK,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAiBxE;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAQzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IAEU,YAAY,CACvB,YAAY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