1. 22 Jul, 2021 1 commit
  2. 21 Jul, 2021 1 commit
  3. 13 Jul, 2021 1 commit
  4. 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>
      1747b345
  5. 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>
      afc48714
    • Michael Müller's avatar
      Add `ink-waterfall` to CI (#844) · 011bae31
      Michael Müller authored
      011bae31
  6. 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
      056cf4c2
  7. 17 Jun, 2021 1 commit
  8. 09 Jun, 2021 1 commit
  9. 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
      1a19f937
  10. 30 Apr, 2021 1 commit
  11. 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
      `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
      c2e43fc6
  12. 14 Apr, 2021 1 commit
  13. 01 Apr, 2021 1 commit
  14. 22 Mar, 2021 2 commits
  15. 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.
      f8d3d3be
  16. 12 Mar, 2021 1 commit
  17. 09 Mar, 2021 1 commit
  18. 05 Mar, 2021 2 commits
  19. 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
      353a840d
  20. 03 Feb, 2021 1 commit
  21. 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.
      36c94019
    • 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>
      7aaf4dcc
  22. 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.
      2d10a700
  23. 13 Jan, 2021 1 commit
  24. 14 Dec, 2020 1 commit
  25. 09 Dec, 2020 1 commit
  26. 08 Dec, 2020 1 commit
  27. 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.
      5115146d
    • Denis_P's avatar
      Nightly tested ci image (#603) · 1758e45a
      Denis_P authored
      * CI: nightly tested ci image [skip ci]
      
      * CI: add comment
      1758e45a
  28. 17 Nov, 2020 1 commit
  29. 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
      fe82d173
  30. 10 Nov, 2020 2 commits
  31. 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
      aedd7561
  32. 27 Oct, 2020 3 commits