@zkp2p/sdk 0.8.0 → 0.9.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/README.md +4 -2
- package/dist/{chunk-ZM4ZP5GQ.mjs → chunk-FSIRPX4W.mjs} +182 -209
- package/dist/chunk-FSIRPX4W.mjs.map +1 -0
- package/dist/index.cjs +801 -712
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +143 -37
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-ER62YZ5L.mjs +5 -0
- package/dist/{protocolViewerParsers-GG6UQKLO.mjs.map → protocolViewerParsers-ER62YZ5L.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-BGDsoxAv.d.mts → vaultUtils-aJdIIILM.d.mts} +53 -2
- package/dist/{vaultUtils-BGDsoxAv.d.ts → vaultUtils-aJdIIILM.d.ts} +53 -2
- package/package.json +4 -4
- package/dist/chunk-ZM4ZP5GQ.mjs.map +0 -1
- package/dist/protocolViewerParsers-GG6UQKLO.mjs +0 -5
package/dist/index.cjs
CHANGED
|
@@ -126,10 +126,503 @@ var init_timeout = __esm({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
129
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/lookups.json
|
|
130
|
+
var lookups_default;
|
|
131
|
+
var init_lookups = __esm({
|
|
132
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/lookups.json"() {
|
|
133
|
+
lookups_default = {
|
|
134
|
+
generatedAt: "2026-07-15T15:12:36.004Z",
|
|
135
|
+
nameToHash: {
|
|
136
|
+
venmo: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
137
|
+
revolut: "0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d",
|
|
138
|
+
cashapp: "0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d",
|
|
139
|
+
wise: "0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5",
|
|
140
|
+
mercadopago: "0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483",
|
|
141
|
+
zelle: "0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3",
|
|
142
|
+
paypal: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
143
|
+
monzo: "0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c",
|
|
144
|
+
alipay: "0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff",
|
|
145
|
+
chime: "0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb"
|
|
146
|
+
},
|
|
147
|
+
hashToName: {
|
|
148
|
+
"0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268": "venmo",
|
|
149
|
+
"0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d": "revolut",
|
|
150
|
+
"0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d": "cashapp",
|
|
151
|
+
"0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5": "wise",
|
|
152
|
+
"0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483": "mercadopago",
|
|
153
|
+
"0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3": "zelle",
|
|
154
|
+
"0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f": "paypal",
|
|
155
|
+
"0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c": "monzo",
|
|
156
|
+
"0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff": "alipay",
|
|
157
|
+
"0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb": "chime",
|
|
158
|
+
"0xd9ff4fd6b39a3e3dd43c41d05662a5547de4a878bc97a65bcb352ade493cdc6b": "n26",
|
|
159
|
+
"0xaea63ef983458674f54ee50cdaa7b09d80a5c6c03ed505f51c90b0f2b54abb01": "luxon"
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
var currencyKeccak256;
|
|
165
|
+
var init_currencyKeccak256 = __esm({
|
|
166
|
+
"src/utils/currencyKeccak256.ts"() {
|
|
167
|
+
currencyKeccak256 = (inputString) => {
|
|
168
|
+
const bytes = new TextEncoder().encode(inputString);
|
|
169
|
+
return viem.keccak256(bytes);
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
// src/utils/currency.ts
|
|
175
|
+
var currency_exports = {};
|
|
176
|
+
__export(currency_exports, {
|
|
177
|
+
Currency: () => exports.Currency,
|
|
178
|
+
currencyInfo: () => exports.currencyInfo,
|
|
179
|
+
getCurrencyCodeFromHash: () => getCurrencyCodeFromHash,
|
|
180
|
+
getCurrencyInfoFromCountryCode: () => getCurrencyInfoFromCountryCode,
|
|
181
|
+
getCurrencyInfoFromHash: () => getCurrencyInfoFromHash,
|
|
182
|
+
isSupportedCurrencyHash: () => isSupportedCurrencyHash,
|
|
183
|
+
mapConversionRatesToOnchain: () => mapConversionRatesToOnchain,
|
|
184
|
+
mapConversionRatesToOnchainMinRate: () => mapConversionRatesToOnchainMinRate
|
|
185
|
+
});
|
|
186
|
+
function mapConversionRatesToOnchain(groups, expectedGroups) {
|
|
187
|
+
if (!Array.isArray(groups) || !Array.isArray(groups[0])) {
|
|
188
|
+
throw new Error("conversionRates must be a nested array per processor");
|
|
189
|
+
}
|
|
190
|
+
if (typeof expectedGroups === "number" && groups.length !== expectedGroups) {
|
|
191
|
+
throw new Error(
|
|
192
|
+
`conversionRates length (${groups.length}) must match processorNames length (${expectedGroups})`
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
return groups.map(
|
|
196
|
+
(group) => group.map((r) => {
|
|
197
|
+
const info = exports.currencyInfo[r.currency];
|
|
198
|
+
if (!info?.currencyCodeHash) throw new Error("Invalid currency");
|
|
199
|
+
return {
|
|
200
|
+
code: info.currencyCodeHash,
|
|
201
|
+
conversionRate: BigInt(r.conversionRate)
|
|
202
|
+
};
|
|
203
|
+
})
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
function mapConversionRatesToOnchainMinRate(groups, expectedGroups) {
|
|
207
|
+
if (!Array.isArray(groups) || !Array.isArray(groups[0])) {
|
|
208
|
+
throw new Error("conversionRates must be a nested array per payment method");
|
|
209
|
+
}
|
|
210
|
+
if (typeof expectedGroups === "number" && groups.length !== expectedGroups) {
|
|
211
|
+
throw new Error(
|
|
212
|
+
`conversionRates length (${groups.length}) must match processorNames length (${expectedGroups})`
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
return groups.map(
|
|
216
|
+
(group) => group.map((r) => {
|
|
217
|
+
const info = exports.currencyInfo[r.currency];
|
|
218
|
+
const hash = info?.currencyCodeHash;
|
|
219
|
+
if (!hash) throw new Error(`Invalid currency: ${r.currency}`);
|
|
220
|
+
return { code: hash, minConversionRate: BigInt(r.conversionRate) };
|
|
221
|
+
})
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
function getCurrencyInfoFromHash(hash) {
|
|
225
|
+
if (!hash) return void 0;
|
|
226
|
+
const h = hash.toLowerCase();
|
|
227
|
+
for (const key of Object.keys(exports.currencyInfo)) {
|
|
228
|
+
const info = exports.currencyInfo[key];
|
|
229
|
+
if (info?.currencyCodeHash?.toLowerCase() === h) return info;
|
|
230
|
+
}
|
|
231
|
+
return void 0;
|
|
232
|
+
}
|
|
233
|
+
function getCurrencyInfoFromCountryCode(code) {
|
|
234
|
+
if (!code) return void 0;
|
|
235
|
+
const upper = code.toUpperCase();
|
|
236
|
+
return exports.currencyInfo[upper];
|
|
237
|
+
}
|
|
238
|
+
function getCurrencyCodeFromHash(hash) {
|
|
239
|
+
return getCurrencyInfoFromHash(hash)?.currencyCode;
|
|
240
|
+
}
|
|
241
|
+
function isSupportedCurrencyHash(hash) {
|
|
242
|
+
return Boolean(getCurrencyInfoFromHash(hash));
|
|
243
|
+
}
|
|
244
|
+
exports.Currency = void 0; exports.currencyInfo = void 0;
|
|
245
|
+
var init_currency = __esm({
|
|
246
|
+
"src/utils/currency.ts"() {
|
|
247
|
+
init_currencyKeccak256();
|
|
248
|
+
exports.Currency = {
|
|
249
|
+
AED: "AED",
|
|
250
|
+
ARS: "ARS",
|
|
251
|
+
AUD: "AUD",
|
|
252
|
+
BRL: "BRL",
|
|
253
|
+
CAD: "CAD",
|
|
254
|
+
CHF: "CHF",
|
|
255
|
+
CNY: "CNY",
|
|
256
|
+
CZK: "CZK",
|
|
257
|
+
DKK: "DKK",
|
|
258
|
+
EUR: "EUR",
|
|
259
|
+
GBP: "GBP",
|
|
260
|
+
HKD: "HKD",
|
|
261
|
+
HUF: "HUF",
|
|
262
|
+
IDR: "IDR",
|
|
263
|
+
ILS: "ILS",
|
|
264
|
+
INR: "INR",
|
|
265
|
+
JPY: "JPY",
|
|
266
|
+
KES: "KES",
|
|
267
|
+
MXN: "MXN",
|
|
268
|
+
MYR: "MYR",
|
|
269
|
+
NOK: "NOK",
|
|
270
|
+
NZD: "NZD",
|
|
271
|
+
PHP: "PHP",
|
|
272
|
+
PLN: "PLN",
|
|
273
|
+
RON: "RON",
|
|
274
|
+
SAR: "SAR",
|
|
275
|
+
SEK: "SEK",
|
|
276
|
+
SGD: "SGD",
|
|
277
|
+
THB: "THB",
|
|
278
|
+
TRY: "TRY",
|
|
279
|
+
UGX: "UGX",
|
|
280
|
+
USD: "USD",
|
|
281
|
+
VND: "VND",
|
|
282
|
+
ZAR: "ZAR"
|
|
283
|
+
};
|
|
284
|
+
exports.currencyInfo = {
|
|
285
|
+
AED: {
|
|
286
|
+
currency: "AED",
|
|
287
|
+
currencyCode: "AED",
|
|
288
|
+
currencyName: "United Arab Emirates Dirham",
|
|
289
|
+
currencyCodeHash: currencyKeccak256("AED"),
|
|
290
|
+
currencySymbol: "\u062F.\u0625",
|
|
291
|
+
countryCode: "ae"
|
|
292
|
+
},
|
|
293
|
+
ARS: {
|
|
294
|
+
currency: "ARS",
|
|
295
|
+
currencyCode: "ARS",
|
|
296
|
+
currencyName: "Argentine Peso",
|
|
297
|
+
currencyCodeHash: currencyKeccak256("ARS"),
|
|
298
|
+
currencySymbol: "$",
|
|
299
|
+
countryCode: "ar"
|
|
300
|
+
},
|
|
301
|
+
AUD: {
|
|
302
|
+
currency: "AUD",
|
|
303
|
+
currencyCode: "AUD",
|
|
304
|
+
currencyName: "Australian Dollar",
|
|
305
|
+
currencyCodeHash: currencyKeccak256("AUD"),
|
|
306
|
+
currencySymbol: "A$",
|
|
307
|
+
countryCode: "au"
|
|
308
|
+
},
|
|
309
|
+
BRL: {
|
|
310
|
+
currency: "BRL",
|
|
311
|
+
currencyCode: "BRL",
|
|
312
|
+
currencyName: "Brazilian Real",
|
|
313
|
+
currencyCodeHash: currencyKeccak256("BRL"),
|
|
314
|
+
currencySymbol: "R$",
|
|
315
|
+
countryCode: "br"
|
|
316
|
+
},
|
|
317
|
+
CAD: {
|
|
318
|
+
currency: "CAD",
|
|
319
|
+
currencyCode: "CAD",
|
|
320
|
+
currencyName: "Canadian Dollar",
|
|
321
|
+
currencyCodeHash: currencyKeccak256("CAD"),
|
|
322
|
+
currencySymbol: "C$",
|
|
323
|
+
countryCode: "ca"
|
|
324
|
+
},
|
|
325
|
+
CHF: {
|
|
326
|
+
currency: "CHF",
|
|
327
|
+
currencyCode: "CHF",
|
|
328
|
+
currencyName: "Swiss Franc",
|
|
329
|
+
currencyCodeHash: currencyKeccak256("CHF"),
|
|
330
|
+
currencySymbol: "Fr",
|
|
331
|
+
countryCode: "ch"
|
|
332
|
+
},
|
|
333
|
+
CNY: {
|
|
334
|
+
currency: "CNY",
|
|
335
|
+
currencyCode: "CNY",
|
|
336
|
+
currencyName: "Chinese Yuan",
|
|
337
|
+
currencyCodeHash: currencyKeccak256("CNY"),
|
|
338
|
+
currencySymbol: "\xA5",
|
|
339
|
+
countryCode: "cn"
|
|
340
|
+
},
|
|
341
|
+
CZK: {
|
|
342
|
+
currency: "CZK",
|
|
343
|
+
currencyCode: "CZK",
|
|
344
|
+
currencyName: "Czech Koruna",
|
|
345
|
+
currencyCodeHash: currencyKeccak256("CZK"),
|
|
346
|
+
currencySymbol: "K\u010D",
|
|
347
|
+
countryCode: "cz"
|
|
348
|
+
},
|
|
349
|
+
DKK: {
|
|
350
|
+
currency: "DKK",
|
|
351
|
+
currencyCode: "DKK",
|
|
352
|
+
currencyName: "Danish Krone",
|
|
353
|
+
currencyCodeHash: currencyKeccak256("DKK"),
|
|
354
|
+
currencySymbol: "kr",
|
|
355
|
+
countryCode: "dk"
|
|
356
|
+
},
|
|
357
|
+
EUR: {
|
|
358
|
+
currency: "EUR",
|
|
359
|
+
currencyCode: "EUR",
|
|
360
|
+
currencyName: "Euro",
|
|
361
|
+
currencyCodeHash: currencyKeccak256("EUR"),
|
|
362
|
+
currencySymbol: "\u20AC",
|
|
363
|
+
countryCode: "eu"
|
|
364
|
+
},
|
|
365
|
+
GBP: {
|
|
366
|
+
currency: "GBP",
|
|
367
|
+
currencyCode: "GBP",
|
|
368
|
+
currencyName: "British Pound",
|
|
369
|
+
currencyCodeHash: currencyKeccak256("GBP"),
|
|
370
|
+
currencySymbol: "\xA3",
|
|
371
|
+
countryCode: "gb"
|
|
372
|
+
},
|
|
373
|
+
HKD: {
|
|
374
|
+
currency: "HKD",
|
|
375
|
+
currencyCode: "HKD",
|
|
376
|
+
currencyName: "Hong Kong Dollar",
|
|
377
|
+
currencyCodeHash: currencyKeccak256("HKD"),
|
|
378
|
+
currencySymbol: "HK$",
|
|
379
|
+
countryCode: "hk"
|
|
380
|
+
},
|
|
381
|
+
HUF: {
|
|
382
|
+
currency: "HUF",
|
|
383
|
+
currencyCode: "HUF",
|
|
384
|
+
currencyName: "Hungarian Forint",
|
|
385
|
+
currencyCodeHash: currencyKeccak256("HUF"),
|
|
386
|
+
currencySymbol: "Ft",
|
|
387
|
+
countryCode: "hu"
|
|
388
|
+
},
|
|
389
|
+
IDR: {
|
|
390
|
+
currency: "IDR",
|
|
391
|
+
currencyCode: "IDR",
|
|
392
|
+
currencyName: "Indonesian Rupiah",
|
|
393
|
+
currencyCodeHash: currencyKeccak256("IDR"),
|
|
394
|
+
currencySymbol: "Rp",
|
|
395
|
+
countryCode: "id"
|
|
396
|
+
},
|
|
397
|
+
ILS: {
|
|
398
|
+
currency: "ILS",
|
|
399
|
+
currencyCode: "ILS",
|
|
400
|
+
currencyName: "Israeli New Shekel",
|
|
401
|
+
currencyCodeHash: currencyKeccak256("ILS"),
|
|
402
|
+
currencySymbol: "\u20AA",
|
|
403
|
+
countryCode: "il"
|
|
404
|
+
},
|
|
405
|
+
INR: {
|
|
406
|
+
currency: "INR",
|
|
407
|
+
currencyCode: "INR",
|
|
408
|
+
currencyName: "Indian Rupee",
|
|
409
|
+
currencyCodeHash: currencyKeccak256("INR"),
|
|
410
|
+
currencySymbol: "\u20B9",
|
|
411
|
+
countryCode: "in"
|
|
412
|
+
},
|
|
413
|
+
JPY: {
|
|
414
|
+
currency: "JPY",
|
|
415
|
+
currencyCode: "JPY",
|
|
416
|
+
currencyName: "Japanese Yen",
|
|
417
|
+
currencyCodeHash: currencyKeccak256("JPY"),
|
|
418
|
+
currencySymbol: "\xA5",
|
|
419
|
+
countryCode: "jp"
|
|
420
|
+
},
|
|
421
|
+
KES: {
|
|
422
|
+
currency: "KES",
|
|
423
|
+
currencyCode: "KES",
|
|
424
|
+
currencyName: "Kenyan Shilling",
|
|
425
|
+
currencyCodeHash: currencyKeccak256("KES"),
|
|
426
|
+
currencySymbol: "KSh",
|
|
427
|
+
countryCode: "ke"
|
|
428
|
+
},
|
|
429
|
+
MXN: {
|
|
430
|
+
currency: "MXN",
|
|
431
|
+
currencyCode: "MXN",
|
|
432
|
+
currencyName: "Mexican Peso",
|
|
433
|
+
currencyCodeHash: currencyKeccak256("MXN"),
|
|
434
|
+
currencySymbol: "$",
|
|
435
|
+
countryCode: "mx"
|
|
436
|
+
},
|
|
437
|
+
MYR: {
|
|
438
|
+
currency: "MYR",
|
|
439
|
+
currencyCode: "MYR",
|
|
440
|
+
currencyName: "Malaysian Ringgit",
|
|
441
|
+
currencyCodeHash: currencyKeccak256("MYR"),
|
|
442
|
+
currencySymbol: "RM",
|
|
443
|
+
countryCode: "my"
|
|
444
|
+
},
|
|
445
|
+
NOK: {
|
|
446
|
+
currency: "NOK",
|
|
447
|
+
currencyCode: "NOK",
|
|
448
|
+
currencyName: "Norwegian Krone",
|
|
449
|
+
currencyCodeHash: currencyKeccak256("NOK"),
|
|
450
|
+
currencySymbol: "kr",
|
|
451
|
+
countryCode: "no"
|
|
452
|
+
},
|
|
453
|
+
NZD: {
|
|
454
|
+
currency: "NZD",
|
|
455
|
+
currencyCode: "NZD",
|
|
456
|
+
currencyName: "New Zealand Dollar",
|
|
457
|
+
currencyCodeHash: currencyKeccak256("NZD"),
|
|
458
|
+
currencySymbol: "NZ$",
|
|
459
|
+
countryCode: "nz"
|
|
460
|
+
},
|
|
461
|
+
PHP: {
|
|
462
|
+
currency: "PHP",
|
|
463
|
+
currencyCode: "PHP",
|
|
464
|
+
currencyName: "Philippine Peso",
|
|
465
|
+
currencyCodeHash: currencyKeccak256("PHP"),
|
|
466
|
+
currencySymbol: "\u20B1",
|
|
467
|
+
countryCode: "ph"
|
|
468
|
+
},
|
|
469
|
+
PLN: {
|
|
470
|
+
currency: "PLN",
|
|
471
|
+
currencyCode: "PLN",
|
|
472
|
+
currencyName: "Polish Z\u0142oty",
|
|
473
|
+
currencyCodeHash: currencyKeccak256("PLN"),
|
|
474
|
+
currencySymbol: "z\u0142",
|
|
475
|
+
countryCode: "pl"
|
|
476
|
+
},
|
|
477
|
+
RON: {
|
|
478
|
+
currency: "RON",
|
|
479
|
+
currencyCode: "RON",
|
|
480
|
+
currencyName: "Romanian Leu",
|
|
481
|
+
currencyCodeHash: currencyKeccak256("RON"),
|
|
482
|
+
currencySymbol: "lei",
|
|
483
|
+
countryCode: "ro"
|
|
484
|
+
},
|
|
485
|
+
SAR: {
|
|
486
|
+
currency: "SAR",
|
|
487
|
+
currencyCode: "SAR",
|
|
488
|
+
currencyName: "Saudi Riyal",
|
|
489
|
+
currencyCodeHash: currencyKeccak256("SAR"),
|
|
490
|
+
currencySymbol: "\uFDFC",
|
|
491
|
+
countryCode: "sa"
|
|
492
|
+
},
|
|
493
|
+
SEK: {
|
|
494
|
+
currency: "SEK",
|
|
495
|
+
currencyCode: "SEK",
|
|
496
|
+
currencyName: "Swedish Krona",
|
|
497
|
+
currencyCodeHash: currencyKeccak256("SEK"),
|
|
498
|
+
currencySymbol: "kr",
|
|
499
|
+
countryCode: "se"
|
|
500
|
+
},
|
|
501
|
+
SGD: {
|
|
502
|
+
currency: "SGD",
|
|
503
|
+
currencyCode: "SGD",
|
|
504
|
+
currencyName: "Singapore Dollar",
|
|
505
|
+
currencyCodeHash: currencyKeccak256("SGD"),
|
|
506
|
+
currencySymbol: "S$",
|
|
507
|
+
countryCode: "sg"
|
|
508
|
+
},
|
|
509
|
+
THB: {
|
|
510
|
+
currency: "THB",
|
|
511
|
+
currencyCode: "THB",
|
|
512
|
+
currencyName: "Thai Baht",
|
|
513
|
+
currencyCodeHash: currencyKeccak256("THB"),
|
|
514
|
+
currencySymbol: "\u0E3F",
|
|
515
|
+
countryCode: "th"
|
|
516
|
+
},
|
|
517
|
+
TRY: {
|
|
518
|
+
currency: "TRY",
|
|
519
|
+
currencyCode: "TRY",
|
|
520
|
+
currencyName: "Turkish Lira",
|
|
521
|
+
currencyCodeHash: currencyKeccak256("TRY"),
|
|
522
|
+
currencySymbol: "\u20BA",
|
|
523
|
+
countryCode: "tr"
|
|
524
|
+
},
|
|
525
|
+
UGX: {
|
|
526
|
+
currency: "UGX",
|
|
527
|
+
currencyCode: "UGX",
|
|
528
|
+
currencyName: "Ugandan Shilling",
|
|
529
|
+
currencyCodeHash: currencyKeccak256("UGX"),
|
|
530
|
+
currencySymbol: "USh",
|
|
531
|
+
countryCode: "ug"
|
|
532
|
+
},
|
|
533
|
+
USD: {
|
|
534
|
+
currency: "USD",
|
|
535
|
+
currencyCode: "USD",
|
|
536
|
+
currencyName: "United States Dollar",
|
|
537
|
+
currencyCodeHash: currencyKeccak256("USD"),
|
|
538
|
+
currencySymbol: "$",
|
|
539
|
+
countryCode: "us"
|
|
540
|
+
},
|
|
541
|
+
VND: {
|
|
542
|
+
currency: "VND",
|
|
543
|
+
currencyCode: "VND",
|
|
544
|
+
currencyName: "Vietnamese Dong",
|
|
545
|
+
currencyCodeHash: currencyKeccak256("VND"),
|
|
546
|
+
currencySymbol: "\u20AB",
|
|
547
|
+
countryCode: "vn"
|
|
548
|
+
},
|
|
549
|
+
ZAR: {
|
|
550
|
+
currency: "ZAR",
|
|
551
|
+
currencyCode: "ZAR",
|
|
552
|
+
currencyName: "South African Rand",
|
|
553
|
+
currencyCodeHash: currencyKeccak256("ZAR"),
|
|
554
|
+
currencySymbol: "R",
|
|
555
|
+
countryCode: "za"
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
// src/types/index.ts
|
|
562
|
+
exports.PAYMENT_PLATFORMS = void 0;
|
|
563
|
+
var init_types = __esm({
|
|
564
|
+
"src/types/index.ts"() {
|
|
565
|
+
exports.PAYMENT_PLATFORMS = [
|
|
566
|
+
"wise",
|
|
567
|
+
"venmo",
|
|
568
|
+
"revolut",
|
|
569
|
+
"cashapp",
|
|
570
|
+
"mercadopago",
|
|
571
|
+
"zelle",
|
|
572
|
+
"paypal",
|
|
573
|
+
"monzo",
|
|
574
|
+
"chime",
|
|
575
|
+
"luxon",
|
|
576
|
+
"n26"
|
|
577
|
+
];
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
// src/utils/paymentMethodHashes.ts
|
|
582
|
+
var ACTIVE_PAYMENT_METHOD_NAMES, METHOD_NAME_TO_HASH, SUPPORTED_PAYMENT_METHOD_HASHES, matchesPaymentMethodNameAndHash, matchesQuotePaymentMethod, HASH_TO_METHOD_NAME;
|
|
583
|
+
var init_paymentMethodHashes = __esm({
|
|
584
|
+
"src/utils/paymentMethodHashes.ts"() {
|
|
585
|
+
init_lookups();
|
|
586
|
+
init_types();
|
|
587
|
+
lookups_default.nameToHash.zelle;
|
|
588
|
+
ACTIVE_PAYMENT_METHOD_NAMES = /* @__PURE__ */ new Set([...exports.PAYMENT_PLATFORMS, "alipay"]);
|
|
589
|
+
METHOD_NAME_TO_HASH = Object.setPrototypeOf(
|
|
590
|
+
Object.fromEntries(
|
|
591
|
+
Object.entries(lookups_default.nameToHash).filter(([name]) => ACTIVE_PAYMENT_METHOD_NAMES.has(name))
|
|
592
|
+
),
|
|
593
|
+
null
|
|
594
|
+
);
|
|
595
|
+
SUPPORTED_PAYMENT_METHOD_HASHES = new Set(
|
|
596
|
+
Object.values(METHOD_NAME_TO_HASH).map((hash) => hash.toLowerCase())
|
|
597
|
+
);
|
|
598
|
+
matchesPaymentMethodNameAndHash = (paymentMethodName, paymentMethodHash) => {
|
|
599
|
+
const expectedHash = METHOD_NAME_TO_HASH[paymentMethodName.trim().toLowerCase()];
|
|
600
|
+
return Boolean(
|
|
601
|
+
expectedHash && expectedHash.toLowerCase() === paymentMethodHash.trim().toLowerCase()
|
|
602
|
+
);
|
|
603
|
+
};
|
|
604
|
+
matchesQuotePaymentMethod = (processorName, paymentMethod) => {
|
|
605
|
+
const normalizedProcessorName = processorName.trim().toLowerCase();
|
|
606
|
+
const normalizedPaymentMethod = paymentMethod.trim().toLowerCase();
|
|
607
|
+
const expectedHash = METHOD_NAME_TO_HASH[normalizedProcessorName];
|
|
608
|
+
return Boolean(
|
|
609
|
+
expectedHash && (normalizedPaymentMethod === normalizedProcessorName || normalizedPaymentMethod === expectedHash.toLowerCase())
|
|
610
|
+
);
|
|
611
|
+
};
|
|
612
|
+
HASH_TO_METHOD_NAME = Object.entries(lookups_default.hashToName).filter(([, name]) => ACTIVE_PAYMENT_METHOD_NAMES.has(name)).reduce(
|
|
613
|
+
(acc, [hash, name]) => {
|
|
614
|
+
acc[hash.toLowerCase()] = name;
|
|
615
|
+
return acc;
|
|
616
|
+
},
|
|
617
|
+
{}
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/addresses/base.js
|
|
130
623
|
var data, base_default;
|
|
131
624
|
var init_base = __esm({
|
|
132
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
625
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/addresses/base.js"() {
|
|
133
626
|
data = {
|
|
134
627
|
"name": "base",
|
|
135
628
|
"chainId": 8453,
|
|
@@ -159,17 +652,17 @@ var init_base = __esm({
|
|
|
159
652
|
"WhitelistPreIntentHook": "0xda023Ea0d789A41BcF5866F7B6BBd2CaDF9b79B8"
|
|
160
653
|
},
|
|
161
654
|
"meta": {
|
|
162
|
-
"generatedAt": "2026-
|
|
655
|
+
"generatedAt": "2026-07-15T15:12:32.088Z"
|
|
163
656
|
}
|
|
164
657
|
};
|
|
165
658
|
base_default = data;
|
|
166
659
|
}
|
|
167
660
|
});
|
|
168
661
|
|
|
169
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
662
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/addresses/baseStaging.js
|
|
170
663
|
var data2, baseStaging_default;
|
|
171
664
|
var init_baseStaging = __esm({
|
|
172
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
665
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/addresses/baseStaging.js"() {
|
|
173
666
|
data2 = {
|
|
174
667
|
"name": "base_staging",
|
|
175
668
|
"chainId": 8453,
|
|
@@ -199,17 +692,17 @@ var init_baseStaging = __esm({
|
|
|
199
692
|
"WhitelistPreIntentHook": "0xABE7AFC4C7bE9c4Eed5F465a98e124ee7860C005"
|
|
200
693
|
},
|
|
201
694
|
"meta": {
|
|
202
|
-
"generatedAt": "2026-
|
|
695
|
+
"generatedAt": "2026-07-15T15:12:32.089Z"
|
|
203
696
|
}
|
|
204
697
|
};
|
|
205
698
|
baseStaging_default = data2;
|
|
206
699
|
}
|
|
207
700
|
});
|
|
208
701
|
|
|
209
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
702
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/AcrossBridgeHook.js
|
|
210
703
|
var data3, AcrossBridgeHook_default;
|
|
211
704
|
var init_AcrossBridgeHook = __esm({
|
|
212
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
705
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/AcrossBridgeHook.js"() {
|
|
213
706
|
data3 = [
|
|
214
707
|
{
|
|
215
708
|
"inputs": [
|
|
@@ -669,10 +1162,10 @@ var init_AcrossBridgeHook = __esm({
|
|
|
669
1162
|
}
|
|
670
1163
|
});
|
|
671
1164
|
|
|
672
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1165
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/AcrossBridgeHookV2.js
|
|
673
1166
|
var data4, AcrossBridgeHookV2_default;
|
|
674
1167
|
var init_AcrossBridgeHookV2 = __esm({
|
|
675
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1168
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/AcrossBridgeHookV2.js"() {
|
|
676
1169
|
data4 = [
|
|
677
1170
|
{
|
|
678
1171
|
"inputs": [
|
|
@@ -1145,10 +1638,10 @@ var init_AcrossBridgeHookV2 = __esm({
|
|
|
1145
1638
|
}
|
|
1146
1639
|
});
|
|
1147
1640
|
|
|
1148
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1641
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/ChainlinkOracleAdapter.js
|
|
1149
1642
|
var data5, ChainlinkOracleAdapter_default;
|
|
1150
1643
|
var init_ChainlinkOracleAdapter = __esm({
|
|
1151
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1644
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/ChainlinkOracleAdapter.js"() {
|
|
1152
1645
|
data5 = [
|
|
1153
1646
|
{
|
|
1154
1647
|
"inputs": [
|
|
@@ -1203,10 +1696,10 @@ var init_ChainlinkOracleAdapter = __esm({
|
|
|
1203
1696
|
}
|
|
1204
1697
|
});
|
|
1205
1698
|
|
|
1206
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1699
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/Escrow.js
|
|
1207
1700
|
var data6, Escrow_default;
|
|
1208
1701
|
var init_Escrow = __esm({
|
|
1209
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1702
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/Escrow.js"() {
|
|
1210
1703
|
data6 = [
|
|
1211
1704
|
{
|
|
1212
1705
|
"inputs": [
|
|
@@ -3421,10 +3914,10 @@ var init_Escrow = __esm({
|
|
|
3421
3914
|
}
|
|
3422
3915
|
});
|
|
3423
3916
|
|
|
3424
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
3917
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/EscrowRegistry.js
|
|
3425
3918
|
var data7, EscrowRegistry_default;
|
|
3426
3919
|
var init_EscrowRegistry = __esm({
|
|
3427
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
3920
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/EscrowRegistry.js"() {
|
|
3428
3921
|
data7 = [
|
|
3429
3922
|
{
|
|
3430
3923
|
"inputs": [],
|
|
@@ -3643,10 +4136,10 @@ var init_EscrowRegistry = __esm({
|
|
|
3643
4136
|
}
|
|
3644
4137
|
});
|
|
3645
4138
|
|
|
3646
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
4139
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/EscrowV2.js
|
|
3647
4140
|
var data8, EscrowV2_default;
|
|
3648
4141
|
var init_EscrowV2 = __esm({
|
|
3649
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
4142
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/EscrowV2.js"() {
|
|
3650
4143
|
data8 = [
|
|
3651
4144
|
{
|
|
3652
4145
|
"inputs": [
|
|
@@ -6668,10 +7161,10 @@ var init_EscrowV2 = __esm({
|
|
|
6668
7161
|
}
|
|
6669
7162
|
});
|
|
6670
7163
|
|
|
6671
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
7164
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/MultiAttestationVerifier.js
|
|
6672
7165
|
var data9, MultiAttestationVerifier_default;
|
|
6673
7166
|
var init_MultiAttestationVerifier = __esm({
|
|
6674
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
7167
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/MultiAttestationVerifier.js"() {
|
|
6675
7168
|
data9 = [
|
|
6676
7169
|
{
|
|
6677
7170
|
"inputs": [
|
|
@@ -6917,10 +7410,10 @@ var init_MultiAttestationVerifier = __esm({
|
|
|
6917
7410
|
}
|
|
6918
7411
|
});
|
|
6919
7412
|
|
|
6920
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
7413
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/NullifierRegistry.js
|
|
6921
7414
|
var data10, NullifierRegistry_default;
|
|
6922
7415
|
var init_NullifierRegistry = __esm({
|
|
6923
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
7416
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/NullifierRegistry.js"() {
|
|
6924
7417
|
data10 = [
|
|
6925
7418
|
{
|
|
6926
7419
|
"inputs": [],
|
|
@@ -7138,10 +7631,10 @@ var init_NullifierRegistry = __esm({
|
|
|
7138
7631
|
}
|
|
7139
7632
|
});
|
|
7140
7633
|
|
|
7141
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
7634
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/Orchestrator.js
|
|
7142
7635
|
var data11, Orchestrator_default;
|
|
7143
7636
|
var init_Orchestrator = __esm({
|
|
7144
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
7637
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/Orchestrator.js"() {
|
|
7145
7638
|
data11 = [
|
|
7146
7639
|
{
|
|
7147
7640
|
"inputs": [
|
|
@@ -8291,10 +8784,10 @@ var init_Orchestrator = __esm({
|
|
|
8291
8784
|
}
|
|
8292
8785
|
});
|
|
8293
8786
|
|
|
8294
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
8787
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/OrchestratorRegistry.js
|
|
8295
8788
|
var data12, OrchestratorRegistry_default;
|
|
8296
8789
|
var init_OrchestratorRegistry = __esm({
|
|
8297
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
8790
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/OrchestratorRegistry.js"() {
|
|
8298
8791
|
data12 = [
|
|
8299
8792
|
{
|
|
8300
8793
|
"inputs": [
|
|
@@ -8451,10 +8944,10 @@ var init_OrchestratorRegistry = __esm({
|
|
|
8451
8944
|
}
|
|
8452
8945
|
});
|
|
8453
8946
|
|
|
8454
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
8947
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/OrchestratorV2.js
|
|
8455
8948
|
var data13, OrchestratorV2_default;
|
|
8456
8949
|
var init_OrchestratorV2 = __esm({
|
|
8457
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
8950
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/OrchestratorV2.js"() {
|
|
8458
8951
|
data13 = [
|
|
8459
8952
|
{
|
|
8460
8953
|
"inputs": [
|
|
@@ -9857,10 +10350,10 @@ var init_OrchestratorV2 = __esm({
|
|
|
9857
10350
|
}
|
|
9858
10351
|
});
|
|
9859
10352
|
|
|
9860
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10353
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/PaymentVerifierRegistry.js
|
|
9861
10354
|
var data14, PaymentVerifierRegistry_default;
|
|
9862
10355
|
var init_PaymentVerifierRegistry = __esm({
|
|
9863
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10356
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/PaymentVerifierRegistry.js"() {
|
|
9864
10357
|
data14 = [
|
|
9865
10358
|
{
|
|
9866
10359
|
"inputs": [],
|
|
@@ -10197,10 +10690,10 @@ var init_PaymentVerifierRegistry = __esm({
|
|
|
10197
10690
|
}
|
|
10198
10691
|
});
|
|
10199
10692
|
|
|
10200
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10693
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/PostIntentHookRegistry.js
|
|
10201
10694
|
var data15, PostIntentHookRegistry_default;
|
|
10202
10695
|
var init_PostIntentHookRegistry = __esm({
|
|
10203
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10696
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/PostIntentHookRegistry.js"() {
|
|
10204
10697
|
data15 = [
|
|
10205
10698
|
{
|
|
10206
10699
|
"inputs": [],
|
|
@@ -10386,10 +10879,10 @@ var init_PostIntentHookRegistry = __esm({
|
|
|
10386
10879
|
}
|
|
10387
10880
|
});
|
|
10388
10881
|
|
|
10389
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10882
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/ProtocolViewer.js
|
|
10390
10883
|
var data16, ProtocolViewer_default;
|
|
10391
10884
|
var init_ProtocolViewer = __esm({
|
|
10392
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10885
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/ProtocolViewer.js"() {
|
|
10393
10886
|
data16 = [
|
|
10394
10887
|
{
|
|
10395
10888
|
"inputs": [
|
|
@@ -11611,10 +12104,10 @@ var init_ProtocolViewer = __esm({
|
|
|
11611
12104
|
}
|
|
11612
12105
|
});
|
|
11613
12106
|
|
|
11614
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
12107
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/ProtocolViewerV2.js
|
|
11615
12108
|
var data17, ProtocolViewerV2_default;
|
|
11616
12109
|
var init_ProtocolViewerV2 = __esm({
|
|
11617
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
12110
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/ProtocolViewerV2.js"() {
|
|
11618
12111
|
data17 = [
|
|
11619
12112
|
{
|
|
11620
12113
|
"inputs": [
|
|
@@ -12711,10 +13204,10 @@ var init_ProtocolViewerV2 = __esm({
|
|
|
12711
13204
|
}
|
|
12712
13205
|
});
|
|
12713
13206
|
|
|
12714
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
13207
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/PythOracleAdapter.js
|
|
12715
13208
|
var data18, PythOracleAdapter_default;
|
|
12716
13209
|
var init_PythOracleAdapter = __esm({
|
|
12717
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
13210
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/PythOracleAdapter.js"() {
|
|
12718
13211
|
data18 = [
|
|
12719
13212
|
{
|
|
12720
13213
|
"inputs": [
|
|
@@ -12793,10 +13286,10 @@ var init_PythOracleAdapter = __esm({
|
|
|
12793
13286
|
}
|
|
12794
13287
|
});
|
|
12795
13288
|
|
|
12796
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
13289
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/RateManagerV1.js
|
|
12797
13290
|
var data19, RateManagerV1_default;
|
|
12798
13291
|
var init_RateManagerV1 = __esm({
|
|
12799
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
13292
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/RateManagerV1.js"() {
|
|
12800
13293
|
data19 = [
|
|
12801
13294
|
{
|
|
12802
13295
|
"inputs": [
|
|
@@ -13554,10 +14047,10 @@ var init_RateManagerV1 = __esm({
|
|
|
13554
14047
|
}
|
|
13555
14048
|
});
|
|
13556
14049
|
|
|
13557
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14050
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/RelayerRegistry.js
|
|
13558
14051
|
var data20, RelayerRegistry_default;
|
|
13559
14052
|
var init_RelayerRegistry = __esm({
|
|
13560
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14053
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/RelayerRegistry.js"() {
|
|
13561
14054
|
data20 = [
|
|
13562
14055
|
{
|
|
13563
14056
|
"inputs": [],
|
|
@@ -13724,10 +14217,10 @@ var init_RelayerRegistry = __esm({
|
|
|
13724
14217
|
}
|
|
13725
14218
|
});
|
|
13726
14219
|
|
|
13727
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14220
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/SignatureGatingPreIntentHook.js
|
|
13728
14221
|
var data21, SignatureGatingPreIntentHook_default;
|
|
13729
14222
|
var init_SignatureGatingPreIntentHook = __esm({
|
|
13730
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14223
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/SignatureGatingPreIntentHook.js"() {
|
|
13731
14224
|
data21 = [
|
|
13732
14225
|
{
|
|
13733
14226
|
"inputs": [
|
|
@@ -14029,10 +14522,10 @@ var init_SignatureGatingPreIntentHook = __esm({
|
|
|
14029
14522
|
}
|
|
14030
14523
|
});
|
|
14031
14524
|
|
|
14032
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14525
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/SimpleAttestationVerifier.js
|
|
14033
14526
|
var data22, SimpleAttestationVerifier_default;
|
|
14034
14527
|
var init_SimpleAttestationVerifier = __esm({
|
|
14035
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14528
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/SimpleAttestationVerifier.js"() {
|
|
14036
14529
|
data22 = [
|
|
14037
14530
|
{
|
|
14038
14531
|
"inputs": [
|
|
@@ -14189,10 +14682,10 @@ var init_SimpleAttestationVerifier = __esm({
|
|
|
14189
14682
|
}
|
|
14190
14683
|
});
|
|
14191
14684
|
|
|
14192
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14685
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/UnifiedPaymentVerifier.js
|
|
14193
14686
|
var data23, UnifiedPaymentVerifier_default;
|
|
14194
14687
|
var init_UnifiedPaymentVerifier = __esm({
|
|
14195
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14688
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/UnifiedPaymentVerifier.js"() {
|
|
14196
14689
|
data23 = [
|
|
14197
14690
|
{
|
|
14198
14691
|
"inputs": [
|
|
@@ -14561,10 +15054,10 @@ var init_UnifiedPaymentVerifier = __esm({
|
|
|
14561
15054
|
}
|
|
14562
15055
|
});
|
|
14563
15056
|
|
|
14564
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15057
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/UnifiedPaymentVerifierV2.js
|
|
14565
15058
|
var data24, UnifiedPaymentVerifierV2_default;
|
|
14566
15059
|
var init_UnifiedPaymentVerifierV2 = __esm({
|
|
14567
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15060
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/UnifiedPaymentVerifierV2.js"() {
|
|
14568
15061
|
data24 = [
|
|
14569
15062
|
{
|
|
14570
15063
|
"inputs": [
|
|
@@ -14933,10 +15426,10 @@ var init_UnifiedPaymentVerifierV2 = __esm({
|
|
|
14933
15426
|
}
|
|
14934
15427
|
});
|
|
14935
15428
|
|
|
14936
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15429
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/WhitelistPreIntentHook.js
|
|
14937
15430
|
var data25, WhitelistPreIntentHook_default;
|
|
14938
15431
|
var init_WhitelistPreIntentHook = __esm({
|
|
14939
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15432
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/base/WhitelistPreIntentHook.js"() {
|
|
14940
15433
|
data25 = [
|
|
14941
15434
|
{
|
|
14942
15435
|
"inputs": [
|
|
@@ -15282,7 +15775,7 @@ var init_WhitelistPreIntentHook = __esm({
|
|
|
15282
15775
|
}
|
|
15283
15776
|
});
|
|
15284
15777
|
|
|
15285
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15778
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base.mjs
|
|
15286
15779
|
var base_exports = {};
|
|
15287
15780
|
__export(base_exports, {
|
|
15288
15781
|
AcrossBridgeHook: () => AcrossBridgeHook_default,
|
|
@@ -15310,7 +15803,7 @@ __export(base_exports, {
|
|
|
15310
15803
|
WhitelistPreIntentHook: () => WhitelistPreIntentHook_default
|
|
15311
15804
|
});
|
|
15312
15805
|
var init_base2 = __esm({
|
|
15313
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15806
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base.mjs"() {
|
|
15314
15807
|
init_AcrossBridgeHook();
|
|
15315
15808
|
init_AcrossBridgeHookV2();
|
|
15316
15809
|
init_ChainlinkOracleAdapter();
|
|
@@ -15337,10 +15830,10 @@ var init_base2 = __esm({
|
|
|
15337
15830
|
}
|
|
15338
15831
|
});
|
|
15339
15832
|
|
|
15340
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15833
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/AcrossBridgeHook.js
|
|
15341
15834
|
var data26, AcrossBridgeHook_default2;
|
|
15342
15835
|
var init_AcrossBridgeHook2 = __esm({
|
|
15343
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15836
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/AcrossBridgeHook.js"() {
|
|
15344
15837
|
data26 = [
|
|
15345
15838
|
{
|
|
15346
15839
|
"inputs": [
|
|
@@ -15800,10 +16293,10 @@ var init_AcrossBridgeHook2 = __esm({
|
|
|
15800
16293
|
}
|
|
15801
16294
|
});
|
|
15802
16295
|
|
|
15803
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16296
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/AcrossBridgeHookV2.js
|
|
15804
16297
|
var data27, AcrossBridgeHookV2_default2;
|
|
15805
16298
|
var init_AcrossBridgeHookV22 = __esm({
|
|
15806
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16299
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/AcrossBridgeHookV2.js"() {
|
|
15807
16300
|
data27 = [
|
|
15808
16301
|
{
|
|
15809
16302
|
"inputs": [
|
|
@@ -16276,10 +16769,10 @@ var init_AcrossBridgeHookV22 = __esm({
|
|
|
16276
16769
|
}
|
|
16277
16770
|
});
|
|
16278
16771
|
|
|
16279
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16772
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/ChainlinkOracleAdapter.js
|
|
16280
16773
|
var data28, ChainlinkOracleAdapter_default2;
|
|
16281
16774
|
var init_ChainlinkOracleAdapter2 = __esm({
|
|
16282
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16775
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/ChainlinkOracleAdapter.js"() {
|
|
16283
16776
|
data28 = [
|
|
16284
16777
|
{
|
|
16285
16778
|
"inputs": [
|
|
@@ -16334,10 +16827,10 @@ var init_ChainlinkOracleAdapter2 = __esm({
|
|
|
16334
16827
|
}
|
|
16335
16828
|
});
|
|
16336
16829
|
|
|
16337
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16830
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/Escrow.js
|
|
16338
16831
|
var data29, Escrow_default2;
|
|
16339
16832
|
var init_Escrow2 = __esm({
|
|
16340
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16833
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/Escrow.js"() {
|
|
16341
16834
|
data29 = [
|
|
16342
16835
|
{
|
|
16343
16836
|
"inputs": [
|
|
@@ -18552,10 +19045,10 @@ var init_Escrow2 = __esm({
|
|
|
18552
19045
|
}
|
|
18553
19046
|
});
|
|
18554
19047
|
|
|
18555
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
19048
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/EscrowRegistry.js
|
|
18556
19049
|
var data30, EscrowRegistry_default2;
|
|
18557
19050
|
var init_EscrowRegistry2 = __esm({
|
|
18558
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
19051
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/EscrowRegistry.js"() {
|
|
18559
19052
|
data30 = [
|
|
18560
19053
|
{
|
|
18561
19054
|
"inputs": [],
|
|
@@ -18774,10 +19267,10 @@ var init_EscrowRegistry2 = __esm({
|
|
|
18774
19267
|
}
|
|
18775
19268
|
});
|
|
18776
19269
|
|
|
18777
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
19270
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/EscrowV2.js
|
|
18778
19271
|
var data31, EscrowV2_default2;
|
|
18779
19272
|
var init_EscrowV22 = __esm({
|
|
18780
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
19273
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/EscrowV2.js"() {
|
|
18781
19274
|
data31 = [
|
|
18782
19275
|
{
|
|
18783
19276
|
"inputs": [
|
|
@@ -21799,10 +22292,10 @@ var init_EscrowV22 = __esm({
|
|
|
21799
22292
|
}
|
|
21800
22293
|
});
|
|
21801
22294
|
|
|
21802
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22295
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/MultiAttestationVerifier.js
|
|
21803
22296
|
var data32, MultiAttestationVerifier_default2;
|
|
21804
22297
|
var init_MultiAttestationVerifier2 = __esm({
|
|
21805
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22298
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/MultiAttestationVerifier.js"() {
|
|
21806
22299
|
data32 = [
|
|
21807
22300
|
{
|
|
21808
22301
|
"inputs": [
|
|
@@ -22048,10 +22541,10 @@ var init_MultiAttestationVerifier2 = __esm({
|
|
|
22048
22541
|
}
|
|
22049
22542
|
});
|
|
22050
22543
|
|
|
22051
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22544
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/NullifierRegistry.js
|
|
22052
22545
|
var data33, NullifierRegistry_default2;
|
|
22053
22546
|
var init_NullifierRegistry2 = __esm({
|
|
22054
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22547
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/NullifierRegistry.js"() {
|
|
22055
22548
|
data33 = [
|
|
22056
22549
|
{
|
|
22057
22550
|
"inputs": [],
|
|
@@ -22269,10 +22762,10 @@ var init_NullifierRegistry2 = __esm({
|
|
|
22269
22762
|
}
|
|
22270
22763
|
});
|
|
22271
22764
|
|
|
22272
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22765
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/Orchestrator.js
|
|
22273
22766
|
var data34, Orchestrator_default2;
|
|
22274
22767
|
var init_Orchestrator2 = __esm({
|
|
22275
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22768
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/Orchestrator.js"() {
|
|
22276
22769
|
data34 = [
|
|
22277
22770
|
{
|
|
22278
22771
|
"inputs": [
|
|
@@ -23422,10 +23915,10 @@ var init_Orchestrator2 = __esm({
|
|
|
23422
23915
|
}
|
|
23423
23916
|
});
|
|
23424
23917
|
|
|
23425
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
23918
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/OrchestratorRegistry.js
|
|
23426
23919
|
var data35, OrchestratorRegistry_default2;
|
|
23427
23920
|
var init_OrchestratorRegistry2 = __esm({
|
|
23428
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
23921
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/OrchestratorRegistry.js"() {
|
|
23429
23922
|
data35 = [
|
|
23430
23923
|
{
|
|
23431
23924
|
"inputs": [
|
|
@@ -23582,10 +24075,10 @@ var init_OrchestratorRegistry2 = __esm({
|
|
|
23582
24075
|
}
|
|
23583
24076
|
});
|
|
23584
24077
|
|
|
23585
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
24078
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/OrchestratorV2.js
|
|
23586
24079
|
var data36, OrchestratorV2_default2;
|
|
23587
24080
|
var init_OrchestratorV22 = __esm({
|
|
23588
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
24081
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/OrchestratorV2.js"() {
|
|
23589
24082
|
data36 = [
|
|
23590
24083
|
{
|
|
23591
24084
|
"inputs": [
|
|
@@ -24988,10 +25481,10 @@ var init_OrchestratorV22 = __esm({
|
|
|
24988
25481
|
}
|
|
24989
25482
|
});
|
|
24990
25483
|
|
|
24991
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
25484
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/PaymentVerifierRegistry.js
|
|
24992
25485
|
var data37, PaymentVerifierRegistry_default2;
|
|
24993
25486
|
var init_PaymentVerifierRegistry2 = __esm({
|
|
24994
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
25487
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/PaymentVerifierRegistry.js"() {
|
|
24995
25488
|
data37 = [
|
|
24996
25489
|
{
|
|
24997
25490
|
"inputs": [],
|
|
@@ -25328,10 +25821,10 @@ var init_PaymentVerifierRegistry2 = __esm({
|
|
|
25328
25821
|
}
|
|
25329
25822
|
});
|
|
25330
25823
|
|
|
25331
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
25824
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/PostIntentHookRegistry.js
|
|
25332
25825
|
var data38, PostIntentHookRegistry_default2;
|
|
25333
25826
|
var init_PostIntentHookRegistry2 = __esm({
|
|
25334
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
25827
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/PostIntentHookRegistry.js"() {
|
|
25335
25828
|
data38 = [
|
|
25336
25829
|
{
|
|
25337
25830
|
"inputs": [],
|
|
@@ -25517,10 +26010,10 @@ var init_PostIntentHookRegistry2 = __esm({
|
|
|
25517
26010
|
}
|
|
25518
26011
|
});
|
|
25519
26012
|
|
|
25520
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
26013
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/ProtocolViewer.js
|
|
25521
26014
|
var data39, ProtocolViewer_default2;
|
|
25522
26015
|
var init_ProtocolViewer2 = __esm({
|
|
25523
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
26016
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/ProtocolViewer.js"() {
|
|
25524
26017
|
data39 = [
|
|
25525
26018
|
{
|
|
25526
26019
|
"inputs": [
|
|
@@ -26742,10 +27235,10 @@ var init_ProtocolViewer2 = __esm({
|
|
|
26742
27235
|
}
|
|
26743
27236
|
});
|
|
26744
27237
|
|
|
26745
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
27238
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/ProtocolViewerV2.js
|
|
26746
27239
|
var data40, ProtocolViewerV2_default2;
|
|
26747
27240
|
var init_ProtocolViewerV22 = __esm({
|
|
26748
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
27241
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/ProtocolViewerV2.js"() {
|
|
26749
27242
|
data40 = [
|
|
26750
27243
|
{
|
|
26751
27244
|
"inputs": [
|
|
@@ -27842,10 +28335,10 @@ var init_ProtocolViewerV22 = __esm({
|
|
|
27842
28335
|
}
|
|
27843
28336
|
});
|
|
27844
28337
|
|
|
27845
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
28338
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/PythOracleAdapter.js
|
|
27846
28339
|
var data41, PythOracleAdapter_default2;
|
|
27847
28340
|
var init_PythOracleAdapter2 = __esm({
|
|
27848
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
28341
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/PythOracleAdapter.js"() {
|
|
27849
28342
|
data41 = [
|
|
27850
28343
|
{
|
|
27851
28344
|
"inputs": [
|
|
@@ -27924,10 +28417,10 @@ var init_PythOracleAdapter2 = __esm({
|
|
|
27924
28417
|
}
|
|
27925
28418
|
});
|
|
27926
28419
|
|
|
27927
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
28420
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/RateManagerV1.js
|
|
27928
28421
|
var data42, RateManagerV1_default2;
|
|
27929
28422
|
var init_RateManagerV12 = __esm({
|
|
27930
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
28423
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/RateManagerV1.js"() {
|
|
27931
28424
|
data42 = [
|
|
27932
28425
|
{
|
|
27933
28426
|
"inputs": [
|
|
@@ -28685,10 +29178,10 @@ var init_RateManagerV12 = __esm({
|
|
|
28685
29178
|
}
|
|
28686
29179
|
});
|
|
28687
29180
|
|
|
28688
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29181
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/RelayerRegistry.js
|
|
28689
29182
|
var data43, RelayerRegistry_default2;
|
|
28690
29183
|
var init_RelayerRegistry2 = __esm({
|
|
28691
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29184
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/RelayerRegistry.js"() {
|
|
28692
29185
|
data43 = [
|
|
28693
29186
|
{
|
|
28694
29187
|
"inputs": [],
|
|
@@ -28855,10 +29348,10 @@ var init_RelayerRegistry2 = __esm({
|
|
|
28855
29348
|
}
|
|
28856
29349
|
});
|
|
28857
29350
|
|
|
28858
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29351
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/SignatureGatingPreIntentHook.js
|
|
28859
29352
|
var data44, SignatureGatingPreIntentHook_default2;
|
|
28860
29353
|
var init_SignatureGatingPreIntentHook2 = __esm({
|
|
28861
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29354
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/SignatureGatingPreIntentHook.js"() {
|
|
28862
29355
|
data44 = [
|
|
28863
29356
|
{
|
|
28864
29357
|
"inputs": [
|
|
@@ -29160,10 +29653,10 @@ var init_SignatureGatingPreIntentHook2 = __esm({
|
|
|
29160
29653
|
}
|
|
29161
29654
|
});
|
|
29162
29655
|
|
|
29163
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29656
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/SimpleAttestationVerifier.js
|
|
29164
29657
|
var data45, SimpleAttestationVerifier_default2;
|
|
29165
29658
|
var init_SimpleAttestationVerifier2 = __esm({
|
|
29166
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29659
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/SimpleAttestationVerifier.js"() {
|
|
29167
29660
|
data45 = [
|
|
29168
29661
|
{
|
|
29169
29662
|
"inputs": [
|
|
@@ -29320,10 +29813,10 @@ var init_SimpleAttestationVerifier2 = __esm({
|
|
|
29320
29813
|
}
|
|
29321
29814
|
});
|
|
29322
29815
|
|
|
29323
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29816
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/UnifiedPaymentVerifier.js
|
|
29324
29817
|
var data46, UnifiedPaymentVerifier_default2;
|
|
29325
29818
|
var init_UnifiedPaymentVerifier2 = __esm({
|
|
29326
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29819
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/UnifiedPaymentVerifier.js"() {
|
|
29327
29820
|
data46 = [
|
|
29328
29821
|
{
|
|
29329
29822
|
"inputs": [
|
|
@@ -29692,10 +30185,10 @@ var init_UnifiedPaymentVerifier2 = __esm({
|
|
|
29692
30185
|
}
|
|
29693
30186
|
});
|
|
29694
30187
|
|
|
29695
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30188
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/UnifiedPaymentVerifierV2.js
|
|
29696
30189
|
var data47, UnifiedPaymentVerifierV2_default2;
|
|
29697
30190
|
var init_UnifiedPaymentVerifierV22 = __esm({
|
|
29698
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30191
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/UnifiedPaymentVerifierV2.js"() {
|
|
29699
30192
|
data47 = [
|
|
29700
30193
|
{
|
|
29701
30194
|
"inputs": [
|
|
@@ -30064,10 +30557,10 @@ var init_UnifiedPaymentVerifierV22 = __esm({
|
|
|
30064
30557
|
}
|
|
30065
30558
|
});
|
|
30066
30559
|
|
|
30067
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30560
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/WhitelistPreIntentHook.js
|
|
30068
30561
|
var data48, WhitelistPreIntentHook_default2;
|
|
30069
30562
|
var init_WhitelistPreIntentHook2 = __esm({
|
|
30070
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30563
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/abis/baseStaging/WhitelistPreIntentHook.js"() {
|
|
30071
30564
|
data48 = [
|
|
30072
30565
|
{
|
|
30073
30566
|
"inputs": [
|
|
@@ -30413,7 +30906,7 @@ var init_WhitelistPreIntentHook2 = __esm({
|
|
|
30413
30906
|
}
|
|
30414
30907
|
});
|
|
30415
30908
|
|
|
30416
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30909
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging.mjs
|
|
30417
30910
|
var baseStaging_exports = {};
|
|
30418
30911
|
__export(baseStaging_exports, {
|
|
30419
30912
|
AcrossBridgeHook: () => AcrossBridgeHook_default2,
|
|
@@ -30441,7 +30934,7 @@ __export(baseStaging_exports, {
|
|
|
30441
30934
|
WhitelistPreIntentHook: () => WhitelistPreIntentHook_default2
|
|
30442
30935
|
});
|
|
30443
30936
|
var init_baseStaging2 = __esm({
|
|
30444
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30937
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging.mjs"() {
|
|
30445
30938
|
init_AcrossBridgeHook2();
|
|
30446
30939
|
init_AcrossBridgeHookV22();
|
|
30447
30940
|
init_ChainlinkOracleAdapter2();
|
|
@@ -30468,10 +30961,10 @@ var init_baseStaging2 = __esm({
|
|
|
30468
30961
|
}
|
|
30469
30962
|
});
|
|
30470
30963
|
|
|
30471
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30964
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/Escrow.json
|
|
30472
30965
|
var Escrow_default3;
|
|
30473
30966
|
var init_Escrow3 = __esm({
|
|
30474
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30967
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/Escrow.json"() {
|
|
30475
30968
|
Escrow_default3 = [
|
|
30476
30969
|
{
|
|
30477
30970
|
inputs: [
|
|
@@ -32685,10 +33178,10 @@ var init_Escrow3 = __esm({
|
|
|
32685
33178
|
}
|
|
32686
33179
|
});
|
|
32687
33180
|
|
|
32688
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
33181
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/Orchestrator.json
|
|
32689
33182
|
var Orchestrator_default3;
|
|
32690
33183
|
var init_Orchestrator3 = __esm({
|
|
32691
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
33184
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/Orchestrator.json"() {
|
|
32692
33185
|
Orchestrator_default3 = [
|
|
32693
33186
|
{
|
|
32694
33187
|
inputs: [
|
|
@@ -33837,10 +34330,10 @@ var init_Orchestrator3 = __esm({
|
|
|
33837
34330
|
}
|
|
33838
34331
|
});
|
|
33839
34332
|
|
|
33840
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
34333
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/ProtocolViewer.json
|
|
33841
34334
|
var ProtocolViewer_default3;
|
|
33842
34335
|
var init_ProtocolViewer3 = __esm({
|
|
33843
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
34336
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/ProtocolViewer.json"() {
|
|
33844
34337
|
ProtocolViewer_default3 = [
|
|
33845
34338
|
{
|
|
33846
34339
|
inputs: [
|
|
@@ -35061,10 +35554,10 @@ var init_ProtocolViewer3 = __esm({
|
|
|
35061
35554
|
}
|
|
35062
35555
|
});
|
|
35063
35556
|
|
|
35064
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
35557
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/UnifiedPaymentVerifier.json
|
|
35065
35558
|
var UnifiedPaymentVerifier_default3;
|
|
35066
35559
|
var init_UnifiedPaymentVerifier3 = __esm({
|
|
35067
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
35560
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/base/UnifiedPaymentVerifier.json"() {
|
|
35068
35561
|
UnifiedPaymentVerifier_default3 = [
|
|
35069
35562
|
{
|
|
35070
35563
|
inputs: [
|
|
@@ -35432,10 +35925,10 @@ var init_UnifiedPaymentVerifier3 = __esm({
|
|
|
35432
35925
|
}
|
|
35433
35926
|
});
|
|
35434
35927
|
|
|
35435
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
35928
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/Escrow.json
|
|
35436
35929
|
var Escrow_default4;
|
|
35437
35930
|
var init_Escrow4 = __esm({
|
|
35438
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
35931
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/Escrow.json"() {
|
|
35439
35932
|
Escrow_default4 = [
|
|
35440
35933
|
{
|
|
35441
35934
|
inputs: [
|
|
@@ -37649,10 +38142,10 @@ var init_Escrow4 = __esm({
|
|
|
37649
38142
|
}
|
|
37650
38143
|
});
|
|
37651
38144
|
|
|
37652
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
38145
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/Orchestrator.json
|
|
37653
38146
|
var Orchestrator_default4;
|
|
37654
38147
|
var init_Orchestrator4 = __esm({
|
|
37655
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
38148
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/Orchestrator.json"() {
|
|
37656
38149
|
Orchestrator_default4 = [
|
|
37657
38150
|
{
|
|
37658
38151
|
inputs: [
|
|
@@ -38801,10 +39294,10 @@ var init_Orchestrator4 = __esm({
|
|
|
38801
39294
|
}
|
|
38802
39295
|
});
|
|
38803
39296
|
|
|
38804
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
39297
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/UnifiedPaymentVerifier.json
|
|
38805
39298
|
var UnifiedPaymentVerifier_default4;
|
|
38806
39299
|
var init_UnifiedPaymentVerifier4 = __esm({
|
|
38807
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
39300
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/UnifiedPaymentVerifier.json"() {
|
|
38808
39301
|
UnifiedPaymentVerifier_default4 = [
|
|
38809
39302
|
{
|
|
38810
39303
|
inputs: [
|
|
@@ -39172,10 +39665,10 @@ var init_UnifiedPaymentVerifier4 = __esm({
|
|
|
39172
39665
|
}
|
|
39173
39666
|
});
|
|
39174
39667
|
|
|
39175
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
39668
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/ProtocolViewer.json
|
|
39176
39669
|
var ProtocolViewer_default4;
|
|
39177
39670
|
var init_ProtocolViewer4 = __esm({
|
|
39178
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
39671
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/abis/baseStaging/ProtocolViewer.json"() {
|
|
39179
39672
|
ProtocolViewer_default4 = [
|
|
39180
39673
|
{
|
|
39181
39674
|
inputs: [
|
|
@@ -40396,10 +40889,10 @@ var init_ProtocolViewer4 = __esm({
|
|
|
40396
40889
|
}
|
|
40397
40890
|
});
|
|
40398
40891
|
|
|
40399
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40892
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/constants/base.js
|
|
40400
40893
|
var data49, base_default2;
|
|
40401
40894
|
var init_base3 = __esm({
|
|
40402
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40895
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/constants/base.js"() {
|
|
40403
40896
|
data49 = {
|
|
40404
40897
|
"INTENT_EXPIRATION_PERIOD": "21600",
|
|
40405
40898
|
"PROTOCOL_TAKER_FEE": "0",
|
|
@@ -40415,10 +40908,10 @@ var init_base3 = __esm({
|
|
|
40415
40908
|
}
|
|
40416
40909
|
});
|
|
40417
40910
|
|
|
40418
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40911
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/constants/baseStaging.js
|
|
40419
40912
|
var data50, baseStaging_default2;
|
|
40420
40913
|
var init_baseStaging3 = __esm({
|
|
40421
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40914
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/constants/baseStaging.js"() {
|
|
40422
40915
|
data50 = {
|
|
40423
40916
|
"INTENT_EXPIRATION_PERIOD": "3600",
|
|
40424
40917
|
"PROTOCOL_TAKER_FEE": "0",
|
|
@@ -40434,14 +40927,14 @@ var init_baseStaging3 = __esm({
|
|
|
40434
40927
|
}
|
|
40435
40928
|
});
|
|
40436
40929
|
|
|
40437
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40930
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/base.json
|
|
40438
40931
|
var base_default3;
|
|
40439
40932
|
var init_base4 = __esm({
|
|
40440
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40933
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/base.json"() {
|
|
40441
40934
|
base_default3 = {
|
|
40442
40935
|
network: "base",
|
|
40443
40936
|
chainId: "8453",
|
|
40444
|
-
generatedAt: "2026-
|
|
40937
|
+
generatedAt: "2026-07-15T15:12:36.002Z",
|
|
40445
40938
|
methods: {
|
|
40446
40939
|
venmo: {
|
|
40447
40940
|
paymentMethodHash: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
@@ -40544,30 +41037,6 @@ var init_base4 = __esm({
|
|
|
40544
41037
|
timestampBuffer: 30,
|
|
40545
41038
|
providerHashes: []
|
|
40546
41039
|
},
|
|
40547
|
-
"zelle-citi": {
|
|
40548
|
-
paymentMethodHash: "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
40549
|
-
currencies: [
|
|
40550
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40551
|
-
],
|
|
40552
|
-
timestampBuffer: 30,
|
|
40553
|
-
providerHashes: []
|
|
40554
|
-
},
|
|
40555
|
-
"zelle-chase": {
|
|
40556
|
-
paymentMethodHash: "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
40557
|
-
currencies: [
|
|
40558
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40559
|
-
],
|
|
40560
|
-
timestampBuffer: 30,
|
|
40561
|
-
providerHashes: []
|
|
40562
|
-
},
|
|
40563
|
-
"zelle-bofa": {
|
|
40564
|
-
paymentMethodHash: "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
40565
|
-
currencies: [
|
|
40566
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40567
|
-
],
|
|
40568
|
-
timestampBuffer: 30,
|
|
40569
|
-
providerHashes: []
|
|
40570
|
-
},
|
|
40571
41040
|
paypal: {
|
|
40572
41041
|
paymentMethodHash: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
40573
41042
|
currencies: [
|
|
@@ -40611,13 +41080,13 @@ var init_base4 = __esm({
|
|
|
40611
41080
|
}
|
|
40612
41081
|
});
|
|
40613
41082
|
|
|
40614
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
41083
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/baseStaging.json
|
|
40615
41084
|
var baseStaging_default3;
|
|
40616
41085
|
var init_baseStaging4 = __esm({
|
|
40617
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
41086
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/baseStaging.json"() {
|
|
40618
41087
|
baseStaging_default3 = {
|
|
40619
41088
|
network: "base_staging",
|
|
40620
|
-
generatedAt: "2026-
|
|
41089
|
+
generatedAt: "2026-07-15T15:12:36.004Z",
|
|
40621
41090
|
methods: {
|
|
40622
41091
|
venmo: {
|
|
40623
41092
|
paymentMethodHash: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
@@ -40720,30 +41189,6 @@ var init_baseStaging4 = __esm({
|
|
|
40720
41189
|
timestampBuffer: 30,
|
|
40721
41190
|
providerHashes: []
|
|
40722
41191
|
},
|
|
40723
|
-
"zelle-citi": {
|
|
40724
|
-
paymentMethodHash: "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
40725
|
-
currencies: [
|
|
40726
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40727
|
-
],
|
|
40728
|
-
timestampBuffer: 30,
|
|
40729
|
-
providerHashes: []
|
|
40730
|
-
},
|
|
40731
|
-
"zelle-chase": {
|
|
40732
|
-
paymentMethodHash: "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
40733
|
-
currencies: [
|
|
40734
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40735
|
-
],
|
|
40736
|
-
timestampBuffer: 30,
|
|
40737
|
-
providerHashes: []
|
|
40738
|
-
},
|
|
40739
|
-
"zelle-bofa": {
|
|
40740
|
-
paymentMethodHash: "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
40741
|
-
currencies: [
|
|
40742
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40743
|
-
],
|
|
40744
|
-
timestampBuffer: 30,
|
|
40745
|
-
providerHashes: []
|
|
40746
|
-
},
|
|
40747
41192
|
paypal: {
|
|
40748
41193
|
paymentMethodHash: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
40749
41194
|
currencies: [
|
|
@@ -41046,7 +41491,11 @@ function getContracts(chainId, env = "production") {
|
|
|
41046
41491
|
function getPaymentMethodsCatalog(_chainId, env = "production") {
|
|
41047
41492
|
const src = env === "staging" ? baseStagingPaymentMethods : basePaymentMethods;
|
|
41048
41493
|
const methods = src?.methods ?? {};
|
|
41049
|
-
return
|
|
41494
|
+
return Object.fromEntries(
|
|
41495
|
+
Object.entries(methods).filter(
|
|
41496
|
+
([name, entry]) => matchesPaymentMethodNameAndHash(name, entry.paymentMethodHash)
|
|
41497
|
+
)
|
|
41498
|
+
);
|
|
41050
41499
|
}
|
|
41051
41500
|
function getGatingServiceAddress(_chainId, _env = "production") {
|
|
41052
41501
|
return "0x396D31055Db28C0C6f36e8b36f18FE7227248a97";
|
|
@@ -41074,6 +41523,7 @@ function getRateManagerContracts(chainId, env = "production") {
|
|
|
41074
41523
|
var ZERO_ADDRESS2, baseAddresses, baseStagingAddresses, basePaymentMethods, baseStagingPaymentMethods, baseConstants, baseStagingConstants;
|
|
41075
41524
|
var init_contracts = __esm({
|
|
41076
41525
|
"src/contracts.ts"() {
|
|
41526
|
+
init_paymentMethodHashes();
|
|
41077
41527
|
init_base();
|
|
41078
41528
|
init_baseStaging();
|
|
41079
41529
|
init_base2();
|
|
@@ -41121,96 +41571,14 @@ var init_bytes32 = __esm({
|
|
|
41121
41571
|
"src/utils/bytes32.ts"() {
|
|
41122
41572
|
}
|
|
41123
41573
|
});
|
|
41124
|
-
var currencyKeccak256;
|
|
41125
|
-
var init_currencyKeccak256 = __esm({
|
|
41126
|
-
"src/utils/currencyKeccak256.ts"() {
|
|
41127
|
-
currencyKeccak256 = (inputString) => {
|
|
41128
|
-
const bytes = new TextEncoder().encode(inputString);
|
|
41129
|
-
return viem.keccak256(bytes);
|
|
41130
|
-
};
|
|
41131
|
-
}
|
|
41132
|
-
});
|
|
41133
|
-
|
|
41134
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.2.4_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/lookups.json
|
|
41135
|
-
var lookups_default;
|
|
41136
|
-
var init_lookups = __esm({
|
|
41137
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.2.4_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/paymentMethods/lookups.json"() {
|
|
41138
|
-
lookups_default = {
|
|
41139
|
-
generatedAt: "2026-06-23T05:27:02.163Z",
|
|
41140
|
-
nameToHash: {
|
|
41141
|
-
venmo: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
41142
|
-
revolut: "0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d",
|
|
41143
|
-
cashapp: "0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d",
|
|
41144
|
-
wise: "0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5",
|
|
41145
|
-
mercadopago: "0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483",
|
|
41146
|
-
zelle: "0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3",
|
|
41147
|
-
"zelle-citi": "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
41148
|
-
"zelle-chase": "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
41149
|
-
"zelle-bofa": "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
41150
|
-
paypal: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
41151
|
-
monzo: "0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c",
|
|
41152
|
-
alipay: "0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff",
|
|
41153
|
-
chime: "0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb"
|
|
41154
|
-
},
|
|
41155
|
-
hashToName: {
|
|
41156
|
-
"0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268": "venmo",
|
|
41157
|
-
"0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d": "revolut",
|
|
41158
|
-
"0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d": "cashapp",
|
|
41159
|
-
"0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5": "wise",
|
|
41160
|
-
"0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483": "mercadopago",
|
|
41161
|
-
"0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3": "zelle",
|
|
41162
|
-
"0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d": "zelle-citi",
|
|
41163
|
-
"0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e": "zelle-chase",
|
|
41164
|
-
"0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5": "zelle-bofa",
|
|
41165
|
-
"0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f": "paypal",
|
|
41166
|
-
"0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c": "monzo",
|
|
41167
|
-
"0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff": "alipay",
|
|
41168
|
-
"0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb": "chime",
|
|
41169
|
-
"0xd9ff4fd6b39a3e3dd43c41d05662a5547de4a878bc97a65bcb352ade493cdc6b": "n26",
|
|
41170
|
-
"0xaea63ef983458674f54ee50cdaa7b09d80a5c6c03ed505f51c90b0f2b54abb01": "luxon"
|
|
41171
|
-
},
|
|
41172
|
-
zelleVariantHashes: [
|
|
41173
|
-
"0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
41174
|
-
"0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
41175
|
-
"0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5"
|
|
41176
|
-
],
|
|
41177
|
-
zelleUnspecifiedHash: "0x7a656c6c65000000000000000000000000000000000000000000000000000000"
|
|
41178
|
-
};
|
|
41179
|
-
}
|
|
41180
|
-
});
|
|
41181
|
-
|
|
41182
|
-
// src/utils/paymentMethodHashes.ts
|
|
41183
|
-
var GENERIC_ZELLE_PAYMENT_METHOD_HASH, METHOD_NAME_TO_HASH, HASH_TO_METHOD_NAME;
|
|
41184
|
-
var init_paymentMethodHashes = __esm({
|
|
41185
|
-
"src/utils/paymentMethodHashes.ts"() {
|
|
41186
|
-
init_lookups();
|
|
41187
|
-
GENERIC_ZELLE_PAYMENT_METHOD_HASH = lookups_default.nameToHash.zelle ?? "0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3";
|
|
41188
|
-
METHOD_NAME_TO_HASH = {
|
|
41189
|
-
...lookups_default.nameToHash,
|
|
41190
|
-
zelle: GENERIC_ZELLE_PAYMENT_METHOD_HASH
|
|
41191
|
-
};
|
|
41192
|
-
HASH_TO_METHOD_NAME = Object.entries(
|
|
41193
|
-
lookups_default.hashToName
|
|
41194
|
-
).reduce(
|
|
41195
|
-
(acc, [hash, name]) => {
|
|
41196
|
-
acc[hash.toLowerCase()] = name;
|
|
41197
|
-
return acc;
|
|
41198
|
-
},
|
|
41199
|
-
{
|
|
41200
|
-
[GENERIC_ZELLE_PAYMENT_METHOD_HASH.toLowerCase()]: "zelle",
|
|
41201
|
-
[lookups_default.zelleUnspecifiedHash.toLowerCase()]: "zelle"
|
|
41202
|
-
}
|
|
41203
|
-
);
|
|
41204
|
-
}
|
|
41205
|
-
});
|
|
41206
41574
|
|
|
41207
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
41575
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/paymentMethods/baseStaging.js
|
|
41208
41576
|
var data51, baseStaging_default4;
|
|
41209
41577
|
var init_baseStaging5 = __esm({
|
|
41210
|
-
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
41578
|
+
"../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/_esm/paymentMethods/baseStaging.js"() {
|
|
41211
41579
|
data51 = {
|
|
41212
41580
|
"network": "base_staging",
|
|
41213
|
-
"generatedAt": "2026-
|
|
41581
|
+
"generatedAt": "2026-07-15T15:12:32.177Z",
|
|
41214
41582
|
"methods": {
|
|
41215
41583
|
"venmo": {
|
|
41216
41584
|
"paymentMethodHash": "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
@@ -41313,30 +41681,6 @@ var init_baseStaging5 = __esm({
|
|
|
41313
41681
|
"timestampBuffer": 30,
|
|
41314
41682
|
"providerHashes": []
|
|
41315
41683
|
},
|
|
41316
|
-
"zelle-citi": {
|
|
41317
|
-
"paymentMethodHash": "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
41318
|
-
"currencies": [
|
|
41319
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
41320
|
-
],
|
|
41321
|
-
"timestampBuffer": 30,
|
|
41322
|
-
"providerHashes": []
|
|
41323
|
-
},
|
|
41324
|
-
"zelle-chase": {
|
|
41325
|
-
"paymentMethodHash": "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
41326
|
-
"currencies": [
|
|
41327
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
41328
|
-
],
|
|
41329
|
-
"timestampBuffer": 30,
|
|
41330
|
-
"providerHashes": []
|
|
41331
|
-
},
|
|
41332
|
-
"zelle-bofa": {
|
|
41333
|
-
"paymentMethodHash": "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
41334
|
-
"currencies": [
|
|
41335
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
41336
|
-
],
|
|
41337
|
-
"timestampBuffer": 30,
|
|
41338
|
-
"providerHashes": []
|
|
41339
|
-
},
|
|
41340
41684
|
"paypal": {
|
|
41341
41685
|
"paymentMethodHash": "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
41342
41686
|
"currencies": [
|
|
@@ -41384,21 +41728,29 @@ var init_baseStaging5 = __esm({
|
|
|
41384
41728
|
// src/utils/paymentResolution.ts
|
|
41385
41729
|
function getPaymentMethodMap(env, _network) {
|
|
41386
41730
|
if (env === "staging") {
|
|
41387
|
-
const m =
|
|
41731
|
+
const m = Object.fromEntries(
|
|
41732
|
+
Object.entries(baseStaging_default4?.methods ?? {}).filter(
|
|
41733
|
+
([name, entry]) => matchesPaymentMethodNameAndHash(name, entry?.paymentMethodHash ?? "")
|
|
41734
|
+
)
|
|
41735
|
+
);
|
|
41388
41736
|
return m && Object.keys(m).length ? m : null;
|
|
41389
41737
|
}
|
|
41390
41738
|
return null;
|
|
41391
41739
|
}
|
|
41392
41740
|
function resolvePaymentMethodHash(nameOrBytes, opts = {}) {
|
|
41393
41741
|
const { env = "production", network = "base" } = opts;
|
|
41394
|
-
if (nameOrBytes.startsWith("0x"))
|
|
41395
|
-
|
|
41396
|
-
|
|
41397
|
-
|
|
41398
|
-
|
|
41399
|
-
|
|
41742
|
+
if (nameOrBytes.startsWith("0x")) {
|
|
41743
|
+
const hash = ensureBytes32(nameOrBytes);
|
|
41744
|
+
if (!SUPPORTED_PAYMENT_METHOD_HASHES.has(hash.toLowerCase())) {
|
|
41745
|
+
throw new Error(`Unsupported payment method hash: ${hash}`);
|
|
41746
|
+
}
|
|
41747
|
+
return hash;
|
|
41400
41748
|
}
|
|
41401
|
-
|
|
41749
|
+
const key = nameOrBytes.toLowerCase();
|
|
41750
|
+
const mapping = getPaymentMethodMap(env);
|
|
41751
|
+
const mappedHash = mapping?.[key]?.paymentMethodHash ?? METHOD_NAME_TO_HASH[key];
|
|
41752
|
+
if (mappedHash) return mappedHash;
|
|
41753
|
+
throw new Error(`Unknown processorName: ${nameOrBytes}`);
|
|
41402
41754
|
}
|
|
41403
41755
|
function resolveFiatCurrencyBytes32(codeOrBytes) {
|
|
41404
41756
|
if (codeOrBytes.startsWith("0x")) return ensureBytes32(codeOrBytes);
|
|
@@ -41409,11 +41761,23 @@ function resolvePaymentMethodHashFromCatalog(processorName, catalog) {
|
|
|
41409
41761
|
throw new Error("processorName is required to resolve paymentMethodHash");
|
|
41410
41762
|
}
|
|
41411
41763
|
if (processorName.startsWith("0x")) {
|
|
41412
|
-
|
|
41764
|
+
const hash = ensureBytes32(processorName);
|
|
41765
|
+
if (!SUPPORTED_PAYMENT_METHOD_HASHES.has(hash.toLowerCase())) {
|
|
41766
|
+
throw new Error(`Unsupported payment method hash: ${hash}`);
|
|
41767
|
+
}
|
|
41768
|
+
return hash;
|
|
41413
41769
|
}
|
|
41414
41770
|
const key = processorName.toLowerCase();
|
|
41771
|
+
if (!METHOD_NAME_TO_HASH[key]) {
|
|
41772
|
+
throw new Error(`Unknown processorName: ${processorName}`);
|
|
41773
|
+
}
|
|
41415
41774
|
const entry = catalog?.[key];
|
|
41416
|
-
if (entry?.paymentMethodHash)
|
|
41775
|
+
if (entry?.paymentMethodHash) {
|
|
41776
|
+
if (!matchesPaymentMethodNameAndHash(key, entry.paymentMethodHash)) {
|
|
41777
|
+
throw new Error(`Unsupported payment method hash for processorName: ${processorName}`);
|
|
41778
|
+
}
|
|
41779
|
+
return entry.paymentMethodHash;
|
|
41780
|
+
}
|
|
41417
41781
|
const fallbackHash = METHOD_NAME_TO_HASH[key];
|
|
41418
41782
|
if (fallbackHash) return fallbackHash;
|
|
41419
41783
|
const available = Object.keys(catalog || {}).sort().join(", ");
|
|
@@ -41425,6 +41789,7 @@ function resolvePaymentMethodNameFromHash(hash, catalog) {
|
|
|
41425
41789
|
if (!hash) return void 0;
|
|
41426
41790
|
const target = ensureBytes32(hash);
|
|
41427
41791
|
for (const [name, entry] of Object.entries(catalog || {})) {
|
|
41792
|
+
if (!matchesPaymentMethodNameAndHash(name, entry?.paymentMethodHash ?? "")) continue;
|
|
41428
41793
|
if (entry?.paymentMethodHash?.toLowerCase() === target.toLowerCase()) return name;
|
|
41429
41794
|
}
|
|
41430
41795
|
return HASH_TO_METHOD_NAME[target.toLowerCase()];
|
|
@@ -41438,393 +41803,6 @@ var init_paymentResolution = __esm({
|
|
|
41438
41803
|
}
|
|
41439
41804
|
});
|
|
41440
41805
|
|
|
41441
|
-
// src/utils/currency.ts
|
|
41442
|
-
var currency_exports = {};
|
|
41443
|
-
__export(currency_exports, {
|
|
41444
|
-
Currency: () => exports.Currency,
|
|
41445
|
-
currencyInfo: () => exports.currencyInfo,
|
|
41446
|
-
getCurrencyCodeFromHash: () => getCurrencyCodeFromHash,
|
|
41447
|
-
getCurrencyInfoFromCountryCode: () => getCurrencyInfoFromCountryCode,
|
|
41448
|
-
getCurrencyInfoFromHash: () => getCurrencyInfoFromHash,
|
|
41449
|
-
isSupportedCurrencyHash: () => isSupportedCurrencyHash,
|
|
41450
|
-
mapConversionRatesToOnchain: () => mapConversionRatesToOnchain,
|
|
41451
|
-
mapConversionRatesToOnchainMinRate: () => mapConversionRatesToOnchainMinRate
|
|
41452
|
-
});
|
|
41453
|
-
function mapConversionRatesToOnchain(groups, expectedGroups) {
|
|
41454
|
-
if (!Array.isArray(groups) || !Array.isArray(groups[0])) {
|
|
41455
|
-
throw new Error("conversionRates must be a nested array per processor");
|
|
41456
|
-
}
|
|
41457
|
-
if (typeof expectedGroups === "number" && groups.length !== expectedGroups) {
|
|
41458
|
-
throw new Error(
|
|
41459
|
-
`conversionRates length (${groups.length}) must match processorNames length (${expectedGroups})`
|
|
41460
|
-
);
|
|
41461
|
-
}
|
|
41462
|
-
return groups.map(
|
|
41463
|
-
(group) => group.map((r) => {
|
|
41464
|
-
const info = exports.currencyInfo[r.currency];
|
|
41465
|
-
if (!info?.currencyCodeHash) throw new Error("Invalid currency");
|
|
41466
|
-
return {
|
|
41467
|
-
code: info.currencyCodeHash,
|
|
41468
|
-
conversionRate: BigInt(r.conversionRate)
|
|
41469
|
-
};
|
|
41470
|
-
})
|
|
41471
|
-
);
|
|
41472
|
-
}
|
|
41473
|
-
function mapConversionRatesToOnchainMinRate(groups, expectedGroups) {
|
|
41474
|
-
if (!Array.isArray(groups) || !Array.isArray(groups[0])) {
|
|
41475
|
-
throw new Error("conversionRates must be a nested array per payment method");
|
|
41476
|
-
}
|
|
41477
|
-
if (typeof expectedGroups === "number" && groups.length !== expectedGroups) {
|
|
41478
|
-
throw new Error(
|
|
41479
|
-
`conversionRates length (${groups.length}) must match processorNames length (${expectedGroups})`
|
|
41480
|
-
);
|
|
41481
|
-
}
|
|
41482
|
-
return groups.map(
|
|
41483
|
-
(group) => group.map((r) => {
|
|
41484
|
-
const info = exports.currencyInfo[r.currency];
|
|
41485
|
-
const hash = info?.currencyCodeHash;
|
|
41486
|
-
if (!hash) throw new Error(`Invalid currency: ${r.currency}`);
|
|
41487
|
-
return { code: hash, minConversionRate: BigInt(r.conversionRate) };
|
|
41488
|
-
})
|
|
41489
|
-
);
|
|
41490
|
-
}
|
|
41491
|
-
function getCurrencyInfoFromHash(hash) {
|
|
41492
|
-
if (!hash) return void 0;
|
|
41493
|
-
const h = hash.toLowerCase();
|
|
41494
|
-
for (const key of Object.keys(exports.currencyInfo)) {
|
|
41495
|
-
const info = exports.currencyInfo[key];
|
|
41496
|
-
if (info?.currencyCodeHash?.toLowerCase() === h) return info;
|
|
41497
|
-
}
|
|
41498
|
-
return void 0;
|
|
41499
|
-
}
|
|
41500
|
-
function getCurrencyInfoFromCountryCode(code) {
|
|
41501
|
-
if (!code) return void 0;
|
|
41502
|
-
const upper = code.toUpperCase();
|
|
41503
|
-
return exports.currencyInfo[upper];
|
|
41504
|
-
}
|
|
41505
|
-
function getCurrencyCodeFromHash(hash) {
|
|
41506
|
-
return getCurrencyInfoFromHash(hash)?.currencyCode;
|
|
41507
|
-
}
|
|
41508
|
-
function isSupportedCurrencyHash(hash) {
|
|
41509
|
-
return Boolean(getCurrencyInfoFromHash(hash));
|
|
41510
|
-
}
|
|
41511
|
-
exports.Currency = void 0; exports.currencyInfo = void 0;
|
|
41512
|
-
var init_currency = __esm({
|
|
41513
|
-
"src/utils/currency.ts"() {
|
|
41514
|
-
init_currencyKeccak256();
|
|
41515
|
-
exports.Currency = {
|
|
41516
|
-
AED: "AED",
|
|
41517
|
-
ARS: "ARS",
|
|
41518
|
-
AUD: "AUD",
|
|
41519
|
-
BRL: "BRL",
|
|
41520
|
-
CAD: "CAD",
|
|
41521
|
-
CHF: "CHF",
|
|
41522
|
-
CNY: "CNY",
|
|
41523
|
-
CZK: "CZK",
|
|
41524
|
-
DKK: "DKK",
|
|
41525
|
-
EUR: "EUR",
|
|
41526
|
-
GBP: "GBP",
|
|
41527
|
-
HKD: "HKD",
|
|
41528
|
-
HUF: "HUF",
|
|
41529
|
-
IDR: "IDR",
|
|
41530
|
-
ILS: "ILS",
|
|
41531
|
-
INR: "INR",
|
|
41532
|
-
JPY: "JPY",
|
|
41533
|
-
KES: "KES",
|
|
41534
|
-
MXN: "MXN",
|
|
41535
|
-
MYR: "MYR",
|
|
41536
|
-
NOK: "NOK",
|
|
41537
|
-
NZD: "NZD",
|
|
41538
|
-
PHP: "PHP",
|
|
41539
|
-
PLN: "PLN",
|
|
41540
|
-
RON: "RON",
|
|
41541
|
-
SAR: "SAR",
|
|
41542
|
-
SEK: "SEK",
|
|
41543
|
-
SGD: "SGD",
|
|
41544
|
-
THB: "THB",
|
|
41545
|
-
TRY: "TRY",
|
|
41546
|
-
UGX: "UGX",
|
|
41547
|
-
USD: "USD",
|
|
41548
|
-
VND: "VND",
|
|
41549
|
-
ZAR: "ZAR"
|
|
41550
|
-
};
|
|
41551
|
-
exports.currencyInfo = {
|
|
41552
|
-
AED: {
|
|
41553
|
-
currency: "AED",
|
|
41554
|
-
currencyCode: "AED",
|
|
41555
|
-
currencyName: "United Arab Emirates Dirham",
|
|
41556
|
-
currencyCodeHash: currencyKeccak256("AED"),
|
|
41557
|
-
currencySymbol: "\u062F.\u0625",
|
|
41558
|
-
countryCode: "ae"
|
|
41559
|
-
},
|
|
41560
|
-
ARS: {
|
|
41561
|
-
currency: "ARS",
|
|
41562
|
-
currencyCode: "ARS",
|
|
41563
|
-
currencyName: "Argentine Peso",
|
|
41564
|
-
currencyCodeHash: currencyKeccak256("ARS"),
|
|
41565
|
-
currencySymbol: "$",
|
|
41566
|
-
countryCode: "ar"
|
|
41567
|
-
},
|
|
41568
|
-
AUD: {
|
|
41569
|
-
currency: "AUD",
|
|
41570
|
-
currencyCode: "AUD",
|
|
41571
|
-
currencyName: "Australian Dollar",
|
|
41572
|
-
currencyCodeHash: currencyKeccak256("AUD"),
|
|
41573
|
-
currencySymbol: "A$",
|
|
41574
|
-
countryCode: "au"
|
|
41575
|
-
},
|
|
41576
|
-
BRL: {
|
|
41577
|
-
currency: "BRL",
|
|
41578
|
-
currencyCode: "BRL",
|
|
41579
|
-
currencyName: "Brazilian Real",
|
|
41580
|
-
currencyCodeHash: currencyKeccak256("BRL"),
|
|
41581
|
-
currencySymbol: "R$",
|
|
41582
|
-
countryCode: "br"
|
|
41583
|
-
},
|
|
41584
|
-
CAD: {
|
|
41585
|
-
currency: "CAD",
|
|
41586
|
-
currencyCode: "CAD",
|
|
41587
|
-
currencyName: "Canadian Dollar",
|
|
41588
|
-
currencyCodeHash: currencyKeccak256("CAD"),
|
|
41589
|
-
currencySymbol: "C$",
|
|
41590
|
-
countryCode: "ca"
|
|
41591
|
-
},
|
|
41592
|
-
CHF: {
|
|
41593
|
-
currency: "CHF",
|
|
41594
|
-
currencyCode: "CHF",
|
|
41595
|
-
currencyName: "Swiss Franc",
|
|
41596
|
-
currencyCodeHash: currencyKeccak256("CHF"),
|
|
41597
|
-
currencySymbol: "Fr",
|
|
41598
|
-
countryCode: "ch"
|
|
41599
|
-
},
|
|
41600
|
-
CNY: {
|
|
41601
|
-
currency: "CNY",
|
|
41602
|
-
currencyCode: "CNY",
|
|
41603
|
-
currencyName: "Chinese Yuan",
|
|
41604
|
-
currencyCodeHash: currencyKeccak256("CNY"),
|
|
41605
|
-
currencySymbol: "\xA5",
|
|
41606
|
-
countryCode: "cn"
|
|
41607
|
-
},
|
|
41608
|
-
CZK: {
|
|
41609
|
-
currency: "CZK",
|
|
41610
|
-
currencyCode: "CZK",
|
|
41611
|
-
currencyName: "Czech Koruna",
|
|
41612
|
-
currencyCodeHash: currencyKeccak256("CZK"),
|
|
41613
|
-
currencySymbol: "K\u010D",
|
|
41614
|
-
countryCode: "cz"
|
|
41615
|
-
},
|
|
41616
|
-
DKK: {
|
|
41617
|
-
currency: "DKK",
|
|
41618
|
-
currencyCode: "DKK",
|
|
41619
|
-
currencyName: "Danish Krone",
|
|
41620
|
-
currencyCodeHash: currencyKeccak256("DKK"),
|
|
41621
|
-
currencySymbol: "kr",
|
|
41622
|
-
countryCode: "dk"
|
|
41623
|
-
},
|
|
41624
|
-
EUR: {
|
|
41625
|
-
currency: "EUR",
|
|
41626
|
-
currencyCode: "EUR",
|
|
41627
|
-
currencyName: "Euro",
|
|
41628
|
-
currencyCodeHash: currencyKeccak256("EUR"),
|
|
41629
|
-
currencySymbol: "\u20AC",
|
|
41630
|
-
countryCode: "eu"
|
|
41631
|
-
},
|
|
41632
|
-
GBP: {
|
|
41633
|
-
currency: "GBP",
|
|
41634
|
-
currencyCode: "GBP",
|
|
41635
|
-
currencyName: "British Pound",
|
|
41636
|
-
currencyCodeHash: currencyKeccak256("GBP"),
|
|
41637
|
-
currencySymbol: "\xA3",
|
|
41638
|
-
countryCode: "gb"
|
|
41639
|
-
},
|
|
41640
|
-
HKD: {
|
|
41641
|
-
currency: "HKD",
|
|
41642
|
-
currencyCode: "HKD",
|
|
41643
|
-
currencyName: "Hong Kong Dollar",
|
|
41644
|
-
currencyCodeHash: currencyKeccak256("HKD"),
|
|
41645
|
-
currencySymbol: "HK$",
|
|
41646
|
-
countryCode: "hk"
|
|
41647
|
-
},
|
|
41648
|
-
HUF: {
|
|
41649
|
-
currency: "HUF",
|
|
41650
|
-
currencyCode: "HUF",
|
|
41651
|
-
currencyName: "Hungarian Forint",
|
|
41652
|
-
currencyCodeHash: currencyKeccak256("HUF"),
|
|
41653
|
-
currencySymbol: "Ft",
|
|
41654
|
-
countryCode: "hu"
|
|
41655
|
-
},
|
|
41656
|
-
IDR: {
|
|
41657
|
-
currency: "IDR",
|
|
41658
|
-
currencyCode: "IDR",
|
|
41659
|
-
currencyName: "Indonesian Rupiah",
|
|
41660
|
-
currencyCodeHash: currencyKeccak256("IDR"),
|
|
41661
|
-
currencySymbol: "Rp",
|
|
41662
|
-
countryCode: "id"
|
|
41663
|
-
},
|
|
41664
|
-
ILS: {
|
|
41665
|
-
currency: "ILS",
|
|
41666
|
-
currencyCode: "ILS",
|
|
41667
|
-
currencyName: "Israeli New Shekel",
|
|
41668
|
-
currencyCodeHash: currencyKeccak256("ILS"),
|
|
41669
|
-
currencySymbol: "\u20AA",
|
|
41670
|
-
countryCode: "il"
|
|
41671
|
-
},
|
|
41672
|
-
INR: {
|
|
41673
|
-
currency: "INR",
|
|
41674
|
-
currencyCode: "INR",
|
|
41675
|
-
currencyName: "Indian Rupee",
|
|
41676
|
-
currencyCodeHash: currencyKeccak256("INR"),
|
|
41677
|
-
currencySymbol: "\u20B9",
|
|
41678
|
-
countryCode: "in"
|
|
41679
|
-
},
|
|
41680
|
-
JPY: {
|
|
41681
|
-
currency: "JPY",
|
|
41682
|
-
currencyCode: "JPY",
|
|
41683
|
-
currencyName: "Japanese Yen",
|
|
41684
|
-
currencyCodeHash: currencyKeccak256("JPY"),
|
|
41685
|
-
currencySymbol: "\xA5",
|
|
41686
|
-
countryCode: "jp"
|
|
41687
|
-
},
|
|
41688
|
-
KES: {
|
|
41689
|
-
currency: "KES",
|
|
41690
|
-
currencyCode: "KES",
|
|
41691
|
-
currencyName: "Kenyan Shilling",
|
|
41692
|
-
currencyCodeHash: currencyKeccak256("KES"),
|
|
41693
|
-
currencySymbol: "KSh",
|
|
41694
|
-
countryCode: "ke"
|
|
41695
|
-
},
|
|
41696
|
-
MXN: {
|
|
41697
|
-
currency: "MXN",
|
|
41698
|
-
currencyCode: "MXN",
|
|
41699
|
-
currencyName: "Mexican Peso",
|
|
41700
|
-
currencyCodeHash: currencyKeccak256("MXN"),
|
|
41701
|
-
currencySymbol: "$",
|
|
41702
|
-
countryCode: "mx"
|
|
41703
|
-
},
|
|
41704
|
-
MYR: {
|
|
41705
|
-
currency: "MYR",
|
|
41706
|
-
currencyCode: "MYR",
|
|
41707
|
-
currencyName: "Malaysian Ringgit",
|
|
41708
|
-
currencyCodeHash: currencyKeccak256("MYR"),
|
|
41709
|
-
currencySymbol: "RM",
|
|
41710
|
-
countryCode: "my"
|
|
41711
|
-
},
|
|
41712
|
-
NOK: {
|
|
41713
|
-
currency: "NOK",
|
|
41714
|
-
currencyCode: "NOK",
|
|
41715
|
-
currencyName: "Norwegian Krone",
|
|
41716
|
-
currencyCodeHash: currencyKeccak256("NOK"),
|
|
41717
|
-
currencySymbol: "kr",
|
|
41718
|
-
countryCode: "no"
|
|
41719
|
-
},
|
|
41720
|
-
NZD: {
|
|
41721
|
-
currency: "NZD",
|
|
41722
|
-
currencyCode: "NZD",
|
|
41723
|
-
currencyName: "New Zealand Dollar",
|
|
41724
|
-
currencyCodeHash: currencyKeccak256("NZD"),
|
|
41725
|
-
currencySymbol: "NZ$",
|
|
41726
|
-
countryCode: "nz"
|
|
41727
|
-
},
|
|
41728
|
-
PHP: {
|
|
41729
|
-
currency: "PHP",
|
|
41730
|
-
currencyCode: "PHP",
|
|
41731
|
-
currencyName: "Philippine Peso",
|
|
41732
|
-
currencyCodeHash: currencyKeccak256("PHP"),
|
|
41733
|
-
currencySymbol: "\u20B1",
|
|
41734
|
-
countryCode: "ph"
|
|
41735
|
-
},
|
|
41736
|
-
PLN: {
|
|
41737
|
-
currency: "PLN",
|
|
41738
|
-
currencyCode: "PLN",
|
|
41739
|
-
currencyName: "Polish Z\u0142oty",
|
|
41740
|
-
currencyCodeHash: currencyKeccak256("PLN"),
|
|
41741
|
-
currencySymbol: "z\u0142",
|
|
41742
|
-
countryCode: "pl"
|
|
41743
|
-
},
|
|
41744
|
-
RON: {
|
|
41745
|
-
currency: "RON",
|
|
41746
|
-
currencyCode: "RON",
|
|
41747
|
-
currencyName: "Romanian Leu",
|
|
41748
|
-
currencyCodeHash: currencyKeccak256("RON"),
|
|
41749
|
-
currencySymbol: "lei",
|
|
41750
|
-
countryCode: "ro"
|
|
41751
|
-
},
|
|
41752
|
-
SAR: {
|
|
41753
|
-
currency: "SAR",
|
|
41754
|
-
currencyCode: "SAR",
|
|
41755
|
-
currencyName: "Saudi Riyal",
|
|
41756
|
-
currencyCodeHash: currencyKeccak256("SAR"),
|
|
41757
|
-
currencySymbol: "\uFDFC",
|
|
41758
|
-
countryCode: "sa"
|
|
41759
|
-
},
|
|
41760
|
-
SEK: {
|
|
41761
|
-
currency: "SEK",
|
|
41762
|
-
currencyCode: "SEK",
|
|
41763
|
-
currencyName: "Swedish Krona",
|
|
41764
|
-
currencyCodeHash: currencyKeccak256("SEK"),
|
|
41765
|
-
currencySymbol: "kr",
|
|
41766
|
-
countryCode: "se"
|
|
41767
|
-
},
|
|
41768
|
-
SGD: {
|
|
41769
|
-
currency: "SGD",
|
|
41770
|
-
currencyCode: "SGD",
|
|
41771
|
-
currencyName: "Singapore Dollar",
|
|
41772
|
-
currencyCodeHash: currencyKeccak256("SGD"),
|
|
41773
|
-
currencySymbol: "S$",
|
|
41774
|
-
countryCode: "sg"
|
|
41775
|
-
},
|
|
41776
|
-
THB: {
|
|
41777
|
-
currency: "THB",
|
|
41778
|
-
currencyCode: "THB",
|
|
41779
|
-
currencyName: "Thai Baht",
|
|
41780
|
-
currencyCodeHash: currencyKeccak256("THB"),
|
|
41781
|
-
currencySymbol: "\u0E3F",
|
|
41782
|
-
countryCode: "th"
|
|
41783
|
-
},
|
|
41784
|
-
TRY: {
|
|
41785
|
-
currency: "TRY",
|
|
41786
|
-
currencyCode: "TRY",
|
|
41787
|
-
currencyName: "Turkish Lira",
|
|
41788
|
-
currencyCodeHash: currencyKeccak256("TRY"),
|
|
41789
|
-
currencySymbol: "\u20BA",
|
|
41790
|
-
countryCode: "tr"
|
|
41791
|
-
},
|
|
41792
|
-
UGX: {
|
|
41793
|
-
currency: "UGX",
|
|
41794
|
-
currencyCode: "UGX",
|
|
41795
|
-
currencyName: "Ugandan Shilling",
|
|
41796
|
-
currencyCodeHash: currencyKeccak256("UGX"),
|
|
41797
|
-
currencySymbol: "USh",
|
|
41798
|
-
countryCode: "ug"
|
|
41799
|
-
},
|
|
41800
|
-
USD: {
|
|
41801
|
-
currency: "USD",
|
|
41802
|
-
currencyCode: "USD",
|
|
41803
|
-
currencyName: "United States Dollar",
|
|
41804
|
-
currencyCodeHash: currencyKeccak256("USD"),
|
|
41805
|
-
currencySymbol: "$",
|
|
41806
|
-
countryCode: "us"
|
|
41807
|
-
},
|
|
41808
|
-
VND: {
|
|
41809
|
-
currency: "VND",
|
|
41810
|
-
currencyCode: "VND",
|
|
41811
|
-
currencyName: "Vietnamese Dong",
|
|
41812
|
-
currencyCodeHash: currencyKeccak256("VND"),
|
|
41813
|
-
currencySymbol: "\u20AB",
|
|
41814
|
-
countryCode: "vn"
|
|
41815
|
-
},
|
|
41816
|
-
ZAR: {
|
|
41817
|
-
currency: "ZAR",
|
|
41818
|
-
currencyCode: "ZAR",
|
|
41819
|
-
currencyName: "South African Rand",
|
|
41820
|
-
currencyCodeHash: currencyKeccak256("ZAR"),
|
|
41821
|
-
currencySymbol: "R",
|
|
41822
|
-
countryCode: "za"
|
|
41823
|
-
}
|
|
41824
|
-
};
|
|
41825
|
-
}
|
|
41826
|
-
});
|
|
41827
|
-
|
|
41828
41806
|
// src/utils/protocolViewerParsers.ts
|
|
41829
41807
|
var protocolViewerParsers_exports = {};
|
|
41830
41808
|
__export(protocolViewerParsers_exports, {
|
|
@@ -42766,25 +42744,13 @@ async function sendTransactionWithAttribution(walletClient, request, referrer, o
|
|
|
42766
42744
|
init_contracts();
|
|
42767
42745
|
init_paymentResolution();
|
|
42768
42746
|
|
|
42769
|
-
// src/
|
|
42770
|
-
|
|
42771
|
-
"wise",
|
|
42772
|
-
"venmo",
|
|
42773
|
-
"revolut",
|
|
42774
|
-
"cashapp",
|
|
42775
|
-
"mercadopago",
|
|
42776
|
-
"zelle",
|
|
42777
|
-
"paypal",
|
|
42778
|
-
"monzo",
|
|
42779
|
-
"chime",
|
|
42780
|
-
"luxon",
|
|
42781
|
-
"n26"
|
|
42782
|
-
];
|
|
42747
|
+
// src/constants.ts
|
|
42748
|
+
init_types();
|
|
42783
42749
|
|
|
42784
42750
|
// src/utils/constants.ts
|
|
42785
42751
|
var DEFAULT_BASE_API_URL = "https://api.zkp2p.xyz";
|
|
42786
42752
|
|
|
42787
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
42753
|
+
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.3.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/oracleFeeds/chainlink.json
|
|
42788
42754
|
var chainlink_default = {
|
|
42789
42755
|
feeds: [
|
|
42790
42756
|
{
|
|
@@ -45518,7 +45484,7 @@ var MAKER_FUND_ACTIVITIES_QUERY = (
|
|
|
45518
45484
|
`
|
|
45519
45485
|
query GetMakerFundActivities($depositor: String!, $limit: Int) {
|
|
45520
45486
|
DepositFundActivity(
|
|
45521
|
-
where: { depositor: {
|
|
45487
|
+
where: { depositor: { _ilike: $depositor } }
|
|
45522
45488
|
order_by: { timestamp: desc }
|
|
45523
45489
|
limit: $limit
|
|
45524
45490
|
) {
|
|
@@ -46154,6 +46120,7 @@ var REFERRAL_SIGNATURE_TYPES = {
|
|
|
46154
46120
|
};
|
|
46155
46121
|
|
|
46156
46122
|
// src/adapters/api.ts
|
|
46123
|
+
init_paymentMethodHashes();
|
|
46157
46124
|
function createHeaders(apiKey, authorizationToken) {
|
|
46158
46125
|
const headers2 = { "Content-Type": "application/json" };
|
|
46159
46126
|
if (apiKey) headers2["x-api-key"] = apiKey;
|
|
@@ -46298,6 +46265,7 @@ function buildLegacyVerifierCurrencies(deposit) {
|
|
|
46298
46265
|
const currenciesByMethod = /* @__PURE__ */ new Map();
|
|
46299
46266
|
for (const currency of deposit.currencies ?? []) {
|
|
46300
46267
|
const methodHash = currency.paymentMethodHash;
|
|
46268
|
+
if (!SUPPORTED_PAYMENT_METHOD_HASHES.has(methodHash.toLowerCase())) continue;
|
|
46301
46269
|
const resolvedConversionRate = currency.conversionRate ?? currency.minConversionRate;
|
|
46302
46270
|
if (resolvedConversionRate === null || resolvedConversionRate === void 0) {
|
|
46303
46271
|
logger.warn(
|
|
@@ -46319,7 +46287,9 @@ function buildLegacyVerifierCurrencies(deposit) {
|
|
|
46319
46287
|
}
|
|
46320
46288
|
function convertIndexerDepositToLegacyApiDeposit(deposit) {
|
|
46321
46289
|
const currenciesByMethod = buildLegacyVerifierCurrencies(deposit);
|
|
46322
|
-
const verifiers = (deposit.paymentMethods ?? []).filter(
|
|
46290
|
+
const verifiers = (deposit.paymentMethods ?? []).filter(
|
|
46291
|
+
(paymentMethod) => paymentMethod.active !== false && SUPPORTED_PAYMENT_METHOD_HASHES.has(paymentMethod.paymentMethodHash.toLowerCase())
|
|
46292
|
+
).map((paymentMethod) => ({
|
|
46323
46293
|
depositId: Number(deposit.depositId),
|
|
46324
46294
|
verifier: "",
|
|
46325
46295
|
methodHash: paymentMethod.paymentMethodHash,
|
|
@@ -46421,13 +46391,28 @@ async function apiGetQuotesBestByPlatform(req, baseApiUrl, timeoutMs, apiKey) {
|
|
|
46421
46391
|
Object.keys(requestBody).forEach(
|
|
46422
46392
|
(key) => requestBody[key] === void 0 && delete requestBody[key]
|
|
46423
46393
|
);
|
|
46424
|
-
|
|
46394
|
+
const response = await apiFetch({
|
|
46425
46395
|
url,
|
|
46426
46396
|
method: "POST",
|
|
46427
46397
|
body: requestBody,
|
|
46428
46398
|
apiKey,
|
|
46429
46399
|
timeoutMs
|
|
46430
46400
|
});
|
|
46401
|
+
return {
|
|
46402
|
+
...response,
|
|
46403
|
+
responseObject: {
|
|
46404
|
+
...response.responseObject,
|
|
46405
|
+
platformQuotes: (response.responseObject?.platformQuotes ?? []).filter((platformQuote) => {
|
|
46406
|
+
const platform = platformQuote.platform.trim().toLowerCase();
|
|
46407
|
+
if (!METHOD_NAME_TO_HASH[platform]) return false;
|
|
46408
|
+
if (!platformQuote.bestQuote) return true;
|
|
46409
|
+
return platform === platformQuote.bestQuote.intent.processorName.trim().toLowerCase() && matchesQuotePaymentMethod(
|
|
46410
|
+
platformQuote.bestQuote.intent.processorName,
|
|
46411
|
+
platformQuote.bestQuote.paymentMethod
|
|
46412
|
+
);
|
|
46413
|
+
})
|
|
46414
|
+
}
|
|
46415
|
+
};
|
|
46431
46416
|
}
|
|
46432
46417
|
async function apiGetPayeeDetails(req, baseApiUrl, timeoutMs) {
|
|
46433
46418
|
return apiFetch({
|
|
@@ -46604,7 +46589,8 @@ async function apiUploadGoogleOAuthSellerCredential(processorName, payeeDetails,
|
|
|
46604
46589
|
url: `${withApiBase(baseApiUrl)}${endpoint}`,
|
|
46605
46590
|
method: "POST",
|
|
46606
46591
|
body,
|
|
46607
|
-
timeoutMs: opts?.timeoutMs
|
|
46592
|
+
timeoutMs: opts?.timeoutMs,
|
|
46593
|
+
authorizationToken: opts?.authorizationToken
|
|
46608
46594
|
});
|
|
46609
46595
|
}
|
|
46610
46596
|
async function apiGetSellerCredentialStatus(processorName, payeeDetails, baseApiUrl, timeoutMs) {
|
|
@@ -46647,7 +46633,35 @@ async function apiGetOrderbook(params, optsOrBaseApiUrl, timeoutMs) {
|
|
|
46647
46633
|
method: "GET",
|
|
46648
46634
|
timeoutMs: opts.timeoutMs
|
|
46649
46635
|
});
|
|
46650
|
-
return
|
|
46636
|
+
return {
|
|
46637
|
+
...response.responseObject,
|
|
46638
|
+
entries: response.responseObject.entries.filter(
|
|
46639
|
+
(entry) => matchesPaymentMethodNameAndHash(entry.paymentPlatform, entry.paymentMethodHash)
|
|
46640
|
+
)
|
|
46641
|
+
};
|
|
46642
|
+
}
|
|
46643
|
+
async function apiGetOrderbookTable(params, optsOrBaseApiUrl, timeoutMs) {
|
|
46644
|
+
const opts = typeof optsOrBaseApiUrl === "string" ? {
|
|
46645
|
+
baseApiUrl: optsOrBaseApiUrl,
|
|
46646
|
+
timeoutMs
|
|
46647
|
+
} : optsOrBaseApiUrl;
|
|
46648
|
+
const query = new URLSearchParams();
|
|
46649
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
46650
|
+
if (value === void 0 || value === null) return;
|
|
46651
|
+
query.set(key, String(value));
|
|
46652
|
+
});
|
|
46653
|
+
const response = await apiFetch({
|
|
46654
|
+
url: `${withApiBase(opts.baseApiUrl)}/v2/orderbook/table?${query.toString()}`,
|
|
46655
|
+
method: "GET",
|
|
46656
|
+
timeoutMs: opts.timeoutMs
|
|
46657
|
+
});
|
|
46658
|
+
const responseObject = unwrapResponseObject(response);
|
|
46659
|
+
return {
|
|
46660
|
+
...responseObject,
|
|
46661
|
+
rows: responseObject.rows.filter(
|
|
46662
|
+
(row) => matchesPaymentMethodNameAndHash(row.paymentPlatform, row.paymentMethodHash)
|
|
46663
|
+
)
|
|
46664
|
+
};
|
|
46651
46665
|
}
|
|
46652
46666
|
async function apiGetDepositBundle(params, optsOrBaseApiUrl, timeoutMs) {
|
|
46653
46667
|
const opts = typeof optsOrBaseApiUrl === "string" ? {
|
|
@@ -47970,6 +47984,7 @@ async function apiUploadSellerCredentialBundle(params, baseApiUrl, timeoutMs, au
|
|
|
47970
47984
|
// src/client/Zkp2pClient.ts
|
|
47971
47985
|
init_contracts();
|
|
47972
47986
|
init_paymentResolution();
|
|
47987
|
+
init_paymentMethodHashes();
|
|
47973
47988
|
init_currencyKeccak256();
|
|
47974
47989
|
var formatTokenAmountForDisplay = (amount, decimals) => {
|
|
47975
47990
|
const formatted = viem.formatUnits(amount, decimals);
|
|
@@ -48160,6 +48175,12 @@ function normalizeQuotePayeeData(maker) {
|
|
|
48160
48175
|
metadata: isObjectRecord(maker?.metadata) ? maker.metadata : legacy?.metadata ?? null
|
|
48161
48176
|
};
|
|
48162
48177
|
}
|
|
48178
|
+
function isActiveQuotePaymentMethod(quote) {
|
|
48179
|
+
if (!quote?.intent || typeof quote.intent.processorName !== "string" || typeof quote.paymentMethod !== "string") {
|
|
48180
|
+
return false;
|
|
48181
|
+
}
|
|
48182
|
+
return matchesQuotePaymentMethod(quote.intent.processorName, quote.paymentMethod);
|
|
48183
|
+
}
|
|
48163
48184
|
function normalizePayeeDataInputItem(raw) {
|
|
48164
48185
|
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
48165
48186
|
return null;
|
|
@@ -48208,6 +48229,7 @@ function resolvePayeeDataInput(params, methodName) {
|
|
|
48208
48229
|
return normalized;
|
|
48209
48230
|
}
|
|
48210
48231
|
function toPostDepositDetailsRequest(processorName, payeeData, index) {
|
|
48232
|
+
assertKnownProcessorName(processorName, `processorNames[${index}]`);
|
|
48211
48233
|
if (!payeeData || typeof payeeData.offchainId !== "string" || payeeData.offchainId.length === 0) {
|
|
48212
48234
|
throw new Error(`payeeData[${index}] must include a non-empty offchainId`);
|
|
48213
48235
|
}
|
|
@@ -48218,6 +48240,26 @@ function toPostDepositDetailsRequest(processorName, payeeData, index) {
|
|
|
48218
48240
|
metadata: getPayeeRegistrationMetadata(payeeData)
|
|
48219
48241
|
};
|
|
48220
48242
|
}
|
|
48243
|
+
function assertKnownProcessorName(processorName, field) {
|
|
48244
|
+
if (!METHOD_NAME_TO_HASH[processorName.toLowerCase()]) {
|
|
48245
|
+
throw new exports.ValidationError(`Unknown processorName: ${processorName}`, field);
|
|
48246
|
+
}
|
|
48247
|
+
}
|
|
48248
|
+
function assertCatalogPaymentMethods(paymentMethods, chainId, runtimeEnv, field) {
|
|
48249
|
+
const catalogHashes = new Set(
|
|
48250
|
+
Object.values(getPaymentMethodsCatalog(chainId, runtimeEnv)).map(
|
|
48251
|
+
(entry) => entry.paymentMethodHash.toLowerCase()
|
|
48252
|
+
)
|
|
48253
|
+
);
|
|
48254
|
+
paymentMethods.forEach((paymentMethod, index) => {
|
|
48255
|
+
if (!catalogHashes.has(paymentMethod.toLowerCase())) {
|
|
48256
|
+
throw new exports.ValidationError(
|
|
48257
|
+
`Unsupported payment method hash: ${paymentMethod}`,
|
|
48258
|
+
`${field}[${index}]`
|
|
48259
|
+
);
|
|
48260
|
+
}
|
|
48261
|
+
});
|
|
48262
|
+
}
|
|
48221
48263
|
var Zkp2pClient = class {
|
|
48222
48264
|
/**
|
|
48223
48265
|
* Creates a new Zkp2pClient instance.
|
|
@@ -48570,6 +48612,12 @@ var Zkp2pClient = class {
|
|
|
48570
48612
|
*/
|
|
48571
48613
|
this.addPaymentMethods = Object.assign(
|
|
48572
48614
|
async (params) => {
|
|
48615
|
+
assertCatalogPaymentMethods(
|
|
48616
|
+
params.paymentMethods,
|
|
48617
|
+
this.chainId,
|
|
48618
|
+
this.runtimeEnv,
|
|
48619
|
+
"paymentMethods"
|
|
48620
|
+
);
|
|
48573
48621
|
const escrowContext = await this.resolveEscrowContextForDepositWrite({
|
|
48574
48622
|
escrowAddress: params.escrowAddress,
|
|
48575
48623
|
depositId: params.depositId,
|
|
@@ -48594,6 +48642,12 @@ var Zkp2pClient = class {
|
|
|
48594
48642
|
},
|
|
48595
48643
|
{
|
|
48596
48644
|
prepare: async (params) => {
|
|
48645
|
+
assertCatalogPaymentMethods(
|
|
48646
|
+
params.paymentMethods,
|
|
48647
|
+
this.chainId,
|
|
48648
|
+
this.runtimeEnv,
|
|
48649
|
+
"paymentMethods"
|
|
48650
|
+
);
|
|
48597
48651
|
const escrowContext = await this.resolveEscrowContextForDepositWrite({
|
|
48598
48652
|
escrowAddress: params.escrowAddress,
|
|
48599
48653
|
depositId: params.depositId,
|
|
@@ -50225,6 +50279,9 @@ var Zkp2pClient = class {
|
|
|
50225
50279
|
if (!Array.isArray(params.processorNames) || params.processorNames.length === 0) {
|
|
50226
50280
|
throw new Error("processorNames must be a non-empty array");
|
|
50227
50281
|
}
|
|
50282
|
+
params.processorNames.forEach(
|
|
50283
|
+
(processorName, index) => assertKnownProcessorName(processorName, `processorNames[${index}]`)
|
|
50284
|
+
);
|
|
50228
50285
|
if (params.processorNames.length !== params.conversionRates.length) {
|
|
50229
50286
|
throw new Error("processorNames and conversionRates length mismatch");
|
|
50230
50287
|
}
|
|
@@ -50253,6 +50310,12 @@ var Zkp2pClient = class {
|
|
|
50253
50310
|
"paymentMethodsOverride, paymentMethodDataOverride, and currenciesOverride length mismatch"
|
|
50254
50311
|
);
|
|
50255
50312
|
}
|
|
50313
|
+
assertCatalogPaymentMethods(
|
|
50314
|
+
params.paymentMethodsOverride,
|
|
50315
|
+
this.chainId,
|
|
50316
|
+
this.runtimeEnv,
|
|
50317
|
+
"paymentMethodsOverride"
|
|
50318
|
+
);
|
|
50256
50319
|
paymentMethods = params.paymentMethodsOverride;
|
|
50257
50320
|
paymentMethodData = params.paymentMethodDataOverride;
|
|
50258
50321
|
currencies = params.currenciesOverride;
|
|
@@ -50441,6 +50504,9 @@ var Zkp2pClient = class {
|
|
|
50441
50504
|
*/
|
|
50442
50505
|
async getQuote(req, opts) {
|
|
50443
50506
|
const referrerFeeConfig = assertValidReferrerFeeConfig(req.referrerFeeConfig, "getQuote");
|
|
50507
|
+
req.paymentPlatforms.forEach(
|
|
50508
|
+
(processorName, index) => assertKnownProcessorName(processorName, `paymentPlatforms[${index}]`)
|
|
50509
|
+
);
|
|
50444
50510
|
const baseApiUrl = (opts?.baseApiUrl ?? this.baseApiUrl ?? DEFAULT_BASE_API_URL).replace(
|
|
50445
50511
|
/\/$/,
|
|
50446
50512
|
""
|
|
@@ -50454,7 +50520,18 @@ var Zkp2pClient = class {
|
|
|
50454
50520
|
}
|
|
50455
50521
|
}
|
|
50456
50522
|
const quote = await apiGetQuote(reqWithEscrow, baseApiUrl, timeoutMs, this.apiKey);
|
|
50457
|
-
const quotes = quote?.responseObject?.quotes ?? [];
|
|
50523
|
+
const quotes = (quote?.responseObject?.quotes ?? []).filter(isActiveQuotePaymentMethod);
|
|
50524
|
+
quote.responseObject.quotes = quotes;
|
|
50525
|
+
if (quote.responseObject.nearbySuggestions) {
|
|
50526
|
+
quote.responseObject.nearbySuggestions = {
|
|
50527
|
+
below: quote.responseObject.nearbySuggestions.below.filter(
|
|
50528
|
+
(suggestion) => isActiveQuotePaymentMethod(suggestion.quote)
|
|
50529
|
+
),
|
|
50530
|
+
above: quote.responseObject.nearbySuggestions.above.filter(
|
|
50531
|
+
(suggestion) => isActiveQuotePaymentMethod(suggestion.quote)
|
|
50532
|
+
)
|
|
50533
|
+
};
|
|
50534
|
+
}
|
|
50458
50535
|
for (const q of quotes) {
|
|
50459
50536
|
const payeeData = normalizeQuotePayeeData(q.maker);
|
|
50460
50537
|
if (payeeData) {
|
|
@@ -50500,7 +50577,11 @@ var Zkp2pClient = class {
|
|
|
50500
50577
|
...quote,
|
|
50501
50578
|
responseObject: {
|
|
50502
50579
|
...quote.responseObject,
|
|
50503
|
-
platformQuotes: (quote.responseObject?.platformQuotes ?? []).
|
|
50580
|
+
platformQuotes: (quote.responseObject?.platformQuotes ?? []).filter((platformQuote) => {
|
|
50581
|
+
const platform = platformQuote.platform.trim().toLowerCase();
|
|
50582
|
+
if (!METHOD_NAME_TO_HASH[platform]) return false;
|
|
50583
|
+
return !platformQuote.bestQuote || platform === platformQuote.bestQuote.intent.processorName.trim().toLowerCase() && isActiveQuotePaymentMethod(platformQuote.bestQuote);
|
|
50584
|
+
}).map((platformQuote) => {
|
|
50504
50585
|
const bestQuote = platformQuote?.bestQuote;
|
|
50505
50586
|
const payeeData = normalizeQuotePayeeData(bestQuote?.maker);
|
|
50506
50587
|
if (!bestQuote || !payeeData) return platformQuote;
|
|
@@ -50678,6 +50759,18 @@ var Zkp2pClient = class {
|
|
|
50678
50759
|
opts?.baseApiUrl ?? this.baseApiUrl ?? DEFAULT_BASE_API_URL
|
|
50679
50760
|
);
|
|
50680
50761
|
const timeoutMs = opts?.timeoutMs ?? this.apiTimeoutMs;
|
|
50762
|
+
const getUploadOptions = async () => {
|
|
50763
|
+
let authorizationToken;
|
|
50764
|
+
try {
|
|
50765
|
+
authorizationToken = await this.resolveAuthorizationToken();
|
|
50766
|
+
} catch {
|
|
50767
|
+
authorizationToken = void 0;
|
|
50768
|
+
}
|
|
50769
|
+
return {
|
|
50770
|
+
timeoutMs,
|
|
50771
|
+
...authorizationToken ? { authorizationToken } : {}
|
|
50772
|
+
};
|
|
50773
|
+
};
|
|
50681
50774
|
if (params.platform === "paypal") {
|
|
50682
50775
|
return apiUploadGoogleOAuthSellerCredential(
|
|
50683
50776
|
"paypal",
|
|
@@ -50688,9 +50781,7 @@ var Zkp2pClient = class {
|
|
|
50688
50781
|
redirectUri: params.redirectUri
|
|
50689
50782
|
},
|
|
50690
50783
|
baseApiUrl,
|
|
50691
|
-
|
|
50692
|
-
timeoutMs
|
|
50693
|
-
}
|
|
50784
|
+
await getUploadOptions()
|
|
50694
50785
|
);
|
|
50695
50786
|
}
|
|
50696
50787
|
if (params.platform === "venmo") {
|
|
@@ -50703,9 +50794,7 @@ var Zkp2pClient = class {
|
|
|
50703
50794
|
redirectUri: params.redirectUri
|
|
50704
50795
|
},
|
|
50705
50796
|
baseApiUrl,
|
|
50706
|
-
|
|
50707
|
-
timeoutMs
|
|
50708
|
-
}
|
|
50797
|
+
await getUploadOptions()
|
|
50709
50798
|
);
|
|
50710
50799
|
}
|
|
50711
50800
|
throw new exports.ValidationError(
|
|
@@ -51019,7 +51108,6 @@ exports.IndexerClient = IndexerClient;
|
|
|
51019
51108
|
exports.IndexerDepositService = IndexerDepositService;
|
|
51020
51109
|
exports.IndexerRateManagerService = IndexerRateManagerService;
|
|
51021
51110
|
exports.OfframpClient = Zkp2pClient;
|
|
51022
|
-
exports.PAYMENT_PLATFORMS = PAYMENT_PLATFORMS;
|
|
51023
51111
|
exports.PEER_EXTENSION_CHROME_URL = PEER_EXTENSION_CHROME_URL;
|
|
51024
51112
|
exports.PLATFORM_METADATA = PLATFORM_METADATA;
|
|
51025
51113
|
exports.PYTH_CONTRACT_BASE = PYTH_CONTRACT_BASE;
|
|
@@ -51042,6 +51130,7 @@ exports.apiCreateReferralCode = apiCreateReferralCode;
|
|
|
51042
51130
|
exports.apiCreateSellerCredentialBundle = apiCreateSellerCredentialBundle;
|
|
51043
51131
|
exports.apiGetDepositBundle = apiGetDepositBundle;
|
|
51044
51132
|
exports.apiGetOrderbook = apiGetOrderbook;
|
|
51133
|
+
exports.apiGetOrderbookTable = apiGetOrderbookTable;
|
|
51045
51134
|
exports.apiGetOwnerDeposits = apiGetOwnerDeposits;
|
|
51046
51135
|
exports.apiGetPayeeDetails = apiGetPayeeDetails;
|
|
51047
51136
|
exports.apiGetQuotesBestByPlatform = apiGetQuotesBestByPlatform;
|