@argonprotocol/mainchain 1.4.3-dev.a18227d4 → 1.4.3-dev.c80f97c5

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.
@@ -0,0 +1,1554 @@
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/storage';
7
+
8
+ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
9
+ import type {
10
+ BTreeMap,
11
+ BTreeSet,
12
+ Bytes,
13
+ Null,
14
+ Option,
15
+ U8aFixed,
16
+ Vec,
17
+ bool,
18
+ u128,
19
+ u16,
20
+ u32,
21
+ u64,
22
+ u8,
23
+ } from '@polkadot/types-codec';
24
+ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
25
+ import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
26
+ import type {
27
+ ArgonNotaryAuditErrorVerifyError,
28
+ ArgonPrimitivesBalanceChangeAccountOrigin,
29
+ ArgonPrimitivesBitcoinBitcoinBlock,
30
+ ArgonPrimitivesBitcoinBitcoinNetwork,
31
+ ArgonPrimitivesBitcoinBitcoinXPub,
32
+ ArgonPrimitivesBitcoinUtxoRef,
33
+ ArgonPrimitivesBitcoinUtxoValue,
34
+ ArgonPrimitivesBlockSealBlockPayout,
35
+ ArgonPrimitivesBlockSealMiningBidStats,
36
+ ArgonPrimitivesBlockSealMiningRegistration,
37
+ ArgonPrimitivesBlockSealMiningSlotConfig,
38
+ ArgonPrimitivesDigestsBlockVoteDigest,
39
+ ArgonPrimitivesDigestsDigestset,
40
+ ArgonPrimitivesDigestsFrameInfo,
41
+ ArgonPrimitivesDigestsNotebookDigest,
42
+ ArgonPrimitivesDomainZoneRecord,
43
+ ArgonPrimitivesEthereumEthereumBeaconPreset,
44
+ ArgonPrimitivesForkPower,
45
+ ArgonPrimitivesInherentsBlockSealInherent,
46
+ ArgonPrimitivesNotaryNotaryMeta,
47
+ ArgonPrimitivesNotaryNotaryNotebookKeyDetails,
48
+ ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails,
49
+ ArgonPrimitivesNotaryNotaryRecord,
50
+ ArgonPrimitivesProvidersBlockSealerInfo,
51
+ ArgonPrimitivesTickTicker,
52
+ ArgonPrimitivesVault,
53
+ FrameSupportDispatchPerDispatchClassWeight,
54
+ FrameSupportTokensFungibleImbalance,
55
+ FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
56
+ FrameSupportTokensMiscIdAmountRuntimeHoldReason,
57
+ FrameSystemAccountInfo,
58
+ FrameSystemCodeUpgradeAuthorization,
59
+ FrameSystemEventRecord,
60
+ FrameSystemLastRuntimeUpgradeInfo,
61
+ FrameSystemPhase,
62
+ PalletBalancesAccountData,
63
+ PalletBalancesBalanceLock,
64
+ PalletBalancesReserveData,
65
+ PalletBitcoinLocksLockReleaseRequest,
66
+ PalletBitcoinLocksLockedBitcoin,
67
+ PalletBitcoinLocksOrphanedUtxo,
68
+ PalletCrosschainTransferChainConfig,
69
+ PalletCrosschainTransferSourceChain,
70
+ PalletDomainsDomainRegistration,
71
+ PalletEthereumVerifierBasicOperatingMode,
72
+ PalletEthereumVerifierExecutionHeaderAnchor,
73
+ PalletEthereumVerifierFinalizedBeaconHeaderState,
74
+ PalletEthereumVerifierForkVersions,
75
+ PalletEthereumVerifierSyncCommitteePrepared,
76
+ PalletGrandpaStoredPendingChange,
77
+ PalletGrandpaStoredState,
78
+ PalletLocalchainTransferQueuedTransferOut,
79
+ PalletMiningSlotMinerNonceScoring,
80
+ PalletMintMintAction,
81
+ PalletMultisigMultisig,
82
+ PalletOperationalAccountsOperationalAccount,
83
+ PalletOperationalAccountsRewardsConfig,
84
+ PalletPriceIndexCpiMeasurementBucket,
85
+ PalletPriceIndexPriceIndex,
86
+ PalletProxyAnnouncement,
87
+ PalletProxyProxyDefinition,
88
+ PalletTransactionPaymentReleases,
89
+ PalletTreasuryBondLot,
90
+ PalletTreasuryBondLotSummary,
91
+ PalletTreasuryFrameVaultCapital,
92
+ PalletVaultsRecentCapacityDrop,
93
+ PalletVaultsVaultFrameRevenue,
94
+ SpConsensusGrandpaAppPublic,
95
+ SpRuntimeDigest,
96
+ SpWeightsWeightV2Weight,
97
+ } from '@polkadot/types/lookup';
98
+ import type { Observable } from '@polkadot/types/types';
99
+
100
+ export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
101
+ export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
102
+
103
+ declare module '@polkadot/api-base/types/storage' {
104
+ interface AugmentedQueries<ApiType extends ApiTypes> {
105
+ authorship: {
106
+ /**
107
+ * Author of current block.
108
+ **/
109
+ author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
110
+ };
111
+ balances: {
112
+ /**
113
+ * The Balances pallet example of storing the balance of an account.
114
+ *
115
+ * # Example
116
+ *
117
+ * ```nocompile
118
+ * impl pallet_balances::Config for Runtime {
119
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
120
+ * }
121
+ * ```
122
+ *
123
+ * You can also store the balance of an account in the `System` pallet.
124
+ *
125
+ * # Example
126
+ *
127
+ * ```nocompile
128
+ * impl pallet_balances::Config for Runtime {
129
+ * type AccountStore = System
130
+ * }
131
+ * ```
132
+ *
133
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
134
+ * `frame_system` data alongside the account data contrary to storing account balances in the
135
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
136
+ * NOTE: This is only used in the case that this pallet is used to store balances.
137
+ **/
138
+ account: AugmentedQuery<
139
+ ApiType,
140
+ (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>,
141
+ [AccountId32]
142
+ >;
143
+ /**
144
+ * Freeze locks on account balances.
145
+ **/
146
+ freezes: AugmentedQuery<
147
+ ApiType,
148
+ (
149
+ arg: AccountId32 | string | Uint8Array,
150
+ ) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>,
151
+ [AccountId32]
152
+ >;
153
+ /**
154
+ * Holds on account balances.
155
+ **/
156
+ holds: AugmentedQuery<
157
+ ApiType,
158
+ (
159
+ arg: AccountId32 | string | Uint8Array,
160
+ ) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>,
161
+ [AccountId32]
162
+ >;
163
+ /**
164
+ * The total units of outstanding deactivated balance in the system.
165
+ **/
166
+ inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
167
+ /**
168
+ * Any liquidity locks on some account balances.
169
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
170
+ *
171
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
172
+ **/
173
+ locks: AugmentedQuery<
174
+ ApiType,
175
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>,
176
+ [AccountId32]
177
+ >;
178
+ /**
179
+ * Named reserves on some account balances.
180
+ *
181
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
182
+ **/
183
+ reserves: AugmentedQuery<
184
+ ApiType,
185
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>,
186
+ [AccountId32]
187
+ >;
188
+ /**
189
+ * The total units issued in the system.
190
+ **/
191
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
192
+ };
193
+ bitcoinLocks: {
194
+ /**
195
+ * Utxos that have been requested to be cosigned for releasing
196
+ **/
197
+ lockCosignDueByFrame: AugmentedQuery<
198
+ ApiType,
199
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
200
+ [u64]
201
+ >;
202
+ /**
203
+ * Expiration of bitcoin locks by bitcoin height. Funds are burned since the user did not
204
+ * unlock it. Bitcoin will go to vault
205
+ **/
206
+ lockExpirationsByBitcoinHeight: AugmentedQuery<
207
+ ApiType,
208
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
209
+ [u64]
210
+ >;
211
+ /**
212
+ * Stores the block number where a release was cosigned by the vault.
213
+ **/
214
+ lockReleaseCosignHeightById: AugmentedQuery<
215
+ ApiType,
216
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>,
217
+ [u64]
218
+ >;
219
+ /**
220
+ * Stores bitcoin locks that have requested to be released
221
+ **/
222
+ lockReleaseRequestsByUtxoId: AugmentedQuery<
223
+ ApiType,
224
+ (
225
+ arg: u64 | AnyNumber | Uint8Array,
226
+ ) => Observable<Option<PalletBitcoinLocksLockReleaseRequest>>,
227
+ [u64]
228
+ >;
229
+ /**
230
+ * Stores bitcoin utxos that have requested to be released
231
+ **/
232
+ locksByUtxoId: AugmentedQuery<
233
+ ApiType,
234
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>,
235
+ [u64]
236
+ >;
237
+ /**
238
+ * History of microgons per btc
239
+ **/
240
+ microgonPerBtcHistory: AugmentedQuery<
241
+ ApiType,
242
+ () => Observable<Vec<ITuple<[u64, u128]>>>,
243
+ []
244
+ >;
245
+ /**
246
+ * The minimum number of satoshis that can be locked
247
+ **/
248
+ minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
249
+ nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
250
+ /**
251
+ * Expiration of orphaned utxo refs by user account
252
+ **/
253
+ orphanedUtxoExpirationByFrame: AugmentedQuery<
254
+ ApiType,
255
+ (
256
+ arg: u64 | AnyNumber | Uint8Array,
257
+ ) => Observable<BTreeSet<ITuple<[AccountId32, ArgonPrimitivesBitcoinUtxoRef]>>>,
258
+ [u64]
259
+ >;
260
+ /**
261
+ * Mismatched utxos that were sent with invalid amounts to a locked bitcoin
262
+ **/
263
+ orphanedUtxosByAccount: AugmentedQuery<
264
+ ApiType,
265
+ (
266
+ arg1: AccountId32 | string | Uint8Array,
267
+ arg2:
268
+ | ArgonPrimitivesBitcoinUtxoRef
269
+ | { txid?: any; outputIndex?: any }
270
+ | string
271
+ | Uint8Array,
272
+ ) => Observable<Option<PalletBitcoinLocksOrphanedUtxo>>,
273
+ [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
274
+ >;
275
+ /**
276
+ * Index of active UTXO IDs per vault
277
+ **/
278
+ utxoIdsByVaultId: AugmentedQuery<
279
+ ApiType,
280
+ (
281
+ arg1: u32 | AnyNumber | Uint8Array,
282
+ arg2: u64 | AnyNumber | Uint8Array,
283
+ ) => Observable<Option<Null>>,
284
+ [u32, u64]
285
+ >;
286
+ };
287
+ bitcoinUtxos: {
288
+ /**
289
+ * The genesis set bitcoin network that this chain is tied to
290
+ **/
291
+ bitcoinNetwork: AugmentedQuery<
292
+ ApiType,
293
+ () => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>,
294
+ []
295
+ >;
296
+ /**
297
+ * Candidate UTXOs associated with a lock (mismatches, extra funding, etc.).
298
+ **/
299
+ candidateUtxoRefsByUtxoId: AugmentedQuery<
300
+ ApiType,
301
+ (
302
+ arg: u64 | AnyNumber | Uint8Array,
303
+ ) => Observable<BTreeMap<ArgonPrimitivesBitcoinUtxoRef, u64>>,
304
+ [u64]
305
+ >;
306
+ /**
307
+ * An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
308
+ **/
309
+ confirmedBitcoinBlockTip: AugmentedQuery<
310
+ ApiType,
311
+ () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
312
+ []
313
+ >;
314
+ /**
315
+ * Pending funding entries that have expired and are awaiting bounded cleanup.
316
+ **/
317
+ expiredPendingFunding: AugmentedQuery<
318
+ ApiType,
319
+ () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
320
+ []
321
+ >;
322
+ /**
323
+ * Check if the inherent was included
324
+ **/
325
+ inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
326
+ /**
327
+ * Locked Bitcoin UTXOs that have been funded with a UtxoRef from the Bitcoin network and
328
+ * amounts within the MinimumSatoshiThreshold of the expected. If a Bitcoin UTXO is moved
329
+ * before the expiration block, the funds are burned and the UTXO is unlocked.
330
+ **/
331
+ lockedUtxos: AugmentedQuery<
332
+ ApiType,
333
+ (
334
+ arg:
335
+ | ArgonPrimitivesBitcoinUtxoRef
336
+ | { txid?: any; outputIndex?: any }
337
+ | string
338
+ | Uint8Array,
339
+ ) => Observable<Option<ArgonPrimitivesBitcoinUtxoValue>>,
340
+ [ArgonPrimitivesBitcoinUtxoRef]
341
+ >;
342
+ /**
343
+ * Bitcoin locks that are pending full funding on the bitcoin network
344
+ **/
345
+ locksPendingFunding: AugmentedQuery<
346
+ ApiType,
347
+ () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
348
+ []
349
+ >;
350
+ /**
351
+ * Bitcoin Oracle Operator Account
352
+ **/
353
+ oracleOperatorAccount: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
354
+ previousBitcoinBlockTip: AugmentedQuery<
355
+ ApiType,
356
+ () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
357
+ []
358
+ >;
359
+ /**
360
+ * The last synched bitcoin block
361
+ **/
362
+ synchedBitcoinBlock: AugmentedQuery<
363
+ ApiType,
364
+ () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
365
+ []
366
+ >;
367
+ /**
368
+ * Stores if parent block had a confirmed bitcoin block
369
+ **/
370
+ tempParentHasSyncState: AugmentedQuery<ApiType, () => Observable<bool>, []>;
371
+ /**
372
+ * A mapping of utxo id to the confirmed utxo reference
373
+ **/
374
+ utxoIdToFundingUtxoRef: AugmentedQuery<
375
+ ApiType,
376
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>,
377
+ [u64]
378
+ >;
379
+ };
380
+ blockRewards: {
381
+ /**
382
+ * The current scaled block rewards. It will adjust based on the argon movement away from price
383
+ * target
384
+ **/
385
+ argonsPerBlock: AugmentedQuery<ApiType, () => Observable<u128>, []>;
386
+ blockFees: AugmentedQuery<ApiType, () => Observable<u128>, []>;
387
+ /**
388
+ * The cohort block rewards by mining cohort (ie, with the same starting frame id)
389
+ **/
390
+ blockRewardsByCohort: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u128]>>>, []>;
391
+ /**
392
+ * Bool if block rewards are paused
393
+ **/
394
+ blockRewardsPaused: AugmentedQuery<ApiType, () => Observable<bool>, []>;
395
+ /**
396
+ * Historical payouts by block number
397
+ **/
398
+ payoutsByBlock: AugmentedQuery<
399
+ ApiType,
400
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ArgonPrimitivesBlockSealBlockPayout>>,
401
+ [u32]
402
+ >;
403
+ };
404
+ blockSeal: {
405
+ /**
406
+ * The calculated strength in the runtime so that it can be
407
+ * upgraded, but is used by the node to determine which fork to follow
408
+ **/
409
+ blockForkPower: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesForkPower>, []>;
410
+ /**
411
+ * Is the block from a vote seal?
412
+ **/
413
+ isBlockFromVoteSeal: AugmentedQuery<ApiType, () => Observable<bool>, []>;
414
+ lastBlockSealerInfo: AugmentedQuery<
415
+ ApiType,
416
+ () => Observable<Option<ArgonPrimitivesProvidersBlockSealerInfo>>,
417
+ []
418
+ >;
419
+ lastTickWithVoteSeal: AugmentedQuery<ApiType, () => Observable<u64>, []>;
420
+ /**
421
+ * The calculated parent voting key for a block. Refers to the Notebook BlockVote Revealed
422
+ * Secret + VotesMerkleRoot of the parent block notebooks.
423
+ **/
424
+ parentVotingKey: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []>;
425
+ /**
426
+ * Ensures only a single inherent is applied
427
+ **/
428
+ tempSealInherent: AugmentedQuery<
429
+ ApiType,
430
+ () => Observable<Option<ArgonPrimitivesInherentsBlockSealInherent>>,
431
+ []
432
+ >;
433
+ /**
434
+ * The count of votes in the last 3 ticks
435
+ **/
436
+ votesInPast3Ticks: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []>;
437
+ };
438
+ blockSealSpec: {
439
+ /**
440
+ * The current vote minimum of the chain. Block votes use this minimum to determine the
441
+ * minimum amount of tax or compute needed to create a vote. It is adjusted up or down to
442
+ * target a max number of votes
443
+ **/
444
+ currentComputeDifficulty: AugmentedQuery<ApiType, () => Observable<u128>, []>;
445
+ /**
446
+ * The key K is selected to be the hash of a block in the blockchain - this block is called
447
+ * the 'key block'. For optimal mining and verification performance, the key should
448
+ * change every day
449
+ **/
450
+ currentComputeKeyBlock: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []>;
451
+ /**
452
+ * The current vote minimum of the chain. Block votes use this minimum to determine the
453
+ * minimum amount of tax or compute needed to create a vote. It is adjusted up or down to
454
+ * target a max number of votes
455
+ **/
456
+ currentVoteMinimum: AugmentedQuery<ApiType, () => Observable<u128>, []>;
457
+ pastBlockVotes: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32, u128]>>>, []>;
458
+ pastComputeBlockTimes: AugmentedQuery<ApiType, () => Observable<Vec<u64>>, []>;
459
+ /**
460
+ * The timestamp from the previous block
461
+ **/
462
+ previousBlockTimestamp: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
463
+ tempBlockTimestamp: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
464
+ /**
465
+ * Temporary store the vote digest
466
+ **/
467
+ tempBlockVoteDigest: AugmentedQuery<
468
+ ApiType,
469
+ () => Observable<Option<ArgonPrimitivesDigestsBlockVoteDigest>>,
470
+ []
471
+ >;
472
+ /**
473
+ * Temporary store of any current tick notebooks included in this block (vs tick)
474
+ **/
475
+ tempCurrentTickNotebooksInBlock: AugmentedQuery<
476
+ ApiType,
477
+ () => Observable<Vec<ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails>>,
478
+ []
479
+ >;
480
+ /**
481
+ * Keeps the last 3 vote minimums. The first one applies to the current block.
482
+ **/
483
+ voteMinimumHistory: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
484
+ };
485
+ crosschainTransfer: {
486
+ /**
487
+ * Config accepted for each supported source chain.
488
+ **/
489
+ chainConfigBySourceChain: AugmentedQuery<
490
+ ApiType,
491
+ (
492
+ arg: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
493
+ ) => Observable<Option<PalletCrosschainTransferChainConfig>>,
494
+ [PalletCrosschainTransferSourceChain]
495
+ >;
496
+ /**
497
+ * Accounts whose recent-transfer evidence expires at a given tick.
498
+ **/
499
+ inboundTransfersExpiringAt: AugmentedQuery<
500
+ ApiType,
501
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>,
502
+ [u64]
503
+ >;
504
+ /**
505
+ * Latest tick whose recent-transfer expiration bucket was cleaned up.
506
+ **/
507
+ lastTransferExpiryCleanupTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
508
+ /**
509
+ * Latest accepted nonce for each `(source_chain, from)` pair.
510
+ **/
511
+ nonceBySourceAccount: AugmentedQuery<
512
+ ApiType,
513
+ (
514
+ arg:
515
+ | ITuple<[PalletCrosschainTransferSourceChain, H160]>
516
+ | [
517
+ PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
518
+ H160 | string | Uint8Array,
519
+ ],
520
+ ) => Observable<Option<u64>>,
521
+ [ITuple<[PalletCrosschainTransferSourceChain, H160]>]
522
+ >;
523
+ /**
524
+ * Count of still-retained qualifying Argon transfers for each local account.
525
+ **/
526
+ recentArgonTransfersByAccount: AugmentedQuery<
527
+ ApiType,
528
+ (arg: AccountId32 | string | Uint8Array) => Observable<u32>,
529
+ [AccountId32]
530
+ >;
531
+ };
532
+ digests: {
533
+ tempDigests: AugmentedQuery<
534
+ ApiType,
535
+ () => Observable<Option<ArgonPrimitivesDigestsDigestset>>,
536
+ []
537
+ >;
538
+ };
539
+ domains: {
540
+ expiringDomainsByBlock: AugmentedQuery<
541
+ ApiType,
542
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<H256>>,
543
+ [u64]
544
+ >;
545
+ registeredDomains: AugmentedQuery<
546
+ ApiType,
547
+ (arg: H256 | string | Uint8Array) => Observable<Option<PalletDomainsDomainRegistration>>,
548
+ [H256]
549
+ >;
550
+ zoneRecordsByDomain: AugmentedQuery<
551
+ ApiType,
552
+ (arg: H256 | string | Uint8Array) => Observable<Option<ArgonPrimitivesDomainZoneRecord>>,
553
+ [H256]
554
+ >;
555
+ };
556
+ ethereumVerifier: {
557
+ /**
558
+ * Chain-configured beacon preset expected by clients that submit verifier updates.
559
+ **/
560
+ beaconPreset: AugmentedQuery<
561
+ ApiType,
562
+ () => Observable<ArgonPrimitivesEthereumEthereumBeaconPreset>,
563
+ []
564
+ >;
565
+ /**
566
+ * Sync committee for current period
567
+ **/
568
+ currentSyncCommittee: AugmentedQuery<
569
+ ApiType,
570
+ () => Observable<PalletEthereumVerifierSyncCommitteePrepared>,
571
+ []
572
+ >;
573
+ /**
574
+ * Execution header anchors: current position in ring buffer.
575
+ **/
576
+ executionHeaderAnchorIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
577
+ /**
578
+ * Execution header anchors: mapping of ring buffer index to a pruning candidate.
579
+ **/
580
+ executionHeaderAnchorMapping: AugmentedQuery<
581
+ ApiType,
582
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>,
583
+ [u32]
584
+ >;
585
+ /**
586
+ * Retained execution-layer header anchors by execution block hash.
587
+ **/
588
+ executionHeaderAnchors: AugmentedQuery<
589
+ ApiType,
590
+ (
591
+ arg: H256 | string | Uint8Array,
592
+ ) => Observable<Option<PalletEthereumVerifierExecutionHeaderAnchor>>,
593
+ [H256]
594
+ >;
595
+ /**
596
+ * Beacon state by finalized block root
597
+ **/
598
+ finalizedBeaconState: AugmentedQuery<
599
+ ApiType,
600
+ (
601
+ arg: H256 | string | Uint8Array,
602
+ ) => Observable<Option<PalletEthereumVerifierFinalizedBeaconHeaderState>>,
603
+ [H256]
604
+ >;
605
+ /**
606
+ * Finalized Headers: Current position in ring buffer
607
+ **/
608
+ finalizedBeaconStateIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
609
+ /**
610
+ * Finalized Headers: Mapping of ring buffer index to a pruning candidate
611
+ **/
612
+ finalizedBeaconStateMapping: AugmentedQuery<
613
+ ApiType,
614
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>,
615
+ [u32]
616
+ >;
617
+ /**
618
+ * Fork-version schedule used for sync-committee signing domains and beacon state paths.
619
+ **/
620
+ forkVersionSchedule: AugmentedQuery<
621
+ ApiType,
622
+ () => Observable<Option<PalletEthereumVerifierForkVersions>>,
623
+ []
624
+ >;
625
+ /**
626
+ * Latest imported checkpoint root
627
+ **/
628
+ initialCheckpointRoot: AugmentedQuery<ApiType, () => Observable<H256>, []>;
629
+ /**
630
+ * Latest retained execution-layer anchor block hash.
631
+ **/
632
+ latestExecutionHeaderAnchorBlockHash: AugmentedQuery<
633
+ ApiType,
634
+ () => Observable<Option<H256>>,
635
+ []
636
+ >;
637
+ /**
638
+ * Latest imported finalized block root
639
+ **/
640
+ latestFinalizedBlockRoot: AugmentedQuery<ApiType, () => Observable<H256>, []>;
641
+ /**
642
+ * The last period where the next sync committee was updated for free.
643
+ **/
644
+ latestSyncCommitteeUpdatePeriod: AugmentedQuery<ApiType, () => Observable<u64>, []>;
645
+ /**
646
+ * Sync committee for next period
647
+ **/
648
+ nextSyncCommittee: AugmentedQuery<
649
+ ApiType,
650
+ () => Observable<PalletEthereumVerifierSyncCommitteePrepared>,
651
+ []
652
+ >;
653
+ /**
654
+ * The current operating mode of the pallet.
655
+ **/
656
+ operatingMode: AugmentedQuery<
657
+ ApiType,
658
+ () => Observable<PalletEthereumVerifierBasicOperatingMode>,
659
+ []
660
+ >;
661
+ validatorsRoot: AugmentedQuery<ApiType, () => Observable<H256>, []>;
662
+ };
663
+ grandpa: {
664
+ /**
665
+ * The current list of authorities.
666
+ **/
667
+ authorities: AugmentedQuery<
668
+ ApiType,
669
+ () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>,
670
+ []
671
+ >;
672
+ /**
673
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
674
+ * in the "set" of Grandpa validators from genesis.
675
+ **/
676
+ currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
677
+ /**
678
+ * next block number where we can force a change.
679
+ **/
680
+ nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
681
+ /**
682
+ * Pending change: (signaled at, scheduled change).
683
+ **/
684
+ pendingChange: AugmentedQuery<
685
+ ApiType,
686
+ () => Observable<Option<PalletGrandpaStoredPendingChange>>,
687
+ []
688
+ >;
689
+ /**
690
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
691
+ * members were responsible.
692
+ *
693
+ * This is only used for validating equivocation proofs. An equivocation proof must
694
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
695
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
696
+ * was the owner of a given key on a given session, and what the active set ID was
697
+ * during that session.
698
+ *
699
+ * TWOX-NOTE: `SetId` is not under user control.
700
+ **/
701
+ setIdSession: AugmentedQuery<
702
+ ApiType,
703
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>,
704
+ [u64]
705
+ >;
706
+ /**
707
+ * `true` if we are currently stalled.
708
+ **/
709
+ stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []>;
710
+ /**
711
+ * State of the current authority set.
712
+ **/
713
+ state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []>;
714
+ };
715
+ localchainTransfer: {
716
+ /**
717
+ * Expiration index for outgoing transfers keyed by `(notary_id, expiration_tick)`.
718
+ *
719
+ * NOTE: Expiration processing follows notebook progression (`header.tick`) for each notary,
720
+ * not wall/runtime tick. If a notary stops submitting notebooks indefinitely, pending
721
+ * transfers for that notary remain frozen by design until a notary-switch recovery path is
722
+ * executed.
723
+ **/
724
+ expiringTransfersOutByNotary: AugmentedQuery<
725
+ ApiType,
726
+ (
727
+ arg1: u32 | AnyNumber | Uint8Array,
728
+ arg2: u64 | AnyNumber | Uint8Array,
729
+ ) => Observable<Vec<u32>>,
730
+ [u32, u64]
731
+ >;
732
+ nextTransferId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
733
+ pendingTransfersOut: AugmentedQuery<
734
+ ApiType,
735
+ (
736
+ arg: u32 | AnyNumber | Uint8Array,
737
+ ) => Observable<Option<PalletLocalchainTransferQueuedTransferOut>>,
738
+ [u32]
739
+ >;
740
+ };
741
+ miningSlot: {
742
+ /**
743
+ * Lookup by account id to the corresponding index in MinersByCohort and MinerNoncesByCohort
744
+ **/
745
+ accountIndexLookup: AugmentedQuery<
746
+ ApiType,
747
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[u64, u32]>>>,
748
+ [AccountId32]
749
+ >;
750
+ activeMinersCount: AugmentedQuery<ApiType, () => Observable<u16>, []>;
751
+ /**
752
+ * Argonots that must be locked to take a Miner role
753
+ **/
754
+ argonotsPerMiningSeat: AugmentedQuery<ApiType, () => Observable<u128>, []>;
755
+ /**
756
+ * The average price per seat for the last 10 frames (newest first)
757
+ **/
758
+ averagePricePerSeat: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
759
+ /**
760
+ * The cohort set to go into effect in the next slot. The Vec has all
761
+ * registrants with their bid amount
762
+ **/
763
+ bidsForNextSlotCohort: AugmentedQuery<
764
+ ApiType,
765
+ () => Observable<Vec<ArgonPrimitivesBlockSealMiningRegistration>>,
766
+ []
767
+ >;
768
+ /**
769
+ * The number of reward ticks remaining in the frame
770
+ **/
771
+ frameRewardTicksRemaining: AugmentedQuery<ApiType, () => Observable<u64>, []>;
772
+ /**
773
+ * The previous 10 frame start block numbers
774
+ **/
775
+ frameStartBlockNumbers: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
776
+ /**
777
+ * The previous 10 frame start ticks
778
+ **/
779
+ frameStartTicks: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u64>>, []>;
780
+ hasAddedGrandpaRotation: AugmentedQuery<ApiType, () => Observable<bool>, []>;
781
+ /**
782
+ * The number of bids per slot for the last 10 slots (newest first)
783
+ **/
784
+ historicalBidsPerSlot: AugmentedQuery<
785
+ ApiType,
786
+ () => Observable<Vec<ArgonPrimitivesBlockSealMiningBidStats>>,
787
+ []
788
+ >;
789
+ /**
790
+ * Is the next slot still open for bids
791
+ **/
792
+ isNextSlotBiddingOpen: AugmentedQuery<ApiType, () => Observable<bool>, []>;
793
+ /**
794
+ * This is a lookup of each miner's nonce to use when picking a best authority to submit a
795
+ * block. It's a blake2 256 hash of the miner account id and the block hash at time of
796
+ * activation.
797
+ **/
798
+ minerNonceScoringByCohort: AugmentedQuery<
799
+ ApiType,
800
+ () => Observable<BTreeMap<u64, Vec<PalletMiningSlotMinerNonceScoring>>>,
801
+ []
802
+ >;
803
+ /**
804
+ * Miners that are active in the current block (post initialize) by their starting frame
805
+ **/
806
+ minersByCohort: AugmentedQuery<
807
+ ApiType,
808
+ (
809
+ arg: u64 | AnyNumber | Uint8Array,
810
+ ) => Observable<Vec<ArgonPrimitivesBlockSealMiningRegistration>>,
811
+ [u64]
812
+ >;
813
+ /**
814
+ * The mining slot configuration set in genesis
815
+ **/
816
+ miningConfig: AugmentedQuery<
817
+ ApiType,
818
+ () => Observable<ArgonPrimitivesBlockSealMiningSlotConfig>,
819
+ []
820
+ >;
821
+ /**
822
+ * Is a new frame started in this block
823
+ **/
824
+ newlyStartedFrameId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
825
+ /**
826
+ * The number of allow miners to bid for the next mining cohort
827
+ **/
828
+ nextCohortSize: AugmentedQuery<ApiType, () => Observable<u32>, []>;
829
+ /**
830
+ * The next frameId. A frame in argon is the 24 hours between the start of two different mining
831
+ * cohorts.
832
+ **/
833
+ nextFrameId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
834
+ /**
835
+ * The miners released in the last block (only kept for a single block)
836
+ **/
837
+ releasedMinersByAccountId: AugmentedQuery<
838
+ ApiType,
839
+ () => Observable<BTreeMap<AccountId32, ArgonPrimitivesBlockSealMiningRegistration>>,
840
+ []
841
+ >;
842
+ /**
843
+ * The upcoming changes scheduled for cohort size by frame.
844
+ * Capacity of 11 allows for 10 frames worth of scheduled changes plus one working slot
845
+ * to schedule a new change during frame finalization.
846
+ **/
847
+ scheduledCohortSizeChangeByFrame: AugmentedQuery<
848
+ ApiType,
849
+ () => Observable<BTreeMap<u64, u32>>,
850
+ []
851
+ >;
852
+ /**
853
+ * Temporary store the frame info digest
854
+ **/
855
+ tempFrameInfoDigest: AugmentedQuery<
856
+ ApiType,
857
+ () => Observable<Option<ArgonPrimitivesDigestsFrameInfo>>,
858
+ []
859
+ >;
860
+ };
861
+ mint: {
862
+ blockMintAction: AugmentedQuery<
863
+ ApiType,
864
+ () => Observable<ITuple<[u32, PalletMintMintAction]>>,
865
+ []
866
+ >;
867
+ /**
868
+ * The amount of argons minted per mining cohort (ie, grouped by starting frame id)
869
+ **/
870
+ miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, []>;
871
+ /**
872
+ * The total amount of Bitcoin microgons minted. Cannot exceed `MintedMiningMicrogons`.
873
+ **/
874
+ mintedBitcoinMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
875
+ /**
876
+ * The total amount of microgons minted for mining
877
+ **/
878
+ mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
879
+ /**
880
+ * Bitcoin UTXOs that have been submitted for minting. This list is FIFO for minting whenever
881
+ * a) CPI >= 0 and
882
+ * b) the aggregate minted Bitcoins <= the aggregate minted microgons from mining
883
+ **/
884
+ pendingMintUtxos: AugmentedQuery<
885
+ ApiType,
886
+ () => Observable<Vec<ITuple<[u64, AccountId32, u128]>>>,
887
+ []
888
+ >;
889
+ };
890
+ multisig: {
891
+ /**
892
+ * The set of open multisig operations.
893
+ **/
894
+ multisigs: AugmentedQuery<
895
+ ApiType,
896
+ (
897
+ arg1: AccountId32 | string | Uint8Array,
898
+ arg2: U8aFixed | string | Uint8Array,
899
+ ) => Observable<Option<PalletMultisigMultisig>>,
900
+ [AccountId32, U8aFixed]
901
+ >;
902
+ };
903
+ notaries: {
904
+ activeNotaries: AugmentedQuery<
905
+ ApiType,
906
+ () => Observable<Vec<ArgonPrimitivesNotaryNotaryRecord>>,
907
+ []
908
+ >;
909
+ expiringProposals: AugmentedQuery<
910
+ ApiType,
911
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>,
912
+ [u32]
913
+ >;
914
+ nextNotaryId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
915
+ notaryKeyHistory: AugmentedQuery<
916
+ ApiType,
917
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u64, U8aFixed]>>>,
918
+ [u32]
919
+ >;
920
+ proposedNotaries: AugmentedQuery<
921
+ ApiType,
922
+ (
923
+ arg: AccountId32 | string | Uint8Array,
924
+ ) => Observable<Option<ITuple<[ArgonPrimitivesNotaryNotaryMeta, u32]>>>,
925
+ [AccountId32]
926
+ >;
927
+ /**
928
+ * Metadata changes to be activated at the given tick
929
+ **/
930
+ queuedNotaryMetaChanges: AugmentedQuery<
931
+ ApiType,
932
+ (
933
+ arg: u64 | AnyNumber | Uint8Array,
934
+ ) => Observable<BTreeMap<u32, ArgonPrimitivesNotaryNotaryMeta>>,
935
+ [u64]
936
+ >;
937
+ };
938
+ notebook: {
939
+ /**
940
+ * Storage map of account origin (notary_id, notebook, account_uid) to the last
941
+ * notebook containing this account in the changed accounts merkle root
942
+ * (NotebookChangedAccountsRootByNotary)
943
+ **/
944
+ accountOriginLastChangedNotebookByNotary: AugmentedQuery<
945
+ ApiType,
946
+ (
947
+ arg1: u32 | AnyNumber | Uint8Array,
948
+ arg2:
949
+ | ArgonPrimitivesBalanceChangeAccountOrigin
950
+ | { notebookNumber?: any; accountUid?: any }
951
+ | string
952
+ | Uint8Array,
953
+ ) => Observable<Option<u32>>,
954
+ [u32, ArgonPrimitivesBalanceChangeAccountOrigin]
955
+ >;
956
+ /**
957
+ * The notebooks included in this block
958
+ **/
959
+ blockNotebooks: AugmentedQuery<
960
+ ApiType,
961
+ () => Observable<ArgonPrimitivesDigestsNotebookDigest>,
962
+ []
963
+ >;
964
+ /**
965
+ * Check if the inherent was included
966
+ **/
967
+ inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
968
+ /**
969
+ * List of last few notebook details by notary. The bool is whether the notebook is eligible
970
+ * for votes (received at correct tick and audit passed)
971
+ **/
972
+ lastNotebookDetailsByNotary: AugmentedQuery<
973
+ ApiType,
974
+ (
975
+ arg: u32 | AnyNumber | Uint8Array,
976
+ ) => Observable<Vec<ITuple<[ArgonPrimitivesNotaryNotaryNotebookKeyDetails, bool]>>>,
977
+ [u32]
978
+ >;
979
+ /**
980
+ * Notaries ready to start reprocessing at a given notebook number
981
+ **/
982
+ lockedNotaryReadyForReprocess: AugmentedQuery<
983
+ ApiType,
984
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>,
985
+ [u32]
986
+ >;
987
+ /**
988
+ * Notaries locked for failing audits
989
+ **/
990
+ notariesLockedForFailedAudit: AugmentedQuery<
991
+ ApiType,
992
+ (
993
+ arg: u32 | AnyNumber | Uint8Array,
994
+ ) => Observable<Option<ITuple<[u32, u64, ArgonNotaryAuditErrorVerifyError]>>>,
995
+ [u32]
996
+ >;
997
+ /**
998
+ * Double storage map of notary id + notebook # to the change root
999
+ **/
1000
+ notebookChangedAccountsRootByNotary: AugmentedQuery<
1001
+ ApiType,
1002
+ (
1003
+ arg1: u32 | AnyNumber | Uint8Array,
1004
+ arg2: u32 | AnyNumber | Uint8Array,
1005
+ ) => Observable<Option<H256>>,
1006
+ [u32, u32]
1007
+ >;
1008
+ };
1009
+ operationalAccounts: {
1010
+ /**
1011
+ * Referral codes that have already been linked, keyed to their proof expiration frame.
1012
+ **/
1013
+ consumedReferralCodes: AugmentedQuery<
1014
+ ApiType,
1015
+ (arg: U8aFixed | string | Uint8Array) => Observable<Option<u64>>,
1016
+ [U8aFixed]
1017
+ >;
1018
+ /**
1019
+ * Referral codes to clear after their referral proof expiration frame.
1020
+ **/
1021
+ consumedReferralCodesByExpiration: AugmentedQuery<
1022
+ ApiType,
1023
+ (
1024
+ arg1: u64 | AnyNumber | Uint8Array,
1025
+ arg2: U8aFixed | string | Uint8Array,
1026
+ ) => Observable<Option<Null>>,
1027
+ [u64, U8aFixed]
1028
+ >;
1029
+ /**
1030
+ * Opaque encrypted sponsor server payload keyed by the sponsee operational account.
1031
+ **/
1032
+ encryptedServerBySponsee: AugmentedQuery<
1033
+ ApiType,
1034
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
1035
+ [AccountId32]
1036
+ >;
1037
+ /**
1038
+ * Oldest referral expiration frame that still has cleanup work to resume.
1039
+ **/
1040
+ expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
1041
+ /**
1042
+ * Reverse lookup of any linked account to its operational account id.
1043
+ **/
1044
+ operationalAccountBySubAccount: AugmentedQuery<
1045
+ ApiType,
1046
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>,
1047
+ [AccountId32]
1048
+ >;
1049
+ /**
1050
+ * Registered operational accounts keyed by the primary account id.
1051
+ **/
1052
+ operationalAccounts: AugmentedQuery<
1053
+ ApiType,
1054
+ (
1055
+ arg: AccountId32 | string | Uint8Array,
1056
+ ) => Observable<Option<PalletOperationalAccountsOperationalAccount>>,
1057
+ [AccountId32]
1058
+ >;
1059
+ /**
1060
+ * Configured reward amounts for operational accounts.
1061
+ **/
1062
+ rewards: AugmentedQuery<
1063
+ ApiType,
1064
+ () => Observable<PalletOperationalAccountsRewardsConfig>,
1065
+ []
1066
+ >;
1067
+ };
1068
+ ownership: {
1069
+ /**
1070
+ * The Balances pallet example of storing the balance of an account.
1071
+ *
1072
+ * # Example
1073
+ *
1074
+ * ```nocompile
1075
+ * impl pallet_balances::Config for Runtime {
1076
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
1077
+ * }
1078
+ * ```
1079
+ *
1080
+ * You can also store the balance of an account in the `System` pallet.
1081
+ *
1082
+ * # Example
1083
+ *
1084
+ * ```nocompile
1085
+ * impl pallet_balances::Config for Runtime {
1086
+ * type AccountStore = System
1087
+ * }
1088
+ * ```
1089
+ *
1090
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
1091
+ * `frame_system` data alongside the account data contrary to storing account balances in the
1092
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
1093
+ * NOTE: This is only used in the case that this pallet is used to store balances.
1094
+ **/
1095
+ account: AugmentedQuery<
1096
+ ApiType,
1097
+ (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>,
1098
+ [AccountId32]
1099
+ >;
1100
+ /**
1101
+ * Freeze locks on account balances.
1102
+ **/
1103
+ freezes: AugmentedQuery<
1104
+ ApiType,
1105
+ (
1106
+ arg: AccountId32 | string | Uint8Array,
1107
+ ) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>,
1108
+ [AccountId32]
1109
+ >;
1110
+ /**
1111
+ * Holds on account balances.
1112
+ **/
1113
+ holds: AugmentedQuery<
1114
+ ApiType,
1115
+ (
1116
+ arg: AccountId32 | string | Uint8Array,
1117
+ ) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>,
1118
+ [AccountId32]
1119
+ >;
1120
+ /**
1121
+ * The total units of outstanding deactivated balance in the system.
1122
+ **/
1123
+ inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1124
+ /**
1125
+ * Any liquidity locks on some account balances.
1126
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
1127
+ *
1128
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
1129
+ **/
1130
+ locks: AugmentedQuery<
1131
+ ApiType,
1132
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>,
1133
+ [AccountId32]
1134
+ >;
1135
+ /**
1136
+ * Named reserves on some account balances.
1137
+ *
1138
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
1139
+ **/
1140
+ reserves: AugmentedQuery<
1141
+ ApiType,
1142
+ (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>,
1143
+ [AccountId32]
1144
+ >;
1145
+ /**
1146
+ * The total units issued in the system.
1147
+ **/
1148
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1149
+ };
1150
+ priceIndex: {
1151
+ /**
1152
+ * Stores the active price index
1153
+ **/
1154
+ current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
1155
+ /**
1156
+ * Tracks the average cpi data every 60 ticks
1157
+ **/
1158
+ historicArgonCPI: AugmentedQuery<
1159
+ ApiType,
1160
+ () => Observable<Vec<PalletPriceIndexCpiMeasurementBucket>>,
1161
+ []
1162
+ >;
1163
+ /**
1164
+ * Stores the last valid price index
1165
+ **/
1166
+ lastValid: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
1167
+ /**
1168
+ * The price index operator account
1169
+ **/
1170
+ operator: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
1171
+ };
1172
+ proxy: {
1173
+ /**
1174
+ * The announcements made by the proxy (key).
1175
+ **/
1176
+ announcements: AugmentedQuery<
1177
+ ApiType,
1178
+ (
1179
+ arg: AccountId32 | string | Uint8Array,
1180
+ ) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>,
1181
+ [AccountId32]
1182
+ >;
1183
+ /**
1184
+ * The set of account proxies. Maps the account which has delegated to the accounts
1185
+ * which are being delegated to, together with the amount held on deposit.
1186
+ **/
1187
+ proxies: AugmentedQuery<
1188
+ ApiType,
1189
+ (
1190
+ arg: AccountId32 | string | Uint8Array,
1191
+ ) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>,
1192
+ [AccountId32]
1193
+ >;
1194
+ };
1195
+ sudo: {
1196
+ /**
1197
+ * The `AccountId` of the sudo key.
1198
+ **/
1199
+ key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
1200
+ };
1201
+ system: {
1202
+ /**
1203
+ * The full account information for a particular account ID.
1204
+ **/
1205
+ account: AugmentedQuery<
1206
+ ApiType,
1207
+ (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>,
1208
+ [AccountId32]
1209
+ >;
1210
+ /**
1211
+ * `Some` if a code upgrade has been authorized.
1212
+ **/
1213
+ authorizedUpgrade: AugmentedQuery<
1214
+ ApiType,
1215
+ () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>,
1216
+ []
1217
+ >;
1218
+ /**
1219
+ * Map of block numbers to block hashes.
1220
+ **/
1221
+ blockHash: AugmentedQuery<
1222
+ ApiType,
1223
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>,
1224
+ [u32]
1225
+ >;
1226
+ /**
1227
+ * Total size (in bytes) of the current block.
1228
+ *
1229
+ * Tracks the size of the header and all extrinsics.
1230
+ **/
1231
+ blockSize: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
1232
+ /**
1233
+ * Number of blocks till the pending code upgrade is applied.
1234
+ **/
1235
+ blocksTillUpgrade: AugmentedQuery<ApiType, () => Observable<Option<u8>>, []>;
1236
+ /**
1237
+ * The current weight for the block.
1238
+ **/
1239
+ blockWeight: AugmentedQuery<
1240
+ ApiType,
1241
+ () => Observable<FrameSupportDispatchPerDispatchClassWeight>,
1242
+ []
1243
+ >;
1244
+ /**
1245
+ * Digest of the current block, also part of the block header.
1246
+ **/
1247
+ digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []>;
1248
+ /**
1249
+ * The number of events in the `Events<T>` list.
1250
+ **/
1251
+ eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1252
+ /**
1253
+ * Events deposited for the current block.
1254
+ *
1255
+ * NOTE: The item is unbound and should therefore never be read on chain.
1256
+ * It could otherwise inflate the PoV size of a block.
1257
+ *
1258
+ * Events have a large in-memory size. Box the events to not go out-of-memory
1259
+ * just in case someone still reads them from within the runtime.
1260
+ **/
1261
+ events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []>;
1262
+ /**
1263
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
1264
+ * of events in the `<Events<T>>` list.
1265
+ *
1266
+ * All topic vectors have deterministic storage locations depending on the topic. This
1267
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
1268
+ * in case of changes fetch the list of events of interest.
1269
+ *
1270
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
1271
+ * the `EventIndex` then in case if the topic has the same contents on the next block
1272
+ * no notification will be triggered thus the event might be lost.
1273
+ **/
1274
+ eventTopics: AugmentedQuery<
1275
+ ApiType,
1276
+ (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>,
1277
+ [H256]
1278
+ >;
1279
+ /**
1280
+ * The execution phase of the block.
1281
+ **/
1282
+ executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []>;
1283
+ /**
1284
+ * Total extrinsics count for the current block.
1285
+ **/
1286
+ extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
1287
+ /**
1288
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
1289
+ **/
1290
+ extrinsicData: AugmentedQuery<
1291
+ ApiType,
1292
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>,
1293
+ [u32]
1294
+ >;
1295
+ /**
1296
+ * The weight reclaimed for the extrinsic.
1297
+ *
1298
+ * This information is available until the end of the extrinsic execution.
1299
+ * More precisely this information is removed in `note_applied_extrinsic`.
1300
+ *
1301
+ * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
1302
+ * reduction.
1303
+ **/
1304
+ extrinsicWeightReclaimed: AugmentedQuery<
1305
+ ApiType,
1306
+ () => Observable<SpWeightsWeightV2Weight>,
1307
+ []
1308
+ >;
1309
+ /**
1310
+ * Whether all inherents have been applied.
1311
+ **/
1312
+ inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1313
+ /**
1314
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
1315
+ **/
1316
+ lastRuntimeUpgrade: AugmentedQuery<
1317
+ ApiType,
1318
+ () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>,
1319
+ []
1320
+ >;
1321
+ /**
1322
+ * The current block number being processed. Set by `execute_block`.
1323
+ **/
1324
+ number: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1325
+ /**
1326
+ * Hash of the previous block.
1327
+ **/
1328
+ parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []>;
1329
+ /**
1330
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
1331
+ * (default) if not.
1332
+ **/
1333
+ upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1334
+ /**
1335
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
1336
+ **/
1337
+ upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1338
+ };
1339
+ ticks: {
1340
+ currentTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1341
+ genesisTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1342
+ genesisTicker: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesTickTicker>, []>;
1343
+ previousTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1344
+ /**
1345
+ * Blocks from the last 100 ticks. Trimmed in on_initialize.
1346
+ * NOTE: cannot include the current block hash until next block
1347
+ **/
1348
+ recentBlocksAtTicks: AugmentedQuery<
1349
+ ApiType,
1350
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<H256>>,
1351
+ [u64]
1352
+ >;
1353
+ };
1354
+ timestamp: {
1355
+ /**
1356
+ * Whether the timestamp has been updated in this block.
1357
+ *
1358
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
1359
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
1360
+ **/
1361
+ didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1362
+ /**
1363
+ * The current time for the current block.
1364
+ **/
1365
+ now: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1366
+ };
1367
+ transactionPayment: {
1368
+ nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1369
+ storageVersion: AugmentedQuery<
1370
+ ApiType,
1371
+ () => Observable<PalletTransactionPaymentReleases>,
1372
+ []
1373
+ >;
1374
+ /**
1375
+ * The `OnChargeTransaction` stores the withdrawn tx fee here.
1376
+ *
1377
+ * Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
1378
+ **/
1379
+ txPaymentCredit: AugmentedQuery<
1380
+ ApiType,
1381
+ () => Observable<Option<FrameSupportTokensFungibleImbalance>>,
1382
+ []
1383
+ >;
1384
+ };
1385
+ treasury: {
1386
+ /**
1387
+ * The stored state for each bond lot.
1388
+ **/
1389
+ bondLotById: AugmentedQuery<
1390
+ ApiType,
1391
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryBondLot>>,
1392
+ [u64]
1393
+ >;
1394
+ /**
1395
+ * The bond lot ids that belong to an account.
1396
+ **/
1397
+ bondLotIdsByAccount: AugmentedQuery<
1398
+ ApiType,
1399
+ (
1400
+ arg1: AccountId32 | string | Uint8Array,
1401
+ arg2: u64 | AnyNumber | Uint8Array,
1402
+ ) => Observable<Option<Null>>,
1403
+ [AccountId32, u64]
1404
+ >;
1405
+ /**
1406
+ * The accepted bond lots for a vault.
1407
+ *
1408
+ * Lots are kept in descending bond order, then lower `bond_lot_id` first for ties.
1409
+ **/
1410
+ bondLotsByVault: AugmentedQuery<
1411
+ ApiType,
1412
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
1413
+ [u32]
1414
+ >;
1415
+ /**
1416
+ * The vault capital locked for the current frame.
1417
+ *
1418
+ * Payout uses this to see which vaults and bond lots are participating in the frame.
1419
+ **/
1420
+ currentFrameVaultCapital: AugmentedQuery<
1421
+ ApiType,
1422
+ () => Observable<Option<PalletTreasuryFrameVaultCapital>>,
1423
+ []
1424
+ >;
1425
+ /**
1426
+ * The next bond lot id.
1427
+ **/
1428
+ nextBondLotId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1429
+ /**
1430
+ * The oldest frame that still has bond lots to retry releasing.
1431
+ **/
1432
+ pendingBondReleaseRetryCursor: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
1433
+ /**
1434
+ * Bond lots to release at the given frame.
1435
+ **/
1436
+ pendingBondReleasesByFrame: AugmentedQuery<
1437
+ ApiType,
1438
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1439
+ [u64]
1440
+ >;
1441
+ };
1442
+ txPause: {
1443
+ /**
1444
+ * The set of calls that are explicitly paused.
1445
+ **/
1446
+ pausedCalls: AugmentedQuery<
1447
+ ApiType,
1448
+ (
1449
+ arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array],
1450
+ ) => Observable<Option<Null>>,
1451
+ [ITuple<[Bytes, Bytes]>]
1452
+ >;
1453
+ };
1454
+ vaults: {
1455
+ /**
1456
+ * The last collect frame of each vault
1457
+ **/
1458
+ lastCollectFrameByVaultId: AugmentedQuery<
1459
+ ApiType,
1460
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u64>>,
1461
+ [u32]
1462
+ >;
1463
+ nextVaultId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
1464
+ /**
1465
+ * Orphaned Bitcoin Utxos pending cosign by vault id
1466
+ **/
1467
+ orphanedUtxoAccountsByVaultId: AugmentedQuery<
1468
+ ApiType,
1469
+ (
1470
+ arg1: u32 | AnyNumber | Uint8Array,
1471
+ arg2: AccountId32 | string | Uint8Array,
1472
+ ) => Observable<u32>,
1473
+ [u32, AccountId32]
1474
+ >;
1475
+ /**
1476
+ * Bitcoin Locks pending cosign by vault id
1477
+ **/
1478
+ pendingCosignByVaultId: AugmentedQuery<
1479
+ ApiType,
1480
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
1481
+ [u32]
1482
+ >;
1483
+ /**
1484
+ * Pending terms that will be committed at the given block number (must be a minimum of 1 slot
1485
+ * change away)
1486
+ **/
1487
+ pendingTermsModificationsByTick: AugmentedQuery<
1488
+ ApiType,
1489
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
1490
+ [u64]
1491
+ >;
1492
+ /**
1493
+ * Recent reductions in `available_for_lock`, grouped by vault.
1494
+ **/
1495
+ recentCapacityDropsByVault: AugmentedQuery<
1496
+ ApiType,
1497
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsRecentCapacityDrop>>,
1498
+ [u32]
1499
+ >;
1500
+ /**
1501
+ * Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
1502
+ * (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
1503
+ * collect expiration window (`RevenueCollectionExpirationFrames`).
1504
+ **/
1505
+ revenuePerFrameByVault: AugmentedQuery<
1506
+ ApiType,
1507
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsVaultFrameRevenue>>,
1508
+ [u32]
1509
+ >;
1510
+ /**
1511
+ * The vaults that have funds releasing at a given bitcoin height
1512
+ **/
1513
+ vaultFundsReleasingByHeight: AugmentedQuery<
1514
+ ApiType,
1515
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u32>>,
1516
+ [u64]
1517
+ >;
1518
+ /**
1519
+ * Vaults by owner
1520
+ **/
1521
+ vaultIdByOperator: AugmentedQuery<
1522
+ ApiType,
1523
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>,
1524
+ [AccountId32]
1525
+ >;
1526
+ /**
1527
+ * Vaults by id
1528
+ **/
1529
+ vaultsById: AugmentedQuery<
1530
+ ApiType,
1531
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesVault>>,
1532
+ [u32]
1533
+ >;
1534
+ /**
1535
+ * Vaults whose temporary operational minimum may be released at a given tick.
1536
+ **/
1537
+ vaultsReleasingOperationalMinimumByTick: AugmentedQuery<
1538
+ ApiType,
1539
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u32>>,
1540
+ [u64]
1541
+ >;
1542
+ /**
1543
+ * Vault Bitcoin Xpub and current child counter by VaultId
1544
+ **/
1545
+ vaultXPubById: AugmentedQuery<
1546
+ ApiType,
1547
+ (
1548
+ arg: u32 | AnyNumber | Uint8Array,
1549
+ ) => Observable<Option<ITuple<[ArgonPrimitivesBitcoinBitcoinXPub, u32]>>>,
1550
+ [u32]
1551
+ >;
1552
+ };
1553
+ } // AugmentedQueries
1554
+ } // declare module