-
Notifications
You must be signed in to change notification settings - Fork 22
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
Smart contract functions without args #1181
Merged
Neylix
merged 48 commits into
archethic-foundation:develop
from
herissondev:smart_contract_functions
Jul 25, 2023
Merged
Smart contract functions without args #1181
Neylix
merged 48 commits into
archethic-foundation:develop
from
herissondev:smart_contract_functions
Jul 25, 2023
Conversation
This file contains 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
Neylix
added
feature
New feature request
smart contracts
Involve smart contracts
labels
Jul 21, 2023
Neylix
requested changes
Jul 21, 2023
test/archethic/contracts/interpreter/action_interpreter_test.exs
Outdated
Show resolved
Hide resolved
test/archethic/contracts/interpreter/condition_interpreter_test.exs
Outdated
Show resolved
Hide resolved
bchamagne
reviewed
Jul 24, 2023
Neylix
force-pushed
the
smart_contract_functions
branch
from
July 25, 2023 13:24
e55634c
to
21f23f3
Compare
Neylix
force-pushed
the
smart_contract_functions
branch
from
July 25, 2023 13:34
21f23f3
to
fa13e29
Compare
Neylix
added a commit
to Neylix/archethic-node
that referenced
this pull request
Aug 1, 2023
* function parsing * function parsing tests * interpreter parse functions * contract add functions to struct * function_interpreter check if function exist * get available functions and pass them to parsers * add functions to scope * add functions contract struct * allow call to functions * postwalk functions common_interpreter.ex * remove functions postwalk function_interpreter.ex * allow custom function call in action_interpreter.ex * function call return value common_interpreter.ex * function_interpreter.ex add constants in scope * remove add_function as not used * add possibility to pass existing custom functions to sanitize_parse_execute * pass functions to action interpreter scope's * move function prewalk to not catch "for var..." * function_interpreter test parsing and execute * create execute_function_ast for scope * custom function matches check_types * test function parsing in action_interpreter * test function execution in action_interpreter * format * allow function calls in condition block * fix function test * test function in conditions * add functions to condition constatns * add functions test in interpreter * fucntions key to string * function_key function * format * case to if * function_key to tuple * add get_function_ast doc * merge public_functions and private_functions into functions * remove default functions_keys * remove unused function * move test to interpreter_test.exs * format * pass function_keys in condition_interpreter.ex's postwalk * add function_key type * fix spec and doc * scope test * Wrap single line function in ast block * Fix @SPEC * Rename get_functions to get_functions_keys * Use String interpolation --------- Co-authored-by: Neylix <[email protected]>
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Add possibility to create and use custom functions in Smart contracts.
However, I have a failing test which is not concerned by anything i changed:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Multiple tests on :
Checklist: