Commit Graph

40 Commits

Author SHA1 Message Date
Gav 9cd6a674cd Fix misleading names. 2018-02-05 17:05:27 +01:00
Gav a7e781c75b Duty rester + test. 2018-02-05 12:02:54 +01:00
Gav ba0746fd3c Make digest compilation work. 2018-02-04 22:29:58 +01:00
Gav 8628a67e1f Fix most tests, introduce split-block processing tools for authoring. 2018-02-04 14:35:00 +01:00
Gav e0c1d13be6 Genesis block builder and test. 2018-02-03 19:00:23 +01:00
Gav 248f27c976 Genesis creation utilities. 2018-02-02 22:17:16 +01:00
Gav bcb2fd0c10 Test improvements, 2018-01-31 13:50:29 +00:00
Gav 6fd19a630a Test multiple blocks/txs per block.
Better debug tracing.
2018-01-31 12:33:40 +00:00
Gav e19100e76a Implement enumerated trie root throughout. 2018-01-30 22:40:03 +01:00
Gav 60ca24a97c Remove superfluous code. 2018-01-30 20:56:57 +01:00
Gav 74139d98da test state root calculation. 2018-01-30 20:52:59 +01:00
Gav d6711ced93 Actually check state root.
Also refactor wasm exports to be stricter on invalid mem references.
2018-01-30 20:09:06 +01:00
Gav e2a2936408 Expose commit in externalities.
Also refactor `TestExternalities` into a single place.
2018-01-30 18:29:26 +01:00
Gav c245b38eaa Move constants to top of files (even though they're private) 2018-01-28 21:47:49 +01:00
Gav baa1d76323 Name more consistently with std. 2018-01-28 20:40:33 +01:00
Gav 825cb6b9d4 Use consts rather than direct names. 2018-01-28 20:00:06 +01:00
Gav bfd599e5de Revise storage API. 2018-01-28 17:08:45 +01:00
Gav 59469995b2 Introduce module structure over comments. 2018-01-28 14:36:40 +01:00
Gav daa77d09a6 Rearrange export structure to something a bit more convenient. 2018-01-28 13:41:22 +01:00
Gav 5b337e3a9c Repot and fix a ser/de bug. 2018-01-27 19:52:24 +01:00
Gav d97520c7f0 Introduce hex/string printing in runtime. 2018-01-27 13:42:40 +01:00
Gav ace1387076 Fix everything. 2018-01-27 13:32:30 +01:00
Gav 0b138b0fd5 Introduce tests which demonstrate bad wasm compiler. 2018-01-26 19:26:10 +01:00
Gav ead42293bc Tests for native/wasm runtime 2018-01-25 19:28:28 +01:00
Gav ad48f66a3f Merge branch 'master' into governance 2018-01-23 20:52:47 +01:00
Robert Habermeier 21a4f9f821 fix grumbles 2018-01-23 17:43:35 +01:00
Robert Habermeier ce5f4da907 reorganize native-support exports 2018-01-23 16:51:04 +01:00
Gav 2e69b7c166 Add the missing internal functions. 2018-01-23 15:25:00 +01:00
Gav Wood 3402f169a7 Introduce basic skeleton for Polkadot runtime. (#32)
* Introduce basic skeleton for Polkador runtime.

* Clean up the runtime skeleton.

* Make initial runtime skeleton compile.

* Compile polkadot-runtime both for Wasm ad native, allowing for testing and direct usage.

* More fleshing out on runtime.

* Update native support.

* Fix warning.

* Update gitignore

* Update path.

* Fix path.

* Remove accidentally committed files.

* Add wasm binaries.

* Fix test.

* Native storage support API.

* Add environmental module

* Add native environment to make native source-code compatible with wasm.

Also tests.

* Finish up & polish environment stuff.

* Avoid using reentrancy issues.

* Add some docs and a test.

* Remove unneeded function.

* Documentation

* Tweak docs

* Remove TODOs.

* Balance transfers + util methods.

* Rejig tests and ensure authorities are addressed consistently.

* Add marshaller for xfer function

* Transaction dispatch test.

* Minor fix.

* Add test for ser/de transaction.

* Add ser/de for header.

* Add tests for header ser/de

* Introduce basic block decoding/execution framework.

* Introduce block decoding/execution framework (p2)

* Big refactor.

* Split out joiner.

* Hide away support modules.

* Fix up wasm runtime.

* use externalities for chain_id

* Clean up (Test)Externalities.

* Repot and introduce keccak-256 external.

* Signing with crypto.

* fix unsafety hole in environmental using function

* Introduce Ed25519 crypto.

* Repotting.

* Add ed25519_verify external.

* Introduce Ed25519 verify as an external.

* fix unsafety hole around unwinding

* Compile fixes.

* use new environmental API

* Tests for ed25519 verify.

* Polish

* Introduce UncheckedTransaction & test.

* Implement basic block and tx processing

* Introduce static hex and valid signature for block test.

* Repot session.

* comments.

* Refactor and timestamp test

* Remove fluff

* Remove fluff.

* Staking eras and tests.

* Implement sessions.

* Polish

* Test sessions.

* Introduce better hashing.

- Blake2 for secure hashing
- XX for fast hashing

* Fix tests.

* Introduce staking.

* Tests for simple staking system.

* Build fix for wasm.

* Fix tests.

* Repotting and docs.

* Docs and licence.

* Documentation.

* Remove superfluous code.

* Remove dummy key.

* Remove other superfluous file.

* Optimise with swap_remove
2018-01-23 15:24:17 +01:00
Gav 6112e38629 Documentation. 2018-01-19 22:04:18 +01:00
Gav 18defc0d95 Introduce staking. 2018-01-19 17:39:06 +01:00
Gav c29313c618 Introduce better hashing.
- Blake2 for secure hashing
- XX for fast hashing
2018-01-19 14:17:56 +01:00
Gav 748ee54870 Test sessions. 2018-01-19 12:34:51 +01:00
Gav 63809d9e0c Polish 2018-01-19 10:49:23 +01:00
Gav ba0d71a551 Refactor and timestamp test 2018-01-19 08:49:38 +01:00
Gav 78a197f632 Repot session. 2018-01-18 18:42:33 +01:00
Gav abb8304389 Introduce static hex and valid signature for block test. 2018-01-18 17:35:18 +01:00
Gav 7f8949bed1 Implement basic block and tx processing 2018-01-18 16:24:53 +01:00
Gav 92d8712b2b Introduce UncheckedTransaction & test. 2018-01-18 15:14:01 +01:00
Gav 98faf54ec4 Repot and introduce keccak-256 external. 2018-01-17 11:45:36 +01:00