@argonprotocol/mainchain 1.4.10 → 1.4.11-dev.1acff0b2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.4.10",
3
+ "version": "1.4.11-dev.1acff0b2",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,11 +14,14 @@
14
14
  "homepage": "https://github.com/argonprotocol/mainchain#readme",
15
15
  "scripts": {
16
16
  "build": "yarn generate:defs && yarn generate:meta && node clean-build.js && yarn tsc",
17
+ "generate:contract-declarations": "tsc -p tsconfig.contracts.json",
17
18
  "generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
18
19
  "generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
19
20
  "test": "vitest --run --config vitest.config.ts",
20
- "tsc": "yarn workspace @argonprotocol/ethereum-contracts build && tsup",
21
- "watch": "tsup --watch",
21
+ "tsc": "yarn workspace @argonprotocol/ethereum-contracts build && yarn generate:contract-declarations && tsup && yarn validate:package",
22
+ "tsup": "yarn tsc",
23
+ "validate:package": "tsx src/scripts/validatePackage.ts",
24
+ "watch": "yarn generate:contract-declarations && tsup --watch",
22
25
  "typecheck": "tsc --noEmit -p tsconfig.test.json"
23
26
  },
24
27
  "files": [
@@ -65,7 +68,7 @@
65
68
  },
