Skip to content

Commit 0b44a35

Browse files
committed
feat: add deployment script
1 parent 82346ae commit 0b44a35

File tree

6 files changed

+42
-58
lines changed

6 files changed

+42
-58
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cache/
33
out/
44

55
# Ignores development broadcast logs
6-
!/broadcast
6+
/broadcast
77
/broadcast/*/31337/
88
/broadcast/**/dry-run/
99

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
A modular contract account designed for delegation by EOAs and compatible with EntryPoint v0.8.
44

5+
## Deployment
6+
7+
```
8+
0x936725d1F4E616a50ea8612e7f05952d973827C8
9+
```
10+
11+
https://contractscan.xyz/contract/0x936725d1F4E616a50ea8612e7f05952d973827C8
12+
13+
> [!WARNING]
14+
> This contract has not been audited. Use it at your own risk.
15+
516
## Development
617

718
```

script/Counter.s.sol

Lines changed: 0 additions & 19 deletions
This file was deleted.

script/deployModular7702.s.sol

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// SPDX-License-Identifier: UNLICENSED
2+
pragma solidity ^0.8.30;
3+
4+
import {Script, console} from "forge-std/Script.sol";
5+
import {Modular7702} from "../src/Modular7702.sol";
6+
7+
/*
8+
9+
forge script script/deployModular7702.s.sol --rpc-url https://sepolia.base.org --broadcast --verify
10+
11+
*/
12+
13+
contract DeployModular7702Script is Script {
14+
function setUp() public {}
15+
16+
function run() public {
17+
address deployer = vm.rememberKey(vm.envUint("PRIVATE_KEY"));
18+
console.log("Deployer", deployer);
19+
20+
bytes32 salt = vm.envBytes32("SALT");
21+
22+
vm.startBroadcast();
23+
24+
Modular7702 modular7702 = new Modular7702{salt: salt}();
25+
26+
console.log("Deployed Modular7702 at", address(modular7702));
27+
28+
vm.stopBroadcast();
29+
}
30+
}

src/Counter.sol

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/Counter.t.sol

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)