Commit Graph

1261 Commits

Author SHA1 Message Date
James Wilson dfabd6609c DecodeAsEvent and DecodeAsExtrinsic; make easier to implement by removing consts 2025-12-15 14:20:23 +00:00
James Wilson ae820a2cc8 Add a basic book and fix broken docs 2025-12-15 14:07:11 +00:00
James Wilson 34eeea2c7e More examples and get compiling with deny(missing_docs) 2025-12-15 11:37:08 +00:00
James Wilson 37d4cf7524 Get workspace compiling via 'cargo check' 2025-12-12 12:30:42 +00:00
James Wilson 6215b15fdf Add a method to return the block header at a given block 2025-12-11 17:56:47 +00:00
James Wilson 02d0c12019 Move subxt-new to be the new subxt, and get first example working 2025-12-11 17:44:18 +00:00
James Wilson 15a7534a55 Merge branch 'master' into jsdw-subxt-new 2025-12-09 17:00:42 +00:00
paritytech-subxt-pr-maker[bot] a2080bf1f7 Update Artifacts (auto-generated) (#2141)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-12-09 17:00:23 +00:00
James Wilson b75ce69b76 Everything has lifetime from ClientAtBlock 2025-12-09 16:59:04 +00:00
James Wilson 744a513aeb make offline event and extrinsic ops possible 2025-12-09 15:44:08 +00:00
James Wilson 4d2b4a6755 First pass adding back the main APIs 2025-12-09 15:22:24 +00:00
James Wilson e0f4630954 Simplify storage APIs 2025-12-09 14:15:26 +00:00
James Wilson 5456c18361 Storage APIs added and compiling 2025-12-09 11:59:06 +00:00
PG Herveou d0f91f8631 Allow passing $OUT_DIR in the runtime_metadata_path attribute (#2142)
* Allow passing $OUT_DIR in the runtime_metadata_path attribute

* nit

* fix build

* PR review

* ignore instead of no_run
2025-12-09 12:56:18 +01:00
James Wilson 3f57740a9a Actually bump subxt-historic to 0.0.8 2025-12-05 17:12:54 +00:00
James Wilson c32017e453 subxt-historic: prep 0.0.8 release: expose type resolver that can be used with visitors (#2140)
* subxt-historic: prep 0.0.8 release: expose type resolver that can be used with visitors

* clippy

* Fix example

* Fix docs test
2025-12-05 17:11:25 +00:00
James Wilson 535a132dea Finish first draft of transactions, extrinsics (blocks) and events 2025-12-04 17:27:10 +00:00
James Wilson 60d8ce78df Merge branch 'master' into jsdw-subxt-new 2025-12-03 18:46:15 +00:00
James Wilson 24ccd584f1 Prep subxt-historic 0.0.7 release: expose ClientAtBlock bits (#2138) 2025-12-03 18:45:16 +00:00
James Wilson b85a412ecb Impl most transaction APIs. TxProgress and Events next 2025-12-03 16:44:05 +00:00
James Wilson c1ebceb965 add onlineclient.at_block_hash_and_number for the event that you know both. 2025-12-03 11:10:42 +00:00
James Wilson 0a617eb2a9 Add metadata types to our legacy type registry too 2025-12-03 10:41:16 +00:00
James Wilson 03fd050b3c WIP: Add support in config for transaction creation and begin porting/implementing tx flows 2025-12-02 17:34:24 +00:00
James Wilson e4028e5a77 Add ability to stream blocks and tidy errors 2025-12-02 13:11:36 +00:00
James Wilson a6a384c5bc Merge branch 'master' into jsdw-subxt-new 2025-12-02 10:59:08 +00:00
James Wilson 6616c69360 Get OnlineClientAtBlock working 2025-12-01 17:11:06 +00:00
James Wilson eee2fd5c6e subxt-historic: expose metadata at a given block (#2135) 2025-12-01 17:10:42 +00:00
James Wilson a3381207d2 WIP: Combined backend done, client in progress 2025-12-01 16:18:45 +00:00
paritytech-subxt-pr-maker[bot] 291af82a75 Update Artifacts (auto-generated) (#2134)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-12-01 16:11:49 +00:00
James Wilson b216240575 WIP more backend work 2025-11-28 17:20:02 +00:00
James Wilson fbde20cb0e WIP: Backends added, Archive backend created 2025-11-28 12:35:33 +00:00
James Wilson 4c27bd8062 Starting new subxt crate; configs implemented 2025-11-25 12:29:13 +00:00
paritytech-subxt-pr-maker[bot] 0c6423bb48 Update Artifacts (auto-generated) (#2130)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-11-24 10:16:06 +00:00
dependabot[bot] 5dcee85753 build(deps): bump actions/checkout from 5 to 6 in /.github/workflows (#2129)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-24 10:15:39 +00:00
dependabot[bot] 29bf752b78 build(deps): bump actions/checkout from 5 to 6 (#2128)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-24 10:15:20 +00:00
James Wilson 8203679cbd Merge v0.50.x to master (#2127)
* v0.50.0: Integrate frame-decode, redo storage APIs and break up Error. (#2100)

* WIP integrating new frame-decode and working out new storage APIS

* WIP: first pass adding new storage things to subxt-core

* Second pass over Address type and start impl in Subxt

* WIP new storage APIs

* WIP New storage APIs roughly completed, lots of errors still

* Remove PlainorMap enum; plain and map values now use same struct to simplify usage

* Begin 'fixing' errors

* WIP splitting errors and tidying payload/address traits

* Get subxt-core compiling

* Small fixes in subxt-core and remove metadata mod

* subxt-core: cargo check --all-targets passes

* Fix test

* WIP starting to update subxt from subxt-core changes

* WIP splitting up subxt errors into smaller variants

* WIP errors: add DispatchError errors

* Port new Storage APIs to subxt-core

* cargo check -p subxt passes

* Quick-fix errors in subxt-cli (explore subcommand)

* fmt

* Finish fixing codegen up and start fixing examples

* get Subxt examples compiling and bytes_at for constants

* Add some arcs to limit lifetimes in subxt/subxt-core storage APIs

* A little Arcing to allow more method chaining in Storage APIs, aligning with Subxt

* Update codegen test

* cargo check --all-targets passing

* cargo check --features 'unstable-light-client' passing

* clippy

* Remove unused dep in subxt

* use published frame-decode

* fix wasm-example

* Add new tx extension to fix daily tests

* Remove unused subxt_core::dynamic::DecodedValue type

* Update book to match changes

* Update docs to fix more broken bits

* Add missing docs

* fmt

* allow larger result errs for now

* Add missing alloc imports in subxt-core

* Fix doc tests and fix bug getting constant info

* Fix V14 -> Metadata transform for storage & constants

* Fix parachain example

* Fix FFI example

* BlockLength decodes t ostruct, not u128

* use fetch/iter shorthands rather than entry in most storage tests

* Fix some integration tests

* Fix Runtime codegen tests

* Expose the dynamic custom_value selecter and use in a UI test

* Update codegen metadata

* Tidy CLI storage query and support (str,str) as a storage address

* Add (str,str) as valid constant address too

* Show string tuple in constants example

* Via the magic of traits, avoid needing any clones of queries/addresses and accept references to them

* clippy

* [v0.50] update scale-info-legacy and frame-decode to latest (#2119)

* bump scale-info-legacy and frame-decode to latest

* Remove something we don't need in this PR

* Fully remove unused for now dep

* [v0.50] Convert historic metadata to subxt::Metadata (#2120)

* First pass converting historic metadatas to our subxt::Metadata type

* use published frame-decode

* fmt and rename legacy metadata macro

* Enable legacy feature where needed in subxt_metadata so it compiles on its own

* Use cargo hack more in CI and fix subxt-metadata features

* Add tests for metadata conversion (need to optimise; some too expensive right now

* Address performance and equality issues in metadata conversion testing

* fmt

* fmt all

* clippy

* Fix a doc link

* Test codegen and fixes to make it work

* Remove local frame-decode patch

* bump frame-decode to latest

* [v0.50.0] Allow visiting extrinsic fields in subxt_historic (#2124)

* Allow visiting extrinsic fields

* fmt

* Don't use local scale-decode dep

* Clippy and tidy

* Extend 'subxt codegen' CLI to work with legacy metadatas

* Simplify historic extrinsics example now that AccountId32s have paths/names

* clippy

* clippy

* clippy..

* Allow visiting storage values, too, and clean up extrinsic visiting a little by narrowing lifetime

* Try to fix flaky test

* Add custom value decode to extrinsics example

* Remove useless else branch ra thought I needed

* Simplify examples

* Prep to release v0.0.5 (#2126)
2025-11-22 10:44:03 +00:00
Sven Eriksson 586b814ecd Fix typos in documentation (#2121) 2025-11-17 09:42:47 +00:00
Tarik Gul 2904b84ff5 feat: Add system_chainType to legacy rpcs (#2116)
* feat: Add system_chainType to legacy rpcs

* Test response
2025-11-10 12:18:29 +00:00
dependabot[bot] 4157ce08a0 build(deps): bump actions/upload-artifact in /.github/workflows (#2114)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-10 11:06:54 +00:00
dependabot[bot] 0e1990b732 build(deps): bump actions/upload-artifact from 4 to 5 (#2113)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-10 11:06:33 +00:00
James Wilson 6298d9a87b Try ficing Rustc to version polkadot-sdk CI uses (#2118) 2025-11-10 10:57:08 +00:00
sunnyraindy 4ca7d75782 chore: fix typo in subxt/Cargo.toml (#2117)
Signed-off-by: sunnyraindy <sunnyraindy@outlook.com>
2025-11-10 10:24:18 +00:00
paritytech-subxt-pr-maker[bot] 7b4b23981c Update Artifacts (auto-generated) (#2115)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-10-27 10:00:49 +00:00
Sven Eriksson a62aea4c37 Fix typos (#2112) 2025-10-24 10:34:25 +01:00
dependabot[bot] dcc97f3f5c build(deps): bump Swatinem/rust-cache from 2.7.8 to 2.8.1 (#2092)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.8 to 2.8.1.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/9d47c6ad4b02e050fd481d890b2ea34778fd09d6...f13886b937689c021905a6b90929199931d60db1)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-version: 2.8.1
  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>
2025-10-22 10:17:56 +01:00
dependabot[bot] d2099772ca build(deps): bump Swatinem/rust-cache in /.github/workflows (#2093)
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.8 to 2.8.1.
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/9d47c6ad4b02e050fd481d890b2ea34778fd09d6...f13886b937689c021905a6b90929199931d60db1)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-version: 2.8.1
  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>
2025-10-22 10:17:44 +01:00
dependabot[bot] f8d51a0242 build(deps): bump tracing-subscriber in /signer/tests/wasm (#2111)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.18 to 0.3.20.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.18...tracing-subscriber-0.3.20)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-version: 0.3.20
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-22 10:17:16 +01:00
James Wilson 663caed412 Bump smoldot / smoldot-light to latest (#2110)
* Bump smoldot / smoldot-light

* Add new EthSetOrigin tx extension to fix test on new polkadot

* Fix runtime API call in test
2025-10-21 22:44:22 +01:00
withtimezone 2ec9c2e57c chore: fix some minor issues in the comments (#2106)
Signed-off-by: withtimezone <with_timezone@outlook.com>
2025-10-20 12:18:21 +01:00
Evelina Carl 884dfe6c69 chore: fix some typos (#2098) 2025-09-26 10:43:45 +01:00