@argonprotocol/mainchain 1.4.9-dev.bc5f3764 → 1.4.9-dev.cf22b187
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 +592 -381
- package/browser/index.js +18 -6
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +18 -6
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +592 -381
- package/lib/index.d.ts +592 -381
- package/lib/index.js +18 -6
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +54 -23
- package/src/interfaces/augment-api-errors.ts +37 -9
- package/src/interfaces/augment-api-events.ts +107 -30
- package/src/interfaces/augment-api-query.ts +76 -51
- package/src/interfaces/augment-api-tx.ts +26 -12
- package/src/interfaces/lookup.ts +341 -260
- package/src/interfaces/registry.ts +12 -2
- package/src/interfaces/types-lookup.ts +359 -266
|
@@ -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.
|
|
@@ -716,14 +719,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
716
719
|
) => Observable<Option<u128>>,
|
|
717
720
|
[PalletCrosschainTransferSourceChain]
|
|
718
721
|
>;
|
|
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
722
|
/**
|
|
728
723
|
* Outbound transfers by transfer id.
|
|
729
724
|
**/
|
|
@@ -745,6 +740,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
745
740
|
) => Observable<Option<u128>>,
|
|
746
741
|
[PalletCrosschainTransferSourceChain]
|
|
747
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
|
+
>;
|
|
748
753
|
};
|
|
749
754
|
digests: {
|
|
750
755
|
tempDigests: AugmentedQuery<
|
|
@@ -1105,15 +1110,36 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1105
1110
|
**/
|
|
1106
1111
|
mintedMiningMicrogons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1107
1112
|
/**
|
|
1108
|
-
*
|
|
1109
|
-
|
|
1110
|
-
|
|
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.
|
|
1111
1119
|
**/
|
|
1112
|
-
|
|
1120
|
+
pendingMintQueueState: AugmentedQuery<
|
|
1113
1121
|
ApiType,
|
|
1114
|
-
() => Observable<
|
|
1122
|
+
() => Observable<PalletMintMintQueueCursor>,
|
|
1115
1123
|
[]
|
|
1116
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
|
+
>;
|
|
1117
1143
|
};
|
|
1118
1144
|
multisig: {
|
|
1119
1145
|
/**
|
|
@@ -1236,40 +1262,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1236
1262
|
};
|
|
1237
1263
|
operationalAccounts: {
|
|
1238
1264
|
/**
|
|
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.
|
|
1265
|
+
* Opaque encrypted referrer server payload keyed by the downstream account.
|
|
1259
1266
|
**/
|
|
1260
|
-
|
|
1267
|
+
encryptedServerByDownstreamAccount: AugmentedQuery<
|
|
1261
1268
|
ApiType,
|
|
1262
1269
|
(arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
|
|
1263
1270
|
[AccountId32]
|
|
1264
1271
|
>;
|
|
1265
|
-
/**
|
|
1266
|
-
* Oldest referral expiration frame that still has cleanup work to resume.
|
|
1267
|
-
**/
|
|
1268
|
-
expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
1269
1272
|
/**
|
|
1270
1273
|
* Whether operational-account access is invite-only.
|
|
1271
1274
|
*
|
|
1272
|
-
* When enabled, registration requires a
|
|
1275
|
+
* When enabled, registration requires a referrer invite and vault creation plus
|
|
1273
1276
|
* mining-slot bidding remain restricted to registered operational accounts.
|
|
1274
1277
|
*
|
|
1275
1278
|
* Existing live raw chain specs do not contain this key, so the default remains invite-only
|
|
@@ -1645,6 +1648,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1645
1648
|
>;
|
|
1646
1649
|
};
|
|
1647
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
|
+
>;
|
|
1648
1659
|
/**
|
|
1649
1660
|
* The stored state for each bond lot.
|
|
1650
1661
|
**/
|
|
@@ -1674,6 +1685,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1674
1685
|
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
|
|
1675
1686
|
[u32]
|
|
1676
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
|
+
>;
|
|
1677
1698
|
/**
|
|
1678
1699
|
* The vault capital locked for the current frame.
|
|
1679
1700
|
*
|
|
@@ -1713,6 +1734,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1713
1734
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1714
1735
|
[u64]
|
|
1715
1736
|
>;
|
|
1737
|
+
/**
|
|
1738
|
+
* The total number of active Argonot bonds in the active set.
|
|
1739
|
+
**/
|
|
1740
|
+
totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1716
1741
|
};
|
|
1717
1742
|
txPause: {
|
|
1718
1743
|
/**
|
|
@@ -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 a referrer.
|
|
1173
1173
|
**/
|
|
1174
1174
|
register: AugmentedSubmittable<
|
|
1175
1175
|
(
|
|
@@ -1178,11 +1178,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1178
1178
|
[PalletOperationalAccountsRegistration]
|
|
1179
1179
|
>;
|
|
1180
1180
|
/**
|
|
1181
|
-
* Store an opaque encrypted
|
|
1181
|
+
* Store an opaque encrypted referrer 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]
|
|
@@ -1192,11 +1192,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1192
1192
|
**/
|
|
1193
1193
|
setRewardConfig: AugmentedSubmittable<
|
|
1194
1194
|
(
|
|
1195
|
-
|
|
1196
|
-
|
|
1195
|
+
operationalActivationReward: u128 | AnyNumber | Uint8Array,
|
|
1196
|
+
operationalReferralBonusReward: u128 | AnyNumber | Uint8Array,
|
|
1197
1197
|
) => SubmittableExtrinsic<ApiType>,
|
|
1198
1198
|
[u128, u128]
|
|
1199
1199
|
>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Grant a referrer upgrade to an already-registered operational account.
|
|
1202
|
+
**/
|
|
1203
|
+
upgradeAccount: AugmentedSubmittable<
|
|
1204
|
+
(accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
1205
|
+
[AccountId32]
|
|
1206
|
+
>;
|
|
1200
1207
|
};
|
|
1201
1208
|
ownership: {
|
|
1202
1209
|
/**
|
|
@@ -2002,6 +2009,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2002
2009
|
>;
|
|
2003
2010
|
};
|
|
2004
2011
|
treasury: {
|
|
2012
|
+
/**
|
|
2013
|
+
* Buy whole bond units for the Argonot active set.
|
|
2014
|
+
**/
|
|
2015
|
+
buyArgonotBonds: AugmentedSubmittable<
|
|
2016
|
+
(bonds: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2017
|
+
[u32]
|
|
2018
|
+
>;
|
|
2005
2019
|
/**
|
|
2006
2020
|
* Buy whole `1 ARGON` bonds for a vault.
|
|
2007
2021
|
*
|