@defisaver/positions-sdk 0.0.111 → 0.0.113

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 (33) hide show
  1. package/cjs/config/contracts.d.ts +413 -0
  2. package/cjs/config/contracts.js +60 -13
  3. package/cjs/constants/index.d.ts +1 -0
  4. package/cjs/constants/index.js +2 -1
  5. package/cjs/helpers/compoundHelpers/index.d.ts +16 -1
  6. package/cjs/helpers/compoundHelpers/index.js +70 -1
  7. package/cjs/helpers/morphoBlueHelpers/index.js +1 -2
  8. package/cjs/helpers/sparkHelpers/index.d.ts +12 -1
  9. package/cjs/helpers/sparkHelpers/index.js +49 -1
  10. package/cjs/types/contracts/generated/CompV3View.d.ts +50 -0
  11. package/cjs/types/contracts/generated/CompoundLoanInfo.d.ts +55 -0
  12. package/cjs/types/contracts/generated/SparkView.d.ts +9 -2
  13. package/esm/config/contracts.d.ts +413 -0
  14. package/esm/config/contracts.js +60 -13
  15. package/esm/constants/index.d.ts +1 -0
  16. package/esm/constants/index.js +1 -0
  17. package/esm/helpers/compoundHelpers/index.d.ts +16 -1
  18. package/esm/helpers/compoundHelpers/index.js +69 -2
  19. package/esm/helpers/morphoBlueHelpers/index.js +1 -2
  20. package/esm/helpers/sparkHelpers/index.d.ts +12 -1
  21. package/esm/helpers/sparkHelpers/index.js +49 -2
  22. package/esm/types/contracts/generated/CompV3View.d.ts +50 -0
  23. package/esm/types/contracts/generated/CompoundLoanInfo.d.ts +55 -0
  24. package/esm/types/contracts/generated/SparkView.d.ts +9 -2
  25. package/package.json +1 -1
  26. package/src/config/contracts.js +60 -13
  27. package/src/constants/index.ts +2 -1
  28. package/src/helpers/compoundHelpers/index.ts +68 -3
  29. package/src/helpers/morphoBlueHelpers/index.ts +1 -3
  30. package/src/helpers/sparkHelpers/index.ts +47 -3
  31. package/src/types/contracts/generated/CompV3View.ts +62 -0
  32. package/src/types/contracts/generated/CompoundLoanInfo.ts +87 -0
  33. package/src/types/contracts/generated/SparkView.ts +9 -2
@@ -1773,6 +1773,25 @@ export namespace CompV3View {
1773
1773
  }[];
1774
1774
  stateMutability: string;
1775
1775
  type: string;
1776
+ } | {
1777
+ inputs: {
1778
+ components: {
1779
+ internalType: string;
1780
+ name: string;
1781
+ type: string;
1782
+ }[];
1783
+ internalType: string;
1784
+ name: string;
1785
+ type: string;
1786
+ }[];
1787
+ name: string;
1788
+ outputs: {
1789
+ internalType: string;
1790
+ name: string;
1791
+ type: string;
1792
+ }[];
1793
+ stateMutability: string;
1794
+ type: string;
1776
1795
  })[];
1777
1796
  export { abi_18 as abi };
1778
1797
  let networks_18: {
@@ -1803,16 +1822,173 @@ export namespace CompV3View {
1803
1822
  }[];
1804
1823
  address: string;
1805
1824
  };
1825
+ "15581957": {
1826
+ abi: ({
1827
+ inputs: {
1828
+ internalType: string;
1829
+ name: string;
1830
+ type: string;
1831
+ }[];
1832
+ name: string;
1833
+ outputs: {
1834
+ internalType: string;
1835
+ name: string;
1836
+ type: string;
1837
+ }[];
1838
+ stateMutability: string;
1839
+ type: string;
1840
+ } | {
1841
+ inputs: {
1842
+ internalType: string;
1843
+ name: string;
1844
+ type: string;
1845
+ }[];
1846
+ name: string;
1847
+ outputs: {
1848
+ components: {
1849
+ internalType: string;
1850
+ name: string;
1851
+ type: string;
1852
+ }[];
1853
+ internalType: string;
1854
+ name: string;
1855
+ type: string;
1856
+ }[];
1857
+ stateMutability: string;
1858
+ type: string;
1859
+ })[];
1860
+ address: string;
1861
+ };
1806
1862
  };
1807
1863
  };
1808
1864
  "10": {
1809
1865
  address: string;
1866
+ createdBlock: number;
1867
+ oldVersions: {
1868
+ "118896497": {
1869
+ abi: ({
1870
+ inputs: {
1871
+ internalType: string;
1872
+ name: string;
1873
+ type: string;
1874
+ }[];
1875
+ name: string;
1876
+ outputs: {
1877
+ internalType: string;
1878
+ name: string;
1879
+ type: string;
1880
+ }[];
1881
+ stateMutability: string;
1882
+ type: string;
1883
+ } | {
1884
+ inputs: {
1885
+ internalType: string;
1886
+ name: string;
1887
+ type: string;
1888
+ }[];
1889
+ name: string;
1890
+ outputs: {
1891
+ components: {
1892
+ internalType: string;
1893
+ name: string;
1894
+ type: string;
1895
+ }[];
1896
+ internalType: string;
1897
+ name: string;
1898
+ type: string;
1899
+ }[];
1900
+ stateMutability: string;
1901
+ type: string;
1902
+ })[];
1903
+ address: string;
1904
+ };
1905
+ };
1810
1906
  };
1811
1907
  "8453": {
1812
1908
  address: string;
1909
+ createdBlock: number;
1910
+ oldVersions: {
1911
+ "4172377": {
1912
+ abi: ({
1913
+ inputs: {
1914
+ internalType: string;
1915
+ name: string;
1916
+ type: string;
1917
+ }[];
1918
+ name: string;
1919
+ outputs: {
1920
+ internalType: string;
1921
+ name: string;
1922
+ type: string;
1923
+ }[];
1924
+ stateMutability: string;
1925
+ type: string;
1926
+ } | {
1927
+ inputs: {
1928
+ internalType: string;
1929
+ name: string;
1930
+ type: string;
1931
+ }[];
1932
+ name: string;
1933
+ outputs: {
1934
+ components: {
1935
+ internalType: string;
1936
+ name: string;
1937
+ type: string;
1938
+ }[];
1939
+ internalType: string;
1940
+ name: string;
1941
+ type: string;
1942
+ }[];
1943
+ stateMutability: string;
1944
+ type: string;
1945
+ })[];
1946
+ address: string;
1947
+ };
1948
+ };
1813
1949
  };
1814
1950
  "42161": {
1815
1951
  address: string;
1952
+ createdBlock: number;
1953
+ oldVersions: {
1954
+ "152921647": {
1955
+ abi: ({
1956
+ inputs: {
1957
+ internalType: string;
1958
+ name: string;
1959
+ type: string;
1960
+ }[];
1961
+ name: string;
1962
+ outputs: {
1963
+ internalType: string;
1964
+ name: string;
1965
+ type: string;
1966
+ }[];
1967
+ stateMutability: string;
1968
+ type: string;
1969
+ } | {
1970
+ inputs: {
1971
+ internalType: string;
1972
+ name: string;
1973
+ type: string;
1974
+ }[];
1975
+ name: string;
1976
+ outputs: {
1977
+ components: {
1978
+ internalType: string;
1979
+ name: string;
1980
+ type: string;
1981
+ }[];
1982
+ internalType: string;
1983
+ name: string;
1984
+ type: string;
1985
+ }[];
1986
+ stateMutability: string;
1987
+ type: string;
1988
+ })[];
1989
+ address: string;
1990
+ };
1991
+ };
1816
1992
  };
