Commit Graph

138 Commits

Author SHA1 Message Date
Demi M. Obenour 93fafcd8ac Merge remote-tracking branch 'origin/master' into staking 2020-08-24 13:36:10 -04:00
Demi M. Obenour 59decaf575 Make PayoutStakersCall public 2020-08-17 13:49:35 -04:00
David Craven eac2ce3b2a Different assert. (#153) 2020-08-17 09:14:26 +01:00
Yuanchao Sun 59b9c117b7 Add a method to fetch an unhashed key, close #100 (#152)
* Add a method to fetch an unhashed key, close #100

* Return decoded value

* Refactoring
2020-08-13 21:06:30 +01:00
Demi M. Obenour c330e687b1 Era reward points support 2020-08-13 11:54:44 -04:00
David Craven 9aa32ef63d Fix port number. (#151) 2020-08-13 16:04:30 +01:00
Demi M. Obenour 28533f68d4 Expose clipped exposure 2020-08-12 17:39:45 -04:00
Demi M. Obenour d5b11382d0 Era rewards point support
I also did some refactoring.
2020-08-12 14:59:15 -04:00
Demi M. Obenour da3667572b Expose properties and per-era preferences 2020-08-11 21:24:46 -04:00
Demi Obenour 511e6f5a16 Implement the concat in twox_64_concat (#150)
Co-authored-by: Demi M. Obenour <demiobenour@gmail.com>
2020-08-10 11:05:17 +01:00
Demi M. Obenour 528b218ef2 Implement the concat in twox_64_concat 2020-08-07 21:44:51 -04:00
Demi M. Obenour 6bf960f55f Fix compilation errors 2020-08-07 21:44:41 -04:00
Demi M. Obenour e829a46350 Merge branch 'master' into staking 2020-08-05 12:57:15 -04:00
Demi M. Obenour ae676c9a06 Merge branch 'master' into staking 2020-08-05 12:50:35 -04:00
David Craven 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
Andrew Jones 663934ca37 Fetch paged storage keys 2020-08-03 12:40:37 +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
Andrew Jones cd6b8f43f1 Refactor: extract functions and types for creating extrinsics (#138)
* Extract extrinsic

* Extract extrinsic types to own module

* Fix compiler errors

* Fix warnings

* Fmt

* Pin wabt-sys to 0.7.1, it fails (on my machine) with 0.7.2

* Fix up tests

* Fmt

* Reexport RuntimeVersion
2020-07-20 09:17:19 +01:00
Demi M. Obenour e80ddd4b2f Merge branch 'master' into staking 2020-07-08 18:12:23 -04:00
Demi M. Obenour fe20eb5a59 Merge remote-tracking branch 'origin/master' into staking 2020-07-08 15:53:04 -04:00
David 536c54c843 Document the #[module] macro (#135)
* Document the #[module] macro

* Obey the fmt

* Review feedback

* More docs

* Tweak wording

* tweak wording

* whitespace

* Tweak docstring
2020-07-07 08:19:44 +01:00
David Craven c6350fcc11 Support authors api. (#134) 2020-07-01 15:27:14 +01:00
Demi M. Obenour ff8e37f1d1 Remove last reference to Kusama feature 2020-06-30 10:36:25 -04:00
Andrew Jones d3e9e3f757 Upgrade to substrate rc4 release (#131)
* Upgrade to substrate rc4 release

* Fix up test-node/service

* Fix up client node config

* Fix up remaining compilation errors

* Fmt

* Remove fixme

* Fix test

* Release v0.10.0
2020-06-29 09:32:07 +01:00
David Craven 4ee7fb11ad Support unsigned extrinsics. (#130) 2020-06-26 07:38:37 +01: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
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 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