Sergei Pepyakin
de02aee156
srml-contracts: Deferred actions ( #3255 )
...
* Switch to deferred actions
* Make restore_to a deferred action.
* Bump version.
* Review fixes.
2019-08-01 09:52:59 +02:00
Kian Paimani
79feb23a22
Refactor sr_primitives. ( #3214 )
...
* refactor sr_primitives.
* Fix try build error.
* Line-width
* Ui test.
* Final fixes.
* Fix build again.
* bring back ui test.
* Fix unsigned import.
* Another ui fix.
* Also refactor substrate-primitives
* Fix benchmarks.
* Fix doc test.
* fix doc tests
2019-07-29 14:43:53 +02:00
Jim Posen
9388f48942
srml-contracts: Refactor to remove duplication between call and create code paths ( #3209 )
...
* srml-contracts: Change Ext interface to pass-by-value.
* srml-contracts: Refactor ExecutionContext to reduce duplication.
* srml-contracts: Refactor contracts Module to reduce duplication.
* Bump node runtime impl version.
2019-07-29 14:13:47 +02:00
Jim Posen
eea9437805
srml-contracts: Avoid unnecessary lookups during call context initialization ( #3121 )
...
* srml-contracts: Remove lookups during CallContext initialization.
* Bump node runtime impl_version.
2019-07-16 23:30:45 +03:00
Jim Posen
768eb1af4d
Contract storage limit ( #3126 )
...
* srml-contracts: Remove hard-coded code hashes from tests.
This makes it easier to update existing and add new test Wasm modules.
* Test maximum contract storage write size.
* Implement storage value limit for contracts.
* Bump node runtime spec version.
2019-07-16 17:23:06 +03:00
Sergei Pepyakin
19ac4c0af3
Update complexity.md ( #3114 )
2019-07-15 17:42:22 +03:00
Black3HDF
0feb91d045
srml-contracts: minor documentation improvements ( #3086 )
...
* fix typos
* update information about ink
* fix typos
* fix typo
* fix typos
2019-07-10 17:49:00 +02:00
satellitex
e9d41feb1c
Add ExtCurrentBlockNumber in SRML::Contract ( #3047 )
...
* add block number
* add ext_current_block
* add ext_current_block test
* Update srml/contracts/src/wasm/mod.rs
Co-Authored-By: Sergei Pepyakin <s.pepyakin@gmail.com >
* Update srml/contracts/src/wasm/mod.rs
Co-Authored-By: Sergei Pepyakin <s.pepyakin@gmail.com >
* change valid comment
* use BlockNumberOf<T>
* Update srml/contracts/src/exec.rs
Co-Authored-By: André Silva <andre.beat@gmail.com >
* return types copy, not reference
* version up spec_version and impl_version
* change method name current_block -> block_number
* Update srml/contracts/src/exec.rs
Co-Authored-By: Sergei Pepyakin <s.pepyakin@gmail.com >
2019-07-10 15:42:36 +03:00
Jim Posen
beea27b0f3
srml-contract: Fail calls to removed contracts instead of succeeding. ( #2968 )
...
* srml-contract: Refactor to reduce unnecessary storage lookups.
* srml-contract: Fail calls to removed contracts.
Previously, the calls would transfer funds and succeed without executing
any code on the target account, which is unintuitive behavior.
* Bump node runtime spec/impl versions.
2019-07-04 14:08:40 +02:00
Jim Posen
4c52aec260
srml-contract: Fix Gas type to u64 ( #2944 )
...
* srml-contract: Move gas costs from Config to Schedule.
* srml-contract: Define Gas units fixed as u64.
This removes Gas as a configurable type on the contracts Trait.
* Bump node runtime spec/impl versions.
2019-06-26 14:17:45 +02:00
Sergei Pepyakin
828485ec08
Rename: srml-contract → srml-contracts ( #2905 )
...
* srml-contract → srml-contracts
* Trim.
* Bump version
2019-06-19 15:26:33 +02:00