@argonprotocol/mainchain 1.4.8 → 1.4.9-dev.5ffdfd6a

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.
@@ -66,6 +66,7 @@ import type {
66
66
  PalletBitcoinLocksLockReleaseRequest,
67
67
  PalletBitcoinLocksLockedBitcoin,
68
68
  PalletBitcoinLocksOrphanedUtxo,
69
+ PalletCrosschainTransferAccountTransferTotals,
69
70
  PalletCrosschainTransferChainConfig,
70
71
  PalletCrosschainTransferCouncilApprovalQueueEntry,
71
72
  PalletCrosschainTransferGatewayState,
@@ -88,6 +89,8 @@ import type {
88
89
  PalletLocalchainTransferQueuedTransferOut,
89
90
  PalletMiningSlotMinerNonceScoring,
90
91
  PalletMintMintAction,
92
+ PalletMintMintQueueCursor,
93
+ PalletMintPendingMintUtxo,
91
94
  PalletMultisigMultisig,
92
95
  PalletOperationalAccountsOperationalAccount,
93
96
  PalletOperationalAccountsRewardsConfig,
@@ -99,6 +102,7 @@ import type {
99
102
  PalletTransactionPaymentReleases,
100
103
  PalletTreasuryBondLot,
101
104
  PalletTreasuryBondLotSummary,
105
+ PalletTreasuryFrameArgonotBondParticipants,
102
106
  PalletTreasuryFrameVaultCapital,
103
107
  PalletVaultsRecentCapacityDrop,
104
108
  PalletVaultsVaultFrameRevenue,
@@ -283,6 +287,17 @@ declare module '@polkadot/api-base/types/storage' {
283
287
  ) => Observable<Option<PalletBitcoinLocksOrphanedUtxo>>,
284
288
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
285
289
  >;
290
+ /**
291
+ * Index of active UTXO IDs per owner account.
292
+ **/
293
+ utxoIdsByOwnerAccount: AugmentedQuery<
294
+ ApiType,
295
+ (
296
+ arg1: AccountId32 | string | Uint8Array,
297
+ arg2: u64 | AnyNumber | Uint8Array,
298
+ ) => Observable<Option<Null>>,
299
+ [AccountId32, u64]
300
+ >;
286
301
  /**
287
302
  * Index of active UTXO IDs per vault
288
303
  **/
@@ -403,6 +418,10 @@ declare module '@polkadot/api-base/types/storage' {
403
418
  * Bool if block rewards are paused
404
419
  **/
405
420
  blockRewardsPaused: AugmentedQuery<ApiType, () => Observable<bool>, []>;
421
+ /**
422
+ * Bool if block voter rewards are enabled
423
+ **/
424
+ blockVoterRewardsEnabled: AugmentedQuery<ApiType, () => Observable<bool>, []>;
406
425
  /**
407
426
  * Historical payouts by block number
408
427
  **/
@@ -587,18 +606,6 @@ declare module '@polkadot/api-base/types/storage' {
587
606
  ) => Observable<Option<PalletCrosschainTransferGlobalIssuanceCouncil>>,
588
607
  [H256]
589
608
  >;
590
- /**
591
- * Accounts whose recent-transfer evidence expires at a given tick.
592
- **/
593
- inboundTransfersExpiringAt: AugmentedQuery<
594
- ApiType,
595
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>,
596
- [u64]
597
- >;
598
- /**
599
- * Latest tick whose recent-transfer expiration bucket was cleaned up.
600
- **/
601
- lastTransferExpiryCleanupTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
602
609
  /**
603
610
  * The latest queued council hash that should govern the next queue entry on each destination
604
611
  * chain.
@@ -712,14 +719,6 @@ declare module '@polkadot/api-base/types/storage' {
712
719
  ) => Observable<Option<u128>>,
713
720
  [PalletCrosschainTransferSourceChain]
714
721
  >;
715
- /**
716
- * Count of still-retained qualifying Argon transfers for each local account.
717
- **/
718
- recentArgonTransfersByAccount: AugmentedQuery<
719
- ApiType,
720
- (arg: AccountId32 | string | Uint8Array) => Observable<u32>,
721
- [AccountId32]
722
- >;
723
722
  /**
724
723
  * Outbound transfers by transfer id.
725
724
  **/
@@ -741,6 +740,16 @@ declare module '@polkadot/api-base/types/storage' {
741
740
  ) => Observable<Option<u128>>,
742
741
  [PalletCrosschainTransferSourceChain]
743
742
  >;
743
+ /**
744
+ * Cumulative inbound and outbound transfer totals for each local account.
745
+ **/
746
+ transferTotalsByAccount: AugmentedQuery<
747
+ ApiType,
748
+ (
749
+ arg: AccountId32 | string | Uint8Array,
750
+ ) => Observable<PalletCrosschainTransferAccountTransferTotals>,
751
+ [AccountId32]
752
+ >;
744
753
  };
745
754
  digests: {
746
755
  tempDigests: AugmentedQuery<
@@ -1101,15 +1110,36 @@ declare module '@polkadot/api-base/types/storage' {
1101
1110
  **/
1102
1111
  mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1103
1112
  /**
1104
- * Bitcoin UTXOs that have been submitted for minting. This list is FIFO for minting whenever
1105
- * a) CPI >= 0 and
1106
- * b) the aggregate minted Bitcoins <= the aggregate minted microgons from mining
1113
+ * The next monotonic queue index to assign to a pending bitcoin mint.
1114
+ **/
1115
+ nextPendingMintUtxoIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1116
+ /**
1117
+ * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1118
+ * current frame scan cursor.
1107
1119
  **/
1108
- pendingMintUtxos: AugmentedQuery<
1120
+ pendingMintQueueState: AugmentedQuery<
1109
1121
  ApiType,
1110
- () => Observable<Vec<ITuple<[u64, AccountId32, u128]>>>,
1122
+ () => Observable<PalletMintMintQueueCursor>,
1111
1123
  []
1112
1124
  >;
1125
+ /**
1126
+ * Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
1127
+ * client lookup.
1128
+ **/
1129
+ pendingMintUtxoIdLookup: AugmentedQuery<
1130
+ ApiType,
1131
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1132
+ [u64]
1133
+ >;
1134
+ /**
1135
+ * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1136
+ * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1137
+ **/
1138
+ pendingMintUtxosByIndex: AugmentedQuery<
1139
+ ApiType,
1140
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingMintUtxo>>,
1141
+ [u64]
1142
+ >;
1113
1143
  };
1114
1144
  multisig: {
1115
1145
  /**
@@ -1232,36 +1262,23 @@ declare module '@polkadot/api-base/types/storage' {
1232
1262
  };
1233
1263
  operationalAccounts: {
1234
1264
  /**
1235
- * Referral codes that have already been linked, keyed to their proof expiration frame.
1236
- **/
1237
- consumedReferralCodes: AugmentedQuery<
1238
- ApiType,
1239
- (arg: U8aFixed | string | Uint8Array) => Observable<Option<u64>>,
1240
- [U8aFixed]
1241
- >;
1242
- /**
1243
- * Referral codes to clear after their referral proof expiration frame.
1265
+ * Opaque encrypted referrer server payload keyed by the downstream account.
1244
1266
  **/
1245
- consumedReferralCodesByExpiration: AugmentedQuery<
1246
- ApiType,
1247
- (
1248
- arg1: u64 | AnyNumber | Uint8Array,
1249
- arg2: U8aFixed | string | Uint8Array,
1250
- ) => Observable<Option<Null>>,
1251
- [u64, U8aFixed]
1252
- >;
1253
- /**
1254
- * Opaque encrypted sponsor server payload keyed by the sponsee operational account.
1255
- **/
1256
- encryptedServerBySponsee: AugmentedQuery<
1267
+ encryptedServerByDownstreamAccount: AugmentedQuery<
1257
1268
  ApiType,
1258
1269
  (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
1259
1270
  [AccountId32]
1260
1271
  >;
1261
1272
  /**
1262
- * Oldest referral expiration frame that still has cleanup work to resume.
1273
+ * Whether operational-account access is invite-only.
1274
+ *
1275
+ * When enabled, registration requires a referrer invite and vault creation plus
1276
+ * mining-slot bidding remain restricted to registered operational accounts.
1277
+ *
1278
+ * Existing live raw chain specs do not contain this key, so the default remains invite-only
1279
+ * unless a development chain overrides it in genesis.
1263
1280
  **/
1264
- expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
1281
+ isOperationalAccountInviteOnly: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1265
1282
  /**
1266
1283
  * Reverse lookup of any linked account to its operational account id.
1267
1284
  **/
@@ -1631,6 +1648,14 @@ declare module '@polkadot/api-base/types/storage' {
1631
1648
  >;
1632
1649
  };
1633
1650
  treasury: {
1651
+ /**
1652
+ * The active top Argonot bond lots kept in ascending bond order, then lower ids first.
1653
+ **/
1654
+ argonotBondLots: AugmentedQuery<
1655
+ ApiType,
1656
+ () => Observable<Vec<PalletTreasuryBondLotSummary>>,
1657
+ []
1658
+ >;
1634
1659
  /**
1635
1660
  * The stored state for each bond lot.
1636
1661
  **/
@@ -1660,6 +1685,16 @@ declare module '@polkadot/api-base/types/storage' {
1660
1685
  (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
1661
1686
  [u32]
1662
1687
  >;
1688
+ /**
1689
+ * The Argonot bond participants locked for the current frame.
1690
+ *
1691
+ * Payout uses this to see which Argonot bond lots are participating in the frame.
1692
+ **/
1693
+ currentFrameArgonotBondParticipants: AugmentedQuery<
1694
+ ApiType,
1695
+ () => Observable<Option<PalletTreasuryFrameArgonotBondParticipants>>,
1696
+ []
1697
+ >;
1663
1698
  /**
1664
1699
  * The vault capital locked for the current frame.
1665
1700
  *
@@ -1699,6 +1734,10 @@ declare module '@polkadot/api-base/types/storage' {
1699
1734
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1700
1735
  [u64]
1701
1736
  >;
1737
+ /**
1738
+ * The total number of active Argonot bonds in the active set.
1739
+ **/
1740
+ totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1702
1741
  };
1703
1742
  txPause: {
1704
1743
  /**
@@ -508,6 +508,10 @@ declare module '@polkadot/api-base/types/submittable' {
508
508
  (paused: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>,
509
509
  [bool]
510
510
  >;
511
+ setBlockVoterRewardsEnabled: AugmentedSubmittable<
512
+ (enabled: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>,
513
+ [bool]
514
+ >;
511
515
  };
512
516
  blockSeal: {
513
517
  apply: AugmentedSubmittable<
@@ -1149,11 +1153,13 @@ declare module '@polkadot/api-base/types/submittable' {
1149
1153
  patch:
1150
1154
  | PalletOperationalAccountsOperationalProgressPatch
1151
1155
  | {
1152
- hasUniswapTransfer?: any;
1156
+ uniswapArgonTransfersInAmount?: any;
1157
+ accountBitcoinAmount?: any;
1158
+ accountVaultBondAmount?: any;
1153
1159
  vaultCreated?: any;
1154
- hasTreasuryPoolParticipation?: any;
1155
- observedBitcoinTotal?: any;
1156
- observedMiningSeatTotal?: any;
1160
+ isUpgradedToOperations?: any;
1161
+ vaultBitcoinAmount?: any;
1162
+ miningSeatCount?: any;
1157
1163
  }
1158
1164
  | string
1159
1165
  | Uint8Array,
@@ -1162,9 +1168,9 @@ declare module '@polkadot/api-base/types/submittable' {
1162
1168
  [AccountId32, PalletOperationalAccountsOperationalProgressPatch, bool]
1163
1169
  >;
1164
1170
  /**
1165
- * Register vault, mining funding, and bot accounts for an operational account.
1171
+ * Register vault and mining accounts for an operational account.
1166
1172
  * Any account in the registration may submit the transaction.
1167
- * If a referral proof is provided, the registration records the sponsor relationship.
1173
+ * When invite-only is enabled, the registration must include a referrer.
1168
1174
  **/
1169
1175
  register: AugmentedSubmittable<
1170
1176
  (
@@ -1173,11 +1179,11 @@ declare module '@polkadot/api-base/types/submittable' {
1173
1179
  [PalletOperationalAccountsRegistration]
1174
1180
  >;
1175
1181
  /**
1176
- * Store an opaque encrypted sponsor server payload for a sponsored operational account.
1182
+ * Store an opaque encrypted referrer server payload for a downstream account.
1177
1183
  **/
1178
- setEncryptedServerForSponsee: AugmentedSubmittable<
1184
+ setEncryptedServerForDownstreamAccount: AugmentedSubmittable<
1179
1185
  (
1180
- sponsee: AccountId32 | string | Uint8Array,
1186
+ downstreamAccount: AccountId32 | string | Uint8Array,
1181
1187
  encryptedServer: Bytes | string | Uint8Array,
1182
1188
  ) => SubmittableExtrinsic<ApiType>,
1183
1189
  [AccountId32, Bytes]
@@ -1187,11 +1193,18 @@ declare module '@polkadot/api-base/types/submittable' {
1187
1193
  **/
1188
1194
  setRewardConfig: AugmentedSubmittable<
1189
1195
  (
1190
- operationalReferralReward: u128 | AnyNumber | Uint8Array,
1191
- referralBonusReward: u128 | AnyNumber | Uint8Array,
1196
+ operationalActivationReward: u128 | AnyNumber | Uint8Array,
1197
+ operationalReferralBonusReward: u128 | AnyNumber | Uint8Array,
1192
1198
  ) => SubmittableExtrinsic<ApiType>,
1193
1199
  [u128, u128]
1194
1200
  >;
1201
+ /**
1202
+ * Grant a referrer upgrade to an already-registered operational account.
1203
+ **/
1204
+ upgradeAccount: AugmentedSubmittable<
1205
+ (accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
1206
+ [AccountId32]
1207
+ >;
1195
1208
  };
1196
1209
  ownership: {
1197
1210
  /**
@@ -1997,6 +2010,13 @@ declare module '@polkadot/api-base/types/submittable' {
1997
2010
  >;
1998
2011
  };
1999
2012
  treasury: {
2013
+ /**
2014
+ * Buy whole bond units for the Argonot active set.
2015
+ **/
2016
+ buyArgonotBonds: AugmentedSubmittable<
2017
+ (bonds: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2018
+ [u32]
2019
+ >;
2000
2020
  /**
2001
2021
  * Buy whole `1 ARGON` bonds for a vault.
2002
2022
  *