@human-protocol/sdk 1.1.18 → 1.1.19

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/base.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Provider } from '@ethersproject/abstract-provider';
2
- import { Signer, ethers } from 'ethers';
2
+ import { Signer } from 'ethers';
3
3
  import { NetworkData } from './types';
4
4
  /**
5
5
  * ## Introduction
@@ -9,21 +9,13 @@ import { NetworkData } from './types';
9
9
  */
10
10
  export declare abstract class BaseEthersClient {
11
11
  protected signerOrProvider: Signer | Provider;
12
- protected gasPriceMultiplier?: number;
13
12
  networkData: NetworkData;
14
13
  /**
15
14
  * **BaseClient constructor**
16
15
  *
17
16
  * @param {Signer | Provider} signerOrProvider The Signer or Provider object to interact with the Ethereum network
18
17
  * @param {NetworkData} networkData The network information required to connect to the contracts
19
- * @param {number | undefined} gasPriceMultiplier The multiplier to apply to the gas price
20
18
  */
21
- constructor(signerOrProvider: Signer | Provider, networkData: NetworkData, gasPriceMultiplier?: number);
22
- /**
23
- * Adjust the gas price, and return as an option to be passed to a transaction
24
- *
25
- * @returns {Promise<{ gasPrice: BigNumber }>} Returns the gas price options
26
- */
27
- protected gasPriceOptions(): Promise<Partial<ethers.Overrides>>;
19
+ constructor(signerOrProvider: Signer | Provider, networkData: NetworkData);
28
20
  }
29
21
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC;;;;;GAKG;AACH,8BAAsB,gBAAgB;IACpC,SAAS,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9C,SAAS,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;IAEhC;;;;;;OAMG;gBAED,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,WAAW,EAAE,WAAW,EACxB,kBAAkB,CAAC,EAAE,MAAM;IAO7B;;;;OAIG;cACa,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;CAUtE"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;GAKG;AACH,8BAAsB,gBAAgB;IACpC,SAAS,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,CAAC;IACvC,WAAW,EAAE,WAAW,CAAC;IAEhC;;;;;OAKG;gBACS,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EAAE,WAAW,EAAE,WAAW;CAI1E"}
package/dist/base.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseEthersClient = void 0;
4
- const utils_1 = require("./utils");
5
4
  /**
6
5
  * ## Introduction
7
6
  *
@@ -14,24 +13,10 @@ class BaseEthersClient {
14
13
  *
15
14
  * @param {Signer | Provider} signerOrProvider The Signer or Provider object to interact with the Ethereum network
16
15
  * @param {NetworkData} networkData The network information required to connect to the contracts
17
- * @param {number | undefined} gasPriceMultiplier The multiplier to apply to the gas price
18
16
  */
19
- constructor(signerOrProvider, networkData, gasPriceMultiplier) {
17
+ constructor(signerOrProvider, networkData) {
20
18
  this.networkData = networkData;
21
19
  this.signerOrProvider = signerOrProvider;
22
- this.gasPriceMultiplier = gasPriceMultiplier;
23
- }
24
- /**
25
- * Adjust the gas price, and return as an option to be passed to a transaction
26
- *
27
- * @returns {Promise<{ gasPrice: BigNumber }>} Returns the gas price options
28
- */
29
- async gasPriceOptions() {
30
- return this.gasPriceMultiplier
31
- ? {
32
- gasPrice: await (0, utils_1.gasPriceAdjusted)(this.signerOrProvider, this.gasPriceMultiplier),
33
- }
34
- : {};
35
20
  }
36
21
  }
37
22
  exports.BaseEthersClient = BaseEthersClient;
@@ -50,4 +50,11 @@ export declare const KVStoreKeys: {
50
50
  webhookUrl: string;
51
51
  url: string;
52
52
  };
