@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.
Files changed (36) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +15 -17
  3. package/build/index.cjs +2 -0
  4. package/build/index.d.ts +20826 -0
  5. package/build/index.mjs +1 -0
  6. package/package.json +57 -1
  7. package/examples/job_and_result_submission.d.ts +0 -1
  8. package/examples/job_and_result_submission.js +0 -230
  9. package/index.d.ts +0 -3
  10. package/index.js +0 -5
  11. package/interfaces/augment-api-consts.d.ts +0 -1045
  12. package/interfaces/augment-api-consts.js +0 -3
  13. package/interfaces/augment-api-errors.d.ts +0 -2001
  14. package/interfaces/augment-api-errors.js +0 -3
  15. package/interfaces/augment-api-events.d.ts +0 -3268
  16. package/interfaces/augment-api-events.js +0 -3
  17. package/interfaces/augment-api-query.d.ts +0 -2117
  18. package/interfaces/augment-api-query.js +0 -3
  19. package/interfaces/augment-api-rpc.d.ts +0 -679
  20. package/interfaces/augment-api-rpc.js +0 -3
  21. package/interfaces/augment-api-runtime.d.ts +0 -363
  22. package/interfaces/augment-api-runtime.js +0 -3
  23. package/interfaces/augment-api-tx.d.ts +0 -4118
  24. package/interfaces/augment-api-tx.js +0 -3
  25. package/interfaces/augment-api.d.ts +0 -7
  26. package/interfaces/augment-api.js +0 -9
  27. package/interfaces/augment-types.d.ts +0 -1249
  28. package/interfaces/augment-types.js +0 -3
  29. package/interfaces/lookup.d.ts +0 -6240
  30. package/interfaces/lookup.js +0 -6248
  31. package/interfaces/registry.d.ts +0 -413
  32. package/interfaces/registry.js +0 -3
  33. package/interfaces/types-lookup.d.ts +0 -6157
  34. package/interfaces/types-lookup.js +0 -3
  35. package/metadata/static-latest.d.ts +0 -2
  36. package/metadata/static-latest.js +0 -7