1817
1993
  };
1818
1994
  export { networks_18 as networks };
@@ -2431,6 +2607,11 @@ export namespace AaveLendingPoolV2 {
2431
2607
  export namespace CompoundLoanInfo {
2432
2608
  let abi_27: ({
2433
2609
  inputs: {
2610
+ components: {
2611
+ internalType: string;
2612
+ name: string;
2613
+ type: string;
2614
+ }[];
2434
2615
  internalType: string;
2435
2616
  name: string;
2436
2617
  type: string;
@@ -2462,6 +2643,25 @@ export namespace CompoundLoanInfo {
2462
2643
  }[];
2463
2644
  stateMutability: string;
2464
2645
  type: string;
2646
+ } | {
2647
+ inputs: {
2648
+ internalType: string;
2649
+ name: string;
2650
+ type: string;
2651
+ }[];
2652
+ name: string;
2653
+ outputs: {
2654
+ components: {
2655
+ internalType: string;
2656
+ name: string;
2657
+ type: string;
2658
+ }[];
2659
+ internalType: string;
2660
+ name: string;
2661
+ type: string;
2662
+ }[];
2663
+ stateMutability: string;
2664
+ type: string;
2465
2665
  })[];
2466
2666
  export { abi_27 as abi };
2467
2667
  let networks_27: {
@@ -2599,6 +2799,43 @@ export namespace CompoundLoanInfo {
2599
2799
  }[];
2600
2800
  address: string;
2601
2801
  };
2802
+ "17819315": {
2803
+ abi: ({
2804
+ inputs: {
2805
+ internalType: string;
2806
+ name: string;
2807
+ type: string;
2808
+ }[];
2809
+ name: string;
2810
+ outputs: {
2811
+ components: {
2812
+ internalType: string;
2813
+ name: string;
2814
+ type: string;
2815
+ }[];
2816
+ internalType: string;
2817
+ name: string;
2818
+ type: string;
2819
+ }[];
2820
+ stateMutability: string;
2821
+ type: string;
2822
+ } | {
2823
+ inputs: {
2824
+ internalType: string;
2825
+ name: string;
2826
+ type: string;
2827
+ }[];
2828
+ name: string;
2829
+ outputs: {
2830
+ internalType: string;
2831
+ name: string;
2832
+ type: string;
2833
+ }[];
2834
+ stateMutability: string;
2835
+ type: string;
2836
+ })[];
2837
+ address: string;
2838
+ };
2602
2839
  };
2603
2840
  };
2604
2841
  };
