@webb-tools/tangle-substrate-types 0.5.12 → 0.9.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.
- package/LICENSE +0 -0
- package/README.md +15 -17
- package/build/index.cjs +2 -0
- package/build/index.d.ts +20826 -0
- package/build/index.mjs +1 -0
- package/package.json +57 -1
- package/examples/job_and_result_submission.d.ts +0 -1
- package/examples/job_and_result_submission.js +0 -230
- package/index.d.ts +0 -3
- package/index.js +0 -5
- package/interfaces/augment-api-consts.d.ts +0 -1045
- package/interfaces/augment-api-consts.js +0 -3
- package/interfaces/augment-api-errors.d.ts +0 -2001
- package/interfaces/augment-api-errors.js +0 -3
- package/interfaces/augment-api-events.d.ts +0 -3268
- package/interfaces/augment-api-events.js +0 -3
- package/interfaces/augment-api-query.d.ts +0 -2117
- package/interfaces/augment-api-query.js +0 -3
- package/interfaces/augment-api-rpc.d.ts +0 -679
- package/interfaces/augment-api-rpc.js +0 -3
- package/interfaces/augment-api-runtime.d.ts +0 -363
- package/interfaces/augment-api-runtime.js +0 -3
- package/interfaces/augment-api-tx.d.ts +0 -4118
- package/interfaces/augment-api-tx.js +0 -3
- package/interfaces/augment-api.d.ts +0 -7
- package/interfaces/augment-api.js +0 -9
- package/interfaces/augment-types.d.ts +0 -1249
- package/interfaces/augment-types.js +0 -3
- package/interfaces/lookup.d.ts +0 -6240
- package/interfaces/lookup.js +0 -6248
- package/interfaces/registry.d.ts +0 -413
- package/interfaces/registry.js +0 -3
- package/interfaces/types-lookup.d.ts +0 -6157
- package/interfaces/types-lookup.js +0 -3
- package/metadata/static-latest.d.ts +0 -2
- package/metadata/static-latest.js +0 -7
@@ -1,679 +0,0 @@
|
|
1
|
-
import '@polkadot/rpc-core/types/jsonrpc';
|
2
|
-
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
3
|
-
import type { Metadata, StorageKey } from '@polkadot/types';
|
4
|
-
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
|
5
|
-
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
6
|
-
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
7
|
-
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
8
|
-
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
|
9
|
-
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
10
|
-
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
11
|
-
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
12
|
-
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequestV1 } from '@polkadot/types/interfaces/contracts';
|
13
|
-
import type { BlockStats } from '@polkadot/types/interfaces/dev';
|
14
|
-
import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
15
|
-
import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
16
|
-
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
17
|
-
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
|
18
|
-
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
19
|
-
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
20
|
-
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
21
|
-
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
22
|
-
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
|
23
|
-
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
|
24
|
-
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
|
25
|
-
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
26
|
-
export type __AugmentedRpc = AugmentedRpc<() => unknown>;
|
27
|
-
declare module '@polkadot/rpc-core/types/jsonrpc' {
|
28
|
-
interface RpcInterface {
|
29
|
-
author: {
|
30
|
-
/**
|
31
|
-
* Returns true if the keystore has private keys for the given public key and key type.
|
32
|
-
**/
|
33
|
-
hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
|
34
|
-
/**
|
35
|
-
* Returns true if the keystore has private keys for the given session public keys.
|
36
|
-
**/
|
37
|
-
hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;
|
38
|
-
/**
|
39
|
-
* Insert a key into the keystore.
|
40
|
-
**/
|
41
|
-
insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
|
42
|
-
/**
|
43
|
-
* Returns all pending extrinsics, potentially grouped by sender
|
44
|
-
**/
|
45
|
-
pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;
|
46
|
-
/**
|
47
|
-
* Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
|
48
|
-
**/
|
49
|
-
removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | {
|
50
|
-
Hash: any;
|
51
|
-
} | {
|
52
|
-
Extrinsic: any;
|
53
|
-
} | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
|
54
|
-
/**
|
55
|
-
* Generate new session keys and returns the corresponding public keys
|
56
|
-
**/
|
57
|
-
rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
|
58
|
-
/**
|
59
|
-
* Submit and subscribe to watch an extrinsic until unsubscribed
|
60
|
-
**/
|
61
|
-
submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ExtrinsicStatus>>;
|
62
|
-
/**
|
63
|
-
* Submit a fully formatted extrinsic for block inclusion
|
64
|
-
**/
|
65
|
-
submitExtrinsic: AugmentedRpc<(extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Hash>>;
|
66
|
-
};
|
67
|
-
babe: {
|
68
|
-
/**
|
69
|
-
* Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore
|
70
|
-
**/
|
71
|
-
epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
|
72
|
-
};
|
73
|
-
beefy: {
|
74
|
-
/**
|
75
|
-
* Returns hash of the latest BEEFY finalized block as seen by this client.
|
76
|
-
**/
|
77
|
-
getFinalizedHead: AugmentedRpc<() => Observable<H256>>;
|
78
|
-
/**
|
79
|
-
* Returns the block most recently finalized by BEEFY, alongside its justification.
|
80
|
-
**/
|
81
|
-
subscribeJustifications: AugmentedRpc<() => Observable<BeefyVersionedFinalityProof>>;
|
82
|
-
};
|
83
|
-
chain: {
|
84
|
-
/**
|
85
|
-
* Get header and body of a relay chain block
|
86
|
-
**/
|
87
|
-
getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;
|
88
|
-
/**
|
89
|
-
* Get the block hash for a specific block
|
90
|
-
**/
|
91
|
-
getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;
|
92
|
-
/**
|
93
|
-
* Get hash of the last finalized block in the canon chain
|
94
|
-
**/
|
95
|
-
getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;
|
96
|
-
/**
|
97
|
-
* Retrieves the header for a specific block
|
98
|
-
**/
|
99
|
-
getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;
|
100
|
-
/**
|
101
|
-
* Retrieves the newest header via subscription
|
102
|
-
**/
|
103
|
-
subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;
|
104
|
-
/**
|
105
|
-
* Retrieves the best finalized header via subscription
|
106
|
-
**/
|
107
|
-
subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;
|
108
|
-
/**
|
109
|
-
* Retrieves the best header via subscription
|
110
|
-
**/
|
111
|
-
subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;
|
112
|
-
};
|
113
|
-
childstate: {
|
114
|
-
/**
|
115
|
-
* Returns the keys with prefix from a child storage, leave empty to get all the keys
|
116
|
-
**/
|
117
|
-
getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
118
|
-
/**
|
119
|
-
* Returns the keys with prefix from a child storage with pagination support
|
120
|
-
**/
|
121
|
-
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>>>;
|
122
|
-
/**
|
123
|
-
* Returns a child storage entry at a specific block state
|
124
|
-
**/
|
125
|
-
getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;
|
126
|
-
/**
|
127
|
-
* Returns child storage entries for multiple keys at a specific block state
|
128
|
-
**/
|
129
|
-
getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;
|
130
|
-
/**
|
131
|
-
* Returns the hash of a child storage entry at a block state
|
132
|
-
**/
|
133
|
-
getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;
|
134
|
-
/**
|
135
|
-
* Returns the size of a child storage entry at a block state
|
136
|
-
**/
|
137
|
-
getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
|
138
|
-
};
|
139
|
-
contracts: {
|
140
|
-
/**
|
141
|
-
* @deprecated Use the runtime interface `api.call.contractsApi.call` instead
|
142
|
-
* Executes a call to a contract
|
143
|
-
**/
|
144
|
-
call: AugmentedRpc<(callRequest: ContractCallRequest | {
|
145
|
-
origin?: any;
|
146
|
-
dest?: any;
|
147
|
-
value?: any;
|
148
|
-
gasLimit?: any;
|
149
|
-
storageDepositLimit?: any;
|
150
|
-
inputData?: any;
|
151
|
-
} | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
|
152
|
-
/**
|
153
|
-
* @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead
|
154
|
-
* Returns the value under a specified storage key in a contract
|
155
|
-
**/
|
156
|
-
getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
|
157
|
-
/**
|
158
|
-
* @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
|
159
|
-
* Instantiate a new contract
|
160
|
-
**/
|
161
|
-
instantiate: AugmentedRpc<(request: InstantiateRequestV1 | {
|
162
|
-
origin?: any;
|
163
|
-
value?: any;
|
164
|
-
gasLimit?: any;
|
165
|
-
code?: any;
|
166
|
-
data?: any;
|
167
|
-
salt?: any;
|
168
|
-
} | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
169
|
-
/**
|
170
|
-
* @deprecated Not available in newer versions of the contracts interfaces
|
171
|
-
* Returns the projected time a given contract will be able to sustain paying its rent
|
172
|
-
**/
|
173
|
-
rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
|
174
|
-
/**
|
175
|
-
* @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead
|
176
|
-
* Upload new code without instantiating a contract from it
|
177
|
-
**/
|
178
|
-
uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | {
|
179
|
-
origin?: any;
|
180
|
-
code?: any;
|
181
|
-
storageDepositLimit?: any;
|
182
|
-
} | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
|
183
|
-
};
|
184
|
-
dev: {
|
185
|
-
/**
|
186
|
-
* Reexecute the specified `block_hash` and gather statistics while doing so
|
187
|
-
**/
|
188
|
-
getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;
|
189
|
-
};
|
190
|
-
engine: {
|
191
|
-
/**
|
192
|
-
* Instructs the manual-seal authorship task to create a new block
|
193
|
-
**/
|
194
|
-
createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;
|
195
|
-
/**
|
196
|
-
* Instructs the manual-seal authorship task to finalize a block
|
197
|
-
**/
|
198
|
-
finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
|
199
|
-
};
|
200
|
-
eth: {
|
201
|
-
/**
|
202
|
-
* Returns accounts list.
|
203
|
-
**/
|
204
|
-
accounts: AugmentedRpc<() => Observable<Vec<H160>>>;
|
205
|
-
/**
|
206
|
-
* Returns the blockNumber
|
207
|
-
**/
|
208
|
-
blockNumber: AugmentedRpc<() => Observable<U256>>;
|
209
|
-
/**
|
210
|
-
* Call contract, returning the output data.
|
211
|
-
**/
|
212
|
-
call: AugmentedRpc<(request: EthCallRequest | {
|
213
|
-
from?: any;
|
214
|
-
to?: any;
|
215
|
-
gasPrice?: any;
|
216
|
-
gas?: any;
|
217
|
-
value?: any;
|
218
|
-
data?: any;
|
219
|
-
nonce?: any;
|
220
|
-
} | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
|
221
|
-
/**
|
222
|
-
* Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
|
223
|
-
**/
|
224
|
-
chainId: AugmentedRpc<() => Observable<U64>>;
|
225
|
-
/**
|
226
|
-
* Returns block author.
|
227
|
-
**/
|
228
|
-
coinbase: AugmentedRpc<() => Observable<H160>>;
|
229
|
-
/**
|
230
|
-
* Estimate gas needed for execution of given contract.
|
231
|
-
**/
|
232
|
-
estimateGas: AugmentedRpc<(request: EthCallRequest | {
|
233
|
-
from?: any;
|
234
|
-
to?: any;
|
235
|
-
gasPrice?: any;
|
236
|
-
gas?: any;
|
237
|
-
value?: any;
|
238
|
-
data?: any;
|
239
|
-
nonce?: any;
|
240
|
-
} | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
241
|
-
/**
|
242
|
-
* Returns fee history for given block count & reward percentiles
|
243
|
-
**/
|
244
|
-
feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | (f64)[]) => Observable<EthFeeHistory>>;
|
245
|
-
/**
|
246
|
-
* Returns current gas price.
|
247
|
-
**/
|
248
|
-
gasPrice: AugmentedRpc<() => Observable<U256>>;
|
249
|
-
/**
|
250
|
-
* Returns balance of the given account.
|
251
|
-
**/
|
252
|
-
getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
253
|
-
/**
|
254
|
-
* Returns block with given hash.
|
255
|
-
**/
|
256
|
-
getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
|
257
|
-
/**
|
258
|
-
* Returns block with given number.
|
259
|
-
**/
|
260
|
-
getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
|
261
|
-
/**
|
262
|
-
* Returns the number of transactions in a block with given hash.
|
263
|
-
**/
|
264
|
-
getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
|
265
|
-
/**
|
266
|
-
* Returns the number of transactions in a block with given block number.
|
267
|
-
**/
|
268
|
-
getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
269
|
-
/**
|
270
|
-
* Returns the code at given address at given time (block number).
|
271
|
-
**/
|
272
|
-
getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
|
273
|
-
/**
|
274
|
-
* Returns filter changes since last poll.
|
275
|
-
**/
|
276
|
-
getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;
|
277
|
-
/**
|
278
|
-
* Returns all logs matching given filter (in a range 'from' - 'to').
|
279
|
-
**/
|
280
|
-
getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;
|
281
|
-
/**
|
282
|
-
* Returns logs matching given filter object.
|
283
|
-
**/
|
284
|
-
getLogs: AugmentedRpc<(filter: EthFilter | {
|
285
|
-
fromBlock?: any;
|
286
|
-
toBlock?: any;
|
287
|
-
blockHash?: any;
|
288
|
-
address?: any;
|
289
|
-
topics?: any;
|
290
|
-
} | string | Uint8Array) => Observable<Vec<EthLog>>>;
|
291
|
-
/**
|
292
|
-
* Returns proof for account and storage.
|
293
|
-
**/
|
294
|
-
getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;
|
295
|
-
/**
|
296
|
-
* Returns content of the storage at given address.
|
297
|
-
**/
|
298
|
-
getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;
|
299
|
-
/**
|
300
|
-
* Returns transaction at given block hash and index.
|
301
|
-
**/
|
302
|
-
getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
|
303
|
-
/**
|
304
|
-
* Returns transaction by given block number and index.
|
305
|
-
**/
|
306
|
-
getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
|
307
|
-
/**
|
308
|
-
* Get transaction by its hash.
|
309
|
-
**/
|
310
|
-
getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;
|
311
|
-
/**
|
312
|
-
* Returns the number of transactions sent from given address at given time (block number).
|
313
|
-
**/
|
314
|
-
getTransactionCount: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
315
|
-
/**
|
316
|
-
* Returns transaction receipt by transaction hash.
|
317
|
-
**/
|
318
|
-
getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;
|
319
|
-
/**
|
320
|
-
* Returns an uncles at given block and index.
|
321
|
-
**/
|
322
|
-
getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
|
323
|
-
/**
|
324
|
-
* Returns an uncles at given block and index.
|
325
|
-
**/
|
326
|
-
getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
|
327
|
-
/**
|
328
|
-
* Returns the number of uncles in a block with given hash.
|
329
|
-
**/
|
330
|
-
getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
|
331
|
-
/**
|
332
|
-
* Returns the number of uncles in a block with given block number.
|
333
|
-
**/
|
334
|
-
getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
335
|
-
/**
|
336
|
-
* Returns the hash of the current block, the seedHash, and the boundary condition to be met.
|
337
|
-
**/
|
338
|
-
getWork: AugmentedRpc<() => Observable<EthWork>>;
|
339
|
-
/**
|
340
|
-
* Returns the number of hashes per second that the node is mining with.
|
341
|
-
**/
|
342
|
-
hashrate: AugmentedRpc<() => Observable<U256>>;
|
343
|
-
/**
|
344
|
-
* Returns max priority fee per gas
|
345
|
-
**/
|
346
|
-
maxPriorityFeePerGas: AugmentedRpc<() => Observable<U256>>;
|
347
|
-
/**
|
348
|
-
* Returns true if client is actively mining new blocks.
|
349
|
-
**/
|
350
|
-
mining: AugmentedRpc<() => Observable<bool>>;
|
351
|
-
/**
|
352
|
-
* Returns id of new block filter.
|
353
|
-
**/
|
354
|
-
newBlockFilter: AugmentedRpc<() => Observable<U256>>;
|
355
|
-
/**
|
356
|
-
* Returns id of new filter.
|
357
|
-
**/
|
358
|
-
newFilter: AugmentedRpc<(filter: EthFilter | {
|
359
|
-
fromBlock?: any;
|
360
|
-
toBlock?: any;
|
361
|
-
blockHash?: any;
|
362
|
-
address?: any;
|
363
|
-
topics?: any;
|
364
|
-
} | string | Uint8Array) => Observable<U256>>;
|
365
|
-
/**
|
366
|
-
* Returns id of new block filter.
|
367
|
-
**/
|
368
|
-
newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;
|
369
|
-
/**
|
370
|
-
* Returns protocol version encoded as a string (quotes are necessary).
|
371
|
-
**/
|
372
|
-
protocolVersion: AugmentedRpc<() => Observable<u64>>;
|
373
|
-
/**
|
374
|
-
* Sends signed transaction, returning its hash.
|
375
|
-
**/
|
376
|
-
sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;
|
377
|
-
/**
|
378
|
-
* Sends transaction; will block waiting for signer to return the transaction hash
|
379
|
-
**/
|
380
|
-
sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | {
|
381
|
-
from?: any;
|
382
|
-
to?: any;
|
383
|
-
gasPrice?: any;
|
384
|
-
gas?: any;
|
385
|
-
value?: any;
|
386
|
-
data?: any;
|
387
|
-
nonce?: any;
|
388
|
-
} | string | Uint8Array) => Observable<H256>>;
|
389
|
-
/**
|
390
|
-
* Used for submitting mining hashrate.
|
391
|
-
**/
|
392
|
-
submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;
|
393
|
-
/**
|
394
|
-
* Used for submitting a proof-of-work solution.
|
395
|
-
**/
|
396
|
-
submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;
|
397
|
-
/**
|
398
|
-
* Subscribe to Eth subscription.
|
399
|
-
**/
|
400
|
-
subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | {
|
401
|
-
None: any;
|
402
|
-
} | {
|
403
|
-
Logs: any;
|
404
|
-
} | string | Uint8Array) => Observable<Null>>;
|
405
|
-
/**
|
406
|
-
* Returns an object with data about the sync status or false.
|
407
|
-
**/
|
408
|
-
syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;
|
409
|
-
/**
|
410
|
-
* Uninstalls filter.
|
411
|
-
**/
|
412
|
-
uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;
|
413
|
-
};
|
414
|
-
grandpa: {
|
415
|
-
/**
|
416
|
-
* Prove finality for the given block number, returning the Justification for the last block in the set.
|
417
|
-
**/
|
418
|
-
proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
|
419
|
-
/**
|
420
|
-
* Returns the state of the current best round state as well as the ongoing background rounds
|
421
|
-
**/
|
422
|
-
roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
|
423
|
-
/**
|
424
|
-
* Subscribes to grandpa justifications
|
425
|
-
**/
|
426
|
-
subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
|
427
|
-
};
|
428
|
-
mmr: {
|
429
|
-
/**
|
430
|
-
* Generate MMR proof for the given block numbers.
|
431
|
-
**/
|
432
|
-
generateProof: AugmentedRpc<(blockNumbers: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
|
433
|
-
/**
|
434
|
-
* Get the MMR root hash for the current best block.
|
435
|
-
**/
|
436
|
-
root: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MmrHash>>;
|
437
|
-
/**
|
438
|
-
* Verify an MMR proof
|
439
|
-
**/
|
440
|
-
verifyProof: AugmentedRpc<(proof: MmrLeafBatchProof | {
|
441
|
-
blockHash?: any;
|
442
|
-
leaves?: any;
|
443
|
-
proof?: any;
|
444
|
-
} | string | Uint8Array) => Observable<bool>>;
|
445
|
-
/**
|
446
|
-
* Verify an MMR proof statelessly given an mmr_root
|
447
|
-
**/
|
448
|
-
verifyProofStateless: AugmentedRpc<(root: MmrHash | string | Uint8Array, proof: MmrLeafBatchProof | {
|
449
|
-
blockHash?: any;
|
450
|
-
leaves?: any;
|
451
|
-
proof?: any;
|
452
|
-
} | string | Uint8Array) => Observable<bool>>;
|
453
|
-
};
|
454
|
-
net: {
|
455
|
-
/**
|
456
|
-
* Returns true if client is actively listening for network connections. Otherwise false.
|
457
|
-
**/
|
458
|
-
listening: AugmentedRpc<() => Observable<bool>>;
|
459
|
-
/**
|
460
|
-
* Returns number of peers connected to node.
|
461
|
-
**/
|
462
|
-
peerCount: AugmentedRpc<() => Observable<Text>>;
|
463
|
-
/**
|
464
|
-
* Returns protocol version.
|
465
|
-
**/
|
466
|
-
version: AugmentedRpc<() => Observable<Text>>;
|
467
|
-
};
|
468
|
-
offchain: {
|
469
|
-
/**
|
470
|
-
* Get offchain local storage under given key and prefix
|
471
|
-
**/
|
472
|
-
localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
473
|
-
/**
|
474
|
-
* Set offchain local storage under given key and prefix
|
475
|
-
**/
|
476
|
-
localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
|
477
|
-
};
|
478
|
-
payment: {
|
479
|
-
/**
|
480
|
-
* @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead
|
481
|
-
* Query the detailed fee of a given encoded extrinsic
|
482
|
-
**/
|
483
|
-
queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
|
484
|
-
/**
|
485
|
-
* @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead
|
486
|
-
* Retrieves the fee information for an encoded extrinsic
|
487
|
-
**/
|
488
|
-
queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;
|
489
|
-
};
|
490
|
-
rpc: {
|
491
|
-
/**
|
492
|
-
* Retrieves the list of RPC methods that are exposed by the node
|
493
|
-
**/
|
494
|
-
methods: AugmentedRpc<() => Observable<RpcMethods>>;
|
495
|
-
};
|
496
|
-
state: {
|
497
|
-
/**
|
498
|
-
* Perform a call to a builtin on the chain
|
499
|
-
**/
|
500
|
-
call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;
|
501
|
-
/**
|
502
|
-
* Retrieves the keys with prefix of a specific child storage
|
503
|
-
**/
|
504
|
-
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>>>;
|
505
|
-
/**
|
506
|
-
* Returns proof of storage for child key entries at a specific block state.
|
507
|
-
**/
|
508
|
-
getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
|
509
|
-
/**
|
510
|
-
* Retrieves the child storage for a key
|
511
|
-
**/
|
512
|
-
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>>;
|
513
|
-
/**
|
514
|
-
* Retrieves the child storage hash
|
515
|
-
**/
|
516
|
-
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>>;
|
517
|
-
/**
|
518
|
-
* Retrieves the child storage size
|
519
|
-
**/
|
520
|
-
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>>;
|
521
|
-
/**
|
522
|
-
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
|
523
|
-
* Retrieves the keys with a certain prefix
|
524
|
-
**/
|
525
|
-
getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
526
|
-
/**
|
527
|
-
* Returns the keys with prefix with pagination support.
|
528
|
-
**/
|
529
|
-
getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
530
|
-
/**
|
531
|
-
* Returns the runtime metadata
|
532
|
-
**/
|
533
|
-
getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
|
534
|
-
/**
|
535
|
-
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
|
536
|
-
* Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
|
537
|
-
**/
|
538
|
-
getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
|
539
|
-
/**
|
540
|
-
* Returns proof of storage entries at a specific block state
|
541
|
-
**/
|
542
|
-
getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
|
543
|
-
/**
|
544
|
-
* Get the runtime version
|
545
|
-
**/
|
546
|
-
getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;
|
547
|
-
/**
|
548
|
-
* Retrieves the storage for a key
|
549
|
-
**/
|
550
|
-
getStorage: AugmentedRpc<(<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>)>;
|
551
|
-
/**
|
552
|
-
* Retrieves the storage hash
|
553
|
-
**/
|
554
|
-
getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
|
555
|
-
/**
|
556
|
-
* Retrieves the storage size
|
557
|
-
**/
|
558
|
-
getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
|
559
|
-
/**
|
560
|
-
* Query historical storage entries (by key) starting from a start block
|
561
|
-
**/
|
562
|
-
queryStorage: AugmentedRpc<(<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>)>;
|
563
|
-
/**
|
564
|
-
* Query storage entries (by key) starting at block hash given as the second parameter
|
565
|
-
**/
|
566
|
-
queryStorageAt: AugmentedRpc<(<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>)>;
|
567
|
-
/**
|
568
|
-
* Retrieves the runtime version via subscription
|
569
|
-
**/
|
570
|
-
subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;
|
571
|
-
/**
|
572
|
-
* Subscribes to storage changes for the provided keys
|
573
|
-
**/
|
574
|
-
subscribeStorage: AugmentedRpc<(<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>)>;
|
575
|
-
/**
|
576
|
-
* Provides a way to trace the re-execution of a single block
|
577
|
-
**/
|
578
|
-
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>>;
|
579
|
-
/**
|
580
|
-
* Check current migration state
|
581
|
-
**/
|
582
|
-
trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;
|
583
|
-
};
|
584
|
-
syncstate: {
|
585
|
-
/**
|
586
|
-
* Returns the json-serialized chainspec running the node, with a sync state.
|
587
|
-
**/
|
588
|
-
genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;
|
589
|
-
};
|
590
|
-
system: {
|
591
|
-
/**
|
592
|
-
* Retrieves the next accountIndex as available on the node
|
593
|
-
**/
|
594
|
-
accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;
|
595
|
-
/**
|
596
|
-
* Adds the supplied directives to the current log filter
|
597
|
-
**/
|
598
|
-
addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;
|
599
|
-
/**
|
600
|
-
* Adds a reserved peer
|
601
|
-
**/
|
602
|
-
addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;
|
603
|
-
/**
|
604
|
-
* Retrieves the chain
|
605
|
-
**/
|
606
|
-
chain: AugmentedRpc<() => Observable<Text>>;
|
607
|
-
/**
|
608
|
-
* Retrieves the chain type
|
609
|
-
**/
|
610
|
-
chainType: AugmentedRpc<() => Observable<ChainType>>;
|
611
|
-
/**
|
612
|
-
* Dry run an extrinsic at a given block
|
613
|
-
**/
|
614
|
-
dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
|
615
|
-
/**
|
616
|
-
* Return health status of the node
|
617
|
-
**/
|
618
|
-
health: AugmentedRpc<() => Observable<Health>>;
|
619
|
-
/**
|
620
|
-
* The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example
|
621
|
-
**/
|
622
|
-
localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;
|
623
|
-
/**
|
624
|
-
* Returns the base58-encoded PeerId of the node
|
625
|
-
**/
|
626
|
-
localPeerId: AugmentedRpc<() => Observable<Text>>;
|
627
|
-
/**
|
628
|
-
* Retrieves the node name
|
629
|
-
**/
|
630
|
-
name: AugmentedRpc<() => Observable<Text>>;
|
631
|
-
/**
|
632
|
-
* Returns current state of the network
|
633
|
-
**/
|
634
|
-
networkState: AugmentedRpc<() => Observable<NetworkState>>;
|
635
|
-
/**
|
636
|
-
* Returns the roles the node is running as
|
637
|
-
**/
|
638
|
-
nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;
|
639
|
-
/**
|
640
|
-
* Returns the currently connected peers
|
641
|
-
**/
|
642
|
-
peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;
|
643
|
-
/**
|
644
|
-
* Get a custom set of properties as a JSON object, defined in the chain spec
|
645
|
-
**/
|
646
|
-
properties: AugmentedRpc<() => Observable<ChainProperties>>;
|
647
|
-
/**
|
648
|
-
* Remove a reserved peer
|
649
|
-
**/
|
650
|
-
removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;
|
651
|
-
/**
|
652
|
-
* Returns the list of reserved peers
|
653
|
-
**/
|
654
|
-
reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;
|
655
|
-
/**
|
656
|
-
* Resets the log filter to Substrate defaults
|
657
|
-
**/
|
658
|
-
resetLogFilter: AugmentedRpc<() => Observable<Null>>;
|
659
|
-
/**
|
660
|
-
* Returns the state of the syncing of the node
|
661
|
-
**/
|
662
|
-
syncState: AugmentedRpc<() => Observable<SyncState>>;
|
663
|
-
/**
|
664
|
-
* Retrieves the version of the node
|
665
|
-
**/
|
666
|
-
version: AugmentedRpc<() => Observable<Text>>;
|
667
|
-
};
|
668
|
-
web3: {
|
669
|
-
/**
|
670
|
-
* Returns current client version.
|
671
|
-
**/
|
672
|
-
clientVersion: AugmentedRpc<() => Observable<Text>>;
|
673
|
-
/**
|
674
|
-
* Returns sha3 of the given data
|
675
|
-
**/
|
676
|
-
sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;
|
677
|
-
};
|
678
|
-
}
|
679
|
-
}
|