@panoptic-eng/sdk 1.0.63 → 1.0.65

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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/StateView-q4yMpBY6.js +323 -0
  3. package/dist/cow/index.d.ts +1 -1
  4. package/dist/cow/index.js +1 -1
  5. package/dist/cow/index.js.map +1 -1
  6. package/dist/{cow-BsSaoahK.js → cow-BU9YOHkh.js} +1 -1
  7. package/dist/index.d.ts +34 -34
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +7 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/{irm-BDlcUNgJ.js → irm-DGyKOQXz.js} +4 -326
  12. package/dist/panoptic/v2/index.d.ts +161 -137
  13. package/dist/panoptic/v2/index.d.ts.map +1 -1
  14. package/dist/panoptic/v2/index.js +61 -51
  15. package/dist/panoptic/v2/index.js.map +1 -1
  16. package/dist/panoptic/v2/react-public.d.ts +168 -144
  17. package/dist/panoptic/v2/react-public.d.ts.map +1 -1
  18. package/dist/panoptic/v2/react-public.js +64 -54
  19. package/dist/panoptic/v2/react-public.js.map +1 -1
  20. package/dist/{rates-BwZnK0tG.js → rates-Y0Pbv1_x.js} +4 -4
  21. package/dist/{router-pm9PDlyH.js → router-CheXbrfz.js} +2 -2
  22. package/dist/{router-Dejb6MWu.js → router-DxE-iwYF.js} +304 -6
  23. package/dist/{transactionFees-aXQlx-lq.js → transactionFees-BF033Mob.js} +1 -1
  24. package/dist/uniswap/index.d.ts +194 -4
  25. package/dist/uniswap/index.d.ts.map +1 -1
  26. package/dist/uniswap/index.js +1316 -789
  27. package/dist/uniswap/index.js.map +1 -1
  28. package/dist/{v2-ccGPXWvq.js → v2-QFSAShVj.js} +29 -316
  29. package/dist/{writes--fM_8ggw.js → writes-BA21eyGF.js} +38 -38
  30. package/dist/zodiac/index.d.ts +3 -3
  31. package/dist/zodiac/index.js +3 -3
  32. package/dist/zodiac/index.js.map +1 -1
  33. package/package.json +1 -1
  34. /package/dist/{chainDeployments-BhXMBZ4B.js → chainDeployments-Do4NaZA_.js} +0 -0
  35. /package/dist/{greeks-CNi1-cnp.js → greeks-CGtgLUyh.js} +0 -0
  36. /package/dist/{providers-1WdiaRbY.js → providers-DubVMHWU.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { MulticallNoDataError, MulticallResultFailedError, MulticallResultMissingError, PanopticValidationError, collateralTrackerV2Abi, decodeLeftRightUnsigned, getBlockMeta, getPool, getPositions, panopticPoolV2Abi, riskEngineAbi } from "./rates-BwZnK0tG.js";
2
- import { NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, tickToSqrtPriceX96 } from "./greeks-CNi1-cnp.js";
1
+ import { MulticallNoDataError, MulticallResultFailedError, MulticallResultMissingError, PanopticValidationError, collateralTrackerV2Abi, decodeLeftRightUnsigned, getBlockMeta, getPool, getPositions, panopticPoolV2Abi, riskEngineAbi } from "./rates-Y0Pbv1_x.js";
2
+ import { NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, tickToSqrtPriceX96 } from "./greeks-CGtgLUyh.js";
3
3
  import { decodeFunctionResult, encodeFunctionData } from "viem";
4
4
  import { call } from "viem/actions";
5
5
 
@@ -371,328 +371,6 @@ const Multicall3Abi = [
371
371
  }
372
372
  ];
373
373
 
