Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Overtime Base deployment #106

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions scripts/deploy-all-overtime.sh
Original file line number Diff line number Diff line change
@@ -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 "==================================================="
11 changes: 11 additions & 0 deletions scripts/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}