subscribeNewHeads (#1338)

* subscribeNewHeads

* Update CHANGELOG

* Rebuild interfaces

* Sort interfaces, really expose plural

* Fix mocks
This commit is contained in:
Jaco Greeff
2019-08-24 12:10:42 +02:00
committed by GitHub
parent 1ef567558e
commit 895ed80449
23 changed files with 49 additions and 44 deletions
+4 -2
View File
@@ -465,8 +465,10 @@ function generateRpcTypes (): void {
const imports = createImports({ types: allImportedTypes });
const body = Object.keys(interfaces).reduce<string[]>((allSections, section): string[] => {
const allMethods = Object.values(interfaces[section].methods).map((method): string => {
const body = Object.keys(interfaces).sort().reduce<string[]>((allSections, section): string[] => {
const allMethods = Object.keys(interfaces[section].methods).sort().map((key): string => {
const method = interfaces[section].methods[key];
// FIXME These 2 are too hard to type, I give up
if (method.method === 'getStorage') {
setImports(imports, ['Codec']);