Skip to content
  1. Nov 01, 2019
  2. Oct 30, 2019
  3. Oct 29, 2019
  4. Oct 25, 2019
  5. Oct 23, 2019
  6. Oct 22, 2019
  7. Oct 21, 2019
    • CrocdileChan's avatar
      use ThreadPool to execute spawn_worker(fn) (#3836) · b7627c4c
      CrocdileChan authored
      * use ThreadPool to spawn_worker()
      
      * use ThreadPool to implement spawn_worker(fn)
      
      * use ThreadPool to implement spawn_worker(f)
      
      * update [dependencies] threadpool and num_cpus version
      
      *  rm 'extern crate num_cpus'
      
      * cargo.lock update
      
      *  merge the newest cargo.lock
      
      * Update Cargo.lock
      
      * use Mutex to wrap OffchainWorkers.thread_pool
      
      * format use crate
      
      * use parking_lot::Mutex instead of std::sync::Mutex
      b7627c4c
    • Ashley's avatar
      Change Contracts::DefaultMaxDepth from 1024 to 32 (#3855) · c497fcb1
      Ashley authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      * Change DefaultMaxDepth from 1024 to 32
      
      * bump impl and spec version
      c497fcb1
  8. Oct 20, 2019
  9. Oct 19, 2019
    • Caio's avatar
      It's Clippy time (#3806) · 5fde6d08
      Caio authored
      Fix some Clippy issues
      5fde6d08
    • Andrew Dirksen's avatar
      e479a512
    • Ashley's avatar
      Move sr-arithmetic to a new crate and add in a fuzzer (#3799) · dccaf161
      Ashley authored
      
      
      * Split up sr_arithmetic.rs
      
      * Add some basic fuzzing
      
      * Add more tests
      
      * Add printing to fuzzing
      
      * Clean things up
      
      * Remove arbitrary
      
      * Remove comments
      
      * More cleaning, fix small error that was causing a panic
      
      * Add rational128
      
      * Remove old random tests
      
      * introduce panic
      
      * fuzzing should panic properly
      
      * Bit of cleanup
      
      * Add a test uncovered via fuzzing that fails!
      
      * Few small changes
      
      * Move sr-arithmetic to its own crate
      
      * Fix fuzzing
      
      * Got rid of fuzzer Cargo.lock
      
      * Added no_std
      
      * re-export assert_eq_error_rate
      
      * bump impl and spec version
      
      * re add convert into
      
      * Add an ignore to the test
      
      * Enabled benchmarking
      
      * Reindent
      
      * Clean up biguint fuzzer
      
      * Clean up biguint more
      
      * shuffle sr-primitives/traits about
      
      * Remove unused dependencies
      
      * Apply clippy suggestions
      
      * upgrade primitive-types versions
      
      * Run tests against num-bigint
      
      * Get rid of allocation in assert_biguints_eq
      
      * Add an optimisation to multiply_by_rational
      
      * rename parts_per_x -> per_things
      
      * Change fuzzer cargo.toml
      
      * Remove allocation from BigUint PartialEq impl
      
      * Remove accidental indentation
      
      * Renmove Lazy and Convert traits
      
      * Copy assert_eq_error_rate macro back to sr-primitives
      
      * Add documentation to fuzzers
      
      * fix sr-primitives assert_eq_error_rate
      
      * add cfg(test)
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update core/sr-arithmetic/fuzzer/src/biguint.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Allow rounding up in rational128
      
      * Make changes to biguint.rs
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Final touches
      
      * Convert to num_bigint::BigUint to compare
      
      * remove unused mut
      
      * more small changes
      
      * shuffle sr-primitives trait imports
      
      * more code review
      
      * move assert_eq_error_rate to lib.rs
      
      * Update core/sr-arithmetic/fuzzer/src/biguint.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Get rid of S
      
      * Simplify rational128 honggfuzz link
      
      * Insignificantly change rational128 fuzzing code
      
      * Slightly tidy up some of the arithmetic logic
      
      * Get rid of sr_arithmetic again(?) and fix sr-primitives/weights
      
      * Apply updates to sr_arithmetic.rs to crate
      dccaf161
  10. Oct 18, 2019
  11. Oct 17, 2019
  12. Oct 16, 2019
    • Bastian Köcher's avatar
      Make `wasmi_execution` public to use it from tests (#3829) · 0cd7260e
      Bastian Köcher authored
      * Make `wasmi_execution` public to use it from tests
      
      * Make `WasmRuntime` accessible as well
      
      * Add `call_in_wasm` instead of making stuff public
      
      * Use `WasmRuntime`
      
      * Move test
      
      * More feedback
      0cd7260e
    • thiolliere's avatar
      Refactor decl storage (#3765) · e0f3fa38
      thiolliere authored
      * split implementation in multiple files:
        * transformation -> genesis_config/  getters.rs  instance_trait.rs  metadata.rs  mod.rs  store_trait.rs
        * mod.rs -> parser.rs
        * impl.rs -> storage_struct.rs
      * parser is isolated into parse module, it could be improved as well but this can be done in another PR
      * modules contains a defintion of decl_storage input which must be ok to work with.
      * implementation change:
        * T: Trait might be more often bound to 'static (anyway we only use static one and it is needed for metadata current implementation).
        * GenesisConfig no longer requires its fields to be Clone (possible since to EncodeLike feature)
        * builder for map storages must return precise type Vec<(key, value)>
      e0f3fa38