1 | import type { StorageKey } from '@polkadot/types';
|
2 | import type { Bytes, Enum, HashMap, Option, Struct, Text, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types-codec';
|
3 | import type { ITuple } from '@polkadot/types-codec/types';
|
4 | import type { Hash, StorageData } from '@polkadot/types/interfaces/runtime';
|
5 |
|
6 | export interface ApiId extends U8aFixed {
|
7 | }
|
8 |
|
9 | export interface BlockTrace extends Struct {
|
10 | readonly blockHash: Text;
|
11 | readonly parentHash: Text;
|
12 | readonly tracingTargets: Text;
|
13 | readonly storageKeys: Text;
|
14 | readonly spans: Vec<BlockTraceSpan>;
|
15 | readonly events: Vec<BlockTraceEvent>;
|
16 | }
|
17 |
|
18 | export interface BlockTraceEvent extends Struct {
|
19 | readonly target: Text;
|
20 | readonly data: BlockTraceEventData;
|
21 | readonly parentId: Option<u64>;
|
22 | }
|
23 |
|
24 | export interface BlockTraceEventData extends Struct {
|
25 | readonly stringValues: HashMap<Text, Text>;
|
26 | }
|
27 |
|
28 | export interface BlockTraceSpan extends Struct {
|
29 | readonly id: u64;
|
30 | readonly parentId: Option<u64>;
|
31 | readonly name: Text;
|
32 | readonly target: Text;
|
33 | readonly wasm: bool;
|
34 | }
|
35 |
|
36 | export interface KeyValueOption extends ITuple<[StorageKey, Option<StorageData>]> {
|
37 | }
|
38 |
|
39 | export interface MigrationStatusResult extends Struct {
|
40 | readonly topRemainingToMigrate: u64;
|
41 | readonly childRemainingToMigrate: u64;
|
42 | }
|
43 |
|
44 | export interface ReadProof extends Struct {
|
45 | readonly at: Hash;
|
46 | readonly proof: Vec<Bytes>;
|
47 | }
|
48 |
|
49 | export interface RuntimeVersion extends Struct {
|
50 | readonly specName: Text;
|
51 | readonly implName: Text;
|
52 | readonly authoringVersion: u32;
|
53 | readonly specVersion: u32;
|
54 | readonly implVersion: u32;
|
55 | readonly apis: Vec<RuntimeVersionApi>;
|
56 | readonly transactionVersion: u32;
|
57 | }
|
58 |
|
59 | export interface RuntimeVersionApi extends ITuple<[ApiId, u32]> {
|
60 | }
|
61 |
|
62 | export interface RuntimeVersionPartial extends Struct {
|
63 | readonly specName: Text;
|
64 | readonly specVersion: u32;
|
65 | }
|
66 |
|
67 | export interface SpecVersion extends u32 {
|
68 | }
|
69 |
|
70 | export interface StorageChangeSet extends Struct {
|
71 | readonly block: Hash;
|
72 | readonly changes: Vec<KeyValueOption>;
|
73 | }
|
74 |
|
75 | export interface TraceBlockResponse extends Enum {
|
76 | readonly isTraceError: boolean;
|
77 | readonly asTraceError: TraceError;
|
78 | readonly isBlockTrace: boolean;
|
79 | readonly asBlockTrace: BlockTrace;
|
80 | readonly type: 'TraceError' | 'BlockTrace';
|
81 | }
|
82 |
|
83 | export interface TraceError extends Struct {
|
84 | readonly error: Text;
|
85 | }
|
86 | export declare type PHANTOM_STATE = 'state';
|