@argonprotocol/mainchain 1.5.2-dev.f931ed2c → 1.6.0

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