Skip to content

Commit 079582e

Browse files
committed
init Modular7702
1 parent 0fe2bd0 commit 079582e

11 files changed

Lines changed: 456 additions & 451 deletions

File tree

.github/workflows/test.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
name: CI
22

33
on:
4-
push:
5-
pull_request:
6-
workflow_dispatch:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
77

88
env:
9-
FOUNDRY_PROFILE: ci
9+
FOUNDRY_PROFILE: ci
1010

1111
jobs:
12-
check:
13-
strategy:
14-
fail-fast: true
15-
16-
name: Foundry project
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
with:
21-
submodules: recursive
22-
23-
- name: Install Foundry
24-
uses: foundry-rs/foundry-toolchain@v1
25-
26-
- name: Show Forge version
27-
run: |
28-
forge --version
29-
30-
- name: Run Forge fmt
31-
run: |
32-
forge fmt --check
33-
id: fmt
34-
35-
- name: Run Forge build
36-
run: |
37-
forge build --sizes
38-
id: build
39-
40-
- name: Run Forge tests
41-
run: |
42-
forge test -vvv
43-
id: test
12+
check:
13+
strategy:
14+
fail-fast: true
15+
16+
name: Foundry project
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
23+
- name: Install Foundry
24+
uses: foundry-rs/foundry-toolchain@v1
25+
26+
- name: Show Forge version
27+
run: |
28+
forge --version
29+
30+
- name: Run Forge fmt
31+
run: |
32+
forge fmt --check
33+
id: fmt
34+
35+
- name: Run Forge build
36+
run: |
37+
forge build --sizes
38+
id: build
39+
40+
- name: Run Forge tests
41+
run: |
42+
forge test -vvv
43+
id: test

README.md

Lines changed: 3 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,9 @@
22

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

5-
## Foundry
5+
## Development
66

7-
**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
8-
9-
Foundry consists of:
10-
11-
- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
12-
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
13-
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
14-
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.
15-
16-
## Documentation
17-
18-
https://book.getfoundry.sh/
19-
20-
## Usage
21-
22-
### Build
23-
24-
```shell
25-
$ forge build
267
```
27-
28-
### Test
29-
30-
```shell
31-
$ forge test
32-
```
33-
34-
### Format
35-
36-
```shell
37-
$ forge fmt
38-
```
39-
40-
### Gas Snapshots
41-
42-
```shell
43-
$ forge snapshot
44-
```
45-
46-
### Anvil
47-
48-
```shell
49-
$ anvil
50-
```
51-
52-
### Deploy
53-
54-
```shell
55-
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
56-
```
57-
58-
### Cast
59-
60-
```shell
61-
$ cast <subcommand>
62-
```
63-
64-
### Help
65-
66-
```shell
67-
$ forge --help
68-
$ anvil --help
69-
$ cast --help
8+
forge soldeer install
9+
forge test
7010
```

foundry.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ libs = ["lib", "dependencies"]
55

66
[dependencies]
77
forge-std = "1.11.0"
8-
"oz-5.3" = { version = "5.3", git = "https://github.com/OpenZeppelin/openzeppelin-contracts", tag = "v5.3.0" }
98
"oz-5.4" = { version = "5.4", git = "https://github.com/OpenZeppelin/openzeppelin-contracts", tag = "v5.4.0" }
109
aa = { version = "0.8", git = "https://github.com/eth-infinitism/account-abstraction.git", tag = "v0.8.0" }
1110

11+
12+
[lint]
13+
exclude_lints = ["unsafe-typecast"]
14+
15+
1216
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

remappings.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
aa-0.8/=dependencies/aa-0.8/contracts/
22
forge-std/=dependencies/forge-std-1.11.0/src/
3-
oz-5.3/=dependencies/oz-5.3-5.3/contracts/
43
oz-5.4/=dependencies/oz-5.4-5.4/contracts/

script/Counter.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: UNLICENSED
22
pragma solidity ^0.8.13;
33

4-
import {Script, console} from "forge-std/Script.sol";
4+
import {Script} from "forge-std/Script.sol";
55
import {Counter} from "../src/Counter.sol";
66

77
contract CounterScript is Script {

soldeer.lock

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ url = "https://soldeer-revisions.s3.amazonaws.com/forge-std/1_11_0_09-10-2025_06
1111
checksum = "0290ef84c693dc9086f98f6a9b4a69dc5c2b6aa1cfe10a989bd1def1a456c099"
1212
integrity = "84aa7d32f8c7329468cf16f31f0f74e68072e634fdbde98f3bb00c6b136103b2"
1313

14-
[[dependencies]]
15-
name = "oz-5.3"
16-
version = "5.3"
17-
git = "https://github.com/OpenZeppelin/openzeppelin-contracts"
18-
rev = "e4f70216d759d8e6a64144a9e1f7bbeed78e7079"
19-
2014
[[dependencies]]
2115
name = "oz-5.4"
2216
version = "5.4"

src/BaseAccount.sol

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

0 commit comments

Comments
 (0)