Skip to content

Commit

Permalink
Merge branch 'polkadot-js:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 authored Feb 7, 2024
2 parents 1abc6ba + 2b40308 commit b84ef37
Show file tree
Hide file tree
Showing 3,396 changed files with 15,514 additions and 12,221 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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-2024 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

module.exports = require('@polkadot/dev/config/prettier.cjs');
Empty file added .yarn/plugins/.keep
Empty file.
363 changes: 0 additions & 363 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

550 changes: 0 additions & 550 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

This file was deleted.

785 changes: 0 additions & 785 deletions .yarn/releases/yarn-3.2.0.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
compressionLevel: mixed

enableGlobalCache: false

enableImmutableInstalls: false

enableProgressBars: false

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

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-3.2.0.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Contributed:
- Add Energy Web X (https://github.com/renesy)
- Add Subspace Gemini 3f endpoint (https://github.com/natachadelarosa)
- Add new Snowbridge forks (https://github.com/alistair-singh)
- Add extenal Moonbeam apps links (https://github.com/mmaurello)
- Add external Moonbeam apps links (https://github.com/mmaurello)
- Update OnFinality Darwinia/Kapex endpoints (https://github.com/MinjieTian)
- Update RadiumBlock Westend endpoints (https://github.com/radiumb)
- Update Pinoneer networks (https://github.com/justinphamnz)
Expand All @@ -69,7 +69,7 @@ Contributed:
- Update Karamachain endpoints (https://github.com/HolyGrease)
- Update Tangle pictures & endpoints (https://github.com/1xstj)
- Add Subsquare links for Vara network (https://github.com/wliyongfeng)
- Add Cere stats extenal links support (https://github.com/shamilkhan)
- Add Cere stats external links support (https://github.com/shamilkhan)
- Dwellir endpoints for Unique/Quartz (https://github.com/jakobilobi)
- Update stable endpoints (https://github.com/samelamin)
- Add Dwellir Centrifuge & Pendulum endpoints (https://github.com/awnns)
Expand Down Expand Up @@ -153,7 +153,7 @@ Changes:

- Disable unreachable endpoints
- Extend chain config with ui logo overrides
- Adjust Enum inputs with unsued filtering
- Adjust Enum inputs with unused filtering


## 0.131.4 May 23, 2023
Expand Down Expand Up @@ -381,7 +381,7 @@ Changes:
- Convert all used images to inline data: format
- Add support for Reciprocal Gov2 tracks
- Reformat endpoint config & setup
- Add explicit ErrorBoundary accross all modals
- Add explicit ErrorBoundary across all modals
- Ensure AccountId size limits are adheared to in inputs
- Adjust address-only AccountName display
- Enusre event decoding uses registry from correct blockHash
Expand Down Expand Up @@ -520,7 +520,7 @@ Changes:
- Allow referena voting with no preimage
- Display icon for unlocked parachains
- Apply consistency in preimage hash styling (w/ copy)
- Ensure referenda sumbission always has the correct length
- Ensure referenda submission always has the correct length
- Don't reply on availability of `earliestUnappliedSlash`
- Support new preimage pallet on democracy
- Add Collectives parachain info
Expand Down
67 changes: 43 additions & 24 deletions CONTRIBUTORS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docker/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Copyright 2017-2023 @polkadot/apps authors & contributors
# Copyright 2017-2024 @polkadot/apps authors & contributors
# This software may be modified and distributed under the terms
# of the Apache-2.0 license. See the LICENSE file for details.

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

# This script is used when the docker container starts and does the magic to
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// Copyright 2017-2024 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

import baseConfig from '@polkadot/dev/config/eslint';
Expand Down
2 changes: 1 addition & 1 deletion i18next-scanner.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// Copyright 2017-2024 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

const fs = require('fs');
Expand Down
72 changes: 36 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
},
"sideEffects": false,
"type": "module",
"version": "0.133.2-20-x",
"version": "0.133.2-81-x",
"versions": {
"git": "0.133.2-20-x",
"git": "0.133.2-81-x",
"npm": "0.133.1"
},
"workspaces": [
Expand Down Expand Up @@ -69,56 +69,56 @@
"devDependencies": {
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^1.2.1",
"@polkadot/dev": "^0.77.1",
"@types/chart.js": "^2.9.40",
"@polkadot/dev": "^0.78.4",
"@types/chart.js": "^2.9.41",
"@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-dom": "^18.2.18",
"@types/react-router-dom": "^5.3.3",
"@types/store": "^2.0.5",
"concurrently": "^8.2.2",
"devtron": "^1.4.0",
"dnslink-cloudflare": "^3.0.0",
"electron": "25.0.1",
"electron-builder": "23.6.0",
"electron": "28.0.0",
"electron-builder": "24.10.0",
"electron-builder-notarize": "^1.5.1",
"extensionless": "^1.7.3",
"extensionless": "^1.9.6",
"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"
},
"resolutions": {
"@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/api": "^10.11.2",
"@polkadot/api-augment": "^10.11.2",
"@polkadot/api-base": "^10.11.2",
"@polkadot/api-contract": "^10.11.2",
"@polkadot/api-derive": "^10.11.2",
"@polkadot/hw-ledger": "^12.6.2",
"@polkadot/keyring": "^12.6.2",
"@polkadot/networks": "^12.6.2",
"@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"
"@polkadot/rpc-augment": "^10.11.2",
"@polkadot/rpc-core": "^10.11.2",
"@polkadot/rpc-provider": "^10.11.2",
"@polkadot/types": "^10.11.2",
"@polkadot/types-augment": "^10.11.2",
"@polkadot/types-codec": "^10.11.2",
"@polkadot/types-create": "^10.11.2",
"@polkadot/types-known": "^10.11.2",
"@polkadot/types-support": "^10.11.2",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/wasm-crypto": "^7.3.2",
"@polkadot/x-bigint": "^12.6.2",
"@polkadot/x-fetch": "^12.6.2",
"@polkadot/x-global": "^12.6.2",
"@polkadot/x-randomvalues": "^12.6.2",
"@polkadot/x-textdecoder": "^12.6.2",
"@polkadot/x-textencoder": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
"typescript": "^5.3.3"
}
}
46 changes: 23 additions & 23 deletions packages/apps-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
},
"sideEffects": false,
"type": "module",
"version": "0.133.2-20-x",
"version": "0.133.2-81-x",
"main": "index.js",
"dependencies": {
"@acala-network/type-definitions": "5.1.2",
"@bifrost-finance/type-definitions": "1.8.4",
"@bifrost-finance/type-definitions": "1.11.3",
"@crustio/type-definitions": "1.3.0",
"@darwinia/types": "2.8.10",
"@darwinia/types-known": "2.8.10",
Expand All @@ -28,33 +28,33 @@
"@fragnova/api-augment": "0.1.0-spec-1.0.4-mainnet",
"@frequency-chain/api-augment": "1.9.0",
"@interlay/interbtc-types": "1.13.0",
"@kiltprotocol/type-definitions": "0.33.1",
"@kiltprotocol/type-definitions": "0.34.0",
"@laminar/type-definitions": "0.3.1",
"@logion/node-api": "0.19.0-2",
"@mangata-finance/type-definitions": "^2.0.0",
"@logion/node-api": "0.27.0-4",
"@mangata-finance/type-definitions": "^2.1.2",
"@metaverse-network-sdk/type-definitions": "0.0.1-16",
"@parallel-finance/type-definitions": "2.0.0",
"@parallel-finance/type-definitions": "2.0.1",
"@peaqnetwork/type-definitions": "0.0.4",
"@pendulum-chain/type-definitions": "0.3.7",
"@pendulum-chain/type-definitions": "0.3.8",
"@phala/typedefs": "0.2.33",
"@polkadot/api": "^10.11.1",
"@polkadot/api-derive": "^10.11.1",
"@polkadot/networks": "^12.6.1",
"@polkadot/api": "^10.11.2",
"@polkadot/api-derive": "^10.11.2",
"@polkadot/networks": "^12.6.2",
"@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",
"@polkadot/types": "^10.11.2",
"@polkadot/types-codec": "^10.11.2",
"@polkadot/util": "^12.6.2",
"@polkadot/wasm-util": "^7.3.2",
"@polkadot/x-fetch": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
"@polymeshassociation/polymesh-types": "5.7.0",
"@snowfork/snowbridge-types": "0.2.7",
"@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",
"@sora-substrate/type-definitions": "1.27.7",
"@subsocial/definitions": "0.8.14",
"@unique-nft/opal-testnet-types": "1003.70.0",
"@unique-nft/quartz-mainnet-types": "1003.70.0",
"@unique-nft/sapphire-mainnet-types": "1003.70.0",
"@unique-nft/unique-mainnet-types": "1001.63.0",
"@zeitgeistpm/type-defs": "1.0.0",
"@zeroio/type-definitions": "0.0.14",
"moonbeam-types-bundle": "2.0.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/chain/cere.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { OverrideBundleDefinition } from '@polkadot/types/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/chain/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { OverrideBundleDefinition } from '@polkadot/types/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/chain/kilt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import { typesBundle } from '@kiltprotocol/type-definitions';
Expand Down
8 changes: 7 additions & 1 deletion packages/apps-config/src/api/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { HexString } from '@polkadot/util/types';
Expand All @@ -23,6 +23,8 @@ export const POLKADOT_DENOM_BLOCK = new BN(1248328);

export const ROCOCO_GENESIS = getGenesis('rococo');

export const PASEO_GENESIS = '0x74300973617e2936e22d46e94fee5016a1a514747ae108277b770d02b47d37d9';

export const WESTEND_GENESIS = getGenesis('westend');

export const NEATCOIN_GENESIS = '0xfbb541421d30423c9a753ffa844b64fd44d823f513bf49e3b73b3a656309a595';
Expand All @@ -36,3 +38,7 @@ export const NFTMART_GENESIS = '0xfcf9074303d8f319ad1bf0195b145871977e7c375883b8
export const CERE_NETWORK_GENESIS = '0x81443836a9a24caaa23f1241897d1235717535711d1d3fe24eae4fdc942c092c';

export const CERE_NETWORK_TESTNET_GENESIS = '0x42b9b44b4950b6c1edae543a7696caf8d0a160e9bc0424ab4ab217f7a8ba30dc';

export const VARA_NETWORK_GENESIS = '0xfe1b4c55fd4d668101126434206571a7838a8b6b93a6d1b95d607e78e6c53763';

export const VARA_NETWORK_TESTNET_GENESIS = '0x525639f713f397dcf839bd022cd821f367ebcf179de7b9253531f8adbe5436d6';
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/derives.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { OverrideBundleDefinition, OverrideBundleType } from '@polkadot/types/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import { applyDerives } from './derives.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/params/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

export * from './inflation.js';
Expand Down
10 changes: 7 additions & 3 deletions packages/apps-config/src/api/params/inflation.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { ApiPromise } from '@polkadot/api';

import { CERE_NETWORK_GENESIS, CERE_NETWORK_TESTNET_GENESIS, DOCK_POS_TESTNET_GENESIS, KUSAMA_GENESIS, NEATCOIN_GENESIS, NFTMART_GENESIS, POLKADOT_GENESIS } from '../constants.js';
import { CERE_NETWORK_GENESIS, CERE_NETWORK_TESTNET_GENESIS, DOCK_POS_TESTNET_GENESIS, KUSAMA_GENESIS, NEATCOIN_GENESIS, NFTMART_GENESIS, POLKADOT_GENESIS, VARA_NETWORK_GENESIS, VARA_NETWORK_TESTNET_GENESIS } from '../constants.js';

interface InflationParams {
auctionAdjust: number;
Expand All @@ -29,6 +29,8 @@ const DEFAULT_PARAMS: InflationParams = {

const CERE_NETWORK_INFLATION_PARAMS = { ...DEFAULT_PARAMS, maxInflation: 0.05, minInflation: 0.0001, stakeTarget: 0.2 };

const VARA_NETWORK_INFLATION_PARAMS = { ...DEFAULT_PARAMS, maxInflation: 0, minInflation: 0.0001, stakeTarget: 0.85 };

const KNOWN_PARAMS: Record<string, InflationParams> = {
[CERE_NETWORK_GENESIS]: CERE_NETWORK_INFLATION_PARAMS,
[CERE_NETWORK_TESTNET_GENESIS]: CERE_NETWORK_INFLATION_PARAMS,
Expand All @@ -40,7 +42,9 @@ const KNOWN_PARAMS: Record<string, InflationParams> = {
[KUSAMA_GENESIS]: { ...DEFAULT_PARAMS, auctionAdjust: (0.3 / 60), auctionMax: 60, stakeTarget: 0.75 },
[NEATCOIN_GENESIS]: { ...DEFAULT_PARAMS, stakeTarget: 0.75 },
[NFTMART_GENESIS]: { ...DEFAULT_PARAMS, falloff: 0.04, stakeTarget: 0.60 },
[POLKADOT_GENESIS]: { ...DEFAULT_PARAMS, stakeTarget: 0.75 }
[POLKADOT_GENESIS]: { ...DEFAULT_PARAMS, stakeTarget: 0.75 },
[VARA_NETWORK_GENESIS]: VARA_NETWORK_INFLATION_PARAMS,
[VARA_NETWORK_TESTNET_GENESIS]: VARA_NETWORK_INFLATION_PARAMS
};

export function getInflationParams (api: ApiPromise): InflationParams {
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/params/proposalThresholds.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { ApiPromise } from '@polkadot/api';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/params/teleport.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { ApiPromise } from '@polkadot/api';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/params/tracks/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { ApiPromise } from '@polkadot/api';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/params/tracks/kusama.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { TrackInfo } from './types.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/params/tracks/polkadot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { TrackInfo } from './types.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/api/params/tracks/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// Copyright 2017-2024 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { BN } from '@polkadot/util';
Expand Down
Loading

0 comments on commit b84ef37

Please sign in to comment.