@argonprotocol/mainchain 1.5.2-dev.9c5eb2c8 → 1.5.2-dev.eeea0796
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 +512 -279
- package/browser/index.js +70 -5
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +84 -13
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +512 -279
- package/lib/index.d.ts +512 -279
- package/lib/index.js +79 -8
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +8 -1
- package/src/interfaces/augment-api-errors.ts +53 -9
- package/src/interfaces/augment-api-events.ts +14 -1
- package/src/interfaces/augment-api-query.ts +59 -6
- package/src/interfaces/augment-api-runtime.ts +1 -0
- package/src/interfaces/augment-api-tx.ts +64 -34
- package/src/interfaces/augment-api.ts +1 -0
- package/src/interfaces/augment-types.ts +1 -0
- package/src/interfaces/lookup.ts +304 -215
- package/src/interfaces/registry.ts +11 -0
- package/src/interfaces/types-lookup.ts +328 -226
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.5.2-dev.
|
|
3
|
+
"version": "1.5.2-dev.eeea0796",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
71
|
-
"@argonprotocol/testing": "1.5.2-dev.
|
|
71
|
+
"@argonprotocol/testing": "1.5.2-dev.eeea0796",
|
|
72
72
|
"@polkadot/typegen": "^17.0.1",
|
|
73
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
74
74
|
"@types/node": "^20",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
2
3
|
|
|
3
4
|
// import type lookup before we augment - in some environments
|
|
4
5
|
// this is required to allow for ambient/previous definitions
|
|
@@ -101,7 +102,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
101
102
|
**/
|
|
102
103
|
orphanedUtxoReleaseExpiryFrames: u64 & AugmentedConst<ApiType>;
|
|
103
104
|
/**
|
|
104
|
-
*
|
|
105
|
+
* Initial Bitcoin deposit window, measured in Bitcoin blocks.
|
|
105
106
|
**/
|
|
106
107
|
securitizationHoldBlocks: u64 & AugmentedConst<ApiType>;
|
|
107
108
|
/**
|
|
@@ -271,6 +272,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
271
272
|
* The increment that bids can be on (for instance, one cent increments)
|
|
272
273
|
**/
|
|
273
274
|
bidIncrements: u128 & AugmentedConst<ApiType>;
|
|
275
|
+
bidRevealBlocks: u32 & AugmentedConst<ApiType>;
|
|
276
|
+
bidSettlementBuffer: u32 & AugmentedConst<ApiType>;
|
|
274
277
|
/**
|
|
275
278
|
* The number of frames a miner operates for
|
|
276
279
|
**/
|
|
@@ -279,6 +282,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
279
282
|
* The initial argonots needed per seat before a prior-day median is available.
|
|
280
283
|
**/
|
|
281
284
|
initialArgonotsPerSeat: u128 & AugmentedConst<ApiType>;
|
|
285
|
+
/**
|
|
286
|
+
* Maximum commitments, including public bids, admitted per block.
|
|
287
|
+
**/
|
|
288
|
+
maxBidsPerBlock: u32 & AugmentedConst<ApiType>;
|
|
282
289
|
/**
|
|
283
290
|
* How many new miners can be in the cohort for each slot. The actual maximum will adjust
|
|
284
291
|
* dynamically
|
|
@@ -102,6 +102,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
102
102
|
* A source Lock's securitization does not cover the requested allocation and liability.
|
|
103
103
|
**/
|
|
104
104
|
InsufficientSecuritization: AugmentedError<ApiType>;
|
|
105
|
+
/**
|
|
106
|
+
* The fee coupon is invalid, expired, or already consumed.
|
|
107
|
+
**/
|
|
108
|
+
InvalidFeeCoupon: AugmentedError<ApiType>;
|
|
105
109
|
/**
|
|
106
110
|
* The requested source Lock does not exist.
|
|
107
111
|
**/
|
|
@@ -138,6 +142,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
138
142
|
* The Fission's ratchet counter cannot be incremented.
|
|
139
143
|
**/
|
|
140
144
|
RatchetNumberOverflow: AugmentedError<ApiType>;
|
|
145
|
+
/**
|
|
146
|
+
* The Vault could not upgrade the guarantee assigned to this Fission.
|
|
147
|
+
**/
|
|
148
|
+
ResecuritizationFailed: AugmentedError<ApiType>;
|
|
141
149
|
/**
|
|
142
150
|
* The source Lock already has the maximum number of active Fissions.
|
|
143
151
|
**/
|
|
@@ -221,10 +229,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
221
229
|
* The requested Lock securitization has fewer satoshis than its active Fissions.
|
|
222
230
|
**/
|
|
223
231
|
InsufficientSatoshisForFissions: AugmentedError<ApiType>;
|
|
224
|
-
/**
|
|
225
|
-
* The requested Lock securitization does not cover its active Fission liabilities.
|
|
226
|
-
**/
|
|
227
|
-
InsufficientSecuritizationForFissions: AugmentedError<ApiType>;
|
|
228
232
|
InsufficientVaultFunds: AugmentedError<ApiType>;
|
|
229
233
|
/**
|
|
230
234
|
* The external destination amount must be nonzero and fit with the network fee.
|
|
@@ -247,7 +251,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
247
251
|
**/
|
|
248
252
|
LockHasActiveFissions: AugmentedError<ApiType>;
|
|
249
253
|
/**
|
|
250
|
-
* A Lock
|
|
254
|
+
* A Lock's guarantee cannot be changed while release is pending.
|
|
251
255
|
**/
|
|
252
256
|
LockInProcessOfRelease: AugmentedError<ApiType>;
|
|
253
257
|
/**
|
|
@@ -279,13 +283,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
279
283
|
**/
|
|
280
284
|
NoBitcoinPricesAvailable: AugmentedError<ApiType>;
|
|
281
285
|
/**
|
|
282
|
-
* The
|
|
286
|
+
* The requested securitization matches the Lock's current securitization.
|
|
283
287
|
**/
|
|
284
|
-
|
|
288
|
+
NoGuaranteeChange: AugmentedError<ApiType>;
|
|
285
289
|
/**
|
|
286
|
-
* The
|
|
290
|
+
* The user does not have permissions to perform this action
|
|
287
291
|
**/
|
|
288
|
-
|
|
292
|
+
NoPermissions: AugmentedError<ApiType>;
|
|
289
293
|
/**
|
|
290
294
|
* No Vault public keys are available
|
|
291
295
|
**/
|
|
@@ -898,6 +902,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
898
902
|
NotebookIncludesExpiredLocalchainTransfer: AugmentedError<ApiType>;
|
|
899
903
|
};
|
|
900
904
|
miningSlot: {
|
|
905
|
+
/**
|
|
906
|
+
* The bid batch cannot settle until its reveal window has ended.
|
|
907
|
+
**/
|
|
908
|
+
BatchNotMature: AugmentedError<ApiType>;
|
|
909
|
+
/**
|
|
910
|
+
* The pending bid's maximum has already been revealed.
|
|
911
|
+
**/
|
|
912
|
+
BidAlreadyRevealed: AugmentedError<ApiType>;
|
|
901
913
|
/**
|
|
902
914
|
* The mining bid cannot be reduced
|
|
903
915
|
**/
|
|
@@ -914,6 +926,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
914
926
|
* An account can only have one active registration
|
|
915
927
|
**/
|
|
916
928
|
CannotRegisterOverlappingSessions: AugmentedError<ApiType>;
|
|
929
|
+
/**
|
|
930
|
+
* The miner already has a pending bid awaiting settlement.
|
|
931
|
+
**/
|
|
932
|
+
DuplicateBidCommitment: AugmentedError<ApiType>;
|
|
917
933
|
/**
|
|
918
934
|
* The funding account does not have enough funds to cover the bid
|
|
919
935
|
**/
|
|
@@ -926,14 +942,38 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
926
942
|
* Bids must be in allowed increments
|
|
927
943
|
**/
|
|
928
944
|
InvalidBidAmount: AugmentedError<ApiType>;
|
|
945
|
+
/**
|
|
946
|
+
* The revealed maximum and salt do not match the pending bid's hash.
|
|
947
|
+
**/
|
|
948
|
+
InvalidBidCommitment: AugmentedError<ApiType>;
|
|
949
|
+
/**
|
|
950
|
+
* The revealed maximum is lower than the public bid.
|
|
951
|
+
**/
|
|
952
|
+
InvalidBidRange: AugmentedError<ApiType>;
|
|
953
|
+
/**
|
|
954
|
+
* A maximum must be revealed in a block after submission and within the reveal window.
|
|
955
|
+
**/
|
|
956
|
+
InvalidRevealBlock: AugmentedError<ApiType>;
|
|
957
|
+
/**
|
|
958
|
+
* The miner has no pending bid with a committed maximum to reveal.
|
|
959
|
+
**/
|
|
960
|
+
MissingBidCommitment: AugmentedError<ApiType>;
|
|
929
961
|
/**
|
|
930
962
|
* Mining slot bidding currently requires a prior operational-account upgrade.
|
|
931
963
|
**/
|
|
932
964
|
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
965
|
+
/**
|
|
966
|
+
* Bidding with a committed maximum is not enabled for the current auction frame.
|
|
967
|
+
**/
|
|
968
|
+
RangeAuctionNotActive: AugmentedError<ApiType>;
|
|
933
969
|
/**
|
|
934
970
|
* Bidding for the next cohort has closed
|
|
935
971
|
**/
|
|
936
972
|
SlotNotTakingBids: AugmentedError<ApiType>;
|
|
973
|
+
/**
|
|
974
|
+
* This block has reached the maximum number of pending bid submissions.
|
|
975
|
+
**/
|
|
976
|
+
TooManyBidCommitments: AugmentedError<ApiType>;
|
|
937
977
|
/**
|
|
938
978
|
* The cohort registration overflowed
|
|
939
979
|
**/
|
|
@@ -942,6 +982,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
942
982
|
* The argonots on hold cannot be released
|
|
943
983
|
**/
|
|
944
984
|
UnrecoverableHold: AugmentedError<ApiType>;
|
|
985
|
+
/**
|
|
986
|
+
* The bid targets a different auction frame than the current one.
|
|
987
|
+
**/
|
|
988
|
+
WrongBidFrame: AugmentedError<ApiType>;
|
|
945
989
|
};
|
|
946
990
|
mint: {
|
|
947
991
|
TooManyPendingMints: AugmentedError<ApiType>;
|
|
@@ -419,7 +419,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
419
419
|
[lockId: u64, vaultId: u32, isFlexible: bool],
|
|
420
420
|
{ lockId: u64; vaultId: u32; isFlexible: bool }
|
|
421
421
|
>;
|
|
422
|
-
|
|
422
|
+
BitcoinLockGuaranteeSet: AugmentedEvent<
|
|
423
423
|
ApiType,
|
|
424
424
|
[
|
|
425
425
|
lockId: u64,
|
|
@@ -1114,6 +1114,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1114
1114
|
>;
|
|
1115
1115
|
};
|
|
1116
1116
|
miningSlot: {
|
|
1117
|
+
BidCommitted: AugmentedEvent<
|
|
1118
|
+
ApiType,
|
|
1119
|
+
[accountId: AccountId32, targetFrameId: u64],
|
|
1120
|
+
{ accountId: AccountId32; targetFrameId: u64 }
|
|
1121
|
+
>;
|
|
1122
|
+
BidLost: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1123
|
+
BidRejected: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1124
|
+
BidRevealed: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1117
1125
|
/**
|
|
1118
1126
|
* Bids are closed due to the VRF randomized function triggering
|
|
1119
1127
|
**/
|
|
@@ -1164,6 +1172,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1164
1172
|
[accountId: AccountId32, preservedArgonotHold: bool],
|
|
1165
1173
|
{ accountId: AccountId32; preservedArgonotHold: bool }
|
|
1166
1174
|
>;
|
|
1175
|
+
WinningBidPriceChanged: AugmentedEvent<
|
|
1176
|
+
ApiType,
|
|
1177
|
+
[accountId: AccountId32, bidAmount: u128],
|
|
1178
|
+
{ accountId: AccountId32; bidAmount: u128 }
|
|
1179
|
+
>;
|
|
1167
1180
|
};
|
|
1168
1181
|
mint: {
|
|
1169
1182
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
2
3
|
|
|
3
4
|
// import type lookup before we augment - in some environments
|
|
4
5
|
// this is required to allow for ambient/previous definitions
|
|
@@ -50,7 +51,7 @@ import type {
|
|
|
50
51
|
ArgonPrimitivesNotaryNotaryRecord,
|
|
51
52
|
ArgonPrimitivesProvidersBlockSealerInfo,
|
|
52
53
|
ArgonPrimitivesTickTicker,
|
|
53
|
-
|
|
54
|
+
ArgonPrimitivesTreasuryNetworkPositionQuantities,
|
|
54
55
|
ArgonPrimitivesVault,
|
|
55
56
|
ArgonPrimitivesVaultVaultArgonotSecuritization,
|
|
56
57
|
FrameSupportDispatchPerDispatchClassWeight,
|
|
@@ -95,7 +96,9 @@ import type {
|
|
|
95
96
|
PalletGrandpaStoredState,
|
|
96
97
|
PalletLocalchainTransferQueuedTransferOut,
|
|
97
98
|
PalletMiningSlotMinerNonceScoring,
|
|
99
|
+
PalletMiningSlotPendingBid,
|
|
98
100
|
PalletMiningSlotSeatPriceStats,
|
|
101
|
+
PalletMiningSlotStandingBid,
|
|
99
102
|
PalletMintMintAction,
|
|
100
103
|
PalletMintMintQueueCursor,
|
|
101
104
|
PalletMintPendingBitcoinMint,
|
|
@@ -113,6 +116,7 @@ import type {
|
|
|
113
116
|
PalletTreasuryBondLot,
|
|
114
117
|
PalletTreasuryBondLotSummary,
|
|
115
118
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
119
|
+
PalletTreasuryFrameVaultBitcoin,
|
|
116
120
|
PalletTreasuryFrameVaultCapital,
|
|
117
121
|
PalletTreasuryPositionsPosition,
|
|
118
122
|
PalletTreasuryVaultBondState,
|
|
@@ -255,13 +259,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
255
259
|
[u32, AccountId32]
|
|
256
260
|
>;
|
|
257
261
|
/**
|
|
258
|
-
* Highest Bitcoin UTXO sync height
|
|
262
|
+
* Highest Bitcoin UTXO sync height checked for funding expirations; failures remain pending.
|
|
259
263
|
**/
|
|
260
264
|
lastProcessedSecuritizationHoldBitcoinHeight: AugmentedQuery<
|
|
261
265
|
ApiType,
|
|
262
266
|
() => Observable<Option<u64>>,
|
|
263
267
|
[]
|
|
264
268
|
>;
|
|
269
|
+
/**
|
|
270
|
+
* Resume retries after this Lock so a persistent failure cannot starve other expirations.
|
|
271
|
+
**/
|
|
272
|
+
lastRetriedLockExpiration: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
265
273
|
/**
|
|
266
274
|
* Utxos that have been requested to be cosigned for releasing
|
|
267
275
|
**/
|
|
@@ -367,6 +375,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
367
375
|
) => Observable<Option<PalletBitcoinLocksOrphanedUtxo>>,
|
|
368
376
|
[AccountId32, ArgonPrimitivesBitcoinUtxoRef]
|
|
369
377
|
>;
|
|
378
|
+
/**
|
|
379
|
+
* Locks whose funding-window or terminal expiration failed and must be retried.
|
|
380
|
+
**/
|
|
381
|
+
pendingLockExpirations: AugmentedQuery<
|
|
382
|
+
ApiType,
|
|
383
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<Null>>,
|
|
384
|
+
[u64]
|
|
385
|
+
>;
|
|
370
386
|
/**
|
|
371
387
|
* Cosigned partial releases awaiting confirmation on Bitcoin.
|
|
372
388
|
**/
|
|
@@ -1088,6 +1104,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1088
1104
|
* Argonots that must be locked to take a Miner role
|
|
1089
1105
|
**/
|
|
1090
1106
|
argonotsPerMiningSeat: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1107
|
+
auctionAdmissionClosed: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1108
|
+
/**
|
|
1109
|
+
* Zero on fresh chains. Upgrades finish the deployed fixed-price auction first.
|
|
1110
|
+
**/
|
|
1111
|
+
auctionRulesStartAt: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1091
1112
|
/**
|
|
1092
1113
|
* Winning bid totals and seat counts for averaging prices over the last 10 frames (newest
|
|
1093
1114
|
* first).
|
|
@@ -1097,6 +1118,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1097
1118
|
() => Observable<Vec<PalletMiningSlotSeatPriceStats>>,
|
|
1098
1119
|
[]
|
|
1099
1120
|
>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Vector position is canonical commitment order, including calls inside utility batches.
|
|
1123
|
+
**/
|
|
1124
|
+
bidBatches: AugmentedQuery<
|
|
1125
|
+
ApiType,
|
|
1126
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>,
|
|
1127
|
+
[u32]
|
|
1128
|
+
>;
|
|
1100
1129
|
/**
|
|
1101
1130
|
* The cohort set to go into effect in the next slot. The Vec has all
|
|
1102
1131
|
* registrants with their bid amount
|
|
@@ -1118,9 +1147,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1118
1147
|
* The previous 10 frame start ticks
|
|
1119
1148
|
**/
|
|
1120
1149
|
frameStartTicks: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u64>>, []>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Whether the current auction has an accepted price, including a valid zero price.
|
|
1152
|
+
**/
|
|
1153
|
+
hasAcceptedBidPrice: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1121
1154
|
hasAddedGrandpaRotation: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1122
1155
|
/**
|
|
1123
|
-
*
|
|
1156
|
+
* Bid activity and accepted prices for the last 10 auctions (newest first).
|
|
1157
|
+
* Activity counts committed submissions and automatic standing-bid price increases.
|
|
1124
1158
|
**/
|
|
1125
1159
|
historicalBidsPerSlot: AugmentedQuery<
|
|
1126
1160
|
ApiType,
|
|
@@ -1131,6 +1165,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1131
1165
|
* Is the next slot still open for bids
|
|
1132
1166
|
**/
|
|
1133
1167
|
isNextSlotBiddingOpen: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1168
|
+
lastBidBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
1134
1169
|
/**
|
|
1135
1170
|
* This is a lookup of each miner's nonce to use when picking a best authority to submit a
|
|
1136
1171
|
* block. It's a blake2 256 hash of the miner account id and the block hash at time of
|
|
@@ -1172,6 +1207,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1172
1207
|
* cohorts.
|
|
1173
1208
|
**/
|
|
1174
1209
|
nextFrameId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1210
|
+
pendingBids: AugmentedQuery<
|
|
1211
|
+
ApiType,
|
|
1212
|
+
(arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMiningSlotPendingBid>>,
|
|
1213
|
+
[AccountId32]
|
|
1214
|
+
>;
|
|
1175
1215
|
/**
|
|
1176
1216
|
* The miners released in the last block (only kept for a single block)
|
|
1177
1217
|
**/
|
|
@@ -1190,6 +1230,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1190
1230
|
() => Observable<BTreeMap<u64, u32>>,
|
|
1191
1231
|
[]
|
|
1192
1232
|
>;
|
|
1233
|
+
standingBids: AugmentedQuery<
|
|
1234
|
+
ApiType,
|
|
1235
|
+
(arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletMiningSlotStandingBid>>,
|
|
1236
|
+
[AccountId32]
|
|
1237
|
+
>;
|
|
1193
1238
|
/**
|
|
1194
1239
|
* Temporary store the frame info digest
|
|
1195
1240
|
**/
|
|
@@ -1833,6 +1878,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1833
1878
|
() => Observable<Option<PalletTreasuryFrameArgonotBondParticipants>>,
|
|
1834
1879
|
[]
|
|
1835
1880
|
>;
|
|
1881
|
+
/**
|
|
1882
|
+
* Covered Bitcoin locked alongside vault capital for frames using independent reward tiers.
|
|
1883
|
+
**/
|
|
1884
|
+
currentFrameVaultBitcoin: AugmentedQuery<
|
|
1885
|
+
ApiType,
|
|
1886
|
+
() => Observable<Option<PalletTreasuryFrameVaultBitcoin>>,
|
|
1887
|
+
[]
|
|
1888
|
+
>;
|
|
1836
1889
|
/**
|
|
1837
1890
|
* The network bond total and vault capital locked for the current frame's payout.
|
|
1838
1891
|
**/
|
|
@@ -1895,12 +1948,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1895
1948
|
};
|
|
1896
1949
|
treasuryPositions: {
|
|
1897
1950
|
/**
|
|
1898
|
-
*
|
|
1899
|
-
* Treasury
|
|
1951
|
+
* Account contribution totals and Vault Bitcoin coverage, maintained as sources change.
|
|
1952
|
+
* Treasury freezes these network quantities at each frame boundary.
|
|
1900
1953
|
**/
|
|
1901
1954
|
networkTotals: AugmentedQuery<
|
|
1902
1955
|
ApiType,
|
|
1903
|
-
() => Observable<
|
|
1956
|
+
() => Observable<ArgonPrimitivesTreasuryNetworkPositionQuantities>,
|
|
1904
1957
|
[]
|
|
1905
1958
|
>;
|
|
1906
1959
|
/**
|
|
@@ -49,6 +49,7 @@ import type {
|
|
|
49
49
|
ArgonRuntimeProxyType,
|
|
50
50
|
ArgonRuntimeSessionKeys,
|
|
51
51
|
PalletBalancesAdjustmentDirection,
|
|
52
|
+
PalletBitcoinLocksFeeCoupon,
|
|
52
53
|
PalletBitcoinLocksLockOptions,
|
|
53
54
|
PalletBootstrapEndpointPubkey,
|
|
54
55
|
PalletBootstrapRecoveryProof,
|
|
@@ -300,8 +301,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
300
301
|
lockId: Compact<u64> | AnyNumber | Uint8Array,
|
|
301
302
|
satoshis: Compact<u64> | AnyNumber | Uint8Array,
|
|
302
303
|
microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
|
|
304
|
+
feeCoupon:
|
|
305
|
+
| Option<PalletBitcoinLocksFeeCoupon>
|
|
306
|
+
| null
|
|
307
|
+
| Uint8Array
|
|
308
|
+
| PalletBitcoinLocksFeeCoupon
|
|
309
|
+
| {
|
|
310
|
+
feeDiscount?: any;
|
|
311
|
+
securitizationSpaceToUnreserve?: any;
|
|
312
|
+
expiresAtFrame?: any;
|
|
313
|
+
nonce?: any;
|
|
314
|
+
signature?: any;
|
|
315
|
+
}
|
|
316
|
+
| string,
|
|
303
317
|
) => SubmittableExtrinsic<ApiType>,
|
|
304
|
-
[
|
|
318
|
+
[
|
|
319
|
+
Compact<u64>,
|
|
320
|
+
Compact<u64>,
|
|
321
|
+
Compact<u64>,
|
|
322
|
+
Compact<u64>,
|
|
323
|
+
Compact<u128>,
|
|
324
|
+
Option<PalletBitcoinLocksFeeCoupon>,
|
|
325
|
+
]
|
|
305
326
|
>;
|
|
306
327
|
/**
|
|
307
328
|
* Ratchet an active Fission to a replacement target-normalized BTC value.
|
|
@@ -310,8 +331,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
310
331
|
(
|
|
311
332
|
fissionId: Compact<u64> | AnyNumber | Uint8Array,
|
|
312
333
|
microgonsAtTargetPerBtc: Compact<u128> | AnyNumber | Uint8Array,
|
|
334
|
+
feeCoupon:
|
|
335
|
+
| Option<PalletBitcoinLocksFeeCoupon>
|
|
336
|
+
| null
|
|
337
|
+
| Uint8Array
|
|
338
|
+
| PalletBitcoinLocksFeeCoupon
|
|
339
|
+
| {
|
|
340
|
+
feeDiscount?: any;
|
|
341
|
+
securitizationSpaceToUnreserve?: any;
|
|
342
|
+
expiresAtFrame?: any;
|
|
343
|
+
nonce?: any;
|
|
344
|
+
signature?: any;
|
|
345
|
+
}
|
|
346
|
+
| string,
|
|
313
347
|
) => SubmittableExtrinsic<ApiType>,
|
|
314
|
-
[Compact<u64>, Compact<u128>]
|
|
348
|
+
[Compact<u64>, Compact<u128>, Option<PalletBitcoinLocksFeeCoupon>]
|
|
315
349
|
>;
|
|
316
350
|
};
|
|
317
351
|
bitcoinLocks: {
|
|
@@ -410,10 +444,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
410
444
|
) => SubmittableExtrinsic<ApiType>,
|
|
411
445
|
[u64, Bytes, u64, u64]
|
|
412
446
|
>;
|
|
447
|
+
setFlexible: AugmentedSubmittable<
|
|
448
|
+
(
|
|
449
|
+
lockId: u64 | AnyNumber | Uint8Array,
|
|
450
|
+
isFlexible: bool | boolean | Uint8Array,
|
|
451
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
452
|
+
[u64, bool]
|
|
453
|
+
>;
|
|
413
454
|
/**
|
|
414
|
-
* Replace
|
|
455
|
+
* Replace the Lock's guarantee, leaving active Fission guarantees unchanged.
|
|
415
456
|
**/
|
|
416
|
-
|
|
457
|
+
setGuarantee: AugmentedSubmittable<
|
|
417
458
|
(
|
|
418
459
|
lockId: u64 | AnyNumber | Uint8Array,
|
|
419
460
|
satoshis: Compact<u64> | AnyNumber | Uint8Array,
|
|
@@ -427,13 +468,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
427
468
|
) => SubmittableExtrinsic<ApiType>,
|
|
428
469
|
[u64, Compact<u64>, Option<PalletBitcoinLocksLockOptions>]
|
|
429
470
|
>;
|
|
430
|
-
setFlexible: AugmentedSubmittable<
|
|
431
|
-
(
|
|
432
|
-
lockId: u64 | AnyNumber | Uint8Array,
|
|
433
|
-
isFlexible: bool | boolean | Uint8Array,
|
|
434
|
-
) => SubmittableExtrinsic<ApiType>,
|
|
435
|
-
[u64, bool]
|
|
436
|
-
>;
|
|
437
471
|
};
|
|
438
472
|
bitcoinUtxos: {
|
|
439
473
|
/**
|
|
@@ -832,28 +866,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
832
866
|
};
|
|
833
867
|
miningSlot: {
|
|
834
868
|
/**
|
|
835
|
-
* Submit a
|
|
836
|
-
*
|
|
837
|
-
*
|
|
838
|
-
* Each slot has `MaxCohortSize` spots available.
|
|
839
|
-
*
|
|
840
|
-
* To be eligible for a slot, you must have the required ownership tokens (argonots) in
|
|
841
|
-
* this account. The required amount is calculated as a percentage of the total ownership
|
|
842
|
-
* tokens in the network. This percentage is adjusted before the beginning of each slot.
|
|
843
|
-
*
|
|
844
|
-
* If your bid is no longer winning, a `SlotBidderDropped` event will be emitted. By
|
|
845
|
-
* monitoring for this event, you will be able to ensure your bid is accepted.
|
|
846
|
-
*
|
|
847
|
-
* NOTE: bidding for each slot will be closed at a random block within
|
|
848
|
-
* `mining_config.ticks_before_bid_end_for_vrf_close` blocks of the slot end time.
|
|
849
|
-
*
|
|
850
|
-
* The slot duration can be calculated as `BlocksBetweenSlots * MaxMiners / MaxCohortSize`.
|
|
851
|
-
*
|
|
852
|
-
* Parameters:
|
|
853
|
-
* - `bid`: The amount of argons to bid
|
|
854
|
-
* - `keys`: The session "hot" keys for the slot (BlockSealAuthorityId and GrandpaId).
|
|
855
|
-
* - `mining_account_id`: This account_id allows you to operate as this miner account id,
|
|
856
|
-
* but use funding (argonots and bid) from the submitting account
|
|
869
|
+
* Submit a funded public bid, optionally committing to a hidden maximum.
|
|
870
|
+
* Every bid competes at its public amount even if no maximum is revealed.
|
|
871
|
+
* An omitted target frame selects the current auction at dispatch time.
|
|
857
872
|
**/
|
|
858
873
|
bid: AugmentedSubmittable<
|
|
859
874
|
(
|
|
@@ -864,8 +879,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
864
879
|
| string
|
|
865
880
|
| Uint8Array,
|
|
866
881
|
miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
|
|
882
|
+
targetFrameId: Option<u64> | null | Uint8Array | u64 | AnyNumber,
|
|
883
|
+
maxHash: Option<U8aFixed> | null | Uint8Array | U8aFixed | string,
|
|
884
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
885
|
+
[u128, ArgonRuntimeSessionKeys, Option<AccountId32>, Option<u64>, Option<U8aFixed>]
|
|
886
|
+
>;
|
|
887
|
+
/**
|
|
888
|
+
* Disclose a committed maximum during the five blocks following submission.
|
|
889
|
+
* The target frame must match the original bid and the current auction.
|
|
890
|
+
**/
|
|
891
|
+
bidMax: AugmentedSubmittable<
|
|
892
|
+
(
|
|
893
|
+
max: u128 | AnyNumber | Uint8Array,
|
|
894
|
+
salt: U8aFixed | string | Uint8Array,
|
|
895
|
+
miningAccountId: Option<AccountId32> | null | Uint8Array | AccountId32 | string,
|
|
896
|
+
targetFrameId: u64 | AnyNumber | Uint8Array,
|
|
867
897
|
) => SubmittableExtrinsic<ApiType>,
|
|
868
|
-
[u128,
|
|
898
|
+
[u128, U8aFixed, Option<AccountId32>, u64]
|
|
869
899
|
>;
|
|
870
900
|
/**
|
|
871
901
|
* Admin function to update the mining slot delay.
|