@argonprotocol/mainchain 1.5.2 → 1.6.0-dev.0f1257cf

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