@zkp2p/contracts-v2 0.0.8 → 0.0.9

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 (74) hide show
  1. package/_cjs/abis/baseStaging/AcrossBridgeHook.js +458 -0
  2. package/_cjs/abis/baseStaging/AcrossBridgeHook.json +456 -0
  3. package/_cjs/abis/baseStaging/index.js +1 -0
  4. package/_cjs/abis/baseStaging.cjs +1 -0
  5. package/_cjs/abis/baseStaging.mjs +1 -0
  6. package/_cjs/addresses/base.js +1 -1
  7. package/_cjs/addresses/base.json +1 -1
  8. package/_cjs/addresses/baseSepolia.js +1 -1
  9. package/_cjs/addresses/baseSepolia.json +1 -1
  10. package/_cjs/addresses/baseStaging.js +2 -1
  11. package/_cjs/addresses/baseStaging.json +2 -1
  12. package/_cjs/addresses/index.json +1 -1
  13. package/_cjs/constants/index.json +1 -1
  14. package/_cjs/paymentMethods/base.js +9 -1
  15. package/_cjs/paymentMethods/base.json +9 -1
  16. package/_cjs/paymentMethods/baseSepolia.js +1 -1
  17. package/_cjs/paymentMethods/baseSepolia.json +1 -1
  18. package/_cjs/paymentMethods/baseStaging.js +9 -1
  19. package/_cjs/paymentMethods/baseStaging.json +9 -1
  20. package/_cjs/paymentMethods/index.json +1 -1
  21. package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePool.js +238 -0
  22. package/_cjs/types/contracts/external/Interfaces/index.js +4 -0
  23. package/_cjs/types/contracts/external/index.js +5 -0
  24. package/_cjs/types/contracts/hooks/AcrossBridgeHook.js +505 -0
  25. package/_cjs/types/contracts/hooks/index.js +4 -0
  26. package/_cjs/types/contracts/index.js +4 -0
  27. package/_esm/abis/baseStaging/AcrossBridgeHook.js +457 -0
  28. package/_esm/abis/baseStaging/AcrossBridgeHook.json +456 -0
  29. package/_esm/abis/baseStaging/index.js +1 -0
  30. package/_esm/abis/baseStaging.cjs +1 -0
  31. package/_esm/abis/baseStaging.mjs +1 -0
  32. package/_esm/addresses/base.js +1 -1
  33. package/_esm/addresses/base.json +1 -1
  34. package/_esm/addresses/baseSepolia.js +1 -1
  35. package/_esm/addresses/baseSepolia.json +1 -1
  36. package/_esm/addresses/baseStaging.js +2 -1
  37. package/_esm/addresses/baseStaging.json +2 -1
  38. package/_esm/addresses/index.json +1 -1
  39. package/_esm/constants/index.json +1 -1
  40. package/_esm/paymentMethods/base.js +9 -1
  41. package/_esm/paymentMethods/base.json +9 -1
  42. package/_esm/paymentMethods/baseSepolia.js +1 -1
  43. package/_esm/paymentMethods/baseSepolia.json +1 -1
  44. package/_esm/paymentMethods/baseStaging.js +9 -1
  45. package/_esm/paymentMethods/baseStaging.json +9 -1
  46. package/_esm/paymentMethods/index.json +1 -1
  47. package/_esm/types/contracts/external/Interfaces/IAcrossSpokePool.js +238 -0
  48. package/_esm/types/contracts/external/Interfaces/index.js +4 -0
  49. package/_esm/types/contracts/external/index.js +5 -0
  50. package/_esm/types/contracts/hooks/AcrossBridgeHook.js +505 -0
  51. package/_esm/types/contracts/hooks/index.js +4 -0
  52. package/_esm/types/contracts/index.js +4 -0
  53. package/_types/abis/baseStaging.d.ts +1 -0
  54. package/abis/baseStaging/AcrossBridgeHook.json +456 -0
  55. package/abis/baseStaging/index.ts +1 -0
  56. package/abis/baseStaging.cjs +1 -0
  57. package/abis/baseStaging.d.ts +1 -0
  58. package/abis/baseStaging.mjs +1 -0
  59. package/addresses/base.json +1 -1
  60. package/addresses/baseSepolia.json +1 -1
  61. package/addresses/baseStaging.json +2 -1
  62. package/addresses/index.json +1 -1
  63. package/constants/index.json +1 -1
  64. package/package.json +1 -1
  65. package/paymentMethods/base.json +9 -1
  66. package/paymentMethods/baseSepolia.json +1 -1
  67. package/paymentMethods/baseStaging.json +9 -1
  68. package/paymentMethods/index.json +1 -1
  69. package/types/contracts/external/Interfaces/IAcrossSpokePool.ts +238 -0
  70. package/types/contracts/external/Interfaces/index.ts +4 -0
  71. package/types/contracts/external/index.ts +5 -0
  72. package/types/contracts/hooks/AcrossBridgeHook.ts +505 -0
  73. package/types/contracts/hooks/index.ts +4 -0
  74. package/types/contracts/index.ts +4 -0
