Skip to content

Commit 9798a7a

Browse files
committed
refactor: change to foundry repo and deploy on base/arbitrum
1 parent 59f741a commit 9798a7a

31 files changed

+641
-13377
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,12 @@ on:
99

1010
jobs:
1111
check-lint:
12-
name: Check TS & Solidity lint
12+
name: Check Solidity lint
1313
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
node-version: [ '20.9' ]
1714
steps:
1815
- uses: actions/checkout@v4
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: ${{ matrix.node-version }}
2316
- name: Install Foundry
2417
uses: foundry-rs/foundry-toolchain@v1
2518

26-
- name: Cache node modules
27-
id: cache-npm
28-
uses: actions/cache@v3
29-
env:
30-
cache-name: cache-node-modules
31-
with:
32-
# npm cache files are stored in `~/.npm` on Linux/macOS
33-
path: ~/.npm
34-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
35-
restore-keys: |
36-
${{ runner.os }}-build-${{ env.cache-name }}-
37-
${{ runner.os }}-build-
38-
${{ runner.os }}-
39-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
40-
name: List the state of node modules
41-
continue-on-error: true
42-
run: npm list
43-
- name: Install Dependencies
44-
run: npm install --ignore-scripts
45-
- name: Check Ts Style
46-
run: npm run prettier:ts
4719
- name: Check Solidity Style
4820
run: forge fmt --check

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.pre-commit-config.yaml

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

.prettierignore

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

.prettierrc

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

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,42 @@ Core Contract of Clober DEX V2
2323

2424
All deployments can be found in the [deployments](./deployments) directory.
2525

26-
## Install
26+
### Recent `BookManager` deployments
27+
28+
- **Base (chainId 8453)**: `0x8ca3a6f4a6260661fcb9a25584c796a1fa380112`
29+
- **Arbitrum One (chainId 42161)**: `0x74ffe45757db60b24a7574b3b5948dad368c2fdf`
30+
- **Monad (chainId 143)**: `0x6657d192273731c3cac646cc82d5f28d0cbe8ccc`
2731

32+
## Install
2833

2934
### Prerequisites
30-
- We use [Forge Foundry](https://github.com/foundry-rs/foundry) for test. Follow the [guide](https://github.com/foundry-rs/foundry#installation) to install Foundry.
35+
- We use [Foundry](https://github.com/foundry-rs/foundry). Follow the [installation guide](https://github.com/foundry-rs/foundry#installation).
3136

3237
### Installing From Source
3338

3439
```bash
3540
git clone https://github.com/clober-dex/v2-core && cd v2-core
36-
npm install
41+
forge install
3742
```
3843

3944
## Usage
4045

41-
### Tests
46+
### Build
47+
4248
```bash
43-
npm run test
49+
forge build
4450
```
4551

46-
### Linting
52+
### Tests
4753

48-
To run lint checks:
4954
```bash
50-
npm run prettier:ts
51-
npm run lint:sol
55+
forge test
5256
```
5357

54-
To run lint fixes:
58+
### Formatting
59+
5560
```bash
56-
npm run prettier:fix:ts
57-
npm run lint:fix:sol
61+
forge fmt
5862
```
5963

6064
### Library

broadcast/Deploy.s.sol/42161/run-1768911065894.json

Lines changed: 127 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/Deploy.s.sol/42161/run-latest.json

Lines changed: 127 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/Deploy.s.sol/8453/run-1768671397799.json

Lines changed: 137 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/Deploy.s.sol/8453/run-latest.json

Lines changed: 137 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)