@defisaver/positions-sdk 2.1.34 → 2.1.36

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 (133) hide show
  1. package/.mocharc.json +4 -4
  2. package/.nvmrc +1 -1
  3. package/README.md +64 -64
  4. package/cjs/config/contracts.d.ts +91 -0
  5. package/cjs/config/contracts.js +9 -1
  6. package/cjs/contracts.d.ts +629 -0
  7. package/cjs/contracts.js +2 -1
  8. package/cjs/helpers/morphoBlueHelpers/index.js +66 -66
  9. package/cjs/savings/index.d.ts +4 -3
  10. package/cjs/savings/index.js +43 -12
  11. package/cjs/savings/morphoVaults/index.js +17 -17
  12. package/cjs/savings/skyOptions/index.d.ts +7 -0
  13. package/cjs/savings/skyOptions/index.js +122 -0
  14. package/cjs/savings/skyOptions/options.d.ts +2 -0
  15. package/cjs/savings/skyOptions/options.js +12 -0
  16. package/cjs/types/savings/index.d.ts +3 -1
  17. package/cjs/types/savings/index.js +1 -0
  18. package/cjs/types/savings/sky.d.ts +12 -0
  19. package/cjs/types/savings/sky.js +7 -0
  20. package/esm/config/contracts.d.ts +91 -0
  21. package/esm/config/contracts.js +8 -0
  22. package/esm/contracts.d.ts +629 -0
  23. package/esm/contracts.js +1 -0
  24. package/esm/helpers/morphoBlueHelpers/index.js +66 -66
  25. package/esm/savings/index.d.ts +4 -3
  26. package/esm/savings/index.js +43 -13
  27. package/esm/savings/morphoVaults/index.js +17 -17
  28. package/esm/savings/skyOptions/index.d.ts +7 -0
  29. package/esm/savings/skyOptions/index.js +81 -0
  30. package/esm/savings/skyOptions/options.d.ts +2 -0
  31. package/esm/savings/skyOptions/options.js +9 -0
  32. package/esm/types/savings/index.d.ts +3 -1
  33. package/esm/types/savings/index.js +1 -0
  34. package/esm/types/savings/sky.d.ts +12 -0
  35. package/esm/types/savings/sky.js +4 -0
  36. package/package.json +48 -48
  37. package/src/aaveV2/index.ts +240 -240
  38. package/src/aaveV3/index.ts +625 -614
  39. package/src/aaveV3/merit.ts +97 -97
  40. package/src/aaveV3/merkl.ts +74 -74
  41. package/src/claiming/aaveV3.ts +154 -154
  42. package/src/claiming/compV3.ts +22 -22
  43. package/src/claiming/ethena.ts +61 -61
  44. package/src/claiming/index.ts +12 -12
  45. package/src/claiming/king.ts +66 -66
  46. package/src/claiming/morphoBlue.ts +118 -118
  47. package/src/claiming/spark.ts +225 -225
  48. package/src/compoundV2/index.ts +244 -244
  49. package/src/compoundV3/index.ts +274 -274
  50. package/src/config/contracts.ts +1292 -1284
  51. package/src/constants/index.ts +10 -10
  52. package/src/contracts.ts +163 -161
  53. package/src/curveUsd/index.ts +254 -254
  54. package/src/eulerV2/index.ts +324 -324
  55. package/src/exchange/index.ts +25 -25
  56. package/src/fluid/index.ts +1800 -1800
  57. package/src/helpers/aaveHelpers/index.ts +187 -187
  58. package/src/helpers/compoundHelpers/index.ts +283 -283
  59. package/src/helpers/curveUsdHelpers/index.ts +40 -40
  60. package/src/helpers/eulerHelpers/index.ts +222 -222
  61. package/src/helpers/fluidHelpers/index.ts +326 -326
  62. package/src/helpers/index.ts +10 -10
  63. package/src/helpers/liquityV2Helpers/index.ts +82 -82
  64. package/src/helpers/llamaLendHelpers/index.ts +53 -53
  65. package/src/helpers/makerHelpers/index.ts +52 -52
  66. package/src/helpers/morphoBlueHelpers/index.ts +396 -396
  67. package/src/helpers/sparkHelpers/index.ts +158 -158
  68. package/src/index.ts +49 -49
  69. package/src/liquity/index.ts +159 -159
  70. package/src/liquityV2/index.ts +703 -703
  71. package/src/llamaLend/index.ts +305 -305
  72. package/src/maker/index.ts +223 -223
  73. package/src/markets/aave/index.ts +118 -118
  74. package/src/markets/aave/marketAssets.ts +54 -54
  75. package/src/markets/compound/index.ts +243 -243
  76. package/src/markets/compound/marketsAssets.ts +97 -97
  77. package/src/markets/curveUsd/index.ts +69 -69
  78. package/src/markets/euler/index.ts +26 -26
  79. package/src/markets/fluid/index.ts +2900 -2900
  80. package/src/markets/index.ts +25 -25
  81. package/src/markets/liquityV2/index.ts +102 -102
  82. package/src/markets/llamaLend/contractAddresses.ts +141 -141
  83. package/src/markets/llamaLend/index.ts +235 -235
  84. package/src/markets/morphoBlue/index.ts +971 -971
  85. package/src/markets/spark/index.ts +29 -29
  86. package/src/markets/spark/marketAssets.ts +12 -12
  87. package/src/moneymarket/moneymarketCommonService.ts +85 -85
  88. package/src/morphoBlue/index.ts +274 -274
  89. package/src/portfolio/index.ts +598 -598
  90. package/src/savings/index.ts +82 -55
  91. package/src/savings/makerDsr/index.ts +53 -53
  92. package/src/savings/makerDsr/options.ts +9 -9
  93. package/src/savings/morphoVaults/index.ts +80 -80
  94. package/src/savings/morphoVaults/options.ts +203 -203
  95. package/src/savings/skyOptions/index.ts +95 -0
  96. package/src/savings/skyOptions/options.ts +10 -0
  97. package/src/savings/sparkSavingsVaults/index.ts +60 -60
  98. package/src/savings/sparkSavingsVaults/options.ts +35 -35
  99. package/src/savings/yearnVaults/index.ts +73 -73
  100. package/src/savings/yearnVaults/options.ts +32 -32
  101. package/src/services/priceService.ts +278 -278
  102. package/src/services/utils.ts +115 -115
  103. package/src/services/viem.ts +34 -34
  104. package/src/setup.ts +8 -8
  105. package/src/spark/index.ts +456 -456
  106. package/src/staking/eligibility.ts +53 -53
  107. package/src/staking/index.ts +1 -1
  108. package/src/staking/staking.ts +186 -186
  109. package/src/types/aave.ts +196 -196
  110. package/src/types/claiming.ts +114 -114
  111. package/src/types/common.ts +107 -107
  112. package/src/types/compound.ts +144 -144
  113. package/src/types/curveUsd.ts +123 -123
  114. package/src/types/euler.ts +175 -175
  115. package/src/types/fluid.ts +483 -483
  116. package/src/types/index.ts +14 -14
  117. package/src/types/liquity.ts +30 -30
  118. package/src/types/liquityV2.ts +126 -126
  119. package/src/types/llamaLend.ts +159 -159
  120. package/src/types/maker.ts +63 -63
  121. package/src/types/merit.ts +1 -1
  122. package/src/types/merkl.ts +70 -70
  123. package/src/types/morphoBlue.ts +200 -200
  124. package/src/types/portfolio.ts +60 -60
  125. package/src/types/savings/index.ts +22 -20
  126. package/src/types/savings/makerDsr.ts +13 -13
  127. package/src/types/savings/morphoVaults.ts +33 -33
  128. package/src/types/savings/sky.ts +14 -0
  129. package/src/types/savings/sparkSavingsVaults.ts +15 -15
  130. package/src/types/savings/yearnVaults.ts +14 -14
  131. package/src/types/spark.ts +133 -133
  132. package/src/umbrella/index.ts +69 -69
  133. package/src/umbrella/umbrellaUtils.ts +29 -29
