Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs: document ThreeWSFactory CREATE2 deployer on BSC

nirholasbc5f6c99f86d
diff --git a/contracts/DEPLOYMENTS.md b/contracts/DEPLOYMENTS.md
index afacf818f..27740f2c0 100644
--- a/contracts/DEPLOYMENTS.md
+++ b/contracts/DEPLOYMENTS.md
@@ -27,6 +27,22 @@ Avalanche Fuji (43113)
| ReputationRegistry | `0x8004B663056A597Dffe9eCcC1965A193B7388713` | TODO: fill after deployment |
| ValidationRegistry | `0x8004Cb1BF31DAf7788923b405b754f57acEB4272` | TODO: fill after deployment |
+## CREATE2 Factory (ThreeWSFactory)
+
+Custom vanity-prefixed CREATE2 deployer used to obtain matching addresses across chains.
+
+| Chain | Address | Deployer EOA | Deployed |
+| ----- | -------------------------------------------- | ----------------------------- | ---------- |
+| BSC (56) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` | 2026-05-11 |
+
+- Source: `ThreeWSFactory.sol`, solc v0.8.35, optimizer 200 runs, MIT, verified on BscScan.
+- ABI:
+ - `deploy(bytes32 salt, bytes initCode) → address` — wraps `CREATE2(0, initCode, salt)`, reverts `"create2 failed"` on zero address.
+ - `predict(bytes32 salt, bytes32 initCodeHash) → address` (view).
+ - Event: `Deployed(address indexed addr, bytes32 indexed salt)`.
+- Vanity 8-byte zero prefix (`0x00000000…`) saves calldata gas on every `deploy`/`predict` call.
+- Not yet deployed on other chains — replicate via the same EOA + nonce to keep the address.
+
## Notes
- Addresses are authoritative in [`src/erc8004/abi.js`](../src/erc8004/abi.js) (`REGISTRY_DEPLOYMENTS`).
diff --git a/docs/smart-contracts.md b/docs/smart-contracts.md
index 8ae16df73..4f7bc7300 100644
--- a/docs/smart-contracts.md
+++ b/docs/smart-contracts.md
@@ -45,6 +45,24 @@ const { identityRegistry, reputationRegistry, validationRegistry } =
REGISTRY_DEPLOYMENTS[chainId];
```
+### CREATE2 Factory — ThreeWSFactory
+
+Vanity-prefixed CREATE2 deployer used to obtain matching addresses across chains.
+
+| Chain | Address | Deployer EOA |
+|---|---|---|
+| BSC (56) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` |
+
+The 8-byte zero prefix (`0x00000000…`) saves calldata gas on every call. Source is `ThreeWSFactory.sol` (solc 0.8.35, optimizer 200 runs, MIT, verified on BscScan).
+
+```solidity
+function deploy(bytes32 salt, bytes initCode) external returns (address);
+function predict(bytes32 salt, bytes32 initCodeHash) external view returns (address);
+event Deployed(address indexed addr, bytes32 indexed salt);
+```
+
+`deploy` wraps `CREATE2(0, initCode, salt)` and reverts `"create2 failed"` if the resulting address is zero. To replicate the factory's address on another chain, send the same creation tx from the same EOA at the same nonce.
+
---
## IdentityRegistry
diff --git a/public/docs/smart-contracts.md b/public/docs/smart-contracts.md
index 8ae16df73..4f7bc7300 100644
--- a/public/docs/smart-contracts.md
+++ b/public/docs/smart-contracts.md
@@ -45,6 +45,24 @@ const { identityRegistry, reputationRegistry, validationRegistry } =
REGISTRY_DEPLOYMENTS[chainId];
```
+### CREATE2 Factory — ThreeWSFactory
+
+Vanity-prefixed CREATE2 deployer used to obtain matching addresses across chains.
+
+| Chain | Address | Deployer EOA |
+|---|---|---|
+| BSC (56) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` |
+
+The 8-byte zero prefix (`0x00000000…`) saves calldata gas on every call. Source is `ThreeWSFactory.sol` (solc 0.8.35, optimizer 200 runs, MIT, verified on BscScan).
+
+```solidity
+function deploy(bytes32 salt, bytes initCode) external returns (address);
+function predict(bytes32 salt, bytes32 initCodeHash) external view returns (address);
+event Deployed(address indexed addr, bytes32 indexed salt);
+```
+
+`deploy` wraps `CREATE2(0, initCode, salt)` and reverts `"create2 failed"` if the resulting address is zero. To replicate the factory's address on another chain, send the same creation tx from the same EOA at the same nonce.
+
---
## IdentityRegistry