Commit Graph

37 Commits

Author SHA1 Message Date
Gav e19100e76a Implement enumerated trie root throughout. 2018-01-30 22:40:03 +01:00
Gav 74139d98da test state root calculation. 2018-01-30 20:52:59 +01:00
Gav 426486617a Storage root for Ext. 2018-01-30 19:21:54 +01:00
Gav e2a2936408 Expose commit in externalities.
Also refactor `TestExternalities` into a single place.
2018-01-30 18:29:26 +01:00
Gav daa77d09a6 Rearrange export structure to something a bit more convenient. 2018-01-28 13:41:22 +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 7a44fc4c77 Merge branch 'governance' into native-executor 2018-01-23 20:53:26 +01:00
Gav ad48f66a3f Merge branch 'master' into governance 2018-01-23 20:52:47 +01:00
Gav 1617900c1d Implement NativeExecutor, which attempts a native execution and falls back on Wasm otherwise. 2018-01-23 20:38:01 +01:00
Gav 8ca5c09961 Initial (non-functional) code.
- Kill Externalities Error type requirement.
2018-01-23 17:27:43 +01:00
Robert Habermeier ce5f4da907 reorganize native-support exports 2018-01-23 16:51:04 +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 baa0cfcc9a Tests and docs, plus some fixes. 2018-01-22 20:22:38 +01:00
Gav 2789bc2b8f Simple governance subsytem. 2018-01-21 22:35:25 +01:00
Gav c2fca83fff Remove superfluous code. 2018-01-19 22:09:01 +01:00
Gav 6112e38629 Documentation. 2018-01-19 22:04:18 +01:00
Gav c29313c618 Introduce better hashing.
- Blake2 for secure hashing
- XX for fast hashing
2018-01-19 14:17:56 +01:00
Gav Wood 43040cbf28 Merge pull request #35 from paritytech/environmental-api
New environmental API
2018-01-18 17:39:51 +01:00
Gav abb8304389 Introduce static hex and valid signature for block test. 2018-01-18 17:35:18 +01:00
Robert Habermeier 9c9a197f3a Merge branch 'polkadot-runtime-skeleton' into environmental-api 2018-01-17 19:30:46 +01:00
Robert Habermeier 3ed6784911 use new environmental API 2018-01-17 19:27:38 +01:00
Gav 3b850c7ed1 Compile fixes. 2018-01-17 19:20:48 +01:00
Gav ec78b7244a Introduce Ed25519 verify as an external. 2018-01-17 19:17:34 +01:00
Gav 98faf54ec4 Repot and introduce keccak-256 external. 2018-01-17 11:45:36 +01:00
Gav 74d5be0e80 use externalities for chain_id 2018-01-16 19:04:13 +01:00
Gav dc6ebf71cf Fix up wasm runtime. 2018-01-16 18:56:57 +01:00
Gav caff772b83 Big refactor. 2018-01-16 17:55:07 +01:00
Gav c382125de5 Introduce basic block decoding/execution framework. 2018-01-16 16:32:22 +01:00
Gav 209542581a Transaction dispatch test. 2018-01-15 11:59:54 +01:00
Gav bd8f67a20d Balance transfers + util methods. 2018-01-14 20:51:46 +01:00
Gav e11f701c09 Documentation 2018-01-11 18:23:06 +01:00
Gav b48003b69a Finish up & polish environment stuff. 2018-01-10 14:53:03 +01:00
Gav ad9037df2d Add native environment to make native source-code compatible with wasm.
Also tests.
2018-01-10 14:39:56 +01:00
Gav adc2e52aa3 Native storage support API. 2018-01-09 19:28:22 +01:00
Gav 2489b3a9aa Update native support. 2018-01-09 15:07:55 +01:00
Gav b104f5e6e4 Compile polkadot-runtime both for Wasm ad native, allowing for testing and direct usage. 2018-01-09 13:47:28 +01:00