diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 95e86e78db..e5140df252 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -21,6 +21,6 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-cla-document: 'https://github.com/gnosis/safe-react/blob/main/GNOSISCLA.md' branch: 'cla-signatures' - allowlist: lukasschor,mikheevm,rmeissner,germartinez,davidalbela,Uxio0,dasanra,francovenica,tschubotz,luarx,giacomolicari,gnosis-info,bot*,katspaugh,DaniSomoza,iamacook,yagopv,usame-algan,InoMurko + allowlist: lukasschor,mikheevm,rmeissner,germartinez,davidalbela,Uxio0,dasanra,francovenica,tschubotz,luarx,giacomolicari,gnosis-info,bot*,katspaugh,DaniSomoza,iamacook,yagopv,usame-algan empty-commit-flag: false blockchain-storage-flag: false diff --git a/.github/workflows/mint.yml b/.github/workflows/mint.yml new file mode 100644 index 0000000000..f7405dceda --- /dev/null +++ b/.github/workflows/mint.yml @@ -0,0 +1,46 @@ +name: Mint PR NFT + +on: + pull_request: + branches: + - dev + +jobs: + mint: + environment: Manual + name: Mint + runs-on: ubuntu-latest + steps: + - name: Check if already minted + uses: web3actions/tx@d3833db41e58cb4e7f329027ad30211a22e1c5e5 + with: + rpc-node: ${{ secrets.RPC_NODE}} + wallet-key: ${{ secrets.WALLET_KEY }} + contract: ${{ secrets.CONTRACT_ADDRESS }} + function: "tokenURI(uint256 _tokenId)" + inputs: '[ ${{ github.event.number }} ]' + value: "0" + + - name: Mint + id: mint + if: ${{ failure() }} + uses: web3actions/tx@d3833db41e58cb4e7f329027ad30211a22e1c5e5 + with: + rpc-node: ${{ secrets.RPC_NODE}} + wallet-key: ${{ secrets.WALLET_KEY }} + contract: ${{ secrets.CONTRACT_ADDRESS }} + function: "mint(address _to, uint256 _tokenId, string _uri)" + inputs: '[ "${{ secrets.WALLET_ADDRESS }}", ${{ github.event.number }}, "https://github.com/gnosis/safe-react/pull/${{ github.event.number }}" ]' + value: "0" + + - name: Set success comment + if: steps.mint.outcome == 'success' + uses: peter-evans/create-or-update-comment@v1 + with: + issue-number: ${{ github.event.number }} + body: | + [](https://blockscout.com/xdai/mainnet/token/${{ secrets.CONTRACT_ADDRESS }}/instance/${{ github.event.number }}) + + Dear @${{ github.event.pull_request.user.login }}, + Thank you for your contribution! Please, let us know your Ethereum address to receive [this NFT on Gnosis Chain](https://epor.io/tokens/${{ secrets.CONTRACT_ADDRESS }}/${{ github.event.number }}?network=xDai). + Cheers! 🏆 diff --git a/README.md b/README.md index 3eb15ff763..41e192baa4 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Please see the [transaction](docs/transactions.md) notes for more information ab ## Getting Started -These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [Deployment](#deployment) for notes on how to deploy the project on a live system. +These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes. See [Deployment](#deployment) for notes on how to deploy the project on a live system. ### Prerequisites @@ -88,7 +88,7 @@ docker-compose build && docker-compose up ### Building -Te get a complete bundle using the current configuration use: +To get a complete bundle using the current configuration use: ``` yarn build diff --git a/docs/release-procedure.md b/docs/release-procedure.md index ffe0b8e8d4..e4df6144f8 100644 --- a/docs/release-procedure.md +++ b/docs/release-procedure.md @@ -15,10 +15,24 @@ git log origin/main..origin/dev --pretty=format:'* %s' ### QA * The QA team do regression testing on this branch * If issues are found, bugfixes are merged into this branch -* Once the QA is done, we push the branch to `main` -* `main` is automatically deployed to staging – some extra QA can be done there if needed +* Once the QA is done, proceed to the next step ### Tag & release +Wait for all the checks on GitHub to pass. +* Switch to the main branch and make sure it's up to date: +``` +git checkout main +git fetch --all +git reset --hard origin/main +``` +* Pull from the release branch: +``` +git pull origin release/3.15.0 +``` +* Push to main: +``` +git push origin main +``` * Create and push a new version tag : ``` git tag v3.15.0 diff --git a/package.json b/package.json index 7c752024f9..c1ca403211 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "safe-react", - "version": "3.18.0", + "version": "3.20.0", "description": "Allowing crypto users manage funds in a safer way", "website": "https://github.com/gnosis/safe-react#readme", "bugs": { @@ -86,10 +86,11 @@ "@ethersproject/hash": "^5.5.0", "@gnosis.pm/safe-apps-sdk": "6.2.0", "@gnosis.pm/safe-apps-sdk-v1": "npm:@gnosis.pm/safe-apps-sdk@0.4.2", - "@gnosis.pm/safe-core-sdk": "^1.3.0", + "@gnosis.pm/safe-core-sdk": "^2.0.0", "@gnosis.pm/safe-deployments": "^1.8.0", "@gnosis.pm/safe-react-components": "^0.9.8", "@gnosis.pm/safe-react-gateway-sdk": "2.8.3", + "@gnosis.pm/safe-web3-lib": "^1.0.0", "@material-ui/core": "^4.12.3", "@material-ui/icons": "^4.11.0", "@material-ui/lab": "4.0.0-alpha.60", @@ -100,7 +101,7 @@ "abi-decoder": "^2.4.0", "axios": "0.21.4", "bignumber.js": "9.0.1", - "bnc-onboard": "~1.35.3", + "bnc-onboard": "^1.37.3", "classnames": "^2.2.6", "currency-flags": "3.2.1", "date-fns": "^2.20.2", @@ -139,13 +140,14 @@ "reselect": "^4.0.0", "semver": "^7.3.2", "styled-components": "^5.3.0", - "web3": "1.6.0", - "web3-core": "^1.6.0", - "web3-eth-contract": "^1.6.0", - "web3-utils": "^1.6.0" + "ua-parser-js": "^1.0.2", + "web3": "1.7.0", + "web3-core": "^1.7.0", + "web3-eth-contract": "^1.7.0", + "web3-utils": "^1.7.0" }, "devDependencies": { - "@gnosis.pm/safe-core-sdk-types": "^0.1.1", + "@gnosis.pm/safe-core-sdk-types": "1.0.0", "@rescripts/cli": "^0.0.16", "@sentry/cli": "^1.67.2", "@storybook/addon-actions": "^6.3.8", @@ -168,6 +170,7 @@ "@types/react-router-dom": "^5.1.9", "@types/redux-actions": "^2.6.2", "@types/styled-components": "^5.1.11", + "@types/ua-parser-js": "^0.7.36", "@typescript-eslint/eslint-plugin": "^4.31.1", "@typescript-eslint/parser": "^4.31.1", "concurrently": "^6.0.0", diff --git a/public/index.html b/public/index.html index a6ac19c7ab..fd0cfd2979 100644 --- a/public/index.html +++ b/public/index.html @@ -39,7 +39,7 @@ }
- +