@@ -0,0 +1,456 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_inputToken",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_orchestrator",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_spokePool",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "uint32",
27
+ "name": "fillDeadline",
28
+ "type": "uint32"
29
+ }
30
+ ],
31
+ "name": "FillDeadlineOutOfRange",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "destinationChainId",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "name": "InvalidDestinationChainId",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "address",
49
+ "name": "outputToken",
50
+ "type": "address"
51
+ }
52
+ ],
53
+ "name": "InvalidOutputToken",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [
58
+ {
59
+ "internalType": "address",
60
+ "name": "recipient",
61
+ "type": "address"
62
+ }
63
+ ],
64
+ "name": "InvalidRecipient",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [
69
+ {
70
+ "internalType": "address",
71
+ "name": "to",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "internalType": "uint256",
76
+ "name": "amount",
77
+ "type": "uint256"
78
+ }
79
+ ],
80
+ "name": "NativeTransferFailed",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [
85
+ {
86
+ "internalType": "uint256",
87
+ "name": "outputAmount",
88
+ "type": "uint256"
89
+ },
90
+ {
91
+ "internalType": "uint256",
92
+ "name": "minimum",
93
+ "type": "uint256"
94
+ }
95
+ ],
96
+ "name": "OutputBelowMinimum",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [
101
+ {
102
+ "internalType": "uint32",
103
+ "name": "quoteTimestamp",
104
+ "type": "uint32"
105
+ }
106
+ ],
107
+ "name": "QuoteTimestampOutOfRange",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [
112
+ {
113
+ "internalType": "address",
114
+ "name": "caller",
115
+ "type": "address"
116
+ }
117
+ ],
118
+ "name": "UnauthorizedCaller",
119
+ "type": "error"
120
+ },
121
+ {
122
+ "inputs": [],
123
+ "name": "ZeroAddress",
124
+ "type": "error"
125
+ },
126
+ {
127
+ "anonymous": false,
128
+ "inputs": [
129
+ {
130
+ "indexed": true,
131
+ "internalType": "bytes32",
132
+ "name": "intentHash",
133
+ "type": "bytes32"
134
+ },
135
+ {
136
+ "indexed": false,
137
+ "internalType": "uint256",
138
+ "name": "destinationChainId",
139
+ "type": "uint256"
140
+ },
141
+ {
142
+ "indexed": false,
143
+ "internalType": "address",
144
+ "name": "outputToken",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "address",
150
+ "name": "recipient",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "uint256",
156
+ "name": "inputAmount",
157
+ "type": "uint256"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "uint256",
162
+ "name": "outputAmount",
163
+ "type": "uint256"
164
+ },
165
+ {
166
+ "indexed": false,
167
+ "internalType": "uint32",
168
+ "name": "quoteTimestamp",
169
+ "type": "uint32"
170
+ },
171
+ {
172
+ "indexed": false,
173
+ "internalType": "uint32",
174
+ "name": "fillDeadline",
175
+ "type": "uint32"
176
+ }
177
+ ],
178
+ "name": "AcrossBridgeInitiated",
179
+ "type": "event"
180
+ },
181
+ {
182
+ "anonymous": false,
183
+ "inputs": [
184
+ {
185
+ "indexed": true,
186
+ "internalType": "address",
187
+ "name": "previousOwner",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "indexed": true,
192
+ "internalType": "address",
193
+ "name": "newOwner",
194
+ "type": "address"
195
+ }
196
+ ],
197
+ "name": "OwnershipTransferred",
198
+ "type": "event"
199
+ },
200
+ {
201
+ "anonymous": false,
202
+ "inputs": [
203
+ {
204
+ "indexed": true,
205
+ "internalType": "address",
206
+ "name": "token",
207
+ "type": "address"
208
+ },
209
+ {
210
+ "indexed": true,
211
+ "internalType": "address",
212
+ "name": "to",
213
+ "type": "address"
214
+ },
215
+ {
216
+ "indexed": false,
217
+ "internalType": "uint256",
218
+ "name": "amount",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "name": "RescueERC20",
223
+ "type": "event"
224
+ },
225
+ {
226
+ "anonymous": false,
227
+ "inputs": [
228
+ {
229
+ "indexed": true,
230
+ "internalType": "address",
231
+ "name": "to",
232
+ "type": "address"
233
+ },
234
+ {
235
+ "indexed": false,
236
+ "internalType": "uint256",
237
+ "name": "amount",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "name": "RescueNative",
242
+ "type": "event"
243
+ },
244
+ {
245
+ "inputs": [
246
+ {
247
+ "components": [
248
+ {
249
+ "internalType": "address",
250
+ "name": "owner",
251
+ "type": "address"
252
+ },
253
+ {
254
+ "internalType": "address",
255
+ "name": "to",
256
+ "type": "address"
257
+ },
258
+ {
259
+ "internalType": "address",
260
+ "name": "escrow",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "internalType": "uint256",
265
+ "name": "depositId",
266
+ "type": "uint256"
267
+ },
268
+ {
269
+ "internalType": "uint256",
270
+ "name": "amount",
271
+ "type": "uint256"
272
+ },
273
+ {
274
+ "internalType": "uint256",
275
+ "name": "timestamp",
276
+ "type": "uint256"
277
+ },
278
+ {
279
+ "internalType": "bytes32",
280
+ "name": "paymentMethod",
281
+ "type": "bytes32"
282
+ },
283
+ {
284
+ "internalType": "bytes32",
285
+ "name": "fiatCurrency",
286
+ "type": "bytes32"
287
+ },
288
+ {
289
+ "internalType": "uint256",
290
+ "name": "conversionRate",
291
+ "type": "uint256"
292
+ },
293
+ {
294
+ "internalType": "bytes32",
295
+ "name": "payeeId",
296
+ "type": "bytes32"
297
+ },
298
+ {
299
+ "internalType": "address",
300
+ "name": "referrer",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "internalType": "uint256",
305
+ "name": "referrerFee",
306
+ "type": "uint256"
307
+ },
308
+ {
309
+ "internalType": "contract IPostIntentHook",
310
+ "name": "postIntentHook",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "internalType": "bytes",
315
+ "name": "data",
316
+ "type": "bytes"
317
+ }
318
+ ],
319
+ "internalType": "struct IOrchestrator.Intent",
320
+ "name": "_intent",
321
+ "type": "tuple"
322
+ },
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "_amountNetFees",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "internalType": "bytes",
330
+ "name": "_fulfillIntentData",
331
+ "type": "bytes"
332
+ }
333
+ ],
334
+ "name": "execute",
335
+ "outputs": [],
336
+ "stateMutability": "nonpayable",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [],
341
+ "name": "inputToken",
342
+ "outputs": [
343
+ {
344
+ "internalType": "contract IERC20",
345
+ "name": "",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [],
354
+ "name": "orchestrator",
355
+ "outputs": [
356
+ {
357
+ "internalType": "address",
358
+ "name": "",
359
+ "type": "address"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [],
367
+ "name": "owner",
368
+ "outputs": [
369
+ {
370
+ "internalType": "address",
371
+ "name": "",
372
+ "type": "address"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [],
380
+ "name": "renounceOwnership",
381
+ "outputs": [],
382
+ "stateMutability": "nonpayable",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [
387
+ {
388
+ "internalType": "address",
389
+ "name": "_token",
390
+ "type": "address"
391
+ },
392
+ {
393
+ "internalType": "address",
394
+ "name": "_to",
395
+ "type": "address"
396
+ },
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "_amount",
400
+ "type": "uint256"
401
+ }
402
+ ],
403
+ "name": "rescueERC20",
404
+ "outputs": [],
405
+ "stateMutability": "nonpayable",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [
410
+ {
411
+ "internalType": "address payable",
412
+ "name": "_to",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "uint256",
417
+ "name": "_amount",
418
+ "type": "uint256"
419
+ }
420
+ ],
421
+ "name": "rescueNative",
422
+ "outputs": [],
423
+ "stateMutability": "nonpayable",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [],
428
+ "name": "spokePool",
429
+ "outputs": [
430
+ {
431
+ "internalType": "contract IAcrossSpokePool",
432
+ "name": "",
433
+ "type": "address"
434
+ }
435
+ ],
436
+ "stateMutability": "view",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [
441
+ {
442
+ "internalType": "address",
443
+ "name": "newOwner",
444
+ "type": "address"
445
+ }
446
+ ],
447
+ "name": "transferOwnership",
448
+ "outputs": [],
449
+ "stateMutability": "nonpayable",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "stateMutability": "payable",
454
+ "type": "receive"
455
+ }
456
+ ]
@@ -1,3 +1,4 @@
1
+ export { default as AcrossBridgeHook } from './AcrossBridgeHook.json';
1
2
  export { default as Escrow } from './Escrow.json';
2
3
  export { default as EscrowRegistry } from './EscrowRegistry.json';
3
4
  export { default as NullifierRegistry } from './NullifierRegistry.json';
@@ -1,5 +1,6 @@
1
1
  // Auto-generated CommonJS wrapper for baseStaging ABIs
2
2
  module.exports = {
3
+ AcrossBridgeHook: require('../_cjs/abis/baseStaging/AcrossBridgeHook.js'),
3
4
  Escrow: require('../_cjs/abis/baseStaging/Escrow.js'),
4
5
  EscrowRegistry: require('../_cjs/abis/baseStaging/EscrowRegistry.js'),
5
6
  NullifierRegistry: require('../_cjs/abis/baseStaging/NullifierRegistry.js'),
@@ -1,5 +1,6 @@
1
1
  // Auto-generated TypeScript definitions for baseStaging ABIs
2
2
  import type { Abi } from 'abitype';
3
+ export declare const AcrossBridgeHook: Abi;
3
4
  export declare const Escrow: Abi;
4
5
  export declare const EscrowRegistry: Abi;
5
6
  export declare const NullifierRegistry: Abi;
@@ -1,4 +1,5 @@
1
1
  // Auto-generated ESM wrapper for baseStaging ABIs
2
+ export { default as AcrossBridgeHook } from '../_esm/abis/baseStaging/AcrossBridgeHook.js';
2
3
  export { default as Escrow } from '../_esm/abis/baseStaging/Escrow.js';
3
4
  export { default as EscrowRegistry } from '../_esm/abis/baseStaging/EscrowRegistry.js';
4
5
  export { default as NullifierRegistry } from '../_esm/abis/baseStaging/NullifierRegistry.js';
@@ -14,6 +14,6 @@
14
14
  "UnifiedPaymentVerifier": "0x16b3e4a3CA36D3A4bCA281767f15C7ADeF4ab163"
15
15
  },
16
16
  "meta": {
17
- "generatedAt": "2025-12-15T14:38:33.232Z"
17
+ "generatedAt": "2026-01-06T10:48:12.616Z"
18
18
  }
19
19
  }
@@ -15,6 +15,6 @@
15
15
  "UnifiedPaymentVerifier": "0xA22aE87e99d614e6e04d787c67C609E24F223F6C"
16
16
  },
17
17
  "meta": {
18
- "generatedAt": "2025-12-15T14:38:33.302Z"
18
+ "generatedAt": "2026-01-06T10:48:12.689Z"
19
19
  }
20
20
  }
@@ -2,6 +2,7 @@
2
2
  "name": "base_staging",
3
3
  "chainId": 8453,
4
4
  "contracts": {
5
+ "AcrossBridgeHook": "0x49e0b48f5EFd1b20Bf1478E2D04c8C0146972d39",
5
6
  "Escrow": "0x5C2a8D9246777eE4501B6C426a8B8C7635C7b5b5",
6
7
  "EscrowRegistry": "0xc545f336eC77E69bf115729acCbf2e557A00ac91",
7
8
  "NullifierRegistry": "0x3FFd04f7909a16d3476263A1f4ce413A089dCc69",
@@ -14,6 +15,6 @@
14
15
  "UnifiedPaymentVerifier": "0xfFf74adAE1fb470d49cA37772C9859C4a6dBcc03"
15
16
  },
16
17
  "meta": {
17
- "generatedAt": "2025-12-15T14:38:33.362Z"
18
+ "generatedAt": "2026-01-06T10:48:12.755Z"
18
19
  }
19
20
  }
@@ -4,5 +4,5 @@
4
4
  "baseSepolia",
5
5
  "baseStaging"
6
6
  ],
7
- "generatedAt": "2025-12-15T14:38:33.362Z"
7
+ "generatedAt": "2026-01-06T10:48:12.755Z"
8
8
  }
@@ -4,5 +4,5 @@
4
4
  "baseSepolia",
5
5
  "baseStaging"
6
6
  ],
