@argonprotocol/mainchain 1.4.8-dev.fe6d442d → 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
  **/
@@ -591,18 +605,6 @@ declare module '@polkadot/api-base/types/storage' {
591
605
  ) => Observable<Option<PalletCrosschainTransferGlobalIssuanceCouncil>>,
592
606
  [H256]
593
607
  >;
594
- /**
595
- * Accounts whose recent-transfer evidence expires at a given tick.
596
- **/
597
- inboundTransfersExpiringAt: AugmentedQuery<
598
- ApiType,
599
- (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>,
600
- [u64]
601
- >;
602
- /**
603
- * Latest tick whose recent-transfer expiration bucket was cleaned up.
604
- **/
605
- lastTransferExpiryCleanupTick: AugmentedQuery<ApiType, () => Observable<u64>, []>;
606
608
  /**
607
609
  * The latest queued council hash that should govern the next queue entry on each destination
608
610
  * chain.
@@ -716,14 +718,6 @@ declare module '@polkadot/api-base/types/storage' {
716
718
  ) => Observable<Option<u128>>,
717
719
  [PalletCrosschainTransferSourceChain]
718
720
  >;
719
- /**
720
- * Count of still-retained qualifying Argon transfers for each local account.
721
- **/
722
- recentArgonTransfersByAccount: AugmentedQuery<
723
- ApiType,
724
- (arg: AccountId32 | string | Uint8Array) => Observable<u32>,
725
- [AccountId32]
726
- >;
727
721
  /**
728
722
  * Outbound transfers by transfer id.
729
723
  **/
@@ -745,6 +739,16 @@ declare module '@polkadot/api-base/types/storage' {
745
739
  ) => Observable<Option<u128>>,
746
740
  [PalletCrosschainTransferSourceChain]
747
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
+ >;
748
752
  };
