@human-protocol/sdk 5.0.0-beta.2 → 5.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.
package/dist/constants.js CHANGED
@@ -30,7 +30,7 @@ exports.NETWORKS = {
30
30
  stakingAddress: '0xEf6Da3aB52c33925Be3F84038193a7e1331F51E6',
31
31
  kvstoreAddress: '0xB6d36B1CDaD50302BCB3DB43bAb0D349458e1b8D',
32
32
  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',
33
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmXGmcjEtwwEgB83KE2ECjjYY38kLMqzaq4ip8GWY7A6zz',
34
34
  oldSubgraphUrl: '',
35
35
  oldFactoryAddress: '',
36
36
  },
@@ -43,7 +43,7 @@ exports.NETWORKS = {
43
43
  stakingAddress: '0x2163e3A40032Af1C359ac731deaB48258b317890',
44
44
  kvstoreAddress: '0xCc0AF0635aa19fE799B6aFDBe28fcFAeA7f00a60',
45
45
  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',
46
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmT4xNvZh8ymarrk1zdytjLhCW59iuTavsd4JgHS4LbCVB',
47
47
  oldSubgraphUrl: '',
48
48
  oldFactoryAddress: '',
49
49
  },
@@ -56,7 +56,7 @@ exports.NETWORKS = {
56
56
  stakingAddress: '0xE24e5C08E28331D24758b69A5E9f383D2bDD1c98',
57
57
  kvstoreAddress: '0x21A0C4CED7aE447fCf87D9FE3A29FA9B3AB20Ff1',
58
58
  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',
59
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmdVdpm9NnFz5B8QyzhW1bW1nNfRWemTiFn2MrhYZGTSQD',
60
60
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsc',
61
61
  oldFactoryAddress: '0xc88bC422cAAb2ac8812de03176402dbcA09533f4',
62
62
  },
@@ -69,7 +69,7 @@ exports.NETWORKS = {
69
69
  stakingAddress: '0xD6D347ba6987519B4e42EcED43dF98eFf5465a23',
70
70
  kvstoreAddress: '0x32e27177BA6Ea91cf28dfd91a0Da9822A4b74EcF',
71
71
  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',
72
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmZjYMktZe8RAz7W7qL33VZBV6AC57xsLyE1cEfv6NABdZ',
73
73
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest',
74
74
  oldFactoryAddress: '0xaae6a2646c1f88763e62e0cd08ad050ea66ac46f',
75
75
  },
@@ -82,7 +82,7 @@ exports.NETWORKS = {
82
82
  stakingAddress: '0x01D115E9E8bF0C58318793624CC662a030D07F1D',
83
83
  kvstoreAddress: '0xbcB28672F826a50B03EE91B28145EAbddA73B2eD',
84
84
  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',
85
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmUt9mmfNjtC5ZnQNiWHRbFG3k5zfngMuoTyky9jhXYqG2',
86
86
  oldSubgraphUrl: 'https://api.thegraph.com/subgraphs/name/humanprotocol/polygon',
87
87
  oldFactoryAddress: '0x45eBc3eAE6DA485097054ae10BA1A0f8e8c7f794',
88
88
  },
@@ -95,7 +95,7 @@ exports.NETWORKS = {
95
95
  stakingAddress: '0xffE496683F842a923110415b7278ded3F265f2C5',
96
96
  kvstoreAddress: '0x724AeFC243EdacCA27EAB86D3ec5a76Af4436Fc7',
97
97
  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',
98
+ subgraphUrlApiKey: 'https://gateway-arbitrum.network.thegraph.com/api/[SUBGRAPH_API_KEY]/deployments/id/QmWRUFWpWoRRUh7Ec1HUJEwxc84DkP4iFTfLLsoVngJAPa',
99
99
  oldSubgraphUrl: '',
100
100
  oldFactoryAddress: '',
101
101
  },
package/dist/escrow.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { ContractRunner, Overrides } from 'ethers';
2
2
  import { BaseEthersClient } from './base';
3
3
  import { ChainId, OrderDirection } from './enums';
4
- import { StatusEvent } from './graphql';
5
- import { IEscrow, IEscrowConfig, IEscrowsFilter, IPayoutFilter, IStatusEventFilter } from './interfaces';
6
- import { EscrowStatus, EscrowWithdraw, NetworkData, TransactionLikeWithNonce, Payout, CancellationRefund } from './types';
4
+ import { IEscrow, IEscrowConfig, IEscrowsFilter, IPayoutFilter, IStatusEventFilter, IStatusEvent, ICancellationRefund, IPayout, IEscrowWithdraw } from './interfaces';
5
+ import { EscrowStatus, NetworkData, TransactionLikeWithNonce } from './types';
7
6
  /**
8
7
  * ## Introduction
9
8
  *
@@ -101,8 +100,8 @@ export declare class EscrowClient extends BaseEthersClient {
101
100
  /**
102
101
  * This function creates an escrow contract that uses the token passed to pay oracle fees and reward workers.
103
102
  *
104
- * @param {string} tokenAddress Token address to use for payouts.
105
- * @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.
106
105
  * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
107
106
  * @returns {Promise<string>} Returns the address of the escrow created.
108
107
  *
@@ -128,6 +127,65 @@ export declare class EscrowClient extends BaseEthersClient {
128
127
  * ```
129
128
  */
