From 2ef9ea3a4a3b59986b326e78ce21ce75590b38ff Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Thu, 2 Nov 2023 16:56:48 +0200 Subject: [PATCH] [-] removed devnet2 from configs --- .github/workflows/deploy-devnet2.yml | 50 ---------------------------- .gitignore | 1 - package.json | 5 --- src/config/config.devnet2.ts | 35 ------------------- 4 files changed, 91 deletions(-) delete mode 100644 .github/workflows/deploy-devnet2.yml delete mode 100644 src/config/config.devnet2.ts diff --git a/.github/workflows/deploy-devnet2.yml b/.github/workflows/deploy-devnet2.yml deleted file mode 100644 index 17107b5f3..000000000 --- a/.github/workflows/deploy-devnet2.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: deploy-devnet2 - -on: - push: - branches: [main] - repository_dispatch: - types: deploy-devnet2 - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - ref: main - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '18.x' - - name: Setup yarn - run: npm install -g yarn - - run: npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" - - run: yarn install - - run: yarn run prepare-pro-icons - - run: yarn run build-devnet2 - env: - CI: false - VITE_APP_MARKERS_API_URL: ${{ secrets.MARKERS_API_URL }} - VITE_APP_VERSION_URL: ${{ secrets.APP_VERSION_URL }} - - 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: 'us-east-1' - - name: Deploy to S3 bucket - run: aws s3 sync ./build/ s3://${{ secrets.AWS_S3_BUCKET_DEVNET2 }} --delete - - name: No-cache index.html - run: aws s3 cp s3://${{ secrets.AWS_S3_BUCKET_DEVNET2 }}/index.html s3://${{ secrets.AWS_S3_BUCKET_DEVNET2 }}/index.html --metadata-directive REPLACE --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html --acl public-read - - name: Slack Notification - uses: rtCamp/action-slack-notify@master - env: - SLACK_ICON_EMOJI: ':globe_with_meridians:' - SLACK_USERNAME: ${{ secrets.AWS_S3_BUCKET_DEVNET2 }} - SLACK_MESSAGE: ${{ secrets.AWS_S3_BUCKET_DEVNET2 }} - SLACK_FOOTER: '' - MSG_MINIMAL: true - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} diff --git a/.gitignore b/.gitignore index 960b7a054..16ab7baf3 100644 --- a/.gitignore +++ b/.gitignore @@ -42,7 +42,6 @@ dist-ssr /public/config.js /src/config/* !/src/config.devnet.ts -!/src/config.devnet2.ts !/src/config.devnet-old.ts !/src/config.testnet.ts !/src/config.mainnet.ts diff --git a/package.json b/package.json index 8854664b7..b83555c51 100644 --- a/package.json +++ b/package.json @@ -50,12 +50,10 @@ "scripts": { "start": "cross-env VITE_APP_CACHE_BUST=$(git rev-parse --short HEAD || echo 'local') vite", "start-devnet": "yarn run copy-devnet-config & cross-env VITE_APP_SHARE_PREFIX=devnet- yarn run start", - "start-devnet2": "yarn run copy-devnet2-config & cross-env VITE_APP_SHARE_PREFIX=devnet2- yarn run start", "start-devnet-old": "yarn run copy-devnet-old-config & cross-env VITE_APP_SHARE_PREFIX=devnet-old- yarn run start", "start-mainnet": "yarn run copy-mainnet-config & yarn run start", "start-testnet": "yarn run copy-testnet-config & cross-env VITE_APP_SHARE_PREFIX=testnet- yarn run start", "build-devnet": "yarn run copy-devnet-config & cross-env VITE_APP_SHARE_PREFIX=devnet- VITE_APP_GA_ID=G-QE38EW59B8 yarn run build", - "build-devnet2": "yarn run copy-devnet2-config & cross-env VITE_APP_SHARE_PREFIX=devnet2- VITE_APP_GA_ID=G-QE38EW59B8 yarn run build", "build-devnet-old": "yarn run copy-devnet-old-config & cross-env VITE_APP_SHARE_PREFIX=devnet-old- VITE_APP_GA_ID=G-QE38EW59B8 yarn run build", "build-mainnet": "yarn run copy-mainnet-config & cross-env VITE_APP_SHARE_PREFIX= VITE_APP_GA_ID=G-EFN7QYSMQS yarn run build", "build-testnet": "yarn run copy-testnet-config & cross-env VITE_APP_SHARE_PREFIX=testnet- VITE_APP_GA_ID=G-EFN7QYSMQS yarn run build", @@ -66,21 +64,18 @@ "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", "copy-devnet-config": "run-script-os", - "copy-devnet2-config": "run-script-os", "copy-devnet-old-config": "run-script-os", "copy-mainnet-config": "run-script-os", "copy-testnet-config": "run-script-os", "copy-multiple-config": "run-script-os", "copy-base-interceptor": "run-script-os", "copy-devnet-config:nix": "cp ./src/config/config.devnet.ts ./src/config/index.ts", - "copy-devnet2-config:nix": "cp ./src/config/config.devnet2.ts ./src/config/index.ts", "copy-devnet-old-config:nix": "cp ./src/config/config.devnet-old.ts ./src/config/index.ts", "copy-mainnet-config:nix": "cp ./src/config/config.mainnet.ts ./src/config/index.ts", "copy-testnet-config:nix": "cp ./src/config/config.testnet.ts ./src/config/index.ts", "copy-multiple-config:nix": "cp ./src/config/config.multiple.ts ./src/config/index.ts", "copy-base-interceptor:nix": "cp ./src/interceptors/Interceptor.tsx ./src/interceptors/index.tsx", "copy-devnet-config:windows": "copy .\\src\\config\\config.devnet.ts .\\src\\config\\index.ts", - "copy-devnet2-config:windows": "copy .\\src\\config\\config.devnet2.ts .\\src\\config\\index.ts", "copy-devnet-old-config:windows": "copy .\\src\\config\\config.devnet-old.ts .\\src\\config\\index.ts", "copy-mainnet-config:windows": "copy .\\src\\config\\config.mainnet.ts .\\src\\config\\index.ts", "copy-testnet-config:windows": "copy .\\src\\config\\config.testnet.ts .\\src\\config\\index.ts", diff --git a/src/config/config.devnet2.ts b/src/config/config.devnet2.ts deleted file mode 100644 index a4e2d2022..000000000 --- a/src/config/config.devnet2.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { NetworkType } from 'types/network.types'; -import { allApps, schema } from './sharedConfig'; -export * from './sharedConfig'; - -export const networks: NetworkType[] = [ - { - default: true, - id: 'devnet2', - name: 'Devnet2', - chainId: 'D', - adapter: 'api', - theme: 'testnet', - egldLabel: 'xEGLD', - walletAddress: 'https://devnet2-wallet.multiversx.com', - explorerAddress: 'https://devnet2-explorer.multiversx.com', - apiAddress: 'https://devnet2-api.multiversx.com' - } -]; - -export const multiversxApps = allApps([ - { - id: 'wallet', - url: 'https://devnet2-wallet.multiversx.com' - }, - { - id: 'explorer', - url: 'http://devnet2-explorer.multiversx.com' - } -]); - -networks.forEach((network) => { - schema.validate(network, { strict: true }).catch(({ errors }) => { - console.error(`Config invalid format for ${network.id}`, errors); - }); -});