Skip to content

Commit

Permalink
Merge pull request #83 from Cerebellum-Network/fix/revert-to-0.30.0-v…
Browse files Browse the repository at this point in the history
…ersion

Revert to Stable Version: Fix Smart Contract Page
  • Loading branch information
shamilkhan authored Aug 15, 2023
2 parents 0c660f9 + d2c5c04 commit b43dbdb
Show file tree
Hide file tree
Showing 3,657 changed files with 90,979 additions and 135,823 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
18 changes: 18 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
checks:
argument-count:
config:
threshold: 5
method-complexity:
config:
threshold: 7
method-count:
config:
threshold: 25
method-lines:
config:
threshold: 30

exclude_patterns:
- "**/*.spec.js"
- "**/*.spec.ts"
- "packages/apps-config/src/api/**/*.ts"
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// Copyright 2017-2022 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

const base = require('@polkadot/dev/config/eslint.cjs');
Expand Down
2 changes: 1 addition & 1 deletion .github/chain-endpoints.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Unavailable chain endpoints
labels: ['ci']
labels: ['ci', '@apps-config']
---

cc @polkadot-js/notifications
Expand Down
2 changes: 1 addition & 1 deletion .github/chain-types.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Outdated chain types
labels: ['ci']
labels: ['ci', '@apps-config']
---

cc @polkadot-js/notifications
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
runs-on: ubuntu-latest
steps:
- uses: jacogr/action-approve@795afd1dd096a2071d7ec98740661af4e853b7da
- uses: jacogr/action-approve@9d6ce78d26f23ad29d009d034822cf773f2cb50e
with:
authors: jacogr
labels: -auto
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: jacogr/action-merge@d2d64b4545acd93b0a9575177d3d215ae3f92029
- uses: jacogr/action-merge@3b4b49af8a8644bf5cbb5409ee236abe04eeb1b0
with:
checks: pr (build:code),pr (build:i18n),pr (build:electron),pr (lint),pr (test)
checks: build:code,build:i18n,build:electron,lint,test
labels: -auto
strategy: squash
token: ${{ secrets.GH_PAT_BOT }}
12 changes: 4 additions & 8 deletions .github/workflows/chain-endpoints.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Chain endpoints
on:
schedule:
- cron: '50 0/12 * * *'
- cron: '45 0/12 * * *'

jobs:
endpoints:
if: github.repository == 'polkadot-js/apps'
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
- name: check
env:
CI_LOG: 123
Expand All @@ -21,7 +17,7 @@ jobs:
- name: issue
if: ${{ failure() }}
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_BOT }}
with:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/chain-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ jobs:
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
- name: check
env:
CI_LOG: 123
Expand All @@ -20,7 +17,7 @@ jobs:
- name: issue
if: ${{ failure() }}
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_BOT }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: Cerebellum-Network/reusable-workflows/.github/workflows/build-and-upload-static.yaml@1.0.0
with:
runs-on: '["self-hosted", "cere-network-large-workers"]'
build_container: 'node:lts-buster'
build_container: 'node:14-buster'
deploy_container: 'ubuntu:20.04'
install_packages_command: 'yarn install'
build_command: 'yarn build'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836
- uses: dessant/lock-threads@f1a42f0f44eb83361d617a014663e1a76cf282d2
with:
github-token: ${{ secrets.GH_PAT_BOT }}
issue-lock-inactive-days: '7'
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/pr-any.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ on: [pull_request]