53
+ export declare const Role: {
54
+ Validator: string;
55
+ JobLauncher: string;
56
+ ExchangeOracle: string;
57
+ ReputationOracle: string;
58
+ RecordingOracle: string;
59
+ };
53
60
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
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;;GAEG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;GAEG;AACH,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;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE;KACpB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,WAAW;CAuNnC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;CAMvB,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;;GAEG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;GAEG;AACH,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;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE;KACpB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,WAAW;CAuNnC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC"}
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KVStoreKeys = exports.NETWORKS = exports.HttpStatus = exports.DEFAULT_TX_ID = exports.DEFAULT_USE_SSL = exports.DEFAULT_PORT = exports.DEFAULT_REGION = exports.DEFAULT_ENDPOINT = exports.DEFAULT_PUBLIC_BUCKET = void 0;
3
+ exports.Role = exports.KVStoreKeys = exports.NETWORKS = exports.HttpStatus = exports.DEFAULT_TX_ID = exports.DEFAULT_USE_SSL = exports.DEFAULT_PORT = exports.DEFAULT_REGION = exports.DEFAULT_ENDPOINT = exports.DEFAULT_PUBLIC_BUCKET = void 0;
4
4
  const enums_1 = require("./enums");
5
5
  /**
6
6
  * @constant Default public bucket name
@@ -52,7 +52,7 @@ exports.NETWORKS = {
52
52
  hmtAddress: '0xd1ba9BAC957322D6e8c07a160a3A8dA11A0d2867',
53
53
  stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123',
54
54
  rewardPoolAddress: '0x4A5963Dd6792692e9147EdC7659936b96251917a',
55
- kvstoreAddress: '0x70671167176C4934204B1C7e97F5e86695857ef2',
55
+ kvstoreAddress: '0xB6d36B1CDaD50302BCB3DB43bAb0D349458e1b8D',
56
56
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/mainnet-v2',
57
57
  oldSubgraphUrl: '',
58
58
  oldFactoryAddress: '',
@@ -78,7 +78,7 @@ exports.NETWORKS = {
78
78
  hmtAddress: '0xd3A31D57FDD790725d0F6B78095F62E8CD4ab317',
79
79
  stakingAddress: '0xf46B45Df3d956369726d8Bd93Ba33963Ab692920',
80
80
  rewardPoolAddress: '0x0376D26246Eb35FF4F9924cF13E6C05fd0bD7Fb4',
81
- kvstoreAddress: '0xc9Fe39c4b6e1d7A2991355Af159956982DADf842',
81
+ kvstoreAddress: '0x19Fc3e859C1813ac9427a7a78BeB9ae102CE96d3',
82
82
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/goerli-v2',
83
83
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/goerli',
84
84
  oldFactoryAddress: '0xaAe6a2646C1F88763E62e0cD08aD050Ea66AC46F',
@@ -91,7 +91,7 @@ exports.NETWORKS = {
91
91
  hmtAddress: '0x711Fd6ab6d65A98904522d4e3586F492B989c527',
92
92
  stakingAddress: '0xdFbB79dC35a3A53741be54a2C9b587d6BafAbd1C',
93
93
  rewardPoolAddress: '0xf376443BCc6d4d4D63eeC086bc4A9E4a83878e0e',
94
- kvstoreAddress: '0x2B95bEcb6EBC4589f64CB000dFCF716b4aeF8aA6',
94
+ kvstoreAddress: '0x21A0C4CED7aE447fCf87D9FE3A29FA9B3AB20Ff1',
95
95
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc-v2',
96
96
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc',
97
97
  oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4',
@@ -104,7 +104,7 @@ exports.NETWORKS = {
104
104
  hmtAddress: '0xE3D74BBFa45B4bCa69FF28891fBE392f4B4d4e4d',
105
105
  stakingAddress: '0x5517fE916Fe9F8dB15B0DDc76ebDf0BdDCd4ed18',
106
106
  rewardPoolAddress: '0xB0A0500103eCEc431b73F6BAd923F0a2774E6e29',
107
- kvstoreAddress: '0x3aD4B091E054f192a822D1406f4535eAd38580e4',
107
+ kvstoreAddress: '0x32e27177BA6Ea91cf28dfd91a0Da9822A4b74EcF',
108
108
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest-v2',
109
109
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest',
110
110
  oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f',
@@ -117,7 +117,7 @@ exports.NETWORKS = {
117
117
  hmtAddress: '0xc748B2A084F8eFc47E086ccdDD9b7e67aEb571BF',
118
118
  stakingAddress: '0xcbAd56bE3f504E98bd70875823d3CC0242B7bB29',
119
119
  rewardPoolAddress: '0xa8e32d777a3839440cc7c24D591A64B9481753B3',
120
- kvstoreAddress: '0x35Cf4beBD58F9C8D75B9eA2599479b6C173d406F',
120
+ kvstoreAddress: '0xbcB28672F826a50B03EE91B28145EAbddA73B2eD',
121
121
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon-v2',
122
122
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon',
123
123
  oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794',
@@ -130,7 +130,7 @@ exports.NETWORKS = {
130
130
  hmtAddress: '0x0376D26246Eb35FF4F9924cF13E6C05fd0bD7Fb4',
131
131
  stakingAddress: '0x7Fd3dF914E7b6Bd96B4c744Df32183b51368Bfac',
132
132
  rewardPoolAddress: '0xf0145eD99AC3c4f877aDa7dA4D1E059ec9116BAE',
133
- kvstoreAddress: '0xD7F61E812e139a5a02eDae9Dfec146E1b8eA3807',
133
+ kvstoreAddress: '0xD96158c7267Ea658a4688F4aEf1c85659851625d',
134
134
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai-v2',
135
135
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/mumbai',
136
136
  oldFactoryAddress: '0x558cd800f9F0B02f3B149667bDe003284c867E94',
@@ -143,7 +143,7 @@ exports.NETWORKS = {
143
143
  hmtAddress: '0x3b25BC1dC591D24d60560d0135D6750A561D4764',
144
144
  stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123',
145
145
  rewardPoolAddress: '0x4A5963Dd6792692e9147EdC7659936b96251917a',
146
- kvstoreAddress: '0x70671167176C4934204B1C7e97F5e86695857ef2',
146
+ kvstoreAddress: '0x2B95bEcb6EBC4589f64CB000dFCF716b4aeF8aA6',
147
147
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/moonbeam-v2',
148
148
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/moonbeam',
149
149
  oldFactoryAddress: '0x98108c28B7767a52BE38B4860832dd4e11A7ecad',
@@ -156,7 +156,7 @@ exports.NETWORKS = {
156
156
  hmtAddress: '0x2dd72db2bBA65cE663e476bA8b84A1aAF802A8e3',
157
157
  stakingAddress: '0xBFC7009F3371F93F3B54DdC8caCd02914a37495c',
158
158
  rewardPoolAddress: '0xf46B45Df3d956369726d8Bd93Ba33963Ab692920',
159
- kvstoreAddress: '0xE3D74BBFa45B4bCa69FF28891fBE392f4B4d4e4d',
159
+ kvstoreAddress: '0xcC561f4482f4Ff051D2Dcc65c2cE1A0f291bbA46',
160
160
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/moonbase-alpha-v2',
161
161
  oldSubgraphUrl: '',
162
162
  oldFactoryAddress: '',
@@ -169,7 +169,7 @@ exports.NETWORKS = {
169
169
  hmtAddress: '0x9406d5c635AD22b0d76c75E52De57A2177919ca3',
170
170
  stakingAddress: '0x9890473B0b93E24d6D1a8Dfb739D577C6f25FFd3',
171
171
  rewardPoolAddress: '0x5517fE916Fe9F8dB15B0DDc76ebDf0BdDCd4ed18',
172
- kvstoreAddress: '0x707fb5A5d36BC15275Af3f73262bf9a1D8C470EB',
172
+ kvstoreAddress: '0x3aD4B091E054f192a822D1406f4535eAd38580e4',
173
173
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/fuji-v2',
174
174
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/fuji',
175
175
  oldFactoryAddress: '0xfb4469201951C3B9a7F1996c477cb7BDBEcE0A88',
@@ -182,7 +182,7 @@ exports.NETWORKS = {
182
182
  hmtAddress: '0x12365293cb6477d4fc2686e46BB97E3Fb64f1550',
183
183
  stakingAddress: '0x05398211bA2046E296fBc9a9D3EB49e3F15C3123',
184
184
  rewardPoolAddress: '0x4A5963Dd6792692e9147EdC7659936b96251917a',
185
- kvstoreAddress: '0x70671167176C4934204B1C7e97F5e86695857ef2',
185
+ kvstoreAddress: '0x9Bc7bff35B2Be2413708d48c3B0aEF5c43646728',
186
186
  subgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/avalanche-v2',
187
187
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/avalanche',
188
188
  oldFactoryAddress: '0x9767a578ba7a5FA1563c8229943cB01cd8446BB4',
@@ -247,3 +247,10 @@ exports.KVStoreKeys = {
247
247
  webhookUrl: 'webhookUrl',
248
248
  url: 'url',
249
249
  };
250
+ exports.Role = {
251
+ Validator: 'Validator',
252
+ JobLauncher: 'Job Launcher',
253
+ ExchangeOracle: 'Exchange Oracle',
254
+ ReputationOracle: 'Reputation Oracle',
255
+ RecordingOracle: 'Recording Oracle',
256
+ };
@@ -296,5 +296,36 @@ export declare class EncryptionUtils {
296
296
  * ```
297
297
  */
