This commit is contained in:
Jaco Greeff
2021-04-12 08:21:37 +02:00
committed by GitHub
parent 1e506e0f8c
commit 40af520fe7
15 changed files with 212 additions and 90 deletions
+14
View File
@@ -1,5 +1,19 @@
# CHANGELOG
## 4.5.1 Apr 12, 2021
Upgrade priority: Low. Recommended with usage with the Rococo testnet.
Changes:
- Update parachain types as per latest Polkadot
- Cater for `Keys` with `BEEFY` session keys
- Update `Keys` injection to allow for on-chain type detection
- Update `Westend` known upgrade points for runtime 50
- Align types with latest Substrate master
- Adjust keepalive `system_health` timer
## 4.4.1 Apr 5, 2021
Upgrade priority: Low. Recommended with usage with the Rococo testnet.
+1 -1
View File
@@ -34,5 +34,5 @@
"@types/jest": "^26.0.22",
"copyfiles": "^2.4.1"
},
"version": "4.4.2-7"
"version": "4.5.0"
}
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
@@ -17,8 +17,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/api": "4.4.2-7",
"@polkadot/types": "4.4.2-7",
"@polkadot/api": "4.5.0",
"@polkadot/types": "4.5.0",
"@polkadot/util": "^6.1.1",
"@polkadot/x-rxjs": "^6.1.1",
"bn.js": "^4.11.9"
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
@@ -17,9 +17,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/api": "4.4.2-7",
"@polkadot/rpc-core": "4.4.2-7",
"@polkadot/types": "4.4.2-7",
"@polkadot/api": "4.5.0",
"@polkadot/rpc-core": "4.5.0",
"@polkadot/types": "4.5.0",
"@polkadot/util": "^6.1.1",
"@polkadot/util-crypto": "^6.1.1",
"@polkadot/x-rxjs": "^6.1.1",
@@ -27,6 +27,6 @@
},
"devDependencies": {
"@polkadot/keyring": "^6.1.1",
"@polkadot/rpc-provider": "4.4.2-7"
"@polkadot/rpc-provider": "4.5.0"
}
}
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
@@ -17,13 +17,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/api-derive": "4.4.2-7",
"@polkadot/api-derive": "4.5.0",
"@polkadot/keyring": "^6.1.1",
"@polkadot/metadata": "4.4.2-7",
"@polkadot/rpc-core": "4.4.2-7",
"@polkadot/rpc-provider": "4.4.2-7",
"@polkadot/types": "4.4.2-7",
"@polkadot/types-known": "4.4.2-7",
"@polkadot/metadata": "4.5.0",
"@polkadot/rpc-core": "4.5.0",
"@polkadot/rpc-provider": "4.5.0",
"@polkadot/types": "4.5.0",
"@polkadot/types-known": "4.5.0",
"@polkadot/util": "^6.1.1",
"@polkadot/util-crypto": "^6.1.1",
"@polkadot/x-rxjs": "^6.1.1",
+2 -2
View File
@@ -21,7 +21,7 @@ import { map, switchMap } from '@polkadot/x-rxjs/operators';
import { detectedCapabilities } from './capabilities';
import { Decorate } from './Decorate';
const KEEPALIVE_INTERVAL = 15000;
const KEEPALIVE_INTERVAL = 10000;
const DEFAULT_BLOCKNUMBER = { unwrap: () => BN_ZERO };
const l = logger('api/init');
@@ -321,7 +321,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
}
this.#healthTimer = setInterval((): void => {
this._rpcCore.system.health().toPromise().catch(() => null);
this._rpcCore.system.health().toPromise().catch((error) => l.warn(`Health keepalive check failed: ${(error as Error).message}`));
}, KEEPALIVE_INTERVAL);
} catch (_error) {
const error = new Error(`FATAL: Unable to initialize the API: ${(_error as Error).message}`);
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
@@ -17,8 +17,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/types": "4.4.2-7",
"@polkadot/types-known": "4.4.2-7",
"@polkadot/types": "4.5.0",
"@polkadot/types-known": "4.5.0",
"@polkadot/util": "^6.1.1",
"@polkadot/util-crypto": "^6.1.1",
"bn.js": "^4.11.9"
+128 -20
View File
@@ -499,7 +499,7 @@
{
"name": "Version",
"type": "RuntimeVersion",
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000090100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000090100000100000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
"documentation": [
" Get the chain's current version."
]
@@ -947,7 +947,7 @@
{
"name": "EpochDuration",
"type": "u64",
"value": "0x1400000000000000",
"value": "0xc800000000000000",
"documentation": [
" The amount of time, in slots, that each epoch should last.",
" NOTE: Currently it is not possible to change the epoch duration after",
@@ -1392,7 +1392,38 @@
]
}
],
"errors": [],
"errors": [
{
"name": "NotAssigned",
"documentation": [
" The index was not already assigned."
]
},
{
"name": "NotOwner",
"documentation": [
" The index is assigned to another account."
]
},
{
"name": "InUse",
"documentation": [
" The index was not available."
]
},
{
"name": "NotTransfer",
"documentation": [
" The source and destination accounts are identical."
]
},
{
"name": "Permanent",
"documentation": [
" The index is permanent and may not be freed/changed."
]
}
],
"index": 5
},
{
@@ -1971,7 +2002,7 @@
{
"name": "UnsignedPhase",
"type": "BlockNumber",
"value": "0x05000000",
"value": "0x32000000",
"documentation": [
" Duration of the unsigned phase."
]
@@ -1979,7 +2010,7 @@
{
"name": "SignedPhase",
"type": "BlockNumber",
"value": "0x05000000",
"value": "0x32000000",
"documentation": [
" Duration of the signed phase."
]
@@ -3257,6 +3288,14 @@
" For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim",
" their reward. This used to limit the i/o cost for the nominator payout."
]
},
{
"name": "MaxNominations",
"type": "u32",
"value": "0x10000000",
"documentation": [
" Maximum number of nominations per nominator."
]
}
],
"errors": [
@@ -6091,7 +6130,7 @@
"documentation": []
},
{
"name": "ModuleId",
"name": "PalletId",
"type": "LockIdentifier",
"value": "0x706872656c656374",
"documentation": []
@@ -6383,7 +6422,20 @@
}
],
"constants": [],
"errors": [],
"errors": [
{
"name": "AlreadyMember",
"documentation": [
" Already a member."
]
},
{
"name": "NotMember",
"documentation": [
" Not a member."
]
}
],
"index": 15
},
{
@@ -6825,8 +6877,8 @@
]
},
{
"name": "ModuleId",
"type": "ModuleId",
"name": "PalletId",
"type": "PalletId",
"value": "0x70792f7472737279",
"documentation": [
" The treasury's module id, used for deriving its sovereign account ID."
@@ -7026,7 +7078,7 @@
" * `gas_limit`: The gas limit enforced when executing the constructor.",
" * `code`: The contract code to deploy in raw bytes.",
" * `data`: The input data to pass to the contract constructor.",
" * `salt`: Used for the address derivation. See [`Self::contract_address`].",
" * `salt`: Used for the address derivation. See [`Pallet::contract_address`].",
"",
" Instantiation is executed as follows:",
"",
@@ -9569,12 +9621,20 @@
]
},
{
"name": "ModuleId",
"type": "ModuleId",
"name": "PalletId",
"type": "PalletId",
"value": "0x70792f736f636965",
"documentation": [
" The societies's module id"
]
},
{
"name": "MaxCandidateIntake",
"type": "u32",
"value": "0x0a000000",
"documentation": [
" Maximum candidate intake per round."
]
}
],
"errors": [
@@ -10274,7 +10334,7 @@
" Unlock any vested funds of the sender account.",
"",
" The dispatch origin for this call must be _Signed_ and the sender must have funds still",
" locked under this module.",
" locked under this pallet.",
"",
" Emits either `VestingCompleted` or `VestingUpdated`.",
"",
@@ -10300,7 +10360,7 @@
" The dispatch origin for this call must be _Signed_.",
"",
" - `target`: The account whose vested funds should be unlocked. Must have funds still",
" locked under this module.",
" locked under this pallet.",
"",
" Emits either `VestingCompleted` or `VestingUpdated`.",
"",
@@ -10409,7 +10469,7 @@
"type": "BalanceOf",
"value": "0x0000c16ff28623000000000000000000",
"documentation": [
" The minimum amount to be transferred to create a new vesting schedule."
" The minimum amount transferred to call `vested_transfer`."
]
}
],
@@ -12614,8 +12674,7 @@
"",
" The origin must be Signed and the sender must have sufficient funds free.",
"",
" Funds of sender are reserved according to the formula:",
" `AssetDepositBase + AssetDepositPerZombie * max_zombies`.",
" Funds of sender are reserved by `AssetDeposit`.",
"",
" Parameters:",
" - `id`: The identifier of the new asset. This must not be currently in use to identify",
@@ -13902,8 +13961,8 @@
],
"constants": [
{
"name": "ModuleId",
"type": "ModuleId",
"name": "PalletId",
"type": "PalletId",
"value": "0x70792f6c6f74746f",
"documentation": []
},
@@ -13914,7 +13973,56 @@
"documentation": []
}
],
"errors": [],
"errors": [
{
"name": "Overflow",
"documentation": [
" An overflow has occurred."
]
},
{
"name": "NotConfigured",
"documentation": [
" A lottery has not been configured."
]
},
{
"name": "InProgress",
"documentation": [
" A lottery is already in progress."
]
},
{
"name": "AlreadyEnded",
"documentation": [
" A lottery has already ended."
]
},
{
"name": "InvalidCall",
"documentation": [
" The call is not valid for an open lottery."
]
},
{
"name": "AlreadyParticipating",
"documentation": [
" You are already participating in the lottery with this call."
]
},
{
"name": "TooManyCalls",
"documentation": [
" Too many calls for a single lottery."
]
},
{
"name": "EncodingFailed",
"documentation": [
" Failed to encode calls"
]
}
],
"index": 36
},
{
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
@@ -17,9 +17,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/metadata": "4.4.2-7",
"@polkadot/rpc-provider": "4.4.2-7",
"@polkadot/types": "4.4.2-7",
"@polkadot/metadata": "4.5.0",
"@polkadot/rpc-provider": "4.5.0",
"@polkadot/types": "4.5.0",
"@polkadot/util": "^6.1.1",
"@polkadot/x-rxjs": "^6.1.1"
},
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "Transport providers for the API",
"main": "index.js",
@@ -17,7 +17,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/types": "4.4.2-7",
"@polkadot/types": "4.5.0",
"@polkadot/util": "^6.1.1",
"@polkadot/util-crypto": "^6.1.1",
"@polkadot/x-fetch": "^6.1.1",
@@ -28,7 +28,7 @@
},
"devDependencies": {
"@polkadot/keyring": "^6.1.1",
"@polkadot/metadata": "4.4.2-7",
"@polkadot/metadata": "4.5.0",
"mock-socket": "^9.0.3",
"nock": "^13.0.11"
}
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "Type generation scripts",
"main": "index.js",
@@ -26,10 +26,10 @@
"@babel/core": "^7.13.15",
"@babel/register": "^7.13.14",
"@babel/runtime": "^7.13.10",
"@polkadot/api": "4.4.2-7",
"@polkadot/metadata": "4.4.2-7",
"@polkadot/rpc-provider": "4.4.2-7",
"@polkadot/types": "4.4.2-7",
"@polkadot/api": "4.5.0",
"@polkadot/metadata": "4.5.0",
"@polkadot/rpc-provider": "4.5.0",
"@polkadot/types": "4.5.0",
"@polkadot/util": "^6.1.1",
"handlebars": "^4.7.7",
"websocket": "^1.0.33",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
@@ -18,7 +18,7 @@
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/networks": "^6.1.1",
"@polkadot/types": "4.4.2-7",
"@polkadot/types": "4.5.0",
"@polkadot/util": "^6.1.1",
"bn.js": "^4.11.9"
},
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "4.4.2-7",
"version": "4.5.0",
"type": "module",
"description": "Implementation of the Parity codec",
"main": "index.js",
@@ -17,7 +17,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@polkadot/metadata": "4.4.2-7",
"@polkadot/metadata": "4.5.0",
"@polkadot/util": "^6.1.1",
"@polkadot/util-crypto": "^6.1.1",
"@polkadot/x-rxjs": "^6.1.1",
+32 -32
View File
@@ -1789,24 +1789,24 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/api": 4.4.2-7
"@polkadot/types": 4.4.2-7
"@polkadot/api": 4.5.0
"@polkadot/types": 4.5.0
"@polkadot/util": ^6.1.1
"@polkadot/x-rxjs": ^6.1.1
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/api-derive@4.4.2-7, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@4.5.0, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/api": 4.4.2-7
"@polkadot/api": 4.5.0
"@polkadot/keyring": ^6.1.1
"@polkadot/rpc-core": 4.4.2-7
"@polkadot/rpc-provider": 4.4.2-7
"@polkadot/types": 4.4.2-7
"@polkadot/rpc-core": 4.5.0
"@polkadot/rpc-provider": 4.5.0
"@polkadot/types": 4.5.0
"@polkadot/util": ^6.1.1
"@polkadot/util-crypto": ^6.1.1
"@polkadot/x-rxjs": ^6.1.1
@@ -1814,18 +1814,18 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api@4.4.2-7, @polkadot/api@workspace:packages/api":
"@polkadot/api@4.5.0, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/api-derive": 4.4.2-7
"@polkadot/api-derive": 4.5.0
"@polkadot/keyring": ^6.1.1
"@polkadot/metadata": 4.4.2-7
"@polkadot/rpc-core": 4.4.2-7
"@polkadot/rpc-provider": 4.4.2-7
"@polkadot/types": 4.4.2-7
"@polkadot/types-known": 4.4.2-7
"@polkadot/metadata": 4.5.0
"@polkadot/rpc-core": 4.5.0
"@polkadot/rpc-provider": 4.5.0
"@polkadot/types": 4.5.0
"@polkadot/types-known": 4.5.0
"@polkadot/util": ^6.1.1
"@polkadot/util-crypto": ^6.1.1
"@polkadot/x-rxjs": ^6.1.1
@@ -1934,14 +1934,14 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/metadata@4.4.2-7, @polkadot/metadata@workspace:packages/metadata":
"@polkadot/metadata@4.5.0, @polkadot/metadata@workspace:packages/metadata":
version: 0.0.0-use.local
resolution: "@polkadot/metadata@workspace:packages/metadata"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/keyring": ^6.1.1
"@polkadot/types": 4.4.2-7
"@polkadot/types-known": 4.4.2-7
"@polkadot/types": 4.5.0
"@polkadot/types-known": 4.5.0
"@polkadot/util": ^6.1.1
"@polkadot/util-crypto": ^6.1.1
bn.js: ^4.11.9
@@ -1957,28 +1957,28 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-core@4.4.2-7, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@4.5.0, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/keyring": ^6.1.1
"@polkadot/metadata": 4.4.2-7
"@polkadot/rpc-provider": 4.4.2-7
"@polkadot/types": 4.4.2-7
"@polkadot/metadata": 4.5.0
"@polkadot/rpc-provider": 4.5.0
"@polkadot/types": 4.5.0
"@polkadot/util": ^6.1.1
"@polkadot/x-rxjs": ^6.1.1
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@4.4.2-7, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@4.5.0, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/keyring": ^6.1.1
"@polkadot/metadata": 4.4.2-7
"@polkadot/types": 4.4.2-7
"@polkadot/metadata": 4.5.0
"@polkadot/types": 4.5.0
"@polkadot/util": ^6.1.1
"@polkadot/util-crypto": ^6.1.1
"@polkadot/x-fetch": ^6.1.1
@@ -2007,10 +2007,10 @@ __metadata:
"@babel/core": ^7.13.15
"@babel/register": ^7.13.14
"@babel/runtime": ^7.13.10
"@polkadot/api": 4.4.2-7
"@polkadot/metadata": 4.4.2-7
"@polkadot/rpc-provider": 4.4.2-7
"@polkadot/types": 4.4.2-7
"@polkadot/api": 4.5.0
"@polkadot/metadata": 4.5.0
"@polkadot/rpc-provider": 4.5.0
"@polkadot/types": 4.5.0
"@polkadot/util": ^6.1.1
"@types/websocket": ^1.0.2
"@types/yargs": ^16.0.1
@@ -2026,26 +2026,26 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-known@4.4.2-7, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@4.5.0, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/networks": ^6.1.1
"@polkadot/types": 4.4.2-7
"@polkadot/types": 4.5.0
"@polkadot/util": ^6.1.1
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/types@4.4.2-7, @polkadot/types@workspace:packages/types":
"@polkadot/types@4.5.0, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.13.10
"@polkadot/keyring": ^6.1.1
"@polkadot/metadata": 4.4.2-7
"@polkadot/metadata": 4.5.0
"@polkadot/util": ^6.1.1
"@polkadot/util-crypto": ^6.1.1
"@polkadot/x-rxjs": ^6.1.1