@argonprotocol/mainchain 1.4.3-dev.5e4d8d6a → 1.4.3-dev.6de0a801

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.
@@ -15,30 +15,14 @@ import type { BlockHash } from '@polkadot/types/interfaces/chain';
15
15
  import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
16
16
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
17
17
  import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
18
- import type {
19
- AuthorityList,
20
- GrandpaEquivocationProof,
21
- SetId,
22
- } from '@polkadot/types/interfaces/grandpa';
18
+ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
23
19
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
24
20
  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';
21
+ import type { AccountId, Balance, Block, Call, ExtrinsicInclusionMode, Header, Index, Weight } from '@polkadot/types/interfaces/runtime';
35
22
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
36
23
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
37
24
  import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
38
- import type {
39
- ArgonPrimitivesEthereumEthereumLog,
40
- ArgonPrimitivesEthereumEthereumProof,
41
- } from '@polkadot/types/lookup';
25
+ import type { ArgonPrimitivesEthereumEthereumLog, ArgonPrimitivesEthereumEthereumProof } from '@polkadot/types/lookup';
42
26
  import type { IExtrinsic, Observable } from '@polkadot/types/types';
43
27
 
44
28
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -51,32 +35,18 @@ declare module '@polkadot/api-base/types/calls' {
51
35
  /**
52
36
  * The API to query account nonce (aka transaction index)
53
37
  **/
54
- accountNonce: AugmentedCall<
55
- ApiType,
56
- (accountId: AccountId | string | Uint8Array) => Observable<Index>
57
- >;
38
+ accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
58
39
  };
59
40
  /** 0x40fe3ad401f8959a/6 */
60
41
  blockBuilder: {
61
42
  /**
62
43
  * Apply the given extrinsic.
63
44
  **/
64
- applyExtrinsic: AugmentedCall<
65
- ApiType,
66
- (
67
- extrinsic: Extrinsic | IExtrinsic | string | Uint8Array,
68
- ) => Observable<ApplyExtrinsicResult>
69
- >;
45
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
70
46
  /**
71
47
  * Check that the inherents are valid.
72
48
  **/
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
- >;
49
+ checkInherents: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, data: InherentData | { data?: any } | string | Uint8Array) => Observable<CheckInherentsResult>>;
80
50
  /**
81
51
  * Finish the current block.
82
52
  **/
@@ -84,43 +54,18 @@ declare module '@polkadot/api-base/types/calls' {
84
54
  /**
85
55
  * Generate inherent extrinsics.
86
56
  **/
87
- inherentExtrinsics: AugmentedCall<
88
- ApiType,
89
- (
90
- inherent: InherentData | { data?: any } | string | Uint8Array,
91
- ) => Observable<Vec<Extrinsic>>
92
- >;
57
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
93
58
  };
94
59
  /** 0xdf6acb689907609b/5 */
