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

Use starknet-types-core Felt #1408

Merged
merged 118 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
6175e52
Initial swap
fmoletta Jul 5, 2023
d80fe26
Misc changes
fmoletta Jul 5, 2023
0dd10f4
Misc changes
fmoletta Jul 5, 2023
105fb07
Add felt_to_biguint util
fmoletta Jul 5, 2023
75815dd
Misc changes
fmoletta Jul 5, 2023
8025b88
Move to_signed_felt to math_utils
fmoletta Jul 5, 2023
63df32e
Fix code
fmoletta Jul 5, 2023
2a4db75
Fix code
fmoletta Jul 7, 2023
e684fd7
Fix code
fmoletta Jul 7, 2023
6c6ad8a
Remove felt crate
fmoletta Jul 7, 2023
65c2fdc
Remove felt crate
fmoletta Jul 7, 2023
780bd4d
Restore felt_str macro + other changes
fmoletta Jul 10, 2023
49e049e
Fix parsing utils
fmoletta Jul 10, 2023
d521df2
Add changes
fmoletta Jul 10, 2023
d08a437
Add changes
fmoletta Jul 10, 2023
dbe33ba
Add fixes
fmoletta Jul 10, 2023
9045058
Add fixes
fmoletta Jul 10, 2023
0f5c068
Add fixes
fmoletta Jul 10, 2023
7942a5f
Add fixes
fmoletta Jul 10, 2023
fc557f8
Fix maybe_add_padding
fmoletta Jul 11, 2023
b3caab0
Pad bytes in keccak hints
fmoletta Jul 11, 2023
ca438f9
Fix bigint to felt conversion
fmoletta Jul 11, 2023
565bce2
Restore tests
fmoletta Jul 11, 2023
ea880e7
Fix test
fmoletta Jul 12, 2023
284b33e
Fix recover_y
fmoletta Jul 12, 2023
7c23770
Fix biguint to felt conversion
fmoletta Jul 12, 2023
644b496
Fix is_addr_bounded hint
fmoletta Jul 12, 2023
bb69906
Fix test
fmoletta Jul 12, 2023
ad2befb
Make safe_div safe again
fmoletta Jul 12, 2023
3feb9a2
Fix negative number parsing in felt_str
fmoletta Jul 15, 2023
697248a
Revert "Fix negative number parsing in felt_str"
fmoletta Jul 15, 2023
30c3713
Remove negative handling in deserialization util
fmoletta Jul 15, 2023
b768a72
Fix byte conversions in keccak auto-deduction
fmoletta Jul 15, 2023
1922b7c
Update felt commit
pefontana Aug 16, 2023
8b921ef
Merge branch 'main' into use-standard-felt
pefontana Aug 16, 2023
4da5329
Remove felt crate
pefontana Aug 16, 2023
6ad43ba
Fix EC OP tests
pefontana Aug 22, 2023
eeac5ef
Fix sqrt
pefontana Aug 23, 2023
adfbf42
Fix unsafe keccak hints
pefontana Aug 23, 2023
d7f1d55
fix keccak integration test
pefontana Aug 23, 2023
9148cbb
Fix deserialize_scientific_notation
pefontana Aug 23, 2023
3dc7bb5
Fix error when deserializing big numbers
pefontana Aug 24, 2023
856cd52
cargo clippy
pefontana Aug 24, 2023
992e9b1
Merge branch 'main' into use-standard-felt
pefontana Aug 24, 2023
52f86c5
fix merge main changes
pefontana Aug 24, 2023
004384f
Improve Add<&Felt252> for Relocatable
pefontana Aug 25, 2023
dcc41ce
Indicate type-rs commit
pefontana Aug 26, 2023
2892847
Merge branch 'main' into use-standard-felt
pefontana Aug 29, 2023
84f8ca3
Merge branch 'main' into use-standard-felt
pefontana Aug 29, 2023
c835e46
Fix merge conflicts
pefontana Aug 29, 2023
c049b61
Merge branch 'main' into use-standard-felt
pefontana Sep 1, 2023
c60cae4
Update type-rs commit
pefontana Sep 1, 2023
56ec6b2
Fix wasm and hint accountant imports (#1436)
Juan-M-V Sep 1, 2023
4d4c4ec
Bump commit
Sep 1, 2023
32e7091
Merge branch 'main' of github.com:/lambdaclass/cairo-vm into use-stan…
Sep 1, 2023
61d31a4
Fix felt display
Sep 4, 2023
72ea3a5
Fix deps for fuzzing (#1432)
Juan-M-V Sep 4, 2023
2135247
cargo clippy
pefontana Sep 4, 2023
d56114f
fix bench/criterion_benchmark.rs
pefontana Sep 4, 2023
7d26fe8
cargo clippy in fuzzer
pefontana Sep 4, 2023
1a3415e
Merge branch 'main' into use-standard-felt
pefontana Sep 5, 2023
504e99f
Merge branch 'main' into use-standard-felt
Oppen Sep 13, 2023
25d9f44
Merge branch 'main' into use-standard-felt
Oppen Sep 13, 2023
c9ea25b
Remove lambdaworks-felt workflows
Oppen Sep 13, 2023
e5f19e1
Missed a spot
Oppen Sep 13, 2023
160b4b8
Remove dep in ensure-no_std
Oppen Sep 13, 2023
55e56fe
don't create an extra implicit feature (slows down build checks)
Oppen Sep 13, 2023
e30d997
air public memory is hex
Oppen Sep 14, 2023
255625d
Remove old import
Oppen Sep 14, 2023
38f4343
Remove panic handler
Oppen Sep 14, 2023
4ab494f
improve find_element_hint
Oppen Sep 14, 2023
e3542fb
Restore MaybeRelocatable formatting
Oppen Sep 14, 2023
f3453aa
stark-felt no-default-features
Oppen Sep 14, 2023
9efc897
more feature work
Oppen Sep 14, 2023
3eed915
Merge branch 'main' into use-standard-felt
Oppen Sep 29, 2023
f60840d
Update types-rs
Oppen Sep 29, 2023
2219862
Update RELEASE docs
Oppen Oct 2, 2023
f447b91
Merge branch 'main' into use-standard-felt
Oppen Oct 18, 2023
14ac53f
Update stark-felt, expect slowdown here
Oppen Oct 19, 2023
044a53e
Merge remote-tracking branch 'origin/main' into use-standard-felt
Oppen Oct 25, 2023
2ef92cc
Remove double import
Oppen Oct 25, 2023
f8d1501
Clippy
Oppen Oct 25, 2023
b3ee244
changelog
Oppen Oct 25, 2023
a4d3d25
fix fuzzer
Oppen Oct 26, 2023
2c10b8e
cargo.lock
Oppen Oct 26, 2023
dfb536c
Faster split
Oppen Oct 26, 2023
dd3703f
faster bitwise
Oppen Oct 26, 2023
f76ba4a
clippy
Oppen Oct 26, 2023
aa6224e
clippy
Oppen Oct 26, 2023
388613f
Use vec of powers of 2
Oppen Oct 27, 2023
8f44c85
address comments
Oppen Oct 30, 2023
7c86b8a
remove special features
Oppen Oct 30, 2023
2d2fe8f
Apply suggestion
Oppen Oct 30, 2023
b62cc37
add todo
Oppen Oct 30, 2023
3a6e93d
Merge branch 'main' into use-standard-felt
Oppen Oct 30, 2023
1e87e42
fix build
Oppen Oct 30, 2023
5ac0a74
unwrap_or_default
Oppen Oct 30, 2023
f27dc43
nostd
Oppen Oct 30, 2023
3edc567
clippy
Oppen Oct 30, 2023
2defe04
typo codecov cache
Oppen Oct 30, 2023
403fbfd
codecov cache typo
Oppen Oct 30, 2023
4068cc9
Merge branch 'main' into use-standard-felt
Oppen Oct 31, 2023
74c728b
Merge branch 'main' into use-standard-felt
pefontana Nov 10, 2023
55eaaa7
Update type-rs commit
pefontana Nov 24, 2023
bc3d9b9
Merge branch 'main' into use-standard-felt
pefontana Nov 24, 2023
2b20ad9
Merge branch 'main' into use-standard-felt
pefontana Dec 6, 2023
2d66e45
Update fuzzer/Cargo.lock
pefontana Dec 6, 2023
283034e
Use starknet-types-core to 0.0.3 v
pefontana Dec 14, 2023
7445282
Empty-Commit
pefontana Dec 14, 2023
ddb9817
Empty-Commit
pefontana Dec 14, 2023
f358b0d
Update starknet-types-core version
pefontana Dec 20, 2023
490390e
n_elms_iter: u32
pefontana Dec 20, 2023
1d00323
fix conflicts
edg-l Dec 21, 2023
7fc3443
fix warnings
edg-l Dec 21, 2023
d186c10
Include extensive-hints in coverage
Oppen Dec 21, 2023
d211121
fix stuff
Oppen Dec 21, 2023
24fc563
Update Changelog
pefontana Dec 21, 2023
3742aaf
Update Changelog
pefontana Dec 21, 2023
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
8 changes: 0 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ jobs:
uses: actions/checkout@v2
- name: Install stable toolchain
uses: dtolnay/[email protected]
- name: Publish crate cairo-felt
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --token ${CRATES_TOKEN} --all-features --manifest-path ./felt/Cargo.toml
# FIXME: there should be a better way to make sure the index in crates.io is updated before publishing
# cairo-vm but right now the step throws timeout and fails.
- name: wait for index in crates.io
run: sleep 300
- name: Publish crate cairo-vm
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
40 changes: 17 additions & 23 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,6 @@ jobs:
fail-on-cache-miss: true

# NOTE: we do this separately because --workspace operates in weird ways
- name: Check all features (felt)
run: |
cd felt
cargo check-all-features
cargo check-all-features --workspace --all-targets

- name: Check all features (vm)
run: |
cd vm
Expand All @@ -218,7 +212,7 @@ jobs:
strategy:
fail-fast: false
matrix:
special_features: ["", "lambdaworks-felt", "extensive_hints"]
special_features: ["", "extensive_hints"]
target: [ test#1, test#2, test#3, test#4, test-no_std#1, test-no_std#2, test-no_std#3, test-no_std#4, test-wasm ]
name: Run tests
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -445,38 +439,38 @@ jobs:
path: lcov-test-no_std-.info
key: codecov-cache-test-no_std--${{ github.sha }}
fail-on-cache-miss: true

- name: Fetch results for tests with stdlib (w/lambdaworks; part. 1)
- name: Fetch results for tests with stdlib (w/extensive_hints; part. 1)
uses: actions/cache/restore@v3
with:
path: lcov-test#1-lambdaworks-felt.info
key: codecov-cache-test#1-lambdaworks-felt-${{ github.sha }}
path: lcov-test#1-extensive_hints.info
key: codecov-cache-test#1-extensive_hints-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (w/lambdaworks; part. 2)
- name: Fetch results for tests with stdlib (w/extensive_hints; part. 2)
uses: actions/cache/restore@v3
with:
path: lcov-test#2-lambdaworks-felt.info
key: codecov-cache-test#2-lambdaworks-felt-${{ github.sha }}
path: lcov-test#2-extensive_hints.info
key: codecov-cache-test#2-extensive_hints-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (w/lambdaworks; part. 3)
- name: Fetch results for tests with stdlib (w/extensive_hints; part. 3)
uses: actions/cache/restore@v3
with:
path: lcov-test#3-lambdaworks-felt.info
key: codecov-cache-test#3-lambdaworks-felt-${{ github.sha }}
path: lcov-test#3-extensive_hints.info
key: codecov-cache-test#3-extensive_hints-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (w/lambdaworks; part. 4)
- name: Fetch results for tests with stdlib (w/extensive_hints; part. 4)
uses: actions/cache/restore@v3
with:
path: lcov-test#4-lambdaworks-felt.info
key: codecov-cache-test#4-lambdaworks-felt-${{ github.sha }}
path: lcov-test#4-extensive_hints.info
key: codecov-cache-test#4-extensive_hints-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests without stdlib (w/lambdaworks)
- name: Fetch results for tests without stdlib (w/extensive_hints)
uses: actions/cache/restore@v3
with:
path: lcov-test-no_std-lambdaworks-felt.info
key: codecov-cache-test-no_std-lambdaworks-felt-${{ github.sha }}
path: lcov-no_std-extensive_hints.info
key: codecov-cache-test-no_std-extensive_hints-${{ github.sha }}
fail-on-cache-miss: true


- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

#### Upcoming Changes

* feat/BREAKING: Add Cairo 1 proof mode compilation and execution [#1517] (https://github.com/lambdaclass/cairo-vm/pull/1517)
* feat(BREAKING): Replace `cairo-felt` crate with `starknet-types-core` [#1408](https://github.com/lambdaclass/cairo-vm/pull/1408)

* feat(BREAKING): Add Cairo 1 proof mode compilation and execution [#1517] (https://github.com/lambdaclass/cairo-vm/pull/1517)
* In the cairo1-run crate, now the Cairo 1 Programs are compiled and executed in proof-mode
* BREAKING: Remove `CairoRunner.proof_mode: bool` field and replace it with `CairoRunner.runner_mode: RunnerMode`

Expand Down
126 changes: 32 additions & 94 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading