- 28 Sep, 2022 1 commit
-
-
Michael Müller authored
* Add missing words to spellcheck dictionary * Add `contracts-node.scale` metadata Has been exported via cargo install subxt-cli subxt metadata > contracts-node.scale For `substrate-contracts-node` v0.20.0. * Run `substrate-contracts-node` in CI * Invoke `cargo doc` separately for each crate * Add MVP for E2E testing framework * Add E2E tests for `contract-transfer` example * Add ToDo comment for migration to `state_call` RPC * Update to new `ink` entrance crate * Add ToDo for `node_log_contains` * Update to `ink` entrance crate * Migrate to `state_call` RPC * Always initialize `env_logger` * Use latest `subxt` release * Remove superfluous TODO * Apply `cargo fmt` * Adapt test fixtures
-
- 21 Sep, 2022 2 commits
-
-
Andrew Jones authored
* (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * (cargo-release) version 4.0.0-alpha.3 * Bump inter crate dependency versions * Update CHANGELOG.md for alpha.3 * Human error * Update CHANGELOG.md Co-authored-by:
Hernando Castano <HCastano@users.noreply.github.com> * Remove redundant circular dependency on ink_env Co-authored-by:
Hernando Castano <HCastano@users.noreply.github.com>
-
Andrew Jones authored
* Bump versions * Update CHANGELOG * Add Storage Rework detail * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by:
Michael Müller <mich@elmueller.net> * Update CHANGELOG.md Co-authored-by:
Michael Müller <mich@elmueller.net> * Add reference to examples * Update CHANGELOG.md * Add version to ink_primitives Co-authored-by:
Michael Müller <mich@elmueller.net>
-
- 20 Sep, 2022 1 commit
-
-
Michael Müller authored
-
- 13 Sep, 2022 1 commit
-
-
Andrew Jones authored
* Add ink_storage_traits crate * Remove unused hash layout trait and impls * Remove dependency between storage traits and ink_env * Move Storable definition and derive to ink_storage_traits * Replace usages of primitives storable with new location * Fmt * README and license sym links * Fix up CI script crates and codegen symlinks * update CI crates again * Add StorageLayout impl for Hash * Fix up collections ui tests * Fix up storage traits tests * Add missing feature to codegen syn dependency * Fix storage traits reference in env * Add missing no_std cfg_attr * Fix example build * Fmt * Fix example * Move Clear trait to primitives * Fix example * Fix env access * Fix up docs * Trying to fix UI tests * Fix LICENSE and README paths
-
- 24 Aug, 2022 1 commit
-
-
Hernando Castano authored
* Add release notes for `v4.0.0-alpha.1` * Mention breaking changes in changelog * Bump version to `4.0.0-alpha.1` * Fix header levels after merge * Fix some formatting * Add some notes about the breaking changes * Add links to PRs * Add note about linting move * Bump `ink_linting` crate to `4.0.0-alpha.1` * Remove `nightly` usage from delegator build script * Use dashes instead of minus signs Co-authored-by:
Michael Müller <mich@elmueller.net> * Beef up description of linter PR Co-authored-by:
Michael Müller <mich@elmueller.net> * Move compatibility section to top of release notes * Explicitly use `stable` channel Our Docker images still default to `nightly` * Build contracts with `stable` toolchain * Install `rust-src` component before building examples * Run the rest of the CI stages again Co-authored-by:
Michael Müller <mich@elmueller.net>
-
- 04 Aug, 2022 1 commit
-
-
Alexander Theißen authored
-
- 15 Jul, 2022 1 commit
-
-
Hernando Castano authored
-
- 25 May, 2022 1 commit
-
-
Michael Müller authored
* Bump version number to `3.2.0` * Update release notes * Remove reverted fix from changelog
-
- 18 May, 2022 1 commit
-
-
Michael Müller authored
* Updated release notes * Bump versions to `3.1.0` * Update release notes * Update release notes * Remove `eth_compatibility/Cargo.toml` * Update links to releases
-
- 06 Apr, 2022 1 commit
-
-
Hernando Castano authored
* Bump `ink_lang_codegen` crate to `v3.0.1` * Actually, don't bump in `ink_lang_macro` * Bump to version `3.0.1` * Add release notes * Add section for `examples/` release procedure * Add some details to release checklist * Move `Version 3.0.1` out of `Unreleased` * More updates to the release checklist * Mark all examples as `publish = false` * Make release notes consistent with old releases Co-authored-by:
Michael Müller <mich@elmueller.net> * Add mention to `crates.io` * `package.publish` value shouldn't be a string * Update RELEASES_CHECKLIST.md * Update RELEASES_CHECKLIST.md Co-authored-by:
Michael Müller <mich@elmueller.net>
-
- 17 Mar, 2022 1 commit
-
-
Michael Müller authored
* Bump version * Add release notes * Update readme * Update release notes * Update release notes * Update release notes to reflect stabilized `seal_delegate_call`
-
- 10 Mar, 2022 1 commit
-
-
dependabot[bot] authored
-
- 02 Mar, 2022 1 commit
-
-
Michael Müller authored
* Replace default off-chain engine with experimental one, remove old one * Remove old off-chain testing env tests from examples * Bring back `PrefixedValue` * Make `clippy` happy * Move files in correct place * Add missing file * Move `PrefixedValue` into tests * Add comment
-
- 23 Feb, 2022 1 commit
-
-
Michael Müller authored
* Bump crate versions to `3.0.0-rc9` * Improve documentation of `ink_storage::Mapping` * Hide `Memory` * Update release notes * Remove `Memory` * Remove `Memory` * Fix doc test * Add `Changed` section to release notes * Update release notes * Update release notes
-
- 18 Feb, 2022 1 commit
-
-
Michael Müller authored
-
- 16 Feb, 2022 1 commit
-
-
Andrew Jones authored
* Update parity-scale-codec and scale-info dependencies * Add note to RELEASES.md * Fix UI tests
-
- 10 Feb, 2022 1 commit
-
-
Davide Galassi authored
* Enable use of global secp256k1 context Context creation is expensive. Use the preallocated context that ships with the library. * Cargo fmt * Set `secp256k1` crate as optional * `global-context` feature depends on `std` * Its usage scope was already limited to `std` environment * ink-engine requires `secp256k1` feature
-
- 20 Jan, 2022 1 commit
-
-
Michael Müller authored
* Bump rc7 to rc8 * Update changelog * Apply suggestions from code review Co-authored-by:
GreenBaneling | Supercolony <XgreenX9999@gmail.com> * Fix `polkadot-js/api` links + mention PR #1100 * `s/polkadots/polkadot/g` * Fix typo: contract ➜ contracts Co-authored-by:
GreenBaneling | Supercolony <XgreenX9999@gmail.com> Co-authored-by:
Hernando Castano <hernando@hcastano.com>
-
- 17 Jan, 2022 1 commit
-
-
Michael Müller authored
* Update `secp256k1` from 0.20.3 to 0.21.2 * Use `sign_ecdsa_recoverable` instead of deprecated function * Use `sign_ecdsa_recoverable` instead of deprecated function
-
- 16 Dec, 2021 1 commit
-
-
Hernando Castano authored
* Update blake2 requirement from 0.9 to 0.10 Updates the requirements on [blake2](https://github.com/RustCrypto/hashes) to permit the latest version. - [Release notes](https://github.com/RustCrypto/hashes/releases) - [Commits](https://github.com/RustCrypto/hashes/compare/groestl-v0.9.0...blake2-v0.10.0 ) --- updated-dependencies: - dependency-name: blake2 dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> * Use `Blake2Var` instead of `VarBlake2b` * Move to compile time checks when creating `blake2` hashers Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 08 Dec, 2021 2 commits
-
-
dependabot[bot] authored
* Update sha3 requirement from 0.9 to 0.10 Updates the requirements on [sha3](https://github.com/RustCrypto/hashes) to permit the latest version. - [Release notes](https://github.com/RustCrypto/hashes/releases) - [Commits](https://github.com/RustCrypto/hashes/compare/groestl-v0.9.0...sha3-v0.10.0 ) --- updated-dependencies: - dependency-name: sha3 dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> * Use `Digest` trait over `FixedOutput` The `Digest` trait is now a wrapper around `FixedOutput` (among others), so we only need to keep `Digest` around. * RustFmt Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by:
Hernando Castano <hernando@hcastano.com>
-
dependabot[bot] authored
* Update sha2 requirement from 0.9 to 0.10 Updates the requirements on [sha2](https://github.com/RustCrypto/hashes) to permit the latest version. - [Release notes](https://github.com/RustCrypto/hashes/releases) - [Commits](https://github.com/RustCrypto/hashes/compare/groestl-v0.9.0...sha2-v0.10.0 ) --- updated-dependencies: - dependency-name: sha2 dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> * Use `Digest` trait over `FixedOutput` The `Digest` trait is now a wrapper around `FixedOutput` (among others), so we only need to keep `Digest` around. * RustFmt Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by:
Hernando Castano <hernando@hcastano.com>
-
- 30 Nov, 2021 1 commit
-
-
Michael Müller authored
* Switch from `libsecp256k1` to `secp256k1` * Remove unused dep
-
- 26 Nov, 2021 1 commit
-
-
Alexander Theißen authored
* Explicitly link against rlibc to get non-buggy version of memcpy * Revert "Disable overflow checks for examples (#1034)" This reverts commit b2256d9c.
-
- 25 Nov, 2021 1 commit
-
-
Michael Müller authored
* Bump `3.0.0-rc6` ➔ `3.0.0-rc7` * Update release notes * Update release notes * Remove outdated changelog note
-
- 24 Nov, 2021 1 commit
-
-
Michael Müller authored
* Remove the state rent API * Apply `cargo fmt`, make clippy happy * Make clippy happy * Remove unused `sp-arithmetic` dep * Remove `RentFraction` and related deps * Update test fixtures
-
- 09 Nov, 2021 1 commit
-
-
Hernando Castano authored
-
- 22 Oct, 2021 1 commit
-
-
Michael Müller authored
* Upgrade `libsecp256k1` from `0.3.5` ➔ `0.7.0` * Include off-chain dependencies only when necessary * Include off-chain dependency only when necessary * Include off-chain dependency only when necessary * Switch to `secp256k1` for `eth_compatibility` crate * Remove conditional dependency * Fix serialize * Switch to `secp256k1` crate everywhere * Switch to `secp256k1` crate everywhere * Fix compilation for `wasm32` target * Ensure enabled features are not merged for targets * Make clippy happy * Use resolver `2` in all examples * Switch to `libsecp256k1` 0.7.0 * Use default features * Bring comment back * Reduce diff * Remove unnecessary import * Update rustfmt config to edition 2018 * Use resolver `2` for workspace
-
- 21 Oct, 2021 1 commit
-
-
Robin Freyler authored
* update Rust edition 2018 -> 2021 * fix some doc tests due to Rust edition 2021 upgrade
-
- 18 Oct, 2021 1 commit
-
-
Michael Müller authored
* Bump `rc5` ➔ `rc6` * Update release notes
-
- 14 Oct, 2021 1 commit
-
-
GreenBaneling | Supercolony authored
* Implemented ecdsa recovery function. Added method `to_eth_address` and `to_account_id`. Added tests. * Cargo fmt * Added `ECDSA` and `Ethereum` to dictionary * Fixed comments according a new spellcheck * Fixes according comments in review. * Fixed build issue for wasm * Use struct instead of alias for `EthereumAddress`. * cargo fmt --all * Simplified `ecdsa_recover`. USed symbolic links instead files. * Added documentation for `to_eth_address` and `to_account_id` methods. * Renamed `to_account_id` into `to_default_account_id` * Cargo fmt * Removed DeRef trait. Now field of `EthereumAddress` and `ECDSAPublicKey` is private. * Fixed doc test for ecdsa_recover in EnvAccess
-
- 11 Oct, 2021 1 commit
-
-
Andrew Jones authored
* Bump scale-info requirement to 0.9 * Update manual TypeInfo impls * Use decode feature of scale-info * scale-info 1.0 * Fix tests, 0 indexing on type registry * Update some missing examples * TMP: use ink rc5 for compat with cargo-contract * Update RELEASES.md * Bump versions back to 1.0 * Introduce versioning of ink metadata format * Update RELEASES.md Co-authored-by:
Michael Müller <michi@parity.io> * Update crates/metadata/src/lib.rs Co-authored-by:
Michael Müller <michi@parity.io> * Clippy: allow large enum variant * [storage] Allow one variant enum to derive SpreadLayout (#942) * [storage] Allow one variant enum to derive SpreadLayout I have an enum that has only one variant, and I want to store the enum value in the storage. I might add new variants later in development, so the enum is not useless. The current implementation doesn't allow to derive the `SpreadLayout` trait for one variant enums, and I fixed it on this PR. # Sample code ```rust #![cfg_attr(not(feature = "std"), no_std)] use ink_lang as ink; #[derive( Copy, Clone, scale::Encode, scale::Decode, ink_storage::traits::SpreadLayout, ink_storage::traits::PackedLayout, )] #[cfg_attr( feature = "std", derive(scale_info::TypeInfo, ink_storage::traits::StorageLayout) )] pub enum MyEnum { A, } #[ink::contract] mod enum_test { use super::MyEnum; #[ink(storage)] pub struct EnumTest { value: MyEnum, } impl EnumTest { #[ink(constructor)] pub fn new() -> Self { Self { value: MyEnum::A } } #[ink(message)] pub fn get(&self) -> MyEnum { self.value } } } ``` Without this change, I get this error. ``` $ cargo +nightly contract build [1/5] Building cargo project Updating crates.io index Compiling enum_test v0.1.0 (/private/var/folders/zn/l2f569z56vnghtt524x1mv6w0000gn/T/cargo-contract_FM50JF) error: proc-macro derive panicked --> /snip/enum_test/lib.rs:10:5 | 10 | ink_storage::traits::SpreadLayout, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: message: can only operate on enums ``` * Update crates/storage/derive/src/spread_layout.rs Co-authored-by:
Robin Freyler <robbepop@web.de> * cargo fmt Co-authored-by:
Robin Freyler <robbepop@web.de> * CI: remove gcda files from cache (#943) * Update pretty_assertions requirement from 0.7.1 to 1.0.0 (#944) Updates the requirements on [pretty_assertions](https://github.com/colin-kiegel/rust-pretty-assertions) to permit the latest version. - [Release notes](https://github.com/colin-kiegel/rust-pretty-assertions/releases) - [Changelog](https://github.com/colin-kiegel/rust-pretty-assertions/blob/main/CHANGELOG.md) - [Commits](https://github.com/colin-kiegel/rust-pretty-assertions/compare/v0.7.1...v1.0.0 ) --- updated-dependencies: - dependency-name: pretty_assertions dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add 'versioning' to spellcheck dict Co-authored-by:
Michael Müller <michi@parity.io> Co-authored-by:
tash-2s <81064017+tash-2s@users.noreply.github.com> Co-authored-by:
Robin Freyler <robbepop@web.de> Co-authored-by:
Denis Pisarev <denis.pisarev@parity.io> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 21 Sep, 2021 1 commit
-
-
Robin Freyler authored
-
- 09 Sep, 2021 1 commit
-
-
Michael Müller authored
* Bump version to rc5 * Add release notes
-
- 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
-
- 20 Jul, 2021 1 commit
-
-
Hernando Castano authored
* Add bump allocator skeleton * Implement `alloc` for our bump allocator * Make the allocator usable globally * Remove unused `init()` function * Nightly RustFmt * Use global mutable static instead of Mutex This will reduce our use of dependencies which will hopefully reduce our final Wasm binary size. Also, apparently spinlocks aren't actually all that efficient. See: https://matklad.github.io/2020/01/02/spinlocks-considered-harmful.html * Stop assuming that memory is allocated at address `0` * Remove semicolon * Use correct address when checking if we're OOM * Remove unnecessary unsafe block * Return null pointers instead of panicking Panicking in the global allocator is considered undefined behaviour. * Use `checked_add` when getting upper limit memory address * Use `MAX` associated const instead of `max_value` * Inline `GlobalAlloc` methods * Turns out I can't early return from `unwrap_or_else`
🤦 * Rollback my build script hacks * Add initialization function to allocator * Add some docs * Make the bump allocator the default allocator * Allow bump allocator to be tested on Unix platforms * Remove unecessary checked_add * Add error messages to unrecoverable errors * Remove `init` function from allocator Instead we now request a new page whenver we need it, regardless of whether or not it's the first time we're allocating memory. * Try switching from `mmap` to `malloc` when in `std` env * Fix `is_null()` check when requesting memory * Stop requesting real memory for `std` testing Instead this tracks pages internally in the same way that the Wasm environment would. This means we can test our allocator implementation instead of fighting with `libc`. * Gate the global bump allocator when not in `std` * Allow for multi-page allocations * Update the module documentation * Override `alloc_zeroed` implementation * Forgot to update Wasm target function name * Appease the spellchecker * Use proper English I guess * Get rid of `page_requests` field * Explicitly allow test builds to use test implementation * All link to zero'd Wasm memory reference * Check that our initial pointer is 0 in a test * Add `cfg_if` branch for non-test, `std` enabled builds * Simplify `cfg_if` statement
-
- 09 Jun, 2021 1 commit
-
-
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
-
- 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
-