@sherwoodagent/cli 0.89.2 → 0.90.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/dist/{agent-K5ZKUS47.js → agent-QU2OSWS4.js} +4 -4
- package/dist/{chat-QVDOCCJN.js → chat-PFXIL6WT.js} +9 -9
- package/dist/{chunk-QEX2TWJV.js → chunk-2SIUEMPV.js} +2 -2
- package/dist/{chunk-TWJXGEBZ.js → chunk-5XMQQ4LX.js} +2 -2
- package/dist/{chunk-JLOROS5V.js → chunk-74QYNLJE.js} +2 -2
- package/dist/{chunk-VD65GJOY.js → chunk-DQZJULNP.js} +2 -2
- package/dist/{chunk-Z53JZORT.js → chunk-I7NYU4JB.js} +28 -4
- package/dist/chunk-I7NYU4JB.js.map +1 -0
- package/dist/{chunk-OYP35TFK.js → chunk-J3JMMJLN.js} +3 -3
- package/dist/{chunk-LVGYGXAV.js → chunk-KPTKX226.js} +2 -2
- package/dist/{chunk-TGWTRG3V.js → chunk-KRASHQRB.js} +6 -6
- package/dist/{chunk-VVCSD2M6.js → chunk-KXUA5BEH.js} +2 -2
- package/dist/{chunk-6IC2NRED.js → chunk-WIUPOQNS.js} +2 -2
- package/dist/{chunk-H6AJMPLT.js → chunk-XQHRKFFH.js} +49 -10
- package/dist/chunk-XQHRKFFH.js.map +1 -0
- package/dist/{chunk-MIW4CBSU.js → chunk-ZCRVHITI.js} +10 -10
- package/dist/{client-DA434B67.js → client-3BFK7TNL.js} +2 -2
- package/dist/{eas-F6KOWI4W.js → eas-YTAAJSLU.js} +3 -3
- package/dist/{governor-6HCXMRIA.js → governor-53PNPDCZ.js} +3 -3
- package/dist/{identity-2JEZE7DV.js → identity-M6UIVBNX.js} +5 -5
- package/dist/index.js +432 -218
- package/dist/index.js.map +1 -1
- package/dist/{launchpad-XM4546BO.js → launchpad-LHMBN4TV.js} +3 -3
- package/dist/{lighter-preflight-7J3IO27F.js → lighter-preflight-R7C6HY3M.js} +6 -6
- package/dist/{price-4FGWEPKX.js → price-PBFF6NFU.js} +4 -4
- package/dist/{providers-XEEFKITN.js → providers-22A42FKP.js} +3 -3
- package/dist/{research-CJOSSD4U.js → research-ZH34O7YL.js} +5 -5
- package/dist/{session-775NKMGH.js → session-GSWEE4M3.js} +7 -7
- package/dist/{trade-PCK3LONN.js → trade-SHK7GKSI.js} +10 -10
- package/dist/{vault-NLMVWYDF.js → vault-3T6UHCPE.js} +6 -6
- package/dist/{xmtp-H5GTOJ43.js → xmtp-EOMKXRTB.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-H6AJMPLT.js.map +0 -1
- package/dist/chunk-Z53JZORT.js.map +0 -1
- /package/dist/{agent-K5ZKUS47.js.map → agent-QU2OSWS4.js.map} +0 -0
- /package/dist/{chat-QVDOCCJN.js.map → chat-PFXIL6WT.js.map} +0 -0
- /package/dist/{chunk-QEX2TWJV.js.map → chunk-2SIUEMPV.js.map} +0 -0
- /package/dist/{chunk-TWJXGEBZ.js.map → chunk-5XMQQ4LX.js.map} +0 -0
- /package/dist/{chunk-JLOROS5V.js.map → chunk-74QYNLJE.js.map} +0 -0
- /package/dist/{chunk-VD65GJOY.js.map → chunk-DQZJULNP.js.map} +0 -0
- /package/dist/{chunk-OYP35TFK.js.map → chunk-J3JMMJLN.js.map} +0 -0
- /package/dist/{chunk-LVGYGXAV.js.map → chunk-KPTKX226.js.map} +0 -0
- /package/dist/{chunk-TGWTRG3V.js.map → chunk-KRASHQRB.js.map} +0 -0
- /package/dist/{chunk-VVCSD2M6.js.map → chunk-KXUA5BEH.js.map} +0 -0
- /package/dist/{chunk-6IC2NRED.js.map → chunk-WIUPOQNS.js.map} +0 -0
- /package/dist/{chunk-MIW4CBSU.js.map → chunk-ZCRVHITI.js.map} +0 -0
- /package/dist/{client-DA434B67.js.map → client-3BFK7TNL.js.map} +0 -0
- /package/dist/{eas-F6KOWI4W.js.map → eas-YTAAJSLU.js.map} +0 -0
- /package/dist/{governor-6HCXMRIA.js.map → governor-53PNPDCZ.js.map} +0 -0
- /package/dist/{identity-2JEZE7DV.js.map → identity-M6UIVBNX.js.map} +0 -0
- /package/dist/{launchpad-XM4546BO.js.map → launchpad-LHMBN4TV.js.map} +0 -0
- /package/dist/{lighter-preflight-7J3IO27F.js.map → lighter-preflight-R7C6HY3M.js.map} +0 -0
- /package/dist/{price-4FGWEPKX.js.map → price-PBFF6NFU.js.map} +0 -0
- /package/dist/{providers-XEEFKITN.js.map → providers-22A42FKP.js.map} +0 -0
- /package/dist/{research-CJOSSD4U.js.map → research-ZH34O7YL.js.map} +0 -0
- /package/dist/{session-775NKMGH.js.map → session-GSWEE4M3.js.map} +0 -0
- /package/dist/{trade-PCK3LONN.js.map → trade-SHK7GKSI.js.map} +0 -0
- /package/dist/{vault-NLMVWYDF.js.map → vault-3T6UHCPE.js.map} +0 -0
- /package/dist/{xmtp-H5GTOJ43.js.map → xmtp-EOMKXRTB.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/client.ts","../src/lib/errors.ts"],"sourcesContent":["/**\n * viem client factory — resolves chain and RPC from the network module.\n * Private key is read from ~/.sherwood/config.json (set via `sherwood config set --private-key`),\n * with PRIVATE_KEY env var as fallback.\n */\n\n// dotenv loaded at entrypoint\nimport type { Hex, TransactionReceipt } from \"viem\";\nimport { createPublicClient, createWalletClient, fallback, http } from \"viem\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { getChain, getRpcUrls, getMinGasReserve } from \"./network.js\";\nimport { requirePrivateKey } from \"./config.js\";\nimport { formatContractError } from \"./errors.js\";\nexport { formatContractError } from \"./errors.js\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nlet _publicClient: any = null;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nlet _walletClient: any = null;\n\n/**\n * Build a viem fallback transport over the chain's RPC URL list.\n * Transparently advances to the next URL on rate-limit / network errors\n * (issue #182). `retryCount: 0` on the inner `http` avoids wasting 10+s\n * spinning on a dead RPC before the fallback layer advances.\n */\nfunction buildTransport() {\n const urls = getRpcUrls();\n return fallback(\n urls.map((url) => http(url, { retryCount: 0, timeout: 8_000 })),\n { rank: false, retryCount: 0 },\n );\n}\n\nexport function getPublicClient() {\n const chain = getChain();\n // Auto-invalidate if network changed since last creation\n if (_publicClient && _publicClient.chain?.id !== chain.id) {\n _publicClient = null;\n }\n if (!_publicClient) {\n _publicClient = createPublicClient({\n chain,\n transport: buildTransport(),\n });\n }\n return _publicClient as ReturnType<typeof createPublicClient>;\n}\n\nexport function getWalletClient() {\n const chain = getChain();\n // Auto-invalidate if network changed since last creation\n if (_walletClient && _walletClient.chain?.id !== chain.id) {\n _walletClient = null;\n }\n if (!_walletClient) {\n const account = privateKeyToAccount(requirePrivateKey());\n _walletClient = createWalletClient({\n account,\n chain,\n transport: buildTransport(),\n });\n }\n return _walletClient as ReturnType<typeof createWalletClient>;\n}\n\n/**\n * Reset cached clients. Required for tests that call setNetwork()\n * after a client was already created.\n */\nexport function resetClients() {\n _publicClient = null;\n _walletClient = null;\n}\n\nexport function getAccount() {\n return privateKeyToAccount(requirePrivateKey());\n}\n\n/**\n * Estimate EIP-1559 fees with a 20% buffer to avoid stuck txs on Base gas spikes.\n */\nexport async function estimateFeesWithBuffer() {\n const client = getPublicClient();\n const { maxFeePerGas, maxPriorityFeePerGas } =\n await client.estimateFeesPerGas();\n let fee = (maxFeePerGas * 120n) / 100n;\n let tip = (maxPriorityFeePerGas * 120n) / 100n;\n // #462: some RPCs (Robinhood testnet after activity bursts) suggest fees\n // orders of magnitude above the live base fee; viem's worst-case prefund\n // check (gas × maxFeePerGas) then rejects large txs from small wallets even\n // though real cost is negligible. Clamp to 10× live base, but ONLY when the\n // suggestion exceeds 1000× base (never true on healthy chains — Base gas\n // spikes stay untouched). Best-effort: a failed getBlock skips the clamp.\n let base: bigint | null | undefined;\n try {\n base = (await client.getBlock()).baseFeePerGas;\n } catch {\n base = undefined;\n }\n if (base !== null && base !== undefined && base > 0n && fee > base * 1000n) {\n fee = base * 10n;\n if (tip > fee) tip = fee;\n }\n return { maxFeePerGas: fee, maxPriorityFeePerGas: tip };\n}\n\n/**\n * Conservative per-op gas-unit budgets for the native-ETH-wrap deposit/redeem\n * sequences. Multiplied by the live buffered `maxFeePerGas` (× a safety factor)\n * to derive the ETH gas cushion — replacing the old hardcoded 0.0005-ETH,\n * Base-calibrated constant that rejected valid deposits on low-fee chains\n * (Robinhood testnet, ~14-wei base fee). Deliberately generous; the realized\n * cost is a fraction of these on any chain.\n */\nexport const GAS_UNITS = {\n wrap: 55_000n,\n approve: 60_000n,\n deposit: 250_000n,\n redeem: 250_000n,\n} as const;\n\n/**\n * Derive the ETH gas cushion from live chain gas instead of a fixed constant:\n *\n * cushion = gasUnits × bufferedMaxFeePerGas × safetyFactor, floored at the\n * active chain's `minGasReserve`.\n *\n * `gasUnits` is the summed budget for the tx sequence (e.g. wrap+approve+deposit\n * via `GAS_UNITS`). Falls back to the per-chain floor when the live fee estimate\n * is unavailable (RPC error). On a ~14-wei-base-fee chain the derived term is\n * negligible, so the tiny per-chain floor dominates; on Base the live term\n * scales with the gas market and the Base-scale floor is the lower bound.\n */\nexport async function estimateGasCushion(\n gasUnits: bigint,\n safetyFactor = 2n,\n): Promise<bigint> {\n const floor = getMinGasReserve();\n try {\n const { maxFeePerGas } = await estimateFeesWithBuffer();\n const derived = gasUnits * maxFeePerGas * safetyFactor;\n return derived > floor ? derived : floor;\n } catch {\n return floor;\n }\n}\n\n// ── Nonce management + retry helpers ──\n//\n// Handles: nonce collisions, underpriced replacements, stuck pending txs.\n// Gas bump ceiling: base * 1.2 (buffer) * 1.1^3 (max retries) ≈ 1.6x base fee.\n\nconst MAX_RETRIES = 3;\nconst RETRY_DELAY_MS = 1500; // backoff between retries\nconst STUCK_NONCE_CONFIRM_DELAY_MS = 2500; // staleness check delay\nconst GAS_BUMP_NUMERATOR = 110n;\nconst GAS_BUMP_DENOMINATOR = 100n;\n\nfunction isUnderpricedError(msg: string): boolean {\n return msg.includes(\"replacement transaction underpriced\");\n}\n\nfunction isNonceStaleError(msg: string): boolean {\n return msg.includes(\"nonce too low\") || msg.includes(\"NONCE_EXPIRED\");\n}\n\nfunction isRetryableError(err: unknown): boolean {\n const msg = err instanceof Error ? err.message : String(err);\n return isUnderpricedError(msg) || isNonceStaleError(msg);\n}\n\nfunction bumpFees(fees: { maxFeePerGas: bigint; maxPriorityFeePerGas: bigint }) {\n return {\n maxFeePerGas: (fees.maxFeePerGas * GAS_BUMP_NUMERATOR) / GAS_BUMP_DENOMINATOR,\n maxPriorityFeePerGas: (fees.maxPriorityFeePerGas * GAS_BUMP_NUMERATOR) / GAS_BUMP_DENOMINATOR,\n };\n}\n\n// ── Stuck nonce detection ──\n\n/**\n * Check if the wallet has a stuck nonce (pending tx count > confirmed tx count).\n * Returns the stuck nonce number, or null if the wallet is clean.\n *\n * Includes a staleness guard: if pending > confirmed, waits ~2.5s and re-checks\n * to avoid false positives from propagation delays.\n */\nexport async function detectStuckNonce(): Promise<number | null> {\n const client = getPublicClient();\n const address = getAccount().address;\n const [confirmed, pending] = await Promise.all([\n client.getTransactionCount({ address, blockTag: \"latest\" }),\n client.getTransactionCount({ address, blockTag: \"pending\" }),\n ]);\n if (pending <= confirmed) return null;\n\n // Staleness guard: re-check after a short delay to avoid false positives\n await new Promise((r) => setTimeout(r, STUCK_NONCE_CONFIRM_DELAY_MS));\n const [confirmed2, pending2] = await Promise.all([\n client.getTransactionCount({ address, blockTag: \"latest\" }),\n client.getTransactionCount({ address, blockTag: \"pending\" }),\n ]);\n return pending2 > confirmed2 ? confirmed2 : null;\n}\n\n/**\n * Clear a single stuck nonce by sending a 0-value self-transfer with aggressively bumped gas.\n * Uses 5x the buffered fee estimate to guarantee replacement even if the original tx\n * was sent during a gas spike (EIP-1559 requires >= 110% of original maxPriorityFeePerGas).\n */\nasync function unstickWalletSingle(): Promise<Hex> {\n const stuckNonce = await detectStuckNonce();\n if (stuckNonce === null) {\n throw new Error(\"No stuck nonce detected — wallet is clean.\");\n }\n\n console.warn(` Unsticking wallet: replacing stuck tx at nonce ${stuckNonce}...`);\n const wallet = getWalletClient();\n const account = getAccount();\n\n // Use 5x gas buffer to guarantee replacement even for txs sent during gas spikes\n const { maxFeePerGas, maxPriorityFeePerGas } = await estimateFeesWithBuffer();\n const hash = await wallet.sendTransaction({\n account,\n chain: wallet.chain,\n to: account.address,\n value: 0n,\n nonce: stuckNonce,\n maxFeePerGas: maxFeePerGas * 5n,\n maxPriorityFeePerGas: maxPriorityFeePerGas * 5n,\n });\n\n const client = getPublicClient();\n await client.waitForTransactionReceipt({ hash });\n console.warn(` Wallet unstuck (nonce ${stuckNonce} replaced).`);\n return hash;\n}\n\n/**\n * Unstick a wallet by clearing ALL stuck nonces, not just the first one.\n * Loops until pending == confirmed nonce count.\n */\nexport async function unstickWallet(): Promise<Hex[]> {\n const hashes: Hex[] = [];\n while ((await detectStuckNonce()) !== null) {\n hashes.push(await unstickWalletSingle());\n }\n if (hashes.length === 0) {\n throw new Error(\"No stuck nonce detected — wallet is clean.\");\n }\n return hashes;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype TxSender = (params: any) => Promise<Hex>;\n\n/**\n * Shared retry loop: explicit nonce + EIP-1559 fee buffer + gas-bump on underpriced errors.\n * On \"nonce too low\" / \"NONCE_EXPIRED\", re-fetches nonce from pending state before retrying.\n * Also detects stuck nonces before sending and auto-unsticks the wallet.\n */\nasync function withRetry(send: TxSender, txParams: Record<string, unknown>): Promise<Hex> {\n const client = getPublicClient();\n const account = getAccount();\n let fees = await estimateFeesWithBuffer();\n\n // Auto-detect and clear ALL stuck nonces before attempting the tx\n while ((await detectStuckNonce()) !== null) {\n await unstickWalletSingle();\n }\n\n let nonce = await client.getTransactionCount({ address: account.address, blockTag: \"pending\" });\n\n for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {\n try {\n return await send({ ...txParams, ...fees, nonce });\n } catch (err) {\n if (attempt >= MAX_RETRIES || !isRetryableError(err)) {\n // Decode contract revert into a human-readable message before throwing\n throw new Error(formatContractError(err));\n }\n\n const msg = err instanceof Error ? err.message : String(err);\n console.warn(` Retry ${attempt + 1}/${MAX_RETRIES}: ${isNonceStaleError(msg) ? \"refreshing nonce\" : \"bumping gas\"}...`);\n\n // Backoff between retries to let mempool settle\n await new Promise((r) => setTimeout(r, RETRY_DELAY_MS));\n\n if (isNonceStaleError(msg)) {\n // Fresh nonce = fresh tx, no replacement needed — only bump fees for underpriced errors\n nonce = await client.getTransactionCount({ address: account.address, blockTag: \"pending\" });\n } else {\n fees = bumpFees(fees);\n }\n }\n }\n throw new Error(\"withRetry: exhausted retries\");\n}\n\n/**\n * Send a raw transaction with automatic gas-bump retry on nonce/underpriced errors.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport async function sendTxWithRetry(txParams: Record<string, any>): Promise<Hex> {\n const wallet = getWalletClient();\n return withRetry((p) => wallet.sendTransaction(p), txParams);\n}\n\n/**\n * Call writeContract with automatic gas-bump retry on nonce/underpriced errors.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport async function writeContractWithRetry(txParams: Record<string, any>): Promise<Hex> {\n const wallet = getWalletClient();\n return withRetry((p) => wallet.writeContract(p), txParams);\n}\n\n/**\n * Wait for a tx receipt. On timeout, checks for stuck nonce and auto-unsticks.\n *\n * **Important**: After unsticking, the error is still re-thrown because the original\n * tx is lost. Callers should use `writeContractWithRetry` / `sendTxWithRetry` which\n * re-fetch nonces automatically. Do NOT manually retry after this throws — use the\n * retry-aware wrappers instead.\n */\nexport async function waitForReceipt(hash: Hex): Promise<TransactionReceipt> {\n const client = getPublicClient();\n try {\n return await client.waitForTransactionReceipt({ hash });\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } catch (err: any) {\n // If receipt wait times out, check for stuck nonce\n const msg = err instanceof Error ? err.message : String(err);\n if (msg.includes(\"timeout\") || msg.includes(\"Timed out\")) {\n if ((await detectStuckNonce()) !== null) {\n console.warn(` Tx ${hash} appears stuck — attempting to unstick wallet...`);\n while ((await detectStuckNonce()) !== null) {\n await unstickWalletSingle();\n }\n }\n }\n throw err;\n }\n}\n","/**\n * Contract error decoding — turns raw reverts into human-readable messages.\n *\n * Uses viem's decodeErrorResult() against a combined ABI of all custom errors\n * from SyndicateVault, SyndicateGovernor, GovernorParameters, SyndicateFactory,\n * and strategy contracts.\n */\n\nimport { type Hex, decodeErrorResult, BaseError } from \"viem\";\nimport { getChain } from \"./network.js\";\n\n// ── Combined error-only ABI for decoding ──\n\nexport const CONTRACT_ERRORS_ABI = [\n // ── SyndicateVault ──\n { type: \"error\", name: \"InvalidOwner\", inputs: [] },\n { type: \"error\", name: \"InvalidExecutorImpl\", inputs: [] },\n { type: \"error\", name: \"NotActiveAgent\", inputs: [] },\n { type: \"error\", name: \"SimulationFailed\", inputs: [] },\n { type: \"error\", name: \"InvalidDepositor\", inputs: [] },\n { type: \"error\", name: \"DepositorAlreadyApproved\", inputs: [] },\n { type: \"error\", name: \"DepositorNotApproved\", inputs: [] },\n { type: \"error\", name: \"NotApprovedDepositor\", inputs: [] },\n { type: \"error\", name: \"AgentAlreadyRegistered\", inputs: [] },\n { type: \"error\", name: \"AgentNotActive\", inputs: [] },\n { type: \"error\", name: \"InvalidAgentRegistry\", inputs: [] },\n { type: \"error\", name: \"NotAgentOwner\", inputs: [] },\n { type: \"error\", name: \"NotGovernor\", inputs: [] },\n { type: \"error\", name: \"RedemptionsLocked\", inputs: [] },\n { type: \"error\", name: \"DepositsLocked\", inputs: [] },\n { type: \"error\", name: \"InvalidAgentAddress\", inputs: [] },\n { type: \"error\", name: \"TransferFailed\", inputs: [] },\n { type: \"error\", name: \"ZeroAddress\", inputs: [] },\n { type: \"error\", name: \"CannotRescueAsset\", inputs: [] },\n { type: \"error\", name: \"NotFactory\", inputs: [] },\n { type: \"error\", name: \"DisallowedBatchCallee\", inputs: [{ name: \"target\", type: \"address\" }] },\n\n // ── SyndicateGovernor ──\n { type: \"error\", name: \"VaultNotRegistered\", inputs: [] },\n { type: \"error\", name: \"VaultAlreadyRegistered\", inputs: [] },\n { type: \"error\", name: \"NotRegisteredAgent\", inputs: [] },\n { type: \"error\", name: \"PerformanceFeeTooHigh\", inputs: [] },\n { type: \"error\", name: \"StrategyDurationTooLong\", inputs: [] },\n { type: \"error\", name: \"StrategyDurationTooShort\", inputs: [] },\n { type: \"error\", name: \"EmptyExecuteCalls\", inputs: [] },\n { type: \"error\", name: \"EmptySettlementCalls\", inputs: [] },\n { type: \"error\", name: \"NotWithinVotingPeriod\", inputs: [] },\n { type: \"error\", name: \"NoVotingPower\", inputs: [] },\n { type: \"error\", name: \"AlreadyVoted\", inputs: [] },\n { type: \"error\", name: \"ProposalNotFound\", inputs: [] },\n { type: \"error\", name: \"ProposalNotApproved\", inputs: [] },\n { type: \"error\", name: \"ExecutionWindowExpired\", inputs: [] },\n { type: \"error\", name: \"StrategyAlreadyActive\", inputs: [] },\n { type: \"error\", name: \"CooldownNotElapsed\", inputs: [] },\n { type: \"error\", name: \"ProposalNotExecuted\", inputs: [] },\n { type: \"error\", name: \"ProposalNotCancellable\", inputs: [] },\n { type: \"error\", name: \"NotProposer\", inputs: [] },\n { type: \"error\", name: \"InvalidVotingPeriod\", inputs: [] },\n { type: \"error\", name: \"InvalidExecutionWindow\", inputs: [] },\n { type: \"error\", name: \"InvalidVetoThresholdBps\", inputs: [] },\n { type: \"error\", name: \"InvalidMaxPerformanceFeeBps\", inputs: [] },\n { type: \"error\", name: \"InvalidStrategyDurationBounds\", inputs: [] },\n { type: \"error\", name: \"InvalidCooldownPeriod\", inputs: [] },\n { type: \"error\", name: \"InvalidVault\", inputs: [] },\n { type: \"error\", name: \"NotVaultOwner\", inputs: [] },\n { type: \"error\", name: \"StrategyDurationNotElapsed\", inputs: [] },\n { type: \"error\", name: \"InvalidProtocolFeeBps\", inputs: [] },\n { type: \"error\", name: \"InvalidProtocolFeeRecipient\", inputs: [] },\n { type: \"error\", name: \"NotCoProposer\", inputs: [] },\n { type: \"error\", name: \"CollaborationExpired\", inputs: [] },\n { type: \"error\", name: \"AlreadyApproved\", inputs: [] },\n { type: \"error\", name: \"InvalidSplits\", inputs: [] },\n { type: \"error\", name: \"TooManyCoProposers\", inputs: [] },\n { type: \"error\", name: \"SplitTooLow\", inputs: [] },\n { type: \"error\", name: \"LeadSplitTooLow\", inputs: [] },\n { type: \"error\", name: \"DuplicateCoProposer\", inputs: [] },\n { type: \"error\", name: \"NotDraftState\", inputs: [] },\n { type: \"error\", name: \"InvalidCollaborationWindow\", inputs: [] },\n { type: \"error\", name: \"NotAuthorized\", inputs: [] },\n { type: \"error\", name: \"InvalidMaxCoProposers\", inputs: [] },\n { type: \"error\", name: \"Reentrancy\", inputs: [] },\n { type: \"error\", name: \"Tier2CallCapExceedsCeiling\", inputs: [{ name: \"index\", type: \"uint256\" }] },\n\n // ── GovernorParameters (timelock) ──\n { type: \"error\", name: \"ChangeAlreadyPending\", inputs: [] },\n { type: \"error\", name: \"NoChangePending\", inputs: [] },\n { type: \"error\", name: \"ChangeNotReady\", inputs: [] },\n { type: \"error\", name: \"InvalidParameterChangeDelay\", inputs: [] },\n { type: \"error\", name: \"InvalidParameterKey\", inputs: [] },\n\n // ── SyndicateFactory ──\n { type: \"error\", name: \"InvalidVaultImpl\", inputs: [] },\n { type: \"error\", name: \"InvalidENSRegistrar\", inputs: [] },\n { type: \"error\", name: \"SubdomainTooShort\", inputs: [] },\n { type: \"error\", name: \"SubdomainTaken\", inputs: [] },\n { type: \"error\", name: \"NotCreator\", inputs: [] },\n { type: \"error\", name: \"InvalidGovernor\", inputs: [] },\n { type: \"error\", name: \"InsufficientCreationFee\", inputs: [] },\n { type: \"error\", name: \"InvalidFeeToken\", inputs: [] },\n { type: \"error\", name: \"ManagementFeeTooHigh\", inputs: [] },\n { type: \"error\", name: \"UpgradesDisabled\", inputs: [] },\n { type: \"error\", name: \"VaultNotDeployed\", inputs: [] },\n { type: \"error\", name: \"StrategyActive\", inputs: [] },\n\n // ── BaseStrategy ──\n { type: \"error\", name: \"AlreadyInitialized\", inputs: [] },\n { type: \"error\", name: \"NotVault\", inputs: [] },\n { type: \"error\", name: \"NotExecuted\", inputs: [] },\n { type: \"error\", name: \"AlreadyExecuted\", inputs: [] },\n { type: \"error\", name: \"AlreadySettled\", inputs: [] },\n\n // ── MoonwellSupplyStrategy / WstETHMoonwellStrategy ──\n { type: \"error\", name: \"InvalidAmount\", inputs: [] },\n { type: \"error\", name: \"MintFailed\", inputs: [] },\n { type: \"error\", name: \"RedeemFailed\", inputs: [] },\n\n // ── AerodromeLPStrategy ──\n { type: \"error\", name: \"GaugeMismatch\", inputs: [] },\n\n // ── WstETHMoonwellStrategy / VeniceInferenceStrategy ──\n { type: \"error\", name: \"SwapFailed\", inputs: [] },\n { type: \"error\", name: \"AlreadySettledParams\", inputs: [] },\n\n // ── PortfolioStrategy / UniswapSwapAdapter ──\n { type: \"error\", name: \"QuoteUnavailable\", inputs: [] },\n { type: \"error\", name: \"UnsupportedMode\", inputs: [] },\n { type: \"error\", name: \"InvalidWeights\", inputs: [] },\n { type: \"error\", name: \"LengthMismatch\", inputs: [] },\n { type: \"error\", name: \"TooManyTokens\", inputs: [] },\n { type: \"error\", name: \"RebalancingInProgress\", inputs: [] },\n { type: \"error\", name: \"StalePrice\", inputs: [] },\n { type: \"error\", name: \"InvalidSlippage\", inputs: [] },\n { type: \"error\", name: \"InvalidPriceDecimals\", inputs: [] },\n\n // ── VeniceInferenceStrategy ──\n { type: \"error\", name: \"NoAgent\", inputs: [] },\n\n // ── ExposureLedger ──\n { type: \"error\", name: \"ApproveLockBelowFloor\", inputs: [] },\n { type: \"error\", name: \"CoverageInputsUnreadable\", inputs: [] },\n { type: \"error\", name: \"InsufficientApproveCoverage\", inputs: [] },\n\n // ── StakedWood ──\n { type: \"error\", name: \"CoverageStillOpen\", inputs: [] },\n\n // ── SyndicateGovernor / GovernorEmergency — v1 additions\n // (bond escrow, tier gates, strategy registration, settle-price floor) ──\n { type: \"error\", name: \"CallCapsExceedMaxCapital\", inputs: [] },\n { type: \"error\", name: \"CallCapsLengthMismatch\", inputs: [] },\n { type: \"error\", name: \"CancelNotAllowedNearQuorum\", inputs: [] },\n { type: \"error\", name: \"ChallengeWindowOpen\", inputs: [] },\n { type: \"error\", name: \"CoProposerShareUnderflow\", inputs: [] },\n { type: \"error\", name: \"CoverageRegressed\", inputs: [] },\n { type: \"error\", name: \"EmergencyNotProposed\", inputs: [] },\n { type: \"error\", name: \"EmergencySettleBlocked\", inputs: [] },\n { type: \"error\", name: \"EmergencySettleNotReady\", inputs: [] },\n { type: \"error\", name: \"ExposureLedgerUnset\", inputs: [] },\n { type: \"error\", name: \"InvalidDrawdown\", inputs: [] },\n { type: \"error\", name: \"InvalidGuardianFeeBps\", inputs: [] },\n { type: \"error\", name: \"InvalidGuardiansFeeRecipient\", inputs: [] },\n { type: \"error\", name: \"InvalidInitialization\", inputs: [] },\n { type: \"error\", name: \"InvalidMaxCapitalBps\", inputs: [] },\n { type: \"error\", name: \"InvalidTier2CallCapBps\", inputs: [] },\n { type: \"error\", name: \"LedgerEscrowMismatch\", inputs: [] },\n { type: \"error\", name: \"MalformedAssetCall\", inputs: [{ name: \"selector\", type: \"bytes4\" }] },\n { type: \"error\", name: \"MaxCapitalCeilingRegressed\", inputs: [] },\n { type: \"error\", name: \"MaxCapitalExceedsCeiling\", inputs: [] },\n { type: \"error\", name: \"MetadataURITooLong\", inputs: [] },\n { type: \"error\", name: \"NoBondToReclaim\", inputs: [] },\n { type: \"error\", name: \"NotARegisteredStrategy\", inputs: [{ name: \"target\", type: \"address\" }] },\n { type: \"error\", name: \"NotInGuardianReview\", inputs: [] },\n { type: \"error\", name: \"NotInitializing\", inputs: [] },\n { type: \"error\", name: \"NotLeadProposer\", inputs: [] },\n { type: \"error\", name: \"OwnerBondInsufficient\", inputs: [] },\n { type: \"error\", name: \"OwnerBondNotLive\", inputs: [] },\n { type: \"error\", name: \"ParamsFrozenDuringProposal\", inputs: [] },\n { type: \"error\", name: \"ProposalInDraft\", inputs: [] },\n { type: \"error\", name: \"ProposalNotTerminal\", inputs: [] },\n { type: \"error\", name: \"RegistryNotSet\", inputs: [] },\n { type: \"error\", name: \"SettlePriceBelowFloor\", inputs: [{ name: \"ppsNow\", type: \"uint256\" }, { name: \"ppsFloor\", type: \"uint256\" }] },\n { type: \"error\", name: \"StrategyNotRegistered\", inputs: [{ name: \"strategy\", type: \"address\" }] },\n { type: \"error\", name: \"TierRegistryNotWired\", inputs: [] },\n { type: \"error\", name: \"TierRegressed\", inputs: [] },\n { type: \"error\", name: \"TooManyCalls\", inputs: [] },\n { type: \"error\", name: \"TransferFromNotVault\", inputs: [{ name: \"from\", type: \"address\" }] },\n { type: \"error\", name: \"VaultHasOpenProposal\", inputs: [] },\n { type: \"error\", name: \"VaultProposalActive\", inputs: [] },\n { type: \"error\", name: \"ZeroMaxCapital\", inputs: [] },\n\n // ── GuardianRegistry — review / emergency / pause lifecycle ──\n { type: \"error\", name: \"AddressEmptyCode\", inputs: [{ name: \"target\", type: \"address\" }] },\n { type: \"error\", name: \"AlreadyPaused\", inputs: [] },\n { type: \"error\", name: \"CooldownBelowReviewPeriod\", inputs: [] },\n { type: \"error\", name: \"ERC1967InvalidImplementation\", inputs: [{ name: \"implementation\", type: \"address\" }] },\n { type: \"error\", name: \"ERC1967NonPayable\", inputs: [] },\n { type: \"error\", name: \"EmergencyAlreadyOpen\", inputs: [] },\n { type: \"error\", name: \"EmergencyHashMismatch\", inputs: [] },\n { type: \"error\", name: \"EmergencyTooManyCalls\", inputs: [] },\n { type: \"error\", name: \"FailedCall\", inputs: [] },\n { type: \"error\", name: \"InvalidParameter\", inputs: [] },\n { type: \"error\", name: \"InvalidReviewWindow\", inputs: [] },\n { type: \"error\", name: \"NewSideFull\", inputs: [] },\n { type: \"error\", name: \"NoVoteChange\", inputs: [] },\n { type: \"error\", name: \"NotActiveGuardian\", inputs: [] },\n { type: \"error\", name: \"NotPausedOrDeadmanNotElapsed\", inputs: [] },\n { type: \"error\", name: \"OwnableInvalidOwner\", inputs: [{ name: \"owner\", type: \"address\" }] },\n { type: \"error\", name: \"OwnableUnauthorizedAccount\", inputs: [{ name: \"account\", type: \"address\" }] },\n { type: \"error\", name: \"ProtocolPaused\", inputs: [] },\n { type: \"error\", name: \"ReentrancyGuardReentrantCall\", inputs: [] },\n { type: \"error\", name: \"RefundCapExceeded\", inputs: [] },\n { type: \"error\", name: \"ReviewAlreadyRegistered\", inputs: [] },\n { type: \"error\", name: \"ReviewNotOpen\", inputs: [] },\n { type: \"error\", name: \"ReviewNotReadyForResolve\", inputs: [] },\n { type: \"error\", name: \"SafeERC20FailedOperation\", inputs: [{ name: \"token\", type: \"address\" }] },\n { type: \"error\", name: \"UUPSUnauthorizedCallContext\", inputs: [] },\n { type: \"error\", name: \"UUPSUnsupportedProxiableUUID\", inputs: [{ name: \"slot\", type: \"bytes32\" }] },\n { type: \"error\", name: \"UnauthorizedGovernor\", inputs: [] },\n { type: \"error\", name: \"VoteChangeLockedOut\", inputs: [] },\n\n // ── StakedWood (sWOOD) — staking, owner bonds, slashing ──\n { type: \"error\", name: \"ApproverAlreadySlashed\", inputs: [] },\n { type: \"error\", name: \"BindingNotApproved\", inputs: [] },\n { type: \"error\", name: \"CheckpointUnorderedInsertion\", inputs: [] },\n { type: \"error\", name: \"DuplicateApprover\", inputs: [] },\n { type: \"error\", name: \"InsufficientStake\", inputs: [] },\n { type: \"error\", name: \"NoActiveStake\", inputs: [] },\n { type: \"error\", name: \"NotAuthorizedSlasher\", inputs: [] },\n { type: \"error\", name: \"NotRegistry\", inputs: [] },\n { type: \"error\", name: \"PreparedStakeAlreadyExists\", inputs: [] },\n { type: \"error\", name: \"PreparedStakeNotFound\", inputs: [] },\n { type: \"error\", name: \"PriorStakeNotCleared\", inputs: [] },\n { type: \"error\", name: \"RegistryAlreadySet\", inputs: [] },\n { type: \"error\", name: \"SlashBpsLengthMismatch\", inputs: [] },\n { type: \"error\", name: \"UnstakeAlreadyRequested\", inputs: [] },\n { type: \"error\", name: \"UnstakeNotRequested\", inputs: [] },\n { type: \"error\", name: \"VaultHasActiveProposal\", inputs: [] },\n { type: \"error\", name: \"VerdictNotPast\", inputs: [] },\n\n // ── StrategyFactory — clone + register ──\n { type: \"error\", name: \"FailedDeployment\", inputs: [] },\n { type: \"error\", name: \"InsufficientBalance\", inputs: [{ name: \"balance\", type: \"uint256\" }, { name: \"needed\", type: \"uint256\" }] },\n { type: \"error\", name: \"InvalidSyndicateFactory\", inputs: [] },\n { type: \"error\", name: \"NotAStrategy\", inputs: [{ name: \"strategy\", type: \"address\" }] },\n { type: \"error\", name: \"ProposerMustBeSender\", inputs: [] },\n { type: \"error\", name: \"TemplateNotApproved\", inputs: [{ name: \"template\", type: \"address\" }] },\n\n // ── TierRegistry — strategy certification + submitter bonds ──\n { type: \"error\", name: \"BondActive\", inputs: [] },\n { type: \"error\", name: \"BondConfigUnset\", inputs: [] },\n { type: \"error\", name: \"BondNotReleasable\", inputs: [] },\n { type: \"error\", name: \"BondPendingRelease\", inputs: [] },\n { type: \"error\", name: \"BondTooLarge\", inputs: [] },\n { type: \"error\", name: \"BondsOutstanding\", inputs: [] },\n { type: \"error\", name: \"BoundRequired\", inputs: [] },\n { type: \"error\", name: \"CertificationExpired\", inputs: [] },\n { type: \"error\", name: \"CertifyDelayNotElapsed\", inputs: [] },\n { type: \"error\", name: \"ClassNotCertified\", inputs: [] },\n { type: \"error\", name: \"CodehashChanged\", inputs: [] },\n { type: \"error\", name: \"CodehashMatches\", inputs: [] },\n { type: \"error\", name: \"InvalidDelay\", inputs: [] },\n { type: \"error\", name: \"InvalidStrategyFactory\", inputs: [] },\n { type: \"error\", name: \"InvalidTier\", inputs: [] },\n { type: \"error\", name: \"NoPendingCertification\", inputs: [] },\n { type: \"error\", name: \"NoPendingClassCertification\", inputs: [] },\n { type: \"error\", name: \"NotAContract\", inputs: [] },\n { type: \"error\", name: \"NotAuthorizedDemoter\", inputs: [] },\n { type: \"error\", name: \"NotCertified\", inputs: [] },\n { type: \"error\", name: \"NotSubmitter\", inputs: [] },\n { type: \"error\", name: \"TemplateCodehashChanged\", inputs: [] },\n { type: \"error\", name: \"ZeroAddressSubmitter\", inputs: [] },\n\n // ── ProposerBondEscrow — proposer bond custody ──\n { type: \"error\", name: \"AmountTooLarge\", inputs: [] },\n { type: \"error\", name: \"BondAlreadyLocked\", inputs: [] },\n { type: \"error\", name: \"FeeBpsTooHigh\", inputs: [] },\n { type: \"error\", name: \"NoBond\", inputs: [] },\n { type: \"error\", name: \"NotAuthorizedConvictor\", inputs: [] },\n { type: \"error\", name: \"NotAuthorizedGovernor\", inputs: [] },\n] as const;\n\n// ── Human-readable error messages ──\n\nconst ERROR_MESSAGES: Record<string, string> = {\n // Vault — permissions / state\n InvalidOwner: \"The caller is not the vault owner.\",\n NotActiveAgent: \"Your wallet is not registered as an active agent on this vault. Ask the creator to run: sherwood fund approve --agent-id <id> --wallet <your-address>\",\n NotApprovedDepositor: \"Your address is not on the depositor whitelist. Ask the vault creator to approve you.\",\n NotGovernor: \"This operation can only be called by the governor contract.\",\n NotFactory: \"This operation can only be called by the factory contract.\",\n RedemptionsLocked: \"Redemptions are locked while a strategy is executing. Wait for the proposal to be settled.\",\n DepositsLocked: \"Deposits are locked while an active proposal exists. Wait for settlement.\",\n InvalidDepositor: \"Invalid depositor address.\",\n DepositorAlreadyApproved: \"This depositor is already on the whitelist.\",\n DepositorNotApproved: \"This depositor is not on the whitelist.\",\n AgentAlreadyRegistered: \"This agent wallet is already registered on the vault.\",\n AgentNotActive: \"This agent is registered but not active.\",\n InvalidAgentRegistry: \"Agent registry address is invalid.\",\n NotAgentOwner: \"You do not own this ERC-8004 agent identity NFT.\",\n InvalidAgentAddress: \"Invalid agent wallet address (cannot be zero).\",\n InvalidExecutorImpl: \"Executor implementation address is invalid.\",\n SimulationFailed: \"Transaction simulation failed — the batch calls would revert onchain.\",\n TransferFailed: \"ERC-20 token transfer failed. Check token balance and approvals.\",\n ZeroAddress: \"A required address parameter is the zero address.\",\n CannotRescueAsset: \"Cannot rescue the vault's underlying asset — use redeem() instead.\",\n DisallowedBatchCallee: \"A governor-batch call targeted an address that is neither the vault's underlying asset nor a TierRegistry-allowlisted adapter.\",\n\n // Governor — proposal lifecycle\n VaultNotRegistered: \"This vault is not registered with the governor. The factory registers vaults automatically on creation.\",\n VaultAlreadyRegistered: \"This vault is already registered with the governor.\",\n NotRegisteredAgent: \"Your wallet is not a registered agent on this vault. Register first via: sherwood fund approve\",\n PerformanceFeeTooHigh: \"Performance fee exceeds the governor's maxPerformanceFeeBps. Check: sherwood governor info\",\n StrategyDurationTooLong: \"Strategy duration exceeds the governor's maxStrategyDuration. Check: sherwood governor info\",\n StrategyDurationTooShort: \"Strategy duration is below the governor's minStrategyDuration. Check: sherwood governor info\",\n EmptyExecuteCalls: \"Proposal must include at least one execute call.\",\n EmptySettlementCalls: \"Proposal must include at least one settlement call.\",\n NotWithinVotingPeriod: \"Voting period has not started or has already ended. Check: sherwood proposal show <id>\",\n NoVotingPower: \"You have no voting power (zero vault shares at the snapshot time).\",\n AlreadyVoted: \"You have already voted on this proposal.\",\n ProposalNotFound: \"Proposal does not exist. Check the proposal ID.\",\n ProposalNotApproved: \"Proposal is not in Approved state. It may still be in voting or was rejected.\",\n ExecutionWindowExpired: \"The execution window has closed. The proposal is now Expired.\",\n StrategyAlreadyActive: \"Another strategy is currently executing on this vault. Settle it first before executing a new proposal.\",\n CooldownNotElapsed: \"A proposal was recently settled. Wait for the cooldown period to elapse. Check: sherwood governor info\",\n ProposalNotExecuted: \"Proposal has not been executed yet. Execute it first.\",\n ProposalNotCancellable: \"This proposal cannot be cancelled in its current state.\",\n NotProposer: \"Only the original proposer can perform this action.\",\n StrategyDurationNotElapsed: \"Strategy duration has not elapsed yet. Only the proposer can settle early.\",\n\n // Governor — parameter validation\n InvalidVotingPeriod: \"Voting period is outside allowed bounds (check governor constants).\",\n InvalidExecutionWindow: \"Execution window is outside allowed bounds.\",\n InvalidVetoThresholdBps: \"Veto threshold must be between the allowed bounds (in bps).\",\n InvalidMaxPerformanceFeeBps: \"Max performance fee is outside allowed bounds.\",\n InvalidStrategyDurationBounds: \"Strategy duration bounds are invalid (min must be < max).\",\n InvalidCooldownPeriod: \"Cooldown period is outside allowed bounds.\",\n InvalidVault: \"Invalid vault address.\",\n NotVaultOwner: \"Only the vault owner can perform this action.\",\n InvalidProtocolFeeBps: \"Protocol fee exceeds the 10% maximum (1000 bps).\",\n InvalidProtocolFeeRecipient: \"Protocol fee recipient must be set before enabling protocol fees.\",\n\n // Governor — collaborative proposals\n NotCoProposer: \"You are not listed as a co-proposer on this proposal.\",\n CollaborationExpired: \"The collaboration window has expired.\",\n AlreadyApproved: \"This co-proposer has already approved.\",\n InvalidSplits: \"Co-proposer fee splits must sum correctly with the lead proposer split.\",\n TooManyCoProposers: \"Exceeds the maximum number of co-proposers. Check: sherwood governor info\",\n SplitTooLow: \"A co-proposer's fee split is below the minimum.\",\n LeadSplitTooLow: \"The lead proposer's fee split is below the minimum.\",\n DuplicateCoProposer: \"Duplicate co-proposer address in the list.\",\n NotDraftState: \"Proposal must be in Draft state for this operation.\",\n InvalidCollaborationWindow: \"Collaboration window is outside allowed bounds.\",\n NotAuthorized: \"You are not authorized to perform this action.\",\n InvalidMaxCoProposers: \"Max co-proposers value is outside allowed bounds.\",\n Reentrancy: \"Reentrancy detected — this call cannot be made during another call.\",\n Tier2CallCapExceedsCeiling: \"A tier-2 call cap exceeds the vault's tier-2 per-call ceiling (totalAssets × tier2CallCapBps / 10_000). Lower that call's cap.\",\n\n // Governor — parameter timelock\n ChangeAlreadyPending: \"A parameter change is already pending for this parameter. Finalize or cancel it first.\",\n NoChangePending: \"No parameter change is pending for this key.\",\n ChangeNotReady: \"Parameter change timelock has not elapsed yet. Wait for the delay to pass, then finalize.\",\n InvalidParameterChangeDelay: \"Parameter change delay is outside allowed bounds.\",\n InvalidParameterKey: \"Unknown parameter key.\",\n\n // Factory\n InvalidVaultImpl: \"Vault implementation address is invalid.\",\n InvalidENSRegistrar: \"ENS registrar address is invalid.\",\n SubdomainTooShort: \"Subdomain must be at least 3 characters.\",\n SubdomainTaken: \"This subdomain is already taken. Choose a different name.\",\n NotCreator: \"Only the fund creator can perform this action.\",\n InvalidGovernor: \"Governor address is invalid.\",\n InsufficientCreationFee: \"Insufficient creation fee. Check the required fee amount.\",\n InvalidFeeToken: \"Invalid fee token address.\",\n ManagementFeeTooHigh: \"Management fee exceeds the maximum allowed.\",\n UpgradesDisabled: \"Vault upgrades are currently disabled by the factory owner.\",\n VaultNotDeployed: \"Vault has not been deployed yet.\",\n StrategyActive: \"Cannot perform this action while a strategy is actively executing.\",\n\n // Strategy — base\n AlreadyInitialized: \"This strategy clone was already initialized. Deploy a fresh clone.\",\n NotVault: \"Only the vault can call this strategy function.\",\n NotExecuted: \"Strategy has not been executed yet.\",\n AlreadyExecuted: \"Strategy has already been executed.\",\n AlreadySettled: \"Strategy has already been settled.\",\n\n // Strategy — Moonwell / WstETH\n InvalidAmount: \"Invalid amount — must be greater than zero.\",\n MintFailed: \"Moonwell cToken mint failed. The underlying supply may have hit the market cap.\",\n RedeemFailed: \"Moonwell cToken redeem failed. Check that sufficient liquidity is available.\",\n\n // Strategy — Aerodrome\n GaugeMismatch: \"Aerodrome gauge does not match the expected pool.\",\n\n // Strategy — WstETH / Venice\n SwapFailed: \"Token swap failed. Check slippage tolerance and pool liquidity.\",\n AlreadySettledParams: \"Settlement parameters have already been set.\",\n\n // Strategy — Portfolio / UniswapSwapAdapter\n QuoteUnavailable:\n \"Uniswap quoter returned 0 or reverted for a portfolio allocation. \" +\n \"Usually means: (a) no V3 pool exists at the requested fee tier for one of the tokens, \" +\n \"(b) the strategy clone was initialized against an old/broken UniswapSwapAdapter \" +\n \"(check the clone's swapAdapter() vs the current chains JSON), or \" +\n \"(c) the adapter is calling Quoter with the wrong ABI (pre-PR #317 bug).\",\n UnsupportedMode: \"UniswapSwapAdapter doesn't support that swap mode. Only V3 single-hop (mode 0) and multi-hop (mode 1) are supported.\",\n InvalidWeights: \"Portfolio weights must sum to 10000 bps (100%).\",\n LengthMismatch: \"Portfolio input arrays (tokens / weights / swapExtraData / priceDecimals / feeds) must have the same length.\",\n TooManyTokens: \"Portfolio basket exceeds the maximum allocation count (20).\",\n RebalancingInProgress: \"A rebalance is already in flight on this clone. Wait for it to finish.\",\n StalePrice:\n \"A Chainlink push feed read fail-closed because it is stale (or non-positive). Two sources share this \" +\n \"selector: PortfolioStrategy on every execute/settle/rebalance price read (MAX_PUSH_PRICE_AGE = 26h), and \" +\n \"ExposureLedger.coverageUsd on the vault asset at propose time (per-asset maxDelay). Wait for the feed to \" +\n \"update, or drop that allocation.\",\n InvalidSlippage: \"maxSlippageBps must be > 0 and < 10000.\",\n InvalidPriceDecimals: \"priceDecimals entry exceeds 36. Use 8 for tokenized-stock feeds, 18 for crypto pairs.\",\n\n // Strategy — Venice\n NoAgent: \"No agent is registered on the vault. Register an agent first.\",\n\n // ExposureLedger\n ApproveLockBelowFloor:\n \"An approver slot costs min(ceil(need/100), your whole budget), valued in USD at vote time. \" +\n \"Three ways to hit this: (1) the lock booked to zero — your free budget (k x stake minus open \" +\n \"exposure) is used up, so close an open lock or wait for one to age out; (2) your budget values \" +\n \"to zero — you have no slashable stake, or WOOD prices to zero right now; (3) what you declared \" +\n \"is worth less than the floor — raise --lock-wood on `sherwood proposal review-vote`.\",\n CoverageInputsUnreadable:\n \"The ledger could not read this proposal's coverage inputs (vault asset / required coverage). \" +\n \"Usually there is no such proposal on that governor — an unknown id reads back a zero vault. \" +\n \"Check the proposal id, and that the address really is this vault's governor.\",\n InsufficientApproveCoverage: \"No bonded guardian coverage was raised for this proposal. Execution requires at least one identified, bonded approver with slashable coverage.\",\n\n // StakedWood\n CoverageStillOpen: \"Cannot release the unstake yet — this guardian still backs a proposal that could be challenged. The unstake request stays open; retry after coverage closes.\",\n\n // GuardianRegistry — review lifecycle\n NotActiveGuardian:\n \"Your wallet is not an active guardian at this review's snapshot. Vote weight is measured at \" +\n \"`openedAt - 1`, so stake that landed in the same block the review opened counts as zero — and a \" +\n \"guardian with a pending unstake request is not active at all. Check: sherwood guardian status\",\n ReviewNotOpen: \"No guardian review is open for this proposal. It opens once the voting period ends (`openReview`), and closes at `reviewEnd`.\",\n ReviewNotReadyForResolve: \"The review window has not closed yet — `resolveReview` only works after `reviewEnd`.\",\n ReviewAlreadyRegistered: \"A guardian review is already registered for this (governor, proposal) pair.\",\n VoteChangeLockedOut: \"Vote changes are locked out in the final 10% of the review window. Your earlier vote stands.\",\n NewSideFull: \"The side you are switching to is full — approvers are capped at 100 per proposal (blockers are uncapped).\",\n NoVoteChange: \"That is the vote you already cast — nothing to change.\",\n UnauthorizedGovernor: \"This governor is not authorized on the GuardianRegistry. The factory authorizes a vault's governor at createSyndicate.\",\n InvalidReviewWindow: \"Review window is outside the registry's allowed bounds.\",\n CooldownBelowReviewPeriod: \"The unstake cooldown cannot be shorter than the review period — a guardian could otherwise exit before a slash lands.\",\n RefundCapExceeded: \"The slash-appeal refund exceeds the per-epoch cap (20% of the Slash Appeal Reserve).\",\n EmergencyAlreadyOpen: \"An emergency settle is already open for this proposal. Cancel it first (`cancelEmergencySettle`).\",\n EmergencyHashMismatch: \"The calls passed to finalizeEmergencySettle do not match the calldata hash committed when the emergency was opened.\",\n EmergencyTooManyCalls: \"The emergency settle carries more calls than the registry allows.\",\n NotPausedOrDeadmanNotElapsed: \"The registry is not paused, or the 7-day deadman delay has not elapsed yet.\",\n ProtocolPaused: \"The guardian registry is paused — review voting and claims are suspended.\",\n AlreadyPaused: \"The registry is already paused.\",\n InvalidParameter: \"A parameter is outside the contract's allowed bounds.\",\n\n // StakedWood (sWOOD)\n UnstakeAlreadyRequested: \"This stake already has a pending unstake request — top-ups are refused while one is open (it would grow the quorum denominator without adding votable weight). Cancel the request first.\",\n UnstakeNotRequested: \"No unstake request is pending for this stake.\",\n NoActiveStake: \"No active stake for this address. A slash clears the unstake request, so a slashed guardian cannot cancel back into the active set.\",\n InsufficientStake: \"Stake is below the amount this operation needs.\",\n OwnerBondInsufficient: \"The vault owner's WOOD bond is below `requiredOwnerBond(vault) = max(minOwnerStake, TVL * ownerStakeTvlBps / 10_000)`. Top it up: sherwood guardian prepare-owner-stake <amount>\",\n PreparedStakeAlreadyExists: \"A prepared owner stake already exists for this address — bind or withdraw it before preparing another.\",\n PreparedStakeNotFound: \"No prepared owner stake found. Run `sherwood guardian prepare-owner-stake <amount>` before creating the fund.\",\n PriorStakeNotCleared: \"A prior stake for this slot has not been cleared yet.\",\n VaultHasActiveProposal: \"The vault has an open proposal — the owner bond cannot be unstaked until it settles or is cancelled.\",\n NotRegistry: \"Only the GuardianRegistry can call this sWOOD function.\",\n NotAuthorizedSlasher: \"The caller is not an authorized slasher.\",\n VerdictNotPast: \"The verdict is not final yet.\",\n ApproverAlreadySlashed: \"This approver was already slashed for that review.\",\n DuplicateApprover: \"Duplicate approver in the slash list.\",\n SlashBpsLengthMismatch: \"The slash-bps array does not line up with the approver array.\",\n RegistryAlreadySet: \"sWOOD's registry is set once at wiring time and cannot be re-pointed.\",\n BindingNotApproved: \"The owner-stake binding was not approved by the factory.\",\n\n // StrategyFactory\n TemplateNotApproved: \"This strategy template is not on the StrategyFactory allowlist. The factory owner must call setTemplateApproval(template, true).\",\n NotAStrategy: \"That address is not a strategy — it has no code, or does not answer vault() / proposer() / executed().\",\n ProposerMustBeSender: \"cloneAndInit / cloneAndInitDeterministic require proposer == msg.sender. Deploy the clone from the proposer's own wallet.\",\n FailedDeployment: \"CREATE2 deployment failed — a clone already occupies that deterministic address. Re-run with a different --salt.\",\n InvalidSyndicateFactory: \"The StrategyFactory's SyndicateFactory address is invalid.\",\n\n // Governor — v1 bond / tier / strategy gates\n StrategyNotRegistered:\n \"The proposal's strategy is not registered on the StrategyFactory. Deploy it with \" +\n \"`sherwood strategy propose` / `strategy clone` (both go through StrategyFactory.cloneAndInitDeterministic, \" +\n \"which registers atomically) — a raw ERC-1167 clone deployed from an EOA is never registered.\",\n NotARegisteredStrategy: \"A batch call targets an address that is not a registered strategy.\",\n ProposalNotTerminal: \"The proposal is not in a terminal state. A bond is only reclaimable from Rejected / Expired / Cancelled / Settled.\",\n NoBondToReclaim: \"This proposal has no proposer bond left to reclaim — it was never bonded, or the bond was already released or forfeited.\",\n ChallengeWindowOpen: \"The challenge window on this executed proposal is still open. The bond unlocks at executedAt + strategyDuration + challengeWindow.\",\n ExposureLedgerUnset: \"No ExposureLedger is wired, so the challenge-window gate cannot be evaluated — the reclaim fails closed.\",\n ParamsFrozenDuringProposal: \"Governor parameters are frozen while a proposal is open. Settle or cancel it first.\",\n OwnerBondNotLive: \"The vault owner's bond is not live on sWOOD.\",\n VaultHasOpenProposal: \"This vault already has an open proposal. Settle or cancel it first.\",\n VaultProposalActive: \"A proposal is already active on this vault.\",\n InvalidDrawdown: \"maxDrawdownBps must be 0-10000.\",\n ZeroMaxCapital: \"The proposal's maxCapital envelope is zero — declare what the batch may deploy.\",\n MaxCapitalExceedsCeiling: \"maxCapital exceeds the vault's per-proposal ceiling (totalAssets * maxCapitalBps / 10_000).\",\n CallCapsLengthMismatch: \"The per-call caps array does not line up with its calls array.\",\n CallCapsExceedMaxCapital: \"The per-call caps sum to more than the proposal's maxCapital envelope.\",\n TooManyCalls: \"The proposal carries more batch calls than the governor allows.\",\n MetadataURITooLong: \"The metadata URI exceeds the governor's length cap. Pin the JSON and pass the short ipfs:// URI.\",\n SettlePriceBelowFloor: \"Settlement would land below the price floor the proposal's declared drawdown allows. Widening it requires a new proposal.\",\n TierRegistryNotWired: \"The governor has no TierRegistry wired — tier-gated proposals cannot be validated.\",\n TierRegressed: \"The strategy's certified tier dropped after the proposal was created.\",\n CoverageRegressed: \"Guardian coverage fell below what this proposal had when it was approved.\",\n LedgerEscrowMismatch: \"The pinned ExposureLedger and ProposerBondEscrow disagree — the bond gates cannot be evaluated.\",\n NotInGuardianReview: \"The proposal is not in GuardianReview.\",\n NotLeadProposer: \"Only the lead proposer can perform this action.\",\n EmergencyNotProposed: \"No emergency settle is pending for this proposal.\",\n EmergencySettleNotReady: \"The emergency review window has not elapsed yet.\",\n EmergencySettleBlocked: \"Guardians reached block quorum on this emergency settle — it cannot be finalized.\",\n CancelNotAllowedNearQuorum: \"Cancel is blocked this close to a block quorum — the proposer must commit at this point.\",\n\n // ProposerBondEscrow\n NoBond: \"No bond is held in escrow for this (governor, proposal) pair.\",\n BondAlreadyLocked: \"A bond is already locked for this (governor, proposal) pair.\",\n NotAuthorizedGovernor: \"Only the governor that locked the bond can release or forfeit it.\",\n\n // OpenZeppelin — shared\n OwnableUnauthorizedAccount: \"Only the contract owner can call this. Your wallet is not the owner.\",\n ReentrancyGuardReentrantCall: \"Reentrant call rejected by the contract's reentrancy guard.\",\n InvalidInitialization: \"This proxy is already initialized (or initialization is not currently allowed).\",\n SafeERC20FailedOperation: \"An ERC-20 transfer/approval failed. Check balance, allowance and that the token returns a bool.\",\n FailedCall: \"A low-level call inside the contract failed without a reason.\",\n AddressEmptyCode: \"The call targeted an address with no code.\",\n};\n\n// ── Decoding ──\n\n/**\n * Attempt to decode a hex revert selector into a human-readable error message.\n * Returns null if the selector doesn't match any known contract error.\n */\nexport function decodeContractError(data: Hex): { name: string; message: string } | null {\n try {\n const decoded = decodeErrorResult({\n abi: CONTRACT_ERRORS_ABI,\n data,\n });\n const message = ERROR_MESSAGES[decoded.errorName] || `Contract error: ${decoded.errorName}`;\n return { name: decoded.errorName, message };\n } catch {\n return null;\n }\n}\n\n/**\n * Extract a hex error selector from a viem error's walk chain.\n * viem wraps contract call reverts in ContractFunctionRevertedError which\n * contains a `data` field with the raw 4-byte (or longer) revert payload.\n */\nfunction extractRevertData(err: unknown): Hex | null {\n if (!(err instanceof BaseError)) return null;\n\n // Walk the viem error chain to find revert data\n const revertError = err.walk((e) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (e as any).data !== undefined;\n });\n\n if (revertError) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const data = (revertError as any).data;\n // data can be the hex string directly, or an object with a data field\n if (typeof data === \"string\" && data.startsWith(\"0x\")) {\n return data as Hex;\n }\n if (typeof data === \"object\" && data?.data && typeof data.data === \"string\") {\n return data.data as Hex;\n }\n }\n\n // Fallback: extract 0x + hex from the error message (e.g. \"reverted with 0x62df0545\")\n const msg = err.message || \"\";\n const match = msg.match(/(?:signature|data)\\s*\"?(0x[0-9a-fA-F]+)\"?/);\n if (match) return match[1] as Hex;\n\n return null;\n}\n\n// ── Known common EVM / ERC-20 revert strings ──\n\nconst KNOWN_REVERT_STRINGS: Record<string, string> = {\n \"ERC20: transfer amount exceeds balance\": \"Insufficient token balance for this transfer.\",\n \"ERC20: transfer amount exceeds allowance\": \"Token allowance insufficient. An approval step may have been skipped.\",\n \"ERC20: insufficient allowance\": \"Token allowance insufficient. An approval step may have been skipped.\",\n \"Ownable: caller is not the owner\": \"Only the contract owner can call this function.\",\n \"Pausable: paused\": \"The contract is currently paused.\",\n};\n\n/**\n * Format any caught error into a user-friendly message.\n *\n * Tries (in order):\n * 1. Decode custom error selector from our contract ABIs\n * 2. Match known EVM/ERC-20 revert reason strings\n * 3. Identify nonce / gas issues with actionable advice\n * 4. Fall back to the raw error message\n */\nexport function formatContractError(err: unknown): string {\n // 1. Try to decode custom contract error\n const revertData = extractRevertData(err);\n if (revertData && revertData.length >= 10) {\n const decoded = decodeContractError(revertData);\n if (decoded) return decoded.message;\n }\n\n const rawMsg = err instanceof Error ? err.message : String(err);\n\n // 2. Check for known revert reason strings\n for (const [pattern, message] of Object.entries(KNOWN_REVERT_STRINGS)) {\n if (rawMsg.includes(pattern)) return message;\n }\n\n // 3. Nonce / gas issues — already handled by retry, but surface clearly if they bubble up\n if (rawMsg.includes(\"replacement transaction underpriced\")) {\n return \"A previous transaction is stuck. The CLI retried with higher gas but the error persists. Try again in a moment.\";\n }\n if (rawMsg.includes(\"nonce too low\") || rawMsg.includes(\"NONCE_EXPIRED\")) {\n return \"Transaction nonce conflict — a previous transaction is still pending. Wait a moment and retry.\";\n }\n if (rawMsg.includes(\"insufficient funds for gas\")) {\n return `Insufficient ETH for gas fees. Top up your wallet with ETH on ${getChain().name}.`;\n }\n\n // 4. Clean up common viem wrapper noise\n // Strip \"ContractFunctionRevertedError:\" prefix and \"Docs:\" links\n let cleaned = rawMsg\n .replace(/ContractFunctionRevertedError:\\s*/g, \"\")\n .replace(/Docs:\\s*https:\\/\\/\\S+/g, \"\")\n .replace(/Version:\\s*viem@\\S+/g, \"\")\n .replace(/Request Arguments:[\\s\\S]*$/m, \"\")\n .replace(/Contract Call:[\\s\\S]*?(?=\\n\\n|\\n[A-Z]|$)/m, \"\")\n .trim();\n\n // If we still have \"reverted with the following signature: 0x...\" try one more decode\n const sigMatch = cleaned.match(/signature[:\\s]+\"?(0x[0-9a-fA-F]{8,})\"?/);\n if (sigMatch) {\n const decoded = decodeContractError(sigMatch[1] as Hex);\n if (decoded) return decoded.message;\n // If we can't decode it, at least explain what it is\n const explorer = getChain().blockExplorers?.default?.name ?? \"the block explorer\";\n cleaned = `Contract reverted with unknown error selector ${sigMatch[1]}. Check the transaction on ${explorer} for details.`;\n }\n\n return cleaned;\n}\n"],"mappings":";;;;;;;;;;AAQA,SAAS,oBAAoB,oBAAoB,UAAU,YAAY;AACvE,SAAS,2BAA2B;;;ACDpC,SAAmB,mBAAmB,iBAAiB;AAKhD,IAAM,sBAAsB;AAAA;AAAA,EAEjC,EAAE,MAAM,SAAS,MAAM,gBAAgB,QAAQ,CAAC,EAAE;AAAA,EAClD,EAAE,MAAM,SAAS,MAAM,uBAAuB,QAAQ,CAAC,EAAE;AAAA,EACzD,EAAE,MAAM,SAAS,MAAM,kBAAkB,QAAQ,CAAC,EAAE;AAAA,EACpD,EAAE,MAAM,SAAS,MAAM,oBAAoB,QAAQ,CAAC,EAAE;AAAA,EACtD,EAAE,MAAM,SAAS,MAAM,oBAAoB,QAAQ,CAAC,EAAE;AAAA,EACtD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,SAAS,SAAS,KAAK,IAAI,SAAS,WAAW,GAAG;AACxD,UAAK,MAAM,iBAAiB,MAAO,MAAM;AACvC,gBAAQ,KAAK,QAAQ,IAAI,uDAAkD;AAC3E,eAAQ,MAAM,iBAAiB,MAAO,MAAM;AAC1C,gBAAM,oBAAoB;AAAA,QAC5B;AAAA,MACF;AAAA,IACF;AACA,UAAM;AAAA,EACR;AACF;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|