{"_id":"@0xintuition/periphery","name":"@0xintuition/periphery","dist-tags":{"alpha":"0.1.0-alpha.0","latest":"0.1.0-alpha.0"},"versions":{"0.1.0-alpha.0":{"name":"@0xintuition/periphery","version":"0.1.0-alpha.0","description":"Intuition periphery contract ABIs and bridge helper utilities","private":false,"license":"MIT","type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"keywords":["intuition","periphery","bridge","viem"],"repository":{"type":"git","url":"git+https://github.com/0xIntuition/packages.git","directory":"packages/periphery"},"bugs":{"url":"https://github.com/0xIntuition/packages/issues"},"homepage":"https://github.com/0xIntuition/packages/tree/main/packages/periphery#readme","publishConfig":{"access":"public","tag":"alpha"},"scripts":{"build":"node ../../scripts/clean-dist.mjs && tsc -p tsconfig.build.json && node ../../scripts/normalize-dist-imports.mjs","clean":"git clean -xdf .cache .turbo dist node_modules","dev":"tsc --watch","pack:dry-run":"bun run build && npm pack --ignore-scripts --dry-run --json","pack:release":"bun run build && node ../../scripts/pack-release.mjs","prepack":"bun run build","prepublishOnly":"bun run build && node ../../scripts/guard-direct-publish.mjs","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","ci":"biome check","lint":"biome lint","format":"biome format","check":"biome check","lint:write":"biome lint --write","format:write":"biome format --write","check:write":"biome check --write","check:unsafe:write":"biome check --write --unsafe"},"dependencies":{"@0xintuition/deployments":"0.1.0-alpha.0"},"peerDependencies":{"viem":"^2.0.0"},"devDependencies":{"typescript":"^5.9.3","vitest":"^4.0.16","viem":"^2.31.4"},"_id":"@0xintuition/periphery@0.1.0-alpha.0","gitHead":"ddc3489f8fe6d70b089adb37f26b030be763538f","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-q22/pkLsGfvre/J9cBHV0TsYoyJnkZABMcDU831cXEZSAwJKRIgXM3H9UC3sA1aVaGJDtETB02pVNLUqhfIG+g==","shasum":"f3dde91c592b8c2bd67ab5abeb7c33bb51167cb0","tarball":"https://registry.npmjs.org/@0xintuition/periphery/-/periphery-0.1.0-alpha.0.tgz","fileCount":111,"unpackedSize":505498,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHt6jEhWWkc+IBGjIUcKER/AykzFtRrT7VycnetLbqMMAiBKeTlVLWp5VZY3+OFvA8iW17JevvgDJelNOiki0/B7Ag=="}]},"_npmUser":{"name":"jpbuilds","email":"jp@intuition.systems"},"directories":{},"maintainers":[{"name":"orbro","email":"wluedtke207@gmail.com"},{"name":"jojikun","email":"jojikun@intuition.systems"},{"name":"jpbuilds","email":"jp@intuition.systems"},{"name":"vitalsine","email":"vital@intuition.systems"},{"name":"intuition_kames","email":"kames@intuition.systems"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/periphery_0.1.0-alpha.0_1781558362167_0.5222349680445235"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-15T21:19:22.043Z","0.1.0-alpha.0":"2026-06-15T21:19:22.353Z","modified":"2026-06-15T21:19:22.681Z"},"maintainers":[{"name":"orbro","email":"wluedtke207@gmail.com"},{"name":"jojikun","email":"jojikun@intuition.systems"},{"name":"jpbuilds","email":"jp@intuition.systems"},{"name":"vitalsine","email":"vital@intuition.systems"},{"name":"intuition_kames","email":"kames@intuition.systems"}],"description":"Intuition periphery contract ABIs and bridge helper utilities","homepage":"https://github.com/0xIntuition/packages/tree/main/packages/periphery#readme","keywords":["intuition","periphery","bridge","viem"],"repository":{"type":"git","url":"git+https://github.com/0xIntuition/packages.git","directory":"packages/periphery"},"bugs":{"url":"https://github.com/0xIntuition/packages/issues"},"license":"MIT","readme":"# @0xintuition/periphery\n\nTypeScript helpers for Intuition periphery contracts, currently focused on `TrustSwapAndBridgeRouter` and direct meta-bridge wrappers.\n\nAlpha status: publish under the alpha dist-tag after review. Periphery bridge/router addresses stay in this package; shared Intuition chain IDs come from `@0xintuition/deployments`.\n\nRuntime: ESM-only. This package does not publish CommonJS `require` entrypoints.\n\n## Install\n\n```bash\nbun add @0xintuition/periphery@alpha @0xintuition/deployments@alpha viem\n```\n\nPeer dependency: `viem ^2.0.0`. Release smoke tests install `viem@2.31.4`.\n\n## Scope\n\n- Deployment helpers for published Intuition periphery contracts.\n- Calldata encoders and client wrappers for `TrustSwapAndBridgeRouter`.\n- Direct bridge helpers for `MetaERC20Hub`, `MetaERC20Spoke`, and `MetaNativeSpoke`.\n- Base bridge asset address helpers for `USDC` and `WETH` approval flows.\n\nCurrent deployments are mainnet-oriented:\n\n- Base mainnet for `TrustSwapAndBridgeRouter` and `MetaERC20Hub`.\n- Intuition mainnet for `MetaERC20Spoke` and `MetaNativeSpoke`.\n- Base mainnet bridge asset addresses for `USDC` and `WETH`.\n\n## Usage\n\n```ts\nimport { getTrustSwapAndBridgeRouterAddressFromChainId } from '@0xintuition/periphery'\nimport { base } from 'viem/chains'\n\nconst routerAddress = getTrustSwapAndBridgeRouterAddressFromChainId(base.id)\n```\n\n`WrappedTrust`, `MultiVault`, and other core protocol deployment addresses resolve from `@0xintuition/deployments`, not this package.\n","readmeFilename":"README.md","_rev":"1-83de517b129938d8cf6b4d55c56248af"}