* integrate scale-typegen, remove types mod
* reintroduce default substitutes and derives
* support runtime_types only again
* generating polkadot.rs ok
* update scale-typegen to discrete error types
* scale-typegen-api-changes
* add note about UncheckedExtrinsic in default substitutes
* add resursive attributes and derives
* adjust example where Clone bound recursive
* move scale-typegen dependency to workspace
* expose default typegen settings
* lightclient: Fix wasm socket closure called after being dropped (#1289)
* lightclient: Close wasm socket while dropping from connecting state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Construct one time only closures
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* testing: Enable console logs for lightclient WASM testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Separate wakes and check connectivity on poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket depending on internal state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "lightclient: Separate wakes and check connectivity on poll_read"
This reverts commit 866094001d4c0b119a80ed681a74b323f74eae1b.
* lightclient: Return pending if socket is opening from poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket on `poll_close`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reset closures on Drop to avoid recursive invokation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket if not already closing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* workflows: Install rustup component for building substrate (#1295)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Command to fetch chainSpec and optimise its size (#1278)
* cli: Add chainSpec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli/chainSpec: Move to dedicated module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Compute the state root hash
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove code substitutes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Update polkadot.json
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Generate the chain spec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove testing artifacts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Apply rustfmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Introduce feature flag for smoldot dependency
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Rename chain-spec to chain-spec-pruning
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Update chain-spec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* remove comments and unused args
* Update substrate- and signer-related dependencies (#1297)
* update crypto dependencies, adjust keypair
* add scale_info::TypeInfo derive in some places
* add multi signature derive
* fix lock file
* fix lock file again :|
* adjust to new interface in scale-typegen
* use released scale typegen
* reintroduce type aliases
* introduce type aliases again using scale-typegen
* cargo fmt and clippy
* reconcile changes with master branch
* update polkadot.rs
* bump scale-typgen to fix substitution
* subxt macro, helpful error messages
* adjust ui tests
* fix lock file
* format
* Update macro/src/lib.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* incorperate nits
* update Cargo.lock to avoid compatibility issues
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* restructure cli commands
* config: Add `SkipCheckIfFeeless` signed extension (#1264)
* config: Add `SkipCheckIfFeeless` signed extension
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Add extra extension to the default params
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* examples: Adjust signed extension example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Extend SkipCheckIfFeeless with inner signed extension
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Configure SkipCheck with inner signed extension params
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Implement Deafult for SkipCheckIfFeelessParams with Option
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* examples: Fix example with proper extension
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Extend <T as Config>::AssetId with EncodeAsType and Clone
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Add SkipCheck with AssetTx
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Encode as type from metadata the inner signed extensions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Adjust examples
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* blocks: Use `SkipCheckIfFeeless` for decoding the tip of extensions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Decode `SkipCheckIfFeeless` with `Self`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* tests: Adjust testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Descriptive errors for building `SkipCheckIfFeeless`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Add docs for extra error types
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Add extra derives to signed extensions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Use `Default::default` to simplify type init
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Replace removed lint (#1270)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Add support for multi-chain usecase (#1238)
* lightclient: Make `smoldot::chainID` part of the RPC requests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Make `BackgroundTask` generic over `PlatformRef` and chain
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Construct from raw smoldot and target different chains
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* testing: Update cargo lock for wasm tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reuse `new_from_client` method and removed unused imports
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reexport smoldot client and RPC objects used in pub
interface
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Adjust `new_from_client` interface
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Extend background to poll over multiple RPC objects
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Build light client from raw and target different chains
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Add demo chain specs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Move artifacts to dedicated folder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Use SelectAll to drive all streams
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Fetch initial data from the target chain
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reexport other smoldot objects
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Target chain with potentially different config
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt/rpc: Log chainID for debugging
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt/examples: Add smoldot client with parachain example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Propagate chain ID together with rpc responses object
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Multiplex responses by request ID and chain ID
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Add raw light client builder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Add cargo feature flag for parachains example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Derive default for internal structure
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Guard reexports by std feature flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update subxt/src/client/light_client/mod.rs
Co-authored-by: James Wilson <james@jsdw.me>
* lightclient: Update the builder pattern and chain targetting
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Fix documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Provide more insightful docs wrt native/wasm panics
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* examples: Adjust comment location
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Refactor UniqueChainId into the background task
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update lightclient/src/background.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* Update subxt/src/client/light_client/builder.rs
Co-authored-by: James Wilson <james@jsdw.me>
* lightclient: Update docs wrt panics
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Update docs wrt to smoldot instance -> client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Use IntoIter instead of Iterator
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Adjsut docs wrt [`Self::new_from_client`]
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Remove RawRpc from LightClient in favor of chainID
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reexport everything under smoldot module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Use stateRootHash instead of genesis.raw
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* Bump futures from 0.3.28 to 0.3.29 (#1272)
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.28 to 0.3.29.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.29)
---
updated-dependencies:
- dependency-name: futures
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 zeroize from 1.6.0 to 1.7.0 (#1274)
Bumps [zeroize](https://github.com/RustCrypto/utils) from 1.6.0 to 1.7.0.
- [Commits](https://github.com/RustCrypto/utils/commits)
---
updated-dependencies:
- dependency-name: zeroize
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 tracing-subscriber from 0.3.17 to 0.3.18 (#1275)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18)
---
updated-dependencies:
- dependency-name: tracing-subscriber
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 tracing-subscriber from 0.3.17 to 0.3.18 (#1275)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18)
---
updated-dependencies:
- dependency-name: tracing-subscriber
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 getrandom from 0.2.10 to 0.2.11 (#1273)
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.10 to 0.2.11.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11)
---
updated-dependencies:
- dependency-name: getrandom
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>
* impl RpcClientT for Arc<T> and Box<T> (#1277)
* impl RpcClientT for Arc<WsClient>
* fix grumbles: impl for Box<T> and Arc<T>
* grumbles: move RpcClientT impls
* first iteration of using scale_typegen
* introduce indoc for formatting
* calls, constants and home are cleaner now
* added event subcommand
* show runtime apis working
* add better code formatting
* fix style
* adjust tests, use owo_colorize to not add extra dependency
* fmt
* adjust docs
* move scale-typegen-description dependency to workspace
* improve `substrate-compat` (#1265)
* improve `substrate-compat`
* From => Into
---------
Co-authored-by: James Wilson <james@jsdw.me>
* Bump proc-macro2 from 1.0.69 to 1.0.70 (#1292)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.69...1.0.70)
---
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 from 1.0.192 to 1.0.193 (#1291)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.192 to 1.0.193.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.192...v1.0.193)
---
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>
* lightclient: Fix wasm socket closure called after being dropped (#1289)
* lightclient: Close wasm socket while dropping from connecting state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Construct one time only closures
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* testing: Enable console logs for lightclient WASM testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Separate wakes and check connectivity on poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket depending on internal state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "lightclient: Separate wakes and check connectivity on poll_read"
This reverts commit 866094001d4c0b119a80ed681a74b323f74eae1b.
* lightclient: Return pending if socket is opening from poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket on `poll_close`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reset closures on Drop to avoid recursive invokation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket if not already closing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* workflows: Install rustup component for building substrate (#1295)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Command to fetch chainSpec and optimise its size (#1278)
* cli: Add chainSpec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli/chainSpec: Move to dedicated module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Compute the state root hash
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove code substitutes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Update polkadot.json
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Generate the chain spec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove testing artifacts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Apply rustfmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Introduce feature flag for smoldot dependency
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Rename chain-spec to chain-spec-pruning
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Update chain-spec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* update to new scale-typegen interfaces
* use released version of scale-typegen
* Merge branch 'master' into tadeohepperle/cli-support-runtime-apis
* remove unused debug file
* resolve merge errors
* adjustments
* constants file adjustment
* method renaming
* fix issue with encoding runtime api params
* Add logging to submit_transaction and unstable driver, and ensure unpin evs complete
* panic if None returned from subscription too, also with stats
* change panic to Err just to be on the safe side
* clippy
* make long tests run only after clippy + fmt pass
* megre in light client test change pr
* chore(subxt/src): typo fix (#1370)
* rpcmethods
* followstr
* mod and else
* Weekly Cronjob fetching artifacts and generating polkadot.rs file. (#1352)
* github CI action cronjob
* add commit message
* fix the CI yml files
* binary crate for CI script with substrate-runner
* update the CI script
* correct the artifacts script
* remove bash script
* lightclient(fix): Ensure lightclient chainSpec is at least one block old (#1372)
* testing(fix): Ensure lightclient chainSpec is at least one block old
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "testing(fix): Ensure lightclient chainSpec is at least one block old"
This reverts commit 0eafcb2ca59d1f1cd2cef86b770f5a0401cce59f.
* lightclient(fix): Ensure lightclient chainSpec is at least one block old
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Link smoldot issue
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Use tokio under lightclient feature flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Do not sleep on errors to fetch the chainSpec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Remove test file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Subscribe to two finalized blocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Revert cargo toml
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* ci: Reduce the light client timeout to 15 minutes (#1373)
* ci: Reduce the light client timpeut to 15 seconds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* ci: Use ubuntu-latest for light-client tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* actually only wait for machete+fmt, clippy can be much slower
* update CI file from Alex PR
* resolve clippy err
* Try a few RPC nodes in case one of them is not working
* fix submit_transaction debug logging of message
* Improve Signed Extension and Block Decoding Examples/Book (#1357)
* asset hub example and book adjustment
* formatting
* recursive derives
* polkadot monitor example and book adjustments
* formatting
* adjust docs and examples, add dynamic example
* james suggestions
* fmt
* chore(subxt/src): typo fix (#1370)
* rpcmethods
* followstr
* mod and else
* Weekly Cronjob fetching artifacts and generating polkadot.rs file. (#1352)
* github CI action cronjob
* add commit message
* fix the CI yml files
* binary crate for CI script with substrate-runner
* update the CI script
* correct the artifacts script
* remove bash script
---------
Co-authored-by: James Wilson <james@jsdw.me>
Co-authored-by: Pan chao <152830401+Pan-chao@users.noreply.github.com>
* fix formatting of returned sections
* add recursive derive and attribute options in the cli
* format tuples uncaught
* add tests and rename type map parser
* make parsing more strict
---------
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: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yjh <yjh465402634@gmail.com>
Co-authored-by: Pan chao <152830401+Pan-chao@users.noreply.github.com>
* restructure cli commands
* config: Add `SkipCheckIfFeeless` signed extension (#1264)
* config: Add `SkipCheckIfFeeless` signed extension
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Add extra extension to the default params
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* examples: Adjust signed extension example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Extend SkipCheckIfFeeless with inner signed extension
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Configure SkipCheck with inner signed extension params
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Implement Deafult for SkipCheckIfFeelessParams with Option
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* examples: Fix example with proper extension
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Extend <T as Config>::AssetId with EncodeAsType and Clone
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Add SkipCheck with AssetTx
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Encode as type from metadata the inner signed extensions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Adjust examples
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* blocks: Use `SkipCheckIfFeeless` for decoding the tip of extensions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Decode `SkipCheckIfFeeless` with `Self`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* tests: Adjust testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Descriptive errors for building `SkipCheckIfFeeless`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Add docs for extra error types
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Add extra derives to signed extensions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* config: Use `Default::default` to simplify type init
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Replace removed lint (#1270)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Add support for multi-chain usecase (#1238)
* lightclient: Make `smoldot::chainID` part of the RPC requests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Make `BackgroundTask` generic over `PlatformRef` and chain
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Construct from raw smoldot and target different chains
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* testing: Update cargo lock for wasm tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reuse `new_from_client` method and removed unused imports
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reexport smoldot client and RPC objects used in pub
interface
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Adjust `new_from_client` interface
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Extend background to poll over multiple RPC objects
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Build light client from raw and target different chains
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Add demo chain specs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Move artifacts to dedicated folder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Use SelectAll to drive all streams
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Fetch initial data from the target chain
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reexport other smoldot objects
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Target chain with potentially different config
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt/rpc: Log chainID for debugging
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt/examples: Add smoldot client with parachain example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Propagate chain ID together with rpc responses object
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Multiplex responses by request ID and chain ID
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Add raw light client builder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Add cargo feature flag for parachains example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Derive default for internal structure
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Guard reexports by std feature flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update subxt/src/client/light_client/mod.rs
Co-authored-by: James Wilson <james@jsdw.me>
* lightclient: Update the builder pattern and chain targetting
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Fix documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Provide more insightful docs wrt native/wasm panics
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* examples: Adjust comment location
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Refactor UniqueChainId into the background task
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update lightclient/src/background.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* Update subxt/src/client/light_client/builder.rs
Co-authored-by: James Wilson <james@jsdw.me>
* lightclient: Update docs wrt panics
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Update docs wrt to smoldot instance -> client
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Use IntoIter instead of Iterator
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Adjsut docs wrt [`Self::new_from_client`]
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Remove RawRpc from LightClient in favor of chainID
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reexport everything under smoldot module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Use stateRootHash instead of genesis.raw
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>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* Bump futures from 0.3.28 to 0.3.29 (#1272)
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.28 to 0.3.29.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.29)
---
updated-dependencies:
- dependency-name: futures
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 zeroize from 1.6.0 to 1.7.0 (#1274)
Bumps [zeroize](https://github.com/RustCrypto/utils) from 1.6.0 to 1.7.0.
- [Commits](https://github.com/RustCrypto/utils/commits)
---
updated-dependencies:
- dependency-name: zeroize
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 tracing-subscriber from 0.3.17 to 0.3.18 (#1275)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18)
---
updated-dependencies:
- dependency-name: tracing-subscriber
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 tracing-subscriber from 0.3.17 to 0.3.18 (#1275)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18)
---
updated-dependencies:
- dependency-name: tracing-subscriber
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 getrandom from 0.2.10 to 0.2.11 (#1273)
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.10 to 0.2.11.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11)
---
updated-dependencies:
- dependency-name: getrandom
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>
* impl RpcClientT for Arc<T> and Box<T> (#1277)
* impl RpcClientT for Arc<WsClient>
* fix grumbles: impl for Box<T> and Arc<T>
* grumbles: move RpcClientT impls
* first iteration of using scale_typegen
* introduce indoc for formatting
* calls, constants and home are cleaner now
* added event subcommand
* show runtime apis working
* add better code formatting
* fix style
* adjust tests, use owo_colorize to not add extra dependency
* fmt
* adjust docs
* move scale-typegen-description dependency to workspace
* improve `substrate-compat` (#1265)
* improve `substrate-compat`
* From => Into
---------
Co-authored-by: James Wilson <james@jsdw.me>
* Bump proc-macro2 from 1.0.69 to 1.0.70 (#1292)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.69...1.0.70)
---
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 from 1.0.192 to 1.0.193 (#1291)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.192 to 1.0.193.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.192...v1.0.193)
---
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>
* lightclient: Fix wasm socket closure called after being dropped (#1289)
* lightclient: Close wasm socket while dropping from connecting state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Construct one time only closures
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* testing: Enable console logs for lightclient WASM testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Separate wakes and check connectivity on poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket depending on internal state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "lightclient: Separate wakes and check connectivity on poll_read"
This reverts commit 866094001d4c0b119a80ed681a74b323f74eae1b.
* lightclient: Return pending if socket is opening from poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket on `poll_close`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reset closures on Drop to avoid recursive invokation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket if not already closing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* workflows: Install rustup component for building substrate (#1295)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Command to fetch chainSpec and optimise its size (#1278)
* cli: Add chainSpec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli/chainSpec: Move to dedicated module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Compute the state root hash
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove code substitutes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Update polkadot.json
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Generate the chain spec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove testing artifacts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Apply rustfmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Introduce feature flag for smoldot dependency
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Rename chain-spec to chain-spec-pruning
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Update chain-spec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* update to new scale-typegen interfaces
* use released version of scale-typegen
* Merge branch 'master' into tadeohepperle/cli-support-runtime-apis
* remove unused debug file
* resolve merge errors
* adjustments
* constants file adjustment
* method renaming
* fix issue with encoding runtime api params
* Add logging to submit_transaction and unstable driver, and ensure unpin evs complete
* panic if None returned from subscription too, also with stats
* change panic to Err just to be on the safe side
* clippy
* make long tests run only after clippy + fmt pass
* megre in light client test change pr
* chore(subxt/src): typo fix (#1370)
* rpcmethods
* followstr
* mod and else
* Weekly Cronjob fetching artifacts and generating polkadot.rs file. (#1352)
* github CI action cronjob
* add commit message
* fix the CI yml files
* binary crate for CI script with substrate-runner
* update the CI script
* correct the artifacts script
* remove bash script
* lightclient(fix): Ensure lightclient chainSpec is at least one block old (#1372)
* testing(fix): Ensure lightclient chainSpec is at least one block old
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "testing(fix): Ensure lightclient chainSpec is at least one block old"
This reverts commit 0eafcb2ca59d1f1cd2cef86b770f5a0401cce59f.
* lightclient(fix): Ensure lightclient chainSpec is at least one block old
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Link smoldot issue
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Use tokio under lightclient feature flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Do not sleep on errors to fetch the chainSpec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Remove test file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Subscribe to two finalized blocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Revert cargo toml
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* ci: Reduce the light client timeout to 15 minutes (#1373)
* ci: Reduce the light client timpeut to 15 seconds
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* ci: Use ubuntu-latest for light-client tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* actually only wait for machete+fmt, clippy can be much slower
* update CI file from Alex PR
* resolve clippy err
* Try a few RPC nodes in case one of them is not working
* fix submit_transaction debug logging of message
* Improve Signed Extension and Block Decoding Examples/Book (#1357)
* asset hub example and book adjustment
* formatting
* recursive derives
* polkadot monitor example and book adjustments
* formatting
* adjust docs and examples, add dynamic example
* james suggestions
* fmt
* chore(subxt/src): typo fix (#1370)
* rpcmethods
* followstr
* mod and else
* Weekly Cronjob fetching artifacts and generating polkadot.rs file. (#1352)
* github CI action cronjob
* add commit message
* fix the CI yml files
* binary crate for CI script with substrate-runner
* update the CI script
* correct the artifacts script
* remove bash script
---------
Co-authored-by: James Wilson <james@jsdw.me>
Co-authored-by: Pan chao <152830401+Pan-chao@users.noreply.github.com>
* fix formatting of returned sections
* make storage use execute flag as well
---------
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: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yjh <yjh465402634@gmail.com>
Co-authored-by: Pan chao <152830401+Pan-chao@users.noreply.github.com>
* Return Pending rather than loop around if no new finalized hash in submit_transaction
* uptodate => up-to-date
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* asset hub example and book adjustment
* formatting
* recursive derives
* polkadot monitor example and book adjustments
* formatting
* adjust docs and examples, add dynamic example
* james suggestions
* fmt
* chore(subxt/src): typo fix (#1370)
* rpcmethods
* followstr
* mod and else
* Weekly Cronjob fetching artifacts and generating polkadot.rs file. (#1352)
* github CI action cronjob
* add commit message
* fix the CI yml files
* binary crate for CI script with substrate-runner
* update the CI script
* correct the artifacts script
* remove bash script
---------
Co-authored-by: James Wilson <james@jsdw.me>
Co-authored-by: Pan chao <152830401+Pan-chao@users.noreply.github.com>
* testing(fix): Ensure lightclient chainSpec is at least one block old
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "testing(fix): Ensure lightclient chainSpec is at least one block old"
This reverts commit 0eafcb2ca59d1f1cd2cef86b770f5a0401cce59f.
* lightclient(fix): Ensure lightclient chainSpec is at least one block old
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Link smoldot issue
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Use tokio under lightclient feature flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Do not sleep on errors to fetch the chainSpec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Remove test file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Subscribe to two finalized blocks
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* subxt: Revert cargo toml
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* github CI action cronjob
* add commit message
* fix the CI yml files
* binary crate for CI script with substrate-runner
* update the CI script
* correct the artifacts script
* remove bash script
* backend(fix): Early unpin for pruned blocks with no active `BlockRef`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend/tests: Check unpinning only after max_life time
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend/tests: Remove unpinning when droped tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend/tests: Ensure new blocks are not unpinned
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend: Add only pruned blocks to unpin hashset and add a test
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend: Introduce the `UnpinPolicy`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update subxt/src/backend/unstable/follow_stream_unpin.rs
* backend: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Only unpin blocks that have been pruned by the backend
* Fix comments
* Mark initialized and finalized blocks as 'can_be_unpinned' too and tests
* fmt
* tweak a couple more comments
* tidy tests and fix undeterministic check
* Fix wrong names in comments
* tweak another test to focus it a bit more
* clippy
* wee rename of args in a couple of test helpers
* add some logs and simplify submit_transaction in the same way Alex did
* ditch logging again and keep to the experiment pr
* cargo fmt
* reduce CI timeouts to 30mins
* Handle Init and Stop events in submit_transaction too, just in case
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
This commit changes the following:
1. FollowEvent::Finalized: just remove the finalized and pruned blocks from runtimes
2. FollowEvent::Initalized: just remove the finalized block from runtimes
Co-authored-by: James Wilson <james@jsdw.me>
* generate docs for feature-gated items on crates.io
* add newline in Cargo.toml
* unify newlines
* fix clippy
* introduce macros for features
* commit missing file
* Update subxt/src/lib.rs
* make it compile
* integrate scale-typegen, remove types mod
* reintroduce default substitutes and derives
* support runtime_types only again
* generating polkadot.rs ok
* update scale-typegen to discrete error types
* scale-typegen-api-changes
* add note about UncheckedExtrinsic in default substitutes
* add resursive attributes and derives
* adjust example where Clone bound recursive
* move scale-typegen dependency to workspace
* expose default typegen settings
* lightclient: Fix wasm socket closure called after being dropped (#1289)
* lightclient: Close wasm socket while dropping from connecting state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Construct one time only closures
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* testing: Enable console logs for lightclient WASM testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Separate wakes and check connectivity on poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket depending on internal state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "lightclient: Separate wakes and check connectivity on poll_read"
This reverts commit 866094001d4c0b119a80ed681a74b323f74eae1b.
* lightclient: Return pending if socket is opening from poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket on `poll_close`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Reset closures on Drop to avoid recursive invokation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* lightclient: Close the socket if not already closing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* workflows: Install rustup component for building substrate (#1295)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Command to fetch chainSpec and optimise its size (#1278)
* cli: Add chainSpec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli/chainSpec: Move to dedicated module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Compute the state root hash
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove code substitutes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* artifacts: Update polkadot.json
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Generate the chain spec
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Remove testing artifacts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Apply rustfmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Introduce feature flag for smoldot dependency
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cli: Rename chain-spec to chain-spec-pruning
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* scripts: Update chain-spec command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* remove comments and unused args
* Update substrate- and signer-related dependencies (#1297)
* update crypto dependencies, adjust keypair
* add scale_info::TypeInfo derive in some places
* add multi signature derive
* fix lock file
* fix lock file again :|
* adjust to new interface in scale-typegen
* use released scale typegen
* reintroduce type aliases
* introduce type aliases again using scale-typegen
* cargo fmt and clippy
* reconcile changes with master branch
* update polkadot.rs
* bump scale-typgen to fix substitution
* implemented Alex suggestions, regenerated polkadot.rs (did not change)
* resolve conflicts in Cargo.lock
* make expect messages more clear
* correct typos
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
* backend(fix): Remove only finalized blocks from the event window
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend: Improve documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend/tests: Check new block is delivered after finalized event
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* backend: More docs about finalzied / prunning and new block / best block
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>