Andrew Plaza
f9ae14bdb9
add substrate-rpc-primitives to use NubmerOrHex in rpc.rs ( #19 )
2019-09-16 11:20:54 +01:00
Andrew Plaza
e9070e2786
Insipx/add block method ( #18 )
...
* Fix compile errors
* Fix tests, close #13 BTW
* add block method
* add block_hash method
* add tests for block and block_hash
2019-09-12 20:34:24 +01:00
Yuanchao Sun
650c6d3bb0
Fix compile errors ( #17 )
...
* Fix compile errors
* Fix tests, close #13 BTW
2019-09-12 20:31:05 +01:00
Andrew Jones
25c3e81811
Fetch runtime version and add to extrinsic payload ( #12 )
...
* Update extrinsic extra data to include CheckVersion
* Fetch version via rpc and add to raw extrinsic payload
* Add missing sr-version dependency
2019-08-23 18:24:34 +01:00
Andrew Jones
e2123aae47
Add link to alternative substrate rpc lib by SCS
2019-08-23 17:01:14 +01:00
Daogang Tang
8a338f6c3f
adding srml_system::CheckVersion to SignedExtra in tests in lib.rs. ( #11 )
...
Signed-off-by: daogangtang <daogangtang@gmail.com >
2019-08-23 16:32:44 +01:00
Andrew Jones
d46b6a975e
Allow either submit or submit_and_watch on the builder. ( #9 )
...
* Refactor: allow submit and submit_and_watch, separate module builders
* Convert Balances, and use generic ModuleCalls
* Convert System, and use generic ModuleCalls
* Extract common calls to set_call
* rustfmt
* Test contract put_code with valid contract
* Patch jsonrpc client dependency for bugfix
* Handle result from call builder inside submit
* Use patched version of jsonrpc
* Lift module calls to Error
* jsonrpc 13.0
* Remove unused static constraints
2019-08-20 16:57:06 +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
Andrew Jones
5a046d043e
Make generic, removing dependency on node_runtime ( #1 )
...
* Extract error to file
* Update readme
* Extract Rpc to separate file
* Make Rpc generic over Runtime
* Editor config etc.
* rustfmt
* Remove node-runtime dependency, generic soup
* Move generic trait bounds to impl
* rustfmt
* Remove unused stuff
* Add test for balance transfer call
2019-08-06 13:12:12 +01:00
Andrew Jones
766e47d709
First commit (extracted from ink! cli)
2019-08-05 11:37:29 +01:00