-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7dc6000
commit d271f25
Showing
15 changed files
with
650 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
119 changes: 119 additions & 0 deletions
119
broadcast/DeployFactory.s.sol/84532/run-1713816554.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule FreshCryptoLib
deleted from
d9bb3b
Submodule safe-singleton-deployer-sol
updated
4 files
+3 −3 | .gas-snapshot | |
+18 −0 | scripts/ExampleDeploy.s.sol | |
+40 −1 | src/SafeSingletonDeployer.sol | |
+1 −1 | test/SafeSingletonDeployer.t.sol |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.13; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
import {SafeSingletonDeployer} from "safe-singleton-deployer-sol/src/SafeSingletonDeployer.sol"; | ||
|
||
import {CoinbaseSmartWallet, CoinbaseSmartWalletFactory} from "../src/CoinbaseSmartWalletFactory.sol"; | ||
|
||
contract DeployFactoryScript is Script { | ||
address constant EXPECTED_IMPLEMENTATION = 0x000100abaad02f1cfC8Bbe32bD5a564817339E72; | ||
address constant EXPECTED_FACTORY = 0x0BA5ED0c6AA8c49038F819E587E2633c4A9F428a; | ||
|
||
function run() public { | ||
console2.log("Deploying on chain ID", block.chainid); | ||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
address implementation = SafeSingletonDeployer.broadcastDeploy({ | ||
deployerPrivateKey: deployerPrivateKey, | ||
creationCode: type(CoinbaseSmartWallet).creationCode, | ||
args: "", | ||
salt: 0x3438ae5ce1ff7750c1e09c4b28e2a04525da412f91561eb5b57729977f591fbb | ||
}); | ||
console2.log("implementation", implementation); | ||
assert(implementation == EXPECTED_IMPLEMENTATION); | ||
address factory = SafeSingletonDeployer.broadcastDeploy({ | ||
deployerPrivateKey: deployerPrivateKey, | ||
creationCode: type(CoinbaseSmartWalletFactory).creationCode, | ||
args: abi.encode(implementation), | ||
salt: 0x278d06dab87f67bb2d83470a70c8975a2c99872f290058fb43bcc47da5f0390c | ||
}); | ||
console2.log("factory", factory); | ||
assert(factory == EXPECTED_FACTORY); | ||
} | ||
} |
Hi