Skip to content

Commit 0ad146c

Browse files
authored
Adjust ProxyType for Westend (#2339)
1 parent 4e7f3f5 commit 0ad146c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
## 1.18.0-beta.x
44

55
- Expand docs on node-template types (Thanks to https://github.com/g2udevelopment)
6-
- Update contract fees to current impl. (thanks to https://github.com/djuanit0x)
6+
- Update contract fees to current impl. (Thanks to https://github.com/djuanit0x)
7+
- Allow `Option` types in enum/Result type generation (Thanks to http://github.com/xlc)
8+
- Add `.entriesPaged` and `.keysPaged` methods for state maps (https://github.com/monitz87)
79
- Add types for new Substrate proxy module
810
- Adjust types for new Substrate (renamed) npos-elections module
911
- `Call` now exposes `method` & `section` fields (aligned with `toHuman()` representation)
12+
- Cater for new Substrate string subscription ids (with backwards compatibility)
1013

1114
## 1.17.2 Jun 2, 2020
1215

packages/types-known/src/spec/westend.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@ const versioned: OverrideVersionedType[] = [
1616
}
1717
},
1818
{
19-
minmax: [3, undefined],
19+
minmax: [3, 19],
2020
types: {
2121
Address: 'AccountId',
2222
Keys: 'SessionKeys5',
2323
LookupSource: 'AccountId'
2424
}
25+
},
26+
{
27+
minmax: [20, undefined],
28+
types: {
29+
Address: 'AccountId',
30+
Keys: 'SessionKeys5',
31+
LookupSource: 'AccountId',
32+
ProxyType: {
33+
_enum: ['Any', 'NonTransfer', 'Staking']
34+
}
35+
}
2536
}
2637
];
2738

0 commit comments

Comments
 (0)