298
298
  static encrypt(message: string, publicKeys: string[]): Promise<string>;
299
+ /**
300
+ * Verifies if a message appears to be encrypted with OpenPGP.
301
+ *
302
+ * @param {string} message Message to verify.
303
+ * @returns {Promise<boolean>} `true` if the message appears to be encrypted, `false` if not.
304
+ *
305
+ * **Code example:**
306
+ *
307
+ * ```ts
308
+ * const message = `-----BEGIN PGP MESSAGE-----
309
+ *
310
+ * wV4DqdeRpqH+jaISAQdAsvBFxikvjxRqC7ZlDe98cLd7/aeCEI/AcL8PpVKK
311
+ * mC0wKlwxNg/ADi55z9jcYFuMC4kKE+C/teM+JqiI8DO9AwassQUvKFtULnpx
312
+ * h2jaOjC/0sAQASjUsIFK8zbuDgk/P8T9Npn6px+GlJPg9K90iwtPWiIp0eyW
313
+ * 4zXamJZT51k2DyaUX/Rsc6P4PYhQRKjt0yxtH0jHPmKkLC/9eBeFf4GP0zlZ
314
+ * 18xMZ8uCpQCma708Gz0sJYxEz3u/eZdHD7Mc7tWQKyJG8MsTwM1P+fdK1X75
315
+ * L9UryJG2AY+6kKZhG4dqjNxiO4fWluiB2u7iMF+iLEyE3SQCEYorWMC+NDWi
316
+ * QIJZ7oQ2w7BaPo1a991gvTOSNm5v2x44KfqPI1uj859BjsQTCA==
317
+ * =tsmI
318
+ * -----END PGP MESSAGE-----`;
319
+ *
320
+ * const isEncrypted = await EncriptionUtils.isEncrypted(message);
321
+ *
322
+ * if (isEncrypted) {
323
+ * console.log('The message is encrypted with OpenPGP.');
324
+ * } else {
325
+ * console.log('The message is not encrypted with OpenPGP.');
326
+ * }
327
+ * ```
328
+ */
329
+ static isEncrypted(message: string): boolean;
299
330
  }
