1. 19 Aug, 2021 1 commit
    • Sergejs Kostjucenko's avatar
      Change CI variables source to Vault (#890) · 45800385
      Sergejs Kostjucenko authored
      * Change pipeline to use vault secrets
      Add more vault CI variables
      Add more vault CI variables
      Add comment line
      Pass Vault url var to downstream job
      Pass Vault path and role vars to downstream job
      Comment out vault-secrets from ink-waterfall
      Test vault-secrets on another job
      Revert last change
      Hardcoded Vault variables
      Remove hardcoded vars
      Try to get vault vars from another stage
      Populate secrets directly in the job
      Move Vault access variables to the top
      Add secrets to non related jobs for test
      Add secrets to non related jobs for test purpose
      From secrets from non related jobs
      Fix typo
      Move vault vars to anchor
      Move anchor call after job vars
      * Move vault access vars to the top
  2. 11 Aug, 2021 1 commit
  3. 05 Aug, 2021 1 commit
    • Michael Müller's avatar
      Run clippy with `--all-targets` (#884) · 4b909706
      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
  4. 22 Jul, 2021 1 commit
  5. 21 Jul, 2021 1 commit
  6. 13 Jul, 2021 1 commit
  7. 09 Jul, 2021 1 commit
    • Michael Müller's avatar
      Use different mechanism to trigger `ink-waterfall` CI (#851) · 1747b345
      Michael Müller authored
      * Move `pre_cache` script to hidden folder
      * Add `trigger_pipeline` script from Polkadot
      * Use `trigger_pipeline` to trigger `ink-waterfall` CI
      * Update GitLab config
      * Update GitLab config
      * Add debug output
      * Revert me: Remove all other stages
      * More debugging
      * More debugging
      * More debugging
      * More debugging
      * Fix syntax
      * Check for env variable
      * Revert "Revert me: Remove all other stages"
      This reverts commit a15ec5b0.
      * Decrease response time
      * Remove unnecessary variables
      * Fix link
      * CI: chore
      * CI: add rules everywhere
      * CI: add rust info
      * Add image name and tag
      * Revert "Add image name and tag"
      This reverts commit 88cd94f0
      * CI: add image to run in k8s
      Co-authored-by: Denis_P's avatarDenis P <denis.pisarev@parity.io>
  8. 08 Jul, 2021 2 commits
    • Hernando Castano's avatar
      ERC-1155 Example (#800) · afc48714
      Hernando Castano authored
      * Add basic contract skeleton
      * Add dummy ERC-1155 trait implementations
      * Implement `balance_of` method
      * First attempt at `balance_of_batch` implementation
      I'm not sure if the output format is correct, need to read the docs
      more closely
      * Implement simple token transfer
      * Flatten balances BTreeMap
      * Clean up account usage in tests
      * Implement approval mechanism
      * Fix bug when sending tokens to an account with zero balance
      * Check approvals before sending tokens
      * Suppress warnings
      * Appease Clippy
      * Add crude support for token transfers to smart contracts
      * Simplify check for smart contract-ness
      * Handle receiving tokens as a smart contract
      * Implement `safe_transfer_from` method
      * Only do approval and recipient checks during in batch transfers
      * I was wrong about the compiler's cleverness...
      * Add documentation about interface
      * Make better use of some imports
      * Disallow owners from approving themselves for token tranfers
      * Allow creating and minting tokens
      * Derive default for storage struct
      * Add note on on-chain panic
      * Remove `with_balances` constructor
      It wasn't ERC-1155 compliant (no transfer events emitted) and it
      also leaked the internal structure of how balances were tracked.
      * RustFmt with Nightly
      Not sure I like some of the decisions though...
      * Tag on_received messages with selectors
      * Add missing event
      * Index topics in events
      * Remove note on BTreeSet usage
      Can't figure out how to get tests to compile with it.
      * Stop panicking on cross-contract call error
      However, this is only because I have no feedback on why this call
      is actually failing. This behaviour should be added back.
      * Nightly RustFmt
      * Fix RustDoc links
      * Remove inline questions
      * Remove unused `data` argument from `create/mint`
      * Rename magic value contants
      * Remove data argument from `mint/create` tests
      * Use entry API when decreasing account balance
      * Extract approvals pairs into struct
      This is better in terms of type safety and ease of use
      * Improve some of the panic messages
      * Cache calls to `self.env().caller()`
      * Allow `TransferSingle` events to contain Optional addresses
      This slightly deviates from the spec which says we should use the `0x00`
      address during certain operations, but this is more idiomatic Rust.
      * Add logging around calls to `onERC1155Received`
      * Improve debug message when receiving cross-contract results
      * Move warning lints to specific lines of code
      * Format code
      * Remove backticks from URLs
      Co-authored-by: Michael Müller's avatarMichael Müller <michi@parity.io>
      * Fix comment wording/typo
      * Add expected panic messages to tests
      * Move imports related to x-contract calls closer to use site
      * Change selector bytes to hex for the humans
      * Remove incorrect comment about off-chain environment testing
      * Add documentation for `TokenId`
      This will make sure that it doesn't show up as `u128` in
      the generated docs.
      * Nightly RustFmt
      * Uppercase selector bytes
      * Don't repeat `erc_1155` in `Erc1155TokenReceiver` methods
      * Nightly RustFmt
      * Appease the spellchecker
      * Use Environment typedef
      * Allow tests to run in stable and experimental off-chain envs
      * Add explanation as to why we don't accept tokens
      * Return `Result` when minting tokens
      * Allow (most) errors to be handled gracefully by caller
      * Nightly RustFmt
      * Add shorthand zero-address to allowed spelling list
      * Run tests with `--features ink-experimental-engine` in CI
      * Perform batch balance checks before trying to transfer tokens
      * Move smart contract transfer checks to their own helper function
      * Appease Clippy
      * Make `ensure` macro definition more explicit
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      * Iterate over values instead of references
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      * Iterate over references again
      * Return a value from `on_batch_received`
      * Don't collect into intermediate Vec
      * Wrap 0x00 in code blocks
      This way the spellchecker will ignore it and we
      can avoid adding it to our dictionary.
      Co-authored-by: Michael Müller's avatarMichael Müller <michi@parity.io>
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
    • Michael Müller's avatar
      Add `ink-waterfall` to CI (#844) · 011bae31
      Michael Müller authored
  9. 28 Jun, 2021 1 commit
    • Hernando Castano's avatar
      Actually add `refcount` as word (#830) · 056cf4c2
      Hernando Castano authored
      * Actually add `refcount` as word
      * Bump `cargo-spellcheck` verbosity
      * Make CI spellcheck runs deterministic
      * Add more words to dictionary
      * Allow `parameterized` and `parameterizes`
      * Add more words to dictionary
  10. 17 Jun, 2021 1 commit
  11. 09 Jun, 2021 1 commit
  12. 10 May, 2021 1 commit
    • Michael Müller's avatar
      Implement MVP for new off-chain testing engine (#712) · 1a19f937
      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
  13. 30 Apr, 2021 1 commit
  14. 21 Apr, 2021 1 commit
    • Michael Müller's avatar
      Fix `Greeter` and run documentation tests in CI (#773) · c2e43fc6
      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
      * 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
  15. 14 Apr, 2021 1 commit
  16. 01 Apr, 2021 1 commit
  17. 22 Mar, 2021 2 commits
  18. 19 Mar, 2021 1 commit
    • Michael Müller's avatar
      Enable clippy for `rand-extension` example again (#735) · f8d3d3be
      Michael Müller authored
      * Enable clippy for `rand-extension` example again
      * Debug `cargo-spellcheck`
      * Print `cargo-spellcheck` version
      * Revert "Print `cargo-spellcheck` version"
      This reverts commit 5a8beebf.
      * Revert "Debug `cargo-spellcheck`"
      This reverts commit 2198fe10.
      * Clear up storage properly for fuzz tests
      * Add debug flags for `cargo-spellcheck`
      * Fix typo
      * Revert "Add debug flags for `cargo-spellcheck`"
      This reverts commit c93306df.
  19. 12 Mar, 2021 1 commit
  20. 09 Mar, 2021 1 commit
  21. 05 Mar, 2021 2 commits
  22. 19 Feb, 2021 1 commit
    • Michael Müller's avatar
      Fix build warnings + clippy errors from latest nightly (#686) · 353a840d
      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
  23. 03 Feb, 2021 1 commit
  24. 02 Feb, 2021 2 commits
    • Michael Müller's avatar
      Debug why no issue is created for failing fuzz test (#671) · 36c94019
      Michael Müller authored
      * Revert me: Run fuzz tests on this branch
      * Add debug output
      * Revert me: Decrease number of runs
      * Do not stop CI stage on exit code 1
      * Revert "Revert me: Decrease number of runs"
      This reverts commit 88d6b2c5.
      * Revert "Add debug output"
      This reverts commit 2be03bce.
      * Revert "Revert me: Run fuzz tests on this branch"
      This reverts commit 7493421b.
    • Michael Müller's avatar
      Fix broken intra-doc links + add CI stage to test example docs (#606) · 7aaf4dcc
      Michael Müller authored
      * Fix broken intra-doc links
      * Fix doc link
      * Add CI stage to test example docs
      * Revert me: Provoke doc failures in example
      * Remove intra-crate link to non-dependency
      * Remove `--all-features`
      * Revert "Revert me: Provoke doc failures in example"
      This reverts commit 563bfeb3.
      * Prettify paragraph
      * Remove unnecessary imports
      * Revert "Remove unnecessary imports"
      This reverts commit 05207133
      * Remove unnecessary imports
      * Remove `cfg(doc)` path resolution for doc comments
      * Improve language and formatting
      * Upgrade `scale` and `scale-info` for `rand-extension`
      * Make http link work
      * Remove `crate::` prefix from doc links
      * Apply suggestions from code review
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
  25. 28 Jan, 2021 1 commit
    • Denis_P's avatar
      Debug codecov (#503) · 2d10a700
      Denis_P authored
      * debug (CI): putting reports in artifacts [skip ci]
      * debug (CI): remove unneded jobs, revert lated
      * change (doc): fix artifacts
      * CI: debug codecov, again
      * CI: run with tests
      * CI: revert me
      * CI: change codesource form ./target to .
      * Revert "CI: revert me"
      This reverts commit 0d50efb3.
  26. 13 Jan, 2021 1 commit
  27. 14 Dec, 2020 1 commit
  28. 09 Dec, 2020 1 commit
  29. 08 Dec, 2020 1 commit
  30. 04 Dec, 2020 2 commits
    • Michael Müller's avatar
      [ci] Test workspace docs (#602) · 5115146d
      Michael Müller authored
      * Revert me: Provoke doc failures
      * [ci] Test workspace docs
      * Revert "Revert me: Provoke doc failures"
      This reverts commit cbc45cf0.
      * Fix spaces
      * Revert me: Provoke doc failures and see if `exit 1` can be removed
      * Revert "Revert me: Provoke doc failures and see if `exit 1` can be removed"
      This reverts commit d0e0878e.
      * Supply `--all-features` to make artifacts reusable
      * Use `RUSTDOCFLAGS=-Dwarnings`
      * Revert me: Provoke doc failures
      * Revert "Revert me: Provoke doc failures"
      This reverts commit e0152681.
      * Reuse artifacts of `docs` job for `publish-docs`
      * Two spaces
      * Two spaces
      * Remove `test`, needs already covers this
      * Revert me: Test if `publish-docs` job works
      * Fix target dir path
      * Revert "Revert me: Test if `publish-docs` job works"
      This reverts commit 7554b987.
      * Revert me: Publish for testing
      * Revert "Revert me: Publish for testing"
      This reverts commit 3b0ba224.
    • Denis_P's avatar
      Nightly tested ci image (#603) · 1758e45a
      Denis_P authored
      * CI: nightly tested ci image [skip ci]
      * CI: add comment
  31. 17 Nov, 2020 1 commit
  32. 11 Nov, 2020 1 commit
    • Michael Müller's avatar
      Make CI check format of UI tests (#534) · fe82d173
      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
  33. 10 Nov, 2020 2 commits
  34. 28 Oct, 2020 1 commit
    • Michael Müller's avatar
      Fix fuzz setup (#549) · aedd7561
      Michael Müller authored
      * Execute fuzz stage on this branch, remove variable
      * Move fuzz to first stage
      * Fix ALL_CRATES
      * Undo debugging changes
      * Reduce number of tests for debugging
      * Debug further
      * Debug further
      * Debug further
      * Debug further
      * Improve curl
      * Fix markdown
      * Exit 1 after fuzz tests failed
      * Revert debugging changes
      * Improve readability