@pezkuwi/rpc-augment 16.5.20 → 16.5.21

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