@argonprotocol/mainchain 1.4.9 → 1.4.10-dev.459cb75f
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/browser/index.d.ts +639 -428
- package/browser/index.js +135 -28
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +158 -52
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +639 -428
- package/lib/index.d.ts +639 -428
- package/lib/index.js +134 -28
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +56 -24
- package/src/interfaces/augment-api-errors.ts +39 -15
- package/src/interfaces/augment-api-events.ts +117 -32
- package/src/interfaces/augment-api-query.ts +86 -51
- package/src/interfaces/augment-api-tx.ts +20 -13
- package/src/interfaces/lookup.ts +367 -283
- package/src/interfaces/registry.ts +14 -2
- package/src/interfaces/types-lookup.ts +388 -297
|
@@ -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
|
**/
|
|
@@ -591,18 +606,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
591
606
|
) => Observable<Option<PalletCrosschainTransferGlobalIssuanceCouncil>>,
|
|
592
607
|
[H256]
|
|
593
608
|
>;
|
|
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
609
|
/**
|
|
607
610
|
* The latest queued council hash that should govern the next queue entry on each destination
|
|
608
611
|
* chain.
|
|
@@ -656,6 +659,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
656
659
|
) => Observable<u64>,
|
|
657
660
|
[PalletCrosschainTransferSourceChain]
|
|
658
661
|
>;
|
|
662
|
+
/**
|
|
663
|
+
* First frame where a new council snapshot may be added to a chain's approval queue.
|
|
664
|
+
**/
|
|
665
|
+
nextCouncilRotationFrameByDestinationChain: AugmentedQuery<
|
|
666
|
+
ApiType,
|
|
667
|
+
(
|
|
668
|
+
arg: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
669
|
+
) => Observable<Option<u64>>,
|
|
670
|
+
[PalletCrosschainTransferSourceChain]
|
|
671
|
+
>;
|
|
659
672
|
/**
|
|
660
673
|
* Next outbound transfer nonce for each sending account.
|
|
661
674
|
**/
|
|
@@ -716,14 +729,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
716
729
|
) => Observable<Option<u128>>,
|
|
717
730
|
[PalletCrosschainTransferSourceChain]
|
|
718
731
|
>;
|
|
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
732
|
/**
|
|
728
733
|
* Outbound transfers by transfer id.
|
|
729
734
|
**/
|
|
@@ -745,6 +750,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
745
750
|
) => Observable<Option<u128>>,
|
|
746
751
|
[PalletCrosschainTransferSourceChain]
|
|
747
752
|
>;
|
|
753
|
+
/**
|
|
754
|
+
* Cumulative inbound and outbound transfer totals for each local account.
|
|
755
|
+
**/
|
|
756
|
+
transferTotalsByAccount: AugmentedQuery<
|
|
757
|
+
ApiType,
|
|
758
|
+
(
|
|
759
|
+
arg: AccountId32 | string | Uint8Array,
|
|
760
|
+
) => Observable<PalletCrosschainTransferAccountTransferTotals>,
|
|
761
|
+
[AccountId32]
|
|
762
|
+
>;
|
|
748
763
|
};
|
|
749
764
|
digests: {
|
|
750
765
|
tempDigests: AugmentedQuery<
|
|
@@ -1105,15 +1120,36 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1105
1120
|
**/
|
|
1106
1121
|
mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1107
1122
|
/**
|
|
1108
|
-
*
|
|
1109
|
-
|
|
1110
|
-
|
|
1123
|
+
* The next monotonic queue index to assign to a pending bitcoin mint.
|
|
1124
|
+
**/
|
|
1125
|
+
nextPendingMintUtxoIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Queue bookkeeping for pending bitcoin mints, including the bounded payout start and the
|
|
1128
|
+
* current frame scan cursor.
|
|
1111
1129
|
**/
|
|
1112
|
-
|
|
1130
|
+
pendingMintQueueState: AugmentedQuery<
|
|
1113
1131
|
ApiType,
|
|
1114
|
-
() => Observable<
|
|
1132
|
+
() => Observable<PalletMintMintQueueCursor>,
|
|
1115
1133
|
[]
|
|
1116
1134
|
>;
|
|
1135
|
+
/**
|
|
1136
|
+
* Reverse lookup from bitcoin UTXO id to all queued mint indices for direct removal and
|
|
1137
|
+
* client lookup.
|
|
1138
|
+
**/
|
|
1139
|
+
pendingMintUtxoIdLookup: AugmentedQuery<
|
|
1140
|
+
ApiType,
|
|
1141
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1142
|
+
[u64]
|
|
1143
|
+
>;
|
|
1144
|
+
/**
|
|
1145
|
+
* Bitcoin UTXOs that have been submitted for minting, keyed by a monotonic queue index so
|
|
1146
|
+
* payouts can preserve FIFO order while each frame works through a fixed payout cohort.
|
|
1147
|
+
**/
|
|
1148
|
+
pendingMintUtxosByIndex: AugmentedQuery<
|
|
1149
|
+
ApiType,
|
|
1150
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletMintPendingMintUtxo>>,
|
|
1151
|
+
[u64]
|
|
1152
|
+
>;
|
|
1117
1153
|
};
|
|
1118
1154
|
multisig: {
|
|
1119
1155
|
/**
|
|
@@ -1236,40 +1272,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1236
1272
|
};
|
|
1237
1273
|
operationalAccounts: {
|
|
1238
1274
|
/**
|
|
1239
|
-
*
|
|
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.
|
|
1275
|
+
* Opaque encrypted upstream server payload keyed by the downstream account.
|
|
1259
1276
|
**/
|
|
1260
|
-
|
|
1277
|
+
encryptedServerByDownstreamAccount: AugmentedQuery<
|
|
1261
1278
|
ApiType,
|
|
1262
1279
|
(arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
|
|
1263
1280
|
[AccountId32]
|
|
1264
1281
|
>;
|
|
1265
|
-
/**
|
|
1266
|
-
* Oldest referral expiration frame that still has cleanup work to resume.
|
|
1267
|
-
**/
|
|
1268
|
-
expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
1269
1282
|
/**
|
|
1270
1283
|
* Whether operational-account access is invite-only.
|
|
1271
1284
|
*
|
|
1272
|
-
* When enabled, registration requires
|
|
1285
|
+
* When enabled, registration requires an upstream invite and vault creation plus
|
|
1273
1286
|
* mining-slot bidding remain restricted to registered operational accounts.
|
|
1274
1287
|
*
|
|
1275
1288
|
* Existing live raw chain specs do not contain this key, so the default remains invite-only
|
|
@@ -1645,6 +1658,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1645
1658
|
>;
|
|
1646
1659
|
};
|
|
1647
1660
|
treasury: {
|
|
1661
|
+
/**
|
|
1662
|
+
* The active top Argonot bond lots kept in ascending bond order, then lower ids first.
|
|
1663
|
+
**/
|
|
1664
|
+
argonotBondLots: AugmentedQuery<
|
|
1665
|
+
ApiType,
|
|
1666
|
+
() => Observable<Vec<PalletTreasuryBondLotSummary>>,
|
|
1667
|
+
[]
|
|
1668
|
+
>;
|
|
1648
1669
|
/**
|
|
1649
1670
|
* The stored state for each bond lot.
|
|
1650
1671
|
**/
|
|
@@ -1674,6 +1695,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1674
1695
|
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
|
|
1675
1696
|
[u32]
|
|
1676
1697
|
>;
|
|
1698
|
+
/**
|
|
1699
|
+
* The Argonot bond participants locked for the current frame.
|
|
1700
|
+
*
|
|
1701
|
+
* Payout uses this to see which Argonot bond lots are participating in the frame.
|
|
1702
|
+
**/
|
|
1703
|
+
currentFrameArgonotBondParticipants: AugmentedQuery<
|
|
1704
|
+
ApiType,
|
|
1705
|
+
() => Observable<Option<PalletTreasuryFrameArgonotBondParticipants>>,
|
|
1706
|
+
[]
|
|
1707
|
+
>;
|
|
1677
1708
|
/**
|
|
1678
1709
|
* The vault capital locked for the current frame.
|
|
1679
1710
|
*
|
|
@@ -1713,6 +1744,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1713
1744
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1714
1745
|
[u64]
|
|
1715
1746
|
>;
|
|
1747
|
+
/**
|
|
1748
|
+
* The total number of active Argonot bonds in the active set.
|
|
1749
|
+
**/
|
|
1750
|
+
totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1716
1751
|
};
|
|
1717
1752
|
txPause: {
|
|
1718
1753
|
/**
|
|
@@ -1153,11 +1153,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1153
1153
|
patch:
|
|
1154
1154
|
| PalletOperationalAccountsOperationalProgressPatch
|
|
1155
1155
|
| {
|
|
1156
|
-
|
|
1156
|
+
uniswapArgonTransfersInAmount?: any;
|
|
1157
|
+
accountBitcoinAmount?: any;
|
|
1158
|
+
accountVaultBondAmount?: any;
|
|
1157
1159
|
vaultCreated?: any;
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
observedMiningSeatTotal?: any;
|
|
1160
|
+
vaultBitcoinAmount?: any;
|
|
1161
|
+
miningSeatCount?: any;
|
|
1161
1162
|
}
|
|
1162
1163
|
| string
|
|
1163
1164
|
| Uint8Array,
|
|
@@ -1166,10 +1167,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1166
1167
|
[AccountId32, PalletOperationalAccountsOperationalProgressPatch, bool]
|
|
1167
1168
|
>;
|
|
1168
1169
|
/**
|
|
1169
|
-
* Register vault
|
|
1170
|
+
* Register vault and mining accounts for an operational account.
|
|
1170
1171
|
* Any account in the registration may submit the transaction.
|
|
1171
|
-
*
|
|
1172
|
-
* When invite-only is enabled, a valid referral proof is required.
|
|
1172
|
+
* When invite-only is enabled, the registration must include an upstream access proof.
|
|
1173
1173
|
**/
|
|
1174
1174
|
register: AugmentedSubmittable<
|
|
1175
1175
|
(
|
|
@@ -1178,22 +1178,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1178
1178
|
[PalletOperationalAccountsRegistration]
|
|
1179
1179
|
>;
|
|
1180
1180
|
/**
|
|
1181
|
-
* Store an opaque encrypted
|
|
1181
|
+
* Store an opaque encrypted upstream server payload for a downstream account.
|
|
1182
1182
|
**/
|
|
1183
|
-
|
|
1183
|
+
setEncryptedServerForDownstreamAccount: AugmentedSubmittable<
|
|
1184
1184
|
(
|
|
1185
|
-
|
|
1185
|
+
downstreamAccount: AccountId32 | string | Uint8Array,
|
|
1186
1186
|
encryptedServer: Bytes | string | Uint8Array,
|
|
1187
1187
|
) => SubmittableExtrinsic<ApiType>,
|
|
1188
1188
|
[AccountId32, Bytes]
|
|
1189
1189
|
>;
|
|
1190
1190
|
/**
|
|
1191
|
-
* Update reward amounts for operational accounts.
|
|
1191
|
+
* Update certification reward amounts for operational accounts.
|
|
1192
1192
|
**/
|
|
1193
1193
|
setRewardConfig: AugmentedSubmittable<
|
|
1194
1194
|
(
|
|
1195
|
-
|
|
1196
|
-
|
|
1195
|
+
operationalCertificationReward: u128 | AnyNumber | Uint8Array,
|
|
1196
|
+
operationalCertificationBonusReward: u128 | AnyNumber | Uint8Array,
|
|
1197
1197
|
) => SubmittableExtrinsic<ApiType>,
|
|
1198
1198
|
[u128, u128]
|
|
1199
1199
|
>;
|
|
@@ -2002,6 +2002,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2002
2002
|
>;
|
|
2003
2003
|
};
|
|
2004
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
|
+
>;
|
|
2005
2012
|
/**
|
|
2006
2013
|
* Buy whole `1 ARGON` bonds for a vault.
|
|
2007
2014
|
*
|