@1delta/margin-fetcher 0.0.226 → 0.0.228

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 (53) hide show
  1. package/dist/abis/silo-v2/Silo.d.ts +101 -0
  2. package/dist/abis/silo-v2/Silo.d.ts.map +1 -0
  3. package/dist/abis/silo-v2/SiloConfig.d.ts +78 -0
  4. package/dist/abis/silo-v2/SiloConfig.d.ts.map +1 -0
  5. package/dist/abis/silo-v2/SiloLens.d.ts +50 -0
  6. package/dist/abis/silo-v2/SiloLens.d.ts.map +1 -0
  7. package/dist/abis/silo-v2/index.d.ts +4 -0
  8. package/dist/abis/silo-v2/index.d.ts.map +1 -0
  9. package/dist/index.js +1848 -94
  10. package/dist/index.js.map +1 -1
  11. package/dist/lending/public-data/fetchLender.d.ts.map +1 -1
  12. package/dist/lending/public-data/fetchLenderAll.d.ts.map +1 -1
  13. package/dist/lending/public-data/fetchLenderExt.d.ts.map +1 -1
  14. package/dist/lending/public-data/lista/getMarketsFromChain.d.ts.map +1 -1
  15. package/dist/lending/public-data/silo-v2/convertPublic.d.ts +28 -0
  16. package/dist/lending/public-data/silo-v2/convertPublic.d.ts.map +1 -0
  17. package/dist/lending/public-data/silo-v2/fetchPublic.d.ts +70 -0
  18. package/dist/lending/public-data/silo-v2/fetchPublic.d.ts.map +1 -0
  19. package/dist/lending/public-data/silo-v2/publicCallBuild.d.ts +23 -0
  20. package/dist/lending/public-data/silo-v2/publicCallBuild.d.ts.map +1 -0
  21. package/dist/lending/public-data/silo-v2/publicCallParse.d.ts +25 -0
  22. package/dist/lending/public-data/silo-v2/publicCallParse.d.ts.map +1 -0
  23. package/dist/lending/public-data/silo-v3/convertPublic.d.ts +18 -0
  24. package/dist/lending/public-data/silo-v3/convertPublic.d.ts.map +1 -0
  25. package/dist/lending/public-data/silo-v3/publicCallBuild.d.ts +19 -0
  26. package/dist/lending/public-data/silo-v3/publicCallBuild.d.ts.map +1 -0
  27. package/dist/lending/public-data/silo-v3/publicCallParse.d.ts +16 -0
  28. package/dist/lending/public-data/silo-v3/publicCallParse.d.ts.map +1 -0
  29. package/dist/lending/user-data/abis.d.ts.map +1 -1
  30. package/dist/lending/user-data/fetch-balances/parse.d.ts.map +1 -1
  31. package/dist/lending/user-data/fetch-balances/prepare.d.ts.map +1 -1
  32. package/dist/lending/user-data/silo-v2/userCallBuild.d.ts +21 -0
  33. package/dist/lending/user-data/silo-v2/userCallBuild.d.ts.map +1 -0
  34. package/dist/lending/user-data/silo-v2/userCallParse.d.ts +23 -0
  35. package/dist/lending/user-data/silo-v2/userCallParse.d.ts.map +1 -0
  36. package/dist/lending/user-data/utils/types.d.ts +20 -0
  37. package/dist/lending/user-data/utils/types.d.ts.map +1 -1
  38. package/dist/prices/oracle-prices/fetchOraclePrices.d.ts.map +1 -1
  39. package/dist/prices/oracle-prices/fetchers/index.d.ts +2 -0
  40. package/dist/prices/oracle-prices/fetchers/index.d.ts.map +1 -1
  41. package/dist/prices/oracle-prices/fetchers/siloV2.d.ts +108 -0
  42. package/dist/prices/oracle-prices/fetchers/siloV2.d.ts.map +1 -0
  43. package/dist/prices/oracle-prices/fetchers/siloV2Graphql.d.ts +36 -0
  44. package/dist/prices/oracle-prices/fetchers/siloV2Graphql.d.ts.map +1 -0
  45. package/dist/prices/oracle-prices/fetchers/siloV3.d.ts +52 -0
  46. package/dist/prices/oracle-prices/fetchers/siloV3.d.ts.map +1 -0
  47. package/dist/prices/oracle-prices/fetchers/siloV3Graphql.d.ts +19 -0
  48. package/dist/prices/oracle-prices/fetchers/siloV3Graphql.d.ts.map +1 -0
  49. package/dist/prices/oracle-prices/index.d.ts +2 -0
  50. package/dist/prices/oracle-prices/index.d.ts.map +1 -1
  51. package/dist/utils/index.d.ts +1 -1
  52. package/dist/utils/index.d.ts.map +1 -1
  53. package/package.json +6 -6
