Commit Graph

137 Commits

Author SHA1 Message Date
Demi M. Obenour ff8e37f1d1 Remove last reference to Kusama feature 2020-06-30 10:36:25 -04:00
Demi M. Obenour d3df9eabe0 Bump deps and fix build 2020-06-25 21:14:00 -04:00
Demi M. Obenour f15c5f6373 Merge branch 'master' into staking 2020-06-25 19:36:30 -04:00
Andrew Jones 5fd83f8bdb Release v0.9.0 (#129)
* Bump version, update changelog

* Add client version
v0.9.0
2020-06-25 10:49:28 +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
Demi M. Obenour a95fd8a588 Use some upstream type definitions
Also add `Default` impls.
2020-06-19 13:02:11 -04:00
Demi M. Obenour 2bea59fac9 Fix return type of BondedStore 2020-06-18 13:53:14 -04:00
Demi M. Obenour 90e3b9bb4e Add Debug impls 2020-06-18 13:44:20 -04:00
Demi M. Obenour 4d8ccabcec Fix compile errors 2020-06-16 15:33:39 -04:00
Demi M. Obenour c63b74cf93 Fix syntax error in Cargo.toml 2020-06-16 13:39:33 -04:00
Demi M. Obenour d4d7b1d7a4 Merge branch 'master' into staking 2020-06-16 13:02:38 -04: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
Demi M. Obenour 6ccfc9c0b1 Include a copy of ValidatorId
This avoids needing to depend on Polkadot.
2020-06-09 14:19:26 -04:00
Demi M. Obenour 06bc4ab977 Fix Polkadot and Kusama ‘SessionKey’ structs
I had failed to include the ‘Parachains’ component, which the default
Substrate runtime doesn’t have.
2020-06-08 22:38:56 -04:00
Demi M. Obenour 7587469c53 Merge branch 'master' into staking 2020-06-08 12:11:31 -04: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
Demi M. Obenour 5bdeee4476 Merge branch 'master' into staking 2020-06-07 12:42:37 -04:00
Demi M. Obenour 83c6c61042 Remove impl of Signer for Box<dyn Signer + Send + Sync>
It isn’t needed, since Box implements Deref.
2020-06-04 10:42:23 -04:00
Demi M. Obenour 067c6f9c74 Implement set_keys
This is needed for Ledgeracio.
2020-06-03 00:49:55 -04:00
Demi M. Obenour 57e2390a71 Switch to associated types for Staking 2020-06-02 20:28:04 -04: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
Demi M. Obenour 3314ea1dcb Implement set_payee call 2020-05-31 17:07:23 -04:00
Demi M. Obenour 49b3b1e820 Use the correct key for staking maps
They use the key type, not ‘PhantomData’.
2020-05-31 16:57:39 -04:00
Demi M. Obenour 06aa7e2d3b Make the Signer impl require Send + Sync
This is what Ledgeracio needs.
2020-05-29 19:41:12 -04:00
Demi M. Obenour ba4f90cb24 Merge branch 'master' into staking
Also implement Signer for Box<dyn Signer>
2020-05-29 18:42:12 -04:00
Demi Obenour a2eead0c3d Make signing fallable and asynchronous (#119)
* Make signing fallable and asynchronous

This is needed for hardware wallets, which require human confirmation to
sign transactions.  Blocking on a human to sign transactions is not a
good idea, and the signing might fail for many reasons (device
unplugged, authorization not granted, etc).

* Reformat

* Refactor as suggested by Andrew Jones (@ascjones).

* Use future::ok

Co-authored-by: Andrew Jones <ascjones@gmail.com>
2020-05-29 08:49:27 +01:00
Demi M. Obenour e3e30cf7bb Trait cleanups 2020-05-28 20:50:20 -04:00
Demi M. Obenour 9fd294922f Merge branch 'async-signer' into staking 2020-05-28 13:35:31 -04:00
Demi M. Obenour bc19991b7a Refactor as suggested by Andrew Jones (@ascjones). 2020-05-28 12:38:59 -04:00
Demi M. Obenour 36b124d1d5 Reformat 2020-05-28 12:38:58 -04:00
Demi M. Obenour c6ade8b3a1 Refactor as suggested by Andrew Jones (@ascjones). 2020-05-28 12:36:38 -04:00
Demi M. Obenour c4942c45a8 Reformat 2020-05-28 12:34:08 -04:00
Demi M. Obenour 7868f2c3f4 Merge branch 'async-signer' into staking 2020-05-27 22:01:01 -04:00
Demi M. Obenour 193104c5e9 Make signing fallable and asynchronous
This is needed for hardware wallets, which require human confirmation to
sign transactions.  Blocking on a human to sign transactions is not a
good idea, and the signing might fail for many reasons (device
unplugged, authorization not granted, etc).
2020-05-27 21:55:07 -04:00
Demi M. Obenour ab9612b381 Respond to code review
This fixes most of the issues found during review, with the exception of
tests.
2020-05-27 14:40:09 -04:00
Demi M. Obenour 58da21745e Merge branch 'master' into staking 2020-05-26 20:17:47 -04:00
Andrew Jones 5f9ebf28da Release v0.8.0 (#117)
* Bump version to 0.8

* Update changelog
v0.8.0
2020-05-26 14:53:52 +01:00
Andrew Jones 0d58f4b67c Update to Substrate release candidate (#116)
* Substrate rc1

* Add tx version extra

* Remove CheckBlockGasLimit

* Substrate rc2
2020-05-26 13:53:08 +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
Demi M. Obenour 5ff1b17633 Merge branch 'master' into staking 2020-05-24 01:56:19 -04:00
Andrew Jones 6e6a8bbd28 Substrate alpha.8 2020-05-22 07:39:35 +01:00
Demi M. Obenour aaf190e1b9 Fix compilation errors and remove useless lifetimes 2020-05-18 19:20:18 -04:00
Demi M. Obenour ebfdc17459 Add staking payout support 2020-05-17 17:34:24 -04:00
Demi M. Obenour 1b4dc07f77 Don’t impl ‘Staking’ for all ‘T: System’ 2020-05-17 15:50:02 -04:00
Demi M. Obenour ffbffd44eb Use ‘#[module]’ and implement session for Kusama 2020-05-17 15:34:50 -04:00
Demi M. Obenour 122260ff59 Explain undefined method diagnostics 2020-05-17 13:48:41 -04:00
Demi M. Obenour 88ac3cb2a8 Use the #[module] macro
This fixes a compile error
2020-05-17 13:46:15 -04:00
Demi M. Obenour 716dd13313 Try to implement nomination
This currently fails with compilation errors I do not understand.
2020-05-16 20:56:14 -04:00