Commit Graph

8072 Commits

Author SHA1 Message Date
Gav 68bdf72de7 Merge remote-tracking branch 'origin/master' into governance 2018-01-23 15:30:27 +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 9ca552bde4 Merge remote-tracking branch 'origin/master' into governance 2018-01-23 14:43:38 +01:00
Gav Wood 28d84d8ac4 Merge pull request #34 from paritytech/rh-candidate-agreement-glue
Candidate agreement "glue" code
2018-01-23 14:42:17 +01:00
Gav 8e8ea203d5 Fix Wasm build issues. 2018-01-23 12:12:48 +01:00
Gav 07b9425ef6 add todo. 2018-01-23 11:29:35 +01:00
Gav baa0cfcc9a Tests and docs, plus some fixes. 2018-01-22 20:22:38 +01:00
Gav cf7bd8a6cd Docs. 2018-01-21 23:00:36 +01:00
Gav 3788e47ce9 Fix some semantics. Add Storable::take. 2018-01-21 22:57:50 +01:00
Gav b615df2be6 fix comment 2018-01-21 22:35:51 +01:00
Gav 2789bc2b8f Simple governance subsytem. 2018-01-21 22:35:25 +01:00
Gav 6303c7900d Optimise with swap_remove 2018-01-20 09:48:33 +01:00
Gav cb730ff74a Remove other superfluous file. 2018-01-19 22:40:25 +01:00
Gav 1d872d7cce Remove dummy key. 2018-01-19 22:39:47 +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 96da4e2e7a Docs and licence. 2018-01-19 21:32:11 +01:00
Gav 693c2f88e1 Repotting and docs. 2018-01-19 21:28:19 +01:00
Gav 768cb3bca2 Fix tests. 2018-01-19 21:20:44 +01:00
Gav ecb504e467 Build fix for wasm. 2018-01-19 20:31:18 +01:00
Gav a87e99fdda Tests for simple staking system. 2018-01-19 20:29:42 +01:00
Gav 18defc0d95 Introduce staking. 2018-01-19 17:39:06 +01:00
Gav 262dd7bc55 Fix tests. 2018-01-19 16:34:28 +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 81cd156d2a Implement sessions. 2018-01-19 10:34:55 +01:00
Gav 400008028b Staking eras and tests. 2018-01-19 09:37:00 +01:00
Gav 368cbdbcbb Remove fluff. 2018-01-19 08:51:38 +01:00
Gav 8749011cef Merge branch 'polkadot-runtime-skeleton' of github.com:paritytech/polkadot into polkadot-runtime-skeleton 2018-01-19 08:50:47 +01:00
Gav 3dcfd8ba6d Remove fluff 2018-01-19 08:50:33 +01:00
Gav ba0d71a551 Refactor and timestamp test 2018-01-19 08:49:38 +01:00
Gav f179adbc4e comments. 2018-01-18 18:45:29 +01:00
Gav 78a197f632 Repot session. 2018-01-18 18:42:33 +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
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 712becb205 Polish 2018-01-18 12:34:14 +01:00
Gav 07c14104f7 Tests for ed25519 verify. 2018-01-18 12:31:34 +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
Robert Habermeier 21ab1935e7 fix unsafety hole around unwinding 2018-01-17 19:20:38 +01:00
Gav ec78b7244a Introduce Ed25519 verify as an external. 2018-01-17 19:17:34 +01:00
Gav 6b1153d975 Add ed25519_verify external. 2018-01-17 19:05:31 +01:00
Gav ae5e497ed1 Merge branch 'signing-ring' into polkadot-runtime-skeleton 2018-01-17 18:35:07 +01:00
Gav 6360a56e72 Repotting. 2018-01-17 18:34:40 +01:00
Gav 435c4ac71a Introduce Ed25519 crypto. 2018-01-17 18:33:20 +01:00