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

Sync with main branch #2

Merged
merged 98 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
dbad879
fix(katana-provider): temporarily invalidate cache if nonce or class …
kariy Apr 19, 2024
9fd4cc4
Update defaults for new TypeScript bindgen (#1846)
RareSecond Apr 19, 2024
a2412b3
Prepare release: v0.6.1-alpha.3 (#1851)
tarrencev Apr 19, 2024
d92decd
[sozo] Deploy Account (#1601)
JimmyFate Apr 21, 2024
010444f
fix(ci): exit with non-zero status code if any function call fails (#…
lambda-0x Apr 21, 2024
f6510d5
fix: ensure transaction executions are stored with fork and db provid…
glihm Apr 22, 2024
10f7f9f
feat(torii-client): expose grpc event messages (#1826)
Larkooo Apr 22, 2024
d160479
katana: replace `block_time: None` by `default` (#1858)
tcoratger Apr 22, 2024
54eb048
fix(katana): wrong `from_address` value taken from the transaction tr…
kariy Apr 23, 2024
263cd5a
test(katana-executor): test tx execution info conversion (#1863)
kariy Apr 23, 2024
b22e2aa
test(katana-executor): test events/messages are extracted correctly f…
kariy Apr 23, 2024
1000fcd
fix: messaging tutorial data (#1869)
glihm Apr 23, 2024
2fabab7
feat: add raw max fee to `TransactionsOptions` (#1856)
0xibs Apr 23, 2024
77df165
Bump `katana` database version (#1833)
kariy Apr 24, 2024
6fde452
feat: spawn event message subscription service (#1876)
Larkooo Apr 24, 2024
a573198
feat: enable global flag for all `commands/options` (#1875)
lambda-0x Apr 24, 2024
0ac81cf
refactor(sozo): migration logic to be more robust and testable (#1848)
lambda-0x Apr 24, 2024
5ac6659
Prepare release: v0.6.1-alpha.4 (#1872)
tarrencev Apr 24, 2024
61f511d
katana: default cli values for environment options (#1861)
notV4l Apr 25, 2024
dbdd5f3
docs(katana): update DB er diagram (#1874)
kariy Apr 25, 2024
c8815a9
Bump `alloy` to 0.7.0 (#1881)
tcoratger Apr 26, 2024
5f421e1
fix: event message subscription subscription broker (#1885)
Larkooo Apr 26, 2024
6a3cbaa
feat(torii): process pending block (#1798)
Larkooo Apr 26, 2024
a16158e
Modified From<TransactionPreValidationError> for ExecutionError to p…
Eikix Apr 27, 2024
cac60c3
fix: ensure account defaults to block pending (#1891)
glihm Apr 27, 2024
a3587b3
CI: add workflow_dispatch for devcontainer.yml (#1882)
glihm Apr 27, 2024
19fb8e9
refactor(torii): don't use feature-only type in non-feature code (#1894)
kariy Apr 27, 2024
6b6219f
Fix `dojoup` script when installing from git (#1895)
kariy Apr 27, 2024
af9cdf6
Torii external-url arg to support https (#1898)
broody Apr 28, 2024
f7213c5
fix(katana): place import inside its feature scope (#1902)
kariy Apr 30, 2024
6427cdc
fix(torii): fallback invalid events & flag indexing pending blocks (#…
Larkooo Apr 30, 2024
683620c
[sozo] add trace logs (#1867)
btirth May 1, 2024
5d9a8d1
fix: allow ref self until sozo can handle starknet contracts (#1879)
glihm May 1, 2024
1e9d392
feat: cli arg disable cors torii proxy server (#1904)
Larkooo May 1, 2024
2b2dc1b
Prepare release: v0.7.0-alpha.0 (#1905)
tarrencev May 1, 2024
6ff5247
bump alloy to 0.7.1 (#1906)
tcoratger May 1, 2024
048d6dc
feat: add allowed-origins to katana cli (#1909)
Larkooo May 2, 2024
8f8bdd3
[saya] demo (#1883)
neotheprogramist May 2, 2024
90035c1
fix(sozo): events subcommand (#1915)
lambda-0x May 2, 2024
d984319
prompt user for double password check (#1912)
mubarak23 May 3, 2024
836ee61
feat: sync range marks pending cursor to none (#1910)
Larkooo May 3, 2024
e95f86f
feat: add support for `Cairo 2.6` (#1865)
glihm May 3, 2024
adf8496
fix(docker): build `jemalloc` with 64KB pagesize for `linux/arm64` (#…
kariy May 3, 2024
0047089
feat(sozo): automatically authorize models to migrated systems based …
lambda-0x May 4, 2024
5a3d246
Prepare release: v0.7.0-alpha.1 (#1923)
tarrencev May 4, 2024
e95670b
Update Saya to use rustls-tls rather than openssl (#1934)
tarrencev May 6, 2024
ae724cb
Support triggering release action (#1935)
tarrencev May 6, 2024
91532a2
Don't build Saya for now
tarrencev May 6, 2024
f07fcac
Support manual dispatch release
tarrencev May 6, 2024
d6c3080
Use ubuntu 22 for release builds
tarrencev May 6, 2024
4a2c149
Fix katana multiple origins arg (#1937)
broody May 6, 2024
8367fa0
feat(sozo): print-env subcommand (#1930)
lambda-0x May 7, 2024
fdcf1d4
Simplify readme, add contextual warnings to dojoup (#1938)
tarrencev May 7, 2024
6f2ac9b
Update devcontainer image: e95f86f (#1922)
tarrencev May 7, 2024
f96982d
Handle scarb install in dojoup (#1940)
tarrencev May 7, 2024
b68f9d1
Add development guide
tarrencev May 8, 2024
5a7ecd8
chore(katana): clean up txn hash test (#1941)
kariy May 8, 2024
810cd57
refactor(katana): remove `ContractInfoProvider` (#1943)
kariy May 9, 2024
7194fb9
Refactor forked provider backend APIs (#1944)
kariy May 9, 2024
6dca944
test(katana): ensure contract non-existent is validated properly on `…
kariy May 9, 2024
d21163e
fix(katana): include full fee info in primitive receipts (#1948)
kariy May 13, 2024
ce172db
feat(torii-graphql): add In and Like comparison operators (#1949)
Larkooo May 13, 2024
a095ccf
dev(sozo): use `TransationOption` instead of `FeeOption` (#1927)
lambda-0x May 14, 2024
9d554bf
Update devcontainer to build on prerelease
tarrencev May 14, 2024
f648e87
Prepare release: v0.7.0-alpha.2 (#1959)
tarrencev May 14, 2024
5c97156
Build devcontainer dojo version from commit hash
tarrencev May 14, 2024
4af2b39
Don't push devcontainer on non-main push
tarrencev May 14, 2024
cc61155
Fix devcontainer boolean expression
tarrencev May 14, 2024
de3b2e5
bump alloy to 0.7.2 (#1962)
tcoratger May 14, 2024
31a7684
fix(sozo/katana): remove max_bytecode_size limitation (#1963)
lambda-0x May 16, 2024
9f8147d
dev: general cleanup, bumping of library versions, etc... (#1939)
lambda-0x May 16, 2024
faf2eb9
Remove forge-std submodule in katana (#1974)
ZaK3939 May 16, 2024
628542f
chore: ensure Cargo.lock is committed (#1976)
glihm May 16, 2024
543322b
fix: add more logic on semver check of Starknet API (#1966)
glihm May 16, 2024
49f0a4e
chore(katana): ignore forked backend thread spawn test (#1977)
kariy May 16, 2024
8c6df7b
test(katana): provider test utils (#1967)
kariy May 16, 2024
6e972b5
refactor(katana): encapsulate all the tx execution logic into a singl…
kariy May 16, 2024
c9714ef
Add simple benchmark for the `transact` function (#1969)
kariy May 16, 2024
7943970
fix(sozo): handle edge case when base_class_hash is FieldElement::ZER…
lambda-0x May 19, 2024
60e7ded
display contract addresses in sozo migrate plan (#1926)
stevencartavia May 19, 2024
855da31
Prepare release: v0.7.0-alpha.3 (#1979)
tarrencev May 19, 2024
22b0c90
Remove `sozo` as a dependency of `katana-runner` crate (#1988)
kariy May 21, 2024
bec687b
Update devcontainer image: v0.7.0-alpha.3 (#1961)
tarrencev May 21, 2024
9aa4301
feat(katana): allow choosing the class in the genesis file using name…
Yogalholic May 22, 2024
ad94ba6
refactor(katana): replace cursor-based api with by block basis for si…
kariy May 23, 2024
5fe059b
Refactor `saya` to fetch the traces using the new API (#1987)
kariy May 23, 2024
cae245a
Add doc comments for `L1HandlerTx` (#1980)
kariy May 23, 2024
3b71225
fix(katana): l1/l2 messaging hash computations (#1981)
kariy May 23, 2024
e614651
feat: new layout support (#1970)
Larkooo May 23, 2024
aa5b534
Prepare release: v0.7.0-alpha.4 (#1990)
tarrencev May 23, 2024
43edfa8
Update devcontainer image: v0.7.0-alpha.4 (#1991)
tarrencev May 24, 2024
35ca974
Katana and ArgentX wallet (#1958)
Matth26 May 24, 2024
6ae661d
chore: remove debug log (#1996)
Larkooo May 26, 2024
666d835
Update README.md - Getting Started Link (#2000)
mgrunwaldt May 27, 2024
492f5ae
Unified crate for Cairo deps used in Katana (#1999)
kariy May 27, 2024
03aefc3
docs(sozo): update error message for more context (#2005)
lambda-0x May 27, 2024
3a19201
refactor(torii-core): fix double pending indexing & use btreemap for …
Larkooo May 27, 2024
ad60b12
Merge branch '1466_non_state' into 1466_fix_non_state
fishseabowl May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,20 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \
fi

ARG DOJO_VERSION=stable
ARG BUILD_TYPE=default
RUN curl -L https://install.dojoengine.org | bash
RUN curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash
ENV PATH=${PATH}:/root/.dojo/bin
RUN dojoup -v $DOJO_VERSION
RUN if [ "$BUILD_TYPE" = "release" ]; then \
echo "Installing Dojo version $DOJO_VERSION"; \
dojoup -v $DOJO_VERSION; \
elif [ "$BUILD_TYPE" = "push" ]; then \
echo "Installing Dojo at commit $DOJO_VERSION"; \
dojoup -c $DOJO_VERSION; \
else \
echo "Installing latest stable version of Dojo"; \
dojoup; \
fi

RUN chown -R root:root /usr/local/cargo
RUN chmod -R 700 /usr/local/cargo
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/rust
{
"name": "Rust",
"image": "ghcr.io/dojoengine/dojo-dev:3153a80",
"image": "ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

assignees: ""
---

**Describe the bug**
Expand Down
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
40 changes: 40 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Description

<!--
A description of what this PR is solving.
-->

## Related issue

<!--
Please link related issues: Fixes #<issue_number>
More info: https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->

## Tests

<!--
Please refer to the CONTRIBUTING.md file to know more about the testing process. Ensure you've tested at least the package you're modifying if running all the tests consumes too much memory on your system.
-->

- [ ] Yes
- [ ] No, because they aren't needed
- [ ] No, because I need help

## Added to documentation?

<!--
If the changes are small, code comments are enough, otherwise, the documentation is needed. It
may be a README.md file added to your module/package, a DojoBook PR or both.
-->

- [ ] README.md
- [ ] [Dojo Book](https://github.com/dojoengine/book)
- [ ] No documentation needed

## Checklist

- [ ] I've formatted my code (`scripts/prettier.sh`, `scripts/rust_fmt.sh`, `scripts/cairo_fmt.sh`)
- [ ] I've linted my code (`scripts/clippy.sh`, `scripts/docs.sh`)
- [ ] I've commented my code
- [ ] I've requested a review after addressing the comments
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
Expand Down
43 changes: 22 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ jobs:
test:
runs-on: ubuntu-latest-16-cores
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: |
cargo llvm-cov nextest --no-report --all-features --workspace --exclude katana --build-jobs 10
cargo build -r --bin katana
KATANA_RUNNER_BIN=$(pwd)/target/release/katana 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
# TODO(kariy): uncomment this line when `sir` feature support Cairo 2.6.3
# 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@v4
with:
Expand All @@ -31,7 +33,7 @@ jobs:
ensure-wasm:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -51,22 +53,21 @@ jobs:
repo-token: ${{ secrets.github_token }}
- run: cargo build --target x86_64-pc-windows-msvc --bins

# cairofmt:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: nightly-2022-11-03
# - uses: Swatinem/rust-cache@v2
# - run: cargo install cairo-lang-formatter
# - run: scripts/cairo_fmt.sh --check
cairofmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.6.3"
- run: |
scarb --manifest-path examples/spawn-and-move/Scarb.toml fmt --check
scarb --manifest-path crates/dojo-core/Scarb.toml fmt --check

dojo-core-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -75,7 +76,7 @@ jobs:
dojo-spawn-and-move-example-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -84,7 +85,7 @@ jobs:
dojo-world-bindings-check:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -93,7 +94,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -102,7 +103,7 @@ jobs:
fmt:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -111,7 +112,7 @@ jobs:
docs:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: devcontainer

on:
workflow_dispatch:
inputs:
docker_tag:
description: Descriptive name of the devcontainer for the Docker tag
required: true
type: string
push:
paths:
- ".devcontainer/**"
- ".github/workflows/devcontainer.yml"
- "!.devcontainer/devcontainer.json"
release:
types: [created]
types: [published]

jobs:
build-and-push:
Expand Down Expand Up @@ -45,6 +51,11 @@ jobs:
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c 1-7)
echo "DOCKER_TAG=$SHORT_SHA" >> $GITHUB_ENV

- name: Set Docker tag for workflow_dispatch event
if: github.event_name == 'workflow_dispatch'
run: |
echo "DOCKER_TAG=${{ inputs.docker_tag }}" >> $GITHUB_ENV

- name: Set outputs
id: release_info
run: |
Expand All @@ -53,19 +64,20 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
push: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')) }}
file: .devcontainer/Dockerfile
tags: ghcr.io/${{ github.repository }}-dev:latest,ghcr.io/${{ github.repository }}-dev:${{ env.DOCKER_TAG }}
build-args: |
VARIANT=bookworm
DOJO_VERSION=${{ github.event_name == 'release' && github.event.release.tag_name || 'stable' }}
BUILD_TYPE=${{ github.event_name }}
DOJO_VERSION=${{ github.event.release.tag_name }}
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}-dev:latest

propose-update-pr:
needs: build-and-push
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'create' && startsWith(github.ref, 'refs/tags/'))
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release' && startsWith(github.ref, 'refs/tags/'))
permissions:
pull-requests: write
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
contents: write
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:3153a80
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.4
env:
VERSION: ""
steps:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: release

on:
workflow_dispatch:
pull_request:
types: [closed]
branches:
Expand All @@ -13,7 +14,7 @@ env:

jobs:
prepare:
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'prepare-release'
if: (github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'prepare-release') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.release_info.outputs.tag_name }}
Expand Down Expand Up @@ -41,11 +42,11 @@ jobs:
# The target is used by Cargo
# The arch is either 386, arm64 or amd64
# The svm target platform to use for the binary https://github.com/roynalnaruto/svm-rs/blob/84cbe0ac705becabdc13168bae28a45ad2299749/svm-builds/build.rs#L4-L24
- os: ubuntu-20.04-4-cores
- os: ubuntu-latest-4-cores
platform: linux
target: x86_64-unknown-linux-gnu
arch: amd64
- os: ubuntu-20.04-8-cores
- os: ubuntu-latest-8-cores
platform: linux
target: aarch64-unknown-linux-gnu
arch: arm64
Expand Down Expand Up @@ -93,6 +94,9 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y gcc-aarch64-linux-gnu libssl-dev
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
# We build jemalloc with 64KB pagesize so that it works for all linux/arm64 pagesize variants
# See: https://github.com/jemalloc/jemalloc/issues/467
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV

- name: Build binaries
run: cargo build --release --bins --target ${{ matrix.job.target }}
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "crates/katana/primitives/contracts/messaging/solidity/lib/forge-std"]
path = crates/katana/primitives/contracts/messaging/solidity/lib/forge-std
[submodule "crates/katana/contracts/messaging/solidity/lib/forge-std"]
path = crates/katana/contracts/messaging/solidity/lib/forge-std
url = https://github.com/foundry-rs/forge-std
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scarb 2.6.3
59 changes: 39 additions & 20 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in 'dojo-world'",
"cargo": {
"args": ["test", "--no-run", "--package=dojo-world", "--lib"],
"filter": {
"name": "dojo-world",
"kind": "lib"
}
},
"args": ["migration::compile_moves"],
"cwd": "${workspaceFolder}/crates/dojo-world"
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Dojo Core test",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/target/debug/sozo",
"args": ["--manifest-path", "crates/dojo-core/Scarb.toml", "test"]
},
{
"name": "Sozo Migrate",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/target/debug/sozo",
"args": [
"--manifest-path",
"examples/spawn-and-move/Scarb.toml",
"migrate",
"apply"
]
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in 'dojo-world'",
"cargo": {
"args": ["test", "--no-run", "--package=dojo-world", "--lib"],
"filter": {
"name": "dojo-world",
"kind": "lib"
}
},
"args": ["migration::compile_moves"],
"cwd": "${workspaceFolder}/crates/dojo-world"
}
]
}
Loading
Loading