-
Notifications
You must be signed in to change notification settings - Fork 213
Test RandomEcPoint hint & Fix for LinearSplit #1142
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
Merged
Merged
Changes from 97 commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
ad090c0
Implement TryFrom<CasmContractClass> for Program
fmoletta 814f62f
Add cairo1hintprocessor dependency
fmoletta 5ad52b3
Map hints to pc
fmoletta 2c80935
Add Cairo1HintProcessor
fmoletta 31833c0
Move cairo-1-hint-processor to cairo-rs crate
fmoletta a0974fc
fixes
fmoletta 3257b9d
Fix test helper
fmoletta 6eb32a6
Remove allow
fmoletta 95be386
fix test func
fmoletta 0ce7380
Add builtins to test
fmoletta ee4db2c
Extract builtins from contract_class
fmoletta f0d4151
Add _builtin to builtin names in etrypoint data
fmoletta 4032a94
Copy logic from cairo1 contract execution in starknet
fmoletta 6c9be63
Remove unused code
fmoletta 52984d7
Use lower initial_gas value
fmoletta 151375f
Add program segment size argument
fmoletta f11e350
Check return values in run_cairo_1_entrypoint fn
fmoletta f466aa7
Remove debug prints
fmoletta 8a528a0
Add basic fibonacci test
fmoletta c4fbe31
Add another fibonacci case
fmoletta 5debb70
Always verify secure
fmoletta 4d614a8
Clippy
fmoletta df1bf8f
Compile casm contracts when running test target
fmoletta 59b6381
Remove unwrap from cell_ref_to_relocatable
fmoletta 2649829
Remove paniking macro from extract_buffer
fmoletta ecb58d6
Misc improvements
fmoletta 2d9362d
Misc improvements
fmoletta 38be92c
Misc improvements
fmoletta a82308b
Misc improvements
fmoletta 8d6c5cb
Remove unwraps & asserts from DictSquashExecScope::pop_current_key
fmoletta 4e7f2e0
Remove unwraps & asserts from DictManagerExecScope::new_default_dict
fmoletta 75218c8
Remove expect from get_dict_tracker
fmoletta b06f563
Add constants for cairo 1 compiler binaries in makefile
fmoletta 7d543ae
Add cairo 1 compiler to deps target in makefile
fmoletta 47ea449
Add cairo folder to clean target
fmoletta 6156c0f
Remove todo from execute method
fmoletta a0e28f5
Separate helper functions from Cairo1HintProcessor implementation
fmoletta 78e3c8a
Add untracked file
fmoletta 6a96be2
Fix
fmoletta 4423074
Merge branch 'main' of github.com:lambdaclass/cairo-rs into run-casm-…
fmoletta b902488
Add changelog entry
fmoletta 2b40d20
Add a job to compile cairo 1 contracts in ci
fmoletta 04e966a
Add job dependency
fmoletta e13bb43
Fix yml syntax
fmoletta 0cb9790
Fix yml syntax
fmoletta 1461d56
Temporarily extempt cairo-1-hint-processor from codecov
fmoletta 77d370e
Fix yml syntax
fmoletta 44d87e1
Fix workflow
fmoletta 2e0701b
Remove cache code from new job
fmoletta 85791c5
Fix yml syntax
fmoletta 736b973
Fix wrong path
fmoletta 88f2cad
Fix makefile
fmoletta af264a5
Build only compiler binaries
fmoletta 367515f
Add cairo-1-contracts-cache
fmoletta e3635a4
Fetch contracts cache in jobs that need them
fmoletta 04be04a
Use no-std version of HashMap
fmoletta b944e9a
Import stdlib::prelude::*
fmoletta 8f78351
Wrap print in not-wasm block
fmoletta 806ee39
Remove std path
fmoletta 7195ffe
use slices instead of vec
fmoletta 6c8c334
Make DictSquashExecScope fields private
fmoletta 917c9cb
Import hint processor dependencies without default features
fmoletta a47b09c
-Clippy
fmoletta b9417c5
Add type
fmoletta f96c5df
Compile cairo 1 contracts in build-programs job
fmoletta ddeefa1
Rename cache
fmoletta a6b0913
Use target dependency instead of explicit $(MAKE)
fmoletta 329e17f
Fix yml syntax
fmoletta 2cd1d44
Check for cairo folder before cloning cairo repo
fmoletta bcdfa80
Ommit folder name
fmoletta 28bfe83
Swap paths
fmoletta a101e62
Merge branch 'main' into run-casm-contract-class
fmoletta dd05e21
Add cairo-1-hints feature flag
fmoletta c2e3e49
Merge branch 'run-casm-contract-class' of github.com:lambdaclass/cair…
fmoletta e91ca98
Add compile-hint feature to tests run in workflow
fmoletta 36a2957
Add cairo-1-hints to test_utils
fmoletta 76534a9
Add cairo-1-hints to test_utils
fmoletta 009b348
Use both paths when fetching compiled test data
fmoletta 0585919
Remove cairo-1-hints feature from test_utils feature
fmoletta 02bf013
Move dependencies to cairo-1-hints feature
fmoletta 8714bfb
Merge branch 'main' into run-casm-contract-class
fmoletta f0dcbb6
Update CHANGELOG.md
fmoletta f4f97e9
Fix cfg directive
fmoletta 513bca1
Merge branch 'run-casm-contract-class' of github.com:lambdaclass/cair…
fmoletta 8de5453
Add cairo-1-hints to test workflow
fmoletta d1c9dda
Add Cairo 1 considerations for Gitignore and Makefile (#1144)
rcatalan98 8818196
Add test for RandomEcPoint hint
rcatalan98 46115c1
Add rust test for Cairo 1 program
rcatalan98 ea5185e
Fix Cairo 1 program
rcatalan98 b376e35
Merge branch 'run-casm-contract-class' into test-hint-random_ec_point
rcatalan98 4a64cf1
Change contract & Add activate feature for Cairo 1
rcatalan98 72ad2a3
Merge branch 'main' into test-hint-random_ec_point
rcatalan98 9fc974b
Add new entry to Changelog
rcatalan98 bae5747
Restore CHANGELOG.md
pefontana 5fb7db6
Restore Cargo.toml
pefontana faeb569
Merge branch 'main' into test-hint-random_ec_point
pefontana 5ee8562
Merge branch 'main' into test-hint-random_ec_point
rcatalan98 f062d35
Add eof new line
rcatalan98 432c477
Add more coverage to the test
rcatalan98 39fbb04
Refactor contract test
rcatalan98 174a751
Fix LinearSplit hint
rcatalan98 00f6c35
Add fix entry to the CHANGELOG
rcatalan98 2992d6f
Merge branch 'main' into test-hint-random_ec_point
rcatalan98 4b2ab5b
Remove outdated comment
rcatalan98 fecaf99
Remove CHANGELOG entry
rcatalan98 e620687
Merge branch 'main' into test-hint-random_ec_point
rcatalan98 b16f1e5
Merge branch 'main' into test-hint-random_ec_point
rcatalan98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #[contract] | ||
| mod RandomEcPoint{ | ||
| use option::OptionTrait; | ||
| use ec::ec_state_init; | ||
|
|
||
| #[external] | ||
| fn random_ec_point(){ | ||
| let state = ec_state_init(); | ||
| } | ||
|
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.