{"_id":"@dome-foundation/sdk-evm","_rev":"2-d932166e09c054703c9be769d2a4eb83","name":"@dome-foundation/sdk-evm","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dome-foundation/sdk-evm","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@dome-foundation/sdk-evm@1.0.0","maintainers":[{"name":"domefoundation","email":"hello@getdome.app"}],"homepage":"https://github.com/Dome-Foundation/dome-sdk-evm#readme","bugs":{"url":"https://github.com/Dome-Foundation/dome-sdk-evm/issues"},"dist":{"shasum":"009d76548380f1592f2b7de5e77f2e4c9046ea8b","tarball":"https://registry.npmjs.org/@dome-foundation/sdk-evm/-/sdk-evm-1.0.0.tgz","fileCount":48,"integrity":"sha512-A9mIqDPG0Yx0atP178sjyOdCMEQGeRF02GAUyJtQMhspJrrG0YVrvSR6Ka7JD84e3k80KEnodWNFRtOgpdUfjg==","signatures":[{"sig":"MEQCIFFro1Pl/3M42o+zY3hpCpXStsaYGeEK2dHLIhK+h297AiB7YLdxvabROH87sGEGU5hsWh30py1uONyI6Fr+/s6R7g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":190553},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"fa5dd0611a75182ae2f877fe648bb625ba5d4859","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build","typecheck":"tsc --noEmit"},"_npmUser":{"name":"domefoundation","email":"hello@getdome.app"},"repository":{"url":"git+https://github.com/Dome-Foundation/dome-sdk-evm.git","type":"git"},"_npmVersion":"10.8.2","description":"Dome EVM shielded wallet SDK","directories":{},"_nodeVersion":"20.20.2","dependencies":{"ethers":"^5.0.0","snarkjs":"^0.7.5","sqlite3":"^6.0.1","ffjavascript":"^0.2.36","poseidon-lite":"^0.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/node":"^25.3.3","@types/snarkjs":"^0.7.9"},"_npmOperationalInternal":{"tmp":"tmp/sdk-evm_1.0.0_1780524067217_0.8354380380694764","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dome-foundation/sdk-evm","version":"1.0.1","description":"Dome EVM shielded wallet SDK","repository":{"type":"git","url":"git+https://github.com/Dome-Foundation/dome-sdk-evm.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"prepare":"npm run build","build":"tsc","typecheck":"tsc --noEmit","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","type":"module","dependencies":{"ethers":"^5.0.0","ffjavascript":"^0.2.36","poseidon-lite":"^0.3.0","snarkjs":"^0.7.5","sqlite3":"^6.0.1"},"devDependencies":{"@types/node":"^25.3.3","@types/snarkjs":"^0.7.9","typescript":"^6.0.3"},"_id":"@dome-foundation/sdk-evm@1.0.1","gitHead":"f45fef43c21502bd426707fd79955bb8fc35261c","bugs":{"url":"https://github.com/Dome-Foundation/dome-sdk-evm/issues"},"homepage":"https://github.com/Dome-Foundation/dome-sdk-evm#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-6XOu0MsiOlu47MfN4l+gUnfUHSYKcQKumFjW+mt4FX0ltRFYVwXDPPU7tUH7czll7bqoYFjDvrg7f2y2tvm34A==","shasum":"b2779f59ca7bd99f7e06a322653b581a0be80650","tarball":"https://registry.npmjs.org/@dome-foundation/sdk-evm/-/sdk-evm-1.0.1.tgz","fileCount":48,"unpackedSize":190062,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDsXc8vct9U/E/TLBNsPY7BTKTBut/eugJIoXisWEiFHgIgO4XeKlxHl8QIpYct5TZMILnkQ9MzUk+BNm6XZ246CEs="}]},"_npmUser":{"name":"domefoundation","email":"hello@getdome.app"},"directories":{},"maintainers":[{"name":"domefoundation","email":"hello@getdome.app"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk-evm_1.0.1_1780524268513_0.5475835684726436"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T22:01:07.005Z","modified":"2026-06-03T22:04:28.806Z","1.0.0":"2026-06-03T22:01:07.409Z","1.0.1":"2026-06-03T22:04:28.683Z"},"bugs":{"url":"https://github.com/Dome-Foundation/dome-sdk-evm/issues"},"license":"ISC","homepage":"https://github.com/Dome-Foundation/dome-sdk-evm#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Dome-Foundation/dome-sdk-evm.git"},"description":"Dome EVM shielded wallet SDK","maintainers":[{"name":"domefoundation","email":"hello@getdome.app"}],"readme":"# @dome-foundation/sdk-evm\n\nTypeScript SDK for Dome shielded ETH/USDC flows on EVM chains using the **Dome Shielded EVM protocol**.\n\n## Install\n\nPublished package (after npm org setup):\n\n```bash\nnpm install @dome-foundation/sdk-evm\n```\n\nLocal monorepo install:\n\n```bash\nnpm install @dome-foundation/sdk-evm@file:../dome-sdk-evm\n```\n\n## Build\n\n```bash\nnpm install\nnpm run build\n```\n\n## Environment\n\nConfigure these `DOME_*` variables before running deposit/withdraw/balance:\n\n- `DOME_EVM_INDEXER_URL` — Dome indexer API (browser apps often use a same-origin proxy such as `/api/indexer`)\n- `DOME_BASE_RPC` — EVM JSON-RPC endpoint\n- `DOME_ETH_POOL_ADDRESS` — deployed shielded ETH pool proxy\n- `DOME_FEE_RECIPIENT_ADDRESS` — relayer fee recipient\n- `DOME_CHAIN_ID` — optional; target chain id\n- `DOME_USDC_POOL_ADDRESS` — optional private USDC pool\n- `DOME_USDC_TOKEN_ADDRESS` — optional USDC token address\n- `DOME_RELAYER_SECRET` — optional; forwarded on withdraw when calling the relayer directly\n- `DOME_RELAYER_WITHDRAW_URL` — optional; override relayer withdraw endpoint\n\nHost apps (Next.js, Expo, Node scripts) may use framework-specific env vars at build time and map them to these keys **before importing** the SDK. For example, `dome-mobile/src/dome/configureSdk.ts` maps Expo runtime config into `DOME_*` keys, while `dome-web` exposes same-origin API routes and passes the exported wallet app `EXPO_PUBLIC_*` values during build.\n\nCircuit proving artifacts must be served at a public `keyBasePath` (for example `/circuits/transaction` → `transaction2.wasm` / `transaction2.zkey`). Web/mobile apps usually expose this via `DOME_CIRCUIT_KEY_BASE_PATH` at the app layer.\n\n## Usage\n\n```ts\nimport {\n  deposit,\n  withdraw,\n  getBalance,\n  DOME_SIGN_IN_MESSAGE,\n} from '@dome-foundation/sdk-evm';\n```\n\nSee [`example/eth.ts`](example/eth.ts) and the [`dome-web`](https://github.com/Dome-Foundation/dome-web) wallet UI.\n","readmeFilename":"README.md"}