diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/SecondSubmission.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/SecondSubmission.md new file mode 100644 index 00000000..03ee8688 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/SecondSubmission.md @@ -0,0 +1,181 @@ + +Grant Proposal | [318 - Cross Chain Token Bridge-Staking as a Service Solutions](https://portal.devxdao.com/public-proposals/318) +------------ | ------------- +Milestone | 2 +Milestone Title | Build, Deploy, and Internally QA Bridging Shell App +OP | nickodio_ferrum +Reviewer | Furkan Ahmet Kara + +# Milestone Details + +## Details & Acceptance Criteria + +**Details of what will be delivered in milestone:** + +- Build and deploy a shell app that will allow swaps among: +1. Casper <> Ethereum +2. Casper <> BSC +3. Casper <> Polygon + +- Integrate bridge with one of the Casper’s compatible wallets + +- Share Bridging shell app with internal QA and incorporate QA feedback + +**Acceptance criteria:** + +- UI deployment for bridge interaction +- Smart Contract Deployment of bridge +- Casper compatible wallet integration +- Ability to run swaps among: +1. Casper <> Ethereum +2. Casper <> BSC +3. Casper <> Polygon +- Internal QA feedback incorporation + +**Additional notes regarding submission from OP:** + +Release notes can be found in the repositories shared above. A demo of the shell app can be seen using the link below. https://ferrum.network/espast/2023/04/CasperBridgePresentation.mp4 + +Casper Bridge SmartContracts: + +https://github.com/ferrumnet/bridge-casper-smart-contracts + +Casper Bridge Backend: +https://github.com/ferrumnet/ferrum-gateway/tree/casper-bridge + +For documentation, please refer to this: +https://github.com/ferrumnet/ferrum-gateway/blob/casper-bridge/docs/Casper.Readme.md + +Casper Bridge Frontend: +https://github.com/ferrumnet/casper-bridge-frontend + +## Milestone Submission + +The following milestone assets/artifacts were submitted for review: + +Repository | Revision Reviewed +------------ | ------------- +https://github.com/ferrumnet/bridge-casper-smart-contracts | [4beb13d] +https://github.com/ferrumnet/casper_staking/tree/v0.3.3| [40be80b] +https://github.com/ferrumnet/staking-casper-frontend | [c3047b9] + +# Install & Usage Testing Procedure and Findings + +Repos were missing some instructions at the beginning and the reviewer sent a guide to OP to update the project's repos. OP updated this repo and informed the reviewer. Repos still had issues and the reviewer gave another feedback to OP before proceeding the final review. + +By following the instructions in the README of the repository the reviewer was able to build and run the projects. + +[front install](assets/frontnpminstall.md) + +[front start](assets/frontnpmstart2.md) + +[contracts build](assets/contractsmakebuild.md) + +[back install](assets/backyarninstall.md) + +[back run](assets/backrunbin.md) + +[back node](assets/backnode.md) + +## Overall Impression of usage testing + +The project meets the acceptance criteria but there are few things to be fixed like decimal conversations and some ui dynamics. the documentation includes sufficient installation and execution instructions, and the project builds without issues. Below are some screenshots from front-end usage testing; + +![Main](assets/main.png) + +![Casper Swap](assets/csprswap.png) + +![BSC Withdraw](assets/BSCwithdraw.png) + +![BSC Swap](assets/BSCswap.png) + +![Casper withdraw](assets/csprwithdraw.png) + + +Here are some deploy hashes for the processes + +[Add Liquidity](https://testnet.cspr.live/deploy/9a3790c489f9f53f542c9773183d1786ab4913cb09b09e312c90dc6859df4d68) + +[Approve](https://testnet.cspr.live/deploy/02fe406c832e70d15458527ed35963b7e14232c3b9ef2e31a4c92c57822752b2) + +[Swap](https://testnet.cspr.live/deploy/d36397f69b03a15da8ec3d5ee46aae12fb354ad65ac4cf7b1e05c90dd9cf2f02) + +[Withdraw](https://testnet.cspr.live/deploy/3df5ecc18e3862b6b9c7d39f05f41678d3f92b6c84efd326f31d5e9e9f61c2ad) + +Requirement | Finding +------------ | ------------- +Project builds without errors | PASS +Documentation provides sufficient installation/execution instructions | PASS with Notes +Project functionality meets/exceeds acceptance criteria and operates without error | PASS with Notes + +# Unit / Automated Testing + +Test instructions are given ,and tests run successfully. Test coverage can be improved. + +[front test](assets/frontnpmtest.md) + +Requirement | Finding +------------ | ------------- +Unit Tests - At least one positive path test | PASS +Unit Tests - At least one negative path test | PASS +Unit Tests - Additional path tests | PASS + +# Documentation + +### Code Documentation + +The project has sufficient code-level documentation and the critical classes and methods have comments. + +Requirement | Finding +------------ | ------------- +Code Documented | PASS + +### Project Documentation + +Project Documentation is at an acceptable level for this milestone. + +Requirement | Finding +------------ | ------------- +Usage Documented | PASS +Example Documented | PASS + +## Overall Conclusion on Documentation + +The README of one of the repositories is not easily discoverable at the root level, which should be fixed by the OP before final submission. Thus, based on the reviewer's findings, this review should PASS with Notes. + +# Open Source Practices + +## Licenses + +The Project is released under the MIT License. + +Requirement | Finding +------------ | ------------- +OSI-approved open source software license | PASS + +## Contribution Policies + +Pull requests and Issues are enabled on the repositories, however the frontend repository does not contain CONTRIBUTING.md and SECURITY.md files, and OP should fix it before final submission. + +Requirement | Finding +------------ | ------------- +OSS contribution best practices | PASS with Notes + +# Coding Standards + +## Dependencies + +The project had a number of dependencies with high or critical-level security vulnerabilities which need to be fixed before the final milestone. + +## General Observations + +The project as committed to GitHub and both the automated tests and the manual tests pass. Code is generally well-structured and readable. User experience on the UI should be improved along with the Reviewer's suggestions. Decimal conversation issue should be fixed before the final milestone + +# Final Conclusion + +Thusthis submission should PASS with Notes. + +# Recommendation + +Recommendation | PASS with Notes +------------ | ----------- diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/BSCswap.png b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/BSCswap.png new file mode 100644 index 00000000..b26af383 Binary files /dev/null and b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/BSCswap.png differ diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/BSCwithdraw.png b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/BSCwithdraw.png new file mode 100644 index 00000000..4939ebe5 Binary files /dev/null and b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/BSCwithdraw.png differ diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backnode.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backnode.md new file mode 100644 index 00000000..6a26767e --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backnode.md @@ -0,0 +1,2 @@ +OPENING UP THE INDEX.TS +running on 8080..... diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backrunbin.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backrunbin.md new file mode 100644 index 00000000..fc8e85e1 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backrunbin.md @@ -0,0 +1,11 @@ +Compiling commons/types +Compiling commons/web3-tools +Compiling commons/common-backend +Compiling common-containers +Compiling bridge-backend +Compiling leaderboard-backend +Compiling crucible-backend +Compiling governance-backend +Compiling gateway-backend +Compiling qp-explorer-commons +Compiling qp-explorer-node diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backyarninstall.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backyarninstall.md new file mode 100644 index 00000000..499b7640 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/backyarninstall.md @@ -0,0 +1,114 @@ +yarn install v1.22.19 +[1/4] Resolving packages... +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^26.6.3" +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^24.8.0" +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^24.8.0" +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^24.8.0" +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^24.8.0" +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^24.8.0" +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^24.8.0" +warning Resolution field "ts-jest@26.5.6" is incompatible with requested version "ts-jest@^26.6.0" +warning Resolution field "@types/cron@1.7.3" is incompatible with requested version "@types/cron@^1.8.2" +warning Resolution field "babel-jest@26.6.0" is incompatible with requested version "babel-jest@^26.6.3" +[2/4] Fetching packages... +warning Pattern ["elliptic@https://github.com/ferrumnet/elliptic.git"] is trying to unpack in the same destination "/home/gitpod/.cache/yarn/v6/npm-elliptic-6.5.3-3ebee0849d933f76cc18f0b6e3ded3d25156f016/node_modules/elliptic" as pattern ["elliptic@git+https://github.com/ferrumnet/elliptic.git"]. This could result in non-deterministic behavior, skipping. +warning Pattern ["abi-decoder@latest"] is trying to unpack in the same destination "/home/gitpod/.cache/yarn/v6/npm-abi-decoder-2.4.0-99f72337c614d6ac45a28dbc83c08b44eba48ad5-integrity/node_modules/abi-decoder" as pattern ["abi-decoder@^2.3.0","abi-decoder@^2.3.0","abi-decoder@^2.3.0","abi-decoder@^2.4.0","abi-decoder@^2.3.0","abi-decoder@^2.3.0"]. This could result in non-deterministic behavior, skipping. +warning Pattern ["bn.js@latest"] is trying to unpack in the same destination "/home/gitpod/.cache/yarn/v6/npm-bn-js-5.2.0-358860674396c6997771a9d051fcc1b57d4ae002-integrity/node_modules/bn.js" as pattern ["bn.js@^5.1.2","bn.js@^5.2.0","bn.js@^5.1.1","bn.js@^5.0.0"]. This could result in non-deterministic behavior, skipping. +[3/4] Linking dependencies... +warning " > babel-jest@26.6.0" has unmet peer dependency "@babel/core@^7.0.0". +warning "babel-jest > babel-preset-jest@26.6.2" has unmet peer dependency "@babel/core@^7.0.0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax@1.0.1" has unmet peer dependency "@babel/core@^7.0.0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-async-generators@7.8.4" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-bigint@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-class-properties@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-import-meta@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-json-strings@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-logical-assignment-operators@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-nullish-coalescing-operator@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-numeric-separator@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-object-rest-spread@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-catch-binding@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-chaining@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". +warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-top-level-await@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0". +warning " > common-containers@1.0.0" has unmet peer dependency "@reduxjs/toolkit@^1.5.1". +warning " > common-containers@1.0.0" has unmet peer dependency "react-redux@^7.2.3". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react@8.65.0" has unmet peer dependency "@types/react@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react@8.65.0" has unmet peer dependency "@types/react-dom@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react@8.65.0" has unmet peer dependency "react-dom@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react@7.185.2" has unmet peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react@7.185.2" has unmet peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react@7.185.2" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react@7.185.2" has unmet peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > react-bootstrap@1.6.4" has unmet peer dependency "react-dom@>=16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > styled-components@5.3.5" has unmet peer dependency "react-dom@>= 16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > styled-components@5.3.5" has unmet peer dependency "react-is@>= 16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar@0.56.0" has incorrect peer dependency "react@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar@0.56.0" has incorrect peer dependency "react-dom@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider@0.18.5" has incorrect peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider@0.18.5" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > react-color-gradient-picker@0.1.2" has incorrect peer dependency "react@^16.13.1". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > react-color-gradient-picker@0.1.2" has incorrect peer dependency "react-dom@^16.13.1". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > desktop-components-library > unifyre-react-helper@1.0.0" has incorrect peer dependency "react@@16.9.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > desktop-components-library > unifyre-react-helper@1.0.0" has incorrect peer dependency "@types/react@~16.9.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-backend > @uniswap/sdk@3.0.3" has unmet peer dependency "@ethersproject/address@^5.0.0-beta". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-backend > @uniswap/sdk@3.0.3" has unmet peer dependency "@ethersproject/contracts@^5.0.0-beta". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-backend > @uniswap/sdk@3.0.3" has unmet peer dependency "@ethersproject/networks@^5.0.0-beta". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-backend > @uniswap/sdk@3.0.3" has unmet peer dependency "@ethersproject/providers@^5.0.0-beta". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-backend > mongodb-client-encryption@1.2.7" has unmet peer dependency "mongodb@>=3.4.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > ferrumm-gateway-frontend > babel-loader@8.1.0" has unmet peer dependency "@babel/core@^7.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > ferrumm-gateway-frontend > babel-loader@8.1.0" has unmet peer dependency "webpack@>=2". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react > @fluentui/foundation-legacy@8.2.6" has unmet peer dependency "@types/react@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react > @fluentui/react-focus@8.5.7" has unmet peer dependency "@types/react@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react > @fluentui/react-hooks@8.5.4" has unmet peer dependency "@types/react@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react > @fluentui/react-window-provider@2.2.0" has unmet peer dependency "@types/react@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react > @fluentui/theme@2.6.5" has unmet peer dependency "@types/react@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > @fluentui/react > @fluentui/utilities@8.8.2" has unmet peer dependency "@types/react@>=16.8.0 <18.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-focus@7.18.3" has unmet peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-focus@7.18.3" has unmet peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-focus@7.18.3" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-focus@7.18.3" has unmet peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-window-provider@1.0.2" has unmet peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-window-provider@1.0.2" has unmet peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-window-provider@1.0.2" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @fluentui/react-window-provider@1.0.2" has unmet peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/foundation@7.10.2" has unmet peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/foundation@7.10.2" has unmet peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/foundation@7.10.2" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/foundation@7.10.2" has unmet peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/react-hooks@7.14.1" has unmet peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/react-hooks@7.14.1" has unmet peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/react-hooks@7.14.1" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/react-hooks@7.14.1" has unmet peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/utilities@7.34.0" has unmet peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/utilities@7.34.0" has unmet peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/utilities@7.34.0" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > office-ui-fabric-react > @uifabric/utilities@7.34.0" has unmet peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > react-bootstrap > react-overlays@5.1.1" has unmet peer dependency "react-dom@>=16.3.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > component-library > react-bootstrap > react-transition-group@4.4.2" has unmet peer dependency "react-dom@>=16.6.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > common-containers > tslint-config-airbnb-base > tslint-eslint-rules@5.4.0" has incorrect peer dependency "typescript@^2.2.0 || ^3.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-bindings@0.56.0" has incorrect peer dependency "react@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-bindings@0.56.0" has incorrect peer dependency "react-dom@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-component-nesting-registry@0.56.0" has incorrect peer dependency "react@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-component-nesting-registry@0.56.0" has incorrect peer dependency "react-dom@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-icons-northstar@0.56.0" has incorrect peer dependency "react@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-icons-northstar@0.56.0" has incorrect peer dependency "react-dom@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-northstar-styles-renderer@0.56.0" has incorrect peer dependency "react@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/react-compose@0.19.15" has incorrect peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/react-compose@0.19.15" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/react-stylesheets@0.2.5" has incorrect peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/react-stylesheets@0.2.5" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/theme@1.7.5" has incorrect peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/theme@1.7.5" has incorrect peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/theme@1.7.5" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-theme-provider > @fluentui/theme@1.7.5" has incorrect peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > desktop-components-library > @fluentui/react@7.185.2" has incorrect peer dependency "@types/react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > desktop-components-library > @fluentui/react@7.185.2" has incorrect peer dependency "@types/react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > desktop-components-library > @fluentui/react@7.185.2" has incorrect peer dependency "react@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > desktop-components-library > @fluentui/react@7.185.2" has incorrect peer dependency "react-dom@>=16.8.0 <17.0.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-bindings > @fluentui/react-northstar-fela-renderer@0.56.0" has incorrect peer dependency "react@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-bindings > @fluentui/react-northstar-fela-renderer@0.56.0" has incorrect peer dependency "react-dom@^16.8.0". +warning "workspace-aggregator-97b1bd0e-8dae-4ca0-931d-c9de2cd2b529 > bridge-frontend > @fluentui/react-northstar > @fluentui/react-bindings > @fluentui/react-northstar-fela-renderer > react-fela@10.8.2" has incorrect peer dependency "react@^16.3.0". +[4/4] Building fresh packages... +success Saved lockfile. +Done in 79.37s. diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmakebuild.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmakebuild.md new file mode 100644 index 00000000..9bca5114 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmakebuild.md @@ -0,0 +1,305 @@ + Downloading crates ... + Downloaded itoa v1.0.6 + Downloaded wasm-bindgen-shared v0.2.86 + Downloaded block-buffer v0.10.4 + Downloaded cpufeatures v0.2.7 + Downloaded cfg-if v0.1.10 + Downloaded digest v0.10.6 + Downloaded getrandom v0.2.7 + Downloaded js-sys v0.3.63 + Downloaded keccak v0.1.4 + Downloaded block-padding v0.2.1 + Downloaded crypto-common v0.1.6 + Downloaded wasm-bindgen-macro-support v0.2.86 + Downloaded tiny-keccak v2.0.2 + Downloaded quote v1.0.27 + Downloaded memory_units v0.4.0 + Downloaded wasm-bindgen-macro v0.2.86 + Downloaded serde_bytes v0.11.9 + Downloaded num v0.4.0 + Downloaded wee_alloc v0.4.5 + Downloaded unicode-ident v1.0.8 + Downloaded casper-contract v3.0.0 + Downloaded wasm-bindgen-backend v0.2.86 + Downloaded once_cell v1.17.1 + Downloaded proc-macro2 v1.0.58 + Downloaded log v0.4.17 + Downloaded ryu v1.0.13 + Downloaded secp256k1 v0.27.0 + Downloaded num-traits v0.2.15 + Downloaded serde_derive v1.0.163 + Downloaded cc v1.0.79 + Downloaded bumpalo v3.12.2 + Downloaded serde v1.0.163 + Downloaded serde_json v1.0.96 + Downloaded wasm-bindgen v0.2.86 + Downloaded syn v2.0.16 + Downloaded sha3 v0.9.1 + Downloaded libc v0.2.144 + Downloaded sha3 v0.10.8 + Downloaded secp256k1-sys v0.8.1 + Compiling proc-macro2 v1.0.58 + Compiling version_check v0.9.4 + Compiling quote v1.0.27 + Compiling typenum v1.16.0 + Compiling unicode-ident v1.0.8 + Compiling autocfg v1.1.0 + Compiling rand_core v0.5.1 + Compiling subtle v2.4.1 + Compiling cfg-if v1.0.0 + Compiling wyz v0.2.0 + Compiling radium v0.3.0 + Compiling funty v1.1.0 + Compiling block-padding v0.2.1 + Compiling log v0.4.17 + Compiling opaque-debug v0.3.0 + Compiling wasm-bindgen-shared v0.2.86 + Compiling crunchy v0.2.2 + Compiling serde v1.0.163 + Compiling bumpalo v3.12.2 + Compiling keccak v0.1.4 + Compiling byteorder v1.4.3 + Compiling ppv-lite86 v0.2.17 + Compiling syn v1.0.109 + Compiling once_cell v1.17.1 + Compiling cc v1.0.79 + Compiling generic-array v0.14.7 + Compiling num-traits v0.2.15 + Compiling num-integer v0.1.45 + Compiling bitvec v0.18.5 + Compiling num-bigint v0.4.3 + Compiling num-iter v0.1.43 + Compiling num-rational v0.4.1 + Compiling rand_chacha v0.2.2 + Compiling serde_json v1.0.96 + Compiling wee_alloc v0.4.5 + Compiling wasm-bindgen v0.2.86 + Compiling hex v0.4.3 + Compiling ryu v1.0.13 + Compiling rand v0.7.3 + Compiling itoa v1.0.6 + Compiling rand_core v0.6.4 + Compiling static_assertions v1.1.0 + Compiling uint v0.9.5 + Compiling base64 v0.13.1 + Compiling memory_units v0.4.0 + Compiling rand v0.8.5 + Compiling tiny-keccak v2.0.2 + Compiling bitflags v1.3.2 + Compiling hex_fmt v0.3.0 + Compiling cfg-if v0.1.10 + Compiling base16 v0.2.1 + Compiling syn v2.0.16 + Compiling secp256k1-sys v0.8.1 + Compiling num-complex v0.4.3 + Compiling digest v0.9.0 + Compiling block-buffer v0.9.0 + Compiling crypto-mac v0.10.1 + Compiling crypto-mac v0.8.0 + Compiling block-buffer v0.10.4 + Compiling crypto-common v0.1.6 + Compiling signature v1.2.2 + Compiling hmac v0.10.1 + Compiling blake2 v0.9.2 + Compiling sha2 v0.9.9 + Compiling sha3 v0.9.1 + Compiling digest v0.10.6 + Compiling ed25519 v1.2.0 + Compiling ff v0.8.0 + Compiling sha3 v0.10.8 + Compiling group v0.8.0 + Compiling num-derive v0.3.3 + Compiling num v0.4.0 + Compiling wasm-bindgen-backend v0.2.86 + Compiling wasm-bindgen-macro-support v0.2.86 + Compiling zeroize_derive v1.4.2 + Compiling serde_derive v1.0.163 + Compiling zeroize v1.3.0 + Compiling wasm-bindgen-macro v0.2.86 + Compiling elliptic-curve v0.8.5 + Compiling curve25519-dalek v3.2.1 + Compiling ecdsa v0.10.2 + Compiling ed25519-dalek v1.0.1 + Compiling k256 v0.7.3 + Compiling js-sys v0.3.63 + Compiling secp256k1 v0.27.0 + Compiling getrandom v0.2.7 + Compiling serde_bytes v0.11.9 + Compiling casper-types v3.0.0 + Compiling casper-contract v3.0.0 + Compiling contract-utils v0.1.0 (/workspace/bridge-casper-smart-contracts/utils/contract-utils) +warning: unused variable: `res` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:69:9 + | +69 | let res = s.sign_ecdsa_recoverable(&msg, &key); + | ^^^ help: if this is intentional, prefix it with an underscore: `_res` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `r` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:71:9 + | +71 | let r = hex::encode(&sig_bytes[..32]); + | ^ help: if this is intentional, prefix it with an underscore: `_r` + +warning: unused variable: `s` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:72:9 + | +72 | let s = hex::encode(&sig_bytes[32..64]); + | ^ help: if this is intentional, prefix it with an underscore: `_s` + +warning: unused variable: `slice` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:77:9 + | +77 | let slice = vec.as_slice(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` + + Compiling bridge_pool v1.0.0 (/workspace/bridge-casper-smart-contracts/contract) +warning: `contract-utils` (lib) generated 4 warnings (run `cargo fix --lib -p contract-utils` to apply 4 suggestions) + Finished release [optimized] target(s) in 59.43s +cd counter-call && cargo build --release --target wasm32-unknown-unknown + Compiling typenum v1.16.0 + Compiling autocfg v1.1.0 + Compiling version_check v0.9.4 + Compiling proc-macro2 v1.0.58 + Compiling unicode-ident v1.0.8 + Compiling quote v1.0.27 + Compiling rand_core v0.5.1 + Compiling subtle v2.4.1 + Compiling funty v1.1.0 + Compiling radium v0.3.0 + Compiling wyz v0.2.0 + Compiling opaque-debug v0.3.0 + Compiling serde v1.0.163 + Compiling ppv-lite86 v0.2.17 + Compiling cfg-if v1.0.0 + Compiling byteorder v1.4.3 + Compiling crunchy v0.2.2 + Compiling syn v1.0.109 + Compiling serde_json v1.0.96 + Compiling wee_alloc v0.4.5 + Compiling hex v0.4.3 + Compiling static_assertions v1.1.0 + Compiling itoa v1.0.6 + Compiling ryu v1.0.13 + Compiling rand_chacha v0.2.2 + Compiling rand_core v0.6.4 + Compiling base64 v0.13.1 + Compiling num-traits v0.2.15 + Compiling num-integer v0.1.45 + Compiling generic-array v0.14.7 + Compiling bitvec v0.18.5 + Compiling num-bigint v0.4.3 + Compiling num-rational v0.4.1 + Compiling num-iter v0.1.43 + Compiling rand v0.7.3 + Compiling rand v0.8.5 + Compiling cfg-if v0.1.10 + Compiling uint v0.9.5 + Compiling memory_units v0.4.0 + Compiling hex_fmt v0.3.0 + Compiling base16 v0.2.1 + Compiling bitflags v1.3.2 + Compiling syn v2.0.16 + Compiling digest v0.9.0 + Compiling crypto-mac v0.10.1 + Compiling block-buffer v0.9.0 + Compiling crypto-mac v0.8.0 + Compiling signature v1.2.2 + Compiling blake2 v0.9.2 + Compiling hmac v0.10.1 + Compiling sha2 v0.9.9 + Compiling ed25519 v1.2.0 + Compiling num-complex v0.4.3 + Compiling ff v0.8.0 + Compiling group v0.8.0 + Compiling num-derive v0.3.3 + Compiling num v0.4.0 + Compiling zeroize_derive v1.4.2 + Compiling serde_derive v1.0.163 + Compiling zeroize v1.3.0 + Compiling elliptic-curve v0.8.5 + Compiling curve25519-dalek v3.2.1 + Compiling ecdsa v0.10.2 + Compiling ed25519-dalek v1.0.1 + Compiling k256 v0.7.3 + Compiling serde_bytes v0.11.9 + Compiling casper-types v3.0.0 + Compiling casper-contract v3.0.0 + Compiling counter-call v1.0.0 (/workspace/bridge-casper-smart-contracts/counter-call) + Finished release [optimized] target(s) in 50.95s +cd erc20/erc20-token && cargo build --release --target wasm32-unknown-unknown + Compiling proc-macro2 v1.0.58 + Compiling autocfg v1.1.0 + Compiling version_check v0.9.4 + Compiling typenum v1.16.0 + Compiling quote v1.0.27 + Compiling unicode-ident v1.0.8 + Compiling subtle v2.4.1 + Compiling rand_core v0.5.1 + Compiling funty v1.1.0 + Compiling radium v0.3.0 + Compiling wyz v0.2.0 + Compiling opaque-debug v0.3.0 + Compiling serde v1.0.163 + Compiling cfg-if v1.0.0 + Compiling crunchy v0.2.2 + Compiling byteorder v1.4.3 + Compiling ppv-lite86 v0.2.17 + Compiling syn v1.0.109 + Compiling serde_json v1.0.96 + Compiling hex v0.4.3 + Compiling rand_core v0.6.4 + Compiling static_assertions v1.1.0 + Compiling wee_alloc v0.4.5 + Compiling itoa v1.0.6 + Compiling ryu v1.0.13 + Compiling rand v0.8.5 + Compiling rand_chacha v0.2.2 + Compiling generic-array v0.14.7 + Compiling base16 v0.2.1 + Compiling base64 v0.13.1 + Compiling num-traits v0.2.15 + Compiling num-integer v0.1.45 + Compiling bitvec v0.18.5 + Compiling num-bigint v0.4.3 + Compiling num-rational v0.4.1 + Compiling num-iter v0.1.43 + Compiling rand v0.7.3 + Compiling hex_fmt v0.3.0 + Compiling cfg-if v0.1.10 + Compiling uint v0.9.5 + Compiling memory_units v0.4.0 + Compiling bitflags v1.3.2 + Compiling once_cell v1.17.1 + Compiling syn v2.0.16 + Compiling digest v0.9.0 + Compiling block-buffer v0.9.0 + Compiling crypto-mac v0.10.1 + Compiling crypto-mac v0.8.0 + Compiling signature v1.2.2 + Compiling hmac v0.10.1 + Compiling blake2 v0.9.2 + Compiling sha2 v0.9.9 + Compiling ed25519 v1.2.0 + Compiling num-complex v0.4.3 + Compiling ff v0.8.0 + Compiling group v0.8.0 + Compiling num-derive v0.3.3 + Compiling num v0.4.0 + Compiling zeroize_derive v1.4.2 + Compiling serde_derive v1.0.163 + Compiling zeroize v1.3.0 + Compiling elliptic-curve v0.8.5 + Compiling curve25519-dalek v3.2.1 + Compiling ecdsa v0.10.2 + Compiling ed25519-dalek v1.0.1 + Compiling k256 v0.7.3 + Compiling serde_bytes v0.11.9 + Compiling casper-types v3.0.0 + Compiling casper-contract v3.0.0 + Compiling casper-erc20 v0.2.1 (/workspace/bridge-casper-smart-contracts/erc20/erc20) + Compiling erc20-token v0.1.0 (/workspace/bridge-casper-smart-contracts/erc20/erc20-token) + Finished release [optimized] target(s) in 34.59s +wasm-strip contract/target/wasm32-unknown-unknown/release/bridge_pool.wasm 2>/dev/null | true +wasm-strip counter-call/target/wasm32-unknown-unknown/release/counter-call.wasm 2>/dev/null | true diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmakeprepare.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmakeprepare.md new file mode 100644 index 00000000..29f320ff --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmakeprepare.md @@ -0,0 +1,2 @@ +rustup target add wasm32-unknown-unknown +info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmaketest.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmaketest.md new file mode 100644 index 00000000..97bd2516 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/contractsmaketest.md @@ -0,0 +1,585 @@ +cd contract && cargo build --release --target wasm32-unknown-unknown +warning: unused variable: `res` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:69:9 + | +69 | let res = s.sign_ecdsa_recoverable(&msg, &key); + | ^^^ help: if this is intentional, prefix it with an underscore: `_res` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `r` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:71:9 + | +71 | let r = hex::encode(&sig_bytes[..32]); + | ^ help: if this is intentional, prefix it with an underscore: `_r` + +warning: unused variable: `s` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:72:9 + | +72 | let s = hex::encode(&sig_bytes[32..64]); + | ^ help: if this is intentional, prefix it with an underscore: `_s` + +warning: unused variable: `slice` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:77:9 + | +77 | let slice = vec.as_slice(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` + +warning: `contract-utils` (lib) generated 4 warnings (run `cargo fix --lib -p contract-utils` to apply 4 suggestions) + Finished release [optimized] target(s) in 0.05s +cd counter-call && cargo build --release --target wasm32-unknown-unknown + Finished release [optimized] target(s) in 0.04s +cd erc20/erc20-token && cargo build --release --target wasm32-unknown-unknown + Finished release [optimized] target(s) in 0.04s +wasm-strip contract/target/wasm32-unknown-unknown/release/bridge_pool.wasm 2>/dev/null | true +wasm-strip counter-call/target/wasm32-unknown-unknown/release/counter-call.wasm 2>/dev/null | true +mkdir -p tests/wasm +cp contract/target/wasm32-unknown-unknown/release/bridge_pool.wasm tests/wasm +cp counter-call/target/wasm32-unknown-unknown/release/counter-call.wasm tests/wasm +cp erc20/target/wasm32-unknown-unknown/release/erc20_token.wasm tests/wasm/erc20.wasm +cd tests && cargo test + Downloading crates ... + Downloaded quick-error v1.2.3 + Downloaded bincode v1.3.3 + Downloaded quick-error v2.0.1 + Downloaded pin-project-lite v0.2.9 + Downloaded num-rational v0.2.4 + Downloaded either v1.8.1 + Downloaded strum_macros v0.24.3 + Downloaded bit-set v0.5.3 + Downloaded ctor v0.1.26 + Downloaded syn v0.15.44 + Downloaded thiserror-impl v1.0.40 + Downloaded unarray v0.1.4 + Downloaded thiserror v1.0.40 + Downloaded dyn-clone v1.0.11 + Downloaded num_cpus v1.15.0 + Downloaded downcast-rs v1.2.0 + Downloaded getrandom v0.2.9 + Downloaded toml v0.5.11 + Downloaded strum v0.24.1 + Downloaded filesize v0.2.0 + Downloaded unicode-xid v0.1.0 + Downloaded fastrand v1.9.0 + Downloaded rustversion v1.0.12 + Downloaded linked-hash-map v0.5.6 + Downloaded quote v0.6.13 + Downloaded io-lifetimes v1.0.10 + Downloaded wasmi-validation v0.4.1 + Downloaded rusty-fork v0.3.0 + Downloaded parity-wasm v0.42.2 + Downloaded rustix v0.37.19 + Downloaded match_cfg v0.1.0 + Downloaded wait-timeout v0.2.0 + Downloaded tracing-attributes v0.1.24 + Downloaded proc-macro2 v0.4.30 + Downloaded regex-syntax v0.7.1 + Downloaded libm v0.2.7 + Downloaded lazy_static v1.4.0 + Downloaded rand_pcg v0.3.1 + Downloaded uuid v0.8.2 + Downloaded regex v1.8.1 + Downloaded value-bag v1.0.0-alpha.9 + Downloaded rand_xorshift v0.3.0 + Downloaded num-bigint v0.2.6 + Downloaded anyhow v1.0.71 + Downloaded lmdb-rkv v0.14.0 + Downloaded tempfile v3.5.0 + Downloaded proptest-derive v0.3.0 + Downloaded proptest v1.1.0 + Downloaded hostname v0.3.1 + Downloaded regex-syntax v0.6.29 + Downloaded lmdb-rkv-sys v0.11.2 + Downloaded linux-raw-sys v0.3.7 + Downloaded bit-vec v0.6.3 + Downloaded casper-engine-test-support v5.0.0 + Downloaded memory_units v0.3.0 + Downloaded hex-buffer-serde v0.2.2 + Downloaded casper-wasm-utils v1.0.0 + Downloaded wasmi v0.9.1 + Downloaded casper-execution-engine v5.0.0 + Compiling proc-macro2 v1.0.58 + Compiling unicode-ident v1.0.8 + Compiling quote v1.0.27 + Compiling autocfg v1.1.0 + Compiling version_check v0.9.4 + Compiling libc v0.2.144 + Compiling typenum v1.16.0 + Compiling serde v1.0.163 + Compiling cfg-if v1.0.0 + Compiling syn v1.0.109 + Compiling libm v0.2.7 + Compiling subtle v2.4.1 + Compiling rand_core v0.5.1 + Compiling ppv-lite86 v0.2.17 + Compiling funty v1.1.0 + Compiling io-lifetimes v1.0.10 + Compiling wyz v0.2.0 + Compiling byteorder v1.4.3 + Compiling radium v0.3.0 + Compiling cc v1.0.79 + Compiling block-padding v0.2.1 + Compiling rustix v0.37.19 + Compiling bitflags v1.3.2 + Compiling proc-macro2 v0.4.30 + Compiling opaque-debug v0.3.0 + Compiling rustversion v1.0.12 + Compiling bitvec v0.18.5 + Compiling linux-raw-sys v0.3.7 + Compiling generic-array v0.14.7 + Compiling crunchy v0.2.2 + Compiling unicode-xid v0.1.0 + Compiling num-traits v0.2.15 + Compiling num-integer v0.1.45 + Compiling indexmap v1.9.3 + Compiling num-bigint v0.4.3 + Compiling num-iter v0.1.43 + Compiling num-rational v0.4.1 + Compiling once_cell v1.17.1 + Compiling syn v2.0.16 + Compiling fastrand v1.9.0 + Compiling serde_json v1.0.96 + Compiling cpufeatures v0.2.7 + Compiling hashbrown v0.12.3 + Compiling syn v0.15.44 + Compiling quote v0.6.13 + Compiling rand_chacha v0.2.2 + Compiling heck v0.4.1 + Compiling ryu v1.0.13 + Compiling itoa v1.0.6 + Compiling digest v0.9.0 + Compiling block-buffer v0.9.0 + Compiling crypto-mac v0.10.1 + Compiling getrandom v0.2.9 + Compiling signature v1.2.2 + Compiling wait-timeout v0.2.0 + Compiling sha2 v0.9.9 + Compiling hmac v0.10.1 + Compiling thiserror v1.0.40 + Compiling regex-syntax v0.7.1 + Compiling keccak v0.1.4 + Compiling quick-error v1.2.3 + Compiling bit-vec v0.6.3 + Compiling rand_core v0.6.4 + Compiling ff v0.8.0 + Compiling schemars v0.8.5 + Compiling group v0.8.0 + Compiling fnv v1.0.7 + Compiling rand_chacha v0.3.1 + Compiling rand_xorshift v0.3.0 + Compiling bit-set v0.5.3 + Compiling num-complex v0.4.3 + Compiling sha3 v0.9.1 + Compiling ed25519 v1.2.0 + Compiling rand v0.7.3 + Compiling crypto-mac v0.8.0 + Compiling unarray v0.1.4 + Compiling rand v0.8.5 + Compiling regex-syntax v0.6.29 + Compiling untrusted v0.7.1 + Compiling quick-error v2.0.1 + Compiling base64 v0.13.1 + Compiling static_assertions v1.1.0 + Compiling dyn-clone v1.0.11 + Compiling lazy_static v1.4.0 + Compiling derp v0.0.14 + Compiling blake2 v0.9.2 + Compiling rand_pcg v0.3.1 + Compiling num-bigint v0.2.6 + Compiling value-bag v1.0.0-alpha.9 + Compiling pkg-config v0.3.27 + Compiling base16 v0.2.1 + Compiling hex_fmt v0.3.0 + Compiling humantime v2.1.0 + Compiling num-rational v0.2.4 + Compiling parity-wasm v0.42.2 + Compiling log v0.4.17 + Compiling regex v1.8.1 + Compiling anyhow v1.0.71 + Compiling wee_alloc v0.4.5 + Compiling either v1.8.1 + Compiling secp256k1-sys v0.8.1 + Compiling itertools v0.10.5 + Compiling tracing-core v0.1.31 + Compiling tempfile v3.5.0 + Compiling lmdb-rkv-sys v0.11.2 + Compiling cfg-if v0.1.10 + Compiling pem v0.8.3 + Compiling rusty-fork v0.3.0 + Compiling serde_derive_internals v0.25.0 + Compiling proptest v1.1.0 + Compiling wasmi-validation v0.4.1 + Compiling match_cfg v0.1.0 + Compiling memory_units v0.4.0 + Compiling memory_units v0.3.0 + Compiling downcast-rs v1.2.0 + Compiling pin-project-lite v0.2.9 + Compiling hostname v0.3.1 + Compiling wasmi v0.9.1 + Compiling num_cpus v1.15.0 + Compiling tiny-keccak v2.0.2 + Compiling linked-hash-map v0.5.6 + Compiling filesize v0.2.0 + Compiling lmdb-rkv v0.14.0 + Compiling datasize_derive v0.2.14 + Compiling schemars_derive v0.8.5 + Compiling strum_macros v0.24.3 + Compiling num-derive v0.3.3 + Compiling ctor v0.1.26 + Compiling serde_derive v1.0.163 + Compiling zeroize_derive v1.4.2 + Compiling thiserror-impl v1.0.40 + Compiling tracing-attributes v0.1.24 + Compiling proptest-derive v0.3.0 + Compiling datasize v0.2.14 + Compiling secp256k1 v0.27.0 + Compiling zeroize v1.3.0 + Compiling elliptic-curve v0.8.5 + Compiling curve25519-dalek v3.2.1 + Compiling ecdsa v0.10.2 + Compiling k256 v0.7.3 + Compiling ed25519-dalek v1.0.1 + Compiling strum v0.24.1 + Compiling tracing v0.1.37 + Compiling hex v0.4.3 + Compiling serde_bytes v0.11.9 + Compiling bincode v1.3.3 + Compiling uuid v0.8.2 + Compiling toml v0.5.11 + Compiling uint v0.9.5 + Compiling hex-buffer-serde v0.3.0 + Compiling hex-buffer-serde v0.2.2 + Compiling casper-wasm-utils v1.0.0 + Compiling num v0.4.0 + Compiling casper-types v3.0.0 + Compiling casper-hashing v2.0.0 + Compiling casper-contract v3.0.0 + Compiling contract-utils v0.1.0 (/workspace/bridge-casper-smart-contracts/utils/contract-utils) +warning: unused variable: `res` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:69:9 + | +69 | let res = s.sign_ecdsa_recoverable(&msg, &key); + | ^^^ help: if this is intentional, prefix it with an underscore: `_res` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `r` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:71:9 + | +71 | let r = hex::encode(&sig_bytes[..32]); + | ^ help: if this is intentional, prefix it with an underscore: `_r` + +warning: unused variable: `s` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:72:9 + | +72 | let s = hex::encode(&sig_bytes[32..64]); + | ^ help: if this is intentional, prefix it with an underscore: `_s` + +warning: unused variable: `slice` + --> /workspace/bridge-casper-smart-contracts/utils/contract-utils/src/keccak.rs:77:9 + | +77 | let slice = vec.as_slice(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` + + Compiling casper-execution-engine v5.0.0 +warning: `contract-utils` (lib) generated 4 warnings (run `cargo fix --lib -p contract-utils` to apply 4 suggestions) + Compiling casper-engine-test-support v5.0.0 + Compiling test-env v0.1.0 (/workspace/bridge-casper-smart-contracts/utils/test-env) + Compiling tests v1.0.0 (/workspace/bridge-casper-smart-contracts/tests) +warning: unused import: `std::collections::BTreeMap` + --> src/integration_tests.rs:15:9 + | +15 | use std::collections::BTreeMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused imports: `CLTyped`, `URef`, `account::AccountHash` + --> src/integration_tests.rs:23:9 + | +23 | account::AccountHash, + | ^^^^^^^^^^^^^^^^^^^^ +24 | bytesrepr::{FromBytes, ToBytes}, +25 | CLTyped, ContractPackageHash, Key, URef, BLAKE2B_DIGEST_LENGTH, U256, + | ^^^^^^^ ^^^^ + +warning: unused import: `test_env::TestEnv` + --> src/integration_tests.rs:27:9 + | +27 | use test_env::TestEnv; + | ^^^^^^^^^^^^^^^^^ + +warning: use of deprecated static `casper_engine_test_support::DEFAULT_RUN_GENESIS_REQUEST`: prefer `PRODUCTION_RUN_GENESIS_REQUEST` as it uses cost tables matching those used in Casper Mainnet + --> src/integration_tests.rs:11:9 + | +11 | DEFAULT_RUN_GENESIS_REQUEST, PRODUCTION_RUN_GENESIS_REQUEST, + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(deprecated)]` on by default + +warning: use of deprecated static `casper_engine_test_support::DEFAULT_RUN_GENESIS_REQUEST`: prefer `PRODUCTION_RUN_GENESIS_REQUEST` as it uses cost tables matching those used in Casper Mainnet + --> src/integration_tests.rs:941:30 + | +941 | builder.run_genesis(&DEFAULT_RUN_GENESIS_REQUEST).commit(); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `FromBytes` + --> src/integration_tests.rs:24:21 + | +24 | bytesrepr::{FromBytes, ToBytes}, + | ^^^^^^^^^ + +warning: unused variable: `erc20_contract_package_hash_string` + --> src/integration_tests.rs:555:13 + | +555 | let erc20_contract_package_hash_string = erc20_contract_package_hash.to_formatted_string(); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_erc20_contract_package_hash_string` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `bridge_pool_contract_package_hash_string` + --> src/integration_tests.rs:556:13 + | +556 | let bridge_pool_contract_package_hash_string = + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bridge_pool_contract_package_hash_string` + +warning: unused variable: `erc20_contract_package_hash_string` + --> src/integration_tests.rs:665:13 + | +665 | let erc20_contract_package_hash_string = erc20_contract_package_hash.to_formatted_string(); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_erc20_contract_package_hash_string` + +warning: unused variable: `bridge_pool_contract_package_hash_string` + --> src/integration_tests.rs:666:13 + | +666 | let bridge_pool_contract_package_hash_string = + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bridge_pool_contract_package_hash_string` + +warning: unused variable: `erc20_contract_package_hash_string` + --> src/integration_tests.rs:1028:13 + | +1028 | let erc20_contract_package_hash_string = erc20_contract_package_hash.to_formatted_string(); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_erc20_contract_package_hash_string` + +warning: unused variable: `bridge_pool_contract_package_hash_string` + --> src/integration_tests.rs:1029:13 + | +1029 | let bridge_pool_contract_package_hash_string = + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bridge_pool_contract_package_hash_string` + +warning: variable does not need to be mutable + --> src/integration_tests.rs:1372:13 + | +1372 | let mut signature_vec: Vec = signature; + | ----^^^^^^^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: constant `COUNTER_CALL_WASM` is never used + --> src/integration_tests.rs:31:11 + | +31 | const COUNTER_CALL_WASM: &str = "counter-call.wasm"; // The session code that calls the contract + | ^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: constant `CONTRACT_KEY` is never used + --> src/integration_tests.rs:37:11 + | +37 | const CONTRACT_KEY: &str = "bridge_pool"; // Named key referencing this contract + | ^^^^^^^^^^^^ + +warning: constant `LIQUIDITY_KEY` is never used + --> src/integration_tests.rs:38:11 + | +38 | const LIQUIDITY_KEY: &str = "liquidity"; // Named key referencing the count value + | ^^^^^^^^^^^^^ + +warning: constant `CONTRACT_VERSION_KEY` is never used + --> src/integration_tests.rs:39:11 + | +39 | const CONTRACT_VERSION_KEY: &str = "version"; // Automatically incremented version in a contract package + | ^^^^^^^^^^^^^^^^^^^^ + +warning: `tests` (bin "integration-tests" test) generated 17 warnings (run `cargo fix --bin "integration-tests" --tests` to apply 10 suggestions) + Finished test [unoptimized + debuginfo] target(s) in 1m 25s + Running unittests src/integration_tests.rs (target/debug/deps/integration_tests-28761e1b19258f14) + +running 8 tests +test tests::should_be_able_to_install_and_add_signer ... ok +test tests::should_be_able_to_install_and_allow_target ... ok +test tests::should_be_able_to_install_and_add_liquidity ... ok +test tests::should_be_able_to_install_add_and_remove_signer ... ok +test tests::should_be_able_to_install_and_get_liquidity ... ok +test tests::should_be_able_to_install_and_add_liquidity_and_remove_liquidity ... ok +test tests::should_be_able_to_install_and_add_liquidity_and_swap ... ok +test tests::should_be_able_to_install_and_add_liquidity_and_withdraw_signed ... FAILED + +failures: + +---- tests::should_be_able_to_install_and_add_liquidity_and_withdraw_signed stdout ---- +erc20_contract_hash "contract-af425c8c851e4eb341f504454ba886b886e1fac8961f20e7c74b6d6b929614b0" +erc20_contract_package_hash.to_formatted_string() is contract-package-b712ba79119a19b1880814eba5aaaaa01ec295d880a263ee69a9aebf01828b93 +bridge_pool_contract_package_hash.to_formatted_string() is contract-package-b1dbb5177b641878f3b5577c38bd0c795076c5d4063161d24f16fc1a383b7e22 +bridge_pool_contract_hash.to_formatted_string() is contract-a6d06b4e9a3ee12867dc7fdb6b79e60a36628dc7d70d7b20811847f57f1c3ea7 +signature is 5eaca1dd5f48b005862df653d943343b84ff1cfbdc5205ab0aeb0d1cb75064627ffe2f7a3d1e72290e8d3584a0b3624e1dd49df11fa3c2d83e15cbb28f86bd3b00 +amount is 1 +erc20_contract_package_hash_string is contract-package-b712ba79119a19b1880814eba5aaaaa01ec295d880a263ee69a9aebf01828b93 +signer_string is cc29f0f5005edfe3755b3f52f98e01785b47703f +thread 'tests::should_be_able_to_install_and_add_liquidity_and_withdraw_signed' panicked at 'Expected successful execution result, but instead got: Failure { + error: Exec( + Interpreter( + "trap: Trap { kind: Unreachable }", + ), + ), + transfers: [], + cost: Gas( + 5045067480, + ), + execution_journal: ExecutionJournal( + [ + ( + Key::Hash(2b0bafe7e494bda805d8805708f197df592080aa091f8c3ea48d5124086d38d1), + Identity, + ), + ( + Key::Hash(8aaf51097e8ef647f598f0c31b2ced495cdafd6e8e8202f539a59344682a8193), + Identity, + ), + ( + Key::Hash(2b0bafe7e494bda805d8805708f197df592080aa091f8c3ea48d5124086d38d1), + Identity, + ), + ( + Key::Hash(ee6d1cbd6af09faacbc97e71d326dc2ab4a24ec783aebdb07a15d3c848a01302), + Identity, + ), + ( + Key::Hash(a61edb38669f2e5c65447708989f34939145988f5f4b5c8ed3d6399c0a6450ee), + Identity, + ), + ( + Key::Hash(ee6d1cbd6af09faacbc97e71d326dc2ab4a24ec783aebdb07a15d3c848a01302), + Identity, + ), + ( + Key::Balance(d124a145ff53378cfff7970ca163b2acee77570c6c6852fc717de5067c325db6), + Identity, + ), + ( + Key::Balance(eb40a2b1455716c2f4f75e47ee8efb459390b61c6c7db9fdb24fc5c9fd76d147), + Identity, + ), + ( + Key::Balance(d124a145ff53378cfff7970ca163b2acee77570c6c6852fc717de5067c325db6), + Write( + CLValue( + CLValue { + cl_type: U512, + bytes: Bytes( + [ + 8, + 0, + 64, + 205, + 101, + 142, + 58, + 99, + 1, + ], + ), + }, + ), + ), + ), + ( + Key::Balance(eb40a2b1455716c2f4f75e47ee8efb459390b61c6c7db9fdb24fc5c9fd76d147), + AddUInt512( + 1500000000000, + ), + ), + ( + Key::Hash(2b0bafe7e494bda805d8805708f197df592080aa091f8c3ea48d5124086d38d1), + Identity, + ), + ( + Key::Hash(2b0bafe7e494bda805d8805708f197df592080aa091f8c3ea48d5124086d38d1), + Identity, + ), + ( + Key::Hash(2b0bafe7e494bda805d8805708f197df592080aa091f8c3ea48d5124086d38d1), + Identity, + ), + ( + Key::Hash(8aaf51097e8ef647f598f0c31b2ced495cdafd6e8e8202f539a59344682a8193), + Identity, + ), + ( + Key::Hash(2b0bafe7e494bda805d8805708f197df592080aa091f8c3ea48d5124086d38d1), + Identity, + ), + ( + Key::Balance(eb40a2b1455716c2f4f75e47ee8efb459390b61c6c7db9fdb24fc5c9fd76d147), + Identity, + ), + ( + Key::Hash(2b0bafe7e494bda805d8805708f197df592080aa091f8c3ea48d5124086d38d1), + Identity, + ), + ( + Key::Hash(ee6d1cbd6af09faacbc97e71d326dc2ab4a24ec783aebdb07a15d3c848a01302), + Identity, + ), + ( + Key::Hash(a61edb38669f2e5c65447708989f34939145988f5f4b5c8ed3d6399c0a6450ee), + Identity, + ), + ( + Key::Hash(ee6d1cbd6af09faacbc97e71d326dc2ab4a24ec783aebdb07a15d3c848a01302), + Identity, + ), + ( + Key::Balance(eb40a2b1455716c2f4f75e47ee8efb459390b61c6c7db9fdb24fc5c9fd76d147), + Identity, + ), + ( + Key::Balance(3742e6011967754e97d28b35be8d915159db7b05370f802e79c9d4507f075e04), + Identity, + ), + ( + Key::Balance(eb40a2b1455716c2f4f75e47ee8efb459390b61c6c7db9fdb24fc5c9fd76d147), + Write( + CLValue( + CLValue { + cl_type: U512, + bytes: Bytes( + [ + 0, + ], + ), + }, + ), + ), + ), + ( + Key::Balance(3742e6011967754e97d28b35be8d915159db7b05370f802e79c9d4507f075e04), + AddUInt512( + 1500000000000, + ), + ), + ], + ), +}', /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/casper-engine-test-support-5.0.0/src/wasm_test_builder.rs:842:13 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + + +failures: + tests::should_be_able_to_install_and_add_liquidity_and_withdraw_signed + +test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.69s + +error: test failed, to rerun pass `--bin integration-tests` +make: *** [Makefile:20: test] Error 101 diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/csprswap.png b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/csprswap.png new file mode 100644 index 00000000..bbc7c1b0 Binary files /dev/null and b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/csprswap.png differ diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/csprwithdraw.png b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/csprwithdraw.png new file mode 100644 index 00000000..a426dcf8 Binary files /dev/null and b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/csprwithdraw.png differ diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpminstall.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpminstall.md new file mode 100644 index 00000000..13af96f9 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpminstall.md @@ -0,0 +1,53 @@ +npm WARN ERESOLVE overriding peer dependency +npm WARN While resolving: react-color-gradient-picker@0.1.2 +npm WARN Found: react@17.0.2 +npm WARN node_modules/react +npm WARN react@"^17.0.2" from the root project +npm WARN 31 more (@emotion/react, ...) +npm WARN +npm WARN Could not resolve dependency: +npm WARN peer react@"^16.13.1" from react-color-gradient-picker@0.1.2 +npm WARN node_modules/ferrum-design-system/node_modules/react-color-gradient-picker +npm WARN react-color-gradient-picker@"^0.1.2" from ferrum-design-system@1.0.82 +npm WARN node_modules/ferrum-design-system +npm WARN +npm WARN Conflicting peer dependency: react@16.14.0 +npm WARN node_modules/react +npm WARN peer react@"^16.13.1" from react-color-gradient-picker@0.1.2 +npm WARN node_modules/ferrum-design-system/node_modules/react-color-gradient-picker +npm WARN react-color-gradient-picker@"^0.1.2" from ferrum-design-system@1.0.82 +npm WARN node_modules/ferrum-design-system +npm WARN ERESOLVE overriding peer dependency +npm WARN While resolving: react-dom@16.14.0 +npm WARN Found: react@17.0.2 +npm WARN node_modules/react +npm WARN react@"^17.0.2" from the root project +npm WARN 31 more (@emotion/react, ...) +npm WARN +npm WARN Could not resolve dependency: +npm WARN peer react@"^16.14.0" from react-dom@16.14.0 +npm WARN node_modules/ferrum-design-system/node_modules/react-dom +npm WARN peer react-dom@"^16.13.1" from react-color-gradient-picker@0.1.2 +npm WARN node_modules/ferrum-design-system/node_modules/react-color-gradient-picker +npm WARN +npm WARN Conflicting peer dependency: react@16.14.0 +npm WARN node_modules/react +npm WARN peer react@"^16.14.0" from react-dom@16.14.0 +npm WARN node_modules/ferrum-design-system/node_modules/react-dom +npm WARN peer react-dom@"^16.13.1" from react-color-gradient-picker@0.1.2 +npm WARN node_modules/ferrum-design-system/node_modules/react-color-gradient-picker + +up to date, audited 1973 packages in 3s + +244 packages are looking for funding + run `npm fund` for details + +11 high severity vulnerabilities + +To address issues that do not require attention, run: + npm audit fix + +To address all issues (including breaking changes), run: + npm audit fix --force + +Run `npm audit` for details. diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpmstart2.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpmstart2.md new file mode 100644 index 00000000..b93ca2a6 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpmstart2.md @@ -0,0 +1,101 @@ + +> my-app@0.1.0 start +> react-scripts start + +(node:1533) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. +(Use `node --trace-deprecation ...` to show where the warning was created) +(node:1533) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. +Starting the development server... + +(node:1533) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader +(node:1533) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated. +BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation. + Do changes to assets earlier, e. g. in Compilation.hooks.processAssets. + Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*. +Compiled with warnings. + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/BodyRow.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/BodyRow.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Filter.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Filter.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Pagination.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Pagination.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/PaginationOpts.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/PaginationOpts.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Table.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Table.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableBody.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableBody.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableHeader.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableHeader.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/data.ts' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/data.ts' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/object.ts' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/object.ts' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/index.ts' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/index.ts' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/FontAwesome.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/FontAwesome.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/NavButton.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/NavButton.tsx' + +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/TableContext.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/TableContext.tsx' + +Search for the keywords to learn more about each warning. +To ignore, add // eslint-disable-next-line to the line before. + +WARNING in ./node_modules/react-bs-datatable/lib/BodyRow.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/BodyRow.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/BodyRow.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/Filter.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Filter.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Filter.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/Pagination.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Pagination.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Pagination.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/PaginationOpts.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/PaginationOpts.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/PaginationOpts.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/Table.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Table.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/Table.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/TableBody.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableBody.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableBody.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/TableHeader.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableHeader.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/TableHeader.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/helpers/data.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/data.ts' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/data.ts' + +WARNING in ./node_modules/react-bs-datatable/lib/helpers/object.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/object.ts' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/helpers/object.ts' + +WARNING in ./node_modules/react-bs-datatable/lib/index.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/index.ts' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/index.ts' + +WARNING in ./node_modules/react-bs-datatable/lib/modules/FontAwesome.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/FontAwesome.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/FontAwesome.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/modules/NavButton.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/NavButton.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/NavButton.tsx' + +WARNING in ./node_modules/react-bs-datatable/lib/modules/TableContext.js +Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js): +Failed to parse source map from '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/TableContext.tsx' file: Error: ENOENT: no such file or directory, open '/workspace/casper-bridge-frontend/node_modules/react-bs-datatable/src/modules/TableContext.tsx' + +webpack compiled with 13 warnings +Files successfully emitted, waiting for typecheck results... +Issues checking in progress... +No issues found. diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpmtest.md b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpmtest.md new file mode 100644 index 00000000..7f009694 --- /dev/null +++ b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/frontnpmtest.md @@ -0,0 +1,11 @@ + +> my-app@0.1.0 test +> jest --collectCoverage=false --silent + +PASS tests/CasperToBsc.test.tsx (9.217 s) +PASS tests/BscToCasper.test.tsx (9.26 s) + +Test Suites: 2 passed, 2 total +Tests: 16 passed, 16 total +Snapshots: 0 total +Time: 10.781 s, estimated 15 s diff --git a/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/main.png b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/main.png new file mode 100644 index 00000000..8037609c Binary files /dev/null and b/Reviews/318 - Cross Chain Token Bridge-Staking as a Service Solutions/2 - Build, Deploy, and Internally QA Bridging Shell App/assets/main.png differ