Commit Graph

18 Commits

Author SHA1 Message Date
Niklas Adolfsson 5ee0bb5ca5 test alex's PR 2022-06-28 17:47:30 +02:00
Niklas 43062cb1bb Merge remote-tracking branch 'origin/master' into na-jsonrpsee-macros 2022-02-10 17:52:35 +01:00
Niklas 5f692acc84 add remaining RPCs 2022-02-10 17:37:09 +01:00
James Wilson 19ae2aa9ee Set "std" feature on sp-runtime to avoid a static assertion error (#438)
* apply std feature to runtime to avoid static assertion error

* std is a default feature anyway
2022-02-04 17:45:45 +00:00
Alexandru Vasile e9be43aaff Release preparation for v0.17.0 (#434)
* lib: Export `GenericError` to avoid linking to private items

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Bump version to v0.17.0

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* doc: Add crates to bump

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update changelog

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* changelog: Add new line between title and list

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* releasing: Remove extra closing bracket

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* releasing: Fix cargo install typo for cargo-hack

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Remove subxt version from macro and test-runtime

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* releasing: Change PR link to sort in descending order

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* changelog: Add missing PR

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2022-02-04 15:44:56 +02:00
Alexandru Vasile 868b465e01 Add more tests for events.rs/decode_and_consume_type (#430)
* test-runtime: Fix README typo

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* test-runtime: Explicit error handling for missing substrate binary

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* test-runtime: Fix documentation typo

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* events: Test primitive decode_and_consume

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* events: Test tuple decode_and_consume

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* events: Test array decode_and_consume

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* events: Extend array with sequences

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* events: Test variant decode_and_consume

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* events: Test composite decode_and_consume

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* events: Test compact decode_and_consume

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2022-02-04 10:46:39 +00:00
Niklas Adolfsson abd7a4145b introduce jsonrpsee client abstraction + kill HTTP support. (#341)
* PoC async rpc client

* add client example should be removed from this repo

* fmt

* cargo fmt

* subxt client tests

* cargo fmt

* fix some nits

* try nightly for all CI jobs

* need wasm also for CI

* wasm for nightly run too

* client: add missing features

* update jsonrpsee

* hacky update jsonrpsee

* use jsonrpsee crates.io release

* ci: pin nightly 2021-12-15

* pin nightly to 2021-12-15

* fix build

* fmt

* compile please

* rewrite me

* fixes

* fixes

* pre-generate metadata

* fix nit

* get rid of needless deps

* remove embedded client

* Update Cargo.toml

* Update subxt/Cargo.toml

* Update subxt/Cargo.toml

* Update subxt/src/client.rs

* Update subxt/src/rpc.rs

* Update test-runtime/build.rs

* cargo fmt

Co-authored-by: James Wilson <james@jsdw.me>
2022-02-04 10:35:59 +00:00
Niklas 489650c9c4 introduce jsonrpsee proc macros API 2022-02-03 18:54:36 +01:00
Andrew Jones 7f3f686cef Update substrate dependencies (#429)
* Update substrate dependencies

* Update sp-keyring deps
2022-02-03 17:19:27 +00:00
Fabio Lama 9f88761e46 Get event context on EventSubscription (#423)
* 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
2022-02-03 16:40:46 +00:00
Greg Hill 75ea2cbf15 remove unused PalletError struct (#425)
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
2022-02-03 15:09:08 +00:00
Niklas Adolfsson 4053e30399 Update subxt/Cargo.toml 2022-02-03 15:57:23 +01:00
Niklas Adolfsson b21fde8d1f Update subxt/Cargo.toml 2022-02-03 15:57:00 +01:00
Niklas b53ae9f433 remove embedded client 2022-02-03 15:28:52 +01:00
Greg Hill 702f4c8457 export RuntimeError struct (#427)
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
2022-02-03 12:54:23 +01:00
Niklas f603d68a1a pre-generate metadata 2022-02-03 11:17:42 +01:00
Niklas 8dc7dda99c Merge remote-tracking branch 'origin/master' into na-jsonrpsee-core-client 2022-02-02 19:16:59 +01:00
James Wilson 55f04c20a7 Move Subxt crate into a subfolder (#424)
* 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
2022-02-02 12:15:44 +00:00