@pafi-dev/core 0.1.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 +1157 -0
- package/dist/abi/index.cjs +31 -0
- package/dist/abi/index.cjs.map +1 -0
- package/dist/abi/index.d.cts +2479 -0
- package/dist/abi/index.d.ts +2479 -0
- package/dist/abi/index.js +31 -0
- package/dist/abi/index.js.map +1 -0
- package/dist/auth/index.cjs +11 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.cts +60 -0
- package/dist/auth/index.d.ts +60 -0
- package/dist/auth/index.js +11 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/chunk-27V32VNM.cjs +370 -0
- package/dist/chunk-27V32VNM.cjs.map +1 -0
- package/dist/chunk-2PIXFXA2.js +135 -0
- package/dist/chunk-2PIXFXA2.js.map +1 -0
- package/dist/chunk-37BBGXTS.js +149 -0
- package/dist/chunk-37BBGXTS.js.map +1 -0
- package/dist/chunk-4QOWQQCH.cjs +99 -0
- package/dist/chunk-4QOWQQCH.cjs.map +1 -0
- package/dist/chunk-4RYBJLF3.js +370 -0
- package/dist/chunk-4RYBJLF3.js.map +1 -0
- package/dist/chunk-5QJZT7VB.cjs +46 -0
- package/dist/chunk-5QJZT7VB.cjs.map +1 -0
- package/dist/chunk-5YH4D7QF.js +467 -0
- package/dist/chunk-5YH4D7QF.js.map +1 -0
- package/dist/chunk-BNTVOKYT.cjs +101 -0
- package/dist/chunk-BNTVOKYT.cjs.map +1 -0
- package/dist/chunk-C4ZDYG4D.js +101 -0
- package/dist/chunk-C4ZDYG4D.js.map +1 -0
- package/dist/chunk-CAE2BVKI.cjs +136 -0
- package/dist/chunk-CAE2BVKI.cjs.map +1 -0
- package/dist/chunk-CL3QSI4O.cjs +65 -0
- package/dist/chunk-CL3QSI4O.cjs.map +1 -0
- package/dist/chunk-CWP4PFOP.cjs +72 -0
- package/dist/chunk-CWP4PFOP.cjs.map +1 -0
- package/dist/chunk-DSCUHT3F.js +99 -0
- package/dist/chunk-DSCUHT3F.js.map +1 -0
- package/dist/chunk-FGKLDKJK.cjs +467 -0
- package/dist/chunk-FGKLDKJK.cjs.map +1 -0
- package/dist/chunk-FIKTQR7H.js +136 -0
- package/dist/chunk-FIKTQR7H.js.map +1 -0
- package/dist/chunk-FXNG4G22.js +2041 -0
- package/dist/chunk-FXNG4G22.js.map +1 -0
- package/dist/chunk-GWLEEXM4.cjs +163 -0
- package/dist/chunk-GWLEEXM4.cjs.map +1 -0
- package/dist/chunk-IPXARZ6F.cjs +135 -0
- package/dist/chunk-IPXARZ6F.cjs.map +1 -0
- package/dist/chunk-KFWZRL7I.js +65 -0
- package/dist/chunk-KFWZRL7I.js.map +1 -0
- package/dist/chunk-KW6M5FXY.js +129 -0
- package/dist/chunk-KW6M5FXY.js.map +1 -0
- package/dist/chunk-MEREIEE4.cjs +129 -0
- package/dist/chunk-MEREIEE4.cjs.map +1 -0
- package/dist/chunk-O4SMTUOY.js +163 -0
- package/dist/chunk-O4SMTUOY.js.map +1 -0
- package/dist/chunk-O7LQKCBT.cjs +149 -0
- package/dist/chunk-O7LQKCBT.cjs.map +1 -0
- package/dist/chunk-P56TUGTS.js +46 -0
- package/dist/chunk-P56TUGTS.js.map +1 -0
- package/dist/chunk-R4L66ZR5.js +72 -0
- package/dist/chunk-R4L66ZR5.js.map +1 -0
- package/dist/chunk-S2XRFFP3.cjs +2041 -0
- package/dist/chunk-S2XRFFP3.cjs.map +1 -0
- package/dist/contract/index.cjs +27 -0
- package/dist/contract/index.cjs.map +1 -0
- package/dist/contract/index.d.cts +18 -0
- package/dist/contract/index.d.ts +18 -0
- package/dist/contract/index.js +27 -0
- package/dist/contract/index.js.map +1 -0
- package/dist/eip712/index.cjs +20 -0
- package/dist/eip712/index.cjs.map +1 -0
- package/dist/eip712/index.d.cts +83 -0
- package/dist/eip712/index.d.ts +83 -0
- package/dist/eip712/index.js +20 -0
- package/dist/eip712/index.js.map +1 -0
- package/dist/index.cjs +412 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +239 -0
- package/dist/index.d.ts +239 -0
- package/dist/index.js +412 -0
- package/dist/index.js.map +1 -0
- package/dist/quoting/index.cjs +19 -0
- package/dist/quoting/index.cjs.map +1 -0
- package/dist/quoting/index.d.cts +59 -0
- package/dist/quoting/index.d.ts +59 -0
- package/dist/quoting/index.js +19 -0
- package/dist/quoting/index.js.map +1 -0
- package/dist/relay/index.cjs +19 -0
- package/dist/relay/index.cjs.map +1 -0
- package/dist/relay/index.d.cts +62 -0
- package/dist/relay/index.d.ts +62 -0
- package/dist/relay/index.js +19 -0
- package/dist/relay/index.js.map +1 -0
- package/dist/swap/index.cjs +29 -0
- package/dist/swap/index.cjs.map +1 -0
- package/dist/swap/index.d.cts +79 -0
- package/dist/swap/index.d.ts +79 -0
- package/dist/swap/index.js +29 -0
- package/dist/swap/index.js.map +1 -0
- package/dist/types-CkRJzrZr.d.cts +98 -0
- package/dist/types-CkRJzrZr.d.ts +98 -0
- package/package.json +114 -0
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/abi/pointTokenFactory.ts
|
|
2
|
+
var pointTokenFactoryAbi = [
|
|
3
|
+
{
|
|
4
|
+
"type": "constructor",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"stateMutability": "nonpayable"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "function",
|
|
10
|
+
"name": "UPGRADE_INTERFACE_VERSION",
|
|
11
|
+
"inputs": [],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"internalType": "string"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "view"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "function",
|
|
23
|
+
"name": "acceptOwnership",
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"outputs": [],
|
|
26
|
+
"stateMutability": "nonpayable"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "function",
|
|
30
|
+
"name": "createToken",
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"name": "issuer",
|
|
34
|
+
"type": "address",
|
|
35
|
+
"internalType": "address"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "signerAddress",
|
|
39
|
+
"type": "address",
|
|
40
|
+
"internalType": "address"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "name",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"internalType": "string"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "symbol",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"internalType": "string"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"outputs": [
|
|
54
|
+
{
|
|
55
|
+
"name": "token",
|
|
56
|
+
"type": "address",
|
|
57
|
+
"internalType": "address"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "",
|
|
61
|
+
"type": "address",
|
|
62
|
+
"internalType": "address"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"stateMutability": "nonpayable"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "function",
|
|
69
|
+
"name": "initialize",
|
|
70
|
+
"inputs": [
|
|
71
|
+
{
|
|
72
|
+
"name": "initialOwner",
|
|
73
|
+
"type": "address",
|
|
74
|
+
"internalType": "address"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "_issuerRegistry",
|
|
78
|
+
"type": "address",
|
|
79
|
+
"internalType": "address"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "_mintingOracle",
|
|
83
|
+
"type": "address",
|
|
84
|
+
"internalType": "address"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"outputs": [],
|
|
88
|
+
"stateMutability": "nonpayable"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "function",
|
|
92
|
+
"name": "issuerRegistry",
|
|
93
|
+
"inputs": [],
|
|
94
|
+
"outputs": [
|
|
95
|
+
{
|
|
96
|
+
"name": "",
|
|
97
|
+
"type": "address",
|
|
98
|
+
"internalType": "address"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"stateMutability": "view"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "function",
|
|
105
|
+
"name": "mintingOracle",
|
|
106
|
+
"inputs": [],
|
|
107
|
+
"outputs": [
|
|
108
|
+
{
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "address",
|
|
111
|
+
"internalType": "address"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"stateMutability": "view"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "function",
|
|
118
|
+
"name": "owner",
|
|
119
|
+
"inputs": [],
|
|
120
|
+
"outputs": [
|
|
121
|
+
{
|
|
122
|
+
"name": "",
|
|
123
|
+
"type": "address",
|
|
124
|
+
"internalType": "address"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"stateMutability": "view"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "function",
|
|
131
|
+
"name": "pendingOwner",
|
|
132
|
+
"inputs": [],
|
|
133
|
+
"outputs": [
|
|
134
|
+
{
|
|
135
|
+
"name": "",
|
|
136
|
+
"type": "address",
|
|
137
|
+
"internalType": "address"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"stateMutability": "view"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "function",
|
|
144
|
+
"name": "proxiableUUID",
|
|
145
|
+
"inputs": [],
|
|
146
|
+
"outputs": [
|
|
147
|
+
{
|
|
148
|
+
"name": "",
|
|
149
|
+
"type": "bytes32",
|
|
150
|
+
"internalType": "bytes32"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"stateMutability": "view"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "function",
|
|
157
|
+
"name": "renounceOwnership",
|
|
158
|
+
"inputs": [],
|
|
159
|
+
"outputs": [],
|
|
160
|
+
"stateMutability": "nonpayable"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "function",
|
|
164
|
+
"name": "setMintingOracle",
|
|
165
|
+
"inputs": [
|
|
166
|
+
{
|
|
167
|
+
"name": "_mintingOracle",
|
|
168
|
+
"type": "address",
|
|
169
|
+
"internalType": "address"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"outputs": [],
|
|
173
|
+
"stateMutability": "nonpayable"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "function",
|
|
177
|
+
"name": "setTokenImplementationAddress",
|
|
178
|
+
"inputs": [
|
|
179
|
+
{
|
|
180
|
+
"name": "impl",
|
|
181
|
+
"type": "address",
|
|
182
|
+
"internalType": "address"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"outputs": [],
|
|
186
|
+
"stateMutability": "nonpayable"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "function",
|
|
190
|
+
"name": "tokenImplementation",
|
|
191
|
+
"inputs": [],
|
|
192
|
+
"outputs": [
|
|
193
|
+
{
|
|
194
|
+
"name": "",
|
|
195
|
+
"type": "address",
|
|
196
|
+
"internalType": "address"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"stateMutability": "view"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "function",
|
|
203
|
+
"name": "transferOwnership",
|
|
204
|
+
"inputs": [
|
|
205
|
+
{
|
|
206
|
+
"name": "newOwner",
|
|
207
|
+
"type": "address",
|
|
208
|
+
"internalType": "address"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"outputs": [],
|
|
212
|
+
"stateMutability": "nonpayable"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "function",
|
|
216
|
+
"name": "upgradeToAndCall",
|
|
217
|
+
"inputs": [
|
|
218
|
+
{
|
|
219
|
+
"name": "newImplementation",
|
|
220
|
+
"type": "address",
|
|
221
|
+
"internalType": "address"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "data",
|
|
225
|
+
"type": "bytes",
|
|
226
|
+
"internalType": "bytes"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"outputs": [],
|
|
230
|
+
"stateMutability": "payable"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"type": "event",
|
|
234
|
+
"name": "Initialized",
|
|
235
|
+
"inputs": [
|
|
236
|
+
{
|
|
237
|
+
"name": "version",
|
|
238
|
+
"type": "uint64",
|
|
239
|
+
"indexed": false,
|
|
240
|
+
"internalType": "uint64"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"anonymous": false
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "event",
|
|
247
|
+
"name": "MintingOracleUpdated",
|
|
248
|
+
"inputs": [
|
|
249
|
+
{
|
|
250
|
+
"name": "mintingOracle",
|
|
251
|
+
"type": "address",
|
|
252
|
+
"indexed": true,
|
|
253
|
+
"internalType": "address"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"anonymous": false
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "event",
|
|
260
|
+
"name": "OwnershipTransferStarted",
|
|
261
|
+
"inputs": [
|
|
262
|
+
{
|
|
263
|
+
"name": "previousOwner",
|
|
264
|
+
"type": "address",
|
|
265
|
+
"indexed": true,
|
|
266
|
+
"internalType": "address"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "newOwner",
|
|
270
|
+
"type": "address",
|
|
271
|
+
"indexed": true,
|
|
272
|
+
"internalType": "address"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"anonymous": false
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "event",
|
|
279
|
+
"name": "OwnershipTransferred",
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"name": "previousOwner",
|
|
283
|
+
"type": "address",
|
|
284
|
+
"indexed": true,
|
|
285
|
+
"internalType": "address"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "newOwner",
|
|
289
|
+
"type": "address",
|
|
290
|
+
"indexed": true,
|
|
291
|
+
"internalType": "address"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"anonymous": false
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"type": "event",
|
|
298
|
+
"name": "TokenCreated",
|
|
299
|
+
"inputs": [
|
|
300
|
+
{
|
|
301
|
+
"name": "issuer",
|
|
302
|
+
"type": "address",
|
|
303
|
+
"indexed": true,
|
|
304
|
+
"internalType": "address"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "token",
|
|
308
|
+
"type": "address",
|
|
309
|
+
"indexed": true,
|
|
310
|
+
"internalType": "address"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"anonymous": false
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "event",
|
|
317
|
+
"name": "TokenImplementationAddressUpdated",
|
|
318
|
+
"inputs": [
|
|
319
|
+
{
|
|
320
|
+
"name": "tokenImplementation",
|
|
321
|
+
"type": "address",
|
|
322
|
+
"indexed": true,
|
|
323
|
+
"internalType": "address"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"anonymous": false
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"type": "event",
|
|
330
|
+
"name": "Upgraded",
|
|
331
|
+
"inputs": [
|
|
332
|
+
{
|
|
333
|
+
"name": "implementation",
|
|
334
|
+
"type": "address",
|
|
335
|
+
"indexed": true,
|
|
336
|
+
"internalType": "address"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"anonymous": false
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"type": "error",
|
|
343
|
+
"name": "AddressEmptyCode",
|
|
344
|
+
"inputs": [
|
|
345
|
+
{
|
|
346
|
+
"name": "target",
|
|
347
|
+
"type": "address",
|
|
348
|
+
"internalType": "address"
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "error",
|
|
354
|
+
"name": "ERC1967InvalidImplementation",
|
|
355
|
+
"inputs": [
|
|
356
|
+
{
|
|
357
|
+
"name": "implementation",
|
|
358
|
+
"type": "address",
|
|
359
|
+
"internalType": "address"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "error",
|
|
365
|
+
"name": "ERC1967NonPayable",
|
|
366
|
+
"inputs": []
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"type": "error",
|
|
370
|
+
"name": "FailedCall",
|
|
371
|
+
"inputs": []
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "error",
|
|
375
|
+
"name": "FailedDeployment",
|
|
376
|
+
"inputs": []
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"type": "error",
|
|
380
|
+
"name": "ImplementationNotSet",
|
|
381
|
+
"inputs": []
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"type": "error",
|
|
385
|
+
"name": "InsufficientBalance",
|
|
386
|
+
"inputs": [
|
|
387
|
+
{
|
|
388
|
+
"name": "balance",
|
|
389
|
+
"type": "uint256",
|
|
390
|
+
"internalType": "uint256"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "needed",
|
|
394
|
+
"type": "uint256",
|
|
395
|
+
"internalType": "uint256"
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"type": "error",
|
|
401
|
+
"name": "InvalidInitialization",
|
|
402
|
+
"inputs": []
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"type": "error",
|
|
406
|
+
"name": "MintingOracleNotSet",
|
|
407
|
+
"inputs": []
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"type": "error",
|
|
411
|
+
"name": "NotInitializing",
|
|
412
|
+
"inputs": []
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"type": "error",
|
|
416
|
+
"name": "OnlyIssuerRegistry",
|
|
417
|
+
"inputs": []
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "error",
|
|
421
|
+
"name": "OwnableInvalidOwner",
|
|
422
|
+
"inputs": [
|
|
423
|
+
{
|
|
424
|
+
"name": "owner",
|
|
425
|
+
"type": "address",
|
|
426
|
+
"internalType": "address"
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"type": "error",
|
|
432
|
+
"name": "OwnableUnauthorizedAccount",
|
|
433
|
+
"inputs": [
|
|
434
|
+
{
|
|
435
|
+
"name": "account",
|
|
436
|
+
"type": "address",
|
|
437
|
+
"internalType": "address"
|
|
438
|
+
}
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"type": "error",
|
|
443
|
+
"name": "UUPSUnauthorizedCallContext",
|
|
444
|
+
"inputs": []
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"type": "error",
|
|
448
|
+
"name": "UUPSUnsupportedProxiableUUID",
|
|
449
|
+
"inputs": [
|
|
450
|
+
{
|
|
451
|
+
"name": "slot",
|
|
452
|
+
"type": "bytes32",
|
|
453
|
+
"internalType": "bytes32"
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"type": "error",
|
|
459
|
+
"name": "ZeroAddress",
|
|
460
|
+
"inputs": []
|
|
461
|
+
}
|
|
462
|
+
];
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
exports.pointTokenFactoryAbi = pointTokenFactoryAbi;
|
|
467
|
+
//# sourceMappingURL=chunk-FGKLDKJK.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/chunk-FGKLDKJK.cjs","../src/abi/pointTokenFactory.ts"],"names":[],"mappings":"AAAA;ACCO,IAAM,qBAAA,EAAuB;AAAA,EAClC;AAAA,IACE,MAAA,EAAQ,aAAA;AAAA,IACR,QAAA,EAAU,CAAC,CAAA;AAAA,IACX,iBAAA,EAAmB;AAAA,EACrB,CAAA;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,UAAA;AAAA,IACR,MAAA,EAAQ,2BAAA;AAAA,IACR,QAAA,EAAU,CAAC,CAAA;AAAA,IACX,SAAA,EAAW;AAAA,MACT;AAAA,QACE,MAAA,EAAQ,EAAA;AAAA,QACR,MAAA,EAAQ,QAAA;AAAA,QACR,cAAA,EAAgB;AAAA,MAClB;AAAA,IACF,CAAA;AAAA,IACA,iBAAA,EAAmB;AAAA,EACrB,CAAA;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,UAAA;AAAA,IACR,MAAA,EAAQ,iBAAA;AAAA,IACR,QAAA,EAAU,CAAC,CAAA;AAAA,IACX,SAAA,EAAW,CAAC,CAAA;AAAA,IACZ,iBAAA,EAAmB;AAAA,EACrB,CAAA;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,UAAA;AAAA,IACR,MAAA,EAAQ,aAAA;AAAA,IACR,QAAA,EAAU;AAAA,MACR;AAAA,QACE,MAAA,EAAQ,QAAA;AAAA,QACR,MAAA,EAAQ,SAAA;AAAA,QACR,cAAA,EAAgB;AAAA,MAClB,CAAA;AAAA,MACA;AAAA,QACE,MAAA,EAAQ,eAAA;AAAA,QACR,MAAA,EAAQ,SAAA;AAAA,QACR,cAAA,EAAgB;AAAA,MAClB,CAAA;AAAA,MACA;AAAA,QACE,MAAA,EAAQ,MAAA;AAAA,QACR,M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AAQ,SAAA;AAAA,QACR,cAAA,EAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF,CAAA;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,OAAA;AAAA,IACR,MAAA,EAAQ,4BAAA;AAAA,IACR,QAAA,EAAU;AAAA,MACR;AAAA,QACE,MAAA,EAAQ,SAAA;AAAA,QACR,MAAA,EAAQ,SAAA;AAAA,QACR,cAAA,EAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF,CAAA;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,OAAA;AAAA,IACR,MAAA,EAAQ,6BAAA;AAAA,IACR,QAAA,EAAU,CAAC;AAAA,EACb,CAAA;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,OAAA;AAAA,IACR,MAAA,EAAQ,8BAAA;AAAA,IACR,QAAA,EAAU;AAAA,MACR;AAAA,QACE,MAAA,EAAQ,MAAA;AAAA,QACR,MAAA,EAAQ,SAAA;AAAA,QACR,cAAA,EAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF,CAAA;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,OAAA;AAAA,IACR,MAAA,EAAQ,aAAA;AAAA,IACR,QAAA,EAAU,CAAC;AAAA,EACb;AACF,CAAA;ADCA;AACA;AACE;AACF,oDAAC","file":"/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/chunk-FGKLDKJK.cjs","sourcesContent":[null,"/** ABI for PointTokenFactory (EIP-1167 proxy cloning, UUPS upgradeable) — auto-generated from Foundry artifacts, do not edit */\nexport const pointTokenFactoryAbi = [\n {\n \"type\": \"constructor\",\n \"inputs\": [],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"UPGRADE_INTERFACE_VERSION\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"string\",\n \"internalType\": \"string\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"acceptOwnership\",\n \"inputs\": [],\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"createToken\",\n \"inputs\": [\n {\n \"name\": \"issuer\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n },\n {\n \"name\": \"signerAddress\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n },\n {\n \"name\": \"name\",\n \"type\": \"string\",\n \"internalType\": \"string\"\n },\n {\n \"name\": \"symbol\",\n \"type\": \"string\",\n \"internalType\": \"string\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"token\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n },\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"initialize\",\n \"inputs\": [\n {\n \"name\": \"initialOwner\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n },\n {\n \"name\": \"_issuerRegistry\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n },\n {\n \"name\": \"_mintingOracle\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"issuerRegistry\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"mintingOracle\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"owner\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"pendingOwner\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"proxiableUUID\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"bytes32\",\n \"internalType\": \"bytes32\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"renounceOwnership\",\n \"inputs\": [],\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"setMintingOracle\",\n \"inputs\": [\n {\n \"name\": \"_mintingOracle\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"setTokenImplementationAddress\",\n \"inputs\": [\n {\n \"name\": \"impl\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"tokenImplementation\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"transferOwnership\",\n \"inputs\": [\n {\n \"name\": \"newOwner\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\"\n },\n {\n \"type\": \"function\",\n \"name\": \"upgradeToAndCall\",\n \"inputs\": [\n {\n \"name\": \"newImplementation\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n },\n {\n \"name\": \"data\",\n \"type\": \"bytes\",\n \"internalType\": \"bytes\"\n }\n ],\n \"outputs\": [],\n \"stateMutability\": \"payable\"\n },\n {\n \"type\": \"event\",\n \"name\": \"Initialized\",\n \"inputs\": [\n {\n \"name\": \"version\",\n \"type\": \"uint64\",\n \"indexed\": false,\n \"internalType\": \"uint64\"\n }\n ],\n \"anonymous\": false\n },\n {\n \"type\": \"event\",\n \"name\": \"MintingOracleUpdated\",\n \"inputs\": [\n {\n \"name\": \"mintingOracle\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n }\n ],\n \"anonymous\": false\n },\n {\n \"type\": \"event\",\n \"name\": \"OwnershipTransferStarted\",\n \"inputs\": [\n {\n \"name\": \"previousOwner\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n },\n {\n \"name\": \"newOwner\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n }\n ],\n \"anonymous\": false\n },\n {\n \"type\": \"event\",\n \"name\": \"OwnershipTransferred\",\n \"inputs\": [\n {\n \"name\": \"previousOwner\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n },\n {\n \"name\": \"newOwner\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n }\n ],\n \"anonymous\": false\n },\n {\n \"type\": \"event\",\n \"name\": \"TokenCreated\",\n \"inputs\": [\n {\n \"name\": \"issuer\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n },\n {\n \"name\": \"token\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n }\n ],\n \"anonymous\": false\n },\n {\n \"type\": \"event\",\n \"name\": \"TokenImplementationAddressUpdated\",\n \"inputs\": [\n {\n \"name\": \"tokenImplementation\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n }\n ],\n \"anonymous\": false\n },\n {\n \"type\": \"event\",\n \"name\": \"Upgraded\",\n \"inputs\": [\n {\n \"name\": \"implementation\",\n \"type\": \"address\",\n \"indexed\": true,\n \"internalType\": \"address\"\n }\n ],\n \"anonymous\": false\n },\n {\n \"type\": \"error\",\n \"name\": \"AddressEmptyCode\",\n \"inputs\": [\n {\n \"name\": \"target\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ]\n },\n {\n \"type\": \"error\",\n \"name\": \"ERC1967InvalidImplementation\",\n \"inputs\": [\n {\n \"name\": \"implementation\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ]\n },\n {\n \"type\": \"error\",\n \"name\": \"ERC1967NonPayable\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"FailedCall\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"FailedDeployment\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"ImplementationNotSet\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"InsufficientBalance\",\n \"inputs\": [\n {\n \"name\": \"balance\",\n \"type\": \"uint256\",\n \"internalType\": \"uint256\"\n },\n {\n \"name\": \"needed\",\n \"type\": \"uint256\",\n \"internalType\": \"uint256\"\n }\n ]\n },\n {\n \"type\": \"error\",\n \"name\": \"InvalidInitialization\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"MintingOracleNotSet\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"NotInitializing\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"OnlyIssuerRegistry\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"OwnableInvalidOwner\",\n \"inputs\": [\n {\n \"name\": \"owner\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ]\n },\n {\n \"type\": \"error\",\n \"name\": \"OwnableUnauthorizedAccount\",\n \"inputs\": [\n {\n \"name\": \"account\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ]\n },\n {\n \"type\": \"error\",\n \"name\": \"UUPSUnauthorizedCallContext\",\n \"inputs\": []\n },\n {\n \"type\": \"error\",\n \"name\": \"UUPSUnsupportedProxiableUUID\",\n \"inputs\": [\n {\n \"name\": \"slot\",\n \"type\": \"bytes32\",\n \"internalType\": \"bytes32\"\n }\n ]\n },\n {\n \"type\": \"error\",\n \"name\": \"ZeroAddress\",\n \"inputs\": []\n }\n] as const;\n"]}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {
|
|
2
|
+
v4QuoterAbi
|
|
3
|
+
} from "./chunk-KFWZRL7I.js";
|
|
4
|
+
import {
|
|
5
|
+
COMMON_POOLS,
|
|
6
|
+
POINT_TOKEN_POOLS,
|
|
7
|
+
V4_QUOTER_ADDRESSES
|
|
8
|
+
} from "./chunk-R4L66ZR5.js";
|
|
9
|
+
|
|
10
|
+
// src/quoting/routes.ts
|
|
11
|
+
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
12
|
+
function combineRoutes(chainId, pointTokenAddress) {
|
|
13
|
+
const commonPools = COMMON_POOLS[chainId] ?? [];
|
|
14
|
+
const pointPools = POINT_TOKEN_POOLS[chainId]?.[pointTokenAddress] ?? [];
|
|
15
|
+
return [...pointPools, ...commonPools];
|
|
16
|
+
}
|
|
17
|
+
function buildAllPaths(pools, tokenIn, tokenOut, maxHops = 3) {
|
|
18
|
+
const results = [];
|
|
19
|
+
function dfs(currentToken, currentPath, usedPoolIndices) {
|
|
20
|
+
if (currentPath.length > maxHops) return;
|
|
21
|
+
if (currentPath.length > 0 && currentToken.toLowerCase() === tokenOut.toLowerCase()) {
|
|
22
|
+
results.push([...currentPath]);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
for (let i = 0; i < pools.length; i++) {
|
|
26
|
+
if (usedPoolIndices.has(i)) continue;
|
|
27
|
+
const pool = pools[i];
|
|
28
|
+
const c0 = pool.currency0.toLowerCase();
|
|
29
|
+
const c1 = pool.currency1.toLowerCase();
|
|
30
|
+
const curr = currentToken.toLowerCase();
|
|
31
|
+
let nextToken = null;
|
|
32
|
+
if (curr === c0) {
|
|
33
|
+
nextToken = pool.currency1;
|
|
34
|
+
} else if (curr === c1) {
|
|
35
|
+
nextToken = pool.currency0;
|
|
36
|
+
}
|
|
37
|
+
if (!nextToken) continue;
|
|
38
|
+
const hop = {
|
|
39
|
+
intermediateCurrency: nextToken,
|
|
40
|
+
fee: pool.fee,
|
|
41
|
+
tickSpacing: pool.tickSpacing,
|
|
42
|
+
hooks: pool.hooks ?? ZERO_ADDRESS,
|
|
43
|
+
hookData: "0x"
|
|
44
|
+
};
|
|
45
|
+
usedPoolIndices.add(i);
|
|
46
|
+
currentPath.push(hop);
|
|
47
|
+
dfs(nextToken, currentPath, usedPoolIndices);
|
|
48
|
+
currentPath.pop();
|
|
49
|
+
usedPoolIndices.delete(i);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
dfs(tokenIn, [], /* @__PURE__ */ new Set());
|
|
53
|
+
return results;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// src/quoting/quote.ts
|
|
57
|
+
async function quoteExactInput(client, quoterAddress, exactCurrency, path, exactAmount) {
|
|
58
|
+
const [amountOut, gasEstimate] = await client.readContract({
|
|
59
|
+
address: quoterAddress,
|
|
60
|
+
abi: v4QuoterAbi,
|
|
61
|
+
functionName: "quoteExactInput",
|
|
62
|
+
args: [{ exactCurrency, path, exactAmount: BigInt(exactAmount) }]
|
|
63
|
+
});
|
|
64
|
+
return { amountOut, gasEstimate, path };
|
|
65
|
+
}
|
|
66
|
+
async function quoteExactInputSingle(client, quoterAddress, poolKey, zeroForOne, exactAmount, hookData) {
|
|
67
|
+
const [amountOut, gasEstimate] = await client.readContract({
|
|
68
|
+
address: quoterAddress,
|
|
69
|
+
abi: v4QuoterAbi,
|
|
70
|
+
functionName: "quoteExactInputSingle",
|
|
71
|
+
args: [
|
|
72
|
+
{
|
|
73
|
+
poolKey,
|
|
74
|
+
zeroForOne,
|
|
75
|
+
exactAmount: BigInt(exactAmount),
|
|
76
|
+
hookData
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
return { amountOut, gasEstimate };
|
|
81
|
+
}
|
|
82
|
+
async function quoteBestRoute(client, quoterAddress, exactCurrency, routes, exactAmount) {
|
|
83
|
+
const results = await client.multicall({
|
|
84
|
+
contracts: routes.map((path) => ({
|
|
85
|
+
address: quoterAddress,
|
|
86
|
+
abi: v4QuoterAbi,
|
|
87
|
+
functionName: "quoteExactInput",
|
|
88
|
+
args: [
|
|
89
|
+
{
|
|
90
|
+
exactCurrency,
|
|
91
|
+
path,
|
|
92
|
+
exactAmount: BigInt(exactAmount)
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
})),
|
|
96
|
+
allowFailure: true
|
|
97
|
+
});
|
|
98
|
+
const allRoutes = [];
|
|
99
|
+
for (let i = 0; i < results.length; i++) {
|
|
100
|
+
const r = results[i];
|
|
101
|
+
if (r.status === "success") {
|
|
102
|
+
const [amountOut, gasEstimate] = r.result;
|
|
103
|
+
allRoutes.push({ amountOut, gasEstimate, path: routes[i] });
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (allRoutes.length === 0) {
|
|
107
|
+
throw new Error("No valid routes found");
|
|
108
|
+
}
|
|
109
|
+
const bestRoute = allRoutes.reduce(
|
|
110
|
+
(best, current) => current.amountOut > best.amountOut ? current : best
|
|
111
|
+
);
|
|
112
|
+
return { bestRoute, allRoutes };
|
|
113
|
+
}
|
|
114
|
+
async function findBestQuote(client, chainId, tokenIn, tokenOut, exactAmount, pools = [], quoterAddress, maxHops = 3) {
|
|
115
|
+
const quoter = quoterAddress ?? V4_QUOTER_ADDRESSES[chainId];
|
|
116
|
+
if (!quoter) {
|
|
117
|
+
throw new Error(`No V4 Quoter address configured for chain ${chainId}`);
|
|
118
|
+
}
|
|
119
|
+
const commonPools = COMMON_POOLS[chainId] ?? [];
|
|
120
|
+
const allPools = [...pools, ...commonPools];
|
|
121
|
+
const paths = buildAllPaths(allPools, tokenIn, tokenOut, maxHops);
|
|
122
|
+
if (paths.length === 0) {
|
|
123
|
+
throw new Error(`No paths found from ${tokenIn} to ${tokenOut}`);
|
|
124
|
+
}
|
|
125
|
+
return quoteBestRoute(client, quoter, tokenIn, paths, exactAmount);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
combineRoutes,
|
|
130
|
+
buildAllPaths,
|
|
131
|
+
quoteExactInput,
|
|
132
|
+
quoteExactInputSingle,
|
|
133
|
+
quoteBestRoute,
|
|
134
|
+
findBestQuote
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=chunk-FIKTQR7H.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/quoting/routes.ts","../src/quoting/quote.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { PathKey, PoolKey } from \"../types\";\nimport { COMMON_POOLS, POINT_TOKEN_POOLS } from \"../constants\";\n\nconst ZERO_ADDRESS = \"0x0000000000000000000000000000000000000000\" as Address;\n\n/**\n * Combine point-token-specific pools and common pools for a given chain.\n * Point token pools are listed first so callers can prioritise them.\n */\nexport function combineRoutes(\n chainId: number,\n pointTokenAddress: Address,\n): PoolKey[] {\n const commonPools = COMMON_POOLS[chainId] ?? [];\n const pointPools = POINT_TOKEN_POOLS[chainId]?.[pointTokenAddress] ?? [];\n return [...pointPools, ...commonPools];\n}\n\n/**\n * Build all possible swap paths from `tokenIn` to `tokenOut` using the given\n * pools. Returns an array of PathKey[] routes (each up to `maxHops` hops).\n *\n * Supports both direct single-hop routes and multi-hop routes through\n * intermediate tokens. Each pool is used at most once per path.\n *\n * @param pools - Available pools to route through\n * @param tokenIn - Input token address\n * @param tokenOut - Desired output token address\n * @param maxHops - Maximum number of hops (default 3)\n */\nexport function buildAllPaths(\n pools: PoolKey[],\n tokenIn: Address,\n tokenOut: Address,\n maxHops = 3,\n): PathKey[][] {\n const results: PathKey[][] = [];\n\n function dfs(\n currentToken: Address,\n currentPath: PathKey[],\n usedPoolIndices: Set<number>,\n ) {\n if (currentPath.length > maxHops) return;\n\n // Check if we've reached the destination\n if (\n currentPath.length > 0 &&\n currentToken.toLowerCase() === tokenOut.toLowerCase()\n ) {\n results.push([...currentPath]);\n return;\n }\n\n for (let i = 0; i < pools.length; i++) {\n if (usedPoolIndices.has(i)) continue;\n\n const pool = pools[i]!;\n const c0 = pool.currency0.toLowerCase();\n const c1 = pool.currency1.toLowerCase();\n const curr = currentToken.toLowerCase();\n\n let nextToken: Address | null = null;\n if (curr === c0) {\n nextToken = pool.currency1 as Address;\n } else if (curr === c1) {\n nextToken = pool.currency0 as Address;\n }\n\n if (!nextToken) continue;\n\n const hop: PathKey = {\n intermediateCurrency: nextToken,\n fee: pool.fee,\n tickSpacing: pool.tickSpacing,\n hooks: pool.hooks ?? ZERO_ADDRESS,\n hookData: \"0x\",\n };\n\n usedPoolIndices.add(i);\n currentPath.push(hop);\n dfs(nextToken, currentPath, usedPoolIndices);\n currentPath.pop();\n usedPoolIndices.delete(i);\n }\n }\n\n dfs(tokenIn, [], new Set());\n return results;\n}\n","import type { Address, PublicClient } from \"viem\";\nimport type { BestQuote, PathKey, PoolKey, QuoteResult } from \"../types\";\nimport { v4QuoterAbi } from \"../abi/v4Quoter\";\nimport { buildAllPaths } from \"./routes\";\nimport { COMMON_POOLS, V4_QUOTER_ADDRESSES } from \"../constants\";\n\n/**\n * Quote exact-input for a multi-hop path.\n */\nexport async function quoteExactInput(\n client: PublicClient,\n quoterAddress: Address,\n exactCurrency: Address,\n path: PathKey[],\n exactAmount: bigint,\n): Promise<QuoteResult> {\n const [amountOut, gasEstimate] = await client.readContract({\n address: quoterAddress,\n abi: v4QuoterAbi,\n functionName: \"quoteExactInput\",\n args: [{ exactCurrency, path, exactAmount: BigInt(exactAmount) as unknown as number }],\n }) as [bigint, bigint];\n\n return { amountOut, gasEstimate, path };\n}\n\n/**\n * Quote exact-input for a single-hop swap, given an explicit PoolKey and direction.\n */\nexport async function quoteExactInputSingle(\n client: PublicClient,\n quoterAddress: Address,\n poolKey: PoolKey,\n zeroForOne: boolean,\n exactAmount: bigint,\n hookData: `0x${string}`,\n): Promise<{ amountOut: bigint; gasEstimate: bigint }> {\n const [amountOut, gasEstimate] = await client.readContract({\n address: quoterAddress,\n abi: v4QuoterAbi,\n functionName: \"quoteExactInputSingle\",\n args: [\n {\n poolKey,\n zeroForOne,\n exactAmount: BigInt(exactAmount) as unknown as number,\n hookData,\n },\n ],\n }) as [bigint, bigint];\n\n return { amountOut, gasEstimate };\n}\n\n/**\n * Try multiple PathKey[] routes and return the best quote plus all results.\n * Routes that fail (e.g. pool does not exist) are silently skipped.\n *\n * Uses viem multicall to batch all quotes into a single RPC call for speed.\n */\nexport async function quoteBestRoute(\n client: PublicClient,\n quoterAddress: Address,\n exactCurrency: Address,\n routes: PathKey[][],\n exactAmount: bigint,\n): Promise<BestQuote> {\n const results = await client.multicall({\n contracts: routes.map((path) => ({\n address: quoterAddress,\n abi: v4QuoterAbi,\n functionName: \"quoteExactInput\" as const,\n args: [\n {\n exactCurrency,\n path,\n exactAmount: BigInt(exactAmount) as unknown as number,\n },\n ],\n })),\n allowFailure: true,\n });\n\n const allRoutes: QuoteResult[] = [];\n for (let i = 0; i < results.length; i++) {\n const r = results[i]!;\n if (r.status === \"success\") {\n const [amountOut, gasEstimate] = r.result as unknown as [bigint, bigint];\n allRoutes.push({ amountOut, gasEstimate, path: routes[i]! });\n }\n }\n\n if (allRoutes.length === 0) {\n throw new Error(\"No valid routes found\");\n }\n\n const bestRoute = allRoutes.reduce((best, current) =>\n current.amountOut > best.amountOut ? current : best,\n );\n\n return { bestRoute, allRoutes };\n}\n\n/**\n * Find and quote the best swap route from `tokenIn` to `tokenOut`.\n *\n * Combines the caller's `pools` with `COMMON_POOLS[chainId]`, builds all\n * possible paths (up to `maxHops`), then quotes them all via a single\n * multicall and returns the best result.\n *\n * @param client - viem PublicClient\n * @param chainId - Chain ID (used to look up COMMON_POOLS and V4_QUOTER_ADDRESSES)\n * @param tokenIn - Input token address\n * @param tokenOut - Desired output token address\n * @param exactAmount - Exact input amount\n * @param pools - Additional pools to consider (e.g. point-token-specific)\n * @param quoterAddress - Override the default V4 Quoter address for this chain\n * @param maxHops - Maximum number of hops per path (default 3)\n */\nexport async function findBestQuote(\n client: PublicClient,\n chainId: number,\n tokenIn: Address,\n tokenOut: Address,\n exactAmount: bigint,\n pools: PoolKey[] = [],\n quoterAddress?: Address,\n maxHops = 3,\n): Promise<BestQuote> {\n const quoter = quoterAddress ?? V4_QUOTER_ADDRESSES[chainId];\n if (!quoter) {\n throw new Error(`No V4 Quoter address configured for chain ${chainId}`);\n }\n\n const commonPools = COMMON_POOLS[chainId] ?? [];\n const allPools = [...pools, ...commonPools];\n const paths = buildAllPaths(allPools, tokenIn, tokenOut, maxHops);\n\n if (paths.length === 0) {\n throw new Error(`No paths found from ${tokenIn} to ${tokenOut}`);\n }\n\n return quoteBestRoute(client, quoter, tokenIn, paths, exactAmount);\n}\n"],"mappings":";;;;;;;;;;AAIA,IAAM,eAAe;AAMd,SAAS,cACd,SACA,mBACW;AACX,QAAM,cAAc,aAAa,OAAO,KAAK,CAAC;AAC9C,QAAM,aAAa,kBAAkB,OAAO,IAAI,iBAAiB,KAAK,CAAC;AACvE,SAAO,CAAC,GAAG,YAAY,GAAG,WAAW;AACvC;AAcO,SAAS,cACd,OACA,SACA,UACA,UAAU,GACG;AACb,QAAM,UAAuB,CAAC;AAE9B,WAAS,IACP,cACA,aACA,iBACA;AACA,QAAI,YAAY,SAAS,QAAS;AAGlC,QACE,YAAY,SAAS,KACrB,aAAa,YAAY,MAAM,SAAS,YAAY,GACpD;AACA,cAAQ,KAAK,CAAC,GAAG,WAAW,CAAC;AAC7B;AAAA,IACF;AAEA,aAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,UAAI,gBAAgB,IAAI,CAAC,EAAG;AAE5B,YAAM,OAAO,MAAM,CAAC;AACpB,YAAM,KAAK,KAAK,UAAU,YAAY;AACtC,YAAM,KAAK,KAAK,UAAU,YAAY;AACtC,YAAM,OAAO,aAAa,YAAY;AAEtC,UAAI,YAA4B;AAChC,UAAI,SAAS,IAAI;AACf,oBAAY,KAAK;AAAA,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