Skip to content

Commit

Permalink
Merge pull request #107 from Cerebellum-Network/release/0.28.0
Browse files Browse the repository at this point in the history
Release/0.28.0
  • Loading branch information
MRamanenkau authored Mar 8, 2024
2 parents 808b11c + cff33fd commit a89e40d
Show file tree
Hide file tree
Showing 1,063 changed files with 81,168 additions and 53,368 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/chain-endpoints.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Chain endpoints
on:
schedule:
- cron: '50 0/12 * * *'
# twice daily (mornings/afternoons, the latter being busy)
# - cron: '50 0/12 * * *'
# once daily (early mornings, 02:50 GMT, generally not busy)
- cron: '50 2 * * *'

jobs:
endpoints:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
NETWORK_AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_NETWORK_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME_DEV }}
CF_DISTRIBUTION_ID: ${{ secrets.CF_DISTRIBUTION_ID_DEV }}
CF_DISTRIBUTION_ID: ${{ secrets.CF_DISTRIBUTION_ID_DEV }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-any.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
node-version: 'lts/*'
- name: ${{ matrix.step }}
run: |
yarn install --immutable | grep -v 'YN0013'
yarn install --immutable
yarn ${{ matrix.step }}
3 changes: 2 additions & 1 deletion .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
run: |
yarn install --immutable | grep -v 'YN0013'
yarn install --immutable
yarn ${{ matrix.step }}
# only run on "CI skip", i.e. when the actual version has been bumped to release/stable
Expand Down Expand Up @@ -84,6 +84,7 @@ jobs:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GITHUB_TOKEN }}
args: '--project packages/apps-electron'
build_script_name: build:release:electron
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
node-version: 'lts/*'
- name: ${{ matrix.step }}
run: |
yarn install --immutable | grep -v 'YN0013'
yarn install --immutable
yarn ${{ matrix.step }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18.15
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"eslint.enable": true,
"eslint.experimental.useFlatConfig": true
}
5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ enableImmutableInstalls: false

enableProgressBars: false

logFilters:
# Discard any "cannot be found in cache" messages
- code: YN0013
level: discard

nodeLinker: node-modules

plugins:
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
## vNext
...


## 0.28.0
- Update to Polkadot-JS Apps 0.133.1 and Substrate Node v1.0.0

## 0.27.0
- Update to Polkadot-JS Apps 0.126.1 and support Substrate Node v0.9.31-38 (as tested)
- Update to Polkadot-JS Apps 0.126.1 and Substrate Node v0.9.36-0.9.43

## 0.26.0
- Update to Polkadot-JS Apps 0.121.2-127-x and Substrate Node v0.9.30
Expand Down
131 changes: 85 additions & 46 deletions CONTRIBUTORS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV WS_URL=

WORKDIR /usr/share/nginx/html

COPY env.sh .
COPY docker/env.sh .

RUN apk add --no-cache bash; chmod +x env.sh

Expand Down
22 changes: 22 additions & 0 deletions docker/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# Copyright 2017-2023 @polkadot/apps authors & contributors
# SPDX-License-Identifier: Apache-2.0

# This script is used when the docker container starts and does the magic to
# bring the ENV variables to the generated static UI.

TARGET=./env-config.js

# Recreate config file
echo -n > $TARGET

declare -a vars=(
"WS_URL"
"SAMPLE"
)

echo "window.process_env = {" >> $TARGET
for VAR in ${vars[@]}; do
echo " $VAR: \"${!VAR}\"," >> $TARGET
done
echo "}" >> $TARGET
16 changes: 16 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

import baseConfig from '@polkadot/dev/config/eslint';

