recon-crypto-mcp 0.1.0

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 (204) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +153 -0
  3. package/dist/abis/aave-pool.d.ts +174 -0
  4. package/dist/abis/aave-pool.js +101 -0
  5. package/dist/abis/aave-pool.js.map +1 -0
  6. package/dist/abis/aave-ui-pool-data-provider.d.ts +232 -0
  7. package/dist/abis/aave-ui-pool-data-provider.js +107 -0
  8. package/dist/abis/aave-ui-pool-data-provider.js.map +1 -0
  9. package/dist/abis/access-control.d.ts +94 -0
  10. package/dist/abis/access-control.js +51 -0
  11. package/dist/abis/access-control.js.map +1 -0
  12. package/dist/abis/compound-comet.d.ts +120 -0
  13. package/dist/abis/compound-comet.js +84 -0
  14. package/dist/abis/compound-comet.js.map +1 -0
  15. package/dist/abis/eigenlayer-delegation-manager.d.ts +23 -0
  16. package/dist/abis/eigenlayer-delegation-manager.js +18 -0
  17. package/dist/abis/eigenlayer-delegation-manager.js.map +1 -0
  18. package/dist/abis/eigenlayer-strategy-manager.d.ts +53 -0
  19. package/dist/abis/eigenlayer-strategy-manager.js +47 -0
  20. package/dist/abis/eigenlayer-strategy-manager.js.map +1 -0
  21. package/dist/abis/erc20.d.ts +78 -0
  22. package/dist/abis/erc20.js +10 -0
  23. package/dist/abis/erc20.js.map +1 -0
  24. package/dist/abis/lido.d.ts +80 -0
  25. package/dist/abis/lido.js +60 -0
  26. package/dist/abis/lido.js.map +1 -0
  27. package/dist/abis/morpho-blue.d.ts +321 -0
  28. package/dist/abis/morpho-blue.js +193 -0
  29. package/dist/abis/morpho-blue.js.map +1 -0
  30. package/dist/abis/uniswap-pool.d.ts +70 -0
  31. package/dist/abis/uniswap-pool.js +53 -0
  32. package/dist/abis/uniswap-pool.js.map +1 -0
  33. package/dist/abis/uniswap-position-manager.d.ts +71 -0
  34. package/dist/abis/uniswap-position-manager.js +41 -0
  35. package/dist/abis/uniswap-position-manager.js.map +1 -0
  36. package/dist/config/cache.d.ts +12 -0
  37. package/dist/config/cache.js +12 -0
  38. package/dist/config/cache.js.map +1 -0
  39. package/dist/config/chains.d.ts +24 -0
  40. package/dist/config/chains.js +158 -0
  41. package/dist/config/chains.js.map +1 -0
  42. package/dist/config/contracts.d.ts +107 -0
  43. package/dist/config/contracts.js +123 -0
  44. package/dist/config/contracts.js.map +1 -0
  45. package/dist/config/user-config.d.ts +15 -0
  46. package/dist/config/user-config.js +93 -0
  47. package/dist/config/user-config.js.map +1 -0
  48. package/dist/data/apis/etherscan.d.ts +30 -0
  49. package/dist/data/apis/etherscan.js +109 -0
  50. package/dist/data/apis/etherscan.js.map +1 -0
  51. package/dist/data/cache.d.ts +18 -0
  52. package/dist/data/cache.js +47 -0
  53. package/dist/data/cache.js.map +1 -0
  54. package/dist/data/format.d.ts +6 -0
  55. package/dist/data/format.js +44 -0
  56. package/dist/data/format.js.map +1 -0
  57. package/dist/data/prices.d.ts +12 -0
  58. package/dist/data/prices.js +81 -0
  59. package/dist/data/prices.js.map +1 -0
  60. package/dist/data/rpc.d.ts +17 -0
  61. package/dist/data/rpc.js +68 -0
  62. package/dist/data/rpc.js.map +1 -0
  63. package/dist/index.d.ts +2 -0
  64. package/dist/index.js +344 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/modules/balances/index.d.ts +20 -0
  67. package/dist/modules/balances/index.js +49 -0
  68. package/dist/modules/balances/index.js.map +1 -0
  69. package/dist/modules/balances/schemas.d.ts +32 -0
  70. package/dist/modules/balances/schemas.js +21 -0
  71. package/dist/modules/balances/schemas.js.map +1 -0
  72. package/dist/modules/bitcoin/index.d.ts +26 -0
  73. package/dist/modules/bitcoin/index.js +128 -0
  74. package/dist/modules/bitcoin/index.js.map +1 -0
  75. package/dist/modules/bitcoin/schemas.d.ts +49 -0
  76. package/dist/modules/bitcoin/schemas.js +51 -0
  77. package/dist/modules/bitcoin/schemas.js.map +1 -0
  78. package/dist/modules/bitcoin/send.d.ts +52 -0
  79. package/dist/modules/bitcoin/send.js +158 -0
  80. package/dist/modules/bitcoin/send.js.map +1 -0
  81. package/dist/modules/bitcoin/utxo.d.ts +99 -0
  82. package/dist/modules/bitcoin/utxo.js +116 -0
  83. package/dist/modules/bitcoin/utxo.js.map +1 -0
  84. package/dist/modules/compound/actions.d.ts +8 -0
  85. package/dist/modules/compound/actions.js +154 -0
  86. package/dist/modules/compound/actions.js.map +1 -0
  87. package/dist/modules/compound/index.d.ts +26 -0
  88. package/dist/modules/compound/index.js +141 -0
  89. package/dist/modules/compound/index.js.map +1 -0
  90. package/dist/modules/compound/schemas.d.ts +95 -0
  91. package/dist/modules/compound/schemas.js +37 -0
  92. package/dist/modules/compound/schemas.js.map +1 -0
  93. package/dist/modules/execution/index.d.ts +51 -0
  94. package/dist/modules/execution/index.js +271 -0
  95. package/dist/modules/execution/index.js.map +1 -0
  96. package/dist/modules/execution/schemas.d.ts +183 -0
  97. package/dist/modules/execution/schemas.js +88 -0
  98. package/dist/modules/execution/schemas.js.map +1 -0
  99. package/dist/modules/feedback/index.d.ts +28 -0
  100. package/dist/modules/feedback/index.js +161 -0
  101. package/dist/modules/feedback/index.js.map +1 -0
  102. package/dist/modules/feedback/rate-limit.d.ts +15 -0
  103. package/dist/modules/feedback/rate-limit.js +110 -0
  104. package/dist/modules/feedback/rate-limit.js.map +1 -0
  105. package/dist/modules/feedback/schemas.d.ts +41 -0
  106. package/dist/modules/feedback/schemas.js +40 -0
  107. package/dist/modules/feedback/schemas.js.map +1 -0
  108. package/dist/modules/morpho/actions.d.ts +8 -0
  109. package/dist/modules/morpho/actions.js +265 -0
  110. package/dist/modules/morpho/actions.js.map +1 -0
  111. package/dist/modules/morpho/index.d.ts +26 -0
  112. package/dist/modules/morpho/index.js +94 -0
  113. package/dist/modules/morpho/index.js.map +1 -0
  114. package/dist/modules/morpho/schemas.d.ts +130 -0
  115. package/dist/modules/morpho/schemas.js +34 -0
  116. package/dist/modules/morpho/schemas.js.map +1 -0
  117. package/dist/modules/portfolio/index.d.ts +3 -0
  118. package/dist/modules/portfolio/index.js +197 -0
  119. package/dist/modules/portfolio/index.js.map +1 -0
  120. package/dist/modules/portfolio/schemas.d.ts +20 -0
  121. package/dist/modules/portfolio/schemas.js +15 -0
  122. package/dist/modules/portfolio/schemas.js.map +1 -0
  123. package/dist/modules/positions/aave.d.ts +22 -0
  124. package/dist/modules/positions/aave.js +197 -0
  125. package/dist/modules/positions/aave.js.map +1 -0
  126. package/dist/modules/positions/actions.d.ts +18 -0
  127. package/dist/modules/positions/actions.js +205 -0
  128. package/dist/modules/positions/actions.js.map +1 -0
  129. package/dist/modules/positions/index.d.ts +37 -0
  130. package/dist/modules/positions/index.js +59 -0
  131. package/dist/modules/positions/index.js.map +1 -0
  132. package/dist/modules/positions/schemas.d.ts +55 -0
  133. package/dist/modules/positions/schemas.js +25 -0
  134. package/dist/modules/positions/schemas.js.map +1 -0
  135. package/dist/modules/positions/uniswap.d.ts +4 -0
  136. package/dist/modules/positions/uniswap.js +181 -0
  137. package/dist/modules/positions/uniswap.js.map +1 -0
  138. package/dist/modules/prices/index.d.ts +19 -0
  139. package/dist/modules/prices/index.js +22 -0
  140. package/dist/modules/prices/index.js.map +1 -0
  141. package/dist/modules/security/index.d.ts +26 -0
  142. package/dist/modules/security/index.js +13 -0
  143. package/dist/modules/security/index.js.map +1 -0
  144. package/dist/modules/security/permissions.d.ts +8 -0
  145. package/dist/modules/security/permissions.js +96 -0
  146. package/dist/modules/security/permissions.js.map +1 -0
  147. package/dist/modules/security/risk-score.d.ts +18 -0
  148. package/dist/modules/security/risk-score.js +116 -0
  149. package/dist/modules/security/risk-score.js.map +1 -0
  150. package/dist/modules/security/schemas.d.ts +31 -0
  151. package/dist/modules/security/schemas.js +16 -0
  152. package/dist/modules/security/schemas.js.map +1 -0
  153. package/dist/modules/security/verification.d.ts +4 -0
  154. package/dist/modules/security/verification.js +82 -0
  155. package/dist/modules/security/verification.js.map +1 -0
  156. package/dist/modules/shared/approval.d.ts +71 -0
  157. package/dist/modules/shared/approval.js +130 -0
  158. package/dist/modules/shared/approval.js.map +1 -0
  159. package/dist/modules/staking/actions.d.ts +22 -0
  160. package/dist/modules/staking/actions.js +100 -0
  161. package/dist/modules/staking/actions.js.map +1 -0
  162. package/dist/modules/staking/eigenlayer.d.ts +14 -0
  163. package/dist/modules/staking/eigenlayer.js +105 -0
  164. package/dist/modules/staking/eigenlayer.js.map +1 -0
  165. package/dist/modules/staking/index.d.ts +24 -0
  166. package/dist/modules/staking/index.js +59 -0
  167. package/dist/modules/staking/index.js.map +1 -0
  168. package/dist/modules/staking/lido.d.ts +14 -0
  169. package/dist/modules/staking/lido.js +113 -0
  170. package/dist/modules/staking/lido.js.map +1 -0
  171. package/dist/modules/staking/schemas.d.ts +34 -0
  172. package/dist/modules/staking/schemas.js +20 -0
  173. package/dist/modules/staking/schemas.js.map +1 -0
  174. package/dist/modules/swap/index.d.ts +47 -0
  175. package/dist/modules/swap/index.js +376 -0
  176. package/dist/modules/swap/index.js.map +1 -0
  177. package/dist/modules/swap/lifi.d.ts +17 -0
  178. package/dist/modules/swap/lifi.js +44 -0
  179. package/dist/modules/swap/lifi.js.map +1 -0
  180. package/dist/modules/swap/oneinch.d.ts +26 -0
  181. package/dist/modules/swap/oneinch.js +33 -0
  182. package/dist/modules/swap/oneinch.js.map +1 -0
  183. package/dist/modules/swap/schemas.d.ts +65 -0
  184. package/dist/modules/swap/schemas.js +46 -0
  185. package/dist/modules/swap/schemas.js.map +1 -0
  186. package/dist/setup.d.ts +2 -0
  187. package/dist/setup.js +257 -0
  188. package/dist/setup.js.map +1 -0
  189. package/dist/signing/pre-sign-check.d.ts +8 -0
  190. package/dist/signing/pre-sign-check.js +231 -0
  191. package/dist/signing/pre-sign-check.js.map +1 -0
  192. package/dist/signing/session.d.ts +28 -0
  193. package/dist/signing/session.js +26 -0
  194. package/dist/signing/session.js.map +1 -0
  195. package/dist/signing/tx-store.d.ts +29 -0
  196. package/dist/signing/tx-store.js +85 -0
  197. package/dist/signing/tx-store.js.map +1 -0
  198. package/dist/signing/walletconnect.d.ts +33 -0
  199. package/dist/signing/walletconnect.js +226 -0
  200. package/dist/signing/walletconnect.js.map +1 -0
  201. package/dist/types/index.d.ts +222 -0
  202. package/dist/types/index.js +18 -0
  203. package/dist/types/index.js.map +1 -0
  204. package/package.json +134 -0
