@arcadia-finance/mcp-server 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 (59) hide show
  1. package/LICENSE.md +97 -0
  2. package/README.md +186 -0
  3. package/dist/abis/account.json +1012 -0
  4. package/dist/abis/account_v4.json +1027 -0
  5. package/dist/abis/chainlink.json +509 -0
  6. package/dist/abis/erc20.json +299 -0
  7. package/dist/abis/factory.json +938 -0
  8. package/dist/abis/gauge_helper.json +84 -0
  9. package/dist/abis/index.js +26 -0
  10. package/dist/abis/mainreg.json +1172 -0
  11. package/dist/abis/nftmanager.json +1221 -0
  12. package/dist/abis/nftmanager_v4.json +1297 -0
  13. package/dist/abis/pool.json +2136 -0
  14. package/dist/abis/slipstream_nftmanager.json +1312 -0
  15. package/dist/abis/staked_aero_am.json +1220 -0
  16. package/dist/abis/staked_slipstream_am.json +1131 -0
  17. package/dist/abis/state_viewer.json +365 -0
  18. package/dist/abis/tranche.json +1004 -0
  19. package/dist/abis/wrapped_aero_am.json +1232 -0
  20. package/dist/abis/wrapped_staked_slipstream_am.json +338 -0
  21. package/dist/clients/api.js +189 -0
  22. package/dist/clients/chain.js +30 -0
  23. package/dist/config/addresses.js +94 -0
  24. package/dist/config/chains.js +31 -0
  25. package/dist/index.js +29 -0
  26. package/dist/skills/clamm-liquidity/SKILL.md +167 -0
  27. package/dist/skills/clamm-liquidity/automation.md +138 -0
  28. package/dist/skills/clamm-liquidity/selection.md +183 -0
  29. package/dist/skills/clamm-liquidity/strategies.md +337 -0
  30. package/dist/tools/advanced/account-metadata.js +46 -0
  31. package/dist/tools/advanced/add-liquidity.js +310 -0
  32. package/dist/tools/advanced/close-position.js +208 -0
  33. package/dist/tools/advanced/format-response.js +26 -0
  34. package/dist/tools/advanced/position-actions.js +95 -0
  35. package/dist/tools/advanced/remove-liquidity.js +68 -0
  36. package/dist/tools/advanced/repay-with-collateral.js +66 -0
  37. package/dist/tools/advanced/swap.js +64 -0
  38. package/dist/tools/index.js +52 -0
  39. package/dist/tools/read/accounts.js +243 -0
  40. package/dist/tools/read/allowances.js +86 -0
  41. package/dist/tools/read/assets.js +54 -0
  42. package/dist/tools/read/balances.js +93 -0
  43. package/dist/tools/read/guides.js +59 -0
  44. package/dist/tools/read/points.js +25 -0
  45. package/dist/tools/read/pools.js +48 -0
  46. package/dist/tools/read/protocol.js +94 -0
  47. package/dist/tools/write/approve.js +99 -0
  48. package/dist/tools/write/borrow.js +87 -0
  49. package/dist/tools/write/configure-asset-manager.js +258 -0
  50. package/dist/tools/write/create-account.js +112 -0
  51. package/dist/tools/write/deposit.js +104 -0
  52. package/dist/tools/write/repay.js +56 -0
  53. package/dist/tools/write/set-asset-manager.js +65 -0
  54. package/dist/tools/write/sign-and-send.js +90 -0
  55. package/dist/tools/write/withdraw.js +114 -0
  56. package/dist/types/api.js +5 -0
  57. package/dist/utils/attribution.js +20 -0
  58. package/dist/utils/validation.js +17 -0
  59. package/package.json +67 -0
@@ -0,0 +1,84 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "getStakedPositions",
5
+ "constant": false,
6
+ "anonymous": false,
7
+ "stateMutability": "view",
8
+ "inputs": [
9
+ {
10
+ "name": "user",
11
+ "type": "address",
12
+ "storage_location": "default",
13
+ "offset": 0,
14
+ "index": "0x0000000000000000000000000000000000000000000000000000000000000000",
15
+ "indexed": false,
16
+ "simple_type": {
17
+ "type": "address"
18
+ }
19
+ }
20
+ ],
21
+ "outputs": [
22
+ {
23
+ "name": "positions",
24
+ "type": "tuple[]",
25
+ "storage_location": "default",
26
+ "components": [
27
+ {
28
+ "name": "gauge",
29
+ "type": "address",
30
+ "storage_location": "default",
31
+ "offset": 0,
32
+ "index": "0x0000000000000000000000000000000000000000000000000000000000000000",
33
+ "indexed": false,
34
+ "simple_type": {
35
+ "type": "address"
36
+ }
37
+ },
38
+ {
39
+ "name": "version",
40
+ "type": "uint8",
41
+ "storage_location": "default",
42
+ "offset": 0,
43
+ "index": "0x0000000000000000000000000000000000000000000000000000000000000000",
44
+ "indexed": false,
45
+ "simple_type": {
46
+ "type": "uint"
47
+ }
48
+ },
49
+ {
50
+ "name": "balance",
51
+ "type": "uint256",
52
+ "storage_location": "default",
53
+ "offset": 0,
54
+ "index": "0x0000000000000000000000000000000000000000000000000000000000000000",
55
+ "indexed": false,
56
+ "simple_type": {
57
+ "type": "uint"
58
+ }
59
+ },
60
+ {
61
+ "name": "ids",
62
+ "type": "uint256[]",
63
+ "storage_location": "default",
64
+ "offset": 0,
65
+ "index": "0x0000000000000000000000000000000000000000000000000000000000000000",
66
+ "indexed": false,
67
+ "simple_type": {
68
+ "type": "slice",
69
+ "nested_type": {
70
+ "type": "uint"
71
+ }
72
+ }
73
+ }
74
+ ],
75
+ "offset": 0,
76
+ "index": "0x0000000000000000000000000000000000000000000000000000000000000000",
77
+ "indexed": false,
78
+ "simple_type": {
79
+ "type": "slice"
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ ]
@@ -0,0 +1,26 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { dirname, join } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ const __dirname = dirname(fileURLToPath(import.meta.url));
5
+ const load = (name) => JSON.parse(readFileSync(join(__dirname, `${name}.json`), "utf-8"));
6
+ export const accountAbi = load("account");
7
+ export const accountV4Abi = load("account_v4");
8
+ export function getAccountAbi(version) {
9
+ return version >= 4 ? accountV4Abi : accountAbi;
10
+ }
11
+ export const factoryAbi = load("factory");
12
+ export const poolAbi = load("pool");
13
+ export const erc20Abi = load("erc20");
14
+ export const registryAbi = load("mainreg");
15
+ export const stateViewerAbi = load("state_viewer");
16
+ export const trancheAbi = load("tranche");
17
+ export const chainlinkAbi = load("chainlink");
18
+ export const gaugeHelperAbi = load("gauge_helper");
19
+ export const nftmanagerAbi = load("nftmanager");
20
+ export const nftmanagerV4Abi = load("nftmanager_v4");
21
+ export const slipstreamNftmanagerAbi = load("slipstream_nftmanager");
22
+ export const stakedAeroAmAbi = load("staked_aero_am");
23
+ export const stakedSlipstreamAmAbi = load("staked_slipstream_am");
24
+ export const wrappedAeroAmAbi = load("wrapped_aero_am");
25
+ export const wrappedStakedSlipstreamAmAbi = load("wrapped_staked_slipstream_am");
26
+ //# sourceMappingURL=index.js.map