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

Validate Smart Contract Calls #57 #1

Open
wants to merge 68 commits into
base: develop
Choose a base branch
from

Conversation

netboz
Copy link
Owner

@netboz netboz commented Jan 3, 2023

Description

Provide an endpoint to pre-validate smart contract execution

Fixes archethic-foundation#57

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@netboz netboz changed the title First commit - draft Validate Smart Contract Calls #57 Jan 4, 2023
@netboz netboz force-pushed the pr_57_validate_smart_contract_calls branch from 17ac581 to 58e6a69 Compare January 5, 2023 10:58
@netboz netboz force-pushed the pr_57_validate_smart_contract_calls branch 2 times, most recently from 299c122 to 61b2ced Compare January 29, 2023 21:09
@netboz netboz force-pushed the pr_57_validate_smart_contract_calls branch 4 times, most recently from 32ed025 to cfa4fc6 Compare February 15, 2023 13:48
tenmoves and others added 22 commits February 20, 2023 16:56
…ons (archethic-foundation#899)

* ensure code proposal contains a valid appup file with the right versions

* review feedbacks

* refactor tests and get_changes function

* fixed appup validation to also handle up and down instructions and enhanced tests
…ion#883)

* Fixing legacy tests

* Addressing comments

* Filling LRU cache at summary parsing

* Adding ets to LRU migration commands in code change

* Fixing $end_of_table when migrating plus minor changes

* Fixing release upgrade ( start LRU in code change + fixes )
* restart self repair when it crashes

* fixed tests

* enhanced implementation and added tests

* enhance retry in self repair and self repair scheduler

* small typo

* refactoring and added more tests

* make sure that bootstrap_sync fails when max_retry_count is reached
 - verify whether node is synced ?
    - last scheduling time is not too old
    - manually ask network

 - Augment Message.NewTransaction with a welcome node key

 - update tests to handle new tx with protocol chain NSS synchronization
- improve aliasing of archethic modules
- Dialyzer warning was due to a missing archethic alias
- Oracle/Reward Scheduler test failures were due to a persistent term not being nil
or cleared after tests
- Graphql schema test crashes : add message reply for get Beacon aggreagte
…ation#903)

* Add modules for library and transaction statements
* Enable loops
* Improve testing
* Improve some error messages
* Enable ranges
* Handle map[field] syntax
* Allow code blocks in the condition interpreter
* Support several scopes
* Fix double execution of contract
bchamagne and others added 15 commits March 21, 2023 15:44
It is faster & require less memory
* Adding initial keys for hydrating caches

* Adding hydrating cache code

* Adding cache to supervisor

* Using cache in agregator

* Increasing deault ttl

* Fixing querying when no initial value plus bugfixes

* Starting cache as first child

* Adding tests

* Adding test for manager + refinement

* Addressing comments

* Uncreasing oracle service frequency to be closer to real use ( and removing coco service )

* Adding 3 secs timeout when fethcing value from cache

* Managing case when value is requested but couldn't have been initialised

* Adding cast to request hydrating function registration from api

* Adding tests

* Adding timeout support for ttl plus refinement

* Using prior value if no new value for a curreny ( fixes archethic-foundation#836 )

* Fixing TTL bug

* Reverting changes on cache manager

* Removing cache manager, better hydrating cache name management

* Addressing MR comments plus bugfixes

* Adding get_all to get all keys from hydrating cache plus tests

* Preventing pipeline race condition

* Move HydratingCache into ArchethicCache folder

* replace erlang timer with elixir's

* Improve task monitoring and tests

The renewal of the hydrating message is done after the task is completed
The timers are persisted in the state to have a better monitoring
The tests are now using :erlang.trace to avoid undeterministic behaviors
based on time.

* Hydrating Cache accepts CRON intervals

* Add a timeout for the hydrating function

---------

Co-authored-by: Bastien CHAMAGNE <bastien@chamagne.fr>
Co-authored-by: Samuel Manzanera <samuelmanzanera@protonmail.com>
Update replication attestation validation
@bchamagne bchamagne force-pushed the pr_57_validate_smart_contract_calls branch from 4cac2d8 to bbe896d Compare March 27, 2023 13:32
@bchamagne bchamagne force-pushed the pr_57_validate_smart_contract_calls branch from c27deb7 to d4b9797 Compare March 29, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants