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

feat(dan/engine): add more engine primitives and add template context #4388

Merged
merged 6 commits into from
Aug 10, 2022

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Aug 4, 2022

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.

@sdbondi sdbondi force-pushed the dan-layer-primitives branch 6 times, most recently from 6ceb1d8 to f3ad0fb Compare August 5, 2022 05:24
@sdbondi sdbondi marked this pull request as ready for review August 5, 2022 05:28
@sdbondi sdbondi force-pushed the dan-layer-primitives branch 7 times, most recently from f074aa0 to 6b248f7 Compare August 9, 2022 10:18
@sdbondi sdbondi force-pushed the dan-layer-primitives branch 2 times, most recently from 1ca3eec to 60be388 Compare August 9, 2022 10:23
@stringhandler stringhandler merged commit a481f89 into tari-project:development Aug 10, 2022
@sdbondi sdbondi deleted the dan-layer-primitives branch August 10, 2022 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants