* Clarify mortality config
* Fix EncodeAsType / DecodeAsType impls for Era to be proper ones
* Fix test now that txs are mortal by default
* clippy
* missing imports
* allow Era decoding from CheckMortality
* tweak a comment
* fmt
* Add more explicit tests for mortality
* If only one hasher, always treat any key as a single and not DoubleMap or NMap key
* Fix test
* Make the dyanmic storage key handling match our codegen handling
* Remove codec::Encode and codec::Decode from generated APIs by default
* clippy fixes
* clippy
* More fixes, and CompactAs only if Encode/Decode
* revert println in example
* fix lightclient test
* fix docs
* Fix another rust doc comment
* Fix failing storage test
* Remove now-unnecessary test
* clippy
* clippy
* Remove pointless clone
* Support v16 metadata and use it by default if it's available
* lockfile
* fix blocks test; new transaction extension in kitchensink runtime
* Bump scale-typegen to 0.11.1 to cater for Duration prelude type
* fmt
* Fix no-std test building
* Cargo update and bump substrate deps
* Update test and no-std deps
* fmt
* fix test
* Support Pallet View Functions in Subxt
* fmt
* clippy
* Move a little view function logic to subxt_core
* clippy
* Add back check that prob isnt needed
* avoid vec macro in core
* Add view funciton test and apply various fixes to get it working
* Add test for dynamic view fn call and fix issues
* clippy
* fix test-runtime
* fmt
* remove export
* avoid vec for nostd core
* use const instead of fn for view fn call name
* Update to support latest unstable metadata
* Update metadata stripping tests for new v16 version
* Add DefaultParams to allow more transaction extensions to be used when calling _default() methods
* More imple for AnyOf/DefaultParams
* Prevent T param being used twice in macro
* clippy
* WIP integrate unstable v16 metadata into Subxt
* first pass moving retain to the CLI tool
* Remove otuer enum variant stripping and move now simpler strip_metadata to new crate. test it
* tidyup to use stripmetadata package etc
* Fix / comment out tests
* fmt
* clippy
* Fix wasm example
* wasm-example fix
* wasm-example fix
* Maske sure to move IDs around after types.retain()
* fmt
* Tweak comment
* Find dispatch error separately to avoid issues during mapping
* Expose associated type information in pallet metadata
* Hopefully fix flaky archive RPC
* remove unwanted temp file
* Address nits
* Add back commented-otu tests and address review comments
* use either, and simplify for_each
* TransactionExtensions basic support for V5 VerifySignature and renames
* WIP: subxt-core v5 transaction support
* Subxt to support V5 extrinsics
* WIP tests failing with wsm trap error
* Actually encode mortality to fix tx encode issue
* fmt
* rename to sign_with_account_and_signature
* Add explicit methods for v4 and v5 ext construction
* clippy
* fix wasm example and no mut self where not needed
* fix doc example
* another doc fix
* Add tests for tx encoding and fix v5 encode issue
* add copyright and todo
* refactor APIs to have clear v4/v5 split in core and slightly nicer split in subxt proper
* rename Partial/SubmittableExtrinsic to *Transaction
* Remove SignerT::address since it's not needed
* doc fixes
* fmt
* doc fixes
* Fix comment number
* Clarify panic behaviour of inject_signature
* fmt
* Wrap the subxt::events::Events type to avoid exposing subxt_core errors and types unnecessarily (#1947)
* Actually import module and fix issues
* Remove a couple of unnecessary conversions now
* Test
* 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
* remove substrate compat
* add hacky example
* simplify substrate-compat example
* simplify substrate-compat example
* cargo fmt
* fix build
* add more examples
* fix nit
* fix test build
* Update subxt/examples/substrate_compat_signer.rs
Co-authored-by: James Wilson <james@jsdw.me>
* keep only polkadot signer example
* remove more substrate compat related stuff
* fix example
* link to substrate signer example in book
* Update subxt/src/book/usage/transactions.rs
* Update subxt/src/book/usage/transactions.rs
* address grumbles
* fix nits
---------
Co-authored-by: James Wilson <james@jsdw.me>
* Add an extrinsic index to decode errors so that we know which extrinsic failed
* Fix subxt::BlockError to align with subxt_core::BlockError
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* 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
* Add a basic version of the CheckMetadataHash signed extension
* update example too
* encode None to signer payload when no hash provided
* Enable decoding txs using CheckMetadataHash, too
* Tidy up decoding CheckMetadataHash
* 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
* 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>