300
331
  //# sourceMappingURL=encryption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../src/encryption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,UAAU,CAAqB;IAEvC;;;;OAIG;gBACS,UAAU,EAAE,OAAO,CAAC,UAAU;IAI1C;;;;;;OAMG;WACiB,KAAK,CACvB,iBAAiB,EAAE,MAAM,EACzB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,UAAU,CAAC;IAkBtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACU,cAAc,CACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,MAAM,CAAC;IAiBlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACU,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAmB1E;;;;;;;;;;;;;;;;;OAiBG;IACU,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAYpD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,eAAe;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;WACiB,MAAM,CACxB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,OAAO,CAAC;IAgBnB;;;;;;;;;;;;;OAaG;WACiB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,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,eAAe;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;WACiB,MAAM,CACxB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,OAAO,CAAC;IAgBnB;;;;;;;;;;;;;OAaG;WACiB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAYnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;WACiB,eAAe,CACjC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,UAAU,SAAK,GACd,OAAO,CAAC,QAAQ,CAAC;IAkBpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;WACiB,OAAO,CACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,MAAM,CAAC;IAgBlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;WACW,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;CASpD"}
@@ -414,5 +414,42 @@ class EncryptionUtils {
414
414
  });
415
415
  return encrypted;
416
416
  }
