@argonprotocol/mainchain 1.4.9 → 1.4.10
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 +608 -426
- package/browser/index.js +117 -27
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +140 -51
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +608 -426
- package/lib/index.d.ts +608 -426
- package/lib/index.js +116 -27
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +56 -25
- package/src/interfaces/augment-api-errors.ts +35 -15
- package/src/interfaces/augment-api-events.ts +101 -32
- package/src/interfaces/augment-api-query.ts +76 -52
- package/src/interfaces/augment-api-runtime.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +20 -13
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +0 -1
- package/src/interfaces/lookup.ts +361 -286
- package/src/interfaces/registry.ts +14 -3
- package/src/interfaces/types-lookup.ts +378 -296
|
@@ -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
|
-
*
|
|
1109
|
-
|
|
1110
|
-
|
|
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
|
-
|
|
1119
|
+
pendingMintQueueState: AugmentedQuery<
|
|
1113
1120
|
ApiType,
|
|
1114
|
-
() => Observable<
|
|
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,40 +1261,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1236
1261
|
};
|
|
1237
1262
|
operationalAccounts: {
|
|
1238
1263
|
/**
|
|
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.
|
|
1264
|
+
* Opaque encrypted upstream server payload keyed by the downstream account.
|
|
1259
1265
|
**/
|
|
1260
|
-
|
|
1266
|
+
encryptedServerByDownstreamAccount: AugmentedQuery<
|
|
1261
1267
|
ApiType,
|
|
1262
1268
|
(arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>,
|
|
1263
1269
|
[AccountId32]
|
|
1264
1270
|
>;
|
|
1265
|
-
/**
|
|
1266
|
-
* Oldest referral expiration frame that still has cleanup work to resume.
|
|
1267
|
-
**/
|
|
1268
|
-
expiredReferralCodeCleanupFrame: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
1269
1271
|
/**
|
|
1270
1272
|
* Whether operational-account access is invite-only.
|
|
1271
1273
|
*
|
|
1272
|
-
* When enabled, registration requires
|
|
1274
|
+
* When enabled, registration requires an upstream invite and vault creation plus
|
|
1273
1275
|
* mining-slot bidding remain restricted to registered operational accounts.
|
|
1274
1276
|
*
|
|
1275
1277
|
* Existing live raw chain specs do not contain this key, so the default remains invite-only
|
|
@@ -1645,6 +1647,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1645
1647
|
>;
|
|
1646
1648
|
};
|
|
1647
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
|
+
>;
|
|
1648
1658
|
/**
|
|
1649
1659
|
* The stored state for each bond lot.
|
|
1650
1660
|
**/
|
|
@@ -1674,6 +1684,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1674
1684
|
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletTreasuryBondLotSummary>>,
|
|
1675
1685
|
[u32]
|
|
1676
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
|
+
>;
|
|
1677
1697
|
/**
|
|
1678
1698
|
* The vault capital locked for the current frame.
|
|
1679
1699
|
*
|
|
@@ -1713,6 +1733,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1713
1733
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>,
|
|
1714
1734
|
[u64]
|
|
1715
1735
|
>;
|
|
1736
|
+
/**
|
|
1737
|
+
* The total number of active Argonot bonds in the active set.
|
|
1738
|
+
**/
|
|
1739
|
+
totalActiveArgonotBonds: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1716
1740
|
};
|
|
1717
1741
|
txPause: {
|
|
1718
1742
|
/**
|
|
@@ -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
|
*
|