James Wilson
c29edf6fef
Bump frame-metadata to 20.0.0 ( #1944 )
2025-03-06 07:38:31 +01:00
James Wilson
23c0651c57
Add archive RPCs to subxt-rpcs ( #1940 )
...
* Add archive RPCs to subxt-rpcs
* Add tests for archive RPCs
* ".unwrap_*" to ".as_*"
* clippy
* Add proper unsub method for archive_unstable_storage
2025-03-05 15:23:50 +00:00
wgyt
396762510a
update copyright year ( #1924 )
...
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2025-02-24 16:07:29 +00:00
James Wilson
816a86423b
Split RPCs into a separate crate ( #1910 )
...
* WIP extract RPCs into separate crate
* fmt
* Fix test
* Remove unused deps
* fix import
* WIP: Fix up errors and most tests. Start extracintg some tests/code to rpc crate
* MockRpcClient sync or async
* MockRpcClient only async but better type inference
* WIP MockRpcClient FnMuts and some test updates to use it
* Get all but one test working with new MockRpcClient
* WIP trying to debug failure
* WIP, Tests mostly fixed, need to add back oen more
* Get mock RPC tests working
* fmt
* fmt
* Clippy and comment tweak
* update CI to explicitly check subxt-rpc features
* clippy
* small tweaks after pass over
* feature flag rename
* update some docs
* Fix some examples
* fmt
* Fix features flags to work with web/wasm32
* Fix unused dep warning
* explicit targets in wasm CI
* Add better crate level docs
* fmt
* Address review comments
* Comment out flaky test for now and make more obvious how similar POlkadot and Substrate configs are
* Not a doc comment
* Remove unused imports
2025-02-18 12:07:00 +00:00
James Wilson
0dbcdbdd9c
Attempt to quickfix flaky legacy_and_unstable_block_subscription_reconnect ( #1868 )
...
* Attempt to quickfix flaky legacy_and_unstable_block_subscription_reconnect test
* Make test name match behaviour
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Timeout to 300s
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-11-18 12:49:12 +00:00
James Wilson
3219659f12
Fix substrate nightly ( #1848 )
2024-10-30 10:40:02 +01:00
Niklas Adolfsson
3807b29f36
rpc: stabilize chainhead backend ( #1802 )
...
* rpc: stabilize ChainHeadBackend
* remove noise from example
* add missing features
* make tests compile
* make tests compile v2
* revert stop event
* feature-gate runtime
* Update subxt/Cargo.toml
* add docsrs feature stuff
* Update subxt/src/backend/chain_head/mod.rs
* Update subxt/src/backend/chain_head/mod.rs
* Update subxt/src/backend/chain_head/mod.rs
2024-10-03 18:14:38 +02:00
James Wilson
b5209a162e
Use frame-decode for core extrinsic decode logic ( #1785 )
...
* WIP using frame-decode for core extrinsic decode logic
* fmt
* Fix dependabot config
* clippy
* tidy some imports
* Fix a couple of tests
* Update to frame-decode 0.0.7
* fix docs
* Decode exts earlier to avoid doing it every iter/find step
* frame-decode to 0.1.0
* fmt
* clippy
* fix wasm example
* doc test fixes
* Fix test
* Fix a couple of subxt_core tests
2024-10-01 11:21:51 +01:00
Niklas Adolfsson
9db5a39013
substrate runner: increase line read + dump CLI output if parsing fails ( #1781 )
...
* substrate runner: dump CLI output parsing fails
* cargo fmt
* Update testing/substrate-runner/src/lib.rs
* fix grumbles
* disable flaky test
* ignore reconn test too
* ignore more tests
* fix tests
* improve log parsing
* Update testing/integration-tests/src/full_client/client/unstable_rpcs.rs
* Update testing/integration-tests/src/full_client/client/unstable_rpcs.rs
* fix nits
* fix reconn test
2024-09-24 15:33:08 +02:00
Pavlo Khrystenko
52252242b0
fix flaky test with temporary solution ( #1768 )
...
* fix flaky test with temporary solution
* clippy
2024-09-11 17:34:11 +02:00
Niklas Adolfsson
e4f6f08eb7
fix: nits in tests ( #1750 )
...
* fix: nits in tests
* fix filter nit
2024-09-02 14:13:27 +02:00
Pavlo Khrystenko
9ea7b14fec
Integration tests for unstable-reconnecting-rpc-client ( #1711 )
...
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-08-30 10:16:39 +02:00
James Wilson
c3267ed488
Add hash method to ExtrinsicDetails ( #1676 )
...
* Add hash method to ExtrinsicDetails
* fix test
2024-07-22 13:54:32 +01:00
Alexandru Vasile
25583dcc65
testing: Modify the storage_fetch_raw_keys to reflect substrate-binary ( #1667 )
...
* testing: Modify the storage_fetch_raw_keys to reflect substrate-binary
changes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* 13 -> 14 accounts
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-07-01 13:19:22 +02:00
Pavlo Khrystenko
3c9984c7e4
fix flaky testcase ( #1589 )
...
full_client::client::unstable_rpcs::chainhead_v1_follow
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-05-16 16:17:05 +01:00
Alexandru Vasile
33a891b9da
Stabilize transactionWatch methods ( #1539 )
...
* Stabilize transactionWatch
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Keep consistency in naming method class
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-04-20 14:31:05 +02:00
Alexandru Vasile
c57df0845c
Stabilize transactionBroadcast methods ( #1540 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-04-20 13:58:58 +02:00
Alexandru Vasile
c124e17336
Stabilize chainHead methods ( #1538 )
...
* Stabilize chainHead methods
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Rename fn snake case
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* docs: Fix documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2024-04-19 11:27:50 +02:00
James Wilson
1e111ea9db
Make subxt-core ready for publishing ( #1508 )
...
* Move Extrinsic decoding things to subxt_core and various tidy-ups
* A couple more fixes and fmt
* first pass moving tx logic to subxt_core
* cargo fmt
* fix wasm example
* clippy
* more clippy
* WIP Adding examples and such
* Move storage functionality more fully to subxt_core and nice examples for storage and txs
* Add example for events
* consistify how addresses/payloads are exposed in subxt-core and add runtime API fns
* Add runtime API core example
* fmt
* remove scale-info patch
* Add a little to the top level docs
* swap args around
* clippy
* cargo fmt and fix wasm-example
* doc fixes
* no-std-ise new subxt-core additions
* alloc, not core
* more no-std fixes
* A couple more fixes
* Add back extrinsic decode test
2024-04-15 15:20:11 +01:00
Alexandru Vasile
b31131d21d
testing: Prepare light client testing with substrate binary and add subxt-test macro ( #1507 )
...
* testing: Add long running light client flag and cfg aliases
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Expose clients depending on feature flags
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Use unstable backend for light client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable flaky lightclient tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Add long runnnig step
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Revert "subxt: Use unstable backend for light client"
This reverts commit ea6f3cc58b .
* ci: Long running tests for 60 mins
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Use 16 cores for light-client testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Isolate light-client testing to save CI minutes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Retry on Tx::Dropped for lightclinet only
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Wait for more blocks for the lightclient init
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Use unstable backend for light client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable legacy RPC tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable sudo and contracts tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Retry constructing lightclient on read-proof errors
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Disable tx dynamic test
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro: Timeout for tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Add timeout 800 seconds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro/tests: Adjust subxt-test proc-macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro: Rename crate to subxt-test-proc-macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Use default subxt-proc-macro timeout
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* light-client: Remove println
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Remove tokio as dependency, use it only for testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Chagne default timeout to 6 seconds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* proc-macro: Add env timeout variable
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Add subxt env var for controling test timeouts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests/tx-retries: Retry on `Non node available` error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Use unstable backend for testing lightclient
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Remove old lightclient object
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Adjust for the new interface
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* backend/rpc: Allow older version of the initialized event
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* rpc/tests: Check initialized decodes correctly
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Reset workflow
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply cargo fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove unused dep
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove gitmerge old file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove unused dep
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* rename proc-macro to subxt-test-macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Remove txretries for lightclient
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Wait for 5 blocks for the lightclient full testing suite
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Group imports
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Rename const value
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2024-04-08 11:34:20 +03:00
Tadeo Hepperle
a0cb14aa4f
subxt-core crate (#1466 )
...
* start migrating, broken
* first iteration of updating
* fmt and clippy
* add Composite<u32> decoding via scale value patch
* bump scale type gen versions
* fix decoding with new scale decode
* compiling with changed deps
* core utils, condig, client, metadata
* core crate compiling
* signer crate no once lock
* add core to no-std-tests, change imports
* broken commit, start pulling everything together in subxt
* port more things to subxt
* events in core crate, extrinsics sadly much more difficult
* almost all examples pass again
* dynamic values fix in examples
* fix no std issue and fmt
* remove unused dependencies
* fix lightclient impl
* runtime version refactor
* formatting and addressing nits
* more comments addressed
* update wasm example and no-std-signer tests
* other nits and error impl on signer errors
* fix feature flag
* fix runtime version refactor
* fix doc links
* fix integration tests
* fix feature flag gated client state
* fix native feature in CI
* fix lightclient utils
* make imports more lean in subxt-core
* integrate changes from subxt-core imports into subxt
* other changes in subxt simplify imports more
* fix and docs
* doc false for cli
* fix clippy
* remove events block hash in tests
* codegen no-std support in generated code
* export alloc crate for no-std codegen
* fix doc test
* implement James comments
* remove std traits, use core traits instead
* address nits
* remove unusued dep in no-std tests
* fix Box import in no_std
* sp-crypto-hashing instead of sp-core-hashing
* bump scale-typegen, add no std codegen tests
* fix some things
* replace unmaintained derivative with derive_where to remove non-canonical warnings
* fmt
* remove unused dep
* fix deps
* update artifacts to fix type ID mismatches
* bump to latest scale-typegen
---------
Co-authored-by: James Wilson <james@jsdw.me >
2024-03-27 08:55:08 +00:00
Alexandru Vasile
92c1ba7f66
unstable_rpc: Add transactionBroadcast and transactionStop ( #1497 )
...
* unstable_rpc: Add transactionBroadcast and transactionStop
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Check transactionBroadcast works
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Enable default feature for subxt-signer
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Increase number of blocks to look for
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix clippy for unneed let binds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update subxt/src/backend/unstable/rpc_methods.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* tests: Adjust txBroadcast test
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Add test for txStop
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Ignore compact encoded lenght prefix
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2024-03-26 17:14:54 +02:00
Niklas Adolfsson
dfd6e108cd
rpc v2: chainhead support multiple finalized block hashes in FollowEvent::Initialized ( #1476 )
...
* chainhead rpc `block_hash -> finalized_block_hashs`
* cleanup
* address grumbles
* address grumbles: inc this.rel_block_num
* rel_block_num => rel_block_age for clarity
---------
Co-authored-by: James Wilson <james@jsdw.me >
2024-03-12 17:42:29 +00:00
Tadeo Hepperle
2727f77910
Extrinsic Params Refinement ( #1439 )
...
* refinement based approach to params
* doc and test fixes
* bundle refine data into struct
2024-03-01 10:04:34 +01:00
James Wilson
df06cf9afb
Prep for v0.33.0 release ( #1311 )
...
* Prep for v0.33.0 release
* only ignore failing test on unstable-backend-client
* Fix typos and wee grammar things
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
Co-authored-by: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com >
* omit uninteresting PRs and issue link for ignored test
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
Co-authored-by: Tadeo Hepperle <62739623+tadeohepperle@users.noreply.github.com >
2023-12-07 11:00:22 +00:00
Alexandru Vasile
b03679fcd9
storage: Fix partial key storage iteration ( #1298 )
...
* storage/fix: Use partial key instead of root key for iter
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* storage: Allow partial key construction
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* storage: Allow less provided types than num of hashes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* storage: Error on more fields than types
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Check partial key iteration
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* storage: Rename variable wrt partial address bytes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* storage: Identical storage key to root key if no keys are provided
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-12-01 15:33:33 +02:00
James Wilson
71fbfebf5a
Clone + Debug on Payloads/Addresses, and compare child storage results ( #1203 )
...
* Clone + Debug on Payloads/Addresses, and compare child storage results
* , to .
* clippy and fixes
* fix
* use derivative instead to remove boilerplate impls
* add missing import
* tidy up and extend wasm test timeout
* try 5 mins instead of 2
2023-10-18 22:05:38 +01:00
Tadeo Hepperle
f0b72b9104
Add subxt feature in subxt-signer crate to default features ( #1193 )
...
* add subxt to subxt-signer default features
* distinguish between native and web in signer
* fix formatting and clippy
* rustfmt
2023-10-06 15:54:14 +02: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
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
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
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
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
Alexandru Vasile
b97acc5df6
chainHead: Propagate results on the chainHead_follow ( #1116 )
...
* rpc/types: Update chainHead events
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* rpc: Sync chainHead methods with spec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Adjust chainHead tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Ignore block related events to avoid flaky tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Adjust clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* test: Remove unused OfflineClientT
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update subxt/src/rpc/types.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Update subxt/src/rpc/types.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Update subxt/src/rpc/types.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Update subxt/src/rpc/types.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* types: Remove serde flags for serialization
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-08-09 17:40:39 +03:00
Alexandru Vasile
560432b92b
chainHead: Adjust chainHead_storage api ( #1087 )
...
* types: Add storage ChainHeadStorageEvent
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* rpc: Keep up with the spec for chainHead_storage
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Adjust the chainHead_storage
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* rpc: Fix types typo
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-07-24 17:18:55 +03:00
Alexandru Vasile
ef89752904
light-client: Add experimental light-client support ( #965 )
...
* rpc/types: Decode `SubstrateTxStatus` for substrate and smoldot
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Add light client Error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Add background task to manage RPC responses
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Implement the light client RPC in subxt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Expose light client under experimental feature-flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* artifacts: Add development chain spec for local nodes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update cargo lock
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* examples: Add light client example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update sp-* crates and smoldot to use git with branch / rev
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply cargo fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Import hashmap entry
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Fetch spec only if jsonrpsee feature is enabled
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update subxt/src/rpc/lightclient/background.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Fix typo
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* artifacts: Update dev chain spec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* types: Handle storage replies from chainHead_storage
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* artifacts: Add polkadot spec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Handle RPC error responses
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* examples: Tx basic with light client for local nodes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* example: Light client coprehensive example for live chains
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* examples: Remove prior light client example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* feature: Rename experimental to unstable
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* book: Add light client section
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Ignore validated events
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust tests for light-clients and normal clients
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Keep lightclient variant
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove support for chainHead_storage for light client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update light client to point to crates.io
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update sp-crates from crates.io
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Replace Atomic with u64
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add LightClientBuilder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust chainspec with provided bootnodes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add potential_relay_chains to light client builder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Move the light-client to the background task
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust tracing logs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update book and example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply cargo fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove dev_spec.json artifact
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Examples fix duplicate Cargo.toml
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Use tracing_subscriber crate
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix clippy for different features
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add comment about bootNodes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add comment about tracing-sub dependency
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Run integration-tests with light-client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Feature guard some incompatible tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Enable light-client tests under feature flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Fix git step name
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust flags for testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust warnings
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Rename feature flag jsonrpsee-ws to jsonrpsee
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix cargo check
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Run tests on just 2 threads
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Move light-client to subxt/src/client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust LightClientBuilder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Use ws_url to construct light client for testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Refactor background
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Address feedback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove polkadot.spec and trim sub_id
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Wait for substrate to produce block before connecting light client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust builder and tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Use release for light client testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add single test for light-client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Wait for more blocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Use polkadot endpoint for testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust cargo check
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* examples: Remove light client chain connection example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust cargo.toml section for the old example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust background task to use usize for subscription Id
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Build bootnodes with serde_json::Value directly
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Make channel between subxt user and subxt background unbounded
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update subxt/src/client/lightclient/builder.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Switch to smoldot 0.6.0 from 0.5.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Move testing to `full_client` and `light_client` higher modules
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove subscriptionID type
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove subxt/integration-testing feature flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust wait_for_blocks documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust utils import for testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove into_iter from builder construction
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-06-26 12:10:57 +03:00