@argonprotocol/mainchain 1.4.3-dev.b97b3c4f → 1.4.3-dev.caca6309

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 (41) hide show
  1. package/browser/index.d.ts +1463 -1797
  2. package/browser/index.js +1209 -118
  3. package/browser/index.js.map +1 -1
  4. package/lib/chunk-3KFMHNNJ.cjs +706 -0
  5. package/lib/chunk-3KFMHNNJ.cjs.map +1 -0
  6. package/lib/chunk-D3FCDADJ.cjs +175 -0
  7. package/lib/chunk-D3FCDADJ.cjs.map +1 -0
  8. package/lib/chunk-RF6NOJOR.js +706 -0
  9. package/lib/chunk-RF6NOJOR.js.map +1 -0
  10. package/lib/chunk-YPXWOFUS.js +175 -0
  11. package/lib/chunk-YPXWOFUS.js.map +1 -0
  12. package/lib/index.cjs +1238 -118
  13. package/lib/index.cjs.map +1 -1
  14. package/lib/index.d.cts +1463 -1797
  15. package/lib/index.d.ts +1463 -1797
  16. package/lib/index.js +1238 -118
  17. package/lib/index.js.map +1 -1
  18. package/lib/lib-CU2JUZW6.cjs +403 -0
  19. package/lib/lib-CU2JUZW6.cjs.map +1 -0
  20. package/lib/lib-P3PEMYOB.js +403 -0
  21. package/lib/lib-P3PEMYOB.js.map +1 -0
  22. package/lib/setPreset-NCTHSXWD.js +15 -0
  23. package/lib/setPreset-NCTHSXWD.js.map +1 -0
  24. package/lib/setPreset-XHOPATBO.cjs +15 -0
  25. package/lib/setPreset-XHOPATBO.cjs.map +1 -0
  26. package/package.json +31 -25
  27. package/src/interfaces/augment-api-consts.ts +603 -0
  28. package/src/interfaces/augment-api-errors.ts +1175 -0
  29. package/src/interfaces/augment-api-events.ts +1816 -0
  30. package/src/interfaces/augment-api-query.ts +1545 -0
  31. package/src/interfaces/augment-api-rpc.ts +1133 -0
  32. package/src/interfaces/augment-api-runtime.ts +332 -0
  33. package/src/interfaces/augment-api-tx.ts +2184 -0
  34. package/src/interfaces/augment-api.ts +10 -0
  35. package/src/interfaces/augment-types.ts +2688 -0
  36. package/src/interfaces/definitions.ts +57 -0
  37. package/src/interfaces/ethereum/index.ts +4 -0
  38. package/src/interfaces/ethereum/types.ts +54 -0
  39. package/src/interfaces/lookup.ts +3768 -0
  40. package/src/interfaces/registry.ts +558 -0
  41. package/src/interfaces/types-lookup.ts +4345 -0
