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. 17 Sep, 2021 2 commits
    • Michael Müller's avatar
      Fix nightly clippy warnings (#925) · 4155ebe2
      Michael Müller authored
      * Derive `Default`
      
      * Fix `field is never read`
      4155ebe2
    • Michael Müller's avatar
      Fix nightly clippy errors (#921) · c2ea64b5
      Michael Müller authored
      * Fix `clippy::derivable_impls`
      
      * Fix `dead_code`
      
      The `struct` is only a public-facing API.
      
      * Get rid of `allow(dead_code)`
      
      * Revert "Get rid of `allow(dead_code)`"
      
      This reverts commit 6b9a95f9.
      
      * Revert "Fix `dead_code`"
      
      This reverts commit 42ab18be.
      
      * New approach to fix `dead_code`
      
      * Fix naming
      
      * Reflect that `return_type` never needs to be read
      
      * Fix typo
      c2ea64b5
  3. 14 Sep, 2021 1 commit
  4. 13 Sep, 2021 2 commits
  5. 10 Sep, 2021 3 commits
  6. 09 Sep, 2021 1 commit
  7. 07 Sep, 2021 1 commit
  8. 06 Sep, 2021 1 commit
  9. 03 Sep, 2021 1 commit
  10. 02 Sep, 2021 1 commit
  11. 30 Aug, 2021 1 commit
  12. 25 Aug, 2021 2 commits
  13. 19 Aug, 2021 1 commit
    • Sergejs Kostjucenko's avatar
      Change CI variables source to Vault (#890) · 45800385
      Sergejs Kostjucenko authored
      * Change pipeline to use vault secrets
      
      Add more vault CI variables
      
      Add more vault CI variables
      
      Add comment line
      
      Pass Vault url var to downstream job
      
      Pass Vault path and role vars to downstream job
      
      Comment out vault-secrets from ink-waterfall
      
      Test vault-secrets on another job
      
      Revert last change
      
      Hardcoded Vault variables
      
      Remove hardcoded vars
      
      Try to get vault vars from another stage
      
      Populate secrets directly in the job
      
      Move Vault access variables to the top
      
      Add secrets to non related jobs for test
      
      Add secrets to non related jobs for test purpose
      
      From secrets from non related jobs
      
      Fix typo
      
      Move vault vars to anchor
      
      Move anchor call after job vars
      
      * Move vault access vars to the top
      45800385
  14. 16 Aug, 2021 1 commit
  15. 12 Aug, 2021 1 commit
  16. 11 Aug, 2021 1 commit
  17. 05 Aug, 2021 2 commits
    • Michael Müller's avatar
      Import quickcheck macro only for bump allocator (#887) · 3c8b1030
      Michael Müller authored
      * Import quickcheck macro only for bump allocator
      
      The fuzz tests exist only in the bump allocator.
      
      * Apply `cargo fmt`
      3c8b1030
    • 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
  18. 02 Aug, 2021 1 commit
  19. 30 Jul, 2021 1 commit
  20. 28 Jul, 2021 1 commit
  21. 22 Jul, 2021 2 commits
  22. 21 Jul, 2021 1 commit
  23. 20 Jul, 2021 2 commits
    • Hernando Castano's avatar
      Add Bump Allocator (#831) · 5fd8f876
      Hernando Castano authored
      * Add bump allocator skeleton
      
      * Implement `alloc` for our bump allocator
      
      * Make the allocator usable globally
      
      * Remove unused `init()` function
      
      * Nightly RustFmt
      
      * Use global mutable static instead of Mutex
      
      This will reduce our use of dependencies which will hopefully
      reduce our final Wasm binary size.
      
      Also, apparently spinlocks aren't actually all that efficient.
      See: https://matklad.github.io/2020/01/02/spinlocks-considered-harmful.html
      
      * Stop assuming that memory is allocated at address `0`
      
      * Remove semicolon
      
      * Use correct address when checking if we're OOM
      
      * Remove unnecessary unsafe block
      
      * Return null pointers instead of panicking
      
      Panicking in the global allocator is considered undefined behaviour.
      
      * Use `checked_add` when getting upper limit memory address
      
      * Use `MAX` associated const instead of `max_value`
      
      * Inline `GlobalAlloc` methods
      
      * Turns out I can't early return from `unwrap_or_else` 🤦
      
      * Rollback my build script hacks
      
      * Add initialization function to allocator
      
      * Add some docs
      
      * Make the bump allocator the default allocator
      
      * Allow bump allocator to be tested on Unix platforms
      
      * Remove unecessary checked_add
      
      * Add error messages to unrecoverable errors
      
      * Remove `init` function from allocator
      
      Instead we now request a new page whenver we need it, regardless
      of whether or not it's the first time we're allocating memory.
      
      * Try switching from `mmap` to `malloc` when in `std` env
      
      * Fix `is_null()` check when requesting memory
      
      * Stop requesting real memory for `std` testing
      
      Instead this tracks pages internally in the same way that the Wasm
      environment would. This means we can test our allocator implementation
      instead of fighting with `libc`.
      
      * Gate the global bump allocator when not in `std`
      
      * Allow for multi-page allocations
      
      * Update the module documentation
      
      * Override `alloc_zeroed` implementation
      
      * Forgot to update Wasm target function name
      
      * Appease the spellchecker
      
      * Use proper English I guess
      
      * Get rid of `page_requests` field
      
      * Explicitly allow test builds to use test implementation
      
      * All link to zero'd Wasm memory reference
      
      * Check that our initial pointer is 0 in a test
      
      * Add `cfg_if` branch for non-test, `std` enabled builds
      
      * Simplify `cfg_if` statement
      5fd8f876
    • Michael Müller's avatar
      Fix `clippy::self-named-constructor` (#866) · 4ff763c9
      Michael Müller authored
      error: constructor `lazy` has the same name as the type
      	   --> crates/storage/src/lazy/mod.rs:121:5
      
      	       121 | /     pub(crate) fn lazy(key: Key) -> Self {
      	       122 | |         Self {
      	       123 | |             cell: LazyCell::lazy(key),
      	       124 | |         }
      	       125 | |     }
      		   | |_____^
      
      	= note: `-D clippy::self-named-constructor` implied by `-D warnings`
      	= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructor
      4ff763c9
  24. 19 Jul, 2021 2 commits
  25. 13 Jul, 2021 4 commits
  26. 09 Jul, 2021 2 commits
    • Karel L. Kubat's avatar
      Implement binary_search for `collections::Vec` (#836) · 36bbdec1
      Karel L. Kubat authored
      
      
      * [storage] Implement binary_search
      
      * [storage] Add binary_search testcase for missing smaller element
      
      * [storage] use indexing instead of Vec::get
      Co-authored-by: Hero Bird's avatarRobin Freyler <robbepop@web.de>
      
      * [storage] Port binary_search tests from core
      
      * [storage] Format tests
      
      * [storage] Format tests
      
      * Remove old comment
      Co-authored-by: Hero Bird's avatarRobin Freyler <robbepop@web.de>
      
      * [storage] Incorporate review feedback
      
      * [CI] add comparator to spellcheck
      
      Porting binary_search to the storage Vec, including the documentation found in core, led to a failure in spellcheck. Since core is considered to be correct, it is updated on spellcheck.
      
      * incorporate review feedback
      
      * add permalink to stdlib source
      
      * Split long line
      
      * fix examples
      
      * RustFmt the doc examples
      Co-authored-by: Hero Bird's avatarRobin Freyler <robbepop@web.de>
      Co-authored-by: default avatarHernando Castano <hernando@hcastano.com>
      36bbdec1
    • Michael Müller's avatar
      Use different mechanism to trigger `ink-waterfall` CI (#851) · 1747b345
      Michael Müller authored
      * Move `pre_cache` script to hidden folder
      
      * Add `trigger_pipeline` script from Polkadot
      
      * Use `trigger_pipeline` to trigger `ink-waterfall` CI
      
      * Update GitLab config
      
      * Update GitLab config
      
      * Add debug output
      
      * Revert me: Remove all other stages
      
      * More debugging
      
      * More debugging
      
      * More debugging
      
      * More debugging
      
      * Fix syntax
      
      * Check for env variable
      
      * Revert "Revert me: Remove all other stages"
      
      This reverts commit a15ec5b0.
      
      * Decrease response time
      
      * Remove unnecessary variables
      
      * Fix link
      
      * CI: chore
      
      * CI: add rules everywhere
      
      * CI: add rust info
      
      * Add image name and tag
      
      * Revert "Add image name and tag"
      
      This reverts commit 88cd94f0
      
      .
      
      * CI: add image to run in k8s
      Co-authored-by: Denis_P's avatarDenis P <denis.pisarev@parity.io>
      1747b345
  27. 08 Jul, 2021 1 commit