{"_id":"@bundie/evm-sdk","name":"@bundie/evm-sdk","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@bundie/evm-sdk","version":"0.2.0","description":"Bundie EVM SDK — prepare-only tx-building primitives for the Bundie protocol on EVM chains. Embed in agent backends, automated workflows, or wrap with @bundie/evm-cli.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./deployments":{"types":"./dist/deployments.d.ts","import":"./dist/deployments.js"},"./strategies":{"types":"./dist/strategies.d.ts","import":"./dist/strategies.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"scripts":{"build":"tsc","dev":"tsc --watch","test":"vitest run","test:watch":"vitest","prepublishOnly":"tsc"},"keywords":["bundie","evm","ethereum","scroll","base","arbitrum","defi","yield","ai-agent","sdk","prepare-only","unsigned-tx"],"homepage":"https://bundie.fi","repository":{"type":"git","url":"git+https://github.com/bundie-fi/cli.git","directory":"evm/sdk"},"bugs":{"url":"https://github.com/bundie-fi/cli/issues"},"author":{"name":"Bundie","email":"engineering@bundie.fi","url":"https://bundie.fi"},"license":"MIT","publishConfig":{"access":"public"},"dependencies":{"viem":"^2.21.0","zod":"^3.23.8"},"devDependencies":{"@types/node":"^22","typescript":"^5.5.0","vitest":"^2.1.0"},"engines":{"node":">=18.0.0"},"gitHead":"e0e97733a9225abf5b19adbc5c087960c961a004","_id":"@bundie/evm-sdk@0.2.0","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-lTGUQTu8x0cddfkU1cXfu5/yMjHVy7uTPYTpHKneKjK1xt+1NPsp2wxiRqkgjxk0+8+5DYm55t0MFTi+MpZ6jA==","shasum":"a9aea5c322a58b03f422e6251ed1041bf899ab2a","tarball":"https://registry.npmjs.org/@bundie/evm-sdk/-/evm-sdk-0.2.0.tgz","fileCount":71,"unpackedSize":159773,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFgjoUhnXUkYSoHpX8vRDPN6FImysCS8+k9kbiTCpPvAIgT0nz6Lu+GzcOPmehs8qB27QnTbZH/v/zSsAbh7prP3k="}]},"_npmUser":{"name":"bundie-eng","email":"info@bundie.fi"},"directories":{},"maintainers":[{"name":"bundie-eng","email":"info@bundie.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/evm-sdk_0.2.0_1777532227839_0.09299041488432036"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-30T06:57:07.656Z","0.2.0":"2026-04-30T06:57:07.983Z","modified":"2026-04-30T06:57:08.251Z"},"maintainers":[{"name":"bundie-eng","email":"info@bundie.fi"}],"description":"Bundie EVM SDK — prepare-only tx-building primitives for the Bundie protocol on EVM chains. Embed in agent backends, automated workflows, or wrap with @bundie/evm-cli.","homepage":"https://bundie.fi","keywords":["bundie","evm","ethereum","scroll","base","arbitrum","defi","yield","ai-agent","sdk","prepare-only","unsigned-tx"],"repository":{"type":"git","url":"git+https://github.com/bundie-fi/cli.git","directory":"evm/sdk"},"author":{"name":"Bundie","email":"engineering@bundie.fi","url":"https://bundie.fi"},"bugs":{"url":"https://github.com/bundie-fi/cli/issues"},"license":"MIT","readme":"# @bundie/evm-sdk\n\nPrepare-only TypeScript SDK for the Bundie protocol on EVM chains. Embed it in agent backends, automated workflows, or any service that needs to compose Bundie operations without an LLM in the loop.\n\n**Status:** 0.1.0 scaffold. Public API and registries are stable; calldata encoders for the write entry points are stubbed and throw \"not implemented\".\n\n## Install\n\n```bash\nnpm install @bundie/evm-sdk\n```\n\n## What you get\n\n- `DEPLOYMENTS`, `getDeployment(chainId)`, `listChains()` — typed contract address registry for every chain Bundie targets (Scroll, Base, Arbitrum, Avalanche, Optimism today).\n- `ALL_STRATEGIES`, `getStrategies(filter)`, `getStrategyBySymbol(symbol)` — the cross-chain strategy registry, sourced from the SynthOS contracts repo.\n- `PreparedTx` type — the unsigned-tx envelope every write entry point returns (`chainId`, `to`, `value`, `data`, optional gas, metadata).\n- `prepareCreateAccount`, `prepareDeposit`, `prepareWithdraw`, `prepareBridge`, `prepareApprove` — write entry points (stubbed in 0.1.0).\n\n## Example\n\n```ts\nimport { getStrategies, getDeployment, prepareDeposit } from \"@bundie/evm-sdk\";\n\n// Read state from the registry.\nconst baseStrategies = getStrategies({ sourceChain: 534352, destinationChain: 8453 });\nconst scroll = getDeployment(534352);\nconsole.log(scroll.accountManager);\n\n// Build an unsigned tx (will throw \"not implemented\" until 0.2.0).\nconst tx = await prepareDeposit({\n  chainId: 534352,\n  payer: \"0xYourEOA\",\n  strategySymbol: \"YEARN_yvUSDC-H_8453\",\n  asset: \"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4\",\n  amount: \"1000000\",\n});\n// tx is a PreparedTx envelope; sign and broadcast with viem / ethers / Privy / Safe.\n```\n\n## Design\n\nThe SDK never reads or holds a private key. Every write entry point returns a `PreparedTx`; signing is the caller's job. This keeps the SDK safe to run in any backend, CI pipeline, or multi-sig flow without granting key access.\n\nFor a CLI wrapper around this SDK, see [`@bundie/evm-cli`](../cli/README.md). For the Solana sister implementation, see [`@bundie/sol-cli`](../../solana/README.md).\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-6d3b033d8a40e3958d1e0d464a9047fd"}