@polkadot/types
Version:
Implementation of the Parity codec
89 lines (88 loc) • 2.53 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const rpc_js_1 = require("./rpc.js");
exports.default = {
rpc: rpc_js_1.rpc,
types: {
ApiId: '[u8; 8]',
BlockTrace: {
blockHash: 'Text',
parentHash: 'Text',
tracingTargets: 'Text',
storageKeys: 'Text',
spans: 'Vec<BlockTraceSpan>',
events: 'Vec<BlockTraceEvent>'
},
BlockTraceEvent: {
target: 'Text',
data: 'BlockTraceEventData',
parentId: 'Option<u64>'
},
BlockTraceEventData: {
stringValues: 'HashMap<Text, Text>'
},
BlockTraceSpan: {
id: 'u64',
parentId: 'Option<u64>',
name: 'Text',
target: 'Text',
wasm: 'bool'
},
KeyValueOption: '(StorageKey, Option<StorageData>)',
MigrationStatusResult: {
topRemainingToMigrate: 'u64',
childRemainingToMigrate: 'u64'
},
ReadProof: {
at: 'Hash',
proof: 'Vec<Bytes>'
},
RuntimeVersionApi: '(ApiId, u32)',
RuntimeVersion: {
specName: 'Text',
implName: 'Text',
authoringVersion: 'u32',
specVersion: 'u32',
implVersion: 'u32',
apis: 'Vec<RuntimeVersionApi>',
transactionVersion: 'u32',
stateVersion: 'u8'
},
RuntimeVersionPre4: {
specName: 'Text',
implName: 'Text',
authoringVersion: 'u32',
specVersion: 'u32',
implVersion: 'u32',
apis: 'Vec<RuntimeVersionApi>',
transactionVersion: 'u32'
},
RuntimeVersionPre3: {
specName: 'Text',
implName: 'Text',
authoringVersion: 'u32',
specVersion: 'u32',
implVersion: 'u32',
apis: 'Vec<RuntimeVersionApi>'
},
RuntimeVersionPartial: {
specName: 'Text',
specVersion: 'u32',
apis: 'Vec<RuntimeVersionApi>'
},
SpecVersion: 'u32',
StorageChangeSet: {
block: 'Hash',
changes: 'Vec<KeyValueOption>'
},
TraceBlockResponse: {
_enum: {
TraceError: 'TraceError',
BlockTrace: 'BlockTrace'
}
},
TraceError: {
error: 'Text'
}
}
};