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

Static Metadata Validation #478

Merged
merged 173 commits into from
Apr 28, 2022
Merged

Static Metadata Validation #478

merged 173 commits into from
Apr 28, 2022

Commits on Mar 14, 2022

  1. metadata: Implement MetadataHashable for deterministic hashing

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    12313d7 View commit details
    Browse the repository at this point in the history
  2. metadata: Hash scale_info::Field

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    707a5e5 View commit details
    Browse the repository at this point in the history
  3. metadata: Hash scale_info::Variant

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    3353583 View commit details
    Browse the repository at this point in the history
  4. metadata: Hash scale_info::TypeDef

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    ebc588a View commit details
    Browse the repository at this point in the history
  5. metadata: Hash pallet metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    dc727fc View commit details
    Browse the repository at this point in the history
  6. metadata: Avoid data representation collision via unique identifiers

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    4690ac0 View commit details
    Browse the repository at this point in the history
  7. metadata: Finalize hashing on recursive types

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    8178351 View commit details
    Browse the repository at this point in the history
  8. metadata: Cache recursive calls

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    b60ebdf View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

  1. metadata: Move MetadataHashable to codegen to avoid cyclic dependency

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    a9b1447 View commit details
    Browse the repository at this point in the history
  2. codegen: Add pallet unique hash

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    3ece9e3 View commit details
    Browse the repository at this point in the history
  3. metadata: Wrap metadata as owned

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    c64cc60 View commit details
    Browse the repository at this point in the history
  4. subxt: Use MetadataHashable wrapper for clients

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    a24da9a View commit details
    Browse the repository at this point in the history
  5. subxt: Generate runtime pallet uid from metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    05f1bc8 View commit details
    Browse the repository at this point in the history
  6. Validate metadata compatibility at the pallet level

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    b98a93c View commit details
    Browse the repository at this point in the history
  7. Update polkadot.rs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    73befba View commit details
    Browse the repository at this point in the history
  8. Modify examples and tests for the new API

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    e576ab2 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2022

  1. codegen: Implement metadata uid

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    76f2c9c View commit details
    Browse the repository at this point in the history
  2. Update polkadot with TryFrom implementation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    58f743c View commit details
    Browse the repository at this point in the history
  3. client: Change to_runtime_api to reflect TryFrom changes

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    ea9e233 View commit details
    Browse the repository at this point in the history
  4. client: Skip full metadata validation option

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    f9d9956 View commit details
    Browse the repository at this point in the history
  5. codegen: Add option to skip pallet validation for TransactionApi

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    0ed1f43 View commit details
    Browse the repository at this point in the history
  6. codegen: Add option to skip pallet validation for StorageApi

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    f5665f7 View commit details
    Browse the repository at this point in the history
  7. Update polkadot.rs with ability to skip pallet validation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    b36555f View commit details
    Browse the repository at this point in the history
  8. codegen: Change MetadataHashable to per function implementation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    e8e8792 View commit details
    Browse the repository at this point in the history
  9. codegen: Use metadata hashes functions

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    86b1c7e View commit details
    Browse the repository at this point in the history
  10. subxt: Use metadata hashes functions

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    c0ecf32 View commit details
    Browse the repository at this point in the history
  11. codegen: Make get_type_uid private

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    4431c22 View commit details
    Browse the repository at this point in the history
  12. codegen, subxt: Rename metadata functions *_uid to *_hash

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    1fa9db4 View commit details
    Browse the repository at this point in the history
  13. codegen: Update get_field_hash to use codec::Encode

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    2d6e906 View commit details
    Browse the repository at this point in the history
  14. subxt: Update polkadot.rs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    4da2e0e View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. codegen, subxt: Move metadata check from client to subxt::Metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    ce7a6d7 View commit details
    Browse the repository at this point in the history
  2. codegen, subxt: Rename metadata check functions to follow *_hash na…

    …ming
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    7033233 View commit details
    Browse the repository at this point in the history
  3. codegen: Update polkadot.rs to reflect naming changes

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    ed51cd8 View commit details
    Browse the repository at this point in the history
  4. codegen: Use encode_to for metadata generation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    0d500eb View commit details
    Browse the repository at this point in the history
  5. codegen: Update polkadot.rs to reflect encode_to changes

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    1c2f986 View commit details
    Browse the repository at this point in the history
  6. codegen: Specific name for visited set

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    02bb231 View commit details
    Browse the repository at this point in the history
  7. metadata: Provide cache to hashing functions

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    13e6112 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2022

  1. metadata: Compute metadata hash by sorted pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    d388598 View commit details
    Browse the repository at this point in the history
  2. metadata: Get extrinsic hash

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    5e6a21d View commit details
    Browse the repository at this point in the history
  3. metadata: Extend metadata hash with extrinsic and metadata type

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    45c6453 View commit details
    Browse the repository at this point in the history
  4. metadata: Add cache as metadata parameter

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    5eb41c9 View commit details
    Browse the repository at this point in the history
  5. codegen, subxt: Update metadata hash to use cache

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    e33f33a View commit details
    Browse the repository at this point in the history
  6. metadata: Implement Default trait for MetadataHasherCache

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    c5d89a3 View commit details
    Browse the repository at this point in the history
  7. metadata: Add cache for pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    e7af28f View commit details
    Browse the repository at this point in the history
  8. metadata: Move functionality to metadata crate

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    e0779bd View commit details
    Browse the repository at this point in the history
  9. codegen, subxt: Use subxt-metadata crate

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    953c031 View commit details
    Browse the repository at this point in the history
  10. codegen: Remove metdata hashing functionality

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    b865f18 View commit details
    Browse the repository at this point in the history
  11. metadata: Add documentation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    26216fa View commit details
    Browse the repository at this point in the history
  12. metadata: Fix vector capacity to include extrinisc and type hash

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    aad7d2d View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. metadata: Add empty CLI

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    5de8e83 View commit details
    Browse the repository at this point in the history
  2. metadata-cli: Fetch metadata from substrate nodes

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    3877505 View commit details
    Browse the repository at this point in the history
  3. metadata-cli: Log metadata hashes of provided nodes

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    1809cc7 View commit details
    Browse the repository at this point in the history
  4. metadata-cli: Group compatible nodes by metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    1957e56 View commit details
    Browse the repository at this point in the history
  5. metadata-cli: Simplify hash map insertion

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    9e32361 View commit details
    Browse the repository at this point in the history
  6. metadata-cli: Move full metadata check to function

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    70aa7c1 View commit details
    Browse the repository at this point in the history
  7. metadata-cli: Group metadata validation at the pallet level

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    bfa9c8f View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. subxt: Persist metadata cache

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    c7a1e27 View commit details
    Browse the repository at this point in the history
  2. metadata: Move compatibility cli from subxt-metadata to subxt-cli

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    ca8c22c View commit details
    Browse the repository at this point in the history
  3. metadata: Remove cli from subxt-metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    776250e View commit details
    Browse the repository at this point in the history
  4. cli: Fix clippy

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    1c600ee View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/master' into 398_static_md_check

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    95a6134 View commit details
    Browse the repository at this point in the history
  6. metadata: Fix compatible metadata when pallets are registered in diff…

    …erent order
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    beee3f1 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2022

  1. tests: Handle result of pallet hashing

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    84e049e View commit details
    Browse the repository at this point in the history
  2. metadata: Remove type cache for deterministic hashing

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    6635423 View commit details
    Browse the repository at this point in the history
  3. metadata: Add test assets from substrate-node-template tag `polkado…

    …t-v0.9.17`
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    1fe787d View commit details
    Browse the repository at this point in the history
  4. metadata-tests: Check cache hashing for Balances pallet

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    20055e5 View commit details
    Browse the repository at this point in the history
  5. metadata: Fix get_type_hash clippy issue

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    7a9b8e5 View commit details
    Browse the repository at this point in the history
  6. metadata-tests: Compare one time cache with persistent cache

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    931fcdb View commit details
    Browse the repository at this point in the history
  7. metadata-test: Check metadata hash populates cache for pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    c9ed131 View commit details
    Browse the repository at this point in the history
  8. metadata-tests: Simplify cache_deterministic_hash test

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    43ae4db View commit details
    Browse the repository at this point in the history
  9. metadata-tests: Check deterministic metadata for different order pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    f9ca06d View commit details
    Browse the repository at this point in the history
  10. metadata: Fix clippy

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    09e74d2 View commit details
    Browse the repository at this point in the history
  11. codegen: Implement TransactionApiUnchecked for skipping pallet valida…

    …tion
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    57771e8 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. codegen: Implement StorageApiUnchecked for skipping pallet validation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    f3f4d72 View commit details
    Browse the repository at this point in the history
  2. codegen: Remove skip_pallet_validation boolean

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    9e4c62c View commit details
    Browse the repository at this point in the history
  3. subxt: Implement ClientUnchecked for skipping metadata validation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    f92383c View commit details
    Browse the repository at this point in the history
  4. Update polkadot.rs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    07cf5f2 View commit details
    Browse the repository at this point in the history
  5. Update examples of rpc_call to skip metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    6baa8e8 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2022

  1. subxt: Remove heck dependency

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    8378086 View commit details
    Browse the repository at this point in the history
  2. codegen: Add pallet name as an identifier for pallet hashing

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    5fa5df8 View commit details
    Browse the repository at this point in the history
  3. metadata: Implement MetadataHashDetails

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    8da1497 View commit details
    Browse the repository at this point in the history
  4. metadata: Adjust testing to MetadataHashDetails interface

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    62a7eec View commit details
    Browse the repository at this point in the history
  5. codegen: Remove extra pallet_name

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    f026078 View commit details
    Browse the repository at this point in the history
  6. subxt: Update polkadot.rs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    31c016c View commit details
    Browse the repository at this point in the history
  7. subxt: Fix clippy issue

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    8fcf824 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2022

  1. codegen: Change StorageApi to support _unchecked methods

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    816e916 View commit details
    Browse the repository at this point in the history
  2. codegen: Change TransactionApi to support _unchecked methods

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    58fd3e3 View commit details
    Browse the repository at this point in the history
  3. subxt: Switch back from TryFrom to From for subxt::Client

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    e0ef532 View commit details
    Browse the repository at this point in the history
  4. codegen, subxt: Remove ClientUnchecked

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    b0061e4 View commit details
    Browse the repository at this point in the history
  5. codegen: Expose validate_metadata as validation of compatibility me…

    …thod
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    5ecf7b7 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2022

  1. examples: Update to the new interface

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    392da6d View commit details
    Browse the repository at this point in the history
  2. subxt: Update test integration to latest interface

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    f2e8dfc View commit details
    Browse the repository at this point in the history
  3. subxt: Update polkadot.rs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    f8df12a View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2022

  1. metadata/tests: Check different pallet index order

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    467d707 View commit details
    Browse the repository at this point in the history
  2. metadata/tests: Check recursive type hashing

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    d20bcd0 View commit details
    Browse the repository at this point in the history
  3. metadata/tests: Check recursive types registered in different order

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    e042c05 View commit details
    Browse the repository at this point in the history
  4. metadata/tests: Fix recursive types warning

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    b3c4029 View commit details
    Browse the repository at this point in the history
  5. metadata/tests: Remove test assets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    1900091 View commit details
    Browse the repository at this point in the history
  6. metadata/tests: Extend tests to verify cached pallet values

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    252c4d1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    964f92c View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2022

  1. Configuration menu
    Copy the full SHA
    9278811 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    551c595 View commit details
    Browse the repository at this point in the history
  3. examples: Add metadata compatiblity example

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    db8fdfb View commit details
    Browse the repository at this point in the history
  4. examples: Revert balance_transfer to initial form

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    d25c912 View commit details
    Browse the repository at this point in the history
  5. codegen: Add ConstantsApi metadata check

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    5fb0cdd View commit details
    Browse the repository at this point in the history
  6. tests: Modify tests to accomodate ConstantsApi changes

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    7293531 View commit details
    Browse the repository at this point in the history
  7. examples: Modify verified version

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    a5415b8 View commit details
    Browse the repository at this point in the history
  8. subxt: Generate polkadot.rs from 0.9.18-4542a603cc-aarch64-macos

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    ce05435 View commit details
    Browse the repository at this point in the history
  9. examples: Update polkadot_metadata.scale from `0.9.18-4542a603cc-aarc…

    …h64-macos`
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    ba95ac8 View commit details
    Browse the repository at this point in the history
  10. metadata: Update documentation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    1efd776 View commit details
    Browse the repository at this point in the history
  11. tests: Modify default pallet usage

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    dc3b106 View commit details
    Browse the repository at this point in the history
  12. metadata/tests: Remove hex dependency

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    bb0b838 View commit details
    Browse the repository at this point in the history
  13. metadata/tests: Add MetadataTestType to capture complex types

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    3a2d695 View commit details
    Browse the repository at this point in the history
  14. metadata/tests: Update tests to use complex types

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    853ba6f View commit details
    Browse the repository at this point in the history
  15. metadata/tests: Check metadata correctness via extending pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    f0a2b75 View commit details
    Browse the repository at this point in the history
  16. metadata/tests: Extend pallet hash with Events

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    545dfd0 View commit details
    Browse the repository at this point in the history
  17. metadata/tests: Extend pallet hash with constants

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    63b32bc View commit details
    Browse the repository at this point in the history
  18. metadata/tests: Extend pallet hash with error

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    7d55527 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4e30b52 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. Modify comments and documentation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    dab2beb View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2022

  1. Configuration menu
    Copy the full SHA
    a152c6b View commit details
    Browse the repository at this point in the history
  2. metadata: Benchmarks for full validation and pallet validation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    4af15fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74d3bc8 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. metadata/benches: Fix clippy

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    58cbc3f View commit details
    Browse the repository at this point in the history
  2. metadata: Hash metadata just by inspecting the provided pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    efa5df1 View commit details
    Browse the repository at this point in the history
  3. metadata: Make pallets generic over T for AsRef<str>

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    414dee6 View commit details
    Browse the repository at this point in the history
  4. codegen: Expose the name of the pallets composing the metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    7396595 View commit details
    Browse the repository at this point in the history
  5. subxt/tests: Update polkadot.rs with pallets name

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    7d1adc3 View commit details
    Browse the repository at this point in the history
  6. codegen: Obtain metadata hash only by inspecting pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    1f5c5f4 View commit details
    Browse the repository at this point in the history
  7. codegen,subxt: Extend the metadata hash to utilize just pallets

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    cbc3727 View commit details
    Browse the repository at this point in the history
  8. subxt/tests: Update polkadot.rs with client metadata has per pallet

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    a82fad2 View commit details
    Browse the repository at this point in the history
  9. metadata/tests: Test get_metadata_per_pallet_hash correctness

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    c96606a View commit details
    Browse the repository at this point in the history
  10. metadata: Fix clippy

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    c558df4 View commit details
    Browse the repository at this point in the history
  11. metadata/benches: Fix decode of metadata

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    a6f5650 View commit details
    Browse the repository at this point in the history
  12. metadata: Fix clippy

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    8f57e20 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2022

  1. [static metadata] validate storage, calls and constants per call (#507)

    * validate storage, calls and constants per call
    
    * fix typo
    
    * cache per-thing hashing, move an Arc, remove some unused bits
    
    * create hash_cache to simplify metadata call/constant/storage caching
    
    * simplify/robustify the caching logic to help prevent mismatch between get and set
    
    * cargo fmt
    jsdw authored Apr 8, 2022
    Configuration menu
    Copy the full SHA
    23b382f View commit details
    Browse the repository at this point in the history
  2. Fix clippy

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    9a08a84 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6cbebc9 View commit details
    Browse the repository at this point in the history
  4. metadata: Add test for node_template_runtime_variant

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    fd4d425 View commit details
    Browse the repository at this point in the history
  5. ensure criteron cli opts work

    jsdw committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    640b052 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1323696 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9a7bbbc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5548b5a View commit details
    Browse the repository at this point in the history
  9. metadata: Remove debug logs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    fd00319 View commit details
    Browse the repository at this point in the history
  10. metadata: Optimise by removing field's name and type_name and type's …

    …path
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    a0e3b6c View commit details
    Browse the repository at this point in the history
  11. metadata: Refactor get_type_hash to break recursion earlier

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    0ce19bb View commit details
    Browse the repository at this point in the history
  12. subxt: Add tests for hash_cache

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    eb051a9 View commit details
    Browse the repository at this point in the history
  13. subxt: Add tests for checking Metadata Inner cache

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    cb2de4a View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. metadata: Check semantic changes inside enum and struct fields

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    e4e2866 View commit details
    Browse the repository at this point in the history
  2. metadata: Add enums named differently with compatible semantic meaning

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    f65dabc View commit details
    Browse the repository at this point in the history
  3. metadata: Guard testing of release versions for node_template_runtime

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    6c776eb View commit details
    Browse the repository at this point in the history
  4. Improve documentation

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    9c46526 View commit details
    Browse the repository at this point in the history
  5. Update polkadot.rs

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    b713993 View commit details
    Browse the repository at this point in the history
  6. metadata/tests: Manually construct type of `node_template_runtimeL::C…

    …all`
    
    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    2d55752 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. Configuration menu
    Copy the full SHA
    79ea3fe View commit details
    Browse the repository at this point in the history
  2. remove unused deps and fmt

    jsdw committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    a1f9038 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9691f51 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fd7aa62 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a658d6f View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. Merge remote-tracking branch 'origin/master' into 398_static_md_check

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    06241f4 View commit details
    Browse the repository at this point in the history
  2. subxt: Remove codegen dependency

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    8c4aca6 View commit details
    Browse the repository at this point in the history
  3. subxt: Replace std RwLock with parking_lot

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    0f7a770 View commit details
    Browse the repository at this point in the history
  4. subxt/tests: Add ws address to TestNodeProcess

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    e355ec6 View commit details
    Browse the repository at this point in the history
  5. subxt/tests: Add metadata validation integration test

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    73be46c View commit details
    Browse the repository at this point in the history
  6. subxt: Allow setting metadata on the ClientBuilder

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    b4c0185 View commit details
    Browse the repository at this point in the history
  7. subxt/tests: Check incompatible metadatas

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    2a625a9 View commit details
    Browse the repository at this point in the history
  8. metadata: Fix constant hashing for deterministic output

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    633c3f0 View commit details
    Browse the repository at this point in the history
  9. subxt/tests: Check metadata validation for constants

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    542dec6 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2022

  1. subxt/tests: Test validation for calls

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    74be005 View commit details
    Browse the repository at this point in the history
  2. subxt/tests: Test validation for storage

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    83f0ba4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1abd3ca View commit details
    Browse the repository at this point in the history
  4. subxt: Expose set_metadata for testing only

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    b0e8b4c View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

  1. subxt: Guard metadata tests under integration-tests

    Signed-off-by: Alexandru Vasile <[email protected]>
    lexnv committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    460c18c View commit details
    Browse the repository at this point in the history