Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle sp_runtime::ModuleError substrate updates #492

Merged
merged 15 commits into from
Mar 31, 2022
Merged

Commits on Mar 28, 2022

  1. codegen: Handle new errors of type [u8; 4] with backwards compatibility

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    56f4710 View commit details
    Browse the repository at this point in the history
  2. codegen: Add comments about the compatibility of DispatchError::Module

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    c3da193 View commit details
    Browse the repository at this point in the history
  3. codegen: Handle legacy cases appropriately

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    6e84862 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2022

  1. codegen: Introduce ModuleErrorType for compatibility versioning

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    20b23eb View commit details
    Browse the repository at this point in the history
  2. codegen: Implement module_error_type helper

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    3ce61f4 View commit details
    Browse the repository at this point in the history
  3. codegen: Implement quote::ToTokens for ModuleErrorType

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    2f19bca View commit details
    Browse the repository at this point in the history
  4. codegen: Rename new error to ArrayError

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    e949546 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2022

  1. codegen: Add strict checks for ModuleError

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    f02146f View commit details
    Browse the repository at this point in the history
  2. codegen: Fix cargo fmt

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    0edb276 View commit details
    Browse the repository at this point in the history
  3. codegen, subxt: Expose the error's raw bytes to user

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    948b94b View commit details
    Browse the repository at this point in the history
  4. subxt: Update polkadot with ModuleErrorRaw

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    445a1e9 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2022

  1. subxt: Rename ModuleErrorRaw to ModuleErrorData

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    f9bfec7 View commit details
    Browse the repository at this point in the history
  2. subxt: Expose method to obtain error index

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    fa0816b View commit details
    Browse the repository at this point in the history
  3. codegen: Rename ModuleErrorRaw to ModuleErrorData

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    2d2e475 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4c9433 View commit details
    Browse the repository at this point in the history