417
+ /**
418
+ * Verifies if a message appears to be encrypted with OpenPGP.
419
+ *
420
+ * @param {string} message Message to verify.
421
+ * @returns {Promise<boolean>} `true` if the message appears to be encrypted, `false` if not.
422
+ *
423
+ * **Code example:**
424
+ *
425
+ * ```ts
426
+ * const message = `-----BEGIN PGP MESSAGE-----
427
+ *
428
+ * wV4DqdeRpqH+jaISAQdAsvBFxikvjxRqC7ZlDe98cLd7/aeCEI/AcL8PpVKK
429
+ * mC0wKlwxNg/ADi55z9jcYFuMC4kKE+C/teM+JqiI8DO9AwassQUvKFtULnpx
430
+ * h2jaOjC/0sAQASjUsIFK8zbuDgk/P8T9Npn6px+GlJPg9K90iwtPWiIp0eyW
431
+ * 4zXamJZT51k2DyaUX/Rsc6P4PYhQRKjt0yxtH0jHPmKkLC/9eBeFf4GP0zlZ
432
+ * 18xMZ8uCpQCma708Gz0sJYxEz3u/eZdHD7Mc7tWQKyJG8MsTwM1P+fdK1X75
433
+ * L9UryJG2AY+6kKZhG4dqjNxiO4fWluiB2u7iMF+iLEyE3SQCEYorWMC+NDWi
434
+ * QIJZ7oQ2w7BaPo1a991gvTOSNm5v2x44KfqPI1uj859BjsQTCA==
435
+ * =tsmI
436
+ * -----END PGP MESSAGE-----`;
437
+ *
438
+ * const isEncrypted = await EncriptionUtils.isEncrypted(message);
439
+ *
440
+ * if (isEncrypted) {
441
+ * console.log('The message is encrypted with OpenPGP.');
442
+ * } else {
443
+ * console.log('The message is not encrypted with OpenPGP.');
444
+ * }
445
+ * ```
446
+ */
447
+ static isEncrypted(message) {
448
+ const startMarker = '-----BEGIN PGP MESSAGE-----';
449
+ const endMarker = '-----END PGP MESSAGE-----';
450
+ const hasStartMarker = message.includes(startMarker);
451
+ const hasEndMarker = message.includes(endMarker);
452
+ return hasStartMarker && hasEndMarker;
453
+ }
417
454
  }
418
455
  exports.EncryptionUtils = EncryptionUtils;
