@indigoprotocol/indigo-mcp 0.2.14 → 0.3.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 (39) hide show
  1. package/README.md +249 -99
  2. package/dist/index.js +59106 -49961
  3. package/dist/payment.d.ts +4 -0
  4. package/dist/payment.d.ts.map +1 -0
  5. package/dist/server.d.ts.map +1 -1
  6. package/dist/tools/analytics-tools.d.ts.map +1 -1
  7. package/dist/tools/asset-tools.d.ts.map +1 -1
  8. package/dist/tools/cdp-liquidation-tools.d.ts.map +1 -1
  9. package/dist/tools/cdp-mint-burn-tools.d.ts.map +1 -1
  10. package/dist/tools/cdp-tools.d.ts.map +1 -1
  11. package/dist/tools/cdp-write-tools.d.ts.map +1 -1
  12. package/dist/tools/dex-tools.d.ts.map +1 -1
  13. package/dist/tools/governance-tools.d.ts.map +1 -1
  14. package/dist/tools/index.d.ts.map +1 -1
  15. package/dist/tools/interest-tools.d.ts +3 -0
  16. package/dist/tools/interest-tools.d.ts.map +1 -0
  17. package/dist/tools/leverage-cdp-tools.d.ts.map +1 -1
  18. package/dist/tools/oracle-tools.d.ts +3 -0
  19. package/dist/tools/oracle-tools.d.ts.map +1 -0
  20. package/dist/tools/redemption-tools.d.ts.map +1 -1
  21. package/dist/tools/rob-write-tools.d.ts.map +1 -1
  22. package/dist/tools/sp-request-tools.d.ts.map +1 -1
  23. package/dist/tools/stability-pool-tools.d.ts.map +1 -1
  24. package/dist/tools/stability-pool-write-tools.d.ts.map +1 -1
  25. package/dist/tools/stableswap-tools.d.ts +3 -0
  26. package/dist/tools/stableswap-tools.d.ts.map +1 -0
  27. package/dist/tools/staking-reward-tools.d.ts.map +1 -1
  28. package/dist/tools/staking-tools.d.ts.map +1 -1
  29. package/dist/tools/staking-write-tools.d.ts.map +1 -1
  30. package/dist/utils/indexer-client.d.ts.map +1 -1
  31. package/dist/utils/sdk-config.d.ts +7 -1
  32. package/dist/utils/sdk-config.d.ts.map +1 -1
  33. package/dist/utils/tx-builder.d.ts +2 -2
  34. package/dist/utils/tx-builder.d.ts.map +1 -1
  35. package/dist/utils/v3-finders.d.ts +66 -0
  36. package/dist/utils/v3-finders.d.ts.map +1 -0
  37. package/dist/utils/validators.d.ts +1 -1
  38. package/dist/utils/validators.d.ts.map +1 -1
  39. package/package.json +6 -2
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare const FREE_TOOLS: string[];
3
+ export declare function applyPaymentGate(server: McpServer): void;
4
+ //# sourceMappingURL=payment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../src/payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,eAAO,MAAM,UAAU,EAAE,MAAM,EAAO,CAAC;AAEvC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAaxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAWpE,wBAAgB,YAAY,IAAI,SAAS,CAUxC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYpE,wBAAgB,YAAY,IAAI,SAAS,CAYxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"analytics-tools.d.ts","sourceRoot":"","sources":["../../src/tools/analytics-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAmI9D"}
1
+ {"version":3,"file":"analytics-tools.d.ts","sourceRoot":"","sources":["../../src/tools/analytics-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoI9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"asset-tools.d.ts","sourceRoot":"","sources":["../../src/tools/asset-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAmJ1D"}
1
+ {"version":3,"file":"asset-tools.d.ts","sourceRoot":"","sources":["../../src/tools/asset-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAyBzE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAqK1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"cdp-liquidation-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-liquidation-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAiGzE,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA8OnE"}
1
+ {"version":3,"file":"cdp-liquidation-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-liquidation-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAsBzE,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoPnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"cdp-mint-burn-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-mint-burn-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAqGzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4IhE"}
1
+ {"version":3,"file":"cdp-mint-burn-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-mint-burn-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAoBzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAyIhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"cdp-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA8BzE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA+MxD"}
1
+ {"version":3,"file":"cdp-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgFzE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAuNxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"cdp-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAkIzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAkR7D"}
1
+ {"version":3,"file":"cdp-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/cdp-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAqBzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwQ7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"dex-tools.d.ts","sourceRoot":"","sources":["../../src/tools/dex-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAyGxD"}
1
+ {"version":3,"file":"dex-tools.d.ts","sourceRoot":"","sources":["../../src/tools/dex-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA6GxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"governance-tools.d.ts","sourceRoot":"","sources":["../../src/tools/governance-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA+D/D"}
1
+ {"version":3,"file":"governance-tools.d.ts","sourceRoot":"","sources":["../../src/tools/governance-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA8D/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAoBzE,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAmBrD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAuBzE,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAsBrD"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerInterestTools(server: McpServer): void;
3
+ //# sourceMappingURL=interest-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interest-tools.d.ts","sourceRoot":"","sources":["../../src/tools/interest-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAuCzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4Q7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"leverage-cdp-tools.d.ts","sourceRoot":"","sources":["../../src/tools/leverage-cdp-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAuHzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwEhE"}
1
+ {"version":3,"file":"leverage-cdp-tools.d.ts","sourceRoot":"","sources":["../../src/tools/leverage-cdp-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAqBzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA8EhE"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerOracleTools(server: McpServer): void;
3
+ //# sourceMappingURL=oracle-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oracle-tools.d.ts","sourceRoot":"","sources":["../../src/tools/oracle-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmBzE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAsN3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"redemption-tools.d.ts","sourceRoot":"","sources":["../../src/tools/redemption-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAczE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwG/D"}
1
+ {"version":3,"file":"redemption-tools.d.ts","sourceRoot":"","sources":["../../src/tools/redemption-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAqBzE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4F/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"rob-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/rob-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgBzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAuR7D"}
1
+ {"version":3,"file":"rob-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/rob-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAkBzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4R7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"sp-request-tools.d.ts","sourceRoot":"","sources":["../../src/tools/sp-request-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA6EzE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4H9D"}
1
+ {"version":3,"file":"sp-request-tools.d.ts","sourceRoot":"","sources":["../../src/tools/sp-request-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAQzE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwH9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"stability-pool-tools.d.ts","sourceRoot":"","sources":["../../src/tools/stability-pool-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAWzE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoFlE"}
1
+ {"version":3,"file":"stability-pool-tools.d.ts","sourceRoot":"","sources":["../../src/tools/stability-pool-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAkBzE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA6ElE"}
@@ -1 +1 @@
1
- {"version":3,"file":"stability-pool-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/stability-pool-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAqJvE"}
1
+ {"version":3,"file":"stability-pool-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/stability-pool-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAWzE,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4IvE"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStableswapTools(server: McpServer): void;
3
+ //# sourceMappingURL=stableswap-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stableswap-tools.d.ts","sourceRoot":"","sources":["../../src/tools/stableswap-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA6DzE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAsI/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"staking-reward-tools.d.ts","sourceRoot":"","sources":["../../src/tools/staking-reward-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAMzE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoDlE"}
1
+ {"version":3,"file":"staking-reward-tools.d.ts","sourceRoot":"","sources":["../../src/tools/staking-reward-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA8ClE"}
@@ -1 +1 @@
1
- {"version":3,"file":"staking-tools.d.ts","sourceRoot":"","sources":["../../src/tools/staking-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAqG5D"}
1
+ {"version":3,"file":"staking-tools.d.ts","sourceRoot":"","sources":["../../src/tools/staking-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgBzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAkG5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"staking-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/staking-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAWzE,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA8JjE"}
1
+ {"version":3,"file":"staking-write-tools.d.ts","sourceRoot":"","sources":["../../src/tools/staking-write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAUzE,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4IjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"indexer-client.d.ts","sourceRoot":"","sources":["../../src/utils/indexer-client.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAMlD,wBAAgB,gBAAgB,IAAI,aAAa,CAYhD;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAIxD"}
1
+ {"version":3,"file":"indexer-client.d.ts","sourceRoot":"","sources":["../../src/utils/indexer-client.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAQlD,wBAAgB,gBAAgB,IAAI,aAAa,CAYhD;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAIxD"}
@@ -1,4 +1,10 @@
1
- import type { SystemParams } from '@indigoprotocol/indigo-sdk';
1
+ import type { SystemParams } from '@indigo-labs/indigo-sdk';
2
+ /**
3
+ * Load the Indigo v3 system parameters from the mainnet v3 config endpoint.
4
+ *
5
+ * The v3 SystemParams shape adds Pyth price configuration, the interest
6
+ * collection contract, the version registry, and multi-collateral support.
7
+ */
2
8
  export declare function getSystemParams(): Promise<SystemParams>;
3
9
  export declare function resetSystemParamsCache(): void;
4
10
  //# sourceMappingURL=sdk-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-config.d.ts","sourceRoot":"","sources":["../../src/utils/sdk-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAU/D,wBAAsB,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC,CAS7D;AAED,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C"}
1
+ {"version":3,"file":"sdk-config.d.ts","sourceRoot":"","sources":["../../src/utils/sdk-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAU5D;;;;;GAKG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC,CAS7D;AAED,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C"}
@@ -1,4 +1,4 @@
1
- import type { LucidEvolution, TxSignBuilder } from '@lucid-evolution/lucid';
1
+ import type { LucidEvolution, TxBuilder } from '@lucid-evolution/lucid';
2
2
  import type { UnsignedTxResult, TxSummary } from '../types/tx-types.js';
3
- export declare function buildUnsignedTx(address: string, buildFn: (lucid: LucidEvolution) => Promise<TxSignBuilder>, summary: TxSummary): Promise<UnsignedTxResult>;
3
+ export declare function buildUnsignedTx(address: string, buildFn: (lucid: LucidEvolution) => Promise<TxBuilder>, summary: TxSummary): Promise<UnsignedTxResult>;
4
4
  //# sourceMappingURL=tx-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tx-builder.d.ts","sourceRoot":"","sources":["../../src/utils/tx-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGxE,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,aAAa,CAAC,EAC1D,OAAO,EAAE,SAAS,GACjB,OAAO,CAAC,gBAAgB,CAAC,CAc3B"}
1
+ {"version":3,"file":"tx-builder.d.ts","sourceRoot":"","sources":["../../src/utils/tx-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAkBxE,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,SAAS,CAAC,EACtD,OAAO,EAAE,SAAS,GACjB,OAAO,CAAC,gBAAgB,CAAC,CAoB3B"}
@@ -0,0 +1,66 @@
1
+ import type { LucidEvolution, OutRef, UTxO } from '@lucid-evolution/lucid';
2
+ import type { SystemParams, IAssetOutput, CollateralAssetOutput, StabilityPoolContent, GovDatum, RobDatum } from '@indigo-labs/indigo-sdk';
3
+ import type { AssetClass } from '@3rd-eye-labs/cardano-offchain-common';
4
+ /**
5
+ * v3 on-chain finder helpers.
6
+ *
7
+ * In Indigo v3 the price and interest oracle references no longer live on the
8
+ * iAsset datum — they sit on the per-collateral-asset datum, and prices may be
9
+ * served by Pyth. The protocol's transaction builders also take {@link OutRef}s
10
+ * rather than full UTxOs. These helpers mirror the canonical query patterns used
11
+ * by the indigo-sdk-v3 acceptance tests.
12
+ */
13
+ /** The ADA collateral asset class, the default collateral for legacy tools. */
14
+ export declare const ADA_COLLATERAL: AssetClass;
15
+ export declare function toOutRef(utxo: UTxO): OutRef;
16
+ /**
17
+ * Resolve the iAsset state UTxO for a given asset name (e.g. "iUSD").
18
+ * iAsset UTxOs sit at the iAsset validator address and hold the iAsset auth token.
19
+ */
20
+ export declare function findIAsset(lucid: LucidEvolution, params: SystemParams, assetName: string): Promise<IAssetOutput>;
21
+ /**
22
+ * Resolve the collateral-asset state UTxO for an (iAsset, collateral) pair.
23
+ * Carries the price oracle reference (priceInfo), the interest oracle NFT, and
24
+ * the collateral's extra decimals.
25
+ */
26
+ export declare function findCollateralAsset(lucid: LucidEvolution, params: SystemParams, assetName: string, collateralAsset?: AssetClass): Promise<CollateralAssetOutput>;
27
+ /**
28
+ * Resolve the interest oracle OutRef for a collateral asset. The interest oracle
29
+ * NFT is referenced by the collateral-asset datum.
30
+ */
31
+ export declare function findInterestOracleOref(lucid: LucidEvolution, collateralAsset: CollateralAssetOutput): Promise<OutRef>;
32
+ /**
33
+ * Resolve the price oracle OutRef for a collateral asset.
34
+ * - `OracleNft`: returns the oracle UTxO's OutRef.
35
+ * - `Delisted`: throws — the asset cannot be used as collateral.
36
+ * - Pyth (`DeferredValidation`): returns `undefined`. Pyth-priced operations
37
+ * require a signed Pyth message, which is not yet produced by this server.
38
+ */
39
+ export declare function findPriceOracleOref(lucid: LucidEvolution, collateralAsset: CollateralAssetOutput): Promise<OutRef | undefined>;
40
+ /** Find a CDP creator OutRef (factory UTxO used when opening a CDP). */
41
+ export declare function findCdpCreatorOref(lucid: LucidEvolution, params: SystemParams): Promise<OutRef>;
42
+ /**
43
+ * Find a non-admin interest collector OutRef. Admin collectors (holding the
44
+ * multisig UTxO NFT) are excluded.
45
+ */
46
+ export declare function findInterestCollectorOref(lucid: LucidEvolution, params: SystemParams): Promise<OutRef>;
47
+ /**
48
+ * Find a treasury OutRef holding only ADA, suitable as a fee-collecting input.
49
+ * Returns `undefined` when no ADA-only treasury UTxO is available.
50
+ */
51
+ export declare function findTreasuryOref(lucid: LucidEvolution, params: SystemParams): Promise<OutRef | undefined>;
52
+ /** Find the stability pool state UTxO for a given iAsset. */
53
+ export declare function findStabilityPool(lucid: LucidEvolution, params: SystemParams, assetName: string): Promise<{
54
+ utxo: UTxO;
55
+ datum: StabilityPoolContent;
56
+ }>;
57
+ /** Find the governance state UTxO (holds the gov NFT). */
58
+ export declare function findGov(lucid: LucidEvolution, params: SystemParams): Promise<{
59
+ utxo: UTxO;
60
+ datum: GovDatum;
61
+ }>;
62
+ /** Find all ROB position UTxOs for a given iAsset, paired with their parsed datums. */
63
+ export declare function findAllRobs(lucid: LucidEvolution, params: SystemParams, assetName: string): Promise<[UTxO, RobDatum][]>;
64
+ /** Find the epoch-to-scale-to-sum snapshot OutRefs for a given iAsset's stability pool. */
65
+ export declare function findE2s2sSnapshotOrefs(lucid: LucidEvolution, params: SystemParams, assetName: string): Promise<OutRef[]>;
66
+ //# sourceMappingURL=v3-finders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3-finders.d.ts","sourceRoot":"","sources":["../../src/utils/v3-finders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAW,MAAM,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEpF,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACT,MAAM,yBAAyB,CAAC;AAajC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAQxE;;;;;;;;GAQG;AAEH,+EAA+E;AAC/E,eAAO,MAAM,cAAc,EAAE,UAA0B,CAAC;AAExD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE3C;AAQD;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,YAAY,CAAC,CAgBvB;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,MAAM,EACjB,eAAe,GAAE,UAA2B,GAC3C,OAAO,CAAC,qBAAqB,CAAC,CAmBhC;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,cAAc,EACrB,eAAe,EAAE,qBAAqB,GACrC,OAAO,CAAC,MAAM,CAAC,CAGjB;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,cAAc,EACrB,eAAe,EAAE,qBAAqB,GACrC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW7B;AAED,wEAAwE;AACxE,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED;;;GAGG;AACH,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC,CAUjB;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAO7B;AAED,6DAA6D;AAC7D,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,oBAAoB,CAAA;CAAE,CAAC,CAgBtD;AAED,0DAA0D;AAC1D,wBAAsB,OAAO,CAC3B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,CAAC,CAa1C;AAED,uFAAuF;AACvF,wBAAsB,WAAW,CAC/B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,CAgB7B;AAED,2FAA2F;AAC3F,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,EAAE,CAAC,CAqBnB"}
@@ -1,3 +1,3 @@
1
1
  import { z } from 'zod';
2
- export declare const AssetParam: z.ZodEnum<["iUSD", "iBTC", "iETH", "iSOL"]>;
2
+ export declare const AssetParam: z.ZodEnum<["iUSD", "iBTC", "iETH", "iSOL", "iEUR", "iJPY"]>;
3
3
  //# sourceMappingURL=validators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/utils/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,eAAO,MAAM,UAAU,6CAA2C,CAAC"}
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/utils/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU,6DAA2D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoprotocol/indigo-mcp",
3
- "version": "0.2.14",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "MCP server for Indigo Protocol",
6
6
  "main": "dist/index.js",
@@ -50,16 +50,20 @@
50
50
  "access": "public"
51
51
  },
52
52
  "devDependencies": {
53
- "@indigoprotocol/indigo-sdk": "^1.0.6",
53
+ "@3rd-eye-labs/cardano-offchain-common": "^1.2.0",
54
+ "@indigo-labs/indigo-sdk": "^0.3.28",
54
55
  "@lucid-evolution/lucid": "^0.4.29",
55
56
  "@modelcontextprotocol/sdk": "^1.18.0",
57
+ "@qbtlabs/x402": "^0.5.0",
56
58
  "@types/node": "^24.3.1",
57
59
  "@typescript-eslint/eslint-plugin": "^8.0.0",
58
60
  "@typescript-eslint/parser": "^8.0.0",
59
61
  "axios": "^1.12.2",
60
62
  "bech32": "^2.0.0",
63
+ "dotenv": "^17.3.1",
61
64
  "esbuild": "^0.27.3",
62
65
  "eslint": "^9.0.0",
66
+ "patch-package": "^8.0.1",
63
67
  "prettier": "^3.0.0",
64
68
  "tsx": "^4.0.0",
65
69
  "typescript": "^5.9.2",