@@ -1,3 +0,0 @@
1
- "use strict";
2
-
3
- require("@polkadot/rpc-core/types/jsonrpc");
@@ -1,363 +0,0 @@
1
- import '@polkadot/api-base/types/calls';
2
- import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
3
- import type { Bytes, Null, Option, Result, U256, Vec, bool, u256, u32, u64 } from '@polkadot/types-codec';
4
- import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
- import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
- import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
7
- import type { BlockHash } from '@polkadot/types/interfaces/chain';
8
- import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
9
- import type { BlockV2, EthReceiptV3, EthTransaction, EthTransactionStatus, TransactionV2 } from '@polkadot/types/interfaces/eth';
10
- import type { EvmAccount, EvmCallInfoV2, EvmCreateInfoV2 } from '@polkadot/types/interfaces/evm';
11
- import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
12
- import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
13
- import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
14
- import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
15
- import type { AccountId, Balance, Block, H160, H256, Header, Index, KeyTypeId, Permill, Slot, Weight } from '@polkadot/types/interfaces/runtime';
16
- import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
17
- import type { ApplyExtrinsicResult, DispatchError } from '@polkadot/types/interfaces/system';
18
- import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
19
- import type { IExtrinsic, Observable } from '@polkadot/types/types';
20
- export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
21
- export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
22
- declare module '@polkadot/api-base/types/calls' {
23
- interface AugmentedCalls<ApiType extends ApiTypes> {
24
- /** 0xbc9d89904f5b923f/1 */
25
- accountNonceApi: {
26
- /**
27
- * The API to query account nonce (aka transaction index)
28
- **/
29
- accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
30
- /**
31
- * Generic call
32
- **/
33
- [key: string]: DecoratedCallBase<ApiType>;
34
- };
35
- /** 0xcbca25e39f142387/2 */
36
- babeApi: {
37
- /**
38
- * Return the genesis configuration for BABE. The configuration is only read on genesis.
39
- **/
40
- configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
41
- /**
42
- * Returns information regarding the current epoch.
43
- **/
44
- currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
45
- /**
46
- * Returns the slot that started the current epoch.
47
- **/
48
- currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
49
- /**
50
- * Generates a proof of key ownership for the given authority in the current epoch.
51
- **/
52
- generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
53
- /**
54
- * Returns information regarding the next epoch (which was already previously announced).
55
- **/
56
- nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
57
- /**
58
- * Submits an unsigned extrinsic to report an equivocation.
59
- **/
60
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
61
- offender?: any;
62
- slotNumber?: any;
63
- firstHeader?: any;
64
- secondHeader?: any;
65
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
66
- /**
67
- * Generic call
68
- **/
69
- [key: string]: DecoratedCallBase<ApiType>;
70
- };
71
- /** 0x40fe3ad401f8959a/6 */
72
- blockBuilder: {
73
- /**
74
- * Apply the given extrinsic.
75
- **/
76
- applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
77
- /**
78
- * Check that the inherents are valid.
79
- **/
80
- checkInherents: AugmentedCall<ApiType, (block: Block | {
81
- header?: any;
82
- extrinsics?: any;
83
- } | string | Uint8Array, data: InherentData | {
84
- data?: any;
85
- } | string | Uint8Array) => Observable<CheckInherentsResult>>;
86
- /**
87
- * Finish the current block.
88
- **/
89
- finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
90
- /**
91
- * Generate inherent extrinsics.
92
- **/
93
- inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
94
- data?: any;
95
- } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
96
- /**
97
- * Generic call
98
- **/
99
- [key: string]: DecoratedCallBase<ApiType>;
100
- };
101
- /** 0xe65b00e46cedd0aa/2 */
102
- convertTransactionRuntimeApi: {
103
- /**
104
- * Converts an Ethereum-style transaction to Extrinsic
105
- **/
106
- convertTransaction: AugmentedCall<ApiType, (transaction: TransactionV2 | {
107
- Legacy: any;
108
- } | {
109
- EIP2930: any;
110
- } | {
111
- EIP1559: any;
112
- } | string | Uint8Array) => Observable<Extrinsic>>;
113
- /**
114
- * Generic call
115
- **/
116
- [key: string]: DecoratedCallBase<ApiType>;
117
- };
118
- /** 0xdf6acb689907609b/4 */
119
- core: {
120
- /**
121
- * Execute the given block.
122
- **/
123
- executeBlock: AugmentedCall<ApiType, (block: Block | {
124
- header?: any;
125
- extrinsics?: any;
126
- } | string | Uint8Array) => Observable<Null>>;
127
- /**
128
- * Initialize a block with the given header.
129
- **/
130
- initializeBlock: AugmentedCall<ApiType, (header: Header | {
131
- parentHash?: any;
132
- number?: any;
133
- stateRoot?: any;
134
- extrinsicsRoot?: any;
135
- digest?: any;
136
- } | string | Uint8Array) => Observable<Null>>;
137
- /**
138
- * Returns the version of the runtime.
139
- **/
140
- version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
141
- /**
142
- * Generic call
143
- **/
144
- [key: string]: DecoratedCallBase<ApiType>;
145
- };
146
- /** 0xbd78255d4feeea1f/4 */
147
- debugRuntimeApi: {
148
- /**
149
- * Trace all block extrinsics
150
- **/
151
- traceBlock: AugmentedCall<ApiType, (extrinsics: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[], knownTransactions: Vec<H256> | (H256 | string | Uint8Array)[]) => Observable<Result<ITuple<[]>, DispatchError>>>;
152
- /**
153
- * Trace transaction extrinsics
154
- **/
155
- traceTransaction: AugmentedCall<ApiType, (extrinsics: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[], transaction: EthTransaction | {
156
- hash?: any;
157
- nonce?: any;
158
- blockHash?: any;
159
- blockNumber?: any;
160
- transactionIndex?: any;
161
- from?: any;
162
- to?: any;
163
- value?: any;
164
- gasPrice?: any;
165
- maxFeePerGas?: any;
166
- maxPriorityFeePerGas?: any;
167
- gas?: any;
168
- input?: any;
169
- creates?: any;
170
- raw?: any;
171
- publicKey?: any;
172
- chainId?: any;
173
- standardV?: any;
174
- v?: any;
175
- r?: any;
176
- s?: any;
177
- accessList?: any;
178
- transactionType?: any;
179
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, DispatchError>>>;
180
- /**
181
- * Generic call
182
- **/
183
- [key: string]: DecoratedCallBase<ApiType>;
184
- };
185
- /** 0x582211f65bb14b89/5 */
186
- ethereumRuntimeRPCApi: {
187
- /**
188
- * Returns pallet_evm::Accounts by address.
189
- **/
190
- accountBasic: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<EvmAccount>>;
191
- /**
192
- * For a given account address, returns pallet_evm::AccountCodes.
193
- **/
194
- accountCodeAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<Bytes>>;
195
- /**
196
- * Returns the converted FindAuthor::find_author authority id.
197
- **/
198
- author: AugmentedCall<ApiType, () => Observable<H160>>;
199
- /**
200
- * Returns a frame_ethereum::call response. If `estimate` is true,
201
- **/
202
- call: AugmentedCall<ApiType, (from: H160 | string | Uint8Array, to: H160 | string | Uint8Array, data: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: U256 | AnyNumber | Uint8Array, maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, estimate: bool | boolean | Uint8Array, accessList: Option<Vec<ITuple<[H160, Vec<H256>]>>> | null | Uint8Array | Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => Observable<Result<EvmCallInfoV2, DispatchError>>>;
203
- /**
204
- * Returns runtime defined pallet_evm::ChainId.
205
- **/
206
- chainId: AugmentedCall<ApiType, () => Observable<u64>>;
207
- /**
208
- * Returns a frame_ethereum::call response. If `estimate` is true,
209
- **/
210
- create: AugmentedCall<ApiType, (from: H160 | string | Uint8Array, data: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: U256 | AnyNumber | Uint8Array, maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, estimate: bool | boolean | Uint8Array, accessList: Option<Vec<ITuple<[H160, Vec<H256>]>>> | null | Uint8Array | Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => Observable<Result<EvmCreateInfoV2, DispatchError>>>;
211
- /**
212
- * Return all the current data for a block in a single runtime call.
213
- **/
214
- currentAll: AugmentedCall<ApiType, () => Observable<ITuple<[Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>]>>>;
215
- /**
216
- * Return the current block.
217
- **/
218
- currentBlock: AugmentedCall<ApiType, () => Observable<BlockV2>>;
219
- /**
220
- * Return the current receipt.
221
- **/
222
- currentReceipts: AugmentedCall<ApiType, () => Observable<Option<Vec<EthReceiptV3>>>>;
223
- /**
224
- * Return the current transaction status.
225
- **/
226
- currentTransactionStatuses: AugmentedCall<ApiType, () => Observable<Option<Vec<EthTransactionStatus>>>>;
227
- /**
228
- * Return the elasticity multiplier.
229
- **/
230
- elasticity: AugmentedCall<ApiType, () => Observable<Option<Permill>>>;
231
- /**
232
- * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
233
- **/
234
- extrinsicFilter: AugmentedCall<ApiType, (xts: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[]) => Observable<Vec<TransactionV2>>>;
235
- /**
236
- * Returns FixedGasPrice::min_gas_price
237
- **/
238
- gasPrice: AugmentedCall<ApiType, () => Observable<u256>>;
239
- /**
240
- * For a given account address and index, returns pallet_evm::AccountStorages.
241
- **/
242
- storageAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array, index: u256 | AnyNumber | Uint8Array) => Observable<H256>>;
243
- /**
244
- * Generic call
245
- **/
246
- [key: string]: DecoratedCallBase<ApiType>;
247
- };
248
- /** 0xed99c5acb25eedf5/3 */
249
- grandpaApi: {
250
- /**
251
- * Get current GRANDPA authority set id.
252
- **/
253
- currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
254
- /**
255
- * Generates a proof of key ownership for the given authority in the given set.
256
- **/
257
- generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
258
- /**
259
- * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
260
- **/
261
- grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
262
- /**
263
- * Submits an unsigned extrinsic to report an equivocation.
264
- **/
265
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
266
- setId?: any;
267
- equivocation?: any;
268
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
269
- /**
270
- * Generic call
271
- **/
272
- [key: string]: DecoratedCallBase<ApiType>;
273
- };
274
- /** 0x37e397fc7c91f5e4/2 */
275
- metadata: {
276
- /**
277
- * Returns the metadata of a runtime
278
- **/
279
- metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
280
- /**
281
- * Returns the metadata at a given version.
282
- **/
283
- metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
284
- /**
285
- * Returns the supported metadata versions.
286
- **/
287
- metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
288
- /**
289
- * Generic call
290
- **/
291
- [key: string]: DecoratedCallBase<ApiType>;
292
- };
293
- /** 0xf78b278be53f454c/2 */
294
- offchainWorkerApi: {
295
- /**
296
- * Starts the off-chain task for given block header.
297
- **/
298
- offchainWorker: AugmentedCall<ApiType, (header: Header | {
299
- parentHash?: any;
300
- number?: any;
301
- stateRoot?: any;
302
- extrinsicsRoot?: any;
303
- digest?: any;
304
- } | string | Uint8Array) => Observable<Null>>;
305
- /**
306
- * Generic call
307
- **/
308
- [key: string]: DecoratedCallBase<ApiType>;
309
- };
310
- /** 0xab3c0572291feb8b/1 */
311
- sessionKeys: {
312
- /**
313
- * Decode the given public session keys.
314
- **/
315
- decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
316
- /**
317
- * Generate a set of session keys with optionally using the given seed.
318
- **/
319
- generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
320
- /**
321
- * Generic call
322
- **/
323
- [key: string]: DecoratedCallBase<ApiType>;
324
- };
325
- /** 0xd2bc9897eed08f15/3 */
326
- taggedTransactionQueue: {
327
- /**
328
- * Validate the transaction.
329
- **/
330
- validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
331
- /**
332
- * Generic call
333
- **/
334
- [key: string]: DecoratedCallBase<ApiType>;
335
- };
336
- /** 0x37c8bb1350a9a2a8/4 */
337
- transactionPaymentApi: {
338
- /**
339
- * The transaction fee details
340
- **/
341
- queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
342
- /**
343
- * The transaction info
344
- **/
345
- queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
346
- /**
347
- * Query the output of the current LengthToFee given some input
348
- **/
349
- queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
350
- /**
351
- * Query the output of the current WeightToFee given some input
352
- **/
353
- queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
354
- refTime?: any;
355
- proofSize?: any;
356
- } | string | Uint8Array) => Observable<Balance>>;
357
- /**
358
- * Generic call
359
- **/
360
- [key: string]: DecoratedCallBase<ApiType>;
361
- };
362
- }
363
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
-
3
- require("@polkadot/api-base/types/calls");