@@ -0,0 +1,332 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import '@polkadot/api-base/types/calls';
7
+
8
+ import type { ArgonPrimitivesEthereumEthereumVerifyError } from '@argonprotocol/mainchain/interfaces/ethereum';
9
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
10
+ import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
11
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
12
+ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
13
+ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
14
+ import type { BlockHash } from '@polkadot/types/interfaces/chain';
15
+ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
16
+ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
17
+ import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
18
+ import type {
19
+ AuthorityList,
20
+ GrandpaEquivocationProof,
21
+ SetId,
22
+ } from '@polkadot/types/interfaces/grandpa';
23
+ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
24
+ import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
25
+ import type {
26
+ AccountId,
27
+ Balance,
28
+ Block,
29
+ Call,
30
+ ExtrinsicInclusionMode,
31
+ Header,
32
+ Index,
33
+ Weight,
34
+ } from '@polkadot/types/interfaces/runtime';
35
+ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
36
+ import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
37
+ import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
38
+ import type {
39
+ ArgonPrimitivesEthereumEthereumLog,
40
+ ArgonPrimitivesEthereumEthereumProof,
41
+ } from '@polkadot/types/lookup';
42
+ import type { IExtrinsic, Observable } from '@polkadot/types/types';
43
+
44
+ export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
45
+ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
46
+
47
+ declare module '@polkadot/api-base/types/calls' {
48
+ interface AugmentedCalls<ApiType extends ApiTypes> {
49
+ /** 0xbc9d89904f5b923f/1 */
50
+ accountNonceApi: {
51
+ /**
52
+ * The API to query account nonce (aka transaction index)
53
+ **/
54
+ accountNonce: AugmentedCall<
55
+ ApiType,
56
+ (accountId: AccountId | string | Uint8Array) => Observable<Index>
57
+ >;
58
+ };
59
+ /** 0x40fe3ad401f8959a/6 */
60
+ blockBuilder: {
61
+ /**
62
+ * Apply the given extrinsic.
63
+ **/
64
+ applyExtrinsic: AugmentedCall<
65
+ ApiType,
66
+ (
67
+ extrinsic: Extrinsic | IExtrinsic | string | Uint8Array,
68
+ ) => Observable<ApplyExtrinsicResult>
69
+ >;
70
+ /**
71
+ * Check that the inherents are valid.
72
+ **/
73
+ checkInherents: AugmentedCall<
74
+ ApiType,
75
+ (
76
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
77
+ data: InherentData | { data?: any } | string | Uint8Array,
78
+ ) => Observable<CheckInherentsResult>
79
+ >;
80
+ /**
81
+ * Finish the current block.
82
+ **/
83
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
84
+ /**
85
+ * Generate inherent extrinsics.
86
+ **/
87
+ inherentExtrinsics: AugmentedCall<
88
+ ApiType,
89
+ (
90
+ inherent: InherentData | { data?: any } | string | Uint8Array,
91
+ ) => Observable<Vec<Extrinsic>>
92
+ >;
93
+ };
94
+ /** 0xdf6acb689907609b/5 */
95
+ core: {
96
+ /**
97
+ * Execute the given block.
98
+ **/
99
+ executeBlock: AugmentedCall<
100
+ ApiType,
101
+ (
102
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
103
+ ) => Observable<Null>
104
+ >;
105
+ /**
106
+ * Initialize a block with the given header.
107
+ **/
108
+ initializeBlock: AugmentedCall<
109
+ ApiType,
110
+ (
111
+ header:
112
+ | Header
113
+ | {
114
+ parentHash?: any;
115
+ number?: any;
116
+ stateRoot?: any;
117
+ extrinsicsRoot?: any;
118
+ digest?: any;
119
+ }
120
+ | string
121
+ | Uint8Array,
122
+ ) => Observable<ExtrinsicInclusionMode>
123
+ >;
124
+ /**
125
+ * Returns the version of the runtime.
126
+ **/
127
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
128
+ };
129
+ /** 0x97c56de838cad0ef/1 */
130
+ ethereumApis: {
131
+ /**
132
+ * Preflight verify an Ethereum event log proof.
133
+ **/
134
+ verifyEventLog: AugmentedCall<
135
+ ApiType,
136
+ (
137
+ eventLog:
138
+ | ArgonPrimitivesEthereumEthereumLog
139
+ | { address?: any; topics?: any; data?: any }
140
+ | string
141
+ | Uint8Array,
142
+ proof:
143
+ | ArgonPrimitivesEthereumEthereumProof
144
+ | { executionBlockProof?: any; receiptProof?: any }
145
+ | string
146
+ | Uint8Array,
147
+ ) => Observable<Result<Null, ArgonPrimitivesEthereumEthereumVerifyError>>
148
+ >;
149
+ };
150
+ /** 0xfbc577b9d747efd6/1 */
151
+ genesisBuilder: {
152
+ /**
153
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
154
+ **/
155
+ buildConfig: AugmentedCall<
156
+ ApiType,
157
+ (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>
158
+ >;
159
+ /**
160
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
161
+ **/
162
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
163
+ };
164
+ /** 0xed99c5acb25eedf5/3 */
165
+ grandpaApi: {
166
+ /**
167
+ * Get current GRANDPA authority set id.
168
+ **/
169
+ currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
170
+ /**
171
+ * Generates a proof of key ownership for the given authority in the given set.
172
+ **/
173
+ generateKeyOwnershipProof: AugmentedCall<
174
+ ApiType,
175
+ (
176
+ setId: SetId | AnyNumber | Uint8Array,
177
+ authorityId: AuthorityId | string | Uint8Array,
178
+ ) => Observable<Option<OpaqueKeyOwnershipProof>>
179
+ >;
180
+ /**
181
+ * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
182
+ **/
183
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
184
+ /**
185
+ * Submits an unsigned extrinsic to report an equivocation.
186
+ **/
187
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<
188
+ ApiType,
189
+ (
190
+ equivocationProof:
191
+ | GrandpaEquivocationProof
192
+ | { setId?: any; equivocation?: any }
193
+ | string
194
+ | Uint8Array,
195
+ keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array,
196
+ ) => Observable<Option<Null>>
197
+ >;
198
+ };
199
+ /** 0x37e397fc7c91f5e4/2 */
200
+ metadata: {
201
+ /**
202
+ * Returns the metadata of a runtime
203
+ **/
204
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
205
+ /**
206
+ * Returns the metadata at a given version.
207
+ **/
208
+ metadataAtVersion: AugmentedCall<
209
+ ApiType,
210
+ (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>
211
+ >;
212
+ /**
213
+ * Returns the supported metadata versions.
214
+ **/
215
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
216
+ };
217
+ /** 0xf78b278be53f454c/2 */
218
+ offchainWorkerApi: {
219
+ /**
220
+ * Starts the off-chain task for given block header.
221
+ **/
222
+ offchainWorker: AugmentedCall<
223
+ ApiType,
224
+ (
225
+ header:
226
+ | Header
227
+ | {
228
+ parentHash?: any;
229
+ number?: any;
230
+ stateRoot?: any;
231
+ extrinsicsRoot?: any;
232
+ digest?: any;
233
+ }
234
+ | string
235
+ | Uint8Array,
236
+ ) => Observable<Null>
237
+ >;
238
+ };
239
+ /** 0xd2bc9897eed08f15/3 */
240
+ taggedTransactionQueue: {
241
+ /**
242
+ * Validate the transaction.
243
+ **/
244
+ validateTransaction: AugmentedCall<
245
+ ApiType,
246
+ (
247
+ source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array,
248
+ tx: Extrinsic | IExtrinsic | string | Uint8Array,
249
+ blockHash: BlockHash | string | Uint8Array,
250
+ ) => Observable<TransactionValidity>
251
+ >;
252
+ };
253
+ /** 0x37c8bb1350a9a2a8/4 */
254
+ transactionPaymentApi: {
255
+ /**
256
+ * The transaction fee details
257
+ **/
258
+ queryFeeDetails: AugmentedCall<
259
+ ApiType,
260
+ (
261
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
262
+ len: u32 | AnyNumber | Uint8Array,
263
+ ) => Observable<FeeDetails>
264
+ >;
265
+ /**
266
+ * The transaction info
267
+ **/
268
+ queryInfo: AugmentedCall<
269
+ ApiType,
270
+ (
271
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
272
+ len: u32 | AnyNumber | Uint8Array,
273
+ ) => Observable<RuntimeDispatchInfo>
274
+ >;
275
+ /**
276
+ * Query the output of the current LengthToFee given some input
277
+ **/
278
+ queryLengthToFee: AugmentedCall<
279
+ ApiType,
280
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
281
+ >;
282
+ /**
283
+ * Query the output of the current WeightToFee given some input
284
+ **/
285
+ queryWeightToFee: AugmentedCall<
286
+ ApiType,
287
+ (
288
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
289
+ ) => Observable<Balance>
290
+ >;
291
+ };
292
+ /** 0xf3ff14d5ab527059/3 */
293
+ transactionPaymentCallApi: {
294
+ /**
295
+ * The call fee details
296
+ **/
297
+ queryCallFeeDetails: AugmentedCall<
298
+ ApiType,
299
+ (
300
+ call: Call | IMethod | string | Uint8Array,
301
+ len: u32 | AnyNumber | Uint8Array,
302
+ ) => Observable<FeeDetails>
303
+ >;
304
+ /**
305
+ * The call info
306
+ **/
307
+ queryCallInfo: AugmentedCall<
308
+ ApiType,
309
+ (
310
+ call: Call | IMethod | string | Uint8Array,
311
+ len: u32 | AnyNumber | Uint8Array,
312
+ ) => Observable<RuntimeDispatchInfo>
313
+ >;
314
+ /**
315
+ * Query the output of the current LengthToFee given some input
316
+ **/
317
+ queryLengthToFee: AugmentedCall<
318
+ ApiType,
319
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
320
+ >;
321
+ /**
322
+ * Query the output of the current WeightToFee given some input
323
+ **/
324
+ queryWeightToFee: AugmentedCall<
325
+ ApiType,
326
+ (
327
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
328
+ ) => Observable<Balance>
329
+ >;
330
+ };
331
+ } // AugmentedCalls
332
+ } // declare module