Skip to content

Commit

Permalink
Merge pull request #9 from rsksmart/development
Browse files Browse the repository at this point in the history
Rename gas price to avg gas price
  • Loading branch information
ezequiel-rodriguez authored Feb 29, 2024
2 parents a6118b7 + a3c111c commit 488325b
Show file tree
Hide file tree
Showing 152 changed files with 20,435 additions and 7,391 deletions.
3 changes: 3 additions & 0 deletions .env.mainnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WS_URL=https://be.stats.rootstock.io/
VUE_APP_DOMAIN_TESTNET=https://stats.testnet.rootstock.io/
VUE_APP_DOMAIN_MAINNET=https://stats.rootstock.io/
3 changes: 3 additions & 0 deletions .env.testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WS_URL=https://be.stats.testnet.rootstock.io/
VUE_APP_DOMAIN_TESTNET=https://stats.testnet.rootstock.io/
VUE_APP_DOMAIN_MAINNET=https://stats.rootstock.io/
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/mainnet.deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: RSK mainnet stats build and deploy

on:
push:
branches: [master]

jobs:
mainnet_build_and_deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node 16
uses: actions/setup-node@v1
with:
node-version: "16"

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build:mainnet

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.MAINNET_ROLE_ARN }}
aws-region: ${{ secrets.MAINNET_AWS_REGION }}

- name: Deploy site to S3
run: |
aws s3 sync --sse aws:kms --sse-kms-key-id ${{ secrets.MAINNET_KMS_KEY_ID }} --delete --only-show-errors --exclude .gitkeep dist/ ${{ secrets.MAINNET_S3_BUCKET }}
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.MAINNET_CLOUDFRONT_DISTRIBUTION }} --paths "/*"
40 changes: 40 additions & 0 deletions .github/workflows/testnet-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: RSK testnet stats build and deploy

on:
push:
branches: [development]

jobs:
testnet_build_and_deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node 16
uses: actions/setup-node@v1
with:
node-version: "16"

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build:testnet

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TESTNET_ROLE_ARN }}
aws-region: ${{ secrets.TESTNET_AWS_REGION }}

- name: Deploy site to S3
run: |
aws s3 sync --sse aws:kms --sse-kms-key-id ${{ secrets.TESTNET_KMS_KEY_ID }} --delete --only-show-errors --exclude .gitkeep dist/ ${{ secrets.TESTNET_S3_BUCKET }}
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.TESTNET_CLOUDFRONT_DISTRIBUTION }} --paths "/*"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ yarn-debug.log*
yarn-error.log*
.vscode
tmp
dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm run build

## Build settings

Backed url:
Backend url:

``` bash

Expand Down
1 change: 0 additions & 1 deletion dist/css/app.a166123b.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/css/chunk-vendors.7437f9e4.css

This file was deleted.

Binary file removed dist/icons/android-chrome-192x192.png
Binary file not shown.
Binary file removed dist/icons/android-chrome-512x512.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-114x114.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-120x120.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-144x144.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-152x152.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-180x180.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-57x57.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-60x60.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-72x72.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon-76x76.png
Binary file not shown.
Binary file removed dist/icons/apple-touch-icon.png
Binary file not shown.
12 changes: 0 additions & 12 deletions dist/icons/browserconfig.xml

This file was deleted.

Binary file removed dist/icons/favicon-16x16.png
Binary file not shown.
Binary file removed dist/icons/favicon-32x32.png
Binary file not shown.
Binary file removed dist/icons/favicon.ico
Binary file not shown.
Binary file removed dist/icons/mstile-144x144.png
Binary file not shown.
Binary file removed dist/icons/mstile-150x150.png
Binary file not shown.
Binary file removed dist/icons/mstile-310x150.png
Binary file not shown.
Binary file removed dist/icons/mstile-310x310.png
Binary file not shown.
Binary file removed dist/icons/mstile-70x70.png
Binary file not shown.
83 changes: 0 additions & 83 deletions dist/icons/safari-pinned-tab.svg

This file was deleted.

19 changes: 0 additions & 19 deletions dist/icons/site.webmanifest

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions dist/js/app.61d0bab0.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/app.61d0bab0.js.map

This file was deleted.

22 changes: 0 additions & 22 deletions dist/js/chunk-vendors.da4e45aa.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/chunk-vendors.da4e45aa.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/primus.js

This file was deleted.

Binary file removed dist/rsk-logo.png
Binary file not shown.
5 changes: 0 additions & 5 deletions dist/svg/icons/browser.svg

This file was deleted.

4 changes: 0 additions & 4 deletions dist/svg/icons/camera.svg

This file was deleted.

5 changes: 0 additions & 5 deletions dist/svg/icons/close.svg

This file was deleted.

5 changes: 0 additions & 5 deletions dist/svg/icons/clowd-down.svg

This file was deleted.

5 changes: 0 additions & 5 deletions dist/svg/icons/clowd-up.svg
Diff not rendered.
5 changes: 0 additions & 5 deletions dist/svg/icons/copy.svg
Diff not rendered.
5 changes: 0 additions & 5 deletions dist/svg/icons/credit-card.svg
Diff not rendered.
5 changes: 0 additions & 5 deletions dist/svg/icons/cube.svg
Diff not rendered.
5 changes: 0 additions & 5 deletions dist/svg/icons/cubes.svg
Diff not rendered.
5 changes: 0 additions & 5 deletions dist/svg/icons/database.svg
Diff not rendered.
5 changes: 0 additions & 5 deletions dist/svg/icons/delete-forever.svg
Diff not rendered.
5 changes: 0 additions & 5 deletions dist/svg/icons/delete.svg
Diff not rendered.
Loading

0 comments on commit 488325b

Please sign in to comment.