Skip to content

Commit

Permalink
WIP: refactor 3 crates into 1 single crate and refactor tests and sig…
Browse files Browse the repository at this point in the history
…nature process for sendRawTransaction (#681)

* refactor: transform into single crate

* fix: fix env

* fix: fix dead code warning

* fix: fix CI order of linting

* fix: fix event tests

* fix: fix event tests and refactor constants

* fix: remove unnecessary copy

* fix: fix PR comments

* fix: fix pr comments

* fix: fix CI
  • Loading branch information
Eikix authored Jan 4, 2024
1 parent 133176e commit 13c5f12
Show file tree
Hide file tree
Showing 192 changed files with 3,689 additions and 42,049 deletions.
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ KATANA_PRIVATE_KEY=0x1800000000300000180000000000030000000000003006001800006600
MADARA_ACCOUNT_ADDRESS=0x3
MADARA_PRIVATE_KEY=0x00c1cf1490de1352865301bb8705143f3ef938f97fdf892f1090dcb5ac7bcd1d

# configuration for the eoa deployer account
# configuration for the eoa deployer account
DEPLOYER_ACCOUNT_ADDRESS=
DEPLOYER_ACCOUNT_PRIVATE_KEY=0x0288a51c164874bb6a1ca7bd1cb71823c234a86d0f7b150d70fa8f06de645396

# Kakarot Environment
KAKAROT_HTTP_RPC_ADDRESS=0.0.0.0:3030
## check `./deployments/katana/deployments.json` after running `make devnet`
KAKAROT_ADDRESS=
PROXY_ACCOUNT_CLASS_HASH=0xba8f3f34eb92f56498fdf14ecac1f19d507dcc6859fa6d85eb8545370654bd
EXTERNALLY_OWNED_ACCOUNT_CLASS_HASH=0x4730612e9d26ebca8dd27be1af79cea613f7dee43f5b1584a172040e39f4063
CONTRACT_ACCOUNT_CLASS_HASH=0x5599cc38b46f92273f8c3566810c292352beb857816d0d90b05afa967995b21
PROXY_ACCOUNT_CLASS_HASH=0x105356ebf9c56df723dc6952dae0cffd8f6e0c22281cf0ee7df8ddde60281c0
EXTERNALLY_OWNED_ACCOUNT_CLASS_HASH=0x3059af87477d2462529c32d9b5f3ece4bf5fe36567f5b4cd4e330a437c1006
CONTRACT_ACCOUNT_CLASS_HASH=0x38acb6f0e2af46af6a2017e52c01e223749a3ed9a255ad486880ef8f768543e

## configurations for testing
COMPILED_KAKAROT_PATH=lib/kakarot/build
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
profile: minimal
components: llvm-tools-preview, rustfmt, clippy
override: true
toolchain: 1.73.0
toolchain: 1.74.0
- name: Retrieve cached dependencies
uses: Swatinem/rust-cache@v2
- name: Setup coverage env
Expand Down Expand Up @@ -60,15 +60,14 @@ jobs:
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Setup the Kakarot submodule
run: make setup
# Lint
# Create dump
- name: Create dump
run: ./scripts/make_with_env.sh && make dump-katana
- name: Lint
run: |
cargo check &&
cargo fmt --all -- --check &&
cargo clippy --workspace --all-features --all-targets -- -D warnings
# Create dump
- name: Create dump
run: ./scripts/make_with_env.sh && make dump-katana
- name: Generate code coverage
run: make test-coverage
- name: Upload coverage to Codecov
Expand Down
3 changes: 2 additions & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ runtimes:
- [email protected]
- [email protected]
lint:
disabled:
- checkov
enabled:
- [email protected]
- [email protected]
- [email protected]
- git-diff-check
- [email protected]
Expand Down
Loading

0 comments on commit 13c5f12

Please sign in to comment.