@eco-incorp/sauce 0.99.6 → 0.99.8
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 +58 -16
- package/actions/action-program.schema.json +480 -379
- package/actions/dist/abis.d.ts +19 -18
- package/actions/dist/abis.d.ts.map +1 -1
- package/actions/dist/abis.js +29 -29
- package/actions/dist/compile.d.ts +4 -4
- package/actions/dist/compile.d.ts.map +1 -1
- package/actions/dist/compile.js +3 -1
- package/actions/dist/compose.d.ts +63 -6
- package/actions/dist/compose.d.ts.map +1 -1
- package/actions/dist/compose.js +100 -16
- package/actions/dist/index.d.ts +1 -1
- package/actions/dist/index.d.ts.map +1 -1
- package/actions/dist/names.d.ts +88 -0
- package/actions/dist/names.d.ts.map +1 -0
- package/actions/dist/names.js +334 -0
- package/actions/dist/program.d.ts.map +1 -1
- package/actions/dist/program.js +115 -5
- package/actions/dist/registry.d.ts +10 -8
- package/actions/dist/registry.d.ts.map +1 -1
- package/actions/dist/registry.js +10 -8
- package/actions/dist/schema.d.ts.map +1 -1
- package/actions/dist/schema.js +99 -12
- package/actions/dist/semantics.d.ts +12 -2
- package/actions/dist/semantics.d.ts.map +1 -1
- package/actions/dist/semantics.js +78 -8
- package/actions/dist/spec.d.ts +30 -0
- package/actions/dist/spec.d.ts.map +1 -1
- package/actions/dist/spec.js +151 -138
- package/actions/dist/split-swap.d.ts +10 -5
- package/actions/dist/split-swap.d.ts.map +1 -1
- package/actions/dist/split-swap.js +48 -7
- package/actions/dist/to-quote.d.ts +14 -5
- package/actions/dist/to-quote.d.ts.map +1 -1
- package/actions/dist/to-quote.js +210 -244
- package/actions/dist/to-sauce.d.ts +18 -4
- package/actions/dist/to-sauce.d.ts.map +1 -1
- package/actions/dist/to-sauce.js +232 -205
- package/actions/dist/types.d.ts +245 -147
- package/actions/dist/types.d.ts.map +1 -1
- package/actions/dist/types.js +4 -0
- package/docs/README.md +38 -0
- package/docs/api/README.md +37 -23
- package/docs/api/compiler.md +53 -12
- package/docs/api/contracts.md +105 -0
- package/docs/api/coverage.md +96 -57
- package/docs/api/router.md +238 -0
- package/docs/api/routes.md +31 -22
- package/docs/concepts/architecture.md +26 -3
- package/docs/concepts/saucescript.md +35 -55
- package/docs/examples/README.md +21 -14
- package/docs/examples/action-program.ts +51 -35
- package/docs/examples/cross-chain-cascade.sauce.ts +4 -0
- package/docs/examples/cross-chain-intent.sauce.ts +2 -1
- package/docs/examples/evm-execution.ts +2 -4
- package/docs/examples/first-intent.ts +7 -2
- package/docs/examples/pot-router.ts +19 -0
- package/docs/examples/registry-names.ts +52 -0
- package/docs/examples/router-route.sauce.ts +31 -0
- package/docs/examples/router-route.ts +72 -0
- package/docs/examples/router-swap.sauce.ts +16 -0
- package/docs/examples/router-swap.ts +47 -0
- package/docs/examples/venue-where-deployed.sauce.ts +14 -0
- package/docs/guides/actions.md +230 -120
- package/docs/guides/builders-and-actions.md +20 -14
- package/docs/guides/cli.md +1446 -0
- package/docs/guides/compiling.md +19 -7
- package/docs/guides/intents.md +228 -15
- package/docs/guides/mcp.md +540 -0
- package/docs/guides/nested-intents.md +21 -6
- package/docs/guides/protocols-and-tokens.md +218 -39
- package/docs/guides/quick-start.md +5 -0
- package/docs/guides/solana.md +199 -52
- package/docs/guides/verification.md +2 -2
- package/mcp/dist/config.js +78 -0
- package/mcp/dist/config.js.map +1 -0
- package/mcp/dist/entry.js +112 -0
- package/mcp/dist/entry.js.map +1 -0
- package/mcp/dist/files.js +64 -0
- package/mcp/dist/files.js.map +1 -0
- package/mcp/dist/guard.js +262 -0
- package/mcp/dist/guard.js.map +1 -0
- package/mcp/dist/http.js +111 -0
- package/mcp/dist/http.js.map +1 -0
- package/mcp/dist/intents.js +579 -0
- package/mcp/dist/intents.js.map +1 -0
- package/mcp/dist/prompts.js +153 -0
- package/mcp/dist/prompts.js.map +1 -0
- package/mcp/dist/reach.js +98 -0
- package/mcp/dist/reach.js.map +1 -0
- package/mcp/dist/resources.js +154 -0
- package/mcp/dist/resources.js.map +1 -0
- package/mcp/dist/sdk.js +34 -0
- package/mcp/dist/sdk.js.map +1 -0
- package/mcp/dist/server.js +119 -0
- package/mcp/dist/server.js.map +1 -0
- package/mcp/dist/setup.js +189 -0
- package/mcp/dist/setup.js.map +1 -0
- package/mcp/dist/skilltools.js +520 -0
- package/mcp/dist/skilltools.js.map +1 -0
- package/mcp/dist/terms.js +93 -0
- package/mcp/dist/terms.js.map +1 -0
- package/mcp/dist/tools.js +1499 -0
- package/mcp/dist/tools.js.map +1 -0
- package/mcp/dist/wallets.js +168 -0
- package/mcp/dist/wallets.js.map +1 -0
- package/package.json +18 -13
- package/sdk/dist/artifacts/V12Deployments.json +3 -1
- package/sdk/dist/artifacts/V12EngineGate.json +1 -2
- package/sdk/dist/artifacts/V12KitchenProxy.json +1 -0
- package/sdk/dist/chains/canonical.d.ts +15 -24
- package/sdk/dist/chains/canonical.d.ts.map +1 -1
- package/sdk/dist/chains/canonical.js +18 -29
- package/sdk/dist/chains/canonical.js.map +1 -1
- package/sdk/dist/cli/actions.d.ts +29 -0
- package/sdk/dist/cli/actions.d.ts.map +1 -0
- package/sdk/dist/cli/actions.js +122 -0
- package/sdk/dist/cli/actions.js.map +1 -0
- package/sdk/dist/cli/args.d.ts +118 -0
- package/sdk/dist/cli/args.d.ts.map +1 -0
- package/sdk/dist/cli/args.js +354 -0
- package/sdk/dist/cli/args.js.map +1 -0
- package/sdk/dist/cli/assume.d.ts +51 -0
- package/sdk/dist/cli/assume.d.ts.map +1 -0
- package/sdk/dist/cli/assume.js +207 -0
- package/sdk/dist/cli/assume.js.map +1 -0
- package/sdk/dist/cli/chain.d.ts +173 -0
- package/sdk/dist/cli/chain.d.ts.map +1 -0
- package/sdk/dist/cli/chain.js +462 -0
- package/sdk/dist/cli/chain.js.map +1 -0
- package/sdk/dist/cli/commands.d.ts +226 -0
- package/sdk/dist/cli/commands.d.ts.map +1 -0
- package/sdk/dist/cli/commands.js +637 -0
- package/sdk/dist/cli/commands.js.map +1 -0
- package/sdk/dist/cli/create.d.ts +70 -0
- package/sdk/dist/cli/create.d.ts.map +1 -0
- package/sdk/dist/cli/create.js +483 -0
- package/sdk/dist/cli/create.js.map +1 -0
- package/sdk/dist/cli/diagnostics.d.ts +12 -0
- package/sdk/dist/cli/diagnostics.d.ts.map +1 -0
- package/sdk/dist/cli/diagnostics.js +225 -0
- package/sdk/dist/cli/diagnostics.js.map +1 -0
- package/sdk/dist/cli/effects.d.ts +71 -0
- package/sdk/dist/cli/effects.d.ts.map +1 -0
- package/sdk/dist/cli/effects.js +279 -0
- package/sdk/dist/cli/effects.js.map +1 -0
- package/sdk/dist/cli/fill.d.ts +83 -0
- package/sdk/dist/cli/fill.d.ts.map +1 -0
- package/sdk/dist/cli/fill.js +734 -0
- package/sdk/dist/cli/fill.js.map +1 -0
- package/sdk/dist/cli/funding.d.ts +126 -0
- package/sdk/dist/cli/funding.d.ts.map +1 -0
- package/sdk/dist/cli/funding.js +514 -0
- package/sdk/dist/cli/funding.js.map +1 -0
- package/sdk/dist/cli/globals.d.ts +16 -0
- package/sdk/dist/cli/globals.d.ts.map +1 -0
- package/sdk/dist/cli/globals.js +219 -0
- package/sdk/dist/cli/globals.js.map +1 -0
- package/sdk/dist/cli/init.d.ts +34 -0
- package/sdk/dist/cli/init.d.ts.map +1 -0
- package/sdk/dist/cli/init.js +181 -0
- package/sdk/dist/cli/init.js.map +1 -0
- package/sdk/dist/cli/inputs.d.ts +72 -0
- package/sdk/dist/cli/inputs.d.ts.map +1 -0
- package/sdk/dist/cli/inputs.js +152 -0
- package/sdk/dist/cli/inputs.js.map +1 -0
- package/sdk/dist/cli/inspect.d.ts +48 -0
- package/sdk/dist/cli/inspect.d.ts.map +1 -0
- package/sdk/dist/cli/inspect.js +536 -0
- package/sdk/dist/cli/inspect.js.map +1 -0
- package/sdk/dist/cli/intent-commands.d.ts +71 -0
- package/sdk/dist/cli/intent-commands.d.ts.map +1 -0
- package/sdk/dist/cli/intent-commands.js +698 -0
- package/sdk/dist/cli/intent-commands.js.map +1 -0
- package/sdk/dist/cli/intent-svm.d.ts +15 -0
- package/sdk/dist/cli/intent-svm.d.ts.map +1 -0
- package/sdk/dist/cli/intent-svm.js +222 -0
- package/sdk/dist/cli/intent-svm.js.map +1 -0
- package/sdk/dist/cli/intents.d.ts +43 -0
- package/sdk/dist/cli/intents.d.ts.map +1 -0
- package/sdk/dist/cli/intents.js +89 -0
- package/sdk/dist/cli/intents.js.map +1 -0
- package/sdk/dist/cli/interactive.d.ts +11 -0
- package/sdk/dist/cli/interactive.d.ts.map +1 -0
- package/sdk/dist/cli/interactive.js +161 -0
- package/sdk/dist/cli/interactive.js.map +1 -0
- package/sdk/dist/cli/lifecycle-svm.d.ts +109 -0
- package/sdk/dist/cli/lifecycle-svm.d.ts.map +1 -0
- package/sdk/dist/cli/lifecycle-svm.js +299 -0
- package/sdk/dist/cli/lifecycle-svm.js.map +1 -0
- package/sdk/dist/cli/lifecycle.d.ts +439 -0
- package/sdk/dist/cli/lifecycle.d.ts.map +1 -0
- package/sdk/dist/cli/lifecycle.js +1721 -0
- package/sdk/dist/cli/lifecycle.js.map +1 -0
- package/sdk/dist/cli/main.d.ts +3 -0
- package/sdk/dist/cli/main.d.ts.map +1 -0
- package/sdk/dist/cli/main.js +8 -0
- package/sdk/dist/cli/main.js.map +1 -0
- package/sdk/dist/cli/mcp.d.ts +66 -0
- package/sdk/dist/cli/mcp.d.ts.map +1 -0
- package/sdk/dist/cli/mcp.js +169 -0
- package/sdk/dist/cli/mcp.js.map +1 -0
- package/sdk/dist/cli/password.d.ts +54 -0
- package/sdk/dist/cli/password.d.ts.map +1 -0
- package/sdk/dist/cli/password.js +148 -0
- package/sdk/dist/cli/password.js.map +1 -0
- package/sdk/dist/cli/policy.d.ts +130 -0
- package/sdk/dist/cli/policy.d.ts.map +1 -0
- package/sdk/dist/cli/policy.js +702 -0
- package/sdk/dist/cli/policy.js.map +1 -0
- package/sdk/dist/cli/pools.d.ts +140 -0
- package/sdk/dist/cli/pools.d.ts.map +1 -0
- package/sdk/dist/cli/pools.js +658 -0
- package/sdk/dist/cli/pools.js.map +1 -0
- package/sdk/dist/cli/price.d.ts +74 -0
- package/sdk/dist/cli/price.d.ts.map +1 -0
- package/sdk/dist/cli/price.js +321 -0
- package/sdk/dist/cli/price.js.map +1 -0
- package/sdk/dist/cli/prompt.d.ts +30 -0
- package/sdk/dist/cli/prompt.d.ts.map +1 -0
- package/sdk/dist/cli/prompt.js +53 -0
- package/sdk/dist/cli/prompt.js.map +1 -0
- package/sdk/dist/cli/publish.d.ts +48 -0
- package/sdk/dist/cli/publish.d.ts.map +1 -0
- package/sdk/dist/cli/publish.js +480 -0
- package/sdk/dist/cli/publish.js.map +1 -0
- package/sdk/dist/cli/receipt.d.ts +35 -0
- package/sdk/dist/cli/receipt.d.ts.map +1 -0
- package/sdk/dist/cli/receipt.js +63 -0
- package/sdk/dist/cli/receipt.js.map +1 -0
- package/sdk/dist/cli/rehearse.d.ts +80 -0
- package/sdk/dist/cli/rehearse.d.ts.map +1 -0
- package/sdk/dist/cli/rehearse.js +265 -0
- package/sdk/dist/cli/rehearse.js.map +1 -0
- package/sdk/dist/cli/report.d.ts +69 -0
- package/sdk/dist/cli/report.d.ts.map +1 -0
- package/sdk/dist/cli/report.js +206 -0
- package/sdk/dist/cli/report.js.map +1 -0
- package/sdk/dist/cli/returned.d.ts +16 -0
- package/sdk/dist/cli/returned.d.ts.map +1 -0
- package/sdk/dist/cli/returned.js +111 -0
- package/sdk/dist/cli/returned.js.map +1 -0
- package/sdk/dist/cli/run.d.ts +40 -0
- package/sdk/dist/cli/run.d.ts.map +1 -0
- package/sdk/dist/cli/run.js +3163 -0
- package/sdk/dist/cli/run.js.map +1 -0
- package/sdk/dist/cli/signer.d.ts +72 -0
- package/sdk/dist/cli/signer.d.ts.map +1 -0
- package/sdk/dist/cli/signer.js +243 -0
- package/sdk/dist/cli/signer.js.map +1 -0
- package/sdk/dist/cli/simulate.d.ts +11 -0
- package/sdk/dist/cli/simulate.d.ts.map +1 -0
- package/sdk/dist/cli/simulate.js +246 -0
- package/sdk/dist/cli/simulate.js.map +1 -0
- package/sdk/dist/cli/skills.d.ts +77 -0
- package/sdk/dist/cli/skills.d.ts.map +1 -0
- package/sdk/dist/cli/skills.js +527 -0
- package/sdk/dist/cli/skills.js.map +1 -0
- package/sdk/dist/cli/solana.d.ts +184 -0
- package/sdk/dist/cli/solana.d.ts.map +1 -0
- package/sdk/dist/cli/solana.js +1370 -0
- package/sdk/dist/cli/solana.js.map +1 -0
- package/sdk/dist/cli/store.d.ts +60 -0
- package/sdk/dist/cli/store.d.ts.map +1 -0
- package/sdk/dist/cli/store.js +196 -0
- package/sdk/dist/cli/store.js.map +1 -0
- package/sdk/dist/cli/support.d.ts +144 -0
- package/sdk/dist/cli/support.d.ts.map +1 -0
- package/sdk/dist/cli/support.js +217 -0
- package/sdk/dist/cli/support.js.map +1 -0
- package/sdk/dist/cli/svm-effects.d.ts +50 -0
- package/sdk/dist/cli/svm-effects.d.ts.map +1 -0
- package/sdk/dist/cli/svm-effects.js +196 -0
- package/sdk/dist/cli/svm-effects.js.map +1 -0
- package/sdk/dist/cli/terminal.d.ts +42 -0
- package/sdk/dist/cli/terminal.d.ts.map +1 -0
- package/sdk/dist/cli/terminal.js +136 -0
- package/sdk/dist/cli/terminal.js.map +1 -0
- package/sdk/dist/cli/verify.d.ts +32 -0
- package/sdk/dist/cli/verify.d.ts.map +1 -0
- package/sdk/dist/cli/verify.js +185 -0
- package/sdk/dist/cli/verify.js.map +1 -0
- package/sdk/dist/cli/wallet-commands.d.ts +59 -0
- package/sdk/dist/cli/wallet-commands.d.ts.map +1 -0
- package/sdk/dist/cli/wallet-commands.js +222 -0
- package/sdk/dist/cli/wallet-commands.js.map +1 -0
- package/sdk/dist/cli/wallet-send.d.ts +38 -0
- package/sdk/dist/cli/wallet-send.d.ts.map +1 -0
- package/sdk/dist/cli/wallet-send.js +303 -0
- package/sdk/dist/cli/wallet-send.js.map +1 -0
- package/sdk/dist/cli/wallets.d.ts +79 -0
- package/sdk/dist/cli/wallets.d.ts.map +1 -0
- package/sdk/dist/cli/wallets.js +297 -0
- package/sdk/dist/cli/wallets.js.map +1 -0
- package/sdk/dist/deployments/index.d.ts +4 -62
- package/sdk/dist/deployments/index.d.ts.map +1 -1
- package/sdk/dist/deployments/index.js +4 -84
- package/sdk/dist/deployments/index.js.map +1 -1
- package/sdk/dist/deployments/pot.d.ts +17 -7
- package/sdk/dist/deployments/pot.d.ts.map +1 -1
- package/sdk/dist/deployments/pot.js +25 -10
- package/sdk/dist/deployments/pot.js.map +1 -1
- package/sdk/dist/deployments/releases.d.ts +36 -0
- package/sdk/dist/deployments/releases.d.ts.map +1 -0
- package/sdk/dist/deployments/releases.js +61 -0
- package/sdk/dist/deployments/releases.js.map +1 -0
- package/sdk/dist/deployments/releases.json +76 -0
- package/sdk/dist/deployments/v12-addresses.d.ts +13 -0
- package/sdk/dist/deployments/v12-addresses.d.ts.map +1 -1
- package/sdk/dist/deployments/v12-addresses.js +16 -3
- package/sdk/dist/deployments/v12-addresses.js.map +1 -1
- package/sdk/dist/deposit/index.d.ts +6 -6
- package/sdk/dist/deposit/index.d.ts.map +1 -1
- package/sdk/dist/deposit/index.js +1 -1
- package/sdk/dist/deposit/index.js.map +1 -1
- package/sdk/dist/deposit/params.d.ts +4 -4
- package/sdk/dist/deposit/params.d.ts.map +1 -1
- package/sdk/dist/deposit/params.js +7 -4
- package/sdk/dist/deposit/params.js.map +1 -1
- package/sdk/dist/deposit/source.d.ts +3 -30
- package/sdk/dist/deposit/source.d.ts.map +1 -1
- package/sdk/dist/deposit/source.js +7 -83
- package/sdk/dist/deposit/source.js.map +1 -1
- package/sdk/dist/deposit/templates.d.ts +1 -2
- package/sdk/dist/deposit/templates.d.ts.map +1 -1
- package/sdk/dist/deposit/templates.js +10 -2
- package/sdk/dist/deposit/templates.js.map +1 -1
- package/sdk/dist/deposit/types.d.ts +14 -12
- package/sdk/dist/deposit/types.d.ts.map +1 -1
- package/sdk/dist/deposit/types.js +6 -0
- package/sdk/dist/deposit/types.js.map +1 -1
- package/sdk/dist/descriptors/accessors.d.ts +38 -35
- package/sdk/dist/descriptors/accessors.d.ts.map +1 -1
- package/sdk/dist/descriptors/accessors.js +16 -0
- package/sdk/dist/descriptors/accessors.js.map +1 -1
- package/sdk/dist/descriptors/call.d.ts +66 -14
- package/sdk/dist/descriptors/call.d.ts.map +1 -1
- package/sdk/dist/descriptors/call.js +94 -13
- package/sdk/dist/descriptors/call.js.map +1 -1
- package/sdk/dist/descriptors/contracts.generated.d.ts +3393 -0
- package/sdk/dist/descriptors/contracts.generated.d.ts.map +1 -0
- package/sdk/dist/descriptors/contracts.generated.js +728 -0
- package/sdk/dist/descriptors/contracts.generated.js.map +1 -0
- package/sdk/dist/descriptors/derive.d.ts +20 -11
- package/sdk/dist/descriptors/derive.d.ts.map +1 -1
- package/sdk/dist/descriptors/derive.js +68 -30
- package/sdk/dist/descriptors/derive.js.map +1 -1
- package/sdk/dist/descriptors/index.d.ts +6 -7
- package/sdk/dist/descriptors/index.d.ts.map +1 -1
- package/sdk/dist/descriptors/index.js +2 -2
- package/sdk/dist/descriptors/index.js.map +1 -1
- package/sdk/dist/descriptors/links.d.ts +23 -214
- package/sdk/dist/descriptors/links.d.ts.map +1 -1
- package/sdk/dist/descriptors/links.js +1 -232
- package/sdk/dist/descriptors/links.js.map +1 -1
- package/sdk/dist/descriptors/query.d.ts +1 -1
- package/sdk/dist/descriptors/query.d.ts.map +1 -1
- package/sdk/dist/descriptors/query.js +1 -1
- package/sdk/dist/descriptors/query.js.map +1 -1
- package/sdk/dist/descriptors/registry.d.ts +2 -5
- package/sdk/dist/descriptors/registry.d.ts.map +1 -1
- package/sdk/dist/descriptors/registry.js +11 -66
- package/sdk/dist/descriptors/registry.js.map +1 -1
- package/sdk/dist/embedded/resolve.d.ts +4 -4
- package/sdk/dist/embedded/resolve.d.ts.map +1 -1
- package/sdk/dist/embedded/resolve.js +12 -8
- package/sdk/dist/embedded/resolve.js.map +1 -1
- package/sdk/dist/embedded/skills.generated.d.ts +1 -1
- package/sdk/dist/embedded/skills.generated.d.ts.map +1 -1
- package/sdk/dist/embedded/skills.generated.js +137 -136
- package/sdk/dist/embedded/skills.generated.js.map +1 -1
- package/sdk/dist/embedded/sources.generated.d.ts.map +1 -1
- package/sdk/dist/embedded/sources.generated.js +40 -6
- package/sdk/dist/embedded/sources.generated.js.map +1 -1
- package/sdk/dist/evm/engine.d.ts +813 -10
- package/sdk/dist/evm/engine.d.ts.map +1 -1
- package/sdk/dist/evm/engine.js +127 -8
- package/sdk/dist/evm/engine.js.map +1 -1
- package/sdk/dist/index.d.ts +3 -2
- package/sdk/dist/index.d.ts.map +1 -1
- package/sdk/dist/index.js +6 -2
- package/sdk/dist/index.js.map +1 -1
- package/sdk/dist/price.d.ts +40 -0
- package/sdk/dist/price.d.ts.map +1 -0
- package/sdk/dist/price.js +101 -0
- package/sdk/dist/price.js.map +1 -0
- package/sdk/dist/protocols/aerodrome/abis.d.ts +76 -0
- package/sdk/dist/protocols/aerodrome/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/aerodrome/abis.js +61 -0
- package/sdk/dist/protocols/aerodrome/abis.js.map +1 -1
- package/sdk/dist/protocols/aerodrome-slipstream/abis.d.ts +70 -0
- package/sdk/dist/protocols/aerodrome-slipstream/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/aerodrome-slipstream/abis.js +54 -0
- package/sdk/dist/protocols/aerodrome-slipstream/abis.js.map +1 -1
- package/sdk/dist/protocols/camelot/abis.d.ts +178 -0
- package/sdk/dist/protocols/camelot/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/camelot/abis.js +139 -0
- package/sdk/dist/protocols/camelot/abis.js.map +1 -1
- package/sdk/dist/protocols/eco-routes/abis.d.ts +792 -50
- package/sdk/dist/protocols/eco-routes/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/eco-routes/abis.js +1058 -49
- package/sdk/dist/protocols/eco-routes/abis.js.map +1 -1
- package/sdk/dist/protocols/eco-routes/addresses.generated.d.ts +44 -61
- package/sdk/dist/protocols/eco-routes/addresses.generated.d.ts.map +1 -1
- package/sdk/dist/protocols/eco-routes/addresses.generated.js +45 -62
- package/sdk/dist/protocols/eco-routes/addresses.generated.js.map +1 -1
- package/sdk/dist/protocols/eco-routes/lookup.d.ts +10 -0
- package/sdk/dist/protocols/eco-routes/lookup.d.ts.map +1 -1
- package/sdk/dist/protocols/eco-routes/lookup.js +16 -0
- package/sdk/dist/protocols/eco-routes/lookup.js.map +1 -1
- package/sdk/dist/protocols/maverick/abis.d.ts +77 -0
- package/sdk/dist/protocols/maverick/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/maverick/abis.js +58 -0
- package/sdk/dist/protocols/maverick/abis.js.map +1 -1
- package/sdk/dist/protocols/maverick/addresses.d.ts.map +1 -1
- package/sdk/dist/protocols/maverick/addresses.js +4 -0
- package/sdk/dist/protocols/maverick/addresses.js.map +1 -1
- package/sdk/dist/protocols/pancakeswap-v2/abis.d.ts +52 -0
- package/sdk/dist/protocols/pancakeswap-v2/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/pancakeswap-v2/abis.js +43 -0
- package/sdk/dist/protocols/pancakeswap-v2/abis.js.map +1 -1
- package/sdk/dist/protocols/pancakeswap-v3/abis.d.ts +73 -0
- package/sdk/dist/protocols/pancakeswap-v3/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/pancakeswap-v3/abis.js +56 -0
- package/sdk/dist/protocols/pancakeswap-v3/abis.js.map +1 -1
- package/sdk/dist/protocols/permit2/abis.d.ts +113 -0
- package/sdk/dist/protocols/permit2/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/permit2/abis.js +63 -0
- package/sdk/dist/protocols/permit2/abis.js.map +1 -1
- package/sdk/dist/protocols/quickswap/abis.d.ts +148 -0
- package/sdk/dist/protocols/quickswap/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/quickswap/abis.js +119 -0
- package/sdk/dist/protocols/quickswap/abis.js.map +1 -1
- package/sdk/dist/protocols/sushiswap-v2/abis.d.ts +52 -0
- package/sdk/dist/protocols/sushiswap-v2/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/sushiswap-v2/abis.js +42 -0
- package/sdk/dist/protocols/sushiswap-v2/abis.js.map +1 -1
- package/sdk/dist/protocols/synthra-v3/abis.d.ts +73 -0
- package/sdk/dist/protocols/synthra-v3/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/synthra-v3/abis.js +55 -0
- package/sdk/dist/protocols/synthra-v3/abis.js.map +1 -1
- package/sdk/dist/protocols/trader-joe/abis.d.ts +133 -0
- package/sdk/dist/protocols/trader-joe/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/trader-joe/abis.js +101 -0
- package/sdk/dist/protocols/trader-joe/abis.js.map +1 -1
- package/sdk/dist/protocols/trader-joe/addresses.d.ts.map +1 -1
- package/sdk/dist/protocols/trader-joe/addresses.js +5 -0
- package/sdk/dist/protocols/trader-joe/addresses.js.map +1 -1
- package/sdk/dist/protocols/uniswap-v2/abis.d.ts +52 -0
- package/sdk/dist/protocols/uniswap-v2/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/uniswap-v2/abis.js +44 -0
- package/sdk/dist/protocols/uniswap-v2/abis.js.map +1 -1
- package/sdk/dist/protocols/uniswap-v3/abis.d.ts +73 -0
- package/sdk/dist/protocols/uniswap-v3/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/uniswap-v3/abis.js +55 -0
- package/sdk/dist/protocols/uniswap-v3/abis.js.map +1 -1
- package/sdk/dist/protocols/uniswap-v4/abis.d.ts +247 -0
- package/sdk/dist/protocols/uniswap-v4/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/uniswap-v4/abis.js +167 -0
- package/sdk/dist/protocols/uniswap-v4/abis.js.map +1 -1
- package/sdk/dist/protocols/uniswap-v4/addresses.d.ts.map +1 -1
- package/sdk/dist/protocols/uniswap-v4/addresses.js +50 -0
- package/sdk/dist/protocols/uniswap-v4/addresses.js.map +1 -1
- package/sdk/dist/protocols/unitflow-v3/abis.d.ts +73 -0
- package/sdk/dist/protocols/unitflow-v3/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/unitflow-v3/abis.js +56 -0
- package/sdk/dist/protocols/unitflow-v3/abis.js.map +1 -1
- package/sdk/dist/protocols/velodrome/abis.d.ts +76 -0
- package/sdk/dist/protocols/velodrome/abis.d.ts.map +1 -1
- package/sdk/dist/protocols/velodrome/abis.js +61 -0
- package/sdk/dist/protocols/velodrome/abis.js.map +1 -1
- package/sdk/dist/recipes/cctp-split.sauce.ts +2 -2
- package/sdk/dist/recipes/plain-transfer.sauce.ts +2 -2
- package/sdk/dist/routes/accessor-index.d.ts +2 -2
- package/sdk/dist/routes/accessor-index.d.ts.map +1 -1
- package/sdk/dist/routes/accessor-index.js +4 -3
- package/sdk/dist/routes/accessor-index.js.map +1 -1
- package/sdk/dist/routes/ambient.d.ts +5 -0
- package/sdk/dist/routes/ambient.d.ts.map +1 -1
- package/sdk/dist/routes/ambient.js +20 -0
- package/sdk/dist/routes/ambient.js.map +1 -1
- package/sdk/dist/routes/ast-walk.d.ts +17 -3
- package/sdk/dist/routes/ast-walk.d.ts.map +1 -1
- package/sdk/dist/routes/ast-walk.js +24 -2
- package/sdk/dist/routes/ast-walk.js.map +1 -1
- package/sdk/dist/routes/available.d.ts +43 -0
- package/sdk/dist/routes/available.d.ts.map +1 -0
- package/sdk/dist/routes/available.js +230 -0
- package/sdk/dist/routes/available.js.map +1 -0
- package/sdk/dist/routes/builtins.generated.d.ts +180 -0
- package/sdk/dist/routes/builtins.generated.d.ts.map +1 -0
- package/sdk/dist/routes/builtins.generated.js +2 -0
- package/sdk/dist/routes/builtins.generated.js.map +1 -0
- package/sdk/dist/routes/chain-exports.generated.d.ts +13 -8
- package/sdk/dist/routes/chain-exports.generated.d.ts.map +1 -1
- package/sdk/dist/routes/chain-exports.generated.js.map +1 -1
- package/sdk/dist/routes/closure.d.ts.map +1 -1
- package/sdk/dist/routes/closure.js +13 -26
- package/sdk/dist/routes/closure.js.map +1 -1
- package/sdk/dist/routes/composed.d.ts.map +1 -1
- package/sdk/dist/routes/composed.js +20 -8
- package/sdk/dist/routes/composed.js.map +1 -1
- package/sdk/dist/routes/encode.d.ts +17 -0
- package/sdk/dist/routes/encode.d.ts.map +1 -1
- package/sdk/dist/routes/encode.js +14 -11
- package/sdk/dist/routes/encode.js.map +1 -1
- package/sdk/dist/routes/entry.d.ts +76 -0
- package/sdk/dist/routes/entry.d.ts.map +1 -0
- package/sdk/dist/routes/entry.js +478 -0
- package/sdk/dist/routes/entry.js.map +1 -0
- package/sdk/dist/routes/index.d.ts +19 -12
- package/sdk/dist/routes/index.d.ts.map +1 -1
- package/sdk/dist/routes/index.js +11 -8
- package/sdk/dist/routes/index.js.map +1 -1
- package/sdk/dist/routes/intent-body.d.ts +97 -0
- package/sdk/dist/routes/intent-body.d.ts.map +1 -0
- package/sdk/dist/routes/intent-body.js +441 -0
- package/sdk/dist/routes/intent-body.js.map +1 -0
- package/sdk/dist/routes/intent-dsl.d.ts +21 -6
- package/sdk/dist/routes/intent-dsl.d.ts.map +1 -1
- package/sdk/dist/routes/intent-dsl.js +34 -17
- package/sdk/dist/routes/intent-dsl.js.map +1 -1
- package/sdk/dist/routes/intent-sugar.d.ts +77 -4
- package/sdk/dist/routes/intent-sugar.d.ts.map +1 -1
- package/sdk/dist/routes/intent-sugar.js +318 -129
- package/sdk/dist/routes/intent-sugar.js.map +1 -1
- package/sdk/dist/routes/intent.d.ts +13 -1
- package/sdk/dist/routes/intent.d.ts.map +1 -1
- package/sdk/dist/routes/intent.js +37 -1
- package/sdk/dist/routes/intent.js.map +1 -1
- package/sdk/dist/routes/nest.d.ts +3 -2
- package/sdk/dist/routes/nest.d.ts.map +1 -1
- package/sdk/dist/routes/nest.js +5 -3
- package/sdk/dist/routes/nest.js.map +1 -1
- package/sdk/dist/routes/parse.d.ts +6 -0
- package/sdk/dist/routes/parse.d.ts.map +1 -0
- package/sdk/dist/routes/parse.js +39 -0
- package/sdk/dist/routes/parse.js.map +1 -0
- package/sdk/dist/routes/portal.d.ts +258 -4
- package/sdk/dist/routes/portal.d.ts.map +1 -1
- package/sdk/dist/routes/portal.js +588 -9
- package/sdk/dist/routes/portal.js.map +1 -1
- package/sdk/dist/routes/protocol-rewrite.d.ts +71 -1
- package/sdk/dist/routes/protocol-rewrite.d.ts.map +1 -1
- package/sdk/dist/routes/protocol-rewrite.js +178 -54
- package/sdk/dist/routes/protocol-rewrite.js.map +1 -1
- package/sdk/dist/routes/rs-compile.d.ts +25 -22
- package/sdk/dist/routes/rs-compile.d.ts.map +1 -1
- package/sdk/dist/routes/rs-compile.js +55 -49
- package/sdk/dist/routes/rs-compile.js.map +1 -1
- package/sdk/dist/routes/sauce-calls.d.ts +26 -12
- package/sdk/dist/routes/sauce-calls.d.ts.map +1 -1
- package/sdk/dist/routes/sauce-calls.js +16 -23
- package/sdk/dist/routes/sauce-calls.js.map +1 -1
- package/sdk/dist/routes/sauce-route.d.ts +74 -7
- package/sdk/dist/routes/sauce-route.d.ts.map +1 -1
- package/sdk/dist/routes/sauce-route.js +225 -75
- package/sdk/dist/routes/sauce-route.js.map +1 -1
- package/sdk/dist/routes/source-globals.d.ts +107 -0
- package/sdk/dist/routes/source-globals.d.ts.map +1 -0
- package/sdk/dist/routes/source-globals.generated.d.ts +5601 -933
- package/sdk/dist/routes/source-globals.generated.d.ts.map +1 -1
- package/sdk/dist/routes/source-globals.generated.js +3 -4
- package/sdk/dist/routes/source-globals.generated.js.map +1 -1
- package/sdk/dist/routes/source-globals.js +175 -0
- package/sdk/dist/routes/source-globals.js.map +1 -0
- package/sdk/dist/routes/stock-tokens.d.ts +89 -0
- package/sdk/dist/routes/stock-tokens.d.ts.map +1 -0
- package/sdk/dist/routes/stock-tokens.generated.d.ts +7 -0
- package/sdk/dist/routes/stock-tokens.generated.d.ts.map +1 -0
- package/sdk/dist/routes/stock-tokens.generated.js +3664 -0
- package/sdk/dist/routes/stock-tokens.generated.js.map +1 -0
- package/sdk/dist/routes/stock-tokens.js +89 -0
- package/sdk/dist/routes/stock-tokens.js.map +1 -0
- package/sdk/dist/routes/token-registry.d.ts +68 -8
- package/sdk/dist/routes/token-registry.d.ts.map +1 -1
- package/sdk/dist/routes/token-registry.js +218 -32
- package/sdk/dist/routes/token-registry.js.map +1 -1
- package/sdk/dist/routes/token-rewrite.d.ts +1 -1
- package/sdk/dist/routes/token-rewrite.d.ts.map +1 -1
- package/sdk/dist/routes/token-rewrite.js +5 -9
- package/sdk/dist/routes/token-rewrite.js.map +1 -1
- package/sdk/dist/routes/unknown-global.d.ts +32 -0
- package/sdk/dist/routes/unknown-global.d.ts.map +1 -0
- package/sdk/dist/routes/unknown-global.js +106 -0
- package/sdk/dist/routes/unknown-global.js.map +1 -0
- package/sdk/dist/routes/vault.d.ts +38 -8
- package/sdk/dist/routes/vault.d.ts.map +1 -1
- package/sdk/dist/routes/vault.js +47 -8
- package/sdk/dist/routes/vault.js.map +1 -1
- package/sdk/dist/sauce-script/builtins.d.ts +309 -0
- package/sdk/dist/sauce-script/declarations.d.ts +3 -0
- package/sdk/dist/sauce-script/declarations.d.ts.map +1 -0
- package/sdk/dist/sauce-script/declarations.js +229 -0
- package/sdk/dist/sauce-script/declarations.js.map +1 -0
- package/sdk/dist/sauce-script/index.d.ts +2714 -0
- package/sdk/dist/sauce-script/ts-plugin.cjs +85 -0
- package/sdk/dist/skills/loader.d.ts.map +1 -1
- package/sdk/dist/skills/loader.js +4 -3
- package/sdk/dist/skills/loader.js.map +1 -1
- package/sdk/dist/std/router/balancer-v2-vault.abi.json +78 -0
- package/sdk/dist/std/router/curve-cryptoswap.abi.json +29 -0
- package/sdk/dist/std/router/curve-stableswap.abi.json +29 -0
- package/sdk/dist/std/router/dodo-v2-pool.abi.json +39 -0
- package/sdk/dist/std/router/lb-pair.abi.json +55 -0
- package/sdk/dist/std/router/package.json +7 -0
- package/sdk/dist/std/router/router.evm.js +567 -0
- package/sdk/dist/std/router/sauce-router.abi.json +202 -0
- package/sdk/dist/std/router/uniswap-v2-pair.abi.json +49 -0
- package/sdk/dist/std/router/woo-pp-v2.abi.json +42 -0
- package/sdk/dist/std/token/permit2.abi.json +226 -0
- package/sdk/dist/std/token/token.evm.js +73 -0
- package/sdk/dist/std/token/token.svm.js +194 -41
- package/sdk/dist/svm/client.d.ts +62 -15
- package/sdk/dist/svm/client.d.ts.map +1 -1
- package/sdk/dist/svm/client.js +103 -42
- package/sdk/dist/svm/client.js.map +1 -1
- package/sdk/dist/svm/engine.d.ts +66 -5
- package/sdk/dist/svm/engine.d.ts.map +1 -1
- package/sdk/dist/svm/engine.js +73 -5
- package/sdk/dist/svm/engine.js.map +1 -1
- package/sdk/dist/svm/index.d.ts +2 -0
- package/sdk/dist/svm/index.d.ts.map +1 -1
- package/sdk/dist/svm/index.js +2 -0
- package/sdk/dist/svm/index.js.map +1 -1
- package/sdk/dist/svm/instructions.d.ts +72 -1
- package/sdk/dist/svm/instructions.d.ts.map +1 -1
- package/sdk/dist/svm/instructions.js +81 -2
- package/sdk/dist/svm/instructions.js.map +1 -1
- package/sdk/dist/svm/kitchen.d.ts +20 -1
- package/sdk/dist/svm/kitchen.d.ts.map +1 -1
- package/sdk/dist/svm/kitchen.js +47 -1
- package/sdk/dist/svm/kitchen.js.map +1 -1
- package/sdk/dist/svm/portal.d.ts +250 -0
- package/sdk/dist/svm/portal.d.ts.map +1 -0
- package/sdk/dist/svm/portal.js +462 -0
- package/sdk/dist/svm/portal.js.map +1 -0
- package/sdk/dist/svm/send.d.ts +18 -2
- package/sdk/dist/svm/send.d.ts.map +1 -1
- package/sdk/dist/svm/send.js +28 -3
- package/sdk/dist/svm/send.js.map +1 -1
- package/sdk/dist/svm/token-accounts.d.ts +49 -0
- package/sdk/dist/svm/token-accounts.d.ts.map +1 -0
- package/sdk/dist/svm/token-accounts.js +58 -0
- package/sdk/dist/svm/token-accounts.js.map +1 -0
- package/sdk/dist/svm/token-extensions.d.ts +18 -7
- package/sdk/dist/svm/token-extensions.d.ts.map +1 -1
- package/sdk/dist/svm/token-extensions.js +58 -5
- package/sdk/dist/svm/token-extensions.js.map +1 -1
- package/sdk/dist/token/evm.js +1 -1
- package/sdk/dist/token/index.d.ts +1 -1
- package/sdk/dist/token/index.js +1 -1
- package/sdk/dist/token/params.js +1 -1
- package/sdk/dist/token/source.js +3 -3
- package/sdk/dist/token/source.js.map +1 -1
- package/sdk/dist/token/types.d.ts +2 -2
- package/sdk/dist/token/types.js +2 -2
- package/sdk/src/protocols/aerodrome/AerodromePoolABI.json +105 -0
- package/sdk/src/protocols/aerodrome/abis.ts +62 -0
- package/sdk/src/protocols/aerodrome-slipstream/AerodromeSlipstreamPoolABI.json +96 -0
- package/sdk/src/protocols/aerodrome-slipstream/abis.ts +55 -0
- package/sdk/src/protocols/camelot/CamelotV2FactoryABI.json +25 -0
- package/sdk/src/protocols/camelot/CamelotV2PairABI.json +109 -0
- package/sdk/src/protocols/camelot/CamelotV3FactoryABI.json +25 -0
- package/sdk/src/protocols/camelot/CamelotV3PoolABI.json +92 -0
- package/sdk/src/protocols/camelot/abis.ts +143 -0
- package/sdk/src/protocols/eco-routes/PortalABI.json +1448 -0
- package/sdk/src/protocols/eco-routes/ProverABI.json +162 -0
- package/sdk/src/protocols/eco-routes/abis.ts +1060 -51
- package/sdk/src/protocols/eco-routes/addresses.generated.ts +45 -62
- package/sdk/src/protocols/eco-routes/lookup.ts +18 -0
- package/sdk/src/protocols/maverick/MaverickV2PoolABI.json +107 -0
- package/sdk/src/protocols/maverick/abis.ts +59 -0
- package/sdk/src/protocols/maverick/addresses.ts +4 -0
- package/sdk/src/protocols/pancakeswap-v2/PancakeSwapV2PairABI.json +72 -0
- package/sdk/src/protocols/pancakeswap-v2/abis.ts +44 -0
- package/sdk/src/protocols/pancakeswap-v3/PancakeSwapV3PoolABI.json +100 -0
- package/sdk/src/protocols/pancakeswap-v3/abis.ts +57 -0
- package/sdk/src/protocols/permit2/Permit2ABI.json +154 -0
- package/sdk/src/protocols/permit2/abis.ts +63 -0
- package/sdk/src/protocols/quickswap/QuickSwapV2FactoryABI.json +25 -0
- package/sdk/src/protocols/quickswap/QuickSwapV2PairABI.json +72 -0
- package/sdk/src/protocols/quickswap/QuickSwapV3FactoryABI.json +25 -0
- package/sdk/src/protocols/quickswap/QuickSwapV3PoolABI.json +88 -0
- package/sdk/src/protocols/quickswap/abis.ts +123 -0
- package/sdk/src/protocols/sushiswap-v2/SushiSwapV2PairABI.json +72 -0
- package/sdk/src/protocols/sushiswap-v2/abis.ts +43 -0
- package/sdk/src/protocols/synthra-v3/SynthraV3PoolABI.json +100 -0
- package/sdk/src/protocols/synthra-v3/abis.ts +56 -0
- package/sdk/src/protocols/trader-joe/LBPairABI.json +185 -0
- package/sdk/src/protocols/trader-joe/abis.ts +102 -0
- package/sdk/src/protocols/trader-joe/addresses.ts +5 -0
- package/sdk/src/protocols/uniswap-v2/UniswapV2PairABI.json +72 -0
- package/sdk/src/protocols/uniswap-v2/abis.ts +45 -0
- package/sdk/src/protocols/uniswap-v3/UniswapV3PoolABI.json +100 -0
- package/sdk/src/protocols/uniswap-v3/abis.ts +56 -0
- package/sdk/src/protocols/uniswap-v4/UniswapV4PoolManagerABI.json +38 -0
- package/sdk/src/protocols/uniswap-v4/UniswapV4StateViewABI.json +307 -0
- package/sdk/src/protocols/uniswap-v4/abis.ts +168 -0
- package/sdk/src/protocols/uniswap-v4/addresses.ts +50 -0
- package/sdk/src/protocols/unitflow-v3/UnitFlowV3PoolABI.json +100 -0
- package/sdk/src/protocols/unitflow-v3/abis.ts +57 -0
- package/sdk/src/protocols/velodrome/VelodromePoolABI.json +105 -0
- package/sdk/src/protocols/velodrome/abis.ts +62 -0
- package/skills/sauce-actions/SKILL.md +166 -0
- package/skills/sauce-actions/examples/swap-and-supply.json +24 -0
- package/skills/sauce-actions/examples/swap-by-key.json +15 -0
- package/skills/sauce-actions/references/actions.md +731 -0
- package/skills/sauce-chains/SKILL.md +137 -0
- package/skills/sauce-chains/examples/chains.sauce.ts +25 -0
- package/skills/sauce-chains/references/arbitrum.md +158 -0
- package/skills/sauce-chains/references/arc.md +107 -0
- package/skills/sauce-chains/references/aurora.md +33 -0
- package/skills/sauce-chains/references/avalanche.md +106 -0
- package/skills/sauce-chains/references/base-stocks.md +77 -0
- package/skills/sauce-chains/references/base.md +141 -0
- package/skills/sauce-chains/references/berachain.md +33 -0
- package/skills/sauce-chains/references/blast.md +60 -0
- package/skills/sauce-chains/references/boba.md +33 -0
- package/skills/sauce-chains/references/bsc.md +97 -0
- package/skills/sauce-chains/references/celo.md +57 -0
- package/skills/sauce-chains/references/core.md +33 -0
- package/skills/sauce-chains/references/cronos.md +33 -0
- package/skills/sauce-chains/references/ethereum-stocks.md +1741 -0
- package/skills/sauce-chains/references/ethereum.md +255 -0
- package/skills/sauce-chains/references/evmos.md +33 -0
- package/skills/sauce-chains/references/fantom.md +61 -0
- package/skills/sauce-chains/references/fuse.md +33 -0
- package/skills/sauce-chains/references/gnosis.md +57 -0
- package/skills/sauce-chains/references/index.md +58 -0
- package/skills/sauce-chains/references/ink.md +55 -0
- package/skills/sauce-chains/references/kava.md +33 -0
- package/skills/sauce-chains/references/klaytn.md +33 -0
- package/skills/sauce-chains/references/linea.md +65 -0
- package/skills/sauce-chains/references/manta.md +33 -0
- package/skills/sauce-chains/references/mantle.md +33 -0
- package/skills/sauce-chains/references/metis.md +54 -0
- package/skills/sauce-chains/references/mode.md +55 -0
- package/skills/sauce-chains/references/monad.md +79 -0
- package/skills/sauce-chains/references/moonbeam.md +33 -0
- package/skills/sauce-chains/references/opbnb.md +55 -0
- package/skills/sauce-chains/references/optimism.md +123 -0
- package/skills/sauce-chains/references/plasma.md +35 -0
- package/skills/sauce-chains/references/polygon.md +123 -0
- package/skills/sauce-chains/references/pulsechain.md +33 -0
- package/skills/sauce-chains/references/ronin.md +35 -0
- package/skills/sauce-chains/references/scroll.md +62 -0
- package/skills/sauce-chains/references/sei.md +55 -0
- package/skills/sauce-chains/references/solana-stocks.md +1812 -0
- package/skills/sauce-chains/references/solana.md +56 -0
- package/skills/sauce-chains/references/sonic.md +57 -0
- package/skills/sauce-chains/references/unichain.md +61 -0
- package/skills/sauce-chains/references/zetachain.md +33 -0
- package/skills/sauce-chains/references/zksync.md +59 -0
- package/skills/sauce-chains/references/zora.md +57 -0
- package/skills/sauce-cli/SKILL.md +366 -0
- package/skills/sauce-cli/examples/pay.sauce.ts +23 -0
- package/skills/sauce-cli/examples/split.sauce.ts +30 -0
- package/skills/sauce-distributed-swap/SKILL.md +392 -0
- package/skills/sauce-distributed-swap/examples/distributed-swap.mts +251 -0
- package/skills/sauce-distributed-swap/examples/distributed-swap.sauce.ts +115 -0
- package/skills/sauce-examples/SKILL.md +96 -0
- package/skills/sauce-globals/SKILL.md +213 -0
- package/skills/sauce-globals/examples/globals.mts +111 -0
- package/skills/sauce-globals/examples/globals.sauce.ts +47 -0
- package/skills/sauce-globals/references/chains.md +53 -0
- package/skills/sauce-globals/references/protocols.md +405 -0
- package/skills/sauce-globals/references/stocks.md +3635 -0
- package/skills/sauce-globals/references/tokens.md +53 -0
- package/skills/sauce-intents/SKILL.md +505 -0
- package/skills/sauce-intents/examples/cross-chain.sauce.ts +37 -0
- package/skills/sauce-intents/examples/fund-by-transfer.sauce.ts +54 -0
- package/skills/sauce-intents/examples/intents.mts +343 -0
- package/skills/sauce-intents/examples/swap-on-base.sauce.ts +135 -0
- package/skills/sauce-intents/references/portal.md +77 -0
- package/skills/sauce-overview/SKILL.md +161 -0
- package/skills/sauce-protocols/SKILL.md +118 -0
- package/skills/sauce-protocols/examples/protocols.mts +77 -0
- package/skills/sauce-protocols/examples/protocols.sauce.ts +27 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/aave-v2.md +35 -17
- package/skills/sauce-protocols/references/aave-v3.md +144 -0
- package/skills/sauce-protocols/references/aave-v4.md +50 -0
- package/skills/sauce-protocols/references/abracadabra.md +72 -0
- package/skills/sauce-protocols/references/across.md +73 -0
- package/skills/sauce-protocols/references/aerodrome-slipstream.md +50 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/aerodrome.md +43 -24
- package/skills/sauce-protocols/references/aevo.md +49 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/alchemix.md +10 -25
- package/{sdk/src/skills → skills/sauce-protocols/references}/ambient.md +14 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/arbitrum-bridge.md +11 -14
- package/{sdk/src/skills → skills/sauce-protocols/references}/arrakis.md +10 -26
- package/skills/sauce-protocols/references/axelar.md +56 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/balancer-v2.md +13 -29
- package/{sdk/src/skills → skills/sauce-protocols/references}/base-bridge.md +11 -16
- package/{sdk/src/skills → skills/sauce-protocols/references}/baseswap.md +12 -19
- package/{sdk/src/skills → skills/sauce-protocols/references}/beefy.md +10 -30
- package/{sdk/src/skills → skills/sauce-protocols/references}/benqi.md +11 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/camelot.md +13 -27
- package/{sdk/src/skills → skills/sauce-protocols/references}/cbeth.md +10 -22
- package/skills/sauce-protocols/references/cctp.md +47 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/celer.md +11 -18
- package/{sdk/src/skills → skills/sauce-protocols/references}/chainlink-ccip.md +11 -21
- package/skills/sauce-protocols/references/chainlink.md +47 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/circle-gateway.md +12 -38
- package/{sdk/src/skills → skills/sauce-protocols/references}/compound-v2.md +11 -25
- package/{sdk/src/skills → skills/sauce-protocols/references}/compound-v3.md +43 -27
- package/{sdk/src/skills → skills/sauce-protocols/references}/connext.md +11 -15
- package/{sdk/src/skills → skills/sauce-protocols/references}/convex.md +10 -28
- package/{sdk/src/skills → skills/sauce-protocols/references}/cowswap.md +12 -19
- package/{sdk/src/skills → skills/sauce-protocols/references}/crvusd.md +10 -19
- package/skills/sauce-protocols/references/curve.md +98 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/debridge.md +11 -33
- package/{sdk/src/skills → skills/sauce-protocols/references}/dodo.md +13 -18
- package/skills/sauce-protocols/references/eigenlayer.md +48 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/ens.md +10 -26
- package/{sdk/src/skills → skills/sauce-protocols/references}/erc20.md +10 -24
- package/{sdk/src/skills → skills/sauce-protocols/references}/erc3156.md +10 -13
- package/{sdk/src/skills → skills/sauce-protocols/references}/erc4626.md +11 -27
- package/{sdk/src/skills → skills/sauce-protocols/references}/ethena.md +10 -27
- package/{sdk/src/skills → skills/sauce-protocols/references}/etherfi.md +10 -32
- package/{sdk/src/skills → skills/sauce-protocols/references}/euler-v2.md +11 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/fenix.md +12 -18
- package/{sdk/src/skills → skills/sauce-protocols/references}/fluid.md +11 -20
- package/{sdk/src/skills → skills/sauce-protocols/references}/frax-ether.md +10 -26
- package/{sdk/src/skills → skills/sauce-protocols/references}/frax.md +10 -19
- package/{sdk/src/skills → skills/sauce-protocols/references}/gains-network.md +11 -28
- package/skills/sauce-protocols/references/gamma.md +57 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/gelato.md +12 -20
- package/{sdk/src/skills → skills/sauce-protocols/references}/gho.md +10 -19
- package/{sdk/src/skills → skills/sauce-protocols/references}/gmx-v1.md +12 -34
- package/{sdk/src/skills → skills/sauce-protocols/references}/gmx-v2.md +15 -28
- package/skills/sauce-protocols/references/harvest.md +41 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/hegic.md +10 -18
- package/{sdk/src/skills → skills/sauce-protocols/references}/hop.md +11 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/hyperlane.md +11 -21
- package/skills/sauce-protocols/references/index.md +355 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/instadapp.md +10 -18
- package/skills/sauce-protocols/references/kelp.md +46 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/kim.md +12 -18
- package/{sdk/src/skills → skills/sauce-protocols/references}/kyberswap-aggregator.md +12 -35
- package/skills/sauce-protocols/references/kyberswap.md +72 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/layerbank.md +11 -26
- package/{sdk/src/skills → skills/sauce-protocols/references}/layerzero.md +11 -25
- package/{sdk/src/skills → skills/sauce-protocols/references}/level-finance.md +10 -24
- package/{sdk/src/skills → skills/sauce-protocols/references}/lido.md +10 -28
- package/{sdk/src/skills → skills/sauce-protocols/references}/lifi.md +11 -25
- package/{sdk/src/skills → skills/sauce-protocols/references}/linea-bridge.md +11 -14
- package/{sdk/src/skills → skills/sauce-protocols/references}/liquity-v1.md +10 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/liquity-v2.md +10 -19
- package/{sdk/src/skills → skills/sauce-protocols/references}/lynex.md +12 -18
- package/skills/sauce-protocols/references/maker.md +57 -0
- package/skills/sauce-protocols/references/mantle-meth.md +43 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/maverick.md +13 -25
- package/{sdk/src/skills → skills/sauce-protocols/references}/moonwell.md +11 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/morpho-blue.md +44 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/mux-protocol.md +10 -30
- package/skills/sauce-protocols/references/olympus.md +39 -0
- package/skills/sauce-protocols/references/oneinch.md +81 -0
- package/skills/sauce-protocols/references/openocean.md +69 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/optimism-bridge.md +11 -16
- package/{sdk/src/skills → skills/sauce-protocols/references}/opyn.md +10 -21
- package/{sdk/src/skills → skills/sauce-protocols/references}/pancakeswap-v2.md +39 -41
- package/skills/sauce-protocols/references/pancakeswap-v3.md +72 -0
- package/skills/sauce-protocols/references/paraswap.md +39 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/pendle.md +47 -29
- package/skills/sauce-protocols/references/permit2.md +101 -0
- package/skills/sauce-protocols/references/perpetual-protocol.md +53 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/polygon-bridge.md +11 -17
- package/{sdk/src/skills → skills/sauce-protocols/references}/premia.md +10 -19
- package/{sdk/src/skills → skills/sauce-protocols/references}/puffer.md +10 -21
- package/skills/sauce-protocols/references/pyth.md +45 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/quickswap.md +13 -27
- package/{sdk/src/skills → skills/sauce-protocols/references}/radiant.md +11 -15
- package/{sdk/src/skills → skills/sauce-protocols/references}/ramses.md +12 -18
- package/skills/sauce-protocols/references/reflexer.md +52 -0
- package/skills/sauce-protocols/references/registry/aave-v2.md +43 -0
- package/skills/sauce-protocols/references/registry/aave-v3.md +62 -0
- package/skills/sauce-protocols/references/registry/aave-v4.md +80 -0
- package/skills/sauce-protocols/references/registry/abracadabra.md +54 -0
- package/skills/sauce-protocols/references/registry/across.md +57 -0
- package/skills/sauce-protocols/references/registry/aerodrome-slipstream.md +72 -0
- package/skills/sauce-protocols/references/registry/aerodrome.md +58 -0
- package/skills/sauce-protocols/references/registry/aevo.md +39 -0
- package/skills/sauce-protocols/references/registry/alchemix.md +46 -0
- package/skills/sauce-protocols/references/registry/ambient.md +40 -0
- package/skills/sauce-protocols/references/registry/arbitrum-bridge.md +40 -0
- package/skills/sauce-protocols/references/registry/arrakis.md +49 -0
- package/skills/sauce-protocols/references/registry/axelar.md +65 -0
- package/skills/sauce-protocols/references/registry/balancer-v2.md +50 -0
- package/skills/sauce-protocols/references/registry/base-bridge.md +42 -0
- package/skills/sauce-protocols/references/registry/baseswap.md +40 -0
- package/skills/sauce-protocols/references/registry/beefy.md +51 -0
- package/skills/sauce-protocols/references/registry/benqi.md +49 -0
- package/skills/sauce-protocols/references/registry/camelot.md +82 -0
- package/skills/sauce-protocols/references/registry/cbeth.md +43 -0
- package/skills/sauce-protocols/references/registry/cctp.md +48 -0
- package/skills/sauce-protocols/references/registry/celer.md +44 -0
- package/skills/sauce-protocols/references/registry/chainlink-ccip.md +45 -0
- package/skills/sauce-protocols/references/registry/chainlink.md +49 -0
- package/skills/sauce-protocols/references/registry/circle-gateway.md +70 -0
- package/skills/sauce-protocols/references/registry/compound-v2.md +53 -0
- package/skills/sauce-protocols/references/registry/compound-v3.md +52 -0
- package/skills/sauce-protocols/references/registry/connext.md +41 -0
- package/skills/sauce-protocols/references/registry/convex.md +51 -0
- package/skills/sauce-protocols/references/registry/cowswap.md +40 -0
- package/skills/sauce-protocols/references/registry/crvusd.md +40 -0
- package/skills/sauce-protocols/references/registry/curve.md +81 -0
- package/skills/sauce-protocols/references/registry/debridge.md +59 -0
- package/skills/sauce-protocols/references/registry/dodo.md +39 -0
- package/skills/sauce-protocols/references/registry/eco-routes.md +65 -0
- package/skills/sauce-protocols/references/registry/eigenlayer.md +58 -0
- package/skills/sauce-protocols/references/registry/ens.md +49 -0
- package/skills/sauce-protocols/references/registry/erc20.md +44 -0
- package/skills/sauce-protocols/references/registry/erc3156.md +38 -0
- package/skills/sauce-protocols/references/registry/erc4626.md +51 -0
- package/skills/sauce-protocols/references/registry/ethena.md +50 -0
- package/skills/sauce-protocols/references/registry/etherfi.md +57 -0
- package/skills/sauce-protocols/references/registry/euler-v2.md +49 -0
- package/skills/sauce-protocols/references/registry/fenix.md +39 -0
- package/skills/sauce-protocols/references/registry/fluid.md +48 -0
- package/skills/sauce-protocols/references/registry/frax-ether.md +49 -0
- package/skills/sauce-protocols/references/registry/frax.md +40 -0
- package/skills/sauce-protocols/references/registry/gains-network.md +43 -0
- package/skills/sauce-protocols/references/registry/gamma.md +56 -0
- package/skills/sauce-protocols/references/registry/gelato.md +45 -0
- package/skills/sauce-protocols/references/registry/gho.md +40 -0
- package/skills/sauce-protocols/references/registry/gmx-v1.md +59 -0
- package/skills/sauce-protocols/references/registry/gmx-v2.md +41 -0
- package/skills/sauce-protocols/references/registry/harvest.md +44 -0
- package/skills/sauce-protocols/references/registry/hegic.md +39 -0
- package/skills/sauce-protocols/references/registry/hop.md +49 -0
- package/skills/sauce-protocols/references/registry/hyperlane.md +48 -0
- package/skills/sauce-protocols/references/registry/instadapp.md +39 -0
- package/skills/sauce-protocols/references/registry/kelp.md +47 -0
- package/skills/sauce-protocols/references/registry/kim.md +39 -0
- package/skills/sauce-protocols/references/registry/kyberswap-aggregator.md +49 -0
- package/skills/sauce-protocols/references/registry/kyberswap.md +63 -0
- package/skills/sauce-protocols/references/registry/layerbank.md +54 -0
- package/skills/sauce-protocols/references/registry/layerzero.md +49 -0
- package/skills/sauce-protocols/references/registry/level-finance.md +41 -0
- package/skills/sauce-protocols/references/registry/lido.md +51 -0
- package/skills/sauce-protocols/references/registry/lifi.md +48 -0
- package/skills/sauce-protocols/references/registry/linea-bridge.md +40 -0
- package/skills/sauce-protocols/references/registry/liquity-v1.md +42 -0
- package/skills/sauce-protocols/references/registry/liquity-v2.md +40 -0
- package/skills/sauce-protocols/references/registry/lynex.md +39 -0
- package/skills/sauce-protocols/references/registry/maker.md +55 -0
- package/skills/sauce-protocols/references/registry/mantle-meth.md +48 -0
- package/skills/sauce-protocols/references/registry/maverick.md +60 -0
- package/skills/sauce-protocols/references/registry/moonwell.md +49 -0
- package/skills/sauce-protocols/references/registry/morpho-blue.md +47 -0
- package/skills/sauce-protocols/references/registry/mux-protocol.md +49 -0
- package/skills/sauce-protocols/references/registry/olympus.md +42 -0
- package/skills/sauce-protocols/references/registry/oneinch.md +45 -0
- package/skills/sauce-protocols/references/registry/openocean.md +44 -0
- package/skills/sauce-protocols/references/registry/optimism-bridge.md +42 -0
- package/skills/sauce-protocols/references/registry/opyn.md +42 -0
- package/skills/sauce-protocols/references/registry/pancakeswap-v2.md +71 -0
- package/skills/sauce-protocols/references/registry/pancakeswap-v3.md +76 -0
- package/skills/sauce-protocols/references/registry/paraswap.md +51 -0
- package/skills/sauce-protocols/references/registry/pendle.md +43 -0
- package/skills/sauce-protocols/references/registry/permit2.md +50 -0
- package/skills/sauce-protocols/references/registry/perpetual-protocol.md +49 -0
- package/skills/sauce-protocols/references/registry/polygon-bridge.md +43 -0
- package/skills/sauce-protocols/references/registry/premia.md +40 -0
- package/skills/sauce-protocols/references/registry/puffer.md +43 -0
- package/skills/sauce-protocols/references/registry/pyth.md +40 -0
- package/skills/sauce-protocols/references/registry/quickswap.md +80 -0
- package/skills/sauce-protocols/references/registry/radiant.md +41 -0
- package/skills/sauce-protocols/references/registry/ramses.md +39 -0
- package/skills/sauce-protocols/references/registry/reflexer.md +56 -0
- package/skills/sauce-protocols/references/registry/renzo.md +47 -0
- package/skills/sauce-protocols/references/registry/rocket-pool.md +49 -0
- package/skills/sauce-protocols/references/registry/sablier.md +40 -0
- package/skills/sauce-protocols/references/registry/safe.md +47 -0
- package/skills/sauce-protocols/references/registry/scroll-bridge.md +48 -0
- package/skills/sauce-protocols/references/registry/seamless.md +42 -0
- package/skills/sauce-protocols/references/registry/seaport.md +44 -0
- package/skills/sauce-protocols/references/registry/silo.md +48 -0
- package/skills/sauce-protocols/references/registry/socket.md +44 -0
- package/skills/sauce-protocols/references/registry/sommelier.md +43 -0
- package/skills/sauce-protocols/references/registry/spark.md +42 -0
- package/skills/sauce-protocols/references/registry/spookyswap.md +40 -0
- package/skills/sauce-protocols/references/registry/squid.md +45 -0
- package/skills/sauce-protocols/references/registry/stader.md +47 -0
- package/skills/sauce-protocols/references/registry/stargate.md +45 -0
- package/skills/sauce-protocols/references/registry/superfluid.md +49 -0
- package/skills/sauce-protocols/references/registry/sushiswap-v2.md +71 -0
- package/skills/sauce-protocols/references/registry/swell.md +49 -0
- package/skills/sauce-protocols/references/registry/synapse.md +46 -0
- package/skills/sauce-protocols/references/registry/syncswap.md +38 -0
- package/skills/sauce-protocols/references/registry/synthetix-v3.md +48 -0
- package/skills/sauce-protocols/references/registry/synthra-v3.md +77 -0
- package/skills/sauce-protocols/references/registry/thales.md +51 -0
- package/skills/sauce-protocols/references/registry/thena.md +39 -0
- package/skills/sauce-protocols/references/registry/thruster.md +38 -0
- package/skills/sauce-protocols/references/registry/tokemak.md +45 -0
- package/skills/sauce-protocols/references/registry/trader-joe.md +66 -0
- package/skills/sauce-protocols/references/registry/uniswap-v2.md +77 -0
- package/skills/sauce-protocols/references/registry/uniswap-v3.md +113 -0
- package/skills/sauce-protocols/references/registry/uniswap-v4.md +117 -0
- package/skills/sauce-protocols/references/registry/unitflow-v3.md +65 -0
- package/skills/sauce-protocols/references/registry/velodrome.md +58 -0
- package/skills/sauce-protocols/references/registry/venus.md +62 -0
- package/skills/sauce-protocols/references/registry/vertex.md +46 -0
- package/skills/sauce-protocols/references/registry/wormhole.md +59 -0
- package/skills/sauce-protocols/references/registry/yearn-v3.md +46 -0
- package/skills/sauce-protocols/references/registry/zerolend.md +41 -0
- package/skills/sauce-protocols/references/registry/zerox.md +44 -0
- package/skills/sauce-protocols/references/registry/zksync-bridge.md +40 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/renzo.md +10 -24
- package/{sdk/src/skills → skills/sauce-protocols/references}/rocket-pool.md +10 -26
- package/{sdk/src/skills → skills/sauce-protocols/references}/sablier.md +10 -27
- package/skills/sauce-protocols/references/safe.md +42 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/scroll-bridge.md +11 -20
- package/{sdk/src/skills → skills/sauce-protocols/references}/seamless.md +11 -16
- package/skills/sauce-protocols/references/seaport.md +38 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/silo.md +11 -20
- package/{sdk/src/skills → skills/sauce-protocols/references}/socket.md +11 -18
- package/skills/sauce-protocols/references/sommelier.md +40 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/spark.md +11 -16
- package/{sdk/src/skills → skills/sauce-protocols/references}/spookyswap.md +12 -19
- package/{sdk/src/skills → skills/sauce-protocols/references}/squid.md +11 -21
- package/skills/sauce-protocols/references/stader.md +39 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/stargate.md +11 -22
- package/{sdk/src/skills → skills/sauce-protocols/references}/superfluid.md +10 -28
- package/{sdk/src/skills → skills/sauce-protocols/references}/sushiswap-v2.md +38 -43
- package/skills/sauce-protocols/references/swell.md +49 -0
- package/skills/sauce-protocols/references/synapse.md +54 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/syncswap.md +12 -17
- package/{sdk/src/skills → skills/sauce-protocols/references}/synthetix-v3.md +10 -29
- package/skills/sauce-protocols/references/synthra-v3.md +63 -0
- package/skills/sauce-protocols/references/thales.md +58 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/thena.md +12 -18
- package/{sdk/src/skills → skills/sauce-protocols/references}/thruster.md +13 -18
- package/skills/sauce-protocols/references/tokemak.md +40 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/trader-joe.md +13 -26
- package/{sdk/src/skills → skills/sauce-protocols/references}/uniswap-v2.md +46 -44
- package/skills/sauce-protocols/references/uniswap-v3.md +188 -0
- package/skills/sauce-protocols/references/uniswap-v4.md +155 -0
- package/skills/sauce-protocols/references/unitflow-v3.md +63 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/velodrome.md +12 -24
- package/{sdk/src/skills → skills/sauce-protocols/references}/venus.md +12 -31
- package/skills/sauce-protocols/references/vertex.md +42 -0
- package/skills/sauce-protocols/references/wormhole.md +57 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/yearn-v3.md +10 -25
- package/{sdk/src/skills → skills/sauce-protocols/references}/zerolend.md +11 -15
- package/skills/sauce-protocols/references/zerox.md +39 -0
- package/{sdk/src/skills → skills/sauce-protocols/references}/zksync-bridge.md +11 -14
- package/skills/sauce-script/SKILL.md +407 -0
- package/skills/sauce-script/examples/IOracle.json +12 -0
- package/skills/sauce-script/examples/saucescript.mts +167 -0
- package/skills/sauce-script/examples/twap.sauce.ts +29 -0
- package/skills/sauce-script/references/builtins.json +823 -0
- package/skills/sauce-script/references/builtins.md +674 -0
- package/skills/sauce-solana/SKILL.md +324 -0
- package/skills/sauce-solana/examples/solana.mts +166 -0
- package/skills/sauce-solana/examples/solana.sauce.ts +45 -0
- package/skills/sauce-solana/examples/token-2022.sauce.ts +38 -0
- package/skills/sauce-swaps/SKILL.md +200 -0
- package/skills/sauce-swaps/examples/swap-leg.sauce.ts +50 -0
- package/skills/sauce-swaps/examples/swaps.mts +124 -0
- package/skills/sauce-typescript/SKILL.md +178 -0
- package/skills/sauce-typescript/examples/actions.mts +100 -0
- package/skills/sauce-typescript/examples/compiler.mts +69 -0
- package/skills/sauce-typescript/examples/cook.mts +65 -0
- package/skills/sauce-typescript/examples/verify.mts +104 -0
- package/dev-tools/README.md +0 -16
- package/dev-tools/artifacts/IERC20.json +0 -1
- package/dev-tools/artifacts/ISauceRouter.json +0 -1
- package/dev-tools/artifacts/IUniswapV3Pool.json +0 -1
- package/dev-tools/artifacts/Router.json +0 -1
- package/dev-tools/hardhat.config.cjs +0 -18
- package/dev-tools/sauce/js/add.js +0 -4
- package/dev-tools/sauce/js/call.js +0 -8
- package/dev-tools/sauce/js/erc20.js +0 -18
- package/dev-tools/sauce/js/example.js +0 -6
- package/dev-tools/sauce/js/fibonacci.js +0 -13
- package/dev-tools/sauce/ts/add.ts +0 -4
- package/dev-tools/sauce/ts/call.ts +0 -8
- package/dev-tools/sauce/ts/erc20.ts +0 -18
- package/dev-tools/sauce/ts/example.ts +0 -6
- package/dev-tools/sauce/ts/fibonacci.ts +0 -13
- package/dev-tools/sauce/ts/saucescript.d.ts +0 -1
- package/dev-tools/sauce/ts/tsconfig.json +0 -12
- package/dev-tools/scripts/deploy.ts +0 -107
- package/dev-tools/scripts/init.js +0 -132
- package/dev-tools/scripts/run.ts +0 -67
- package/dev-tools/scripts/start-fork.sh +0 -92
- package/dev-tools/scripts/start-local.sh +0 -120
- package/dev-tools/scripts/stop-local.sh +0 -40
- package/dev-tools/scripts/sync-artifacts.js +0 -46
- package/dev-tools/scripts/sync-price.ts +0 -58
- package/dev-tools/src/contracts.ts +0 -59
- package/dev-tools/src/runner.ts +0 -355
- package/dev-tools/src/svm-local.ts +0 -305
- package/dev-tools/src/sync-price.ts +0 -217
- package/sdk/dist/deployments/v12.generated.d.ts +0 -95
- package/sdk/dist/deployments/v12.generated.d.ts.map +0 -1
- package/sdk/dist/deployments/v12.generated.js +0 -50
- package/sdk/dist/deployments/v12.generated.js.map +0 -1
- package/sdk/dist/swap/index.d.ts +0 -29
- package/sdk/dist/swap/index.d.ts.map +0 -1
- package/sdk/dist/swap/index.js +0 -27
- package/sdk/dist/swap/index.js.map +0 -1
- package/sdk/dist/swap/params.d.ts +0 -29
- package/sdk/dist/swap/params.d.ts.map +0 -1
- package/sdk/dist/swap/params.js +0 -123
- package/sdk/dist/swap/params.js.map +0 -1
- package/sdk/dist/swap/source.d.ts +0 -30
- package/sdk/dist/swap/source.d.ts.map +0 -1
- package/sdk/dist/swap/source.js +0 -101
- package/sdk/dist/swap/source.js.map +0 -1
- package/sdk/dist/swap/types.d.ts +0 -160
- package/sdk/dist/swap/types.d.ts.map +0 -1
- package/sdk/dist/swap/types.js +0 -106
- package/sdk/dist/swap/types.js.map +0 -1
- package/sdk/src/skills/aave-v3.md +0 -134
- package/sdk/src/skills/aave-v4.md +0 -91
- package/sdk/src/skills/abracadabra.md +0 -93
- package/sdk/src/skills/across.md +0 -90
- package/sdk/src/skills/aerodrome-slipstream.md +0 -57
- package/sdk/src/skills/aevo.md +0 -58
- package/sdk/src/skills/axelar.md +0 -80
- package/sdk/src/skills/chainlink.md +0 -62
- package/sdk/src/skills/curve.md +0 -141
- package/sdk/src/skills/eigenlayer.md +0 -71
- package/sdk/src/skills/gamma.md +0 -79
- package/sdk/src/skills/harvest.md +0 -49
- package/sdk/src/skills/index.md +0 -299
- package/sdk/src/skills/kelp.md +0 -60
- package/sdk/src/skills/kyberswap.md +0 -100
- package/sdk/src/skills/loader.ts +0 -46
- package/sdk/src/skills/maker.md +0 -79
- package/sdk/src/skills/mantle-meth.md +0 -60
- package/sdk/src/skills/olympus.md +0 -46
- package/sdk/src/skills/oneinch.md +0 -64
- package/sdk/src/skills/openocean.md +0 -86
- package/sdk/src/skills/pancakeswap-v3.md +0 -104
- package/sdk/src/skills/paraswap.md +0 -67
- package/sdk/src/skills/permit2.md +0 -73
- package/sdk/src/skills/perpetual-protocol.md +0 -73
- package/sdk/src/skills/pyth.md +0 -58
- package/sdk/src/skills/reflexer.md +0 -73
- package/sdk/src/skills/safe.md +0 -56
- package/sdk/src/skills/seaport.md +0 -65
- package/sdk/src/skills/sommelier.md +0 -47
- package/sdk/src/skills/stader.md +0 -53
- package/sdk/src/skills/swell.md +0 -65
- package/sdk/src/skills/synapse.md +0 -63
- package/sdk/src/skills/synthra-v3.md +0 -57
- package/sdk/src/skills/thales.md +0 -74
- package/sdk/src/skills/tokemak.md +0 -48
- package/sdk/src/skills/uniswap-v3.md +0 -202
- package/sdk/src/skills/uniswap-v4.md +0 -125
- package/sdk/src/skills/unitflow-v3.md +0 -62
- package/sdk/src/skills/vertex.md +0 -55
- package/sdk/src/skills/wormhole.md +0 -76
- package/sdk/src/skills/zerox.md +0 -51
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `sauce compile`, `tx`, `simulate`, `run` and `pot` compute. Each returns its result as the
|
|
3
|
+
* lines a person reads and as the JSON a program reads; `run.ts` picks which to print.
|
|
4
|
+
*
|
|
5
|
+
* Every piece is the SDK's own: `compileSauceProgram` compiles the file as a standalone program with
|
|
6
|
+
* the chain's ambient names, `encodeEntryArguments` encodes `main`'s arguments, `buildSauceEvmCall`
|
|
7
|
+
* (`v12Pot.encodeCook`) is the cook, `v12PredictPot`, `potSalt` and `sauceEvmDeployPotCall` are the
|
|
8
|
+
* Pot, and `destinationExecutionFee` is the Kitchen's fee. Nothing is reimplemented here; `chain.ts`
|
|
9
|
+
* reads and sends, and `signer.ts` holds the key.
|
|
10
|
+
*/
|
|
11
|
+
import { createRequire } from "node:module";
|
|
12
|
+
import { dirname, resolve as resolvePath } from "node:path";
|
|
13
|
+
import { bytesToHex, getAddress, hexToBytes, } from "viem";
|
|
14
|
+
import { v12DeployedAddresses, v12EngineAddress, v12KitchenAddress, v12SvmEngineProgramId, } from "../deployments/index.js";
|
|
15
|
+
import { v12PredictPot } from "../deployments/pot.js";
|
|
16
|
+
/** The released Kitchen, which deploys every Pot (`V12Deployments.json`). */
|
|
17
|
+
export const kitchenAddress = () => getAddress(v12KitchenAddress());
|
|
18
|
+
import { encodeEntryArguments } from "../routes/entry.js";
|
|
19
|
+
import { MAX_SQRT_PRICE_X96, MIN_SQRT_PRICE_X96 } from "../price.js";
|
|
20
|
+
import { buildSauceEvmCall, sauceEvmDeployPotCall } from "../routes/sauce-calls.js";
|
|
21
|
+
import { compileSauceProgram, } from "../routes/sauce-route.js";
|
|
22
|
+
import { CliError, UsageError } from "./args.js";
|
|
23
|
+
import { awaitPot, connect, kitchenFee, potState, releasedContracts, sendAndWait, } from "./chain.js";
|
|
24
|
+
import { describeCompileError } from "./diagnostics.js";
|
|
25
|
+
import { checkIntentPots, intentCooks, missingPotNote, potCheckJson, } from "./intents.js";
|
|
26
|
+
import { costJson, costLine, costOf, receiptEffects, receiptReport } from "./receipt.js";
|
|
27
|
+
import { appliedDefines, contractCollector } from "./report.js";
|
|
28
|
+
import { mainReturnType } from "../routes/entry.js";
|
|
29
|
+
import { svmCookSize } from "./solana.js";
|
|
30
|
+
import { intentDestinations, previewRefusal, requireSupported, } from "./support.js";
|
|
31
|
+
/** Why `--intent-deadline` has passed, or `undefined` while it is still ahead. */
|
|
32
|
+
export function pastDeadline(program, now = Date.now()) {
|
|
33
|
+
const deadline = program.intents.deadline;
|
|
34
|
+
if (deadline === undefined || deadline > BigInt(Math.floor(now / 1000)))
|
|
35
|
+
return undefined;
|
|
36
|
+
return (`--intent-deadline ${deadline} (${new Date(Number(deadline) * 1000).toISOString()}) has ` +
|
|
37
|
+
"passed: an intent can be filled only until its deadline");
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Refuses a program whose intents' deadline has passed: the commands that build an intent to
|
|
41
|
+
* publish — `compileCommand`, `cookOf` (simulate, tx, run), the Solana cook, `publishCommand` —
|
|
42
|
+
* would build one no solver could ever fill. Here, in the commands both front ends call, so the
|
|
43
|
+
* CLI and the MCP tools refuse it alike. `fill` rehearses one anyway, with a note, and `inspect`
|
|
44
|
+
* reads what was.
|
|
45
|
+
*/
|
|
46
|
+
export function refusePastDeadline(program, now = Date.now()) {
|
|
47
|
+
const past = pastDeadline(program, now);
|
|
48
|
+
if (past === undefined)
|
|
49
|
+
return;
|
|
50
|
+
const later = BigInt(Math.floor(now / 1000)) + 86400n;
|
|
51
|
+
throw new UsageError(`${past}, so this one never could be. Give a later Unix time in seconds, such as ${later} ` +
|
|
52
|
+
"(a day from now).");
|
|
53
|
+
}
|
|
54
|
+
/** An input file's text — the program, a defines file — or a precise reason it has none. */
|
|
55
|
+
export function readInput(files, file) {
|
|
56
|
+
try {
|
|
57
|
+
return files.readText(file);
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
const code = error.code;
|
|
61
|
+
throw new CliError(code === "ENOENT" ? `${file}: no such file` : `${file}: ${error.message}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/** A `cast send` of exactly `to`/`data`/`value`, with the endpoint and key left to the reader —
|
|
65
|
+
* never filled in from `--rpc-url`, whose URL often carries a provider key. */
|
|
66
|
+
export function castSend(to, data, value) {
|
|
67
|
+
return [
|
|
68
|
+
"cast send",
|
|
69
|
+
to,
|
|
70
|
+
data,
|
|
71
|
+
...(value === undefined ? [] : ["--value", value.toString()]),
|
|
72
|
+
"--rpc-url",
|
|
73
|
+
"<RPC_URL>",
|
|
74
|
+
"--private-key",
|
|
75
|
+
"<PRIVATE_KEY>",
|
|
76
|
+
].join(" ");
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The options every compile here runs with, on top of the chain's ambient names that
|
|
80
|
+
* `compileSauceProgram` adds itself: the defines, the intent settings, the argument encoding, and a
|
|
81
|
+
* resolver that serves the program's own relative imports from beside the file.
|
|
82
|
+
*/
|
|
83
|
+
function compileOptions(input, files, onContract) {
|
|
84
|
+
const dir = sourceDirOf(input);
|
|
85
|
+
const { deadline, rewardDeadline, creator, prover, executionFee, fundVia } = input.intents;
|
|
86
|
+
const intents = {
|
|
87
|
+
...(deadline === undefined ? {} : { deadline }),
|
|
88
|
+
...(rewardDeadline === undefined ? {} : { rewardDeadline }),
|
|
89
|
+
...(creator === undefined ? {} : { creator }),
|
|
90
|
+
...(prover === undefined ? {} : { prover }),
|
|
91
|
+
...(executionFee === undefined ? {} : { executionFee }),
|
|
92
|
+
...(fundVia === undefined ? {} : { fundVia }),
|
|
93
|
+
};
|
|
94
|
+
return {
|
|
95
|
+
defines: input.defines,
|
|
96
|
+
...(Object.keys(intents).length === 0 ? {} : { intents }),
|
|
97
|
+
...(input.compactArgs ? { compactArgs: true } : {}),
|
|
98
|
+
// The intents the program opens compile with these options too, so this hears their contracts.
|
|
99
|
+
...(onContract === undefined ? {} : { accessors: { onContract } }),
|
|
100
|
+
...(input.contracts === undefined ? {} : { contracts: input.contracts }),
|
|
101
|
+
resolve: (path) => files.readModule(resolvePath(dir, path)),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/** The directory a program's relative imports resolve against. */
|
|
105
|
+
export const sourceDirOf = (input) => resolvePath(input.sourceDir ?? (input.stdin === true ? "." : dirname(resolvePath(input.file))));
|
|
106
|
+
/**
|
|
107
|
+
* Compiles the file as a standalone program, turning a failure into one message about the file.
|
|
108
|
+
* `onContract` is told each protocol contract the compile resolves.
|
|
109
|
+
*/
|
|
110
|
+
export function compileProgram(input, files, onContract) {
|
|
111
|
+
try {
|
|
112
|
+
return compileSauceProgram(input.chain, input.text, compileOptions(input, files, onContract));
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
const described = describeCompileError(error, input.file, input.text, input.chain);
|
|
116
|
+
// A relative import that did not resolve, from a program with no directory of its own.
|
|
117
|
+
const imports = input.stdin === true && /import|resolv|\.\//i.test(String(error));
|
|
118
|
+
throw new CliError(`${input.file} does not compile for ${input.chain.slug}\n${described}` +
|
|
119
|
+
(imports
|
|
120
|
+
? `\nhint: the program came from stdin, so its relative imports resolve against ` +
|
|
121
|
+
`${sourceDirOf(input)}: pass --source-dir <dir> to resolve them elsewhere`
|
|
122
|
+
: ""));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The chains a cook of `input` is refused by: its own, and the destination of each intent it opens
|
|
127
|
+
* — what {@link requireSupported} is asked about before anything that publishes them. A fee the
|
|
128
|
+
* intents' cooks are not given yet is zero here: the chains do not depend on it.
|
|
129
|
+
*/
|
|
130
|
+
export function programChains(input, files) {
|
|
131
|
+
const probe = compileProgram({ ...input, intents: { ...input.intents, executionFee: input.intents.executionFee ?? 0n } }, files);
|
|
132
|
+
return [input.chain, ...intentDestinations(probe.intents)];
|
|
133
|
+
}
|
|
134
|
+
/** The installed compiler's package name and version, read from its own manifest. */
|
|
135
|
+
function compilerPackage() {
|
|
136
|
+
const require = createRequire(import.meta.url);
|
|
137
|
+
// The entry (`node/sauce_wasm.js`) sits one level under the package root, and the package's
|
|
138
|
+
// `exports` does not list `package.json` itself.
|
|
139
|
+
const manifest = resolvePath(dirname(require.resolve("sauce-compiler")), "..", "package.json");
|
|
140
|
+
const { name, version } = require(manifest);
|
|
141
|
+
return { name, version };
|
|
142
|
+
}
|
|
143
|
+
/** The released engine a program for `chain` runs on, from the release record the SDK ships. */
|
|
144
|
+
function pairedEngine(chain) {
|
|
145
|
+
const releases = v12DeployedAddresses().releases;
|
|
146
|
+
if (chain.kind === "svm") {
|
|
147
|
+
const { version, commit } = releases["v12-svm"];
|
|
148
|
+
return { release: "v12-svm", version, commit, programId: v12SvmEngineProgramId() };
|
|
149
|
+
}
|
|
150
|
+
const { version, commit } = releases["v12-evm"];
|
|
151
|
+
return { release: "v12-evm", version, commit, address: getAddress(v12EngineAddress()) };
|
|
152
|
+
}
|
|
153
|
+
/** `main(name: Type, …)`, as the program declares its runtime parameters. */
|
|
154
|
+
const signatureOf = (params) => `main(${params.map((param) => `${param.name}: ${param.type}`).join(", ")})`;
|
|
155
|
+
/**
|
|
156
|
+
* `sauce compile`: the program's bytecode, and with `--json` what it pairs with and takes, what it
|
|
157
|
+
* was compiled with — the defines it reads and the protocol contracts it calls, each with where it
|
|
158
|
+
* came from — and how large it is: the program, the payload with `main`'s arguments, and on Solana
|
|
159
|
+
* the cook's transaction against the one-transaction limit.
|
|
160
|
+
*/
|
|
161
|
+
export async function compileCommand(input, files) {
|
|
162
|
+
refusePastDeadline(input);
|
|
163
|
+
const collected = contractCollector();
|
|
164
|
+
const program = compileProgram(input, files, collected.onContract);
|
|
165
|
+
const bytecode = bytesToHex(program.bytecode);
|
|
166
|
+
const { defines, unread } = appliedDefines(input.text, input.chain, input.defines, new Set(input.addressDefines ?? []));
|
|
167
|
+
// The payload is the program with its arguments appended: known once the arguments are.
|
|
168
|
+
const payload = input.args === undefined && program.entryParams.length > 0
|
|
169
|
+
? undefined
|
|
170
|
+
: hexToBytes(payloadOf(program, input.args));
|
|
171
|
+
const cook = input.chain.kind === "svm" && payload !== undefined
|
|
172
|
+
? await svmCookSize(payload, program.manifest ?? { accounts: [] }, input.accounts ?? {}, input.via)
|
|
173
|
+
: undefined;
|
|
174
|
+
const cooks = intentCooks(program.intents);
|
|
175
|
+
const pots = input.endpoints === undefined ? cooks : await checkIntentPots(cooks, input.endpoints);
|
|
176
|
+
const notes = [
|
|
177
|
+
...priceLimitNotes(input, program.entryParams, input.args),
|
|
178
|
+
...pots.filter((check) => check.deployed === false).map(missingPotNote),
|
|
179
|
+
...unread.map(({ name, readOn }) => readOn.length === 0
|
|
180
|
+
? `--define ${name}: ${input.file} never reads ${name}, so the define changes nothing`
|
|
181
|
+
: `--define ${name}: ${input.file} reads ${name} only in intents on ${readOn.join(", ")}, ` +
|
|
182
|
+
`where it is that chain's own: a define of a name each chain sets holds on ` +
|
|
183
|
+
`${input.chain.slug} alone, so this one changes nothing`),
|
|
184
|
+
...(cook === undefined || cook.fits
|
|
185
|
+
? []
|
|
186
|
+
: [
|
|
187
|
+
`the cook is a ${cook.size}-byte transaction, past Solana's ${cook.limit}: \`sauce run\` ` +
|
|
188
|
+
"stages the program in a code buffer first; `sauce simulate` and `sauce tx` cannot",
|
|
189
|
+
]),
|
|
190
|
+
];
|
|
191
|
+
return {
|
|
192
|
+
text: bytecode,
|
|
193
|
+
json: {
|
|
194
|
+
chain: input.chain.slug,
|
|
195
|
+
chainId: input.chain.id,
|
|
196
|
+
target: input.chain.kind,
|
|
197
|
+
bytecode,
|
|
198
|
+
size: program.bytecode.length,
|
|
199
|
+
payload: payload === undefined
|
|
200
|
+
? null
|
|
201
|
+
: { size: payload.length, argumentsSize: payload.length - program.bytecode.length },
|
|
202
|
+
...(cook === undefined ? {} : { cook }),
|
|
203
|
+
entryEncoding: program.entryEncoding,
|
|
204
|
+
entryParams: program.entryParams,
|
|
205
|
+
entrySchema: program.entrySchema === undefined ? null : bytesToHex(program.entrySchema),
|
|
206
|
+
// What main returns, as it declares it: `simulate` reads the cook's return data as this.
|
|
207
|
+
returnType: mainReturnType(input.text) ?? null,
|
|
208
|
+
defines,
|
|
209
|
+
contracts: collected.contracts(),
|
|
210
|
+
...(pots.length === 0 ? {} : { intentPots: pots.map(potCheckJson) }),
|
|
211
|
+
compiler: compilerPackage(),
|
|
212
|
+
engine: pairedEngine(input.chain),
|
|
213
|
+
...(program.manifest === undefined ? {} : { manifest: program.manifest }),
|
|
214
|
+
},
|
|
215
|
+
...(notes.length === 0 ? {} : { notes }),
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* The values to encode for `params`. A `--args` string is the value itself, except for an array or
|
|
220
|
+
* tuple parameter, which takes JSON (`[1, 2]`, `{"amount": 1}`); `--args-json` values are taken as
|
|
221
|
+
* parsed. `encodeEntryArguments` then checks every one against its declared type.
|
|
222
|
+
*/
|
|
223
|
+
function argumentValues(params, args) {
|
|
224
|
+
if (args.from === "--args-json")
|
|
225
|
+
return args.values;
|
|
226
|
+
return args.values.map((raw, index) => {
|
|
227
|
+
const param = params[index];
|
|
228
|
+
if (param === undefined || !/^\{|\[\]$/.test(param.type.trim()))
|
|
229
|
+
return raw;
|
|
230
|
+
try {
|
|
231
|
+
return JSON.parse(raw);
|
|
232
|
+
}
|
|
233
|
+
catch {
|
|
234
|
+
throw new UsageError(`--args: argument ${index + 1} (${param.name}: ${param.type}) takes JSON, such as ` +
|
|
235
|
+
`${param.type.trim().startsWith("{") ? '{"field": 1}' : "[1, 2]"}; got '${raw}'`);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/** A define or parameter whose name says it is a pool's price limit. */
|
|
240
|
+
const LIMIT_NAME = /sqrt.*price|price.*limit|sqrt.*limit/i;
|
|
241
|
+
/**
|
|
242
|
+
* A note for each price limit — a define or one of `main`'s arguments named like one
|
|
243
|
+
* (`SQRT_PRICE_LIMIT_X96`, `sqrtPriceLimitX96`) — at or past the bounds a V3-style pool takes. A
|
|
244
|
+
* pool takes a limit strictly between MIN_SQRT_RATIO and MAX_SQRT_RATIO and reverts "SPL" at
|
|
245
|
+
* either, so such a limit cannot fill; `0` is the library's "no limit", and is left alone.
|
|
246
|
+
*/
|
|
247
|
+
export function priceLimitNotes(input, params, args) {
|
|
248
|
+
const values = Object.entries(input.defines).flatMap(([name, value]) => LIMIT_NAME.test(name) && typeof value === "bigint" ? [[name, value]] : []);
|
|
249
|
+
if (args !== undefined) {
|
|
250
|
+
params.forEach((param, index) => {
|
|
251
|
+
const raw = args.values[index];
|
|
252
|
+
if (!LIMIT_NAME.test(param.name) || param.type.trim() !== "Uint256")
|
|
253
|
+
return;
|
|
254
|
+
if (typeof raw === "string" && /^(\d+|0x[0-9a-fA-F]+)n?$/.test(raw)) {
|
|
255
|
+
values.push([param.name, BigInt(raw.replace(/n$/, ""))]);
|
|
256
|
+
}
|
|
257
|
+
else if (typeof raw === "number" && Number.isSafeInteger(raw)) {
|
|
258
|
+
values.push([param.name, BigInt(raw)]);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
return values.flatMap(([name, value]) => {
|
|
263
|
+
if (value === 0n || (value > MIN_SQRT_PRICE_X96 && value < MAX_SQRT_PRICE_X96))
|
|
264
|
+
return [];
|
|
265
|
+
const where = value === MIN_SQRT_PRICE_X96
|
|
266
|
+
? "is MIN_SQRT_RATIO"
|
|
267
|
+
: value === MAX_SQRT_PRICE_X96
|
|
268
|
+
? "is MAX_SQRT_RATIO"
|
|
269
|
+
: value < MIN_SQRT_PRICE_X96
|
|
270
|
+
? "is below MIN_SQRT_RATIO"
|
|
271
|
+
: "is past MAX_SQRT_RATIO";
|
|
272
|
+
return [
|
|
273
|
+
`${name} = ${value} ${where}: a V3-style pool takes a price limit strictly between ` +
|
|
274
|
+
`${MIN_SQRT_PRICE_X96} and ${MAX_SQRT_PRICE_X96}, and reverts "SPL" at or past either. ` +
|
|
275
|
+
"0 is no limit; `sauce price` gives the limit for a price",
|
|
276
|
+
];
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* The program with its encoded arguments appended: the `program` a cook runs. `adapt` sees the
|
|
281
|
+
* values first (on Solana it turns a public key into the word the engine reads).
|
|
282
|
+
*/
|
|
283
|
+
export function payloadOf(program, args, adapt) {
|
|
284
|
+
const params = program.entryParams;
|
|
285
|
+
if (args === undefined) {
|
|
286
|
+
if (params.length > 0) {
|
|
287
|
+
throw new UsageError(`${signatureOf(params)} takes ${params.length} argument${params.length === 1 ? "" : "s"}: ` +
|
|
288
|
+
"pass them after --args, in order, or as --args-json");
|
|
289
|
+
}
|
|
290
|
+
return bytesToHex(program.bytecode);
|
|
291
|
+
}
|
|
292
|
+
let encoded;
|
|
293
|
+
try {
|
|
294
|
+
const values = argumentValues(params, args);
|
|
295
|
+
const adapted = adapt === undefined ? { program, values } : adapt(program, values);
|
|
296
|
+
encoded = encodeEntryArguments(adapted.program, adapted.values);
|
|
297
|
+
}
|
|
298
|
+
catch (error) {
|
|
299
|
+
if (error instanceof UsageError)
|
|
300
|
+
throw error;
|
|
301
|
+
throw new UsageError(`${args.from}: ${error.message}`);
|
|
302
|
+
}
|
|
303
|
+
return `${bytesToHex(program.bytecode)}${bytesToHex(encoded).slice(2)}`;
|
|
304
|
+
}
|
|
305
|
+
/** Compiles the file and builds the cook on its Pot — what `tx`, `simulate` and `run` all send. */
|
|
306
|
+
export function cookOf(input, files) {
|
|
307
|
+
if (input.chain.kind !== "evm") {
|
|
308
|
+
throw new Error(`internal: ${input.chain.slug}'s cook is built by solana.ts`);
|
|
309
|
+
}
|
|
310
|
+
refusePastDeadline(input);
|
|
311
|
+
const target = input.target;
|
|
312
|
+
const pot = "pot" in target ? target.pot : v12PredictPot(target.owner, target.salt);
|
|
313
|
+
const engine = getAddress(v12EngineAddress());
|
|
314
|
+
const program = compileProgram(input, files);
|
|
315
|
+
// The cook `compileSauceRoute` would build, over the program with its arguments appended — the
|
|
316
|
+
// way the SDK's own intent children carry theirs.
|
|
317
|
+
const data = buildSauceEvmCall({ pot, engine, program: payloadOf(program, input.args) }).data;
|
|
318
|
+
return { pot, engine, data, program };
|
|
319
|
+
}
|
|
320
|
+
/** The `sauce pot` that deploys `target`'s Pot. */
|
|
321
|
+
function deployHint(chain, target) {
|
|
322
|
+
// Any account may send the deployment; the hint names the owner, whose Pot it is.
|
|
323
|
+
return "owner" in target
|
|
324
|
+
? `sauce pot --deploy --owner ${target.owner} --chain ${chain.slug}${target.flag === undefined ? "" : ` ${target.flag}`} --keystore <keystore>`
|
|
325
|
+
: `sauce pot --deploy --chain ${chain.slug} --keystore <its owner's keystore>`;
|
|
326
|
+
}
|
|
327
|
+
/** The cook's value: as given, or the Kitchen's fee — refusing a given one below the fee. */
|
|
328
|
+
export function valueOf(given, fee, chain) {
|
|
329
|
+
if (given !== undefined && fee !== undefined && given < fee) {
|
|
330
|
+
throw new CliError(`--value ${given} is below the Kitchen's execution fee on ${chain.slug}, ${fee} wei: the ` +
|
|
331
|
+
"cook would revert with FeeNotPaid");
|
|
332
|
+
}
|
|
333
|
+
const value = given ?? fee;
|
|
334
|
+
if (value === undefined) {
|
|
335
|
+
throw new UsageError("missing --value <wei>: the cook pays the Kitchen's execution fee plus any native the " +
|
|
336
|
+
"program spends. Pass it, or an RPC endpoint (--rpc-url or --config) to read the fee.");
|
|
337
|
+
}
|
|
338
|
+
return value;
|
|
339
|
+
}
|
|
340
|
+
/** `sauce tx`: the unsigned cook transaction, for any wallet to sign. */
|
|
341
|
+
export async function txCommand(input, files) {
|
|
342
|
+
if (input.value === undefined && input.rpcUrl === undefined)
|
|
343
|
+
valueOf(undefined, undefined, input.chain);
|
|
344
|
+
const cook = cookOf(input, files);
|
|
345
|
+
requireSupported("building the cook transaction", [
|
|
346
|
+
input.chain,
|
|
347
|
+
...intentDestinations(cook.program.intents),
|
|
348
|
+
]);
|
|
349
|
+
const client = input.rpcUrl === undefined ? undefined : await connect(input.rpcUrl, input.chain);
|
|
350
|
+
const fee = client === undefined ? undefined : await kitchenFee(client, input.chain);
|
|
351
|
+
const state = client === undefined ? undefined : await potState(client, cook.pot);
|
|
352
|
+
const value = valueOf(input.value, fee, input.chain);
|
|
353
|
+
const target = input.target;
|
|
354
|
+
const owner = state?.owner ?? ("owner" in target ? target.owner : undefined);
|
|
355
|
+
const notes = [
|
|
356
|
+
"owner" in target
|
|
357
|
+
? `Pot ${cook.pot} belongs to ${target.owner} (salt ${target.salt}).`
|
|
358
|
+
: `Pot ${cook.pot}.`,
|
|
359
|
+
state === undefined
|
|
360
|
+
? `It must be deployed (${deployHint(input.chain, target)}) and funded with what the ` +
|
|
361
|
+
"program spends; pass an RPC endpoint to check."
|
|
362
|
+
: state.deployed
|
|
363
|
+
? "It is deployed. Fund it with what the program spends."
|
|
364
|
+
: `It is NOT deployed. Deploy it first (${deployHint(input.chain, target)}), then fund it.`,
|
|
365
|
+
`Send from ${owner ?? "the Pot's owner"}: cook() is onlyOwner.`,
|
|
366
|
+
];
|
|
367
|
+
const json = { chainId: input.chain.id, to: cook.pot, data: cook.data, value: value.toString() };
|
|
368
|
+
return {
|
|
369
|
+
text: JSON.stringify(json, null, 2),
|
|
370
|
+
json,
|
|
371
|
+
cast: castSend(cook.pot, cook.data, value),
|
|
372
|
+
notes,
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
const sentText = (what, sent) => `${what} ${sent.hash}: ${sent.status}, gas used ${sent.gasUsed}, block ${sent.blockNumber}` +
|
|
376
|
+
(sent.reason === undefined ? "" : `, reverted: ${sent.reason}`);
|
|
377
|
+
const sentJson = (sent) => ({
|
|
378
|
+
hash: sent.hash,
|
|
379
|
+
status: sent.status,
|
|
380
|
+
gasUsed: sent.gasUsed.toString(),
|
|
381
|
+
blockNumber: sent.blockNumber.toString(),
|
|
382
|
+
...(sent.reason === undefined ? {} : { reason: sent.reason }),
|
|
383
|
+
});
|
|
384
|
+
/**
|
|
385
|
+
* Refuses a run that needs approvals with no terminal to ask on, before anything is sent: naming
|
|
386
|
+
* every action it would need approved, and how to approve them.
|
|
387
|
+
*/
|
|
388
|
+
export function unapproved(actions) {
|
|
389
|
+
return new CliError(`nothing was sent: this run needs ${actions.length === 1 ? "an approval" : "approvals"}, and ` +
|
|
390
|
+
"there is no terminal to ask on:\n" +
|
|
391
|
+
actions.map((action) => ` ${action}\n`).join("") +
|
|
392
|
+
"Pass --auto-approve to approve them (and --password-file with a keystore).");
|
|
393
|
+
}
|
|
394
|
+
/** `sauce run`: compile, sign, send and wait — deploying the Pot first once it is agreed to. */
|
|
395
|
+
export async function runCommand(input, files) {
|
|
396
|
+
const signer = input.account.address;
|
|
397
|
+
const target = input.target;
|
|
398
|
+
if ("owner" in target && getAddress(target.owner) !== signer) {
|
|
399
|
+
throw new UsageError(`--owner ${target.owner} is not the signer, ${signer}: cook() is onlyOwner, so the Pot a ` +
|
|
400
|
+
"run cooks on must be the signer's. Leave --owner out to use the signer's own.");
|
|
401
|
+
}
|
|
402
|
+
const cook = cookOf(input, files);
|
|
403
|
+
requireSupported("sending the cook", [input.chain, ...intentDestinations(cook.program.intents)]);
|
|
404
|
+
const client = await connect(input.rpcUrl, input.chain);
|
|
405
|
+
const state = await potState(client, cook.pot);
|
|
406
|
+
const deployAction = `deploy Pot ${cook.pot}`;
|
|
407
|
+
// With no one to ask, every approval the run would need is named before anything is sent.
|
|
408
|
+
if (!input.approver.auto && !input.approver.canAsk) {
|
|
409
|
+
const needs = [
|
|
410
|
+
...(!state.deployed && "owner" in target ? [deployAction] : []),
|
|
411
|
+
...(input.fund === undefined
|
|
412
|
+
? []
|
|
413
|
+
: ((await input.fund(client, cook.pot, signer, true)).needs ?? [])),
|
|
414
|
+
];
|
|
415
|
+
if (needs.length > 0)
|
|
416
|
+
throw unapproved(needs);
|
|
417
|
+
}
|
|
418
|
+
let deployed;
|
|
419
|
+
if (!state.deployed) {
|
|
420
|
+
const missing = `Pot ${cook.pot} is not deployed on ${input.chain.slug}`;
|
|
421
|
+
if (!("owner" in target)) {
|
|
422
|
+
throw new CliError(`${missing}. Deploy it first: ${deployHint(input.chain, target)}`);
|
|
423
|
+
}
|
|
424
|
+
const agreed = await input.approver.approve(deployAction, `Pot ${cook.pot} (owner ${target.owner}, salt ${target.salt}) is not deployed on ` +
|
|
425
|
+
`${input.chain.slug}. Deploy it now? [y/N] `);
|
|
426
|
+
if (agreed !== true) {
|
|
427
|
+
throw new CliError(agreed === undefined
|
|
428
|
+
? `${missing}. Deploy it first (${deployHint(input.chain, target)}), or pass ` +
|
|
429
|
+
"--auto-approve to deploy it before the cook"
|
|
430
|
+
: `${missing}, so nothing was sent. Deploy it with: ${deployHint(input.chain, target)}`);
|
|
431
|
+
}
|
|
432
|
+
const deploy = sauceEvmDeployPotCall({
|
|
433
|
+
kitchen: kitchenAddress(),
|
|
434
|
+
owner: target.owner,
|
|
435
|
+
salt: target.salt,
|
|
436
|
+
});
|
|
437
|
+
deployed = await sendAndWait(client, input.rpcUrl, input.account, {
|
|
438
|
+
to: kitchenAddress(),
|
|
439
|
+
data: deploy.data,
|
|
440
|
+
value: 0n,
|
|
441
|
+
});
|
|
442
|
+
if (deployed.status !== "success") {
|
|
443
|
+
throw new CliError(`${sentText("deploying the Pot", deployed)}; the Pot is not there`);
|
|
444
|
+
}
|
|
445
|
+
// The cook is rehearsed next: on an endpoint behind the deployment it would "succeed" on an
|
|
446
|
+
// address with no code, so wait until the endpoint shows the Pot.
|
|
447
|
+
await awaitPot(client, cook.pot, deployed.blockNumber);
|
|
448
|
+
}
|
|
449
|
+
else if (state.owner !== signer) {
|
|
450
|
+
throw new CliError(`Pot ${cook.pot} belongs to ${state.owner}, not the signer ${signer}: cook() is onlyOwner`);
|
|
451
|
+
}
|
|
452
|
+
// Funding, once the Pot is there: approvals and transfers it needs first, the signatures the pulls
|
|
453
|
+
// carry, and the program wrapped to pull, run and sweep.
|
|
454
|
+
const funding = input.fund === undefined ? undefined : await input.fund(client, cook.pot, signer);
|
|
455
|
+
const funded = funding === undefined ? cook : cookOf({ ...input, text: funding.wrap(input.text) }, files);
|
|
456
|
+
const value = valueOf(input.value, await kitchenFee(client, input.chain), input.chain) +
|
|
457
|
+
(funding?.value ?? 0n);
|
|
458
|
+
const request = { to: cook.pot, data: funded.data, value };
|
|
459
|
+
const sent = await sendAndWait(client, input.rpcUrl, input.account, request);
|
|
460
|
+
const stored = input.onSent === undefined ? [] : await input.onSent(sent);
|
|
461
|
+
const notes = [...(funding?.notes ?? []), ...stored];
|
|
462
|
+
// What the cook cost, and what it moved, from its receipt.
|
|
463
|
+
const cost = sent.receipt === undefined ? undefined : costOf(sent.receipt, value);
|
|
464
|
+
const effects = sent.receipt === undefined || sent.status !== "success"
|
|
465
|
+
? undefined
|
|
466
|
+
: receiptReport(await receiptEffects(client, input.chain, sent.receipt, [
|
|
467
|
+
[signer, "you"],
|
|
468
|
+
[cook.pot, "the Pot"],
|
|
469
|
+
]));
|
|
470
|
+
return {
|
|
471
|
+
text: [
|
|
472
|
+
...(deployed === undefined ? [] : [sentText(`deployed Pot ${cook.pot} in`, deployed)]),
|
|
473
|
+
...(funding?.sent ?? []).map((step) => sentText(step.what, step.sent)),
|
|
474
|
+
sentText("cook", sent),
|
|
475
|
+
...(cost === undefined
|
|
476
|
+
? []
|
|
477
|
+
: [costLine(cost, input.chain, "the Kitchen's fee and any native the program spends")]),
|
|
478
|
+
...(effects?.lines ?? []),
|
|
479
|
+
].join("\n"),
|
|
480
|
+
json: {
|
|
481
|
+
chain: input.chain.slug,
|
|
482
|
+
from: signer,
|
|
483
|
+
pot: cook.pot,
|
|
484
|
+
value: value.toString(),
|
|
485
|
+
...(deployed === undefined ? {} : { deployPot: sentJson(deployed) }),
|
|
486
|
+
...(funding === undefined
|
|
487
|
+
? {}
|
|
488
|
+
: { funding: funding.sent.map((step) => ({ what: step.what, ...sentJson(step.sent) })) }),
|
|
489
|
+
cook: {
|
|
490
|
+
...sentJson(sent),
|
|
491
|
+
...(cost === undefined ? {} : { cost: costJson(cost) }),
|
|
492
|
+
...(effects === undefined ? {} : { effects: effects.json }),
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
...(notes.length === 0 ? {} : { notes }),
|
|
496
|
+
...(sent.status === "success" ? {} : { exitCode: 1 }),
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
/** What refuses the Pot's deployment on a preview chain: `sauce pot` predicts it there, and no more. */
|
|
500
|
+
const POT_DEPLOYMENT = "building the Pot's deployment";
|
|
501
|
+
/**
|
|
502
|
+
* `sauce pot`: the Pot an owner and salt give, and the unsigned Kitchen call that deploys it. On a
|
|
503
|
+
* preview chain only the prediction: the deployment is left out, and `refused` says why.
|
|
504
|
+
*/
|
|
505
|
+
export function potCommand(input) {
|
|
506
|
+
if (input.chain.kind !== "evm") {
|
|
507
|
+
throw new Error(`internal: ${input.chain.slug}'s Pot is predicted by solana.ts`);
|
|
508
|
+
}
|
|
509
|
+
const kitchen = kitchenAddress();
|
|
510
|
+
const pot = v12PredictPot(input.owner, input.salt);
|
|
511
|
+
const predicted = { chainId: input.chain.id, pot, owner: input.owner, salt: input.salt, kitchen };
|
|
512
|
+
const refused = previewRefusal(POT_DEPLOYMENT, [input.chain]);
|
|
513
|
+
if (refused !== undefined) {
|
|
514
|
+
const json = { ...predicted, refused };
|
|
515
|
+
return { text: JSON.stringify(json, null, 2), json, notes: [refused.message] };
|
|
516
|
+
}
|
|
517
|
+
const call = sauceEvmDeployPotCall({ kitchen, owner: input.owner, salt: input.salt });
|
|
518
|
+
const json = { ...predicted, to: kitchen, data: call.data, value: "0" };
|
|
519
|
+
return {
|
|
520
|
+
text: JSON.stringify(json, null, 2),
|
|
521
|
+
json,
|
|
522
|
+
cast: castSend(kitchen, call.data),
|
|
523
|
+
notes: [
|
|
524
|
+
`This is Kitchen.deployPot on the released Kitchen. Any account may send it: the Pot is ` +
|
|
525
|
+
`${input.owner}'s either way, and it deploys once.`,
|
|
526
|
+
],
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
/** What `sauce pot` reads off a chain: the released engine and Kitchen, and the Pot. */
|
|
530
|
+
function deploymentLines(chain, released, pot, state) {
|
|
531
|
+
const there = (deployed) => (deployed ? "deployed" : "NOT deployed");
|
|
532
|
+
const { engine, kitchen } = released;
|
|
533
|
+
return {
|
|
534
|
+
json: {
|
|
535
|
+
engine: { address: engine.address, deployed: engine.deployed },
|
|
536
|
+
kitchen: {
|
|
537
|
+
address: kitchen.address,
|
|
538
|
+
deployed: kitchen.deployed,
|
|
539
|
+
...(kitchen.executionFee === undefined
|
|
540
|
+
? {}
|
|
541
|
+
: { executionFee: kitchen.executionFee.toString() }),
|
|
542
|
+
},
|
|
543
|
+
pot: {
|
|
544
|
+
address: pot,
|
|
545
|
+
deployed: state.deployed,
|
|
546
|
+
...(state.owner === undefined ? {} : { owner: state.owner }),
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
notes: [
|
|
550
|
+
`On ${chain.slug}: the engine ${engine.address} is ${there(engine.deployed)}; the Kitchen ` +
|
|
551
|
+
`${kitchen.address} is ${there(kitchen.deployed)}` +
|
|
552
|
+
(kitchen.executionFee === undefined
|
|
553
|
+
? ""
|
|
554
|
+
: `, its execution fee ${kitchen.executionFee} wei`) +
|
|
555
|
+
`; the Pot ${pot} is ${there(state.deployed)}` +
|
|
556
|
+
(state.owner === undefined ? "." : `, owned by ${state.owner}.`),
|
|
557
|
+
...(kitchen.deployed
|
|
558
|
+
? []
|
|
559
|
+
: [
|
|
560
|
+
`The released Kitchen has no code on ${chain.slug}: no Pot can be deployed there, and no ` +
|
|
561
|
+
"cook runs.",
|
|
562
|
+
]),
|
|
563
|
+
...(engine.deployed || !kitchen.deployed
|
|
564
|
+
? []
|
|
565
|
+
: [
|
|
566
|
+
`The released engine has no code on ${chain.slug}: a cook there has nothing to run on.`,
|
|
567
|
+
]),
|
|
568
|
+
],
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
/** `sauce pot` with an endpoint: the prediction, and what is deployed on the chain. */
|
|
572
|
+
export async function potStatusCommand(input) {
|
|
573
|
+
const predicted = potCommand(input);
|
|
574
|
+
const pot = predicted.json.pot;
|
|
575
|
+
const client = await connect(input.rpcUrl, input.chain);
|
|
576
|
+
const [released, state] = await Promise.all([releasedContracts(client), potState(client, pot)]);
|
|
577
|
+
const deployment = deploymentLines(input.chain, released, pot, state);
|
|
578
|
+
const json = { ...predicted.json, deployment: deployment.json };
|
|
579
|
+
return {
|
|
580
|
+
text: JSON.stringify(json, null, 2),
|
|
581
|
+
json,
|
|
582
|
+
...(predicted.cast === undefined ? {} : { cast: predicted.cast }),
|
|
583
|
+
notes: [
|
|
584
|
+
...deployment.notes,
|
|
585
|
+
...(state.deployed && predicted.cast !== undefined ? [] : (predicted.notes ?? [])),
|
|
586
|
+
],
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
/** `sauce pot --deploy`: sends the Kitchen call, unless the Pot is already there. */
|
|
590
|
+
export async function potDeployCommand(input) {
|
|
591
|
+
requireSupported("deploying a Pot", [input.chain]);
|
|
592
|
+
const predicted = potCommand(input);
|
|
593
|
+
const pot = predicted.json.pot;
|
|
594
|
+
const client = await connect(input.rpcUrl, input.chain);
|
|
595
|
+
const released = await releasedContracts(client);
|
|
596
|
+
// A deployPot sent to an address with no code "succeeds" and deploys nothing.
|
|
597
|
+
if (!released.kitchen.deployed) {
|
|
598
|
+
throw new CliError(`the released Kitchen ${released.kitchen.address} has no code on ${input.chain.slug}: no Pot ` +
|
|
599
|
+
"can be deployed there, so nothing was sent");
|
|
600
|
+
}
|
|
601
|
+
const state = await potState(client, pot);
|
|
602
|
+
if (state.deployed) {
|
|
603
|
+
const json = { ...predicted.json, deployed: true, owner: state.owner };
|
|
604
|
+
const note = `Pot ${pot} is already deployed on ${input.chain.slug}, owned by ${state.owner}.`;
|
|
605
|
+
return { text: JSON.stringify(json, null, 2), json, notes: [note] };
|
|
606
|
+
}
|
|
607
|
+
const sent = await sendAndWait(client, input.rpcUrl, input.account, {
|
|
608
|
+
to: predicted.json.to,
|
|
609
|
+
data: predicted.json.data,
|
|
610
|
+
value: 0n,
|
|
611
|
+
});
|
|
612
|
+
// Deployed means the endpoint shows its code, not only that a receipt said success.
|
|
613
|
+
if (sent.status === "success")
|
|
614
|
+
await awaitPot(client, pot, sent.blockNumber);
|
|
615
|
+
const sender = input.account.address;
|
|
616
|
+
const json = {
|
|
617
|
+
...predicted.json,
|
|
618
|
+
deployed: sent.status === "success",
|
|
619
|
+
sender,
|
|
620
|
+
deployPot: sentJson(sent),
|
|
621
|
+
};
|
|
622
|
+
return {
|
|
623
|
+
text: JSON.stringify(json, null, 2),
|
|
624
|
+
json,
|
|
625
|
+
notes: [
|
|
626
|
+
sentText(`deployed Pot ${pot} in`, sent),
|
|
627
|
+
...(getAddress(input.owner) === sender
|
|
628
|
+
? []
|
|
629
|
+
: [
|
|
630
|
+
`The Pot is ${input.owner}'s: ${sender} sent and paid for the deployment, and has no ` +
|
|
631
|
+
"control over it.",
|
|
632
|
+
]),
|
|
633
|
+
],
|
|
634
|
+
...(sent.status === "success" ? {} : { exitCode: 1 }),
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
//# sourceMappingURL=commands.js.map
|