@indigoprotocol/indigo-mcp 0.4.1 → 0.5.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.
- package/README.md +64 -13
- package/dist/cardano_multiplatform_lib_bg.wasm +0 -0
- package/dist/index.js +128190 -113844
- package/dist/tools/cdp-liquidation-tools.d.ts.map +1 -1
- package/dist/tools/cdp-mint-burn-tools.d.ts.map +1 -1
- package/dist/tools/cdp-write-tools.d.ts.map +1 -1
- package/dist/tools/interest-tools.d.ts.map +1 -1
- package/dist/tools/leverage-cdp-tools.d.ts.map +1 -1
- package/dist/tools/oracle-tools.d.ts.map +1 -1
- package/dist/tools/rob-write-tools.d.ts.map +1 -1
- package/dist/tools/sp-request-tools.d.ts.map +1 -1
- package/dist/uplc_tx_bg.wasm +0 -0
- package/dist/utils/sdk-config.d.ts.map +1 -1
- package/dist/utils/v3-finders.d.ts +16 -36
- package/dist/utils/v3-finders.d.ts.map +1 -1
- package/package.json +7 -14
|
@@ -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;
|
|
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;AAoBzE,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAuPnE"}
|
|
@@ -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;AAgBzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,
|
|
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,CAqIhE"}
|
|
@@ -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;
|
|
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;AAmBzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoQ7D"}
|
|
@@ -1 +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;
|
|
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;AAoCzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwR7D"}
|
|
@@ -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;
|
|
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;AAoBzE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA+EhE"}
|
|
@@ -1 +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;
|
|
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;AAsBzE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4N3D"}
|
|
@@ -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;
|
|
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,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;
|
|
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;AAczE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwH9D"}
|
package/dist/uplc_tx_bg.wasm
CHANGED
|
Binary file
|
|
@@ -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,yBAAyB,CAAC;
|
|
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;AAW5D;;;;;GAKG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC,CAS7D;AAED,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LucidEvolution, OutRef, UTxO } from '@lucid-evolution/lucid';
|
|
2
|
-
import type { SystemParams,
|
|
3
|
-
import type { AssetClass } from '@
|
|
2
|
+
import type { SystemParams, CollateralAssetOutput, RobDatum } from '@indigo-labs/indigo-sdk';
|
|
3
|
+
import type { AssetClass } from '@indigo-labs/cardano-offchain-common';
|
|
4
4
|
/**
|
|
5
5
|
* v3 on-chain finder helpers.
|
|
6
6
|
*
|
|
@@ -13,17 +13,6 @@ import type { AssetClass } from '@3rd-eye-labs/cardano-offchain-common';
|
|
|
13
13
|
/** The ADA collateral asset class, the default collateral for legacy tools. */
|
|
14
14
|
export declare const ADA_COLLATERAL: AssetClass;
|
|
15
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
16
|
/**
|
|
28
17
|
* Resolve the interest oracle OutRef for a collateral asset. The interest oracle
|
|
29
18
|
* NFT is referenced by the collateral-asset datum.
|
|
@@ -38,30 +27,21 @@ export declare function findInterestOracleOref(lucid: LucidEvolution, collateral
|
|
|
38
27
|
* `utils/pyth.ts`, which handles both cases.
|
|
39
28
|
*/
|
|
40
29
|
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
30
|
/**
|
|
44
|
-
* Find
|
|
45
|
-
*
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*
|
|
50
|
-
*
|
|
31
|
+
* Find all open ROB position UTxOs for a given iAsset, paired with their parsed
|
|
32
|
+
* datums.
|
|
33
|
+
*
|
|
34
|
+
* The positions cannot be found by scanning one address. A ROB position sits at
|
|
35
|
+
* the ROB script with the *owner's* staking credential, so the positions are
|
|
36
|
+
* spread over as many addresses as there are owners, and they carry no auth
|
|
37
|
+
* token to query by. Scanning the enterprise script address finds only the few
|
|
38
|
+
* positions opened without a staking credential.
|
|
39
|
+
*
|
|
40
|
+
* So the indexer's order book says where to look, and the chain says what is
|
|
41
|
+
* there: every listed UTxO is fetched from the provider (which drops spent
|
|
42
|
+
* outputs) and kept only if it sits at the ROB script and its datum parses as a
|
|
43
|
+
* ROB position for this iAsset. A stale or wrong indexer entry is skipped, never
|
|
44
|
+
* passed to the transaction builder.
|
|
51
45
|
*/
|
|
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
46
|
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
47
|
//# sourceMappingURL=v3-finders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3-finders.d.ts","sourceRoot":"","sources":["../../src/utils/v3-finders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"v3-finders.d.ts","sourceRoot":"","sources":["../../src/utils/v3-finders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAM7F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIvE;;;;;;;;GAQG;AAEH,+EAA+E;AAC/E,eAAO,MAAM,cAAc,EAAE,UAA0B,CAAC;AAExD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,cAAc,EACrB,eAAe,EAAE,qBAAqB,GACrC,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,cAAc,EACrB,eAAe,EAAE,qBAAqB,GACrC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,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,CAsC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indigoprotocol/indigo-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP server for Indigo Protocol",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,16 +32,14 @@
|
|
|
32
32
|
"format": "prettier --write \"src/**/*.{ts,js,json,md}\"",
|
|
33
33
|
"format:check": "prettier --check \"src/**/*.{ts,js,json,md}\"",
|
|
34
34
|
"test": "vitest run",
|
|
35
|
-
"test:watch": "vitest"
|
|
36
|
-
"smithery:build": "bash scripts/smithery-build.sh",
|
|
37
|
-
"smithery:publish": "bash scripts/smithery-build.sh && npx smithery mcp publish --name indigoprotocol/indigo-mcp --from-build .smithery/stdio"
|
|
35
|
+
"test:watch": "vitest"
|
|
38
36
|
},
|
|
39
37
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
38
|
+
"node": ">=22.23.4"
|
|
41
39
|
},
|
|
42
40
|
"repository": {
|
|
43
41
|
"type": "git",
|
|
44
|
-
"url": "https://github.com/IndigoProtocol/indigo-mcp"
|
|
42
|
+
"url": "git+https://github.com/IndigoProtocol/indigo-mcp.git"
|
|
45
43
|
},
|
|
46
44
|
"author": "Indigo Protocol",
|
|
47
45
|
"license": "MIT",
|
|
@@ -50,9 +48,9 @@
|
|
|
50
48
|
"access": "public"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
|
-
"@
|
|
54
|
-
"@indigo-labs/indigo-sdk": "
|
|
55
|
-
"@lucid-evolution/lucid": "
|
|
51
|
+
"@indigo-labs/cardano-offchain-common": "1.6.0",
|
|
52
|
+
"@indigo-labs/indigo-sdk": "0.7.2",
|
|
53
|
+
"@lucid-evolution/lucid": "0.8.7",
|
|
56
54
|
"@modelcontextprotocol/sdk": "^1.18.0",
|
|
57
55
|
"@qbtlabs/x402": "^0.5.0",
|
|
58
56
|
"@types/node": "^24.3.1",
|
|
@@ -74,10 +72,5 @@
|
|
|
74
72
|
"libsodium-sumo": "^0.7.16",
|
|
75
73
|
"libsodium-wrappers-sumo": "^0.7.16",
|
|
76
74
|
"undici": "^7.24.5"
|
|
77
|
-
},
|
|
78
|
-
"pnpm": {
|
|
79
|
-
"overrides": {
|
|
80
|
-
"@lucid-evolution/uplc": ">=0.2.22"
|
|
81
|
-
}
|
|
82
75
|
}
|
|
83
76
|
}
|