James Wilson
1a4e4cd3ce
Prep to release 0.32.0 ( #1178 )
v0.32.0
2023-09-27 15:03:30 +01:00
Tadeo Hepperle
cd5060a5a0
Add Web Feature to Subxt Codegen ( #1175 )
...
* add web feature to subxt codegen
* add getrandom
* remove compile error
* metadata: Generate runtime outer enums if not present in V14 (#1174 )
* metadata: Extend outer enum generation for V14
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Generate outer enums if not present
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Porpagate v14 error instead of panic
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Try to find `RuntimeCall` then `Call` enums
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Ensure the returned type is variant for outer enums
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Replace or with or_else
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Apply clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Return error and generate only `RuntimeError`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Remove modified path
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata/tests: Check missing runtime types
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* add empty use of getrandom
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
Co-authored-by: James Wilson <james@jsdw.me >
2023-09-26 20:02:45 +02:00
James Wilson
0956b40412
try composite action to avoid dupe use-substrate code ( #1177 )
...
* try composite action to avoid dupe use-substrate code
* put use-substrate in a folder
* required 'shell' prop
* re-use use-substrate action across CI
* remove unnecessary bit from action readme
2023-09-26 17:54:03 +01:00
James Wilson
cf7e2db1b7
chainHead based backend implementation ( #1161 )
...
* add follow_stream impl
* follow_stream_unpin first draft
* add tests for follow_stream_unpin
* more tests and fixes for follow_stream_unpin
* first pass follow_stream_driver
* follow_stream_driver: add tests, fix things, buffer events from last finalized
* First pass finishing Backend impl
* Fix test compile issues
* clippy fixes
* clippy fix and consistify light_client
* revert lightclient tweak
* revert other lightclient thing
* cargo fmt
* start testing unstable backend behind feature flag
* more test fixes and move test-runtime metadata path just incase
* fix compile error
* ensure transaction progress stream actually used and fix another test
* cargo fmt
* CI tweak
* improve some comments and address some feedback bits
* update CI to use our own nightly binary
* wait for finalized block perhaps
2023-09-26 16:58:30 +01:00
James Wilson
00cce68371
CI to build substrate binary
2023-09-26 14:37:40 +01:00
Alexandru Vasile
c2522c6b5b
metadata: Generate runtime outer enums if not present in V14 ( #1174 )
...
* metadata: Extend outer enum generation for V14
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Generate outer enums if not present
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Porpagate v14 error instead of panic
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Try to find `RuntimeCall` then `Call` enums
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Ensure the returned type is variant for outer enums
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Replace or with or_else
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Apply clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Return error and generate only `RuntimeError`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Remove modified path
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata/tests: Check missing runtime types
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-09-25 18:37:38 +03:00
dependabot[bot]
a731a92c1f
Bump tokio-util from 0.7.8 to 0.7.9 ( #1172 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.7.8 to 0.7.9.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.8...tokio-util-0.7.9 )
---
updated-dependencies:
- dependency-name: tokio-util
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-09-25 10:43:03 +02:00
dependabot[bot]
fa5d97743b
Bump clap from 4.4.3 to 4.4.4 ( #1173 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.3 to 4.4.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.3...v4.4.4 )
---
updated-dependencies:
- dependency-name: clap
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-09-25 10:42:16 +02:00
Tadeo Hepperle
12e343449e
Make the codegen more accessible for running in WASM ( #1154 )
...
* minor api changes
* parsing instead of format_ident!
* fix self issue
* expose types on typegen
* web wasm support via feature flag
* fmt and clippy
* small adjustments
* remove exposing of types() in type generator
* adjust compile error
* remove little any flag
* Need access to the type registry from the typegen again
* Bump proc-macro2 from 1.0.66 to 1.0.67 (#1164 )
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.66...1.0.67 )
---
updated-dependencies:
- dependency-name: proc-macro2
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>
* Bump serde_json from 1.0.106 to 1.0.107 (#1166 )
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.106 to 1.0.107.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.106...v1.0.107 )
---
updated-dependencies:
- dependency-name: serde_json
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>
* Bump trybuild from 1.0.84 to 1.0.85 (#1167 )
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.84 to 1.0.85.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.84...1.0.85 )
---
updated-dependencies:
- dependency-name: trybuild
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>
* Bump Swatinem/rust-cache from 2.6.2 to 2.7.0 (#1168 )
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache ) from 2.6.2 to 2.7.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/e207df5d269b42b69c8bc5101da26f7d31feddb4...a95ba195448af2da9b00fb742d14ffaaf3c21f43 )
---
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>
* Bump jsonrpsee from 0.20.0 to 0.20.1 (#1165 )
Bumps [jsonrpsee](https://github.com/paritytech/jsonrpsee ) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases )
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/v0.20.1/CHANGELOG.md )
- [Commits](https://github.com/paritytech/jsonrpsee/compare/v0.20.0...v0.20.1 )
---
updated-dependencies:
- dependency-name: jsonrpsee
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>
* Bump clap from 4.4.2 to 4.4.3 (#1163 )
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.2...v4.4.3 )
---
updated-dependencies:
- dependency-name: clap
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>
* fix double quote import introduced by merge
* clippy
* put ensure_unique_types on metadata, revert toml changes
* fmt
* solve frame_metadata import
* tidy fetch-metadata and non_exhaustive on errors
* remove the getrandom thing
* fix toml autoformatting
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-09-20 13:16:05 +02:00
dependabot[bot]
e533cd3af2
Bump clap from 4.4.2 to 4.4.3 ( #1163 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.2...v4.4.3 )
---
updated-dependencies:
- dependency-name: clap
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-09-18 13:55:54 +02:00
dependabot[bot]
0bcb38eb78
Bump jsonrpsee from 0.20.0 to 0.20.1 ( #1165 )
...
Bumps [jsonrpsee](https://github.com/paritytech/jsonrpsee ) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases )
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/v0.20.1/CHANGELOG.md )
- [Commits](https://github.com/paritytech/jsonrpsee/compare/v0.20.0...v0.20.1 )
---
updated-dependencies:
- dependency-name: jsonrpsee
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-09-18 12:59:49 +03:00
dependabot[bot]
e78d9d54d9
Bump Swatinem/rust-cache from 2.6.2 to 2.7.0 ( #1168 )
...
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache ) from 2.6.2 to 2.7.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/e207df5d269b42b69c8bc5101da26f7d31feddb4...a95ba195448af2da9b00fb742d14ffaaf3c21f43 )
---
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-09-18 12:59:27 +03:00
dependabot[bot]
414c87b8af
Bump trybuild from 1.0.84 to 1.0.85 ( #1167 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.84 to 1.0.85.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.84...1.0.85 )
---
updated-dependencies:
- dependency-name: trybuild
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-09-18 11:36:16 +03:00
dependabot[bot]
d312c28bbd
Bump serde_json from 1.0.106 to 1.0.107 ( #1166 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.106 to 1.0.107.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.106...v1.0.107 )
---
updated-dependencies:
- dependency-name: serde_json
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-09-18 11:36:00 +03:00
dependabot[bot]
a9503540e2
Bump proc-macro2 from 1.0.66 to 1.0.67 ( #1164 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.66...1.0.67 )
---
updated-dependencies:
- dependency-name: proc-macro2
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-09-18 11:35:39 +03:00
Tadeo Hepperle
c8462defab
Add proper test Custom values ( #1147 )
...
* add proper tests for custom values
* remove try operators
* use sustrate compat for import of hash
* add license and hex
* add script to artifacts.sh
* custom values with ids not in metadata can be accessed in static interface
* fmt and clippy
* access bytes of custom values directly, even if type id wrong
* final fixes
* removing substrate-compat flag from ui tests
* Update subxt/src/custom_values/custom_values_client.rs
Co-authored-by: James Wilson <james@jsdw.me >
* remove types access in type generator
* 2 extra lines
---------
Co-authored-by: James Wilson <james@jsdw.me >
2023-09-12 15:46:12 +02:00
Andrew Jones
022d709d02
Custom Debug impl for DispatchError ( #1153 )
...
* Custom `Debug` impl for `DispatchError`
* Implement suggestion
* Display bytes if details cannot be resolved
* Extract fn and use from Display impl
* Display just shows {details}
2023-09-11 11:37:50 +01:00
dependabot[bot]
188f741ae5
Bump serde_json from 1.0.105 to 1.0.106 ( #1156 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.105 to 1.0.106.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.105...v1.0.106 )
---
updated-dependencies:
- dependency-name: serde_json
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>
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
2023-09-11 11:29:09 +01:00
dependabot[bot]
c9cf790c8c
Bump trybuild from 1.0.83 to 1.0.84 ( #1157 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.83 to 1.0.84.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.83...1.0.84 )
---
updated-dependencies:
- dependency-name: trybuild
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-09-11 11:29:00 +01:00
dependabot[bot]
49eaff4b71
Bump which from 4.4.0 to 4.4.2 ( #1158 )
...
Bumps [which](https://github.com/harryfei/which-rs ) from 4.4.0 to 4.4.2.
- [Changelog](https://github.com/harryfei/which-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/harryfei/which-rs/compare/4.4.0...4.4.2 )
---
updated-dependencies:
- dependency-name: which
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-09-11 11:28:53 +01:00
dependabot[bot]
b4978ead39
Bump actions/checkout from 3 to 4 ( #1159 )
...
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-11 11:28:41 +01:00
Robert Gabriel Jakabosky
33353e91c4
Fix web support. ( #1155 )
...
The default features of `sp-core-hashing` was enabling `std` on `sp-std`
which causes issues with some other Substrate crates (`sp-arithmetic`).
2023-09-11 10:25:48 +01:00
dependabot[bot]
06037aced7
Bump clap from 4.4.0 to 4.4.2 ( #1149 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.0 to 4.4.2.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.4.0...v4.4.2 )
---
updated-dependencies:
- dependency-name: clap
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-09-06 11:27:16 +02:00
Alexandru Vasile
c047d7f14e
integration-tests: Increase the number of expected events ( #1152 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-09-05 18:03:51 +02:00
dependabot[bot]
7c067aa603
Bump thiserror from 1.0.47 to 1.0.48 ( #1151 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.47...1.0.48 )
---
updated-dependencies:
- dependency-name: thiserror
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-09-05 10:19:57 +02:00
dependabot[bot]
728786f91e
Bump regex from 1.9.4 to 1.9.5 ( #1150 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.4...1.9.5 )
---
updated-dependencies:
- dependency-name: regex
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-09-05 10:19:13 +02:00
James Wilson
fd23766184
Remove unused start_key that new RPC API may not be able to support ( #1148 )
2023-08-30 14:37:50 +01:00
James Wilson
a3d25db846
Unstable Backend: add back the old chainHead RPCs/tests ( #1137 )
...
* add back unstable APIs and tests
* clippy fixes
* fmt with new rust
* deserialize from object or array into api versions
* remove inspect
* add some of the other unstable RPC methods we might want
* clippy fix
* no unused deps warning in test crate
* fix doc fails
* legacy -> unstable
Co-authored-by: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com >
* runtime_updates -> with_runtiem
* add test and be consistent with naming of unstable RPCs
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
Co-authored-by: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com >
2023-08-29 12:35:35 +01:00
dependabot[bot]
736d30bfa8
Bump serde_json from 1.0.104 to 1.0.105 ( #1141 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105 )
---
updated-dependencies:
- dependency-name: serde_json
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-08-28 18:43:33 +03:00
dependabot[bot]
585195f98f
Bump clap from 4.3.23 to 4.4.0 ( #1145 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.23 to 4.4.0.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.23...clap_complete-v4.4.0 )
---
updated-dependencies:
- dependency-name: clap
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-08-28 16:15:33 +02:00
dependabot[bot]
019c6ce4af
Bump regex from 1.9.3 to 1.9.4 ( #1144 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.3...1.9.4 )
---
updated-dependencies:
- dependency-name: regex
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-08-28 16:15:22 +02:00
dependabot[bot]
1e661c13de
Bump async-trait from 0.1.72 to 0.1.73 ( #1143 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.72 to 0.1.73.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.72...0.1.73 )
---
updated-dependencies:
- dependency-name: async-trait
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-08-28 16:15:08 +02:00
dependabot[bot]
2856f4ccf6
Bump serde from 1.0.183 to 1.0.188 ( #1142 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.183 to 1.0.188.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.188 )
---
updated-dependencies:
- dependency-name: serde
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-08-28 16:14:48 +02:00
Alexandru Vasile
91a56fd580
Apply cargo fmt ( #1146 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-08-28 15:03:29 +02:00
Tadeo Hepperle
b413e5e84e
Codegen for custom values in metadata ( #1117 )
...
* work in progress
* add custom types access
* nit
* custom values client
* adjust light client
* adjust doc comments
* adjust book for custom values in code gen
* format and check docs
* work in progress
* add custom types access
* nit
* custom values client
* adjust light client
* codegen and validation
* adjust docs
* use ignore in docs in book
* change iter implementation
* use validation hash and other codegen changes
* add ui test for custom values codegen
* allow 'latest' metadata to be returned from the fallback code (#1127 )
* nits
* fix validation check
* fix comments
* nits
---------
Co-authored-by: James Wilson <james@jsdw.me >
2023-08-24 09:50:44 +02:00
dependabot[bot]
a8dbd9d6d5
Bump rustls-webpki from 0.101.3 to 0.101.4 ( #1135 )
...
Bumps [rustls-webpki](https://github.com/rustls/webpki ) from 0.101.3 to 0.101.4.
- [Release notes](https://github.com/rustls/webpki/releases )
- [Commits](https://github.com/rustls/webpki/compare/v/0.101.3...v/0.101.4 )
---
updated-dependencies:
- dependency-name: rustls-webpki
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-23 11:07:41 +02:00
James Wilson
d7124b56f7
Introduce Backend trait to allow different RPC (or other) backends to be implemented ( #1126 )
...
* WIP backend trait
* WIP converting higher level stuff to using Backend impl
* more implementing new backend trait, mainly storage focused
* Get core code compiling with new backend bits
* subxt crate checks passing
* fix tests
* cargo fmt
* clippy/fixes
* merging and other fixes
* fix test
* fix lightclient code
* Fix some broken doc links
* another book link fix
* fix broken test when moving default_rpc_client
* fix dry_run test
* fix more tests; lightclient and wasm
* fix wasm tests
* fix some doc examples
* use next() instead of next_item()
* missing next_item() -> next()s
* move legacy RPc methods to LegacyRpcMethods type to host generic param instead of RpcClient
* standardise on all RpcClient types prefixed with Rpc, and 'raw' trait types prefixed with RawRpc so it's less ocnfusing which is which
* rename fixes
* doc fixes
* Add back system_dryRun RPC method and rename tx.dry_run() to tx.validate(), to signal that the calls are different
* Add a test that we return the correct extrinsic hash from submit()
* add TransactionValid details back, and protect against out of range bytes
* add test for decoding transaction validation from empty bytes
* fix clippy warning
2023-08-22 12:32:22 +01:00
dependabot[bot]
7e15e96e52
Bump Swatinem/rust-cache from 2.6.1 to 2.6.2 ( #1133 )
...
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-21 19:57:50 +03:00
James Wilson
ab84228af4
allow 'latest' metadata to be returned from the fallback code ( #1127 )
2023-08-21 12:37:04 +01:00
dependabot[bot]
b763bf5f1d
Bump tokio from 1.31.0 to 1.32.0 ( #1129 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.31.0...tokio-1.32.0 )
---
updated-dependencies:
- dependency-name: tokio
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-21 10:23:33 +02:00
dependabot[bot]
5aa70d40cd
Bump quote from 1.0.32 to 1.0.33 ( #1131 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: quote
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-21 10:23:14 +02:00
dependabot[bot]
9d0041b49d
Bump clap from 4.3.21 to 4.3.23 ( #1132 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.21 to 4.3.23.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.21...v4.3.23 )
---
updated-dependencies:
- dependency-name: clap
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-21 09:45:45 +02:00
dependabot[bot]
2400e859a8
Bump trybuild from 1.0.82 to 1.0.83 ( #1130 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.82 to 1.0.83.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.82...1.0.83 )
---
updated-dependencies:
- dependency-name: trybuild
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-21 09:43:27 +02:00
dependabot[bot]
7e6f457159
Bump thiserror from 1.0.44 to 1.0.47 ( #1128 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.44 to 1.0.47.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.47 )
---
updated-dependencies:
- dependency-name: thiserror
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-21 09:41:47 +02:00
Niklas Adolfsson
8b4fea0b07
refactor(rpc): support default port in URL ( #1122 )
...
* refactor: support default port in URL
Update jsonrpsee to v0.20 to support the default port number in URLs.
* fix nit, revert web feature
* fix lightclient code
2023-08-15 09:53:26 +01:00
dependabot[bot]
751e738d8f
Bump Swatinem/rust-cache from 2.6.0 to 2.6.1 ( #1119 )
...
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache ) from 2.6.0 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/b8a6852b4f997182bdea832df3f9e153038b5191...578b235f6e5f613f7727f1c17bd3305b4d4d4e1f )
---
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-14 11:07:51 +01:00
dependabot[bot]
9126575a34
Bump clap from 4.3.19 to 4.3.21 ( #1120 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.19 to 4.3.21.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.19...v4.3.21 )
---
updated-dependencies:
- dependency-name: clap
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-14 11:07:37 +01:00
dependabot[bot]
06301518ee
Bump tokio from 1.29.1 to 1.31.0 ( #1121 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.29.1 to 1.31.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.1...tokio-1.31.0 )
---
updated-dependencies:
- dependency-name: tokio
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-14 11:07:28 +01:00
Tadeo Hepperle
43809ee592
Storage: Support iterating over NMaps with partial keys ( #1079 )
...
* implement partial key iters
* format
* make tests compile
* fix docs and try example
* codegen: Fetch and decode metadata version then fallback (#1092 )
* codegen: Fetch and decode metadata version then fallback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Add `unstable-metadata` attribute to the subxt macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* docs: Add missing comma
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Add `GenerateRuntimeApi`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update subxt/src/lib.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update macro/src/lib.rs
Co-authored-by: James Wilson <james@jsdw.me >
* subxt: Adjust docs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Import `GenerateRuntimeApi`
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 >
* Bump darling from 0.20.1 to 0.20.3 (#1085 )
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.20.1 to 0.20.3.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.20.1...v0.20.3 )
---
updated-dependencies:
- dependency-name: darling
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>
Co-authored-by: James Wilson <james@jsdw.me >
* Bump either from 1.8.1 to 1.9.0 (#1084 )
Bumps [either](https://github.com/bluss/either ) from 1.8.1 to 1.9.0.
- [Commits](https://github.com/bluss/either/compare/1.8.1...1.9.0 )
---
updated-dependencies:
- dependency-name: either
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>
Co-authored-by: James Wilson <james@jsdw.me >
* Bump clap from 4.3.11 to 4.3.19 (#1083 )
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.11 to 4.3.19.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.11...v4.3.19 )
---
updated-dependencies:
- dependency-name: clap
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>
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com >
* Bump trybuild from 1.0.81 to 1.0.82 (#1082 )
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.81...1.0.82 )
---
updated-dependencies:
- dependency-name: trybuild
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>
Co-authored-by: James Wilson <james@jsdw.me >
* Prep for 0.30.1 release (#1094 )
* Set minimum supported `rust-version` to `1.70` (#1097 )
* Bump serde_json from 1.0.103 to 1.0.104 (#1100 )
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.103...v1.0.104 )
---
updated-dependencies:
- dependency-name: serde_json
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>
* Bump serde from 1.0.175 to 1.0.179 (#1101 )
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.175 to 1.0.179.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.179 )
---
updated-dependencies:
- dependency-name: serde
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>
* Tests: support 'substrate-node' too and allow multiple binary paths (#1102 )
* Support 'substrate-node' too and allow multiple binary paths
* fmt
* clippy
* fix path
* adjust book
* remove the partial iteration example. there was nothing good to show
* revert spaces in changelog
* Support more types in Storage entry constructors (#1105 )
* implement test for type alias being used
* Bump serde from 1.0.179 to 1.0.183 (#1112 )
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.179 to 1.0.183.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.183 )
---
updated-dependencies:
- dependency-name: serde
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>
* Bump regex from 1.9.1 to 1.9.3 (#1110 )
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.1 to 1.9.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.1...1.9.3 )
---
updated-dependencies:
- dependency-name: regex
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>
* revert yaml changes
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update subxt/src/book/usage/storage.rs
Co-authored-by: James Wilson <james@jsdw.me >
* remove dynamic_iter
* fix example
* format
* add example, adjust book
* Update subxt/src/book/usage/storage.rs
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2023-08-11 16:06:41 +02:00
Tadeo Hepperle
8ba113f368
V15 Metadata: Support accessing custom types ( #1106 )
...
* work in progress
* add custom types access
* nit
* custom values client
* adjust light client
* adjust doc comments
* adjust book for custom values in code gen
* format and check docs
* use ignore in docs in book
2023-08-11 14:49:29 +02:00