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. 10 May, 2021 1 commit
    • 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