374
- //#endregion
375
- //#region src/abis/StateView.ts
376
- const StateViewAbi = [
377
- {
378
- inputs: [{
379
- internalType: "contract IPoolManager",
380
- name: "_poolManager",
381
- type: "address"
382
- }],
383
- stateMutability: "nonpayable",
384
- type: "constructor"
385
- },
386
- {
387
- inputs: [{
388
- internalType: "PoolId",
389
- name: "poolId",
390
- type: "bytes32"
391
- }],
392
- name: "getFeeGrowthGlobals",
393
- outputs: [{
394
- internalType: "uint256",
395
- name: "feeGrowthGlobal0",
396
- type: "uint256"
397
- }, {
398
- internalType: "uint256",
399
- name: "feeGrowthGlobal1",
400
- type: "uint256"
401
- }],
402
- stateMutability: "view",
403
- type: "function"
404
- },
405
- {
406
- inputs: [
407
- {
408
- internalType: "PoolId",
409
- name: "poolId",
410
- type: "bytes32"
411
- },
412
- {
413
- internalType: "int24",
414
- name: "tickLower",
415
- type: "int24"
416
- },
417
- {
418
- internalType: "int24",
419
- name: "tickUpper",
420
- type: "int24"
421
- }
422
- ],
423
- name: "getFeeGrowthInside",
424
- outputs: [{
425
- internalType: "uint256",
426
- name: "feeGrowthInside0X128",
427
- type: "uint256"
428
- }, {
429
- internalType: "uint256",
430
- name: "feeGrowthInside1X128",
431
- type: "uint256"
432
- }],
433
- stateMutability: "view",
434
- type: "function"
435
- },
436
- {
437
- inputs: [{
438
- internalType: "PoolId",
439
- name: "poolId",
440
- type: "bytes32"
441
- }],
442
- name: "getLiquidity",
443
- outputs: [{
444
- internalType: "uint128",
445
- name: "liquidity",
446
- type: "uint128"
447
- }],
448
- stateMutability: "view",
449
- type: "function"
450
- },
451
- {
452
- inputs: [{
453
- internalType: "PoolId",
454
- name: "poolId",
455
- type: "bytes32"
456
- }, {
457
- internalType: "bytes32",
458
- name: "positionId",
459
- type: "bytes32"
460
- }],
461
- name: "getPositionInfo",
462
- outputs: [
463
- {
464
- internalType: "uint128",
465
- name: "liquidity",
466
- type: "uint128"
467
- },
468
- {
469
- internalType: "uint256",
470
- name: "feeGrowthInside0LastX128",
471
- type: "uint256"
472
- },
473
- {
474
- internalType: "uint256",
475
- name: "feeGrowthInside1LastX128",
476
- type: "uint256"
477
- }
478
- ],
479
- stateMutability: "view",
480
- type: "function"
481
- },
482
- {
483
- inputs: [
484
- {
485
- internalType: "PoolId",
486
- name: "poolId",
487
- type: "bytes32"
488
- },
489
- {
490
- internalType: "address",
491
- name: "owner",
492
- type: "address"
493
- },
494
- {
495
- internalType: "int24",
496
- name: "tickLower",
497
- type: "int24"
498
- },
499
- {
500
- internalType: "int24",
501
- name: "tickUpper",
502
- type: "int24"
503
- },
504
- {
505
- internalType: "bytes32",
506
- name: "salt",
507
- type: "bytes32"
508
- }
509
- ],
510
- name: "getPositionInfo",
511
- outputs: [
512
- {
513
- internalType: "uint128",
514
- name: "liquidity",
515
- type: "uint128"
516
- },
517
- {
518
- internalType: "uint256",
519
- name: "feeGrowthInside0LastX128",
520
- type: "uint256"
521
- },
522
- {
523
- internalType: "uint256",
524
- name: "feeGrowthInside1LastX128",
525
- type: "uint256"
526
- }
527
- ],
528
- stateMutability: "view",
529
- type: "function"
530
- },
531
- {
532
- inputs: [{
533
- internalType: "PoolId",
534
- name: "poolId",
535
- type: "bytes32"
536
- }, {
537
- internalType: "bytes32",
538
- name: "positionId",
539
- type: "bytes32"
540
- }],
541
- name: "getPositionLiquidity",
542
- outputs: [{
543
- internalType: "uint128",
544
- name: "liquidity",
545
- type: "uint128"
546
- }],
547
- stateMutability: "view",
548
- type: "function"
549
- },
550
- {
551
- inputs: [{
552
- internalType: "PoolId",
553
- name: "poolId",
554
- type: "bytes32"
555
- }],
556
- name: "getSlot0",
557
- outputs: [
558
- {
559
- internalType: "uint160",
560
- name: "sqrtPriceX96",
561
- type: "uint160"
562
- },
563
- {
564
- internalType: "int24",
565
- name: "tick",
566
- type: "int24"
567
- },
568
- {
569
- internalType: "uint24",
570
- name: "protocolFee",
571
- type: "uint24"
572
- },
573
- {
574
- internalType: "uint24",
575
- name: "lpFee",
576
- type: "uint24"
577
- }
578
- ],
579
- stateMutability: "view",
580
- type: "function"
581
- },
582
- {
583
- inputs: [{
584
- internalType: "PoolId",
585
- name: "poolId",
586
- type: "bytes32"
587
- }, {
588
- internalType: "int16",
589
- name: "tick",
590
- type: "int16"
591
- }],
592
- name: "getTickBitmap",
593
- outputs: [{
594
- internalType: "uint256",
595
- name: "tickBitmap",
596
- type: "uint256"
597
- }],
598
- stateMutability: "view",
599
- type: "function"
600
- },
601
- {
602
- inputs: [{
603
- internalType: "PoolId",
604
- name: "poolId",
605
- type: "bytes32"
606
- }, {
607
- internalType: "int24",
608
- name: "tick",
609
- type: "int24"
610
- }],
611
- name: "getTickFeeGrowthOutside",
612
- outputs: [{
613
- internalType: "uint256",
614
- name: "feeGrowthOutside0X128",
615
- type: "uint256"
616
- }, {
617
- internalType: "uint256",
618
- name: "feeGrowthOutside1X128",
619
- type: "uint256"
620
- }],
621
- stateMutability: "view",
622
- type: "function"
623
- },
624
- {
625
- inputs: [{
626
- internalType: "PoolId",
627
- name: "poolId",
628
- type: "bytes32"
629
- }, {
630
- internalType: "int24",
631
- name: "tick",
632
- type: "int24"
633
- }],
634
- name: "getTickInfo",
635
- outputs: [
636
- {
637
- internalType: "uint128",
638
- name: "liquidityGross",
639
- type: "uint128"
640
- },
641
- {
642
- internalType: "int128",
643
- name: "liquidityNet",
644
- type: "int128"
645
- },
646
- {
647
- internalType: "uint256",
648
- name: "feeGrowthOutside0X128",
649
- type: "uint256"
650
- },
651
- {
652
- internalType: "uint256",
653
- name: "feeGrowthOutside1X128",
654
- type: "uint256"
655
- }
656
- ],
657
- stateMutability: "view",
658
- type: "function"
659
- },
660
- {
661
- inputs: [{
662
- internalType: "PoolId",
663
- name: "poolId",
664
- type: "bytes32"
665
- }, {
666
- internalType: "int24",
667
- name: "tick",
668
- type: "int24"
669
- }],
670
- name: "getTickLiquidity",
671
- outputs: [{
672
- internalType: "uint128",
673
- name: "liquidityGross",
674
- type: "uint128"
675
- }, {
676
- internalType: "int128",
677
- name: "liquidityNet",
678
- type: "int128"
679
- }],
680
- stateMutability: "view",
681
- type: "function"
682
- },
683
- {
684
- inputs: [],
685
- name: "poolManager",
686
- outputs: [{
687
- internalType: "contract IPoolManager",
688
- name: "",
689
- type: "address"
690
- }],
691
- stateMutability: "view",
692
- type: "function"
693
- }
694
- ];
695
-
696
374
  //#endregion