95
60
  core: {
96
61
  /**
97
62
  * Execute the given block.
98
63
  **/
99
- executeBlock: AugmentedCall<
100
- ApiType,
101
- (
102
- block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
103
- ) => Observable<Null>
104
- >;
64
+ executeBlock: AugmentedCall<ApiType, (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
105
65
  /**
106
66
  * Initialize a block with the given header.
107
67
  **/
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
- >;
68
+ initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
124
69
  /**
125
70
  * Returns the version of the runtime.
126
71
  **/
@@ -131,31 +76,14 @@ declare module '@polkadot/api-base/types/calls' {
131
76
  /**
132
77
  * Preflight verify an Ethereum event log proof.
133
78
  **/
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
- >;
79
+ verifyEventLog: AugmentedCall<ApiType, (eventLog: ArgonPrimitivesEthereumEthereumLog | { address?: any; topics?: any; data?: any } | string | Uint8Array, proof: ArgonPrimitivesEthereumEthereumProof | { executionBlockProof?: any; receiptProof?: any } | string | Uint8Array) => Observable<Result<Null, ArgonPrimitivesEthereumEthereumVerifyError>>>;
149
80
  };
150
81
  /** 0xfbc577b9d747efd6/1 */
151
82
  genesisBuilder: {
152
83
  /**
153
84
  * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
154
85
  **/
155
- buildConfig: AugmentedCall<
156
- ApiType,
157
- (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>
158
- >;
86
+ buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
159
87
  /**
160
88
  * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
161
89
  **/
@@ -170,13 +98,7 @@ declare module '@polkadot/api-base/types/calls' {
170
98
  /**
171
99
  * Generates a proof of key ownership for the given authority in the given set.
172
100
  **/
173
- generateKeyOwnershipProof: AugmentedCall<
174
- ApiType,
175
- (
176
- setId: SetId | AnyNumber | Uint8Array,
177
- authorityId: AuthorityId | string | Uint8Array,
178
- ) => Observable<Option<OpaqueKeyOwnershipProof>>
179
- >;
101
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
180
102
  /**
181
103
  * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
182
104
  **/
@@ -184,17 +106,7 @@ declare module '@polkadot/api-base/types/calls' {
184
106
  /**
185
107
  * Submits an unsigned extrinsic to report an equivocation.
186
108
  **/
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
- >;
109
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
198
110
  };
199
111
  /** 0x37e397fc7c91f5e4/2 */
200
112
  metadata: {
@@ -205,10 +117,7 @@ declare module '@polkadot/api-base/types/calls' {
205
117
  /**
206
118
  * Returns the metadata at a given version.
207
119
  **/
208
- metadataAtVersion: AugmentedCall<
209
- ApiType,
210
- (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>
211
- >;
120
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
212
121
  /**
213
122
  * Returns the supported metadata versions.
214
123
  **/
@@ -219,114 +128,52 @@ declare module '@polkadot/api-base/types/calls' {
219
128
  /**
220
129
  * Starts the off-chain task for given block header.
221
130
  **/
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
- >;
131
+ offchainWorker: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
238
132
  };
239
133
  /** 0xd2bc9897eed08f15/3 */
240
134
  taggedTransactionQueue: {
241
135
  /**
242
136
  * Validate the transaction.
243
137
  **/
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
- >;
138
+ validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
252
139
  };
253
140
  /** 0x37c8bb1350a9a2a8/4 */
254
141
  transactionPaymentApi: {
255
142
  /**
256
143
  * The transaction fee details
257
144
  **/
258
- queryFeeDetails: AugmentedCall<
259
- ApiType,
260
- (
261
- uxt: Extrinsic | IExtrinsic | string | Uint8Array,
262
- len: u32 | AnyNumber | Uint8Array,
263
- ) => Observable<FeeDetails>
264
- >;
145
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
265
146
  /**
266
147
  * The transaction info
267
148
  **/
268
- queryInfo: AugmentedCall<
269
- ApiType,
270
- (
271
- uxt: Extrinsic | IExtrinsic | string | Uint8Array,
272
- len: u32 | AnyNumber | Uint8Array,
273
- ) => Observable<RuntimeDispatchInfo>
274
- >;
149
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
275
150
  /**
276
151
  * Query the output of the current LengthToFee given some input
277
152
  **/
278
- queryLengthToFee: AugmentedCall<
279
- ApiType,
280
- (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
281
- >;
153
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
282
154
  /**
283
155
  * Query the output of the current WeightToFee given some input
284
156
  **/
285
- queryWeightToFee: AugmentedCall<
286
- ApiType,
287
- (
288
- weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
289
- ) => Observable<Balance>
290
- >;
157
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
291
158
  };
292
159
  /** 0xf3ff14d5ab527059/3 */
293
160
  transactionPaymentCallApi: {
294
161
  /**
295
162
  * The call fee details
296
163
  **/
297
- queryCallFeeDetails: AugmentedCall<
298
- ApiType,
299
- (
300
- call: Call | IMethod | string | Uint8Array,
301
- len: u32 | AnyNumber | Uint8Array,
302
- ) => Observable<FeeDetails>
303
- >;
164
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
304
165
  /**
305
166
  * The call info
306
167
  **/
307
- queryCallInfo: AugmentedCall<
308
- ApiType,
309
- (
310
- call: Call | IMethod | string | Uint8Array,
311
- len: u32 | AnyNumber | Uint8Array,
312
- ) => Observable<RuntimeDispatchInfo>
313
- >;
168
+ queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
314
169
  /**
315
170
  * Query the output of the current LengthToFee given some input
316
171
  **/
317
- queryLengthToFee: AugmentedCall<
318
- ApiType,
319
- (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
320
- >;
172
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
321
173
  /**
322
174
  * Query the output of the current WeightToFee given some input
323
175
  **/
324
- queryWeightToFee: AugmentedCall<
325
- ApiType,
326
- (
327
- weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
328
- ) => Observable<Balance>
329
- >;
176
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>>;
330
177
  };
331
178
  } // AugmentedCalls
332
179
  } // declare module