Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
add boba l2 rinkeby and mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
InoMurko committed Nov 13, 2021
1 parent d5ecb97 commit af1365f
Show file tree
Hide file tree
Showing 11 changed files with 487 additions and 7 deletions.
145 changes: 145 additions & 0 deletions .github/workflows/deploy-boba.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
name: Deploy to Boba network

# Run on pushes to main or PRs to main
on:
push:
branches:
- main
pull_request:
# Launches build when release is published
release:
types: [published]

env:
REPO_NAME_ALPHANUMERIC: safereact
REACT_APP_NETWORK: 'boba'
REACT_APP_LATEST_SAFE_VERSION: '1.3.0'
STAGING_BUCKET_NAME: ${{ secrets.STAGING_BOBA_BUCKET_NAME }}
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN_BOBA }}
REACT_APP_GOOGLE_ANALYTICS: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID_BOBA }}
REACT_APP_GNOSIS_APPS_URL: ${{ secrets.REACT_APP_GNOSIS_APPS_URL_PROD }}

jobs:
debug:
name: Debug
runs-on: ubuntu-latest
steps:
- name: Dump env
run: env | sort
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
deploy:
name: Deployment
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Remove broken apt repos [Ubuntu]
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- run: |
sudo apt-get update
sudo apt-get -y install python3-pip python3-dev libusb-1.0-0-dev libudev-dev
pip install awscli --upgrade --user
# Due to some dependencies yarn may randomly throw an error about invalid cache
# This approach is taken from https://github.com/yarnpkg/yarn/issues/7212#issuecomment-506155894 to fix the issue
# Another approach is to install with flag --network-concurrency 1, but this will make the installation pretty slow (default value is 8)
mkdir .yarncache
yarn install --cache-folder ./.yarncache --frozen-lockfile
rm -rf .yarncache
yarn cache clean
# Set production flag
- name: Set production flag for release PR or tagged build
run: echo "REACT_APP_ENV=production" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/v') || github.base_ref == 'main'

- name: Build ${{ env.REACT_APP_NETWORK }} app
run: yarn build
env:
PUBLIC_URL: './'
REACT_APP_FORTMATIC_KEY: ${{ secrets.REACT_APP_FORTMATIC_KEY }}
REACT_APP_INFURA_TOKEN: ${{ secrets.REACT_APP_INFURA_TOKEN }}
REACT_APP_PORTIS_ID: ${{ secrets.REACT_APP_PORTIS_ID }}
REACT_APP_INTERCOM_ID: ${{ secrets.REACT_APP_INTERCOM_ID }}
REACT_APP_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}

# Script to deploy Pull Requests
- run: bash ./scripts/github/deploy_pull_request.sh
if: success() && github.event.number
env:
PR_NUMBER: ${{ github.event.number }}
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}

- name: 'PRaul: Comment PR with app URLs'
uses: mshick/add-pr-comment@v1
with:
message: |
* [Safe Multisig app ${{ env.REACT_APP_NETWORK }}](${{ env.REVIEW_FEATURE_URL }}/${{ env.REACT_APP_NETWORK }}/app/)
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]'
if: success() && github.event.number
env:
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com

# Script to deploy to the dev environment

# Script to deploy to staging environment
- name: 'Deploy to S3: Staging'
if: github.ref == 'refs/heads/main'
run: aws s3 sync build s3://${{ env.STAGING_BUCKET_NAME }}/current/app --delete

# Script to upload release files
- name: 'Upload release build files for production'
if: startsWith(github.ref, 'refs/tags/v')
run: aws s3 sync build s3://${{ env.STAGING_BUCKET_NAME }}/releases/${{ github.event.release.tag_name }} --delete
# - run: bash ./scripts/github/deploy_release.sh
# if: startsWith(github.ref, 'refs/tags/v')
# env:
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# PR_NUMBER: ${{ github.event.number }}
# REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
# REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
# VERSION_TAG: ${{ github.event.release.tag_name }}
# Script to prepare production deployments
- run: bash ./scripts/github/prepare_production_deployment.sh
if: success() && startsWith(github.ref, 'refs/tags/v')
env:
PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }}
PROD_DEPLOYMENT_HOOK_URL: ${{ secrets.PROD_DEPLOYMENT_HOOK_URL }}
VERSION_TAG: ${{ github.event.release.tag_name }}

