Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev/katana branch #1697

Merged
merged 20 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ee4ad9c
refactor(katana): change stored compiled class (#1559)
kariy Feb 29, 2024
337b654
refactor(katana-primitives): move class related types to a separate m…
kariy Feb 29, 2024
38230c2
Katana executor traits (#1561)
kariy Feb 29, 2024
7cee1ca
feat(katana-executor): add `blockifier` executor implementations (#1562)
kariy Feb 29, 2024
5dd94a8
Refactor Katana to using the new executor traits (#1563)
kariy Feb 29, 2024
22ff4a5
feat(katana-executor): add starknet_in_rust executor (#1564)
kariy Mar 11, 2024
bce0197
doc(katana-executor): add README
kariy Feb 29, 2024
96e928f
test(katana-executor): add test for transaction simulation (#1593)
kariy Mar 2, 2024
4196d7f
test(katana-executor): refactor simulate tests (#1606)
kariy Mar 4, 2024
2262892
refactor(katana): decouple `katana-primitives` from any executor impl…
kariy Mar 8, 2024
8e79558
test(katana-executor): improve tests and add test for state (#1649)
kariy Mar 11, 2024
e45509b
feat(saya): load data from Katana to run `SNOS` (#1535)
glihm Mar 12, 2024
0b9ed9b
feat(katana-primitives): add fee info type
kariy Mar 22, 2024
51752e2
Refactor executor output
kariy Mar 22, 2024
4e855a5
Merge branch 'main' into dev/katana
kariy Mar 25, 2024
7fff40c
fix(katana): add missing contract address in `CallInfo`
kariy Mar 25, 2024
e3fb97c
Remove `native` feature for now
kariy Mar 25, 2024
cac2d19
Limit nextest build jobs
kariy Mar 25, 2024
3636462
refactor(katana-executor): add logs for transaction events and resources
kariy Mar 26, 2024
0c67745
fix(katana-executor): return reverted tx as error in estimate fee
kariy Mar 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@

ARG VARIANT
FROM mcr.microsoft.com/vscode/devcontainers/rust:${VARIANT}
ARG VARIANT

# Install additional packages
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends protobuf-compiler libprotobuf-dev libclang-dev
&& apt-get -y install --no-install-recommends protobuf-compiler libprotobuf-dev libclang-dev libzstd-dev

RUN apt install -y gh libgmp3-dev software-properties-common

# Install Cairo Native dependencies
RUN curl -s https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc > /dev/null
RUN echo "deb http://apt.llvm.org/${VARIANT}/ llvm-toolchain-${VARIANT}-17 main" | tee /etc/apt/sources.list.d/llvm.list && apt-get update
RUN apt-get -y install -t llvm-toolchain-${VARIANT}-17 llvm-17 llvm-17-dev llvm-17-runtime clang-17 clang-tools-17 lld-17 libpolly-17-dev libmlir-17-dev mlir-17-tools

RUN apt install -y gh libgmp3-dev
# To build Katana with 'native' feature, we need to set the following environment variables
ENV MLIR_SYS_170_PREFIX=/usr/lib/llvm-17
ENV LLVM_SYS_170_PREFIX=/usr/lib/llvm-17
ENV TABLEGEN_170_PREFIX=/usr/lib/llvm-17

# To allow independent workflow of the container, the rust-toolchain is explicitely given.
RUN echo "1.74.0" > rust_toolchain_version
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
test:
runs-on: ubuntu-latest-16-cores
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo build -r --bin katana && cargo llvm-cov nextest --all-features --lcov --output-path lcov.info
- run: |
cargo llvm-cov nextest --no-report --all-features --workspace --exclude katana --build-jobs 10
cargo llvm-cov nextest --no-report -p katana
cargo llvm-cov nextest --no-report -p katana --no-default-features --features sir
cargo llvm-cov report --lcov --output-path lcov.info
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -27,7 +31,7 @@ jobs:
ensure-wasm:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -62,7 +66,7 @@ jobs:
dojo-core-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -71,7 +75,7 @@ jobs:
dojo-spawn-and-move-example-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -80,7 +84,7 @@ jobs:
dojo-world-bindings-check:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -89,7 +93,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -98,7 +102,7 @@ jobs:
fmt:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -107,7 +111,7 @@ jobs:
docs:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:5d61184
image: nondeterministickari/dojo-dev:cc6554da
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down
Loading
Loading