Skip to content

feat: Add originator post-condition mode and maybe-sent condition - #1841

Merged
jannik-stacks merged 3 commits into
mainfrom
feat/new-post-conditions
Mar 23, 2026
Merged

feat: Add originator post-condition mode and maybe-sent condition#1841
jannik-stacks merged 3 commits into
mainfrom
feat/new-post-conditions

Conversation

@jannik-stacks

@jannik-stacks jannik-stacks commented Mar 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add SIP-040 post-condition support for Epoch 3.4:

  • PostConditionMode.Originator (0x03) — Deny semantics for the tx origin's assets, Allow for everyone else
  • NonFungibleConditionCode.MaybeSent (0x12) — NFT condition that always passes; useful when a transfer is optional
  • New Pc.willMaybeSendAsset() builder method and 'originator' post-condition mode string

  • adds originator str enum mode
  • adds maybe-sent str enum condition

See also:

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hugo-stacks hugo-stacks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jannik-stacks
jannik-stacks merged commit 3c7d75c into main Mar 23, 2026
6 checks passed
@jannik-stacks
jannik-stacks deleted the feat/new-post-conditions branch March 23, 2026 15:41
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.

3 participants