* Substitute BTreeMap/BTreeSet for Vec
* regen code
* cargo fmt
* undo test tweak since not substituting bounded things at the mo
* add a couple of comments
* Add error information back into metadata to roll back removal in #394
* Go back to obtaining runtime error info
* re-do codegen too to check that it's all gravy
* Convert DispatchError module errors into a module variant to make them easier to work with
* Fix broken doc link
* ModuleError is now a tuple variant
* more robust pointer to DispatchError
* backward compat
* clippy
* cargo fmt
* abort_call_site and simplify path comparison
* clippy
* Add reworked event types
* first pass implementing event subscriptions
* make clear that some methods are private
* comment tidy
* use Events in transaction stuff
* align transaction and event APIs
* remove __private_ prefixes; they are ugly
* fix examples and remove old events and subscription code
* better comments on hidden event functions
* re-add find_first_event; it's used a bunch in tests and examples
* cargo check --all-targets now passes
* Fix up existing event tests
* cargo fmt
* change todo to note
* clippy and doc niggles
* revert to find_first_event
* Add specific subscription related tests
* cargo fmt
* Update tests and add/fix examples
* cargo fmt
* add a little to subscribe_all_events example
* cargo fmt
* move an example comment
* easy access to root mod for more clarity
* add a couple of tests to ensure that events properly decoded until naff bytes
* Simplify EventSubscription Stream impl a little
* Address some PR feedback
* implement next_context
* write test_context for method next_context
* change how events are uniquely identified
* undo local changes for test-runtime
* introduce EventContext struct
* adjust test_context to EventContext struct
* fix return type for next_context
* add suggestions by jsdw
* ran cargo fmt and clippy
* move into subfolder step 1
* Make folders a workspace again
* Move examples into their own workspace crate to make them more visible and easier to run
* clippy fix
* newline
* tweak releasing steps for folder move
* reference exampels more clearly in top level readme
* Add release checklist
* Subxt, not Soketto
* more Soketto -> Subxt fixes
* Signed tags and note about incrementing version of each crate
Co-authored-by: David <dvdplm@gmail.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* Add command to publish crates in required order
* undo test breakages and codegen first since macro depends on it
* Update RELEASING.md
Co-authored-by: Andrew Jones <ascjones@gmail.com>
* sleep 10, and text niggles
Co-authored-by: David <dvdplm@gmail.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: Andrew Jones <ascjones@gmail.com>
* WIP DispatchError generic param
* main crate now compiling with new E generic param for DispatchError
* Remove E param from RpcClient since it doesn't really need it
* Point to generated DispatchError in codegen so no need for additional param there
* More error hunting; cargo check --all-targets passes now
* Use our own RuntimeVersion struct (for now) to avoid error decoding into sp_version::RuntimeVersion
* cargo fmt
* fix docs and expose private documented thing that I think should be pub
* move error info to compile time so that we can make DispatchError a little nicer to work with
* cargo fmt
* clippy
* Rework error handling to remove <E> param in most cases
* fix Error doc ambiguity (hopefully)
* doc tweaks
* docs: remove dismbiguation thing that isn't needed now
* One more Error<E> that can be a BasicError
* rewrite pallet errors thing into normal loops to tidy
* tidy errors codegen a little
* tidy examples/custom_type_derives.rs a little
* cargo fmt
* silcnce clippy in example
* Update transaction.rs
* documentation
* Update src/transaction.rs
Co-authored-by: James Wilson <james@jsdw.me>
* fmt
Co-authored-by: James Wilson <james@jsdw.me>
* WIP update dependencies to crates versions
* Use released versions of sp-version and sp-arithmetic
* Attempt to align version of sp-keyring used to correspond to 4.0.0 releases. No luck but closer
* sp-keyring 4.0.0
* also sp-keyring 4.0.0 for macro crate
* simplify cargo.tomls
Co-authored-by: James Wilson <james@jsdw.me>
* Use Derivative to skip bounds on T when they aren't necessary, and remove unnecessary bounds on Config
* loosen a couple more derive bounds
* Use PhantomDataSendSync to avoid accidentally removing Send+Sync bounds
* fix: use index override when decoding enums in events
* fix: ignore clippy warning in test
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
* Add basic event decoding test
* Failing compact event field test
* Fmt
* Fix compact event field decoding
* Remove println
* Add test for compact wrapper struct
* Revert "Add test for compact wrapper struct"
This reverts commit 4e8332ddcd9b758973bdecbea9901c4a378e26b7.
* Split compact tests and add multiple events test
* Add links to projects using subxt.
* Add phala-pherry to list
Co-authored-by: h4x3rotab <h4x3rotab@gmail.com>
Co-authored-by: James Wilson <james@jsdw.me>
Co-authored-by: h4x3rotab <h4x3rotab@gmail.com>