Skip to content
  1. Sep 09, 2018
    • David's avatar
      LocalCallExecutor and RemoteCallRequest generic over Hasher and NodeCodec (#573) · 393c3b5a
      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
      393c3b5a
    • Guanqun Lu's avatar
      add mutate api (#695) · ea7aeb84
      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
      ea7aeb84
  2. Sep 07, 2018
  3. Sep 06, 2018
  4. Sep 05, 2018
  5. Sep 04, 2018
  6. Sep 03, 2018
  7. Sep 01, 2018
    • Sergey Pepyakin's avatar
      Contract runtime polishing (#601) · 73ad6734
      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
      73ad6734
    • Guanqun Lu's avatar
      WIP on chain heap (#639) · beee3d40
      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
      beee3d40
  8. Aug 31, 2018
  9. Aug 30, 2018
    • Gav Wood's avatar
      Separate out staking module into balances and payment (#629) · 8281618e
      Gav Wood authored
      * 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
      8281618e
    • Denis S. Soldatov aka General-Beck's avatar
      Update .gitlab-ci.yml (#633) · 6ae3204f
      Denis S. Soldatov aka General-Beck authored
      it is necessary to test.
      You will probably have to create a cron-job for the nightly assembly of the master branch
      6ae3204f