@argonprotocol/mainchain 1.4.3-dev.5e4d8d6a → 1.4.3-dev.6de0a801
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/index.d.ts +409 -1556
- package/browser/index.js +45 -11
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +45 -11
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +409 -1556
- package/lib/index.d.ts +409 -1556
- package/lib/index.js +45 -11
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +23 -29
- package/src/interfaces/augment-api-errors.ts +5 -3
- package/src/interfaces/augment-api-events.ts +167 -1272
- package/src/interfaces/augment-api-query.ts +148 -787
- package/src/interfaces/augment-api-rpc.ts +85 -597
- package/src/interfaces/augment-api-runtime.ts +24 -177
- package/src/interfaces/augment-api-tx.ts +275 -1400
- package/src/interfaces/augment-types.ts +46 -1352
- package/src/interfaces/ethereum/types.ts +1 -7
- package/src/interfaces/lookup.ts +371 -682
- package/src/interfaces/registry.ts +1 -275
- package/src/interfaces/types-lookup.ts +56 -698
|
@@ -7,21 +7,7 @@ import type {} from '@polkadot/rpc-core/types/jsonrpc';
|
|
|
7
7
|
|
|
8
8
|
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
9
9
|
import type { Metadata, StorageKey } from '@polkadot/types';
|
|
10
|
-
import type {
|
|
11
|
-
Bytes,
|
|
12
|
-
HashMap,
|
|
13
|
-
Json,
|
|
14
|
-
Null,
|
|
15
|
-
Option,
|
|
16
|
-
Text,
|
|
17
|
-
U256,
|
|
18
|
-
U64,
|
|
19
|
-
Vec,
|
|
20
|
-
bool,
|
|
21
|
-
f64,
|
|
22
|
-
u32,
|
|
23
|
-
u64,
|
|
24
|
-
} from '@polkadot/types-codec';
|
|
10
|
+
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
|
|
25
11
|
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
|
26
12
|
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
|
27
13
|
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
|
@@ -29,72 +15,19 @@ import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/bee
|
|
|
29
15
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
30
16
|
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
|
31
17
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
32
|
-
import type {
|
|
33
|
-
CodeUploadRequest,
|
|
34
|
-
CodeUploadResult,
|
|
35
|
-
ContractCallRequest,
|
|
36
|
-
ContractExecResult,
|
|
37
|
-
ContractInstantiateResult,
|
|
38
|
-
InstantiateRequestV1,
|
|
39
|
-
} from '@polkadot/types/interfaces/contracts';
|
|
18
|
+
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequestV1 } from '@polkadot/types/interfaces/contracts';
|
|
40
19
|
import type { BlockStats } from '@polkadot/types/interfaces/dev';
|
|
41
20
|
import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
|
42
|
-
import type {
|
|
43
|
-
EthAccount,
|
|
44
|
-
EthCallRequest,
|
|
45
|
-
EthFeeHistory,
|
|
46
|
-
EthFilter,
|
|
47
|
-
EthFilterChanges,
|
|
48
|
-
EthLog,
|
|
49
|
-
EthReceipt,
|
|
50
|
-
EthRichBlock,
|
|
51
|
-
EthSubKind,
|
|
52
|
-
EthSubParams,
|
|
53
|
-
EthSyncStatus,
|
|
54
|
-
EthTransaction,
|
|
55
|
-
EthTransactionRequest,
|
|
56
|
-
EthWork,
|
|
57
|
-
} from '@polkadot/types/interfaces/eth';
|
|
21
|
+
import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
|
58
22
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
59
|
-
import type {
|
|
60
|
-
EncodedFinalityProofs,
|
|
61
|
-
JustificationNotification,
|
|
62
|
-
ReportedRoundStates,
|
|
63
|
-
} from '@polkadot/types/interfaces/grandpa';
|
|
23
|
+
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
|
|
64
24
|
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
65
25
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
|
66
26
|
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
|
67
27
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
|
68
|
-
import type {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
H160,
|
|
72
|
-
H256,
|
|
73
|
-
H64,
|
|
74
|
-
Hash,
|
|
75
|
-
Header,
|
|
76
|
-
Index,
|
|
77
|
-
Justification,
|
|
78
|
-
KeyValue,
|
|
79
|
-
SignedBlock,
|
|
80
|
-
StorageData,
|
|
81
|
-
} from '@polkadot/types/interfaces/runtime';
|
|
82
|
-
import type {
|
|
83
|
-
MigrationStatusResult,
|
|
84
|
-
ReadProof,
|
|
85
|
-
RuntimeVersion,
|
|
86
|
-
TraceBlockResponse,
|
|
87
|
-
} from '@polkadot/types/interfaces/state';
|
|
88
|
-
import type {
|
|
89
|
-
ApplyExtrinsicResult,
|
|
90
|
-
ChainProperties,
|
|
91
|
-
ChainType,
|
|
92
|
-
Health,
|
|
93
|
-
NetworkState,
|
|
94
|
-
NodeRole,
|
|
95
|
-
PeerInfo,
|
|
96
|
-
SyncState,
|
|
97
|
-
} from '@polkadot/types/interfaces/system';
|
|
28
|
+
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
|
|
29
|
+
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
|
|
30
|
+
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
|
|
98
31
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
99
32
|
|
|
100
33
|
export type __AugmentedRpc = AugmentedRpc<() => unknown>;
|
|
@@ -105,9 +38,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
105
38
|
/**
|
|
106
39
|
* Returns true if the keystore has private keys for the given public key and key type.
|
|
107
40
|
**/
|
|
108
|
-
hasKey: AugmentedRpc<
|
|
109
|
-
(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>
|
|
110
|
-
>;
|
|
41
|
+
hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
|
|
111
42
|
/**
|
|
112
43
|
* Returns true if the keystore has private keys for the given session public keys.
|
|
113
44
|
**/
|
|
@@ -115,13 +46,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
115
46
|
/**
|
|
116
47
|
* Insert a key into the keystore.
|
|
117
48
|
**/
|
|
118
|
-
insertKey: AugmentedRpc<
|
|
119
|
-
(
|
|
120
|
-
keyType: Text | string,
|
|
121
|
-
suri: Text | string,
|
|
122
|
-
publicKey: Bytes | string | Uint8Array,
|
|
123
|
-
) => Observable<Bytes>
|
|
124
|
-
>;
|
|
49
|
+
insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
|
|
125
50
|
/**
|
|
126
51
|
* Returns all pending extrinsics, potentially grouped by sender
|
|
127
52
|
**/
|
|
@@ -129,13 +54,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
129
54
|
/**
|
|
130
55
|
* Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
|
|
131
56
|
**/
|
|
132
|
-
removeExtrinsic: AugmentedRpc<
|
|
133
|
-
(
|
|
134
|
-
bytesOrHash:
|
|
135
|
-
| Vec<ExtrinsicOrHash>
|
|
136
|
-
| (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[],
|
|
137
|
-
) => Observable<Vec<Hash>>
|
|
138
|
-
>;
|
|
57
|
+
removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
|
|
139
58
|
/**
|
|
140
59
|
* Generate new session keys and returns the corresponding public keys
|
|
141
60
|
**/
|
|
@@ -143,15 +62,11 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
143
62
|
/**
|
|
144
63
|
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
145
64
|
**/
|
|
146
|
-
submitAndWatchExtrinsic: AugmentedRpc<
|
|
147
|
-
(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>
|
|
148
|
-
>;
|
|
65
|
+
submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;
|
|
149
66
|
/**
|
|
150
67
|
* Submit a fully formatted extrinsic for block inclusion
|
|
151
68
|
**/
|
|
152
|
-
submitExtrinsic: AugmentedRpc<
|
|
153
|
-
(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>
|
|
154
|
-
>;
|
|
69
|
+
submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;
|
|
155
70
|
};
|
|
156
71
|
babe: {
|
|
157
72
|
/**
|
|
@@ -177,9 +92,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
177
92
|
/**
|
|
178
93
|
* Get the block hash for a specific block
|
|
179
94
|
**/
|
|
180
|
-
getBlockHash: AugmentedRpc<
|
|
181
|
-
(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>
|
|
182
|
-
>;
|
|
95
|
+
getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;
|
|
183
96
|
/**
|
|
184
97
|
* Get hash of the last finalized block in the canon chain
|
|
185
98
|
**/
|
|
@@ -205,163 +118,70 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
205
118
|
/**
|
|
206
119
|
* Returns the keys with prefix from a child storage, leave empty to get all the keys
|
|
207
120
|
**/
|
|
208
|
-
getKeys: AugmentedRpc<
|
|
209
|
-
(
|
|
210
|
-
childKey: PrefixedStorageKey | string | Uint8Array,
|
|
211
|
-
prefix: StorageKey | string | Uint8Array | any,
|
|
212
|
-
at?: Hash | string | Uint8Array,
|
|
213
|
-
) => Observable<Vec<StorageKey>>
|
|
214
|
-
>;
|
|
121
|
+
getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
|
215
122
|
/**
|
|
216
123
|
* Returns the keys with prefix from a child storage with pagination support
|
|
217
124
|
**/
|
|
218
|
-
getKeysPaged: AugmentedRpc<
|
|
219
|
-
(
|
|
220
|
-
childKey: PrefixedStorageKey | string | Uint8Array,
|
|
221
|
-
prefix: StorageKey | string | Uint8Array | any,
|
|
222
|
-
count: u32 | AnyNumber | Uint8Array,
|
|
223
|
-
startKey?: StorageKey | string | Uint8Array | any,
|
|
224
|
-
at?: Hash | string | Uint8Array,
|
|
225
|
-
) => Observable<Vec<StorageKey>>
|
|
226
|
-
>;
|
|
125
|
+
getKeysPaged: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
|
227
126
|
/**
|
|
228
127
|
* Returns a child storage entry at a specific block state
|
|
229
128
|
**/
|
|
230
|
-
getStorage: AugmentedRpc<
|
|
231
|
-
(
|
|
232
|
-
childKey: PrefixedStorageKey | string | Uint8Array,
|
|
233
|
-
key: StorageKey | string | Uint8Array | any,
|
|
234
|
-
at?: Hash | string | Uint8Array,
|
|
235
|
-
) => Observable<Option<StorageData>>
|
|
236
|
-
>;
|
|
129
|
+
getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;
|
|
237
130
|
/**
|
|
238
131
|
* Returns child storage entries for multiple keys at a specific block state
|
|
239
132
|
**/
|
|
240
|
-
getStorageEntries: AugmentedRpc<
|
|
241
|
-
(
|
|
242
|
-
childKey: PrefixedStorageKey | string | Uint8Array,
|
|
243
|
-
keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[],
|
|
244
|
-
at?: Hash | string | Uint8Array,
|
|
245
|
-
) => Observable<Vec<Option<StorageData>>>
|
|
246
|
-
>;
|
|
133
|
+
getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;
|
|
247
134
|
/**
|
|
248
135
|
* Returns the hash of a child storage entry at a block state
|
|
249
136
|
**/
|
|
250
|
-
getStorageHash: AugmentedRpc<
|
|
251
|
-
(
|
|
252
|
-
childKey: PrefixedStorageKey | string | Uint8Array,
|
|
253
|
-
key: StorageKey | string | Uint8Array | any,
|
|
254
|
-
at?: Hash | string | Uint8Array,
|
|
255
|
-
) => Observable<Option<Hash>>
|
|
256
|
-
>;
|
|
137
|
+
getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;
|
|
257
138
|
/**
|
|
258
139
|
* Returns the size of a child storage entry at a block state
|
|
259
140
|
**/
|
|
260
|
-
getStorageSize: AugmentedRpc<
|
|
261
|
-
(
|
|
262
|
-
childKey: PrefixedStorageKey | string | Uint8Array,
|
|
263
|
-
key: StorageKey | string | Uint8Array | any,
|
|
264
|
-
at?: Hash | string | Uint8Array,
|
|
265
|
-
) => Observable<Option<u64>>
|
|
266
|
-
>;
|
|
141
|
+
getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
|
|
267
142
|
};
|
|
268
143
|
contracts: {
|
|
269
144
|
/**
|
|
270
145
|
* @deprecated Use the runtime interface `api.call.contractsApi.call` instead
|
|
271
146
|
* Executes a call to a contract
|
|
272
147
|
**/
|
|
273
|
-
call: AugmentedRpc<
|
|
274
|
-
(
|
|
275
|
-
callRequest:
|
|
276
|
-
| ContractCallRequest
|
|
277
|
-
| {
|
|
278
|
-
origin?: any;
|
|
279
|
-
dest?: any;
|
|
280
|
-
value?: any;
|
|
281
|
-
gasLimit?: any;
|
|
282
|
-
storageDepositLimit?: any;
|
|
283
|
-
inputData?: any;
|
|
284
|
-
}
|
|
285
|
-
| string
|
|
286
|
-
| Uint8Array,
|
|
287
|
-
at?: BlockHash | string | Uint8Array,
|
|
288
|
-
) => Observable<ContractExecResult>
|
|
289
|
-
>;
|
|
148
|
+
call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
|
|
290
149
|
/**
|
|
291
150
|
* @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead
|
|
292
151
|
* Returns the value under a specified storage key in a contract
|
|
293
152
|
**/
|
|
294
|
-
getStorage: AugmentedRpc<
|
|
295
|
-
(
|
|
296
|
-
address: AccountId | string | Uint8Array,
|
|
297
|
-
key: H256 | string | Uint8Array,
|
|
298
|
-
at?: BlockHash | string | Uint8Array,
|
|
299
|
-
) => Observable<Option<Bytes>>
|
|
300
|
-
>;
|
|
153
|
+
getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
301
154
|
/**
|
|
302
155
|
* @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
|
|
303
156
|
* Instantiate a new contract
|
|
304
157
|
**/
|
|
305
|
-
instantiate: AugmentedRpc<
|
|
306
|
-
(
|
|
307
|
-
request:
|
|
308
|
-
| InstantiateRequestV1
|
|
309
|
-
| { origin?: any; value?: any; gasLimit?: any; code?: any; data?: any; salt?: any }
|
|
310
|
-
| string
|
|
311
|
-
| Uint8Array,
|
|
312
|
-
at?: BlockHash | string | Uint8Array,
|
|
313
|
-
) => Observable<ContractInstantiateResult>
|
|
314
|
-
>;
|
|
158
|
+
instantiate: AugmentedRpc<(request: InstantiateRequestV1 | { origin?: any; value?: any; gasLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
|
315
159
|
/**
|
|
316
160
|
* @deprecated Not available in newer versions of the contracts interfaces
|
|
317
161
|
* Returns the projected time a given contract will be able to sustain paying its rent
|
|
318
162
|
**/
|
|
319
|
-
rentProjection: AugmentedRpc<
|
|
320
|
-
(
|
|
321
|
-
address: AccountId | string | Uint8Array,
|
|
322
|
-
at?: BlockHash | string | Uint8Array,
|
|
323
|
-
) => Observable<Option<BlockNumber>>
|
|
324
|
-
>;
|
|
163
|
+
rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
|
|
325
164
|
/**
|
|
326
165
|
* @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead
|
|
327
166
|
* Upload new code without instantiating a contract from it
|
|
328
167
|
**/
|
|
329
|
-
uploadCode: AugmentedRpc<
|
|
330
|
-
(
|
|
331
|
-
uploadRequest:
|
|
332
|
-
| CodeUploadRequest
|
|
333
|
-
| { origin?: any; code?: any; storageDepositLimit?: any }
|
|
334
|
-
| string
|
|
335
|
-
| Uint8Array,
|
|
336
|
-
at?: BlockHash | string | Uint8Array,
|
|
337
|
-
) => Observable<CodeUploadResult>
|
|
338
|
-
>;
|
|
168
|
+
uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
|
|
339
169
|
};
|
|
340
170
|
dev: {
|
|
341
171
|
/**
|
|
342
172
|
* Reexecute the specified `block_hash` and gather statistics while doing so
|
|
343
173
|
**/
|
|
344
|
-
getBlockStats: AugmentedRpc<
|
|
345
|
-
(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>
|
|
346
|
-
>;
|
|
174
|
+
getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;
|
|
347
175
|
};
|
|
348
176
|
engine: {
|
|
349
177
|
/**
|
|
350
178
|
* Instructs the manual-seal authorship task to create a new block
|
|
351
179
|
**/
|
|
352
|
-
createBlock: AugmentedRpc<
|
|
353
|
-
(
|
|
354
|
-
createEmpty: bool | boolean | Uint8Array,
|
|
355
|
-
finalize: bool | boolean | Uint8Array,
|
|
356
|
-
parentHash?: BlockHash | string | Uint8Array,
|
|
357
|
-
) => Observable<CreatedBlock>
|
|
358
|
-
>;
|
|
180
|
+
createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;
|
|
359
181
|
/**
|
|
360
182
|
* Instructs the manual-seal authorship task to finalize a block
|
|
361
183
|
**/
|
|
362
|
-
finalizeBlock: AugmentedRpc<
|
|
363
|
-
(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>
|
|
364
|
-
>;
|
|
184
|
+
finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
|
|
365
185
|
};
|
|
366
186
|
eth: {
|
|
367
187
|
/**
|
|
@@ -375,24 +195,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
375
195
|
/**
|
|
376
196
|
* Call contract, returning the output data.
|
|
377
197
|
**/
|
|
378
|
-
call: AugmentedRpc<
|
|
379
|
-
(
|
|
380
|
-
request:
|
|
381
|
-
| EthCallRequest
|
|
382
|
-
| {
|
|
383
|
-
from?: any;
|
|
384
|
-
to?: any;
|
|
385
|
-
gasPrice?: any;
|
|
386
|
-
gas?: any;
|
|
387
|
-
value?: any;
|
|
388
|
-
data?: any;
|
|
389
|
-
nonce?: any;
|
|
390
|
-
}
|
|
391
|
-
| string
|
|
392
|
-
| Uint8Array,
|
|
393
|
-
number?: BlockNumber | AnyNumber | Uint8Array,
|
|
394
|
-
) => Observable<Bytes>
|
|
395
|
-
>;
|
|
198
|
+
call: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
|
|
396
199
|
/**
|
|
397
200
|
* Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
|
|
398
201
|
**/
|
|
@@ -404,34 +207,11 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
404
207
|
/**
|
|
405
208
|
* Estimate gas needed for execution of given contract.
|
|
406
209
|
**/
|
|
407
|
-
estimateGas: AugmentedRpc<
|
|
408
|
-
(
|
|
409
|
-
request:
|
|
410
|
-
| EthCallRequest
|
|
411
|
-
| {
|
|
412
|
-
from?: any;
|
|
413
|
-
to?: any;
|
|
414
|
-
gasPrice?: any;
|
|
415
|
-
gas?: any;
|
|
416
|
-
value?: any;
|
|
417
|
-
data?: any;
|
|
418
|
-
nonce?: any;
|
|
419
|
-
}
|
|
420
|
-
| string
|
|
421
|
-
| Uint8Array,
|
|
422
|
-
number?: BlockNumber | AnyNumber | Uint8Array,
|
|
423
|
-
) => Observable<U256>
|
|
424
|
-
>;
|
|
210
|
+
estimateGas: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
|
425
211
|
/**
|
|
426
212
|
* Returns fee history for given block count & reward percentiles
|
|
427
213
|
**/
|
|
428
|
-
feeHistory: AugmentedRpc<
|
|
429
|
-
(
|
|
430
|
-
blockCount: U256 | AnyNumber | Uint8Array,
|
|
431
|
-
newestBlock: BlockNumber | AnyNumber | Uint8Array,
|
|
432
|
-
rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | f64[],
|
|
433
|
-
) => Observable<EthFeeHistory>
|
|
434
|
-
>;
|
|
214
|
+
feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | (f64)[]) => Observable<EthFeeHistory>>;
|
|
435
215
|
/**
|
|
436
216
|
* Returns current gas price.
|
|
437
217
|
**/
|
|
@@ -439,164 +219,83 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
439
219
|
/**
|
|
440
220
|
* Returns balance of the given account.
|
|
441
221
|
**/
|
|
442
|
-
getBalance: AugmentedRpc<
|
|
443
|
-
(
|
|
444
|
-
address: H160 | string | Uint8Array,
|
|
445
|
-
number?: BlockNumber | AnyNumber | Uint8Array,
|
|
446
|
-
) => Observable<U256>
|
|
447
|
-
>;
|
|
222
|
+
getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
|
448
223
|
/**
|
|
449
224
|
* Returns block with given hash.
|
|
450
225
|
**/
|
|
451
|
-
getBlockByHash: AugmentedRpc<
|
|
452
|
-
(
|
|
453
|
-
hash: H256 | string | Uint8Array,
|
|
454
|
-
full: bool | boolean | Uint8Array,
|
|
455
|
-
) => Observable<Option<EthRichBlock>>
|
|
456
|
-
>;
|
|
226
|
+
getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
|
|
457
227
|
/**
|
|
458
228
|
* Returns block with given number.
|
|
459
229
|
**/
|
|
460
|
-
getBlockByNumber: AugmentedRpc<
|
|
461
|
-
(
|
|
462
|
-
block: BlockNumber | AnyNumber | Uint8Array,
|
|
463
|
-
full: bool | boolean | Uint8Array,
|
|
464
|
-
) => Observable<Option<EthRichBlock>>
|
|
465
|
-
>;
|
|
230
|
+
getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
|
|
466
231
|
/**
|
|
467
232
|
* Returns the number of transactions in a block with given hash.
|
|
468
233
|
**/
|
|
469
|
-
getBlockTransactionCountByHash: AugmentedRpc<
|
|
470
|
-
(hash: H256 | string | Uint8Array) => Observable<U256>
|
|
471
|
-
>;
|
|
234
|
+
getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
|
|
472
235
|
/**
|
|
473
236
|
* Returns the number of transactions in a block with given block number.
|
|
474
237
|
**/
|
|
475
|
-
getBlockTransactionCountByNumber: AugmentedRpc<
|
|
476
|
-
(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>
|
|
477
|
-
>;
|
|
238
|
+
getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
|
478
239
|
/**
|
|
479
240
|
* Returns the code at given address at given time (block number).
|
|
480
241
|
**/
|
|
481
|
-
getCode: AugmentedRpc<
|
|
482
|
-
(
|
|
483
|
-
address: H160 | string | Uint8Array,
|
|
484
|
-
number?: BlockNumber | AnyNumber | Uint8Array,
|
|
485
|
-
) => Observable<Bytes>
|
|
486
|
-
>;
|
|
242
|
+
getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
|
|
487
243
|
/**
|
|
488
244
|
* Returns filter changes since last poll.
|
|
489
245
|
**/
|
|
490
|
-
getFilterChanges: AugmentedRpc<
|
|
491
|
-
(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>
|
|
492
|
-
>;
|
|
246
|
+
getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;
|
|
493
247
|
/**
|
|
494
248
|
* Returns all logs matching given filter (in a range 'from' - 'to').
|
|
495
249
|
**/
|
|
496
|
-
getFilterLogs: AugmentedRpc<
|
|
497
|
-
(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>
|
|
498
|
-
>;
|
|
250
|
+
getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;
|
|
499
251
|
/**
|
|
500
252
|
* Returns logs matching given filter object.
|
|
501
253
|
**/
|
|
502
|
-
getLogs: AugmentedRpc<
|
|
503
|
-
(
|
|
504
|
-
filter:
|
|
505
|
-
| EthFilter
|
|
506
|
-
| { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any }
|
|
507
|
-
| string
|
|
508
|
-
| Uint8Array,
|
|
509
|
-
) => Observable<Vec<EthLog>>
|
|
510
|
-
>;
|
|
254
|
+
getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;
|
|
511
255
|
/**
|
|
512
256
|
* Returns proof for account and storage.
|
|
513
257
|
**/
|
|
514
|
-
getProof: AugmentedRpc<
|
|
515
|
-
(
|
|
516
|
-
address: H160 | string | Uint8Array,
|
|
517
|
-
storageKeys: Vec<H256> | (H256 | string | Uint8Array)[],
|
|
518
|
-
number: BlockNumber | AnyNumber | Uint8Array,
|
|
519
|
-
) => Observable<EthAccount>
|
|
520
|
-
>;
|
|
258
|
+
getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;
|
|
521
259
|
/**
|
|
522
260
|
* Returns content of the storage at given address.
|
|
523
261
|
**/
|
|
524
|
-
getStorageAt: AugmentedRpc<
|
|
525
|
-
(
|
|
526
|
-
address: H160 | string | Uint8Array,
|
|
527
|
-
index: U256 | AnyNumber | Uint8Array,
|
|
528
|
-
number?: BlockNumber | AnyNumber | Uint8Array,
|
|
529
|
-
) => Observable<H256>
|
|
530
|
-
>;
|
|
262
|
+
getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;
|
|
531
263
|
/**
|
|
532
264
|
* Returns transaction at given block hash and index.
|
|
533
265
|
**/
|
|
534
|
-
getTransactionByBlockHashAndIndex: AugmentedRpc<
|
|
535
|
-
(
|
|
536
|
-
hash: H256 | string | Uint8Array,
|
|
537
|
-
index: U256 | AnyNumber | Uint8Array,
|
|
538
|
-
) => Observable<EthTransaction>
|
|
539
|
-
>;
|
|
266
|
+
getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
|
|
540
267
|
/**
|
|
541
268
|
* Returns transaction by given block number and index.
|
|
542
269
|
**/
|
|
543
|
-
getTransactionByBlockNumberAndIndex: AugmentedRpc<
|
|
544
|
-
(
|
|
545
|
-
number: BlockNumber | AnyNumber | Uint8Array,
|
|
546
|
-
index: U256 | AnyNumber | Uint8Array,
|
|
547
|
-
) => Observable<EthTransaction>
|
|
548
|
-
>;
|
|
270
|
+
getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
|
|
549
271
|
/**
|
|
550
272
|
* Get transaction by its hash.
|
|
551
273
|
**/
|
|
552
|
-
getTransactionByHash: AugmentedRpc<
|
|
553
|
-
(hash: H256 | string | Uint8Array) => Observable<EthTransaction>
|
|
554
|
-
>;
|
|
274
|
+
getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;
|
|
555
275
|
/**
|
|
556
276
|
* Returns the number of transactions sent from given address at given time (block number).
|
|
557
277
|
**/
|
|
558
|
-
getTransactionCount: AugmentedRpc<
|
|
559
|
-
(
|
|
560
|
-
address: H160 | string | Uint8Array,
|
|
561
|
-
number?: BlockNumber | AnyNumber | Uint8Array,
|
|
562
|
-
) => Observable<U256>
|
|
563
|
-
>;
|
|
278
|
+
getTransactionCount: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
|
564
279
|
/**
|
|
565
280
|
* Returns transaction receipt by transaction hash.
|
|
566
281
|
**/
|
|
567
|
-
getTransactionReceipt: AugmentedRpc<
|
|
568
|
-
(hash: H256 | string | Uint8Array) => Observable<EthReceipt>
|
|
569
|
-
>;
|
|
282
|
+
getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;
|
|
570
283
|
/**
|
|
571
284
|
* Returns an uncles at given block and index.
|
|
572
285
|
**/
|
|
573
|
-
getUncleByBlockHashAndIndex: AugmentedRpc<
|
|
574
|
-
(
|
|
575
|
-
hash: H256 | string | Uint8Array,
|
|
576
|
-
index: U256 | AnyNumber | Uint8Array,
|
|
577
|
-
) => Observable<EthRichBlock>
|
|
578
|
-
>;
|
|
286
|
+
getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
|
|
579
287
|
/**
|
|
580
288
|
* Returns an uncles at given block and index.
|
|
581
289
|
**/
|
|
582
|
-
getUncleByBlockNumberAndIndex: AugmentedRpc<
|
|
583
|
-
(
|
|
584
|
-
number: BlockNumber | AnyNumber | Uint8Array,
|
|
585
|
-
index: U256 | AnyNumber | Uint8Array,
|
|
586
|
-
) => Observable<EthRichBlock>
|
|
587
|
-
>;
|
|
290
|
+
getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
|
|
588
291
|
/**
|
|
589
292
|
* Returns the number of uncles in a block with given hash.
|
|
590
293
|
**/
|
|
591
|
-
getUncleCountByBlockHash: AugmentedRpc<
|
|
592
|
-
(hash: H256 | string | Uint8Array) => Observable<U256>
|
|
593
|
-
>;
|
|
294
|
+
getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
|
|
594
295
|
/**
|
|
595
296
|
* Returns the number of uncles in a block with given block number.
|
|
596
297
|
**/
|
|
597
|
-
getUncleCountByBlockNumber: AugmentedRpc<
|
|
598
|
-
(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>
|
|
599
|
-
>;
|
|
298
|
+
getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
|
600
299
|
/**
|
|
601
300
|
* Returns the hash of the current block, the seedHash, and the boundary condition to be met.
|
|
602
301
|
**/
|
|
@@ -620,15 +319,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
620
319
|
/**
|
|
621
320
|
* Returns id of new filter.
|
|
622
321
|
**/
|
|
623
|
-
newFilter: AugmentedRpc<
|
|
624
|
-
(
|
|
625
|
-
filter:
|
|
626
|
-
| EthFilter
|
|
627
|
-
| { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any }
|
|
628
|
-
| string
|
|
629
|
-
| Uint8Array,
|
|
630
|
-
) => Observable<U256>
|
|
631
|
-
>;
|
|
322
|
+
newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;
|
|
632
323
|
/**
|
|
633
324
|
* Returns id of new block filter.
|
|
634
325
|
**/
|
|
@@ -644,55 +335,19 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
644
335
|
/**
|
|
645
336
|
* Sends transaction; will block waiting for signer to return the transaction hash
|
|
646
337
|
**/
|
|
647
|
-
sendTransaction: AugmentedRpc<
|
|
648
|
-
(
|
|
649
|
-
tx:
|
|
650
|
-
| EthTransactionRequest
|
|
651
|
-
| {
|
|
652
|
-
from?: any;
|
|
653
|
-
to?: any;
|
|
654
|
-
gasPrice?: any;
|
|
655
|
-
gas?: any;
|
|
656
|
-
value?: any;
|
|
657
|
-
data?: any;
|
|
658
|
-
nonce?: any;
|
|
659
|
-
}
|
|
660
|
-
| string
|
|
661
|
-
| Uint8Array,
|
|
662
|
-
) => Observable<H256>
|
|
663
|
-
>;
|
|
338
|
+
sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;
|
|
664
339
|
/**
|
|
665
340
|
* Used for submitting mining hashrate.
|
|
666
341
|
**/
|
|
667
|
-
submitHashrate: AugmentedRpc<
|
|
668
|
-
(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>
|
|
669
|
-
>;
|
|
342
|
+
submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;
|
|
670
343
|
/**
|
|
671
344
|
* Used for submitting a proof-of-work solution.
|
|
672
345
|
**/
|
|
673
|
-
submitWork: AugmentedRpc<
|
|
674
|
-
(
|
|
675
|
-
nonce: H64 | string | Uint8Array,
|
|
676
|
-
headerHash: H256 | string | Uint8Array,
|
|
677
|
-
mixDigest: H256 | string | Uint8Array,
|
|
678
|
-
) => Observable<bool>
|
|
679
|
-
>;
|
|
346
|
+
submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;
|
|
680
347
|
/**
|
|
681
348
|
* Subscribe to Eth subscription.
|
|
682
349
|
**/
|
|
683
|
-
subscribe: AugmentedRpc<
|
|
684
|
-
(
|
|
685
|
-
kind:
|
|
686
|
-
| EthSubKind
|
|
687
|
-
| 'newHeads'
|
|
688
|
-
| 'logs'
|
|
689
|
-
| 'newPendingTransactions'
|
|
690
|
-
| 'syncing'
|
|
691
|
-
| number
|
|
692
|
-
| Uint8Array,
|
|
693
|
-
params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array,
|
|
694
|
-
) => Observable<Null>
|
|
695
|
-
>;
|
|
350
|
+
subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;
|
|
696
351
|
/**
|
|
697
352
|
* Returns an object with data about the sync status or false.
|
|
698
353
|
**/
|
|
@@ -706,11 +361,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
706
361
|
/**
|
|
707
362
|
* Prove finality for the given block number, returning the Justification for the last block in the set.
|
|
708
363
|
**/
|
|
709
|
-
proveFinality: AugmentedRpc<
|
|
710
|
-
(
|
|
711
|
-
blockNumber: BlockNumber | AnyNumber | Uint8Array,
|
|
712
|
-
) => Observable<Option<EncodedFinalityProofs>>
|
|
713
|
-
>;
|
|
364
|
+
proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
|
|
714
365
|
/**
|
|
715
366
|
* Returns the state of the current best round state as well as the ongoing background rounds
|
|
716
367
|
**/
|
|
@@ -724,13 +375,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
724
375
|
/**
|
|
725
376
|
* Generate MMR proof for the given block numbers.
|
|
726
377
|
**/
|
|
727
|
-
generateProof: AugmentedRpc<
|
|
728
|
-
(
|
|
729
|
-
blockNumbers: Vec<u64> | (u64 | AnyNumber | Uint8Array)[],
|
|
730
|
-
bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array,
|
|
731
|
-
at?: BlockHash | string | Uint8Array,
|
|
732
|
-
) => Observable<MmrLeafBatchProof>
|
|
733
|
-
>;
|
|
378
|
+
generateProof: AugmentedRpc<(blockNumbers: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
|
|
734
379
|
/**
|
|
735
380
|
* Get the MMR root hash for the current best block.
|
|
736
381
|
**/
|
|
@@ -738,28 +383,11 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
738
383
|
/**
|
|
739
384
|
* Verify an MMR proof
|
|
740
385
|
**/
|
|
741
|
-
verifyProof: AugmentedRpc<
|
|
742
|
-
(
|
|
743
|
-
proof:
|
|
744
|
-
| MmrLeafBatchProof
|
|
745
|
-
| { blockHash?: any; leaves?: any; proof?: any }
|
|
746
|
-
| string
|
|
747
|
-
| Uint8Array,
|
|
748
|
-
) => Observable<bool>
|
|
749
|
-
>;
|
|
386
|
+
verifyProof: AugmentedRpc<(proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array) => Observable<bool>>;
|
|
750
387
|
/**
|
|
751
388
|
* Verify an MMR proof statelessly given an mmr_root
|
|
752
389
|
**/
|
|
753
|
-
verifyProofStateless: AugmentedRpc<
|
|
754
|
-
(
|
|
755
|
-
root: MmrHash | string | Uint8Array,
|
|
756
|
-
proof:
|
|
757
|
-
| MmrLeafBatchProof
|
|
758
|
-
| { blockHash?: any; leaves?: any; proof?: any }
|
|
759
|
-
| string
|
|
760
|
-
| Uint8Array,
|
|
761
|
-
) => Observable<bool>
|
|
762
|
-
>;
|
|
390
|
+
verifyProofStateless: AugmentedRpc<(root: MmrHash | string | Uint8Array, proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array) => Observable<bool>>;
|
|
763
391
|
};
|
|
764
392
|
net: {
|
|
765
393
|
/**
|
|
@@ -779,53 +407,27 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
779
407
|
/**
|
|
780
408
|
* Clear offchain local storage under given key and prefix
|
|
781
409
|
**/
|
|
782
|
-
localStorageClear: AugmentedRpc<
|
|
783
|
-
(
|
|
784
|
-
kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array,
|
|
785
|
-
key: Bytes | string | Uint8Array,
|
|
786
|
-
) => Observable<Null>
|
|
787
|
-
>;
|
|
410
|
+
localStorageClear: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Null>>;
|
|
788
411
|
/**
|
|
789
412
|
* Get offchain local storage under given key and prefix
|
|
790
413
|
**/
|
|
791
|
-
localStorageGet: AugmentedRpc<
|
|
792
|
-
(
|
|
793
|
-
kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array,
|
|
794
|
-
key: Bytes | string | Uint8Array,
|
|
795
|
-
) => Observable<Option<Bytes>>
|
|
796
|
-
>;
|
|
414
|
+
localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
797
415
|
/**
|
|
798
416
|
* Set offchain local storage under given key and prefix
|
|
799
417
|
**/
|
|
800
|
-
localStorageSet: AugmentedRpc<
|
|
801
|
-
(
|
|
802
|
-
kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array,
|
|
803
|
-
key: Bytes | string | Uint8Array,
|
|
804
|
-
value: Bytes | string | Uint8Array,
|
|
805
|
-
) => Observable<Null>
|
|
806
|
-
>;
|
|
418
|
+
localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
|
|
807
419
|
};
|
|
808
420
|
payment: {
|
|
809
421
|
/**
|
|
810
422
|
* @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead
|
|
811
423
|
* Query the detailed fee of a given encoded extrinsic
|
|
812
424
|
**/
|
|
813
|
-
queryFeeDetails: AugmentedRpc<
|
|
814
|
-
(
|
|
815
|
-
extrinsic: Bytes | string | Uint8Array,
|
|
816
|
-
at?: BlockHash | string | Uint8Array,
|
|
817
|
-
) => Observable<FeeDetails>
|
|
818
|
-
>;
|
|
425
|
+
queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
|
|
819
426
|
/**
|
|
820
427
|
* @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead
|
|
821
428
|
* Retrieves the fee information for an encoded extrinsic
|
|
822
429
|
**/
|
|
823
|
-
queryInfo: AugmentedRpc<
|
|
824
|
-
(
|
|
825
|
-
extrinsic: Bytes | string | Uint8Array,
|
|
826
|
-
at?: BlockHash | string | Uint8Array,
|
|
827
|
-
) => Observable<RuntimeDispatchInfoV1>
|
|
828
|
-
>;
|
|
430
|
+
queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;
|
|
829
431
|
};
|
|
830
432
|
rpc: {
|
|
831
433
|
/**
|
|
@@ -837,92 +439,36 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
837
439
|
/**
|
|
838
440
|
* Perform a call to a builtin on the chain
|
|
839
441
|
**/
|
|
840
|
-
call: AugmentedRpc<
|
|
841
|
-
(
|
|
842
|
-
method: Text | string,
|
|
843
|
-
data: Bytes | string | Uint8Array,
|
|
844
|
-
at?: BlockHash | string | Uint8Array,
|
|
845
|
-
) => Observable<Bytes>
|
|
846
|
-
>;
|
|
442
|
+
call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;
|
|
847
443
|
/**
|
|
848
444
|
* Retrieves the keys with prefix of a specific child storage
|
|
849
445
|
**/
|
|
850
|
-
getChildKeys: AugmentedRpc<
|
|
851
|
-
(
|
|
852
|
-
childStorageKey: StorageKey | string | Uint8Array | any,
|
|
853
|
-
childDefinition: StorageKey | string | Uint8Array | any,
|
|
854
|
-
childType: u32 | AnyNumber | Uint8Array,
|
|
855
|
-
key: StorageKey | string | Uint8Array | any,
|
|
856
|
-
at?: BlockHash | string | Uint8Array,
|
|
857
|
-
) => Observable<Vec<StorageKey>>
|
|
858
|
-
>;
|
|
446
|
+
getChildKeys: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
|
859
447
|
/**
|
|
860
448
|
* Returns proof of storage for child key entries at a specific block state.
|
|
861
449
|
**/
|
|
862
|
-
getChildReadProof: AugmentedRpc<
|
|
863
|
-
(
|
|
864
|
-
childStorageKey: PrefixedStorageKey | string | Uint8Array,
|
|
865
|
-
keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[],
|
|
866
|
-
at?: BlockHash | string | Uint8Array,
|
|
867
|
-
) => Observable<ReadProof>
|
|
868
|
-
>;
|
|
450
|
+
getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
|
|
869
451
|
/**
|
|
870
452
|
* Retrieves the child storage for a key
|
|
871
453
|
**/
|
|
872
|
-
getChildStorage: AugmentedRpc<
|
|
873
|
-
(
|
|
874
|
-
childStorageKey: StorageKey | string | Uint8Array | any,
|
|
875
|
-
childDefinition: StorageKey | string | Uint8Array | any,
|
|
876
|
-
childType: u32 | AnyNumber | Uint8Array,
|
|
877
|
-
key: StorageKey | string | Uint8Array | any,
|
|
878
|
-
at?: BlockHash | string | Uint8Array,
|
|
879
|
-
) => Observable<StorageData>
|
|
880
|
-
>;
|
|
454
|
+
getChildStorage: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<StorageData>>;
|
|
881
455
|
/**
|
|
882
456
|
* Retrieves the child storage hash
|
|
883
457
|
**/
|
|
884
|
-
getChildStorageHash: AugmentedRpc<
|
|
885
|
-
(
|
|
886
|
-
childStorageKey: StorageKey | string | Uint8Array | any,
|
|
887
|
-
childDefinition: StorageKey | string | Uint8Array | any,
|
|
888
|
-
childType: u32 | AnyNumber | Uint8Array,
|
|
889
|
-
key: StorageKey | string | Uint8Array | any,
|
|
890
|
-
at?: BlockHash | string | Uint8Array,
|
|
891
|
-
) => Observable<Hash>
|
|
892
|
-
>;
|
|
458
|
+
getChildStorageHash: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
|
|
893
459
|
/**
|
|
894
460
|
* Retrieves the child storage size
|
|
895
461
|
**/
|
|
896
|
-
getChildStorageSize: AugmentedRpc<
|
|
897
|
-
(
|
|
898
|
-
childStorageKey: StorageKey | string | Uint8Array | any,
|
|
899
|
-
childDefinition: StorageKey | string | Uint8Array | any,
|
|
900
|
-
childType: u32 | AnyNumber | Uint8Array,
|
|
901
|
-
key: StorageKey | string | Uint8Array | any,
|
|
902
|
-
at?: BlockHash | string | Uint8Array,
|
|
903
|
-
) => Observable<u64>
|
|
904
|
-
>;
|
|
462
|
+
getChildStorageSize: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
|
|
905
463
|
/**
|
|
906
464
|
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
|
|
907
465
|
* Retrieves the keys with a certain prefix
|
|
908
466
|
**/
|
|
909
|
-
getKeys: AugmentedRpc<
|
|
910
|
-
(
|
|
911
|
-
key: StorageKey | string | Uint8Array | any,
|
|
912
|
-
at?: BlockHash | string | Uint8Array,
|
|
913
|
-
) => Observable<Vec<StorageKey>>
|
|
914
|
-
>;
|
|
467
|
+
getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
|
915
468
|
/**
|
|
916
469
|
* Returns the keys with prefix with pagination support.
|
|
917
470
|
**/
|
|
918
|
-
getKeysPaged: AugmentedRpc<
|
|
919
|
-
(
|
|
920
|
-
key: StorageKey | string | Uint8Array | any,
|
|
921
|
-
count: u32 | AnyNumber | Uint8Array,
|
|
922
|
-
startKey?: StorageKey | string | Uint8Array | any,
|
|
923
|
-
at?: BlockHash | string | Uint8Array,
|
|
924
|
-
) => Observable<Vec<StorageKey>>
|
|
925
|
-
>;
|
|
471
|
+
getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
|
926
472
|
/**
|
|
927
473
|
* Returns the runtime metadata
|
|
928
474
|
**/
|
|
@@ -931,73 +477,35 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
931
477
|
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
|
|
932
478
|
* Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
|
|
933
479
|
**/
|
|
934
|
-
getPairs: AugmentedRpc<
|
|
935
|
-
(
|
|
936
|
-
prefix: StorageKey | string | Uint8Array | any,
|
|
937
|
-
at?: BlockHash | string | Uint8Array,
|
|
938
|
-
) => Observable<Vec<KeyValue>>
|
|
939
|
-
>;
|
|
480
|
+
getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
|
|
940
481
|
/**
|
|
941
482
|
* Returns proof of storage entries at a specific block state
|
|
942
483
|
**/
|
|
943
|
-
getReadProof: AugmentedRpc<
|
|
944
|
-
(
|
|
945
|
-
keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[],
|
|
946
|
-
at?: BlockHash | string | Uint8Array,
|
|
947
|
-
) => Observable<ReadProof>
|
|
948
|
-
>;
|
|
484
|
+
getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
|
|
949
485
|
/**
|
|
950
486
|
* Get the runtime version
|
|
951
487
|
**/
|
|
952
|
-
getRuntimeVersion: AugmentedRpc<
|
|
953
|
-
(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>
|
|
954
|
-
>;
|
|
488
|
+
getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;
|
|
955
489
|
/**
|
|
956
490
|
* Retrieves the storage for a key
|
|
957
491
|
**/
|
|
958
|
-
getStorage: AugmentedRpc<
|
|
959
|
-
<T = Codec>(
|
|
960
|
-
key: StorageKey | string | Uint8Array | any,
|
|
961
|
-
block?: Hash | Uint8Array | string,
|
|
962
|
-
) => Observable<T>
|
|
963
|
-
>;
|
|
492
|
+
getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;
|
|
964
493
|
/**
|
|
965
494
|
* Retrieves the storage hash
|
|
966
495
|
**/
|
|
967
|
-
getStorageHash: AugmentedRpc<
|
|
968
|
-
(
|
|
969
|
-
key: StorageKey | string | Uint8Array | any,
|
|
970
|
-
at?: BlockHash | string | Uint8Array,
|
|
971
|
-
) => Observable<Hash>
|
|
972
|
-
>;
|
|
496
|
+
getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
|
|
973
497
|
/**
|
|
974
498
|
* Retrieves the storage size
|
|
975
499
|
**/
|
|
976
|
-
getStorageSize: AugmentedRpc<
|
|
977
|
-
(
|
|
978
|
-
key: StorageKey | string | Uint8Array | any,
|
|
979
|
-
at?: BlockHash | string | Uint8Array,
|
|
980
|
-
) => Observable<u64>
|
|
981
|
-
>;
|
|
500
|
+
getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
|
|
982
501
|
/**
|
|
983
502
|
* Query historical storage entries (by key) starting from a start block
|
|
984
503
|
**/
|
|
985
|
-
queryStorage: AugmentedRpc<
|
|
986
|
-
<T = Codec[]>(
|
|
987
|
-
keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[],
|
|
988
|
-
fromBlock?: Hash | Uint8Array | string,
|
|
989
|
-
toBlock?: Hash | Uint8Array | string,
|
|
990
|
-
) => Observable<[Hash, T][]>
|
|
991
|
-
>;
|
|
504
|
+
queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;
|
|
992
505
|
/**
|
|
993
506
|
* Query storage entries (by key) starting at block hash given as the second parameter
|
|
994
507
|
**/
|
|
995
|
-
queryStorageAt: AugmentedRpc<
|
|
996
|
-
<T = Codec[]>(
|
|
997
|
-
keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[],
|
|
998
|
-
at?: Hash | Uint8Array | string,
|
|
999
|
-
) => Observable<T>
|
|
1000
|
-
>;
|
|
508
|
+
queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;
|
|
1001
509
|
/**
|
|
1002
510
|
* Retrieves the runtime version via subscription
|
|
1003
511
|
**/
|
|
@@ -1005,28 +513,15 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
1005
513
|
/**
|
|
1006
514
|
* Subscribes to storage changes for the provided keys
|
|
1007
515
|
**/
|
|
1008
|
-
subscribeStorage: AugmentedRpc<
|
|
1009
|
-
<T = Codec[]>(
|
|
1010
|
-
keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[],
|
|
1011
|
-
) => Observable<T>
|
|
1012
|
-
>;
|
|
516
|
+
subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;
|
|
1013
517
|
/**
|
|
1014
518
|
* Provides a way to trace the re-execution of a single block
|
|
1015
519
|
**/
|
|
1016
|
-
traceBlock: AugmentedRpc<
|
|
1017
|
-
(
|
|
1018
|
-
block: Hash | string | Uint8Array,
|
|
1019
|
-
targets: Option<Text> | null | Uint8Array | Text | string,
|
|
1020
|
-
storageKeys: Option<Text> | null | Uint8Array | Text | string,
|
|
1021
|
-
methods: Option<Text> | null | Uint8Array | Text | string,
|
|
1022
|
-
) => Observable<TraceBlockResponse>
|
|
1023
|
-
>;
|
|
520
|
+
traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | Uint8Array | Text | string, storageKeys: Option<Text> | null | Uint8Array | Text | string, methods: Option<Text> | null | Uint8Array | Text | string) => Observable<TraceBlockResponse>>;
|
|
1024
521
|
/**
|
|
1025
522
|
* Check current migration state
|
|
1026
523
|
**/
|
|
1027
|
-
trieMigrationStatus: AugmentedRpc<
|
|
1028
|
-
(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>
|
|
1029
|
-
>;
|
|
524
|
+
trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;
|
|
1030
525
|
};
|
|
1031
526
|
syncstate: {
|
|
1032
527
|
/**
|
|
@@ -1038,9 +533,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
1038
533
|
/**
|
|
1039
534
|
* Retrieves the next accountIndex as available on the node
|
|
1040
535
|
**/
|
|
1041
|
-
accountNextIndex: AugmentedRpc<
|
|
1042
|
-
(accountId: AccountId | string | Uint8Array) => Observable<Index>
|
|
1043
|
-
>;
|
|
536
|
+
accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;
|
|
1044
537
|
/**
|
|
1045
538
|
* Adds the supplied directives to the current log filter
|
|
1046
539
|
**/
|
|
@@ -1060,12 +553,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
1060
553
|
/**
|
|
1061
554
|
* Dry run an extrinsic at a given block
|
|
1062
555
|
**/
|
|
1063
|
-
dryRun: AugmentedRpc<
|
|
1064
|
-
(
|
|
1065
|
-
extrinsic: Bytes | string | Uint8Array,
|
|
1066
|
-
at?: BlockHash | string | Uint8Array,
|
|
1067
|
-
) => Observable<ApplyExtrinsicResult>
|
|
1068
|
-
>;
|
|
556
|
+
dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
|
1069
557
|
/**
|
|
1070
558
|
* Return health status of the node
|
|
1071
559
|
**/
|