130
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>;
131
189
  /**
132
190
  * This function sets up the parameters of the escrow.
133
191
  *
@@ -417,7 +475,7 @@ export declare class EscrowClient extends BaseEthersClient {
417
475
  * @param {string} escrowAddress Address of the escrow to withdraw.
418
476
  * @param {string} tokenAddress Address of the token to withdraw.
419
477
  * @param {Overrides} [txOptions] - Additional transaction parameters (optional, defaults to an empty object).
420
- * @returns {EscrowWithdraw} Returns the escrow withdrawal data including transaction hash and withdrawal amount. Throws error if any.
478
+ * @returns {IEscrowWithdraw} Returns the escrow withdrawal data including transaction hash and withdrawal amount. Throws error if any.
421
479
  *
422
480
  *
423
481
  * **Code example**
@@ -441,7 +499,7 @@ export declare class EscrowClient extends BaseEthersClient {
441
499
  * );
442
500
  * ```
443
501
  */
444
- withdraw(escrowAddress: string, tokenAddress: string, txOptions?: Overrides): Promise<EscrowWithdraw>;
502
+ withdraw(escrowAddress: string, tokenAddress: string, txOptions?: Overrides): Promise<IEscrowWithdraw>;
445
503
  /**
446
504
  * Creates a prepared transaction for bulk payout without immediately sending it.
447
505
  * @param {string} escrowAddress Escrow address to payout.
@@ -869,23 +927,29 @@ export declare class EscrowUtils {
869
927
  * interface IEscrow {
870
928
  * id: string;
871
929
  * address: string;
872
- * amountPaid: string;
873
- * balance: string;
874
- * count: string;
875
- * jobRequesterId: string;
930
+ * amountPaid: bigint;
931
+ * balance: bigint;
932
+ * count: bigint;
876
933
  * factoryAddress: string;
877
- * finalResultsUrl?: string;
878
- * intermediateResultsUrl?: string;
934
+ * finalResultsUrl: string | null;
935
+ * finalResultsHash: string | null;
936
+ * intermediateResultsUrl: string | null;
937
+ * intermediateResultsHash: string | null;
879
938
  * launcher: string;
880
- * manifestHash?: string;
881
- * manifest?: string;
882
- * recordingOracle?: string;
883
- * reputationOracle?: string;
884
- * exchangeOracle?: string;
885
- * status: EscrowStatus;
939
+ * jobRequesterId: string | null;
940
+ * manifestHash: string | null;
941
+ * manifest: string | null;
942
+ * recordingOracle: string | null;
943
+ * reputationOracle: string | null;
944
+ * exchangeOracle: string | null;
945
+ * recordingOracleFee: number | null;
946
+ * reputationOracleFee: number | null;
947
+ * exchangeOracleFee: number | null;
948
+ * status: string;
886
949
  * token: string;
887
- * totalFundedAmount: string;
888
- * createdAt: string;
950
+ * totalFundedAmount: bigint;
951
+ * createdAt: number;
952
+ * chainId: number;
889
953
  * };
890
954
  * ```
891
955
  *
@@ -932,23 +996,29 @@ export declare class EscrowUtils {
932
996
  * interface IEscrow {
933
997
  * id: string;
934
998
  * address: string;
935
- * amountPaid: string;
936
- * balance: string;
937
- * count: string;
938
- * jobRequesterId: string;
999
+ * amountPaid: bigint;
1000
+ * balance: bigint;
1001
+ * count: bigint;
939
1002
  * factoryAddress: string;
940
- * finalResultsUrl?: string;
941
- * intermediateResultsUrl?: string;
1003
+ * finalResultsUrl: string | null;
1004
+ * finalResultsHash: string | null;
1005
+ * intermediateResultsUrl: string | null;
1006
+ * intermediateResultsHash: string | null;
942
1007
  * launcher: string;
943
- * manifestHash?: string;
944
- * manifest?: string;
945
- * recordingOracle?: string;
946
- * reputationOracle?: string;
947
- * exchangeOracle?: string;
948
- * status: EscrowStatus;
1008
+ * jobRequesterId: string | null;
1009
+ * manifestHash: string | null;
1010
+ * manifest: string | null;
1011
+ * recordingOracle: string | null;
1012
+ * reputationOracle: string | null;
1013
+ * exchangeOracle: string | null;
1014
+ * recordingOracleFee: number | null;
1015
+ * reputationOracleFee: number | null;
1016
+ * exchangeOracleFee: number | null;
1017
+ * status: string;
949
1018
  * token: string;
950
- * totalFundedAmount: string;
951
- * createdAt: string;
1019
+ * totalFundedAmount: bigint;
1020
+ * createdAt: number;
1021
+ * chainId: number;
952
1022
  * };
953
1023
  * ```
954
1024
  *
@@ -1022,7 +1092,7 @@ export declare class EscrowUtils {
1022
1092
  * })();
1023
1093
  * ```
1024
1094
  */
