+6
-5
@@ -1,6 +1,6 @@
|
||||
# CHANGELOG
|
||||
|
||||
## master
|
||||
## 6.7.1 Nov 7, 2021
|
||||
|
||||
Upgrade priority: Low. Internal maintenance updates, focussed on internal optimizations.
|
||||
|
||||
@@ -11,11 +11,12 @@ Changelog:
|
||||
|
||||
Changes:
|
||||
|
||||
- Dynamically inject getters for Extrinsic payloads
|
||||
- Optimize caching for previously constructed type classes per registry
|
||||
- Use new-gen `voteLockingPeriod` in democracy derives (as available)
|
||||
- Dynamically inject getters for `Extrinsic` payloads
|
||||
- Optimize caching for complex constructed type classes per registry
|
||||
- Convert metadata, rpc and api to use lazy decoration
|
||||
- Split u8a decoding paths for Vec (different from general path)
|
||||
- Keep track of initial u8a decoded length inside Codec
|
||||
- Split u8a decoding paths for `Vec` (different from general path)
|
||||
- Keep track of initial u8a decoded length inside base Codecs
|
||||
- Extract multi property assignments for `Struct`, `Set`, `Json` & `Enum`
|
||||
- Move `PortableRegistry` location inside `@polkadot/types/metadata`
|
||||
- Bump static metadata for latest Substrate, Polkadot & Kusama
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "commonjs",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/api": "6.6.2-27",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/api": "6.7.0",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"rxjs": "^7.4.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', version: '6.7.0' };
|
||||
|
||||
@@ -20,19 +20,19 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/api": "6.6.2-27",
|
||||
"@polkadot/rpc-core": "6.6.2-27",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/api": "6.7.0",
|
||||
"@polkadot/rpc-core": "6.7.0",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/rpc-provider": "6.6.2-27"
|
||||
"@polkadot/rpc-provider": "6.7.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,11 @@ function parseEnd (api: ApiInterfaceRx, vote: Vote, { approved, end }: Referendu
|
||||
return [
|
||||
end,
|
||||
(approved.isTrue && vote.isAye) || (approved.isFalse && vote.isNay)
|
||||
? end.add(api.consts.democracy.enactmentPeriod.muln(LOCKUPS[vote.conviction.index]))
|
||||
? end.add(
|
||||
(
|
||||
api.consts.democracy.voteLockingPeriod ||
|
||||
api.consts.democracy.enactmentPeriod
|
||||
).muln(LOCKUPS[vote.conviction.index]))
|
||||
: BN_ZERO
|
||||
];
|
||||
}
|
||||
@@ -50,7 +54,11 @@ function delegateLocks (api: ApiInterfaceRx, { balance, conviction, target }: Vo
|
||||
referendumId,
|
||||
unlockAt: unlockAt.isZero()
|
||||
? unlockAt
|
||||
: referendumEnd.add(api.consts.democracy.enactmentPeriod.muln(LOCKUPS[conviction.index])),
|
||||
: referendumEnd.add(
|
||||
(
|
||||
api.consts.democracy.voteLockingPeriod ||
|
||||
api.consts.democracy.enactmentPeriod
|
||||
).muln(LOCKUPS[conviction.index])),
|
||||
vote: api.registry.createType('Vote', { aye: vote.isAye, conviction })
|
||||
}))
|
||||
)
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', version: '6.7.0' };
|
||||
|
||||
@@ -20,16 +20,16 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/api-derive": "6.6.2-27",
|
||||
"@polkadot/api-derive": "6.7.0",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/rpc-core": "6.6.2-27",
|
||||
"@polkadot/rpc-provider": "6.6.2-27",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/types-known": "6.6.2-27",
|
||||
"@polkadot/rpc-core": "6.7.0",
|
||||
"@polkadot/rpc-provider": "6.7.0",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"@polkadot/types-known": "6.7.0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"eventemitter3": "^4.0.7",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/api', version: '6.7.0' };
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/rpc-provider": "6.6.2-27",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/rpc-provider": "6.7.0",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '6.7.0' };
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"@polkadot/x-fetch": "^7.8.2",
|
||||
@@ -34,7 +34,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"mock-socket": "^9.0.7",
|
||||
"nock": "^13.1.4"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '6.7.0' };
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -33,10 +33,10 @@
|
||||
"@babel/core": "^7.16.0",
|
||||
"@babel/register": "^7.16.0",
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/api": "6.6.2-27",
|
||||
"@polkadot/rpc-provider": "6.6.2-27",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/types-support": "6.6.2-27",
|
||||
"@polkadot/api": "6.7.0",
|
||||
"@polkadot/rpc-provider": "6.7.0",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"@polkadot/types-support": "6.7.0",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', version: '6.7.0' };
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/networks": "^7.8.2",
|
||||
"@polkadot/types": "6.6.2-27",
|
||||
"@polkadot/types": "6.7.0",
|
||||
"@polkadot/util": "^7.8.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', version: '6.7.0' };
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', version: '6.7.0' };
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "6.6.2-27",
|
||||
"version": "6.7.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/types-support": "6.6.2-27",
|
||||
"@polkadot/types-support": "6.7.0",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.12.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', version: '6.6.2-27' };
|
||||
export const packageInfo = { name: '@polkadot/types', version: '6.7.0' };
|
||||
|
||||
@@ -1845,40 +1845,40 @@ __metadata:
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/api": 6.6.2-27
|
||||
"@polkadot/types": 6.6.2-27
|
||||
"@polkadot/api": 6.7.0
|
||||
"@polkadot/types": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@6.6.2-27, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@6.7.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.16.0
|
||||
"@polkadot/api": 6.6.2-27
|
||||
"@polkadot/api": 6.7.0
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/rpc-core": 6.6.2-27
|
||||
"@polkadot/rpc-provider": 6.6.2-27
|
||||
"@polkadot/types": 6.6.2-27
|
||||
"@polkadot/rpc-core": 6.7.0
|
||||
"@polkadot/rpc-provider": 6.7.0
|
||||
"@polkadot/types": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@6.6.2-27, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@6.7.0, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/api-derive": 6.6.2-27
|
||||
"@polkadot/api-derive": 6.7.0
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/rpc-core": 6.6.2-27
|
||||
"@polkadot/rpc-provider": 6.6.2-27
|
||||
"@polkadot/types": 6.6.2-27
|
||||
"@polkadot/types-known": 6.6.2-27
|
||||
"@polkadot/rpc-core": 6.7.0
|
||||
"@polkadot/rpc-provider": 6.7.0
|
||||
"@polkadot/types": 6.7.0
|
||||
"@polkadot/types-known": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
eventemitter3: ^4.0.7
|
||||
@@ -2000,26 +2000,26 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-core@6.6.2-27, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@6.7.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.16.0
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/rpc-provider": 6.6.2-27
|
||||
"@polkadot/types": 6.6.2-27
|
||||
"@polkadot/rpc-provider": 6.7.0
|
||||
"@polkadot/types": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@6.6.2-27, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@6.7.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.16.0
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/types": 6.6.2-27
|
||||
"@polkadot/types": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
"@polkadot/x-fetch": ^7.8.2
|
||||
@@ -2047,10 +2047,10 @@ __metadata:
|
||||
"@babel/core": ^7.16.0
|
||||
"@babel/register": ^7.16.0
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/api": 6.6.2-27
|
||||
"@polkadot/rpc-provider": 6.6.2-27
|
||||
"@polkadot/types": 6.6.2-27
|
||||
"@polkadot/types-support": 6.6.2-27
|
||||
"@polkadot/api": 6.7.0
|
||||
"@polkadot/rpc-provider": 6.7.0
|
||||
"@polkadot/types": 6.7.0
|
||||
"@polkadot/types-support": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@types/websocket": ^1.0.4
|
||||
"@types/yargs": ^17.0.5
|
||||
@@ -2066,18 +2066,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@6.6.2-27, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@6.7.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.16.0
|
||||
"@polkadot/networks": ^7.8.2
|
||||
"@polkadot/types": 6.6.2-27
|
||||
"@polkadot/types": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-support@6.6.2-27, @polkadot/types-support@workspace:packages/types-support":
|
||||
"@polkadot/types-support@6.7.0, @polkadot/types-support@workspace:packages/types-support":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||
dependencies:
|
||||
@@ -2086,13 +2086,13 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@6.6.2-27, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@6.7.0, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/types-support": 6.6.2-27
|
||||
"@polkadot/types-support": 6.7.0
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
"@types/bn.js": ^4.11.6
|
||||
|
||||
Reference in New Issue
Block a user