Skip to content

Commit a5c69a4

Browse files
authored
6.7.1 (#4184)
* 6.7.1 * packgeInfo * voteLockingPeriod
1 parent 3facbf0 commit a5c69a4

File tree

22 files changed

+83
-74
lines changed

22 files changed

+83
-74
lines changed

CHANGELOG.md

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

3-
## master
3+
## 6.7.1 Nov 7, 2021
44

55
Upgrade priority: Low. Internal maintenance updates, focussed on internal optimizations.
66

@@ -11,11 +11,12 @@ Changelog:
1111

1212
Changes:
1313

14-
- Dynamically inject getters for Extrinsic payloads
15-
- Optimize caching for previously constructed type classes per registry
14+
- Use new-gen `voteLockingPeriod` in democracy derives (as available)
15+
- Dynamically inject getters for `Extrinsic` payloads
16+
- Optimize caching for complex constructed type classes per registry
1617
- Convert metadata, rpc and api to use lazy decoration
17-
- Split u8a decoding paths for Vec (different from general path)
18-
- Keep track of initial u8a decoded length inside Codec
18+
- Split u8a decoding paths for `Vec` (different from general path)
19+
- Keep track of initial u8a decoded length inside base Codecs
1920
- Extract multi property assignments for `Struct`, `Set`, `Json` & `Enum`
2021
- Move `PortableRegistry` location inside `@polkadot/types/metadata`
2122
- Bump static metadata for latest Substrate, Polkadot & Kusama

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"sideEffects": false,
1313
"type": "commonjs",
14-
"version": "6.6.2-27",
14+
"version": "6.7.0",
1515
"workspaces": [
1616
"packages/*"
1717
],

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"./detectPackage.cjs"
2121
],
2222
"type": "module",
23-
"version": "6.6.2-27",
23+
"version": "6.7.0",
2424
"main": "index.js",
2525
"dependencies": {
2626
"@babel/runtime": "^7.16.0",
27-
"@polkadot/api": "6.6.2-27",
28-
"@polkadot/types": "6.6.2-27",
27+
"@polkadot/api": "6.7.0",
28+
"@polkadot/types": "6.7.0",
2929
"@polkadot/util": "^7.8.2",
3030
"rxjs": "^7.4.0"
3131
}

packages/api-contract/src/packageInfo.ts

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

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api-contract', version: '6.6.2-27' };
6+
export const packageInfo = { name: '@polkadot/api-contract', version: '6.7.0' };

packages/api-derive/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020
"./detectPackage.cjs"
2121
],
2222
"type": "module",
23-
"version": "6.6.2-27",
23+
"version": "6.7.0",
2424
"main": "index.js",
2525
"dependencies": {
2626
"@babel/runtime": "^7.16.0",
27-
"@polkadot/api": "6.6.2-27",
28-
"@polkadot/rpc-core": "6.6.2-27",
29-
"@polkadot/types": "6.6.2-27",
27+
"@polkadot/api": "6.7.0",
28+
"@polkadot/rpc-core": "6.7.0",
29+
"@polkadot/types": "6.7.0",
3030
"@polkadot/util": "^7.8.2",
3131
"@polkadot/util-crypto": "^7.8.2",
3232
"rxjs": "^7.4.0"
3333
},
3434
"devDependencies": {
3535
"@polkadot/keyring": "^7.8.2",
36-
"@polkadot/rpc-provider": "6.6.2-27"
36+
"@polkadot/rpc-provider": "6.7.0"
3737
}
3838
}

packages/api-derive/src/democracy/locks.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ function parseEnd (api: ApiInterfaceRx, vote: Vote, { approved, end }: Referendu
2525
return [
2626
end,
2727
(approved.isTrue && vote.isAye) || (approved.isFalse && vote.isNay)
28-
? end.add(api.consts.democracy.enactmentPeriod.muln(LOCKUPS[vote.conviction.index]))
28+
? end.add(
29+
(
30+
api.consts.democracy.voteLockingPeriod ||
31+
api.consts.democracy.enactmentPeriod
32+
).muln(LOCKUPS[vote.conviction.index]))
2933
: BN_ZERO
3034
];
3135
}
@@ -50,7 +54,11 @@ function delegateLocks (api: ApiInterfaceRx, { balance, conviction, target }: Vo
5054
referendumId,
5155
unlockAt: unlockAt.isZero()
5256
? unlockAt
53-
: referendumEnd.add(api.consts.democracy.enactmentPeriod.muln(LOCKUPS[conviction.index])),
57+
: referendumEnd.add(
58+
(
59+
api.consts.democracy.voteLockingPeriod ||
60+
api.consts.democracy.enactmentPeriod
61+
).muln(LOCKUPS[conviction.index])),
5462
vote: api.registry.createType('Vote', { aye: vote.isAye, conviction })
5563
}))
5664
)

packages/api-derive/src/packageInfo.ts

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

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api-derive', version: '6.6.2-27' };
6+
export const packageInfo = { name: '@polkadot/api-derive', version: '6.7.0' };

packages/api/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
"./detectPackage.cjs"
2121
],
2222
"type": "module",
23-
"version": "6.6.2-27",
23+
"version": "6.7.0",
2424
"main": "index.js",
2525
"dependencies": {
2626
"@babel/runtime": "^7.16.0",
27-
"@polkadot/api-derive": "6.6.2-27",
27+
"@polkadot/api-derive": "6.7.0",
2828
"@polkadot/keyring": "^7.8.2",
29-
"@polkadot/rpc-core": "6.6.2-27",
30-
"@polkadot/rpc-provider": "6.6.2-27",
31-
"@polkadot/types": "6.6.2-27",
32-
"@polkadot/types-known": "6.6.2-27",
29+
"@polkadot/rpc-core": "6.7.0",
30+
"@polkadot/rpc-provider": "6.7.0",
31+
"@polkadot/types": "6.7.0",
32+
"@polkadot/types-known": "6.7.0",
3333
"@polkadot/util": "^7.8.2",
3434
"@polkadot/util-crypto": "^7.8.2",
3535
"eventemitter3": "^4.0.7",

packages/api/src/packageInfo.ts

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

44
// Auto-generated by @polkadot/dev, do not edit
55

6-
export const packageInfo = { name: '@polkadot/api', version: '6.6.2-27' };
6+
export const packageInfo = { name: '@polkadot/api', version: '6.7.0' };

packages/rpc-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"./detectPackage.cjs"
2121
],
2222
"type": "module",
23-
"version": "6.6.2-27",
23+
"version": "6.7.0",
2424
"main": "index.js",
2525
"dependencies": {
2626
"@babel/runtime": "^7.16.0",
27-
"@polkadot/rpc-provider": "6.6.2-27",
28-
"@polkadot/types": "6.6.2-27",
27+
"@polkadot/rpc-provider": "6.7.0",
28+
"@polkadot/types": "6.7.0",
2929
"@polkadot/util": "^7.8.2",
3030
"rxjs": "^7.4.0"
3131
},

0 commit comments

Comments
 (0)