@argonprotocol/mainchain 1.4.8 → 1.4.9-dev.0147366f

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,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
@@ -66,6 +65,7 @@ import type {
66
65
  PalletBitcoinLocksLockReleaseRequest,
67
66
  PalletBitcoinLocksLockedBitcoin,
68
67
  PalletBitcoinLocksOrphanedUtxo,
68
+ PalletCrosschainTransferAccountTransferTotals,
69
69
  PalletCrosschainTransferChainConfig,
70
70
  PalletCrosschainTransferCouncilApprovalQueueEntry,
71
71
  PalletCrosschainTransferGatewayState,
@@ -88,6 +88,8 @@ import type {
88
88
  PalletLocalchainTransferQueuedTransferOut,
89
89
  PalletMiningSlotMinerNonceScoring,
90
90
  PalletMintMintAction,
91
+ PalletMintMintQueueCursor,
92
+ PalletMintPendingMintUtxo,
91
93
  PalletMultisigMultisig,
92
94
  PalletOperationalAccountsOperationalAccount,
93
95
  PalletOperationalAccountsRewardsConfig,
@@ -99,6 +101,7 @@ import type {
99
101
  PalletTransactionPaymentReleases,
100
102
  PalletTreasuryBondLot,
101
103
  PalletTreasuryBondLotSummary,
104
+ PalletTreasuryFrameArgonotBondParticipants,
102
105
  PalletTreasuryFrameVaultCapital,
103
106
  PalletVaultsRecentCapacityDrop,
104
107
  PalletVaultsVaultFrameRevenue,
@@ -283,6 +286,17 @@ declare module '@polkadot/api-base/types/storage' {
283
286
  ) => Observable<Option<PalletBitcoinLocksOrphanedUtxo>>,
284
287
  [AccountId32, ArgonPrimitivesBitcoinUtxoRef]
285
288
  >;
289
+ /**
290
+ * Index of active UTXO IDs per owner account.
291
+ **/
292
+ utxoIdsByOwnerAccount: AugmentedQuery<
293
+ ApiType,
294
+ (
295
+ arg1: AccountId32 | string | Uint8Array,
296
+ arg2: u64 | AnyNumber | Uint8Array,
297
+ ) => Observable<Option<Null>>,
298
+ [AccountId32, u64]
299
+ >;
286
300
  /**
287
301
  * Index of active UTXO IDs per vault
288
302
  **/
@@ -403,6 +417,10 @@ declare module '@polkadot/api-base/types/storage' {
403
417
  * Bool if block rewards are paused
404
418
  **/
405
419
  blockRewardsPaused: AugmentedQuery<ApiType, () => Observable<bool>, []>;
420
+ /**
421
+ * Bool if block voter rewards are enabled
422
+ **/
423
+ blockVoterRewardsEnabled: AugmentedQuery<ApiType, () => Observable<bool>, []>;
406
424
  /**
407
425
  * Historical payouts by block number
408
426
  **/
@@ -587,18 +605,6 @@ declare module '@polkadot/api-base/types/storage' {
587
605
  ) => Observable<Option<PalletCrosschainTransferGlobalIssuanceCouncil>>,
588
606
  [H256]
589
607
  >;
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
608
  /**
603
609
  * The latest queued council hash that should govern the next queue entry on each destination
604
610
  * chain.
@@ -712,14 +718,6 @@ declare module '@polkadot/api-base/types/storage' {
712
718
  ) => Observable<Option<u128>>,
713
719
  [PalletCrosschainTransferSourceChain]
714
720
  >;
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
721
  /**
724
722
  * Outbound transfers by transfer id.
725
723
  **/
@@ -741,6 +739,16 @@ declare module '@polkadot/api-base/types/storage' {
741
739
  ) => Observable<Option<u128>>,
742
740
  [PalletCrosschainTransferSourceChain]
743
741
  >;
742
+ /**
743
+ * Cumulative inbound and outbound transfer totals for each local account.
744
+ **/
745
+ transferTotalsByAccount: AugmentedQuery<
746
+ ApiType,
747
+ (
748
+ arg: AccountId32 | string | Uint8Array,
749
+ ) => Observable<PalletCrosschainTransferAccountTransferTotals>,
750
+ [AccountId32]
751
+ >;
744
752
  };
745
753
  digests: {
746
754
  tempDigests: AugmentedQuery<
@@ -1101,15 +1109,36 @@ declare module '@polkadot/api-base/types/storage' {
1101
1109
  **/
1102
1110
  mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1103
1111
  /**
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
1112
+ * The next monotonic queue index to assign to a pending bitcoin mint.
1113
+ **/
1114
+ nextPendingMintUtxoIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
1115
+ /**
1116
+ * Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
1117
+ * current frame scan cursor.
1107
1118
  **/
1108
- pendingMintUtxos: AugmentedQuery<
1119
+ pendingMintQueueState: AugmentedQuery<
1109
1120
  ApiType,
1110
- () => Observable<Vec<ITuple<[u64, AccountId32, u128]>>>,
1121
+ () => Observable<PalletMintMintQueueCursor>,
1111
1122
  []
1112
1123
  >;
1124
+ /**
1125
+ * Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
1126
+ * client lookup.
1127
+ **/
1128
+ pendingMintUtxoIdLookup: AugmentedQuery<
1129
+ ApiType,
1130
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1131
+ [u64]
1132
+ >;
1133
+ /**
1134
+ * Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
1135
+ * payouts can preserve FIFO order while each frame works through a fixed payout cohort.
1136
+ **/
1137
+ pendingMintUtxosByIndex: AugmentedQuery<
1138
+ ApiType,
1139
+ (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingMintUtxo>>,
1140
+ [u64]
1141
+ >;
1113
1142
  };
1114
1143
  multisig: {
1115
1144
  /**
@@ -1232,36 +1261,23 @@ declare module '@polkadot/api-base/types/storage' {
1232
1261
  };
1233
1262
  operationalAccounts: {
1234
1263
  /**
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.
1264
+ * Opaque encrypted upstream server payload keyed by the downstream account.
1244
1265
  **/
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<
1266
+ encryptedServerByDownstreamAccount: AugmentedQuery<
1257
1267
  ApiType,
1258
1268
  (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
1259
1269
  [AccountId32]
1260
1270
  >;
1261
1271
  /**
1262
- * Oldest referral expiration frame that still has cleanup work to resume.
1272
+ * Whether operational-account access is invite-only.
1273
+ *
1274
+ * When enabled, registration requires an upstream invite and vault creation plus
1275
+ * mining-slot bidding remain restricted to registered operational accounts.
1276
+ *
1277
+ * Existing live raw chain specs do not contain this key, so the default remains invite-only
1278
+ * unless a development chain overrides it in genesis.
1263
1279
  **/
1264
- expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
1280
+ isOperationalAccountInviteOnly: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1265
1281
  /**
1266
1282
  * Reverse lookup of any linked account to its operational account id.
1267
1283
  **/
@@ -1631,6 +1647,14 @@ declare module '@polkadot/api-base/types/storage' {
1631
1647
  >;
1632
1648
  };
1633
1649
  treasury: {
1650
+ /**
1651
+ * The active top Argonot bond lots kept in ascending bond order, then lower ids first.
1652
+ **/
1653
+ argonotBondLots: AugmentedQuery<
1654
+ ApiType,
1655
+ () => Observable<Vec<PalletTreasuryBondLotSummary>>,
1656
+ []
1657
+ >;
1634
1658
  /**
1635
1659
  * The stored state for each bond lot.
1636
1660
  **/
@@ -1660,6 +1684,16 @@ declare module '@polkadot/api-base/types/storage' {
1660
1684
  (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
1661
1685
  [u32]
1662
1686
  >;
1687
+ /**
1688
+ * The Argonot bond participants locked for the current frame.
1689
+ *
1690
+ * Payout uses this to see which Argonot bond lots are participating in the frame.
1691
+ **/
1692
+ currentFrameArgonotBondParticipants: AugmentedQuery<
1693
+ ApiType,
1694
+ () => Observable<Option<PalletTreasuryFrameArgonotBondParticipants>>,
1695
+ []
1696
+ >;
1663
1697
  /**
1664
1698
  * The vault capital locked for the current frame.
1665
1699
  *
@@ -1699,6 +1733,10 @@ declare module '@polkadot/api-base/types/storage' {
1699
1733
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1700
1734
  [u64]
1701
1735
  >;
1736
+ /**
1737
+ * The total number of active Argonot bonds in the active set.
1738
+ **/
1739
+ totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1702
1740
  };
1703
1741
  txPause: {
1704
1742
  /**
@@ -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
@@ -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,12 @@ 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
+ vaultBitcoinAmount?: any;
1161
+ miningSeatCount?: any;
1157
1162
  }
1158
1163
  | string
1159
1164
  | Uint8Array,
@@ -1162,9 +1167,9 @@ declare module '@polkadot/api-base/types/submittable' {
1162
1167
  [AccountId32, PalletOperationalAccountsOperationalProgressPatch, bool]
1163
1168
  >;
1164
1169
  /**
1165
- * Register vault, mining funding, and bot accounts for an operational account.
1170
+ * Register vault and mining accounts for an operational account.
1166
1171
  * Any account in the registration may submit the transaction.
1167
- * If a referral proof is provided, the registration records the sponsor relationship.
1172
+ * When invite-only is enabled, the registration must include an upstream access proof.
1168
1173
  **/
1169
1174
  register: AugmentedSubmittable<
1170
1175
  (
@@ -1173,22 +1178,22 @@ declare module '@polkadot/api-base/types/submittable' {
1173
1178
  [PalletOperationalAccountsRegistration]
1174
1179
  >;
1175
1180
  /**
1176
- * Store an opaque encrypted sponsor server payload for a sponsored operational account.
1181
+ * Store an opaque encrypted upstream server payload for a downstream account.
1177
1182
  **/
1178
- setEncryptedServerForSponsee: AugmentedSubmittable<
1183
+ setEncryptedServerForDownstreamAccount: AugmentedSubmittable<
1179
1184
  (
1180
- sponsee: AccountId32 | string | Uint8Array,
1185
+ downstreamAccount: AccountId32 | string | Uint8Array,
1181
1186
  encryptedServer: Bytes | string | Uint8Array,
1182
1187
  ) => SubmittableExtrinsic<ApiType>,
1183
1188
  [AccountId32, Bytes]
1184
1189
  >;
1185
1190
  /**
1186
- * Update reward amounts for operational accounts.
1191
+ * Update certification reward amounts for operational accounts.
1187
1192
  **/
1188
1193
  setRewardConfig: AugmentedSubmittable<
1189
1194
  (
1190
- operationalReferralReward: u128 | AnyNumber | Uint8Array,
1191
- referralBonusReward: u128 | AnyNumber | Uint8Array,
1195
+ operationalCertificationReward: u128 | AnyNumber | Uint8Array,
1196
+ operationalCertificationBonusReward: u128 | AnyNumber | Uint8Array,
1192
1197
  ) => SubmittableExtrinsic<ApiType>,
1193
1198
  [u128, u128]
1194
1199
  >;
@@ -1997,6 +2002,13 @@ declare module '@polkadot/api-base/types/submittable' {
1997
2002
  >;
1998
2003
  };
1999
2004
  treasury: {
2005
+ /**
2006
+ * Buy whole bond units for the Argonot active set.
2007
+ **/
2008
+ buyArgonotBonds: AugmentedSubmittable<
2009
+ (bonds: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
2010
+ [u32]
2011
+ >;
2000
2012
  /**
2001
2013
  * Buy whole `1 ARGON` bonds for a vault.
2002
2014
  *
@@ -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 './augment-api-consts.js';
5
4
  import './augment-api-errors.js';
@@ -1,5 +1,4 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-defs`, 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