[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-uniswap-deployer":3,"mdc-4qqty3-key":36,"related-org-uniswap-deployer":4367,"related-repo-uniswap-deployer":4512},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":31,"sourceUrl":34,"mdContent":35},"deployer","deploy Uniswap CCA smart contracts","Deploy CCA (Continuous Clearing Auction) smart contracts using the Factory pattern. Use when user says \"deploy auction\", \"deploy cca\", \"factory deployment\", or wants to deploy a configured auction.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"uniswap","Uniswap","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Funiswap.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Web3","web3","tag",{"name":17,"slug":18,"type":15},"Deployment","deployment",{"name":20,"slug":21,"type":15},"Smart Contracts","smart-contracts",{"name":23,"slug":24,"type":15},"Ethereum","ethereum",215,"https:\u002F\u002Fgithub.com\u002FUniswap\u002Funiswap-ai","2026-07-17T06:08:09.661977","MIT",35,[],{"repoUrl":26,"stars":25,"forks":29,"topics":32,"description":33},[],"AI tools for building on Uniswap — skills, plugins, and agents for any coding agent.","https:\u002F\u002Fgithub.com\u002FUniswap\u002Funiswap-ai\u002Ftree\u002FHEAD\u002Fpackages\u002Fplugins\u002Funiswap-cca\u002Fskills\u002Fdeployer","---\nname: deployer\ndescription: Deploy CCA (Continuous Clearing Auction) smart contracts using the Factory pattern. Use when user says \"deploy auction\", \"deploy cca\", \"factory deployment\", or wants to deploy a configured auction.\nallowed-tools: Read, Glob, Grep, Bash(forge:*), Bash(cast:*), Bash(curl:*), AskUserQuestion\nmodel: opus\nlicense: MIT\nmetadata:\n  author: uniswap\n  version: '1.0.0'\n---\n\n# CCA Deployment\n\nDeploy Continuous Clearing Auction (CCA) smart contracts using the `ContinuousClearingAuctionFactory` with CREATE2 for consistent addresses across chains.\n\n> **Runtime Compatibility:** This skill uses `AskUserQuestion` for interactive prompts. If `AskUserQuestion` is not available in your runtime, collect the same parameters through natural language conversation instead.\n\n## Instructions for Claude Code\n\nWhen the user invokes this skill, guide them through the CCA deployment process with appropriate safety warnings and validation.\n\n### Pre-Deployment Requirements\n\nBefore proceeding with deployment, you MUST:\n\n1. **Show educational disclaimer** and get user acknowledgment\n2. **Validate configuration file** if provided\n3. **Verify factory address** for the target network\n4. **Confirm deployment parameters** with user\n\n### Deployment Workflow\n\n1. **Show Educational Disclaimer** (REQUIRED)\n2. **Load or Request Configuration**\n3. **Validate Configuration**\n4. **Display Deployment Plan**\n5. **Get User Confirmation**\n6. **Provide Deployment Commands**\n7. **Post-Deployment Steps**\n\n---\n\n## ⚠️ Educational Use Disclaimer\n\n**IMPORTANT: Before proceeding with deployment, you must acknowledge:**\n\nThis tool and all deployment instructions are provided **for educational purposes only**. AI-generated deployment commands may contain errors or security vulnerabilities.\n\n**You must:**\n\n1. ✅ **Review all configurations carefully** before deploying\n2. ✅ **Verify all parameters** (addresses, pricing, schedules) are correct\n3. ✅ **Test on testnets first** before deploying to mainnet\n4. ✅ **Audit your contracts** before deploying with real funds\n\n**Use AskUserQuestion to confirm the user acknowledges these warnings before proceeding with deployment steps.**\n\n### Input Validation Rules\n\nBefore interpolating ANY user-provided value into forge\u002Fcast commands or deployment scripts:\n\n- **Ethereum addresses**: MUST match `^0x[a-fA-F0-9]{40}$` — reject otherwise\n- **Chain IDs**: MUST be from the supported chains list (1, 130, 143, 1301, 8453, 42161, 11155111)\n- **Numeric values** (supply, prices, blocks, chain IDs): MUST be non-negative and match `^[0-9]+\\.?[0-9]*$`\n- **REJECT** any input containing shell metacharacters: `;`, `|`, `&`, `$`, `` ` ``, `(`, `)`, `>`, `\u003C`, `\\`, `'`, `\"`, newlines\n- **Never** pass raw user input directly to shell commands without validation\n\n### ⚠️ Permission Safety\n\n**Do NOT auto-approve `Bash(forge:*)` or `Bash(cast:*)` in your Claude Code settings.** Always require per-invocation approval for commands that spend gas or broadcast transactions. The PreToolUse hooks in `.claude\u002Fhooks\u002F` provide programmatic validation as a safety net, but user approval per command is the primary control.\n\n---\n\n## 🔐 Private Key Security\n\n**CRITICAL: Handling private keys safely is essential for secure deployments.**\n\n### ⚠️ Never Do These\n\n- ❌ **Never** store private keys in git repositories or config files\n- ❌ **Never** paste private keys directly in command line (visible in shell history)\n- ❌ **Never** share private keys or store them in shared environments\n- ❌ **Never** use mainnet private keys on untrusted computers\n- ❌ **Never** use `--private-key` flag (blocked by PreToolUse hook)\n\n### ✅ Recommended Practices\n\n#### Option 1: Hardware Wallets (Most Secure)\n\nUse Ledger or Trezor hardware wallets with the `--ledger` flag:\n\n```bash\nforge script script\u002FExample.s.sol:ExampleScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --ledger\n```\n\n#### Option 2: Encrypted Keystore\n\nCreate an encrypted keystore with `cast wallet import`:\n\n```bash\n# Import private key to encrypted keystore (one-time setup)\ncast wallet import deployer --interactive\n\n# Use keystore for deployment\nforge script script\u002FExample.s.sol:ExampleScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --account deployer \\\n  --sender $DEPLOYER_ADDRESS\n```\n\n#### Option 3: Environment Variables (For Testing Only)\n\nIf using environment variables, ensure they are:\n\n- Set in a secure `.env` file (never committed to git)\n- Loaded via `source .env` or `dotenv`\n- Only used on trusted, secure computers\n- Use testnet keys for development\n\n**Example:**\n\n```bash\n# .env file (add to .gitignore)\nPRIVATE_KEY=0x...\nRPC_URL=https:\u002F\u002F...\n\n# Load environment\nsource .env\n\n# Deploy (use encrypted keystore instead of --private-key)\ncast wallet import deployer --interactive\nforge script ... --account deployer --sender $DEPLOYER_ADDRESS\n```\n\n### Testnet First\n\n**Always test on testnets before mainnet:**\n\n- Sepolia (testnet): Get free ETH from faucets\n- Base Sepolia: Free ETH for testing on Base\n- Deploy and verify full workflow on testnet\n- Only deploy to mainnet after thorough testing\n\n---\n\n## Deployment Guide\n\n### Factory Deployment\n\nCCA instances are deployed via the `ContinuousClearingAuctionFactory` contract, which uses CREATE2 for consistent addresses across chains.\n\n#### Factory Addresses\n\n| Version | Address                                      | Status          |\n| ------- | -------------------------------------------- | --------------- |\n| v1.1.0  | `0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5` | **Recommended** |\n\n### Deploying an Auction Instance\n\n#### Step 0: Clone the CCA Repository\n\nIf you don't already have the CCA contracts locally, clone the repository and install dependencies:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FUniswap\u002Fcontinuous-clearing-auction.git\ncd continuous-clearing-auction\nforge install\n```\n\nThis gives you access to the deployment scripts, contract ABIs, and test helpers referenced in later steps.\n\n#### Step 1: Prepare Configuration\n\nEnsure you have a valid configuration file (generated via the `configurator` skill or manually created).\n\nExample configuration file structure:\n\n```json\n{\n  \"1\": {\n    \"token\": \"0x...\",\n    \"totalSupply\": 1e29,\n    \"currency\": \"0x0000000000000000000000000000000000000000\",\n    \"tokensRecipient\": \"0x...\",\n    \"fundsRecipient\": \"0x...\",\n    \"startBlock\": 24321000,\n    \"endBlock\": 24327001,\n    \"claimBlock\": 24327001,\n    \"tickSpacing\": 79228162514264337593543950,\n    \"validationHook\": \"0x0000000000000000000000000000000000000000\",\n    \"floorPrice\": 7922816251426433759354395000,\n    \"requiredCurrencyRaised\": 0,\n    \"supplySchedule\": [\n      { \"mps\": 1000, \"blockDelta\": 6000 },\n      { \"mps\": 4000000, \"blockDelta\": 1 }\n    ]\n  }\n}\n```\n\n#### Step 2: Validate Configuration\n\nBefore deployment, verify the configuration passes all validation rules (see Validation Rules section).\n\n#### Step 3: Deploy via Factory\n\nThe factory has a simple interface:\n\n```solidity\nfunction initializeDistribution(\n    address token,\n    uint256 amount,\n    bytes calldata configData,\n    bytes32 salt\n) external returns (IDistributionContract);\n```\n\nWhere:\n\n- `token`: Address of the token to be sold\n- `amount`: Amount of tokens to sell in the auction\n- `configData`: ABI-encoded `AuctionParameters` struct\n- `salt`: Optional bytes32 value for vanity address mining\n\n#### Step 3.5: Encode Configuration to configData\n\nThe factory's `initializeDistribution` expects `configData` as ABI-encoded `AuctionParameters`. Convert your JSON config to encoded bytes:\n\n**Using cast (Foundry CLI):**\n\n```bash\n# Encode the AuctionParameters struct\ncast abi-encode \"initializeDistribution(address,uint256,bytes,bytes32)\" \\\n  \"$TOKEN_ADDRESS\" \\\n  \"$TOTAL_SUPPLY\" \\\n  \"$(cast abi-encode \"(address,address,address,uint64,uint64,uint64,uint256,address,uint256,uint128,bytes)\" \\\n    \"$CURRENCY\" \\\n    \"$TOKENS_RECIPIENT\" \\\n    \"$FUNDS_RECIPIENT\" \\\n    \"$START_BLOCK\" \\\n    \"$END_BLOCK\" \\\n    \"$CLAIM_BLOCK\" \\\n    \"$TICK_SPACING\" \\\n    \"$VALIDATION_HOOK\" \\\n    \"$FLOOR_PRICE\" \\\n    \"$REQUIRED_CURRENCY_RAISED\" \\\n    \"$ENCODED_SUPPLY_SCHEDULE\")\" \\\n  \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n```\n\n**Using a Foundry Script:**\n\n```solidity\n\u002F\u002F script\u002FDeployAuction.s.sol\npragma solidity ^0.8.24;\n\nimport \"forge-std\u002FScript.sol\";\n\ninterface ICCAFactory {\n    function initializeDistribution(\n        address token,\n        uint256 amount,\n        bytes calldata configData,\n        bytes32 salt\n    ) external returns (address);\n}\n\ncontract DeployAuction is Script {\n    function run() external {\n        \u002F\u002F Load config values\n        address token = vm.envAddress(\"TOKEN\");\n        uint256 amount = vm.envUint(\"TOTAL_SUPPLY\");\n\n        \u002F\u002F Encode AuctionParameters\n        bytes memory configData = abi.encode(\n            vm.envAddress(\"CURRENCY\"),\n            vm.envAddress(\"TOKENS_RECIPIENT\"),\n            vm.envAddress(\"FUNDS_RECIPIENT\"),\n            uint64(vm.envUint(\"START_BLOCK\")),\n            uint64(vm.envUint(\"END_BLOCK\")),\n            uint64(vm.envUint(\"CLAIM_BLOCK\")),\n            vm.envUint(\"TICK_SPACING\"),\n            vm.envAddress(\"VALIDATION_HOOK\"),\n            vm.envUint(\"FLOOR_PRICE\"),\n            uint128(vm.envUint(\"REQUIRED_CURRENCY_RAISED\")),\n            vm.envBytes(\"ENCODED_SUPPLY_SCHEDULE\")\n        );\n\n        vm.startBroadcast();\n\n        \u002F\u002F Approve token transfer to factory\n        IERC20(token).approve(\n            0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5,\n            amount\n        );\n\n        \u002F\u002F Deploy auction\n        address auction = ICCAFactory(\n            0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5\n        ).initializeDistribution(\n            token,\n            amount,\n            configData,\n            bytes32(0) \u002F\u002F salt\n        );\n\n        vm.stopBroadcast();\n\n        console.log(\"Auction deployed at:\", auction);\n    }\n}\n```\n\n**Important:** You must approve the token transfer to the factory before calling `initializeDistribution`. The factory will transfer `amount` tokens from your address to the newly created auction contract.\n\n#### Step 4: Using Foundry Script\n\n```bash\n# Deploy factory (if needed on new network)\nforge script script\u002Fdeploy\u002FDeployContinuousAuctionFactory.s.sol:DeployContinuousAuctionFactoryScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --account deployer --sender $DEPLOYER_ADDRESS\n\n# Deploy auction instance\nforge script script\u002FExample.s.sol:ExampleScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --account deployer --sender $DEPLOYER_ADDRESS\n```\n\n#### Step 5: Post-Deployment\n\nAfter deployment, you **must** call `onTokensReceived()` to notify the auction that tokens have been transferred:\n\n```bash\ncast send $AUCTION_ADDRESS \"onTokensReceived()\" --rpc-url $RPC_URL --account deployer --sender $DEPLOYER_ADDRESS\n```\n\nThis is a required prerequisite before the auction can accept bids.\n\n### Alternative: Deploy via Constructor\n\nYou can also deploy directly via the constructor:\n\n```solidity\nconstructor(\n    address token,\n    uint128 amount,\n    AuctionParameters memory parameters\n) {}\n```\n\nThis approach doesn't require a salt parameter but won't benefit from CREATE2's deterministic addressing.\n\n### Verification on Block Explorers\n\nGenerate standard JSON input for verification:\n\n```bash\nforge verify-contract $AUCTION_ADDRESS \\\n  src\u002FContinuousClearingAuction.sol:ContinuousClearingAuction \\\n  --rpc-url $RPC_URL \\\n  --show-standard-json-input > standard-json-input.json\n```\n\nUpload this file to block explorers for verification.\n\n---\n\n## Validation Rules\n\nBefore deployment, ensure:\n\n1. **Block constraints**: `startBlock \u003C endBlock \u003C= claimBlock`\n2. **Valid addresses**: All addresses are valid Ethereum addresses (0x + 40 hex chars)\n3. **Non-negative values**: All numeric values >= 0\n4. **Floor price alignment**: Floor price must be a multiple of tick spacing\n5. **Tick spacing**: At least 1 basis point of floor price (1%, 10% recommended)\n6. **Supply schedule**: Last block sells significant tokens (~30%+)\n7. **Total supply bounds**: Max 1e30 wei (1 trillion 18-decimal tokens)\n8. **No FoT tokens**: Fee-on-transfer tokens not supported\n9. **Minimum decimals**: Do not use tokens with \u003C 6 decimals\n\n---\n\n## Technical Overview\n\n### Q96 Fixed-Point Math\n\nThe auction uses Q96 fixed-point arithmetic:\n\n```solidity\nlibrary FixedPoint96 {\n    uint8 internal constant RESOLUTION = 96;\n    uint256 internal constant Q96 = 0x1000000000000000000000000; \u002F\u002F 2^96\n}\n```\n\n- **Price**: Q96 fixed-point number for fractional price ratios\n- **Demand**: Currency amounts scaled by Q96\n\n### Auction Steps (Supply Issuance)\n\nSteps are packed into bytes, where each step is a `uint64`:\n\n- First 24 bits: `mps` (per-block issuance rate in MPS)\n- Last 40 bits: `blockDelta` (number of blocks)\n\n```solidity\nfunction parse(bytes8 data) internal pure returns (uint24 mps, uint40 blockDelta) {\n    mps = uint24(bytes3(data));\n    blockDelta = uint40(uint64(data));\n}\n```\n\nThe data is deployed to an external SSTORE2 contract for cheaper reads.\n\n### Key Contract Functions\n\n#### submitBid()\n\nUsers submit bids with:\n\n- `maxPrice`: Maximum price willing to pay (Q96)\n- `amount`: Currency amount to bid\n- `owner`: Address to receive tokens\u002Frefunds\n- `prevTickPrice`: Hint for gas optimization\n- `hookData`: Optional data for validation hooks\n\n#### checkpoint()\n\nAuction is checkpointed once per block with a new bid. Checkpoints determine token allocations.\n\n#### exitBid() \u002F exitPartiallyFilledBid()\n\nBids can be exited when outbid or when auction ends (only after graduation).\n\n#### isGraduated()\n\nReturns true if `currencyRaised >= requiredCurrencyRaised`. No bids can exit before graduation.\n\n#### claimTokens()\n\nUsers claim purchased tokens after `claimBlock` (only for graduated auctions).\n\n#### sweepCurrency() \u002F sweepUnsoldTokens()\n\nAfter auction ends:\n\n- `sweepCurrency()`: Withdraw raised currency (graduated only)\n- `sweepUnsoldTokens()`: Withdraw unsold tokens\n\n---\n\n## Supported Chains\n\nCCA is deployed to canonical addresses across select EVM chains:\n\n| Chain ID | Network          | Block Time |\n| -------- | ---------------- | ---------- |\n| 1        | Mainnet          | 12s        |\n| 130      | Unichain         | 1s         |\n| 1301     | Unichain Sepolia | 2s         |\n| 8453     | Base             | 2s         |\n| 42161    | Arbitrum         | 2s         |\n| 11155111 | Sepolia          | 12s        |\n\n---\n\n## Troubleshooting\n\n### Common Issues\n\n| Issue                     | Solution                                            |\n| ------------------------- | --------------------------------------------------- |\n| \"Invalid block sequence\"  | Ensure startBlock \u003C endBlock \u003C= claimBlock          |\n| \"Floor price not aligned\" | Round floor price to multiple of tick spacing       |\n| \"Tick spacing too small\"  | Use at least 1% of floor price                      |\n| \"Total supply too large\"  | Max 1e30 wei (1 trillion 18-decimal tokens)         |\n| \"Gas inefficiency\"        | Increase tick spacing                               |\n| \"Invalid address\"         | Verify addresses are 42 characters starting with 0x |\n\n### Validation Checklist\n\nBefore deployment:\n\n- [ ] Block sequence is valid (start \u003C end \u003C= claim)\n- [ ] Floor price is multiple of tick spacing\n- [ ] Tick spacing >= 1% of floor price\n- [ ] All addresses are valid Ethereum addresses\n- [ ] Total supply \u003C= 1e30 wei\n- [ ] Currency is more valuable than token\n- [ ] Block times match network (12s mainnet, 2s L2s)\n- [ ] Recipients addresses are set (not placeholders)\n- [ ] Currency address is correct for network\n- [ ] Last supply step sells ~30%+ of tokens\n- [ ] No fee-on-transfer tokens used\n- [ ] Token decimals >= 6\n- [ ] `onTokensReceived()` called post-deployment\n\n---\n\n## Additional Resources\n\n- **CCA Repository**: \u003Chttps:\u002F\u002Fgithub.com\u002FUniswap\u002Fcontinuous-clearing-auction>\n- **Technical Documentation**: See `docs\u002FTechnicalDocumentation.md` in repo\n- **Deployment Guide**: See `docs\u002FDeploymentGuide.md` in repo\n- **Whitepaper**: See `docs\u002Fassets\u002Fwhitepaper.pdf` in repo\n- **Audits**: See `docs\u002Faudits\u002FREADME.md` in repo\n- **Uniswap Docs**: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fcontracts\u002Fliquidity-launchpad\u002FCCA>\n- **Bug Bounty**: \u003Chttps:\u002F\u002Fcantina.xyz\u002Fcode\u002Ff9df94db-c7b1-434b-bb06-d1360abdd1be\u002Foverview>\n",{"data":37,"body":42},{"name":4,"description":6,"allowed-tools":38,"model":39,"license":28,"metadata":40},"Read, Glob, Grep, Bash(forge:*), Bash(cast:*), Bash(curl:*), AskUserQuestion","opus",{"author":8,"version":41},"1.0.0",{"type":43,"children":44},"root",[45,54,69,99,106,111,118,123,168,174,235,239,245,253,265,273,321,329,335,340,494,500,534,537,543,551,557,619,625,632,645,721,727,740,876,882,887,931,939,1092,1098,1106,1129,1132,1138,1144,1156,1162,1220,1226,1232,1237,1287,1292,1298,1311,1316,1927,1933,1938,1944,1949,2006,2011,2065,2071,2098,2106,2462,2470,2965,2989,2995,3146,3152,3172,3235,3240,3246,3251,3297,3302,3308,3313,3378,3383,3386,3392,3397,3496,3499,3505,3511,3516,3554,3577,3583,3595,3622,3660,3665,3671,3677,3682,3739,3745,3750,3756,3761,3767,3780,3786,3798,3804,3809,3834,3837,3843,3848,3979,3982,3988,3994,4094,4100,4105,4237,4240,4246,4361],{"type":46,"tag":47,"props":48,"children":50},"element","h1",{"id":49},"cca-deployment",[51],{"type":52,"value":53},"text","CCA Deployment",{"type":46,"tag":55,"props":56,"children":57},"p",{},[58,60,67],{"type":52,"value":59},"Deploy Continuous Clearing Auction (CCA) smart contracts using the ",{"type":46,"tag":61,"props":62,"children":64},"code",{"className":63},[],[65],{"type":52,"value":66},"ContinuousClearingAuctionFactory",{"type":52,"value":68}," with CREATE2 for consistent addresses across chains.",{"type":46,"tag":70,"props":71,"children":72},"blockquote",{},[73],{"type":46,"tag":55,"props":74,"children":75},{},[76,82,84,90,92,97],{"type":46,"tag":77,"props":78,"children":79},"strong",{},[80],{"type":52,"value":81},"Runtime Compatibility:",{"type":52,"value":83}," This skill uses ",{"type":46,"tag":61,"props":85,"children":87},{"className":86},[],[88],{"type":52,"value":89},"AskUserQuestion",{"type":52,"value":91}," for interactive prompts. If ",{"type":46,"tag":61,"props":93,"children":95},{"className":94},[],[96],{"type":52,"value":89},{"type":52,"value":98}," is not available in your runtime, collect the same parameters through natural language conversation instead.",{"type":46,"tag":100,"props":101,"children":103},"h2",{"id":102},"instructions-for-claude-code",[104],{"type":52,"value":105},"Instructions for Claude Code",{"type":46,"tag":55,"props":107,"children":108},{},[109],{"type":52,"value":110},"When the user invokes this skill, guide them through the CCA deployment process with appropriate safety warnings and validation.",{"type":46,"tag":112,"props":113,"children":115},"h3",{"id":114},"pre-deployment-requirements",[116],{"type":52,"value":117},"Pre-Deployment Requirements",{"type":46,"tag":55,"props":119,"children":120},{},[121],{"type":52,"value":122},"Before proceeding with deployment, you MUST:",{"type":46,"tag":124,"props":125,"children":126},"ol",{},[127,138,148,158],{"type":46,"tag":128,"props":129,"children":130},"li",{},[131,136],{"type":46,"tag":77,"props":132,"children":133},{},[134],{"type":52,"value":135},"Show educational disclaimer",{"type":52,"value":137}," and get user acknowledgment",{"type":46,"tag":128,"props":139,"children":140},{},[141,146],{"type":46,"tag":77,"props":142,"children":143},{},[144],{"type":52,"value":145},"Validate configuration file",{"type":52,"value":147}," if provided",{"type":46,"tag":128,"props":149,"children":150},{},[151,156],{"type":46,"tag":77,"props":152,"children":153},{},[154],{"type":52,"value":155},"Verify factory address",{"type":52,"value":157}," for the target network",{"type":46,"tag":128,"props":159,"children":160},{},[161,166],{"type":46,"tag":77,"props":162,"children":163},{},[164],{"type":52,"value":165},"Confirm deployment parameters",{"type":52,"value":167}," with user",{"type":46,"tag":112,"props":169,"children":171},{"id":170},"deployment-workflow",[172],{"type":52,"value":173},"Deployment Workflow",{"type":46,"tag":124,"props":175,"children":176},{},[177,187,195,203,211,219,227],{"type":46,"tag":128,"props":178,"children":179},{},[180,185],{"type":46,"tag":77,"props":181,"children":182},{},[183],{"type":52,"value":184},"Show Educational Disclaimer",{"type":52,"value":186}," (REQUIRED)",{"type":46,"tag":128,"props":188,"children":189},{},[190],{"type":46,"tag":77,"props":191,"children":192},{},[193],{"type":52,"value":194},"Load or Request Configuration",{"type":46,"tag":128,"props":196,"children":197},{},[198],{"type":46,"tag":77,"props":199,"children":200},{},[201],{"type":52,"value":202},"Validate Configuration",{"type":46,"tag":128,"props":204,"children":205},{},[206],{"type":46,"tag":77,"props":207,"children":208},{},[209],{"type":52,"value":210},"Display Deployment Plan",{"type":46,"tag":128,"props":212,"children":213},{},[214],{"type":46,"tag":77,"props":215,"children":216},{},[217],{"type":52,"value":218},"Get User Confirmation",{"type":46,"tag":128,"props":220,"children":221},{},[222],{"type":46,"tag":77,"props":223,"children":224},{},[225],{"type":52,"value":226},"Provide Deployment Commands",{"type":46,"tag":128,"props":228,"children":229},{},[230],{"type":46,"tag":77,"props":231,"children":232},{},[233],{"type":52,"value":234},"Post-Deployment Steps",{"type":46,"tag":236,"props":237,"children":238},"hr",{},[],{"type":46,"tag":100,"props":240,"children":242},{"id":241},"️-educational-use-disclaimer",[243],{"type":52,"value":244},"⚠️ Educational Use Disclaimer",{"type":46,"tag":55,"props":246,"children":247},{},[248],{"type":46,"tag":77,"props":249,"children":250},{},[251],{"type":52,"value":252},"IMPORTANT: Before proceeding with deployment, you must acknowledge:",{"type":46,"tag":55,"props":254,"children":255},{},[256,258,263],{"type":52,"value":257},"This tool and all deployment instructions are provided ",{"type":46,"tag":77,"props":259,"children":260},{},[261],{"type":52,"value":262},"for educational purposes only",{"type":52,"value":264},". AI-generated deployment commands may contain errors or security vulnerabilities.",{"type":46,"tag":55,"props":266,"children":267},{},[268],{"type":46,"tag":77,"props":269,"children":270},{},[271],{"type":52,"value":272},"You must:",{"type":46,"tag":124,"props":274,"children":275},{},[276,288,299,310],{"type":46,"tag":128,"props":277,"children":278},{},[279,281,286],{"type":52,"value":280},"✅ ",{"type":46,"tag":77,"props":282,"children":283},{},[284],{"type":52,"value":285},"Review all configurations carefully",{"type":52,"value":287}," before deploying",{"type":46,"tag":128,"props":289,"children":290},{},[291,292,297],{"type":52,"value":280},{"type":46,"tag":77,"props":293,"children":294},{},[295],{"type":52,"value":296},"Verify all parameters",{"type":52,"value":298}," (addresses, pricing, schedules) are correct",{"type":46,"tag":128,"props":300,"children":301},{},[302,303,308],{"type":52,"value":280},{"type":46,"tag":77,"props":304,"children":305},{},[306],{"type":52,"value":307},"Test on testnets first",{"type":52,"value":309}," before deploying to mainnet",{"type":46,"tag":128,"props":311,"children":312},{},[313,314,319],{"type":52,"value":280},{"type":46,"tag":77,"props":315,"children":316},{},[317],{"type":52,"value":318},"Audit your contracts",{"type":52,"value":320}," before deploying with real funds",{"type":46,"tag":55,"props":322,"children":323},{},[324],{"type":46,"tag":77,"props":325,"children":326},{},[327],{"type":52,"value":328},"Use AskUserQuestion to confirm the user acknowledges these warnings before proceeding with deployment steps.",{"type":46,"tag":112,"props":330,"children":332},{"id":331},"input-validation-rules",[333],{"type":52,"value":334},"Input Validation Rules",{"type":46,"tag":55,"props":336,"children":337},{},[338],{"type":52,"value":339},"Before interpolating ANY user-provided value into forge\u002Fcast commands or deployment scripts:",{"type":46,"tag":341,"props":342,"children":343},"ul",{},[344,362,372,388,484],{"type":46,"tag":128,"props":345,"children":346},{},[347,352,354,360],{"type":46,"tag":77,"props":348,"children":349},{},[350],{"type":52,"value":351},"Ethereum addresses",{"type":52,"value":353},": MUST match ",{"type":46,"tag":61,"props":355,"children":357},{"className":356},[],[358],{"type":52,"value":359},"^0x[a-fA-F0-9]{40}$",{"type":52,"value":361}," — reject otherwise",{"type":46,"tag":128,"props":363,"children":364},{},[365,370],{"type":46,"tag":77,"props":366,"children":367},{},[368],{"type":52,"value":369},"Chain IDs",{"type":52,"value":371},": MUST be from the supported chains list (1, 130, 143, 1301, 8453, 42161, 11155111)",{"type":46,"tag":128,"props":373,"children":374},{},[375,380,382],{"type":46,"tag":77,"props":376,"children":377},{},[378],{"type":52,"value":379},"Numeric values",{"type":52,"value":381}," (supply, prices, blocks, chain IDs): MUST be non-negative and match ",{"type":46,"tag":61,"props":383,"children":385},{"className":384},[],[386],{"type":52,"value":387},"^[0-9]+\\.?[0-9]*$",{"type":46,"tag":128,"props":389,"children":390},{},[391,396,398,404,406,412,413,419,420,426,427,433,434,440,441,447,448,454,455,461,462,468,469,475,476,482],{"type":46,"tag":77,"props":392,"children":393},{},[394],{"type":52,"value":395},"REJECT",{"type":52,"value":397}," any input containing shell metacharacters: ",{"type":46,"tag":61,"props":399,"children":401},{"className":400},[],[402],{"type":52,"value":403},";",{"type":52,"value":405},", ",{"type":46,"tag":61,"props":407,"children":409},{"className":408},[],[410],{"type":52,"value":411},"|",{"type":52,"value":405},{"type":46,"tag":61,"props":414,"children":416},{"className":415},[],[417],{"type":52,"value":418},"&",{"type":52,"value":405},{"type":46,"tag":61,"props":421,"children":423},{"className":422},[],[424],{"type":52,"value":425},"$",{"type":52,"value":405},{"type":46,"tag":61,"props":428,"children":430},{"className":429},[],[431],{"type":52,"value":432},"`",{"type":52,"value":405},{"type":46,"tag":61,"props":435,"children":437},{"className":436},[],[438],{"type":52,"value":439},"(",{"type":52,"value":405},{"type":46,"tag":61,"props":442,"children":444},{"className":443},[],[445],{"type":52,"value":446},")",{"type":52,"value":405},{"type":46,"tag":61,"props":449,"children":451},{"className":450},[],[452],{"type":52,"value":453},">",{"type":52,"value":405},{"type":46,"tag":61,"props":456,"children":458},{"className":457},[],[459],{"type":52,"value":460},"\u003C",{"type":52,"value":405},{"type":46,"tag":61,"props":463,"children":465},{"className":464},[],[466],{"type":52,"value":467},"\\",{"type":52,"value":405},{"type":46,"tag":61,"props":470,"children":472},{"className":471},[],[473],{"type":52,"value":474},"'",{"type":52,"value":405},{"type":46,"tag":61,"props":477,"children":479},{"className":478},[],[480],{"type":52,"value":481},"\"",{"type":52,"value":483},", newlines",{"type":46,"tag":128,"props":485,"children":486},{},[487,492],{"type":46,"tag":77,"props":488,"children":489},{},[490],{"type":52,"value":491},"Never",{"type":52,"value":493}," pass raw user input directly to shell commands without validation",{"type":46,"tag":112,"props":495,"children":497},{"id":496},"️-permission-safety",[498],{"type":52,"value":499},"⚠️ Permission Safety",{"type":46,"tag":55,"props":501,"children":502},{},[503,524,526,532],{"type":46,"tag":77,"props":504,"children":505},{},[506,508,514,516,522],{"type":52,"value":507},"Do NOT auto-approve ",{"type":46,"tag":61,"props":509,"children":511},{"className":510},[],[512],{"type":52,"value":513},"Bash(forge:*)",{"type":52,"value":515}," or ",{"type":46,"tag":61,"props":517,"children":519},{"className":518},[],[520],{"type":52,"value":521},"Bash(cast:*)",{"type":52,"value":523}," in your Claude Code settings.",{"type":52,"value":525}," Always require per-invocation approval for commands that spend gas or broadcast transactions. The PreToolUse hooks in ",{"type":46,"tag":61,"props":527,"children":529},{"className":528},[],[530],{"type":52,"value":531},".claude\u002Fhooks\u002F",{"type":52,"value":533}," provide programmatic validation as a safety net, but user approval per command is the primary control.",{"type":46,"tag":236,"props":535,"children":536},{},[],{"type":46,"tag":100,"props":538,"children":540},{"id":539},"private-key-security",[541],{"type":52,"value":542},"🔐 Private Key Security",{"type":46,"tag":55,"props":544,"children":545},{},[546],{"type":46,"tag":77,"props":547,"children":548},{},[549],{"type":52,"value":550},"CRITICAL: Handling private keys safely is essential for secure deployments.",{"type":46,"tag":112,"props":552,"children":554},{"id":553},"️-never-do-these",[555],{"type":52,"value":556},"⚠️ Never Do These",{"type":46,"tag":341,"props":558,"children":559},{},[560,571,581,591,601],{"type":46,"tag":128,"props":561,"children":562},{},[563,565,569],{"type":52,"value":564},"❌ ",{"type":46,"tag":77,"props":566,"children":567},{},[568],{"type":52,"value":491},{"type":52,"value":570}," store private keys in git repositories or config files",{"type":46,"tag":128,"props":572,"children":573},{},[574,575,579],{"type":52,"value":564},{"type":46,"tag":77,"props":576,"children":577},{},[578],{"type":52,"value":491},{"type":52,"value":580}," paste private keys directly in command line (visible in shell history)",{"type":46,"tag":128,"props":582,"children":583},{},[584,585,589],{"type":52,"value":564},{"type":46,"tag":77,"props":586,"children":587},{},[588],{"type":52,"value":491},{"type":52,"value":590}," share private keys or store them in shared environments",{"type":46,"tag":128,"props":592,"children":593},{},[594,595,599],{"type":52,"value":564},{"type":46,"tag":77,"props":596,"children":597},{},[598],{"type":52,"value":491},{"type":52,"value":600}," use mainnet private keys on untrusted computers",{"type":46,"tag":128,"props":602,"children":603},{},[604,605,609,611,617],{"type":52,"value":564},{"type":46,"tag":77,"props":606,"children":607},{},[608],{"type":52,"value":491},{"type":52,"value":610}," use ",{"type":46,"tag":61,"props":612,"children":614},{"className":613},[],[615],{"type":52,"value":616},"--private-key",{"type":52,"value":618}," flag (blocked by PreToolUse hook)",{"type":46,"tag":112,"props":620,"children":622},{"id":621},"recommended-practices",[623],{"type":52,"value":624},"✅ Recommended Practices",{"type":46,"tag":626,"props":627,"children":629},"h4",{"id":628},"option-1-hardware-wallets-most-secure",[630],{"type":52,"value":631},"Option 1: Hardware Wallets (Most Secure)",{"type":46,"tag":55,"props":633,"children":634},{},[635,637,643],{"type":52,"value":636},"Use Ledger or Trezor hardware wallets with the ",{"type":46,"tag":61,"props":638,"children":640},{"className":639},[],[641],{"type":52,"value":642},"--ledger",{"type":52,"value":644}," flag:",{"type":46,"tag":646,"props":647,"children":652},"pre",{"className":648,"code":649,"language":650,"meta":651,"style":651},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","forge script script\u002FExample.s.sol:ExampleScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --ledger\n","bash","",[653],{"type":46,"tag":61,"props":654,"children":655},{"__ignoreMap":651},[656,685,699,712],{"type":46,"tag":657,"props":658,"children":661},"span",{"class":659,"line":660},"line",1,[662,668,674,679],{"type":46,"tag":657,"props":663,"children":665},{"style":664},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[666],{"type":52,"value":667},"forge",{"type":46,"tag":657,"props":669,"children":671},{"style":670},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[672],{"type":52,"value":673}," script",{"type":46,"tag":657,"props":675,"children":676},{"style":670},[677],{"type":52,"value":678}," script\u002FExample.s.sol:ExampleScript",{"type":46,"tag":657,"props":680,"children":682},{"style":681},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[683],{"type":52,"value":684}," \\\n",{"type":46,"tag":657,"props":686,"children":688},{"class":659,"line":687},2,[689,694],{"type":46,"tag":657,"props":690,"children":691},{"style":670},[692],{"type":52,"value":693},"  --rpc-url",{"type":46,"tag":657,"props":695,"children":696},{"style":681},[697],{"type":52,"value":698}," $RPC_URL \\\n",{"type":46,"tag":657,"props":700,"children":702},{"class":659,"line":701},3,[703,708],{"type":46,"tag":657,"props":704,"children":705},{"style":670},[706],{"type":52,"value":707},"  --broadcast",{"type":46,"tag":657,"props":709,"children":710},{"style":681},[711],{"type":52,"value":684},{"type":46,"tag":657,"props":713,"children":715},{"class":659,"line":714},4,[716],{"type":46,"tag":657,"props":717,"children":718},{"style":670},[719],{"type":52,"value":720},"  --ledger\n",{"type":46,"tag":626,"props":722,"children":724},{"id":723},"option-2-encrypted-keystore",[725],{"type":52,"value":726},"Option 2: Encrypted Keystore",{"type":46,"tag":55,"props":728,"children":729},{},[730,732,738],{"type":52,"value":731},"Create an encrypted keystore with ",{"type":46,"tag":61,"props":733,"children":735},{"className":734},[],[736],{"type":52,"value":737},"cast wallet import",{"type":52,"value":739},":",{"type":46,"tag":646,"props":741,"children":743},{"className":648,"code":742,"language":650,"meta":651,"style":651},"# Import private key to encrypted keystore (one-time setup)\ncast wallet import deployer --interactive\n\n# Use keystore for deployment\nforge script script\u002FExample.s.sol:ExampleScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --account deployer \\\n  --sender $DEPLOYER_ADDRESS\n",[744],{"type":46,"tag":61,"props":745,"children":746},{"__ignoreMap":651},[747,756,784,793,801,821,833,845,862],{"type":46,"tag":657,"props":748,"children":749},{"class":659,"line":660},[750],{"type":46,"tag":657,"props":751,"children":753},{"style":752},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[754],{"type":52,"value":755},"# Import private key to encrypted keystore (one-time setup)\n",{"type":46,"tag":657,"props":757,"children":758},{"class":659,"line":687},[759,764,769,774,779],{"type":46,"tag":657,"props":760,"children":761},{"style":664},[762],{"type":52,"value":763},"cast",{"type":46,"tag":657,"props":765,"children":766},{"style":670},[767],{"type":52,"value":768}," wallet",{"type":46,"tag":657,"props":770,"children":771},{"style":670},[772],{"type":52,"value":773}," import",{"type":46,"tag":657,"props":775,"children":776},{"style":670},[777],{"type":52,"value":778}," deployer",{"type":46,"tag":657,"props":780,"children":781},{"style":670},[782],{"type":52,"value":783}," --interactive\n",{"type":46,"tag":657,"props":785,"children":786},{"class":659,"line":701},[787],{"type":46,"tag":657,"props":788,"children":790},{"emptyLinePlaceholder":789},true,[791],{"type":52,"value":792},"\n",{"type":46,"tag":657,"props":794,"children":795},{"class":659,"line":714},[796],{"type":46,"tag":657,"props":797,"children":798},{"style":752},[799],{"type":52,"value":800},"# Use keystore for deployment\n",{"type":46,"tag":657,"props":802,"children":804},{"class":659,"line":803},5,[805,809,813,817],{"type":46,"tag":657,"props":806,"children":807},{"style":664},[808],{"type":52,"value":667},{"type":46,"tag":657,"props":810,"children":811},{"style":670},[812],{"type":52,"value":673},{"type":46,"tag":657,"props":814,"children":815},{"style":670},[816],{"type":52,"value":678},{"type":46,"tag":657,"props":818,"children":819},{"style":681},[820],{"type":52,"value":684},{"type":46,"tag":657,"props":822,"children":824},{"class":659,"line":823},6,[825,829],{"type":46,"tag":657,"props":826,"children":827},{"style":670},[828],{"type":52,"value":693},{"type":46,"tag":657,"props":830,"children":831},{"style":681},[832],{"type":52,"value":698},{"type":46,"tag":657,"props":834,"children":836},{"class":659,"line":835},7,[837,841],{"type":46,"tag":657,"props":838,"children":839},{"style":670},[840],{"type":52,"value":707},{"type":46,"tag":657,"props":842,"children":843},{"style":681},[844],{"type":52,"value":684},{"type":46,"tag":657,"props":846,"children":848},{"class":659,"line":847},8,[849,854,858],{"type":46,"tag":657,"props":850,"children":851},{"style":670},[852],{"type":52,"value":853},"  --account",{"type":46,"tag":657,"props":855,"children":856},{"style":670},[857],{"type":52,"value":778},{"type":46,"tag":657,"props":859,"children":860},{"style":681},[861],{"type":52,"value":684},{"type":46,"tag":657,"props":863,"children":865},{"class":659,"line":864},9,[866,871],{"type":46,"tag":657,"props":867,"children":868},{"style":670},[869],{"type":52,"value":870},"  --sender",{"type":46,"tag":657,"props":872,"children":873},{"style":681},[874],{"type":52,"value":875}," $DEPLOYER_ADDRESS\n",{"type":46,"tag":626,"props":877,"children":879},{"id":878},"option-3-environment-variables-for-testing-only",[880],{"type":52,"value":881},"Option 3: Environment Variables (For Testing Only)",{"type":46,"tag":55,"props":883,"children":884},{},[885],{"type":52,"value":886},"If using environment variables, ensure they are:",{"type":46,"tag":341,"props":888,"children":889},{},[890,903,921,926],{"type":46,"tag":128,"props":891,"children":892},{},[893,895,901],{"type":52,"value":894},"Set in a secure ",{"type":46,"tag":61,"props":896,"children":898},{"className":897},[],[899],{"type":52,"value":900},".env",{"type":52,"value":902}," file (never committed to git)",{"type":46,"tag":128,"props":904,"children":905},{},[906,908,914,915],{"type":52,"value":907},"Loaded via ",{"type":46,"tag":61,"props":909,"children":911},{"className":910},[],[912],{"type":52,"value":913},"source .env",{"type":52,"value":515},{"type":46,"tag":61,"props":916,"children":918},{"className":917},[],[919],{"type":52,"value":920},"dotenv",{"type":46,"tag":128,"props":922,"children":923},{},[924],{"type":52,"value":925},"Only used on trusted, secure computers",{"type":46,"tag":128,"props":927,"children":928},{},[929],{"type":52,"value":930},"Use testnet keys for development",{"type":46,"tag":55,"props":932,"children":933},{},[934],{"type":46,"tag":77,"props":935,"children":936},{},[937],{"type":52,"value":938},"Example:",{"type":46,"tag":646,"props":940,"children":942},{"className":648,"code":941,"language":650,"meta":651,"style":651},"# .env file (add to .gitignore)\nPRIVATE_KEY=0x...\nRPC_URL=https:\u002F\u002F...\n\n# Load environment\nsource .env\n\n# Deploy (use encrypted keystore instead of --private-key)\ncast wallet import deployer --interactive\nforge script ... --account deployer --sender $DEPLOYER_ADDRESS\n",[943],{"type":46,"tag":61,"props":944,"children":945},{"__ignoreMap":651},[946,954,973,990,997,1005,1019,1026,1034,1057],{"type":46,"tag":657,"props":947,"children":948},{"class":659,"line":660},[949],{"type":46,"tag":657,"props":950,"children":951},{"style":752},[952],{"type":52,"value":953},"# .env file (add to .gitignore)\n",{"type":46,"tag":657,"props":955,"children":956},{"class":659,"line":687},[957,962,968],{"type":46,"tag":657,"props":958,"children":959},{"style":681},[960],{"type":52,"value":961},"PRIVATE_KEY",{"type":46,"tag":657,"props":963,"children":965},{"style":964},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[966],{"type":52,"value":967},"=",{"type":46,"tag":657,"props":969,"children":970},{"style":670},[971],{"type":52,"value":972},"0x...\n",{"type":46,"tag":657,"props":974,"children":975},{"class":659,"line":701},[976,981,985],{"type":46,"tag":657,"props":977,"children":978},{"style":681},[979],{"type":52,"value":980},"RPC_URL",{"type":46,"tag":657,"props":982,"children":983},{"style":964},[984],{"type":52,"value":967},{"type":46,"tag":657,"props":986,"children":987},{"style":670},[988],{"type":52,"value":989},"https:\u002F\u002F...\n",{"type":46,"tag":657,"props":991,"children":992},{"class":659,"line":714},[993],{"type":46,"tag":657,"props":994,"children":995},{"emptyLinePlaceholder":789},[996],{"type":52,"value":792},{"type":46,"tag":657,"props":998,"children":999},{"class":659,"line":803},[1000],{"type":46,"tag":657,"props":1001,"children":1002},{"style":752},[1003],{"type":52,"value":1004},"# Load environment\n",{"type":46,"tag":657,"props":1006,"children":1007},{"class":659,"line":823},[1008,1014],{"type":46,"tag":657,"props":1009,"children":1011},{"style":1010},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1012],{"type":52,"value":1013},"source",{"type":46,"tag":657,"props":1015,"children":1016},{"style":670},[1017],{"type":52,"value":1018}," .env\n",{"type":46,"tag":657,"props":1020,"children":1021},{"class":659,"line":835},[1022],{"type":46,"tag":657,"props":1023,"children":1024},{"emptyLinePlaceholder":789},[1025],{"type":52,"value":792},{"type":46,"tag":657,"props":1027,"children":1028},{"class":659,"line":847},[1029],{"type":46,"tag":657,"props":1030,"children":1031},{"style":752},[1032],{"type":52,"value":1033},"# Deploy (use encrypted keystore instead of --private-key)\n",{"type":46,"tag":657,"props":1035,"children":1036},{"class":659,"line":864},[1037,1041,1045,1049,1053],{"type":46,"tag":657,"props":1038,"children":1039},{"style":664},[1040],{"type":52,"value":763},{"type":46,"tag":657,"props":1042,"children":1043},{"style":670},[1044],{"type":52,"value":768},{"type":46,"tag":657,"props":1046,"children":1047},{"style":670},[1048],{"type":52,"value":773},{"type":46,"tag":657,"props":1050,"children":1051},{"style":670},[1052],{"type":52,"value":778},{"type":46,"tag":657,"props":1054,"children":1055},{"style":670},[1056],{"type":52,"value":783},{"type":46,"tag":657,"props":1058,"children":1060},{"class":659,"line":1059},10,[1061,1065,1069,1074,1079,1083,1088],{"type":46,"tag":657,"props":1062,"children":1063},{"style":664},[1064],{"type":52,"value":667},{"type":46,"tag":657,"props":1066,"children":1067},{"style":670},[1068],{"type":52,"value":673},{"type":46,"tag":657,"props":1070,"children":1071},{"style":670},[1072],{"type":52,"value":1073}," ...",{"type":46,"tag":657,"props":1075,"children":1076},{"style":670},[1077],{"type":52,"value":1078}," --account",{"type":46,"tag":657,"props":1080,"children":1081},{"style":670},[1082],{"type":52,"value":778},{"type":46,"tag":657,"props":1084,"children":1085},{"style":670},[1086],{"type":52,"value":1087}," --sender",{"type":46,"tag":657,"props":1089,"children":1090},{"style":681},[1091],{"type":52,"value":875},{"type":46,"tag":112,"props":1093,"children":1095},{"id":1094},"testnet-first",[1096],{"type":52,"value":1097},"Testnet First",{"type":46,"tag":55,"props":1099,"children":1100},{},[1101],{"type":46,"tag":77,"props":1102,"children":1103},{},[1104],{"type":52,"value":1105},"Always test on testnets before mainnet:",{"type":46,"tag":341,"props":1107,"children":1108},{},[1109,1114,1119,1124],{"type":46,"tag":128,"props":1110,"children":1111},{},[1112],{"type":52,"value":1113},"Sepolia (testnet): Get free ETH from faucets",{"type":46,"tag":128,"props":1115,"children":1116},{},[1117],{"type":52,"value":1118},"Base Sepolia: Free ETH for testing on Base",{"type":46,"tag":128,"props":1120,"children":1121},{},[1122],{"type":52,"value":1123},"Deploy and verify full workflow on testnet",{"type":46,"tag":128,"props":1125,"children":1126},{},[1127],{"type":52,"value":1128},"Only deploy to mainnet after thorough testing",{"type":46,"tag":236,"props":1130,"children":1131},{},[],{"type":46,"tag":100,"props":1133,"children":1135},{"id":1134},"deployment-guide",[1136],{"type":52,"value":1137},"Deployment Guide",{"type":46,"tag":112,"props":1139,"children":1141},{"id":1140},"factory-deployment",[1142],{"type":52,"value":1143},"Factory Deployment",{"type":46,"tag":55,"props":1145,"children":1146},{},[1147,1149,1154],{"type":52,"value":1148},"CCA instances are deployed via the ",{"type":46,"tag":61,"props":1150,"children":1152},{"className":1151},[],[1153],{"type":52,"value":66},{"type":52,"value":1155}," contract, which uses CREATE2 for consistent addresses across chains.",{"type":46,"tag":626,"props":1157,"children":1159},{"id":1158},"factory-addresses",[1160],{"type":52,"value":1161},"Factory Addresses",{"type":46,"tag":1163,"props":1164,"children":1165},"table",{},[1166,1190],{"type":46,"tag":1167,"props":1168,"children":1169},"thead",{},[1170],{"type":46,"tag":1171,"props":1172,"children":1173},"tr",{},[1174,1180,1185],{"type":46,"tag":1175,"props":1176,"children":1177},"th",{},[1178],{"type":52,"value":1179},"Version",{"type":46,"tag":1175,"props":1181,"children":1182},{},[1183],{"type":52,"value":1184},"Address",{"type":46,"tag":1175,"props":1186,"children":1187},{},[1188],{"type":52,"value":1189},"Status",{"type":46,"tag":1191,"props":1192,"children":1193},"tbody",{},[1194],{"type":46,"tag":1171,"props":1195,"children":1196},{},[1197,1203,1212],{"type":46,"tag":1198,"props":1199,"children":1200},"td",{},[1201],{"type":52,"value":1202},"v1.1.0",{"type":46,"tag":1198,"props":1204,"children":1205},{},[1206],{"type":46,"tag":61,"props":1207,"children":1209},{"className":1208},[],[1210],{"type":52,"value":1211},"0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5",{"type":46,"tag":1198,"props":1213,"children":1214},{},[1215],{"type":46,"tag":77,"props":1216,"children":1217},{},[1218],{"type":52,"value":1219},"Recommended",{"type":46,"tag":112,"props":1221,"children":1223},{"id":1222},"deploying-an-auction-instance",[1224],{"type":52,"value":1225},"Deploying an Auction Instance",{"type":46,"tag":626,"props":1227,"children":1229},{"id":1228},"step-0-clone-the-cca-repository",[1230],{"type":52,"value":1231},"Step 0: Clone the CCA Repository",{"type":46,"tag":55,"props":1233,"children":1234},{},[1235],{"type":52,"value":1236},"If you don't already have the CCA contracts locally, clone the repository and install dependencies:",{"type":46,"tag":646,"props":1238,"children":1240},{"className":648,"code":1239,"language":650,"meta":651,"style":651},"git clone https:\u002F\u002Fgithub.com\u002FUniswap\u002Fcontinuous-clearing-auction.git\ncd continuous-clearing-auction\nforge install\n",[1241],{"type":46,"tag":61,"props":1242,"children":1243},{"__ignoreMap":651},[1244,1262,1275],{"type":46,"tag":657,"props":1245,"children":1246},{"class":659,"line":660},[1247,1252,1257],{"type":46,"tag":657,"props":1248,"children":1249},{"style":664},[1250],{"type":52,"value":1251},"git",{"type":46,"tag":657,"props":1253,"children":1254},{"style":670},[1255],{"type":52,"value":1256}," clone",{"type":46,"tag":657,"props":1258,"children":1259},{"style":670},[1260],{"type":52,"value":1261}," https:\u002F\u002Fgithub.com\u002FUniswap\u002Fcontinuous-clearing-auction.git\n",{"type":46,"tag":657,"props":1263,"children":1264},{"class":659,"line":687},[1265,1270],{"type":46,"tag":657,"props":1266,"children":1267},{"style":1010},[1268],{"type":52,"value":1269},"cd",{"type":46,"tag":657,"props":1271,"children":1272},{"style":670},[1273],{"type":52,"value":1274}," continuous-clearing-auction\n",{"type":46,"tag":657,"props":1276,"children":1277},{"class":659,"line":701},[1278,1282],{"type":46,"tag":657,"props":1279,"children":1280},{"style":664},[1281],{"type":52,"value":667},{"type":46,"tag":657,"props":1283,"children":1284},{"style":670},[1285],{"type":52,"value":1286}," install\n",{"type":46,"tag":55,"props":1288,"children":1289},{},[1290],{"type":52,"value":1291},"This gives you access to the deployment scripts, contract ABIs, and test helpers referenced in later steps.",{"type":46,"tag":626,"props":1293,"children":1295},{"id":1294},"step-1-prepare-configuration",[1296],{"type":52,"value":1297},"Step 1: Prepare Configuration",{"type":46,"tag":55,"props":1299,"children":1300},{},[1301,1303,1309],{"type":52,"value":1302},"Ensure you have a valid configuration file (generated via the ",{"type":46,"tag":61,"props":1304,"children":1306},{"className":1305},[],[1307],{"type":52,"value":1308},"configurator",{"type":52,"value":1310}," skill or manually created).",{"type":46,"tag":55,"props":1312,"children":1313},{},[1314],{"type":52,"value":1315},"Example configuration file structure:",{"type":46,"tag":646,"props":1317,"children":1321},{"className":1318,"code":1319,"language":1320,"meta":651,"style":651},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"1\": {\n    \"token\": \"0x...\",\n    \"totalSupply\": 1e29,\n    \"currency\": \"0x0000000000000000000000000000000000000000\",\n    \"tokensRecipient\": \"0x...\",\n    \"fundsRecipient\": \"0x...\",\n    \"startBlock\": 24321000,\n    \"endBlock\": 24327001,\n    \"claimBlock\": 24327001,\n    \"tickSpacing\": 79228162514264337593543950,\n    \"validationHook\": \"0x0000000000000000000000000000000000000000\",\n    \"floorPrice\": 7922816251426433759354395000,\n    \"requiredCurrencyRaised\": 0,\n    \"supplySchedule\": [\n      { \"mps\": 1000, \"blockDelta\": 6000 },\n      { \"mps\": 4000000, \"blockDelta\": 1 }\n    ]\n  }\n}\n","json",[1322],{"type":46,"tag":61,"props":1323,"children":1324},{"__ignoreMap":651},[1325,1333,1360,1400,1430,1467,1503,1539,1568,1597,1625,1655,1692,1722,1752,1778,1841,1900,1909,1918],{"type":46,"tag":657,"props":1326,"children":1327},{"class":659,"line":660},[1328],{"type":46,"tag":657,"props":1329,"children":1330},{"style":964},[1331],{"type":52,"value":1332},"{\n",{"type":46,"tag":657,"props":1334,"children":1335},{"class":659,"line":687},[1336,1341,1347,1351,1355],{"type":46,"tag":657,"props":1337,"children":1338},{"style":964},[1339],{"type":52,"value":1340},"  \"",{"type":46,"tag":657,"props":1342,"children":1344},{"style":1343},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1345],{"type":52,"value":1346},"1",{"type":46,"tag":657,"props":1348,"children":1349},{"style":964},[1350],{"type":52,"value":481},{"type":46,"tag":657,"props":1352,"children":1353},{"style":964},[1354],{"type":52,"value":739},{"type":46,"tag":657,"props":1356,"children":1357},{"style":964},[1358],{"type":52,"value":1359}," {\n",{"type":46,"tag":657,"props":1361,"children":1362},{"class":659,"line":701},[1363,1368,1373,1377,1381,1386,1391,1395],{"type":46,"tag":657,"props":1364,"children":1365},{"style":964},[1366],{"type":52,"value":1367},"    \"",{"type":46,"tag":657,"props":1369,"children":1370},{"style":664},[1371],{"type":52,"value":1372},"token",{"type":46,"tag":657,"props":1374,"children":1375},{"style":964},[1376],{"type":52,"value":481},{"type":46,"tag":657,"props":1378,"children":1379},{"style":964},[1380],{"type":52,"value":739},{"type":46,"tag":657,"props":1382,"children":1383},{"style":964},[1384],{"type":52,"value":1385}," \"",{"type":46,"tag":657,"props":1387,"children":1388},{"style":670},[1389],{"type":52,"value":1390},"0x...",{"type":46,"tag":657,"props":1392,"children":1393},{"style":964},[1394],{"type":52,"value":481},{"type":46,"tag":657,"props":1396,"children":1397},{"style":964},[1398],{"type":52,"value":1399},",\n",{"type":46,"tag":657,"props":1401,"children":1402},{"class":659,"line":714},[1403,1407,1412,1416,1420,1426],{"type":46,"tag":657,"props":1404,"children":1405},{"style":964},[1406],{"type":52,"value":1367},{"type":46,"tag":657,"props":1408,"children":1409},{"style":664},[1410],{"type":52,"value":1411},"totalSupply",{"type":46,"tag":657,"props":1413,"children":1414},{"style":964},[1415],{"type":52,"value":481},{"type":46,"tag":657,"props":1417,"children":1418},{"style":964},[1419],{"type":52,"value":739},{"type":46,"tag":657,"props":1421,"children":1423},{"style":1422},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1424],{"type":52,"value":1425}," 1e29",{"type":46,"tag":657,"props":1427,"children":1428},{"style":964},[1429],{"type":52,"value":1399},{"type":46,"tag":657,"props":1431,"children":1432},{"class":659,"line":803},[1433,1437,1442,1446,1450,1454,1459,1463],{"type":46,"tag":657,"props":1434,"children":1435},{"style":964},[1436],{"type":52,"value":1367},{"type":46,"tag":657,"props":1438,"children":1439},{"style":664},[1440],{"type":52,"value":1441},"currency",{"type":46,"tag":657,"props":1443,"children":1444},{"style":964},[1445],{"type":52,"value":481},{"type":46,"tag":657,"props":1447,"children":1448},{"style":964},[1449],{"type":52,"value":739},{"type":46,"tag":657,"props":1451,"children":1452},{"style":964},[1453],{"type":52,"value":1385},{"type":46,"tag":657,"props":1455,"children":1456},{"style":670},[1457],{"type":52,"value":1458},"0x0000000000000000000000000000000000000000",{"type":46,"tag":657,"props":1460,"children":1461},{"style":964},[1462],{"type":52,"value":481},{"type":46,"tag":657,"props":1464,"children":1465},{"style":964},[1466],{"type":52,"value":1399},{"type":46,"tag":657,"props":1468,"children":1469},{"class":659,"line":823},[1470,1474,1479,1483,1487,1491,1495,1499],{"type":46,"tag":657,"props":1471,"children":1472},{"style":964},[1473],{"type":52,"value":1367},{"type":46,"tag":657,"props":1475,"children":1476},{"style":664},[1477],{"type":52,"value":1478},"tokensRecipient",{"type":46,"tag":657,"props":1480,"children":1481},{"style":964},[1482],{"type":52,"value":481},{"type":46,"tag":657,"props":1484,"children":1485},{"style":964},[1486],{"type":52,"value":739},{"type":46,"tag":657,"props":1488,"children":1489},{"style":964},[1490],{"type":52,"value":1385},{"type":46,"tag":657,"props":1492,"children":1493},{"style":670},[1494],{"type":52,"value":1390},{"type":46,"tag":657,"props":1496,"children":1497},{"style":964},[1498],{"type":52,"value":481},{"type":46,"tag":657,"props":1500,"children":1501},{"style":964},[1502],{"type":52,"value":1399},{"type":46,"tag":657,"props":1504,"children":1505},{"class":659,"line":835},[1506,1510,1515,1519,1523,1527,1531,1535],{"type":46,"tag":657,"props":1507,"children":1508},{"style":964},[1509],{"type":52,"value":1367},{"type":46,"tag":657,"props":1511,"children":1512},{"style":664},[1513],{"type":52,"value":1514},"fundsRecipient",{"type":46,"tag":657,"props":1516,"children":1517},{"style":964},[1518],{"type":52,"value":481},{"type":46,"tag":657,"props":1520,"children":1521},{"style":964},[1522],{"type":52,"value":739},{"type":46,"tag":657,"props":1524,"children":1525},{"style":964},[1526],{"type":52,"value":1385},{"type":46,"tag":657,"props":1528,"children":1529},{"style":670},[1530],{"type":52,"value":1390},{"type":46,"tag":657,"props":1532,"children":1533},{"style":964},[1534],{"type":52,"value":481},{"type":46,"tag":657,"props":1536,"children":1537},{"style":964},[1538],{"type":52,"value":1399},{"type":46,"tag":657,"props":1540,"children":1541},{"class":659,"line":847},[1542,1546,1551,1555,1559,1564],{"type":46,"tag":657,"props":1543,"children":1544},{"style":964},[1545],{"type":52,"value":1367},{"type":46,"tag":657,"props":1547,"children":1548},{"style":664},[1549],{"type":52,"value":1550},"startBlock",{"type":46,"tag":657,"props":1552,"children":1553},{"style":964},[1554],{"type":52,"value":481},{"type":46,"tag":657,"props":1556,"children":1557},{"style":964},[1558],{"type":52,"value":739},{"type":46,"tag":657,"props":1560,"children":1561},{"style":1422},[1562],{"type":52,"value":1563}," 24321000",{"type":46,"tag":657,"props":1565,"children":1566},{"style":964},[1567],{"type":52,"value":1399},{"type":46,"tag":657,"props":1569,"children":1570},{"class":659,"line":864},[1571,1575,1580,1584,1588,1593],{"type":46,"tag":657,"props":1572,"children":1573},{"style":964},[1574],{"type":52,"value":1367},{"type":46,"tag":657,"props":1576,"children":1577},{"style":664},[1578],{"type":52,"value":1579},"endBlock",{"type":46,"tag":657,"props":1581,"children":1582},{"style":964},[1583],{"type":52,"value":481},{"type":46,"tag":657,"props":1585,"children":1586},{"style":964},[1587],{"type":52,"value":739},{"type":46,"tag":657,"props":1589,"children":1590},{"style":1422},[1591],{"type":52,"value":1592}," 24327001",{"type":46,"tag":657,"props":1594,"children":1595},{"style":964},[1596],{"type":52,"value":1399},{"type":46,"tag":657,"props":1598,"children":1599},{"class":659,"line":1059},[1600,1604,1609,1613,1617,1621],{"type":46,"tag":657,"props":1601,"children":1602},{"style":964},[1603],{"type":52,"value":1367},{"type":46,"tag":657,"props":1605,"children":1606},{"style":664},[1607],{"type":52,"value":1608},"claimBlock",{"type":46,"tag":657,"props":1610,"children":1611},{"style":964},[1612],{"type":52,"value":481},{"type":46,"tag":657,"props":1614,"children":1615},{"style":964},[1616],{"type":52,"value":739},{"type":46,"tag":657,"props":1618,"children":1619},{"style":1422},[1620],{"type":52,"value":1592},{"type":46,"tag":657,"props":1622,"children":1623},{"style":964},[1624],{"type":52,"value":1399},{"type":46,"tag":657,"props":1626,"children":1628},{"class":659,"line":1627},11,[1629,1633,1638,1642,1646,1651],{"type":46,"tag":657,"props":1630,"children":1631},{"style":964},[1632],{"type":52,"value":1367},{"type":46,"tag":657,"props":1634,"children":1635},{"style":664},[1636],{"type":52,"value":1637},"tickSpacing",{"type":46,"tag":657,"props":1639,"children":1640},{"style":964},[1641],{"type":52,"value":481},{"type":46,"tag":657,"props":1643,"children":1644},{"style":964},[1645],{"type":52,"value":739},{"type":46,"tag":657,"props":1647,"children":1648},{"style":1422},[1649],{"type":52,"value":1650}," 79228162514264337593543950",{"type":46,"tag":657,"props":1652,"children":1653},{"style":964},[1654],{"type":52,"value":1399},{"type":46,"tag":657,"props":1656,"children":1658},{"class":659,"line":1657},12,[1659,1663,1668,1672,1676,1680,1684,1688],{"type":46,"tag":657,"props":1660,"children":1661},{"style":964},[1662],{"type":52,"value":1367},{"type":46,"tag":657,"props":1664,"children":1665},{"style":664},[1666],{"type":52,"value":1667},"validationHook",{"type":46,"tag":657,"props":1669,"children":1670},{"style":964},[1671],{"type":52,"value":481},{"type":46,"tag":657,"props":1673,"children":1674},{"style":964},[1675],{"type":52,"value":739},{"type":46,"tag":657,"props":1677,"children":1678},{"style":964},[1679],{"type":52,"value":1385},{"type":46,"tag":657,"props":1681,"children":1682},{"style":670},[1683],{"type":52,"value":1458},{"type":46,"tag":657,"props":1685,"children":1686},{"style":964},[1687],{"type":52,"value":481},{"type":46,"tag":657,"props":1689,"children":1690},{"style":964},[1691],{"type":52,"value":1399},{"type":46,"tag":657,"props":1693,"children":1695},{"class":659,"line":1694},13,[1696,1700,1705,1709,1713,1718],{"type":46,"tag":657,"props":1697,"children":1698},{"style":964},[1699],{"type":52,"value":1367},{"type":46,"tag":657,"props":1701,"children":1702},{"style":664},[1703],{"type":52,"value":1704},"floorPrice",{"type":46,"tag":657,"props":1706,"children":1707},{"style":964},[1708],{"type":52,"value":481},{"type":46,"tag":657,"props":1710,"children":1711},{"style":964},[1712],{"type":52,"value":739},{"type":46,"tag":657,"props":1714,"children":1715},{"style":1422},[1716],{"type":52,"value":1717}," 7922816251426433759354395000",{"type":46,"tag":657,"props":1719,"children":1720},{"style":964},[1721],{"type":52,"value":1399},{"type":46,"tag":657,"props":1723,"children":1725},{"class":659,"line":1724},14,[1726,1730,1735,1739,1743,1748],{"type":46,"tag":657,"props":1727,"children":1728},{"style":964},[1729],{"type":52,"value":1367},{"type":46,"tag":657,"props":1731,"children":1732},{"style":664},[1733],{"type":52,"value":1734},"requiredCurrencyRaised",{"type":46,"tag":657,"props":1736,"children":1737},{"style":964},[1738],{"type":52,"value":481},{"type":46,"tag":657,"props":1740,"children":1741},{"style":964},[1742],{"type":52,"value":739},{"type":46,"tag":657,"props":1744,"children":1745},{"style":1422},[1746],{"type":52,"value":1747}," 0",{"type":46,"tag":657,"props":1749,"children":1750},{"style":964},[1751],{"type":52,"value":1399},{"type":46,"tag":657,"props":1753,"children":1755},{"class":659,"line":1754},15,[1756,1760,1765,1769,1773],{"type":46,"tag":657,"props":1757,"children":1758},{"style":964},[1759],{"type":52,"value":1367},{"type":46,"tag":657,"props":1761,"children":1762},{"style":664},[1763],{"type":52,"value":1764},"supplySchedule",{"type":46,"tag":657,"props":1766,"children":1767},{"style":964},[1768],{"type":52,"value":481},{"type":46,"tag":657,"props":1770,"children":1771},{"style":964},[1772],{"type":52,"value":739},{"type":46,"tag":657,"props":1774,"children":1775},{"style":964},[1776],{"type":52,"value":1777}," [\n",{"type":46,"tag":657,"props":1779,"children":1781},{"class":659,"line":1780},16,[1782,1787,1791,1796,1800,1804,1809,1814,1818,1823,1827,1831,1836],{"type":46,"tag":657,"props":1783,"children":1784},{"style":964},[1785],{"type":52,"value":1786},"      {",{"type":46,"tag":657,"props":1788,"children":1789},{"style":964},[1790],{"type":52,"value":1385},{"type":46,"tag":657,"props":1792,"children":1793},{"style":1422},[1794],{"type":52,"value":1795},"mps",{"type":46,"tag":657,"props":1797,"children":1798},{"style":964},[1799],{"type":52,"value":481},{"type":46,"tag":657,"props":1801,"children":1802},{"style":964},[1803],{"type":52,"value":739},{"type":46,"tag":657,"props":1805,"children":1806},{"style":1422},[1807],{"type":52,"value":1808}," 1000",{"type":46,"tag":657,"props":1810,"children":1811},{"style":964},[1812],{"type":52,"value":1813},",",{"type":46,"tag":657,"props":1815,"children":1816},{"style":964},[1817],{"type":52,"value":1385},{"type":46,"tag":657,"props":1819,"children":1820},{"style":1422},[1821],{"type":52,"value":1822},"blockDelta",{"type":46,"tag":657,"props":1824,"children":1825},{"style":964},[1826],{"type":52,"value":481},{"type":46,"tag":657,"props":1828,"children":1829},{"style":964},[1830],{"type":52,"value":739},{"type":46,"tag":657,"props":1832,"children":1833},{"style":1422},[1834],{"type":52,"value":1835}," 6000",{"type":46,"tag":657,"props":1837,"children":1838},{"style":964},[1839],{"type":52,"value":1840}," },\n",{"type":46,"tag":657,"props":1842,"children":1844},{"class":659,"line":1843},17,[1845,1849,1853,1857,1861,1865,1870,1874,1878,1882,1886,1890,1895],{"type":46,"tag":657,"props":1846,"children":1847},{"style":964},[1848],{"type":52,"value":1786},{"type":46,"tag":657,"props":1850,"children":1851},{"style":964},[1852],{"type":52,"value":1385},{"type":46,"tag":657,"props":1854,"children":1855},{"style":1422},[1856],{"type":52,"value":1795},{"type":46,"tag":657,"props":1858,"children":1859},{"style":964},[1860],{"type":52,"value":481},{"type":46,"tag":657,"props":1862,"children":1863},{"style":964},[1864],{"type":52,"value":739},{"type":46,"tag":657,"props":1866,"children":1867},{"style":1422},[1868],{"type":52,"value":1869}," 4000000",{"type":46,"tag":657,"props":1871,"children":1872},{"style":964},[1873],{"type":52,"value":1813},{"type":46,"tag":657,"props":1875,"children":1876},{"style":964},[1877],{"type":52,"value":1385},{"type":46,"tag":657,"props":1879,"children":1880},{"style":1422},[1881],{"type":52,"value":1822},{"type":46,"tag":657,"props":1883,"children":1884},{"style":964},[1885],{"type":52,"value":481},{"type":46,"tag":657,"props":1887,"children":1888},{"style":964},[1889],{"type":52,"value":739},{"type":46,"tag":657,"props":1891,"children":1892},{"style":1422},[1893],{"type":52,"value":1894}," 1",{"type":46,"tag":657,"props":1896,"children":1897},{"style":964},[1898],{"type":52,"value":1899}," }\n",{"type":46,"tag":657,"props":1901,"children":1903},{"class":659,"line":1902},18,[1904],{"type":46,"tag":657,"props":1905,"children":1906},{"style":964},[1907],{"type":52,"value":1908},"    ]\n",{"type":46,"tag":657,"props":1910,"children":1912},{"class":659,"line":1911},19,[1913],{"type":46,"tag":657,"props":1914,"children":1915},{"style":964},[1916],{"type":52,"value":1917},"  }\n",{"type":46,"tag":657,"props":1919,"children":1921},{"class":659,"line":1920},20,[1922],{"type":46,"tag":657,"props":1923,"children":1924},{"style":964},[1925],{"type":52,"value":1926},"}\n",{"type":46,"tag":626,"props":1928,"children":1930},{"id":1929},"step-2-validate-configuration",[1931],{"type":52,"value":1932},"Step 2: Validate Configuration",{"type":46,"tag":55,"props":1934,"children":1935},{},[1936],{"type":52,"value":1937},"Before deployment, verify the configuration passes all validation rules (see Validation Rules section).",{"type":46,"tag":626,"props":1939,"children":1941},{"id":1940},"step-3-deploy-via-factory",[1942],{"type":52,"value":1943},"Step 3: Deploy via Factory",{"type":46,"tag":55,"props":1945,"children":1946},{},[1947],{"type":52,"value":1948},"The factory has a simple interface:",{"type":46,"tag":646,"props":1950,"children":1954},{"className":1951,"code":1952,"language":1953,"meta":651,"style":651},"language-solidity shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","function initializeDistribution(\n    address token,\n    uint256 amount,\n    bytes calldata configData,\n    bytes32 salt\n) external returns (IDistributionContract);\n","solidity",[1955],{"type":46,"tag":61,"props":1956,"children":1957},{"__ignoreMap":651},[1958,1966,1974,1982,1990,1998],{"type":46,"tag":657,"props":1959,"children":1960},{"class":659,"line":660},[1961],{"type":46,"tag":657,"props":1962,"children":1963},{},[1964],{"type":52,"value":1965},"function initializeDistribution(\n",{"type":46,"tag":657,"props":1967,"children":1968},{"class":659,"line":687},[1969],{"type":46,"tag":657,"props":1970,"children":1971},{},[1972],{"type":52,"value":1973},"    address token,\n",{"type":46,"tag":657,"props":1975,"children":1976},{"class":659,"line":701},[1977],{"type":46,"tag":657,"props":1978,"children":1979},{},[1980],{"type":52,"value":1981},"    uint256 amount,\n",{"type":46,"tag":657,"props":1983,"children":1984},{"class":659,"line":714},[1985],{"type":46,"tag":657,"props":1986,"children":1987},{},[1988],{"type":52,"value":1989},"    bytes calldata configData,\n",{"type":46,"tag":657,"props":1991,"children":1992},{"class":659,"line":803},[1993],{"type":46,"tag":657,"props":1994,"children":1995},{},[1996],{"type":52,"value":1997},"    bytes32 salt\n",{"type":46,"tag":657,"props":1999,"children":2000},{"class":659,"line":823},[2001],{"type":46,"tag":657,"props":2002,"children":2003},{},[2004],{"type":52,"value":2005},") external returns (IDistributionContract);\n",{"type":46,"tag":55,"props":2007,"children":2008},{},[2009],{"type":52,"value":2010},"Where:",{"type":46,"tag":341,"props":2012,"children":2013},{},[2014,2024,2035,2054],{"type":46,"tag":128,"props":2015,"children":2016},{},[2017,2022],{"type":46,"tag":61,"props":2018,"children":2020},{"className":2019},[],[2021],{"type":52,"value":1372},{"type":52,"value":2023},": Address of the token to be sold",{"type":46,"tag":128,"props":2025,"children":2026},{},[2027,2033],{"type":46,"tag":61,"props":2028,"children":2030},{"className":2029},[],[2031],{"type":52,"value":2032},"amount",{"type":52,"value":2034},": Amount of tokens to sell in the auction",{"type":46,"tag":128,"props":2036,"children":2037},{},[2038,2044,2046,2052],{"type":46,"tag":61,"props":2039,"children":2041},{"className":2040},[],[2042],{"type":52,"value":2043},"configData",{"type":52,"value":2045},": ABI-encoded ",{"type":46,"tag":61,"props":2047,"children":2049},{"className":2048},[],[2050],{"type":52,"value":2051},"AuctionParameters",{"type":52,"value":2053}," struct",{"type":46,"tag":128,"props":2055,"children":2056},{},[2057,2063],{"type":46,"tag":61,"props":2058,"children":2060},{"className":2059},[],[2061],{"type":52,"value":2062},"salt",{"type":52,"value":2064},": Optional bytes32 value for vanity address mining",{"type":46,"tag":626,"props":2066,"children":2068},{"id":2067},"step-35-encode-configuration-to-configdata",[2069],{"type":52,"value":2070},"Step 3.5: Encode Configuration to configData",{"type":46,"tag":55,"props":2072,"children":2073},{},[2074,2076,2082,2084,2089,2091,2096],{"type":52,"value":2075},"The factory's ",{"type":46,"tag":61,"props":2077,"children":2079},{"className":2078},[],[2080],{"type":52,"value":2081},"initializeDistribution",{"type":52,"value":2083}," expects ",{"type":46,"tag":61,"props":2085,"children":2087},{"className":2086},[],[2088],{"type":52,"value":2043},{"type":52,"value":2090}," as ABI-encoded ",{"type":46,"tag":61,"props":2092,"children":2094},{"className":2093},[],[2095],{"type":52,"value":2051},{"type":52,"value":2097},". Convert your JSON config to encoded bytes:",{"type":46,"tag":55,"props":2099,"children":2100},{},[2101],{"type":46,"tag":77,"props":2102,"children":2103},{},[2104],{"type":52,"value":2105},"Using cast (Foundry CLI):",{"type":46,"tag":646,"props":2107,"children":2109},{"className":648,"code":2108,"language":650,"meta":651,"style":651},"# Encode the AuctionParameters struct\ncast abi-encode \"initializeDistribution(address,uint256,bytes,bytes32)\" \\\n  \"$TOKEN_ADDRESS\" \\\n  \"$TOTAL_SUPPLY\" \\\n  \"$(cast abi-encode \"(address,address,address,uint64,uint64,uint64,uint256,address,uint256,uint128,bytes)\" \\\n    \"$CURRENCY\" \\\n    \"$TOKENS_RECIPIENT\" \\\n    \"$FUNDS_RECIPIENT\" \\\n    \"$START_BLOCK\" \\\n    \"$END_BLOCK\" \\\n    \"$CLAIM_BLOCK\" \\\n    \"$TICK_SPACING\" \\\n    \"$VALIDATION_HOOK\" \\\n    \"$FLOOR_PRICE\" \\\n    \"$REQUIRED_CURRENCY_RAISED\" \\\n    \"$ENCODED_SUPPLY_SCHEDULE\")\" \\\n  \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n",[2110],{"type":46,"tag":61,"props":2111,"children":2112},{"__ignoreMap":651},[2113,2121,2150,2170,2190,2224,2244,2264,2284,2304,2324,2344,2364,2384,2404,2424,2445],{"type":46,"tag":657,"props":2114,"children":2115},{"class":659,"line":660},[2116],{"type":46,"tag":657,"props":2117,"children":2118},{"style":752},[2119],{"type":52,"value":2120},"# Encode the AuctionParameters struct\n",{"type":46,"tag":657,"props":2122,"children":2123},{"class":659,"line":687},[2124,2128,2133,2137,2142,2146],{"type":46,"tag":657,"props":2125,"children":2126},{"style":664},[2127],{"type":52,"value":763},{"type":46,"tag":657,"props":2129,"children":2130},{"style":670},[2131],{"type":52,"value":2132}," abi-encode",{"type":46,"tag":657,"props":2134,"children":2135},{"style":964},[2136],{"type":52,"value":1385},{"type":46,"tag":657,"props":2138,"children":2139},{"style":670},[2140],{"type":52,"value":2141},"initializeDistribution(address,uint256,bytes,bytes32)",{"type":46,"tag":657,"props":2143,"children":2144},{"style":964},[2145],{"type":52,"value":481},{"type":46,"tag":657,"props":2147,"children":2148},{"style":681},[2149],{"type":52,"value":684},{"type":46,"tag":657,"props":2151,"children":2152},{"class":659,"line":701},[2153,2157,2162,2166],{"type":46,"tag":657,"props":2154,"children":2155},{"style":964},[2156],{"type":52,"value":1340},{"type":46,"tag":657,"props":2158,"children":2159},{"style":681},[2160],{"type":52,"value":2161},"$TOKEN_ADDRESS",{"type":46,"tag":657,"props":2163,"children":2164},{"style":964},[2165],{"type":52,"value":481},{"type":46,"tag":657,"props":2167,"children":2168},{"style":681},[2169],{"type":52,"value":684},{"type":46,"tag":657,"props":2171,"children":2172},{"class":659,"line":714},[2173,2177,2182,2186],{"type":46,"tag":657,"props":2174,"children":2175},{"style":964},[2176],{"type":52,"value":1340},{"type":46,"tag":657,"props":2178,"children":2179},{"style":681},[2180],{"type":52,"value":2181},"$TOTAL_SUPPLY",{"type":46,"tag":657,"props":2183,"children":2184},{"style":964},[2185],{"type":52,"value":481},{"type":46,"tag":657,"props":2187,"children":2188},{"style":681},[2189],{"type":52,"value":684},{"type":46,"tag":657,"props":2191,"children":2192},{"class":659,"line":803},[2193,2198,2202,2207,2211,2216,2220],{"type":46,"tag":657,"props":2194,"children":2195},{"style":964},[2196],{"type":52,"value":2197},"  \"$(",{"type":46,"tag":657,"props":2199,"children":2200},{"style":664},[2201],{"type":52,"value":763},{"type":46,"tag":657,"props":2203,"children":2204},{"style":670},[2205],{"type":52,"value":2206}," abi-encode ",{"type":46,"tag":657,"props":2208,"children":2209},{"style":964},[2210],{"type":52,"value":481},{"type":46,"tag":657,"props":2212,"children":2213},{"style":670},[2214],{"type":52,"value":2215},"(address,address,address,uint64,uint64,uint64,uint256,address,uint256,uint128,bytes)",{"type":46,"tag":657,"props":2217,"children":2218},{"style":964},[2219],{"type":52,"value":481},{"type":46,"tag":657,"props":2221,"children":2222},{"style":681},[2223],{"type":52,"value":684},{"type":46,"tag":657,"props":2225,"children":2226},{"class":659,"line":823},[2227,2231,2236,2240],{"type":46,"tag":657,"props":2228,"children":2229},{"style":964},[2230],{"type":52,"value":1367},{"type":46,"tag":657,"props":2232,"children":2233},{"style":681},[2234],{"type":52,"value":2235},"$CURRENCY",{"type":46,"tag":657,"props":2237,"children":2238},{"style":964},[2239],{"type":52,"value":481},{"type":46,"tag":657,"props":2241,"children":2242},{"style":681},[2243],{"type":52,"value":684},{"type":46,"tag":657,"props":2245,"children":2246},{"class":659,"line":835},[2247,2251,2256,2260],{"type":46,"tag":657,"props":2248,"children":2249},{"style":964},[2250],{"type":52,"value":1367},{"type":46,"tag":657,"props":2252,"children":2253},{"style":681},[2254],{"type":52,"value":2255},"$TOKENS_RECIPIENT",{"type":46,"tag":657,"props":2257,"children":2258},{"style":964},[2259],{"type":52,"value":481},{"type":46,"tag":657,"props":2261,"children":2262},{"style":681},[2263],{"type":52,"value":684},{"type":46,"tag":657,"props":2265,"children":2266},{"class":659,"line":847},[2267,2271,2276,2280],{"type":46,"tag":657,"props":2268,"children":2269},{"style":964},[2270],{"type":52,"value":1367},{"type":46,"tag":657,"props":2272,"children":2273},{"style":681},[2274],{"type":52,"value":2275},"$FUNDS_RECIPIENT",{"type":46,"tag":657,"props":2277,"children":2278},{"style":964},[2279],{"type":52,"value":481},{"type":46,"tag":657,"props":2281,"children":2282},{"style":681},[2283],{"type":52,"value":684},{"type":46,"tag":657,"props":2285,"children":2286},{"class":659,"line":864},[2287,2291,2296,2300],{"type":46,"tag":657,"props":2288,"children":2289},{"style":964},[2290],{"type":52,"value":1367},{"type":46,"tag":657,"props":2292,"children":2293},{"style":681},[2294],{"type":52,"value":2295},"$START_BLOCK",{"type":46,"tag":657,"props":2297,"children":2298},{"style":964},[2299],{"type":52,"value":481},{"type":46,"tag":657,"props":2301,"children":2302},{"style":681},[2303],{"type":52,"value":684},{"type":46,"tag":657,"props":2305,"children":2306},{"class":659,"line":1059},[2307,2311,2316,2320],{"type":46,"tag":657,"props":2308,"children":2309},{"style":964},[2310],{"type":52,"value":1367},{"type":46,"tag":657,"props":2312,"children":2313},{"style":681},[2314],{"type":52,"value":2315},"$END_BLOCK",{"type":46,"tag":657,"props":2317,"children":2318},{"style":964},[2319],{"type":52,"value":481},{"type":46,"tag":657,"props":2321,"children":2322},{"style":681},[2323],{"type":52,"value":684},{"type":46,"tag":657,"props":2325,"children":2326},{"class":659,"line":1627},[2327,2331,2336,2340],{"type":46,"tag":657,"props":2328,"children":2329},{"style":964},[2330],{"type":52,"value":1367},{"type":46,"tag":657,"props":2332,"children":2333},{"style":681},[2334],{"type":52,"value":2335},"$CLAIM_BLOCK",{"type":46,"tag":657,"props":2337,"children":2338},{"style":964},[2339],{"type":52,"value":481},{"type":46,"tag":657,"props":2341,"children":2342},{"style":681},[2343],{"type":52,"value":684},{"type":46,"tag":657,"props":2345,"children":2346},{"class":659,"line":1657},[2347,2351,2356,2360],{"type":46,"tag":657,"props":2348,"children":2349},{"style":964},[2350],{"type":52,"value":1367},{"type":46,"tag":657,"props":2352,"children":2353},{"style":681},[2354],{"type":52,"value":2355},"$TICK_SPACING",{"type":46,"tag":657,"props":2357,"children":2358},{"style":964},[2359],{"type":52,"value":481},{"type":46,"tag":657,"props":2361,"children":2362},{"style":681},[2363],{"type":52,"value":684},{"type":46,"tag":657,"props":2365,"children":2366},{"class":659,"line":1694},[2367,2371,2376,2380],{"type":46,"tag":657,"props":2368,"children":2369},{"style":964},[2370],{"type":52,"value":1367},{"type":46,"tag":657,"props":2372,"children":2373},{"style":681},[2374],{"type":52,"value":2375},"$VALIDATION_HOOK",{"type":46,"tag":657,"props":2377,"children":2378},{"style":964},[2379],{"type":52,"value":481},{"type":46,"tag":657,"props":2381,"children":2382},{"style":681},[2383],{"type":52,"value":684},{"type":46,"tag":657,"props":2385,"children":2386},{"class":659,"line":1724},[2387,2391,2396,2400],{"type":46,"tag":657,"props":2388,"children":2389},{"style":964},[2390],{"type":52,"value":1367},{"type":46,"tag":657,"props":2392,"children":2393},{"style":681},[2394],{"type":52,"value":2395},"$FLOOR_PRICE",{"type":46,"tag":657,"props":2397,"children":2398},{"style":964},[2399],{"type":52,"value":481},{"type":46,"tag":657,"props":2401,"children":2402},{"style":681},[2403],{"type":52,"value":684},{"type":46,"tag":657,"props":2405,"children":2406},{"class":659,"line":1754},[2407,2411,2416,2420],{"type":46,"tag":657,"props":2408,"children":2409},{"style":964},[2410],{"type":52,"value":1367},{"type":46,"tag":657,"props":2412,"children":2413},{"style":681},[2414],{"type":52,"value":2415},"$REQUIRED_CURRENCY_RAISED",{"type":46,"tag":657,"props":2417,"children":2418},{"style":964},[2419],{"type":52,"value":481},{"type":46,"tag":657,"props":2421,"children":2422},{"style":681},[2423],{"type":52,"value":684},{"type":46,"tag":657,"props":2425,"children":2426},{"class":659,"line":1780},[2427,2431,2436,2441],{"type":46,"tag":657,"props":2428,"children":2429},{"style":964},[2430],{"type":52,"value":1367},{"type":46,"tag":657,"props":2432,"children":2433},{"style":681},[2434],{"type":52,"value":2435},"$ENCODED_SUPPLY_SCHEDULE",{"type":46,"tag":657,"props":2437,"children":2438},{"style":964},[2439],{"type":52,"value":2440},"\")\"",{"type":46,"tag":657,"props":2442,"children":2443},{"style":681},[2444],{"type":52,"value":684},{"type":46,"tag":657,"props":2446,"children":2447},{"class":659,"line":1843},[2448,2452,2457],{"type":46,"tag":657,"props":2449,"children":2450},{"style":964},[2451],{"type":52,"value":1340},{"type":46,"tag":657,"props":2453,"children":2454},{"style":670},[2455],{"type":52,"value":2456},"0x0000000000000000000000000000000000000000000000000000000000000000",{"type":46,"tag":657,"props":2458,"children":2459},{"style":964},[2460],{"type":52,"value":2461},"\"\n",{"type":46,"tag":55,"props":2463,"children":2464},{},[2465],{"type":46,"tag":77,"props":2466,"children":2467},{},[2468],{"type":52,"value":2469},"Using a Foundry Script:",{"type":46,"tag":646,"props":2471,"children":2473},{"className":1951,"code":2472,"language":1953,"meta":651,"style":651},"\u002F\u002F script\u002FDeployAuction.s.sol\npragma solidity ^0.8.24;\n\nimport \"forge-std\u002FScript.sol\";\n\ninterface ICCAFactory {\n    function initializeDistribution(\n        address token,\n        uint256 amount,\n        bytes calldata configData,\n        bytes32 salt\n    ) external returns (address);\n}\n\ncontract DeployAuction is Script {\n    function run() external {\n        \u002F\u002F Load config values\n        address token = vm.envAddress(\"TOKEN\");\n        uint256 amount = vm.envUint(\"TOTAL_SUPPLY\");\n\n        \u002F\u002F Encode AuctionParameters\n        bytes memory configData = abi.encode(\n            vm.envAddress(\"CURRENCY\"),\n            vm.envAddress(\"TOKENS_RECIPIENT\"),\n            vm.envAddress(\"FUNDS_RECIPIENT\"),\n            uint64(vm.envUint(\"START_BLOCK\")),\n            uint64(vm.envUint(\"END_BLOCK\")),\n            uint64(vm.envUint(\"CLAIM_BLOCK\")),\n            vm.envUint(\"TICK_SPACING\"),\n            vm.envAddress(\"VALIDATION_HOOK\"),\n            vm.envUint(\"FLOOR_PRICE\"),\n            uint128(vm.envUint(\"REQUIRED_CURRENCY_RAISED\")),\n            vm.envBytes(\"ENCODED_SUPPLY_SCHEDULE\")\n        );\n\n        vm.startBroadcast();\n\n        \u002F\u002F Approve token transfer to factory\n        IERC20(token).approve(\n            0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5,\n            amount\n        );\n\n        \u002F\u002F Deploy auction\n        address auction = ICCAFactory(\n            0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5\n        ).initializeDistribution(\n            token,\n            amount,\n            configData,\n            bytes32(0) \u002F\u002F salt\n        );\n\n        vm.stopBroadcast();\n\n        console.log(\"Auction deployed at:\", auction);\n    }\n}\n",[2474],{"type":46,"tag":61,"props":2475,"children":2476},{"__ignoreMap":651},[2477,2485,2493,2500,2508,2515,2523,2531,2539,2547,2555,2563,2571,2578,2585,2593,2601,2609,2617,2625,2632,2641,2650,2659,2668,2677,2686,2695,2704,2713,2722,2731,2740,2749,2758,2765,2774,2782,2791,2800,2809,2818,2826,2834,2843,2852,2861,2870,2879,2888,2897,2906,2914,2922,2931,2939,2948,2957],{"type":46,"tag":657,"props":2478,"children":2479},{"class":659,"line":660},[2480],{"type":46,"tag":657,"props":2481,"children":2482},{},[2483],{"type":52,"value":2484},"\u002F\u002F script\u002FDeployAuction.s.sol\n",{"type":46,"tag":657,"props":2486,"children":2487},{"class":659,"line":687},[2488],{"type":46,"tag":657,"props":2489,"children":2490},{},[2491],{"type":52,"value":2492},"pragma solidity ^0.8.24;\n",{"type":46,"tag":657,"props":2494,"children":2495},{"class":659,"line":701},[2496],{"type":46,"tag":657,"props":2497,"children":2498},{"emptyLinePlaceholder":789},[2499],{"type":52,"value":792},{"type":46,"tag":657,"props":2501,"children":2502},{"class":659,"line":714},[2503],{"type":46,"tag":657,"props":2504,"children":2505},{},[2506],{"type":52,"value":2507},"import \"forge-std\u002FScript.sol\";\n",{"type":46,"tag":657,"props":2509,"children":2510},{"class":659,"line":803},[2511],{"type":46,"tag":657,"props":2512,"children":2513},{"emptyLinePlaceholder":789},[2514],{"type":52,"value":792},{"type":46,"tag":657,"props":2516,"children":2517},{"class":659,"line":823},[2518],{"type":46,"tag":657,"props":2519,"children":2520},{},[2521],{"type":52,"value":2522},"interface ICCAFactory {\n",{"type":46,"tag":657,"props":2524,"children":2525},{"class":659,"line":835},[2526],{"type":46,"tag":657,"props":2527,"children":2528},{},[2529],{"type":52,"value":2530},"    function initializeDistribution(\n",{"type":46,"tag":657,"props":2532,"children":2533},{"class":659,"line":847},[2534],{"type":46,"tag":657,"props":2535,"children":2536},{},[2537],{"type":52,"value":2538},"        address token,\n",{"type":46,"tag":657,"props":2540,"children":2541},{"class":659,"line":864},[2542],{"type":46,"tag":657,"props":2543,"children":2544},{},[2545],{"type":52,"value":2546},"        uint256 amount,\n",{"type":46,"tag":657,"props":2548,"children":2549},{"class":659,"line":1059},[2550],{"type":46,"tag":657,"props":2551,"children":2552},{},[2553],{"type":52,"value":2554},"        bytes calldata configData,\n",{"type":46,"tag":657,"props":2556,"children":2557},{"class":659,"line":1627},[2558],{"type":46,"tag":657,"props":2559,"children":2560},{},[2561],{"type":52,"value":2562},"        bytes32 salt\n",{"type":46,"tag":657,"props":2564,"children":2565},{"class":659,"line":1657},[2566],{"type":46,"tag":657,"props":2567,"children":2568},{},[2569],{"type":52,"value":2570},"    ) external returns (address);\n",{"type":46,"tag":657,"props":2572,"children":2573},{"class":659,"line":1694},[2574],{"type":46,"tag":657,"props":2575,"children":2576},{},[2577],{"type":52,"value":1926},{"type":46,"tag":657,"props":2579,"children":2580},{"class":659,"line":1724},[2581],{"type":46,"tag":657,"props":2582,"children":2583},{"emptyLinePlaceholder":789},[2584],{"type":52,"value":792},{"type":46,"tag":657,"props":2586,"children":2587},{"class":659,"line":1754},[2588],{"type":46,"tag":657,"props":2589,"children":2590},{},[2591],{"type":52,"value":2592},"contract DeployAuction is Script {\n",{"type":46,"tag":657,"props":2594,"children":2595},{"class":659,"line":1780},[2596],{"type":46,"tag":657,"props":2597,"children":2598},{},[2599],{"type":52,"value":2600},"    function run() external {\n",{"type":46,"tag":657,"props":2602,"children":2603},{"class":659,"line":1843},[2604],{"type":46,"tag":657,"props":2605,"children":2606},{},[2607],{"type":52,"value":2608},"        \u002F\u002F Load config values\n",{"type":46,"tag":657,"props":2610,"children":2611},{"class":659,"line":1902},[2612],{"type":46,"tag":657,"props":2613,"children":2614},{},[2615],{"type":52,"value":2616},"        address token = vm.envAddress(\"TOKEN\");\n",{"type":46,"tag":657,"props":2618,"children":2619},{"class":659,"line":1911},[2620],{"type":46,"tag":657,"props":2621,"children":2622},{},[2623],{"type":52,"value":2624},"        uint256 amount = vm.envUint(\"TOTAL_SUPPLY\");\n",{"type":46,"tag":657,"props":2626,"children":2627},{"class":659,"line":1920},[2628],{"type":46,"tag":657,"props":2629,"children":2630},{"emptyLinePlaceholder":789},[2631],{"type":52,"value":792},{"type":46,"tag":657,"props":2633,"children":2635},{"class":659,"line":2634},21,[2636],{"type":46,"tag":657,"props":2637,"children":2638},{},[2639],{"type":52,"value":2640},"        \u002F\u002F Encode AuctionParameters\n",{"type":46,"tag":657,"props":2642,"children":2644},{"class":659,"line":2643},22,[2645],{"type":46,"tag":657,"props":2646,"children":2647},{},[2648],{"type":52,"value":2649},"        bytes memory configData = abi.encode(\n",{"type":46,"tag":657,"props":2651,"children":2653},{"class":659,"line":2652},23,[2654],{"type":46,"tag":657,"props":2655,"children":2656},{},[2657],{"type":52,"value":2658},"            vm.envAddress(\"CURRENCY\"),\n",{"type":46,"tag":657,"props":2660,"children":2662},{"class":659,"line":2661},24,[2663],{"type":46,"tag":657,"props":2664,"children":2665},{},[2666],{"type":52,"value":2667},"            vm.envAddress(\"TOKENS_RECIPIENT\"),\n",{"type":46,"tag":657,"props":2669,"children":2671},{"class":659,"line":2670},25,[2672],{"type":46,"tag":657,"props":2673,"children":2674},{},[2675],{"type":52,"value":2676},"            vm.envAddress(\"FUNDS_RECIPIENT\"),\n",{"type":46,"tag":657,"props":2678,"children":2680},{"class":659,"line":2679},26,[2681],{"type":46,"tag":657,"props":2682,"children":2683},{},[2684],{"type":52,"value":2685},"            uint64(vm.envUint(\"START_BLOCK\")),\n",{"type":46,"tag":657,"props":2687,"children":2689},{"class":659,"line":2688},27,[2690],{"type":46,"tag":657,"props":2691,"children":2692},{},[2693],{"type":52,"value":2694},"            uint64(vm.envUint(\"END_BLOCK\")),\n",{"type":46,"tag":657,"props":2696,"children":2698},{"class":659,"line":2697},28,[2699],{"type":46,"tag":657,"props":2700,"children":2701},{},[2702],{"type":52,"value":2703},"            uint64(vm.envUint(\"CLAIM_BLOCK\")),\n",{"type":46,"tag":657,"props":2705,"children":2707},{"class":659,"line":2706},29,[2708],{"type":46,"tag":657,"props":2709,"children":2710},{},[2711],{"type":52,"value":2712},"            vm.envUint(\"TICK_SPACING\"),\n",{"type":46,"tag":657,"props":2714,"children":2716},{"class":659,"line":2715},30,[2717],{"type":46,"tag":657,"props":2718,"children":2719},{},[2720],{"type":52,"value":2721},"            vm.envAddress(\"VALIDATION_HOOK\"),\n",{"type":46,"tag":657,"props":2723,"children":2725},{"class":659,"line":2724},31,[2726],{"type":46,"tag":657,"props":2727,"children":2728},{},[2729],{"type":52,"value":2730},"            vm.envUint(\"FLOOR_PRICE\"),\n",{"type":46,"tag":657,"props":2732,"children":2734},{"class":659,"line":2733},32,[2735],{"type":46,"tag":657,"props":2736,"children":2737},{},[2738],{"type":52,"value":2739},"            uint128(vm.envUint(\"REQUIRED_CURRENCY_RAISED\")),\n",{"type":46,"tag":657,"props":2741,"children":2743},{"class":659,"line":2742},33,[2744],{"type":46,"tag":657,"props":2745,"children":2746},{},[2747],{"type":52,"value":2748},"            vm.envBytes(\"ENCODED_SUPPLY_SCHEDULE\")\n",{"type":46,"tag":657,"props":2750,"children":2752},{"class":659,"line":2751},34,[2753],{"type":46,"tag":657,"props":2754,"children":2755},{},[2756],{"type":52,"value":2757},"        );\n",{"type":46,"tag":657,"props":2759,"children":2760},{"class":659,"line":29},[2761],{"type":46,"tag":657,"props":2762,"children":2763},{"emptyLinePlaceholder":789},[2764],{"type":52,"value":792},{"type":46,"tag":657,"props":2766,"children":2768},{"class":659,"line":2767},36,[2769],{"type":46,"tag":657,"props":2770,"children":2771},{},[2772],{"type":52,"value":2773},"        vm.startBroadcast();\n",{"type":46,"tag":657,"props":2775,"children":2777},{"class":659,"line":2776},37,[2778],{"type":46,"tag":657,"props":2779,"children":2780},{"emptyLinePlaceholder":789},[2781],{"type":52,"value":792},{"type":46,"tag":657,"props":2783,"children":2785},{"class":659,"line":2784},38,[2786],{"type":46,"tag":657,"props":2787,"children":2788},{},[2789],{"type":52,"value":2790},"        \u002F\u002F Approve token transfer to factory\n",{"type":46,"tag":657,"props":2792,"children":2794},{"class":659,"line":2793},39,[2795],{"type":46,"tag":657,"props":2796,"children":2797},{},[2798],{"type":52,"value":2799},"        IERC20(token).approve(\n",{"type":46,"tag":657,"props":2801,"children":2803},{"class":659,"line":2802},40,[2804],{"type":46,"tag":657,"props":2805,"children":2806},{},[2807],{"type":52,"value":2808},"            0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5,\n",{"type":46,"tag":657,"props":2810,"children":2812},{"class":659,"line":2811},41,[2813],{"type":46,"tag":657,"props":2814,"children":2815},{},[2816],{"type":52,"value":2817},"            amount\n",{"type":46,"tag":657,"props":2819,"children":2821},{"class":659,"line":2820},42,[2822],{"type":46,"tag":657,"props":2823,"children":2824},{},[2825],{"type":52,"value":2757},{"type":46,"tag":657,"props":2827,"children":2829},{"class":659,"line":2828},43,[2830],{"type":46,"tag":657,"props":2831,"children":2832},{"emptyLinePlaceholder":789},[2833],{"type":52,"value":792},{"type":46,"tag":657,"props":2835,"children":2837},{"class":659,"line":2836},44,[2838],{"type":46,"tag":657,"props":2839,"children":2840},{},[2841],{"type":52,"value":2842},"        \u002F\u002F Deploy auction\n",{"type":46,"tag":657,"props":2844,"children":2846},{"class":659,"line":2845},45,[2847],{"type":46,"tag":657,"props":2848,"children":2849},{},[2850],{"type":52,"value":2851},"        address auction = ICCAFactory(\n",{"type":46,"tag":657,"props":2853,"children":2855},{"class":659,"line":2854},46,[2856],{"type":46,"tag":657,"props":2857,"children":2858},{},[2859],{"type":52,"value":2860},"            0xCCccCcCAE7503Cac057829BF2811De42E16e0bD5\n",{"type":46,"tag":657,"props":2862,"children":2864},{"class":659,"line":2863},47,[2865],{"type":46,"tag":657,"props":2866,"children":2867},{},[2868],{"type":52,"value":2869},"        ).initializeDistribution(\n",{"type":46,"tag":657,"props":2871,"children":2873},{"class":659,"line":2872},48,[2874],{"type":46,"tag":657,"props":2875,"children":2876},{},[2877],{"type":52,"value":2878},"            token,\n",{"type":46,"tag":657,"props":2880,"children":2882},{"class":659,"line":2881},49,[2883],{"type":46,"tag":657,"props":2884,"children":2885},{},[2886],{"type":52,"value":2887},"            amount,\n",{"type":46,"tag":657,"props":2889,"children":2891},{"class":659,"line":2890},50,[2892],{"type":46,"tag":657,"props":2893,"children":2894},{},[2895],{"type":52,"value":2896},"            configData,\n",{"type":46,"tag":657,"props":2898,"children":2900},{"class":659,"line":2899},51,[2901],{"type":46,"tag":657,"props":2902,"children":2903},{},[2904],{"type":52,"value":2905},"            bytes32(0) \u002F\u002F salt\n",{"type":46,"tag":657,"props":2907,"children":2909},{"class":659,"line":2908},52,[2910],{"type":46,"tag":657,"props":2911,"children":2912},{},[2913],{"type":52,"value":2757},{"type":46,"tag":657,"props":2915,"children":2917},{"class":659,"line":2916},53,[2918],{"type":46,"tag":657,"props":2919,"children":2920},{"emptyLinePlaceholder":789},[2921],{"type":52,"value":792},{"type":46,"tag":657,"props":2923,"children":2925},{"class":659,"line":2924},54,[2926],{"type":46,"tag":657,"props":2927,"children":2928},{},[2929],{"type":52,"value":2930},"        vm.stopBroadcast();\n",{"type":46,"tag":657,"props":2932,"children":2934},{"class":659,"line":2933},55,[2935],{"type":46,"tag":657,"props":2936,"children":2937},{"emptyLinePlaceholder":789},[2938],{"type":52,"value":792},{"type":46,"tag":657,"props":2940,"children":2942},{"class":659,"line":2941},56,[2943],{"type":46,"tag":657,"props":2944,"children":2945},{},[2946],{"type":52,"value":2947},"        console.log(\"Auction deployed at:\", auction);\n",{"type":46,"tag":657,"props":2949,"children":2951},{"class":659,"line":2950},57,[2952],{"type":46,"tag":657,"props":2953,"children":2954},{},[2955],{"type":52,"value":2956},"    }\n",{"type":46,"tag":657,"props":2958,"children":2960},{"class":659,"line":2959},58,[2961],{"type":46,"tag":657,"props":2962,"children":2963},{},[2964],{"type":52,"value":1926},{"type":46,"tag":55,"props":2966,"children":2967},{},[2968,2973,2975,2980,2982,2987],{"type":46,"tag":77,"props":2969,"children":2970},{},[2971],{"type":52,"value":2972},"Important:",{"type":52,"value":2974}," You must approve the token transfer to the factory before calling ",{"type":46,"tag":61,"props":2976,"children":2978},{"className":2977},[],[2979],{"type":52,"value":2081},{"type":52,"value":2981},". The factory will transfer ",{"type":46,"tag":61,"props":2983,"children":2985},{"className":2984},[],[2986],{"type":52,"value":2032},{"type":52,"value":2988}," tokens from your address to the newly created auction contract.",{"type":46,"tag":626,"props":2990,"children":2992},{"id":2991},"step-4-using-foundry-script",[2993],{"type":52,"value":2994},"Step 4: Using Foundry Script",{"type":46,"tag":646,"props":2996,"children":2998},{"className":648,"code":2997,"language":650,"meta":651,"style":651},"# Deploy factory (if needed on new network)\nforge script script\u002Fdeploy\u002FDeployContinuousAuctionFactory.s.sol:DeployContinuousAuctionFactoryScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --account deployer --sender $DEPLOYER_ADDRESS\n\n# Deploy auction instance\nforge script script\u002FExample.s.sol:ExampleScript \\\n  --rpc-url $RPC_URL \\\n  --broadcast \\\n  --account deployer --sender $DEPLOYER_ADDRESS\n",[2999],{"type":46,"tag":61,"props":3000,"children":3001},{"__ignoreMap":651},[3002,3010,3030,3041,3052,3071,3078,3086,3105,3116,3127],{"type":46,"tag":657,"props":3003,"children":3004},{"class":659,"line":660},[3005],{"type":46,"tag":657,"props":3006,"children":3007},{"style":752},[3008],{"type":52,"value":3009},"# Deploy factory (if needed on new network)\n",{"type":46,"tag":657,"props":3011,"children":3012},{"class":659,"line":687},[3013,3017,3021,3026],{"type":46,"tag":657,"props":3014,"children":3015},{"style":664},[3016],{"type":52,"value":667},{"type":46,"tag":657,"props":3018,"children":3019},{"style":670},[3020],{"type":52,"value":673},{"type":46,"tag":657,"props":3022,"children":3023},{"style":670},[3024],{"type":52,"value":3025}," script\u002Fdeploy\u002FDeployContinuousAuctionFactory.s.sol:DeployContinuousAuctionFactoryScript",{"type":46,"tag":657,"props":3027,"children":3028},{"style":681},[3029],{"type":52,"value":684},{"type":46,"tag":657,"props":3031,"children":3032},{"class":659,"line":701},[3033,3037],{"type":46,"tag":657,"props":3034,"children":3035},{"style":670},[3036],{"type":52,"value":693},{"type":46,"tag":657,"props":3038,"children":3039},{"style":681},[3040],{"type":52,"value":698},{"type":46,"tag":657,"props":3042,"children":3043},{"class":659,"line":714},[3044,3048],{"type":46,"tag":657,"props":3045,"children":3046},{"style":670},[3047],{"type":52,"value":707},{"type":46,"tag":657,"props":3049,"children":3050},{"style":681},[3051],{"type":52,"value":684},{"type":46,"tag":657,"props":3053,"children":3054},{"class":659,"line":803},[3055,3059,3063,3067],{"type":46,"tag":657,"props":3056,"children":3057},{"style":670},[3058],{"type":52,"value":853},{"type":46,"tag":657,"props":3060,"children":3061},{"style":670},[3062],{"type":52,"value":778},{"type":46,"tag":657,"props":3064,"children":3065},{"style":670},[3066],{"type":52,"value":1087},{"type":46,"tag":657,"props":3068,"children":3069},{"style":681},[3070],{"type":52,"value":875},{"type":46,"tag":657,"props":3072,"children":3073},{"class":659,"line":823},[3074],{"type":46,"tag":657,"props":3075,"children":3076},{"emptyLinePlaceholder":789},[3077],{"type":52,"value":792},{"type":46,"tag":657,"props":3079,"children":3080},{"class":659,"line":835},[3081],{"type":46,"tag":657,"props":3082,"children":3083},{"style":752},[3084],{"type":52,"value":3085},"# Deploy auction instance\n",{"type":46,"tag":657,"props":3087,"children":3088},{"class":659,"line":847},[3089,3093,3097,3101],{"type":46,"tag":657,"props":3090,"children":3091},{"style":664},[3092],{"type":52,"value":667},{"type":46,"tag":657,"props":3094,"children":3095},{"style":670},[3096],{"type":52,"value":673},{"type":46,"tag":657,"props":3098,"children":3099},{"style":670},[3100],{"type":52,"value":678},{"type":46,"tag":657,"props":3102,"children":3103},{"style":681},[3104],{"type":52,"value":684},{"type":46,"tag":657,"props":3106,"children":3107},{"class":659,"line":864},[3108,3112],{"type":46,"tag":657,"props":3109,"children":3110},{"style":670},[3111],{"type":52,"value":693},{"type":46,"tag":657,"props":3113,"children":3114},{"style":681},[3115],{"type":52,"value":698},{"type":46,"tag":657,"props":3117,"children":3118},{"class":659,"line":1059},[3119,3123],{"type":46,"tag":657,"props":3120,"children":3121},{"style":670},[3122],{"type":52,"value":707},{"type":46,"tag":657,"props":3124,"children":3125},{"style":681},[3126],{"type":52,"value":684},{"type":46,"tag":657,"props":3128,"children":3129},{"class":659,"line":1627},[3130,3134,3138,3142],{"type":46,"tag":657,"props":3131,"children":3132},{"style":670},[3133],{"type":52,"value":853},{"type":46,"tag":657,"props":3135,"children":3136},{"style":670},[3137],{"type":52,"value":778},{"type":46,"tag":657,"props":3139,"children":3140},{"style":670},[3141],{"type":52,"value":1087},{"type":46,"tag":657,"props":3143,"children":3144},{"style":681},[3145],{"type":52,"value":875},{"type":46,"tag":626,"props":3147,"children":3149},{"id":3148},"step-5-post-deployment",[3150],{"type":52,"value":3151},"Step 5: Post-Deployment",{"type":46,"tag":55,"props":3153,"children":3154},{},[3155,3157,3162,3164,3170],{"type":52,"value":3156},"After deployment, you ",{"type":46,"tag":77,"props":3158,"children":3159},{},[3160],{"type":52,"value":3161},"must",{"type":52,"value":3163}," call ",{"type":46,"tag":61,"props":3165,"children":3167},{"className":3166},[],[3168],{"type":52,"value":3169},"onTokensReceived()",{"type":52,"value":3171}," to notify the auction that tokens have been transferred:",{"type":46,"tag":646,"props":3173,"children":3175},{"className":648,"code":3174,"language":650,"meta":651,"style":651},"cast send $AUCTION_ADDRESS \"onTokensReceived()\" --rpc-url $RPC_URL --account deployer --sender $DEPLOYER_ADDRESS\n",[3176],{"type":46,"tag":61,"props":3177,"children":3178},{"__ignoreMap":651},[3179],{"type":46,"tag":657,"props":3180,"children":3181},{"class":659,"line":660},[3182,3186,3191,3196,3200,3204,3208,3213,3218,3223,3227,3231],{"type":46,"tag":657,"props":3183,"children":3184},{"style":664},[3185],{"type":52,"value":763},{"type":46,"tag":657,"props":3187,"children":3188},{"style":670},[3189],{"type":52,"value":3190}," send",{"type":46,"tag":657,"props":3192,"children":3193},{"style":681},[3194],{"type":52,"value":3195}," $AUCTION_ADDRESS ",{"type":46,"tag":657,"props":3197,"children":3198},{"style":964},[3199],{"type":52,"value":481},{"type":46,"tag":657,"props":3201,"children":3202},{"style":670},[3203],{"type":52,"value":3169},{"type":46,"tag":657,"props":3205,"children":3206},{"style":964},[3207],{"type":52,"value":481},{"type":46,"tag":657,"props":3209,"children":3210},{"style":670},[3211],{"type":52,"value":3212}," --rpc-url",{"type":46,"tag":657,"props":3214,"children":3215},{"style":681},[3216],{"type":52,"value":3217}," $RPC_URL ",{"type":46,"tag":657,"props":3219,"children":3220},{"style":670},[3221],{"type":52,"value":3222},"--account",{"type":46,"tag":657,"props":3224,"children":3225},{"style":670},[3226],{"type":52,"value":778},{"type":46,"tag":657,"props":3228,"children":3229},{"style":670},[3230],{"type":52,"value":1087},{"type":46,"tag":657,"props":3232,"children":3233},{"style":681},[3234],{"type":52,"value":875},{"type":46,"tag":55,"props":3236,"children":3237},{},[3238],{"type":52,"value":3239},"This is a required prerequisite before the auction can accept bids.",{"type":46,"tag":112,"props":3241,"children":3243},{"id":3242},"alternative-deploy-via-constructor",[3244],{"type":52,"value":3245},"Alternative: Deploy via Constructor",{"type":46,"tag":55,"props":3247,"children":3248},{},[3249],{"type":52,"value":3250},"You can also deploy directly via the constructor:",{"type":46,"tag":646,"props":3252,"children":3254},{"className":1951,"code":3253,"language":1953,"meta":651,"style":651},"constructor(\n    address token,\n    uint128 amount,\n    AuctionParameters memory parameters\n) {}\n",[3255],{"type":46,"tag":61,"props":3256,"children":3257},{"__ignoreMap":651},[3258,3266,3273,3281,3289],{"type":46,"tag":657,"props":3259,"children":3260},{"class":659,"line":660},[3261],{"type":46,"tag":657,"props":3262,"children":3263},{},[3264],{"type":52,"value":3265},"constructor(\n",{"type":46,"tag":657,"props":3267,"children":3268},{"class":659,"line":687},[3269],{"type":46,"tag":657,"props":3270,"children":3271},{},[3272],{"type":52,"value":1973},{"type":46,"tag":657,"props":3274,"children":3275},{"class":659,"line":701},[3276],{"type":46,"tag":657,"props":3277,"children":3278},{},[3279],{"type":52,"value":3280},"    uint128 amount,\n",{"type":46,"tag":657,"props":3282,"children":3283},{"class":659,"line":714},[3284],{"type":46,"tag":657,"props":3285,"children":3286},{},[3287],{"type":52,"value":3288},"    AuctionParameters memory parameters\n",{"type":46,"tag":657,"props":3290,"children":3291},{"class":659,"line":803},[3292],{"type":46,"tag":657,"props":3293,"children":3294},{},[3295],{"type":52,"value":3296},") {}\n",{"type":46,"tag":55,"props":3298,"children":3299},{},[3300],{"type":52,"value":3301},"This approach doesn't require a salt parameter but won't benefit from CREATE2's deterministic addressing.",{"type":46,"tag":112,"props":3303,"children":3305},{"id":3304},"verification-on-block-explorers",[3306],{"type":52,"value":3307},"Verification on Block Explorers",{"type":46,"tag":55,"props":3309,"children":3310},{},[3311],{"type":52,"value":3312},"Generate standard JSON input for verification:",{"type":46,"tag":646,"props":3314,"children":3316},{"className":648,"code":3315,"language":650,"meta":651,"style":651},"forge verify-contract $AUCTION_ADDRESS \\\n  src\u002FContinuousClearingAuction.sol:ContinuousClearingAuction \\\n  --rpc-url $RPC_URL \\\n  --show-standard-json-input > standard-json-input.json\n",[3317],{"type":46,"tag":61,"props":3318,"children":3319},{"__ignoreMap":651},[3320,3337,3349,3360],{"type":46,"tag":657,"props":3321,"children":3322},{"class":659,"line":660},[3323,3327,3332],{"type":46,"tag":657,"props":3324,"children":3325},{"style":664},[3326],{"type":52,"value":667},{"type":46,"tag":657,"props":3328,"children":3329},{"style":670},[3330],{"type":52,"value":3331}," verify-contract",{"type":46,"tag":657,"props":3333,"children":3334},{"style":681},[3335],{"type":52,"value":3336}," $AUCTION_ADDRESS \\\n",{"type":46,"tag":657,"props":3338,"children":3339},{"class":659,"line":687},[3340,3345],{"type":46,"tag":657,"props":3341,"children":3342},{"style":670},[3343],{"type":52,"value":3344},"  src\u002FContinuousClearingAuction.sol:ContinuousClearingAuction",{"type":46,"tag":657,"props":3346,"children":3347},{"style":681},[3348],{"type":52,"value":684},{"type":46,"tag":657,"props":3350,"children":3351},{"class":659,"line":701},[3352,3356],{"type":46,"tag":657,"props":3353,"children":3354},{"style":670},[3355],{"type":52,"value":693},{"type":46,"tag":657,"props":3357,"children":3358},{"style":681},[3359],{"type":52,"value":698},{"type":46,"tag":657,"props":3361,"children":3362},{"class":659,"line":714},[3363,3368,3373],{"type":46,"tag":657,"props":3364,"children":3365},{"style":670},[3366],{"type":52,"value":3367},"  --show-standard-json-input",{"type":46,"tag":657,"props":3369,"children":3370},{"style":964},[3371],{"type":52,"value":3372}," >",{"type":46,"tag":657,"props":3374,"children":3375},{"style":670},[3376],{"type":52,"value":3377}," standard-json-input.json\n",{"type":46,"tag":55,"props":3379,"children":3380},{},[3381],{"type":52,"value":3382},"Upload this file to block explorers for verification.",{"type":46,"tag":236,"props":3384,"children":3385},{},[],{"type":46,"tag":100,"props":3387,"children":3389},{"id":3388},"validation-rules",[3390],{"type":52,"value":3391},"Validation Rules",{"type":46,"tag":55,"props":3393,"children":3394},{},[3395],{"type":52,"value":3396},"Before deployment, ensure:",{"type":46,"tag":124,"props":3398,"children":3399},{},[3400,3416,3426,3436,3446,3456,3466,3476,3486],{"type":46,"tag":128,"props":3401,"children":3402},{},[3403,3408,3410],{"type":46,"tag":77,"props":3404,"children":3405},{},[3406],{"type":52,"value":3407},"Block constraints",{"type":52,"value":3409},": ",{"type":46,"tag":61,"props":3411,"children":3413},{"className":3412},[],[3414],{"type":52,"value":3415},"startBlock \u003C endBlock \u003C= claimBlock",{"type":46,"tag":128,"props":3417,"children":3418},{},[3419,3424],{"type":46,"tag":77,"props":3420,"children":3421},{},[3422],{"type":52,"value":3423},"Valid addresses",{"type":52,"value":3425},": All addresses are valid Ethereum addresses (0x + 40 hex chars)",{"type":46,"tag":128,"props":3427,"children":3428},{},[3429,3434],{"type":46,"tag":77,"props":3430,"children":3431},{},[3432],{"type":52,"value":3433},"Non-negative values",{"type":52,"value":3435},": All numeric values >= 0",{"type":46,"tag":128,"props":3437,"children":3438},{},[3439,3444],{"type":46,"tag":77,"props":3440,"children":3441},{},[3442],{"type":52,"value":3443},"Floor price alignment",{"type":52,"value":3445},": Floor price must be a multiple of tick spacing",{"type":46,"tag":128,"props":3447,"children":3448},{},[3449,3454],{"type":46,"tag":77,"props":3450,"children":3451},{},[3452],{"type":52,"value":3453},"Tick spacing",{"type":52,"value":3455},": At least 1 basis point of floor price (1%, 10% recommended)",{"type":46,"tag":128,"props":3457,"children":3458},{},[3459,3464],{"type":46,"tag":77,"props":3460,"children":3461},{},[3462],{"type":52,"value":3463},"Supply schedule",{"type":52,"value":3465},": Last block sells significant tokens (~30%+)",{"type":46,"tag":128,"props":3467,"children":3468},{},[3469,3474],{"type":46,"tag":77,"props":3470,"children":3471},{},[3472],{"type":52,"value":3473},"Total supply bounds",{"type":52,"value":3475},": Max 1e30 wei (1 trillion 18-decimal tokens)",{"type":46,"tag":128,"props":3477,"children":3478},{},[3479,3484],{"type":46,"tag":77,"props":3480,"children":3481},{},[3482],{"type":52,"value":3483},"No FoT tokens",{"type":52,"value":3485},": Fee-on-transfer tokens not supported",{"type":46,"tag":128,"props":3487,"children":3488},{},[3489,3494],{"type":46,"tag":77,"props":3490,"children":3491},{},[3492],{"type":52,"value":3493},"Minimum decimals",{"type":52,"value":3495},": Do not use tokens with \u003C 6 decimals",{"type":46,"tag":236,"props":3497,"children":3498},{},[],{"type":46,"tag":100,"props":3500,"children":3502},{"id":3501},"technical-overview",[3503],{"type":52,"value":3504},"Technical Overview",{"type":46,"tag":112,"props":3506,"children":3508},{"id":3507},"q96-fixed-point-math",[3509],{"type":52,"value":3510},"Q96 Fixed-Point Math",{"type":46,"tag":55,"props":3512,"children":3513},{},[3514],{"type":52,"value":3515},"The auction uses Q96 fixed-point arithmetic:",{"type":46,"tag":646,"props":3517,"children":3519},{"className":1951,"code":3518,"language":1953,"meta":651,"style":651},"library FixedPoint96 {\n    uint8 internal constant RESOLUTION = 96;\n    uint256 internal constant Q96 = 0x1000000000000000000000000; \u002F\u002F 2^96\n}\n",[3520],{"type":46,"tag":61,"props":3521,"children":3522},{"__ignoreMap":651},[3523,3531,3539,3547],{"type":46,"tag":657,"props":3524,"children":3525},{"class":659,"line":660},[3526],{"type":46,"tag":657,"props":3527,"children":3528},{},[3529],{"type":52,"value":3530},"library FixedPoint96 {\n",{"type":46,"tag":657,"props":3532,"children":3533},{"class":659,"line":687},[3534],{"type":46,"tag":657,"props":3535,"children":3536},{},[3537],{"type":52,"value":3538},"    uint8 internal constant RESOLUTION = 96;\n",{"type":46,"tag":657,"props":3540,"children":3541},{"class":659,"line":701},[3542],{"type":46,"tag":657,"props":3543,"children":3544},{},[3545],{"type":52,"value":3546},"    uint256 internal constant Q96 = 0x1000000000000000000000000; \u002F\u002F 2^96\n",{"type":46,"tag":657,"props":3548,"children":3549},{"class":659,"line":714},[3550],{"type":46,"tag":657,"props":3551,"children":3552},{},[3553],{"type":52,"value":1926},{"type":46,"tag":341,"props":3555,"children":3556},{},[3557,3567],{"type":46,"tag":128,"props":3558,"children":3559},{},[3560,3565],{"type":46,"tag":77,"props":3561,"children":3562},{},[3563],{"type":52,"value":3564},"Price",{"type":52,"value":3566},": Q96 fixed-point number for fractional price ratios",{"type":46,"tag":128,"props":3568,"children":3569},{},[3570,3575],{"type":46,"tag":77,"props":3571,"children":3572},{},[3573],{"type":52,"value":3574},"Demand",{"type":52,"value":3576},": Currency amounts scaled by Q96",{"type":46,"tag":112,"props":3578,"children":3580},{"id":3579},"auction-steps-supply-issuance",[3581],{"type":52,"value":3582},"Auction Steps (Supply Issuance)",{"type":46,"tag":55,"props":3584,"children":3585},{},[3586,3588,3594],{"type":52,"value":3587},"Steps are packed into bytes, where each step is a ",{"type":46,"tag":61,"props":3589,"children":3591},{"className":3590},[],[3592],{"type":52,"value":3593},"uint64",{"type":52,"value":739},{"type":46,"tag":341,"props":3596,"children":3597},{},[3598,3610],{"type":46,"tag":128,"props":3599,"children":3600},{},[3601,3603,3608],{"type":52,"value":3602},"First 24 bits: ",{"type":46,"tag":61,"props":3604,"children":3606},{"className":3605},[],[3607],{"type":52,"value":1795},{"type":52,"value":3609}," (per-block issuance rate in MPS)",{"type":46,"tag":128,"props":3611,"children":3612},{},[3613,3615,3620],{"type":52,"value":3614},"Last 40 bits: ",{"type":46,"tag":61,"props":3616,"children":3618},{"className":3617},[],[3619],{"type":52,"value":1822},{"type":52,"value":3621}," (number of blocks)",{"type":46,"tag":646,"props":3623,"children":3625},{"className":1951,"code":3624,"language":1953,"meta":651,"style":651},"function parse(bytes8 data) internal pure returns (uint24 mps, uint40 blockDelta) {\n    mps = uint24(bytes3(data));\n    blockDelta = uint40(uint64(data));\n}\n",[3626],{"type":46,"tag":61,"props":3627,"children":3628},{"__ignoreMap":651},[3629,3637,3645,3653],{"type":46,"tag":657,"props":3630,"children":3631},{"class":659,"line":660},[3632],{"type":46,"tag":657,"props":3633,"children":3634},{},[3635],{"type":52,"value":3636},"function parse(bytes8 data) internal pure returns (uint24 mps, uint40 blockDelta) {\n",{"type":46,"tag":657,"props":3638,"children":3639},{"class":659,"line":687},[3640],{"type":46,"tag":657,"props":3641,"children":3642},{},[3643],{"type":52,"value":3644},"    mps = uint24(bytes3(data));\n",{"type":46,"tag":657,"props":3646,"children":3647},{"class":659,"line":701},[3648],{"type":46,"tag":657,"props":3649,"children":3650},{},[3651],{"type":52,"value":3652},"    blockDelta = uint40(uint64(data));\n",{"type":46,"tag":657,"props":3654,"children":3655},{"class":659,"line":714},[3656],{"type":46,"tag":657,"props":3657,"children":3658},{},[3659],{"type":52,"value":1926},{"type":46,"tag":55,"props":3661,"children":3662},{},[3663],{"type":52,"value":3664},"The data is deployed to an external SSTORE2 contract for cheaper reads.",{"type":46,"tag":112,"props":3666,"children":3668},{"id":3667},"key-contract-functions",[3669],{"type":52,"value":3670},"Key Contract Functions",{"type":46,"tag":626,"props":3672,"children":3674},{"id":3673},"submitbid",[3675],{"type":52,"value":3676},"submitBid()",{"type":46,"tag":55,"props":3678,"children":3679},{},[3680],{"type":52,"value":3681},"Users submit bids with:",{"type":46,"tag":341,"props":3683,"children":3684},{},[3685,3696,3706,3717,3728],{"type":46,"tag":128,"props":3686,"children":3687},{},[3688,3694],{"type":46,"tag":61,"props":3689,"children":3691},{"className":3690},[],[3692],{"type":52,"value":3693},"maxPrice",{"type":52,"value":3695},": Maximum price willing to pay (Q96)",{"type":46,"tag":128,"props":3697,"children":3698},{},[3699,3704],{"type":46,"tag":61,"props":3700,"children":3702},{"className":3701},[],[3703],{"type":52,"value":2032},{"type":52,"value":3705},": Currency amount to bid",{"type":46,"tag":128,"props":3707,"children":3708},{},[3709,3715],{"type":46,"tag":61,"props":3710,"children":3712},{"className":3711},[],[3713],{"type":52,"value":3714},"owner",{"type":52,"value":3716},": Address to receive tokens\u002Frefunds",{"type":46,"tag":128,"props":3718,"children":3719},{},[3720,3726],{"type":46,"tag":61,"props":3721,"children":3723},{"className":3722},[],[3724],{"type":52,"value":3725},"prevTickPrice",{"type":52,"value":3727},": Hint for gas optimization",{"type":46,"tag":128,"props":3729,"children":3730},{},[3731,3737],{"type":46,"tag":61,"props":3732,"children":3734},{"className":3733},[],[3735],{"type":52,"value":3736},"hookData",{"type":52,"value":3738},": Optional data for validation hooks",{"type":46,"tag":626,"props":3740,"children":3742},{"id":3741},"checkpoint",[3743],{"type":52,"value":3744},"checkpoint()",{"type":46,"tag":55,"props":3746,"children":3747},{},[3748],{"type":52,"value":3749},"Auction is checkpointed once per block with a new bid. Checkpoints determine token allocations.",{"type":46,"tag":626,"props":3751,"children":3753},{"id":3752},"exitbid-exitpartiallyfilledbid",[3754],{"type":52,"value":3755},"exitBid() \u002F exitPartiallyFilledBid()",{"type":46,"tag":55,"props":3757,"children":3758},{},[3759],{"type":52,"value":3760},"Bids can be exited when outbid or when auction ends (only after graduation).",{"type":46,"tag":626,"props":3762,"children":3764},{"id":3763},"isgraduated",[3765],{"type":52,"value":3766},"isGraduated()",{"type":46,"tag":55,"props":3768,"children":3769},{},[3770,3772,3778],{"type":52,"value":3771},"Returns true if ",{"type":46,"tag":61,"props":3773,"children":3775},{"className":3774},[],[3776],{"type":52,"value":3777},"currencyRaised >= requiredCurrencyRaised",{"type":52,"value":3779},". No bids can exit before graduation.",{"type":46,"tag":626,"props":3781,"children":3783},{"id":3782},"claimtokens",[3784],{"type":52,"value":3785},"claimTokens()",{"type":46,"tag":55,"props":3787,"children":3788},{},[3789,3791,3796],{"type":52,"value":3790},"Users claim purchased tokens after ",{"type":46,"tag":61,"props":3792,"children":3794},{"className":3793},[],[3795],{"type":52,"value":1608},{"type":52,"value":3797}," (only for graduated auctions).",{"type":46,"tag":626,"props":3799,"children":3801},{"id":3800},"sweepcurrency-sweepunsoldtokens",[3802],{"type":52,"value":3803},"sweepCurrency() \u002F sweepUnsoldTokens()",{"type":46,"tag":55,"props":3805,"children":3806},{},[3807],{"type":52,"value":3808},"After auction ends:",{"type":46,"tag":341,"props":3810,"children":3811},{},[3812,3823],{"type":46,"tag":128,"props":3813,"children":3814},{},[3815,3821],{"type":46,"tag":61,"props":3816,"children":3818},{"className":3817},[],[3819],{"type":52,"value":3820},"sweepCurrency()",{"type":52,"value":3822},": Withdraw raised currency (graduated only)",{"type":46,"tag":128,"props":3824,"children":3825},{},[3826,3832],{"type":46,"tag":61,"props":3827,"children":3829},{"className":3828},[],[3830],{"type":52,"value":3831},"sweepUnsoldTokens()",{"type":52,"value":3833},": Withdraw unsold tokens",{"type":46,"tag":236,"props":3835,"children":3836},{},[],{"type":46,"tag":100,"props":3838,"children":3840},{"id":3839},"supported-chains",[3841],{"type":52,"value":3842},"Supported Chains",{"type":46,"tag":55,"props":3844,"children":3845},{},[3846],{"type":52,"value":3847},"CCA is deployed to canonical addresses across select EVM chains:",{"type":46,"tag":1163,"props":3849,"children":3850},{},[3851,3872],{"type":46,"tag":1167,"props":3852,"children":3853},{},[3854],{"type":46,"tag":1171,"props":3855,"children":3856},{},[3857,3862,3867],{"type":46,"tag":1175,"props":3858,"children":3859},{},[3860],{"type":52,"value":3861},"Chain ID",{"type":46,"tag":1175,"props":3863,"children":3864},{},[3865],{"type":52,"value":3866},"Network",{"type":46,"tag":1175,"props":3868,"children":3869},{},[3870],{"type":52,"value":3871},"Block Time",{"type":46,"tag":1191,"props":3873,"children":3874},{},[3875,3892,3910,3928,3945,3962],{"type":46,"tag":1171,"props":3876,"children":3877},{},[3878,3882,3887],{"type":46,"tag":1198,"props":3879,"children":3880},{},[3881],{"type":52,"value":1346},{"type":46,"tag":1198,"props":3883,"children":3884},{},[3885],{"type":52,"value":3886},"Mainnet",{"type":46,"tag":1198,"props":3888,"children":3889},{},[3890],{"type":52,"value":3891},"12s",{"type":46,"tag":1171,"props":3893,"children":3894},{},[3895,3900,3905],{"type":46,"tag":1198,"props":3896,"children":3897},{},[3898],{"type":52,"value":3899},"130",{"type":46,"tag":1198,"props":3901,"children":3902},{},[3903],{"type":52,"value":3904},"Unichain",{"type":46,"tag":1198,"props":3906,"children":3907},{},[3908],{"type":52,"value":3909},"1s",{"type":46,"tag":1171,"props":3911,"children":3912},{},[3913,3918,3923],{"type":46,"tag":1198,"props":3914,"children":3915},{},[3916],{"type":52,"value":3917},"1301",{"type":46,"tag":1198,"props":3919,"children":3920},{},[3921],{"type":52,"value":3922},"Unichain Sepolia",{"type":46,"tag":1198,"props":3924,"children":3925},{},[3926],{"type":52,"value":3927},"2s",{"type":46,"tag":1171,"props":3929,"children":3930},{},[3931,3936,3941],{"type":46,"tag":1198,"props":3932,"children":3933},{},[3934],{"type":52,"value":3935},"8453",{"type":46,"tag":1198,"props":3937,"children":3938},{},[3939],{"type":52,"value":3940},"Base",{"type":46,"tag":1198,"props":3942,"children":3943},{},[3944],{"type":52,"value":3927},{"type":46,"tag":1171,"props":3946,"children":3947},{},[3948,3953,3958],{"type":46,"tag":1198,"props":3949,"children":3950},{},[3951],{"type":52,"value":3952},"42161",{"type":46,"tag":1198,"props":3954,"children":3955},{},[3956],{"type":52,"value":3957},"Arbitrum",{"type":46,"tag":1198,"props":3959,"children":3960},{},[3961],{"type":52,"value":3927},{"type":46,"tag":1171,"props":3963,"children":3964},{},[3965,3970,3975],{"type":46,"tag":1198,"props":3966,"children":3967},{},[3968],{"type":52,"value":3969},"11155111",{"type":46,"tag":1198,"props":3971,"children":3972},{},[3973],{"type":52,"value":3974},"Sepolia",{"type":46,"tag":1198,"props":3976,"children":3977},{},[3978],{"type":52,"value":3891},{"type":46,"tag":236,"props":3980,"children":3981},{},[],{"type":46,"tag":100,"props":3983,"children":3985},{"id":3984},"troubleshooting",[3986],{"type":52,"value":3987},"Troubleshooting",{"type":46,"tag":112,"props":3989,"children":3991},{"id":3990},"common-issues",[3992],{"type":52,"value":3993},"Common Issues",{"type":46,"tag":1163,"props":3995,"children":3996},{},[3997,4013],{"type":46,"tag":1167,"props":3998,"children":3999},{},[4000],{"type":46,"tag":1171,"props":4001,"children":4002},{},[4003,4008],{"type":46,"tag":1175,"props":4004,"children":4005},{},[4006],{"type":52,"value":4007},"Issue",{"type":46,"tag":1175,"props":4009,"children":4010},{},[4011],{"type":52,"value":4012},"Solution",{"type":46,"tag":1191,"props":4014,"children":4015},{},[4016,4029,4042,4055,4068,4081],{"type":46,"tag":1171,"props":4017,"children":4018},{},[4019,4024],{"type":46,"tag":1198,"props":4020,"children":4021},{},[4022],{"type":52,"value":4023},"\"Invalid block sequence\"",{"type":46,"tag":1198,"props":4025,"children":4026},{},[4027],{"type":52,"value":4028},"Ensure startBlock \u003C endBlock \u003C= claimBlock",{"type":46,"tag":1171,"props":4030,"children":4031},{},[4032,4037],{"type":46,"tag":1198,"props":4033,"children":4034},{},[4035],{"type":52,"value":4036},"\"Floor price not aligned\"",{"type":46,"tag":1198,"props":4038,"children":4039},{},[4040],{"type":52,"value":4041},"Round floor price to multiple of tick spacing",{"type":46,"tag":1171,"props":4043,"children":4044},{},[4045,4050],{"type":46,"tag":1198,"props":4046,"children":4047},{},[4048],{"type":52,"value":4049},"\"Tick spacing too small\"",{"type":46,"tag":1198,"props":4051,"children":4052},{},[4053],{"type":52,"value":4054},"Use at least 1% of floor price",{"type":46,"tag":1171,"props":4056,"children":4057},{},[4058,4063],{"type":46,"tag":1198,"props":4059,"children":4060},{},[4061],{"type":52,"value":4062},"\"Total supply too large\"",{"type":46,"tag":1198,"props":4064,"children":4065},{},[4066],{"type":52,"value":4067},"Max 1e30 wei (1 trillion 18-decimal tokens)",{"type":46,"tag":1171,"props":4069,"children":4070},{},[4071,4076],{"type":46,"tag":1198,"props":4072,"children":4073},{},[4074],{"type":52,"value":4075},"\"Gas inefficiency\"",{"type":46,"tag":1198,"props":4077,"children":4078},{},[4079],{"type":52,"value":4080},"Increase tick spacing",{"type":46,"tag":1171,"props":4082,"children":4083},{},[4084,4089],{"type":46,"tag":1198,"props":4085,"children":4086},{},[4087],{"type":52,"value":4088},"\"Invalid address\"",{"type":46,"tag":1198,"props":4090,"children":4091},{},[4092],{"type":52,"value":4093},"Verify addresses are 42 characters starting with 0x",{"type":46,"tag":112,"props":4095,"children":4097},{"id":4096},"validation-checklist",[4098],{"type":52,"value":4099},"Validation Checklist",{"type":46,"tag":55,"props":4101,"children":4102},{},[4103],{"type":52,"value":4104},"Before deployment:",{"type":46,"tag":341,"props":4106,"children":4109},{"className":4107},[4108],"contains-task-list",[4110,4122,4131,4140,4149,4158,4167,4176,4185,4194,4203,4212,4221],{"type":46,"tag":128,"props":4111,"children":4114},{"className":4112},[4113],"task-list-item",[4115,4120],{"type":46,"tag":4116,"props":4117,"children":4119},"input",{"disabled":789,"type":4118},"checkbox",[],{"type":52,"value":4121}," Block sequence is valid (start \u003C end \u003C= claim)",{"type":46,"tag":128,"props":4123,"children":4125},{"className":4124},[4113],[4126,4129],{"type":46,"tag":4116,"props":4127,"children":4128},{"disabled":789,"type":4118},[],{"type":52,"value":4130}," Floor price is multiple of tick spacing",{"type":46,"tag":128,"props":4132,"children":4134},{"className":4133},[4113],[4135,4138],{"type":46,"tag":4116,"props":4136,"children":4137},{"disabled":789,"type":4118},[],{"type":52,"value":4139}," Tick spacing >= 1% of floor price",{"type":46,"tag":128,"props":4141,"children":4143},{"className":4142},[4113],[4144,4147],{"type":46,"tag":4116,"props":4145,"children":4146},{"disabled":789,"type":4118},[],{"type":52,"value":4148}," All addresses are valid Ethereum addresses",{"type":46,"tag":128,"props":4150,"children":4152},{"className":4151},[4113],[4153,4156],{"type":46,"tag":4116,"props":4154,"children":4155},{"disabled":789,"type":4118},[],{"type":52,"value":4157}," Total supply \u003C= 1e30 wei",{"type":46,"tag":128,"props":4159,"children":4161},{"className":4160},[4113],[4162,4165],{"type":46,"tag":4116,"props":4163,"children":4164},{"disabled":789,"type":4118},[],{"type":52,"value":4166}," Currency is more valuable than token",{"type":46,"tag":128,"props":4168,"children":4170},{"className":4169},[4113],[4171,4174],{"type":46,"tag":4116,"props":4172,"children":4173},{"disabled":789,"type":4118},[],{"type":52,"value":4175}," Block times match network (12s mainnet, 2s L2s)",{"type":46,"tag":128,"props":4177,"children":4179},{"className":4178},[4113],[4180,4183],{"type":46,"tag":4116,"props":4181,"children":4182},{"disabled":789,"type":4118},[],{"type":52,"value":4184}," Recipients addresses are set (not placeholders)",{"type":46,"tag":128,"props":4186,"children":4188},{"className":4187},[4113],[4189,4192],{"type":46,"tag":4116,"props":4190,"children":4191},{"disabled":789,"type":4118},[],{"type":52,"value":4193}," Currency address is correct for network",{"type":46,"tag":128,"props":4195,"children":4197},{"className":4196},[4113],[4198,4201],{"type":46,"tag":4116,"props":4199,"children":4200},{"disabled":789,"type":4118},[],{"type":52,"value":4202}," Last supply step sells ~30%+ of tokens",{"type":46,"tag":128,"props":4204,"children":4206},{"className":4205},[4113],[4207,4210],{"type":46,"tag":4116,"props":4208,"children":4209},{"disabled":789,"type":4118},[],{"type":52,"value":4211}," No fee-on-transfer tokens used",{"type":46,"tag":128,"props":4213,"children":4215},{"className":4214},[4113],[4216,4219],{"type":46,"tag":4116,"props":4217,"children":4218},{"disabled":789,"type":4118},[],{"type":52,"value":4220}," Token decimals >= 6",{"type":46,"tag":128,"props":4222,"children":4224},{"className":4223},[4113],[4225,4228,4230,4235],{"type":46,"tag":4116,"props":4226,"children":4227},{"disabled":789,"type":4118},[],{"type":52,"value":4229}," ",{"type":46,"tag":61,"props":4231,"children":4233},{"className":4232},[],[4234],{"type":52,"value":3169},{"type":52,"value":4236}," called post-deployment",{"type":46,"tag":236,"props":4238,"children":4239},{},[],{"type":46,"tag":100,"props":4241,"children":4243},{"id":4242},"additional-resources",[4244],{"type":52,"value":4245},"Additional Resources",{"type":46,"tag":341,"props":4247,"children":4248},{},[4249,4266,4284,4299,4315,4331,4346],{"type":46,"tag":128,"props":4250,"children":4251},{},[4252,4257,4258],{"type":46,"tag":77,"props":4253,"children":4254},{},[4255],{"type":52,"value":4256},"CCA Repository",{"type":52,"value":3409},{"type":46,"tag":4259,"props":4260,"children":4264},"a",{"href":4261,"rel":4262},"https:\u002F\u002Fgithub.com\u002FUniswap\u002Fcontinuous-clearing-auction",[4263],"nofollow",[4265],{"type":52,"value":4261},{"type":46,"tag":128,"props":4267,"children":4268},{},[4269,4274,4276,4282],{"type":46,"tag":77,"props":4270,"children":4271},{},[4272],{"type":52,"value":4273},"Technical Documentation",{"type":52,"value":4275},": See ",{"type":46,"tag":61,"props":4277,"children":4279},{"className":4278},[],[4280],{"type":52,"value":4281},"docs\u002FTechnicalDocumentation.md",{"type":52,"value":4283}," in repo",{"type":46,"tag":128,"props":4285,"children":4286},{},[4287,4291,4292,4298],{"type":46,"tag":77,"props":4288,"children":4289},{},[4290],{"type":52,"value":1137},{"type":52,"value":4275},{"type":46,"tag":61,"props":4293,"children":4295},{"className":4294},[],[4296],{"type":52,"value":4297},"docs\u002FDeploymentGuide.md",{"type":52,"value":4283},{"type":46,"tag":128,"props":4300,"children":4301},{},[4302,4307,4308,4314],{"type":46,"tag":77,"props":4303,"children":4304},{},[4305],{"type":52,"value":4306},"Whitepaper",{"type":52,"value":4275},{"type":46,"tag":61,"props":4309,"children":4311},{"className":4310},[],[4312],{"type":52,"value":4313},"docs\u002Fassets\u002Fwhitepaper.pdf",{"type":52,"value":4283},{"type":46,"tag":128,"props":4316,"children":4317},{},[4318,4323,4324,4330],{"type":46,"tag":77,"props":4319,"children":4320},{},[4321],{"type":52,"value":4322},"Audits",{"type":52,"value":4275},{"type":46,"tag":61,"props":4325,"children":4327},{"className":4326},[],[4328],{"type":52,"value":4329},"docs\u002Faudits\u002FREADME.md",{"type":52,"value":4283},{"type":46,"tag":128,"props":4332,"children":4333},{},[4334,4339,4340],{"type":46,"tag":77,"props":4335,"children":4336},{},[4337],{"type":52,"value":4338},"Uniswap Docs",{"type":52,"value":3409},{"type":46,"tag":4259,"props":4341,"children":4344},{"href":4342,"rel":4343},"https:\u002F\u002Fdocs.uniswap.org\u002Fcontracts\u002Fliquidity-launchpad\u002FCCA",[4263],[4345],{"type":52,"value":4342},{"type":46,"tag":128,"props":4347,"children":4348},{},[4349,4354,4355],{"type":46,"tag":77,"props":4350,"children":4351},{},[4352],{"type":52,"value":4353},"Bug Bounty",{"type":52,"value":3409},{"type":46,"tag":4259,"props":4356,"children":4359},{"href":4357,"rel":4358},"https:\u002F\u002Fcantina.xyz\u002Fcode\u002Ff9df94db-c7b1-434b-bb06-d1360abdd1be\u002Foverview",[4263],[4360],{"type":52,"value":4357},{"type":46,"tag":4362,"props":4363,"children":4364},"style",{},[4365],{"type":52,"value":4366},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4368,"total":1911},[4369,4381,4396,4409,4416,4429,4442,4455,4469,4480,4491,4502],{"slug":1308,"name":1308,"fn":4370,"description":4371,"org":4372,"tags":4373,"stars":25,"repoUrl":26,"updatedAt":4380},"configure auction smart contract parameters","Configure CCA (Continuous Clearing Auction) smart contract parameters through an interactive bulk form flow. Use when user says \"configure auction\", \"cca auction\", \"setup token auction\", \"auction configuration\", \"continuous auction\", or mentions CCA contracts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4374,4377,4378,4379],{"name":4375,"slug":4376,"type":15},"Configuration","configuration",{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:08.974641",{"slug":4382,"name":4382,"fn":4383,"description":4384,"org":4385,"tags":4386,"stars":25,"repoUrl":26,"updatedAt":4395},"copy-trade","copy trades from crypto wallets","This skill should be used when the user asks to \"copy trades from\" a wallet, \"mirror a wallet\", \"follow this address\", set up \"copy trading\", \"track and replicate a trader\", or mirror another account's swaps bounded by guardrails. Watches a target wallet and mirrors its trades, filtered by chain, asset match, position size, and the follower's own portfolio state.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4387,4390,4391,4394],{"name":4388,"slug":4389,"type":15},"Automation","automation",{"name":23,"slug":24,"type":15},{"name":4392,"slug":4393,"type":15},"Trading","trading",{"name":13,"slug":14,"type":15},"2026-07-17T06:04:21.974052",{"slug":4397,"name":4397,"fn":4398,"description":4399,"org":4400,"tags":4401,"stars":25,"repoUrl":26,"updatedAt":4408},"dca-bot","automate dollar cost average token purchases","This skill should be used when the user wants to \"dca into\" a token, \"buy X every day\", set up a \"recurring buy\", \"dollar cost average\" into an asset, \"schedule a buy\", or \"auto-buy on a dip\". Buys a fixed amount into a token on a schedule, optionally only when a condition holds (for example only when ETH is below a price threshold). The host agent's scheduler wakes the skill on a cadence; each wake is one self-contained run.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4402,4403,4406,4407],{"name":4388,"slug":4389,"type":15},{"name":4404,"slug":4405,"type":15},"DeFi","defi",{"name":4392,"slug":4393,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:05:37.160647",{"slug":4,"name":4,"fn":5,"description":6,"org":4410,"tags":4411,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4412,4413,4414,4415],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":4417,"name":4417,"fn":4418,"description":4419,"org":4420,"tags":4421,"stars":25,"repoUrl":26,"updatedAt":4428},"index-bot","create and rebalance asset portfolios","This skill should be used when the user asks to \"create an index\", \"build a basket of top assets\", \"buy a weighted basket\", \"make a portfolio of assets\", \"equal-weight basket\", \"rebalance my portfolio\", \"track the top N tokens\", or wants an automated, weighted multi-asset basket that buys in one pass and rebalances on a cadence. Builds the basket spec, delegates each buy and rebalance swap to the swap-integration Trading API flow, and records target weights in state.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4422,4423,4426,4427],{"name":23,"slug":24,"type":15},{"name":4424,"slug":4425,"type":15},"Portfolio Management","portfolio-management",{"name":4392,"slug":4393,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:04:22.328253",{"slug":4430,"name":4430,"fn":4431,"description":4432,"org":4433,"tags":4434,"stars":25,"repoUrl":26,"updatedAt":4441},"liquidity-planner","plan and create liquidity positions","This skill should be used when the user asks to \"provide liquidity\", \"create LP position\", \"add liquidity to pool\", \"become a liquidity provider\", \"create v3 position\", \"create v4 position\", \"concentrated liquidity\", \"set price range\", or mentions providing liquidity, LP positions, or liquidity pools on Uniswap. Generates deep links to create positions in the Uniswap interface.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4435,4436,4437,4440],{"name":4404,"slug":4405,"type":15},{"name":23,"slug":24,"type":15},{"name":4438,"slug":4439,"type":15},"Liquidity","liquidity",{"name":13,"slug":14,"type":15},"2026-07-17T06:08:09.315325",{"slug":4443,"name":4443,"fn":4444,"description":4445,"org":4446,"tags":4447,"stars":25,"repoUrl":26,"updatedAt":4454},"lp-integration","integrate Uniswap liquidity provisioning","Integrate Uniswap liquidity provisioning (LP) into applications via the LP REST API. Use when the user says \"LP API\", \"liquidity provisioning API\", \"provide liquidity programmatically\", \"create LP position via API\", \"add liquidity via API\", \"increase liquidity\", \"decrease liquidity\", \"remove liquidity\", \"claim LP fees\", \"collect LP fees\", \"manage LP positions in code\", or mentions building a backend, bot, or frontend that creates or manages Uniswap v2\u002Fv3\u002Fv4 liquidity positions through an API. Also use when debugging LP API calls (e.g. \u002Flp\u002Fcreate, \u002Flp\u002Fcheck_approval, \u002Flp\u002Fincrease, \u002Flp\u002Fdecrease, \u002Flp\u002Fclaim_fees), unexpected response fields, the approval or EIP-712 permit flow, or transaction-building errors for liquidity positions. For generating deep links to the Uniswap web app instead of calling the API, use the liquidity-planner skill; for using the Uniswap v4 SDK directly rather than the REST API, use the v4-sdk-integration skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4448,4451,4452,4453],{"name":4449,"slug":4450,"type":15},"API Development","api-development",{"name":4404,"slug":4405,"type":15},{"name":4438,"slug":4439,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:13.704465",{"slug":4456,"name":4456,"fn":4457,"description":4458,"org":4459,"tags":4460,"stars":25,"repoUrl":26,"updatedAt":4468},"pay-with-any-token","pay HTTP 402 challenges with Uniswap","Pay HTTP 402 payment challenges using tokens via the Tempo CLI and Uniswap Trading API. Use when the user encounters a 402 Payment Required response, needs to fulfill a machine payment, mentions \"MPP\", \"Tempo payment\", \"pay for API access\", \"HTTP 402\", \"x402\", \"machine payment protocol\", \"pay-with-any-token\", \"use tempo\", \"tempo request\", or \"tempo wallet\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4461,4462,4465,4466],{"name":4404,"slug":4405,"type":15},{"name":4463,"slug":4464,"type":15},"Payments","payments",{"name":4392,"slug":4393,"type":15},{"name":4467,"slug":4467,"type":15},"x402","2026-07-17T06:04:29.756086",{"slug":4470,"name":4470,"fn":4471,"description":4472,"org":4473,"tags":4474,"stars":25,"repoUrl":26,"updatedAt":4479},"pay-with-app","pay 402 payment challenges","Pay HTTP 402 payment challenges issued by OKX's Agent Payments Protocol (APP) on X Layer using tokens from any chain via the Uniswap Trading API. Use this skill whenever the user encounters a 402 challenge whose network resolves to X Layer (chain 196), mentions \"APP\", \"Agent Payments Protocol\", \"OKX agent payment\", \"OKX Onchain OS\", \"OKX agentic wallet\", \"x402 on X Layer\", \"USDT0\", \"x42\", \"Instant Payment\", \"Batch Payment\", \"pay for X Layer API\", or wants to pay an OKX-backed merchant. Even when the user does not explicitly say APP, prefer this skill for any 402 challenge whose network resolves to X Layer (chain 196). For 402 challenges on other chains (Ethereum, Base, Arbitrum, Tempo) use pay-with-any-token instead.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4475,4476,4477,4478],{"name":4449,"slug":4450,"type":15},{"name":4463,"slug":4464,"type":15},{"name":13,"slug":14,"type":15},{"name":4467,"slug":4467,"type":15},"2026-07-17T06:07:38.795043",{"slug":4481,"name":4481,"fn":4482,"description":4483,"org":4484,"tags":4485,"stars":25,"repoUrl":26,"updatedAt":4490},"swap-integration","integrate Uniswap swap functionality","Integrate Uniswap swaps into applications. Use when user says \"integrate swaps\", \"uniswap\", \"trading api\", \"add swap functionality\", \"build a swap frontend\", \"create a swap script\", \"smart contract swap integration\", \"use Universal Router\", \"Trading API\", or mentions swapping tokens via Uniswap.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4486,4487,4488,4489],{"name":4449,"slug":4450,"type":15},{"name":4404,"slug":4405,"type":15},{"name":4392,"slug":4393,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:10.354222",{"slug":4492,"name":4492,"fn":4493,"description":4494,"org":4495,"tags":4496,"stars":25,"repoUrl":26,"updatedAt":4501},"swap-planner","plan and execute token swaps","This skill should be used when the user asks to \"swap tokens\", \"trade ETH for USDC\", \"exchange tokens on Uniswap\", \"buy tokens\", \"sell tokens\", \"convert ETH to stablecoins\", \"find memecoins\", \"discover tokens\", \"research tokens\", \"tokens to buy\", \"find tokens to swap\", \"what should I buy\", or mentions swapping, trading, researching, discovering, buying, or exchanging tokens on any Uniswap-supported chain. Supports both known token swaps and token discovery workflows (discovery uses keyword search and web search — there is no live \"trending\" feed). Generates deep links to execute swaps in the Uniswap interface.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4497,4498,4499,4500],{"name":4404,"slug":4405,"type":15},{"name":4438,"slug":4439,"type":15},{"name":4392,"slug":4393,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:10.008152",{"slug":4503,"name":4503,"fn":4504,"description":4505,"org":4506,"tags":4507,"stars":25,"repoUrl":26,"updatedAt":4511},"v4-hook-generator","generate Uniswap v4 hook contracts","Generate Uniswap v4 hook contracts via OpenZeppelin MCP. Use when building custom swap logic, async swaps, hook-owned liquidity, custom curves, dynamic fees, MEV protection, limit orders, or oracle hooks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4508,4509,4510],{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:04:19.17669",{"items":4513,"total":1754},[4514,4521,4528,4535,4542,4549,4556],{"slug":1308,"name":1308,"fn":4370,"description":4371,"org":4515,"tags":4516,"stars":25,"repoUrl":26,"updatedAt":4380},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4517,4518,4519,4520],{"name":4375,"slug":4376,"type":15},{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":4382,"name":4382,"fn":4383,"description":4384,"org":4522,"tags":4523,"stars":25,"repoUrl":26,"updatedAt":4395},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4524,4525,4526,4527],{"name":4388,"slug":4389,"type":15},{"name":23,"slug":24,"type":15},{"name":4392,"slug":4393,"type":15},{"name":13,"slug":14,"type":15},{"slug":4397,"name":4397,"fn":4398,"description":4399,"org":4529,"tags":4530,"stars":25,"repoUrl":26,"updatedAt":4408},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4531,4532,4533,4534],{"name":4388,"slug":4389,"type":15},{"name":4404,"slug":4405,"type":15},{"name":4392,"slug":4393,"type":15},{"name":13,"slug":14,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":4536,"tags":4537,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4538,4539,4540,4541],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":4417,"name":4417,"fn":4418,"description":4419,"org":4543,"tags":4544,"stars":25,"repoUrl":26,"updatedAt":4428},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4545,4546,4547,4548],{"name":23,"slug":24,"type":15},{"name":4424,"slug":4425,"type":15},{"name":4392,"slug":4393,"type":15},{"name":13,"slug":14,"type":15},{"slug":4430,"name":4430,"fn":4431,"description":4432,"org":4550,"tags":4551,"stars":25,"repoUrl":26,"updatedAt":4441},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4552,4553,4554,4555],{"name":4404,"slug":4405,"type":15},{"name":23,"slug":24,"type":15},{"name":4438,"slug":4439,"type":15},{"name":13,"slug":14,"type":15},{"slug":4443,"name":4443,"fn":4444,"description":4445,"org":4557,"tags":4558,"stars":25,"repoUrl":26,"updatedAt":4454},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4559,4560,4561,4562],{"name":4449,"slug":4450,"type":15},{"name":4404,"slug":4405,"type":15},{"name":4438,"slug":4439,"type":15},{"name":13,"slug":14,"type":15}]