Skip to content

Commit

Permalink
feat: deploy factory into multiple chains (#1)
Browse files Browse the repository at this point in the history
Deployed factory into Ethereum Mainnet, Optimistic Ethereum, Gnosis, Arbitrum, BNB, Arbitrum Goerli, Ethereum Goerli, and Mumbai

---------

Co-authored-by: just-a-node <[email protected]>
Co-authored-by: Sanchay Mittal <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2023
1 parent 01350fd commit 22b178b
Show file tree
Hide file tree
Showing 14 changed files with 484 additions and 32 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
MAINNET_RPC=
OPTIMISM_RPC=
POLYGON_RPC=
ARBITRUM_RPC=
GNOSIS_RPC=
BSC_RPC=
GOERLI_RPC=

ETHERSCAN_API_KEY=

DEPLOYER_PRIVATE_KEY=
DEPLOYER_PRIVATE_KEY=
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ out/*/*
!out/Greeter.sol/*

# Keep the latest deployment only
broadcast/*/*/*
broadcast/**
!broadcast/**/run-latest.json
48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/1/run-latest.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/10/run-latest.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/100/run-latest.json

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions broadcast/MultichainDeploy.sol/137/run-latest.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/420/run-latest.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/42161/run-latest.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/421613/run-latest.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/5/run-latest.json

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/MultichainDeploy.sol/56/run-latest.json

Large diffs are not rendered by default.

53 changes: 26 additions & 27 deletions broadcast/MultichainDeploy.sol/80001/run-latest.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions solidity/scripts/MultichainDeploy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {ScriptingLibrary} from './ScriptingLibrary/ScriptingLibrary.sol';
contract MultichainDeploy is Script, ScriptingLibrary {
uint256 public deployer = vm.envUint('DEPLOYER_PRIVATE_KEY');
address constant CREATE2 = 0x4e59b44847b379578588920cA78FbF26c0B4956C;
string[] public chains = ['POLYGON_RPC', 'OPTIMISM_RPC', 'GOERLI_RPC'];
string[] public chains = ['MAINNET_RPC', 'POLYGON_RPC', 'OPTIMISM_RPC', 'ARBITRUM_RPC', 'GNOSIS_RPC', 'BSC_RPC'];

function run() public {
//TODO: Change salt from this test to prod before release
bytes32 _salt = keccak256(abi.encodePacked('xxxsdsdd23ewXERewewCewew20Factoewewry', msg.sender));
bytes32 _salt = keccak256(abi.encodePacked('de4y6D2tuMLufI7YOZMZ9AKw6YCMZeII7mX4U', msg.sender));
address[] memory _factories = new address[](chains.length);

for (uint256 _i; _i < chains.length; _i++) {
Expand Down
2 changes: 1 addition & 1 deletion solidity/scripts/ScriptingLibrary/FactoryAddress.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0xf4a2c2dff9465c9086fd3523b9bc55c126b393b0
0xc10fa06d401c05bce65b55efb1ef2158e55ff1d7

0 comments on commit 22b178b

Please sign in to comment.