1. 12 Mar, 2021 1 commit
  2. 04 Feb, 2021 1 commit
    • Hero Bird's avatar
      Use BLAKE2b 256-bit hashes for selectors (#680) · e22a0feb
      Hero Bird authored
      * use BLAKE2b 256-bit hashes for selectors
      
      Before this PR we accidentally used BLAKE2b 512-bit hashing.
      Using 256-bit versions is important for smart contracts so that smart contracts can compute selector hashes on their own through the built-in contracts-pallet hash support which includes BLAKE2b 256-bit but not 512-bit.
      
      * apply rustfmt
      e22a0feb
  3. 04 Jan, 2021 1 commit
  4. 08 Oct, 2020 1 commit
    • 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
  5. 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
  6. 25 Aug, 2020 1 commit
    • Hero Bird's avatar
      Sync with Substrate RC6 (#478) · ba5aed19
      Hero Bird authored
      
      
      * [core] remove get_runtime_storage and invoke_runtime
      
      * [core] invalidate all implementations and usages of ext functions
      
      * [core] adjust ext_ functions in ext.rs
      
      * [core] add ReturnFlags to public API
      
      * [core] remove off-chain impls for get_runtime_storage and invoke_runtime
      
      * [core] rename ext::ext_input -> ext::input
      
      * [core] change return type of get_contract_storage
      
      Previously returned Option<Result<R>> and now returns Result<Option<R>>.
      This change is more pragmatic.
      
      * [core] add conversion from ext::Error to EnvError
      
      * [core] on-chain: add new utilities for static buffer modifications
      
      - EncodeScope: for efficiently appending encoded values
      - ScopedBuffer: for efficiently chunking buffers
      
      * [core] add impls for on-chain property getters
      
      * [core] remove no longer needed utiltiy function
      
      * [core] on-chain: new impl for invoke_contract and eval_contract
      
      * [core] on-chain: new impl for get_contract_storage
      
      * [core] on-chain: new impl for decode_input
      
      We should also rename this to simply "input" later.
      
      * [core] on-chain: new impl for output
      
      Now also uses the new ReturnFlags abstraction.
      
      * [core] on-chain: new impl for instantiate_contract
      
      * [core] on-chain: remove unused API
      
      * [core] on-chain: move EncodeScope and ScopedBuffer to buffer.rs
      
      * [core] on-chain: implement rest of the on-chain API
      
      * [core] add ScopedBuffer::take_bytes
      
      * [core] Add Env::call_chain_extension trait method
      
      * [core] remove unused helper methods
      
      * [core] on-chain: simplify static buffer
      
      - No more length
      - No more encodable
      - Only full range access
      
      * [core] add env::call_chain_extension public API
      
      * [core] rename Env::output -> return_value
      
      * [core] off-chain: adjust a bunch of off-chain methods to new interfaces
      
      * [core] off-chain: adjust get_contract_storage return type
      
      * [core] off-chain: remove RuntimeCallHandler and RuntimeStorage facilities
      
      * [core] off-chain: adjust some tests
      
      * [core] off-chain: remove OffCall utility type
      
      * [core] off-chain: implement chain extension handler
      
      * [core] adjust panic message
      
      * [core] apply rustfmt
      
      * [core] apply clippy suggestion
      
      * [core] off-chain: re-export ChainExtension and ChainSpec types from test API
      
      * [core] on-chain: retain panic messages
      
      * [core] rename ext_ to seal_ for all on-chain functions
      
      * [alloc] fix some warnings and add some minor comments
      
      * [core] add wasm_import_module = "seal0"
      
      * [core] introduce new Seal error codes
      
      * [core] directly return ReturnCode from C-FII
      
      * [core] make transfer return Result
      
      * [core] improve some doc comments
      
      * rename some old errors to their new names
      
      * [core] remove unused env errors and rename some off-chain errors
      
      * [core] fix bug in ReturnFlags::set_reverted (formerly known as set_trapped)
      
      * [core] avoid From impl for () for OffChainError
      
      * [lang] adjust lang layer for changes in core
      
      - Remove invoke_runtime
      - Remove get_runtime_storage
      - Rename gas_price -> weight_to_fee
      - Add ReturnFlags to return_value call
      
      * [core] turn redundant asserts into debug_assert
      
      * [core] be more strict when handling ext::get_storage error
      
      * [core] implement clippy suggestion
      
      * [examples] remove no longer useful runtime-storage contract
      
      We no longer support the get_runtime_storage host function.
      It will eventually be reintroduced at a later point through chain extensions.
      
      * [core] disable chain extensions by default
      
      Can be enabled by experimental crate feature:
      - unstable_chain_extensions
      
      * [lang] apply clippy suggestion to use matches! macro
      
      * [core] fix docs for ext_return
      Co-authored-by: Alexander Theißen's avatarAlexander Theißen <alex.theissen@me.com>
      
      * [core] fix return type of api::return_value
      
      Not sure why the compiler didn't mention this return type failure ...
      Co-authored-by: Alexander Theißen's avatarAlexander Theißen <alex.theissen@me.com>
      
      * [core] fix doc comment of Env::return_value
      
      * [core] introduce RawReturnCode as a layer between Seal error codes and ink!
      
      * [alloc] make #[alloc_error_handler] private
      
      * [alloc, core] move alloc_handler from ink_alloc to ink_core
      
      * [core] replace useless intermediate ReturnCode type
      
      * [core] rename RawReturnCode -> ReturnCode
      
      * [core] apply rustfmt
      
      * [core] apply rustfmt
      
      * [core] off-chain: rename invoke -> eval for chain extension calling
      
      * [core] use Ptr32 and Ptr32Mut to encapsulate pointer -> u32 conversions
      
      * [core] make new Ptr32 and Ptr32Mut abstractions more type safe
      Co-authored-by: Alexander Theißen's avatarAlexander Theißen <alex.theissen@me.com>
      ba5aed19
  7. 05 Jun, 2020 1 commit
  8. 20 Nov, 2019 2 commits
  9. 24 May, 2019 1 commit
  10. 22 Apr, 2019 1 commit
  11. 27 Feb, 2019 1 commit
  12. 06 Feb, 2019 1 commit
  13. 02 Jan, 2019 1 commit
  14. 16 Dec, 2018 3 commits
  15. 15 Dec, 2018 1 commit