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/wasm): implement basic wasm module engine calls #4350

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jul 27, 2022

Description

  • Implements OP_CREATE_COMPONENT call which calls into a mocked RuntimeInterface, returning the result to a test
  • adds tari_template_lib (TODO: exciting name)
  • Adds debug call to help with basic debugging output for WASM code
  • DRY up some memory reading code for loading template def from memory
  • Move WASM template definition loading from package to wasm module.
  • add permitted functions wasm ABI validations
  • efficient copy from wasm memory

Motivation and Context

Hooks up basic WASM interactions with an implementation of RuntimeInterface backend

How Has This Been Tested?

Existing tests that compile and run WASM modules.

@sdbondi sdbondi force-pushed the dan-layer-templates-tari-engine branch 2 times, most recently from 12b3884 to 708cbf2 Compare July 28, 2022 15:25
@sdbondi sdbondi force-pushed the dan-layer-templates-tari-engine branch 3 times, most recently from cb772af to 16943ec Compare July 28, 2022 16:15
@sdbondi sdbondi removed the mq-failed label Jul 28, 2022
@sdbondi sdbondi force-pushed the dan-layer-templates-tari-engine branch 9 times, most recently from d0db087 to f286222 Compare July 29, 2022 04:29
@sdbondi sdbondi force-pushed the dan-layer-templates-tari-engine branch from f286222 to 128c3b0 Compare July 29, 2022 04:58
@stringhandler stringhandler merged commit ad89150 into tari-project:development Jul 29, 2022
@sdbondi sdbondi deleted the dan-layer-templates-tari-engine branch July 29, 2022 08:13
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.

2 participants