1. Jan 25, 2019
    • Bastian Köcher's avatar
      Refactor CLI handling (#1368) · 77f5cb7c
      Bastian Köcher authored
      * Rework cli handling
      
      * Update readme
      
      * Adds support for custom subcommands and extra run parameters
      
      * Update readme
      
      * Fixes compilation after master merge
      
      * Make "Run" the default subcommand
      
      Actually its hidden to the outside that is an subcommand.
      
      * Rewrite CLI to work without breaking old CLI behavior
      
      * Some cleanup
      
      * Fix incorrect config setup
      
      * Update README
      
      * Fixes after merge
      
      * Fixes incorrect README
      77f5cb7c
  2. Jan 24, 2019
  3. Jan 23, 2019
  4. Jan 22, 2019
    • Bastian Köcher's avatar
      Rewrite Inherent data (#1488) · 53bf81e5
      Bastian Köcher authored
      
      
      * Implement new inherent data
      
      * Fixes compilation on wasm
      
      * Fixes after rebase
      
      * Switch back to generate inherent stuff by macro
      
      * Update after rebase
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      
      * Fix compilation after rebase
      
      * Address grumbles
      
      * Remove `InherentDataProviders` from `Client`
      
      * Update wasm files after rebase
      
      * Address grumbles
      
      * Fixes compilation after latest merge
      
      * Last fix
      53bf81e5
    • thiolliere's avatar
      compact param in calls (#1499) · 8cd437ae
      thiolliere authored
      
      
      * impl #[codec(compact)] for param
      
      * update modules
      
      * test all and build runtime
      
      * Update srml/support/src/dispatch.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Update srml/support/src/dispatch.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * delete wip comment
      
      * update param to use #[compact] instead of Cmpact<>
      
      * fmt
      
      * impl metadata
      
      * test metadata
      
      * add compact attr test
      
      * script buid
      
      * update test
      8cd437ae
    • Benjamin Kampmann's avatar
      72c16f39
    • Sergei Pepyakin's avatar
      Dispatch Calls to other modules (#1473) · e212a0b1
      Sergei Pepyakin authored
      * WIP
      
      * Use system::Origin::Signed as an origin
      
      * Add a vm test for ext_dispatch_call
      
      * Take fee for dispatching a Call
      
      # Conflicts:
      #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
      
      * Clean & Rebuild
      
      # Conflicts:
      #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
      
      * Dispatch call test.
      
      * Rebuild the runtime.
      
      * Fix the length of the buffer.
      
      * Rebuild binaries.
      e212a0b1
  5. Jan 21, 2019
    • Bastian Köcher's avatar
      Make runtime api calls native when possible (#1302) · bf6a781b
      Bastian Köcher authored
      * Add simple benchmark for the runtime api
      
      * Make the executor support native calls
      
      * Some documentation
      
      * Hide behind `feature = "std"`
      
      * Rework the native calls
      
      * Make all tests compile again
      
      * Make every parameter using the Block serialized/deserialized in the native call
      
      * Forward `UnwindSafe` requirement
      
      * Remove debug stuff
      
      * Add some documentation
      
      * Fixes warnings
      
      * Fixes errors after master rebase
      
      * Fixes compilation after master rebase
      
      * Fixes compilation after rebase
      bf6a781b
    • Marcio Diaz's avatar
      Fix revert for non finalized blocks (#1479) · 3c08ca7e
      Marcio Diaz authored
      * fix: temporal modification to make revert works for non finalized blocks
      
      * fix: print info when the number of blocks asked to revert is higher than the number of reversible blocks
      
      * fix: remove function get_db_path_for_subcommand and remove it from all subcommands
      
      * fix: revert only non finalized blocks
      
      * fix: improve printed information for revert command
      
      * fix: new wasm file
      
      * chore: remove unused parameter
      
      * fix: revert log logic
      
      * fix: subcommands should take sub_matches instead of matches
      
      * fix: removing confusing message
      3c08ca7e
    • Bastian Köcher's avatar
      Revert new wasm allocator (#1502) · 4d0eea0e
      Bastian Köcher authored
      * Revert "Better allocator for wasm (#1460)"
      
      This reverts commit c3bee593.
      
      * Update wasm files
      4d0eea0e
  6. Jan 18, 2019
  7. Jan 17, 2019
    • Benjamin Kampmann's avatar
      Simplier and cleaner implementation of #1468 (#1471) · 704f0490
      Benjamin Kampmann authored
      * Simplier and cleaner implementation of #1468
      
      * move AppInfo into base_path
      
      * default to executable_name rather than pretty visible name
      704f0490
    • Benjamin Kampmann's avatar
    • Sergei Pepyakin's avatar
      Contracts module rejig (#1358) · 8ef14908
      Sergei Pepyakin authored
      
      
      * Move prepare under code.
      
      * Schedule update
      
      * CodeHash
      
      * create takes code_hash
      
      * pass mem def and use code in vm::execute
      
      * Actually save and load code
      
      * Use T::Hash as CodeHash
      
      * Explicit entrypoint name
      
      * Return code_hash and deposit an Event
      
      * Charge for deployed code with gas.
      
      * ImportSatisfyCheck and FunctionImplProvider
      
      * Progress.
      
      * Use new infrastructure for checking imports
      
      * Rename entrypoint to entrypoint_name
      
      * Use strings instead of a Error enum
      
      * Clean
      
      * WIP
      
      * Fix macro_define_env test.
      
      * Fix vm code tests.
      
      * Remove tests for now.
      
      * Fix borked merge
      
      * Fix build for wasm
      
      * fmt
      
      * Scaffolding for abstracting vm.
      
      * Hook up execution to exec layer.
      
      * Fix vm tests.
      
      * Use schedule directly in WasmLoader
      
      * Implement test language.
      
      * Add input_data test.
      
      * Max depth test
      
      * ext_caller
      
      * Simplify test.
      
      * Add TODO
      
      * Some tests and todos.
      
      * top_level
      
      * Clean.
      
      * Restore a couple of integration tests.
      
      * Add a few comments.
      
      * Add ext_address runtime call.
      
      * Deduplicate caller/self_account
      
      * Add not_exists test.
      
      * Change bool to TransferCause.
      
      * Add address tests.
      
      * Remove output_buf from parameter.
      
      * return from start fn.
      
      * Smart gas meter
      
      * Tracing
      
      * Fix prepare tests.
      
      * Code moving
      
      * Add ExecFeeToken
      
      * Use tokens everywhere.
      
      * Make it compile in no_std.
      
      * Lift all test requirements to TestAuxiliaries
      
      * A minor clean
      
      * First create tests
      
      * Remove unneeded TODO
      
      * Docs.
      
      * Code shuffling
      
      * Rename create → instantiate
      
      * Add test address.
      
      * Code shuffling
      
      * Add base_fee tests.
      
      * rejig the code
      
      * Add some comments
      
      * on_finalise comment
      
      * Move event deposit further
      
      * Update Cargo.lock
      
      * Use crates.io version of pwasm-utils
      
      * Format todo comments
      
      * Fix formatting
      
      * Comments
      
      * EmptyOutputBuf and OutputBuf split.
      
      * Restore code_hash
      
      * Fix node-executor.
      
      * Fix typo
      
      * Fix fmt
      
      * Update srml/contract/src/account_db.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Line wraps
      
      * Wrapping macros
      
      * Add _ prefix
      
      * Grumbles
      
      * Doc updates.
      
      * Update srml/contract/src/wasm/mod.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Add comment
      
      * Use saturation to signal overflow
      
      * Add prepare_test! macro
      
      * Require deploy function.
      
      * Add entry point tests
      
      * Add comment.
      
      * Rename code → code_cache to better describe
      
      * Get rid of weird match!
      
      * Recompile binaries
      
      * Add comments
      
      * refuse_instantiate_with_value_below_existential_deposit
      
      * Little fix
      
      * Make test more complete
      
      * Clean
      
      * Add integration test for instantiation
      
      * Rebuild runtime.
      
      * Add some tests.
      
      * Attach an issue to a TODO
      
      * Attach another issue
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/exec.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/exec.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Recompile node_runtime
      8ef14908
    • thiolliere's avatar
      impl HasCompact for Perbill and Permill (#1411) · 8b679660
      thiolliere authored
      * impl Compact<> and HasCompact for Permill Perbill
      
      * update parity-codec to 2.2
      
      * add Cargo.lock
      
      * add lock and build for runtime
      
      * rebuild Cargo.lock after rebase
      8b679660
    • Svyatoslav Nikolsky's avatar
      c2e498f7
  8. Jan 16, 2019
    • Gav Wood's avatar
      Split Indices module from Balances (#1404) · defa2ec3
      Gav Wood authored
      * Indices module
      
      * Remove indices stuff from balances
      
      * Rejob node, move Lookup into system.
      
      * Fix up some modules.
      
      * Fix democracy tests
      
      * Fix staking tests
      
      * Fix more tests
      
      * Final test fixes
      
      * Bump runtime versions
      
      * Assets uses compact dispatchers
      
      * Contracts module uses indexed addressing
      
      * Democracy has more compact encoding
      
      * Example now demonstrates compact eencoding
      
      * Sudo uses indexed address
      
      * Upgrade key also uses indexed lookups
      
      * Assets more compact types.
      
      * Fix test
      
      * Rebuild runtime, whitespace
      
      * Remove TOODs
      
      * Remove TODOs
      
      * Add a couple of tests back to balances.
      
      * Update lib.rs
      
      * Update lib.rs
      defa2ec3
    • Marcio Diaz's avatar
      Make use of NLL in client crate (#1436) · 5d454b71
      Marcio Diaz authored
      * fix: set edition to 2018 in Cargo.toml.
      
      * fix: refactor function to make use of NLL.
      
      * fix: result of applying 'cargo fix --edition' command.
      
      * fix: removes extern crate
      
      * fix: remove module uses from lib.rs
      
      * fix: tests imports
      5d454b71
  9. Jan 14, 2019
  10. Jan 11, 2019
  11. Jan 10, 2019
  12. Jan 09, 2019
  13. Jan 08, 2019
    • Arkadiy Paronyan's avatar
      State cache and other performance optimizations (#1345) · 5dd23c2c
      Arkadiy Paronyan authored
      * State caching
      
      * Better code caching
      
      * Execution optimizaton
      
      * More optimizations
      
      * Updated wasmi
      
      * Caching test
      
      * Style
      
      * Style
      
      * Reverted some minor changes
      
      * Style and typos
      
      * Style and typos
      
      * Removed panics on missing memory
      5dd23c2c
    • Shawn Tabrizi's avatar
      Updating parking_lot dependencies to 0.7.1 (#1361) · aeff8259
      Shawn Tabrizi authored and Benjamin Kampmann's avatar Benjamin Kampmann committed
      aeff8259
    • Wei Tang's avatar
      Make AuthorityId generic (#1296) · bc25da55
      Wei Tang authored and Benjamin Kampmann's avatar Benjamin Kampmann committed
      * BlockAuthorityId convenience type
      
      * Rename AuthorityId -> Ed25519AuthorityId to make it more precise
      
      * Generalize AuthorityId up to substrate-client
      
      * Fix in client-db
      
      * rename: BlockAuthorityId -> AuthorityIdFor
      
      * typo: should be digest item
      
      * Fix test-runtime authorityId mismatch
      
      One states that AuthorityId is u64 while the other states that it's Ed25519AuthorityId.
      
      * Fix more u64 - Ed25519AuthorityId mismatch
      
      * Fix compile of most of the srml modules
      
      * Continue to pin aura and grandpa with ed25519 and fix compile
      
      * Add MaybeHash trait
      
      * Fix node-runtime compile
      
      * Fix network tests
      bc25da55
  14. Jan 07, 2019
  15. Dec 31, 2018
  16. Dec 22, 2018
    • Bastian Köcher's avatar
      Make `deposit_event` work with none generic events (#1309) · 9156ea30
      Bastian Köcher authored
      * Make `deposit_event` work with none generic events
      
      `fn deposit_event() = default` will now be used for none generic events
      `fn deposit_event<T>() = default` is now for generic events.
      
      * Update wasm files
      
      * Fixes some spelling mistakes
      
      * Update wasm and fix new module
      9156ea30
  17. Dec 21, 2018
    • André Silva's avatar
      node: fix shutdown (#1308) · f632893d
      André Silva authored and asynchronous rob's avatar asynchronous rob committed
      * node: remove grandpa authority flags
      
      * node: exit-guard grandpa and aura spawned futures
      
      * node: wait for futures to stop running on shutdown
      
      * core: run connectivity tests on same ports
      
      * core: pass on_exit future when starting aura and grandpa
      
      * node: add issue number to todo
      
      * core: fix aura and grandpa tests
      f632893d
    • Gav Wood's avatar
      Sudo module (#1315) · f847f59f
      Gav Wood authored
      * Sudo module
      
      * Fix comment
      
      * Fix errors
      
      * Fix test
      
      * Update hashes
      
      * Final test fixes and build
      
      * Final hex change
      f847f59f
    • André Silva's avatar
      19b7de7d
  18. Dec 20, 2018
    • Gav Wood's avatar
      Bump to v0.9.1 (#1307) · 36e8a513
      Gav Wood authored
      36e8a513
    • cheme's avatar
      Include default values in storage metadata (#1264) · fe193bd2
      cheme authored
      * Add a 'default' field to metadata. It contains code to generate the
      default value.
      
      * wasm update
      
      * Make 'default' field an `Option`
      
      * Boxed fn is not static, that won't be fine
      
      * static fn won't do it to as it cannot get T param, will try fat trait
      
      * Fat pointer over phantom data compatible with static instantiation
      
      * DecodeDifferent is cool, using it for decoding.
      
      * using once cell to do what would require copying lazy_static internals.
      
      * Remove cache when no_std (non compatible deps)
      
      * wasm bins update
      
      * Fuse tooling struct and enum derive.
      fe193bd2
  19. Dec 19, 2018