Skip to content

Commit

Permalink
Include new contract addrs in basic atlas deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSparksCode committed Nov 9, 2023
1 parent 188be20 commit 424c326
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
18 changes: 15 additions & 3 deletions deployments.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
{
"LOCAL": {
"ATLAS": "0x38c76A767d45Fc390160449948aF80569E2C4217",
"SIMULATOR": "0x721d8077771Ebf9B931733986d619aceea412a1C",
"ATLAS": "0x4653251486a57f90Ee89F9f34E098b9218659b83",
"ATLAS_FACTORY": "0x89ec9355b1Bcc964e576211c8B011BD709083f8d",
"ATLAS_VERIFICATION": "0x72662E4da74278430123cE51405c1e7A1B87C294",
"GAS_ACCOUNTING_LIB": "0x52bad4A8584909895C22bdEcf8DBF33314468Fb0",
"SAFETY_LOCKS_LIB": "0xed12bE400A07910E4d4E743E4ceE26ab1FC9a961",
"SIMULATOR": "0x20Dc424c5fa468CbB1c702308F0cC9c14DA2825C",
"SWAP_INTENT_DAPP_CONTROL": "0xDC57724Ea354ec925BaFfCA0cCf8A1248a8E5CF1",
"TX_BUILDER": "0xa8d297D643a11cE83b432e87eEBce6bee0fd2bAb",
"SIMPLE_RFQ_SOLVER": "0xEb63D671653489B91E653c52a018B63D5095223B"
},
"SEPOLIA": {
"ATLAS": "",
"ATLAS_FACTORY": "",
"ATLAS_VERIFICATION": "",
"GAS_ACCOUNTING_LIB": "",
"SAFETY_LOCKS_LIB": "",
"SIMULATOR": "",
"SWAP_INTENT_DAPP_CONTROL": "",
"TX_BUILDER": "",
"SIMPLE_RFQ_SOLVER": ""
},
"MAINNET": {
"ATLAS": "",
"ATLAS_FACTORY": "",
"ATLAS_VERIFICATION": "",
"GAS_ACCOUNTING_LIB": "",
"SAFETY_LOCKS_LIB": "",
"SIMULATOR": "",
"SWAP_INTENT_DAPP_CONTROL": "",
"TX_BUILDER": "",
"SIMPLE_RFQ_SOLVER": ""
}
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"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": "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",
"deploy-atlas-local": "source .env && forge script script/deploy-atlas.s.sol:DeployAtlasScript --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: 0 additions & 2 deletions script/base/deploy-base.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import "forge-std/StdJson.sol";

import {ERC20} from "solmate/tokens/ERC20.sol";



contract DeployBaseScript is Script {
using stdJson for string;

Expand Down
10 changes: 10 additions & 0 deletions script/deploy-atlas.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,21 @@ contract DeployAtlasScript is DeployBaseScript {
vm.stopBroadcast();

_writeAddressToDeploymentsJson("ATLAS", address(atlas));
_writeAddressToDeploymentsJson("ATLAS_FACTORY", address(atlasFactory));
_writeAddressToDeploymentsJson("ATLAS_VERIFICATION", address(atlasVerification));
_writeAddressToDeploymentsJson("GAS_ACCOUNTING_LIB", address(gasAccountingLib));
_writeAddressToDeploymentsJson("SAFETY_LOCKS_LIB", address(safetyLocksLib));
_writeAddressToDeploymentsJson("SIMULATOR", address(simulator));

console.log("\n");
console.log("Atlas deployed at: \t\t\t\t", address(atlas));
console.log("AtlasFactory deployed at: \t\t\t", address(atlasFactory));
console.log("AtlasVerification deployed at: \t\t", address(atlasVerification));
console.log("GasAccountingLib deployed at: \t\t", address(gasAccountingLib));
console.log("SafetyLocksLib deployed at: \t\t\t", address(safetyLocksLib));
console.log("Simulator deployed at: \t\t\t", address(simulator));
console.log("\n");
console.log("You can find a list of contract addresses from the latest deployment in deployments.json");
}
}

Expand Down

0 comments on commit 424c326

Please sign in to comment.