@0xintuition/periphery
v0.1.0-alpha.0
Published
Intuition periphery contract ABIs and bridge helper utilities
Readme
@0xintuition/periphery
TypeScript helpers for Intuition periphery contracts, currently focused on TrustSwapAndBridgeRouter and direct meta-bridge wrappers.
Alpha 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.
Runtime: ESM-only. This package does not publish CommonJS require entrypoints.
Install
bun add @0xintuition/periphery@alpha @0xintuition/deployments@alpha viemPeer dependency: viem ^2.0.0. Release smoke tests install [email protected].
Scope
- Deployment helpers for published Intuition periphery contracts.
- Calldata encoders and client wrappers for
TrustSwapAndBridgeRouter. - Direct bridge helpers for
MetaERC20Hub,MetaERC20Spoke, andMetaNativeSpoke. - Base bridge asset address helpers for
USDCandWETHapproval flows.
Current deployments are mainnet-oriented:
- Base mainnet for
TrustSwapAndBridgeRouterandMetaERC20Hub. - Intuition mainnet for
MetaERC20SpokeandMetaNativeSpoke. - Base mainnet bridge asset addresses for
USDCandWETH.
Usage
import { getTrustSwapAndBridgeRouterAddressFromChainId } from '@0xintuition/periphery'
import { base } from 'viem/chains'
const routerAddress = getTrustSwapAndBridgeRouterAddressFromChainId(base.id)WrappedTrust, MultiVault, and other core protocol deployment addresses resolve from @0xintuition/deployments, not this package.