jobs:
pr:
continue-on-error: true
strategy:
matrix:
step: ['lint', 'test', 'build:code', 'build:i18n', 'build:electron']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
- name: ${{ matrix.step }}
run: |
yarn install --immutable | grep -v 'YN0013'
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Release to prod
on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -10,7 +9,7 @@ jobs:
uses: Cerebellum-Network/reusable-workflows/.github/workflows/build-and-upload-static.yaml@1.0.0
with:
runs-on: '["self-hosted", "cere-network-large-workers"]'
build_container: 'node:lts-buster'
build_container: 'node:14-buster'
deploy_container: 'ubuntu:20.04'
install_packages_command: 'yarn install'
build_command: 'yarn build'
Expand Down
84 changes: 39 additions & 45 deletions .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@ jobs:
strategy:
matrix:
step: ['build:release:www']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT_BOT }}
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
token: ${{ secrets.GH_PAT }}
- name: ${{ matrix.step }}
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CRUST_SEEDS: ${{ secrets.CRUST_SEEDS }}
GH_PAGES_SRC: packages/apps/build
GH_PAT: ${{ secrets.GH_PAT_BOT }}
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
GH_PAT: ${{ secrets.GH_PAT }}
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
Expand All @@ -38,12 +36,10 @@ jobs:
# only run on "CI skip", i.e. when the actual version has been bumped to release/stable
docker:
if: "startsWith(github.event.head_commit.message, '[CI Skip] release/stable')"
name: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
- name: docker
env:
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
Expand All @@ -57,38 +53,36 @@ jobs:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT_BOT }}
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Prepare for app notarization (macOS)
if: startsWith(matrix.os, 'macos')
# Import Apple API key for app notarization on macOS
run: |
mkdir -p ~/private_keys/
echo '${{ secrets.API_KEY }}' > ~/private_keys/AuthKey_${{ secrets.API_KEY_ID }}.p8
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# Base64-encoded code signing certificate for macOS
mac_certs: ${{ secrets.MAC_CERTS }}
# Password for decrypting `mac_certs`
mac_certs_password: ${{ secrets.MAC_CERTS_PASSWORD }}
# Base64-encoded code signing certificate for Windows
windows_certs: ${{ secrets.WINDOWS_CERTS }}
# Password for decrypting `windows_certs`
windows_certs_password: ${{ secrets.WINDOWS_CERTS_PASSWORD }}
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script_name: build:release:electron
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
# macOS notarization API key
API_KEY_ID: ${{ secrets.API_KEY_ID }}
API_KEY_ISSUER_ID: ${{ secrets.API_KEY_ISSUER_ID }}
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
with:
token: ${{ secrets.GH_PAT }}
- name: Prepare for app notarization (macOS)
if: startsWith(matrix.os, 'macos')
# Import Apple API key for app notarization on macOS
run: |
mkdir -p ~/private_keys/
echo '${{ secrets.API_KEY }}' > ~/private_keys/AuthKey_${{ secrets.API_KEY_ID }}.p8
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# Base64-encoded code signing certificate for macOS
mac_certs: ${{ secrets.MAC_CERTS }}
# Password for decrypting `mac_certs`
mac_certs_password: ${{ secrets.MAC_CERTS_PASSWORD }}
# Base64-encoded code signing certificate for Windows
windows_certs: ${{ secrets.WINDOWS_CERTS }}
# Password for decrypting `windows_certs`
windows_certs_password: ${{ secrets.WINDOWS_CERTS_PASSWORD }}
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script_name: build:release:electron
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
# macOS notarization API key
API_KEY_ID: ${{ secrets.API_KEY_ID }}
API_KEY_ISSUER_ID: ${{ secrets.API_KEY_ISSUER_ID }}
18 changes: 18 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Semgrep
on:
pull_request: {}
push:
branches:
- master

jobs:
check:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
- uses: returntocorp/semgrep-action@aeafd770072c4f48798b991e3449592bddc2c435
with:
auditOn: push
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
publishDeployment: 1395
3 changes: 1 addition & 2 deletions .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Release to stage
on:
workflow_dispatch:
push:
branches:
- 'release/**'
Expand All @@ -11,7 +10,7 @@ jobs:
uses: Cerebellum-Network/reusable-workflows/.github/workflows/build-and-upload-static.yaml@1.0.0
with:
runs-on: '["self-hosted", "cere-network-large-workers"]'
build_container: 'node:lts-buster'
build_container: 'node:14-buster'
deploy_container: 'ubuntu:20.04'
install_packages_command: 'yarn install'
build_command: 'yarn build'
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '50 2/3 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@98ed4cb500039dbcccf4bd9bedada4d0187f2757
with:
repo-token: ${{ secrets.GH_PAT_BOT }}
stale-issue-message: 'This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
stale-issue-label: 'stale'
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug],ci,<maybe someday>'
days-before-stale: 21
days-before-close: 7
5 changes: 1 addition & 4 deletions .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ jobs:
name: ${{ matrix.step }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
- name: ${{ matrix.step }}
run: |
yarn install --immutable | grep -v 'YN0013'
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// Copyright 2017-2022 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

module.exports = require('@polkadot/dev/config/prettier.cjs');
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CHANGELOG

## vNext
...
- Reverted to commit `f778359c` (between tags `v0.121.1` and `v0.122.1` of Polkadot-JS Apps) to align with our node version and fix the Smart Contract Page

## 0.22.0
- Added Cere Mainnet link to PolkassemblyIo
Expand Down
Loading

0 comments on commit b43dbdb

Please sign in to comment.