export default [
...baseConfig,
{
rules: {
// add override for any (a metric ton of them, initial conversion)
'@typescript-eslint/no-explicit-any': 'off',
// we generally use this in isFunction, not via calling
'@typescript-eslint/unbound-method': 'off'
}
}
];
106 changes: 52 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
"url": "https://github.com/polkadot-js/apps.git"
},
"sideEffects": false,
"version": "0.27.0-cere",
"type": "module",
"version": "0.28.0-cere",
"versions": {
"git": "0.27.0-cere",
"npm": "0.27.0-cere"
"git": "0.28.0-cere",
"npm": "0.28.0-cere"
},
"workspaces": [
"packages/*"
Expand All @@ -41,9 +42,9 @@
"build:release:ipfs": "node scripts/ipfsUpload.mjs",
"build:release:www": "yarn polkadot-ci-ghact-build && yarn build:release:ghpages && yarn build:release:ipfs",
"build:robohash": "node scripts/robohash.cjs",
"build:typesBundle": "polkadot-dev-run-test --env node --experimental-specifier-resolution=node packages/apps-config/src/api/typesBundle.spec.ts",
"build:typesBundle": "polkadot-dev-run-test --env node --loader extensionless typesBundle",
"build:www": "rm -rf packages/apps/build && mkdir -p packages/apps/build && yarn run build:i18n && cd packages/apps && yarn polkadot-exec-webpack --config webpack.config.cjs",
"ci:chainEndpoints": "polkadot-dev-run-test --env node packages/apps-config/src/ci/chainEndpoints --log .github/chain-endpoints.md",
"ci:chainEndpoints": "polkadot-dev-run-test --env node --logfile .github/chain-endpoints.md packages/apps-config/src/ci/chainEndpoints",
"ci:chainTypes": "echo ok",
"clean": "polkadot-dev-clean-build",
"clean:electronBuild": "cd packages/apps-electron && polkadot-dev-clean-build",
Expand All @@ -52,75 +53,72 @@
"docs": "echo \"skipping docs\"",
"lint": "polkadot-dev-run-lint",
"packElectron": "yarn build:release:electron && yarn clean:electronRelease && electron-builder build -mwl",
"packElectron:linux": "yarn build:release:electron && electron-builder build --linux",
"packElectron:mac": "yarn build:release:electron && electron-builder build --mac",
"packElectron:test": "yarn build:release:electron && electron-builder --dir",
"packElectron:win": "yarn build:release:electron && electron-builder build --win",
"packElectron:linux": "yarn build:release:electron && electron-builder build --linux --project packages/apps-electron",
"packElectron:mac": "yarn build:release:electron && electron-builder build --mac --project packages/apps-electron",
"packElectron:test": "yarn build:release:electron && electron-builder --dir --project packages/apps-electron",
"packElectron:win": "yarn build:release:electron && electron-builder build --win --project packages/apps-electron",
"postinstall": "polkadot-dev-yarn-only",
"postinstall:electron": "electron-builder install-app-deps",
"start": "yarn clean && cd packages/apps && yarn polkadot-exec-webpack serve --config webpack.serve.cjs --port 3000",
"start:electron": "yarn clean:electronBuild && concurrently 'yarn build:devElectronMain && cd packages/apps-electron && electron ./build/electron.js' 'yarn build:devElectronRenderer'",
"test": "polkadot-dev-run-test --env browser --experimental-specifier-resolution=node ^typesBundle ^chainEndpoints ^chainTypes ^page- ^react- ^apps-electron",
"test": "polkadot-dev-run-test --env browser ^typesBundle ^chainEndpoints ^chainTypes ^page- ^react- ^apps-electron",
"test:all": "polkadot-dev-run-test --env browser ^chainEndpoints ^chainTypes",
"test:one": "polkadot-dev-run-test --env browser",
"test:skipped": "echo 'tests skipped'"
},
"devDependencies": {
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^1.2.1",
"@polkadot/dev": "^0.72.39",
"@types/chart.js": "^2.9.37",
"@types/file-saver": "^2.0.5",
"@types/react-beautiful-dnd": "^13.1.4",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^18.0.11",
"@polkadot/dev": "^0.77.1",
"@types/chart.js": "^2.9.40",
"@types/file-saver": "^2.0.7",
"@types/react-beautiful-dnd": "^13.1.7",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.2.15",
"@types/react-router-dom": "^5.3.3",
"@types/store": "^2.0.2",
"@types/styled-components": "^5.1.26",
"@types/styled-theming": "^2.2.5",
"concurrently": "^7.6.0",
"@types/store": "^2.0.5",
"concurrently": "^8.2.2",
"devtron": "^1.4.0",
"dnslink-cloudflare": "^3.0.0",
"electron": "^23.2.0",
"electron": "25.0.1",
"electron-builder": "23.6.0",
"electron-builder-notarize": "^1.5.1",
"i18next-scanner": "^4.2.0",
"extensionless": "^1.7.3",
"i18next-scanner": "^4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"source-map-explorer": "^2.5.3",
"styled-components": "^5.3.9"
"source-map-explorer": "^2.5.3"
},
"resolutions": {
"@polkadot/api": "^10.3.2",
"@polkadot/api-augment": "^10.3.2",
"@polkadot/api-base": "^10.3.2",
"@polkadot/api-contract": "^10.3.2",
"@polkadot/api-derive": "^10.3.2",
"@polkadot/hw-ledger": "^11.1.3",
"@polkadot/keyring": "^11.1.3",
"@polkadot/networks": "^11.1.3",
"@polkadot/phishing": "^0.20.5",
"@polkadot/rpc-augment": "^10.3.2",
"@polkadot/rpc-core": "^10.3.2",
"@polkadot/rpc-provider": "^10.3.2",
"@polkadot/types": "^10.3.2",
"@polkadot/types-augment": "^10.3.2",
"@polkadot/types-codec": "^10.3.2",
"@polkadot/types-create": "^10.3.2",
"@polkadot/types-known": "^10.3.2",
"@polkadot/types-support": "^10.3.2",
"@polkadot/util": "^11.1.3",
"@polkadot/util-crypto": "^11.1.3",
"@polkadot/wasm-crypto": "^7.0.3",
"@polkadot/x-bigint": "^11.1.3",
"@polkadot/x-fetch": "^11.1.3",
"@polkadot/x-global": "^11.1.3",
"@polkadot/x-randomvalues": "^11.1.3",
"@polkadot/x-textdecoder": "^11.1.3",
"@polkadot/x-textencoder": "^11.1.3",
"@polkadot/x-ws": "^11.1.3",
"styled-components": "^5.3.1",
"typescript": "^5.0.4"
"@polkadot/api": "^10.11.1",
"@polkadot/api-augment": "^10.11.1",
"@polkadot/api-base": "^10.11.1",
"@polkadot/api-contract": "^10.11.1",
"@polkadot/api-derive": "^10.11.1",
"@polkadot/hw-ledger": "^12.6.1",
"@polkadot/keyring": "^12.6.1",
"@polkadot/networks": "^12.6.1",
"@polkadot/phishing": "^0.22.1",
"@polkadot/rpc-augment": "^10.11.1",
"@polkadot/rpc-core": "^10.11.1",
"@polkadot/rpc-provider": "^10.11.1",
"@polkadot/types": "^10.11.1",
"@polkadot/types-augment": "^10.11.1",
"@polkadot/types-codec": "^10.11.1",
"@polkadot/types-create": "^10.11.1",
"@polkadot/types-known": "^10.11.1",
"@polkadot/types-support": "^10.11.1",
"@polkadot/util": "^12.6.1",
"@polkadot/util-crypto": "^12.6.1",
"@polkadot/wasm-crypto": "^7.3.1",
"@polkadot/x-bigint": "^12.6.1",
"@polkadot/x-fetch": "^12.6.1",
"@polkadot/x-global": "^12.6.1",
"@polkadot/x-randomvalues": "^12.6.1",
"@polkadot/x-textdecoder": "^12.6.1",
"@polkadot/x-textencoder": "^12.6.1",
"@polkadot/x-ws": "^12.6.1",
"typescript": "^5.2.2"
}
}
59 changes: 32 additions & 27 deletions packages/apps-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"bugs": "https://github.com/polkadot-js/apps/issues",
"engines": {
"node": ">=14"
"node": ">=18"
},
"homepage": "https://github.com/polkadot-js/apps/tree/master/packages/apps-config#readme",
"license": "Apache-2.0",
Expand All @@ -13,48 +13,53 @@
},
"sideEffects": false,
"type": "module",
"version": "0.126.1",
"version": "0.133.1",
"main": "index.js",
"dependencies": {
"@acala-network/type-definitions": "4.1.8-13",
"@bifrost-finance/type-definitions": "1.7.2",
"@acala-network/type-definitions": "5.1.2",
"@bifrost-finance/type-definitions": "1.8.4",
"@crustio/type-definitions": "1.3.0",
"@darwinia/types": "2.8.10",
"@darwinia/types-known": "2.8.10",
"@digitalnative/type-definitions": "1.1.27",
"@docknetwork/node-types": "0.15.0",
"@docknetwork/node-types": "0.16.0",
"@edgeware/node-types": "3.6.2-wako",
"@equilab/definitions": "1.4.18",
"@fragnova/api-augment": "0.1.0-spec-1.0.4-mainnet",
"@frequency-chain/api-augment": "1.3.0",
"@interlay/interbtc-types": "1.12.0",
"@kiltprotocol/type-definitions": "0.32.0",
"@frequency-chain/api-augment": "1.7.4",
"@interlay/interbtc-types": "1.13.0",
"@kiltprotocol/type-definitions": "0.33.1",
"@laminar/type-definitions": "0.3.1",
"@logion/node-api": "0.9.0-3",
"@logion/node-api": "0.19.0-2",
"@mangata-finance/type-definitions": "^2.0.0",
"@metaverse-network-sdk/type-definitions": "0.0.1-16",
"@parallel-finance/type-definitions": "1.7.16",
"@parallel-finance/type-definitions": "2.0.0",
"@peaqnetwork/type-definitions": "0.0.4",
"@pendulum-chain/type-definitions": "0.3.7",
"@phala/typedefs": "0.2.33",
"@polkadot/api": "^10.3.2",
"@polkadot/api-derive": "^10.3.2",
"@polkadot/networks": "^11.1.3",
"@polkadot/types": "^10.3.2",
"@polkadot/util": "^11.1.3",
"@polkadot/wasm-util": "^7.0.3",
"@polkadot/x-fetch": "^11.1.3",
"@polkadot/x-ws": "^11.1.3",
"@polymeshassociation/polymesh-types": "5.3.0",
"@polkadot/api": "^10.11.1",
"@polkadot/api-derive": "^10.11.1",
"@polkadot/networks": "^12.6.1",
"@polkadot/react-identicon": "^3.6.4",
"@polkadot/types": "^10.11.1",
"@polkadot/types-codec": "^10.11.1",
"@polkadot/util": "^12.6.1",
"@polkadot/wasm-util": "^7.3.1",
"@polkadot/x-fetch": "^12.6.1",
"@polkadot/x-ws": "^12.6.1",
"@polymeshassociation/polymesh-types": "5.5.2",
"@snowfork/snowbridge-types": "0.2.7",
"@sora-substrate/type-definitions": "1.15.12",
"@subsocial/definitions": "0.8.7",
"@unique-nft/opal-testnet-types": "937.53.1",
"@unique-nft/quartz-mainnet-types": "937.53.1",
"@unique-nft/sapphire-mainnet-types": "937.53.1",
"@unique-nft/unique-mainnet-types": "937.53.1",
"@sora-substrate/type-definitions": "1.20.1",
"@subsocial/definitions": "0.8.13",
"@unique-nft/opal-testnet-types": "942.57.0",
"@unique-nft/quartz-mainnet-types": "942.57.0",
"@unique-nft/sapphire-mainnet-types": "942.57.0",
"@unique-nft/unique-mainnet-types": "942.57.0",
"@zeitgeistpm/type-defs": "1.0.0",
"@zeroio/type-definitions": "0.0.14",
"moonbeam-types-bundle": "2.0.10",
"pontem-types-bundle": "1.0.15",
"rxjs": "^7.8.0",
"tslib": "^2.5.0"
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
}
}
1 change: 1 addition & 0 deletions packages/apps-config/src/api/chain/cere.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import type { OverrideBundleDefinition } from '@polkadot/types/types';

/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
types: [
{
Expand Down
Loading

0 comments on commit a89e40d

Please sign in to comment.