1. 20 Sep, 2021 1 commit
    • Robin Freyler's avatar
      Make #[ink(selector = ..)] take a u32 parameter instead of a string (#928) · c9a97bbe
      Robin Freyler authored
      * make #[ink(selector = ..)] take an integer instead of a string
      
      Also warn about deprecation if a user still uses the old string parameter.
      
      * update tests for new selector int parameter
      
      * update contract examples for new selector int parameter
      
      * remove unused regex dependency from ink_lang_ir
      
      Also remove unnecessary regex dependency from ink_lang_codegen
      
      * update README for new selector int parameter
      
      Also update namespace parameter description.
      
      * update preliminary release notes
      
      * update spellcheck dict
      c9a97bbe
  2. 11 Aug, 2021 1 commit
  3. 05 Aug, 2021 1 commit
    • Michael Müller's avatar
      Run clippy with `--all-targets` (#884) · 4b909706
      Michael Müller authored
      * Add clippy flag `--all-targets`
      
      * Fix `redundant_closure`
      
      * Fix `redundant_clone`
      
      * Fix `clone_on_copy`
      
      * Fix `needless_borrow`
      
      * Fix `bool_assert_comparison`
      
      * Fix `len_zero`
      
      * Fix `stable_sort_primitive`
      
      * Forward feature
      
      * Allow `type_complexity`
      
      * Fix `unnecessary_mut_passed`
      
      * Fix `manual_map`
      
      * Fix `match_like_matches_macro`
      
      * Remove duplicate test
      
      * Fix `new_without_default`
      
      * Fix `match_ref_pats`
      
      * Allow clippy rules for  tests
      
      * Fix `unit_arg`
      
      * Apply `cargo fmt`
      
      * Add explanatory comments
      
      * Remove `--all-targets` for Wasm tests
      
      * Fix `or_fun_call`
      
      * Fix `bool_comparison`
      
      * Fix `needless_collect`
      
      * Revert "Forward feature"
      
      This reverts commit 472c50ed.
      
      * Fix `bool_assert_comparison`
      
      * Deactivate test because of feature issue with dev-dependencies
      
      * Add flag
      
      * Fix `unique_topics` tests
      
      * Allow `clippy:bool_assert_comparison`
      
      * Revert "Fix `bool_assert_comparison`"
      
      This reverts commit bceb2dc2.
      
      * Revert "Fix `bool_comparison`"
      
      This reverts commit 02960f98.
      
      * Fix flags positioning
      
      * Add comment for clarification
      
      * Fix comparison
      
      * Do not check all targets for target = wasm32
      
      * Adapt `check-workspace.sh` with clippy flag
      
      * Add clarification comment
      
      * Ignore test
      
      * Revert `CLIPPY_FLAGS` hack
      
      * Link ink! issue
      
      * Fix `assert`'s
      
      * Fix `assert`'s
      4b909706
  4. 09 Jun, 2021 1 commit
    • 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
  5. 11 May, 2021 1 commit
  6. 10 May, 2021 2 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
      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
  7. 14 Apr, 2021 1 commit
  8. 04 Jan, 2021 1 commit
  9. 23 Nov, 2020 1 commit
    • Michael Müller's avatar
      Some minor fixes (#587) · fd541250
      Michael Müller authored
      * Fix typo
      
      * Fn does not need to take mutable self
      
      * Fix naming: #[ink(implemenetation)] ➜ #[ink(impl)]
      
      * #[ink(storage)] can not be applied to enum
      
      * Fix typo: accesses ➜ accessed
      
      * Fix typo: sturctures ➜ structures
      fd541250
  10. 03 Nov, 2020 1 commit
    • Michael Müller's avatar
      Add demonstration how to mock transferred_balance (#555) · a35f76ac
      Michael Müller authored
      * [chores] implicitely ➜ implicitly
      
      * [examples] Add demonstration of how to mock transferred_balance
      
      * [lang] Fix clippy 'needless_lifetimes'
      
      Error was:
      
      explicit lifetimes given in parameter types where they could
      be elided (or replaced with `'_` if needed by type declaration)
      
      * [lang] Apply cargo fmt
      
      * [examples] Fix param
      a35f76ac
  11. 30 Oct, 2020 1 commit
    • Michael Müller's avatar
      Add example which uses ext_transfer + ext_terminate (#554) · 89620e7d
      Michael Müller authored
      
      
      * [chores] Fix typo: invokation ➜ invocation
      
      * [chores] Fix typo: timstamp ➜ timestamp
      
      * [chores] Fix typo: ininitialized ➜ initialized
      
      * [env] Implement terminate_contract in off-chain env
      
      * [examples] Add lock-until
      
      * [env] Implement proper off-chain testing for ext_terminate
      
      * Apply suggestions from code review
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
      
      * [env] Fix Environment type
      
      * [env] Derive Balance/AccountId from Environment
      
      * [env] Fix types in macro
      
      * [examples] Remove lock-until
      
      * [examples] Add contract-terminate
      
      * [examples] Add contract-transfer
      
      * [examples] Make clippy happy
      
      * [examples] Fix example name
      
      * [examples] Remove Default impls
      
      * [examples] Move macro to contract-terminate/test_utils
      
      * [env] Migrate macro to fn which gets Environment type param
      
      * [env] Add explanatory dev comment
      
      * [examples] Allow clippy::new_without_default
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
      89620e7d