From 0ad146c6075d1be9aa79abdc1751edda8dc2d6e4 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 8 Jun 2020 15:30:51 +0200 Subject: [PATCH] Adjust ProxyType for Westend (#2339) --- CHANGELOG.md | 5 ++++- packages/types-known/src/spec/westend.ts | 13 ++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a81252971a..2bf6d3d8ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,13 @@ ## 1.18.0-beta.x - Expand docs on node-template types (Thanks to https://github.com/g2udevelopment) -- Update contract fees to current impl. (thanks to https://github.com/djuanit0x) +- Update contract fees to current impl. (Thanks to https://github.com/djuanit0x) +- Allow `Option` types in enum/Result type generation (Thanks to http://github.com/xlc) +- Add `.entriesPaged` and `.keysPaged` methods for state maps (https://github.com/monitz87) - Add types for new Substrate proxy module - Adjust types for new Substrate (renamed) npos-elections module - `Call` now exposes `method` & `section` fields (aligned with `toHuman()` representation) +- Cater for new Substrate string subscription ids (with backwards compatibility) ## 1.17.2 Jun 2, 2020 diff --git a/packages/types-known/src/spec/westend.ts b/packages/types-known/src/spec/westend.ts index 87fab7db3f..7ab35ffa20 100644 --- a/packages/types-known/src/spec/westend.ts +++ b/packages/types-known/src/spec/westend.ts @@ -16,12 +16,23 @@ const versioned: OverrideVersionedType[] = [ } }, { - minmax: [3, undefined], + minmax: [3, 19], types: { Address: 'AccountId', Keys: 'SessionKeys5', LookupSource: 'AccountId' } + }, + { + minmax: [20, undefined], + types: { + Address: 'AccountId', + Keys: 'SessionKeys5', + LookupSource: 'AccountId', + ProxyType: { + _enum: ['Any', 'NonTransfer', 'Staking'] + } + } } ];