Sergei Pepyakin
c88b44f6db
Contracts module rejig ( #1358 )
...
* Move prepare under code.
* Schedule update
* CodeHash
* create takes code_hash
* pass mem def and use code in vm::execute
* Actually save and load code
* Use T::Hash as CodeHash
* Explicit entrypoint name
* Return code_hash and deposit an Event
* Charge for deployed code with gas.
* ImportSatisfyCheck and FunctionImplProvider
* Progress.
* Use new infrastructure for checking imports
* Rename entrypoint to entrypoint_name
* Use strings instead of a Error enum
* Clean
* WIP
* Fix macro_define_env test.
* Fix vm code tests.
* Remove tests for now.
* Fix borked merge
* Fix build for wasm
* fmt
* Scaffolding for abstracting vm.
* Hook up execution to exec layer.
* Fix vm tests.
* Use schedule directly in WasmLoader
* Implement test language.
* Add input_data test.
* Max depth test
* ext_caller
* Simplify test.
* Add TODO
* Some tests and todos.
* top_level
* Clean.
* Restore a couple of integration tests.
* Add a few comments.
* Add ext_address runtime call.
* Deduplicate caller/self_account
* Add not_exists test.
* Change bool to TransferCause.
* Add address tests.
* Remove output_buf from parameter.
* return from start fn.
* Smart gas meter
* Tracing
* Fix prepare tests.
* Code moving
* Add ExecFeeToken
* Use tokens everywhere.
* Make it compile in no_std.
* Lift all test requirements to TestAuxiliaries
* A minor clean
* First create tests
* Remove unneeded TODO
* Docs.
* Code shuffling
* Rename create → instantiate
* Add test address.
* Code shuffling
* Add base_fee tests.
* rejig the code
* Add some comments
* on_finalise comment
* Move event deposit further
* Update Cargo.lock
* Use crates.io version of pwasm-utils
* Format todo comments
* Fix formatting
* Comments
* EmptyOutputBuf and OutputBuf split.
* Restore code_hash
* Fix node-executor.
* Fix typo
* Fix fmt
* Update srml/contract/src/account_db.rs
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
* Update srml/contract/src/lib.rs
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
* Line wraps
* Wrapping macros
* Add _ prefix
* Grumbles
* Doc updates.
* Update srml/contract/src/wasm/mod.rs
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
* Update srml/contract/src/lib.rs
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
* Add comment
* Use saturation to signal overflow
* Add prepare_test! macro
* Require deploy function.
* Add entry point tests
* Add comment.
* Rename code → code_cache to better describe
* Get rid of weird match!
* Recompile binaries
* Add comments
* refuse_instantiate_with_value_below_existential_deposit
* Little fix
* Make test more complete
* Clean
* Add integration test for instantiation
* Rebuild runtime.
* Add some tests.
* Attach an issue to a TODO
* Attach another issue
* Apply suggestions from code review
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
* Update srml/contract/src/exec.rs
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
* Update srml/contract/src/exec.rs
Co-Authored-By: pepyakin <s.pepyakin@gmail.com >
* Recompile node_runtime
2019-01-17 12:01:12 +01:00
thiolliere
beeacf9cfa
impl HasCompact for Perbill and Permill ( #1411 )
...
* impl Compact<> and HasCompact for Permill Perbill
* update parity-codec to 2.2
* add Cargo.lock
* add lock and build for runtime
* rebuild Cargo.lock after rebase
2019-01-17 11:25:48 +01:00
Sergei Pepyakin
a73280728f
Update wabt to to not require python dependency ( #1420 )
2019-01-14 21:53:09 +01:00
Sergei Pepyakin
39a2afc44f
Update wabt to 0.7 ( #1276 )
2018-12-16 21:07:15 +01:00
Gav Wood
57b2896332
Remove unneeded Serde requirements ( #1076 )
...
* Remove superfluous serde requirements.
* Try to ensure hash is serde
* Fixups
* Building again
* Attempt to reenable Block (doesn't build)
* Fixes compilation for node cli
* Fixes test compilation
* Fix wasm
* Fix tests
* Remove unneeded changes
* Fix up comments
* Reenable some code
* Compile error when origin misused.
* Remove unnecessary includes of `serde_derive`
* Cleanups
2018-11-12 18:40:18 +01:00
Gav Wood
8bc5242c92
Compact format for block number, nonce, balance ( #910 )
...
* Try to make everything compact
* Make `Clone` work
* Fix
* Move contracts and balances over to compact encoding
* Session and timestamp are compact
* Sataking uses compact numbers
* Treasury now compact
* Compact Democracy
* Council is compact
* Fix
2018-10-16 22:47:30 +02:00
Gav Wood
851c7f42df
Fix block generation by updating codec versions in wasm ( #810 )
...
* Fixes for staging testnet
* Fix codec versioning
* Comment unneeded trace
* Update lib.rs
* Update parity-codec
* Add script to update wasm deps and update them.
* Update hashes
* Add BBQ Birch testnet
* it's default-features, apparently.
* Use simpler version spec for parity codec
* Typo
2018-09-27 14:38:56 +01:00
Sergey Pepyakin
98e0a3a55a
Contracts: Add transfer event ( #801 )
2018-09-25 20:49:18 +01:00
Gav Wood
f71200ee3c
Bump codec ( #786 )
...
* Bump codec
* Fix tests
2018-09-21 17:16:15 +02:00
Gav Wood
f10d8e177d
Generalised Transaction Queue API ( #741 )
...
* First effort
* API versioning
* Introduce validate_transaction
* Introduce the API plus fixes.
* Docs
* Typo
* Add longevity parameter to transaction validity info.
2018-09-17 18:43:59 +02:00
Gav Wood
3f96419665
Remove unneeded code ( #737 )
2018-09-13 18:08:45 +02:00
Gav Wood
1e01162505
Phase 1 of repo reorg ( #719 )
...
* Remove unneeded script
* Rename Substrate Demo -> Substrate
* Rename demo -> node
* Build wasm from last rename.
* Merge ed25519 into substrate-primitives
* Minor tweak
* Rename substrate -> core
* Move substrate-runtime-support to core/runtime/support
* Rename/move substrate-runtime-version
* Move codec up a level
* Rename substrate-codec -> parity-codec
* Move environmental up a level
* Move pwasm-* up to top, ready for removal
* Remove requirement of s-r-support from s-r-primitives
* Move core/runtime/primitives into core/runtime-primitives
* Remove s-r-support dep from s-r-version
* Remove dep of s-r-support from bft
* Remove dep of s-r-support from node/consensus
* Sever all other core deps from s-r-support
* Forgot the no_std directive
* Rename non-SRML modules to sr-* to avoid match clashes
* Move runtime/* to srml/*
* Rename substrate-runtime-* -> srml-*
* Move srml to top-level
2018-09-12 11:13:31 +02:00