@argonprotocol/mainchain 1.4.12 → 1.4.13-dev.479a6416

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.
@@ -1,9 +1,8 @@
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
6
- import type {} from '@polkadot/api-base/types/storage';
5
+ import '@polkadot/api-base/types/storage';
7
6
 
8
7
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
9
8
  import type {
@@ -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,
@@ -50,7 +51,7 @@ import type {
50
51
  ArgonPrimitivesProvidersBlockSealerInfo,
51
52
  ArgonPrimitivesTickTicker,
52
53
  ArgonPrimitivesVault,
53
- ArgonPrimitivesVaultVaultArgonotCommitment,
54
+ ArgonPrimitivesVaultVaultArgonotSecuritization,
54
55
  FrameSupportDispatchPerDispatchClassWeight,
55
56
  FrameSupportTokensFungibleImbalance,
56
57
  FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
@@ -63,9 +64,12 @@ import type {
63
64
  PalletBalancesAccountData,
64
65
  PalletBalancesBalanceLock,
65
66
  PalletBalancesReserveData,
67
+ PalletBitcoinFissionsFission,
68
+ PalletBitcoinLocksLockReleaseCosignHeight,
66
69
  PalletBitcoinLocksLockReleaseRequest,
67
70
  PalletBitcoinLocksLockedBitcoin,
68
71
  PalletBitcoinLocksOrphanedUtxo,
72
+ PalletBitcoinLocksPendingPartialRelease,
69
73
  PalletBootstrapEndpointPubkey,
70
74
  PalletBootstrapRecoveryPubkey,
71
75
  PalletCrosschainTransferAccountTransferTotals,
@@ -92,7 +96,7 @@ import type {
92
96
  PalletMiningSlotMinerNonceScoring,
93
97
  PalletMintMintAction,
94
98
  PalletMintMintQueueCursor,
95
- PalletMintPendingMintUtxo,
99
+ PalletMintPendingBitcoinMint,
96
100
  PalletMultisigMultisig,
97
101
  PalletOperationalAccountsOperationalAccount,
98
102
  PalletOperationalAccountsRewardsConfig,
@@ -209,6 +213,35 @@ declare module '@polkadot/api-base/types/storage' {
209
213
  **/
210
214
  totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
211
215
  };
216
+ bitcoinFissions: {
217
+ /**
218
+ * Active Fission records addressed by their owner and owner-local Fission ID.
219
+ **/
220
+ fissionByOwnerAndId: AugmentedQuery<
221
+ ApiType,
222
+ (
223
+ arg1: AccountId32 | string | Uint8Array,
224
+ arg2: u64 | AnyNumber | Uint8Array,
225
+ ) => Observable<Option<PalletBitcoinFissionsFission>>,
226
+ [AccountId32, u64]
227
+ >;
228
+ /**
229
+ * Active Fission IDs allocating satoshis from each Lock.
230
+ **/
231
+ fissionIdsByLockId: AugmentedQuery<
232
+ ApiType,
233
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
234
+ [u64]
235
+ >;
236
+ /**
237
+ * Minimum Fission ID accepted from each owner.
238
+ **/
239
+ nextFissionIdByOwner: AugmentedQuery<
240
+ ApiType,
241
+ (arg: AccountId32 | string | Uint8Array) => Observable<u64>,
242
+ [AccountId32]
243
+ >;
244
+ };
212
245
  bitcoinLocks: {
213
246
  lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
214
247
  ApiType,
@@ -218,6 +251,14 @@ declare module '@polkadot/api-base/types/storage' {
218
251
  ) => Observable<Option<u64>>,
219
252
  [u32, AccountId32]
220
253
  >;
254
+ /**
255
+ * Highest Bitcoin UTXO sync height processed for securitization hold expirations.
256
+ **/
257
+ lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
258
+ ApiType,
259
+ () => Observable<Option<u64>>,
260
+ []
261
+ >;
221
262
  /**
222
263
  * Utxos that have been requested to be cosigned for releasing
223
264
  **/
@@ -236,17 +277,41 @@ declare module '@polkadot/api-base/types/storage' {
236
277
  [u64]
237
278
  >;
238
279
  /**
239
- * Stores the block number where a release was cosigned by the vault.
280
+ * Index of active UTXO IDs per owner account.
281
+ **/
282
+ lockIdsByOwnerAccount: AugmentedQuery<
283
+ ApiType,
284
+ (
285
+ arg1: AccountId32 | string | Uint8Array,
286
+ arg2: u64 | AnyNumber | Uint8Array,
287
+ ) => Observable<Option<Null>>,
288
+ [AccountId32, u64]
289
+ >;
290
+ /**
291
+ * Index of active UTXO IDs per vault
292
+ **/
293
+ lockIdsByVaultId: AugmentedQuery<
294
+ ApiType,
295
+ (
296
+ arg1: u32 | AnyNumber | Uint8Array,
297
+ arg2: u64 | AnyNumber | Uint8Array,
298
+ ) => Observable<Option<Null>>,
299
+ [u32, u64]
300
+ >;
301
+ /**
302
+ * Latest cosigned release for each Lock, retained for signature recovery.
240
303
  **/
241
304
  lockReleaseCosignHeightById: AugmentedQuery<
242
305
  ApiType,
243
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>,
306
+ (
307
+ arg: u64 | AnyNumber | Uint8Array,
308
+ ) => Observable<Option<PalletBitcoinLocksLockReleaseCosignHeight>>,
244
309
  [u64]
245
310
  >;
246
311
  /**
247
- * Stores bitcoin locks that have requested to be released
312
+ * Release requests awaiting a Vault cosignature.
248
313
  **/
249
- lockReleaseRequestsByUtxoId: AugmentedQuery<
314
+ lockReleaseRequestsById: AugmentedQuery<
250
315
  ApiType,
251
316
  (
252
317
  arg: u64 | AnyNumber | Uint8Array,
@@ -256,13 +321,13 @@ declare module '@polkadot/api-base/types/storage' {
256
321
  /**
257
322
  * Stores bitcoin utxos that have requested to be released
258
323
  **/
259
- locksByUtxoId: AugmentedQuery<
324
+ locksById: AugmentedQuery<
260
325
  ApiType,
261
326
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>,
262
327
  [u64]
263
328
  >;
264
329
  /**
265
- * History of target microgons per btc.
330
+ * Recent target-normalized microgon values per BTC and their observed ticks.
266
331
  **/
267
332
  microgonPerBtcHistory: AugmentedQuery<
268
333
  ApiType,
@@ -270,10 +335,10 @@ declare module '@polkadot/api-base/types/storage' {
270
335
  []
271
336
  >;
272
337
  /**
273
- * The minimum number of satoshis that can be locked
338
+ * The minimum number of satoshis accepted in one watched funding UTXO.
274
339
  **/
275
340
  minimumSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
276
- nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
341
+ nextBitcoinLockId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
277
342
  /**
278
343
  * Expiration of orphaned utxo refs by user account
279
344
  **/
@@ -300,26 +365,23 @@ declare module '@polkadot/api-base/types/storage' {
300
365
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
301
366
  >;
302
367
  /**
303
- * Index of active UTXO IDs per owner account.
368
+ * Cosigned partial releases awaiting confirmation on Bitcoin.
304
369
  **/
305
- utxoIdsByOwnerAccount: AugmentedQuery<
370
+ pendingPartialReleaseByLockId: AugmentedQuery<
306
371
  ApiType,
307
372
  (
308
- arg1: AccountId32 | string | Uint8Array,
309
- arg2: u64 | AnyNumber | Uint8Array,
310
- ) => Observable<Option<Null>>,
311
- [AccountId32, u64]
373
+ arg: u64 | AnyNumber | Uint8Array,
374
+ ) => Observable<Option<PalletBitcoinLocksPendingPartialRelease>>,
375
+ [u64]
312
376
  >;
313
377
  /**
314
- * Index of active UTXO IDs per vault
378
+ * Lock IDs whose securitization hold expires at the indexed Bitcoin height.
379
+ * Expiry releases only the unactivated portion and leaves the lock address watched.
315
380
  **/
316
- utxoIdsByVaultId: AugmentedQuery<
381
+ securitizationHoldExpirationsByBitcoinHeight: AugmentedQuery<
317
382
  ApiType,
318
- (
319
- arg1: u32 | AnyNumber | Uint8Array,
320
- arg2: u64 | AnyNumber | Uint8Array,
321
- ) => Observable<Option<Null>>,
322
- [u32, u64]
383
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>,
384
+ [u64]
323
385
  >;
324
386
  };
325
387
  bitcoinUtxos: {
@@ -331,16 +393,6 @@ declare module '@polkadot/api-base/types/storage' {
331
393
  () => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>,
332
394
  []
333
395
  >;
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
396
  /**
345
397
  * An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
346
398
  **/
@@ -349,42 +401,23 @@ declare module '@polkadot/api-base/types/storage' {
349
401
  () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>,
350
402
  []
351
403
  >;
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
404
  /**
362
405
  * Check if the inherent was included
363
406
  **/
364
407
  inherentIncluded: AugmentedQuery<ApiType, () => Observable<bool>, []>;
365
408
  /**
366
- * Locked Bitcoin UTXOs that have been funded with a UtxoRef from the Bitcoin network and
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.
409
+ * The Lock ID identified by each watched script pubkey.
369
410
  **/
370
- lockedUtxos: AugmentedQuery<
411
+ lockIdByScriptPubkey: AugmentedQuery<
371
412
  ApiType,
372
413
  (
373
414
  arg:
374
- | ArgonPrimitivesBitcoinUtxoRef
375
- | { txid?: any; outputIndex?: any }
415
+ | ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey
416
+ | { P2WSH: any }
376
417
  | string
377
418
  | Uint8Array,
378
- ) => Observable<Option<ArgonPrimitivesBitcoinUtxoValue>>,
379
- [ArgonPrimitivesBitcoinUtxoRef]
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
- []
419
+ ) => Observable<Option<u64>>,
420
+ [ArgonPrimitivesBitcoinBitcoinCosignScriptPubkey]
388
421
  >;
389
422
  /**
390
423
  * Bitcoin Oracle Operator Account
@@ -408,11 +441,21 @@ declare module '@polkadot/api-base/types/storage' {
408
441
  **/
409
442
  tempParentHasSyncState: AugmentedQuery<ApiType, () => Observable<bool>, []>;
410
443
  /**
411
- * A mapping of utxo id to the confirmed utxo reference
444
+ * Watched Lock addresses and the scan height needed to observe them.
445
+ **/
446
+ utxoAddressByLockId: AugmentedQuery<
447
+ ApiType,
448
+ (
449
+ arg: u64 | AnyNumber | Uint8Array,
450
+ ) => Observable<Option<ArgonPrimitivesBitcoinUtxoAddress>>,
451
+ [u64]
452
+ >;
453
+ /**
454
+ * Every output observed at a watched Lock address, retained until explicitly removed.
412
455
  **/
413
- utxoIdToFundingUtxoRef: AugmentedQuery<
456
+ utxoRefsByLockId: AugmentedQuery<
414
457
  ApiType,
415
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>,
458
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<ArgonPrimitivesBitcoinUtxoRef>>,
416
459
  [u64]
417
460
  >;
418
461
  };
@@ -1159,43 +1202,39 @@ declare module '@polkadot/api-base/types/storage' {
1159
1202
  **/
1160
1203
  miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, []>;
1161
1204
  /**
1162
- * The total amount of Bitcoin microgons minted. Cannot exceed `MintedMiningMicrogons`.
1205
+ * Bitcoin-minted Argons that have not been explicitly repaid through Fission settlement.
1163
1206
  **/
1164
1207
  mintedBitcoinMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1165
- /**
1166
- * The total amount of microgons minted for mining
1167
- **/
1168
- mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1169
1208
  /**
1170
1209
  * The next monotonic queue index to assign to a pending bitcoin mint.
1171
1210
  **/
1172
- nextPendingMintUtxoIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1211
+ nextPendingBitcoinMintIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1173
1212
  /**
1174
- * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1175
- * current frame scan cursor.
1213
+ * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1214
+ * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1176
1215
  **/
1177
- pendingMintQueueState: AugmentedQuery<
1216
+ pendingBitcoinMintsByIndex: AugmentedQuery<
1178
1217
  ApiType,
1179
- () => Observable<PalletMintMintQueueCursor>,
1180
- []
1218
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingBitcoinMint>>,
1219
+ [u64]
1181
1220
  >;
1182
1221
  /**
1183
1222
  * Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
1184
1223
  * client lookup.
1185
1224
  **/
1186
- pendingMintUtxoIdLookup: AugmentedQuery<
1225
+ pendingMintIndicesByLockId: AugmentedQuery<
1187
1226
  ApiType,
1188
1227
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1189
1228
  [u64]
1190
1229
  >;
1191
1230
  /**
1192
- * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1193
- * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1231
+ * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1232
+ * current frame scan cursor.
1194
1233
  **/
1195
- pendingMintUtxosByIndex: AugmentedQuery<
1234
+ pendingMintQueueState: AugmentedQuery<
1196
1235
  ApiType,
1197
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingMintUtxo>>,
1198
- [u64]
1236
+ () => Observable<PalletMintMintQueueCursor>,
1237
+ []
1199
1238
  >;
1200
1239
  };
1201
1240
  multisig: {
@@ -1754,12 +1793,22 @@ declare module '@polkadot/api-base/types/storage' {
1754
1793
  ) => Observable<Option<Null>>,
1755
1794
  [AccountId32, u64]
1756
1795
  >;
1796
+ /**
1797
+ * Live Argon bond lot ids associated with a vault, including lots awaiting release. Direct
1798
+ * frame payouts iterate this admission-bounded index.
1799
+ **/
1800
+ bondLotIdsByVault: AugmentedQuery<
1801
+ ApiType,
1802
+ (
1803
+ arg1: u32 | AnyNumber | Uint8Array,
1804
+ arg2: u64 | AnyNumber | Uint8Array,
1805
+ ) => Observable<Option<Null>>,
1806
+ [u32, u64]
1807
+ >;
1757
1808
  /**
1758
1809
  * The active bond state for a vault.
1759
1810
  *
1760
- * The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
1761
- * when amounts tie. Flexible lots remain in `BondLotById` and are represented here by their
1762
- * aggregate.
1811
+ * Admission totals and flexible displacement; individual lots live in `BondLotById`.
1763
1812
  **/
1764
1813
  bondLotsByVault: AugmentedQuery<
1765
1814
  ApiType,
@@ -1779,7 +1828,7 @@ declare module '@polkadot/api-base/types/storage' {
1779
1828
  /**
1780
1829
  * The vault capital locked for the current frame.
1781
1830
  *
1782
- * Payout uses this to see which vaults and bond lots are participating in the frame.
1831
+ * Payout uses this for the network bond total and participating vault positions.
1783
1832
  **/
1784
1833
  currentFrameVaultCapital: AugmentedQuery<
1785
1834
  ApiType,
@@ -1823,10 +1872,19 @@ declare module '@polkadot/api-base/types/storage' {
1823
1872
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1824
1873
  [u64]
1825
1874
  >;
1875
+ /**
1876
+ * Configurable percent of maximum Bitcoin-mintable Argons targeted by the network.
1877
+ **/
1878
+ targetBitcoinPercent: AugmentedQuery<ApiType, () => Observable<Percent>, []>;
1826
1879
  /**
1827
1880
  * The total number of active Argonot bonds in the active set.
1828
1881
  **/
1829
1882
  totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1883
+ /**
1884
+ * Live Argon bond lots, including those awaiting release; stakes have a separate admission
1885
+ * limit.
1886
+ **/
1887
+ totalArgonBondLots: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1830
1888
  };
1831
1889
  txPause: {
1832
1890
  /**
@@ -1842,13 +1900,13 @@ declare module '@polkadot/api-base/types/storage' {
1842
1900
  };
1843
1901
  vaults: {
1844
1902
  /**
1845
- * Vault-side committed and crosschain-encumbered argonot backing.
1903
+ * Argonots held for the vault, with reward commitments and cross-chain encumbrances.
1846
1904
  **/
1847
- argonotCommitmentByVaultId: AugmentedQuery<
1905
+ argonotSecuritizationByVaultId: AugmentedQuery<
1848
1906
  ApiType,
1849
1907
  (
1850
1908
  arg: u32 | AnyNumber | Uint8Array,
1851
- ) => Observable<Option<ArgonPrimitivesVaultVaultArgonotCommitment>>,
1909
+ ) => Observable<Option<ArgonPrimitivesVaultVaultArgonotSecuritization>>,
1852
1910
  [u32]
1853
1911
  >;
1854
1912
  /**
@@ -1899,6 +1957,10 @@ declare module '@polkadot/api-base/types/storage' {
1899
1957
  [u32]
1900
1958
  >;
1901
1959
  revenuePerFrameByVaultCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1960
+ /**
1961
+ * Raw securitization across all open vaults, including those below the payout cutoff.
1962
+ **/
1963
+ totalVaultSecuritization: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1902
1964
  /**
1903
1965
  * The vaults that have funds releasing at a given bitcoin height
1904
1966
  **/
@@ -1924,12 +1986,18 @@ declare module '@polkadot/api-base/types/storage' {
1924
1986
  [u32]
1925
1987
  >;
1926
1988
  /**
1927
- * Vaults whose temporary operational minimum may be released at a given tick.
1989
+ * Open vaults ordered by raw securitization (largest first), then vault ID.
1928
1990
  **/
1929
- vaultsReleasingOperationalMinimumByTick: AugmentedQuery<
1991
+ vaultSecuritizationRanks: AugmentedQuery<
1930
1992
  ApiType,
1931
- (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u32>>,
1932
- [u64]
1993
+ (
1994
+ arg:
1995
+ | ArgonPrimitivesAmountRankAmountRankKey
1996
+ | { descendingAmount?: any; orderedId?: any }
1997
+ | string
1998
+ | Uint8Array,
1999
+ ) => Observable<Option<Null>>,
2000
+ [ArgonPrimitivesAmountRankAmountRankKey]
1933
2001
  >;
1934
2002
  /**
1935
2003
  * Vault Bitcoin Xpub and current child counter by VaultId
@@ -3,7 +3,7 @@
3
3
 
4
4
  // import type lookup before we augment - in some environments
5
5
  // this is required to allow for ambient/previous definitions
6
- import type {} from '@polkadot/rpc-core/types/jsonrpc';
6
+ import '@polkadot/rpc-core/types/jsonrpc';
7
7
 
8
8
  import type { AugmentedRpc } from '@polkadot/rpc-core/types';
9
9
  import type { Metadata, StorageKey } from '@polkadot/types';
@@ -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 { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
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
  **/
@@ -1,9 +1,8 @@
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
6
- import type {} from '@polkadot/api-base/types/calls';
5
+ import '@polkadot/api-base/types/calls';
7
6
 
8
7
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
9
8
  import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';