package/dist/error.d.ts CHANGED
@@ -205,8 +205,4 @@ export declare class InvalidEthereumAddressError extends Error {
205
205
  * @constant {Error} - The Hash does not match
206
206
  */
207
207
  export declare const ErrorInvalidHash: Error;
208
- /**
209
- * @constant {Error} - The Hash does not match
210
- */
211
- export declare const ErrorMissingGasPrice: Error;
212
208
  //# sourceMappingURL=error.d.ts.map
@@ -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,eA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1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wCAAwC,OAEpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B,OAE1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,OAAuC,CAAC;AAE3E,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,oBAAqB,SAAQ,aAAa;gBACzC,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,aAAc,SAAQ,aAAa;gBAClC,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,qBAAsB,SAAQ,aAAa;gBAC1C,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,sBAAuB,SAAQ,aAAa;gBAC3C,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,YAAa,SAAQ,aAAa;gBACjC,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,YAAa,SAAQ,aAAa;gBACjC,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,mBAAoB,SAAQ,aAAa;gBACxC,OAAO,EAAE,MAAM;CAG5B;AAED,qBAAa,sBAAuB,SAAQ,aAAa;gBAC3C,MAAM,EAAE,MAAM;CAG3B;AAED,qBAAa,2BAA4B,SAAQ,KAAK;gBACxC,OAAO,EAAE,MAAM;CAG5B;AACD;;GAEG;AACH,eAAO,MAAM,gBAAgB,OAA4B,CAAC"}
package/dist/error.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NumericFault = exports.ReplacementUnderpriced = exports.UnpredictableGasLimit = exports.OutOfGasError = exports.InvalidArgumentError = exports.EthereumError = exports.ErrorHashIsEmptyString = exports.ErrorLaunchedEventIsNotEmitted = exports.ErrorRecipientAndAmountsMustBeSameLength = exports.ErrorAmountsCannotBeEmptyArray = exports.ErrorEscrowDoesNotHaveEnoughBalance = exports.ErrorAmountMustBeGreaterThanZero = exports.ErrorRecipientCannotBeEmptyArray = exports.ErrorTotalFeeMustBeLessThanHundred = exports.ErrorFeeMustBeBetweenZeroAndHundred = exports.ErrorNoURLprovided = exports.ErrorListOfHandlersCannotBeEmpty = exports.ErrorUrlIsEmptyString = exports.ErrorInvalidUrl = exports.ErrorStorageClientDoesNotExist = exports.ErrorManifestFileDoesNotExist = exports.ErrorTransferEventNotFoundInTransactionLogs = exports.ErrorEscrowAddressIsNotProvidedByFactory = exports.ErrorSigner = exports.ErrorUnsupportedChainID = exports.ErrorProviderDoesNotExist = exports.ErrorHMTokenAmountNotApproved = exports.ErrorFailedToCheckAllowance = exports.ErrorFailedToApproveStakingAmountSignerDoesNotExist = exports.ErrorStakingGetStakers = exports.ErrorInvalidEscrowAddressProvided = 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.ErrorMissingGasPrice = exports.ErrorInvalidHash = exports.InvalidEthereumAddressError = exports.ContractExecutionError = exports.TransactionReplaced = exports.NonceExpired = void 0;
4
+ exports.ErrorInvalidHash = exports.InvalidEthereumAddressError = exports.ContractExecutionError = exports.TransactionReplaced = exports.NonceExpired = void 0;
5
5
  /**
6
6
  * @constant {Error} - The Staking contract is missing.
7
7
  */
@@ -239,7 +239,3 @@ exports.InvalidEthereumAddressError = InvalidEthereumAddressError;
239
239
  * @constant {Error} - The Hash does not match
240
240
  */
241
241
  exports.ErrorInvalidHash = new Error('Invalid hash');
242
- /**
243
- * @constant {Error} - The Hash does not match
244
- */
245
- exports.ErrorMissingGasPrice = new Error('Missing gas price');
package/dist/escrow.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Provider } from '@ethersproject/abstract-provider';
2
- import { BigNumber, Signer } from 'ethers';
2
+ import { BigNumber, Overrides, Signer } from 'ethers';
3
3
  import { BaseEthersClient } from './base';
4
4
  import { ChainId } from './enums';
5
5
  import { IEscrowConfig, IEscrowsFilter } from './interfaces';
