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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(contracts): record CREATE2 vanity grinds + multichain factory/payments deployments
nirholasc8623f1c462d
diff --git a/contracts/DEPLOYMENTS.md b/contracts/DEPLOYMENTS.mdindex c1dd85e21..fe7196bf9 100644--- a/contracts/DEPLOYMENTS.md+++ b/contracts/DEPLOYMENTS.md@@ -31,14 +31,21 @@ Avalanche Fuji (43113)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 |-| Base (8453) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` | — |-| Arbitrum (42161) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` | — |+| Chain | Address | Deployer EOA | Deployed | Tx |+| ---------------- | -------------------------------------------- | ------------------------ | ---------- | -- |+| BSC (56) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` | 2026-05-11 | — |+| Base (8453) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` | 2026-05-14 | [`0x20bbd8a8…`](https://basescan.org/tx/0x20bbd8a8f948a1d01eae17e2df919963ab92b6bcb86c326377d28d224bdb6923) |+| Arbitrum (42161) | `0x00000000D49195AE81759cd247cFeDD9D0B479df` | `0x4022de2D...C0564f402` | 2026-05-14 | [`0xa91d7cb7…`](https://arbiscan.io/tx/0xa91d7cb722fdcb1bc739b2161db7acdf911692837ec574bc9434e0eaf5be0747) |Bytecode SHA-256 `424e78aad2b19a37…` (1278 bytes) is identical on all three chains.+**Vanity salt** (deployed via Arachnid proxy `0x4e59b44847b379578588920cA78FbF26c0B4956C`, prefix `0000000`):+```+0xfc1ecd1953bb17cf798c1eaeed287873008f3a3038f438e9e74c3b33ce370ef5+```+- Factory init code hash: `0x30f9d9020bf9622bbe7f8a1625d447efe350dfafd0a91e6dbd62d56547db835f`+- Grind: 96,448,706 attempts in 101.1 s, generated 2026-05-10T11:40:46Z (lucked into 8 zeros while targeting 7)+- 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.@@ -47,6 +54,40 @@ Bytecode SHA-256 `424e78aad2b19a37…` (1278 bytes) is identical on all three ch- Vanity 8-byte zero prefix (`0x00000000…`) saves calldata gas on every `deploy`/`predict` call.- To replicate on a new chain, use the same EOA + nonce + init code so CREATE2 yields the same address.+## ThreeWSPayments (x402 pay-per-call receiver)++Deployed via `ThreeWSFactory.deploy(salt, initCode)`. Constructor takes the chain's+canonical USDC token, so each chain's init code differs → the cross-chain CREATE2+address parity that the factory itself enjoys does **not** apply here. The vanity+8-zero prefix only landed on BSC; Base and Arbitrum produced ordinary addresses+from the same salt.++**Owner:** `0x4022de2d36c334e73c7a108805cea11c0564f402` (deployer EOA)++**Vanity salt** (BSC-targeted, prefix `00000000`, case-insensitive):+```+0x5ef7540f7c609d04ab6d3997bc8c38f0f31ce09acccff2c11bcb3909ad542cde+```+- Factory / deployer: `0x00000000d49195ae81759cd247cfedd9d0b479df`+- BSC init code hash: `0xb55479df540c0e4efae39a0181051754cc236a9934f03805a743f4290178569e`+- Grind: 2,859,887,864 attempts in 22.3 s, generated 2026-05-10T13:58:54Z++| Chain | USDC | ThreeWSPayments | Tx |+| ---------------- | -------------------------------------------- | -------------------------------------------- | -- |+| BSC (56) | `0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d` | [`0x00000000381f09742a30a5a49975514AeC1B72Cc`](https://bscscan.com/address/0x00000000381f09742a30a5a49975514AeC1B72Cc) | [`0xc4f4e87f…`](https://bscscan.com/tx/0xc4f4e87f67c70044a8682ea50d59fbc04e9777f453538a6916075f5409e5b7ef) |+| Arbitrum (42161) | `0xaf88d065e77c8cC2239327C5EDb3A432268e5831` | [`0xed3696489490dbfAFD82996ADB11165A56c33c49`](https://arbiscan.io/address/0xed3696489490dbfAFD82996ADB11165A56c33c49) | [`0xca39a600…`](https://arbiscan.io/tx/0xca39a6003e8a6144662aceae43ee2b2c5107e426e16ccf58a406d66d38f34e5f) |+| Base (8453) | `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` | predicted `0x31B13cDe47431EfcC8616C8495204e6E6C2Ded34` — ⚠ tx mined success but address has no code, treat as **not deployed** | [`0xb6fcf60b…`](https://basescan.org/tx/0xb6fcf60b4ca16d25e135f91046107e78518fca9aa4f180d5110a5116bcdfe4d0) |++Base deploy must be re-run and the address re-checked before integrations point at it.++Deploy command (run from 3D-Agent repo where `scripts/deploy-multichain.mjs` lives):+```+PK=<deployer-private-key> \+PAYMENTS_SALT=0x5ef7540f7c609d04ab6d3997bc8c38f0f31ce09acccff2c11bcb3909ad542cde \+BASE_RPC_URL=... ARB_RPC_URL=... BSC_RPC_URL=... \+node scripts/deploy-multichain.mjs+```+## Notes- Addresses are authoritative in [`src/erc8004/abi.js`](../src/erc8004/abi.js) (`REGISTRY_DEPLOYMENTS`).diff --git a/contracts/vanity/README.md b/contracts/vanity/README.mdnew file mode 100644index 000000000..76664016b--- /dev/null+++ b/contracts/vanity/README.md@@ -0,0 +1,30 @@+# Vanity CREATE2 Grind Artifacts++JSON snapshots of every salt grind performed for the three.ws on-chain stack on+2026-05-10. Kept for reproducibility — any deployed address can be re-derived+from `keccak256(0xff ‖ deployer ‖ salt ‖ initCodeHash)[12:]`.++## Files++| File | initCodeHash | Status |+| ---- | ------------ | ------ |+| `factory-deployed.json` | `0x30f9d9020bf9…` | ✅ Live: `ThreeWSFactory` at `0x00000000D49195AE81759cd247cFeDD9D0B479df` (BSC, Base, Arbitrum) |+| `factory-runnerup.json` | `0x30f9d9020bf9…` | Unused — earlier 7-zero grind, superseded by the 8-zero result |+| `payments-bsc-deployed.json` | `0xb55479df540c…` | ✅ Live on BSC: `ThreeWSPayments` at `0x00000000381f09742a30a5a49975514AeC1B72Cc` (deployed via factory). Same salt produced different addresses on Arbitrum / Base because each chain's USDC token enters the init code |+| `payments-via-factory-candidate.json` | `0xad5ab625…` | Candidate — re-grind with the new factory but a build using owner `0x4022de2d…`. Not deployed |+| `payments-historical-via-arachnid.json` | `0x1673dbac…`, `0xc1c88d7d…` | Historical grinds from before `ThreeWSFactory` existed; all unused |++## Reproducing an address++```js+import { keccak_256 } from '@noble/hashes/sha3';+const factory = '4e59b44847b379578588920ca78fbf26c0b4956c'; // or ThreeWSFactory+const salt = 'fc1ecd1953bb17cf798c1eaeed287873008f3a3038f438e9e74c3b33ce370ef5';+const ich = '30f9d9020bf9622bbe7f8a1625d447efe350dfafd0a91e6dbd62d56547db835f';+const buf = Buffer.from('ff' + factory + salt + ich, 'hex');+console.log('0x' + Buffer.from(keccak_256(buf)).slice(12).toString('hex'));+// → 0x00000000d49195ae81759cd247cfedd9d0b479df+```++The grind tool is `public/eth-vanity.html` (browser, offline) — see also+`scripts/build-vanity-offline.mjs` for the standalone build target.diff --git a/contracts/vanity/factory-deployed.json b/contracts/vanity/factory-deployed.jsonnew file mode 100644index 000000000..c61ce57ce--- /dev/null+++ b/contracts/vanity/factory-deployed.json@@ -0,0 +1,13 @@+{+ "_comment": "ThreeWSFactory — deployed via Arachnid CREATE2 proxy. Active on BSC/Base/Arbitrum.",+ "address": "0x00000000d49195ae81759cd247cfedd9d0b479df",+ "addressChecksum": "0x00000000D49195AE81759cd247cFeDD9D0B479df",+ "salt": "0xfc1ecd1953bb17cf798c1eaeed287873008f3a3038f438e9e74c3b33ce370ef5",+ "deployer": "0x4e59b44847b379578588920ca78fbf26c0b4956c",+ "initCodeHash": "0x30f9d9020bf9622bbe7f8a1625d447efe350dfafd0a91e6dbd62d56547db835f",+ "pattern": { "prefix": "0000000", "suffix": null, "caseSensitive": false },+ "attempts": 96448706,+ "durationMs": 101131.4,+ "generatedAt": "2026-05-10T11:40:46.509Z",+ "status": "deployed"+}diff --git a/contracts/vanity/factory-runnerup.json b/contracts/vanity/factory-runnerup.jsonnew file mode 100644index 000000000..26bb72361--- /dev/null+++ b/contracts/vanity/factory-runnerup.json@@ -0,0 +1,13 @@+{+ "_comment": "ThreeWSFactory runner-up grind — 7 zeros, not used. Kept for reproducibility.",+ "address": "0x00000007de88d96878469099532defbfd63a3bf8",+ "addressChecksum": "0x00000007dE88D96878469099532DEFBFd63A3bF8",+ "salt": "0x4b178b0c83d02b4be78c12c3fe4479bacbe545551dc9639ed6f74c2849d245d8",+ "deployer": "0x4e59b44847b379578588920ca78fbf26c0b4956c",+ "initCodeHash": "0x30f9d9020bf9622bbe7f8a1625d447efe350dfafd0a91e6dbd62d56547db835f",+ "pattern": { "prefix": "0000000", "suffix": null, "caseSensitive": false },+ "attempts": 190953420,+ "durationMs": 216550.1,+ "generatedAt": "2026-05-10T11:29:41.772Z",+ "status": "unused"+}diff --git a/contracts/vanity/payments-bsc-deployed.json b/contracts/vanity/payments-bsc-deployed.jsonnew file mode 100644index 000000000..20bd41335--- /dev/null+++ b/contracts/vanity/payments-bsc-deployed.json@@ -0,0 +1,18 @@+{+ "_comment": "ThreeWSPayments — deployed via ThreeWSFactory on BSC. Constructor takes BSC USDC + owner.",+ "address": "0x00000000381f09742a30a5a49975514aec1b72cc",+ "addressChecksum": "0x00000000381f09742a30a5a49975514AeC1B72Cc",+ "salt": "0x5ef7540f7c609d04ab6d3997bc8c38f0f31ce09acccff2c11bcb3909ad542cde",+ "deployer": "0x00000000d49195ae81759cd247cfedd9d0b479df",+ "initCodeHash": "0xb55479df540c0e4efae39a0181051754cc236a9934f03805a743f4290178569e",+ "pattern": { "prefix": "00000000", "suffix": null, "caseSensitive": false },+ "attempts": 2859887864,+ "durationMs": 22309.5,+ "generatedAt": "2026-05-10T13:58:54.285Z",+ "status": "deployed",+ "chains": {+ "bsc": "0x00000000381f09742a30a5a49975514AeC1B72Cc",+ "arbitrum": "0xed3696489490dbfAFD82996ADB11165A56c33c49",+ "base": "0x31B13cDe47431EfcC8616C8495204e6E6C2Ded34 (tx success but bytecode missing — treat as not deployed)"+ }+}diff --git a/contracts/vanity/payments-historical-via-arachnid.json b/contracts/vanity/payments-historical-via-arachnid.jsonnew file mode 100644index 000000000..21fa427bc--- /dev/null+++ b/contracts/vanity/payments-historical-via-arachnid.json@@ -0,0 +1,72 @@+{+ "_comment": "ThreeWSPayments grinds via Arachnid CREATE2 proxy — pre-ThreeWSFactory era. None of these were ultimately used for the live deploy (which used ThreeWSFactory + initCodeHash 0xb55479df…). Kept for reproducibility and audit trail.",+ "deployer": "0x4e59b44847b379578588920ca78fbf26c0b4956c",+ "builds": [+ {+ "initCodeHash": "0x1673dbac3b8a45874c756bda6a1b378ef58076dc7c1d5ab8e901b767118cb68c",+ "_note": "Earliest build (different constructor args or pre-tweak source). Three grinds, all unused.",+ "grinds": [+ {+ "address": "0x0000000d88ce24fbf1574dcf26cac4ac57ad0e5c",+ "addressChecksum": "0x0000000D88Ce24FBF1574DCF26CAC4AC57ad0E5C",+ "salt": "0xca00008e09406a62fdad67ddcb6121ce8f25d3c0e7508e61376ce874b0bfed32",+ "pattern": { "prefix": "000000", "leadingZeros": 7 },+ "attempts": 8682292,+ "durationMs": 9922.8,+ "generatedAt": "2026-05-10T08:29:25.747Z"+ },+ {+ "address": "0x000000e4c21d6df4c544fe68faa2ed8efa77efdd",+ "addressChecksum": "0x000000E4C21D6Df4c544Fe68fAA2Ed8efA77efDD",+ "salt": "0x0d91ded90e38659692af734593f494f8319361fde43c47bb20032f66b3af9238",+ "pattern": { "prefix": "000000", "leadingZeros": 6 },+ "attempts": 6159280,+ "durationMs": 7033.2,+ "generatedAt": "2026-05-10T08:42:29.335Z"+ },+ {+ "address": "0x000000ff25f79480b406286371ce4652e0158da0",+ "addressChecksum": "0x000000Ff25f79480B406286371ce4652e0158Da0",+ "salt": "0xd696435fadda2da23793724a1b4bb82f63f65a0b6cd3296addb81389032c66e0",+ "pattern": { "prefix": "000000", "leadingZeros": 6 },+ "attempts": 20060543,+ "durationMs": 22274.8,+ "generatedAt": "2026-05-10T09:11:16.527Z"+ }+ ]+ },+ {+ "initCodeHash": "0xc1c88d7de8184b5996b36c00a98e1fb3775735742fc3beabcb0663705fbc733b",+ "_note": "Second build — corresponds to the original payments deployment at 0x4022de33fd9b8691832b8bae51f6785c69cb9b97. The four grinds below were not used for that deploy (which used a different salt).",+ "grinds": [+ {+ "address": "0x00000017f600dfeb2632ae34d2a54841c9131f34",+ "addressChecksum": "0x00000017F600dfEB2632aE34d2a54841C9131F34",+ "salt": "0xee6fa935c469d8247401718ee18a54a050403f879dc2f6aa7595752f0847be91",+ "pattern": { "prefix": "000000", "leadingZeros": 6 },+ "attempts": 9423530,+ "durationMs": 10756.9,+ "generatedAt": "2026-05-10T10:44:19.435Z"+ },+ {+ "address": "0x00000065f6655ce1aa728a881d5230ad019affab",+ "addressChecksum": "0x00000065f6655ce1aa728A881d5230Ad019afFab",+ "salt": "0xe142b6b643e3557900092b952b799870079c2f16be66a15fee160080ed12e6e3",+ "pattern": { "prefix": "000000", "leadingZeros": 6 },+ "attempts": 12050860,+ "durationMs": 13590.1,+ "generatedAt": "2026-05-10T10:52:37.115Z"+ },+ {+ "address": "0x00000007136e9bd7ee352826245ec410a5b95a08",+ "addressChecksum": "0x00000007136E9bD7eE352826245EC410a5b95A08",+ "salt": "0x05bf37bfa1f9c8e789eae7855313582c7fe6cd75ff4b216862b719b0992acdcd",+ "pattern": { "prefix": "000000", "leadingZeros": 7 },+ "attempts": 6942243,+ "durationMs": 7865.1,+ "generatedAt": "2026-05-10T11:05:25.381Z"+ }+ ]+ }+ ]+}diff --git a/contracts/vanity/payments-via-factory-candidate.json b/contracts/vanity/payments-via-factory-candidate.jsonnew file mode 100644index 000000000..1d6bdd1b0--- /dev/null+++ b/contracts/vanity/payments-via-factory-candidate.json@@ -0,0 +1,13 @@+{+ "_comment": "ThreeWSPayments candidate grind via ThreeWSFactory — not yet deployed. Different initCodeHash from the live BSC deploy (0xb55479df…), so this would land at a new address.",+ "address": "0x0000000cd5c1d1f395042b2edf94cdf7e2977c0f",+ "addressChecksum": "0x0000000CD5C1D1F395042B2eDF94cdF7E2977C0f",+ "salt": "0xe1f421f86d6483f9b83078fa1dccb8b2d24cf1eac69d267ca4d58bc9f7f39aab",+ "deployer": "0x00000000d49195ae81759cd247cfedd9d0b479df",+ "initCodeHash": "0xad5ab62542aa68002b1d2e74d2f4ed2496b6614c43a2ce92c2be94c502286320",+ "pattern": { "prefix": "0000000", "suffix": null, "caseSensitive": false },+ "attempts": 209892350,+ "durationMs": 240826.4,+ "generatedAt": "2026-05-10T12:02:37.691Z",+ "status": "candidate-not-deployed"+}