@defisaver/positions-sdk 2.1.33 → 2.1.35

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 (40) hide show
  1. package/cjs/config/contracts.d.ts +91 -0
  2. package/cjs/config/contracts.js +9 -1
  3. package/cjs/contracts.d.ts +629 -0
  4. package/cjs/contracts.js +2 -1
  5. package/cjs/markets/aave/marketAssets.js +1 -1
  6. package/cjs/savings/index.d.ts +4 -3
  7. package/cjs/savings/index.js +43 -12
  8. package/cjs/savings/skyOptions/index.d.ts +7 -0
  9. package/cjs/savings/skyOptions/index.js +122 -0
  10. package/cjs/savings/skyOptions/options.d.ts +2 -0
  11. package/cjs/savings/skyOptions/options.js +11 -0
  12. package/cjs/types/savings/index.d.ts +3 -1
  13. package/cjs/types/savings/index.js +1 -0
  14. package/cjs/types/savings/sky.d.ts +11 -0
  15. package/cjs/types/savings/sky.js +7 -0
  16. package/esm/config/contracts.d.ts +91 -0
  17. package/esm/config/contracts.js +8 -0
  18. package/esm/contracts.d.ts +629 -0
  19. package/esm/contracts.js +1 -0
  20. package/esm/markets/aave/marketAssets.js +1 -1
  21. package/esm/savings/index.d.ts +4 -3
  22. package/esm/savings/index.js +43 -13
  23. package/esm/savings/skyOptions/index.d.ts +7 -0
  24. package/esm/savings/skyOptions/index.js +81 -0
  25. package/esm/savings/skyOptions/options.d.ts +2 -0
  26. package/esm/savings/skyOptions/options.js +8 -0
  27. package/esm/types/savings/index.d.ts +3 -1
  28. package/esm/types/savings/index.js +1 -0
  29. package/esm/types/savings/sky.d.ts +11 -0
  30. package/esm/types/savings/sky.js +4 -0
  31. package/package.json +1 -1
  32. package/src/aaveV3/index.ts +14 -3
  33. package/src/config/contracts.ts +8 -0
  34. package/src/contracts.ts +3 -1
  35. package/src/markets/aave/marketAssets.ts +1 -1
  36. package/src/savings/index.ts +38 -11
  37. package/src/savings/skyOptions/index.ts +95 -0
  38. package/src/savings/skyOptions/options.ts +9 -0
  39. package/src/types/savings/index.ts +3 -1
  40. package/src/types/savings/sky.ts +13 -0
@@ -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');
@@ -10,7 +10,7 @@ exports.aaveV1AssetsDefaultMarket = [
10
10
  exports.aaveV2AssetsDefaultMarket = ['USDT', 'WBTC', 'ETH', 'YFI', 'ZRX', 'UNI', 'AAVE', 'BAT', 'BUSD', 'DAI', 'ENJ', 'KNCL', 'LINK', 'MANA', 'MKR', 'REN', 'SNX', 'SUSD', 'TUSD', 'USDC', 'CRV', 'GUSD', 'BAL', 'xSUSHI', 'RENFIL', 'RAI', 'AMPL', 'USDP', 'DPI', 'FRAX', 'FEI', 'stETH', 'ENS', 'UST', 'CVX', '1INCH', 'LUSD'];
11
11
  exports.aaveV3AssetsDefaultMarketEth = [
12
12
  'ETH', 'wstETH', 'WBTC', 'USDC', 'DAI', 'LINK', 'AAVE', 'cbETH', 'USDT', 'rETH', 'LUSD', 'CRV', 'MKR', 'SNX', 'BAL', 'UNI', 'LDO', 'ENS', '1INCH', 'FRAX', 'GHO', 'RPL', 'sDAI', 'STG', 'KNC', 'FXS', 'crvUSD', 'PYUSD', 'weETH', 'osETH', 'USDe', 'ETHx', 'sUSDe', 'tBTC', 'cbBTC', 'USDS', 'rsETH', 'LBTC', 'eBTC', 'RLUSD', 'PT eUSDe May', 'PT sUSDe July', 'USDtb',
13
- 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'EURC', 'FBTC', 'PT sUSDe Sep', 'PT USDe Sep', 'tETH', 'ezETH', 'XAUt', 'PT sUSDe Nov', 'PT USDe Nov', 'PT sUSDe Feb', 'PT USDe Feb', 'mUSD',
13
+ 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'EURC', 'FBTC', 'PT sUSDe Sep', 'PT USDe Sep', 'tETH', 'ezETH', 'XAUt', 'PT sUSDe Nov', 'PT USDe Nov', 'PT sUSDe Feb', 'PT USDe Feb', 'mUSD', 'syrupUSDT',
14
14
  ];
15
15
  exports.aaveV3AssetsDefaultMarketOpt = [
16
16
  'DAI', 'USDC.e', 'USDT', 'SUSD', 'AAVE', 'LINK', 'WBTC', 'ETH', 'OP', 'wstETH', 'LUSD', 'MAI', 'rETH', 'USDC',
@@ -1,8 +1,9 @@
1
- import { MakerDsrType, MorphoVaultType, SparkSavingsVaultType, YearnVaultType } from '../types';
1
+ import { MakerDsrType, MorphoVaultType, SkySavingsType, SparkSavingsVaultType, YearnVaultType } from '../types';
2
2
  import { EthAddress, EthereumProvider, NetworkNumber } from '../types/common';
3
3
  import * as morphoVaults from './morphoVaults';
4
4
  import * as yearnVaults from './yearnVaults';
5
5
  import * as makerDsr from './makerDsr';
6
+ import * as skyOptions from './skyOptions';
6
7
  import * as sparkSavingsVaults from './sparkSavingsVaults';
7
- export { morphoVaults, yearnVaults, makerDsr, sparkSavingsVaults, };
8
- export declare const getSavingsData: (provider: EthereumProvider, network: NetworkNumber, accounts: EthAddress[]) => Promise<Partial<Record<MakerDsrType | MorphoVaultType | SparkSavingsVaultType | YearnVaultType, import("../types").SavingsVaultData>>>;
8
+ export { morphoVaults, yearnVaults, makerDsr, skyOptions, sparkSavingsVaults, };
9
+ export declare const getSavingsData: (provider: EthereumProvider, network: NetworkNumber, accounts: EthAddress[]) => Promise<Partial<Record<MakerDsrType | MorphoVaultType | SkySavingsType | SparkSavingsVaultType | YearnVaultType, import("../types").SavingsVaultData>>>;