From 39b3f2035b0c8ac420b2b789a45ab92d9b2ae4a6 Mon Sep 17 00:00:00 2001 From: Merlin Date: Fri, 27 Dec 2024 15:24:32 +0800 Subject: [PATCH] style: format liquid stake --- packages/plugin-solana/package.json | 68 +++++++++---------- .../plugin-solana/src/actions/liquidStake.ts | 8 +-- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/packages/plugin-solana/package.json b/packages/plugin-solana/package.json index 27f08b2fd1..e60f8d0fed 100644 --- a/packages/plugin-solana/package.json +++ b/packages/plugin-solana/package.json @@ -1,35 +1,35 @@ { - "name": "@elizaos/plugin-solana", - "version": "0.1.7-alpha.1", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@elizaos/core": "workspace:*", - "@elizaos/plugin-trustdb": "workspace:*", - "@elizaos/plugin-tee": "workspace:*", - "@coral-xyz/anchor": "0.30.1", - "@solana/spl-token": "0.4.9", - "@solana/web3.js": "1.95.8", - "@solana/spl-stake-pool": "1.1.8", - "@marinade.finance/marinade-ts-sdk": "^4.0.2", - "bignumber": "1.1.0", - "bignumber.js": "9.1.2", - "bs58": "6.0.0", - "fomo-sdk-solana": "1.3.2", - "node-cache": "5.1.2", - "pumpdotfun-sdk": "1.3.2", - "tsup": "8.3.5", - "vitest": "2.1.4" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache .", - "test": "vitest run" - }, - "peerDependencies": { - "form-data": "4.0.1", - "whatwg-url": "7.1.0" - } -} + "name": "@elizaos/plugin-solana", + "version": "0.1.7-alpha.1", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@elizaos/core": "workspace:*", + "@elizaos/plugin-trustdb": "workspace:*", + "@elizaos/plugin-tee": "workspace:*", + "@coral-xyz/anchor": "0.30.1", + "@solana/spl-token": "0.4.9", + "@solana/web3.js": "1.95.8", + "@solana/spl-stake-pool": "1.1.8", + "@marinade.finance/marinade-ts-sdk": "^4.0.2", + "bignumber": "1.1.0", + "bignumber.js": "9.1.2", + "bs58": "6.0.0", + "fomo-sdk-solana": "1.3.2", + "node-cache": "5.1.2", + "pumpdotfun-sdk": "1.3.2", + "tsup": "8.3.5", + "vitest": "2.1.4" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache .", + "test": "vitest run" + }, + "peerDependencies": { + "form-data": "4.0.1", + "whatwg-url": "7.1.0" + } +} \ No newline at end of file diff --git a/packages/plugin-solana/src/actions/liquidStake.ts b/packages/plugin-solana/src/actions/liquidStake.ts index 349757e388..62c0644bf3 100644 --- a/packages/plugin-solana/src/actions/liquidStake.ts +++ b/packages/plugin-solana/src/actions/liquidStake.ts @@ -441,13 +441,13 @@ export function createStakeExamples(config: StakeConfig): ActionExample[][] { const createStakeTemplate = `Respond with a JSON markdown block containing only the extracted values. Use null for any values that cannot be determined. Example response: -\\\`json +\`\`\`json { "userAddress": "HqvTPqS2FaB2fQ7mxqZHQHz6H28o1u2Z9fRH5No8JN2W", "amountSol": "1.5", "poolName": "" } -\\\` +\`\`\` {{recentMessages}} @@ -462,12 +462,12 @@ Respond with a JSON markdown block containing only the extracted values.`; const selectionPoolTemplate = `Respond with a JSON markdown block containing only the extracted values. Use null for any values that cannot be determined. Example response: -\\\`json +\`\`\` { "selectedPool": "jpool", "reason": "" } -\\\` +\`\`\` Given the pool data: {{poolData}}