Skip to content

3.0.0 party docs - #59

Open
kubaplas wants to merge 23 commits into
masterfrom
feature/3.0.0-party
Open

kubaplas wants to merge 23 commits into
masterfrom
feature/3.0.0-party

Conversation

@kubaplas

@kubaplas kubaplas commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Docs for odradev/odra#664 (the 3.0.0 fix-up branch). Independent of #58 (storage CLI docs); merge in any order.

Migration guide (migrations/to-3.0.0.md)

  • Compile-time changes: #[odra::module(..)] arguments on impl blocks, #[odra::external_contract] keeping the trait.
  • Erc20::mint / burn and Ownable::unchecked_transfer_ownership no longer entry points.
  • Block time shifted with Duration.
  • #[odra::module(name = "..")] names the package-hash key; what that means for upgrades and 2.x deployments.

Pages

  • Testing: choosing the backend (odra_test::odra_env() / casper_env()); Duration signatures.
  • Cross calls: external_contract keeps the trait; loading via the CLI's contracts file.
  • Native token: contract-to-contract transfers with ContractRef::with_tokens.
  • Host communication: ContractEnv::debug and the test-support feature.
  • Livenet backend: rate limits, retries and read errors; caching; pinned reads (ODRA_CASPER_LIVENET_STATE_ROOT_HASH); the examples' CLI as the reference; .env.sample variables.
  • Casper backend: how the package-hash key name is derived.
  • Odra CLI tutorial: ContractLoaderExt; the global --state-root-hash flag.
  • Upgrades tutorial: what happens to entry points and storage on upgrade.
  • Delegating CSPR, CEP-18 and deploying tutorials: Duration-based time API in every snippet.

🤖 Generated with Claude Code

kubaplas and others added 7 commits September 17, 2026 13:29
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The party changes ship in 2.10.0 on the current Casper stack, without the
addressable-entity switch. Their migration notes move to to-2.10.0.md
(plus the livenet client, error-code and custom-backend notes); to-3.0.0.md
goes back to the addressable-entity guide from master. The time API takes
a Duration or milliseconds and the delays stay in milliseconds, so the
Duration section is a tip now, not a breaking change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
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