You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add functionalities for main function inputs (#681)
* Fixes for the generation of entry code, fixes of hints parsing
* Add modifications to the runner
* Add fixes for the entrycode generation
* Refactor main CLI, offset the hints indexes by entry code size, load arguments and initial gas to the memory
* Add available gas and user args (#677)
* Add parsing logic for input user args
* Add flags for available gas, input user args, writing args to memory
* Fix unit tests for user arguments parsing
* Lint the PR
* Add user args to hint context
* Refactor the code
* Fix unconditional append of ExternalWriteArgsToMemory, bug fixes in integration tests
* Add fixes of the call size calculation and include ExternalWriteArgsToMemory hint when gas present
* Add layouts for integration tests
* Add error handling
* Fixes in entry code generation
* Address changes mentioned in a discussion
* Add comment regarding writing to memory in a hint for the future reference in the integration tests with args
* Changes in calculations of the initial PC offset, CALL opcode offset incremented by mainFuncOffset, writing user args to the AP in the hint
* Turn back VM config to private field
* Add error handling on assign of `userArgs` to the initial scope
* Lint project
* Bump go version from 1.20 -> 1.21 (#678)
* Bump go version from 1.20 -> 1.21
* Update golangci-lint
* Simplify the Makefile
* Correction in the makefile
* Fix the integration tests
* Fixes in the runner
* Fixes in the runner
* Fix the unit tests, uncomment pythonVm execution in integration tests, code cleanups
* Add writing tokens gas cost to memory
* Proper builtins initialization for cairo mode
* Address comments in the PR
* Fix bugs regarding dicts
* Remove prints
* Fixes of the last tests for the dicts
* Add dict_non_squashed dir to the integration tests
* Add checks for the matching args size, rename files, modify the integration tests pipeline
* Almost all pass
* Fix lint and unit tests
* Fix loading gas to the memory as an argument
* Fix run for tensor__small.cairo
* Bring back cairo0 integration tests
* Code refactoring, add comments
* Fix the CI
// inputArgsMap is used to provide input arguments to the tests that require them. Whenever the args are needed for the new files, they can simply be added here.
// ExternalWriteGasToMemory is a separate hint, that writes the gas value to the memory.
1999
+
// The gas value is written to the memory cell reserved by the instruction generated in entry code, which is dependent on the ordering of builtins list.
2000
+
// Therefore the writing of the gas value to the memory is done in a separate hint.
0 commit comments