Skip to main content

@0xintuition/deployments

Version: V2
View Markdown

What it's for​

The shared source of contract ABIs, deployment addresses, chain definitions, and bytecode consumed by the protocol packages. Address selection is a local lookup; it does not query or deploy a contract.

When to use it​

Use it when you need metadata without the protocol wrapper layer. Use protocol for contract operations. A configured address proves that the pinned map contains an entry, not that its live implementation has a particular capability.

Install​

npm install @0xintuition/deployments@0.1.1 viem@2.31.4

Use ESM import or CommonJS require() on Node 20+, or ESM in a compatible browser. See module-format compatibility.

Entry points​

SubpathPurpose
.Contract ABIs, address maps, chain definitions, and lookup helpers
./bytecodeSeparate contract bytecode exports

Bytecode stays off the root entry point so address and ABI consumers need not include it.

Depends on and works with​

Runtime package dependencies: none. Peer dependency: viem ^2.0.0.

Protocol, periphery, SDK, CLI, and React integrations share this metadata. Core and periphery address maps have different supported contract/chain combinations. The named Intuition chain definitions describe mainnet and testnet; Base and Base Sepolia addresses appear for applicable Base-side contracts.

Example​

Select the testnet chain and its pinned MultiVault entry without a request:

import {
getMultiVaultAddressFromChainId,
intuitionTestnet,
} from '@0xintuition/deployments';

export const target = {
chainId: intuitionTestnet.id,
address: getMultiVaultAddressFromChainId(intuitionTestnet.id),
};
console.log(target);

getContractAddressFromChainId and the named core helpers throw when neither an override nor the canonical table supplies an address. Core helpers accept optional AddressOverrides; keep overrides specific to the intended deployment. This example reports metadata only, with no claim of a live testnet receipt or current deployment validation.

ABIs and bytecode have distinct uses. Metalayer MetaERC20Hub, MetaERC20Spoke, and MetaNativeSpoke bytecode exports contain deployed runtime code, not creation code. MultiVaultBytecode contains an unresolved library link placeholder; link it with the matching contract build's references before any deployment. Do not treat every bytecode export as ready to deploy.

Protocol writes explains why an action needs both a chain and a compatible target.

Source​

Package README, lookup helpers, and contract artifact provenance.

Applies to V2 · @0xintuition/deployments 0.1.1