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

codegen: Generate type aliases for better API ergonomics #1249

Merged
merged 33 commits into from
Dec 8, 2023

Commits on Nov 8, 2023

  1. codegen: Generate type alias for storage return types

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    0be80cc View commit details
    Browse the repository at this point in the history
  2. codegen: Generate type alias for call function arguments

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    f522e5a View commit details
    Browse the repository at this point in the history
  3. testing: Update polkadot.rs code from commit 2e2a75f

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    d050859 View commit details
    Browse the repository at this point in the history
  4. codegen: Type aliases for runtime API parameters

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    bd8f602 View commit details
    Browse the repository at this point in the history
  5. codegen: Type alias for runtime apis output

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    bfa70d1 View commit details
    Browse the repository at this point in the history
  6. storage: Change path of the aliased module

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

Commits on Nov 9, 2023

  1. codegen: Adjust module indentation

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    c6bb349 View commit details
    Browse the repository at this point in the history
  2. codegen: Do not alias for api::runtime_types with unresolved generics

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    10fdc75 View commit details
    Browse the repository at this point in the history
  3. codegen: Fix and document runtime API alias generation

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    8008665 View commit details
    Browse the repository at this point in the history
  4. Update artifacts

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    2bd89d4 View commit details
    Browse the repository at this point in the history
  5. Update cargo.lock file

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    a777163 View commit details
    Browse the repository at this point in the history
  6. codegen: Generate composite structs with alias unnamed fields

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    977b4fb View commit details
    Browse the repository at this point in the history
  7. testing: Update polkadot.rs file

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    e353f16 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0a316b0 View commit details
    Browse the repository at this point in the history
  9. codegen: Alias storage unnamed parameters

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    0798ad9 View commit details
    Browse the repository at this point in the history
  10. Update polkadot.rs

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    b9398dd View commit details
    Browse the repository at this point in the history
  11. examples: Change polkadot to rococo runtime

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    8c51c2a View commit details
    Browse the repository at this point in the history
  12. codegen: Fix compiling tests in the codegen crate

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    3ccb99f View commit details
    Browse the repository at this point in the history
  13. codegen: Extend storage test with alias module

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    354704e View commit details
    Browse the repository at this point in the history
  14. cli/tests: Adjust exepcted commands to the latest metadata

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    8761283 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    43d9175 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. Configuration menu
    Copy the full SHA
    c408e97 View commit details
    Browse the repository at this point in the history
  2. codegen: Remove missleading comment and docs

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    6ec86d9 View commit details
    Browse the repository at this point in the history
  3. codegen: Ensure unique names for generated runtime API types

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    17bdaeb View commit details
    Browse the repository at this point in the history
  4. codegen/tests: Test expected runtime type generation

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    b8425b9 View commit details
    Browse the repository at this point in the history
  5. codegen/tests: Check duplicate params in runtime APIs

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    1588869 View commit details
    Browse the repository at this point in the history
  6. codegen/tests: Test colliding names of type aliases and parameters

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

Commits on Nov 22, 2023

  1. Fix clippy

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    4bf9ac5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a9f834 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. Configuration menu
    Copy the full SHA
    6142e2f View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. codegen: Separate alias module from struct definition

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    4352c01 View commit details
    Browse the repository at this point in the history
  2. Update polkadot.rs

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

Commits on Dec 8, 2023

  1. codegen: Remove outdated docs from composite def

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    4c0c9f3 View commit details
    Browse the repository at this point in the history