* System and Balances switched to new call model
* Fixed up executive for new pardigm
* Consensus works with Origin
* Timestamp ported over
* Session now compatible
* Ported staking
* Treasury compatible
* Expunge MaybeEmpty
* Make democracy work
* Council compatible
* Remove some aux-dispatch stuff and fix balances
* Rename aux -> origin, fix contracts
* Fix test
* Fix example
* Update macro to remove superfluous cruft
* Make work with new macro
* Tests
* Fix some tests
* Tests
* Fix grumbles
* Final grumble
* `decl_storage!` exposes json metadata about the storage
The metadata can be accessed by calling `store_json_metadata()`.
* Hide internal macros in the documentation
* Include the function documentation in the store json metadata
* Adapt the storage declarations to use doc comments
* Include function comments into modules `json_metadata`
All doc comments (with `///`) are included in the description field of
the function.
Progress on #535
* Replace spaces with tabs
* Rename ext_transfer → ext_call
There are several tests where gas was changed. This is due to shrinking
the name and consequently a size of contracts.
* Fix macros
Specifically, make fixes that allows to use a function without arguments (apart from ctx).
For example:
```rust
ext_return_42(ctx) -> u32 => {
Ok(42)
}
```
Also, add impl ConvertibleToWasm for u64.
* Implement passing input data buffer from top-level
This allows the transaction initiator to pass some input data that can be accessed from the executed contract.
However, this only works for the top-level contract. The contract still cannot pass input data to the callee contract. The reason for that is that API doesn't support this presently.
This will be addressed in the following commits.
* Input data passing thru `ext_call`
`ext_call` now takes a buffer (or more specifically, pointer to the start of and size of a buffer).
This allows contracts to pass input data while calling into other contracts.
* Input data passing thru `ext_create`
Same as previous commit but for `ext_create`.
* Trap on decoding error instead of panicking
* Don't cascade failure in ext_call
Instead, if callee doesn't complete successfuly, return a non-zero status code.
This will prevent cascading traps up to the top-level. Due to this some tests were altered so that they now expect successful transfer instead of a failure.
* Don't cascade failure in ext_create
Same as previous commit but for ext_create.
* Specify how much gas to allot for a call
* Specify how much gas to allot for a create
* Update tests.rs
* Initial commit.
* Split out balances module
* Minimise Balances trait requirements
* Fix up balances, remove balances stuff from staking
* Split off and fix up staking module
* Fix executive tests
* Fix up democracy module
* make council work again
* Remove unneeded cruft from democracy
* Fix up contract module
* Fix up rest of tests
* Fix minor TODOs
* Fix tests
* Remove superfluous code
* Move offline inherents to consensus module.
Fixes#630
* Version needs Decode.
* Move Decode back
* Fix nits
* Refactor to allow custom message
* more accurate consensus superseding logic
* mild revision to `can_build_on` logic
* fix a deadlock when spawning agreement as non-authority
* dropping BFT future before poll doesn't lead to service deadlock
* push cancel to BFTfuture rather than waiting for task