Skip to content

Commit

Permalink
deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
leekt committed Jul 12, 2023
1 parent ccc01a6 commit 5654ca1
Show file tree
Hide file tree
Showing 9 changed files with 653 additions and 134 deletions.
77 changes: 77 additions & 0 deletions broadcast/DeployKernel.s.sol/5/run-1689175760.json

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions broadcast/DeployKernel.s.sol/5/run-1689175805.json

Large diffs are not rendered by default.

106 changes: 32 additions & 74 deletions broadcast/DeployKernel.s.sol/5/run-latest.json

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions broadcast/DeployKernel.s.sol/80001/run-1689175940.json

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions broadcast/DeployKernel.s.sol/80001/run-1689175989.json

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions broadcast/DeployKernel.s.sol/80001/run-1689176008.json

Large diffs are not rendered by default.

139 changes: 139 additions & 0 deletions broadcast/DeployKernel.s.sol/80001/run-1689176015.json

Large diffs are not rendered by default.

123 changes: 69 additions & 54 deletions broadcast/DeployKernel.s.sol/80001/run-latest.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions scripts/DeployKernel.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ contract DeployKernel is Script {
address kernelFactory = address(bytes20(returnData));
console.log("KernelFactory deployed at: %s", kernelFactory);

bytecode = type(ECDSAValidator).creationCode;
(success, returnData) = DETERMINISTIC_CREATE2_FACTORY.call(abi.encodePacked(bytecode));
require(success, "Failed to deploy ECDSAValidator");
address validator = address(bytes20(returnData));
console.log("ECDSAValidator deployed at: %s", validator);
//bytecode = type(ECDSAValidator).creationCode;
//(success, returnData) = DETERMINISTIC_CREATE2_FACTORY.call(abi.encodePacked(bytecode));
//require(success, "Failed to deploy ECDSAValidator");
//address validator = address(bytes20(returnData));
//console.log("ECDSAValidator deployed at: %s", validator);

bytecode = type(ECDSAKernelFactory).creationCode;
(success, returnData) = DETERMINISTIC_CREATE2_FACTORY.call(abi.encodePacked(bytecode, abi.encode(kernelFactory), abi.encode(validator), abi.encode(IEntryPoint(0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789))));
(success, returnData) = DETERMINISTIC_CREATE2_FACTORY.call(abi.encodePacked(bytecode, abi.encode(kernelFactory), abi.encode(address(0x180D6465F921C7E0DEA0040107D342c87455fFF5)), abi.encode(IEntryPoint(0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789))));
require(success, "Failed to deploy ECDSAKernelFactory");
address ecdsaFactory = address(bytes20(returnData));
console.log("ECDSAKernelFactory deployed at: %s", ecdsaFactory);
Expand Down

0 comments on commit 5654ca1

Please sign in to comment.