Metadata v7 (#1182)

* Make a start... static is in, code copied as a start.

* Get exports (more-or-less) right

* Well, the v7/* tests pass... now just to tweak storage generation

* Linting is happy, it doesn't mean it will work...

* It compiles... ship it.
This commit is contained in:
Jaco Greeff
2019-07-24 21:34:51 +02:00
committed by GitHub
parent 2a3cc92e91
commit 79e5f7c9cc
32 changed files with 4568 additions and 73 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import interfaces from '@polkadot/jsonrpc';
import testKeyring from '@polkadot/keyring/testing';
import storage from '@polkadot/api-metadata/storage/static';
import { Codec } from '@polkadot/types/types';
import rpcMetadataV6 from '@polkadot/types/Metadata/v6/static';
import rpcMetadataV7 from '@polkadot/types/Metadata/v7/static';
import { Header, RuntimeVersion } from '@polkadot/types';
import { bnToU8a, logger, u8aToHex } from '@polkadot/util';
import { randomAsU8a } from '@polkadot/util-crypto';
@@ -55,7 +55,7 @@ export default class Mock implements ProviderInterface {
);
},
system_chain: (): string => 'mockChain',
state_getMetadata: (): string => rpcMetadataV6,
state_getMetadata: (): string => rpcMetadataV7,
system_name: (): string => 'mockClient',
system_version: (): string => '9.8.7'
};