697
375
  //#region src/panoptic/v2/abis/panopticQuery.ts
698
376
  /**
@@ -1854,7 +1532,7 @@ async function getAccountSummaryRisk(params) {
1854
1532
  * ## Same-Block Guarantee
1855
1533
  * Tick and NLV are queried at the same target block.
1856
1534
  *
1857
- * Requires PanopticQuery for accurate value and premium accounting.
1535
+ * Requires PanopticQuery for accurate value and streamia accounting.
1858
1536
  *
1859
1537
  * @param params - The parameters
1860
1538
  * @returns Net liquidation value with block metadata
@@ -2446,4 +2124,4 @@ async function getIrmCurve(params) {
2446
2124
  }
2447
2125
 
2448
2126
  //#endregion
2449
- export { BORROW_INDEX_BITS, BPS_SCALE, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, Multicall3Abi, RATE_AT_TARGET_BITS, SECONDS_PER_YEAR, StateViewAbi, UNREALIZED_INTEREST_BITS, WAD as WAD$1, deriveSupplyRatePerSecWad, getAccountCollateral, getAccountSummaryBasic, getAccountSummaryRisk, getCollateralAddresses, getCollateralData, getCurrentRates, getInterestState, getIrmCurrent, getIrmCurve, getLiquidationPrices, getNetLiquidationValue, getNetLiquidationValues, isLiquidatable, packMarketState, panopticQueryAbi as panopticQueryAbi$1, ratePerSecWadToAprPct, readBlockAndAggregate, requireReturnData, utilizationBpsToWad, utilizationPctToWad };
2127
+ export { BORROW_INDEX_BITS, BPS_SCALE, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, Multicall3Abi, RATE_AT_TARGET_BITS, SECONDS_PER_YEAR, UNREALIZED_INTEREST_BITS, WAD as WAD$1, deriveSupplyRatePerSecWad, getAccountCollateral, getAccountSummaryBasic, getAccountSummaryRisk, getCollateralAddresses, getCollateralData, getCurrentRates, getInterestState, getIrmCurrent, getIrmCurve, getLiquidationPrices, getNetLiquidationValue, getNetLiquidationValues, isLiquidatable, packMarketState, panopticQueryAbi as panopticQueryAbi$1, ratePerSecWadToAprPct, readBlockAndAggregate, requireReturnData, utilizationBpsToWad, utilizationPctToWad };