Skip to content

feat: workflows v3 feature#412

Draft
gregory-kf wants to merge 2 commits intomainfrom
workflows-v3
Draft

feat: workflows v3 feature#412
gregory-kf wants to merge 2 commits intomainfrom
workflows-v3

Conversation

@gregory-kf
Copy link
Copy Markdown
Contributor

Added

  • buildScript(workflow, context) — resolves magic, configurable, and runtime
    variables and returns { commands, state, stateBitmap } ready for on-chain
    submission.
  • computeScriptHash(commands, state, stateBitmap, callbacks) — offline
    reimplementation of OnchainPM.computeScriptHash(): hashes only pinned state
    slots so runtime values don't invalidate the Merkle proof.
  • buildPolicyUpdate(onchainPMAddress, strategist, scriptHashes) — rebuilds the
    strategist's Merkle root from all whitelisted script hashes and returns an
    unsigned Hub.updateContract() transaction.
  • resolveVariableLabel(variable, poolMetadata) — maps magic variable keys
    (e.g. $scId) to human-readable labels for API responses.
  • WorkflowDefinition, WeirollAction, WorkflowStateSlot, Callback, and
    related types in src/types/workflow.ts.
  • ABIs: OnchainPM, OnchainPMFactory, ScriptHelpers.
  • encodeCommand and weiroll constants (CALL, STATICCALL, VALUECALL,
    FLAG_RAW, UNUSED_SLOT) exported as public utilities.

* add weiroll script generation

* feat: add script hash computation (#405)

* add script hash computation

* feat: add ABI generation (#406)

* add ABI generation

* remove comments in ABI

* feat: add types for workflow definitions (#407)

* add types for workflow definitions

* feat: add variable resolution (#408)

* add variable resolution

* add onchain policy management (#410)
@gregory-kf gregory-kf marked this pull request as draft April 17, 2026 08:11
@gregory-kf gregory-kf changed the title feat: add weiroll script generation (#404) feat: workflows v3 feature Apr 17, 2026
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.

1 participant