@@ -543286,3 +543286,632 @@ export declare const MakerDsrContractViem: (client: Client, network: NetworkNumb
543286
543286
  type: string;
543287
543287
  }[];
543288
543288
  };
543289
+ export declare const SkySavingsContractView: (client: Client, network: NetworkNumber, block?: Blockish) => {
543290
+ read: {
543291
+ totalSupply: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
543292
+ readonly inputs: readonly [{
543293
+ readonly internalType: "address";
543294
+ readonly name: "implementation";
543295
+ readonly type: "address";
543296
+ }, {
543297
+ readonly internalType: "bytes";
543298
+ readonly name: "_data";
543299
+ readonly type: "bytes";
543300
+ }];
543301
+ readonly stateMutability: "payable";
543302
+ readonly type: "constructor";
543303
+ }, {
543304
+ readonly inputs: readonly [{
543305
+ readonly internalType: "address";
543306
+ readonly name: "target";
543307
+ readonly type: "address";
543308
+ }];
543309
+ readonly name: "AddressEmptyCode";
543310
+ readonly type: "error";
543311
+ }, {
543312
+ readonly inputs: readonly [{
543313
+ readonly internalType: "address";
543314
+ readonly name: "implementation";
543315
+ readonly type: "address";
543316
+ }];
543317
+ readonly name: "ERC1967InvalidImplementation";
543318
+ readonly type: "error";
543319
+ }, {
543320
+ readonly inputs: readonly [];
543321
+ readonly name: "ERC1967NonPayable";
543322
+ readonly type: "error";
543323
+ }, {
543324
+ readonly inputs: readonly [];
543325
+ readonly name: "FailedInnerCall";
543326
+ readonly type: "error";
543327
+ }, {
543328
+ readonly anonymous: false;
543329
+ readonly inputs: readonly [{
543330
+ readonly indexed: true;
543331
+ readonly internalType: "address";
543332
+ readonly name: "implementation";
543333
+ readonly type: "address";
543334
+ }];
543335
+ readonly name: "Upgraded";
543336
+ readonly type: "event";
543337
+ }, {
543338
+ readonly stateMutability: "payable";
543339
+ readonly type: "fallback";
543340
+ }, {
543341
+ readonly inputs: readonly [{
543342
+ readonly internalType: "address";
543343
+ readonly name: "account";
543344
+ readonly type: "address";
543345
+ }];
543346
+ readonly name: "balanceOf";
543347
+ readonly outputs: readonly [{
543348
+ readonly internalType: "uint256";
543349
+ readonly name: "";
543350
+ readonly type: "uint256";
543351
+ }];
543352
+ readonly stateMutability: "view";
543353
+ readonly type: "function";
543354
+ }, {
543355
+ readonly inputs: readonly [];
543356
+ readonly name: "totalAssets";
543357
+ readonly outputs: readonly [{
543358
+ readonly internalType: "uint256";
543359
+ readonly name: "";
543360
+ readonly type: "uint256";
543361
+ }];
543362
+ readonly stateMutability: "view";
543363
+ readonly type: "function";
543364
+ }, {
543365
+ readonly inputs: readonly [];
543366
+ readonly name: "totalSupply";
543367
+ readonly outputs: readonly [{
543368
+ readonly internalType: "uint256";
543369
+ readonly name: "";
543370
+ readonly type: "uint256";
543371
+ }];
543372
+ readonly stateMutability: "view";
543373
+ readonly type: "function";
543374
+ }], "totalSupply", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
543375
+ balanceOf: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
543376
+ readonly inputs: readonly [{
543377
+ readonly internalType: "address";
543378
+ readonly name: "implementation";
543379
+ readonly type: "address";
543380
+ }, {
543381
+ readonly internalType: "bytes";
543382
+ readonly name: "_data";
543383
+ readonly type: "bytes";
543384
+ }];
543385
+ readonly stateMutability: "payable";
543386
+ readonly type: "constructor";
543387
+ }, {
543388
+ readonly inputs: readonly [{
543389
+ readonly internalType: "address";
543390
+ readonly name: "target";
543391
+ readonly type: "address";
543392
+ }];
543393
+ readonly name: "AddressEmptyCode";
543394
+ readonly type: "error";
543395
+ }, {
543396
+ readonly inputs: readonly [{
543397
+ readonly internalType: "address";
543398
+ readonly name: "implementation";
543399
+ readonly type: "address";
543400
+ }];
543401
+ readonly name: "ERC1967InvalidImplementation";
543402
+ readonly type: "error";
543403
+ }, {
543404
+ readonly inputs: readonly [];
543405
+ readonly name: "ERC1967NonPayable";
543406
+ readonly type: "error";
543407
+ }, {
543408
+ readonly inputs: readonly [];
543409
+ readonly name: "FailedInnerCall";
543410
+ readonly type: "error";
543411
+ }, {
543412
+ readonly anonymous: false;
543413
+ readonly inputs: readonly [{
543414
+ readonly indexed: true;
543415
+ readonly internalType: "address";
543416
+ readonly name: "implementation";
543417
+ readonly type: "address";
543418
+ }];
543419
+ readonly name: "Upgraded";
543420
+ readonly type: "event";
543421
+ }, {
543422
+ readonly stateMutability: "payable";
543423
+ readonly type: "fallback";
543424
+ }, {
543425
+ readonly inputs: readonly [{
543426
+ readonly internalType: "address";
543427
+ readonly name: "account";
543428
+ readonly type: "address";
543429
+ }];
543430
+ readonly name: "balanceOf";
543431
+ readonly outputs: readonly [{
543432
+ readonly internalType: "uint256";
543433
+ readonly name: "";
543434
+ readonly type: "uint256";
543435
+ }];
543436
+ readonly stateMutability: "view";
543437
+ readonly type: "function";
543438
+ }, {
543439
+ readonly inputs: readonly [];
543440
+ readonly name: "totalAssets";
543441
+ readonly outputs: readonly [{
543442
+ readonly internalType: "uint256";
543443
+ readonly name: "";
543444
+ readonly type: "uint256";
543445
+ }];
543446
+ readonly stateMutability: "view";
543447
+ readonly type: "function";
543448
+ }, {
543449
+ readonly inputs: readonly [];
543450
+ readonly name: "totalSupply";
543451
+ readonly outputs: readonly [{
543452
+ readonly internalType: "uint256";
543453
+ readonly name: "";
543454
+ readonly type: "uint256";
543455
+ }];
543456
+ readonly stateMutability: "view";
543457
+ readonly type: "function";
543458
+ }], "balanceOf", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
543459
+ totalAssets: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
543460
+ readonly inputs: readonly [{
543461
+ readonly internalType: "address";
543462
+ readonly name: "implementation";
543463
+ readonly type: "address";
543464
+ }, {
543465
+ readonly internalType: "bytes";
543466
+ readonly name: "_data";
543467
+ readonly type: "bytes";
543468
+ }];
543469
+ readonly stateMutability: "payable";
543470
+ readonly type: "constructor";
543471
+ }, {
543472
+ readonly inputs: readonly [{
543473
+ readonly internalType: "address";
543474
+ readonly name: "target";
543475
+ readonly type: "address";
543476
+ }];
543477
+ readonly name: "AddressEmptyCode";
543478
+ readonly type: "error";
543479
+ }, {
543480
+ readonly inputs: readonly [{
543481
+ readonly internalType: "address";
543482
+ readonly name: "implementation";
543483
+ readonly type: "address";
543484
+ }];
543485
+ readonly name: "ERC1967InvalidImplementation";
543486
+ readonly type: "error";
543487
+ }, {
543488
+ readonly inputs: readonly [];
543489
+ readonly name: "ERC1967NonPayable";
543490
+ readonly type: "error";
543491
+ }, {
543492
+ readonly inputs: readonly [];
543493
+ readonly name: "FailedInnerCall";
543494
+ readonly type: "error";
543495
+ }, {
543496
+ readonly anonymous: false;
543497
+ readonly inputs: readonly [{
543498
+ readonly indexed: true;
543499
+ readonly internalType: "address";
543500
+ readonly name: "implementation";
543501
+ readonly type: "address";
543502
+ }];
543503
+ readonly name: "Upgraded";
543504
+ readonly type: "event";
543505
+ }, {
543506
+ readonly stateMutability: "payable";
543507
+ readonly type: "fallback";
543508
+ }, {
543509
+ readonly inputs: readonly [{
543510
+ readonly internalType: "address";
543511
+ readonly name: "account";
543512
+ readonly type: "address";
543513
+ }];
543514
+ readonly name: "balanceOf";
543515
+ readonly outputs: readonly [{
543516
+ readonly internalType: "uint256";
543517
+ readonly name: "";
543518
+ readonly type: "uint256";
543519
+ }];
543520
+ readonly stateMutability: "view";
543521
+ readonly type: "function";
543522
+ }, {
543523
+ readonly inputs: readonly [];
543524
+ readonly name: "totalAssets";
543525
+ readonly outputs: readonly [{
543526
+ readonly internalType: "uint256";
543527
+ readonly name: "";
543528
+ readonly type: "uint256";
543529
+ }];
543530
+ readonly stateMutability: "view";
543531
+ readonly type: "function";
543532
+ }, {
543533
+ readonly inputs: readonly [];
543534
+ readonly name: "totalSupply";
543535
+ readonly outputs: readonly [{
543536
+ readonly internalType: "uint256";
543537
+ readonly name: "";
543538
+ readonly type: "uint256";
543539
+ }];
543540
+ readonly stateMutability: "view";
543541
+ readonly type: "function";
543542
+ }], "totalAssets", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
543543
+ };
543544
+ createEventFilter: {
543545
+ Upgraded: <const args extends {
543546
+ implementation?: `0x${string}` | `0x${string}`[] | null | undefined;
543547
+ } | undefined, strict extends boolean | undefined = undefined>(args: {
543548
+ implementation?: `0x${string}` | `0x${string}`[] | null | undefined;
543549
+ } | ({
543550
+ implementation?: `0x${string}` | `0x${string}`[] | null | undefined;
543551
+ } extends infer T ? T extends {
543552
+ implementation?: `0x${string}` | `0x${string}`[] | null | undefined;
543553
+ } ? T extends args ? Readonly<args> : never : never : never), options?: ({
543554
+ fromBlock?: bigint | import("viem").BlockTag | undefined;
543555
+ toBlock?: bigint | import("viem").BlockTag | undefined;
543556
+ } & {
543557
+ strict?: strict | undefined;
543558
+ }) | undefined) => Promise<import("viem").CreateContractEventFilterReturnType<readonly [{
543559
+ readonly inputs: readonly [{
543560
+ readonly internalType: "address";
543561
+ readonly name: "implementation";
543562
+ readonly type: "address";
543563
+ }, {
543564
+ readonly internalType: "bytes";
543565
+ readonly name: "_data";
543566
+ readonly type: "bytes";
543567
+ }];
543568
+ readonly stateMutability: "payable";
543569
+ readonly type: "constructor";
543570
+ }, {
543571
+ readonly inputs: readonly [{
543572
+ readonly internalType: "address";
543573
+ readonly name: "target";
543574
+ readonly type: "address";
543575
+ }];
543576
+ readonly name: "AddressEmptyCode";
543577
+ readonly type: "error";
543578
+ }, {
543579
+ readonly inputs: readonly [{
543580
+ readonly internalType: "address";
543581
+ readonly name: "implementation";
543582
+ readonly type: "address";
543583
+ }];
543584
+ readonly name: "ERC1967InvalidImplementation";
543585
+ readonly type: "error";
543586
+ }, {
543587
+ readonly inputs: readonly [];
543588
+ readonly name: "ERC1967NonPayable";
543589
+ readonly type: "error";
543590
+ }, {
543591
+ readonly inputs: readonly [];
543592
+ readonly name: "FailedInnerCall";
543593
+ readonly type: "error";
543594
+ }, {
543595
+ readonly anonymous: false;
543596
+ readonly inputs: readonly [{
543597
+ readonly indexed: true;
543598
+ readonly internalType: "address";
543599
+ readonly name: "implementation";
543600
+ readonly type: "address";
543601
+ }];
543602
+ readonly name: "Upgraded";
543603
+ readonly type: "event";
543604
+ }, {
543605
+ readonly stateMutability: "payable";
543606
+ readonly type: "fallback";
543607
+ }, {
543608
+ readonly inputs: readonly [{
543609
+ readonly internalType: "address";
543610
+ readonly name: "account";
543611
+ readonly type: "address";
543612
+ }];
543613
+ readonly name: "balanceOf";
543614
+ readonly outputs: readonly [{
543615
+ readonly internalType: "uint256";
543616
+ readonly name: "";
543617
+ readonly type: "uint256";
543618
+ }];
543619
+ readonly stateMutability: "view";
543620
+ readonly type: "function";
543621
+ }, {
543622
+ readonly inputs: readonly [];
543623
+ readonly name: "totalAssets";
543624
+ readonly outputs: readonly [{
543625
+ readonly internalType: "uint256";
543626
+ readonly name: "";
543627
+ readonly type: "uint256";
543628
+ }];
543629
+ readonly stateMutability: "view";
543630
+ readonly type: "function";
543631
+ }, {
543632
+ readonly inputs: readonly [];
543633
+ readonly name: "totalSupply";
543634
+ readonly outputs: readonly [{
543635
+ readonly internalType: "uint256";
543636
+ readonly name: "";
543637
+ readonly type: "uint256";
543638
+ }];
543639
+ readonly stateMutability: "view";
543640
+ readonly type: "function";
543641
+ }], "Upgraded", args, strict>>;
543642
+ };
543643
+ getEvents: {
543644
+ Upgraded: (args?: {
543645
+ implementation?: `0x${string}` | `0x${string}`[] | null | undefined;
543646
+ } | undefined, options?: {
543647
+ strict?: boolean | undefined;
543648
+ blockHash?: `0x${string}` | undefined;
543649
+ fromBlock?: bigint | import("viem").BlockTag | undefined;
543650
+ toBlock?: bigint | import("viem").BlockTag | undefined;
543651
+ } | undefined) => Promise<import("viem").GetContractEventsReturnType<readonly [{
543652
+ readonly inputs: readonly [{
543653
+ readonly internalType: "address";
543654
+ readonly name: "implementation";
543655
+ readonly type: "address";
543656
+ }, {
543657
+ readonly internalType: "bytes";
543658
+ readonly name: "_data";
543659
+ readonly type: "bytes";
543660
+ }];
543661
+ readonly stateMutability: "payable";
543662
+ readonly type: "constructor";
543663
+ }, {
543664
+ readonly inputs: readonly [{
543665
+ readonly internalType: "address";
543666
+ readonly name: "target";
543667
+ readonly type: "address";
543668
+ }];
543669
+ readonly name: "AddressEmptyCode";
543670
+ readonly type: "error";
543671
+ }, {
543672
+ readonly inputs: readonly [{
543673
+ readonly internalType: "address";
543674
+ readonly name: "implementation";
543675
+ readonly type: "address";
543676
+ }];
543677
+ readonly name: "ERC1967InvalidImplementation";
543678
+ readonly type: "error";
543679
+ }, {
543680
+ readonly inputs: readonly [];
543681
+ readonly name: "ERC1967NonPayable";
543682
+ readonly type: "error";
543683
+ }, {
543684
+ readonly inputs: readonly [];
543685
+ readonly name: "FailedInnerCall";
543686
+ readonly type: "error";
543687
+ }, {
543688
+ readonly anonymous: false;
543689
+ readonly inputs: readonly [{
543690
+ readonly indexed: true;
543691
+ readonly internalType: "address";
543692
+ readonly name: "implementation";
543693
+ readonly type: "address";
543694
+ }];
543695
+ readonly name: "Upgraded";
543696
+ readonly type: "event";
543697
+ }, {
543698
+ readonly stateMutability: "payable";
543699
+ readonly type: "fallback";
543700
+ }, {
543701
+ readonly inputs: readonly [{
543702
+ readonly internalType: "address";
543703
+ readonly name: "account";
543704
+ readonly type: "address";
543705
+ }];
543706
+ readonly name: "balanceOf";
543707
+ readonly outputs: readonly [{
543708
+ readonly internalType: "uint256";
543709
+ readonly name: "";
543710
+ readonly type: "uint256";
543711
+ }];
543712
+ readonly stateMutability: "view";
543713
+ readonly type: "function";
543714
+ }, {
543715
+ readonly inputs: readonly [];
543716
+ readonly name: "totalAssets";
543717
+ readonly outputs: readonly [{
543718
+ readonly internalType: "uint256";
543719
+ readonly name: "";
543720
+ readonly type: "uint256";
543721
+ }];
543722
+ readonly stateMutability: "view";
543723
+ readonly type: "function";
543724
+ }, {
543725
+ readonly inputs: readonly [];
543726
+ readonly name: "totalSupply";
543727
+ readonly outputs: readonly [{
543728
+ readonly internalType: "uint256";
543729
+ readonly name: "";
543730
+ readonly type: "uint256";
543731
+ }];
543732
+ readonly stateMutability: "view";
543733
+ readonly type: "function";
543734
+ }], "Upgraded">>;
543735
+ };
543736
+ watchEvent: {
543737
+ Upgraded: (args: {
543738
+ implementation?: `0x${string}` | `0x${string}`[] | null | undefined;
543739
+ }, options: {
543740
+ batch?: boolean | undefined | undefined;
543741
+ pollingInterval?: number | undefined | undefined;
543742
+ strict?: boolean | undefined;
543743
+ onError?: ((error: Error) => void) | undefined | undefined;
543744
+ fromBlock?: bigint | undefined;
543745
+ onLogs: import("viem").WatchContractEventOnLogsFn<readonly [{
543746
+ readonly inputs: readonly [{
543747
+ readonly internalType: "address";
543748
+ readonly name: "implementation";
543749
+ readonly type: "address";
543750
+ }, {
543751
+ readonly internalType: "bytes";
543752
+ readonly name: "_data";
543753
+ readonly type: "bytes";
543754
+ }];
543755
+ readonly stateMutability: "payable";
543756
+ readonly type: "constructor";
543757
+ }, {
543758
+ readonly inputs: readonly [{
543759
+ readonly internalType: "address";
543760
+ readonly name: "target";
543761
+ readonly type: "address";
543762
+ }];
543763
+ readonly name: "AddressEmptyCode";
543764
+ readonly type: "error";
543765
+ }, {
543766
+ readonly inputs: readonly [{
543767
+ readonly internalType: "address";
543768
+ readonly name: "implementation";
543769
+ readonly type: "address";
543770
+ }];
543771
+ readonly name: "ERC1967InvalidImplementation";
543772
+ readonly type: "error";
543773
+ }, {
543774
+ readonly inputs: readonly [];
543775
+ readonly name: "ERC1967NonPayable";
543776
+ readonly type: "error";
543777
+ }, {
543778
+ readonly inputs: readonly [];
543779
+ readonly name: "FailedInnerCall";
543780
+ readonly type: "error";
543781
+ }, {
543782
+ readonly anonymous: false;
543783
+ readonly inputs: readonly [{
543784
+ readonly indexed: true;
543785
+ readonly internalType: "address";
543786
+ readonly name: "implementation";
543787
+ readonly type: "address";
543788
+ }];
543789
+ readonly name: "Upgraded";
543790
+ readonly type: "event";
543791
+ }, {
543792
+ readonly stateMutability: "payable";
543793
+ readonly type: "fallback";
543794
+ }, {
543795
+ readonly inputs: readonly [{
543796
+ readonly internalType: "address";
543797
+ readonly name: "account";
543798
+ readonly type: "address";
543799
+ }];
543800
+ readonly name: "balanceOf";
543801
+ readonly outputs: readonly [{
543802
+ readonly internalType: "uint256";
543803
+ readonly name: "";
543804
+ readonly type: "uint256";
543805
+ }];
543806
+ readonly stateMutability: "view";
543807
+ readonly type: "function";
543808
+ }, {
543809
+ readonly inputs: readonly [];
543810
+ readonly name: "totalAssets";
543811
+ readonly outputs: readonly [{
543812
+ readonly internalType: "uint256";
543813
+ readonly name: "";
543814
+ readonly type: "uint256";
543815
+ }];
543816
+ readonly stateMutability: "view";
543817
+ readonly type: "function";
543818
+ }, {
543819
+ readonly inputs: readonly [];
543820
+ readonly name: "totalSupply";
543821
+ readonly outputs: readonly [{
543822
+ readonly internalType: "uint256";
543823
+ readonly name: "";
543824
+ readonly type: "uint256";
543825
+ }];
543826
+ readonly stateMutability: "view";
543827
+ readonly type: "function";
543828
+ }], "Upgraded", undefined>;
543829
+ poll?: true | undefined | undefined;
543830
+ }) => import("viem").WatchContractEventReturnType;
543831
+ };
543832
+ address: `0x${string}`;
543833
+ abi: readonly [{
543834
+ readonly inputs: readonly [{
543835
+ readonly internalType: "address";
543836
+ readonly name: "implementation";
543837
+ readonly type: "address";
543838
+ }, {
543839
+ readonly internalType: "bytes";
543840
+ readonly name: "_data";
543841
+ readonly type: "bytes";
543842
+ }];
543843
+ readonly stateMutability: "payable";
543844
+ readonly type: "constructor";
543845
+ }, {
543846
+ readonly inputs: readonly [{
543847
+ readonly internalType: "address";
543848
+ readonly name: "target";
543849
+ readonly type: "address";
543850
+ }];
543851
+ readonly name: "AddressEmptyCode";
543852
+ readonly type: "error";
543853
+ }, {
543854
+ readonly inputs: readonly [{
543855
+ readonly internalType: "address";
543856
+ readonly name: "implementation";
543857
+ readonly type: "address";
543858
+ }];
543859
+ readonly name: "ERC1967InvalidImplementation";
543860
+ readonly type: "error";
543861
+ }, {
543862
+ readonly inputs: readonly [];
543863
+ readonly name: "ERC1967NonPayable";
543864
+ readonly type: "error";
543865
+ }, {
543866
+ readonly inputs: readonly [];
543867
+ readonly name: "FailedInnerCall";
543868
+ readonly type: "error";
543869
+ }, {
543870
+ readonly anonymous: false;
543871
+ readonly inputs: readonly [{
543872
+ readonly indexed: true;
543873
+ readonly internalType: "address";
543874
+ readonly name: "implementation";
543875
+ readonly type: "address";
543876
+ }];
543877
+ readonly name: "Upgraded";
543878
+ readonly type: "event";
543879
+ }, {
543880
+ readonly stateMutability: "payable";
543881
+ readonly type: "fallback";
543882
+ }, {
543883
+ readonly inputs: readonly [{
543884
+ readonly internalType: "address";
543885
+ readonly name: "account";
543886
+ readonly type: "address";
543887
+ }];
543888
+ readonly name: "balanceOf";
543889
+ readonly outputs: readonly [{
543890
+ readonly internalType: "uint256";
543891
+ readonly name: "";
543892
+ readonly type: "uint256";
543893
+ }];
543894
+ readonly stateMutability: "view";
543895
+ readonly type: "function";
543896
+ }, {
543897
+ readonly inputs: readonly [];
543898
+ readonly name: "totalAssets";
543899
+ readonly outputs: readonly [{
543900
+ readonly internalType: "uint256";
543901
+ readonly name: "";
543902
+ readonly type: "uint256";
543903
+ }];
543904
+ readonly stateMutability: "view";
543905
+ readonly type: "function";
543906
+ }, {
543907
+ readonly inputs: readonly [];
543908
+ readonly name: "totalSupply";
543909
+ readonly outputs: readonly [{
543910
+ readonly internalType: "uint256";
543911
+ readonly name: "";
543912
+ readonly type: "uint256";
543913
+ }];
543914
+ readonly stateMutability: "view";
543915
+ readonly type: "function";
543916
+ }];
543917
+ };
package/cjs/contracts.js CHANGED
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.LiquityV2sBoldVaultViem = exports.AaveRewardsControllerViem = exports.SparkRewardsControllerViem = exports.UUPSViem = exports.LiquityStabilityPoolViem = exports.LiquityLQTYStakingViem = exports.AaveUmbrellaViewViem = exports.AaveIncentivesControllerViem = exports.FluidViewContractViem = exports.LiquityV2LegacyViewContractViem = exports.LiquityV2ViewContractViem = exports.LiquityActivePoolContractViem = exports.LiquityPriceFeedContractViem = exports.LiquityTroveManagerContractViem = exports.LiquityCollSurplusPoolContractViem = exports.LiquityViewContractViem = exports.BTCPriceFeedContractViem = exports.WeETHPriceFeedContractViem = exports.ComptrollerContractViem = exports.CompoundLoanInfoContractViem = exports.McdJugContractViem = exports.McdDogContractViem = exports.McdSpotterContractViem = exports.McdVatContractViem = exports.McdViewContractViem = exports.McdGetCdpsContractViem = exports.LlamaLendViewContractViem = exports.CrvUSDFactoryContractViem = exports.CrvUSDViewContractViem = exports.EulerV2ViewContractViem = exports.SparkIncentiveDataProviderContractViem = exports.SparkViewContractViem = exports.CompV3ViewContractViem = exports.WstETHPriceFeedContractViem = exports.USDCPriceFeedContractViem = exports.ETHPriceFeedContractViem = exports.COMPPriceFeedContractViem = exports.DFSFeedRegistryContractViem = exports.FeedRegistryContractViem = exports.AaveIncentiveDataProviderV3ContractViem = exports.AaveV3ViewContractViem = exports.AaveLoanInfoV2ContractViem = exports.MorphoBlueViewContractViem = exports.getErc20ContractViem = exports.getSparkSavingsVaultContractViem = exports.getYearnVaultContractViem = exports.getMorphoVaultContractViem = exports.createViemContractFromConfigFunc = exports.getConfigContractAbi = exports.getConfigContractAddress = void 0;
37
- exports.MakerDsrContractViem = exports.YearnViewContractViem = exports.StkAAVEViem = void 0;
37
+ exports.SkySavingsContractView = exports.MakerDsrContractViem = exports.YearnViewContractViem = exports.StkAAVEViem = void 0;
38
38
  const viem_1 = require("viem");
39
39
  const configRaw = __importStar(require("./config/contracts"));
40
40
  // @ts-ignore
@@ -167,3 +167,4 @@ exports.LiquityV2sBoldVaultViem = (0, exports.createViemContractFromConfigFunc)(
167
167
  exports.StkAAVEViem = (0, exports.createViemContractFromConfigFunc)('StkAAVE');
168
168
  exports.YearnViewContractViem = (0, exports.createViemContractFromConfigFunc)('YearnView');
169
169
  exports.MakerDsrContractViem = (0, exports.createViemContractFromConfigFunc)('MakerDsr');
170
+ exports.SkySavingsContractView = (0, exports.createViemContractFromConfigFunc)('SkySavings');