@indigoprotocol/indigo-mcp 0.2.14 → 0.4.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 (48) hide show
  1. package/README.md +270 -103
  2. package/dist/cardano_multiplatform_lib_bg.wasm +0 -0
  3. package/dist/cli/setup.js +2 -2
  4. package/dist/index.js +58737 -49299
  5. package/dist/payment.d.ts +4 -0
  6. package/dist/payment.d.ts.map +1 -0
  7. package/dist/server.d.ts.map +1 -1
  8. package/dist/tools/analytics-tools.d.ts.map +1 -1
  9. package/dist/tools/asset-tools.d.ts.map +1 -1
  10. package/dist/tools/cdp-liquidation-tools.d.ts.map +1 -1
  11. package/dist/tools/cdp-mint-burn-tools.d.ts.map +1 -1
  12. package/dist/tools/cdp-tools.d.ts.map +1 -1
  13. package/dist/tools/cdp-write-tools.d.ts.map +1 -1
  14. package/dist/tools/dex-tools.d.ts.map +1 -1
  15. package/dist/tools/governance-tools.d.ts.map +1 -1
  16. package/dist/tools/index.d.ts.map +1 -1
  17. package/dist/tools/interest-tools.d.ts +3 -0
  18. package/dist/tools/interest-tools.d.ts.map +1 -0
  19. package/dist/tools/leverage-cdp-tools.d.ts.map +1 -1
  20. package/dist/tools/oracle-tools.d.ts +3 -0
  21. package/dist/tools/oracle-tools.d.ts.map +1 -0
  22. package/dist/tools/redemption-tools.d.ts.map +1 -1
  23. package/dist/tools/rob-write-tools.d.ts.map +1 -1
  24. package/dist/tools/sp-request-tools.d.ts.map +1 -1
  25. package/dist/tools/stability-pool-tools.d.ts.map +1 -1
  26. package/dist/tools/stability-pool-write-tools.d.ts.map +1 -1
  27. package/dist/tools/stableswap-tools.d.ts +3 -0
  28. package/dist/tools/stableswap-tools.d.ts.map +1 -0
  29. package/dist/tools/staking-reward-tools.d.ts.map +1 -1
  30. package/dist/tools/staking-tools.d.ts.map +1 -1
  31. package/dist/tools/staking-write-tools.d.ts.map +1 -1
  32. package/dist/types/tx-types.d.ts +14 -0
  33. package/dist/types/tx-types.d.ts.map +1 -1
  34. package/dist/utils/index.d.ts +1 -0
  35. package/dist/utils/index.d.ts.map +1 -1
  36. package/dist/utils/indexer-client.d.ts +17 -0
  37. package/dist/utils/indexer-client.d.ts.map +1 -1
  38. package/dist/utils/pyth.d.ts +87 -0
  39. package/dist/utils/pyth.d.ts.map +1 -0
  40. package/dist/utils/sdk-config.d.ts +7 -1
  41. package/dist/utils/sdk-config.d.ts.map +1 -1
  42. package/dist/utils/tx-builder.d.ts +11 -3
  43. package/dist/utils/tx-builder.d.ts.map +1 -1
  44. package/dist/utils/v3-finders.d.ts +67 -0
  45. package/dist/utils/v3-finders.d.ts.map +1 -0
  46. package/dist/utils/validators.d.ts +1 -1
  47. package/dist/utils/validators.d.ts.map +1 -1
  48. package/package.json +7 -3
@@ -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;AAiBpE,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;AAkBzE,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwPnE"}
@@ -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;AAgBzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA2IhE"}
@@ -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;AAiBzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4Q7D"}
@@ -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;AAiBzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAgFhE"}
@@ -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;AAoBzE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAmN3D"}
@@ -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;AASzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA8R7D"}
@@ -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,7 +1,21 @@
1
+ export interface PythPricingSummary {
2
+ /** Price the transaction was built at, in the collateral asset. */
3
+ price: string;
4
+ /** ISO timestamp of the Pyth price update embedded in the transaction. */
5
+ priceTimestamp: string;
6
+ /**
7
+ * ISO deadline for submitting the signed transaction. The on-chain Pyth feed
8
+ * validator caps a transaction's validity window at the price timestamp plus
9
+ * 280 seconds; after this the transaction must be rebuilt.
10
+ */
11
+ submitBefore: string;
12
+ }
1
13
  export interface TxSummary {
2
14
  type: string;
3
15
  description: string;
4
16
  inputs: Record<string, string>;
17
+ /** Present only for Pyth-priced iAssets. */
18
+ pyth?: PythPricingSummary;
5
19
  }
