- 27 Oct, 2020 1 commit
-
-
Michael Müller authored
This reverts commit e0ece29e.
-
- 26 Oct, 2020 9 commits
-
-
Michael Müller authored
This reverts commit 5888abaf.
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
* Fix typo * Make minimum_balance docs clearer * Fix transfer() docs
-
- 23 Oct, 2020 5 commits
-
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
-
Michael Müller authored
* [examples] Add missing accumulator/std * Fix check-examples.sh * Fix check-workspaces.sh * Line up results * Complete crates * Update scripts/check-examples.sh Co-authored-by:
Hero Bird <robin.freyler@gmail.com> * Introduce differentiation purely_std_crate/also_wasm_crate * Include crates lang/codegen and metadata in CI testing Co-authored-by:
Hero Bird <robin.freyler@gmail.com>
-
- 22 Oct, 2020 3 commits
-
-
Robin Freyler authored
-
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
-
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
-
- 21 Oct, 2020 6 commits
-
-
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
-
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
-
Michael Müller authored
* [chores] Fix typo * [chores] Update list of topics * [chores] ink ➜ ink! * [chores] Update Riot channel link
-
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 <ascjones@gmail.com>
-
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
-
Michael Müller authored
* [examples] Rustify return types * [examples] Add trait-erc20 Example * [examples] Improve readability * [examples] Remove unneeded export * [examples] Move definitions into module * [examples] Commentify * [examples] Improve comment * [examples] Improve comment * [examples] Fix typo * [examples] Add Error::InsufficientAllowance * [examples] Add Errors section in doc comments * [examples] Make allowance_of_or_zero and balance_of_or_zero inplace * [examples] Ensure allowance is only updated if transfer worked * [examples] Apply cargo fmt * [examples] Add test which would have catched allowance changing on failed transfer * [examples] Apply cargo fmt * [examples] Remove unnecessary assert for ()
-
- 20 Oct, 2020 1 commit
-
-
Michael Müller authored
-
- 16 Oct, 2020 1 commit
-
-
Andrew Jones authored
* Add 0x prefix if missing * Fmt
-
- 09 Oct, 2020 6 commits
-
-
Robin Freyler authored
-
Robin Freyler authored
-
Hero Bird authored
* [*] normalize authors for all ink! crates * [lang, storage] add extern crate proc_macro This is somehow needed for cargo publishing.
-
Hero Bird authored
* [storage/derive] add missing info for publish * [prelude] cargo publish cannot handle non-default lib.rs paths ... * [primitives] add path for finding benchmarks Needed by cargo unleash.
-
Denis_P authored
* debug (CI): putting reports in artifacts [skip ci] * debug (CI): remove unneded jobs, revert lated * change (doc): fix artifacts * change (CI): CARGO_HOME goes to branch level to avoid collapses; pre-population for it * change (CI): small fix to codecov * change (CI): DRY prepop script * change (CI): DRY prepop script * change (CI): docstring for pre-pop cache script * change (CI): no cache for codecov report
-
Hero Bird authored
* [chores] add release notes for ink! 3.0 * [releases] 3.0: add note about trait definitions and implementations * [*] bump all ink! crate versions to 3.0.0-rc1 * [releases] fix elipsis * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] add note to lazy * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] add missing release notes for ink! 2.1 * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] fix typo, improve sentences Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [releases] improve payable docs * [*] update crate descriptions Co-authored-by:
Andrew Jones <ascjones@gmail.com>
-
- 08 Oct, 2020 3 commits
-
-
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
-
Andrew Jones authored
-
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)
-
Denis_P authored
-