Gav
c0d072a5f3
Rename codec -> substrate-codec, executor -> substrate-executor.
2018-02-07 11:29:10 +01:00
Gav
1b7f34bef2
Refactor primitives.
2018-02-07 11:03:43 +01:00
Robert Habermeier
8bae8510f6
combine relay chain primitives into one module
2018-02-06 18:30:21 +01:00
Robert Habermeier
6aaf446352
move function and proposal types to transaction module
2018-02-06 16:42:32 +01:00
Robert Habermeier
4378ce7887
fix tests and review grumbles
2018-02-06 16:35:19 +01:00
Robert Habermeier
d2660900de
unclobber function changes
2018-02-06 15:41:28 +01:00
Robert Habermeier
af2fdc5478
fix compilation for native
2018-02-06 12:26:04 +01:00
Robert Habermeier
5a675e9c64
fix most issues with compiling on WASM
2018-02-06 12:02:03 +01:00
Robert Habermeier
b58df7892f
integrate new primitives with native-runtime
2018-02-05 17:40:49 +01:00
Robert Habermeier
2bc7c57359
reintroduce slicable to primitives
2018-02-05 16:15:45 +01:00
Robert Habermeier
188332cc4b
extract out all primitives
2018-02-01 11:13:55 +01:00
Robert Habermeier
0035369f82
allow polkadot-primitives to compile on nightly
2018-01-31 22:27:07 +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
Tomasz Drwięga
55e74cd426
Update some types and interfaces to match the spec ( #24 )
...
* Update primitives.
* Fix validator interface.
2017-12-04 16:51:43 +01:00
Tomasz Drwięga
db78e5fb4c
RPC & Client ( #21 )
...
* Initial version of http server.
* Refactor the structure.
* add unassigned ports info.
* Rename servers to match conventions.
* Add client crate and some proper RPC implementations.
* Style & docs.
2017-11-15 19:29:14 +01:00
Tomasz Drwięga
2fa0239dab
State machine crate and rust impl of executor ( #17 )
...
* Executor.
* Rust contracts implementation.
* Add documentation and fix transfer data.
* Fix auth contract interface.
* Add some executor tests.
* Validator set contract.
2017-11-12 16:53:11 +01:00
Tomasz Drwięga
e9177294f6
Initial validator trait. ( #14 )
...
* Initial validator trait.
* Add missing docs warning.
* Fix formatting.
* Fix validator output and serialization.
* Get rid of redundant ValidationCode type.
2017-11-12 16:48:35 +01:00
Tomasz Drwięga
1f3c2f7148
More compact bytes serialization and code re-use.
2017-11-11 11:52:00 +01:00
Tomasz Drwięga
799d03254f
Serialization with serde.
2017-11-10 21:31:48 +01:00
Robert Habermeier
74ec849f7e
Block primitive ( #11 )
...
* initial primitives
* add block primitives
2017-11-10 15:03:40 +01:00
Tomasz Drwięga
dbb123d09c
Uint & Hash types. ( #10 )
...
* Uint & Hash types.
* Fix author
* Rename crate to primitives.
2017-11-10 13:34:36 +01:00