Skip to main content

Module version

Module version 

Source
Expand description

State version tracking for contract migrations.

The version field allows contracts to:

  1. Detect states from older contract versions
  2. Reject states from unknown future versions
  3. Perform migration logic if needed

Structs§

StateVersion
Wrapper for state version that implements ComposableState.

Constants§

CURRENT_STATE_VERSION
Current state version. Increment when making breaking changes to state format.