diff --git a/scripts/deploy-all-overtime.sh b/scripts/deploy-all-overtime.sh new file mode 100755 index 0000000..9566669 --- /dev/null +++ b/scripts/deploy-all-overtime.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +# Function to run a script and wait +run_script() { + echo "===================================================" + echo "Running $1..." + echo "===================================================" + npx hardhat run $1 --network baseMainnet + echo "Waiting 3 seconds before next deployment..." + sleep 3 +} + +echo "Starting deployments..." +echo "===================================================" + +# 1. Core Contracts (First Wave) +echo "Deploying Core Contracts - First Wave..." +run_script "scripts/deployContracts/deploySportsAMMV2Manager.js" +run_script "scripts/deployContracts/deploySportsAMMV2ResultManager.js" +run_script "scripts/deployContracts/deploySportsAMMV2RiskManager.js" + +# 2. Core Contracts (Second Wave) +echo "Deploying Core Contracts - Second Wave..." +run_script "scripts/deployContracts/deploySportsAMMV2.js" +run_script "scripts/deployContracts/deploySportsAMMV2Data.js" +run_script "scripts/deployContracts/deployTicketMastercopy.js" + +# 3. Liquidity Pool Infrastructure +echo "Deploying Liquidity Pool Infrastructure..." +run_script "scripts/deployContracts/deployLiquidityPool/deploySportsAMMV2LiquidityPoolData.js" +run_script "scripts/deployContracts/deployLiquidityPool/deploySportsAMMV2LiquidityPoolRoundMastercopy.js" + +# 4. USDC Liquidity Pool +echo "Deploying USDC Liquidity Pool..." +run_script "scripts/deployContracts/deployLiquidityPool/deploySportsAMMV2LiquidityPool.js" +run_script "scripts/deployContracts/deployLiquidityPool/deployDefaultLiquidityProvider.js" + +# 5. WETH Liquidity Pool +echo "Deploying WETH Liquidity Pool..." +run_script "scripts/deployContracts/deployETHLiquidityPool/deploySportsAMMV2LiquidityPool.js" +run_script "scripts/deployContracts/deployETHLiquidityPool/deployDefaultLiquidityProvider.js" + +# 6. THALES Liquidity Pool +echo "Deploying THALES Liquidity Pool..." +run_script "scripts/deployContracts/deployTHALESLiquidityPool/deploySportsAMMV2LiquidityPool.js" +run_script "scripts/deployContracts/deployTHALESLiquidityPool/deployDefaultLiquidityProvider.js" + +echo "===================================================" +echo "All deployments completed!" +echo "===================================================" diff --git a/scripts/deployments.json b/scripts/deployments.json index 1474bc4..93e2f6d 100644 --- a/scripts/deployments.json +++ b/scripts/deployments.json @@ -199,5 +199,16 @@ "ResolveBlocker": "0x758c0fb1F629d0597b195B1653e2D656c5A55f53", "ResolveBlockerImplementation": "0x619ba1500F922577e56a30178D93A93e4Ee13dC3", "ResolveBlockerProxyAdmin": "0x59e28e3789ae8227596482857F7c8b5144607794" + }, + "baseMainnet": { + "ProtocolDAO": "0xf334412B96FE4a9Fc0a93D6297574a3b30217E64", + "DefaultCollateral": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", + "USDbC": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA", + "WETH": "0x4200000000000000000000000000000000000006", + "THALES": "0xf34e0cff046e154CAfCae502C7541b9E5FD8C249", + "SafeBox": "0x84aB38e42D8Da33b480762cCa543eEcA6135E040", + "Referrals": "0x42792eFed59F628495dD9F5E2190819468ce0934", + "AddressManager": "0xE2A98958E33E0110344DDeeF08eF42BA9D553050", + "StakingThales": "0x84aB38e42D8Da33b480762cCa543eEcA6135E040" } }