Skip to content
Commit 943697fa authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

Metadata V15: Enrich extrinsic type info for decoding (#14123)



* metadata-ir: Add extrinsic type info to decode address, call, sig

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* frame-metadata: Point to unreleased branch

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* metadata-ir: Include addrees, call, signature in V15 conversion

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* metadata-ir: Include extra ty

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* construct_runtime: Extract address,call,sig,extra ty from tx type

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* frame/tests: Check metadata populates xt types correctly

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* metadata-ir/tests: Add extra fields on ExtrinsicMetadataIR

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* primitives/traits: Expand the `Extrinsic::SignaturePayload`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* primitives: Adjust to new `Extrinsic` associated types

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* frame/metadata: Simplify metadata generation

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* frame/example: Adjust to new interface

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* frame/tests: Adjust `extrinsic_metadata_ir_types`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Revert the additional Extrinsic' associated types

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* primitives: Add `SignaturePayload` marker trait

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* primitives: Implement SignaturePayload for empty tuple

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Adjust to new SignaturePayload trait

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* tests: Adjust `extrinsic_metadata_ir_types` to new interface

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* frame/support: Adjust pallet test

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* frame: Add Extrinsic length prefix to the metadata

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* primitives: Populate `ExtrinsicMetadataIR` with `len_ty`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Update primitives/runtime/src/traits.rs

Co-authored-by: default avatarBastian Köcher <[email protected]>

* Apply cargo fmt

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* v15: Remove len type of the extrinsic

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* cargo: Update frame-metadata

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

---------

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: parity-processbot <>
parent b4e863c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment