Skip to content

feat: implement initial sell-key contract flow#65

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
edehvictor:feat/sell-key-flow-3
Mar 27, 2026
Merged

feat: implement initial sell-key contract flow#65
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
edehvictor:feat/sell-key-flow-3

Conversation

@edehvictor

Copy link
Copy Markdown
Contributor

Closes #3

Changes

  • add an initial sell_key contract entrypoint for creator keys
  • decrement seller key balance and creator supply on successful sell
  • decrement holder count when a seller exits their final key position
  • return structured errors for invalid sell states, including unregistered creators and insufficient balances
  • add integration tests for successful and invalid sell flows

Testing

  • cargo fmt --all -- --check
  • CI will run:
    • cargo clippy --workspace --all-targets -- -D warnings
    • cargo test --workspace

Notes

  • this PR focuses on the first sell-key state transition only
  • payment routing and sell event expansion can be handled in follow-up issues

@Chucks1093 Chucks1093 merged commit 944d5a4 into accesslayerorg:main Mar 27, 2026
2 checks passed
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.

Implement initial sell-key contract flow

2 participants