1. 09 Jun, 2021 2 commits
    • Michael Müller's avatar
      Spellchecking for examples + Fix master CI (#812) · 9bda2031
      Michael Müller authored
      * Spellcheck examples as well
      
      * Remove non-existent method
      
      * Fix language
      
      * Fix clippy `needless_borrow`
      
      https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
      
      
      
      * Fix spellchecking for examples
      
      * Add `block_timestamp` in `engine`
      
      * Update examples/erc721/lib.rs
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      
      * Find solution for words which are non-existent
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      9bda2031
    • Andrew Jones's avatar
      Implement `seal_debug_message` (#792) · 2458e0c0
      Andrew Jones authored
      
      
      * Implement `seal_debug_message`
      
      * Update docs
      
      * Fmt
      
      * Fix debug_print macro
      
      * review: use newline char
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      
      * Fix example
      
      * Revert to newline string
      
      * Fmt
      
      * Single call to debug_print for debug_println!
      
      * Add missing ReturnCode, still need to handle it
      
      * Inline debug_println!
      
      * If logging is disabled then subsequent calls will be a no-op
      
      * Fmt
      
      * Fix missing error match in experimental off-chain
      
      * Add safety comment to debug_message
      
      * Only re-export ink_prelude::format, and explain
      
      * Satisfy clippy
      
      * Encapsulate DEBUG_ENABLED global in module
      
      * Move seal_denug_message to unstable module
      
      * Update unstable and safety comments
      
      * Add more comments about the required features to be enabled on the node runtime
      
      * Add `ink-debug` feature, make debug messages a noop if not enabled
      
      * Fmt
      
      * Noop macro formatting
      
      * Enable debug printing for std
      
      * Comment formatting
      
      * Encapsulate static variable inside the function
      
      * Fmt
      
      * Remove debug_assert!(true) for disabled macros
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      2458e0c0
  2. 07 Jun, 2021 1 commit
    • Sacha L's avatar
      Fix URL (#803) · d4fd3f78
      Sacha L authored
      Fix link for FRAME in Substrate.dev Knowledgebase
      d4fd3f78
  3. 27 May, 2021 1 commit
    • Michael Müller's avatar
      Implement `seal_rent_status` (#798) · 2310400c
      Michael Müller authored
      * Implement `seal_rent_status`
      
      * Add `at_refcount: Option<u32>` param
      
      * Fix param
      
      * Improve `at_refcount` comment
      
      * Replace `u32` with `core::num::NonZeroU32`
      2310400c
  4. 26 May, 2021 2 commits
  5. 25 May, 2021 1 commit
  6. 21 May, 2021 1 commit
  7. 17 May, 2021 1 commit
  8. 11 May, 2021 2 commits
  9. 10 May, 2021 3 commits
    • Michael Müller's avatar
      Improve `contract-transfer` example (#789) · 342d79e0
      Michael Müller authored
      * Improve `contract-transfer` example
      
      * Test for assertion
      342d79e0
    • Michael Müller's avatar
      Enable dependabot for examples (#780) · 4c4c1fbd
      Michael Müller authored
      * Create workspace for examples
      
      * Enable dependabot for examples
      
      * Choose unique package names in workspace
      
      * Prevent nested workspaces
      
      * Add comments
      
      * Make crate and lib name equal
      4c4c1fbd
    • Michael Müller's avatar
      Implement MVP for new off-chain testing engine (#712) · 1a19f937
      Michael Müller authored
      * Add `engine` crate
      
      * Add `env_types` crate
      
      * Adapt `env`, `lang` and `storage`
      
      * Adapt examples
      
      * Adapt CI
      
      * Symlink license and readme
      
      * Throw `TypedEncoded` out of `engine`
      
      * Improve Erc20
      
      * Bump versions to rc3
      
      * Fix clippy error: Manual implementation of `Option::map` (#717)
      
      * Implement comments
      
      * Fix yml
      
      * Improve structure
      
      * Add tests
      
      * Fix function signature
      
      * Get rid of `engine`s singleton
      
      * Revert instantiate stuff
      
      * Implement review comments
      
      * Make `Storage` non-generic
      
      * Improve API for emmitted events
      
      * Migrate to `panic_any`
      
      * Clean up import
      
      * Import `panic_any`
      
      * Implement comments
      
      * Fix param
      
      * Use type
      
      * Store balances in chain storage
      
      * Fix tests
      
      * Use individual storage per contract
      
      * Implement comments
      1a19f937
  10. 30 Apr, 2021 1 commit
  11. 29 Apr, 2021 1 commit
  12. 21 Apr, 2021 3 commits
    • honeywest's avatar
      Fix prelude0421 (#775) · 5571724f
      honeywest authored
      * add arithmetic test
      
      * optimize code
      5571724f
    • Michael Müller's avatar
      Fix `Greeter` and run documentation tests in CI (#773) · c2e43fc6
      Michael Müller authored
      * Run documentation tests in CI
      
      * Use `format` from `prelude`
      
      The contract build will fail otherwise due to
      the usage of `std::string::String` because of
      `std::format`.
      
      * Remove superfluous mutable
      
      * Reduce amount of fuzz runs
      
      The CI run already takes quite long and I don't think
      it makes that much difference if we reduce the amount
      of runs. The bugs we catched so far were always catched
      with way less runs than even this new number.
      
      * Run documentation tests as part of `test` stage
      c2e43fc6
    • Michael Müller's avatar
      Polish readme (#774) · c0d9b789
      Michael Müller authored
      c0d9b789
  13. 19 Apr, 2021 2 commits
  14. 16 Apr, 2021 2 commits
  15. 15 Apr, 2021 2 commits
    • Michael Müller's avatar
      Fix nightly clippy errors (#760) · c50f93ce
      Michael Müller authored
      * Fix `clippy:wrong_self_convention`
      
      error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
         --> crates/primitives/src/key.rs:172:21
          |
      172 |     pub fn to_bytes(&self) -> [u8; 32] {
          |                     ^^^^^
          |
          = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
          = help: consider choosing a less ambiguous name
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
      
      error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
         --> crates/primitives/src/key.rs:186:29
          |
      186 |     fn to_bytes_be_fallback(&self) -> [u8; 32] {
          |                             ^^^^^
          |
          = help: consider choosing a less ambiguous name
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
      
      * Fix `clippy:branches_sharing_code` for `bitvec`
      
      error: all if blocks contain the same code at the end
         --> crates/storage/src/collections/bitvec/mod.rs:280:9
          |
      280 | /             *self.len += 1;
      281 | |             if value {
      282 | |                 self.last_mut()
      283 | |                     .expect("must have at least a valid bit in this case")
      284 | |                     .set()
      285 | |             }
      286 | |         }
          | |_________^
          |
          = note: `-D clippy::branches-sharing-code` implied by `-D warnings`
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
      
      * Fix `clippy:branches_sharing_code` for `stash`
      
      error: all if blocks contain the same code at the start
         --> crates/storage/src/collections/stash/mod.rs:308:9
          |
      308 | /         if prev_vacant == next_vacant {
      309 | |             // There is only one other vacant entry left.
      310 | |             // We can update the single vacant entry in a single look-up.
      311 | |             let entry = self
      ...   |
      315 | |                 .flatten()
      316 | |                 .expect("`prev` must point to an existing entry at this point");
          | |________________________________________________________________________________^
          |
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
      
      * Add benchmark for "Fix `clippy:wrong_self_convention`"
      
      * Revert "Add benchmark for "Fix `clippy:wrong_self_convention`""
      
      This reverts commit 9fabbfd1.
      
      * Remove empty line
      c50f93ce
    • Michael Müller's avatar
      Migrate to `panic_any` (#763) · 1f184b61
      Michael Müller authored
      * Migrate to `panic_any`
      
      * Clean up unnecessary `std`-cfg's in off-chain env
      1f184b61
  16. 14 Apr, 2021 2 commits
  17. 07 Apr, 2021 1 commit
  18. 01 Apr, 2021 2 commits
  19. 30 Mar, 2021 1 commit
  20. 25 Mar, 2021 1 commit
  21. 22 Mar, 2021 2 commits
  22. 19 Mar, 2021 2 commits
  23. 12 Mar, 2021 1 commit
  24. 09 Mar, 2021 2 commits
  25. 06 Mar, 2021 1 commit