Commit Graph

8072 Commits

Author SHA1 Message Date
Gav 20d81cd1b7 Tests for referenda. 2018-02-26 19:06:48 +01:00
Gav 2ffcf8ff26 Initial draft of stakeholder democracy. 2018-02-25 18:37:07 +01:00
Gav c43d49084f Use BTreeMap rather than HashMap in demo runtime. 2018-02-25 16:58:07 +01:00
Gav 9067e0179f Remove unneeded call depth. 2018-02-25 16:37:14 +01:00
Robert Habermeier 1f2d01566e Proposal creation and evaluation to plug into BFT (#77)
* reshuffle consensus libraries

* polkadot-useful type definitions for statement table

* begin BftService

* primary selection logic

* bft service implementation without I/O

* extract out `BlockImport` trait

* allow bft primitives to compile on wasm

* Block builder (substrate)

* take polkadot-consensus down to the core.

* test for preemption

* fix test build

* Fix wasm build

* Bulid on any block

* Test for block builder.

* Block import tests for client.

* Tidy ups

* clean up block builder instantiation

* justification verification logic

* JustifiedHeader and import

* Propert block generation for tests

* network and tablerouter trait

* use statement import to drive creation of further statements

* Fixed rpc tests

* custom error type for consensus

* create proposer

* asynchronous proposal evaluation

* inherent transactions in polkadot runtime

* fix tests to match real polkadot block constraints

* implicitly generate inherent functions

* add inherent transaction functionality to block body

* block builder logic for polkadot

* some tests for the polkadot API
2018-02-25 10:58:17 +01:00
Gav 0502c939cf comment 2018-02-23 11:49:15 +01:00
Gav 0a3d406236 Fix logic 2018-02-23 11:48:55 +01:00
Gav d70491f093 More work on Ext & calls. 2018-02-22 18:38:33 +01:00
Gav 38e9d80555 Initial staging ground for interior wasm smart-contracts. 2018-02-20 19:02:27 +01:00
Gav 892dbc1eba Add needed file. 2018-02-20 16:28:49 +01:00
Gav b69b55017d Tidy up unneeded code. 2018-02-20 16:20:07 +01:00
Gav b93860467f Remove bad files. 2018-02-20 16:18:34 +01:00
Gav a5042dd9ae Introduce substrate-demo 2018-02-20 15:53:55 +01:00
Gav 990bd1480b Fix up wasm build. 2018-02-20 12:20:15 +01:00
Gav 8eaa694411 More mssing doc. 2018-02-20 11:27:21 +01:00
Gav 12a7fe4e98 Add docs. 2018-02-20 11:26:34 +01:00
Gav 27a930a672 Merge branch 'master' into gav-demo 2018-02-20 11:04:27 +01:00
Gav Wood ec9060460c Optional storage entries (#75)
* Block builder (substrate)

* Fix wasm build

* Bulid on any block

* Test for block builder.

* Block import tests for client.

* Tidy ups

* Repotted client

* Avoid pointless work

* All backend stuff now manages optional storage.

Also simplified a lot of the backend.

* Native runtime-io now supports empty storage items.

* Finish up the API transition.

* Build fix.

* Fix tests.

* Remerge in changes to client.

* Final fixes.

* Unrevert typos

* Remove accidentally committed change

* Bring back zero copy

* Fix merge.
2018-02-19 20:05:30 +01:00
Gav d3a22e12a6 Refactor out some duped code 2018-02-19 16:25:09 +01:00
Gav 70db89270f Fix merge. 2018-02-18 23:44:29 +01:00
Gav Wood 5dfd7dd27b Bring back zero copy 2018-02-18 23:08:48 +01:00
Gav Wood 491a5bceab Remove accidentally committed change 2018-02-18 22:53:53 +01:00
Gav Wood 2f00982dd6 Unrevert typos 2018-02-17 15:47:41 +01:00
Gav 7440d3c8fe Final fixes. 2018-02-16 20:17:26 +01:00
Gav 5fe79b6bd3 Remerge in changes to client. 2018-02-16 20:16:02 +01:00
Gav Wood 65a122d228 Merge branch 'master' into gav-optional-storage 2018-02-16 20:05:11 +01:00
Robert Habermeier 1d0ad42230 Verify header justification during import (#76)
* reshuffle consensus libraries

* polkadot-useful type definitions for statement table

* begin BftService

* primary selection logic

* bft service implementation without I/O

* extract out `BlockImport` trait

* allow bft primitives to compile on wasm

* Block builder (substrate)

* take polkadot-consensus down to the core.

* test for preemption

* fix test build

* Fix wasm build

* Bulid on any block

* Test for block builder.

* Block import tests for client.

* Tidy ups

* clean up block builder instantiation

* justification verification logic

* JustifiedHeader and import

* Propert block generation for tests

* Fixed rpc tests
2018-02-16 17:28:42 +01:00
Gav 34f0cbcf19 Fix tests. 2018-02-15 18:40:04 +01:00
Gav 70d9dfa456 Build fix. 2018-02-15 18:02:35 +01:00
Gav 6bcdf1d92d Merge branch 'master' into gav-optional-storage 2018-02-15 17:55:01 +01:00
Gav Wood c56859f331 Block builder (substrate) (#73)
* Block builder (substrate)

* Fix wasm build

* Bulid on any block

* Test for block builder.

* Block import tests for client.

* Tidy ups

* clean up block builder instantiation

* Propert block generation for tests

* Fixed rpc tests
2018-02-15 16:38:19 +01:00
Robert Habermeier 03a51a0db8 Split BFT into substrate-bft and runtime-specific proposer logic (#72)
* reshuffle consensus libraries

* polkadot-useful type definitions for statement table

* begin BftService

* primary selection logic

* bft service implementation without I/O

* extract out `BlockImport` trait

* allow bft primitives to compile on wasm

* take polkadot-consensus down to the core.

* test for preemption

* fix test build
2018-02-15 14:20:18 +01:00
Jaco Greeff 8309fdd4b8 Add codec tests (#74)
* Add tests for block & header encoding

* Add encoding tests for transaction/unchecked_transaction
2018-02-15 01:37:40 +01:00
Gav 828973143b Finish up the API transition. 2018-02-14 11:40:39 +01:00
Gav 11ec408061 Native runtime-io now supports empty storage items. 2018-02-13 19:42:06 +01:00
Gav 79a963c800 All backend stuff now manages optional storage.
Also simplified a lot of the backend.
2018-02-13 19:21:32 +01:00
Gav 793acd9a1c Avoid pointless work 2018-02-13 18:00:21 +01:00
Gav 41ea39662d Repotted client 2018-02-13 17:45:25 +01:00
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
Jaco Greeff 72fa8f3fe2 Sed explicit parameters (#71)
* Sed replace fix (no . in date)

* Debug sed

* Explicit -e option

* Update sed
2018-02-12 14:28:43 +03:00
Jaco Greeff 71261bb7c6 Publish wasm runtime binaries from CI (#56)
* Publish wasm binaries

* Update package.json version (npm)

* Copy directly to wasm32-unknown-unknown

* Remove debug repo, enable final location

* Always run through build test

* Update for new direectory structure

* Extra space before >

* Copy from subtrate/executor & subtrate/test-runtime
2018-02-09 18:48:17 +01:00
Arkadiy Paronyan a2a299813d Merge pull request #68 from paritytech/update-wasm
fix substrate test runtime and broken ed25519 test
2018-02-09 16:25:10 +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