@pafi-dev/core 0.18.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +55 -10
  2. package/dist/abi/index.cjs +14 -4
  3. package/dist/abi/index.cjs.map +1 -1
  4. package/dist/abi/index.d.cts +3846 -482
  5. package/dist/abi/index.d.ts +3846 -482
  6. package/dist/abi/index.js +15 -5
  7. package/dist/{chunk-KRHGFUDI.cjs → chunk-245YA3CQ.cjs} +87 -20
  8. package/dist/chunk-245YA3CQ.cjs.map +1 -0
  9. package/dist/{chunk-C7VB6WTL.cjs → chunk-2CU7ZH2A.cjs} +490 -497
  10. package/dist/chunk-2CU7ZH2A.cjs.map +1 -0
  11. package/dist/chunk-2DVM77Y2.cjs +5018 -0
  12. package/dist/chunk-2DVM77Y2.cjs.map +1 -0
  13. package/dist/{chunk-UZUDJXKE.cjs → chunk-3ZT7KTN4.cjs} +5 -3
  14. package/dist/chunk-3ZT7KTN4.cjs.map +1 -0
  15. package/dist/{chunk-H3X3FYUU.js → chunk-4VPIPVV5.js} +62 -35
  16. package/dist/chunk-4VPIPVV5.js.map +1 -0
  17. package/dist/{chunk-UCO5DXD6.js → chunk-5Y7MGN56.js} +87 -20
  18. package/dist/chunk-5Y7MGN56.js.map +1 -0
  19. package/dist/chunk-DQKCPH6B.cjs +199 -0
  20. package/dist/chunk-DQKCPH6B.cjs.map +1 -0
  21. package/dist/{chunk-4TNHRZ4X.js → chunk-K4GBOB5V.js} +4 -2
  22. package/dist/chunk-K4GBOB5V.js.map +1 -0
  23. package/dist/{chunk-LF5GIN5P.js → chunk-W2DHHR2N.js} +490 -497
  24. package/dist/chunk-W2DHHR2N.js.map +1 -0
  25. package/dist/chunk-ZQVYWMOG.js +5018 -0
  26. package/dist/chunk-ZQVYWMOG.js.map +1 -0
  27. package/dist/contract/index.cjs +8 -4
  28. package/dist/contract/index.cjs.map +1 -1
  29. package/dist/contract/index.d.cts +53 -27
  30. package/dist/contract/index.d.ts +53 -27
  31. package/dist/contract/index.js +13 -9
  32. package/dist/eip712/index.cjs +3 -3
  33. package/dist/eip712/index.d.cts +7 -1
  34. package/dist/eip712/index.d.ts +7 -1
  35. package/dist/eip712/index.js +2 -2
  36. package/dist/index.cjs +227 -38
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +601 -11
  39. package/dist/index.d.ts +601 -11
  40. package/dist/index.js +213 -24
  41. package/dist/index.js.map +1 -1
  42. package/dist/{types-C17pznGz.d.ts → types-Hn1zUPTt.d.cts} +46 -13
  43. package/dist/{types-C17pznGz.d.cts → types-Hn1zUPTt.d.ts} +46 -13
  44. package/package.json +1 -1
  45. package/dist/chunk-4TNHRZ4X.js.map +0 -1
  46. package/dist/chunk-C7VB6WTL.cjs.map +0 -1
  47. package/dist/chunk-H3X3FYUU.js.map +0 -1
  48. package/dist/chunk-KRHGFUDI.cjs.map +0 -1
  49. package/dist/chunk-LF5GIN5P.js.map +0 -1
  50. package/dist/chunk-TRYGIC2I.cjs +0 -172
  51. package/dist/chunk-TRYGIC2I.cjs.map +0 -1
  52. package/dist/chunk-UCO5DXD6.js.map +0 -1
  53. package/dist/chunk-UZUDJXKE.cjs.map +0 -1
  54. package/dist/chunk-XXLIIWIF.cjs +0 -711
  55. package/dist/chunk-XXLIIWIF.cjs.map +0 -1
  56. package/dist/chunk-ZJXXCG5P.js +0 -711
  57. package/dist/chunk-ZJXXCG5P.js.map +0 -1
