68 Commits

Author SHA1 Message Date
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
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
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
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
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
paritytech-subxt-pr-maker[bot] 2a498d4dda Update Artifacts (auto-generated) (#2075)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-09-02 11:31:50 +01:00
paritytech-subxt-pr-maker[bot] 739b9f84cf Update Artifacts (auto-generated) (#2067)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-08-26 14:45:51 +01:00
paritytech-subxt-pr-maker[bot] 56cfacdb6f Update Artifacts (auto-generated) (#2061)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-08-18 12:41:27 +01:00
paritytech-subxt-pr-maker[bot] 642e6b5be5 Update Artifacts (auto-generated) (#2049)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-08-04 11:42:37 +01:00
paritytech-subxt-pr-maker[bot] fce54cbba8 Update Artifacts (auto-generated) (#2044)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-07-28 10:04:09 +01:00
paritytech-subxt-pr-maker[bot] 8914ca3e67 Update Artifacts (auto-generated) (#2042)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-07-21 12:02:03 +01:00
paritytech-subxt-pr-maker[bot] 0a20e74dc6 Update Artifacts (auto-generated) (#2039)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-07-14 10:14:13 +01:00
paritytech-subxt-pr-maker[bot] 849a5e6700 Update Artifacts (auto-generated) (#2036)
* Update Artifacts (auto-generated)

* update ui test

---------

Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me>
2025-07-08 16:52:17 +01:00
paritytech-subxt-pr-maker[bot] 822a0df21a Update Artifacts (auto-generated) (#1984)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-04-07 11:47:33 +01:00
paritytech-subxt-pr-maker[bot] 4a29166dbf Update Artifacts (auto-generated) (#1976)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-03-31 16:16:31 +01:00
paritytech-subxt-pr-maker[bot] 06396f8b1a Update Artifacts (auto-generated) (#1971)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-03-24 09:58:50 +00:00
paritytech-subxt-pr-maker[bot] 11692fe600 Update Artifacts (auto-generated) (#1965)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-03-18 10:00:04 +00:00
paritytech-subxt-pr-maker[bot] 93cf4b4da8 Update Artifacts (auto-generated) (#1950)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-03-10 09:44:41 +00:00
paritytech-subxt-pr-maker[bot] 2d5a70862a Update Artifacts (auto-generated) (#1938)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-03-03 12:08:57 +00:00
paritytech-subxt-pr-maker[bot] 333de953ec Update Artifacts (auto-generated) (#1922)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-02-17 11:44:47 +01:00
paritytech-subxt-pr-maker[bot] 28ffc3ebff Update Artifacts (auto-generated) (#1920)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-02-10 12:00:58 +00:00
paritytech-subxt-pr-maker[bot] 56c410cbe1 Update Artifacts (auto-generated) (#1908)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-01-27 11:10:55 +02:00
paritytech-subxt-pr-maker[bot] 2d9de19040 Update Artifacts (auto-generated) (#1894)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-01-15 17:43:06 +00:00
paritytech-subxt-pr-maker[bot] 62752844fe Update Artifacts (auto-generated) (#1885)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2025-01-02 08:41:44 +01:00
paritytech-subxt-pr-maker[bot] 09ab839ff2 Update Artifacts (auto-generated) (#1874)
Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
2024-11-25 10:24:47 +02:00
paritytech-subxt-pr-maker[bot] cb9571d7a6 Update Artifacts (auto-generated) (#1860)
* Update Artifacts (auto-generated)

* fix assethub example

* update Cargo.lock for wasm tests

* cargo fmt

* fix subxt cli tests

* disable failing wasm tests

* add issue link for disabled test

---------

Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-11-11 18:34:02 +01:00
paritytech-subxt-pr-maker[bot] b963b8fcae Update Artifacts (auto-generated) (#1844)
* Update Artifacts (auto-generated)

* fix ui tests

---------

Co-authored-by: niklasad1 <14157425+niklasad1@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-10-28 15:37:49 +01:00
Pavlo Khrystenko ae0fce8dff Strip metadata fix (#1774)
* Fix metadata stripping being too eager

closes #1659

---------

Co-authored-by: James Wilson <james@jsdw.me>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-10-21 22:41:14 +02:00
paritytech-subxt-pr-maker[bot] 77a36773ae Update Artifacts (auto-generated) (#1826)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-10-14 09:15:18 +02:00
paritytech-subxt-pr-maker[bot] fefb324b24 Update Artifacts (auto-generated) (#1815)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-10-07 11:40:08 +03:00
paritytech-subxt-pr-maker[bot] 7dff932382 Update Artifacts (auto-generated) (#1790)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-09-30 12:47:57 +03:00
paritytech-subxt-pr-maker[bot] 398d2a8605 Update Artifacts (auto-generated) (#1744)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-09-03 10:26:34 +01:00
Pavlo Khrystenko 3866737b29 Add support for generating metadata from runtime wasm files (#1720)
closes #1660
2024-09-02 11:07:50 +02:00
paritytech-subxt-pr-maker[bot] c5af479f26 Update Artifacts (auto-generated) (#1723)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-08-27 10:34:58 +01:00
paritytech-subxt-pr-maker[bot] 270f74a0b3 Update Artifacts (auto-generated) (#1712)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-08-21 17:07:29 +01:00
paritytech-subxt-pr-maker[bot] 90b47faad8 Update Artifacts (auto-generated) (#1706)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-08-12 13:44:32 +01:00
paritytech-subxt-pr-maker[bot] 0cd63ba979 Update Artifacts (auto-generated) (#1700)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-08-05 12:01:16 +01:00
paritytech-subxt-pr-maker[bot] 11a99e1ee6 Update Artifacts (auto-generated) (#1691)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-07-30 10:16:47 +01:00
paritytech-subxt-pr-maker[bot] ada8e17b89 Update Artifacts (auto-generated) (#1687)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me>
2024-07-22 13:54:20 +01:00
paritytech-subxt-pr-maker[bot] f359119da2 Update Artifacts (auto-generated) (#1681)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-07-15 09:48:50 +01:00
paritytech-subxt-pr-maker[bot] 9517c87163 Update Artifacts (auto-generated) (#1671)
* Update Artifacts (auto-generated)

* fix test

---------

Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me>
2024-07-08 14:31:33 +01:00
paritytech-subxt-pr-maker[bot] b48f68001b Update Artifacts (auto-generated) (#1651)
* Update Artifacts (auto-generated)

* update extrinsic bytes

* XcmDryRunApi -> DryRunApi

---------

Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-06-24 15:33:33 +01:00
paritytech-subxt-pr-maker[bot] 4e53d5a4d5 Update Artifacts (auto-generated) (#1596)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-05-20 13:11:03 +03:00
paritytech-subxt-pr-maker[bot] 910a62e184 Update Artifacts (auto-generated) (#1577)
* Update Artifacts (auto-generated)

* Fix test for new artifacts

---------

Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me>
2024-05-13 15:23:06 +01:00
Niklas Adolfsson 25193d75af add frontier/ethereum example (#1557)
* add ethereum example

The ethereum config doesn't work with the default PolkadotConfig which
this shows how to do.

Tested with a frontier node

* address grumbles

* Update subxt/examples/tx_basic_frontier.rs

* Update subxt/examples/tx_basic_frontier.rs
2024-04-26 16:18:19 +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
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
paritytech-subxt-pr-maker[bot] 22e2796787 Update Artifacts (auto-generated) (#1480)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-03-18 10:35:15 +01:00
paritytech-subxt-pr-maker[bot] a44d28b26b Update Artifacts (auto-generated) (#1469)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2024-03-12 19:43:37 +01:00
paritytech-subxt-pr-maker[bot] 9773cb53c9 Update Artifacts (auto-generated) (#1463)
Co-authored-by: tadeohepperle <62739623+tadeohepperle@users.noreply.github.com>
2024-03-04 10:20:25 +01:00