Add rpc_methods (#1397)

* Add rpc_methods

* Adjust interface tests

* Add account_nextIndex & contracts_call, filter

* Rework AbstractArray includes with some

* Adjust tests

* Ordering

* Correct definitions (pull in from methods)

* Be agressive on filtering, regardless of isOptional

* async/await in filterRpcMethods

* map Text[] -> string[]

* Correct naming for account_nextIndex

* Remove/don't remove rpc_methods as applicable

* Cleanup method handling errors
This commit is contained in:
Jaco Greeff
2019-09-16 11:40:54 +02:00
committed by GitHub
parent 5576dacd9a
commit bed3f9f4c5
18 changed files with 262 additions and 12 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ describe('Api', (): void => {
Object.keys(rpc).filter((key): boolean => !key.startsWith('_'))
).toEqual([
'provider',
'author', 'chain', 'state', 'system'
'account', 'author', 'chain', 'contracts', 'rpc', 'state', 'system'
]);
});
});