1. Aug 06, 2019
    • thiolliere's avatar
      Update to parity-scale-codec (#3232) · 4ed67e03
      thiolliere authored
      
      
      * WIP: update codec
      
      * WIP
      
      * compiling
      
      * WIP
      
      * rename parity-scale-codec to codec
      
      * WIP
      
      * fix
      
      * remove old comments
      
      * use published crates
      
      * fix expected error msg
      
      * bump version
      
      * fmt and fix
      
      * remove old comment
      
      * fix wrong decoding impl
      
      * implement encode like for structures
      
      * undo removal of old pending changes
      
      * trailingzeroinput
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * update codec
      
      * fmt
      
      * version is 1.0.0
      
      * show more error
      
      * fmt
      4ed67e03
  2. Aug 01, 2019
  3. Jul 29, 2019
  4. Jul 16, 2019
    • Jim Posen's avatar
      Contract storage limit (#3126) · 768eb1af
      Jim Posen authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      * srml-contracts: Remove hard-coded code hashes from tests.
      
      This makes it easier to update existing and add new test Wasm modules.
      
      * Test maximum contract storage write size.
      
      * Implement storage value limit for contracts.
      
      * Bump node runtime spec version.
      768eb1af
  5. Jul 13, 2019
  6. Jul 10, 2019
  7. Jul 08, 2019
  8. Jul 03, 2019
    • DemiMarie-parity's avatar
      BABE Randomness using PreRuntime digests (#2929) · 81d8a5d0
      DemiMarie-parity authored
      
      
      * Initial work on exposing pre-runtime digests
      
      This provides the primitive API, as well as exposing it from BABE.
      
      * Initial work on using pre-digests in runtimes
      
      This includes both code to expose them from `srml_system`, as well as
      using it in (currently dead) code in `srml_babe`.
      
      * Bump `{spec,impl}_version`
      
      * Add `u64_backend` feature to curve25519-dalek
      
      Otherwise, it errors out at compile-time.
      
      * Bump `Cargo.lock`
      
      * Do not depend on the schnorrkel crate in the runtime
      
      The schnorrkel crate does not work on `#![no_std]`, but the runtime only
      needs constants from it.  This adds our own definitions of those
      constants, and checks them for correctness at compile-time.
      
      * Actually implement storage of VRF outputs
      
      * Trivial formatting change
      
      * Provide a `hash_randomness` function in BABE
      
      for processing VRF outputs.
      
      * Implement a basic randomness generating function
      
      It just XORs the VRF outputs together.
      
      * Actually implement on-chain randomness
      
      Blake2b is used for hashing.
      
      * Update dependencies
      
      * Run `cargo update` where needed
      
      * Re-add a newline at EOF
      
      * Remove broken and unsafe code
      
      XOR is not a hash function, and must not be used as such.  The
      implementation was also needlessly unsafe.
      
      * Run `cargo update` where needed
      
      * Remove spurious dependency
      
      * Document security guarantees of BABE randomness
      
      * Add a `RandomnessBeacon` trait
      
      * Document `RandomnessBeacon::random`
      
      * Fix silly compile error (unexpected type arguments)
      
      * Fix BABE randomness
      
      * Implement `FindAuthor` for `babe::Module`
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      Co-Authored-By: default avatarRobert Habermeier <[email protected]>
      
      * Respond to suggestions from code review and fix bugs
      
      * Store an authority index, not the authority itself.
      * Avoid unnecessary decoding.
      * Implement relative slots and BABE randomness fully and correctly.
      
      * Remove spurious dependency
      
      * Fix error reported by rust-analyzer
      
      * Update Cargo.lock files
      
      * `wrapping_add` → `checked_add`
      
      The epoch index will not overflow.  Panic if it does.
      
      * Move randomness documentation to trait
      
      * Fix compile error in test suite
      
      * Explain 2^64 limit
      
      Co-Authored-By: default avatarRobert Habermeier <[email protected]>
      81d8a5d0
  9. Jul 02, 2019
    • Jim Posen's avatar
      srml-contract: Validate that modules do not declare oversized tables. (#2969) · 24aa882e
      Jim Posen authored
      * srml-contract: Validate that modules do not declare oversized tables.
      
      * Bump node runtime spec/impl versions.
      24aa882e
    • David Craven's avatar
      Turn storage items into parameters (#2883) · cf036f68
      David Craven authored
      * balances: Turn storage items into parameters.
      
      * contract: Turn storage items into parameters.
      
      * council: Turn storage items into parameters.
      
      * finality-tracker: Turn storage items into parameters.
      
      * treasury: Turn storage items into parameters.
      
      * democracy: Fix tests.
      
      * example: Fix tests.
      
      * executive: Fix tests.
      
      * staking: Fix tests.
      
      * Update runtime.
      
      * Update template-node.
      
      * Update runtime version.
      
      * Fix executor tests.
      
      * Fix node cli tests.
      
      * Address grumbles.
      
      * Add removed default values to docs.
      
      * Make gas price a storage item.
      
      * Set associated consts must be callable outside of build.
      
      * Fix not enough gas to pay for transfer fee.
      
      * Fix build.
      
      * Emit metadata.
      
      * Fix build.
      
      * Add default values for all parameter types.
      
      * Fix build.
      
      * Fix build.
      
      * Fix build.
      
      * Fix build.
      cf036f68
  10. Jun 27, 2019
    • Bastian Köcher's avatar
      Implement a proper generic resolution in `decl_storage!` (#2913) · 62b7c05d
      Bastian Köcher authored
      
      
      * Add failing test case
      
      * move storage maps to blake2_128 (#2268)
      
      * remove default hash, introduce twox_128 and blake2
      
      * use blake2_128 & create ext_blake2_128
      
      * refactor code
      
      * add benchmark
      
      * factorize generator
      
      * fix
      
      * parameterizable hasher
      
      * some fix
      
      * fix
      
      * fix
      
      * fix
      
      * metadata
      
      * fix
      
      * remove debug print
      
      * map -> blake2_256
      
      * fix test
      
      * fix test
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * impl twox 128 concat (#2353)
      
      * impl twox_128_concat
      
      * comment addressed
      
      * fix
      
      * impl twox_128->64_concat
      
      * fix test
      
      * Fix compilation and cleanup some docs
      
      * Lol
      
      * Remove traits from storage types that are not generic
      
      * Get instance test almost working as wanted
      
      * Make `srml-support-test` compile again :)
      
      * Fixes test of srml-support
      
      * Fix compilation
      
      * Break some lines
      
      * Remove incorrect macro match arm
      
      * Integrates review feedback
      
      * Update documentation
      
      * Fix compilation
      62b7c05d
  11. Jun 26, 2019
    • Jim Posen's avatar
      srml-contract: Fix Gas type to u64 (#2944) · 4c52aec2
      Jim Posen authored
      * srml-contract: Move gas costs from Config to Schedule.
      
      * srml-contract: Define Gas units fixed as u64.
      
      This removes Gas as a configurable type on the contracts Trait.
      
      * Bump node runtime spec/impl versions.
      4c52aec2
  12. Jun 19, 2019
  13. Jun 14, 2019
    • Gavin Wood's avatar
      New sessions, kill consensus module (#2802) · bda86418
      Gavin Wood authored
      
      
      * Draft of new sessions
      
      * Reintroduce tuple impls
      
      * Move staking module to new session API
      
      * More work on staking and grandpa.
      
      * Use iterator to avoid cloning and tuple macro
      
      * Make runtime build again
      
      * Polish the OpaqueKeys devex
      
      * Move consensus logic into system & aura.
      
      * Fix up system module
      
      * Get build mostly going. Stuck at service.rs
      
      * Building again
      
      * Update srml/staking/src/lib.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Refactoring out Consensus module, AuthorityIdOf, &c.
      
      * Refactored out DigestItem::AuthoritiesChanged. Building.
      
      * Remove tentative code
      
      * Remove invalid comment
      
      * Make Seal opaque and introduce nice methods for handling opaque items.
      
      * Start to use proper digest for Aura authorities tracking.
      
      * Fix up grandpa, remove system::Raw/Log
      
      * Refactor Grandpa to use new logging infrastructure.
      
      Also make authorityid/sessionkey static. Switch over to storing
      authorities in a straight Vec.
      
      * Building again
      
      * Tidy up some AuthorityIds
      
      * Expunge most of the rest of the AuthorityKey confusion.
      
      Also, de-generify Babe and re-generify Aura.
      
      * Remove cruft
      
      * Untangle last of the `AuthorityId`s.
      
      * Sort out finality_tracker
      
      * Refactor median getting
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarRobert Habermeier <[email protected]>
      
      * Session tests works
      
      * Update core/sr-primitives/src/generic/digest.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Session tests works
      
      * Fix for staking from @dvc94ch
      
      * log an error
      
      * fix test runtime build
      
      * Some test fixes
      
      * Staking mock update to new session api.
      
      * Fix build.
      
      * Move OpaqueKeys to primitives.
      
      * Use on_initialize instead of check_rotate_session.
      
      * Update tests to new staking api.
      
      * fixup mock
      
      * Fix bond_extra_and_withdraw_unbonded_works.
      
      * Fix bond_with_little_staked_value_bounded_by_slot_stake.
      
      * Fix bond_with_no_staked_value.
      
      * Fix change_controller_works.
      
      * Fix less_than_needed_candidates_works.
      
      * Fix multi_era_reward_should_work.
      
      * Fix nominating_and_rewards_should_work.
      
      * Fix nominators_also_get_slashed.
      
      * Fix phragmen_large_scale_test.
      
      * Fix phragmen_poc_works.
      
      * Fix phragmen_score_should_be_accurate_on_large_stakes.
      
      * Fix phragmen_should_not_overflow.
      
      * Fix reward_destination_works.
      
      * Fix rewards_should_work.
      
      * Fix sessions_and_eras_should_work.
      
      * Fix slot_stake_is_least_staked_validator.
      
      * Fix too_many_unbond_calls_should_not_work.
      
      * Fix wrong_vote_is_null.
      
      * Fix runtime.
      
      * Fix wasm runtime build.
      
      * Update Cargo.lock
      
      * Fix warnings.
      
      * Fix grandpa tests.
      
      * Fix test-runtime build.
      
      * Fix template node build.
      
      * Fix stuff.
      
      * Update Cargo.lock to fix CI
      
      * Re-add missing AuRa logs
      
      Runtimes are required to know about every digest they receive ― they
      panic otherwise.  This re-adds support for AuRa pre-runtime digests.
      
      * Update core/consensus/babe/src/digest.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Kill log trait and all that jazz.
      
      * Refactor staking tests.
      
      * Fix ci runtime wasm check.
      
      * Line length 120.
      
      * Make tests build again
      
      * Remove trailing commas in function declarations
      
      The `extern_functions!` macro doesn’t like them, perhaps due to a bug in
      rustc.
      
      * Fix type error
      
      * Fix compilation errors
      
      * Fix a test
      
      * Another couple of fixes
      
      * Fix another test
      
      * More test fixes
      
      * Another test fix
      
      * Bump runtime.
      
      * Wrap long line
      
      * Fix build, remove redundant code.
      
      * Issue to track TODO
      
      * Leave the benchmark code alone.
      
      * Fix missing `std::time::{Instant, Duration}`
      
      * Indentation
      
      * Aura ConsensusLog as enum
      bda86418
  14. Jun 05, 2019
    • Gavin Wood's avatar
      Sensible scheduling for referenda (#2753) · 22a00a33
      Gavin Wood authored
      
      
      * Nonlinear locking and cleanups
      
      * Bump runtime version
      
      * Minor cleanup
      
      * Fix tests
      
      * Fix council tests
      
      * Fix flaw in turnout counting
      
      * Initial work on referendum schedules
      
      * Refactor council-democracy interface.
      
      * Fix build
      
      * Update srml/democracy/src/lib.rs
      
      Co-Authored-By: default avatarLuke Schoen <[email protected]>
      
      * Update srml/democracy/src/lib.rs
      
      Co-Authored-By: default avatarLuke Schoen <[email protected]>
      
      * Tests compile again
      
      * Tests!
      
      * Update todo
      
      * Fix build
      
      * Ensure votes arer not double-counted on member-transitions
      
      * Extra logic for normal council changes
      
      * Typo
      
      * A few grumbles addressed.
      22a00a33
  15. May 23, 2019
    • thiolliere's avatar
      Contract restoration (#2502) · ffce18b9
      thiolliere authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      
      
      * partial impl
      
      * more checks
      
      * improve TestExternalities + tests
      
      * make tombstone raw to derive Eq
      
      * remove before merge
      
      * add test
      
      * fmt
      
      * update test
      
      * doc
      
      * bump version
      
      * fix testing
      
      * update runtime
      
      * Fix TrieIdGenerator
      
      * fix dummy trie id generator
      
      * update test
      
      * bump version
      
      * format
      
      * Update core/state-machine/src/testing.rs
      
      Co-Authored-By: default avatarcheme <[email protected]>
      
      * document test
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarDemiMarie-temp <[email protected]>
      
      * refactor
      
      * fix
      
      * fmt
      
      * address review
      
      * impl last_write
      
      * Fix storage size, test, remove size in tombstone
      
      * fix
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarSergei Pepyakin <[email protected]>
      
      * comment
      
      * child_storage_root as &[u8]
      ffce18b9
    • Sergei Pepyakin's avatar
      srml-contract: update ext_random(_seed) (#2635) · 12f052ce
      Sergei Pepyakin authored
      
      
      * Initial implementation.
      
      * Rename random_seed to random
      
      * Update rustdocs
      
      * Update COMPLEXITY.md
      
      * Fix comment.
      
      * Limit the size of subject.
      
      * Bump the runtime version.
      
      * Fix doc
      
      * Update node/runtime/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      12f052ce
  16. May 22, 2019
    • Gavin Wood's avatar
      Remove `As` (#2602) · 3860d7c8
      Gavin Wood authored
      
      
      * Start to remove the `As` bound on `SimpleArtithmetic`
      
      This just introduces standard numeric bounds, assuming a minimum of
      `u32`. Also included is a saturating from/into trait allowing ergonomic
      infallible conversion when you don't care if it saturates.
      
      * Remove As from Balances trait
      
      * Remove As from Aura module
      
      * Remove As from Babe module
      
      * Expunge `As` from contract
      
      * Council module
      
      * Democracy
      
      * Finality tracker
      
      * Grandpa
      
      * First bit of indices
      
      * indices
      
      * Line lengths
      
      * session
      
      * system
      
      * Staking
      
      * Square up all other uses of As.
      
      * RHD update
      
      * Fix build/test
      
      * Remove As trait
      
      * line widths
      
      * Remove final As ref
      
      * Update srml/staking/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/client/src/cht.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/client/db/src/light.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * whitespace
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Bring back u32 check for number on CLI
      3860d7c8
  17. May 15, 2019
  18. May 14, 2019
    • Sergei Pepyakin's avatar
      Pass topics along with events (#2563) · d57f6f93
      Sergei Pepyakin authored
      * Introduce an IndexedEvent
      
      * Plumb topics through the Ext interface.
      
      * Add topics to ext_deposit_event
      
      * Charging for events.
      
      * Check the number of topics.
      
      * Check for duplicate topics.
      
      * Bump API version.
      
      * Move derive(*Eq) under test.
      
      * Use sorting for finding duplicates.
      d57f6f93
  19. May 10, 2019
  20. May 02, 2019
  21. Apr 30, 2019
    • Shawn Tabrizi's avatar
      Add `pub` to functions in Contract module (#2399) · 40751110
      Shawn Tabrizi authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      * Add `pub` to functions in Contract module
      
      This is to support a wrapper module which will add an access control layer to the SRML Contract module.
      
      * Remove `pub` from `on_finalize`
      40751110
    • thiolliere's avatar
      Contract accounting removal (#2230) · c7d9ca37
      thiolliere authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      
      
      * first partial implementation
      
      * update rent allowance
      
      * fmt
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * remove comments
      
      * reward surcharge claims
      
      * remove rent allowance in param + code_hash changed
      
      * Fix bug
      
      * fix tests
      
      * fmt
      
      * impl getter setter rent allowance
      
      * fmt
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * comments
      
      * doc + be->le
      
      * doc
      
      * doc
      
      * fix improve fast return
      
      * renamings
      
      * rename + COMPLEXITY
      
      * COMPLEXITY
      
      * add test
      
      * etrinsic claim surcharge delay configurable
      
      * comment addressed
      
      * move and rewrite of pay_rent
      
      * remove child trie
      
      * fmt
      
      * use derive
      
      * arithmetic operation
      
      * fix
      
      * fix storage root + checked_mul + test
      
      * WIP: test
      
      * WIP
      
      * add tests and fix
      
      * fmt
      
      * typo and doc suggestions
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * WIP
      
      * address some comments
      
      divide tests + some docs
      
      * use br_table
      
      * remove unused function
      
      * Bump the runtime version
      
      * insert_with
      
      * Add some comments.
      
      * Refactor
      
      * Shuffle and fix comments
      
      * More comment fixes.
      
      * dues limited
      
      * Add comment
      
      * Handicap
      
      * Docs.
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Coalesce block_passed in a block
      
      * Fix build
      
      * Paid → Ok
      
      * match → if
      
      * Imrpove handicap description
      c7d9ca37
  22. Apr 26, 2019
  23. Apr 23, 2019
    • Sergei Pepyakin's avatar
      Use serde `derive` feature. (#2351) · e2bb4297
      Sergei Pepyakin authored
      * core/primitives
      
      * sr-primitives
      
      * sr-primitives
      
      * srml-treasury
      
      * substrate-executor
      
      * substrate-keystore
      
      * network-libp2p
      
      * substrate-service
      
      * srml-system
      
      * substrate-rpc
      
      * sr-version
      
      * substrate-telemetry
      
      * substrate-test-runtime
      
      * substrate-transaction-pool
      
      * node-template-runtime
      
      * node-primitives
      
      * srml-consensus
      
      * srml-contract
      
      * srml-democracy
      
      * srml-finality-tracker
      
      * srml-grandpa
      
      * srml-metadata
      
      * srml-support
      
      * Clean
      
      * Update locks
      e2bb4297
    • Sergei Pepyakin's avatar
      Check storage_key for validity (#2316) · 517746bd
      Sergei Pepyakin authored
      
      
      * Intro `ChildStorageKey` for checked child keys
      
      * Get rid of Into in Externalities trait
      
      * Use Cow in ChildStorageKey
      
      * Fix tests for state-machine.
      
      * Clean
      
      * child_storage_root always return a value
      
      * Don't return Option from Ext::child_storage_root
      
      * Return 42 in child_storage_root
      
      * Return CHILD_STORAGE_KEY_PREFIX from trie id gen
      
      * Bump spec and impl version.
      
      * Require `:default:` in `is_child_trie_key_valid`
      
      * Add `default:` prefix.
      
      * Introduce `into_owned` for `ChildStorageKey`.
      
      * Add documentation.
      
      * Fix state-machine tests
      
      * Remove outdated TODO
      
      I check out with Emeric and he is ok with that
      
      * child_storage_root is infailable
      
      * Nit
      
      * Move assert after check.
      
      * Apply suggestions from @DemiMarie-parity
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Formatting nit in core/executor/src/wasm_executor.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Formatting nits from @thiolliere
      517746bd
  24. Apr 17, 2019
  25. Apr 16, 2019
  26. Apr 11, 2019
    • Andrew Jones's avatar
      Introduce `ext_println` to contract runtime (#2239) · 1e0c1d88
      Andrew Jones authored
      * Implement `ext_println` in contract runtime
      
      * Only allow contracts to import `ext_println` on dev chains
      
      * Configure dev chain to allow contracts with `ext_println`
      
      * Increment spec version
      
      * Docs
      
      * Rename config to the more specific enable_println
      1e0c1d88
  27. Apr 03, 2019
    • thiolliere's avatar
      implement contract events (#2161) · c98db99d
      thiolliere authored
      * implement contract events
      
      * update runtime
      
      * renaming
      
      * update test code hash
      
      * improve complexity details
      
      * add deposit event base cost
      
      * add test
      
      * Revert "add deposit event base cost"
      
      This reverts commit 58ec010c0f4f4f0e16935ad41da32aedd17a8c57.
      
      * update test
      
      * Revert "update test"
      
      This reverts commit 6fe61a593ccf0d41f09a0b97472b28ed8751a999.
      
      * Revert "Revert "add deposit event base cost""
      
      This reverts commit 145e8a9bac15313a4c380aa66b94fd4d36fa3f6d.
      
      * Fix format a bit
      c98db99d
  28. Apr 01, 2019
    • thiolliere's avatar
      keep track storage bytes (#2154) · a0e6d96d
      thiolliere authored
      
      
      * refactor
      
      * fix accountinfo creation + impl mem_stored
      
      * add comment
      
      * improve syntax
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * rename current_mem_stored -> storage_size
      
      * more explaination + more readable code
      
      * bump impl version of node + builds
      
      * delete builds
      a0e6d96d
  29. Mar 29, 2019
    • joe petrowski's avatar
      Convert all UK spelling to US (#2138) · 0ddcbf74
      joe petrowski authored
      * all the ise
      
      * forgot a misspelling
      
      * a few more replacements
      
      * bump impl
      
      * rollback and fixes
      
      * bump impl again
      
      * Add aliases for RPC
      
      * Update on_demand.rs
      0ddcbf74
    • Nicole Zhu's avatar
      Documentation for Contract Module (#2045) · 665a0ac2
      Nicole Zhu authored
      
      
      * Add: documentation for srml_contract, per @sergeis comments. TODO: make concise and add usage example
      
      * Fix: minor spelling and grammar
      
      * Add: Revisions to the doc clarification from @Sergei on trx revert behavior
      
      * Edit: added spacing btw function list for better readability
      
      * Remove: usage create contract example todo later
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Edit: explained max gas limit revert behavior in greater detail
      
      * Edit: incorporated first round of PRs, mostly syntax/styling
      
      * Edit: incorporated Sergeis mental model, terms, and added usage examples
      
      * Fix: staking module is no longer closely related to contract. Balances now manages the reaping of accounts
      
      * Minor cleanup of links/text that are not ready to be shown
      
      * Update srml/contract/src/lib.rs
      
      made more concise
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Minor edits from PR
      
      * Explained contract creation in more detail, fixed PR suggestions
      
      * Linted according to contri guidelines
      
      * Created a notable scenarios section, unlisted public functions in lieu of a direct link to the module
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/tests.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarnczhu <[email protected]>
      
      * minor commit after pr feedback
      
      * s/codehash/code_hash for consistency
      665a0ac2
  30. Mar 28, 2019
  31. Mar 26, 2019
    • joe petrowski's avatar
      Documentation for balances module (#1943) · 2ca08a95
      joe petrowski authored
      
      
      * comment updates
      
      * added rustdoc and readme
      
      * clarified LockableCurrency trait
      
      * Currency trait rustdocs
      
      * fixed typo
      
      * fixed suggestions round 1
      
      * UpdateBalanceOutcome docs (open for discussion)
      
      * rm description of enum, consolidation, rm ReclaimRebate
      
      * type clarification, examples overhaul, adoc formatting
      
      * adoc to md
      
      * format change for rustdoc
      
      * update links and fix typos
      
      * typos and links
      
      * updates according to comments
      
      * new example
      
      * small clarifications
      
      * trait implementation section
      
      * missing ```
      
      * small changes, ready for review
      
      * line width update
      
      * small tweaks
      
      * Update srml/balances/src/lib.rs
      
      Co-Authored-By: default avatarjoepetrowski <[email protected]>
      
      * Update srml/balances/src/lib.rs
      
      Co-Authored-By: default avatarjoepetrowski <[email protected]>
      
      * Update srml/balances/src/lib.rs
      
      Co-Authored-By: default avatarjoepetrowski <[email protected]>
      
      * Update srml/balances/src/lib.rs
      
      Co-Authored-By: default avatarjoepetrowski <[email protected]>
      
      * Update lib.rs
      
      * address review by thiolliere
      
      * remove common warning
      
      * Update docs
      
      * updated srml example
      2ca08a95
  32. Mar 22, 2019
  33. Mar 20, 2019
    • Gav Wood's avatar
      Introduce safe types for handling imbalances (#2048) · dcd77a14
      Gav Wood authored and asynchronous rob's avatar asynchronous rob committed
      * Be a little safer with total issuance.
      
      * PairT instead of _Pair
      
      * Remove rev causing upset
      
      * Remove fees stuff.
      
      * Fix build (including tests)
      
      * Update runtime, bump version
      
      * Fix
      
      * Handle gas refunds properly.
      
      * Rename identifier
      
      ala #2025
      
      * Address grumbles
      
      * New not-quite-linear-typing API
      
      * Slimmer API
      
      * More linear-type test fixes
      
      * Fix tests
      
      * Tidy
      
      * Fix some grumbles
      
      * Keep unchecked functions private
      
      * Remove another less-than-safe currency function and ensure that
      contracts module can never create cash.
      
      * Address a few grumbles and fix tests
      dcd77a14