@zkp2p/sdk 0.8.1 → 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 +785 -705
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.mjs +127 -30
- 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
|
@@ -19,7 +19,83 @@ function parseBigIntLike(value, errorMessage = "Unsupported numeric value") {
|
|
|
19
19
|
throw new Error(errorMessage);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22
|
+
// ../../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
|
|
23
|
+
var lookups_default = {
|
|
24
|
+
nameToHash: {
|
|
25
|
+
venmo: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
26
|
+
revolut: "0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d",
|
|
27
|
+
cashapp: "0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d",
|
|
28
|
+
wise: "0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5",
|
|
29
|
+
mercadopago: "0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483",
|
|
30
|
+
zelle: "0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3",
|
|
31
|
+
paypal: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
32
|
+
monzo: "0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c",
|
|
33
|
+
alipay: "0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff",
|
|
34
|
+
chime: "0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb"
|
|
35
|
+
},
|
|
36
|
+
hashToName: {
|
|
37
|
+
"0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268": "venmo",
|
|
38
|
+
"0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d": "revolut",
|
|
39
|
+
"0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d": "cashapp",
|
|
40
|
+
"0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5": "wise",
|
|
41
|
+
"0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483": "mercadopago",
|
|
42
|
+
"0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3": "zelle",
|
|
43
|
+
"0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f": "paypal",
|
|
44
|
+
"0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c": "monzo",
|
|
45
|
+
"0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff": "alipay",
|
|
46
|
+
"0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb": "chime",
|
|
47
|
+
"0xd9ff4fd6b39a3e3dd43c41d05662a5547de4a878bc97a65bcb352ade493cdc6b": "n26",
|
|
48
|
+
"0xaea63ef983458674f54ee50cdaa7b09d80a5c6c03ed505f51c90b0f2b54abb01": "luxon"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// src/types/index.ts
|
|
53
|
+
var PAYMENT_PLATFORMS = [
|
|
54
|
+
"wise",
|
|
55
|
+
"venmo",
|
|
56
|
+
"revolut",
|
|
57
|
+
"cashapp",
|
|
58
|
+
"mercadopago",
|
|
59
|
+
"zelle",
|
|
60
|
+
"paypal",
|
|
61
|
+
"monzo",
|
|
62
|
+
"chime",
|
|
63
|
+
"luxon",
|
|
64
|
+
"n26"
|
|
65
|
+
];
|
|
66
|
+
var ACTIVE_PAYMENT_METHOD_NAMES = /* @__PURE__ */ new Set([...PAYMENT_PLATFORMS, "alipay"]);
|
|
67
|
+
var METHOD_NAME_TO_HASH = Object.setPrototypeOf(
|
|
68
|
+
Object.fromEntries(
|
|
69
|
+
Object.entries(lookups_default.nameToHash).filter(([name]) => ACTIVE_PAYMENT_METHOD_NAMES.has(name))
|
|
70
|
+
),
|
|
71
|
+
null
|
|
72
|
+
);
|
|
73
|
+
var SUPPORTED_PAYMENT_METHOD_HASHES = new Set(
|
|
74
|
+
Object.values(METHOD_NAME_TO_HASH).map((hash) => hash.toLowerCase())
|
|
75
|
+
);
|
|
76
|
+
var matchesPaymentMethodNameAndHash = (paymentMethodName, paymentMethodHash) => {
|
|
77
|
+
const expectedHash = METHOD_NAME_TO_HASH[paymentMethodName.trim().toLowerCase()];
|
|
78
|
+
return Boolean(
|
|
79
|
+
expectedHash && expectedHash.toLowerCase() === paymentMethodHash.trim().toLowerCase()
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
var matchesQuotePaymentMethod = (processorName, paymentMethod) => {
|
|
83
|
+
const normalizedProcessorName = processorName.trim().toLowerCase();
|
|
84
|
+
const normalizedPaymentMethod = paymentMethod.trim().toLowerCase();
|
|
85
|
+
const expectedHash = METHOD_NAME_TO_HASH[normalizedProcessorName];
|
|
86
|
+
return Boolean(
|
|
87
|
+
expectedHash && (normalizedPaymentMethod === normalizedProcessorName || normalizedPaymentMethod === expectedHash.toLowerCase())
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
var HASH_TO_METHOD_NAME = Object.entries(lookups_default.hashToName).filter(([, name]) => ACTIVE_PAYMENT_METHOD_NAMES.has(name)).reduce(
|
|
91
|
+
(acc, [hash, name]) => {
|
|
92
|
+
acc[hash.toLowerCase()] = name;
|
|
93
|
+
return acc;
|
|
94
|
+
},
|
|
95
|
+
{}
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
// ../../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
|
|
23
99
|
var data = {
|
|
24
100
|
"name": "base",
|
|
25
101
|
"chainId": 8453,
|
|
@@ -49,12 +125,12 @@ var data = {
|
|
|
49
125
|
"WhitelistPreIntentHook": "0xda023Ea0d789A41BcF5866F7B6BBd2CaDF9b79B8"
|
|
50
126
|
},
|
|
51
127
|
"meta": {
|
|
52
|
-
"generatedAt": "2026-
|
|
128
|
+
"generatedAt": "2026-07-15T15:12:32.088Z"
|
|
53
129
|
}
|
|
54
130
|
};
|
|
55
131
|
var base_default = data;
|
|
56
132
|
|
|
57
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
133
|
+
// ../../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
|
|
58
134
|
var data2 = {
|
|
59
135
|
"name": "base_staging",
|
|
60
136
|
"chainId": 8453,
|
|
@@ -84,12 +160,12 @@ var data2 = {
|
|
|
84
160
|
"WhitelistPreIntentHook": "0xABE7AFC4C7bE9c4Eed5F465a98e124ee7860C005"
|
|
85
161
|
},
|
|
86
162
|
"meta": {
|
|
87
|
-
"generatedAt": "2026-
|
|
163
|
+
"generatedAt": "2026-07-15T15:12:32.089Z"
|
|
88
164
|
}
|
|
89
165
|
};
|
|
90
166
|
var baseStaging_default = data2;
|
|
91
167
|
|
|
92
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
168
|
+
// ../../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
|
|
93
169
|
var base_exports = {};
|
|
94
170
|
__export(base_exports, {
|
|
95
171
|
AcrossBridgeHook: () => AcrossBridgeHook_default,
|
|
@@ -117,7 +193,7 @@ __export(base_exports, {
|
|
|
117
193
|
WhitelistPreIntentHook: () => WhitelistPreIntentHook_default
|
|
118
194
|
});
|
|
119
195
|
|
|
120
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
196
|
+
// ../../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
|
|
121
197
|
var data3 = [
|
|
122
198
|
{
|
|
123
199
|
"inputs": [
|
|
@@ -575,7 +651,7 @@ var data3 = [
|
|
|
575
651
|
];
|
|
576
652
|
var AcrossBridgeHook_default = data3;
|
|
577
653
|
|
|
578
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
654
|
+
// ../../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
|
|
579
655
|
var data4 = [
|
|
580
656
|
{
|
|
581
657
|
"inputs": [
|
|
@@ -1046,7 +1122,7 @@ var data4 = [
|
|
|
1046
1122
|
];
|
|
1047
1123
|
var AcrossBridgeHookV2_default = data4;
|
|
1048
1124
|
|
|
1049
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1125
|
+
// ../../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
|
|
1050
1126
|
var data5 = [
|
|
1051
1127
|
{
|
|
1052
1128
|
"inputs": [
|
|
@@ -1099,7 +1175,7 @@ var data5 = [
|
|
|
1099
1175
|
];
|
|
1100
1176
|
var ChainlinkOracleAdapter_default = data5;
|
|
1101
1177
|
|
|
1102
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
1178
|
+
// ../../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
|
|
1103
1179
|
var data6 = [
|
|
1104
1180
|
{
|
|
1105
1181
|
"inputs": [
|
|
@@ -3312,7 +3388,7 @@ var data6 = [
|
|
|
3312
3388
|
];
|
|
3313
3389
|
var Escrow_default = data6;
|
|
3314
3390
|
|
|
3315
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
3391
|
+
// ../../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
|
|
3316
3392
|
var data7 = [
|
|
3317
3393
|
{
|
|
3318
3394
|
"inputs": [],
|
|
@@ -3529,7 +3605,7 @@ var data7 = [
|
|
|
3529
3605
|
];
|
|
3530
3606
|
var EscrowRegistry_default = data7;
|
|
3531
3607
|
|
|
3532
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
3608
|
+
// ../../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
|
|
3533
3609
|
var data8 = [
|
|
3534
3610
|
{
|
|
3535
3611
|
"inputs": [
|
|
@@ -6549,7 +6625,7 @@ var data8 = [
|
|
|
6549
6625
|
];
|
|
6550
6626
|
var EscrowV2_default = data8;
|
|
6551
6627
|
|
|
6552
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
6628
|
+
// ../../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
|
|
6553
6629
|
var data9 = [
|
|
6554
6630
|
{
|
|
6555
6631
|
"inputs": [
|
|
@@ -6793,7 +6869,7 @@ var data9 = [
|
|
|
6793
6869
|
];
|
|
6794
6870
|
var MultiAttestationVerifier_default = data9;
|
|
6795
6871
|
|
|
6796
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
6872
|
+
// ../../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
|
|
6797
6873
|
var data10 = [
|
|
6798
6874
|
{
|
|
6799
6875
|
"inputs": [],
|
|
@@ -7009,7 +7085,7 @@ var data10 = [
|
|
|
7009
7085
|
];
|
|
7010
7086
|
var NullifierRegistry_default = data10;
|
|
7011
7087
|
|
|
7012
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
7088
|
+
// ../../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
|
|
7013
7089
|
var data11 = [
|
|
7014
7090
|
{
|
|
7015
7091
|
"inputs": [
|
|
@@ -8157,7 +8233,7 @@ var data11 = [
|
|
|
8157
8233
|
];
|
|
8158
8234
|
var Orchestrator_default = data11;
|
|
8159
8235
|
|
|
8160
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
8236
|
+
// ../../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
|
|
8161
8237
|
var data12 = [
|
|
8162
8238
|
{
|
|
8163
8239
|
"inputs": [
|
|
@@ -8312,7 +8388,7 @@ var data12 = [
|
|
|
8312
8388
|
];
|
|
8313
8389
|
var OrchestratorRegistry_default = data12;
|
|
8314
8390
|
|
|
8315
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
8391
|
+
// ../../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
|
|
8316
8392
|
var data13 = [
|
|
8317
8393
|
{
|
|
8318
8394
|
"inputs": [
|
|
@@ -9713,7 +9789,7 @@ var data13 = [
|
|
|
9713
9789
|
];
|
|
9714
9790
|
var OrchestratorV2_default = data13;
|
|
9715
9791
|
|
|
9716
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
9792
|
+
// ../../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
|
|
9717
9793
|
var data14 = [
|
|
9718
9794
|
{
|
|
9719
9795
|
"inputs": [],
|
|
@@ -10048,7 +10124,7 @@ var data14 = [
|
|
|
10048
10124
|
];
|
|
10049
10125
|
var PaymentVerifierRegistry_default = data14;
|
|
10050
10126
|
|
|
10051
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10127
|
+
// ../../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
|
|
10052
10128
|
var data15 = [
|
|
10053
10129
|
{
|
|
10054
10130
|
"inputs": [],
|
|
@@ -10232,7 +10308,7 @@ var data15 = [
|
|
|
10232
10308
|
];
|
|
10233
10309
|
var PostIntentHookRegistry_default = data15;
|
|
10234
10310
|
|
|
10235
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
10311
|
+
// ../../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
|
|
10236
10312
|
var data16 = [
|
|
10237
10313
|
{
|
|
10238
10314
|
"inputs": [
|
|
@@ -11452,7 +11528,7 @@ var data16 = [
|
|
|
11452
11528
|
];
|
|
11453
11529
|
var ProtocolViewer_default = data16;
|
|
11454
11530
|
|
|
11455
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
11531
|
+
// ../../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
|
|
11456
11532
|
var data17 = [
|
|
11457
11533
|
{
|
|
11458
11534
|
"inputs": [
|
|
@@ -12547,7 +12623,7 @@ var data17 = [
|
|
|
12547
12623
|
];
|
|
12548
12624
|
var ProtocolViewerV2_default = data17;
|
|
12549
12625
|
|
|
12550
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
12626
|
+
// ../../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
|
|
12551
12627
|
var data18 = [
|
|
12552
12628
|
{
|
|
12553
12629
|
"inputs": [
|
|
@@ -12624,7 +12700,7 @@ var data18 = [
|
|
|
12624
12700
|
];
|
|
12625
12701
|
var PythOracleAdapter_default = data18;
|
|
12626
12702
|
|
|
12627
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
12703
|
+
// ../../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
|
|
12628
12704
|
var data19 = [
|
|
12629
12705
|
{
|
|
12630
12706
|
"inputs": [
|
|
@@ -13380,7 +13456,7 @@ var data19 = [
|
|
|
13380
13456
|
];
|
|
13381
13457
|
var RateManagerV1_default = data19;
|
|
13382
13458
|
|
|
13383
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
13459
|
+
// ../../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
|
|
13384
13460
|
var data20 = [
|
|
13385
13461
|
{
|
|
13386
13462
|
"inputs": [],
|
|
@@ -13545,7 +13621,7 @@ var data20 = [
|
|
|
13545
13621
|
];
|
|
13546
13622
|
var RelayerRegistry_default = data20;
|
|
13547
13623
|
|
|
13548
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
13624
|
+
// ../../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
|
|
13549
13625
|
var data21 = [
|
|
13550
13626
|
{
|
|
13551
13627
|
"inputs": [
|
|
@@ -13845,7 +13921,7 @@ var data21 = [
|
|
|
13845
13921
|
];
|
|
13846
13922
|
var SignatureGatingPreIntentHook_default = data21;
|
|
13847
13923
|
|
|
13848
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
13924
|
+
// ../../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
|
|
13849
13925
|
var data22 = [
|
|
13850
13926
|
{
|
|
13851
13927
|
"inputs": [
|
|
@@ -14000,7 +14076,7 @@ var data22 = [
|
|
|
14000
14076
|
];
|
|
14001
14077
|
var SimpleAttestationVerifier_default = data22;
|
|
14002
14078
|
|
|
14003
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14079
|
+
// ../../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
|
|
14004
14080
|
var data23 = [
|
|
14005
14081
|
{
|
|
14006
14082
|
"inputs": [
|
|
@@ -14367,7 +14443,7 @@ var data23 = [
|
|
|
14367
14443
|
];
|
|
14368
14444
|
var UnifiedPaymentVerifier_default = data23;
|
|
14369
14445
|
|
|
14370
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14446
|
+
// ../../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
|
|
14371
14447
|
var data24 = [
|
|
14372
14448
|
{
|
|
14373
14449
|
"inputs": [
|
|
@@ -14734,7 +14810,7 @@ var data24 = [
|
|
|
14734
14810
|
];
|
|
14735
14811
|
var UnifiedPaymentVerifierV2_default = data24;
|
|
14736
14812
|
|
|
14737
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
14813
|
+
// ../../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
|
|
14738
14814
|
var data25 = [
|
|
14739
14815
|
{
|
|
14740
14816
|
"inputs": [
|
|
@@ -15078,7 +15154,7 @@ var data25 = [
|
|
|
15078
15154
|
];
|
|
15079
15155
|
var WhitelistPreIntentHook_default = data25;
|
|
15080
15156
|
|
|
15081
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15157
|
+
// ../../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
|
|
15082
15158
|
var baseStaging_exports = {};
|
|
15083
15159
|
__export(baseStaging_exports, {
|
|
15084
15160
|
AcrossBridgeHook: () => AcrossBridgeHook_default2,
|
|
@@ -15106,7 +15182,7 @@ __export(baseStaging_exports, {
|
|
|
15106
15182
|
WhitelistPreIntentHook: () => WhitelistPreIntentHook_default2
|
|
15107
15183
|
});
|
|
15108
15184
|
|
|
15109
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15185
|
+
// ../../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
|
|
15110
15186
|
var data26 = [
|
|
15111
15187
|
{
|
|
15112
15188
|
"inputs": [
|
|
@@ -15564,7 +15640,7 @@ var data26 = [
|
|
|
15564
15640
|
];
|
|
15565
15641
|
var AcrossBridgeHook_default2 = data26;
|
|
15566
15642
|
|
|
15567
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
15643
|
+
// ../../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
|
|
15568
15644
|
var data27 = [
|
|
15569
15645
|
{
|
|
15570
15646
|
"inputs": [
|
|
@@ -16035,7 +16111,7 @@ var data27 = [
|
|
|
16035
16111
|
];
|
|
16036
16112
|
var AcrossBridgeHookV2_default2 = data27;
|
|
16037
16113
|
|
|
16038
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16114
|
+
// ../../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
|
|
16039
16115
|
var data28 = [
|
|
16040
16116
|
{
|
|
16041
16117
|
"inputs": [
|
|
@@ -16088,7 +16164,7 @@ var data28 = [
|
|
|
16088
16164
|
];
|
|
16089
16165
|
var ChainlinkOracleAdapter_default2 = data28;
|
|
16090
16166
|
|
|
16091
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
16167
|
+
// ../../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
|
|
16092
16168
|
var data29 = [
|
|
16093
16169
|
{
|
|
16094
16170
|
"inputs": [
|
|
@@ -18301,7 +18377,7 @@ var data29 = [
|
|
|
18301
18377
|
];
|
|
18302
18378
|
var Escrow_default2 = data29;
|
|
18303
18379
|
|
|
18304
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
18380
|
+
// ../../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
|
|
18305
18381
|
var data30 = [
|
|
18306
18382
|
{
|
|
18307
18383
|
"inputs": [],
|
|
@@ -18518,7 +18594,7 @@ var data30 = [
|
|
|
18518
18594
|
];
|
|
18519
18595
|
var EscrowRegistry_default2 = data30;
|
|
18520
18596
|
|
|
18521
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
18597
|
+
// ../../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
|
|
18522
18598
|
var data31 = [
|
|
18523
18599
|
{
|
|
18524
18600
|
"inputs": [
|
|
@@ -21538,7 +21614,7 @@ var data31 = [
|
|
|
21538
21614
|
];
|
|
21539
21615
|
var EscrowV2_default2 = data31;
|
|
21540
21616
|
|
|
21541
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
21617
|
+
// ../../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
|
|
21542
21618
|
var data32 = [
|
|
21543
21619
|
{
|
|
21544
21620
|
"inputs": [
|
|
@@ -21782,7 +21858,7 @@ var data32 = [
|
|
|
21782
21858
|
];
|
|
21783
21859
|
var MultiAttestationVerifier_default2 = data32;
|
|
21784
21860
|
|
|
21785
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
21861
|
+
// ../../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
|
|
21786
21862
|
var data33 = [
|
|
21787
21863
|
{
|
|
21788
21864
|
"inputs": [],
|
|
@@ -21998,7 +22074,7 @@ var data33 = [
|
|
|
21998
22074
|
];
|
|
21999
22075
|
var NullifierRegistry_default2 = data33;
|
|
22000
22076
|
|
|
22001
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
22077
|
+
// ../../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
|
|
22002
22078
|
var data34 = [
|
|
22003
22079
|
{
|
|
22004
22080
|
"inputs": [
|
|
@@ -23146,7 +23222,7 @@ var data34 = [
|
|
|
23146
23222
|
];
|
|
23147
23223
|
var Orchestrator_default2 = data34;
|
|
23148
23224
|
|
|
23149
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
23225
|
+
// ../../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
|
|
23150
23226
|
var data35 = [
|
|
23151
23227
|
{
|
|
23152
23228
|
"inputs": [
|
|
@@ -23301,7 +23377,7 @@ var data35 = [
|
|
|
23301
23377
|
];
|
|
23302
23378
|
var OrchestratorRegistry_default2 = data35;
|
|
23303
23379
|
|
|
23304
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
23380
|
+
// ../../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
|
|
23305
23381
|
var data36 = [
|
|
23306
23382
|
{
|
|
23307
23383
|
"inputs": [
|
|
@@ -24702,7 +24778,7 @@ var data36 = [
|
|
|
24702
24778
|
];
|
|
24703
24779
|
var OrchestratorV2_default2 = data36;
|
|
24704
24780
|
|
|
24705
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
24781
|
+
// ../../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
|
|
24706
24782
|
var data37 = [
|
|
24707
24783
|
{
|
|
24708
24784
|
"inputs": [],
|
|
@@ -25037,7 +25113,7 @@ var data37 = [
|
|
|
25037
25113
|
];
|
|
25038
25114
|
var PaymentVerifierRegistry_default2 = data37;
|
|
25039
25115
|
|
|
25040
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
25116
|
+
// ../../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
|
|
25041
25117
|
var data38 = [
|
|
25042
25118
|
{
|
|
25043
25119
|
"inputs": [],
|
|
@@ -25221,7 +25297,7 @@ var data38 = [
|
|
|
25221
25297
|
];
|
|
25222
25298
|
var PostIntentHookRegistry_default2 = data38;
|
|
25223
25299
|
|
|
25224
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
25300
|
+
// ../../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
|
|
25225
25301
|
var data39 = [
|
|
25226
25302
|
{
|
|
25227
25303
|
"inputs": [
|
|
@@ -26441,7 +26517,7 @@ var data39 = [
|
|
|
26441
26517
|
];
|
|
26442
26518
|
var ProtocolViewer_default2 = data39;
|
|
26443
26519
|
|
|
26444
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
26520
|
+
// ../../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
|
|
26445
26521
|
var data40 = [
|
|
26446
26522
|
{
|
|
26447
26523
|
"inputs": [
|
|
@@ -27536,7 +27612,7 @@ var data40 = [
|
|
|
27536
27612
|
];
|
|
27537
27613
|
var ProtocolViewerV2_default2 = data40;
|
|
27538
27614
|
|
|
27539
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
27615
|
+
// ../../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
|
|
27540
27616
|
var data41 = [
|
|
27541
27617
|
{
|
|
27542
27618
|
"inputs": [
|
|
@@ -27613,7 +27689,7 @@ var data41 = [
|
|
|
27613
27689
|
];
|
|
27614
27690
|
var PythOracleAdapter_default2 = data41;
|
|
27615
27691
|
|
|
27616
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
27692
|
+
// ../../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
|
|
27617
27693
|
var data42 = [
|
|
27618
27694
|
{
|
|
27619
27695
|
"inputs": [
|
|
@@ -28369,7 +28445,7 @@ var data42 = [
|
|
|
28369
28445
|
];
|
|
28370
28446
|
var RateManagerV1_default2 = data42;
|
|
28371
28447
|
|
|
28372
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
28448
|
+
// ../../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
|
|
28373
28449
|
var data43 = [
|
|
28374
28450
|
{
|
|
28375
28451
|
"inputs": [],
|
|
@@ -28534,7 +28610,7 @@ var data43 = [
|
|
|
28534
28610
|
];
|
|
28535
28611
|
var RelayerRegistry_default2 = data43;
|
|
28536
28612
|
|
|
28537
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
28613
|
+
// ../../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
|
|
28538
28614
|
var data44 = [
|
|
28539
28615
|
{
|
|
28540
28616
|
"inputs": [
|
|
@@ -28834,7 +28910,7 @@ var data44 = [
|
|
|
28834
28910
|
];
|
|
28835
28911
|
var SignatureGatingPreIntentHook_default2 = data44;
|
|
28836
28912
|
|
|
28837
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
28913
|
+
// ../../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
|
|
28838
28914
|
var data45 = [
|
|
28839
28915
|
{
|
|
28840
28916
|
"inputs": [
|
|
@@ -28989,7 +29065,7 @@ var data45 = [
|
|
|
28989
29065
|
];
|
|
28990
29066
|
var SimpleAttestationVerifier_default2 = data45;
|
|
28991
29067
|
|
|
28992
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29068
|
+
// ../../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
|
|
28993
29069
|
var data46 = [
|
|
28994
29070
|
{
|
|
28995
29071
|
"inputs": [
|
|
@@ -29356,7 +29432,7 @@ var data46 = [
|
|
|
29356
29432
|
];
|
|
29357
29433
|
var UnifiedPaymentVerifier_default2 = data46;
|
|
29358
29434
|
|
|
29359
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29435
|
+
// ../../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
|
|
29360
29436
|
var data47 = [
|
|
29361
29437
|
{
|
|
29362
29438
|
"inputs": [
|
|
@@ -29723,7 +29799,7 @@ var data47 = [
|
|
|
29723
29799
|
];
|
|
29724
29800
|
var UnifiedPaymentVerifierV2_default2 = data47;
|
|
29725
29801
|
|
|
29726
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
29802
|
+
// ../../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
|
|
29727
29803
|
var data48 = [
|
|
29728
29804
|
{
|
|
29729
29805
|
"inputs": [
|
|
@@ -30067,7 +30143,7 @@ var data48 = [
|
|
|
30067
30143
|
];
|
|
30068
30144
|
var WhitelistPreIntentHook_default2 = data48;
|
|
30069
30145
|
|
|
30070
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
30146
|
+
// ../../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
|
|
30071
30147
|
var Escrow_default3 = [
|
|
30072
30148
|
{
|
|
30073
30149
|
inputs: [
|
|
@@ -32279,7 +32355,7 @@ var Escrow_default3 = [
|
|
|
32279
32355
|
}
|
|
32280
32356
|
];
|
|
32281
32357
|
|
|
32282
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
32358
|
+
// ../../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
|
|
32283
32359
|
var Orchestrator_default3 = [
|
|
32284
32360
|
{
|
|
32285
32361
|
inputs: [
|
|
@@ -33426,7 +33502,7 @@ var Orchestrator_default3 = [
|
|
|
33426
33502
|
}
|
|
33427
33503
|
];
|
|
33428
33504
|
|
|
33429
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
33505
|
+
// ../../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
|
|
33430
33506
|
var ProtocolViewer_default3 = [
|
|
33431
33507
|
{
|
|
33432
33508
|
inputs: [
|
|
@@ -34645,7 +34721,7 @@ var ProtocolViewer_default3 = [
|
|
|
34645
34721
|
}
|
|
34646
34722
|
];
|
|
34647
34723
|
|
|
34648
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
34724
|
+
// ../../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
|
|
34649
34725
|
var UnifiedPaymentVerifier_default3 = [
|
|
34650
34726
|
{
|
|
34651
34727
|
inputs: [
|
|
@@ -35011,7 +35087,7 @@ var UnifiedPaymentVerifier_default3 = [
|
|
|
35011
35087
|
}
|
|
35012
35088
|
];
|
|
35013
35089
|
|
|
35014
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
35090
|
+
// ../../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
|
|
35015
35091
|
var Escrow_default4 = [
|
|
35016
35092
|
{
|
|
35017
35093
|
inputs: [
|
|
@@ -37223,7 +37299,7 @@ var Escrow_default4 = [
|
|
|
37223
37299
|
}
|
|
37224
37300
|
];
|
|
37225
37301
|
|
|
37226
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
37302
|
+
// ../../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
|
|
37227
37303
|
var Orchestrator_default4 = [
|
|
37228
37304
|
{
|
|
37229
37305
|
inputs: [
|
|
@@ -38370,7 +38446,7 @@ var Orchestrator_default4 = [
|
|
|
38370
38446
|
}
|
|
38371
38447
|
];
|
|
38372
38448
|
|
|
38373
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
38449
|
+
// ../../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
|
|
38374
38450
|
var UnifiedPaymentVerifier_default4 = [
|
|
38375
38451
|
{
|
|
38376
38452
|
inputs: [
|
|
@@ -38736,7 +38812,7 @@ var UnifiedPaymentVerifier_default4 = [
|
|
|
38736
38812
|
}
|
|
38737
38813
|
];
|
|
38738
38814
|
|
|
38739
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
38815
|
+
// ../../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
|
|
38740
38816
|
var ProtocolViewer_default4 = [
|
|
38741
38817
|
{
|
|
38742
38818
|
inputs: [
|
|
@@ -39955,7 +40031,7 @@ var ProtocolViewer_default4 = [
|
|
|
39955
40031
|
}
|
|
39956
40032
|
];
|
|
39957
40033
|
|
|
39958
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40034
|
+
// ../../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
|
|
39959
40035
|
var data49 = {
|
|
39960
40036
|
"INTENT_EXPIRATION_PERIOD": "21600",
|
|
39961
40037
|
"PROTOCOL_TAKER_FEE": "0",
|
|
@@ -39969,7 +40045,7 @@ var data49 = {
|
|
|
39969
40045
|
};
|
|
39970
40046
|
var base_default2 = data49;
|
|
39971
40047
|
|
|
39972
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40048
|
+
// ../../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
|
|
39973
40049
|
var data50 = {
|
|
39974
40050
|
"INTENT_EXPIRATION_PERIOD": "3600",
|
|
39975
40051
|
"PROTOCOL_TAKER_FEE": "0",
|
|
@@ -39983,11 +40059,11 @@ var data50 = {
|
|
|
39983
40059
|
};
|
|
39984
40060
|
var baseStaging_default2 = data50;
|
|
39985
40061
|
|
|
39986
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40062
|
+
// ../../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
|
|
39987
40063
|
var base_default3 = {
|
|
39988
40064
|
network: "base",
|
|
39989
40065
|
chainId: "8453",
|
|
39990
|
-
generatedAt: "2026-
|
|
40066
|
+
generatedAt: "2026-07-15T15:12:36.002Z",
|
|
39991
40067
|
methods: {
|
|
39992
40068
|
venmo: {
|
|
39993
40069
|
paymentMethodHash: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
@@ -40090,30 +40166,6 @@ var base_default3 = {
|
|
|
40090
40166
|
timestampBuffer: 30,
|
|
40091
40167
|
providerHashes: []
|
|
40092
40168
|
},
|
|
40093
|
-
"zelle-citi": {
|
|
40094
|
-
paymentMethodHash: "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
40095
|
-
currencies: [
|
|
40096
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40097
|
-
],
|
|
40098
|
-
timestampBuffer: 30,
|
|
40099
|
-
providerHashes: []
|
|
40100
|
-
},
|
|
40101
|
-
"zelle-chase": {
|
|
40102
|
-
paymentMethodHash: "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
40103
|
-
currencies: [
|
|
40104
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40105
|
-
],
|
|
40106
|
-
timestampBuffer: 30,
|
|
40107
|
-
providerHashes: []
|
|
40108
|
-
},
|
|
40109
|
-
"zelle-bofa": {
|
|
40110
|
-
paymentMethodHash: "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
40111
|
-
currencies: [
|
|
40112
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40113
|
-
],
|
|
40114
|
-
timestampBuffer: 30,
|
|
40115
|
-
providerHashes: []
|
|
40116
|
-
},
|
|
40117
40169
|
paypal: {
|
|
40118
40170
|
paymentMethodHash: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
40119
40171
|
currencies: [
|
|
@@ -40155,10 +40207,10 @@ var base_default3 = {
|
|
|
40155
40207
|
}
|
|
40156
40208
|
};
|
|
40157
40209
|
|
|
40158
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40210
|
+
// ../../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
|
|
40159
40211
|
var baseStaging_default3 = {
|
|
40160
40212
|
network: "base_staging",
|
|
40161
|
-
generatedAt: "2026-
|
|
40213
|
+
generatedAt: "2026-07-15T15:12:36.004Z",
|
|
40162
40214
|
methods: {
|
|
40163
40215
|
venmo: {
|
|
40164
40216
|
paymentMethodHash: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
@@ -40261,30 +40313,6 @@ var baseStaging_default3 = {
|
|
|
40261
40313
|
timestampBuffer: 30,
|
|
40262
40314
|
providerHashes: []
|
|
40263
40315
|
},
|
|
40264
|
-
"zelle-citi": {
|
|
40265
|
-
paymentMethodHash: "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
40266
|
-
currencies: [
|
|
40267
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40268
|
-
],
|
|
40269
|
-
timestampBuffer: 30,
|
|
40270
|
-
providerHashes: []
|
|
40271
|
-
},
|
|
40272
|
-
"zelle-chase": {
|
|
40273
|
-
paymentMethodHash: "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
40274
|
-
currencies: [
|
|
40275
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40276
|
-
],
|
|
40277
|
-
timestampBuffer: 30,
|
|
40278
|
-
providerHashes: []
|
|
40279
|
-
},
|
|
40280
|
-
"zelle-bofa": {
|
|
40281
|
-
paymentMethodHash: "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
40282
|
-
currencies: [
|
|
40283
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40284
|
-
],
|
|
40285
|
-
timestampBuffer: 30,
|
|
40286
|
-
providerHashes: []
|
|
40287
|
-
},
|
|
40288
40316
|
paypal: {
|
|
40289
40317
|
paymentMethodHash: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
40290
40318
|
currencies: [
|
|
@@ -40592,7 +40620,11 @@ function getContracts(chainId, env = "production") {
|
|
|
40592
40620
|
function getPaymentMethodsCatalog(_chainId, env = "production") {
|
|
40593
40621
|
const src = env === "staging" ? baseStagingPaymentMethods : basePaymentMethods;
|
|
40594
40622
|
const methods = src?.methods ?? {};
|
|
40595
|
-
return
|
|
40623
|
+
return Object.fromEntries(
|
|
40624
|
+
Object.entries(methods).filter(
|
|
40625
|
+
([name, entry]) => matchesPaymentMethodNameAndHash(name, entry.paymentMethodHash)
|
|
40626
|
+
)
|
|
40627
|
+
);
|
|
40596
40628
|
}
|
|
40597
40629
|
function getGatingServiceAddress(_chainId, _env = "production") {
|
|
40598
40630
|
return "0x396D31055Db28C0C6f36e8b36f18FE7227248a97";
|
|
@@ -40636,63 +40668,7 @@ function asciiToBytes32(value) {
|
|
|
40636
40668
|
return bytesToHex(padded);
|
|
40637
40669
|
}
|
|
40638
40670
|
|
|
40639
|
-
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.
|
|
40640
|
-
var lookups_default = {
|
|
40641
|
-
nameToHash: {
|
|
40642
|
-
venmo: "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
40643
|
-
revolut: "0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d",
|
|
40644
|
-
cashapp: "0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d",
|
|
40645
|
-
wise: "0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5",
|
|
40646
|
-
mercadopago: "0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483",
|
|
40647
|
-
zelle: "0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3",
|
|
40648
|
-
"zelle-citi": "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
40649
|
-
"zelle-chase": "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
40650
|
-
"zelle-bofa": "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
40651
|
-
paypal: "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
40652
|
-
monzo: "0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c",
|
|
40653
|
-
alipay: "0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff",
|
|
40654
|
-
chime: "0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb"
|
|
40655
|
-
},
|
|
40656
|
-
hashToName: {
|
|
40657
|
-
"0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268": "venmo",
|
|
40658
|
-
"0x617f88ab82b5c1b014c539f7e75121427f0bb50a4c58b187a238531e7d58605d": "revolut",
|
|
40659
|
-
"0x10940ee67cfb3c6c064569ec92c0ee934cd7afa18dd2ca2d6a2254fcb009c17d": "cashapp",
|
|
40660
|
-
"0x554a007c2217df766b977723b276671aee5ebb4adaea0edb6433c88b3e61dac5": "wise",
|
|
40661
|
-
"0xa5418819c024239299ea32e09defae8ec412c03e58f5c75f1b2fe84c857f5483": "mercadopago",
|
|
40662
|
-
"0xf752c7d19698ecb0bb8988abf9b9a53a4c3657f3bc8850a6fb59fdf3e3ce8cd3": "zelle",
|
|
40663
|
-
"0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d": "zelle-citi",
|
|
40664
|
-
"0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e": "zelle-chase",
|
|
40665
|
-
"0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5": "zelle-bofa",
|
|
40666
|
-
"0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f": "paypal",
|
|
40667
|
-
"0x62c7ed738ad3e7618111348af32691b5767777fbaf46a2d8943237625552645c": "monzo",
|
|
40668
|
-
"0xcac9daea62d7b89d75ac73af4ee14dcf25721012ae82b568c2ea5c808eaa04ff": "alipay",
|
|
40669
|
-
"0x5908bb0c9b87763ac6171d4104847667e7f02b4c47b574fe890c1f439ed128bb": "chime",
|
|
40670
|
-
"0xd9ff4fd6b39a3e3dd43c41d05662a5547de4a878bc97a65bcb352ade493cdc6b": "n26",
|
|
40671
|
-
"0xaea63ef983458674f54ee50cdaa7b09d80a5c6c03ed505f51c90b0f2b54abb01": "luxon"
|
|
40672
|
-
},
|
|
40673
|
-
zelleUnspecifiedHash: "0x7a656c6c65000000000000000000000000000000000000000000000000000000"
|
|
40674
|
-
};
|
|
40675
|
-
|
|
40676
|
-
// src/utils/paymentMethodHashes.ts
|
|
40677
|
-
var GENERIC_ZELLE_PAYMENT_METHOD_HASH = lookups_default.nameToHash.zelle;
|
|
40678
|
-
var METHOD_NAME_TO_HASH = {
|
|
40679
|
-
...lookups_default.nameToHash,
|
|
40680
|
-
zelle: GENERIC_ZELLE_PAYMENT_METHOD_HASH
|
|
40681
|
-
};
|
|
40682
|
-
var HASH_TO_METHOD_NAME = Object.entries(
|
|
40683
|
-
lookups_default.hashToName
|
|
40684
|
-
).reduce(
|
|
40685
|
-
(acc, [hash, name]) => {
|
|
40686
|
-
acc[hash.toLowerCase()] = name;
|
|
40687
|
-
return acc;
|
|
40688
|
-
},
|
|
40689
|
-
{
|
|
40690
|
-
[GENERIC_ZELLE_PAYMENT_METHOD_HASH.toLowerCase()]: "zelle",
|
|
40691
|
-
[lookups_default.zelleUnspecifiedHash.toLowerCase()]: "zelle"
|
|
40692
|
-
}
|
|
40693
|
-
);
|
|
40694
|
-
|
|
40695
|
-
// ../../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/_esm/paymentMethods/baseStaging.js
|
|
40671
|
+
// ../../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
|
|
40696
40672
|
var data51 = {
|
|
40697
40673
|
"methods": {
|
|
40698
40674
|
"venmo": {
|
|
@@ -40796,30 +40772,6 @@ var data51 = {
|
|
|
40796
40772
|
"timestampBuffer": 30,
|
|
40797
40773
|
"providerHashes": []
|
|
40798
40774
|
},
|
|
40799
|
-
"zelle-citi": {
|
|
40800
|
-
"paymentMethodHash": "0x817260692b75e93c7fbc51c71637d4075a975e221e1ebc1abeddfabd731fd90d",
|
|
40801
|
-
"currencies": [
|
|
40802
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40803
|
-
],
|
|
40804
|
-
"timestampBuffer": 30,
|
|
40805
|
-
"providerHashes": []
|
|
40806
|
-
},
|
|
40807
|
-
"zelle-chase": {
|
|
40808
|
-
"paymentMethodHash": "0x6aa1d1401e79ad0549dced8b1b96fb72c41cd02b32a7d9ea1fed54ba9e17152e",
|
|
40809
|
-
"currencies": [
|
|
40810
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40811
|
-
],
|
|
40812
|
-
"timestampBuffer": 30,
|
|
40813
|
-
"providerHashes": []
|
|
40814
|
-
},
|
|
40815
|
-
"zelle-bofa": {
|
|
40816
|
-
"paymentMethodHash": "0x4bc42b322a3ad413b91b2fde30549ca70d6ee900eded1681de91aaf32ffd7ab5",
|
|
40817
|
-
"currencies": [
|
|
40818
|
-
"0xc4ae21aac0c6549d71dd96035b7e0bdb6c79ebdba8891b666115bc976d16a29e"
|
|
40819
|
-
],
|
|
40820
|
-
"timestampBuffer": 30,
|
|
40821
|
-
"providerHashes": []
|
|
40822
|
-
},
|
|
40823
40775
|
"paypal": {
|
|
40824
40776
|
"paymentMethodHash": "0x3ccc3d4d5e769b1f82dc4988485551dc0cd3c7a3926d7d8a4dde91507199490f",
|
|
40825
40777
|
"currencies": [
|
|
@@ -40865,21 +40817,29 @@ var baseStaging_default4 = data51;
|
|
|
40865
40817
|
// src/utils/paymentResolution.ts
|
|
40866
40818
|
function getPaymentMethodMap(env, _network) {
|
|
40867
40819
|
if (env === "staging") {
|
|
40868
|
-
const m =
|
|
40820
|
+
const m = Object.fromEntries(
|
|
40821
|
+
Object.entries(baseStaging_default4?.methods ?? {}).filter(
|
|
40822
|
+
([name, entry]) => matchesPaymentMethodNameAndHash(name, entry?.paymentMethodHash ?? "")
|
|
40823
|
+
)
|
|
40824
|
+
);
|
|
40869
40825
|
return m && Object.keys(m).length ? m : null;
|
|
40870
40826
|
}
|
|
40871
40827
|
return null;
|
|
40872
40828
|
}
|
|
40873
40829
|
function resolvePaymentMethodHash(nameOrBytes, opts = {}) {
|
|
40874
40830
|
const { env = "production", network = "base" } = opts;
|
|
40875
|
-
if (nameOrBytes.startsWith("0x"))
|
|
40876
|
-
|
|
40877
|
-
|
|
40878
|
-
|
|
40879
|
-
|
|
40880
|
-
|
|
40831
|
+
if (nameOrBytes.startsWith("0x")) {
|
|
40832
|
+
const hash = ensureBytes32(nameOrBytes);
|
|
40833
|
+
if (!SUPPORTED_PAYMENT_METHOD_HASHES.has(hash.toLowerCase())) {
|
|
40834
|
+
throw new Error(`Unsupported payment method hash: ${hash}`);
|
|
40835
|
+
}
|
|
40836
|
+
return hash;
|
|
40881
40837
|
}
|
|
40882
|
-
|
|
40838
|
+
const key = nameOrBytes.toLowerCase();
|
|
40839
|
+
const mapping = getPaymentMethodMap(env);
|
|
40840
|
+
const mappedHash = mapping?.[key]?.paymentMethodHash ?? METHOD_NAME_TO_HASH[key];
|
|
40841
|
+
if (mappedHash) return mappedHash;
|
|
40842
|
+
throw new Error(`Unknown processorName: ${nameOrBytes}`);
|
|
40883
40843
|
}
|
|
40884
40844
|
function resolveFiatCurrencyBytes32(codeOrBytes) {
|
|
40885
40845
|
if (codeOrBytes.startsWith("0x")) return ensureBytes32(codeOrBytes);
|
|
@@ -40890,11 +40850,23 @@ function resolvePaymentMethodHashFromCatalog(processorName, catalog) {
|
|
|
40890
40850
|
throw new Error("processorName is required to resolve paymentMethodHash");
|
|
40891
40851
|
}
|
|
40892
40852
|
if (processorName.startsWith("0x")) {
|
|
40893
|
-
|
|
40853
|
+
const hash = ensureBytes32(processorName);
|
|
40854
|
+
if (!SUPPORTED_PAYMENT_METHOD_HASHES.has(hash.toLowerCase())) {
|
|
40855
|
+
throw new Error(`Unsupported payment method hash: ${hash}`);
|
|
40856
|
+
}
|
|
40857
|
+
return hash;
|
|
40894
40858
|
}
|
|
40895
40859
|
const key = processorName.toLowerCase();
|
|
40860
|
+
if (!METHOD_NAME_TO_HASH[key]) {
|
|
40861
|
+
throw new Error(`Unknown processorName: ${processorName}`);
|
|
40862
|
+
}
|
|
40896
40863
|
const entry = catalog?.[key];
|
|
40897
|
-
if (entry?.paymentMethodHash)
|
|
40864
|
+
if (entry?.paymentMethodHash) {
|
|
40865
|
+
if (!matchesPaymentMethodNameAndHash(key, entry.paymentMethodHash)) {
|
|
40866
|
+
throw new Error(`Unsupported payment method hash for processorName: ${processorName}`);
|
|
40867
|
+
}
|
|
40868
|
+
return entry.paymentMethodHash;
|
|
40869
|
+
}
|
|
40898
40870
|
const fallbackHash = METHOD_NAME_TO_HASH[key];
|
|
40899
40871
|
if (fallbackHash) return fallbackHash;
|
|
40900
40872
|
const available = Object.keys(catalog || {}).sort().join(", ");
|
|
@@ -40906,6 +40878,7 @@ function resolvePaymentMethodNameFromHash(hash, catalog) {
|
|
|
40906
40878
|
if (!hash) return void 0;
|
|
40907
40879
|
const target = ensureBytes32(hash);
|
|
40908
40880
|
for (const [name, entry] of Object.entries(catalog || {})) {
|
|
40881
|
+
if (!matchesPaymentMethodNameAndHash(name, entry?.paymentMethodHash ?? "")) continue;
|
|
40909
40882
|
if (entry?.paymentMethodHash?.toLowerCase() === target.toLowerCase()) return name;
|
|
40910
40883
|
}
|
|
40911
40884
|
return HASH_TO_METHOD_NAME[target.toLowerCase()];
|
|
@@ -41020,6 +40993,6 @@ function enrichPvIntentView(view, chainId, env = "production") {
|
|
|
41020
40993
|
};
|
|
41021
40994
|
}
|
|
41022
40995
|
|
|
41023
|
-
export { asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, getRateManagerContracts, parseBigIntLike, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash };
|
|
41024
|
-
//# sourceMappingURL=chunk-
|
|
41025
|
-
//# sourceMappingURL=chunk-
|
|
40996
|
+
export { METHOD_NAME_TO_HASH, PAYMENT_PLATFORMS, SUPPORTED_PAYMENT_METHOD_HASHES, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getGatingServiceAddress, getPaymentMethodsCatalog, getRateManagerContracts, matchesPaymentMethodNameAndHash, matchesQuotePaymentMethod, parseBigIntLike, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash };
|
|
40997
|
+
//# sourceMappingURL=chunk-FSIRPX4W.mjs.map
|
|
40998
|
+
//# sourceMappingURL=chunk-FSIRPX4W.mjs.map
|