diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bf031dc5a..565bc31d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ +# 0.39.1 + +- **Breaking** Drop support for V1 Substrate chains +- Translation into Chinese (Thanks to https://github.com/dushaobindoudou) +- Support for sign-only transactions (Thanks to https://github.com/mzolkiewski) +- Add support for WestEnd testnet +- Add support for social recovery in accounts +- Add counters for all proposal-based apps +- Disable spellcheck on all input fields (privacy) +- Query the paymentInfo API to get weight fee information +- Remove FF warning with https:// -> ws://localhost +- Staking now supports where the controller or stash accounts are not local +- Social app +- Add support for identity setting (via identity module) +- Add support for registrars to hand out identity judgements +- Use both internal and lib hooks as applicable (refactoring) +- Support QR codes (accounts) with optional names +- Cleanup all Modals, simplify +- Adjust balance display formats +- Update to latest libraries (incl. util 2.0 & api 1.0) + +# 0.38.1 + +- Fix summarybar in 123-code (Thanks to https://github.com/anakornk) +- Update Edgeware with correct keys (Thanks to https://github.com/drewstone) +- Add InputAddressMulti inputs, both to council and staking nominators +- Rework all layouts, removing cards for table-ike-layouts +- Technical comittee app +- Allow for external proposal and queued for dispatch in democracy +- Add pre-image support to democracy proposals (including imminent) +- Improved staking page rendering (background) +- Update to latest libraries + # 0.37.1 - Support for Kusama CC3 diff --git a/lerna.json b/lerna.json index 0f390800c5..a3a108f359 100644 --- a/lerna.json +++ b/lerna.json @@ -10,5 +10,5 @@ "packages": [ "packages/*" ], - "version": "0.39.0-beta.115" + "version": "0.39.0" } diff --git a/package.json b/package.json index b3ed536cdb..1d1f6414a0 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,10 @@ "packages/*" ], "resolutions": { - "@polkadot/api": "^1.0.1", - "@polkadot/api-contract": "^1.0.1", + "@polkadot/api": "^1.1.0-beta.0", + "@polkadot/api-contract": "^1.1.0-beta.0", "@polkadot/keyring": "^2.0.1", - "@polkadot/types": "^1.0.1", + "@polkadot/types": "^1.1.0-beta.0", "@polkadot/util": "^2.0.1", "@polkadot/util-crypto": "^2.0.1", "babel-core": "^7.0.0-bridge.0", diff --git a/packages/app-123code/package.json b/packages/app-123code/package.json index 59db522d7b..7615a2cfc7 100644 --- a/packages/app-123code/package.json +++ b/packages/app-123code/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-123code", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A basic app that shows the ropes on customisation", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-accounts/package.json b/packages/app-accounts/package.json index 51d0feea47..e608de3d8f 100644 --- a/packages/app-accounts/package.json +++ b/packages/app-accounts/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-accounts", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-qr": "^0.48.0-beta.18", + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-qr": "^0.48.1", "@types/file-saver": "^2.0.0", "@types/yargs": "^15.0.2", "detect-browser": "^4.8.0", diff --git a/packages/app-address-book/package.json b/packages/app-address-book/package.json index 1a3e85f56b..e2e8238b0f 100644 --- a/packages/app-address-book/package.json +++ b/packages/app-address-book/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-address-book", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-claims/package.json b/packages/app-claims/package.json index 99ee95dabe..8a8b3ab97d 100644 --- a/packages/app-claims/package.json +++ b/packages/app-claims/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-claims", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "An app for claiming Polkadot tokens", "main": "index.js", "scripts": {}, @@ -12,7 +12,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", + "@polkadot/react-components": "^0.39.0", "secp256k1": "^3.8.0" } } diff --git a/packages/app-contracts/package.json b/packages/app-contracts/package.json index 6e1da296ef..e21a1ffa2f 100644 --- a/packages/app-contracts/package.json +++ b/packages/app-contracts/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-contracts", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "Deployment and management of substrate contracts", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/api-contract": "^1.0.1" + "@polkadot/api-contract": "^1.1.0-beta.0" } } diff --git a/packages/app-council/package.json b/packages/app-council/package.json index 120737ae39..ab727d416a 100644 --- a/packages/app-council/package.json +++ b/packages/app-council/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-council", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "Council", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0" } } diff --git a/packages/app-dashboard/package.json b/packages/app-dashboard/package.json index 33cb842f0a..5966302a7f 100644 --- a/packages/app-dashboard/package.json +++ b/packages/app-dashboard/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-dashboard", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "Dashboard for all apps, allowing for an overview and quick navigation", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/apps-routing": "^0.39.0-beta.115", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/apps-routing": "^0.39.0", + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-democracy/package.json b/packages/app-democracy/package.json index edffea88cc..b0c0a6b5be 100644 --- a/packages/app-democracy/package.json +++ b/packages/app-democracy/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-democracy", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A referendum & proposal app", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0" } } diff --git a/packages/app-democracy/src/Overview/Summary.tsx b/packages/app-democracy/src/Overview/Summary.tsx index ea38e7d1ca..b2e0620a91 100644 --- a/packages/app-democracy/src/Overview/Summary.tsx +++ b/packages/app-democracy/src/Overview/Summary.tsx @@ -18,7 +18,7 @@ function Summary ({ t }: Props): React.ReactElement { const { api } = useApi(); const activeProposals = useCall(api.derive.democracy.proposals, []); const bestNumber = useCall(api.derive.chain.bestNumber, []); - const nextActive = useCall(api.query.democracy?.lowestUnbaked || api.query.democracy.nextTally, []); + const nextActive = useCall(api.query.democracy.lowestUnbaked, []); const publicPropCount = useCall(api.query.democracy.publicPropCount, []); const referendumCount = useCall(api.query.democracy.referendumCount, []); diff --git a/packages/app-explorer/package.json b/packages/app-explorer/package.json index f19d18705e..b88164aff6 100644 --- a/packages/app-explorer/package.json +++ b/packages/app-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-explorer", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-extrinsics/package.json b/packages/app-extrinsics/package.json index 51e84c9496..2d45c73b70 100644 --- a/packages/app-extrinsics/package.json +++ b/packages/app-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-extrinsics", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-params": "^0.39.0-beta.115", - "@polkadot/react-signer": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-params": "^0.39.0", + "@polkadot/react-signer": "^0.39.0" } } diff --git a/packages/app-generic-asset/package.json b/packages/app-generic-asset/package.json index b2da412a0f..130206bcd3 100644 --- a/packages/app-generic-asset/package.json +++ b/packages/app-generic-asset/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-generic-asset", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A basic GenericAsset transfer app", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-js/package.json b/packages/app-js/package.json index 972765ba9f..c89899eeba 100644 --- a/packages/app-js/package.json +++ b/packages/app-js/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-js", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A simple JavaScript console for playing with the API", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-parachains/package.json b/packages/app-parachains/package.json index ccdedf07ee..e590bdd89e 100644 --- a/packages/app-parachains/package.json +++ b/packages/app-parachains/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-parachains", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "Parachains", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0" } } diff --git a/packages/app-settings/package.json b/packages/app-settings/package.json index d5418d1188..74630c699e 100644 --- a/packages/app-settings/package.json +++ b/packages/app-settings/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-settings", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "Settings management", "main": "index.js", "scripts": {}, @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115", + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0", "query-string": "^6.10.1" } } diff --git a/packages/app-society/package.json b/packages/app-society/package.json index ad7d5fce90..4d82ffefe2 100644 --- a/packages/app-society/package.json +++ b/packages/app-society/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-society", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A society", "main": "index.js", "scripts": {}, @@ -8,6 +8,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-staking/package.json b/packages/app-staking/package.json index 76aa8fcc45..42c18f4366 100644 --- a/packages/app-staking/package.json +++ b/packages/app-staking/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-staking", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A basic staking app", "main": "index.js", "scripts": {}, @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/app-explorer": "^0.39.0-beta.115", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115" + "@polkadot/app-explorer": "^0.39.0", + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0" } } diff --git a/packages/app-staking/src/Actions/Account/BondExtra.tsx b/packages/app-staking/src/Actions/Account/BondExtra.tsx index 3bba2a6049..2e51fe2276 100644 --- a/packages/app-staking/src/Actions/Account/BondExtra.tsx +++ b/packages/app-staking/src/Actions/Account/BondExtra.tsx @@ -126,7 +126,7 @@ class BondExtra extends TxComponent { this.setState((prevState: State): State => { const { api } = this.props; const { amountError = prevState.amountError, maxAdditional = prevState.maxAdditional, maxBalance = prevState.maxBalance } = newState; - const extrinsic = (maxAdditional && maxAdditional.gte(ZERO)) + const extrinsic: any = (maxAdditional && maxAdditional.gte(ZERO)) ? api.tx.staking.bondExtra(maxAdditional) : null; @@ -148,7 +148,7 @@ class BondExtra extends TxComponent { let prevMax = new BN(0); let maxBalance = new BN(1); - let extrinsic; + let extrinsic: any; while (!prevMax.eq(maxBalance)) { prevMax = maxBalance; diff --git a/packages/app-storage/package.json b/packages/app-storage/package.json index 229abc3907..57a7ab3435 100644 --- a/packages/app-storage/package.json +++ b/packages/app-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-storage", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-params": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-params": "^0.39.0" } } diff --git a/packages/app-sudo/package.json b/packages/app-sudo/package.json index c254ba71a6..c810e4de4b 100644 --- a/packages/app-sudo/package.json +++ b/packages/app-sudo/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-sudo", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A basic app that shows the ropes on customisation", "main": "index.js", "scripts": {}, @@ -12,6 +12,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-tech-comm/package.json b/packages/app-tech-comm/package.json index 21130b70a8..8a48bb9e31 100644 --- a/packages/app-tech-comm/package.json +++ b/packages/app-tech-comm/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-tech-comm", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "Council", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0" } } diff --git a/packages/app-toolbox/package.json b/packages/app-toolbox/package.json index 9ae5c000d1..d23a8fb2c1 100644 --- a/packages/app-toolbox/package.json +++ b/packages/app-toolbox/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-toolbox", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/app-transfer/package.json b/packages/app-transfer/package.json index 5fb5c12539..4b678ffb2e 100644 --- a/packages/app-transfer/package.json +++ b/packages/app-transfer/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-transfer", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A basic transfer app", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0" } } diff --git a/packages/app-treasury/package.json b/packages/app-treasury/package.json index c429cd54c8..d0bb8b6cde 100644 --- a/packages/app-treasury/package.json +++ b/packages/app-treasury/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-treasury", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A referendum & proposal app", "main": "index.js", "scripts": {}, @@ -12,7 +12,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-query": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-query": "^0.39.0" } } diff --git a/packages/apps-routing/package.json b/packages/apps-routing/package.json index a0cdeee701..d6b166e24e 100644 --- a/packages/apps-routing/package.json +++ b/packages/apps-routing/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/apps-routing", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", diff --git a/packages/apps/package.json b/packages/apps/package.json index fa2d363fe4..c809ba832b 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/apps", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "An Apps portal into the Polkadot network", "main": "index.js", "homepage": ".", @@ -14,9 +14,9 @@ "dependencies": { "@babel/polyfill": "^7.8.3", "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-signer": "^0.39.0-beta.115", - "@polkadot/ui-assets": "^0.48.0-beta.18", + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-signer": "^0.39.0", + "@polkadot/ui-assets": "^0.48.1", "query-string": "^6.10.1" } } diff --git a/packages/react-api/package.json b/packages/react-api/package.json index 9243910b8d..fb2becbc4f 100644 --- a/packages/react-api/package.json +++ b/packages/react-api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-api", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A collection of RxJs React components the Polkadot JS API", "main": "index.js", "keywords": [ @@ -31,7 +31,7 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/api": "^1.0.1", + "@polkadot/api": "^1.1.0-beta.0", "@polkadot/extension-dapp": "^0.21.0-beta.1", "edgeware-node-types": "^1.1.0", "rxjs-compat": "^6.5.3" diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 217fcbbcab..aa3d23438e 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-components", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -12,11 +12,11 @@ "dependencies": { "@babel/runtime": "^7.8.3", "@polkadot/keyring": "^2.0.1", - "@polkadot/react-api": "^0.39.0-beta.115", - "@polkadot/react-identicon": "^0.48.0-beta.18", - "@polkadot/react-query": "^0.39.0-beta.115", - "@polkadot/ui-keyring": "^0.48.0-beta.18", - "@polkadot/ui-settings": "^0.48.0-beta.18", + "@polkadot/react-api": "^0.39.0", + "@polkadot/react-identicon": "^0.48.1", + "@polkadot/react-query": "^0.39.0", + "@polkadot/ui-keyring": "^0.48.1", + "@polkadot/ui-settings": "^0.48.1", "@types/chart.js": "^2.9.11", "@types/i18next": "^13.0.0", "@types/react-copy-to-clipboard": "^4.3.0", diff --git a/packages/react-components/src/InputBalanceBonded.tsx b/packages/react-components/src/InputBalanceBonded.tsx index 4cb5bb2ee8..cdccef5378 100644 --- a/packages/react-components/src/InputBalanceBonded.tsx +++ b/packages/react-components/src/InputBalanceBonded.tsx @@ -114,7 +114,7 @@ class InputBalanceBonded extends React.PureComponent { const { freeBalance } = balances_all; let prevMax = new BN(0); let maxBalance = new BN(1); - let extrinsic; + let extrinsic: any; while (!prevMax.eq(maxBalance)) { prevMax = maxBalance; @@ -126,7 +126,7 @@ class InputBalanceBonded extends React.PureComponent { } else if (extrinsicProp === 'staking.unbond') { extrinsic = api.tx.staking.unbond(prevMax); } else if (extrinsicProp === 'staking.bondExtra') { - extrinsic = api.tx.staking.bonExtra(prevMax); + extrinsic = api.tx.staking.bondExtra(prevMax); } const txLength = calcTxLength(extrinsic, balances_all.accountNonce); diff --git a/packages/react-hooks/package.json b/packages/react-hooks/package.json index 43850d0633..3c14f9d30f 100644 --- a/packages/react-hooks/package.json +++ b/packages/react-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-hooks", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A collection of React hooks the Polkadot JS Apps UI", "main": "index.js", "keywords": [ diff --git a/packages/react-params/package.json b/packages/react-params/package.json index 27ee2a6add..58f0ebf6a4 100644 --- a/packages/react-params/package.json +++ b/packages/react-params/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-params", - "version": "0.39.0-beta.115", + "version": "0.39.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115" + "@polkadot/react-components": "^0.39.0" } } diff --git a/packages/react-query/package.json b/packages/react-query/package.json index f5585d1452..a53df7b7c8 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-query", - "version": "0.39.0-beta.115", + "version": "0.39.0", "description": "A collection of RxJs React components the Polkadot JS API", "main": "index.js", "keywords": [ diff --git a/packages/react-query/src/TimePeriod.tsx b/packages/react-query/src/TimePeriod.tsx index 5f3b5c522d..b60cbce597 100644 --- a/packages/react-query/src/TimePeriod.tsx +++ b/packages/react-query/src/TimePeriod.tsx @@ -2,11 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { Moment } from '@polkadot/types/interfaces'; import { BareProps } from '@polkadot/react-api/types'; import React from 'react'; -import { useApi, useCall } from '@polkadot/react-hooks'; +import { useApi } from '@polkadot/react-hooks'; import { formatNumber } from '@polkadot/util'; interface Props extends BareProps { @@ -16,7 +15,7 @@ interface Props extends BareProps { export default function TimePeriod ({ children, className, label, style }: Props): React.ReactElement { const { api } = useApi(); - const minimumPeriod = api.consts?.timestamp?.minimumPeriod || useCall(api.query.timestamp.minimumPeriod, []); + const minimumPeriod = api.consts?.timestamp?.minimumPeriod; return (
", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.39.0-beta.115", - "@polkadot/react-qr": "^0.48.0-beta.18" + "@polkadot/react-components": "^0.39.0", + "@polkadot/react-qr": "^0.48.1" } } diff --git a/packages/react-signer/src/Checks/ContractDeploy.tsx b/packages/react-signer/src/Checks/ContractDeploy.tsx index 92ee4607ec..1897340a9d 100644 --- a/packages/react-signer/src/Checks/ContractDeploy.tsx +++ b/packages/react-signer/src/Checks/ContractDeploy.tsx @@ -23,7 +23,7 @@ export default function ContractDeploy ({ endowment, fees, onChange }: Props): R }); useEffect((): void => { - const extraFees = new BN(fees.createBaseFee).add(fees.contractFee); + const extraFees = fees.contractFee; const extraAmount = endowment instanceof Compact ? endowment.toBn() : new BN(endowment || 0); diff --git a/packages/react-signer/src/Checks/Proposal.tsx b/packages/react-signer/src/Checks/Proposal.tsx index 457d50f09c..476a48b725 100644 --- a/packages/react-signer/src/Checks/Proposal.tsx +++ b/packages/react-signer/src/Checks/Proposal.tsx @@ -9,7 +9,7 @@ import BN from 'bn.js'; import React, { useState, useEffect } from 'react'; import { Compact, UInt } from '@polkadot/types'; import { Icon } from '@polkadot/react-components'; -import { useApi, useCall } from '@polkadot/react-hooks'; +import { useApi } from '@polkadot/react-hooks'; import { formatBalance } from '@polkadot/util'; import { useTranslation } from '../translate'; @@ -30,7 +30,7 @@ const ZERO = new BN(0); export default function Proposal ({ deposit, onChange }: Props): React.ReactElement { const { t } = useTranslation(); const { api } = useApi(); - const minDeposit = api.consts.democracy.minimumDeposit || useCall(api.query.democracy.minimumDeposit, []); + const minDeposit = api.consts.democracy.minimumDeposit; const [{ extraAmount, isBelowMinimum }, setState] = useState({ extraFees: ZERO, extraAmount: ZERO, diff --git a/packages/react-signer/src/Checks/constants.ts b/packages/react-signer/src/Checks/constants.ts index b6b6474aa9..2ae988b491 100644 --- a/packages/react-signer/src/Checks/constants.ts +++ b/packages/react-signer/src/Checks/constants.ts @@ -35,7 +35,6 @@ const ZERO_FEES = ZERO_FEES_BALANCES; const ZERO_FEES_CONTRACT: DerivedContractFees = { callBaseFee: new BN(0), contractFee: new BN(0), - createBaseFee: new BN(0), creationFee: new BN(0), rentByteFee: new BN(0), rentDepositOffset: new BN(0), diff --git a/yarn.lock b/yarn.lock index 1aa48befce..ae07c00157 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2210,35 +2210,35 @@ dependencies: "@types/node" ">= 8" -"@polkadot/api-contract@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-1.0.1.tgz#bd1648803c87a5dca353c0874ddaa343c02f7de5" - integrity sha512-EKhYteIBXUp2C7eAHSGOloS7+HxxFuPko88/yXv/VTWtKcd1NGFKKMJrL6mYlKAnb88VEOVsQ1S1pnEM328Rmg== +"@polkadot/api-contract@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-1.1.0-beta.0.tgz#21b756c932cd190987de6f90a1fe548b9805aa2b" + integrity sha512-0SZTJ2ouOukiibJFbGesLkTbtfy3SouNBSkQE4z4APsqv3GCrS46TQ7c0Be0pYunKalR7M5j7qyKYI0ZduRwWA== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/types" "^1.0.1" + "@polkadot/types" "^1.1.0-beta.0" -"@polkadot/api-derive@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.0.1.tgz#1e25d025ef6b07cf3fdbae71ec129f647a5a85f5" - integrity sha512-XtrkmNNLsoVv2WX6sCZlWNrNk7v34QbGAsEqtS0uD8erNobWTLtHEb7bijngj8rOUuMkQLwtMA9bZgZsRlzh4Q== +"@polkadot/api-derive@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.1.0-beta.0.tgz#9bb8b7d4a25396d95032309f8f8be0dfdb78359d" + integrity sha512-MbKBZzF7PsJK8ls4IGqrOWjcL2KfeJ4WjWT60KAIGt5iaKhfkf2S8wcxVPMalcTIFCjbMDPrUv8DzY3ZMntSpw== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/api" "^1.0.1" - "@polkadot/types" "^1.0.1" + "@polkadot/api" "^1.1.0-beta.0" + "@polkadot/types" "^1.1.0-beta.0" -"@polkadot/api@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.0.1.tgz#c6f81552542897d4348a6ced2a482506852e2fab" - integrity sha512-7zo7OUeqkUzPiZC7aAdUMHcOUDjA/Z2gj85HhTGvJk91nLfSk5gytWTBdaiIivRV/Gbnz+UDgNvoTf5QBfngVw== +"@polkadot/api@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.1.0-beta.0.tgz#b780a6adc5c7ac7783597b7171c2b1af985eebe9" + integrity sha512-gH6mbJJmDeDmJhaPpNyCF+G+AsQZ2w0gvdEE4nW3uRTRHrXKKqsLe5ByIgXqjNcvi5EAB4ClZVY6wJGVBHTVyA== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/api-derive" "^1.0.1" + "@polkadot/api-derive" "^1.1.0-beta.0" "@polkadot/keyring" "^2.0.1" - "@polkadot/metadata" "^1.0.1" - "@polkadot/rpc-core" "^1.0.1" - "@polkadot/rpc-provider" "^1.0.1" - "@polkadot/types" "^1.0.1" + "@polkadot/metadata" "^1.1.0-beta.0" + "@polkadot/rpc-core" "^1.1.0-beta.0" + "@polkadot/rpc-provider" "^1.1.0-beta.0" + "@polkadot/types" "^1.1.0-beta.0" "@polkadot/util-crypto" "^2.0.1" "@polkadot/dev-react@^0.33.3": @@ -2343,10 +2343,10 @@ dependencies: "@babel/runtime" "^7.8.3" -"@polkadot/jsonrpc@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-1.0.1.tgz#960abe85a01e217553f4c77ab69c9670d32a7479" - integrity sha512-gCKB08qBenAHGZPRoMhTUy5+OoKoD+cTFAZI85AhRW80CLYmKGd1Wl/PIXxO0DdTJB2uiQdVsJvl8/BOvxJQ7Q== +"@polkadot/jsonrpc@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-1.1.0-beta.0.tgz#00adb030a763be22e6964c51a92bce1f20d3cb0c" + integrity sha512-Wdm5vODNurjgeaffiX8Fqi6h59hr8OR4M4b/bJfRFYsRJD6n+zwxuqsD9uolatmCdprnltG6cjyfkvElsBvjSg== dependencies: "@babel/runtime" "^7.8.3" @@ -2359,59 +2359,59 @@ "@polkadot/util" "^2.0.1" "@polkadot/util-crypto" "^2.0.1" -"@polkadot/metadata@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.0.1.tgz#e0098bb71ec6264a9adb82897ac0c982af1856c3" - integrity sha512-eoc+iAaJFf9IMgvMVruXG7UtX6iyRhhDuPs507cPGRxtf5Hxz87QDWgp9Klro2OQQ/0KTCOh3QMVjbLYVQ6YNg== +"@polkadot/metadata@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.1.0-beta.0.tgz#6a831bf345644c9de24a2a9c0a7d125bf03a4f4f" + integrity sha512-yCfTKhC/5Nh/VHyDtpjfp2g0X6jdE1YOTQdnQRV4J2L9R4nl6Ia2jVSirWTgBC5vctxbjP3rQ38UMg1lnUcUCw== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/types" "^1.0.1" + "@polkadot/types" "^1.1.0-beta.0" "@polkadot/util" "^2.0.1" "@polkadot/util-crypto" "^2.0.1" -"@polkadot/react-identicon@^0.48.0-beta.18": - version "0.48.0-beta.18" - resolved "https://registry.yarnpkg.com/@polkadot/react-identicon/-/react-identicon-0.48.0-beta.18.tgz#f574b88c817709bad7d117cd9e78bb905b03f5ff" - integrity sha512-B2pi7RDZ3kUbFQFZXKDs3k5I0F6xiO9DsfoSPxfDNLHrhzHOamMY1uwdBJitrynhxcN47jTZ5ZrGtAD6H+voiQ== +"@polkadot/react-identicon@^0.48.1": + version "0.48.1" + resolved "https://registry.yarnpkg.com/@polkadot/react-identicon/-/react-identicon-0.48.1.tgz#3544e78df61eff4ab30e21c1137cb3a8386520f9" + integrity sha512-ctGhMZ1MUFgnEtShTtRU0PUs+1vNM8JhHjcjEA/CiP8VhMRDxE6sFChZAJonSlT39MVP8rY60DhsSHBMciCIrw== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/ui-settings" "^0.48.0-beta.18" - "@polkadot/ui-shared" "^0.48.0-beta.18" + "@polkadot/ui-settings" "^0.48.1" + "@polkadot/ui-shared" "^0.48.1" "@types/react-copy-to-clipboard" "^4.3.0" color "^3.1.2" jdenticon "2.2.0" react-copy-to-clipboard "^5.0.2" styled-components "^5.0.0" -"@polkadot/react-qr@^0.48.0-beta.18": - version "0.48.0-beta.18" - resolved "https://registry.yarnpkg.com/@polkadot/react-qr/-/react-qr-0.48.0-beta.18.tgz#eb9869534019a58960f20e04257e54c142c1b449" - integrity sha512-magplhpY92GSwKiCz0rqQJ+NHnk0G5qlQX7CtNnX7QsZPlecRdNiQczjzNRV0TxdtKtHJ/R6dDBiB8Q0+fyrTQ== +"@polkadot/react-qr@^0.48.1": + version "0.48.1" + resolved "https://registry.yarnpkg.com/@polkadot/react-qr/-/react-qr-0.48.1.tgz#1d445604d0d21a8916c08255df60e536f13c1a60" + integrity sha512-LpztO7yqw7MYwA55aP0zPT5xb8X26NGUX7ZtkBAGEdHtHWKz9GWP5uY/fgh9EiNaeRR3fC0CHV5WLuXEtv4J6Q== dependencies: "@babel/runtime" "^7.8.3" "@types/react-qr-reader" "^2.1.1" qrcode-generator "^1.4.4" react-qr-reader "^2.2.1" -"@polkadot/rpc-core@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.0.1.tgz#fc54eb5650382563308138c321d8530766431fe3" - integrity sha512-yuFeZG7hvH71MfpQCCr9+O3CBpmU9yw0Ec/Oi4mj/VRhPrrjN6UzB567uUrBB1GrRMwPvl01wZcJLFd0r/nSFA== +"@polkadot/rpc-core@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.1.0-beta.0.tgz#bc1a64bd4a10383ba923bcc8aa1ce22be07a31cf" + integrity sha512-B3NsbEqLbPZpUC/1uPfN9RsufnLNBNWIu/Y30aHhVNrCw9x9j/ng4k4L+XK26+ibrt7k9AuuGhGAS++vubrGvA== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/jsonrpc" "^1.0.1" - "@polkadot/rpc-provider" "^1.0.1" - "@polkadot/types" "^1.0.1" + "@polkadot/jsonrpc" "^1.1.0-beta.0" + "@polkadot/rpc-provider" "^1.1.0-beta.0" + "@polkadot/types" "^1.1.0-beta.0" "@polkadot/util" "^2.0.1" rxjs "^6.5.4" -"@polkadot/rpc-provider@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.0.1.tgz#f9ce07a260b58afa2292eff3450080fc18758b63" - integrity sha512-IFB78vLGaF2TnfOFMZeR1DdPlLUsrqbT/WRIyNUP8rYWhV33dmM4RijJH2AkADmZ+EL4tm36x73RGOh9Iq9C0g== +"@polkadot/rpc-provider@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.1.0-beta.0.tgz#1d0dc90a9d455ef7f6324aae570feb7a00b37366" + integrity sha512-5pIKEOqZB6eJ/ZWogywn32gnoUikI/MDpNAayh2FjzNVc2DdyKezY4IpKf4+qffHMHtQNE0lLKVcQNGI89VnbQ== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/metadata" "^1.0.1" + "@polkadot/metadata" "^1.1.0-beta.0" "@polkadot/util" "^2.0.1" "@polkadot/util-crypto" "^2.0.1" eventemitter3 "^4.0.0" @@ -2425,29 +2425,29 @@ dependencies: "@types/chrome" "^0.0.92" -"@polkadot/types@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.0.1.tgz#c2a5ec343703e257fbb9904b01ca50d5284ec275" - integrity sha512-0WKZlyfXP09Nsdu3JrdCKw1VIGkbC967AcsVngIvxXYV7LDSbzHHHtkww1ZjoqJBFVewO/p49S3lTGTt5i+7mQ== +"@polkadot/types@^1.1.0-beta.0": + version "1.1.0-beta.0" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.1.0-beta.0.tgz#3304a52b761f0fbf5b3a512679541290c7a1e005" + integrity sha512-E9bbn4geVQyGuRn8hCbFlVvcMCsP0h+zh3xDZhv0RithQ06LTPDvOYME62CGFYl3dVYxdqMeyTC2hcvNLrfD5Q== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/metadata" "^1.0.1" + "@polkadot/metadata" "^1.1.0-beta.0" "@polkadot/util" "^2.0.1" "@polkadot/util-crypto" "^2.0.1" memoizee "^0.4.14" yargs "^15.1.0" -"@polkadot/ui-assets@^0.48.0-beta.18": - version "0.48.0-beta.18" - resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.48.0-beta.18.tgz#3458813844dd18e26e68b8dbd517aef1fac1e003" - integrity sha512-oeGEHhaVPmCIHFU65Rlt4m0kEE6Mpuyrog+ct8CMBsv/Alz8pF9t0eceCCWt54jakjpl/OJTIgYjYf/9Tez5Xw== +"@polkadot/ui-assets@^0.48.1": + version "0.48.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.48.1.tgz#042041e08cae8f8da6e78f03d03744d1fbac15d0" + integrity sha512-rYpQk6U8pZRfJLx7EK6ajBSG2tnlF/tfvoYzbfIVmGNL4YUs0UnE5cbt2qAsBeIyZm0WFx2S2hYNKJnlB49Zgg== dependencies: "@babel/runtime" "^7.8.3" -"@polkadot/ui-keyring@^0.48.0-beta.18": - version "0.48.0-beta.18" - resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.48.0-beta.18.tgz#744b1f5dbe8f9e0e77c53982cdd6d42f7ce70efd" - integrity sha512-U405wU6cIftIjfxoCPfC3b8+kSVoA2tWvsncw5l08yMiOrkMVkUKZ5wXGF8ZpY9+XoIBDTftJxquxBYYH+E3pQ== +"@polkadot/ui-keyring@^0.48.1": + version "0.48.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.48.1.tgz#06cdf2b4dcf232fa475c8ea018435747c9302d46" + integrity sha512-SMjbcRX8uSHO0u/BaHwkYaMm79OL3+ok9eNGlZoY71X7z02DcpDe9jRqMU2tPyJHl0BVmtMQeaEue7mKO/Ugvw== dependencies: "@babel/runtime" "^7.8.3" "@ledgerhq/hw-transport-u2f" "^5.7.0" @@ -2463,19 +2463,19 @@ optionalDependencies: "@ledgerhq/hw-transport-node-hid" "^5.7.0" -"@polkadot/ui-settings@^0.48.0-beta.18": - version "0.48.0-beta.18" - resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.48.0-beta.18.tgz#fdad20065973dc98e79c6791a09bca08d49e3c61" - integrity sha512-1acBfKzTJQ6ks821jBko3Kmar2UdOVl7NY6LgphT0JsumIzAG6Yp+08/6Qs1WqhHLNiOqbltcZQLtk0OGMVI7w== +"@polkadot/ui-settings@^0.48.1": + version "0.48.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.48.1.tgz#9457a3e35df9aa35d4a25dc0a4638dcdcd238b8e" + integrity sha512-pUyNaMdTR4qDdsz6/lkpXJIojdZOeMKIkPuiXz+0Dc4ucZJns1p6LY/U2dfGoWEuWCiNQ39y7d54e3RGpMmh4w== dependencies: "@babel/runtime" "^7.8.3" "@types/store" "^2.0.2" store "^2.0.12" -"@polkadot/ui-shared@^0.48.0-beta.18": - version "0.48.0-beta.18" - resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-0.48.0-beta.18.tgz#08925726f0d35f6d46258b90cf1710a7346581a0" - integrity sha512-khjKCxTc8k8I+QQZ46pzoCDxgQkqV6qje8oE5m9ezaCPFB6UeV5fz/7ndHKILgEIntQPrshdwgj9To6wffFHcQ== +"@polkadot/ui-shared@^0.48.1": + version "0.48.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-0.48.1.tgz#5b2145f167883131c8c6ea9fa159ece82f0c7ec7" + integrity sha512-giXjkilv6WwrmuSh3rx1GewIsUdMA1kZVCQnJ+vqN2sMSC15ss/IL5xiq6gB2ZYJaGeIJPOzPS/ZG8vZNNyDsA== dependencies: "@babel/runtime" "^7.8.3" "@types/color" "^3.0.1"