Skip to content

Commit

Permalink
Update with Sepolia deployment info
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSparksCode committed Nov 9, 2023
1 parent 67c2312 commit 9ca6e5b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
14 changes: 11 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
MAINNET_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY_GOES_HERE
MAINNET_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/XXXXXXXX
MAINNET_FORK_BLOCK_NUMBER=18219600
CODE_SIZE_LIMIT=100000
GAS_LIMIT=1000000000000

# Private keys are the default ones generated by Anvil

# Atlas Deployer
GOV_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

USER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
SOLVER1_PRIVATE_KEY=0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
SOLVER2_PRIVATE_KEY=0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a
Expand All @@ -16,3 +17,10 @@ WETH_FOR_USER=10000000000000000000
DAI=0x6B175474E89094C44Da98b954EedeAC495271d0F
DAI_WHALE=0x075e72a5eDf65F0A5f44699c7654C1a76941Ddc8
DAI_FOR_SOLVER=5000000000000000000000

SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/XXXXXXXX
ETHERSCAN_API_KEY=XXXXXXXX

# NOTE: Set chain pref here AND in the --rpc-url flag in the forge command
# Options: SEPOLIA, MAINNET, LOCAL, HOSTED_ANVIL
DEPLOY_TO=LOCAL
14 changes: 7 additions & 7 deletions deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"SIMPLE_RFQ_SOLVER": "0xEb63D671653489B91E653c52a018B63D5095223B"
},
"SEPOLIA": {
"ATLAS": "",
"ATLAS_FACTORY": "",
"ATLAS_VERIFICATION": "",
"GAS_ACCOUNTING_LIB": "",
"SAFETY_LOCKS_LIB": "",
"SIMULATOR": "",
"SWAP_INTENT_DAPP_CONTROL": "",
"ATLAS": "0xF6A9eD78A9dbe919A9aAAF2aB6A6Abba8856Bc88",
"ATLAS_FACTORY": "0x48201501aeCD974cc350cF27aBB5eCD9b7076581",
"ATLAS_VERIFICATION": "0x03C5C3658caC2c518Fd09E114293afC83e56BF94",
"GAS_ACCOUNTING_LIB": "0x2d1D4AAE1710DbD8871A3A94A1bBd0b25351aD97",
"SAFETY_LOCKS_LIB": "0xc07fE37C5a834622c1D77eF24f0E7cDFb460E739",
"SIMULATOR": "0xf05a353DB6C59c1812cae83C919bb4d09e98a303",
"SWAP_INTENT_DAPP_CONTROL": "0xa16555AA3Ac77b501e5C9171dac9df28ad321aAb",
"TX_BUILDER": "",
"SIMPLE_RFQ_SOLVER": ""
},
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
"anvil": "anvil",
"anvil-mainnet-fork": "source .env && anvil --fork-url ${MAINNET_RPC_URL} --fork-block-number ${MAINNET_FORK_BLOCK_NUMBER} --code-size-limit ${CODE_SIZE_LIMIT}",

"deploy-atlas-sepolia": "source .env && forge script script/deploy-atlas.s.sol:DeployAtlasScript --rpc-url ${SEPOLIA_RPC_URL} --broadcast",
"deploy-atlas-sepolia": "source .env && forge script script/deploy-atlas.s.sol:DeployAtlasScript --rpc-url ${SEPOLIA_RPC_URL} --broadcast --etherscan-api-key ${ETHERSCAN_API_KEY} --verify",
"deploy-atlas-local": "source .env && forge script script/deploy-atlas.s.sol:DeployAtlasScript --fork-url http://localhost:8545 --broadcast",

"deploy-swap-intent-sepolia": "source .env && forge script script/deploy-swap-intent-control.s.sol:DeploySwapIntentControlScript --rpc-url ${SEPOLIA_RPC_URL} --broadcast",
"deploy-swap-intent-sepolia": "source .env && forge script script/deploy-swap-intent-control.s.sol:DeploySwapIntentControlScript --rpc-url ${SEPOLIA_RPC_URL} --broadcast --etherscan-api-key ${ETHERSCAN_API_KEY} --verify",
"deploy-swap-intent-local": "source .env && forge script script/deploy-swap-intent-control.s.sol:DeploySwapIntentControlScript --fork-url http://localhost:8545 --broadcast",



"deploy-atlas-demo": "source .env && forge script script/deploy-atlas.s.sol:DeployAtlasScript --fork-url http://localhost:8545 --broadcast --non-interactive",
"deploy-atlas-swap-intent": "source .env && forge script script/deploy-atlas.s.sol:DeployAtlasAndSwapIntentDAppControlScript --fork-url http://localhost:8545 --broadcast --non-interactive",
"deploy-atlas-swap-intent-tx-builder": "source .env && forge script script/deploy-atlas.s.sol:DeployAtlasAndSwapIntentDAppControlAndTxBuilderScript --fork-url http://localhost:8545 --broadcast --non-interactive",
Expand Down
2 changes: 2 additions & 0 deletions script/deploy-solver.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ contract DeploySimpleRFQSolverScript is DeployBaseScript {

console.log("\n");
console.log("SimpleRFQSolver deployed at: \t\t\t", address(rfqSolver));
console.log("\n");
console.log("You can find a list of contract addresses from the latest deployment in deployments.json");
}
}

0 comments on commit 9ca6e5b

Please sign in to comment.