749
753
  digests: {
750
754
  tempDigests: AugmentedQuery<
@@ -1105,15 +1109,36 @@ declare module '@polkadot/api-base/types/storage' {
1105
1109
  **/
1106
1110
  mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
1107
1111
  /**
1108
- * Bitcoin UTXOs that have been submitted for minting. This list is FIFO for minting whenever
1109
- * a) CPI >= 0 and
1110
- * 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.
1111
1118
  **/
1112
- pendingMintUtxos: AugmentedQuery<
1119
+ pendingMintQueueState: AugmentedQuery<
1113
1120
  ApiType,
1114
- () => Observable<Vec<ITuple<[u64, AccountId32, u128]>>>,
1121
+ () => Observable<PalletMintMintQueueCursor>,
1115
1122
  []
1116
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
+ >;
1117
1142
  };
1118
1143
  multisig: {
1119
1144
  /**
@@ -1236,36 +1261,23 @@ declare module '@polkadot/api-base/types/storage' {
1236
1261
  };
1237
1262
  operationalAccounts: {
1238
1263
  /**
1239
- * Referral codes that have already been linked, keyed to their proof expiration frame.
1240
- **/
1241
- consumedReferralCodes: AugmentedQuery<
1242
- ApiType,
1243
- (arg: U8aFixed | string | Uint8Array) => Observable<Option<u64>>,
1244
- [U8aFixed]
1245
- >;
1246
- /**
1247
- * Referral codes to clear after their referral proof expiration frame.
1248
- **/
1249
- consumedReferralCodesByExpiration: AugmentedQuery<
1250
- ApiType,
1251
- (
1252
- arg1: u64 | AnyNumber | Uint8Array,
1253
- arg2: U8aFixed | string | Uint8Array,
1254
- ) => Observable<Option<Null>>,
1255
- [u64, U8aFixed]
1256
- >;
1257
- /**
1258
- * Opaque encrypted sponsor server payload keyed by the sponsee operational account.
1264
+ * Opaque encrypted upstream server payload keyed by the downstream account.
1259
1265
  **/
1260
- encryptedServerBySponsee: AugmentedQuery<
1266
+ encryptedServerByDownstreamAccount: AugmentedQuery<
1261
1267
  ApiType,
1262
1268
  (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
1263
1269
  [AccountId32]
1264
1270
  >;
1265
1271
  /**
1266
- * 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.
1267
1279
  **/
1268
- expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
1280
+ isOperationalAccountInviteOnly: AugmentedQuery<ApiType, () => Observable<bool>, []>;
1269
1281
  /**
1270
1282
  * Reverse lookup of any linked account to its operational account id.
1271
1283
  **/
@@ -1635,6 +1647,14 @@ declare module '@polkadot/api-base/types/storage' {
1635
1647
  >;
1636
1648
  };
1637
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
+ >;
1638
1658
  /**
1639
1659
  * The stored state for each bond lot.
1640
1660
  **/
@@ -1664,6 +1684,16 @@ declare module '@polkadot/api-base/types/storage' {
1664
1684
  (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
1665
1685
  [u32]
1666
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
+ >;
1667
1697
  /**
1668
1698
  * The vault capital locked for the current frame.
1669
1699
  *
@@ -1703,6 +1733,10 @@ declare module '@polkadot/api-base/types/storage' {
1703
1733
  (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
1704
1734
  [u64]
1705
1735
  >;
1736
+ /**
1737
+ * The total number of active Argonot bonds in the active set.
1738
+ **/
1739
+ totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
1706
1740
  };
1707
1741
  txPause: {
1708
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
@@ -1153,11 +1153,12 @@ declare module '@polkadot/api-base/types/submittable' {
1153
1153
  patch:
1154
1154
  | PalletOperationalAccountsOperationalProgressPatch
1155
1155
  | {
1156
- hasUniswapTransfer?: any;
1156
+ uniswapArgonTransfersInAmount?: any;
1157
+ accountBitcoinAmount?: any;
1158
+ accountVaultBondAmount?: any;
1157
1159
  vaultCreated?: any;
1158
- hasTreasuryPoolParticipation?: any;
1159
- observedBitcoinTotal?: any;
1160
- observedMiningSeatTotal?: any;
1160
+ vaultBitcoinAmount?: any;
1161
+ miningSeatCount?: any;
1161
1162
  }
1162
1163
  | string
1163
1164
  | Uint8Array,
@@ -1166,9 +1167,9 @@ declare module '@polkadot/api-base/types/submittable' {
1166
1167
  [AccountId32, PalletOperationalAccountsOperationalProgressPatch, bool]
1167
1168
  >;
1168
1169
  /**
1169
- * Register vault, mining funding, and bot accounts for an operational account.
1170
+ * Register vault and mining accounts for an operational account.
1170
1171
  * Any account in the registration may submit the transaction.
1171
- * 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.
1172
1173
  **/
1173
1174
  register: AugmentedSubmittable<
1174
1175
  (
@@ -1177,22 +1178,22 @@ declare module '@polkadot/api-base/types/submittable' {
1177
1178
  [PalletOperationalAccountsRegistration]
1178
1179
  >;
1179
1180
  /**
1180
- * Store an opaque encrypted sponsor server payload for a sponsored operational account.
1181
+ * Store an opaque encrypted upstream server payload for a downstream account.
1181
1182
  **/
1182
- setEncryptedServerForSponsee: AugmentedSubmittable<
1183
+ setEncryptedServerForDownstreamAccount: AugmentedSubmittable<
1183
1184
  (
1184
- sponsee: AccountId32 | string | Uint8Array,
1185
+ downstreamAccount: AccountId32 | string | Uint8Array,
1185
1186
  encryptedServer: Bytes | string | Uint8Array,
1186
1187
  ) => SubmittableExtrinsic<ApiType>,
1187
1188
  [AccountId32, Bytes]
1188
1189
  >;
1189
1190
  /**
1190
- * Update reward amounts for operational accounts.
1191
+ * Update certification reward amounts for operational accounts.
1191
1192
  **/
1192
1193
  setRewardConfig: AugmentedSubmittable<
1193
1194
  (
1194
- operationalReferralReward: u128 | AnyNumber | Uint8Array,
1195
- referralBonusReward: u128 | AnyNumber | Uint8Array,
1195
+ operationalCertificationReward: u128 | AnyNumber | Uint8Array,
1196
+ operationalCertificationBonusReward: u128 | AnyNumber | Uint8Array,
1196
1197
  ) => SubmittableExtrinsic<ApiType>,
1197
1198
  [u128, u128]
1198
1199
  >;
@@ -2001,6 +2002,13 @@ declare module '@polkadot/api-base/types/submittable' {
2001
2002
  >;
2002
2003
  };
2003
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
+ >;
2004
2012
  /**
2005
2013
  * Buy whole `1 ARGON` bonds for a vault.
2006
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