Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-invariant-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrlfirst committed Jun 11, 2024
2 parents 37171f3 + 9ddb131 commit 55eb08f
Show file tree
Hide file tree
Showing 78 changed files with 240 additions and 26,438 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Scarb.lock
*.txt

pyenv/

ethereum/dependencies/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
1. Start Anvil in a new terminal with the command `anvil`.

2. Install dependencies:
requires `katana 0.7.0-alpha.4`
```bash
dojoup -v 0.7.0-alpha.4
```

```bash
cd ethereum
forge install
forge soldeer install forge-std~1.8.2
```

3. Build the project and set up environment variables:
Expand All @@ -40,20 +42,15 @@
katana/deploy.sh
```

7. Initialize the deployed contracts:
```bash
source katana/initialize_contracts.sh
```

8. Set up local Ethereum testing:
7. Set up local Ethereum testing:
```bash
cd ../ethereum
cp anvil.env .env
source .env
forge script script/LocalTesting.s.sol:LocalSetup --broadcast --rpc-url ${ETH_RPC_URL}
```

9. Send a message:
```bash
forge script script/SendMessage.s.sol:Value --broadcast --rpc-url ${ETH_RPC_URL}
```
8. Send a message:
```bash
forge script script/SendMessage.s.sol:Value --broadcast --rpc-url ${ETH_RPC_URL}
```
2 changes: 2 additions & 0 deletions ethereum/anvil.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ L2_SELECTOR_VALUE=59834267406802751848117957855755485003820611985621650560140652
L2_SELECTOR_STRUCT=0x00f1149cade9d692862ad41df96b108aa2c20af34f640457e781d166c98dc6b0
# Account contract address that send messages on L2.
L2_ACCOUNT=0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973
# Address of the L2 message proxy contract
L2_CONTRACT_ADDRESS=0x00ecee874a015525c1e2525fe405bf4e02da2f6cf3feb1ca39601a163f77ab00
3 changes: 2 additions & 1 deletion ethereum/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ out = "out"
libs = ["lib"]
fs_permissions = [{ access = "read-write", path = "./logs" }]

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
[dependencies] # <= Dependencies will be added under this config
forge-std = { version = "1.8.2", url = "https://github.com/foundry-rs/foundry.git" }
134 changes: 0 additions & 134 deletions ethereum/lib/forge-std/.github/workflows/ci.yml

This file was deleted.

29 changes: 0 additions & 29 deletions ethereum/lib/forge-std/.github/workflows/sync.yml

This file was deleted.

4 changes: 0 additions & 4 deletions ethereum/lib/forge-std/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions ethereum/lib/forge-std/.gitmodules

This file was deleted.

Loading

0 comments on commit 55eb08f

Please sign in to comment.