1. Sep 10, 2018
  2. Sep 09, 2018
    • David's avatar
      LocalCallExecutor and RemoteCallRequest generic over Hasher and NodeCodec (#573) · 889c1dc1
      David authored
      * LocalCallExecutor and RemoteCallRequest generic over Hasher and NodeCodec
      
      * Fix client/db
      
      * Use new triehash
      
      * Use new triehash
      Don't use ethereum-types from rlp
      
      * New triehash
      
      * Use new triehash
      
      * fixes and rlp without ethereum-types
      
      * Lockfile
      
      * lockfile
      
      * Rename enumerated_trie_root to keccak_rlp_enumerated_trie_root
      
      * Rename ordered_trie_root -> keccak_rlp_ordered_trie_root
      Rename trie_root -> keccak_rlp_trie_root
      
      * Fix panic message
      
      * Kick the ball one step up the ladder
      
      * Normalize function signatures between wasm and native
      
      * Sort out compilation and test errors
      
      * Cleanup
      
      * Constrain the wasm-version using an ExternTrieCrypto trait that is implemented only for KeccakHasher
      
      * hashdb is not optional
      
      * lockfile
      
      * Runtimes
      
      * Missing bounds
      
      * wasm binaries
      
      * lockfiles
      
      * binaries
      
      * LocalCallExecutor uses concrete hasher/codec
      
      * Use binaries from master
      
      * Externalities is concrete
      RuntimeInfo is not generic
      
      * whitespace grumble
      
      * lockfile
      
      * lockfile and binaries
      889c1dc1
    • Guanqun Lu's avatar
      add mutate api (#695) · 01b100ad
      Guanqun Lu authored
      * runtime-storage: add 'mutate' api
      
      * support mutate for StorageValue
      
      * try adding 'mutate' for map
      
      * dispatch on Option<> type
      
      * add check for prev_some
      
      * consolidate the wrap type
      
      * unify wrap type handling
      
      * add sample for StorageValue
      01b100ad
  3. Sep 07, 2018
  4. Sep 06, 2018
  5. Sep 05, 2018
  6. Sep 04, 2018
  7. Sep 03, 2018
  8. Sep 01, 2018
    • Sergey Pepyakin's avatar
      Contract runtime polishing (#601) · ee2b68e0
      Sergey Pepyakin authored
      * 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
      ee2b68e0
    • Guanqun Lu's avatar
      WIP on chain heap (#639) · c54321a7
      Guanqun Lu authored
      * move heap size on chain
      
      * fix the interface change
      
      * decode heap size
      
      * fix code comments
      
      * fix comment
      
      * update Cargo.lock
      
      * rename to heappages
      
      * add one heap pages variable in runtime
      c54321a7
  9. Aug 31, 2018