* WIP subxt-historic
* WIP subxt-historic
* WIP subxt-historic; flesh out basic foundations
* WIP filling in extrinsic decoding functionality
* iter and decode transaction extensions
* Fill in the Online/OfflineClient APIs and move more things to be part of the chain Config
* WIP storage
* clippy, fmt, finish extrinsics example
* prep for 0.0.1 release to claim crate name
* fix README link
* fmt
* WIP thinking about storage APIs
* WIP working out storage APIs
* Storage plain value fetching first pass
* WIP storage: first pass iterating over values done
* First apss finishing storage APIs
* fmt and clippy
* Create a storage example showing fetch and iteration
* Bump to frame-decode 0.9.0
* Bump subxt-historic to 0.0.3 for preview release
* Remove unused deps
* fix import
* clippy
* doc fixes
* tweak CI and fix some cargo hack findings
* Update README: subxt-historic is prerelease
* Add FFI example
* Remove unnecessary dependency (libc)
* Tweak python example and add CI
CI Tweak; separate task for ffi-example run
* Remove OnceCell dep; use std
---------
Co-authored-by: wassimans <wassim@wassimans.com>
* 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
* Fix and test sr25519 signing in nostd
* Remove sr25519 signing test on nostd for thumbabi target
* Don't use sr25519 feature in nostd tests
* Fix nits, remove WASM deps from nostd test, improve comments
* Change copypasted comment
* fmt
* Update CI to account for signer tests
* [ci] Use parity-large runners instead ubuntu-latest-16-cores
* isntall curl, move clippy, check, docs to parity-large
* install gcc, make, clang
* isntall cmake
* mv artifacts to /usr/local/bin
* sudo mv
* check build-nodes
* uncomment upload
* temporary run build-nodes on pull request to make CI green
* rm on: pr from build-nodes
* 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>
* no-std tests and porting of subxt-metadata
* update pipeline
* fix generate custom metadata test
* fix cargo run command
* adjust pipeline
* remove prelude from subxt-metadata
* revert autoformatting of Cargo.toml
* remove alloc::format! again, still causes linker errors
* add no-std-build for thumbv7em-none-eabi target
* remove std feature flag
* remove libc and add small readme with test instructions
* change ci for nightly no std
* new workflow and adjust node builder
* fix examples by fixing artifacts script
* use-nodes instead of use-substrate
* update yamls
* build polkadot
* remove the on-push trigger again, now that polkadot built in the CI
* add default implementation again
* 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>
* subxt: Remove unstable lints that cause compile warnings
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cargo: Switch to workspace lints
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cargo: Fix codec package at root level
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cargo: Move profiles to the root level
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Fix lightclient and metadata crates
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Revert "cargo: Fix codec package at root level"
This reverts commit cdf9e1628d708a972673eb3a9e967b6896edbd73.
* Fix complexity clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cargo: Remove lints to be replaced by `cargo machete`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cargo: Remove unused dependencies (detected by machete)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* ci: Add machete step
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* cargo: Bump rust version
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* ci: Rename machete step
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* ci: Rename cargo machete step
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* 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
* Wee tidy to subxt-signer flags
* revert removing subxt?/foo features; need them for CI
* make the flag identical to subxt; forgot the 'all' case
* subxt-signer needs native flag now when --no-default-features
* 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
* 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
* Bump to latest scale-encode,decode,value and fix test running
* remove patch deps
* update CI to spit out 'substrate-node' binary now
* fmt
* Fix test: compact type ID no longer present so can't re-encode Value in same way
* remove patch
* Fix cargo.lock
* Fix other compact test