Skip to content

Commit f74b901

Browse files
committed
sync with master and update deps
2 parents 2a5e72a + 503223b commit f74b901

File tree

322 files changed

+8162
-4912
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+8162
-4912
lines changed

.123trigger

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
20
1+
21
22
0.45.2
33
0.71.2
44

.yarn/releases/yarn-3.0.0-rc.2.cjs

Lines changed: 0 additions & 591 deletions
This file was deleted.

.yarn/releases/yarn-3.0.1.cjs

Lines changed: 631 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ plugins:
1010
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
1111
spec: "@yarnpkg/plugin-version"
1212

13-
yarnPath: .yarn/releases/yarn-3.0.0-rc.2.cjs
13+
yarnPath: .yarn/releases/yarn-3.0.1.cjs

CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,69 @@
11
# CHANGELOG
22

3+
## 0.95.1 Aug 2, 2021
4+
5+
Contributed:
6+
7+
- Integrate Substrate connect (Thanks to https://github.com/wirednkod)
8+
- Bump Substrate connect dependencies (Thanks to https://github.com/raoulmillais)
9+
- Robonomics Kusama parachain (Thanks to https://github.com/ensrationis)
10+
- Typo fix (Thanks to https://github.com/gangelop)
11+
- Update Robomonics logo (Thanks to https://github.com/vol4tim)
12+
- Bump Acala types (Thanks to https://github.com/xlc)
13+
- Enable Subscan on Karura (Thanks to https://github.com/xlc)
14+
- Adjust PureStake provider name (Thanks to https://github.com/albertov19)
15+
- Bump Phala types (Thanks to https://github.com/limichange)
16+
- Update Altair crowdloan values (Thanks to https://github.com/mikiquantum)
17+
- Update Altair endpoint (Thanks to https://github.com/branan)
18+
- Add Kpron (Thanks to https://github.com/sharkygg & https://github.com/Apron2050)
19+
- Add Bifrost OnFinality provider (Thanks to https://github.com/454076513)
20+
- Add OriginTrail para testnet (Thanks to https://github.com/NZT48 & https://github.com/kotlarmilos)
21+
- Update Edgeware production/testing (Thanks to https://github.com/drewstone)
22+
- Add chainType for chain info transfer (Thanks to https://github.com/joelamouche)
23+
- Update Equilibrium types (Thanks to https://github.com/alex-nax & https://github.com/pr0fedt)
24+
- Update Realis types (Thanks to https://github.com/Daelon02)
25+
- Update for Qr address imports (Thanks to https://github.com/joelamouche)
26+
- Elara providers for Karura, Moonriver & Bifrost (Thanks to https://github.com/zzcwoshizz)
27+
- Update Sora providers (Thanks to https://github.com/stefashkaa)
28+
- Add Basilik Kusama details (Thanks to https://github.com/lumir-mrkva)
29+
- Add Zeitgeist parachain for Kusama (Thanks to https://github.com/c410-f3r)
30+
- Update Pangolin & Crab types (Thanks to https://github.com/WoeOm)
31+
- Add Fantour network config (Thanks to https://github.com/noodleslove)
32+
- Add Loom Kusama parachain (Thanks to https://github.com/NightingaleAsh & https://github.com/enlight)
33+
- Integritee parachain config (Thanks to https://github.com/brenzi)
34+
- Update Unique types (Thanks to https://github.com/gregzaitsev)
35+
- Add zCloak network (Thanks to https://github.com/Lohsea)
36+
- Update Dotscanner URLs (Thanks to https://github.com/Deekor)
37+
- Dotscanner support for Kusama (Thanks to https://github.com/Deekor)
38+
- Update NFTMart logo (Thanks to https://github.com/caosbad)
39+
- Update Moonbeam types (Thanks to https://github.com/joelamouche)
40+
- Add Calamari network logo (Thanks to https://github.com/Dengjianping)
41+
- Update Westend logos (Thanks to https://github.com/wirednkod)
42+
- Add Trustbase network (Thanks to https://github.com/ygsgdbd)
43+
- Add type check on address import (Thanks to https://github.com/joelamouche)
44+
- Update Bifrost types (Thanks to https://github.com/awesomepan)
45+
- Fix translation typos (Thanks to https://github.com/anvie)
46+
- Add Aleph testnet (Thanks to https://github.com/timorl)
47+
- Accounts testing infrastructure (Thanks to https://github.com/wachulski)
48+
- Update Khala types (Thanks to https://github.com/jasl)
49+
- Set Subscan link for Shiden (Thanks to https://github.com/akru)
50+
51+
Changes:
52+
53+
- Remove providers with reliability & availability problems
54+
- taxIndex -1 for all hints
55+
- Fix InputNumber max check
56+
- Correctly use si values on InputNumber on disabled
57+
- Derive treasury account from palletId
58+
- Adjust Ledger app lookups via hash
59+
- Warn about off-chain crowdloan contributions
60+
- Fix isDisabled rendering for Option
61+
- Rework collective queries (multiple instances)
62+
- Don't show council elections with no pallet
63+
- Use gasRequired (as available) for contract estimations
64+
- Clear dispatch queue display on dispatch
65+
66+
367
## 0.94.1 Jun 28, 2015
468

569
Contributed:

jest.config.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module.exports = {
2222
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'empty/object',
2323
'\\.(md)$': '<rootDir>/jest/mocks/empty.js'
2424
},
25-
modulePathIgnorePatterns: ['<rootDir>/packages/apps-config/build'],
2625
setupFilesAfterEnv: ['<rootDir>/jest/jest-setup.ts'],
2726
testEnvironment: 'jsdom',
2827
testTimeout: 90000,

package.json

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,28 @@
55
"description": "An Apps portal into the Polkadot network",
66
"author": "Jaco Greeff <jacogr@gmail.com>",
77
"private": true,
8-
"version": "0.94.2-89",
8+
"version": "0.95.2-83",
99
"license": "Apache-2",
1010
"homepage": ".",
1111
"workspaces": [
1212
"packages/*"
1313
],
1414
"resolutions": {
15-
"@polkadot/api": "^5.1.2-7",
16-
"@polkadot/api-contract": "^5.1.2-7",
17-
"@polkadot/hw-ledger": "^7.0.3-0",
18-
"@polkadot/keyring": "^7.0.3-0",
19-
"@polkadot/networks": "^7.0.3-0",
20-
"@polkadot/phishing": "^0.6.234",
21-
"@polkadot/types": "^5.1.2-7",
22-
"@polkadot/util": "^7.0.3-0",
23-
"@polkadot/util-crypto": "^7.0.3-0",
24-
"@polkadot/wasm-crypto": "^4.1.2",
15+
"@polkadot/api": "^5.7.1",
16+
"@polkadot/api-contract": "^5.7.1",
17+
"@polkadot/hw-ledger": "^7.3.1",
18+
"@polkadot/keyring": "^7.3.1",
19+
"@polkadot/networks": "^7.3.1",
20+
"@polkadot/phishing": "^0.6.277",
21+
"@polkadot/types": "^5.7.1",
22+
"@polkadot/types-known": "^5.7.1",
23+
"@polkadot/types-support": "^5.7.1",
24+
"@polkadot/util": "^7.3.1",
25+
"@polkadot/util-crypto": "^7.3.1",
26+
"@polkadot/wasm-crypto": "^4.2.1",
2527
"babel-core": "^7.0.0-bridge.0",
2628
"styled-components": "^5.2.0",
27-
"typescript": "^4.3.5",
28-
"webpack": "5.41.1"
29+
"typescript": "^4.3.5"
2930
},
3031
"scripts": {
3132
"analyze": "yarn clean && BUILD_ANALYZE=1 yarn run build:code && yarn source-map-explorer packages/apps/build/main.*.js",
@@ -67,25 +68,25 @@
6768
"start:electron": "yarn clean:electronBuild && concurrently 'yarn build:devElectronMain && cd packages/apps-electron && electron ./build/electron.js' 'yarn build:devElectronRenderer'"
6869
},
6970
"devDependencies": {
70-
"@babel/core": "^7.14.6",
71-
"@babel/register": "^7.14.5",
72-
"@babel/runtime": "^7.14.6",
73-
"@crustio/crust-pin": "^0.0.1",
71+
"@babel/core": "^7.15.0",
72+
"@babel/register": "^7.15.3",
73+
"@babel/runtime": "^7.15.3",
74+
"@crustio/crust-pin": "^1.0.0",
7475
"@pinata/sdk": "^1.1.23",
75-
"@polkadot/dev": "^0.62.57",
76-
"@polkadot/ts": "^0.4.4",
76+
"@polkadot/dev": "^0.62.65",
77+
"@polkadot/ts": "^0.4.6",
7778
"@types/bn.js": "^4.11.6",
7879
"@types/chart.js": "^2.9.34",
7980
"@types/file-saver": "^2.0.3",
80-
"@types/jest": "^26.0.24",
81+
"@types/jest": "^27.0.1",
8182
"@types/react-beautiful-dnd": "^13.1.1",
8283
"@types/react-copy-to-clipboard": "^5.0.1",
8384
"@types/react-dom": "^17.0.9",
8485
"@types/react-router-dom": "^5.1.8",
8586
"@types/store": "^2.0.2",
86-
"@types/styled-components": "^5.1.11",
87+
"@types/styled-components": "^5.1.13",
8788
"@types/styled-theming": "^2.2.5",
88-
"concurrently": "^6.2.0",
89+
"concurrently": "^6.2.1",
8990
"devtron": "^1.4.0",
9091
"dnslink-cloudflare": "^3.0.0",
9192
"electron": "^12.0.12",
@@ -96,19 +97,12 @@
9697
"react-dom": "^17.0.2",
9798
"react-is": "^17.0.2",
9899
"source-map-explorer": "^2.5.2",
99-
"styled-components": "^5.3.0",
100+
"styled-components": "^5.3.1",
100101
"stylelint": "^13.13.1",
101102
"stylelint-config-recommended": "^5.0.0",
102103
"stylelint-config-styled-components": "^0.1.1",
103-
"webpack": "^5.42.0",
104-
"webpack-cli": "^4.7.2"
104+
"webpack": "^5.51.1",
105+
"webpack-cli": "^4.8.0"
105106
},
106-
"dependencies": {
107-
"@metamask/detect-provider": "^1.2.0",
108-
"assert": "^2.0.0",
109-
"https-browserify": "^1.0.0",
110-
"os-browserify": "^0.3.0",
111-
"stream-http": "^3.2.0",
112-
"web3": "^1.3.5"
113-
}
107+
"packageManager": "yarn@3.0.1"
114108
}

packages/apps-config/package.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11
{
22
"name": "@polkadot/apps-config",
3-
"version": "0.94.2-89",
3+
"version": "0.95.2-83",
44
"license": "Apache-2.0",
55
"type": "module",
66
"main": "index.js",
77
"sideEffects": true,
88
"repository": "github:polkadot-js/apps",
99
"dependencies": {
10-
"@acala-network/type-definitions": "1.0.2-2",
11-
"@babel/runtime": "^7.14.6",
12-
"@bifrost-finance/type-definitions": "1.1.59",
10+
"@acala-network/type-definitions": "2.1.1",
11+
"@babel/runtime": "^7.15.3",
12+
"@bifrost-finance/type-definitions": "1.2.13",
1313
"@crustio/type-definitions": "0.0.10",
14-
"@darwinia/types": "1.1.5",
15-
"@digitalnative/type-definitions": "1.1.9",
16-
"@docknetwork/node-types": "0.4.6",
14+
"@darwinia/types": "1.1.7",
15+
"@digitalnative/type-definitions": "1.1.12",
16+
"@docknetwork/node-types": "0.4.7",
1717
"@edgeware/node-types": "3.6.2-wako",
18-
"@equilab/definitions": "1.2.6",
19-
"@interlay/polkabtc-types": "0.7.4",
20-
"@kiltprotocol/type-definitions": "0.1.8",
18+
"@equilab/definitions": "1.3.6",
19+
"@interlay/interbtc-types": "0.12.2",
20+
"@kiltprotocol/type-definitions": "0.1.14",
2121
"@laminar/type-definitions": "0.3.1",
22-
"@phala/typedefs": "0.2.1",
23-
"@polkadot/networks": "^7.0.3-0",
22+
"@parallel-finance/type-definitions": "1.1.1",
23+
"@phala/typedefs": "0.2.14",
24+
"@polkadot/networks": "^7.3.1",
2425
"@polymathnetwork/polymesh-types": "0.0.2",
25-
"@snowfork/snowbridge-types": "0.2.3",
26-
"@sora-substrate/type-definitions": "1.3.34",
27-
"@subsocial/types": "0.5.9-dev.2",
28-
"@zeitgeistpm/type-defs": "0.2.0",
29-
"moonbeam-types-bundle": "1.1.27",
30-
"pontem-types-bundle": "1.0.5",
31-
"rxjs": "^7.2.0"
26+
"@snowfork/snowbridge-types": "0.2.5",
27+
"@sora-substrate/type-definitions": "1.5.10",
28+
"@subsocial/types": "0.6.1-1",
29+
"@zeitgeistpm/type-defs": "0.2.5",
30+
"moonbeam-types-bundle": "1.2.4",
31+
"pontem-types-bundle": "1.0.14",
32+
"rxjs": "^7.3.0"
3233
},
3334
"devDependencies": {
3435
"i18next": "^19.9.2"
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
// structs need to be in order
5+
/* eslint-disable sort-keys */
6+
7+
export default {
8+
AccountInfo: 'AccountInfoWithProviders',
9+
Address: 'AccountId',
10+
AddressInfo: 'Vec<u8>',
11+
LookupSource: 'AccountId',
12+
EraBenefits: {
13+
total_benefits: 'Balance',
14+
total_funds: 'Balance',
15+
used_benefits: 'Balance',
16+
active_era: 'EraIndex'
17+
},
18+
FeeReductionBenefit: {
19+
funds: 'Balance',
20+
total_fee_reduction_count: 'u32',
21+
used_fee_reduction_quota: 'Balance',
22+
used_fee_reduction_count: 'u32',
23+
refreshed_at: 'EraIndex'
24+
},
25+
CsmBalance: 'Balance',
26+
CsmBalanceOf: 'Balance',
27+
ETHAddress: 'Vec<u8>',
28+
EthereumTxHash: 'H256',
29+
CSMLedger: {
30+
total: 'Compact<Balance>',
31+
active: 'Compact<Balance>',
32+
unlocking: 'Vec<CSMUnlockChunk<Balance>>'
33+
},
34+
CSMUnlockChunk: {
35+
value: 'Compact<Balance>',
36+
bn: 'Compact<BlockNumber>'
37+
},
38+
FileInfo: {
39+
file_size: 'u64',
40+
expired_on: 'BlockNumber',
41+
calculated_at: 'BlockNumber',
42+
amount: 'Balance',
43+
prepaid: 'Balance',
44+
reported_replica_count: 'u32',
45+
replicas: 'Vec<Replica<AccountId>>'
46+
},
47+
MerchantLedger: {
48+
reward: 'Balance',
49+
collateral: 'Balance'
50+
},
51+
Releases: {
52+
_enum: ['V1_0_0', 'V2_0_0']
53+
},
54+
Replica: {
55+
who: 'AccountId',
56+
valid_at: 'BlockNumber',
57+
anchor: 'SworkerAnchor',
58+
is_reported: 'bool'
59+
},
60+
Status: {
61+
_enum: ['Free', 'Reserved']
62+
},
63+
UsedInfo: {
64+
used_size: 'u64',
65+
reported_group_count: 'u32',
66+
groups: 'BTreeMap<SworkerAnchor, bool>'
67+
},
68+
Guarantee: {
69+
targets: 'Vec<IndividualExposure<AccountId, Balance>>',
70+
total: 'Compact<Balance>',
71+
submitted_in: 'EraIndex',
72+
suppressed: 'bool'
73+
},
74+
ValidatorPrefs: {
75+
guarantee_fee: 'Compact<Perbill>'
76+
},
77+
IASSig: 'Vec<u8>',
78+
Identity: {
79+
anchor: 'SworkerAnchor',
80+
punishment_deadline: 'u64',
81+
group: 'Option<AccountId>'
82+
},
83+
ISVBody: 'Vec<u8>',
84+
MerkleRoot: 'Vec<u8>',
85+
ReportSlot: 'u64',
86+
PKInfo: {
87+
code: 'SworkerCode',
88+
anchor: 'Option<SworkerAnchor>'
89+
},
90+
SworkerAnchor: 'Vec<u8>',
91+
SworkerCert: 'Vec<u8>',
92+
SworkerCode: 'Vec<u8>',
93+
SworkerPubKey: 'Vec<u8>',
94+
SworkerSignature: 'Vec<u8>',
95+
WorkReport: {
96+
report_slot: 'u64',
97+
used: 'u64',
98+
free: 'u64',
99+
reported_files_size: 'u64',
100+
reported_srd_root: 'MerkleRoot',
101+
reported_files_root: 'MerkleRoot'
102+
}
103+
};

packages/apps-config/src/api/chain/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33

44
import { typesChain } from '@phala/typedefs';
55

6+
import CrustMaxwell from './crust-maxwell';
7+
68
// alphabetical, based on the actual displayed name
79
export default {
8-
...typesChain
10+
...typesChain,
11+
'Crust Maxwell': CrustMaxwell
912
};

packages/apps-config/src/api/params/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
export * from './inflation';
55
export * from './proposalThresholds';
6+
export * from './teleport';
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright 2017-2021 @polkadot/app-config authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import type { ApiPromise } from '@polkadot/api';
5+
6+
import { KUSAMA_GENESIS, WESTEND_GENESIS } from '../constants';
7+
8+
// 3 * BaseXcmWeight on Kusama
9+
const KUSAMA_WEIGHT = 3 * 1_000_000_000;
10+
11+
// On Rococo this is lower (3 * 100_000), but non-failing with the higher Kusama weights
12+
const DEFAULT_WEIGHT = KUSAMA_WEIGHT;
13+
14+
const KNOWN_WEIGHTS: Record<string, number> = {
15+
[KUSAMA_GENESIS]: KUSAMA_WEIGHT,
16+
[WESTEND_GENESIS]: 3 * 10_000_000
17+
};
18+
19+
export function getTeleportWeight (api: ApiPromise): number {
20+
return KNOWN_WEIGHTS[api.genesisHash.toHex()] || DEFAULT_WEIGHT;
21+
}

0 commit comments

Comments
 (0)