-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dan/engine): add more engine primitives and add template context (…
…#4388) Description --- - adds `Component` primitive and adds fields to `Vault` and `Bucket` - adds `engine()` helper for internal use in macro code - adds `context()` helper that provides some basic execution context - adds `template_types` crate for common types for `tari_engine` and templates - supports adding a component to the state store via `OP_CREATE_COMPONENT`, with updated test - adds `exists` method to state store - loads the component for the `CallMethod` instruction and passes it as an argument to WASM code - implements component state updates Motivation and Context --- Incremental progress on state loading and persisting. `template_lib` - library for wasm contracts. Needs to support wasm and non-wasm targets as well as no_std How Has This Been Tested? --- Rust unit / integration tests updated as needed.
- Loading branch information
Showing
55 changed files
with
1,350 additions
and
487 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
pub mod proto; | ||
pub mod storage; | ||
|
||
mod hash; | ||
mod template_id; | ||
|
||
pub use hash::Hash; | ||
pub use template_id::TemplateId; |
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
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
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
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
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
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
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
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
Oops, something went wrong.