@@ -0,0 +1,84 @@
1
+ /** Minimal Compound V3 (Comet) ABI — enough for position reads + supply/withdraw. */
2
+ export const cometAbi = [
3
+ {
4
+ type: "function",
5
+ name: "baseToken",
6
+ stateMutability: "view",
7
+ inputs: [],
8
+ outputs: [{ name: "", type: "address" }],
9
+ },
10
+ {
11
+ type: "function",
12
+ name: "balanceOf",
13
+ stateMutability: "view",
14
+ inputs: [{ name: "account", type: "address" }],
15
+ outputs: [{ name: "", type: "uint256" }],
16
+ },
17
+ {
18
+ type: "function",
19
+ name: "borrowBalanceOf",
20
+ stateMutability: "view",
21
+ inputs: [{ name: "account", type: "address" }],
22
+ outputs: [{ name: "", type: "uint256" }],
23
+ },
24
+ {
25
+ type: "function",
26
+ name: "collateralBalanceOf",
27
+ stateMutability: "view",
28
+ inputs: [
29
+ { name: "account", type: "address" },
30
+ { name: "asset", type: "address" },
31
+ ],
32
+ outputs: [{ name: "", type: "uint128" }],
33
+ },
34
+ {
35
+ type: "function",
36
+ name: "numAssets",
37
+ stateMutability: "view",
38
+ inputs: [],
39
+ outputs: [{ name: "", type: "uint8" }],
40
+ },
41
+ {
42
+ type: "function",
43
+ name: "getAssetInfo",
44
+ stateMutability: "view",
45
+ inputs: [{ name: "i", type: "uint8" }],
46
+ outputs: [
47
+ {
48
+ name: "",
49
+ type: "tuple",
50
+ components: [
51
+ { name: "offset", type: "uint8" },
52
+ { name: "asset", type: "address" },
53
+ { name: "priceFeed", type: "address" },
54
+ { name: "scale", type: "uint64" },
55
+ { name: "borrowCollateralFactor", type: "uint64" },
56
+ { name: "liquidateCollateralFactor", type: "uint64" },
57
+ { name: "liquidationFactor", type: "uint64" },
58
+ { name: "supplyCap", type: "uint128" },
59
+ ],
60
+ },
61
+ ],
62
+ },
63
+ {
64
+ type: "function",
65
+ name: "supply",
66
+ stateMutability: "nonpayable",
67
+ inputs: [
68
+ { name: "asset", type: "address" },
69
+ { name: "amount", type: "uint256" },
70
+ ],
71
+ outputs: [],
72
+ },
73
+ {
74
+ type: "function",
75
+ name: "withdraw",
76
+ stateMutability: "nonpayable",
77
+ inputs: [
78
+ { name: "asset", type: "address" },
79
+ { name: "amount", type: "uint256" },
80
+ ],
81
+ outputs: [],
82
+ },
83
+ ];
84
+ //# sourceMappingURL=compound-comet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compound-comet.js","sourceRoot":"","sources":["../../src/abis/compound-comet.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,iBAAiB;QACvB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EA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,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;iBACvC;aACF;SACF;KACF;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,EAAE;KACZ;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,EAAE;KACZ;CACO,CAAC"}
@@ -0,0 +1,23 @@
1
+ export declare const eigenDelegationManagerAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "delegatedTo";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "staker";
7
+ readonly type: "address";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly type: "address";
11
+ }];
12
+ }, {
13
+ readonly type: "function";
14
+ readonly name: "isDelegated";
15
+ readonly stateMutability: "view";
16
+ readonly inputs: readonly [{
17
+ readonly name: "staker";
18
+ readonly type: "address";
19
+ }];
20
+ readonly outputs: readonly [{
21
+ readonly type: "bool";
22
+ }];
23
+ }];
@@ -0,0 +1,18 @@
1
+ // EigenLayer DelegationManager — read who the staker is delegated to.
2
+ export const eigenDelegationManagerAbi = [
3
+ {
4
+ type: "function",
5
+ name: "delegatedTo",
6
+ stateMutability: "view",
7
+ inputs: [{ name: "staker", type: "address" }],
8
+ outputs: [{ type: "address" }],
9
+ },
10
+ {
11
+ type: "function",
12
+ name: "isDelegated",
13
+ stateMutability: "view",
14
+ inputs: [{ name: "staker", type: "address" }],
15
+ outputs: [{ type: "bool" }],
16
+ },
17
+ ];
18
+ //# sourceMappingURL=eigenlayer-delegation-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eigenlayer-delegation-manager.js","sourceRoot":"","sources":["../../src/abis/eigenlayer-delegation-manager.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KAC5B;CACO,CAAC"}
@@ -0,0 +1,53 @@
1
+ export declare const eigenStrategyManagerAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "getDeposits";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "staker";
7
+ readonly type: "address";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly name: "strategies";
11
+ readonly type: "address[]";
12
+ }, {
13
+ readonly name: "shares";
14
+ readonly type: "uint256[]";
15
+ }];
16
+ }, {
17
+ readonly type: "function";
18
+ readonly name: "depositIntoStrategy";
19
+ readonly stateMutability: "nonpayable";
20
+ readonly inputs: readonly [{
21
+ readonly name: "strategy";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly name: "token";
25
+ readonly type: "address";
26
+ }, {
27
+ readonly name: "amount";
28
+ readonly type: "uint256";
29
+ }];
30
+ readonly outputs: readonly [{
31
+ readonly type: "uint256";
32
+ }];
33
+ }];
34
+ export declare const eigenStrategyAbi: readonly [{
35
+ readonly type: "function";
36
+ readonly name: "underlyingToken";
37
+ readonly stateMutability: "view";
38
+ readonly inputs: readonly [];
39
+ readonly outputs: readonly [{
40
+ readonly type: "address";
41
+ }];
42
+ }, {
43
+ readonly type: "function";
44
+ readonly name: "sharesToUnderlyingView";
45
+ readonly stateMutability: "view";
46
+ readonly inputs: readonly [{
47
+ readonly name: "amountShares";
48
+ readonly type: "uint256";
49
+ }];
50
+ readonly outputs: readonly [{
51
+ readonly type: "uint256";
52
+ }];
53
+ }];
@@ -0,0 +1,47 @@
1
+ // EigenLayer StrategyManager — enumerate strategies and share balances.
2
+ //
3
+ // NOTE: the public `stakerStrategyList` mapping is auto-generated by Solidity as
4
+ // `stakerStrategyList(address,uint256)` (index accessor), NOT `stakerStrategyList(address)`
5
+ // returning the full array. Calling with just the staker address reverts with no data.
6
+ // Use `getDeposits` instead — it's the canonical read-all method and returns strategies +
7
+ // shares in a single call.
8
+ export const eigenStrategyManagerAbi = [
9
+ {
10
+ type: "function",
11
+ name: "getDeposits",
12
+ stateMutability: "view",
13
+ inputs: [{ name: "staker", type: "address" }],
14
+ outputs: [
15
+ { name: "strategies", type: "address[]" },
16
+ { name: "shares", type: "uint256[]" },
17
+ ],
18
+ },
19
+ {
20
+ type: "function",
21
+ name: "depositIntoStrategy",
22
+ stateMutability: "nonpayable",
23
+ inputs: [
24
+ { name: "strategy", type: "address" },
25
+ { name: "token", type: "address" },
26
+ { name: "amount", type: "uint256" },
27
+ ],
28
+ outputs: [{ type: "uint256" }],
29
+ },
30
+ ];
31
+ export const eigenStrategyAbi = [
32
+ {
33
+ type: "function",
34
+ name: "underlyingToken",
35
+ stateMutability: "view",
36
+ inputs: [],
37
+ outputs: [{ type: "address" }],
38
+ },
39
+ {
40
+ type: "function",
41
+ name: "sharesToUnderlyingView",
42
+ stateMutability: "view",
43
+ inputs: [{ name: "amountShares", type: "uint256" }],
44
+ outputs: [{ type: "uint256" }],
45
+ },
46
+ ];
47
+ //# sourceMappingURL=eigenlayer-strategy-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eigenlayer-strategy-manager.js","sourceRoot":"","sources":["../../src/abis/eigenlayer-strategy-manager.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,EAAE;AACF,iFAAiF;AACjF,4FAA4F;AAC5F,uFAAuF;AACvF,0FAA0F;AAC1F,2BAA2B;AAC3B,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7C,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE;YACzC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE;SACtC;KACF;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,qBAAqB;QAC3B,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,iBAAiB;QACvB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,wBAAwB;QAC9B,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;CACO,CAAC"}
@@ -0,0 +1,78 @@
1
+ export declare const erc20Abi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "balanceOf";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "owner";
7
+ readonly type: "address";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly type: "uint256";
11
+ }];
12
+ }, {
13
+ readonly type: "function";
14
+ readonly name: "decimals";
15
+ readonly stateMutability: "view";
16
+ readonly inputs: readonly [];
17
+ readonly outputs: readonly [{
18
+ readonly type: "uint8";
19
+ }];
20
+ }, {
21
+ readonly type: "function";
22
+ readonly name: "symbol";
23
+ readonly stateMutability: "view";
24
+ readonly inputs: readonly [];
25
+ readonly outputs: readonly [{
26
+ readonly type: "string";
27
+ }];
28
+ }, {
29
+ readonly type: "function";
30
+ readonly name: "name";
31
+ readonly stateMutability: "view";
32
+ readonly inputs: readonly [];
33
+ readonly outputs: readonly [{
34
+ readonly type: "string";
35
+ }];
36
+ }, {
37
+ readonly type: "function";
38
+ readonly name: "allowance";
39
+ readonly stateMutability: "view";
40
+ readonly inputs: readonly [{
41
+ readonly name: "owner";
42
+ readonly type: "address";
43
+ }, {
44
+ readonly name: "spender";
45
+ readonly type: "address";
46
+ }];
47
+ readonly outputs: readonly [{
48
+ readonly type: "uint256";
49
+ }];
50
+ }, {
51
+ readonly type: "function";
52
+ readonly name: "approve";
53
+ readonly stateMutability: "nonpayable";
54
+ readonly inputs: readonly [{
55
+ readonly name: "spender";
56
+ readonly type: "address";
57
+ }, {
58
+ readonly name: "amount";
59
+ readonly type: "uint256";
60
+ }];
61
+ readonly outputs: readonly [{
62
+ readonly type: "bool";
63
+ }];
64
+ }, {
65
+ readonly type: "function";
66
+ readonly name: "transfer";
67
+ readonly stateMutability: "nonpayable";
68
+ readonly inputs: readonly [{
69
+ readonly name: "to";
70
+ readonly type: "address";
71
+ }, {
72
+ readonly name: "amount";
73
+ readonly type: "uint256";
74
+ }];
75
+ readonly outputs: readonly [{
76
+ readonly type: "bool";
77
+ }];
78
+ }];
@@ -0,0 +1,10 @@
1
+ export const erc20Abi = [
2
+ { type: "function", name: "balanceOf", stateMutability: "view", inputs: [{ name: "owner", type: "address" }], outputs: [{ type: "uint256" }] },
3
+ { type: "function", name: "decimals", stateMutability: "view", inputs: [], outputs: [{ type: "uint8" }] },
4
+ { type: "function", name: "symbol", stateMutability: "view", inputs: [], outputs: [{ type: "string" }] },
5
+ { type: "function", name: "name", stateMutability: "view", inputs: [], outputs: [{ type: "string" }] },
6
+ { type: "function", name: "allowance", stateMutability: "view", inputs: [{ name: "owner", type: "address" }, { name: "spender", type: "address" }], outputs: [{ type: "uint256" }] },
7
+ { type: "function", name: "approve", stateMutability: "nonpayable", inputs: [{ name: "spender", type: "address" }, { name: "amount", type: "uint256" }], outputs: [{ type: "bool" }] },
8
+ { type: "function", name: "transfer", stateMutability: "nonpayable", inputs: [{ name: "to", type: "address" }, { name: "amount", type: "uint256" }], outputs: [{ type: "bool" }] },
9
+ ];
10
+ //# sourceMappingURL=erc20.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc20.js","sourceRoot":"","sources":["../../src/abis/erc20.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,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,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE;CAC1K,CAAC"}
@@ -0,0 +1,80 @@
1
+ export declare const stETHAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "balanceOf";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "account";
7
+ readonly type: "address";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly type: "uint256";
11
+ }];
12
+ }, {
13
+ readonly type: "function";
14
+ readonly name: "getPooledEthByShares";
15
+ readonly stateMutability: "view";
16
+ readonly inputs: readonly [{
17
+ readonly name: "sharesAmount";
18
+ readonly type: "uint256";
19
+ }];
20
+ readonly outputs: readonly [{
21
+ readonly type: "uint256";
22
+ }];
23
+ }, {
24
+ readonly type: "function";
25
+ readonly name: "submit";
26
+ readonly stateMutability: "payable";
27
+ readonly inputs: readonly [{
28
+ readonly name: "referral";
29
+ readonly type: "address";
30
+ }];
31
+ readonly outputs: readonly [{
32
+ readonly type: "uint256";
33
+ }];
34
+ }];
35
+ export declare const wstETHAbi: readonly [{
36
+ readonly type: "function";
37
+ readonly name: "balanceOf";
38
+ readonly stateMutability: "view";
39
+ readonly inputs: readonly [{
40
+ readonly name: "account";
41
+ readonly type: "address";
42
+ }];
43
+ readonly outputs: readonly [{
44
+ readonly type: "uint256";
45
+ }];
46
+ }, {
47
+ readonly type: "function";
48
+ readonly name: "stEthPerToken";
49
+ readonly stateMutability: "view";
50
+ readonly inputs: readonly [];
51
+ readonly outputs: readonly [{
52
+ readonly type: "uint256";
53
+ }];
54
+ }, {
55
+ readonly type: "function";
56
+ readonly name: "getStETHByWstETH";
57
+ readonly stateMutability: "view";
58
+ readonly inputs: readonly [{
59
+ readonly name: "wstETHAmount";
60
+ readonly type: "uint256";
61
+ }];
62
+ readonly outputs: readonly [{
63
+ readonly type: "uint256";
64
+ }];
65
+ }];
66
+ export declare const lidoWithdrawalQueueAbi: readonly [{
67
+ readonly type: "function";
68
+ readonly name: "requestWithdrawals";
69
+ readonly stateMutability: "nonpayable";
70
+ readonly inputs: readonly [{
71
+ readonly name: "amounts";
72
+ readonly type: "uint256[]";
73
+ }, {
74
+ readonly name: "owner";
75
+ readonly type: "address";
76
+ }];
77
+ readonly outputs: readonly [{
78
+ readonly type: "uint256[]";
79
+ }];
80
+ }];
@@ -0,0 +1,60 @@
1
+ // Lido — stETH, wstETH, and the withdrawal queue. Minimal functions only.
2
+ export const stETHAbi = [
3
+ {
4
+ type: "function",
5
+ name: "balanceOf",
6
+ stateMutability: "view",
7
+ inputs: [{ name: "account", type: "address" }],
8
+ outputs: [{ type: "uint256" }],
9
+ },
10
+ {
11
+ type: "function",
12
+ name: "getPooledEthByShares",
13
+ stateMutability: "view",
14
+ inputs: [{ name: "sharesAmount", type: "uint256" }],
15
+ outputs: [{ type: "uint256" }],
16
+ },
17
+ {
18
+ type: "function",
19
+ name: "submit",
20
+ stateMutability: "payable",
21
+ inputs: [{ name: "referral", type: "address" }],
22
+ outputs: [{ type: "uint256" }],
23
+ },
24
+ ];
25
+ export const wstETHAbi = [
26
+ {
27
+ type: "function",
28
+ name: "balanceOf",
29
+ stateMutability: "view",
30
+ inputs: [{ name: "account", type: "address" }],
31
+ outputs: [{ type: "uint256" }],
32
+ },
33
+ {
34
+ type: "function",
35
+ name: "stEthPerToken",
36
+ stateMutability: "view",
37
+ inputs: [],
38
+ outputs: [{ type: "uint256" }],
39
+ },
40
+ {
41
+ type: "function",
42
+ name: "getStETHByWstETH",
43
+ stateMutability: "view",
44
+ inputs: [{ name: "wstETHAmount", type: "uint256" }],
45
+ outputs: [{ type: "uint256" }],
46
+ },
47
+ ];
48
+ export const lidoWithdrawalQueueAbi = [
49
+ {
50
+ type: "function",
51
+ name: "requestWithdrawals",
52
+ stateMutability: "nonpayable",
53
+ inputs: [
54
+ { name: "amounts", type: "uint256[]" },
55
+ { name: "owner", type: "address" },
56
+ ],
57
+ outputs: [{ type: "uint256[]" }],
58
+ },
59
+ ];
60
+ //# sourceMappingURL=lido.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lido.js","sourceRoot":"","sources":["../../src/abis/lido.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,sBAAsB;QAC5B,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,SAAS;QAC1B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC/C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KAC/B;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,WAAW;QACjB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC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