Skip to content
  1. Sep 10, 2018
    • Sergey Pepyakin's avatar
      Integrate contracts into substrate-demo runtime (#675) · 6c1b2c27
      Sergey Pepyakin authored
      * Introduce data and salt into ContractAddressFor
      
      * Accept salt arg in ext_create.
      
      * Integrate contracts into the demo runtime
      
      * Make libcontract compile to wasm
      
      * Remove salt parameter.
      
      This now is concern of userspace.
      
      * Rebuild binaries.
      6c1b2c27
    • Svyatoslav Nikolsky's avatar
      DigestItem trait (v3) (#687) · 0e1023ae
      Svyatoslav Nikolsky authored
      * DigestItem v4
      
      * tests
      
      * wording
      0e1023ae
    • Maciej Hirsz's avatar
      153439ae
    • Bastian Köcher's avatar
      Implements `json_metadata` RPC call (#692) · ba23d033
      Bastian Köcher authored
      * Adds `impl_json_metadata!` for generating all metadata of a runtime
      
      * Adds `json_metadata` RPC call
      
      * Adds simple test for the `json_metadata` RPC call
      
      * Implements json metadata in the demo runtime
      
      * Fix indent
      
      * Adds missing copyright headers
      
      * Dispatch json metadata renamings and improvements
      
      * Replaces `format!` & `String` with `Vec<JSONMetadata`
      
      * Implements `Encode` and `Decode` for JSONMetadata
      
      * Make `impl_json_metadata!` compileable on `no_std`
      
      * Adapt the client to decode the correct type for `json_metadata`
      
      * Fixes compile error and warning
      
      * Whitespace
      ba23d033
    • Arkadiy Paronyan's avatar
      Bring substrate-demo up to date (#658) · fea75051
      Arkadiy Paronyan authored
      * Updating substrate-demo
      
      * Consenus fixes
      
      * Reverted toolchain change
      
      * Adjusted timeout formula
      
      * Simplfied proposal creation
      
      * Fixed tests
      
      * Fixed a few small issues
      
      * 2017->2018
      
      * Style
      
      * More style
      
      * Renamed demo executable to substrate
      
      * Style
      
      * Fixed compilation after merge
      
      * Style
      fea75051
    • Gav Wood's avatar
      Council motions for approving treasury proposals (#694) · bcc26dd3
      Gav Wood authored
      * Treasury in runtime, generic approve/reject
      
      * Add logic for council origin
      
      * Add tests.
      
      * Configurable number of members in EnsureMembers
      
      * Fix grumbles
      
      * Fix spelling
      
      * Comment
      bcc26dd3
    • Chevdor's avatar
      Remove docker from Substrate (#699) · 7b112dee
      Chevdor authored
      7b112dee
    • Gav Wood's avatar
      Democracy module events (#697) · 0aefb506
      Gav Wood authored
      * Democracy module events
      
      * Fix demo runtime
      
      * Fix
      
      * Extra event in balances
      
      * Missing event
      
      * Fix test
      
      * Fix council
      
      * Fix test
      0aefb506
  2. 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
  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) · 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