new EventRecord with topics (#902)
* new EventRecord with topics * Add additional decoding checks (from #612) * Slightly rework storage parsing (future checks) * Split storage result formatting (set vs data) * Allow v3 event parsing * Max Vector length check * assert during Event parsing * Well, HACK-y fallback * Revert "Well, HACK-y fallback" This reverts commit edbf61b99da2753bec3a535126660e71bdcd9861. * Node overrides... * Add implVersion * Register types * Update with polkadot as well * inject compatibility types * EventRecord77 in testing * Conversion with DoubleMap * E2E tested against v3 & v4 * Filter with some * Split archive/remove alex tests * beforeAll -> beforeEach * Remove .only * EventRecordV0 -> 77
This commit is contained in:
@@ -12,7 +12,7 @@ import testKeyring from '@polkadot/keyring/testing';
|
||||
import storage from '@polkadot/storage/static';
|
||||
import { Codec } from '@polkadot/types/types';
|
||||
import metadata from '@polkadot/types/Metadata/v0/static';
|
||||
import { Header } from '@polkadot/types';
|
||||
import { Header, RuntimeVersion } from '@polkadot/types';
|
||||
import { bnToU8a, logger, u8aToHex } from '@polkadot/util';
|
||||
import { randomAsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
@@ -43,7 +43,7 @@ export default class Mock implements ProviderInterface {
|
||||
public isUpdating: boolean = true;
|
||||
private requests: { [index: string]: (...params: any[]) => string } = {
|
||||
'chain_getBlockHash': (blockNumber: number): string => '0x1234',
|
||||
'chain_getRuntimeVersion': (): string => '0x1234',
|
||||
'chain_getRuntimeVersion': (): string => new RuntimeVersion().toHex(),
|
||||
'state_getStorage': (storage: MockState$Db, params: Array<any>): string => {
|
||||
return u8aToHex(
|
||||
storage[(params[0] as string)]
|
||||
|
||||
Reference in New Issue
Block a user