@@ -81,20 +81,18 @@ export declare class EscrowClient extends BaseEthersClient {
81
81
  *
82
82
  * @param {Signer | Provider} signerOrProvider The Signer or Provider object to interact with the Ethereum network
83
83
  * @param {NetworkData} network The network information required to connect to the Escrow contract
84
- * @param {number | undefined} gasPriceMultiplier The multiplier to apply to the gas price
85
84
  */
86
- constructor(signerOrProvider: Signer | Provider, networkData: NetworkData, gasPriceMultiplier?: number);
85
+ constructor(signerOrProvider: Signer | Provider, networkData: NetworkData);
87
86
  /**
88
87
  * Creates an instance of EscrowClient from a Signer or Provider.
89
88
  *
90
89
  * @param {Signer | Provider} signerOrProvider The Signer or Provider object to interact with the Ethereum network
91
- * @param {number | undefined} gasPriceMultiplier The multiplier to apply to the gas price
92
90
  *
93
91
  * @returns {Promise<EscrowClient>} An instance of EscrowClient
94
92
  * @throws {ErrorProviderDoesNotExist} Thrown if the provider does not exist for the provided Signer
95
93
  * @throws {ErrorUnsupportedChainID} Thrown if the network's chainId is not supported
96
94
  */
97
- static build(signerOrProvider: Signer | Provider, gasPriceMultiplier?: number): Promise<EscrowClient>;
95
+ static build(signerOrProvider: Signer | Provider): Promise<EscrowClient>;
98
96
  /**
99
97
  * Connects to the escrow contract
100
98
  *
@@ -107,6 +105,7 @@ export declare class EscrowClient extends BaseEthersClient {
107
105
  * @param {string} tokenAddress Token address to use for pay outs.
108
106
  * @param {string[]} trustedHandlers Array of addresses that can perform actions on the contract.
109
107
  * @param {string} jobRequesterId Job Requester Id
108
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
110
109
  * @returns {Promise<string>} Return the address of the escrow created.
111
110
  *
112
111
  *
@@ -131,12 +130,13 @@ export declare class EscrowClient extends BaseEthersClient {
131
130
  * const escrowAddress = await escrowClient.createEscrow(tokenAddress, trustedHandlers, jobRequesterId);
132
131
  * ```
133
132
  */
134
- createEscrow(tokenAddress: string, trustedHandlers: string[], jobRequesterId: string): Promise<string>;
133
+ createEscrow(tokenAddress: string, trustedHandlers: string[], jobRequesterId: string, txOptions?: Overrides): Promise<string>;
135
134
  /**
136
135
  * This function sets up the parameters of the escrow.
137
136
  *
138
137
  * @param {string} escrowAddress Address of the escrow to set up.
139
138
  * @param {IEscrowConfig} escrowConfig Escrow configuration parameters.
139
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
140
140
  * @returns Returns void if successful. Throws error if any.
141
141
  *
142
142
  *
@@ -169,7 +169,7 @@ export declare class EscrowClient extends BaseEthersClient {
169
169
  * await escrowClient.setup(escrowAddress, escrowConfig);
170
170
  * ```
171
171
  */
172
- setup(escrowAddress: string, escrowConfig: IEscrowConfig): Promise<void>;
172
+ setup(escrowAddress: string, escrowConfig: IEscrowConfig, txOptions?: Overrides): Promise<void>;
173
173
  /**
174
174
  * This function creates and sets up an escrow.
175
175
  *
@@ -217,6 +217,7 @@ export declare class EscrowClient extends BaseEthersClient {
217
217
  *
218
218
  * @param {string} escrowAddress Address of the escrow to fund.
219
219
  * @param {BigNumber} amount Amount to be added as funds.
220
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
220
221
  * @returns Returns void if successful. Throws error if any.
221
222
  *
222
223
  *
@@ -237,13 +238,14 @@ export declare class EscrowClient extends BaseEthersClient {
237
238
  * await escrowClient.fund('0x62dD51230A30401C455c8398d06F85e4EaB6309f', amount);
238
239
  * ```
239
240
  */
240
- fund(escrowAddress: string, amount: BigNumber): Promise<void>;
241
+ fund(escrowAddress: string, amount: BigNumber, txOptions?: Overrides): Promise<void>;
241
242
  /**
242
243
  * This function stores the results url and hash.
243
244
  *
244
245
  * @param {string} escrowAddress Address of the escrow.
245
246
  * @param {string} url Results file url.
246
247
  * @param {string} hash Results file hash.
248
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
247
249
  * @returns Returns void if successful. Throws error if any.
248
250
  *
249
251
  *
@@ -265,11 +267,12 @@ export declare class EscrowClient extends BaseEthersClient {
265
267
  * await storeResults.storeResults('0x62dD51230A30401C455c8398d06F85e4EaB6309f', 'http://localhost/results.json', 'b5dad76bf6772c0f07fd5e048f6e75a5f86ee079');
266
268
  * ```
267
269
  */
268
- storeResults(escrowAddress: string, url: string, hash: string): Promise<void>;
270
+ storeResults(escrowAddress: string, url: string, hash: string, txOptions?: Overrides): Promise<void>;
269
271
  /**
270
272
  * This function sets the status of an escrow to completed.
271
273
  *
272
274
  * @param {string} escrowAddress Address of the escrow.
275
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
273
276
  * @returns Returns void if successful. Throws error if any.
274
277
  *
275
278
  *
@@ -291,7 +294,7 @@ export declare class EscrowClient extends BaseEthersClient {
291
294
  * await escrowClient.complete('0x62dD51230A30401C455c8398d06F85e4EaB6309f');
292
295
  * ```
293
296
  */
294
- complete(escrowAddress: string): Promise<void>;
297
+ complete(escrowAddress: string, txOptions?: Overrides): Promise<void>;
295
298
  /**
296
299
  * This function pays out the amounts specified to the workers and sets the URL of the final results file.
297
300
  *
@@ -300,6 +303,7 @@ export declare class EscrowClient extends BaseEthersClient {
300
303
  * @param {BigNumber[]} amounts Array of amounts the recipients will receive.
301
304
  * @param {string} finalResultsUrl Final results file url.
302
305
  * @param {string} finalResultsHash Final results file hash.
306
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
303
307
  * @returns Returns void if successful. Throws error if any.
304
308
  *
305
309
  *
@@ -326,11 +330,12 @@ export declare class EscrowClient extends BaseEthersClient {
326
330
  * await escrowClient.bulkPayOut('0x62dD51230A30401C455c8398d06F85e4EaB6309f', recipients, amounts, resultsUrl, resultsHash);
327
331
  * ```
328
332
  */
329
- bulkPayOut(escrowAddress: string, recipients: string[], amounts: BigNumber[], finalResultsUrl: string, finalResultsHash: string): Promise<void>;
333
+ bulkPayOut(escrowAddress: string, recipients: string[], amounts: BigNumber[], finalResultsUrl: string, finalResultsHash: string, txOptions?: Overrides): Promise<void>;
330
334
  /**
331
335
  * This function cancels the specified escrow and sends the balance to the canceler.
332
336
  *
333
337
  * @param {string} escrowAddress Address of the escrow to cancel.
338
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
334
339
  * @returns {EscrowCancel} Returns the escrow cancellation data including transaction hash and refunded amount. Throws error if any.
335
340
  *
336
341
  *
@@ -352,11 +357,12 @@ export declare class EscrowClient extends BaseEthersClient {
352
357
  * await escrowClient.cancel('0x62dD51230A30401C455c8398d06F85e4EaB6309f');
353
358
  * ```
354
359
  */
355
- cancel(escrowAddress: string): Promise<EscrowCancel>;
360
+ cancel(escrowAddress: string, txOptions?: Overrides): Promise<EscrowCancel>;
356
361
  /**
357
362
  * This function cancels the specified escrow, sends the balance to the canceler and selfdestructs the escrow contract.
358
363
  *
359
364
  * @param {string} escrowAddress Address of the escrow.
365
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
360
366
  * @returns Returns void if successful. Throws error if any.
361
367
  *
362
368
  *
@@ -378,12 +384,13 @@ export declare class EscrowClient extends BaseEthersClient {
378
384
  * await escrowClient.abort('0x62dD51230A30401C455c8398d06F85e4EaB6309f');
379
385
  * ```
380
386
  */
381
- abort(escrowAddress: string): Promise<void>;
387
+ abort(escrowAddress: string, txOptions?: Overrides): Promise<void>;
382
388
  /**
383
389
  * This function sets the status of an escrow to completed.
384
390
  *
385
391
  * @param {string} escrowAddress Address of the escrow.
386
392
  * @param {string[]} trustedHandlers Array of addresses of trusted handlers to add.
393
+ * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
387
394
  * @returns Returns void if successful. Throws error if any.
388
395
  *
389
396
  *
@@ -406,7 +413,7 @@ export declare class EscrowClient extends BaseEthersClient {
406
413
  * await escrowClient.addTrustedHandlers('0x62dD51230A30401C455c8398d06F85e4EaB6309f', trustedHandlers);
407
414
  * ```
408
415
  */
409
- addTrustedHandlers(escrowAddress: string, trustedHandlers: string[]): Promise<void>;
416
+ addTrustedHandlers(escrowAddress: string, trustedHandlers: string[], txOptions?: Overrides): Promise<void>;
410
417
  /**
411
418
  * This function returns the balance for a specified escrow address.
412
419
  *
@@ -1 +1 @@
1
- {"version":3,"file":"escrow.d.ts","sourceRoot":"","sources":["../src/escrow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAU5D,OAAO,EAAE,SAAS,EAAmB,MAAM,EAAU,MAAM,QAAQ,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAyBlC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,EACL,UAAU,EAGX,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,OAAO,CAAC,qBAAqB,CAAgB;IAE7C;;;;;;OAMG;gBAED,gBAAgB,EAAE,MAAM,GAAG,QAAQ,EACnC,WAAW,EAAE,WAAW,EACxB,kBAAkB,CAAC,EAAE,MAAM;IAU7B;;;;;;;;;OASG;WACiB,KAAK,CACvB,gBAAgB,EAAE,MAAM,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