87 Commits

Author SHA1 Message Date
James Wilson 0d66574b1b Prep to release v23.0.1 (#111) 2025-12-09 18:19:09 +00:00
Carlo Sala 560f2cae43 fix: ensure extrinsic types are collected before pallet types (#110) 2025-12-09 12:14:00 +01:00
dependabot[bot] fb487bc85d Bump actions/checkout from 5 to 6 (#108)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-21 10:20:39 +02:00
dependabot[bot] f3338dc3a1 Bump actions/checkout from 4 to 5 (#105)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-03 00:09:22 +02:00
James Wilson f0742f8449 Prepare to stabilize V16 metadata and release v23.0.0 (#103) 2025-05-06 11:49:25 +01:00
Carlo Sala 485f678a0d fix: add back call_ty and reorder some fields (#102)
* fix: add back `call_ty` and reorder some fields

* Add notes

---------

Co-authored-by: James Wilson <james@jsdw.me>
2025-04-29 13:44:37 +01:00
James Wilson 745378048e Tidy Deprecation Information and prep 22.0.0 release (#101)
* Alter Deprecation bits to avoid weird states

* fmt

* No need to deprecate the entire enum, only variants

* Make it easy to signal nothing deprecated on EnumDeprecationInfo

* Bump to 22.0.0

* Update changelog
2025-04-29 10:40:14 +01:00
James Wilson a060c2d488 Prepare to release 21.0.0 (#99) 2025-04-01 11:24:46 +01:00
James Wilson dbd0030907 Address V16 pre-stabilization niggles (#98)
* Address V16 pre-stabilization niggles

* fmt

* Add wrapper around Compact which can be Serialized

* Compact => CompactSer to differentiate

* Actually, Compact impls serialize with feature flag
2025-03-31 19:37:13 +01:00
dependabot[bot] ffc689af5c Bump Swatinem/rust-cache from 2.7.7 to 2.7.8 (#97)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.7 to 2.7.8.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/f0deed1e0edfc6a9be95417288c0e1099b1eeec3...9d47c6ad4b02e050fd481d890b2ea34778fd09d6)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 11:32:34 +02:00
Alexandru Vasile d679a7c4bd chore: Release frame-metadata v20.0.0 (#93)
* Add changelog

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* chore: Release frame-metadata v20.0.0

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2025-02-20 17:06:11 +02:00
Giuseppe Re 35bfff2a78 Add Runtime Api version to v16 (#92)
* Add Runtime Api version

* remove `Compact`

* revert v16 version number to `u32::max`
2025-02-20 14:49:05 +01:00
Alexandru Vasile 88889a0c89 chore: Release v19.0.0 with pallet view functions (#91)
* Add changelog

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* cargo: Update version

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* changelog: Update v16 unstable note

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2025-02-11 14:00:46 +02:00
Alexandru Vasile 0856cf232c v16: Add view functions to the pallets metadata (#89)
* v16/view: Add view function method metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16/view: Add view function param

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Add view functions to the pallets metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2025-02-10 10:55:42 +01:00
Giuseppe Re c229b1d01d Add some open source licenses (#90) 2025-02-10 10:50:30 +01:00
dependabot[bot] 0fc0539c2d Bump Swatinem/rust-cache from 2.7.5 to 2.7.7 (#88)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.5 to 2.7.7.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/82a92a6e8fbeee089604da2575dc567ae9ddeaab...f0deed1e0edfc6a9be95417288c0e1099b1eeec3)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 09:33:37 +01:00
Alexandru Vasile c67d5c8812 chore: Release v18.0.0 with unstable v16 ExtrinsicMetadata extensions (#87)
* cargo: Release version 17.1.0

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update changelog

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Release v18

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-11-13 16:04:06 +02:00
Alexandru Vasile 547bd14146 v16: ExtrinsicMetadata extensions (#86)
* v16: Remove extrinsic extra_ty

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Extrinsic call_ty can be found in OuterEnums

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Fix typo

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Rename additional_signed to implicit

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Add extension version

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Change extrinsic versions to support multiple extensions

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Rename versions to transaction_extensions_by_version

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Fix build

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: ExtrinsicMetadata still needs a Vec<u8> for versions

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Adjust comment

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update frame-metadata/src/v16.rs

Co-authored-by: James Wilson <james@jsdw.me>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: James Wilson <james@jsdw.me>
2024-11-12 19:27:24 +02:00
Alexandru Vasile 961600149e chore: Release v17 with v16 unstable metadata (#85)
* chore: Release v16.1 with v16 unstable metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Bump to 17.0

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update CHANGELOG.md

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-10-16 16:37:58 +02:00
dependabot[bot] 70fdbe185b Bump Swatinem/rust-cache from 2.7.3 to 2.7.5 (#84)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.3 to 2.7.5.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/23bce251a8cd2ffc3c1075eaa2367cf899916d84...82a92a6e8fbeee089604da2575dc567ae9ddeaab)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-16 10:11:07 +02:00
Alexandru Vasile 201d9e5e60 v16: Add unstable metadata v16 (#82)
* v16: Add unstable metadata v16

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Add deprecation info

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Extrinsics with multiple versions

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Rename signed extensions to transaction extensions

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Remove the runtime type entirely

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v16: Remove BTreeMap<Compact<u8>> and use plain u8 instead to impl
serialize

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-10-09 17:16:01 +03:00
Alexandru Vasile 50d42be708 ci: Update deny.toml to reflect the latest changes (#83)
* deny: Advisories are denied by default, they are no longer configurable

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* deny: Remove deprecated licenses fields and move targets to graph

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* deny: Allow MIT and Apache licenses

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* deny: Allow unicode license

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-10-09 17:04:05 +03:00
dependabot[bot] f81f8477af Bump EmbarkStudios/cargo-deny-action from 1 to 2 (#81)
Bumps [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action) from 1 to 2.
- [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases)
- [Commits](https://github.com/embarkstudios/cargo-deny-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: EmbarkStudios/cargo-deny-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-12 22:28:24 +02:00
dependabot[bot] 94e7743fa4 Bump baptiste0928/cargo-install from 2 to 3 (#80) 2024-02-07 15:25:13 +00:00
dependabot[bot] 5f0357a894 Bump styfle/cancel-workflow-action from 0.12.0 to 0.12.1 (#79)
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/01ce38bf961b4e243a6342cbade0dbc8ba3f0432...85880fa0301c86cca9da44039ee3bb12d3bedbfa)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-26 14:16:25 +01:00
dependabot[bot] d0d7c3cf5e Bump Swatinem/rust-cache from 2.7.0 to 2.7.3 (#78)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.0 to 2.7.3.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/a95ba195448af2da9b00fb742d14ffaaf3c21f43...23bce251a8cd2ffc3c1075eaa2367cf899916d84)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 15:23:25 +01:00
dependabot[bot] a07b2451b8 Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#75)
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/b173b6ec0100793626c2d9e6b90435061f4fc3e5...01ce38bf961b4e243a6342cbade0dbc8ba3f0432)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 10:37:08 +01:00
dependabot[bot] 0e90489c85 Bump Swatinem/rust-cache from 2.6.2 to 2.7.0 (#74) 2023-09-14 07:48:51 +00:00
dependabot[bot] df03f6f58e Bump actions/checkout from 3 to 4 (#73)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 18:01:57 +01:00
dependabot[bot] 31e40963d0 Bump Swatinem/rust-cache from 2.6.1 to 2.6.2 (#72)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/578b235f6e5f613f7727f1c17bd3305b4d4d4e1f...e207df5d269b42b69c8bc5101da26f7d31feddb4)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-22 20:34:46 +10:00
dependabot[bot] e3d1758cf5 Bump Swatinem/rust-cache from 2.5.1 to 2.6.1 (#71)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.5.1 to 2.6.1.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/dd05243424bd5c0e585e4b55eb2d7615cdd32f1f...578b235f6e5f613f7727f1c17bd3305b4d4d4e1f)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 10:46:29 +01:00
dependabot[bot] 80ca5c2170 Bump Swatinem/rust-cache from 2.5.0 to 2.5.1 (#69)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/2656b87321093db1cb55fbd73183d195214fdfd1...dd05243424bd5c0e585e4b55eb2d7615cdd32f1f)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-04 09:53:12 +02:00
Alexandru Vasile f7a67d1069 Release 16.0.0: bump crate version (#68)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-06-29 18:04:48 +03:00
Alexandru Vasile 62fb6340d4 Release v16.0.0 (#67)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-06-29 17:36:39 +03:00
Alexandru Vasile 62eb3fa2dd Stabilize V15 metadata (#66)
* Stabilize V15

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Remove re-exports for latest metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-06-29 17:26:13 +03:00
Alexandru Vasile 0254624b4e Release v15.2.0 (#65)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-06-27 18:00:54 +03:00
Alexandru Vasile fc36bec2cb Simplify feature-flag and use common types (#62)
* Add common types between v14 and v15

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Use common types

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Guard common types by feature flags

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Use feature flags on the imports

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Revert "Use feature flags on the imports"

This reverts commit 5988d8a221c4f8bb8b9dd095fc703d1e5e99d7ef.

Revert "Guard common types by feature flags"

This reverts commit f12cdc650765da455bf29f1eca0205662a039267.

Revert "Use common types"

This reverts commit a012d1ce2b0ff83039a8ecd7097d66fa96d62b1a.

Revert "Add common types between v14 and v15"

This reverts commit 718c9d39e9c53c5ba51ed249595f8263b8604605.

* Adjust feature flags

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Use v14 types for v15

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Rename `module_error_ty` to be consisten with `event`/`call`

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Mark V15 as unstable

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Adjust feature flags

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-06-27 16:11:07 +03:00
dependabot[bot] d6d22767e3 Bump Swatinem/rust-cache from 2.4.0 to 2.5.0 (#64)
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/Swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rust-cache/compare/988c164c3d0e93c4dbab36aaf5bbeb77425b2894...2656b87321093db1cb55fbd73183d195214fdfd1)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 14:20:38 +03:00
Alexandru Vasile d6e6c2bf82 Metadata V15: Enrich extrinsic type info for decoding (#56)
* v15/extrinsic: Add extrinsic type info to decode address, call, sig

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15/extrinsic: Add extra ty

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15/extrinsic: Remove extrinsic ty and add prefix length ty

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15/extrinsic: Remove extrinsic len type

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-06-14 14:06:45 +03:00
Alexandru Vasile 4912047c47 V15: Add custom values to the metadata (#61)
* V15: Add custom values to the metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update frame-metadata/src/v15.rs

Co-authored-by: Bastian Köcher <git@kchr.de>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
2023-06-14 14:05:17 +03:00
Alexandru Vasile 426ba93c56 v15: Rename error_enum_ty to module_error_enum_ty (#60)
* v15: Rename `error_enum_ty` to `module_error_enum_ty`

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Rename RuntimeMetadataV15 params

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update frame-metadata/src/v15.rs

Co-authored-by: James Wilson <james@jsdw.me>

* Update frame-metadata/src/v15.rs

Co-authored-by: James Wilson <james@jsdw.me>

* Apply fmt

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: James Wilson <james@jsdw.me>
2023-06-13 14:05:27 +03:00
Alexandru Vasile 0c6400964f v15/metadata: Add outer enum types for calls, events, errors (#57)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-05-23 13:35:55 +01:00
dependabot[bot] 6fa8de96a1 Bump Swatinem/rust-cache from 2.2.1 to 2.4.0 (#59)
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 2.2.1 to 2.4.0.
- [Release notes](https://github.com/Swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rust-cache/compare/6fd3edff6979b79f87531400ad694fb7f2c84b1f...988c164c3d0e93c4dbab36aaf5bbeb77425b2894)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-23 09:04:23 +01:00
Alexandru Vasile 438a5b098b Release 15.1.0 (#54)
* Bump version to v15.1.0

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update changelog

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-03-30 16:49:57 +03:00
Alexandru Vasile a09bd49175 Add metadata V15 with Runtime API support (#48)
* v15: Add everything from v14

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Add feature to make the V15 the default version

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Add trait metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Add method metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Add param metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Constructor for the metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v14: Keep backwards compatibility with v14 re-exports

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Add trait and method documentation

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Make trait version optional

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Do not reexport v14 types

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Expose metadata as unstable

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Exclude trait versioning from metadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Add pallet documentation

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Rename runtime API structs

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* v15: Rename `ParamMetadata` to RuntimeApiMethodParamMetadata

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update frame-metadata/src/v15.rs

Co-authored-by: Bastian Köcher <git@kchr.de>

* v15: Reanme `runtime` -> `apis` and use global META_RESERVED

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* lib: Force CI by better docs

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Copyright: Align copyright with substrate

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
2023-03-30 15:32:53 +03:00
dependabot[bot] 040a53c63a Bump baptiste0928/cargo-install from 1 to 2 (#53)
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) from 1 to 2.
- [Release notes](https://github.com/baptiste0928/cargo-install/releases)
- [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md)
- [Commits](https://github.com/baptiste0928/cargo-install/compare/v1...v2)

---
updated-dependencies:
- dependency-name: baptiste0928/cargo-install
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 12:35:55 +02:00
dependabot[bot] 02a063bc5e Bump Swatinem/rust-cache from 2.2.0 to 2.2.1 (#51)
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/Swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rust-cache/compare/359a70e43a0bb8a13953b04a90f76428b4959bb6...6fd3edff6979b79f87531400ad694fb7f2c84b1f)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 15:52:16 +02:00
Alexandru Vasile f84ba3ff49 chore: Enable rust tests in CI (#50)
* git: Run job from the `main` branch instead of `master`

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Expose terminal colors for CI

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Fix CI and add extra checks

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Fix clippy

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Add missing `cargo hack` command

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Use actions-rs/target for wasm

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2023-02-21 14:01:46 +02:00
Squirrel 1ea3299208 add no_std support (#42)
* Metadata supporting scale-info can be decoded and serialized in no_std (#2)

* Metadata supporting scale-info can be decoded and serialized in no_std (feature flag scale_info)

* Changes from review: rename feature flag into full_derive

* Changes from review: std implies full-derive

* Changes from review: optimization

Co-authored-by: echevrier <edith.chevrier@scs.ch>

* split full_derive into decode and sered_codec features.

(drop new Debug impls)

* cargo fmt

* rename serde_codec to serde_full

* Prior to v14 everything was Debug.

Are there any downsides? Unused debug impls will just get optimised away won't they?

* rust fmt

* Debug for the masses. Make it work for no_std

* check all combos of features

(if this plays well with ci then we should double up,
doing the same again but target wasm32)

* all wasm feature combos

Co-authored-by: echevrier <84318241+echevrier@users.noreply.github.com>
Co-authored-by: echevrier <edith.chevrier@scs.ch>
2022-11-09 14:32:34 +00:00
dependabot[bot] d41046b12c Bump styfle/cancel-workflow-action from 0.10.0 to 0.11.0 (#45)
* Bump styfle/cancel-workflow-action from 0.10.0 to 0.11.0

Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/bb6001c4ea612bf59c3abfc4756fbceee4f870c7...b173b6ec0100793626c2d9e6b90435061f4fc3e5)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* match hash with version

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergejs Kostjucenko <sergejs@parity.io>
2022-10-24 22:41:17 +02:00