David Craven
e9c50e21d0
Only return an error if the extrinsic failed. ( #156 )
2020-09-01 11:15:04 +01:00
David Craven
3ea9d3b8bb
Update to rc6. ( #155 )
...
* Update to rc6.
* Fix clippy warnings.
2020-08-25 09:50:14 +01:00
David Craven
eac2ce3b2a
Different assert. ( #153 )
2020-08-17 09:14:26 +01:00
David Craven
9aa32ef63d
Fix port number. ( #151 )
2020-08-13 16:04:30 +01:00
David Craven and Andrew Jones
271775bf99
Storage map iter ( #148 )
...
* Add example file
* Fmt
* Add KeyIter.
* Add iter method to store proc-macro.
* Fetch all values at once.
* Update docs.
* Run rustfmt.
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2020-08-05 09:08:12 +01:00
David Craven
e6f3a82f99
Rc5 ( #143 )
...
* Update to rc6.
* Update runtime.
* Update node to rc6.
* Update client.
* Fix node.
* Add option to enable telemetry.
2020-07-27 08:53:02 +01:00
David Craven
c6350fcc11
Support authors api. ( #134 )
2020-07-01 15:27:14 +01:00
David Craven
4ee7fb11ad
Support unsigned extrinsics. ( #130 )
2020-06-26 07:38:37 +01:00
David Craven
7f0847107c
Events sub ( #126 )
...
* Make event subscription logic more generic.
* Fix build.
* Add test-node.
* Update deps.
* Address review comments.
2020-06-25 07:05:00 +01:00
David Craven
3080ec91a6
Improve error handling in proc-macros, handle DispatchError etc. ( #123 )
...
* Improve error handling.
* Fix build.
* Handle runtime errors.
* Add runtime trait for better type inference.
* Use runtime trait part 1.
* wip
* Add support for sudo.
* Finish error handling.
* Fix tests.
* Fix clippy warnings.
2020-06-22 07:39:40 +01:00
David Craven
21d07c6c24
Support embedded full/light node clients. ( #91 )
...
* Add support for light clients.
* Add wasm toolchain to ci.
* Fix ci tests.
* Address review comments.
* Use expect instead of unwrap.
* Purge light client chain too.
* Add README section.
2020-06-15 08:01:16 +01:00
David Craven
91203b91d3
Zero sized types ( #121 )
...
* Fix zero sized types.
* Cleanup.
* Expose genesis hash.
* Fix clippy warnings.
* Readd default type sizes for now.
* Cleanup ret type.
2020-06-08 12:25:51 +01:00
David Craven
26ada75dec
Fix optional store items. ( #120 )
...
* Fix optional store items.
* Support querying a block hash.
2020-06-01 12:24:56 +01:00
David Craven
4dadb2c9b5
Update to alpha.8 ( #114 )
2020-05-26 10:55:54 +01:00
David Craven
67f3ce529e
Refactors the api ( #113 )
...
* Refactor api.
* Try fix ci.
* Fix test.
* Address review comments.
2020-05-26 10:04:44 +01:00
David Craven
f861f3fac4
Split subxt ( #102 )
...
* Proc macro improvements.
* Use proc-macros.
* Update examples.
* Fix build.
* Run rustfmt.
* Fix total issuance test.
* Remove gas limit from put code call.
* Handle runtime errors.
* Fix tests.
* Make test more reliable.
* Revert "Handle runtime errors."
This reverts commit 26f30a9f4cfcfddfb3e49308cded46cfe6468697.
* Use expect instead of unwrap.
* Parse marker type.
* Fetch doesn't fail.
2020-05-12 12:25:22 +01:00
David Craven
6f27489378
Double map and plain storage support, introduce macros ( #93 )
...
* Support custom clients.
* Simplify trait bounds.
* Plain and double map storage support.
* Simplify more trait bounds.
* Add proc macro.
* Add Call, Event and Store traits.
* Update proc-macros.
* Add with_system for proc-macro.
* proc-macro: test: support signature and extra fields.
* proc-macro: test: support sharing state accross steps.
* proc-macro: test: fetch state sequentially.
* Elide lifetimes.
* Add test for plain storage.
* Run rustfmt.
2020-04-28 20:04:26 +01:00
David Craven
8cf652605f
Custom extra ( #89 )
...
* Run rustfmt.
* Make extra customizable.
* Update to alpha 6.
2020-04-15 08:21:19 +01:00
David Craven
151c7f7e0a
Refactor ( #7 )
...
* Increment nonce when submitting transaction.
* Refactor.
* use default values from metadata
* use functions from metadata
* Nonce fixup
* Add docs.
* Add contracts module.
* Add set_code.
* Add events to metadata.
* Support pretty printing metadata.
* Add subscriptions.
* Add submit_and_watch to XtBuilder.
* nits from review
2019-08-12 17:07:28 +02:00
David Craven
be5ccc1d11
Get it to work. ( #6 )
2019-08-08 16:01:07 +01:00
David Craven
19604e8f2e
Use substrate metadata, introduce builder for client ( #4 )
...
* Export Error type
* Fix license headers
* Remove unnecessary fully qualified associated types
* Update to parity-scale-codec, handles decoding errors
* rustfmt
* Add metadata.
* Use metadata for calls.
* Refactor generics.
* Storage metadata.
* Use builders.
* Finish making generic.
* Fix merge.
* Run rustfmt.
* Fix merge.
2019-08-08 15:04:50 +01:00
David Craven
6522bb08d0
Misc changes ( #2 )
...
* Remove dependency on tokio, submit returns a future
* Enable logging in tests
* Add fetch, fetch_or, fetch_or_default
2019-08-06 15:26:11 +01:00