6
20
  export interface UnsignedTxResult {
7
21
  unsignedTx: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tx-types.d.ts","sourceRoot":"","sources":["../../src/types/tx-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,SAAS,CAAC;CACpB"}
1
+ {"version":3,"file":"tx-types.d.ts","sourceRoot":"","sources":["../../src/types/tx-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,4CAA4C;IAC5C,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,SAAS,CAAC;CACpB"}
@@ -4,4 +4,5 @@ export { extractPaymentCredential } from './address.js';
4
4
  export { getLucid, getLucidNetwork, resetLucid } from './lucid-provider.js';
5
5
  export { getSystemParams, resetSystemParamsCache } from './sdk-config.js';
6
6
  export { buildUnsignedTx } from './tx-builder.js';
7
+ export { fetchPythPriceFeed, fetchPythStateOref, resolvePythStateOref, assertPythFeedFresh, resolvePriceSource, pythSummary, PYTH_MAX_DELAY_MS, DEFAULT_COLLATERAL, } from './pyth.js';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,WAAW,CAAC"}
@@ -1,4 +1,21 @@
1
1
  import { type AxiosInstance } from 'axios';
2
+ /**
3
+ * Normalise a configured indexer base URL.
4
+ *
5
+ * Tool paths carry their own API version where the v3 indexer needs one
6
+ * (`/v3/analytics/tvl`) while others are unversioned (`/assets`), so the base
7
+ * must stop at `/api`. A base that ends in a version segment breaks roughly
8
+ * half the read tools and leaves the rest working, which reads like a partial
9
+ * outage rather than a misconfiguration:
10
+ *
11
+ * - `/api/v1` — written into MCP client configs by older setup wizards; v1 is
12
+ * retired, so every route 404s.
13
+ * - `/api/v3` — the natural "fix" to try; doubles the prefix on versioned
14
+ * paths (`/api/v3/v3/analytics/tvl`).
15
+ *
16
+ * Rather than fail, drop the trailing version and say so once on stderr.
17
+ */
18
+ export declare function normalizeIndexerUrl(url: string): string;
2
19
  export declare function getIndexerClient(): AxiosInstance;
3
20
  export declare function getLiquidations(): Promise<unknown>;
4
21
  //# sourceMappingURL=indexer-client.d.ts.map
@@ -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;AAIlD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAYvD;AAMD,wBAAgB,gBAAgB,IAAI,aAAa,CAYhD;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAIxD"}
@@ -0,0 +1,87 @@
1
+ import type { LucidEvolution, OutRef } from '@lucid-evolution/lucid';
2
+ import type { CollateralAssetOutput } from '@indigo-labs/indigo-sdk';
3
+ import type { PythPricingSummary } from '../types/tx-types.js';
4
+ /**
5
+ * Pyth pricing support.
6
+ *
7
+ * In Indigo v3 most iAssets are priced via Pyth (`DeferredValidation` on the
8
+ * collateral-asset datum) rather than by an on-chain oracle NFT. Those
9
+ * transactions carry a signed Pyth price message plus a reference to the Pyth
10
+ * state UTxO; the SDK builders accept both as trailing arguments.
11
+ *
12
+ * Neither value can be derived from the chain alone — the signed message comes
13
+ * from Pyth Lazer and is served, already signed and in the Solana wire format
14
+ * the on-chain feed validator expects, by the Indigo analytics API.
15
+ */
16
+ /** Default collateral used in the analytics price path. */
17
+ export declare const DEFAULT_COLLATERAL = "ada";
18
+ /**
19
+ * Window the on-chain Pyth feed validator allows between the price timestamp
20
+ * and the transaction validity upper bound. Mirrors `pythMaxDelay` in the SDK's
21
+ * `attachOracle`: a transaction built from an older payload cannot be submitted.
22
+ */
23
+ export declare const PYTH_MAX_DELAY_MS: number;
24
+ export interface PythPriceFeed {
25
+ /** Decimal price of the iAsset in the collateral asset. */
26
+ price: string;
27
+ /** Signed Pyth message (hex) to pass to the SDK builders as `pythMessage`. */
28
+ pythMessage: string;
29
+ /** Price timestamp in milliseconds since epoch. */
30
+ timestampMs: number;
31
+ /** Latest time the resulting transaction may be submitted, ms since epoch. */
32
+ validUntilMs: number;
33
+ }
34
+ /**
35
+ * A resolved price source for a transaction. Exactly one of `priceOracleOref`
36
+ * (oracle-NFT assets) and `pythMessage`/`pythStateOref` (Pyth assets) is set —
37
+ * the SDK builders reject being handed both.
38
+ */
39
+ export interface PriceSource {
40
+ priceOracleOref: OutRef | undefined;
41
+ pythMessage: string | undefined;
42
+ pythStateOref: OutRef | undefined;
43
+ /** Present for Pyth-priced assets: the price the transaction was built at. */
44
+ pythFeed: PythPriceFeed | undefined;
45
+ }
46
+ /**
47
+ * Fetch the current signed Pyth message and price for an (iAsset, collateral)
48
+ * pair from the analytics API.
49
+ */
50
+ export declare function fetchPythPriceFeed(asset: string, collateral?: string): Promise<PythPriceFeed>;
51
+ /**
52
+ * Reject a price update that is already outside the on-chain validity window —
53
+ * a transaction built from it could never be submitted, so failing here gives a
54
+ * far clearer error than a rejected submission would.
55
+ */
56
+ export declare function assertPythFeedFresh(feed: PythPriceFeed, asset: string, collateral?: string): void;
57
+ /**
58
+ * Fetch the OutRef of the current Pyth state UTxO, referenced by every
59
+ * Pyth-priced transaction.
60
+ */
61
+ export declare function fetchPythStateOref(): Promise<OutRef>;
62
+ /**
63
+ * Resolve the Pyth state OutRef, preferring the analytics API and falling back
64
+ * to the chain.
65
+ *
66
+ * The state UTxO is simply whichever UTxO holds the `pythStateAssetClass` NFT
67
+ * named in system params — the query the indigo-sdk acceptance tests use — so
68
+ * an analytics outage need not block transaction building.
69
+ */
70
+ export declare function resolvePythStateOref(lucid: LucidEvolution): Promise<OutRef>;
71
+ /**
72
+ * Resolve everything a transaction builder needs to price an (iAsset,
73
+ * collateral) pair, whichever oracle the asset uses.
74
+ *
75
+ * - `OracleNft` → the oracle UTxO's OutRef.
76
+ * - Pyth (`DeferredValidation`) → a freshly fetched signed message plus the
77
+ * Pyth state OutRef.
78
+ * - `Delisted` → throws (via {@link findPriceOracleOref}).
79
+ */
80
+ export declare function resolvePriceSource(lucid: LucidEvolution, collateralAsset: CollateralAssetOutput, asset: string, collateral?: string): Promise<PriceSource>;
81
+ /**
82
+ * Summarise the Pyth price a transaction was built at, so a caller signing on a
83
+ * hardware wallet knows how long it has to submit. `undefined` for oracle-NFT
84
+ * priced assets.
85
+ */
86
+ export declare function pythSummary(source: PriceSource): PythPricingSummary | undefined;
87
+ //# sourceMappingURL=pyth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pyth.d.ts","sourceRoot":"","sources":["../../src/utils/pyth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK/D;;;;;;;;;;;GAWG;AAEH,2DAA2D;AAC3D,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAc,CAAC;AAmB7C,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,WAAW,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,8EAA8E;IAC9E,QAAQ,EAAE,aAAa,GAAG,SAAS,CAAC;CACrC;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAA2B,GACtC,OAAO,CAAC,aAAa,CAAC,CAsBxB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAA2B,GACtC,IAAI,CASN;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAU1D;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiBjF;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,cAAc,EACrB,eAAe,EAAE,qBAAqB,EACtC,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAA2B,GACtC,OAAO,CAAC,WAAW,CAAC,CAwBtB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,kBAAkB,GAAG,SAAS,CAO/E"}
@@ -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,12 @@
1
- import type { LucidEvolution, TxSignBuilder } from '@lucid-evolution/lucid';
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>;
1
+ import type { LucidEvolution, TxBuilder } from '@lucid-evolution/lucid';
2
+ import type { UnsignedTxResult, TxSummary, PythPricingSummary } from '../types/tx-types.js';
3
+ /**
4
+ * Scratch space handed to a build function so it can report pricing details
5
+ * that are only known once the transaction has been assembled.
6
+ */
7
+ export interface TxBuildContext {
8
+ /** Set when the transaction is priced via a signed Pyth message. */
9
+ pyth?: PythPricingSummary;
10
+ }
11
+ export declare function buildUnsignedTx(address: string, buildFn: (lucid: LucidEvolution, ctx: TxBuildContext) => Promise<TxBuilder>, summary: TxSummary): Promise<UnsignedTxResult>;
4
12
  //# 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,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAiB5F;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAiBD,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,SAAS,CAAC,EAC3E,OAAO,EAAE,SAAS,GACjB,OAAO,CAAC,gBAAgB,CAAC,CAqC3B"}
@@ -0,0 +1,67 @@
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 (see `utils/pyth.ts`). 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` — the price comes from a
37
+ * signed Pyth message instead. Use {@link resolvePriceSource} from
38
+ * `utils/pyth.ts`, which handles both cases.
39
+ */
40
+ export declare function findPriceOracleOref(lucid: LucidEvolution, collateralAsset: CollateralAssetOutput): Promise<OutRef | undefined>;
41
+ /** Find a CDP creator OutRef (factory UTxO used when opening a CDP). */
42
+ export declare function findCdpCreatorOref(lucid: LucidEvolution, params: SystemParams): Promise<OutRef>;
43
+ /**
44
+ * Find a non-admin interest collector OutRef. Admin collectors (holding the
45
+ * multisig UTxO NFT) are excluded.
46
+ */
47
+ export declare function findInterestCollectorOref(lucid: LucidEvolution, params: SystemParams): Promise<OutRef>;
48
+ /**
49
+ * Find a treasury OutRef holding only ADA, suitable as a fee-collecting input.
50
+ * Returns `undefined` when no ADA-only treasury UTxO is available.
51
+ */
52
+ export declare function findTreasuryOref(lucid: LucidEvolution, params: SystemParams): Promise<OutRef | undefined>;
53
+ /** Find the stability pool state UTxO for a given iAsset. */
54
+ export declare function findStabilityPool(lucid: LucidEvolution, params: SystemParams, assetName: string): Promise<{
55
+ utxo: UTxO;
56
+ datum: StabilityPoolContent;
57
+ }>;
58
+ /** Find the governance state UTxO (holds the gov NFT). */
59
+ export declare function findGov(lucid: LucidEvolution, params: SystemParams): Promise<{
60
+ utxo: UTxO;
61
+ datum: GovDatum;
62
+ }>;
63
+ /** Find all ROB position UTxOs for a given iAsset, paired with their parsed datums. */
64
+ export declare function findAllRobs(lucid: LucidEvolution, params: SystemParams, assetName: string): Promise<[UTxO, RobDatum][]>;
65
+ /** Find the epoch-to-scale-to-sum snapshot OutRefs for a given iAsset's stability pool. */
66
+ export declare function findE2s2sSnapshotOrefs(lucid: LucidEvolution, params: SystemParams, assetName: string): Promise<OutRef[]>;
67
+ //# 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;;;;;;;GAOG;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", "iADA"]>;
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,qEAAmE,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.4.0",
4
4
  "type": "module",
5
5
  "description": "MCP server for Indigo Protocol",
6
6
  "main": "dist/index.js",
@@ -37,7 +37,7 @@
37
37
  "smithery:publish": "bash scripts/smithery-build.sh && npx smithery mcp publish --name indigoprotocol/indigo-mcp --from-build .smithery/stdio"
38
38
  },
39
39
  "engines": {
40
- "node": ">=18"
40
+ "node": ">=20"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",
@@ -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",