-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat(engine)!: publish template as substate #1214
feat(engine)!: publish template as substate #1214
Conversation
…h-template-as-substate
…h-template-as-substate # Conflicts: # dan_layer/consensus/src/consensus_constants.rs # dan_layer/consensus_tests/src/support/harness.rs # dan_layer/engine/src/transaction/error.rs # dan_layer/engine/src/transaction/processor.rs
… template only when block is committed
…h-template-as-substate
…h-template-as-substate # Conflicts: # applications/tari_dan_app_utilities/src/base_layer_scanner.rs # dan_layer/engine_types/src/substate.rs
…h-template-as-substate
Cucumbers need to be updated to register templates in the new way. These tasks need to happen before we remove the previous registration from the scanner:
|
49571b9
to
221ca6c
Compare
…tate' into feature/publish-template-as-substate
Description
When registering a new template on Layer-2 it should be represented as a new substate that contains the whole binary, so it can be used to call functions to create new components etc..
This PR contains the changes to create a new substate from a submitted template registration/publishing.
Please note that these changes are working only in 1 shard group, multi shard group version (downloading template binaries from foreign shards) will be in another PR!
Motivation and Context
How Has This Been Tested?
data/processes
directory to start a fresh swarm (if there was data left)200.000
tokens to it through free test tokens faucet (on UI)I used this example template:
Example code (using
tari-dan
dependencies from this branch):Template publish
Component creation
Component call
What process can a PR reviewer use to test or verify this change?
Do the test
Breaking Changes