- 08 Oct, 2020 1 commit
-
-
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
-
- 07 Oct, 2020 1 commit
-
-
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
-
- 05 Oct, 2020 1 commit
-
-
Hero Bird authored
* [lang] add doc to ink_lang::test proc. macro * [lang] add doc to ink_lang::trait_definition proc. macro * [examples] add whitespace to separate trait methods * [env] make it possible to use a primitive [u8; 32] as hash type * [lang] add doc-comment to #[ink::contract] proc. macro * [lang] add additional notes to #[ink::contract] docs * [lang] document #[ink::contract] selector controlling * [lang] add documentation for #[ink::contract] event definition and emitting * [lang] add doc section explaining env interaction via #[ink::contract] Explains Self::env() and self.env() interations. * [ci] add doc generation for ink_lang_ir and ink_lang_codegen * [lang/macro] fix docs Co-authored-by:
Michael Müller <mich@elmueller.net> * [lang/macro] fix typo Co-authored-by:
Michael Müller <mich@elmueller.net> * [ink/macro] fix typo Co-authored-by:
Michael Müller <mich@elmueller.net> * [lang/macro] improve docs Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [lang/macro] fix typo Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [lang/macro] fix typo Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [lang/macro] fix typo Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [env] implement Clear for Hash in terms of Clear for [u8; 32] * [storage] apply better formatting * [storage] make clearer that we use DynamicAllocator in test * [lang/macro] improve docs Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [lang/macro] fix typo Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [lang/macro] add note about payable constructors * [lang/macro] fix payable messages example * [lang/macro] add note about disabling dynamic storage allocator * [lang/macro] improve section about compile_as_dependency * [lang/macro] clear up EnvTypes SCALE encoding * [lang/macro] fix docs * [lang/macro] fix typo Co-authored-by:
Andrew Jones <ascjones@gmail.com> Co-authored-by:
Michael Müller <mich@elmueller.net> Co-authored-by:
Andrew Jones <ascjones@gmail.com>
-
- 02 Oct, 2020 1 commit
-
-
Hero Bird authored
* [env] remove crate-level re-exports for the hash module * [env] rename ink_env::println -> debug_println This makes the usage intent clearer. * [lang] remove deprecated method * [lang] hide all definitions that are only needed for codegen purposes * [lang] remove False, move True * [lang] remove unnecessary where bounds * [lang] add EnvAccess forwarding for built-in crypto hashes * [README] add ink_lang doc link * [env] fix on-chain compilation * [lang] apply clippy suggestion
-
- 01 Oct, 2020 2 commits
-
-
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)
-
Hero Bird authored
* [core] add new crypto hash API * [core] move new crypto hash definitions to dedicated module * [core] integrate the new env::hash module into core::storage module * [core] fix LayoutCryptoHasher impls * [core] add doc test to hash_encoded * [core] fix minor things in lazy hash map * [core] apply rustfmt * [core] remove old crypto hash module * [core] base DynamicAllocation::key implementation on new hash API * [core] remove old hash impls from on-chain env * [core] make DynamicAllocation::key impl work on Wasm32 target * [core] remove the entire deprecated ink_core::hash module
-
- 30 Sep, 2020 1 commit
-
-
Hero Bird authored
* [chores] update README to new ink! 3.0 syntax * [*] update all broken LICENSE and README.md symbolic links * [*] update all license headers Also be more strict about their dates: 2018-2020 for all
-
- 29 Sep, 2020 1 commit
-
-
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.
-