Repository navigation
Docs: Odra 2.10.0 afterparty changes - #60
Merged
Merged
Conversation
- Factory modules work on OdraVM; note the remaining differences. - OdraVM rolls back code, contracts and events of a reverted call; snapshots cover contracts and their code; panics print normally. - Livenet: locally run getters and offchain functions return the error of a revert and see the calling account; errors are decoded by the called contract's schema; a reverting init/upgrade returns its error. - Events: fields whose CLType contains `Any` are refused at deploy and schema generation. - Reserved function and argument names; `__env` renamed `__odra_env`. - Migration guide entries for the user-visible changes. - Drop `enable_addressable_entity` from the 2.10 testing page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 tasks done
…net gas report and validator info Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arguments are errors Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_with) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntract command Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 0.2.0 Cut the 2.10 snapshot (`just docs-new-version 2.10`) and make it the default version; 2.9 stays as `2.9.*`. Dapp Registry tutorial: follow the names of the released odra_modules::dapp - `is_registrar`, `is_dapp_registrar`, `assert_dapp_registrar`, `CallerNotDappRegistrar` (the draft said factory). A registry composed by hand calls `DappRegistryBase::init`, which creates the `__dapp` dictionary. The spawner example uses `DappContractBase::register_address` and `register`, as examples/src/factory/dapp.rs does, and shows the registrar check. Same wording in "Using odra-modules". Odra CLI tutorial: the `storage` command was missing from the command list. Migration guide to 2.10.0: a cargo-odra 0.2.0 section - one `wasm` directory per workspace (which is why a workspace on cargo-odra 0.2.0 needs Odra 2.10), contracts from dependency crates, crate-qualified ODRA_MODULE, `cargo odra new` resolving the latest release without the GitHub API. Version-pinned snippets and links (`version = "2.9.0"`, release/2.9.0, docs.rs/odra/2.9.0) point at 2.10.0; sentences about 2.9 behaviour are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the changes from odradev/odra#680, which ship in Odra 2.10.0.
advanced/09-factory.md,tutorials/dapp-registry.md). The "Casper VM only" warning is replaced, and the remaining differences from Casper are listed.backends/02-odra-vm.md, new "Reverts" section). A revert rolls back contract code, factory children and events, not just storage. The section lists what still differs from Casper and describes how panics are printed now.basics/07-testing.md) also cover contracts and their code.enable_addressable_entityis removed from the 2.10HostEnvlist, because it doesn't exist in 2.10.backends/04-livenet.md,advanced/03-attributes.md,basics/06-communicating-with-host.md,basics/08-errors.md):caller().try_*returnsErr.basics/04-flipper-internals.md): onlygasandattached_valueare still reserved argument names. Names likecontract,envandresultnow work.basics/09-events.md, new "Field types" section). Fields whose CLType is or containsAnyare refused at deploy, upgrade andcargo odra schema. The section explains how to flatten such a field.migrations/to-2.10.0.md) covers the user-visible behaviour changes:init/upgradeerrors and error naming;__env→__odra_env.Test plan
npm run buildindocusaurus/passes, with no broken links or MDX warnings.Note: the DappRegistry tutorial, already on
master, refers to code that exists only on odra'sfeature/dapp-registrybranch.🤖 Generated with Claude Code