Commit Graph

152 Commits

Author SHA1 Message Date
Demi M. Obenour 95c89009dd Merge remote-tracking branch 'origin/aj-contract-test' into staking 2020-09-14 12:03:12 -04:00
Andrew Jones 92bcd26c81 Fmt 2020-09-14 16:13:17 +01:00
Andrew Jones 0e7bc2d2e5 Test contract instantiate 2020-09-14 16:12:48 +01:00
Andrew Jones 9a8680246e Revert contracts put_code test to pure code (not using the macro) 2020-09-14 13:44:11 +01:00
Demi M. Obenour 1df5a64024 Remove more code not needed for Ledgeracio 2020-09-11 20:26:14 -04:00
Demi M. Obenour 9f34f76d81 More deletions 2020-09-11 19:42:46 -04:00
Demi M. Obenour 33f1710909 Remove some code Ledgeracio does not need 2020-09-11 19:37:00 -04:00
Demi M. Obenour 0084f87575 Fix header 2020-09-11 16:20:08 -04:00
Demi M. Obenour d3865a613e Fix tests 2020-09-11 15:40:45 -04:00
Demi M. Obenour dd15f22f38 Merge branch 'master' into staking 2020-09-08 21:07:34 -04:00
Greg Hill e85d01ed08 decode option event arg (#158)
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
2020-09-07 14:58:45 +01:00
Demi M. Obenour 3efe16f2ff If property fetch fails, use dummy values 2020-09-06 18:12:25 -04:00
David Craven e9c50e21d0 Only return an error if the extrinsic failed. (#156) 2020-09-01 11:15:04 +01:00
Demi M. Obenour 274412745b Chill support and update to latest Substrate 2020-08-31 15:21:16 -04:00
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