@@ -3072,6 +3309,72 @@ export namespace SparkView {
3072
3309
  address: string;
3073
3310
  createdBlock: number;
3074
3311
  oldVersions: {
3312
+ "20218396": {
3313
+ abi: ({
3314
+ inputs: ({
3315
+ internalType: string;
3316
+ name: string;
3317
+ type: string;
3318
+ components?: undefined;
3319
+ } | {
3320
+ components: {
3321
+ internalType: string;
3322
+ name: string;
3323
+ type: string;
3324
+ }[];
3325
+ internalType: string;
3326
+ name: string;
3327
+ type: string;
3328
+ })[];
3329
+ name: string;
3330
+ outputs: {
3331
+ components: {
3332
+ internalType: string;
3333
+ name: string;
3334
+ type: string;
3335
+ }[];
3336
+ internalType: string;
3337
+ name: string;
3338
+ type: string;
3339
+ }[];
3340
+ stateMutability: string;
3341
+ type: string;
3342
+ } | {
3343
+ inputs: {
3344
+ internalType: string;
3345
+ name: string;
3346
+ type: string;
3347
+ }[];
3348
+ name: string;
3349
+ outputs: {
3350
+ internalType: string;
3351
+ name: string;
3352
+ type: string;
3353
+ }[];
3354
+ stateMutability: string;
3355
+ type: string;
3356
+ } | {
3357
+ inputs: {
3358
+ components: {
3359
+ internalType: string;
3360
+ name: string;
3361
+ type: string;
3362
+ }[];
3363
+ internalType: string;
3364
+ name: string;
3365
+ type: string;
3366
+ }[];
3367
+ name: string;
3368
+ outputs: {
3369
+ internalType: string;
3370
+ name: string;
3371
+ type: string;
3372
+ }[];
3373
+ stateMutability: string;
3374
+ type: string;
3375
+ })[];
3376
+ address: string;
3377
+ };
3075
3378
  "17870357": {
3076
3379
  abi: ({
3077
3380
  inputs: {
@@ -4925,9 +5228,119 @@ export namespace MorphoBlueView {
4925
5228
  let networks_67: {
4926
5229
  "1": {
4927
5230
  address: string;
5231
+ createdBlock: number;
5232
+ oldVersions: {
5233
+ "18976639": {
5234
+ abi: ({
5235
+ inputs: {
5236
+ components: {
5237
+ internalType: string;
5238
+ name: string;
5239
+ type: string;
5240
+ }[];
5241
+ internalType: string;
5242
+ name: string;
5243
+ type: string;
5244
+ }[];
5245
+ name: string;
5246
+ outputs: {
5247
+ internalType: string;
5248
+ name: string;
5249
+ type: string;
5250
+ }[];
5251
+ stateMutability: string;
5252
+ type: string;
5253
+ } | {
5254
+ inputs: ({
5255
+ components: {
5256
+ internalType: string;
5257
+ name: string;
5258
+ type: string;
5259
+ }[];
5260
+ internalType: string;
5261
+ name: string;
5262
+ type: string;
5263
+ } | {
5264
+ internalType: string;
5265
+ name: string;
5266
+ type: string;
5267
+ components?: undefined;
5268
+ })[];
5269
+ name: string;
5270
+ outputs: {
5271
+ components: {
5272
+ internalType: string;
5273
+ name: string;
5274
+ type: string;
5275
+ }[];
5276
+ internalType: string;
5277
+ name: string;
5278
+ type: string;
5279
+ }[];
5280
+ stateMutability: string;
5281
+ type: string;
5282
+ })[];
5283
+ address: string;
5284
+ };
5285
+ };
4928
5286
  };
4929
5287
  "8453": {
4930
5288
  address: string;
5289
+ createdBlock: number;
5290
+ oldVersions: {
5291
+ "14527939": {
5292
+ abi: ({
5293
+ inputs: {
5294
+ components: {
5295
+ internalType: string;
5296
+ name: string;
5297
+ type: string;
5298
+ }[];
5299
+ internalType: string;
5300
+ name: string;
5301
+ type: string;
5302
+ }[];
5303
+ name: string;
5304
+ outputs: {
5305
+ internalType: string;
5306
+ name: string;
5307
+ type: string;
5308
+ }[];
5309
+ stateMutability: string;
5310
+ type: string;
5311
+ } | {
5312
+ inputs: ({
5313
+ components: {
5314
+ internalType: string;
5315
+ name: string;
5316
+ type: string;
5317
+ }[];
5318
+ internalType: string;
5319
+ name: string;
5320
+ type: string;
5321
+ } | {
5322
+ internalType: string;
5323
+ name: string;
5324
+ type: string;
5325
+ components?: undefined;
5326
+ })[];
5327
+ name: string;
5328
+ outputs: {
5329
+ components: {
5330
+ internalType: string;
5331
+ name: string;
5332
+ type: string;
5333
+ }[];
5334
+ internalType: string;
5335
+ name: string;
5336
+ type: string;
5337
+ }[];
5338
+ stateMutability: string;
5339
+ type: string;
5340
+ })[];
5341
+ address: string;
5342
+ };
5343
+ };
4931
5344
  };
4932
5345
  };
4933
5346
  export { networks_67 as networks };