Skip to content

Remove leftover contract-lifecycle walkthrough and demo module#27

Merged
RaoulSchaffranek merged 1 commit into
mainfrom
chore/remove-demo-leftover
Jun 26, 2026
Merged

Remove leftover contract-lifecycle walkthrough and demo module#27
RaoulSchaffranek merged 1 commit into
mainfrom
chore/remove-demo-leftover

Conversation

@RaoulSchaffranek

Copy link
Copy Markdown
Member

Summary

The README's Walk through a contract lifecycle section was a leftover artifact. It duplicated the lifecycle (create account → upload wasm → deploy → invoke foo()) now documented more clearly by the Trace a transaction section, which drives the real RPC server over curl instead of the private handle_rpc path. demo.py predated the HTTP server.

Changes

  • README.md — remove the redundant "Walk through a contract lifecycle" section.
  • src/komet_node/demo.py — delete the module it documented.
  • src/komet_node/interpreter.py — drop NodeInterpreter.pretty_print (only demo.py called it) and its now-unused KRunOutput / _krun imports.
  • src/komet_node/utils.py — drop temp_working_directory (only pretty_print used it) and its now-unused imports.
  • docs/notes.md, docs/interpreter.md — remove the stale references to demo.py / pretty_print.

Verification

  • make checkflake8 clean; the two mypy errors are pre-existing on main (scval.py, test_server.py) and unrelated to this change.

🤖 Generated with Claude Code

The README "Walk through a contract lifecycle" section duplicated the
lifecycle (create account -> upload wasm -> deploy -> invoke foo()) now
covered more clearly by the "Trace a transaction" section, which drives
the real RPC server over curl rather than the private handle_rpc path.

Remove that section and the komet_node.demo module it documented. The
demo predated the HTTP server and was the only caller of
NodeInterpreter.pretty_print and utils.temp_working_directory, so drop
those too, along with their now-unused imports and the stale doc
references in docs/notes.md and docs/interpreter.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@RaoulSchaffranek RaoulSchaffranek merged commit 37c3ffb into main Jun 26, 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.

2 participants