@argonprotocol/mainchain 1.4.12 → 1.4.13-dev.3727cfd5
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/README.md +0 -10
- package/browser/index.d.ts +1378 -1262
- package/browser/index.js +16 -1350
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +18 -1353
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1378 -1262
- package/lib/index.d.ts +1378 -1262
- package/lib/index.js +20 -1355
- package/lib/index.js.map +1 -1
- package/package.json +13 -11
- package/src/interfaces/augment-api-consts.ts +68 -34
- package/src/interfaces/augment-api-errors.ts +150 -36
- package/src/interfaces/augment-api-events.ts +243 -120
- package/src/interfaces/augment-api-query.ts +190 -98
- package/src/interfaces/augment-api-rpc.ts +22 -2
- package/src/interfaces/augment-api-runtime.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +127 -104
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +8 -2
- package/src/interfaces/lookup.ts +650 -434
- package/src/interfaces/registry.ts +44 -17
- package/src/interfaces/types-lookup.ts +729 -493
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
3
|
// import type lookup before we augment - in some environments
|
|
5
4
|
// this is required to allow for ambient/previous definitions
|
|
@@ -22,15 +21,17 @@ import type {
|
|
|
22
21
|
u8,
|
|
23
22
|
} from '@polkadot/types-codec';
|
|
24
23
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
25
|
-
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
|
|
24
|
+
import type { AccountId32, H160, H256, Percent } from '@polkadot/types/interfaces/runtime';
|
|
26
25
|
import type {
|
|
27
26
|
ArgonNotaryAuditErrorVerifyError,
|
|
27
|
+
ArgonPrimitivesAmountRankAmountRankKey,
|
|
28
28
|
ArgonPrimitivesBalanceChangeAccountOrigin,
|
|
29
29
|
ArgonPrimitivesBitcoinBitcoinBlock,
|
|
30
|
+
ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey,
|
|
30
31
|
ArgonPrimitivesBitcoinBitcoinNetwork,
|
|
31
32
|
ArgonPrimitivesBitcoinBitcoinXPub,
|
|
33
|
+
ArgonPrimitivesBitcoinUtxoAddress,
|
|
32
34
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
33
|
-
ArgonPrimitivesBitcoinUtxoValue,
|
|
34
35
|
ArgonPrimitivesBlockSealBlockPayout,
|
|
35
36
|
ArgonPrimitivesBlockSealMiningBidStats,
|
|
36
37
|
ArgonPrimitivesBlockSealMiningRegistration,
|
|
@@ -49,8 +50,9 @@ import type {
|
|
|
49
50
|
ArgonPrimitivesNotaryNotaryRecord,
|
|
50
51
|
ArgonPrimitivesProvidersBlockSealerInfo,
|
|
51
52
|
ArgonPrimitivesTickTicker,
|
|
53
|
+
ArgonPrimitivesTreasuryPositionQuantities,
|
|
52
54
|
ArgonPrimitivesVault,
|
|
53
|
-
|
|
55
|
+
ArgonPrimitivesVaultVaultArgonotSecuritization,
|
|
54
56
|
FrameSupportDispatchPerDispatchClassWeight,
|
|
55
57
|
FrameSupportTokensFungibleImbalance,
|
|
56
58
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
@@ -63,9 +65,12 @@ import type {
|
|
|
63
65
|
PalletBalancesAccountData,
|
|
64
66
|
PalletBalancesBalanceLock,
|
|
65
67
|
PalletBalancesReserveData,
|
|
68
|
+
PalletBitcoinFissionsFission,
|
|
69
|
+
PalletBitcoinLocksLockReleaseCosignHeight,
|
|
66
70
|
PalletBitcoinLocksLockReleaseRequest,
|
|
67
71
|
PalletBitcoinLocksLockedBitcoin,
|
|
68
72
|
PalletBitcoinLocksOrphanedUtxo,
|
|
73
|
+
PalletBitcoinLocksPendingPartialRelease,
|
|
69
74
|
PalletBootstrapEndpointPubkey,
|
|
70
75
|
PalletBootstrapRecoveryPubkey,
|
|
71
76
|
PalletCrosschainTransferAccountTransferTotals,
|
|
@@ -90,9 +95,10 @@ import type {
|
|
|
90
95
|
PalletGrandpaStoredState,
|
|
91
96
|
PalletLocalchainTransferQueuedTransferOut,
|
|
92
97
|
PalletMiningSlotMinerNonceScoring,
|
|
98
|
+
PalletMiningSlotSeatPriceStats,
|
|
93
99
|
PalletMintMintAction,
|
|
94
100
|
PalletMintMintQueueCursor,
|
|
95
|
-
|
|
101
|
+
PalletMintPendingBitcoinMint,
|
|
96
102
|
PalletMultisigMultisig,
|
|
97
103
|
PalletOperationalAccountsOperationalAccount,
|
|
98
104
|
PalletOperationalAccountsRewardsConfig,
|
|
@@ -108,6 +114,7 @@ import type {
|
|
|
108
114
|
PalletTreasuryBondLotSummary,
|
|
109
115
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
110
116
|
PalletTreasuryFrameVaultCapital,
|
|
117
|
+
PalletTreasuryPositionsPosition,
|
|
111
118
|
PalletTreasuryVaultBondState,
|
|
112
119
|
PalletVaultsVaultFrameRevenue,
|
|
113
120
|
SpConsensusGrandpaAppPublic,
|
|
@@ -209,6 +216,35 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
209
216
|
**/
|
|
210
217
|
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
211
218
|
};
|
|
219
|
+
bitcoinFissions: {
|
|
220
|
+
/**
|
|
221
|
+
* Active Fission records addressed by their owner and owner-local Fission ID.
|
|
222
|
+
**/
|
|
223
|
+
fissionByOwnerAndId: AugmentedQuery<
|
|
224
|
+
ApiType,
|
|
225
|
+
(
|
|
226
|
+
arg1: AccountId32 | string | Uint8Array,
|
|
227
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
228
|
+
) => Observable<Option<PalletBitcoinFissionsFission>>,
|
|
229
|
+
[AccountId32, u64]
|
|
230
|
+
>;
|
|
231
|
+
/**
|
|
232
|
+
* Active Fission IDs allocating satoshis from each Lock.
|
|
233
|
+
**/
|
|
234
|
+
fissionIdsByLockId: AugmentedQuery<
|
|
235
|
+
ApiType,
|
|
236
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
|
|
237
|
+
[u64]
|
|
238
|
+
>;
|
|
239
|
+
/**
|
|
240
|
+
* Minimum Fission ID accepted from each owner.
|
|
241
|
+
**/
|
|
242
|
+
nextFissionIdByOwner: AugmentedQuery<
|
|
243
|
+
ApiType,
|
|
244
|
+
(arg: AccountId32 | string | Uint8Array) => Observable<u64>,
|
|
245
|
+
[AccountId32]
|
|
246
|
+
>;
|
|
247
|
+
};
|
|
212
248
|
bitcoinLocks: {
|
|
213
249
|
lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
|
|
214
250
|
ApiType,
|
|
@@ -218,6 +254,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
218
254
|
) => Observable<Option<u64>>,
|
|
219
255
|
[u32, AccountId32]
|
|
220
256
|
>;
|
|
257
|
+
/**
|
|
258
|
+
* Highest Bitcoin UTXO sync height processed for securitization hold expirations.
|
|
259
|
+
**/
|
|
260
|
+
lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
|
|
261
|
+
ApiType,
|
|
262
|
+
() => Observable<Option<u64>>,
|
|
263
|
+
[]
|
|
264
|
+
>;
|
|
221
265
|
/**
|
|
222
266
|
* Utxos that have been requested to be cosigned for releasing
|
|
223
267
|
**/
|
|
@@ -236,17 +280,41 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
236
280
|
[u64]
|
|
237
281
|
>;
|
|
238
282
|
/**
|
|
239
|
-
*
|
|
283
|
+
* Index of active UTXO IDs per owner account.
|
|
284
|
+
**/
|
|
285
|
+
lockIdsByOwnerAccount: AugmentedQuery<
|
|
286
|
+
ApiType,
|
|
287
|
+
(
|
|
288
|
+
arg1: AccountId32 | string | Uint8Array,
|
|
289
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
290
|
+
) => Observable<Option<Null>>,
|
|
291
|
+
[AccountId32, u64]
|
|
292
|
+
>;
|
|
293
|
+
/**
|
|
294
|
+
* Index of active UTXO IDs per vault
|
|
295
|
+
**/
|
|
296
|
+
lockIdsByVaultId: AugmentedQuery<
|
|
297
|
+
ApiType,
|
|
298
|
+
(
|
|
299
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
300
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
301
|
+
) => Observable<Option<Null>>,
|
|
302
|
+
[u32, u64]
|
|
303
|
+
>;
|
|
304
|
+
/**
|
|
305
|
+
* Latest cosigned release for each Lock, retained for signature recovery.
|
|
240
306
|
**/
|
|
241
307
|
lockReleaseCosignHeightById: AugmentedQuery<
|
|
242
308
|
ApiType,
|
|
243
|
-
(
|
|
309
|
+
(
|
|
310
|
+
arg: u64 | AnyNumber | Uint8Array,
|
|
311
|
+
) => Observable<Option<PalletBitcoinLocksLockReleaseCosignHeight>>,
|
|
244
312
|
[u64]
|
|
245
313
|
>;
|
|
246
314
|
/**
|
|
247
|
-
*
|
|
315
|
+
* Release requests awaiting a Vault cosignature.
|
|
248
316
|
**/
|
|
249
|
-
|
|
317
|
+
lockReleaseRequestsById: AugmentedQuery<
|
|
250
318
|
ApiType,
|
|
251
319
|
(
|
|
252
320
|
arg: u64 | AnyNumber | Uint8Array,
|
|
@@ -256,13 +324,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
256
324
|
/**
|
|
257
325
|
* Stores bitcoin utxos that have requested to be released
|
|
258
326
|
**/
|
|
259
|
-
|
|
327
|
+
locksById: AugmentedQuery<
|
|
260
328
|
ApiType,
|
|
261
329
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>,
|
|
262
330
|
[u64]
|
|
263
331
|
>;
|
|
264
332
|
/**
|
|
265
|
-
*
|
|
333
|
+
* Recent target-normalized microgon values per BTC and their observed ticks.
|
|
266
334
|
**/
|
|
267
335
|
microgonPerBtcHistory: AugmentedQuery<
|
|
268
336
|
ApiType,
|
|
@@ -270,10 +338,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
270
338
|
[]
|
|
271
339
|
>;
|
|
272
340
|
/**
|
|
273
|
-
* The minimum number of satoshis
|
|
341
|
+
* The minimum number of satoshis accepted in one watched funding UTXO.
|
|
274
342
|
**/
|
|
275
343
|
minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
276
|
-
|
|
344
|
+
nextBitcoinLockId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
277
345
|
/**
|
|
278
346
|
* Expiration of orphaned utxo refs by user account
|
|
279
347
|
**/
|
|
@@ -300,26 +368,23 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
300
368
|
[AccountId32, ArgonPrimitivesBitcoinUtxoRef]
|
|
301
369
|
>;
|
|
302
370
|
/**
|
|
303
|
-
*
|
|
371
|
+
* Cosigned partial releases awaiting confirmation on Bitcoin.
|
|
304
372
|
**/
|
|
305
|
-
|
|
373
|
+
pendingPartialReleaseByLockId: AugmentedQuery<
|
|
306
374
|
ApiType,
|
|
307
375
|
(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
[AccountId32, u64]
|
|
376
|
+
arg: u64 | AnyNumber | Uint8Array,
|
|
377
|
+
) => Observable<Option<PalletBitcoinLocksPendingPartialRelease>>,
|
|
378
|
+
[u64]
|
|
312
379
|
>;
|
|
313
380
|
/**
|
|
314
|
-
*
|
|
381
|
+
* Lock IDs whose securitization hold expires at the indexed Bitcoin height.
|
|
382
|
+
* Expiry releases only the unactivated portion and leaves the lock address watched.
|
|
315
383
|
**/
|
|
316
|
-
|
|
384
|
+
securitizationHoldExpirationsByBitcoinHeight: AugmentedQuery<
|
|
317
385
|
ApiType,
|
|
318
|
-
(
|
|
319
|
-
|
|
320
|
-
arg2: u64 | AnyNumber | Uint8Array,
|
|
321
|
-
) => Observable<Option<Null>>,
|
|
322
|
-
[u32, u64]
|
|
386
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
|
|
387
|
+
[u64]
|
|
323
388
|
>;
|
|
324
389
|
};
|
|
325
390
|
bitcoinUtxos: {
|
|
@@ -331,16 +396,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
331
396
|
() => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>,
|
|
332
397
|
[]
|
|
333
398
|
>;
|
|
334
|
-
/**
|
|
335
|
-
* Candidate UTXOs associated with a lock (mismatches, extra funding, etc.).
|
|
336
|
-
**/
|
|
337
|
-
candidateUtxoRefsByUtxoId: AugmentedQuery<
|
|
338
|
-
ApiType,
|
|
339
|
-
(
|
|
340
|
-
arg: u64 | AnyNumber | Uint8Array,
|
|
341
|
-
) => Observable<BTreeMap<ArgonPrimitivesBitcoinUtxoRef, u64>>,
|
|
342
|
-
[u64]
|
|
343
|
-
>;
|
|
344
399
|
/**
|
|
345
400
|
* An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
|
|
346
401
|
**/
|
|
@@ -349,42 +404,23 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
349
404
|
() => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
|
|
350
405
|
[]
|
|
351
406
|
>;
|
|
352
|
-
/**
|
|
353
|
-
* Pending funding entries that have expired. These remain watched until their additional
|
|
354
|
-
* orphan-detection window ends, then await bounded cleanup.
|
|
355
|
-
**/
|
|
356
|
-
expiredPendingFunding: AugmentedQuery<
|
|
357
|
-
ApiType,
|
|
358
|
-
() => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
|
|
359
|
-
[]
|
|
360
|
-
>;
|
|
361
407
|
/**
|
|
362
408
|
* Check if the inherent was included
|
|
363
409
|
**/
|
|
364
410
|
inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
365
411
|
/**
|
|
366
|
-
*
|
|
367
|
-
* amounts within the MinimumSatoshiThreshold of the expected. If a Bitcoin UTXO is moved
|
|
368
|
-
* before the expiration block, the funds are burned and the UTXO is unlocked.
|
|
412
|
+
* The Lock ID identified by each watched script pubkey.
|
|
369
413
|
**/
|
|
370
|
-
|
|
414
|
+
lockIdByScriptPubkey: AugmentedQuery<
|
|
371
415
|
ApiType,
|
|
372
416
|
(
|
|
373
417
|
arg:
|
|
374
|
-
|
|
|
375
|
-
| {
|
|
418
|
+
| ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
|
|
419
|
+
| { P2WSH: any }
|
|
376
420
|
| string
|
|
377
421
|
| Uint8Array,
|
|
378
|
-
) => Observable<Option<
|
|
379
|
-
[
|
|
380
|
-
>;
|
|
381
|
-
/**
|
|
382
|
-
* Bitcoin locks that are pending full funding on the bitcoin network
|
|
383
|
-
**/
|
|
384
|
-
locksPendingFunding: AugmentedQuery<
|
|
385
|
-
ApiType,
|
|
386
|
-
() => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>,
|
|
387
|
-
[]
|
|
422
|
+
) => Observable<Option<u64>>,
|
|
423
|
+
[ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
|
|
388
424
|
>;
|
|
389
425
|
/**
|
|
390
426
|
* Bitcoin Oracle Operator Account
|
|
@@ -408,11 +444,21 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
408
444
|
**/
|
|
409
445
|
tempParentHasSyncState: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
410
446
|
/**
|
|
411
|
-
*
|
|
447
|
+
* Watched Lock addresses and the scan height needed to observe them.
|
|
412
448
|
**/
|
|
413
|
-
|
|
449
|
+
utxoAddressByLockId: AugmentedQuery<
|
|
414
450
|
ApiType,
|
|
415
|
-
(
|
|
451
|
+
(
|
|
452
|
+
arg: u64 | AnyNumber | Uint8Array,
|
|
453
|
+
) => Observable<Option<ArgonPrimitivesBitcoinUtxoAddress>>,
|
|
454
|
+
[u64]
|
|
455
|
+
>;
|
|
456
|
+
/**
|
|
457
|
+
* Every output observed at a watched Lock address, retained until explicitly removed.
|
|
458
|
+
**/
|
|
459
|
+
utxoRefsByLockId: AugmentedQuery<
|
|
460
|
+
ApiType,
|
|
461
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<ArgonPrimitivesBitcoinUtxoRef>>,
|
|
416
462
|
[u64]
|
|
417
463
|
>;
|
|
418
464
|
};
|
|
@@ -1043,9 +1089,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1043
1089
|
**/
|
|
1044
1090
|
argonotsPerMiningSeat: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1045
1091
|
/**
|
|
1046
|
-
*
|
|
1092
|
+
* Winning bid totals and seat counts for averaging prices over the last 10 frames (newest
|
|
1093
|
+
* first).
|
|
1047
1094
|
**/
|
|
1048
|
-
averagePricePerSeat: AugmentedQuery<
|
|
1095
|
+
averagePricePerSeat: AugmentedQuery<
|
|
1096
|
+
ApiType,
|
|
1097
|
+
() => Observable<Vec<PalletMiningSlotSeatPriceStats>>,
|
|
1098
|
+
[]
|
|
1099
|
+
>;
|
|
1049
1100
|
/**
|
|
1050
1101
|
* The cohort set to go into effect in the next slot. The Vec has all
|
|
1051
1102
|
* registrants with their bid amount
|
|
@@ -1159,43 +1210,39 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1159
1210
|
**/
|
|
1160
1211
|
miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, []>;
|
|
1161
1212
|
/**
|
|
1162
|
-
*
|
|
1213
|
+
* Bitcoin-minted Argons that have not been explicitly repaid through Fission settlement.
|
|
1163
1214
|
**/
|
|
1164
1215
|
mintedBitcoinMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1165
|
-
/**
|
|
1166
|
-
* The total amount of microgons minted for mining
|
|
1167
|
-
**/
|
|
1168
|
-
mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1169
1216
|
/**
|
|
1170
1217
|
* The next monotonic queue index to assign to a pending bitcoin mint.
|
|
1171
1218
|
**/
|
|
1172
|
-
|
|
1219
|
+
nextPendingBitcoinMintIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1173
1220
|
/**
|
|
1174
|
-
*
|
|
1175
|
-
*
|
|
1221
|
+
* Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
|
|
1222
|
+
* payouts can preserve FIFO order while each frame works through a fixed payout cohort.
|
|
1176
1223
|
**/
|
|
1177
|
-
|
|
1224
|
+
pendingBitcoinMintsByIndex: AugmentedQuery<
|
|
1178
1225
|
ApiType,
|
|
1179
|
-
() => Observable<
|
|
1180
|
-
[]
|
|
1226
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingBitcoinMint>>,
|
|
1227
|
+
[u64]
|
|
1181
1228
|
>;
|
|
1182
1229
|
/**
|
|
1183
1230
|
* Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
|
|
1184
1231
|
* client lookup.
|
|
1185
1232
|
**/
|
|
1186
|
-
|
|
1233
|
+
pendingMintIndicesByLockId: AugmentedQuery<
|
|
1187
1234
|
ApiType,
|
|
1188
1235
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1189
1236
|
[u64]
|
|
1190
1237
|
>;
|
|
1191
1238
|
/**
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1239
|
+
* Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
|
|
1240
|
+
* current frame scan cursor.
|
|
1194
1241
|
**/
|
|
1195
|
-
|
|
1242
|
+
pendingMintQueueState: AugmentedQuery<
|
|
1196
1243
|
ApiType,
|
|
1197
|
-
(
|
|
1198
|
-
[
|
|
1244
|
+
() => Observable<PalletMintMintQueueCursor>,
|
|
1245
|
+
[]
|
|
1199
1246
|
>;
|
|
1200
1247
|
};
|
|
1201
1248
|
multisig: {
|
|
@@ -1754,12 +1801,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1754
1801
|
) => Observable<Option<Null>>,
|
|
1755
1802
|
[AccountId32, u64]
|
|
1756
1803
|
>;
|
|
1804
|
+
/**
|
|
1805
|
+
* Live Argon bond lot ids associated with a vault, including lots awaiting release. Direct
|
|
1806
|
+
* frame payouts iterate this admission-bounded index.
|
|
1807
|
+
**/
|
|
1808
|
+
bondLotIdsByVault: AugmentedQuery<
|
|
1809
|
+
ApiType,
|
|
1810
|
+
(
|
|
1811
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
1812
|
+
arg2: u64 | AnyNumber | Uint8Array,
|
|
1813
|
+
) => Observable<Option<Null>>,
|
|
1814
|
+
[u32, u64]
|
|
1815
|
+
>;
|
|
1757
1816
|
/**
|
|
1758
1817
|
* The active bond state for a vault.
|
|
1759
1818
|
*
|
|
1760
|
-
*
|
|
1761
|
-
* when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
|
|
1762
|
-
* aggregate.
|
|
1819
|
+
* Admission totals and flexible displacement; individual lots live in `BondLotById`.
|
|
1763
1820
|
**/
|
|
1764
1821
|
bondLotsByVault: AugmentedQuery<
|
|
1765
1822
|
ApiType,
|
|
@@ -1777,9 +1834,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1777
1834
|
[]
|
|
1778
1835
|
>;
|
|
1779
1836
|
/**
|
|
1780
|
-
* The vault capital locked for the current frame.
|
|
1781
|
-
*
|
|
1782
|
-
* Payout uses this to see which vaults and bond lots are participating in the frame.
|
|
1837
|
+
* The network bond total and vault capital locked for the current frame's payout.
|
|
1783
1838
|
**/
|
|
1784
1839
|
currentFrameVaultCapital: AugmentedQuery<
|
|
1785
1840
|
ApiType,
|
|
@@ -1824,9 +1879,36 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1824
1879
|
[u64]
|
|
1825
1880
|
>;
|
|
1826
1881
|
/**
|
|
1827
|
-
*
|
|
1882
|
+
* Configurable percent of maximum Bitcoin-mintable Argons targeted by the network.
|
|
1883
|
+
**/
|
|
1884
|
+
targetBitcoinPercent: AugmentedQuery<ApiType, () => Observable<Percent>, []>;
|
|
1885
|
+
/**
|
|
1886
|
+
* Live Argon bond lots, including those awaiting release; stakes have a separate admission
|
|
1887
|
+
* limit.
|
|
1888
|
+
**/
|
|
1889
|
+
totalArgonBondLots: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1890
|
+
};
|
|
1891
|
+
treasuryPositions: {
|
|
1892
|
+
/**
|
|
1893
|
+
* Maintained network quantities, updated together with their account contributions.
|
|
1894
|
+
* Treasury reads these when freezing frame inputs. This replaces its live Argonot stake total.
|
|
1895
|
+
**/
|
|
1896
|
+
networkTotals: AugmentedQuery<
|
|
1897
|
+
ApiType,
|
|
1898
|
+
() => Observable<ArgonPrimitivesTreasuryPositionQuantities>,
|
|
1899
|
+
[]
|
|
1900
|
+
>;
|
|
1901
|
+
/**
|
|
1902
|
+
* Maintained source quantities keyed by the actual position owner. Upstream quantities belong
|
|
1903
|
+
* to the linked vault account; primary and mining account balances are separate owners.
|
|
1828
1904
|
**/
|
|
1829
|
-
|
|
1905
|
+
positionsByAccount: AugmentedQuery<
|
|
1906
|
+
ApiType,
|
|
1907
|
+
(
|
|
1908
|
+
arg: AccountId32 | string | Uint8Array,
|
|
1909
|
+
) => Observable<Option<PalletTreasuryPositionsPosition>>,
|
|
1910
|
+
[AccountId32]
|
|
1911
|
+
>;
|
|
1830
1912
|
};
|
|
1831
1913
|
txPause: {
|
|
1832
1914
|
/**
|
|
@@ -1842,13 +1924,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1842
1924
|
};
|
|
1843
1925
|
vaults: {
|
|
1844
1926
|
/**
|
|
1845
|
-
*
|
|
1927
|
+
* Argonots held for the vault, with reward commitments and cross-chain encumbrances.
|
|
1846
1928
|
**/
|
|
1847
|
-
|
|
1929
|
+
argonotSecuritizationByVaultId: AugmentedQuery<
|
|
1848
1930
|
ApiType,
|
|
1849
1931
|
(
|
|
1850
1932
|
arg: u32 | AnyNumber | Uint8Array,
|
|
1851
|
-
) => Observable<Option<
|
|
1933
|
+
) => Observable<Option<ArgonPrimitivesVaultVaultArgonotSecuritization>>,
|
|
1852
1934
|
[u32]
|
|
1853
1935
|
>;
|
|
1854
1936
|
/**
|
|
@@ -1899,6 +1981,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1899
1981
|
[u32]
|
|
1900
1982
|
>;
|
|
1901
1983
|
revenuePerFrameByVaultCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1984
|
+
/**
|
|
1985
|
+
* Raw securitization across all open vaults, including those below the payout cutoff.
|
|
1986
|
+
**/
|
|
1987
|
+
totalVaultSecuritization: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1902
1988
|
/**
|
|
1903
1989
|
* The vaults that have funds releasing at a given bitcoin height
|
|
1904
1990
|
**/
|
|
@@ -1924,12 +2010,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1924
2010
|
[u32]
|
|
1925
2011
|
>;
|
|
1926
2012
|
/**
|
|
1927
|
-
*
|
|
2013
|
+
* Open vaults ordered by raw securitization (largest first), then vault ID.
|
|
1928
2014
|
**/
|
|
1929
|
-
|
|
2015
|
+
vaultSecuritizationRanks: AugmentedQuery<
|
|
1930
2016
|
ApiType,
|
|
1931
|
-
(
|
|
1932
|
-
|
|
2017
|
+
(
|
|
2018
|
+
arg:
|
|
2019
|
+
| ArgonPrimitivesAmountRankAmountRankKey
|
|
2020
|
+
| { descendingAmount?: any; orderedId?: any }
|
|
2021
|
+
| string
|
|
2022
|
+
| Uint8Array,
|
|
2023
|
+
) => Observable<Option<Null>>,
|
|
2024
|
+
[ArgonPrimitivesAmountRankAmountRankKey]
|
|
1933
2025
|
>;
|
|
1934
2026
|
/**
|
|
1935
2027
|
* Vault Bitcoin Xpub and current child counter by VaultId
|
|
@@ -23,7 +23,11 @@ import type {
|
|
|
23
23
|
u64,
|
|
24
24
|
} from '@polkadot/types-codec';
|
|
25
25
|
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
|
26
|
-
import type {
|
|
26
|
+
import type {
|
|
27
|
+
ExtrinsicOrHash,
|
|
28
|
+
ExtrinsicStatus,
|
|
29
|
+
GeneratedSessionKeys,
|
|
30
|
+
} from '@polkadot/types/interfaces/author';
|
|
27
31
|
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
|
28
32
|
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
|
|
29
33
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
@@ -61,7 +65,7 @@ import type {
|
|
|
61
65
|
JustificationNotification,
|
|
62
66
|
ReportedRoundStates,
|
|
63
67
|
} from '@polkadot/types/interfaces/grandpa';
|
|
64
|
-
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
68
|
+
import type { MmrAncestryProof, MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
65
69
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
|
66
70
|
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
|
67
71
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
|
@@ -140,6 +144,12 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
140
144
|
* Generate new session keys and returns the corresponding public keys
|
|
141
145
|
**/
|
|
142
146
|
rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
|
|
147
|
+
/**
|
|
148
|
+
* Generate new session keys and returns the corresponding public keys and owner proof
|
|
149
|
+
**/
|
|
150
|
+
rotateKeysWithOwner: AugmentedRpc<
|
|
151
|
+
(owner: Bytes | string | Uint8Array) => Observable<GeneratedSessionKeys>
|
|
152
|
+
>;
|
|
143
153
|
/**
|
|
144
154
|
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
145
155
|
**/
|
|
@@ -721,6 +731,16 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
721
731
|
subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
|
|
722
732
|
};
|
|
723
733
|
mmr: {
|
|
734
|
+
/**
|
|
735
|
+
* Generate an MMR ancestry proof for the given block number.
|
|
736
|
+
**/
|
|
737
|
+
generateAncestryProof: AugmentedRpc<
|
|
738
|
+
(
|
|
739
|
+
prevBlockNumber: u64 | AnyNumber | Uint8Array,
|
|
740
|
+
bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array,
|
|
741
|
+
at?: BlockHash | string | Uint8Array,
|
|
742
|
+
) => Observable<MmrAncestryProof>
|
|
743
|
+
>;
|
|
724
744
|
/**
|
|
725
745
|
* Generate MMR proof for the given block numbers.
|
|
726
746
|
**/
|