Contracts: COMPLEXITY.md (#905)

* Initial sketch.

* More work.

* Grammar.

* Fix.

* Fix grammar.
This commit is contained in:
Sergey Pepyakin
2018-10-17 17:47:55 +02:00
committed by Gav Wood
parent 0c7389e108
commit 89fd3a78d5
3 changed files with 306 additions and 1 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ impl<T: Trait> Module<T> {
/// Create a new contract, optionally transfering some balance to the created account.
///
/// Creation is executed as follows:ExecutionContext
/// Creation is executed as follows:
///
/// - the destination address is computed based on the sender and hash of the code.
/// - account is created at the computed address.
@@ -89,6 +89,10 @@ pub(crate) fn to_execution_result<E: Ext>(
}
}
// ***********************************************************
// * AFTER MAKING A CHANGE MAKE SURE TO UPDATE COMPLEXITY.MD *
// ***********************************************************
// TODO: ext_balance, ext_address, ext_callvalue, etc.
// Define a function `fn init_env<E: Ext>() -> HostFunctionSet<E>` that returns