Commit Graph

16 Commits

Author SHA1 Message Date
Gav 7d017ab1bb Tidy ups 2018-02-13 15:31:05 +01:00
Gav 034f3f574a Block import tests for client. 2018-02-13 15:25:42 +01:00
Gav 5001151579 Test for block builder. 2018-02-13 11:54:24 +01:00
Gav ef2b32b9ed Bulid on any block 2018-02-13 10:18:28 +01:00
Gav ec4be3d260 Fix wasm build 2018-02-12 23:39:13 +01:00
Gav 12c62381c1 Block builder (substrate) 2018-02-12 18:14:13 +01:00
Gav Wood f344e15bf8 Additional runtime tests for the test-runtime (#69)
* Remove rustc dependency from ed25519 and refactor a little.

* Runtime support provides more extensive test-key functionality.

* Additional APIs for ed25519 stuff.

* Extensive test for test-runtime.

* Fixes for the new test key API.

* Additional convenience for tests

* Take advantage of more convenient API.

* Redo formating.

* Remove old test identities.

* Remove boilerplate, add test.

* Refactor out unneeded code.

* Clean up algo for determining authorities.

* Remove unneeded API.

* Make `to_*` consume

* Only export keyring when testing

* Fix build & warning

* Extract Keyring into separate library.

* Add tests for Keyring and a trait-based API.

* Address grumbles.
2018-02-12 15:30:38 +01:00
Gav c49503454e Fix warnings. 2018-02-09 14:20:48 +01:00
Gav 96a200b1ef Merge branch 'update-wasm' of github.com:paritytech/polkadot into update-wasm 2018-02-09 14:19:13 +01:00
Gav b20f91d69c Update builds and fix up test-runtime. 2018-02-09 14:17:19 +01:00
Robert Habermeier ecdef68b53 fix runtime_test 2018-02-09 13:29:37 +01:00
Gav Wood dec6e82387 Introduce toy runtime for testing inside substrate. (#66)
* Introduce simple blockchain runtime for substrate tests.

* Remove bad files.

* Add needed wasm binaries.

* Refactoring.

- Repot files in test-runtime.
- Rename troublesome `Joiner::join` to `Joiner::and`.
- Rework `Slicable` to dedup code.

* More fixes and refactoring

* Rebuild substrate test wasm.

* Fix merge errors.

* Rename the disasterously named `to_vec` to `encode`.

Also rename `as_slice_then` to `with_encoded`.

* Tests for toy runtime.

* Fix doc nit
2018-02-09 13:24:30 +01:00
Robert Habermeier 4ca99758df fix runtime_test 2018-02-08 23:01:26 +01:00
Robert Habermeier a00d0e75fd Re-introduce zero copy codec and add minimal polkadot client API which uses linked native runtime (#65)
* client-api type and move duty roster types to primitives

* tuple implementation for slicable

* mild cleanup of deserialization code

* stubs which handle encoding and decoding themselves

* fancier impl_stubs macro

* zero-copy slicable API

* minimal polkadot-client API

* fix WASM API generation

* move native environment stuff to substrate executor

* fix warnings and grumbles
2018-02-08 19:20:34 +01:00
Arkadiy Paronyan f2b3bab61e Networking tests and fixes (#61)
* BlockId in client interface

* Sync fixes and tests

* Updated to latest primitives

* Updated dependencies

* Updated for new (old) primitives

* Network as workspace member

* substrate-network

* Removed obsolete file

* begin_transaction on hash
2018-02-08 17:49:55 +01:00
Gav 4582038b3d Fix warning and directory restructure. 2018-02-08 14:29:30 +01:00