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
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
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