1. 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
  2. 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
  3. 22 Oct, 2020 2 commits
    • 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
  4. 09 Oct, 2020 3 commits
  5. 08 Oct, 2020 2 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
    • 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
  6. 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
  7. 05 Oct, 2020 1 commit
  8. 01 Oct, 2020 1 commit
    • Hero Bird's avatar
      Split ink_core crate into ink_env and ink_storage (#500) · cfe52e98
      Hero Bird authored
      * [*] split ink_core into ink_env and ink_storage
      
      The workspace does not yet compile!
      
      * [env] make compile again
      
      * [env] fix doc tests
      
      * [storage] make crate compile again
      
      * [env] fix some doc comment links
      
      * [README] flipper example: remove unused import
      
      * [storage/derive] fix compilation of generated code
      
      * [README] add ink_storage and ink_env doc links
      
      * [env, primitives, storage] fix docs
      
      * [lang] make compile again
      
      * [lang/codegen] use absolute paths in #[ink::test] proc. macro
      
      * [examples] make compile again
      
      * [*] apply rustfmt
      
      * [env] remove unneeded dependencies
      
      * [storage] remove all unneeded dependencies and crate features
      
      * [*] update outdated dependencies
      
      * [env, lang] remove unused dependencies
      
      * [*] fix comments
      
      * [*] fix some intra doc links
      
      * [ci] adjust to split ink_env and ink_storage crates
      
      * [ci] forgot to handle split ink_env and ink_storage in docs
      
      * [storage] fix fuzz tests
      
      * [examples] apply rustfmt
      
      * [examples] apply rustfmt (ERC-721)
      cfe52e98
  9. 30 Sep, 2020 1 commit
  10. 29 Sep, 2020 1 commit
    • Hero Bird's avatar
      Move all ink! crates into the crates directory (#494) · 31276d89
      Hero Bird authored
      * [*] move all ink! crates into crates/ directory
      
      * [ci] adjust .gitab-ci.yml to crates/ directory
      
      * [ci] fix GitLab .gitlab-ci.yml (attempt #2)
      
      * [ci] forgot some lines in attempt #2
      
      * [examples] fix example smart contracts
      
      They need to readjust their paths for the crates/ directory.
      31276d89