7
- "generatedAt": "2025-12-15T14:38:33.430Z"
7
+ "generatedAt": "2026-01-06T10:48:12.832Z"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/contracts-v2",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "ZKP2P V2 smart contract interfaces and utilities",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "network": "base",
3
3
  "chainId": "8453",
4
- "generatedAt": "2025-12-15T14:38:33.430Z",
4
+ "generatedAt": "2026-01-06T10:48:12.833Z",
5
5
  "methods": {
6
6
  "venmo": {
7
7
  "paymentMethodHash": "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
@@ -157,6 +157,14 @@
157
157
  ],
158
158
  "timestampBuffer": 30,
159
159
  "providerHashes": []
160
+ },
161
+ "chime": {
162
+ "paymentMethodHash": "0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb",
163
+ "currencies": [
164
+ "0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
165
+ ],
166
+ "timestampBuffer": 30,
167
+ "providerHashes": []
160
168
  }
161
169
  }
162
170
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "network": "base_sepolia",
3
- "generatedAt": "2025-12-15T14:38:33.431Z",
3
+ "generatedAt": "2026-01-06T10:48:12.833Z",
4
4
  "methods": {
5
5
  "venmo": {
6
6
  "paymentMethodHash": "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "network": "base_staging",
3
- "generatedAt": "2025-12-15T14:38:33.431Z",
3
+ "generatedAt": "2026-01-06T10:48:12.833Z",
4
4
  "methods": {
5
5
  "venmo": {
6
6
  "paymentMethodHash": "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
@@ -156,6 +156,14 @@
156
156
  ],
157
157
  "timestampBuffer": 30,
158
158
  "providerHashes": []
159
+ },
160
+ "chime": {
161
+ "paymentMethodHash": "0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb",
162
+ "currencies": [
163
+ "0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
164
+ ],
165
+ "timestampBuffer": 30,
166
+ "providerHashes": []
159
167
  }
160
168
  }
161
169
  }
@@ -4,5 +4,5 @@
4
4
  "baseSepolia",
5
5
  "baseStaging"
6
6
  ],
7
- "generatedAt": "2025-12-15T14:38:33.431Z"
7
+ "generatedAt": "2026-01-06T10:48:12.833Z"
8
8
  }