66
69
  "devDependencies": {
67
70
  "@argonprotocol/ethereum-contracts": "workspace:*",
68
- "@argonprotocol/testing": "1.4.10",
71
+ "@argonprotocol/testing": "1.4.11-dev.1acff0b2",
69
72
  "@polkadot/typegen": "^16.5.6",
70
73
  "@substrate/ss58-registry": "^1.51.0",
71
74
  "@types/node": "^20",
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -102,7 +103,8 @@ declare module '@polkadot/api-base/types/consts' {
102
103
  **/
103
104
  maximumSatoshiThresholdFromExpected: u64 & AugmentedConst<ApiType>;
104
105
  /**
105
- * Maximum bitcoin blocks to watch a Utxo for confirmation before canceling
106
+ * Maximum bitcoin blocks to accept a UTXO for confirmation. Expired locks remain watched
107
+ * for this many additional blocks so late funding can be detected as orphaned.
106
108
  **/
107
109
  maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
108
110
  /**
@@ -159,6 +161,12 @@ declare module '@polkadot/api-base/types/consts' {
159
161
  **/
160
162
  targetBlockVotes: u128 & AugmentedConst<ApiType>;
161
163
  };
164
+ bootstrap: {
165
+ /**
166
+ * Maximum number of bytes in an encrypted recovery or endpoint payload.
167
+ **/
168
+ maxEncryptedPayloadLen: u32 & AugmentedConst<ApiType>;
169
+ };
162
170
  crosschainTransfer: {
163
171
  /**
164
172
  * Minimum remaining frame commitment required when reading vault committed collateral
@@ -369,13 +377,13 @@ declare module '@polkadot/api-base/types/consts' {
369
377
  **/
370
378
  bitcoinLockSizeForAccessCode: u128 & AugmentedConst<ApiType>;
371
379
  /**
372
- * Maximum number of available access codes allowed at once.
380
+ * Maximum number of accrued access codes awarded at one frame boundary.
373
381
  **/
374
- maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
382
+ maxAccessCodeAwardsPerFrame: u32 & AugmentedConst<ApiType>;
375
383
  /**
376
- * Maximum number of encrypted server bytes stored per network account.
384
+ * Maximum number of available access codes allowed at once.
377
385
  **/
378
- maxEncryptedServerLen: u32 & AugmentedConst<ApiType>;
386
+ maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
379
387
  /**
380
388
  * Minimum bitcoin amount required to register.
381
389
  **/
@@ -467,6 +475,10 @@ declare module '@polkadot/api-base/types/consts' {
467
475
  * The maximum number of ticks to preserve a price index
468
476
  **/
469
477
  maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
478
+ /**
479
+ * Maximum number of per-frame Ethereum price buckets to retain.
480
+ **/
481
+ maxEthereumPriceHistoryFrames: u32 & AugmentedConst<ApiType>;
470
482
  /**
471
483
  * The oldest history to keep
472
484
  **/
@@ -639,11 +651,6 @@ declare module '@polkadot/api-base/types/consts' {
639
651
  batchedCallsLimit: u32 & AugmentedConst<ApiType>;
640
652
  };
641
653
  vaults: {
642
- /**
643
- * One no-fee stale `initialize_for` failure is allowed for each this-many units of lost
644
- * `available_for_lock`.
645
- **/
646
- capacityDropAttemptUnit: u128 & AugmentedConst<ApiType>;
647
654
  /**
648
655
  * Max concurrent cosigns pending per vault
649
656
  **/
@@ -652,10 +659,6 @@ declare module '@polkadot/api-base/types/consts' {
652
659
  * The max pending vault term changes per block
653
660
  **/
654
661
  maxPendingTermModificationsPerTick: u32 & AugmentedConst<ApiType>;
655
- /**
656
- * Maximum number of recent `available_for_lock` drops retained per vault.
657
- **/
658
- maxRecentCapacityDropsPerVault: u32 & AugmentedConst<ApiType>;
659
662
  /**
660
663
  * The max number of vaults that can be created
661
664
  **/
@@ -668,10 +671,6 @@ declare module '@polkadot/api-base/types/consts' {
668
671
  * Minimum vault securitization required while the operational floor lock is active.
669
672
  **/
670
673
  operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
671
- /**
672
- * Number of Argon blocks to keep recent `available_for_lock` drops for stale init checks.
673
- **/
674
- recentCapacityDropBlockWindow: u32 & AugmentedConst<ApiType>;
675
674
  /**
676
675
  * The number of frames within which revenue must be collected
677
676
  **/
@@ -98,6 +98,30 @@ declare module '@polkadot/api-base/types/errors' {
98
98
  * An overflow occurred recording a lock expiration
99
99
  **/
100
100
  ExpirationAtBlockOverflow: AugmentedError<ApiType>;
101
+ /**
102
+ * The fee coupon nonce has already been consumed or superseded.
103
+ **/
104
+ FeeCouponAlreadyUsed: AugmentedError<ApiType>;
105
+ /**
106
+ * The fee coupon is past its expiration frame.
107
+ **/
108
+ FeeCouponExpired: AugmentedError<ApiType>;
109
+ /**
110
+ * Fee coupons can only be applied when initializing a lock.
111
+ **/
112
+ FeeCouponOnlyForInitialization: AugmentedError<ApiType>;
113
+ /**
114
+ * The fee coupon was issued for a different beneficiary.
115
+ **/
116
+ FeeCouponWrongAccount: AugmentedError<ApiType>;
117
+ /**
118
+ * The fee coupon was issued for a different chain.
119
+ **/
120
+ FeeCouponWrongChain: AugmentedError<ApiType>;
121
+ /**
122
+ * The fee coupon was issued for a different vault.
123
+ **/
124
+ FeeCouponWrongVault: AugmentedError<ApiType>;
101
125
  /**
102
126
  * Cannot request an orphaned release for the funding UTXO
103
127
  **/
@@ -124,6 +148,10 @@ declare module '@polkadot/api-base/types/errors' {
124
148
  * The bitcoin script to lock this bitcoin has errors
125
149
  **/
126
150
  InvalidBitcoinScript: AugmentedError<ApiType>;
151
+ /**
152
+ * The fee coupon was not signed by the vault delegate.
153
+ **/
154
+ InvalidFeeCouponSignature: AugmentedError<ApiType>;
127
155
  /**
128
156
  * Funding would result in an overflow of the balance type
129
157
  **/
@@ -352,6 +380,20 @@ declare module '@polkadot/api-base/types/errors' {
352
380
  **/
353
381
  MaxNotebooksAtTickExceeded: AugmentedError<ApiType>;
354
382
  };
383
+ bootstrap: {
384
+ /**
385
+ * The encrypted payload exceeds [`Config::MaxEncryptedPayloadLen`].
386
+ **/
387
+ EncryptedPayloadTooLong: AugmentedError<ApiType>;
388
+ /**
389
+ * The endpoint public key is already owned by a different account.
390
+ **/
391
+ EndpointOwnedByAnotherAccount: AugmentedError<ApiType>;
392
+ /**
393
+ * The recovery proof does not authorize this writer, public key, and payload.
394
+ **/
395
+ InvalidRecoveryProof: AugmentedError<ApiType>;
396
+ };
355
397
  crosschainTransfer: {
356
398
  /**
357
399
  * The force-set cut would discard a queue entry that already has local quorum.
@@ -369,6 +411,10 @@ declare module '@polkadot/api-base/types/errors' {
369
411
  * The account has not registered a council signer for this destination chain.
370
412
  **/
371
413
  CouncilSignerNotRegistered: AugmentedError<ApiType>;
414
+ /**
415
+ * The account already has a council signer rotation pending for this destination chain.
416
+ **/
417
+ CouncilSignerRotationPending: AugmentedError<ApiType>;
372
418
  /**
373
419
  * The supplied Global Issuance Council contains the same account more than once.
374
420
  **/
@@ -986,10 +1032,6 @@ declare module '@polkadot/api-base/types/errors' {
986
1032
  * An account cannot grant access to itself.
987
1033
  **/
988
1034
  CannotGrantAccessToSelf: AugmentedError<ApiType>;
989
- /**
990
- * The encrypted server payload exceeds the configured max length.
991
- **/
992
- EncryptedServerTooLong: AugmentedError<ApiType>;
993
1035
  /**
994
1036
  * The upstream access proof is invalid.
995
1037
  **/
@@ -998,6 +1040,11 @@ declare module '@polkadot/api-base/types/errors' {
998
1040
  * One of the linked account ownership proofs is invalid.
999
1041
  **/
1000
1042
  InvalidAccountProof: AugmentedError<ApiType>;
1043
+ /**
1044
+ * Profile names must start with an uppercase ASCII letter and otherwise be ASCII
1045
+ * alphanumeric.
1046
+ **/
1047
+ InvalidName: AugmentedError<ApiType>;
1001
1048
  /**
1002
1049
  * The caller is not one of the accounts included in the registration.
1003
1050
  **/
@@ -1022,10 +1069,6 @@ declare module '@polkadot/api-base/types/errors' {
1022
1069
  * The requested account has not registered operational accounts.
1023
1070
  **/
1024
1071
  NotOperationalAccount: AugmentedError<ApiType>;
1025
- /**
1026
- * The caller is not the upstream account for the requested downstream account.
1027
- **/
1028
- NotUpstreamOfDownstream: AugmentedError<ApiType>;
1029
1072
  /**
1030
1073
  * A valid invite is required to register an operational account.
1031
1074
  **/
@@ -1106,6 +1149,10 @@ declare module '@polkadot/api-base/types/errors' {
1106
1149
  VestingBalance: AugmentedError<ApiType>;
1107
1150
  };
1108
1151
  priceIndex: {
1152
+ /**
1153
+ * Ethereum prices must be non-zero and correspond to the submitted price-index tick.
1154
+ **/
1155
+ InvalidEthereumPrices: AugmentedError<ApiType>;
1109
1156
  /**
1110
1157
  * Change in argon price is too large
1111
1158
  **/
@@ -1225,13 +1272,13 @@ declare module '@polkadot/api-base/types/errors' {
1225
1272
  **/
1226
1273
  BondLotAlreadyReleasing: AugmentedError<ApiType>;
1227
1274
  /**
1228
- * The bond lot could not be found.
1275
+ * Only an active vault bond owned by its operator can be used as flexible.
1229
1276
  **/
1230
- BondLotNotFound: AugmentedError<ApiType>;
1277
+ BondLotCannotBeFlexible: AugmentedError<ApiType>;
1231
1278
  /**
1232
- * The vault doesn't have enough bitcoin security to support this bond purchase
1279
+ * The bond lot could not be found.
1233
1280
  **/
1234
- BondPurchaseAboveSecurity: AugmentedError<ApiType>;
1281
+ BondLotNotFound: AugmentedError<ApiType>;
1235
1282
  /**
1236
1283
  * The purchase is below the minimum amount.
1237
1284
  **/
@@ -1241,9 +1288,13 @@ declare module '@polkadot/api-base/types/errors' {
1241
1288
  **/
1242
1289
  BondPurchaseRejected: AugmentedError<ApiType>;
1243
1290
  /**
1244
- * The beneficiary already has a bond lot for this vault.
1291
+ * The bonus approval nonce has already been consumed or superseded.
1245
1292
  **/
1246
- BonusApprovalExistingBondLot: AugmentedError<ApiType>;
1293
+ BonusApprovalAlreadyUsed: AugmentedError<ApiType>;
1294
+ /**
1295
+ * The approved bonus plus the vault's profit sharing exceeds 100%.
1296
+ **/
1297
+ BonusApprovalExceedsProfitSharing: AugmentedError<ApiType>;
1247
1298
  /**
1248
1299
  * The bonus approval already expired.
1249
1300
  **/
@@ -1256,6 +1307,10 @@ declare module '@polkadot/api-base/types/errors' {
1256
1307
  * The bonus approval was signed for a different vault.
1257
1308
  **/
1258
1309
  BonusApprovalWrongVault: AugmentedError<ApiType>;
1310
+ /**
1311
+ * The vault doesn't have enough bitcoin security to support this bond purchase
1312
+ **/
1313
+ InsufficientBondSpace: AugmentedError<ApiType>;
1259
1314
  /**
1260
1315
  * An internal error occurred.
1261
1316
  **/
@@ -1272,6 +1327,10 @@ declare module '@polkadot/api-base/types/errors' {
1272
1327
  * Too many bond lot releases are scheduled for the same frame.
1273
1328
  **/
1274
1329
  MaxPendingBondReleasesExceeded: AugmentedError<ApiType>;
1330
+ /**
1331
+ * The caller does not have permission to perform this action.
1332
+ **/
1333
+ NoPermissions: AugmentedError<ApiType>;
1275
1334
  /**
1276
1335
  * The caller does not own the bond lot.
1277
1336
  **/
@@ -1340,10 +1399,6 @@ declare module '@polkadot/api-base/types/errors' {
1340
1399
  * The bitcoin script to lock this bitcoin has errors
1341
1400
  **/
1342
1401
  InvalidBitcoinScript: AugmentedError<ApiType>;
1343
- /**
1344
- * Treasury bond sharing plus bonus cannot exceed 100%.
1345
- **/
1346
- InvalidBondSharingTerms: AugmentedError<ApiType>;
1347
1402
  /**
1348
1403
  * An invalid securitization percent was provided for the vault. NOTE: it cannot be
1349
1404
  * decreased (or negative)
@@ -1353,11 +1408,6 @@ declare module '@polkadot/api-base/types/errors' {
1353
1408
  * Funding would result in an overflow of the balance type
1354
1409
  **/
1355
1410
  InvalidVaultAmount: AugmentedError<ApiType>;
1356
- /**
1357
- * Vault names must start with an uppercase ASCII letter and otherwise be ASCII
1358
- * alphanumeric.
1359
- **/
1360
- InvalidVaultName: AugmentedError<ApiType>;
1361
1411
  /**
1362
1412
  * Unable to decode xpubkey
1363
1413
  **/
@@ -38,6 +38,8 @@ import type {
38
38
  FrameSupportTokensMiscBalanceStatus,
39
39
  FrameSystemDispatchEventInfo,
40
40
  PalletBalancesUnexpectedKind,
41
+ PalletBootstrapEndpointPubkey,
42
+ PalletBootstrapRecoveryPubkey,
41
43
  PalletCrosschainTransferAssetKind,
42
44
  PalletCrosschainTransferCouncilApprovalTargetId,
43
45
  PalletCrosschainTransferGatewayState,
@@ -341,6 +343,11 @@ declare module '@polkadot/api-base/types/events' {
341
343
  securityFee: u128;
342
344
  }
343
345
  >;
346
+ BitcoinLockFlexibleChanged: AugmentedEvent<
347
+ ApiType,
348
+ [utxoId: u64, vaultId: u32, isFlexible: bool],
349
+ { utxoId: u64; vaultId: u32; isFlexible: bool }
350
+ >;
344
351
  BitcoinLockRatcheted: AugmentedEvent<
345
352
  ApiType,
346
353
  [
@@ -530,6 +537,24 @@ declare module '@polkadot/api-base/types/events' {
530
537
  }
531
538
  >;
532
539
  };
540
+ bootstrap: {
541
+ /**
542
+ * An encrypted endpoint payload was stored or replaced by its owner.
543
+ **/
544
+ EndpointUpdated: AugmentedEvent<
545
+ ApiType,
546
+ [endpointOwner: AccountId32, endpointPubkey: PalletBootstrapEndpointPubkey],
547
+ { endpointOwner: AccountId32; endpointPubkey: PalletBootstrapEndpointPubkey }
548
+ >;
549
+ /**
550
+ * An encrypted recovery payload was stored or replaced.
551
+ **/
552
+ RecoveryPayloadUpdated: AugmentedEvent<
553
+ ApiType,
554
+ [writer: AccountId32, recoveryPubkey: PalletBootstrapRecoveryPubkey],
555
+ { writer: AccountId32; recoveryPubkey: PalletBootstrapRecoveryPubkey }
556
+ >;
557
+ };
533
558
  crosschainTransfer: {
534
559
  /**
535
560
  * An account registered its council signer for one destination chain.
@@ -607,6 +632,22 @@ declare module '@polkadot/api-base/types/events' {
607
632
  [destinationChain: PalletCrosschainTransferSourceChain, councilHash: H256],
608
633
  { destinationChain: PalletCrosschainTransferSourceChain; councilHash: H256 }
609
634
  >;
635
+ /**
636
+ * A frame transition queued a new Global Issuance Council for destination-chain approval.
637
+ **/
638
+ GlobalIssuanceCouncilRotationQueued: AugmentedEvent<
639
+ ApiType,
640
+ [
641
+ destinationChain: PalletCrosschainTransferSourceChain,
642
+ councilHash: H256,
643
+ approvalQueueNonce: u64,
644
+ ],
645
+ {
646
+ destinationChain: PalletCrosschainTransferSourceChain;
647
+ councilHash: H256;
648
+ approvalQueueNonce: u64;
649
+ }
650
+ >;
610
651
  /**
611
652
  * Root updated the minimum normalized microgon value required to register a Minting
612
653
  * Authority on one destination chain.
@@ -1257,14 +1298,6 @@ declare module '@polkadot/api-base/types/events' {
1257
1298
  [account: AccountId32],
1258
1299
  { account: AccountId32 }
1259
1300
  >;
1260
- /**
1261
- * An upstream account updated the encrypted server payload for a downstream account.
1262
- **/
1263
- EncryptedServerUpdated: AugmentedEvent<
1264
- ApiType,
1265
- [upstreamAccount: AccountId32, downstreamAccount: AccountId32],
1266
- { upstreamAccount: AccountId32; downstreamAccount: AccountId32 }
1267
- >;
1268
1301
  /**
1269
1302
  * An operational account was registered with its linked accounts.
1270
1303
  **/
@@ -1814,6 +1847,11 @@ declare module '@polkadot/api-base/types/events' {
1814
1847
  >;
1815
1848
  };
1816
1849
  treasury: {
1850
+ BondLotFlexibilityChanged: AugmentedEvent<
1851
+ ApiType,
1852
+ [vaultId: u32, bondLotId: u64, isFlexible: bool],
1853
+ { vaultId: u32; bondLotId: u64; isFlexible: bool }
1854
+ >;
1817
1855
  /**
1818
1856
  * A bond purchase entered its active program set.
1819
1857
  **/
@@ -1987,6 +2025,11 @@ declare module '@polkadot/api-base/types/events' {
1987
2025
  [frameId: u64, totalEligibleBonds: u128, participatingVaults: u32],
1988
2026
  { frameId: u64; totalEligibleBonds: u128; participatingVaults: u32 }
1989
2027
  >;
2028
+ ReservedBondSpaceChanged: AugmentedEvent<
2029
+ ApiType,
2030
+ [vaultId: u32, reservedBondSpace: u32],
2031
+ { vaultId: u32; reservedBondSpace: u32 }
2032
+ >;
1990
2033
  };
1991
2034
  txPause: {
1992
2035
  /**
@@ -2107,6 +2150,11 @@ declare module '@polkadot/api-base/types/events' {
2107
2150
  [vaultId: u32, beneficiary: AccountId32, toBeneficiary: u128, burned: u128],
2108
2151
  { vaultId: u32; beneficiary: AccountId32; toBeneficiary: u128; burned: u128 }
2109
2152
  >;
2153
+ ReservedSecuritizationSpaceChanged: AugmentedEvent<
2154
+ ApiType,
2155
+ [vaultId: u32, reservedSecuritizationSpace: u128],
2156
+ { vaultId: u32; reservedSecuritizationSpace: u128 }
2157
+ >;
2110
2158
  TreasuryRecordingError: AugmentedEvent<
2111
2159
  ApiType,
2112
2160
  [vaultId: u32, frameId: u64, vaultEarnings: u128, error: SpRuntimeDispatchError],
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions
@@ -65,6 +66,8 @@ import type {
65
66
  PalletBitcoinLocksLockReleaseRequest,
66
67
  PalletBitcoinLocksLockedBitcoin,
67
68
  PalletBitcoinLocksOrphanedUtxo,
69
+ PalletBootstrapEndpointPubkey,
70
+ PalletBootstrapRecoveryPubkey,
68
71
  PalletCrosschainTransferAccountTransferTotals,
69
72
  PalletCrosschainTransferChainConfig,
70
73
  PalletCrosschainTransferCouncilApprovalQueueEntry,
@@ -95,6 +98,8 @@ import type {
95
98
  PalletOperationalAccountsRewardsConfig,
96
99
  PalletPriceIndexArgonotAverageFrameAccumulator,
97
100
  PalletPriceIndexCpiMeasurementBucket,
101
+ PalletPriceIndexEthereumPriceFrameAccumulator,
102
+ PalletPriceIndexEthereumPriceIndex,
98
103
  PalletPriceIndexPriceIndex,
99
104
  PalletProxyAnnouncement,
100
105
  PalletProxyProxyDefinition,
@@ -103,7 +108,7 @@ import type {
103
108
  PalletTreasuryBondLotSummary,
104
109
  PalletTreasuryFrameArgonotBondParticipants,
105
110
  PalletTreasuryFrameVaultCapital,
106
- PalletVaultsRecentCapacityDrop,
111
+ PalletTreasuryVaultBondState,
107
112
  PalletVaultsVaultFrameRevenue,
108
113
  SpConsensusGrandpaAppPublic,
109
114
  SpRuntimeDigest,
@@ -205,6 +210,14 @@ declare module '@polkadot/api-base/types/storage' {
205
210
  totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
206
211
  };
207
212
  bitcoinLocks: {
213
+ lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
214
+ ApiType,
215
+ (
216
+ arg1: u32 | AnyNumber | Uint8Array,
217
+ arg2: AccountId32 | string | Uint8Array,
218
+ ) => Observable<Option<u64>>,
219
+ [u32, AccountId32]
220
+ >;
208
221
  /**
209
222
  * Utxos that have been requested to be cosigned for releasing
210
223
  **/
@@ -337,7 +350,8 @@ declare module '@polkadot/api-base/types/storage' {
337
350
  []
338
351
  >;
339
352
  /**
340
- * Pending funding entries that have expired and are awaiting bounded cleanup.
353
+ * Pending funding entries that have expired. These remain watched until their additional
354
+ * orphan-detection window ends, then await bounded cleanup.
341
355
  **/
342
356
  expiredPendingFunding: AugmentedQuery<
343
357
  ApiType,
@@ -511,6 +525,40 @@ declare module '@polkadot/api-base/types/storage' {
511
525
  **/
512
526
  voteMinimumHistory: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
513
527
  };
528
+ bootstrap: {
529
+ /**
530
+ * Encrypted endpoint payload keyed by its public key.
531
+ *
532
+ * The pallet enforces ownership and length but does not parse or verify encryption.
533
+ **/
534
+ encryptedEndpointByPubkey: AugmentedQuery<
535
+ ApiType,
536
+ (arg: PalletBootstrapEndpointPubkey | string | Uint8Array) => Observable<Option<Bytes>>,
537
+ [PalletBootstrapEndpointPubkey]
538
+ >;
539
+ /**
540
+ * Encrypted recovery payload authorized by the corresponding recovery key.
541
+ *
542
+ * The pallet enforces authorization and length but does not parse or verify encryption.
543
+ **/
544
+ encryptedRecoveryPayloadByPubkey: AugmentedQuery<
545
+ ApiType,
546
+ (arg: PalletBootstrapRecoveryPubkey | string | Uint8Array) => Observable<Option<Bytes>>,
547
+ [PalletBootstrapRecoveryPubkey]
548
+ >;
549
+ /**
550
+ * Account authorized to update an encrypted endpoint payload.
551
+ *
552
+ * The first successful [`Pallet::set_endpoint`] call for a public key establishes its owner.
553
+ **/
554
+ endpointOwnerByPubkey: AugmentedQuery<
555
+ ApiType,
556
+ (
557
+ arg: PalletBootstrapEndpointPubkey | string | Uint8Array,
558
+ ) => Observable<Option<AccountId32>>,
559
+ [PalletBootstrapEndpointPubkey]
560
+ >;
561
+ };
514
562
  crosschainTransfer: {
515
563
  /**
516
564
  * The active Global Issuance Council hash in force for each destination chain.
@@ -658,6 +706,16 @@ declare module '@polkadot/api-base/types/storage' {
658
706
  ) => Observable<u64>,
659
707
  [PalletCrosschainTransferSourceChain]
660
708
  >;
709
+ /**
710
+ * First frame where a new council snapshot may be added to a chain's approval queue.
711
+ **/
712
+ nextCouncilRotationFrameByDestinationChain: AugmentedQuery<
713
+ ApiType,
714
+ (
715
+ arg: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
716
+ ) => Observable<Option<u64>>,
717
+ [PalletCrosschainTransferSourceChain]
718
+ >;
661
719
  /**
662
720
  * Next outbound transfer nonce for each sending account.
663
721
  **/
@@ -1261,13 +1319,18 @@ declare module '@polkadot/api-base/types/storage' {
1261
1319
  };
1262
1320
  operationalAccounts: {
1263
1321
  /**
1264
- * Opaque encrypted upstream server payload keyed by the downstream account.
1322
+ * Set of operational accounts that have met both follow-on access-code thresholds.
1323
+ * The key count weights frame processing without scanning the set twice.
1265
1324
  **/
1266
- encryptedServerByDownstreamAccount: AugmentedQuery<
1325
+ accessCodeReadyAccounts: AugmentedQuery<
1267
1326
  ApiType,
1268
- (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
1327
+ (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>,
1269
1328
  [AccountId32]
1270
1329
  >;
1330
+ /**
1331
+ * Counter for the related counted storage map
1332
+ **/
1333
+ counterForAccessCodeReadyAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1271
1334
  /**
1272
1335
  * Whether operational-account access is invite-only.
1273
1336
  *
@@ -1392,6 +1455,14 @@ declare module '@polkadot/api-base/types/storage' {
1392
1455
  * Stores the active price index
1393
1456
  **/
1394
1457
  current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
1458
+ /**
1459
+ * Stores the latest submitted Ethereum pricing.
1460
+ **/
1461
+ currentEthereumPrice: AugmentedQuery<
1462
+ ApiType,
1463
+ () => Observable<Option<PalletPriceIndexEthereumPriceIndex>>,
1464
+ []
1465
+ >;
1395
1466
  /**
1396
1467
  * Accumulates the current frame's Argonot price samples until the frame closes.
1397
1468
  **/
@@ -1424,6 +1495,14 @@ declare module '@polkadot/api-base/types/storage' {
1424
1495
  () => Observable<BTreeMap<u64, u128>>,
1425
1496
  []
1426
1497
  >;
1498
+ /**
1499
+ * Stores per-frame Ethereum price totals used for the trailing averages.
1500
+ **/
1501
+ historicEthereumPricesByFrame: AugmentedQuery<
1502
+ ApiType,
1503
+ () => Observable<BTreeMap<u64, PalletPriceIndexEthereumPriceFrameAccumulator>>,
1504
+ []
1505
+ >;
1427
1506
  /**
1428
1507
  * Stores the last valid price index
1429
1508
  **/
@@ -1648,7 +1727,8 @@ declare module '@polkadot/api-base/types/storage' {
1648
1727
  };
1649
1728
  treasury: {
1650
1729
  /**
1651
- * The active top Argonot bond lots kept in ascending bond order, then lower ids first.
1730
+ * The active Argonot set keeps the smallest bond amount first, then lower ids first when
1731
+ * amounts tie.
1652
1732
  **/
1653
1733
  argonotBondLots: AugmentedQuery<
1654
1734
  ApiType,
@@ -1675,13 +1755,15 @@ declare module '@polkadot/api-base/types/storage' {
1675
1755
  [AccountId32, u64]
1676
1756
  >;
1677
1757
  /**
1678
- * The accepted bond lots for a vault.
1758
+ * The active bond state for a vault.
1679
1759
  *
1680
- * Lots are kept in descending bond order, then lower `bond_lot_id` first for ties.
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.
1681
1763
  **/
1682
1764
  bondLotsByVault: AugmentedQuery<
1683
1765
  ApiType,
1684
- (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
1766
+ (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletTreasuryVaultBondState>,
1685
1767
  [u32]
1686
1768
  >;
1687
1769
  /**
@@ -1717,6 +1799,14 @@ declare module '@polkadot/api-base/types/storage' {
1717
1799
  (arg: AccountId32 | string | Uint8Array) => Observable<u128>,
1718
1800
  [AccountId32]
1719
1801
  >;
1802
+ lastBonusApprovalNonceByVaultAndAccount: AugmentedQuery<
1803
+ ApiType,
1804
+ (
1805
+ arg1: u32 | AnyNumber | Uint8Array,
1806
+ arg2: AccountId32 | string | Uint8Array,
1807
+ ) => Observable<Option<u64>>,
1808
+ [u32, AccountId32]
1809
+ >;
1720
1810
  /**
1721
1811
  * The next bond lot id.
1722
1812
  **/
@@ -1798,14 +1888,6 @@ declare module '@polkadot/api-base/types/storage' {
1798
1888
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
1799
1889
  [u64]
1800
1890
  >;
1801
- /**
1802
- * Recent reductions in `available_for_lock`, grouped by vault.
1803
- **/
1804
- recentCapacityDropsByVault: AugmentedQuery<
1805
- ApiType,
1806
- (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsRecentCapacityDrop>>,
1807
- [u32]
1808
- >;
1809
1891
  /**
1810
1892
  * Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
1811
1893
  * (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
@@ -1,4 +1,5 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
2
3
 
3
4
  // import type lookup before we augment - in some environments
4
5
  // this is required to allow for ambient/previous definitions