# Upload Sentry source maps when sending to staging or production
- run: yarn sentry-upload-sourcemaps
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG}}
SENTRY_PROJECT: gnosis-safe-multisig-${{ env.REACT_APP_NETWORK }}
30 changes: 30 additions & 0 deletions boba_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"@gnosis.pm/safe-apps-sdk": "4.3.0-next.2",
"@gnosis.pm/safe-apps-sdk-v1": "npm:@gnosis.pm/[email protected]",
"@gnosis.pm/safe-core-sdk": "^0.3.1",
"@gnosis.pm/safe-deployments": "^1.2.0",
"@gnosis.pm/safe-deployments": "^1.3.0",
"@gnosis.pm/safe-react-components": "^0.8.0",
"@gnosis.pm/safe-react-gateway-sdk": "2.3.0",
"@ledgerhq/hw-transport-node-hid-singleton": "6.3.0",
Expand Down
112 changes: 112 additions & 0 deletions patches/@gnosis.pm+safe-deployments+1.4.0.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,115 @@
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/compatibility_fallback_handler.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/compatibility_fallback_handler.json
index 225379c..6a22a31 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/compatibility_fallback_handler.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/compatibility_fallback_handler.json
@@ -17,7 +17,8 @@
"42220": "0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",
"43114": "0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",
"73799": "0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",
- "333999": "0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4"
+ "333999": "0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",
+ "28": "0x999933FF5284038197602a80173F4f4ECb634866"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/create_call.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/create_call.json
index e476420..e8185c6 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/create_call.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/create_call.json
@@ -17,7 +17,8 @@
"42220": "0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",
"43114": "0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",
"73799": "0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",
- "333999": "0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4"
+ "333999": "0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",
+ "28": "0xf71904bD3DCD3141BAF74AFD8F17281e207defe6"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe.json
index 550950f..bf8dee5 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe.json
@@ -17,7 +17,8 @@
"42220": "0x69f4D1788e39c87893C980c06EdF4b7f686e2938",
"43114": "0x69f4D1788e39c87893C980c06EdF4b7f686e2938",
"73799": "0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
- "333999": "0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552"
+ "333999": "0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
+ "28": "0x47b45765ee4e270dE60852295bB0Dd105E1A4Df0"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe_l2.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe_l2.json
index 2e36bfd..1b088c5 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe_l2.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/gnosis_safe_l2.json
@@ -17,7 +17,8 @@
"42220": "0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",
"43114": "0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",
"73799": "0x3E5c63644E683549055b9Be8653de26E0B4CD36E",
- "333999": "0x3E5c63644E683549055b9Be8653de26E0B4CD36E"
+ "333999": "0x3E5c63644E683549055b9Be8653de26E0B4CD36E",
+ "28": "0xE84AAb853C4FBaafd3eD795F67494d4Da1539492"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send.json
index b6e04a2..ec8d079 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send.json
@@ -17,7 +17,8 @@
"42220": "0x998739BFdAAdde7C933B942a68053933098f9EDa",
"43114": "0x998739BFdAAdde7C933B942a68053933098f9EDa",
"73799": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",
- "333999": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"
+ "333999": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",
+ "28": "0xDBD71249Fe60c9f9bF581b3594734E295EAfA9b2"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send_call_only.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send_call_only.json
index daccb28..9d02b96 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send_call_only.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/multi_send_call_only.json
@@ -17,7 +17,8 @@
"42220": "0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",
"43114": "0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",
"73799": "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",
- "333999": "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"
+ "333999": "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",
+ "28": "0x12D02fE0C317d6De6712441549dbB743B6f7bbB6"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/proxy_factory.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/proxy_factory.json
index 6f7bba4..ace506a 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/proxy_factory.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/proxy_factory.json
@@ -17,7 +17,8 @@
"42220": "0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",
"43114": "0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",
"73799": "0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
- "333999": "0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2"
+ "333999": "0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
+ "28": "0x172e17a6B3960940E3678f3CECb6288647e47877"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/sign_message_lib.json b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/sign_message_lib.json
index 3a20a1e..7bb5802 100644
--- a/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/sign_message_lib.json
+++ b/node_modules/@gnosis.pm/safe-deployments/dist/assets/v1.3.0/sign_message_lib.json
@@ -17,7 +17,8 @@
"42220": "0x98FFBBF51bb33A056B08ddf711f289936AafF717",
"43114": "0x98FFBBF51bb33A056B08ddf711f289936AafF717",
"73799": "0xa25b3579a295be016de5eb5F082b54B12d45F72C",
- "333999": "0xa25b3579a295be016de5eb5F082b54B12d45F72C"
+ "333999": "0xa25b3579a295be016de5eb5F082b54B12d45F72C",
+ "28": "0xe8605594628AB2e265815D918C8378801d89D7e8"
},
"abi": [
{
diff --git a/node_modules/@gnosis.pm/safe-deployments/src/assets/v1.3.0/compatibility_fallback_handler.json b/node_modules/@gnosis.pm/safe-deployments/src/assets/v1.3.0/compatibility_fallback_handler.json
index 137169b..70e2786 100644
--- a/node_modules/@gnosis.pm/safe-deployments/src/assets/v1.3.0/compatibility_fallback_handler.json
Expand Down
Loading

0 comments on commit af1365f

Please sign in to comment.