@@ -1,711 +0,0 @@
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": "tokenOwner",
34
- "type": "address",
35
- "internalType": "address"
36
- },
37
- {
38
- "name": "issuer",
39
- "type": "address",
40
- "internalType": "address"
41
- },
42
- {
43
- "name": "signerAddress",
44
- "type": "address",
45
- "internalType": "address"
46
- },
47
- {
48
- "name": "name",
49
- "type": "string",
50
- "internalType": "string"
51
- },
52
- {
53
- "name": "symbol",
54
- "type": "string",
55
- "internalType": "string"
56
- }
57
- ],
58
- "outputs": [
59
- {
60
- "name": "token",
61
- "type": "address",
62
- "internalType": "address"
63
- },
64
- {
65
- "name": "",
66
- "type": "address",
67
- "internalType": "address"
68
- }
69
- ],
70
- "stateMutability": "nonpayable"
71
- },
72
- {
73
- "type": "function",
74
- "name": "initialize",
75
- "inputs": [
76
- {
77
- "name": "initialOwner",
78
- "type": "address",
79
- "internalType": "address"
80
- },
81
- {
82
- "name": "_issuerRegistry",
83
- "type": "address",
84
- "internalType": "address"
85
- },
86
- {
87
- "name": "_mintingOracle",
88
- "type": "address",
89
- "internalType": "address"
90
- },
91
- {
92
- "name": "_tokenImplementation",
93
- "type": "address",
94
- "internalType": "address"
95
- }
96
- ],
97
- "outputs": [],
98
- "stateMutability": "nonpayable"
99
- },
100
- {
101
- "type": "function",
102
- "name": "issuerRegistry",
103
- "inputs": [],
104
- "outputs": [
105
- {
106
- "name": "",
107
- "type": "address",
108
- "internalType": "address"
109
- }
110
- ],
111
- "stateMutability": "view"
112
- },
113
- {
114
- "type": "function",
115
- "name": "mintingOracle",
116
- "inputs": [],
117
- "outputs": [
118
- {
119
- "name": "",
120
- "type": "address",
121
- "internalType": "address"
122
- }
123
- ],
124
- "stateMutability": "view"
125
- },
126
- {
127
- "type": "function",
128
- "name": "owner",
129
- "inputs": [],
130
- "outputs": [
131
- {
132
- "name": "",
133
- "type": "address",
134
- "internalType": "address"
135
- }
136
- ],
137
- "stateMutability": "view"
138
- },
139
- {
140
- "type": "function",
141
- "name": "pendingOwner",
142
- "inputs": [],
143
- "outputs": [
144
- {
145
- "name": "",
146
- "type": "address",
147
- "internalType": "address"
148
- }
149
- ],
150
- "stateMutability": "view"
151
- },
152
- {
153
- "type": "function",
154
- "name": "proxiableUUID",
155
- "inputs": [],
156
- "outputs": [
157
- {
158
- "name": "",
159
- "type": "bytes32",
160
- "internalType": "bytes32"
161
- }
162
- ],
163
- "stateMutability": "view"
164
- },
165
- {
166
- "type": "function",
167
- "name": "renounceOwnership",
168
- "inputs": [],
169
- "outputs": [],
170
- "stateMutability": "nonpayable"
171
- },
172
- {
173
- "type": "function",
174
- "name": "setMintingOracle",
175
- "inputs": [
176
- {
177
- "name": "_mintingOracle",
178
- "type": "address",
179
- "internalType": "address"
180
- }
181
- ],
182
- "outputs": [],
183
- "stateMutability": "nonpayable"
184
- },
185
- {
186
- "type": "function",
187
- "name": "setTokenImplementationAddress",
188
- "inputs": [
189
- {
190
- "name": "impl",
191
- "type": "address",
192
- "internalType": "address"
193
- }
194
- ],
195
- "outputs": [],
196
- "stateMutability": "nonpayable"
197
- },
198
- {
199
- "type": "function",
200
- "name": "tokenImplementation",
201
- "inputs": [],
202
- "outputs": [
203
- {
204
- "name": "",
205
- "type": "address",
206
- "internalType": "address"
207
- }
208
- ],
209
- "stateMutability": "view"
210
- },
211
- {
212
- "type": "function",
213
- "name": "transferOwnership",
214
- "inputs": [
215
- {
216
- "name": "newOwner",
217
- "type": "address",
218
- "internalType": "address"
219
- }
220
- ],
221
- "outputs": [],
222
- "stateMutability": "nonpayable"
223
- },
224
- {
225
- "type": "function",
226
- "name": "upgradeToAndCall",
227
- "inputs": [
228
- {
229
- "name": "newImplementation",
230
- "type": "address",
231
- "internalType": "address"
232
- },
233
- {
234
- "name": "data",
235
- "type": "bytes",
236
- "internalType": "bytes"
237
- }
238
- ],
239
- "outputs": [],
240
- "stateMutability": "payable"
241
- },
242
- {
243
- "type": "event",
244
- "name": "Initialized",
245
- "inputs": [
246
- {
247
- "name": "version",
248
- "type": "uint64",
249
- "indexed": false,
250
- "internalType": "uint64"
251
- }
252
- ],
253
- "anonymous": false
254
- },
255
- {
256
- "type": "event",
257
- "name": "MintingOracleUpdated",
258
- "inputs": [
259
- {
260
- "name": "mintingOracle",
261
- "type": "address",
262
- "indexed": true,
263
- "internalType": "address"
264
- }
265
- ],
266
- "anonymous": false
267
- },
268
- {
269
- "type": "event",
270
- "name": "OwnershipTransferStarted",
271
- "inputs": [
272
- {
273
- "name": "previousOwner",
274
- "type": "address",
275
- "indexed": true,
276
- "internalType": "address"
277
- },
278
- {
279
- "name": "newOwner",
280
- "type": "address",
281
- "indexed": true,
282
- "internalType": "address"
283
- }
284
- ],
285
- "anonymous": false
286
- },
287
- {
288
- "type": "event",
289
- "name": "OwnershipTransferred",
290
- "inputs": [
291
- {
292
- "name": "previousOwner",
293
- "type": "address",
294
- "indexed": true,
295
- "internalType": "address"
296
- },
297
- {
298
- "name": "newOwner",
299
- "type": "address",
300
- "indexed": true,
301
- "internalType": "address"
302
- }
303
- ],
304
- "anonymous": false
305
- },
306
- {
307
- "type": "event",
308
- "name": "TokenCreated",
309
- "inputs": [
310
- {
311
- "name": "issuer",
312
- "type": "address",
313
- "indexed": true,
314
- "internalType": "address"
315
- },
316
- {
317
- "name": "token",
318
- "type": "address",
319
- "indexed": true,
320
- "internalType": "address"
321
- }
322
- ],
323
- "anonymous": false
324
- },
325
- {
326
- "type": "event",
327
- "name": "TokenImplementationAddressUpdated",
328
- "inputs": [
329
- {
330
- "name": "tokenImplementation",
331
- "type": "address",
332
- "indexed": true,
333
- "internalType": "address"
334
- }
335
- ],
336
- "anonymous": false
337
- },
338
- {
339
- "type": "event",
340
- "name": "Upgraded",
341
- "inputs": [
342
- {
343
- "name": "implementation",
344
- "type": "address",
345
- "indexed": true,
346
- "internalType": "address"
347
- }
348
- ],
349
- "anonymous": false
350
- },
351
- {
352
- "type": "error",
353
- "name": "AddressEmptyCode",
354
- "inputs": [
355
- {
356
- "name": "target",
357
- "type": "address",
358
- "internalType": "address"
359
- }
360
- ]
361
- },
362
- {
363
- "type": "error",
364
- "name": "ERC1967InvalidImplementation",
365
- "inputs": [
366
- {
367
- "name": "implementation",
368
- "type": "address",
369
- "internalType": "address"
370
- }
371
- ]
372
- },
373
- {
374
- "type": "error",
375
- "name": "ERC1967NonPayable",
376
- "inputs": []
377
- },
378
- {
379
- "type": "error",
380
- "name": "FailedCall",
381
- "inputs": []
382
- },
383
- {
384
- "type": "error",
385
- "name": "FailedDeployment",
386
- "inputs": []
387
- },
388
- {
389
- "type": "error",
390
- "name": "ImplementationNotSet",
391
- "inputs": []
392
- },
393
- {
394
- "type": "error",
395
- "name": "InsufficientBalance",
396
- "inputs": [
397
- {
398
- "name": "balance",
399
- "type": "uint256",
400
- "internalType": "uint256"
401
- },
402
- {
403
- "name": "needed",
404
- "type": "uint256",
405
- "internalType": "uint256"
406
- }
407
- ]
408
- },
409
- {
410
- "type": "error",
411
- "name": "InvalidInitialization",
412
- "inputs": []
413
- },
414
- {
415
- "type": "error",
416
- "name": "MintingOracleNotSet",
417
- "inputs": []
418
- },
419
- {
420
- "type": "error",
421
- "name": "NotInitializing",
422
- "inputs": []
423
- },
424
- {
425
- "type": "error",
426
- "name": "OnlyIssuerRegistry",
427
- "inputs": []
428
- },
429
- {
430
- "type": "error",
431
- "name": "OwnableInvalidOwner",
432
- "inputs": [
433
- {
434
- "name": "owner",
435
- "type": "address",
436
- "internalType": "address"
437
- }
438
- ]
439
- },
440
- {
441
- "type": "error",
442
- "name": "OwnableUnauthorizedAccount",
443
- "inputs": [
444
- {
445
- "name": "account",
446
- "type": "address",
447
- "internalType": "address"
448
- }
449
- ]
450
- },
451
- {
452
- "type": "error",
453
- "name": "UUPSUnauthorizedCallContext",
454
- "inputs": []
455
- },
456
- {
457
- "type": "error",
458
- "name": "UUPSUnsupportedProxiableUUID",
459
- "inputs": [
460
- {
461
- "name": "slot",
462
- "type": "bytes32",
463
- "internalType": "bytes32"
464
- }
465
- ]
466
- },
467
- {
468
- "type": "error",
469
- "name": "ZeroAddress",
470
- "inputs": []
471
- }
472
- ];
473
-
474
- // src/abi/erc20.ts
475
- var erc20Abi = [
476
- {
477
- type: "function",
478
- name: "name",
479
- stateMutability: "view",
480
- inputs: [],
481
- outputs: [{ name: "", type: "string" }]
482
- },
483
- {
484
- type: "function",
485
- name: "symbol",
486
- stateMutability: "view",
487
- inputs: [],
488
- outputs: [{ name: "", type: "string" }]
489
- },
490
- {
491
- type: "function",
492
- name: "decimals",
493
- stateMutability: "view",
494
- inputs: [],
495
- outputs: [{ name: "", type: "uint8" }]
496
- },
497
- {
498
- type: "function",
499
- name: "totalSupply",
500
- stateMutability: "view",
501
- inputs: [],
502
- outputs: [{ name: "", type: "uint256" }]
503
- },
504
- {
505
- type: "function",
506
- name: "balanceOf",
507
- stateMutability: "view",
508
- inputs: [{ name: "account", type: "address" }],
509
- outputs: [{ name: "", type: "uint256" }]
510
- },
511
- {
512
- type: "function",
513
- name: "transfer",
514
- stateMutability: "nonpayable",
515
- inputs: [
516
- { name: "to", type: "address" },
517
- { name: "amount", type: "uint256" }
518
- ],
519
- outputs: [{ name: "", type: "bool" }]
520
- },
521
- {
522
- type: "function",
523
- name: "approve",
524
- stateMutability: "nonpayable",
525
- inputs: [
526
- { name: "spender", type: "address" },
527
- { name: "amount", type: "uint256" }
528
- ],
529
- outputs: [{ name: "", type: "bool" }]
530
- },
531
- {
532
- type: "function",
533
- name: "allowance",
534
- stateMutability: "view",
535
- inputs: [
536
- { name: "owner", type: "address" },
537
- { name: "spender", type: "address" }
538
- ],
539
- outputs: [{ name: "", type: "uint256" }]
540
- },
541
- {
542
- type: "function",
543
- name: "transferFrom",
544
- stateMutability: "nonpayable",
545
- inputs: [
546
- { name: "from", type: "address" },
547
- { name: "to", type: "address" },
548
- { name: "amount", type: "uint256" }
549
- ],
550
- outputs: [{ name: "", type: "bool" }]
551
- },
552
- {
553
- type: "event",
554
- name: "Transfer",
555
- inputs: [
556
- { name: "from", type: "address", indexed: true },
557
- { name: "to", type: "address", indexed: true },
558
- { name: "value", type: "uint256", indexed: false }
559
- ]
560
- },
561
- {
562
- type: "event",
563
- name: "Approval",
564
- inputs: [
565
- { name: "owner", type: "address", indexed: true },
566
- { name: "spender", type: "address", indexed: true },
567
- { name: "value", type: "uint256", indexed: false }
568
- ]
569
- }
570
- ];
571
-
572
- // src/abi/universalRouter.ts
573
- var universalRouterAbi = [
574
- {
575
- type: "function",
576
- name: "execute",
577
- stateMutability: "payable",
578
- inputs: [
579
- { name: "commands", type: "bytes" },
580
- { name: "inputs", type: "bytes[]" },
581
- { name: "deadline", type: "uint256" }
582
- ],
583
- outputs: []
584
- }
585
- ];
586
-
587
- // src/abi/permit2.ts
588
- var permit2Abi = [
589
- {
590
- type: "function",
591
- name: "approve",
592
- stateMutability: "nonpayable",
593
- inputs: [
594
- { name: "token", type: "address" },
595
- { name: "spender", type: "address" },
596
- { name: "amount", type: "uint160" },
597
- { name: "expiration", type: "uint48" }
598
- ],
599
- outputs: []
600
- }
601
- ];
602
-
603
- // src/abi/v3QuoterV2.ts
604
- var v3QuoterV2Abi = [
605
- // quoteExactInputSingle — single-hop exact-input quote.
606
- //
607
- // The on-chain signature differs from the multi-hop variant: it takes
608
- // an inline `(tokenIn, tokenOut, amountIn, fee, sqrtPriceLimitX96)`
609
- // tuple (no path encoding). Pass `sqrtPriceLimitX96 = 0n` to disable
610
- // the price-limit guard (matches the on-chain "no limit" sentinel).
611
- {
612
- type: "function",
613
- name: "quoteExactInputSingle",
614
- stateMutability: "nonpayable",
615
- inputs: [
616
- {
617
- name: "params",
618
- type: "tuple",
619
- components: [
620
- { name: "tokenIn", type: "address" },
621
- { name: "tokenOut", type: "address" },
622
- { name: "amountIn", type: "uint256" },
623
- { name: "fee", type: "uint24" },
624
- { name: "sqrtPriceLimitX96", type: "uint160" }
625
- ]
626
- }
627
- ],
628
- outputs: [
629
- { name: "amountOut", type: "uint256" },
630
- { name: "sqrtPriceX96After", type: "uint160" },
631
- { name: "initializedTicksCrossed", type: "uint32" },
632
- { name: "gasEstimate", type: "uint256" }
633
- ]
634
- },
635
- // quoteExactInput — multi-hop exact-input quote.
636
- //
637
- // `path` is packed bytes: `tokenIn ‖ fee0 ‖ token1 ‖ fee1 ‖ … ‖ tokenOut`
638
- // where each fee is uint24. Build via `encodeV3Path()` in `@pafi-dev/core`.
639
- {
640
- type: "function",
641
- name: "quoteExactInput",
642
- stateMutability: "nonpayable",
643
- inputs: [
644
- { name: "path", type: "bytes" },
645
- { name: "amountIn", type: "uint256" }
646
- ],
647
- outputs: [
648
- { name: "amountOut", type: "uint256" },
649
- { name: "sqrtPriceX96AfterList", type: "uint160[]" },
650
- { name: "initializedTicksCrossedList", type: "uint32[]" },
651
- { name: "gasEstimate", type: "uint256" }
652
- ]
653
- },
654
- // quoteExactOutputSingle — single-hop exact-output quote.
655
- // Returns the INPUT amount required to receive `amount` of `tokenOut`.
656
- {
657
- type: "function",
658
- name: "quoteExactOutputSingle",
659
- stateMutability: "nonpayable",
660
- inputs: [
661
- {
662
- name: "params",
663
- type: "tuple",
664
- components: [
665
- { name: "tokenIn", type: "address" },
666
- { name: "tokenOut", type: "address" },
667
- { name: "amount", type: "uint256" },
668
- { name: "fee", type: "uint24" },
669
- { name: "sqrtPriceLimitX96", type: "uint160" }
670
- ]
671
- }
672
- ],
673
- outputs: [
674
- { name: "amountIn", type: "uint256" },
675
- { name: "sqrtPriceX96After", type: "uint160" },
676
- { name: "initializedTicksCrossed", type: "uint32" },
677
- { name: "gasEstimate", type: "uint256" }
678
- ]
679
- },
680
- // quoteExactOutput — multi-hop exact-output quote.
681
- //
682
- // CAUTION: `path` is packed in OUTPUT→INPUT order (reverse of
683
- // exact-input). The Quoter walks the path from the desired output
684
- // currency back to the input. `encodeV3Path()` produces input→output
685
- // bytes — reverse the underlying `tokens` array (and `fees`) when
686
- // calling this function.
687
- {
688
- type: "function",
689
- name: "quoteExactOutput",
690
- stateMutability: "nonpayable",
691
- inputs: [
692
- { name: "path", type: "bytes" },
693
- { name: "amountOut", type: "uint256" }
694
- ],
695
- outputs: [
696
- { name: "amountIn", type: "uint256" },
697
- { name: "sqrtPriceX96AfterList", type: "uint160[]" },
698
- { name: "initializedTicksCrossedList", type: "uint32[]" },
699
- { name: "gasEstimate", type: "uint256" }
700
- ]
701
- }
702
- ];
703
-
704
-
705
-
706
-
707
-
708
-
709
-
710
- exports.pointTokenFactoryAbi = pointTokenFactoryAbi; exports.erc20Abi = erc20Abi; exports.universalRouterAbi = universalRouterAbi; exports.permit2Abi = permit2Abi; exports.v3QuoterV2Abi = v3QuoterV2Abi;
711
- //# sourceMappingURL=chunk-XXLIIWIF.cjs.map