- 04 Oct, 2021 1 commit
-
-
Robin Freyler authored
* add selector_id! and selector_bytes! proc macros * implement blake2x256! macro * re-export blake2x256! macro from ink_lang crate * apply rustfmt * add BLAKE2b to hunspell dictionary * add UI tests for blake2x256! macro * improve span for non-literal inputs to blake2x256! macro * add non-literal input failure UI test to blake2x256! macro * improve error span for non-literal selector_{id,bytes}! macro inputs * rename UI test blake2x256 -> blake2x256_macro * rename UI test * add UI tests for selector_id! proc. macro * fix UI test * fix UI test expectation * add UI tests for seletor_bytes! macro * make flaky and broken codecov CI happy again ...
-
- 21 Sep, 2021 3 commits
-
-
Robin Freyler authored
* move ink_lang_macro UI tests into macro-specific folders * fix GitLab CI formatting pass * migrate back to a single trybuild test case This is because our CI currently fails if we have multiple test cases.
-
Robin Freyler authored
* check that argument in #[ink(namespace = "argument")] is a Rust identifier * add UI tests for #[ink(namespace = "..")] ink! property # Conflicts: # crates/lang/macro/tests/compile_tests.rs # crates/lang/macro/tests/ui/fail/N-01-namespace-invalid-identifier.rs # crates/lang/macro/tests/ui/fail/N-01-namespace-invalid-identifier.stderr # crates/lang/macro/tests/ui/fail/N-02-namespace-invalid-type.rs # crates/lang/macro/tests/ui/fail/N-02-namespace-invalid-type.stderr # crates/lang/macro/tests/ui/fail/N-03-namespace-missing-argument.rs # crates/lang/macro/tests/ui/fail/N-03-namespace-missing-argument.stderr * fix error message for non-identifier namespace argument
-
Robin Freyler authored
-
- 20 Sep, 2021 1 commit
-
-
Robin Freyler authored
* make #[ink(selector = ..)] take an integer instead of a string Also warn about deprecation if a user still uses the old string parameter. * update tests for new selector int parameter * update contract examples for new selector int parameter * remove unused regex dependency from ink_lang_ir Also remove unnecessary regex dependency from ink_lang_codegen * update README for new selector int parameter Also update namespace parameter description. * update preliminary release notes * update spellcheck dict
-
- 09 Sep, 2021 1 commit
-
-
Michael Müller authored
* Bump version to rc5 * Add release notes
-
- 06 Sep, 2021 1 commit
-
-
Michael Müller authored
-
- 25 Aug, 2021 1 commit
-
-
Michael Müller authored
-
- 05 Aug, 2021 1 commit
-
-
Michael Müller authored
* Add clippy flag `--all-targets` * Fix `redundant_closure` * Fix `redundant_clone` * Fix `clone_on_copy` * Fix `needless_borrow` * Fix `bool_assert_comparison` * Fix `len_zero` * Fix `stable_sort_primitive` * Forward feature * Allow `type_complexity` * Fix `unnecessary_mut_passed` * Fix `manual_map` * Fix `match_like_matches_macro` * Remove duplicate test * Fix `new_without_default` * Fix `match_ref_pats` * Allow clippy rules for tests * Fix `unit_arg` * Apply `cargo fmt` * Add explanatory comments * Remove `--all-targets` for Wasm tests * Fix `or_fun_call` * Fix `bool_comparison` * Fix `needless_collect` * Revert "Forward feature" This reverts commit 472c50ed. * Fix `bool_assert_comparison` * Deactivate test because of feature issue with dev-dependencies * Add flag * Fix `unique_topics` tests * Allow `clippy:bool_assert_comparison` * Revert "Fix `bool_assert_comparison`" This reverts commit bceb2dc2. * Revert "Fix `bool_comparison`" This reverts commit 02960f98. * Fix flags positioning * Add comment for clarification * Fix comparison * Do not check all targets for target = wasm32 * Adapt `check-workspace.sh` with clippy flag * Add clarification comment * Ignore test * Revert `CLIPPY_FLAGS` hack * Link ink! issue * Fix `assert`'s * Fix `assert`'s
-
- 22 Jul, 2021 1 commit
-
-
Michael Müller authored
* Add `Fixed` entry for #842 * Replace `3.0.0-rc3` with `3.0.0-rc4` * Add bump allocator to release notes
-
- 13 Jul, 2021 1 commit
-
-
GreenBaneling | Supercolony authored
* Remove not used Salt * Updated unit test to cover case with code generation for trait. * Renamed seconds "new" constructor. Seems the same naming for constructors with different signature causes compilation error on linux platform. * Let's try to move trait definition into contract. Maybe it will resolve compilation error in CI. * Moved trait implementation to separate test. * Changed version of docker image to staging. Added `cc --version` in info section * Apply suggestions from code review Co-authored-by:
Michael Müller <mich@elmueller.net> Co-authored-by:
Michael Müller <mich@elmueller.net>
-
- 08 Jul, 2021 1 commit
-
-
Karel L. Kubat authored
* [lang] catch illegal struct destructuring pattern in ink! message arguments. * fmt
-
- 02 Jul, 2021 1 commit
-
-
Michael Müller authored
* Add example usage comments to env methods * Remove superfluous line * wip * Remove debug code * Make doc comment examples compile * Remove superfluous line * Surround with complete contract code * Experiment with macro to reduce code duplication * Revert "Experiment with macro to reduce code duplication" This reverts commit f7319126 . * Add complete contract code in doc tests * Remove unnecessary `[dev-dependencies]` * Improve code in doc tests * Fix doc tests * Improve code appearance * Add better doc test examples * Make `gas` be of type `u64` instead of `Balance` * Make `gas` be of type `u64` instead of `Balance` * Make `gas` be of type `u64` instead of `Balance` * Apply suggestions from code review Co-authored-by:
Robin Freyler <robin.freyler@gmail.com> * Add simple access permission contract * Fix syntax Co-authored-by:
Robin Freyler <robin.freyler@gmail.com>
-
- 17 Jun, 2021 1 commit
-
-
Michael Müller authored
* Enable `spellcheck` CI job * Fix spellchecking mistakes * Implement review suggestion * Reword `>= 2`
-
- 09 Jun, 2021 2 commits
-
-
Michael Müller authored
* Spellcheck examples as well * Remove non-existent method * Fix language * Fix clippy `needless_borrow` https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow * Fix spellchecking for examples * Add `block_timestamp` in `engine` * Update examples/erc721/lib.rs Co-authored-by:
Robin Freyler <robin.freyler@gmail.com> * Find solution for words which are non-existent Co-authored-by:
Robin Freyler <robin.freyler@gmail.com>
-
Andrew Jones authored
* Implement `seal_debug_message` * Update docs * Fmt * Fix debug_print macro * review: use newline char Co-authored-by:
Robin Freyler <robin.freyler@gmail.com> * Fix example * Revert to newline string * Fmt * Single call to debug_print for debug_println! * Add missing ReturnCode, still need to handle it * Inline debug_println! * If logging is disabled then subsequent calls will be a no-op * Fmt * Fix missing error match in experimental off-chain * Add safety comment to debug_message * Only re-export ink_prelude::format, and explain * Satisfy clippy * Encapsulate DEBUG_ENABLED global in module * Move seal_denug_message to unstable module * Update unstable and safety comments * Add more comments about the required features to be enabled on the node runtime * Add `ink-debug` feature, make debug messages a noop if not enabled * Fmt * Noop macro formatting * Enable debug printing for std * Comment formatting * Encapsulate static variable inside the function * Fmt * Remove debug_assert!(true) for disabled macros Co-authored-by:
Robin Freyler <robin.freyler@gmail.com>
-
- 26 May, 2021 1 commit
-
-
Michael Müller authored
* Fix typo * Add `seal_rent_params` * Make `rent_params` only available on `ink-unstable` * wip * wip * Wrap `seal_rent_params` in `__unstable__` * Add `rent_params` to experimental off-chain env * Fix return type * Remove comments * Remove debugging code * Remove `ink-unstable` feature
-
- 25 May, 2021 1 commit
-
-
Michael Müller authored
-
- 10 May, 2021 1 commit
-
-
Michael Müller authored
* Add `engine` crate * Add `env_types` crate * Adapt `env`, `lang` and `storage` * Adapt examples * Adapt CI * Symlink license and readme * Throw `TypedEncoded` out of `engine` * Improve Erc20 * Bump versions to rc3 * Fix clippy error: Manual implementation of `Option::map` (#717) * Implement comments * Fix yml * Improve structure * Add tests * Fix function signature * Get rid of `engine`s singleton * Revert instantiate stuff * Implement review comments * Make `Storage` non-generic * Improve API for emmitted events * Migrate to `panic_any` * Clean up import * Import `panic_any` * Implement comments * Fix param * Use type * Store balances in chain storage * Fix tests * Use individual storage per contract * Implement comments
-
- 21 Apr, 2021 1 commit
-
-
Michael Müller authored
* Run documentation tests in CI * Use `format` from `prelude` The contract build will fail otherwise due to the usage of `std::string::String` because of `std::format`. * Remove superfluous mutable * Reduce amount of fuzz runs The CI run already takes quite long and I don't think it makes that much difference if we reduce the amount of runs. The bugs we catched so far were always catched with way less runs than even this new number. * Run documentation tests as part of `test` stage
-
- 19 Apr, 2021 1 commit
-
-
Michael Müller authored
* Update `parity-scale-codec` in `rand-extension` example * Remove `funty` pin
-
- 07 Apr, 2021 1 commit
-
-
Austin Abell authored
* Replace array impls with const generics * remove dead code comment * bump scale codec version
-
- 01 Apr, 2021 1 commit
-
-
Michael Müller authored
* Use `#[ink::test]` instead of `#[test]` * Import `ink_lang` * Apply cargo fmt
-
- 12 Mar, 2021 1 commit
-
-
Michael Müller authored
* Add `.config` * Fix hunspell complaints * Run spellcheck in CI * Improve hunspell config * Fix 'pre' prefix * Remove `|` from dictionary * Add missing words to dictionary * Add missing words to dictionary * Add missing words to dictionary * Fix `n`-th → nth * Fix indentation * Remove comment * Fix number * Fix spacing * Remove regex * Apply suggestions from code review Co-authored-by:
Bernhard Schuster <bernhard@ahoi.io> * Fix dictionary * Fix dictionary * Implement review comments * Replace SRML with FRAME * Replace occurrences of 'spreaded' * Tuning text regarding 'spreaded' * Update crates/storage/src/lazy/entry.rs Co-authored-by:
Hero Bird <robin.freyler@gmail.com> Co-authored-by:
Bernhard Schuster <bernhard@ahoi.io> Co-authored-by:
Hero Bird <robin.freyler@gmail.com>
-
- 02 Mar, 2021 1 commit
-
-
Hero Bird authored
* adjust rustfmt.toml * add ink-fizz-tests feature guard to some test API * update ink! crates to version 3.0.0-rc3 * write release notes for ink! 3.0-rc3 * apply formatting to imports_granularity
-
- 19 Feb, 2021 1 commit
-
-
Michael Müller authored
* Fix build warning * Fix `warn(clippy::redundant_slicing)` * Remove unnecessary feature * Reduce amount of ci fuzz tests, since it times out sometimes * Apply rustfmt * Revert "Remove unnecessary feature" This reverts commit fdad2e89. * Revert "Fix build warning" This reverts commit 00ea9038. * Fix build warning * Revert me: Hotfix for funty issue * Remove unstable `panic_any` * Fix use
-
- 05 Feb, 2021 1 commit
-
-
Andrew Jones authored
* Temporarily use new scale-info branch until release * [metadata] update scale-info, remove string parameterization * Revert "Temporarily use new scale-info branch until release" This reverts commit 08a9c2ac * Upgrade scale-info to 0.6 * Add missing version update
-
- 28 Jan, 2021 1 commit
-
-
Andrew Jones authored
* Update to scale-info 0.5 * Update TypeInfo manual impls * Update parity-scale-code to 2.0 * Add Encode ?Sized bounds * Change type display name for Key custom TypeInfo impl * Add missing ?Sized constraint * Fmt * Missing ?Sized bound in example
-
- 13 Jan, 2021 1 commit
-
-
Hero Bird authored
* [lang/ir] generalize conflicting attribute error reporting # Conflicts: # crates/lang/ir/src/ir/chain_extension.rs * [lang/macro] add UI tests for payable constructors * fix docs (review suggestion) Co-authored-by:
Michael Müller <michi@parity.io> * fix docs (review suggestion) Co-authored-by:
Michael Müller <michi@parity.io> Co-authored-by:
Michael Müller <michi@parity.io>
-
- 12 Jan, 2021 1 commit
-
-
Hero Bird authored
* add new tests for #[ink(namespace = ..)] and #[ink(selector = ..)] attrs * [lang] implement new errors for ink! attributes: namespace, selector * add #[ink(extension = N: u32)] attribute * apply rustfmt * [lang] add initial implementation of chain extension proc. macro * [lang] rename AttributeArg -> AttributeFrag * rename AttributeFrag::kind field to arg * rename AttributeArgKind -> AttributeArg Also introduce a new AttributeArgKind type and AttributeArg::kind method. * [lang] apply rustfmt * add Display impl for AttributeArgKind * [lang] use AttributeArgKind in sanitize_attributes and ensure_first methods * [lang/ir] improve error reporting for duplicate ink! attributes * [lang/ir] refactoring and improvements to chain extension IR impl * [lang/ir] add tests for IR implementation of chain extensions * [lang/ir] remove some code dupe * [lang/ir] add getters to ChainExtension * [lang/ir] add re-exports for ChainExtension definitions * [lang/codegen] add initial impl for ChainExtensions * [env] add ChainExtension assoc type to the Environment trait * [lang] initial impl to make it possible to use chain extension syntax * [env] improvements to chain extensions API Also removes the unstable crate feature guarding the feature. * [lang/macro] add UI test for chain extension * [lang/macro] register new UI test * [lang/codegen] fix some codegen bugs with new chain extension feature * [lang, env] apply rustfmt * [lang/ir] apply clippy suggestions and fix outdated error messages * [lang/ir] fix some tests and incorrect error messages * [examples] apply clippy suggestion * add ErrorCode to ink! chain extension trait * add FromStatusCode trait to ink_lang * add #[ink(expect_output)] and #[ink(expect_ok)] attributes Also add their handling for the #[ink::chain_extension] proc. macro. * add ink_lang::IsResultType trait * add ChainExtensionMethodInputs iterator * hide docs for IsResultType trait * add some docs to chain extension codegen * implement expect_ok and expect_output where bounds in codegen * apply code review suggestions by (cmichi) * add ReturnCode::into_u32 getter * change return type of ext::call_chain_extension: RetCode -> u32 Chain extensions do not follow the general scheme of error return code because they have their own set of errors that is custom defined by the author of the chain extension. * [lang] add ChainExtension trait Not yet sure we need it. * change EnvBackend::call_chain_extension signature The new signature is much more low-level and supports all the different ways to call a chain extension method. This commit already implements the chain extension call on the on-chain environment. More work needs to be done to properly support this for the off-chain environment. * remove old high-level API for calling chain extension methods * [env] add new high-level module to handle chain extension calls * rename ChainExtensionMethodInstance -> ChainExtensionMethod * [env] add doc examples to chain extension method API * apply rustfmt * [env] clippy: allow complex type in ChainExtensionMethod type state * silence some warnings * re-export IsResultType from ink_lang crate * [lang] remove FromStatusCode trait This trait already exists in the ink_env crate. * [lang] update codegen for chain extensions Not yet done but close. * [lang] update simple chain extension test Compiles now again. * apply rustfmt * update some license headers * [env] fix where bound * extend chain extension test case to cover all cases * add messages for read_small, access and unlock_access * fix some bugs with chain extension method signatures in test * fix some bugs and docs in chain extension test * fix test * update quickcheck to 1.0 * [env] implement chain extension calling for off-chain env The new interface is much more lower-level and it is still impossible to use chain state from within the chain extension call. The latter must be fixed as soon as the off-chain environment receives its rework. * apply rustfmt * add docs to #[ink::chain_extension] proc. macro * rename env_types -> env everywhere * make doc examples for #[ink::chain_extension] compile * add yet another technical limitation * make link to simple.rs test case more stable (point to revision) * fix docs (code suggestion) Co-authored-by:
Michael Müller <michi@parity.io> * fix docs (code suggestion) Co-authored-by:
Michael Müller <michi@parity.io> * fix docs (code suggestion) Co-authored-by:
Michael Müller <michi@parity.io> * fix docs (code suggestion) Co-authored-by:
Michael Müller <michi@parity.io> * add dev. note to Backend::call_chain_extension * fix docs example (code suggestion) Co-authored-by:
Andrew Jones <ascjones@gmail.com> * [env] chain extension: make doc examples/tests compile * fix some doc comments according to review suggestions * review suggestion: telling -> meaning * fix docs (review suggestion) Co-authored-by:
Andrew Jones <ascjones@gmail.com> * fix docs (review suggestion) Co-authored-by:
Andrew Jones <ascjones@gmail.com> * improve docs (review suggestion) Co-authored-by:
Andrew Jones <ascjones@gmail.com> * rename chain extension test file * analyse_error_code add doc comments for possible errors * rename expect_ok -> returns_result and expect_output -> handle_status Some examples and docs might be invalidated or outdated. * [lang/ir] improve error reporting for ink! namespace attribute with missing parameter * [lang/*] implement new handle_status and returns_result attributes * [env] apply rustfmt Co-authored-by:
Michael Müller <michi@parity.io> Co-authored-by:
Andrew Jones <ascjones@gmail.com>
-
- 04 Jan, 2021 1 commit
-
-
Andrew Jones authored
-
- 02 Dec, 2020 1 commit
-
-
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:
Hero 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:
Hero Bird <robin.freyler@gmail.com>
-
- 11 Nov, 2020 1 commit
-
-
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
-
- 04 Nov, 2020 1 commit
-
-
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
-
- 22 Oct, 2020 2 commits
-
-
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
-
- 09 Oct, 2020 3 commits
-
-
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
* [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 1 commit
-
-
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
-