1025
- static getStatusEvents(filter: IStatusEventFilter): Promise<StatusEvent[]>;
1095
+ static getStatusEvents(filter: IStatusEventFilter): Promise<IStatusEvent[]>;
1026
1096
  /**
1027
1097
  * This function returns the payouts for a given set of networks.
1028
1098
  *
@@ -1032,7 +1102,7 @@ export declare class EscrowUtils {
1032
1102
  * Fetch payouts from the subgraph.
1033
1103
  *
1034
1104
  * @param {IPayoutFilter} filter Filter parameters.
1035
- * @returns {Promise<Payout[]>} List of payouts matching the filters.
1105
+ * @returns {Promise<IPayout[]>} List of payouts matching the filters.
1036
1106
  *
1037
1107
  * **Code example**
1038
1108
  *
@@ -1049,7 +1119,7 @@ export declare class EscrowUtils {
1049
1119
  * console.log(payouts);
1050
1120
  * ```
1051
1121
  */
1052
- static getPayouts(filter: IPayoutFilter): Promise<Payout[]>;
1122
+ static getPayouts(filter: IPayoutFilter): Promise<IPayout[]>;
1053
1123
  /**
1054
1124
  * This function returns the cancellation refunds for a given set of networks.
1055
1125
  *
@@ -1071,7 +1141,7 @@ export declare class EscrowUtils {
1071
1141
  * ```
1072
1142
  *
1073
1143
  * ```ts
1074
- * type CancellationRefund = {
1144
+ * interface ICancellationRefund {
1075
1145
  * id: string;
1076
1146
  * escrowAddress: string;
1077
1147
  * receiver: string;
@@ -1084,7 +1154,7 @@ export declare class EscrowUtils {
1084
1154
  *
1085
1155
  *
1086
1156
  * @param {Object} filter Filter parameters.
1087
- * @returns {Promise<CancellationRefund[]>} List of cancellation refunds matching the filters.
1157
+ * @returns {Promise<ICancellationRefund[]>} List of cancellation refunds matching the filters.
1088
1158
  *
1089
1159
  * **Code example**
1090
1160
  *
@@ -1107,7 +1177,7 @@ export declare class EscrowUtils {
1107
1177
  first?: number;
1108
1178
  skip?: number;
1109
1179
  orderDirection?: OrderDirection;
1110
- }): Promise<CancellationRefund[]>;
1180
+ }): Promise<ICancellationRefund[]>;
1111
1181
  /**
1112
1182
  * This function returns the cancellation refund for a given escrow address.
1113
1183
  *
@@ -1129,7 +1199,7 @@ export declare class EscrowUtils {
1129
1199
  * ```
1130
1200
  *
1131
1201
  * ```ts
1132
- * type CancellationRefund = {
1202
+ * interface ICancellationRefund {
1133
1203
  * id: string;
1134
1204
  * escrowAddress: string;
1135
1205
  * receiver: string;
@@ -1143,7 +1213,7 @@ export declare class EscrowUtils {
1143
1213
  *
1144
1214
  * @param {ChainId} chainId Network in which the escrow has been deployed
1145
1215
  * @param {string} escrowAddress Address of the escrow
1146
- * @returns {Promise<CancellationRefund>} Cancellation refund data
1216
+ * @returns {Promise<ICancellationRefund>} Cancellation refund data
1147
1217
  *
1148
1218
  * **Code example**
1149
1219
  *
@@ -1153,6 +1223,6 @@ export declare class EscrowUtils {
1153
1223
  * const cancellationRefund = await EscrowUtils.getCancellationRefund(ChainId.POLYGON_AMOY, "0x1234567890123456789012345678901234567890");
1154
1224
  * ```
1155
1225
  */
1156
- static getCancellationRefund(chainId: ChainId, escrowAddress: string): Promise<CancellationRefund>;
1226
+ static getCancellationRefund(chainId: ChainId, escrowAddress: string): Promise<ICancellationRefund | null>;
1157
1227
  }
1158
1228
  //# 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;AA4BlD,OAAO,EAQL,WAAW,EACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,aAAa,EACb,cAAc,EACd,aAAa,EACb,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,wBAAwB,EACxB,MAAM,EACN,kBAAkB,EACnB,MAAM,SAAS,CAAC;AASjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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