@polkadot/rpc-augment 6.12.2-14

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 ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @polkadot/api-augment
2
+
3
+ Generated augmentation.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("@polkadot/types/augment");
4
+
5
+ require("./rpc.cjs");
@@ -0,0 +1,2 @@
1
+ import '@polkadot/types/augment';
2
+ import './rpc';
@@ -0,0 +1,4 @@
1
+ // Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import '@polkadot/types/augment';
4
+ import "./rpc.js";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,614 @@
1
+ declare module '@polkadot/rpc-augment/rpc' {
2
+ import type { AugmentedRpc } from '@polkadot/rpc-augment/types';
3
+ import type { Bytes, HashMap, Json, Metadata, Null, Option, StorageKey, Text, U256, U64, Vec, bool, u32, u64 } from '@polkadot/types';
4
+ import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
5
+ import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
6
+ import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
7
+ import type { BlockHash } from '@polkadot/types/interfaces/chain';
8
+ import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
9
+ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
10
+ import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
11
+ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
12
+ import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
13
+ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
14
+ import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
15
+ import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
16
+ import type { StorageKind } from '@polkadot/types/interfaces/offchain';
17
+ import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
18
+ import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
19
+ import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
20
+ import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
21
+ import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
22
+ import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types';
23
+ interface RpcInterface {
24
+ author: {
25
+ /**
26
+ * Returns true if the keystore has private keys for the given public key and key type.
27
+ **/
28
+ hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
29
+ /**
30
+ * Returns true if the keystore has private keys for the given session public keys.
31
+ **/
32
+ hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;
33
+ /**
34
+ * Insert a key into the keystore.
35
+ **/
36
+ insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
37
+ /**
38
+ * Returns all pending extrinsics, potentially grouped by sender
39
+ **/
40
+ pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;
41
+ /**
42
+ * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
43
+ **/
44
+ removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | {
45
+ Hash: any;
46
+ } | {
47
+ Extrinsic: any;
48
+ } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
49
+ /**
50
+ * Generate new session keys and returns the corresponding public keys
51
+ **/
52
+ rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
53
+ /**
54
+ * Submit and subscribe to watch an extrinsic until unsubscribed
55
+ **/
56
+ submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<ExtrinsicStatus>>;
57
+ /**
58
+ * Submit a fully formatted extrinsic for block inclusion
59
+ **/
60
+ submitExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<Hash>>;
61
+ };
62
+ babe: {
63
+ /**
64
+ * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore
65
+ **/
66
+ epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
67
+ };
68
+ beefy: {
69
+ /**
70
+ * Returns the block most recently finalized by BEEFY, alongside side its justification.
71
+ **/
72
+ subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;
73
+ };
74
+ chain: {
75
+ /**
76
+ * Get header and body of a relay chain block
77
+ **/
78
+ getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;
79
+ /**
80
+ * Get the block hash for a specific block
81
+ **/
82
+ getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;
83
+ /**
84
+ * Get hash of the last finalized block in the canon chain
85
+ **/
86
+ getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;
87
+ /**
88
+ * Retrieves the header for a specific block
89
+ **/
90
+ getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;
91
+ /**
92
+ * Retrieves the newest header via subscription
93
+ **/
94
+ subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;
95
+ /**
96
+ * Retrieves the best finalized header via subscription
97
+ **/
98
+ subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;
99
+ /**
100
+ * Retrieves the best header via subscription
101
+ **/
102
+ subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;
103
+ };
104
+ childstate: {
105
+ /**
106
+ * Returns the keys with prefix from a child storage, leave empty to get all the keys
107
+ **/
108
+ getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
109
+ /**
110
+ * Returns the keys with prefix from a child storage with pagination support
111
+ **/
112
+ 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>>>;
113
+ /**
114
+ * Returns a child storage entry at a specific block state
115
+ **/
116
+ getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;
117
+ /**
118
+ * Returns child storage entries for multiple keys at a specific block state
119
+ **/
120
+ getStorageEntries: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | string | Uint8Array) => Observable<Vec<Option<StorageData>>>>;
121
+ /**
122
+ * Returns the hash of a child storage entry at a block state
123
+ **/
124
+ getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;
125
+ /**
126
+ * Returns the size of a child storage entry at a block state
127
+ **/
128
+ getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
129
+ };
130
+ contracts: {
131
+ /**
132
+ * Executes a call to a contract
133
+ **/
134
+ call: AugmentedRpc<(callRequest: ContractCallRequest | {
135
+ origin?: any;
136
+ dest?: any;
137
+ value?: any;
138
+ gasLimit?: any;
139
+ inputData?: any;
140
+ } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
141
+ /**
142
+ * Returns the value under a specified storage key in a contract
143
+ **/
144
+ getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
145
+ /**
146
+ * Instantiate a new contract
147
+ **/
148
+ instantiate: AugmentedRpc<(request: InstantiateRequest | {
149
+ origin?: any;
150
+ value?: any;
151
+ gasLimit?: any;
152
+ code?: any;
153
+ data?: any;
154
+ salt?: any;
155
+ } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
156
+ /**
157
+ * Returns the projected time a given contract will be able to sustain paying its rent
158
+ **/
159
+ rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
160
+ };
161
+ engine: {
162
+ /**
163
+ * Instructs the manual-seal authorship task to create a new block
164
+ **/
165
+ createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;
166
+ /**
167
+ * Instructs the manual-seal authorship task to finalize a block
168
+ **/
169
+ finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
170
+ };
171
+ eth: {
172
+ /**
173
+ * Returns accounts list.
174
+ **/
175
+ accounts: AugmentedRpc<() => Observable<Vec<H160>>>;
176
+ /**
177
+ * Returns the blockNumber
178
+ **/
179
+ blockNumber: AugmentedRpc<() => Observable<U256>>;
180
+ /**
181
+ * Call contract, returning the output data.
182
+ **/
183
+ call: AugmentedRpc<(request: EthCallRequest | {
184
+ from?: any;
185
+ to?: any;
186
+ gasPrice?: any;
187
+ gas?: any;
188
+ value?: any;
189
+ data?: any;
190
+ nonce?: any;
191
+ } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
192
+ /**
193
+ * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
194
+ **/
195
+ chainId: AugmentedRpc<() => Observable<U64>>;
196
+ /**
197
+ * Returns block author.
198
+ **/
199
+ coinbase: AugmentedRpc<() => Observable<H160>>;
200
+ /**
201
+ * Estimate gas needed for execution of given contract.
202
+ **/
203
+ estimateGas: AugmentedRpc<(request: EthCallRequest | {
204
+ from?: any;
205
+ to?: any;
206
+ gasPrice?: any;
207
+ gas?: any;
208
+ value?: any;
209
+ data?: any;
210
+ nonce?: any;
211
+ } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
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 | {
252
+ fromBlock?: any;
253
+ toBlock?: any;
254
+ blockHash?: any;
255
+ address?: any;
256
+ topics?: any;
257
+ } | string | Uint8Array) => Observable<Vec<EthLog>>>;
258
+ /**
259
+ * Returns proof for account and storage.
260
+ **/
261
+ getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;
262
+ /**
263
+ * Returns content of the storage at given address.
264
+ **/
265
+ getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;
266
+ /**
267
+ * Returns transaction at given block hash and index.
268
+ **/
269
+ getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
270
+ /**
271
+ * Returns transaction by given block number and index.
272
+ **/
273
+ getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
274
+ /**
275
+ * Get transaction by its hash.
276
+ **/
277
+ getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;
278
+ /**
279
+ * Returns the number of transactions sent from given address at given time (block number).
280
+ **/
281
+ getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
282
+ /**
283
+ * Returns transaction receipt by transaction hash.
284
+ **/
285
+ getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;
286
+ /**
287
+ * Returns an uncles at given block and index.
288
+ **/
289
+ getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
290
+ /**
291
+ * Returns an uncles at given block and index.
292
+ **/
293
+ getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
294
+ /**
295
+ * Returns the number of uncles in a block with given hash.
296
+ **/
297
+ getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
298
+ /**
299
+ * Returns the number of uncles in a block with given block number.
300
+ **/
301
+ getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
302
+ /**
303
+ * Returns the hash of the current block, the seedHash, and the boundary condition to be met.
304
+ **/
305
+ getWork: AugmentedRpc<() => Observable<EthWork>>;
306
+ /**
307
+ * Returns the number of hashes per second that the node is mining with.
308
+ **/
309
+ hashrate: AugmentedRpc<() => Observable<U256>>;
310
+ /**
311
+ * Returns true if client is actively mining new blocks.
312
+ **/
313
+ mining: AugmentedRpc<() => Observable<bool>>;
314
+ /**
315
+ * Returns id of new block filter.
316
+ **/
317
+ newBlockFilter: AugmentedRpc<() => Observable<U256>>;
318
+ /**
319
+ * Returns id of new filter.
320
+ **/
321
+ newFilter: AugmentedRpc<(filter: EthFilter | {
322
+ fromBlock?: any;
323
+ toBlock?: any;
324
+ blockHash?: any;
325
+ address?: any;
326
+ topics?: any;
327
+ } | string | Uint8Array) => Observable<U256>>;
328
+ /**
329
+ * Returns id of new block filter.
330
+ **/
331
+ newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;
332
+ /**
333
+ * Returns protocol version encoded as a string (quotes are necessary).
334
+ **/
335
+ protocolVersion: AugmentedRpc<() => Observable<u64>>;
336
+ /**
337
+ * Sends signed transaction, returning its hash.
338
+ **/
339
+ sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;
340
+ /**
341
+ * Sends transaction; will block waiting for signer to return the transaction hash
342
+ **/
343
+ sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | {
344
+ from?: any;
345
+ to?: any;
346
+ gasPrice?: any;
347
+ gas?: any;
348
+ value?: any;
349
+ data?: any;
350
+ nonce?: any;
351
+ } | string | Uint8Array) => Observable<H256>>;
352
+ /**
353
+ * Used for submitting mining hashrate.
354
+ **/
355
+ submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;
356
+ /**
357
+ * Used for submitting a proof-of-work solution.
358
+ **/
359
+ submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;
360
+ /**
361
+ * Subscribe to Eth subscription.
362
+ **/
363
+ subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | {
364
+ None: any;
365
+ } | {
366
+ Logs: any;
367
+ } | string | Uint8Array) => Observable<Null>>;
368
+ /**
369
+ * Returns an object with data about the sync status or false.
370
+ **/
371
+ syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;
372
+ /**
373
+ * Uninstalls filter.
374
+ **/
375
+ uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;
376
+ };
377
+ grandpa: {
378
+ /**
379
+ * Prove finality for the range (begin; end] hash.
380
+ **/
381
+ proveFinality: AugmentedRpc<(begin: BlockHash | string | Uint8Array, end: BlockHash | string | Uint8Array, authoritiesSetId?: u64 | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
382
+ /**
383
+ * Returns the state of the current best round state as well as the ongoing background rounds
384
+ **/
385
+ roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
386
+ /**
387
+ * Subscribes to grandpa justifications
388
+ **/
389
+ subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
390
+ };
391
+ mmr: {
392
+ /**
393
+ * Generate MMR proof for given leaf index.
394
+ **/
395
+ generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
396
+ };
397
+ net: {
398
+ /**
399
+ * Returns true if client is actively listening for network connections. Otherwise false.
400
+ **/
401
+ listening: AugmentedRpc<() => Observable<bool>>;
402
+ /**
403
+ * Returns number of peers connected to node.
404
+ **/
405
+ peerCount: AugmentedRpc<() => Observable<Text>>;
406
+ /**
407
+ * Returns protocol version.
408
+ **/
409
+ version: AugmentedRpc<() => Observable<Text>>;
410
+ };
411
+ offchain: {
412
+ /**
413
+ * Get offchain local storage under given key and prefix
414
+ **/
415
+ localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
416
+ /**
417
+ * Set offchain local storage under given key and prefix
418
+ **/
419
+ localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
420
+ };
421
+ payment: {
422
+ /**
423
+ * Query the detailed fee of a given encoded extrinsic
424
+ **/
425
+ queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
426
+ /**
427
+ * Retrieves the fee information for an encoded extrinsic
428
+ **/
429
+ queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;
430
+ };
431
+ rpc: {
432
+ /**
433
+ * Retrieves the list of RPC methods that are exposed by the node
434
+ **/
435
+ methods: AugmentedRpc<() => Observable<RpcMethods>>;
436
+ };
437
+ state: {
438
+ /**
439
+ * Perform a call to a builtin on the chain
440
+ **/
441
+ call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;
442
+ /**
443
+ * Retrieves the keys with prefix of a specific child storage
444
+ **/
445
+ 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>>>;
446
+ /**
447
+ * Returns proof of storage for child key entries at a specific block state.
448
+ **/
449
+ getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
450
+ /**
451
+ * Retrieves the child storage for a key
452
+ **/
453
+ 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>>;
454
+ /**
455
+ * Retrieves the child storage hash
456
+ **/
457
+ 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>>;
458
+ /**
459
+ * Retrieves the child storage size
460
+ **/
461
+ 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>>;
462
+ /**
463
+ * Retrieves the keys with a certain prefix
464
+ **/
465
+ getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
466
+ /**
467
+ * Returns the keys with prefix with pagination support.
468
+ **/
469
+ getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
470
+ /**
471
+ * Returns the runtime metadata
472
+ **/
473
+ getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
474
+ /**
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 | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array, methods: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>;
518
+ };
519
+ syncstate: {
520
+ /**
521
+ * Returns the json-serialized chainspec running the node, with a sync state.
522
+ **/
523
+ genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;
524
+ };
525
+ system: {
526
+ /**
527
+ * Retrieves the next accountIndex as available on the node
528
+ **/
529
+ accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;
530
+ /**
531
+ * Adds the supplied directives to the current log filter
532
+ **/
533
+ addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;
534
+ /**
535
+ * Adds a reserved peer
536
+ **/
537
+ addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;
538
+ /**
539
+ * Retrieves the chain
540
+ **/
541
+ chain: AugmentedRpc<() => Observable<Text>>;
542
+ /**
543
+ * Retrieves the chain type
544
+ **/
545
+ chainType: AugmentedRpc<() => Observable<ChainType>>;
546
+ /**
547
+ * Dry run an extrinsic at a given block
548
+ **/
549
+ dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
550
+ /**
551
+ * Return health status of the node
552
+ **/
553
+ health: AugmentedRpc<() => Observable<Health>>;
554
+ /**
555
+ * 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
556
+ **/
557
+ localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;
558
+ /**
559
+ * Returns the base58-encoded PeerId of the node
560
+ **/
561
+ localPeerId: AugmentedRpc<() => Observable<Text>>;
562
+ /**
563
+ * Retrieves the node name
564
+ **/
565
+ name: AugmentedRpc<() => Observable<Text>>;
566
+ /**
567
+ * Returns current state of the network
568
+ **/
569
+ networkState: AugmentedRpc<() => Observable<NetworkState>>;
570
+ /**
571
+ * Returns the roles the node is running as
572
+ **/
573
+ nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;
574
+ /**
575
+ * Returns the currently connected peers
576
+ **/
577
+ peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;
578
+ /**
579
+ * Get a custom set of properties as a JSON object, defined in the chain spec
580
+ **/
581
+ properties: AugmentedRpc<() => Observable<ChainProperties>>;
582
+ /**
583
+ * Remove a reserved peer
584
+ **/
585
+ removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;
586
+ /**
587
+ * Returns the list of reserved peers
588
+ **/
589
+ reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;
590
+ /**
591
+ * Resets the log filter to Substrate defaults
592
+ **/
593
+ resetLogFilter: AugmentedRpc<() => Observable<Null>>;
594
+ /**
595
+ * Returns the state of the syncing of the node
596
+ **/
597
+ syncState: AugmentedRpc<() => Observable<SyncState>>;
598
+ /**
599
+ * Retrieves the version of the node
600
+ **/
601
+ version: AugmentedRpc<() => Observable<Text>>;
602
+ };
603
+ web3: {
604
+ /**
605
+ * Returns current client version.
606
+ **/
607
+ clientVersion: AugmentedRpc<() => Observable<Text>>;
608
+ /**
609
+ * Returns sha3 of the given data
610
+ **/
611
+ sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;
612
+ };
613
+ }
614
+ }
package/augment/rpc.js ADDED
File without changes
package/bundle.cjs ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ packageInfo: true
8
+ };
9
+ Object.defineProperty(exports, "packageInfo", {
10
+ enumerable: true,
11
+ get: function () {
12
+ return _packageInfo.packageInfo;
13
+ }
14
+ });
15
+
16
+ require("@polkadot/rpc-augment/augment");
17
+
18
+ var _packageInfo = require("./packageInfo.cjs");
19
+
20
+ var _rpc = require("@polkadot/rpc-augment/rpc");
21
+
22
+ Object.keys(_rpc).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
25
+ if (key in exports && exports[key] === _rpc[key]) return;
26
+ Object.defineProperty(exports, key, {
27
+ enumerable: true,
28
+ get: function () {
29
+ return _rpc[key];
30
+ }
31
+ });
32
+ });
package/bundle.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import '@polkadot/rpc-augment/augment';
2
+ export { packageInfo } from './packageInfo';
3
+ export * from '@polkadot/rpc-augment/rpc';
package/bundle.js ADDED
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ // trigger in the same way as we do externally
4
+ import '@polkadot/rpc-augment/augment';
5
+ export { packageInfo } from "./packageInfo.js";
6
+ export * from '@polkadot/rpc-augment/rpc';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ var _packageInfo = require("@polkadot/types/packageInfo");
4
+
5
+ var _util = require("@polkadot/util");
6
+
7
+ var _packageInfo2 = require("./packageInfo.cjs");
8
+
9
+ // Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
10
+ // SPDX-License-Identifier: Apache-2.0
11
+ (0, _util.detectPackage)(_packageInfo2.packageInfo, typeof __dirname !== 'undefined' && __dirname, [_packageInfo.packageInfo]);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
4
+ import { detectPackage } from '@polkadot/util';
5
+ import { packageInfo } from "./packageInfo.js";
6
+ detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [typesInfo]);
package/index.cjs ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ require("./detectPackage.cjs");
8
+
9
+ var _bundle = require("./bundle.cjs");
10
+
11
+ Object.keys(_bundle).forEach(function (key) {
12
+ if (key === "default" || key === "__esModule") return;
13
+ if (key in exports && exports[key] === _bundle[key]) return;
14
+ Object.defineProperty(exports, key, {
15
+ enumerable: true,
16
+ get: function () {
17
+ return _bundle[key];
18
+ }
19
+ });
20
+ });
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import './detectPackage';
2
+ export * from './bundle';
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ // Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import "./detectPackage.js";
4
+ export * from "./bundle.js";
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "author": "Jaco Greeff <jacogr@gmail.com>",
3
+ "bugs": "https://github.com/polkadot-js/api/issues",
4
+ "contributors": [],
5
+ "description": "RPC generated augmentation",
6
+ "engines": {
7
+ "node": ">=14.0.0"
8
+ },
9
+ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme",
10
+ "license": "Apache-2.0",
11
+ "maintainers": [],
12
+ "name": "@polkadot/rpc-augment",
13
+ "repository": {
14
+ "directory": "packages/rpc-augment",
15
+ "type": "git",
16
+ "url": "https://github.com/polkadot-js/api.git"
17
+ },
18
+ "sideEffects": [
19
+ "./detectPackage.js",
20
+ "./detectPackage.cjs"
21
+ ],
22
+ "type": "module",
23
+ "version": "6.12.2-14",
24
+ "main": "index.js",
25
+ "dependencies": {
26
+ "@babel/runtime": "^7.16.5",
27
+ "@polkadot/types": "6.12.2-14",
28
+ "rxjs": "^7.4.0"
29
+ },
30
+ "exports": {
31
+ ".": {
32
+ "require": "./index.cjs",
33
+ "default": "./index.js"
34
+ },
35
+ "./augment": {
36
+ "require": "./augment/index.cjs",
37
+ "default": "./augment/index.js"
38
+ },
39
+ "./augment/index.d.ts": "./augment/index.d.ts",
40
+ "./augment/rpc": {
41
+ "require": "./augment/rpc.cjs",
42
+ "default": "./augment/rpc.js"
43
+ },
44
+ "./augment/rpc.d.ts": "./augment/rpc.d.ts",
45
+ "./bundle": {
46
+ "require": "./bundle.cjs",
47
+ "default": "./bundle.js"
48
+ },
49
+ "./bundle.d.ts": "./bundle.d.ts",
50
+ "./detectPackage": {
51
+ "require": "./detectPackage.cjs",
52
+ "default": "./detectPackage.js"
53
+ },
54
+ "./detectPackage.d.ts": "./detectPackage.d.ts",
55
+ "./index.d.ts": "./index.d.ts",
56
+ "./package.json": "./package.json",
57
+ "./packageInfo": {
58
+ "require": "./packageInfo.cjs",
59
+ "default": "./packageInfo.js"
60
+ },
61
+ "./packageInfo.d.ts": "./packageInfo.d.ts",
62
+ "./README.md": "./README.md",
63
+ "./types": {
64
+ "require": "./types.cjs",
65
+ "default": "./types.js"
66
+ },
67
+ "./types.d.ts": "./types.d.ts"
68
+ }
69
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.packageInfo = void 0;
7
+ // Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ // Auto-generated by @polkadot/dev, do not edit
10
+ const packageInfo = {
11
+ name: '@polkadot/rpc-augment',
12
+ version: '6.12.2-14'
13
+ };
14
+ exports.packageInfo = packageInfo;
@@ -0,0 +1,4 @@
1
+ export declare const packageInfo: {
2
+ name: string;
3
+ version: string;
4
+ };
package/packageInfo.js ADDED
@@ -0,0 +1,7 @@
1
+ // Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ // Auto-generated by @polkadot/dev, do not edit
4
+ export const packageInfo = {
5
+ name: '@polkadot/rpc-augment',
6
+ version: '6.12.2-14'
7
+ };
package/types.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";
package/types.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import type { Observable } from 'rxjs';
2
+ import type { AnyFunction, Codec, DefinitionRpc } from '@polkadot/types/types';
3
+ export interface RpcInterfaceMethod {
4
+ <T extends Codec>(...params: unknown[]): Observable<T>;
5
+ raw(...params: unknown[]): Observable<unknown>;
6
+ meta: DefinitionRpc;
7
+ }
8
+ export declare type AugmentedRpc<F extends AnyFunction> = F & {
9
+ raw: <T>(...params: Parameters<F>) => Observable<T>;
10
+ meta: DefinitionRpc;
11
+ };
package/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};