@@ -0,0 +1,101 @@
1
+ export declare const SiloAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "totalAssets";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "uint256";
9
+ }];
10
+ }, {
11
+ readonly type: "function";
12
+ readonly name: "getDebtAssets";
13
+ readonly stateMutability: "view";
14
+ readonly inputs: readonly [];
15
+ readonly outputs: readonly [{
16
+ readonly name: "";
17
+ readonly type: "uint256";
18
+ }];
19
+ }, {
20
+ readonly type: "function";
21
+ readonly name: "getCollateralAssets";
22
+ readonly stateMutability: "view";
23
+ readonly inputs: readonly [];
24
+ readonly outputs: readonly [{
25
+ readonly name: "";
26
+ readonly type: "uint256";
27
+ }];
28
+ }, {
29
+ readonly type: "function";
30
+ readonly name: "asset";
31
+ readonly stateMutability: "view";
32
+ readonly inputs: readonly [];
33
+ readonly outputs: readonly [{
34
+ readonly name: "";
35
+ readonly type: "address";
36
+ }];
37
+ }, {
38
+ readonly type: "function";
39
+ readonly name: "balanceOf";
40
+ readonly stateMutability: "view";
41
+ readonly inputs: readonly [{
42
+ readonly name: "account";
43
+ readonly type: "address";
44
+ }];
45
+ readonly outputs: readonly [{
46
+ readonly name: "";
47
+ readonly type: "uint256";
48
+ }];
49
+ }, {
50
+ readonly type: "function";
51
+ readonly name: "convertToAssets";
52
+ readonly stateMutability: "view";
53
+ readonly inputs: readonly [{
54
+ readonly name: "shares";
55
+ readonly type: "uint256";
56
+ }];
57
+ readonly outputs: readonly [{
58
+ readonly name: "";
59
+ readonly type: "uint256";
60
+ }];
61
+ }, {
62
+ readonly type: "function";
63
+ readonly name: "maxRepay";
64
+ readonly stateMutability: "view";
65
+ readonly inputs: readonly [{
66
+ readonly name: "borrower";
67
+ readonly type: "address";
68
+ }];
69
+ readonly outputs: readonly [{
70
+ readonly name: "";
71
+ readonly type: "uint256";
72
+ }];
73
+ }];
74
+ /**
75
+ * Separate ABI for the 2-arg `convertToAssets(uint256, uint8)` overload.
76
+ *
77
+ * ISilo has both a standard ERC-4626 1-arg `convertToAssets(uint256)` and a
78
+ * Silo-specific 2-arg `convertToAssets(uint256, uint8)` where the second
79
+ * param is the `AssetType` enum (0 = Protected, 1 = Collateral, 2 = Debt).
80
+ *
81
+ * viem cannot disambiguate overloaded function names within a single ABI,
82
+ * so calls using the 2-arg variant must carry this ABI via the per-call
83
+ * `abi` field (same pattern as `CreamLensV2Abi` in compound-v2).
84
+ */
85
+ export declare const SiloConvertToAssetsTypedAbi: readonly [{
86
+ readonly type: "function";
87
+ readonly name: "convertToAssets";
88
+ readonly stateMutability: "view";
89
+ readonly inputs: readonly [{
90
+ readonly name: "shares";
91
+ readonly type: "uint256";
92
+ }, {
93
+ readonly name: "assetType";
94
+ readonly type: "uint8";
95
+ }];
96
+ readonly outputs: readonly [{
97
+ readonly name: "";
98
+ readonly type: "uint256";
99
+ }];
100
+ }];
101
+ //# sourceMappingURL=Silo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Silo.d.ts","sourceRoot":"","sources":["../../../src/abis/silo-v2/Silo.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDV,CAAA;AAEV;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAW9B,CAAA"}
@@ -0,0 +1,78 @@
1
+ export declare const SiloConfigAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "getConfig";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "_silo";
7
+ readonly type: "address";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly name: "config";
11
+ readonly type: "tuple";
12
+ readonly components: readonly [{
13
+ readonly name: "daoFee";
14
+ readonly type: "uint256";
15
+ }, {
16
+ readonly name: "deployerFee";
17
+ readonly type: "uint256";
18
+ }, {
19
+ readonly name: "silo";
20
+ readonly type: "address";
21
+ }, {
22
+ readonly name: "token";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly name: "protectedShareToken";
26
+ readonly type: "address";
27
+ }, {
28
+ readonly name: "collateralShareToken";
29
+ readonly type: "address";
30
+ }, {
31
+ readonly name: "debtShareToken";
32
+ readonly type: "address";
33
+ }, {
34
+ readonly name: "solvencyOracle";
35
+ readonly type: "address";
36
+ }, {
37
+ readonly name: "maxLtvOracle";
38
+ readonly type: "address";
39
+ }, {
40
+ readonly name: "interestRateModel";
41
+ readonly type: "address";
42
+ }, {
43
+ readonly name: "maxLtv";
44
+ readonly type: "uint256";
45
+ }, {
46
+ readonly name: "lt";
47
+ readonly type: "uint256";
48
+ }, {
49
+ readonly name: "liquidationTargetLtv";
50
+ readonly type: "uint256";
51
+ }, {
52
+ readonly name: "liquidationFee";
53
+ readonly type: "uint256";
54
+ }, {
55
+ readonly name: "flashloanFee";
56
+ readonly type: "uint256";
57
+ }, {
58
+ readonly name: "hookReceiver";
59
+ readonly type: "address";
60
+ }, {
61
+ readonly name: "callBeforeQuote";
62
+ readonly type: "bool";
63
+ }];
64
+ }];
65
+ }, {
66
+ readonly type: "function";
67
+ readonly name: "getSilos";
68
+ readonly stateMutability: "view";
69
+ readonly inputs: readonly [];
70
+ readonly outputs: readonly [{
71
+ readonly name: "silo0";
72
+ readonly type: "address";
73
+ }, {
74
+ readonly name: "silo1";
75
+ readonly type: "address";
76
+ }];
77
+ }];
78
+ //# sourceMappingURL=SiloConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiloConfig.d.ts","sourceRoot":"","sources":["../../../src/abis/silo-v2/SiloConfig.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ChB,CAAA"}
@@ -0,0 +1,50 @@
1
+ export declare const SiloLensAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "getDepositAPR";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "_silo";
7
+ readonly type: "address";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly name: "depositAPR";
11
+ readonly type: "uint256";
12
+ }];
13
+ }, {
14
+ readonly type: "function";
15
+ readonly name: "getBorrowAPR";
16
+ readonly stateMutability: "view";
17
+ readonly inputs: readonly [{
18
+ readonly name: "_silo";
19
+ readonly type: "address";
20
+ }];
21
+ readonly outputs: readonly [{
22
+ readonly name: "borrowAPR";
23
+ readonly type: "uint256";
24
+ }];
25
+ }, {
26
+ readonly type: "function";
27
+ readonly name: "getUtilization";
28
+ readonly stateMutability: "view";
29
+ readonly inputs: readonly [{
30
+ readonly name: "_silo";
31
+ readonly type: "address";
32
+ }];
33
+ readonly outputs: readonly [{
34
+ readonly name: "utilization";
35
+ readonly type: "uint256";
36
+ }];
37
+ }, {
38
+ readonly type: "function";
39
+ readonly name: "getRawLiquidity";
40
+ readonly stateMutability: "view";
41
+ readonly inputs: readonly [{
42
+ readonly name: "_silo";
43
+ readonly type: "address";
44
+ }];
45
+ readonly outputs: readonly [{
46
+ readonly name: "liquidity";
47
+ readonly type: "uint256";
48
+ }];
49
+ }];
50
+ //# sourceMappingURL=SiloLens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiloLens.d.ts","sourceRoot":"","sources":["../../../src/abis/silo-v2/SiloLens.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Bd,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { SiloConfigAbi } from './SiloConfig';
2
+ export { SiloAbi, SiloConvertToAssetsTypedAbi } from './Silo';
3
+ export { SiloLensAbi } from './SiloLens';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/abis/silo-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA"}