@continuumdao/ctm-mpc-defi 0.2.61 → 0.2.63
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/dist/agent/catalog.cjs +328 -78
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +217 -27
- package/dist/agent/catalog.js +324 -79
- package/dist/agent/catalog.js.map +1 -1
- package/dist/agent/skills/aerodrome/SKILL.md +8 -8
- package/dist/agent/skills/railgun/SKILL.md +10 -4
- package/dist/agent/skills/yield-compare/SKILL.md +5 -5
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/protocols/evm/aerodrome/index.cjs +476 -282
- package/dist/protocols/evm/aerodrome/index.cjs.map +1 -1
- package/dist/protocols/evm/aerodrome/index.d.ts +38 -13
- package/dist/protocols/evm/aerodrome/index.js +473 -284
- package/dist/protocols/evm/aerodrome/index.js.map +1 -1
- package/dist/protocols/evm/curve-dao/index.cjs +54 -6
- package/dist/protocols/evm/curve-dao/index.cjs.map +1 -1
- package/dist/protocols/evm/curve-dao/index.js +54 -6
- package/dist/protocols/evm/curve-dao/index.js.map +1 -1
- package/dist/protocols/evm/euler-v2/index.cjs +45 -10
- package/dist/protocols/evm/euler-v2/index.cjs.map +1 -1
- package/dist/protocols/evm/euler-v2/index.d.ts +10 -2
- package/dist/protocols/evm/euler-v2/index.js +44 -11
- package/dist/protocols/evm/euler-v2/index.js.map +1 -1
- package/dist/protocols/evm/railgun/index.cjs +26 -9
- package/dist/protocols/evm/railgun/index.cjs.map +1 -1
- package/dist/protocols/evm/railgun/index.d.ts +1 -0
- package/dist/protocols/evm/railgun/index.js +26 -9
- package/dist/protocols/evm/railgun/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -170,13 +170,14 @@ var init_coinbaseB20 = __esm({
|
|
|
170
170
|
});
|
|
171
171
|
function isAerodromeChainSupported(chainId) {
|
|
172
172
|
const n = typeof chainId === "number" ? chainId : Number.parseInt(String(chainId), 10);
|
|
173
|
-
return n
|
|
173
|
+
return AERO_CHAIN_IDS.includes(n);
|
|
174
174
|
}
|
|
175
|
-
var AERODROME_PROTOCOL_ID, AERODROME_CHAIN_ID, AERODROME_WETH_BASE, AERODROME_USDC_BASE;
|
|
175
|
+
var AERODROME_PROTOCOL_ID, AERODROME_CHAIN_ID, AERO_CHAIN_IDS, AERODROME_WETH_BASE, AERODROME_USDC_BASE;
|
|
176
176
|
var init_support = __esm({
|
|
177
177
|
"src/protocols/evm/aerodrome/support.ts"() {
|
|
178
178
|
AERODROME_PROTOCOL_ID = "aerodrome";
|
|
179
179
|
AERODROME_CHAIN_ID = 8453;
|
|
180
|
+
AERO_CHAIN_IDS = [8453, 1, 10, 42161, 4663, 5042, 57073];
|
|
180
181
|
AERODROME_WETH_BASE = "0x4200000000000000000000000000000000000006";
|
|
181
182
|
AERODROME_USDC_BASE = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
182
183
|
}
|
|
@@ -3766,10 +3767,10 @@ var aerodromeProtocolModule = {
|
|
|
3766
3767
|
id: "aerodrome.quote",
|
|
3767
3768
|
protocolId: AERODROME_PROTOCOL_ID,
|
|
3768
3769
|
chainCategory: "evm",
|
|
3769
|
-
description: "Quote an
|
|
3770
|
+
description: "Quote an Aero swap (protocol id aerodrome) via factory discovery and pool getAmountOut / Metaquoter. Base 8453 by default; also Ethereum, OP Mainnet, Arbitrum, Robinhood, Arc, and Ink. Tickers (AAPLc, USDC, ETH) accepted. Stock tickers are Base only.",
|
|
3770
3771
|
commonParams: [],
|
|
3771
3772
|
params: {
|
|
3772
|
-
chainId: { type: "number", required: true, description:
|
|
3773
|
+
chainId: { type: "number", required: true, description: "Aero chain: 8453 (Base, default), 1, 10, 42161, 4663, 5042, or 57073." },
|
|
3773
3774
|
tokenIn: { type: "address", required: true, description: "Ticker (AAPLc, USDC, ETH, WETH, AERO) or 0x / 0x0 native" },
|
|
3774
3775
|
tokenOut: { type: "address", required: true, description: "Ticker (AAPLc, USDC, ETH, WETH, AERO) or 0x / 0x0 native" },
|
|
3775
3776
|
amountHuman: { type: "string", required: true, description: "Human-readable input amount (B20 stocks are 8 decimals)" }
|