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