1. 04 Jan, 2021 1 commit
  2. 28 Dec, 2020 1 commit
  3. 11 Dec, 2020 1 commit
  4. 07 Dec, 2020 1 commit
  5. 02 Dec, 2020 3 commits
    • Michael Müller's avatar
      [storage] Implement `Drop` for `Pack` (#600) · bad0c88b
      Michael Müller authored
      * [storage] Implement `Drop` for `Pack`
      
      * Implement comments
      
      * Make `new_with_key` non-public
      
      * Remove `new_with_key`
      bad0c88b
    • Michael Müller's avatar
      Ensure topics are unique (#594) · 64eec2c2
      Michael Müller authored
      
      
      * Ensure topics are unique
      
      * Remove unavailable method
      
      * Fix salt appending in Wasm
      
      * Remove salt param
      
      * Add missing assignment
      
      * Update crates/lang/src/events.rs
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
      
      * Add suggestions
      
      * Remove always inline
      
      * Fix event hashing in examples
      
      * Make nightly clippy happy
      
      * Remove unnecessary return param
      
      * Do not use internal type for hash calculation
      
      * Hide internal type from docs
      
      * Expose `PrefixedValue` from ink_env::topics
      
      * Apply cargo fmt
      
      * Apply cargo fmt
      
      * Apply comments
      
      * Apply comments
      
      * Apply comments
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
      64eec2c2
    • Michael Müller's avatar
      Fix dead code (#596) · 8e8fe095
      Michael Müller authored
      * Remove dead impls
      
      * Remove dead code from test (subtract not implemented for Key)
      
      * Make nightly clippy happy
      8e8fe095
  6. 27 Nov, 2020 1 commit
    • Michael Müller's avatar
      Make `Lazy::Drop` always clear up all its storage (#597) · 2100fa7c
      Michael Müller authored
      * Make `Lazy::Drop` always clear up all its storage
      
      * Fix typo: yet ➜ get
      
      * Fix macro import
      
      * Make tests off-chain since they interact with storage now due to Drop
      
      * Make use of `REQUIRES_DEEP_CLEAN_UP`
      
      * Clear up all footprint cells
      
      * Fix typo: yet ➜ get
      
      * Fix case
      
      * Macro ➜ fn
      2100fa7c
  7. 26 Nov, 2020 1 commit
  8. 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
  9. 17 Nov, 2020 1 commit
  10. 12 Nov, 2020 1 commit
    • Michael Müller's avatar
      Simplify regression test (#574) · b4d27fe9
      Michael Müller authored
      * Simplify regression test
      
      * Add asserts for Some/None
      
      * Add assertions for expected ptr
      
      * Introduce second regression test
      
      * Introduce second regression test
      
      * Fix syntax
      b4d27fe9
  11. 11 Nov, 2020 1 commit
    • Michael Müller's avatar
      Make CI check format of UI tests (#534) · fe82d173
      Michael Müller authored
      * [ci] Check format of UI tests as well
      
      * [lang] Apply our formatting guidelines to UI tests
      
      * [ci] Make Gitlab happy
      
      * [ci] Remove superfluous space
      
      * [ci] Output rustfmt version
      
      * [ci] Tune rustfmt params
      
      * Remove todo's
      
      * Migrate erc721 ui test contract to recent example contract
      
      * Remove --version command used to debug
      
      * Apply cargo fmt
      
      * .gitlab-ci.yml formatting
      
      * Add main fn
      
      * Remove todo from stderr expect
      
      * Adapt fixtures
      
      * Revert "Adapt fixtures"
      
      This reverts commit 174c012e.
      
      * Adapt fixtures
      fe82d173
  12. 10 Nov, 2020 1 commit
    • Michael Müller's avatar
      Fix Option pointer bug (#570) · 1d086a3a
      Michael Müller authored
      * Advance ptr, even when 'None'
      
      * Revert me: Add minimal contract which reproduces bug
      
      * Fix typo: explicitely ➜ explicitly
      
      * Add regression test
      
      * Improve structure
      
      * Revert "Revert me: Add minimal contract which reproduces bug"
      
      This reverts commit 69cd40e2.
      
      * Fix clippy error 'result_unit_err'
      
      * Fix clippy error 'result_unit_err'
      
      * Fix typo: sucesful ➜ successful
      
      * Improve comment
      
      * Remove no-op
      
      * Remove type aliases for V1/V2
      1d086a3a
  13. 06 Nov, 2020 1 commit
  14. 04 Nov, 2020 1 commit
    • Michael Müller's avatar
      [lang] Improve invalid selector error (#561) · 0eca603f
      Michael Müller authored
      * [lang] Improve invalid selector message
      
      * [lang] Improve span
      
      * [lang] Return syn::Error instead of panicking
      
      * Make clippy happy
      
      * [lang] Reduce code dup with non_hex_err
      
      * [lang] Rename fn
      
      * [lang] Fix err functions
      
      * [lang] Add comments
      
      * [lang] Remove unnecessary lifetime
      0eca603f
  15. 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
  16. 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
  17. 27 Oct, 2020 3 commits
    • Michael Müller's avatar
      Revert "Test automatic issue creation (#547)" (#548) · 098c7f8e
      Michael Müller authored
      This reverts commit f581caae.
      098c7f8e
    • Michael Müller's avatar
      Test automatic issue creation (#547) · f581caae
      Michael Müller authored
      * Revert me: Make fuzz test fail
      
      * Revert me: Do not run fuzz tests for codecov
      f581caae
    • Michael Müller's avatar
      Fuzz after master merge + automatic issue creation. (#537) · 24235f09
      Michael Müller authored
      * Prefix fuzz tests
      
      * Fuzz extensively after master merge + create issue on failure
      
      * Do not fuzz on regular test runs
      
      * Migrate deprecated 'only' to 'rules'
      
      * Indent correctly
      
      * Fuzz each crate separately
      
      * Add feature ink-fuzz-tests to crates which are missing it
      
      * Increase QUICKCHECK_TESTS to 50k
      
      * Set timeout to 1h
      
      * Improve issue title + body
      
      * Revert "Set timeout to 1h"
      
      This reverts commit 5888abaf.
      
      * Revert "Add feature ink-fuzz-tests to crates which are missing it"
      
      This reverts commit e0ece29e.
      
      * Fuzz only crates which have the ink-fuzz-tests feature
      
      * Indent consistently with two spaces
      
      * Make GitLab CI linter happy
      
      * Create issue when at least one test fails
      24235f09
  18. 26 Oct, 2020 1 commit
  19. 22 Oct, 2020 3 commits
    • Robin Freyler's avatar
      4f8f8f16
    • Hero Bird's avatar
      Craft ink! 3.0-rc2 release (#536) · 75d3b99c
      Hero Bird authored
      * [releases] add release notes for ink! 3.0-rc2
      
      * [*] bump crate versions to ink! 3.0-rc2
      
      * [releases] add missing ink! 3.0-rc2 release note
      75d3b99c
    • Hero Bird's avatar
      Misc fixes for ink! 3.0-rc1 (#530) · 22b3014a
      Hero Bird authored
      * [benches] fix lazy benchmarks
      
      * [*] fix Cargo.toml documentation links
      
      * [readme] show CI status of master branch always
      
      * [readme] misc improvements
      
      * [storage] make re-export of LazyHashMap inline
      
      * [releases] add notes about ink_core split
      
      * [allocator] add some crate level docs
      
      * [storage] impl scale_info::TypeInfo for ink_storage::alloc::Box
      
      * [metadata] improve docs slightly
      
      * [storage] re-introduce StorageLayout impl for storage::Box
      22b3014a
  20. 21 Oct, 2020 4 commits
    • Michael Müller's avatar
      [storage] Add some tests for storage primitives (#529) · 2c1904fe
      Michael Müller authored
      * [chores] Fix typo entitiy ➜ entity
      
      * [storage] Extract push_pull_works_for_primitive macro
      
      * [storage] Add tests for Tuple
      
      * [storage] Add tests for Option, Result, Box
      
      * [storage] Add tests for Array
      
      * [storage] Add fuzz tests for primitives
      
      * [chores] Fix typo
      
      * [storage] Add fuzz test for HashMap::defrag
      
      * [storage] Improve unit tests
      
      * [storage] Clarify TestResult::discard
      2c1904fe
    • Hero Bird's avatar
      Fix lazy bug (#528) · 44a3f49e
      Hero Bird authored
      * [storage] make Lazy::laze constructor crate private
      
      * [storage] fix Lazy SpreadLayout impl behaving incorrectly when not used
      
      * [storage] remove redundant state replacement in StorageEntry::push_packed_root
      
      * [storage] add regression test for the fixed bug
      
      * [storage] clean up code between LazyCell and StorageEntry
      
      * [storage] apply rustfmt
      44a3f49e
    • Michael Müller's avatar
      [core] Optimization for storage2::BinaryHeap (#508) · 958dbc1c
      Michael Müller authored
      
      
      * BinaryHeap::new()
      
      * Failing FromIterator test
      
      * Dumb push impl
      
      * Dumb peek impl
      
      * Naive push implementation
      
      * Copy in some reference impls for inspiration
      
      * WIP: use storage2::Vec and implement pop
      
      * Fix sift_up
      
      * Fix sift_down
      
      * Test with heap from slice
      
      * Add pass through clear impl
      
      * Add storage trait impls
      
      * Add binary_heap bench, start experimentation
      
      # Conflicts:
      #	core/Cargo.toml
      
      * Add tests for push/pull from storage
      
      * Get basic bench working for pushing largest value
      
      * Fmt
      
      * Prevent storage from being cleared in test env
      
      * iter batched
      
      * Make inline setup to test consistency
      
      * Revert to iter_batch tests
      
      * Add populated cache benches
      
      * Fmt
      
      * Factor out bench push
      
      * Refactor benchmark loop on push
      
      * Configure warm-up and measurement times to improve consistency
      
      * Remove redundant test
      
      * Refactor push benches
      
      * Refactor push benches again
      
      * Add Pop benchmark
      
      * Fmt
      
      * Add some comments to the benchmarks
      
      * Remove some todos
      
      * Use iter_batched_ref
      
      * Fix pop benchmark name
      
      * Add test for worst case O(log n) push
      
      * Fmt
      
      * Add push test
      
      * Add peek and pop test
      
      * Fix up sift comments and log tests
      
      * Comments
      
      * Add Reverse wrapper type for min heaps
      
      * Fmt
      
      * Peek mut
      
      * Fmt
      
      * Add empty tests
      
      * Check complexity of pushing smallest value
      
      * Test drop clears cells
      
      * Fix stable build
      
      * Basic property test
      
      * Fix wasm build
      
      * Fmt
      
      * Derive Default, PartialEq, Eq
      
      * Add property test to feature
      
      * Fix doc links
      
      * Fmt
      
      * Remove commented out println
      
      * Avoid potential false positive
      
      * Add punctuation
      
      * Comments
      
      * Fmt
      
      * [core] Fix comment
      
      * [core] Remove unnecessary println
      
      * [core] Store two children in one Cell
      
      * [core] Add group_count() for fuzz tests
      
      * [core] Apply cargo fmt
      
      * [core] Fix imports for std env
      
      * [core] Improve comments describing read/write ops
      
      * [core] Improve feature switch
      
      * [core] Improve code readability
      
      * [core] Apply general comments
      
      * [core] Add group.exists() and make more use of Group API
      
      * [core] Major renaming
      
      * [core] Implement AlwaysPacked for Children
      
      * [core] Improve comments and panic messages
      
      * [core] Improve comments
      
      * [core] Improve comments
      
      * [core] Improve comments
      
      * [core] Improve comments
      
      * [core] Improve comments
      
      * [core] Improve comments
      
      * [core] Migrate children.exists() to children.is_empty()
      
      * [core] Fix children.is_empty()
      
      * [core] Bring back PackedLayout impl
      
      * Move binary_heap to crates
      
      * Make it compile
      
      * Fix up doc test and benches
      
      * Fmt
      
      * Fix license headers
      
      * [core] Improve Children API
      
      * [core] Use super instead of crate import
      
      * [core] Fix comments
      
      * [core] Rename Elements to ChildrenVector
      
      * [core] Fix comments
      
      * [core] Fix footprint
      
      * [core] Improve count()
      
      * [core] Move iterator to correct file
      
      * [core] Restrain visibility
      
      * [core] Fix comments
      
      * [core] Fix imports
      
      * [core] Rename ChildrenVector to ChildrenVec
      
      * [core] Improve imports
      
      * [storage] Use crate import instead of super
      
      * [storage] Remove some pub(super)
      
      * [storage] Add #[inline]
      
      * [storage] Rename push_to to insert
      
      * [storage] Add rational for child_count
      
      * [storage] Apply cargo fmt
      
      * [core] Give me back my blank line
      Co-authored-by: Andrew Jones's avatarAndrew Jones <ascjones@gmail.com>
      958dbc1c
    • Andrew Jones's avatar
      [core] storage2::BinaryHeap (#481) · 75ad19a2
      Andrew Jones authored
      * BinaryHeap::new()
      
      * Failing FromIterator test
      
      * Dumb push impl
      
      * Dumb peek impl
      
      * Naive push implementation
      
      * Copy in some reference impls for inspiration
      
      * WIP: use storage2::Vec and implement pop
      
      * Fix sift_up
      
      * Fix sift_down
      
      * Test with heap from slice
      
      * Add pass through clear impl
      
      * Add storage trait impls
      
      * Add binary_heap bench, start experimentation
      
      # Conflicts:
      #	core/Cargo.toml
      
      * Add tests for push/pull from storage
      
      * Get basic bench working for pushing largest value
      
      * Fmt
      
      * Prevent storage from being cleared in test env
      
      * iter batched
      
      * Make inline setup to test consistency
      
      * Revert to iter_batch tests
      
      * Add populated cache benches
      
      * Fmt
      
      * Factor out bench push
      
      * Refactor benchmark loop on push
      
      * Configure warm-up and measurement times to improve consistency
      
      * Remove redundant test
      
      * Refactor push benches
      
      * Refactor push benches again
      
      * Add Pop benchmark
      
      * Fmt
      
      * Add some comments to the benchmarks
      
      * Remove some todos
      
      * Use iter_batched_ref
      
      * Fix pop benchmark name
      
      * Add test for worst case O(log n) push
      
      * Fmt
      
      * Add push test
      
      * Add peek and pop test
      
      * Fix up sift comments and log tests
      
      * Comments
      
      * Add Reverse wrapper type for min heaps
      
      * Fmt
      
      * Peek mut
      
      * Fmt
      
      * Add empty tests
      
      * Check complexity of pushing smallest value
      
      * Test drop clears cells
      
      * Fix stable build
      
      * Basic property test
      
      * Fix wasm build
      
      * Fmt
      
      * Derive Default, PartialEq, Eq
      
      * Add property test to feature
      
      * Fix doc links
      
      * Fmt
      
      * Remove commented out println
      
      * Avoid potential false positive
      
      * Add punctuation
      
      * Comments
      
      * Fmt
      
      * Move binary_heap to crates
      
      * Make it compile
      
      * Fix up doc test and benches
      
      * Fmt
      
      * Fix license headers
      75ad19a2
  21. 20 Oct, 2020 1 commit
  22. 16 Oct, 2020 1 commit
  23. 09 Oct, 2020 5 commits
  24. 08 Oct, 2020 3 commits
    • Hero Bird's avatar
      Rename EnvTypes -> Env (and many other renamings) (#513) · 8edbfd28
      Hero Bird authored
      * [env] rename Env -> EnvBackend, TypedEnv -> TypedEnvBackend
      
      * [env] rename EnvError -> Error
      
      * [*] rename ink_env::EnvTypes -> Environment
      
      Namely rename:
      ink_env::EnvTypes -> Environment
      ink_env::DefaultEnvTypes -> DefaultEnvironment
      
      * [*] update cfg-if dependency 0.1 -> 1.0
      
      * [alloc] rename ink_alloc -> ink_allocator
      
      * [env] forgot to rename in lib.rs
      
      * [env, lang] fix some bugs with ink_env::EnvError -> Error renaming
      
      * [ci] adjust renaming of ink_alloc -> ink_allocator
      
      * [env] apply rustfmt
      
      * [lang/macro] re-enable disabled UI test
      
      * [examples] DNS: apply rustfmt
      
      * [examples] ERC-20, ERC-721: apply rustfmt
      8edbfd28
    • Andrew Jones's avatar
      f197a986
    • Hero Bird's avatar
      Implement event topic code generation (#510) · 6f701e50
      Hero Bird authored
      * [env] remove unnecessary copy of no longer used mod.rs
      
      * [env, lang] make crates compile again under newest Rust nightly
      
      * [env] on-chain: enhance ScopedBuffer
      
      Add append_encoded and take_appended methods.
      
      * [env] remove old Topics trait
      
      * [env] add new Topics infrastructure
      
      * [env] implement new Topics infrastructure for on/off chain environments
      
      * [env] remove dummy event
      
      * [env] make env::topics::state mod externally accessible
      
      It stays hidden in docs.
      
      * [lang/codegen] generate proper Topics impls for ink! events
      
      * [env] apply rustfmt
      
      * [lang/codegen] fix codegen for events without topics
      
      * [lang/macro] fix UI test
      
      * [env] off-chain: clean-up slightly
      
      * [examples] ERC-20: improve tests for event topics
      
      * [env] remove commented-out line
      
      * [lang/codegen] include event signature into topics
      
      This is the same as it is done for non-anonymous Solidity events.
      The signature of an ink! event is: ContractName::EventName.
      E.g. for ERC-20's Transfer event it is: Erc20::Transfer
      
      * [examples] ERC-20: adjust test for changes with event topics
      
      * [lang/ir] add support for anonymous events
      
      * [lang/codegen] add codegen for anonymous events
      
      * [lang/ir] apply rustfmt
      
      * [lang/macro] comment out failing unit test
      
      Fails due to rustc version mismatch and some recent error display change.
      
      * [examples] apply rustfmt
      6f701e50
  25. 07 Oct, 2020 1 commit
    • Andrew Jones's avatar
      Deserialize metadata (#488) · d7a47f4a
      Andrew Jones authored
      * Make public fields for InkProject and specs
      
      * Make layout fields public
      
      * Use scale-info from branch
      
      * Add Deserialize derives, use ReadOnlyRegistry
      
      * Deserialize contract metadata specs
      
      * Deserialize layout2 specs
      
      * WIP decode hex
      
      * Use impl_serde crate for hex byte string serde
      
      * Test for selector deserialization
      
      * Fix up custom deserialization
      
      * Export selector and add to_vec impl
      
      * Fmt
      
      * Fix up spec segments IntoCompact
      
      * Make name public
      
      * Update to latest scale-info master
      
      * Replace pub fields with getters
      
      * Replace pub fields with getters in spec
      
      * Fix search replace error with any::TypeId
      
      * Use scale-info 0.4
      
      * Fmt
      
      * Remove commented out getter
      
      * Fix up other scale-info deps
      
      * Clippy
      
      * Fix up message and constructor spec builder method names
      
      * Serialize empty bytes vec without 0x prefix
      d7a47f4a