@argonprotocol/mainchain 1.3.5 → 1.3.6
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 +304 -112
- package/browser/index.js +250 -128
- package/browser/index.js.map +1 -1
- package/lib/{chunk-GZ2TLGCG.js → chunk-FGSUNAT4.js} +251 -129
- package/lib/chunk-FGSUNAT4.js.map +1 -0
- package/lib/{chunk-2J7IEVVC.js → chunk-KMBXJV55.js} +2 -2
- package/lib/{chunk-BP7Y2NWQ.cjs → chunk-KYRBSY6G.cjs} +51 -51
- package/lib/{chunk-BP7Y2NWQ.cjs.map → chunk-KYRBSY6G.cjs.map} +1 -1
- package/lib/{chunk-P5WWWRSU.cjs → chunk-U6J3AWYW.cjs} +260 -138
- package/lib/chunk-U6J3AWYW.cjs.map +1 -0
- package/lib/cli.cjs +6 -6
- package/lib/cli.js +2 -2
- package/lib/clis/index.cjs +3 -3
- package/lib/clis/index.js +2 -2
- package/lib/index.cjs +2 -2
- package/lib/index.d.cts +304 -112
- package/lib/index.d.ts +304 -112
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/lib/chunk-GZ2TLGCG.js.map +0 -1
- package/lib/chunk-P5WWWRSU.cjs.map +0 -1
- /package/lib/{chunk-2J7IEVVC.js.map → chunk-KMBXJV55.js.map} +0 -0
package/lib/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { ITuple, AnyNumber, IMethod, Codec } from '@polkadot/types-codec/types';
|
|
|
6
6
|
export { Codec, ITuple } from '@polkadot/types-codec/types';
|
|
7
7
|
import { Percent, AccountId32, H256, MultiAddress, Call, Hash, SignedBlock, BlockNumber, Header, StorageData, AccountId, Justification, H160, H64, KeyValue, Index, Block, ExtrinsicInclusionMode, KeyTypeId, Balance, Weight, AccountId20, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, BalanceOf, BlockNumberFor, BlockNumberOf, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H2048, H32, H512, HeaderPartial, I32F32, IndicesLookupSource, Justifications, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletsOrigin, PalletVersion, Pays, Perbill, Permill, Perquintill, PerU16, Phantom, PhantomData, PreRuntime, Releases, RuntimeCall, RuntimeDbWeight, RuntimeEvent, Seal, SealV0, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
|
8
8
|
export { AccountId, AccountId32, Block, Call, H160, H256, Header, MultiAddress, Permill } from '@polkadot/types/interfaces/runtime';
|
|
9
|
-
import { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpWeightsRuntimeDbWeight, SpVersionRuntimeVersion, FrameSupportTokensMiscBalanceStatus, SpRuntimeDispatchError, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinBitcoinRejectedReason, ArgonPrimitivesBlockSealBlockPayout, PalletDomainsDomainRegistration, ArgonPrimitivesDomainZoneRecord, ArgonRuntimeOriginCaller, SpConsensusGrandpaAppPublic, PalletHyperbridgeVersionedHostParams, PalletIsmpErrorsHandlingError, IsmpEventsRequestResponseHandled, IsmpEventsTimeoutHandled, IsmpHostStateMachine, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, ArgonPrimitivesBlockSealMiningRegistration, PalletMintMintType, PalletMultisigTimepoint, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesNotaryNotaryMeta, ArgonNotaryAuditErrorVerifyError, PalletProxyDepositKind, ArgonRuntimeProxyType, FrameSystemDispatchEventInfo, PalletBalancesAccountData, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, PalletBalancesBalanceLock, PalletBalancesReserveData,
|
|
9
|
+
import { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpWeightsRuntimeDbWeight, SpVersionRuntimeVersion, FrameSupportTokensMiscBalanceStatus, SpRuntimeDispatchError, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinBitcoinRejectedReason, ArgonPrimitivesBlockSealBlockPayout, PalletDomainsDomainRegistration, ArgonPrimitivesDomainZoneRecord, ArgonRuntimeOriginCaller, SpConsensusGrandpaAppPublic, PalletHyperbridgeVersionedHostParams, PalletIsmpErrorsHandlingError, IsmpEventsRequestResponseHandled, IsmpEventsTimeoutHandled, IsmpHostStateMachine, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, ArgonPrimitivesBlockSealMiningRegistration, PalletMintMintType, PalletMultisigTimepoint, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesNotaryNotaryMeta, ArgonNotaryAuditErrorVerifyError, PalletProxyDepositKind, ArgonRuntimeProxyType, FrameSystemDispatchEventInfo, PalletBalancesAccountData, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBitcoinLocksLockReleaseRequest, PalletBitcoinLocksLockedBitcoin, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesForkPower, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, PalletChainTransferQueuedTransferOut, ArgonPrimitivesDigestsDigestset, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, IsmpConsensusStateCommitment, PalletLiquidityPoolsLiquidityPoolCapital, PalletLiquidityPoolsPrebondedArgons, PalletLiquidityPoolsLiquidityPool, ArgonPrimitivesBlockSealMiningBidStats, ArgonPrimitivesBlockSealMiningSlotConfig, PalletMintMintAction, PalletMultisigMultisig, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSupportDispatchPerDispatchClassWeight, SpRuntimeDigest, FrameSystemEventRecord, FrameSystemPhase, SpWeightsWeightV2Weight, FrameSystemLastRuntimeUpgradeInfo, ArgonPrimitivesTickTicker, PalletTransactionPaymentReleases, PalletVaultsVaultFrameRevenue, ArgonPrimitivesVault, ArgonPrimitivesBitcoinBitcoinXPub, PalletBalancesAdjustmentDirection, ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesInherentsBitcoinUtxoSync, SpConsensusGrandpaEquivocationProof, SpCoreVoid, IsmpMessagingCreateConsensusState, PalletIsmpUtilsFundMessageParams, IsmpMessagingMessage, PalletIsmpUtilsUpdateConsensusState, IsmpGrandpaAddStateMachine, ArgonRuntimeSessionKeys, ArgonPrimitivesNotebookSignedNotebookHeader, PalletTokenGatewayAssetRegistration, PalletTokenGatewayTeleportParams, PalletTokenGatewayPrecisionUpdate, TokenGatewayPrimitivesGatewayAssetUpdate, PalletVaultsVaultConfig, ArgonPrimitivesVaultVaultTerms, ArgonPrimitivesBitcoinOpaqueBitcoinXpub } from '@polkadot/types/lookup';
|
|
10
10
|
export * from '@polkadot/types/lookup';
|
|
11
11
|
import { Observable, IExtrinsic } from '@polkadot/types/types';
|
|
12
12
|
import { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
@@ -134,7 +134,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
134
134
|
};
|
|
135
135
|
bitcoinLocks: {
|
|
136
136
|
/**
|
|
137
|
-
* Argon
|
|
137
|
+
* Argon tick per day
|
|
138
138
|
**/
|
|
139
139
|
argonTicksPerDay: u64 & AugmentedConst<ApiType>;
|
|
140
140
|
/**
|
|
@@ -147,9 +147,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
147
147
|
**/
|
|
148
148
|
lockReclamationBlocks: u64 & AugmentedConst<ApiType>;
|
|
149
149
|
/**
|
|
150
|
-
* Number of
|
|
150
|
+
* Number of frames a vault has to counter-sign a bitcoin release
|
|
151
151
|
**/
|
|
152
|
-
|
|
152
|
+
lockReleaseCosignDeadlineFrames: u64 & AugmentedConst<ApiType>;
|
|
153
153
|
/**
|
|
154
154
|
* Pallet storage requires bounds, so we have to set a maximum number that can expire in a
|
|
155
155
|
* single block
|
|
@@ -159,6 +159,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
159
159
|
* Maximum releasing utxos at a time
|
|
160
160
|
**/
|
|
161
161
|
maxConcurrentlyReleasingLocks: u32 & AugmentedConst<ApiType>;
|
|
162
|
+
/**
|
|
163
|
+
* Number of ticks per bitcoin block
|
|
164
|
+
**/
|
|
165
|
+
ticksPerBitcoinBlock: u64 & AugmentedConst<ApiType>;
|
|
162
166
|
};
|
|
163
167
|
bitcoinUtxos: {
|
|
164
168
|
/**
|
|
@@ -542,6 +546,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
542
546
|
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
543
547
|
};
|
|
544
548
|
vaults: {
|
|
549
|
+
/**
|
|
550
|
+
* Max concurrent cosigns pending per vault
|
|
551
|
+
**/
|
|
552
|
+
maxPendingCosignsPerVault: u32 & AugmentedConst<ApiType>;
|
|
545
553
|
/**
|
|
546
554
|
* The max pending vault term changes per block
|
|
547
555
|
**/
|
|
@@ -550,6 +558,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
550
558
|
* The max number of vaults that can be created
|
|
551
559
|
**/
|
|
552
560
|
maxVaults: u32 & AugmentedConst<ApiType>;
|
|
561
|
+
/**
|
|
562
|
+
* The number of frames within which revenue must be collected
|
|
563
|
+
**/
|
|
564
|
+
revenueCollectionExpirationFrames: u64 & AugmentedConst<ApiType>;
|
|
553
565
|
};
|
|
554
566
|
}
|
|
555
567
|
}
|
|
@@ -1007,8 +1019,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1007
1019
|
**/
|
|
1008
1020
|
InternalError: AugmentedError<ApiType>;
|
|
1009
1021
|
/**
|
|
1010
|
-
* The
|
|
1011
|
-
* amount)
|
|
1022
|
+
* The prebond amount cannot be reduced and this takes it below the previous allocation
|
|
1012
1023
|
**/
|
|
1013
1024
|
MaxAmountBelowMinimum: AugmentedError<ApiType>;
|
|
1014
1025
|
/**
|
|
@@ -1494,6 +1505,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1494
1505
|
* No Vault public keys are available
|
|
1495
1506
|
**/
|
|
1496
1507
|
NoVaultBitcoinPubkeysAvailable: AugmentedError<ApiType>;
|
|
1508
|
+
/**
|
|
1509
|
+
* A vault must clear out all pending cosigns before it can collect
|
|
1510
|
+
**/
|
|
1511
|
+
PendingCosignsBeforeCollect: AugmentedError<ApiType>;
|
|
1497
1512
|
/**
|
|
1498
1513
|
* The vault bitcoin xpubkey has already been used
|
|
1499
1514
|
**/
|
|
@@ -1798,6 +1813,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1798
1813
|
utxoId: u64,
|
|
1799
1814
|
vaultId: u32,
|
|
1800
1815
|
originalLockPrice: u128,
|
|
1816
|
+
securityFee: u128,
|
|
1801
1817
|
newLockPrice: u128,
|
|
1802
1818
|
amountBurned: u128,
|
|
1803
1819
|
accountId: AccountId32
|
|
@@ -1805,6 +1821,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1805
1821
|
utxoId: u64;
|
|
1806
1822
|
vaultId: u32;
|
|
1807
1823
|
originalLockPrice: u128;
|
|
1824
|
+
securityFee: u128;
|
|
1808
1825
|
newLockPrice: u128;
|
|
1809
1826
|
amountBurned: u128;
|
|
1810
1827
|
accountId: AccountId32;
|
|
@@ -2369,11 +2386,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2369
2386
|
VaultOperatorPrebond: AugmentedEvent<ApiType, [
|
|
2370
2387
|
vaultId: u32,
|
|
2371
2388
|
accountId: AccountId32,
|
|
2372
|
-
|
|
2389
|
+
amountPerFrame: u128
|
|
2373
2390
|
], {
|
|
2374
2391
|
vaultId: u32;
|
|
2375
2392
|
accountId: AccountId32;
|
|
2376
|
-
|
|
2393
|
+
amountPerFrame: u128;
|
|
2377
2394
|
}>;
|
|
2378
2395
|
};
|
|
2379
2396
|
miningSlot: {
|
|
@@ -3219,6 +3236,17 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3219
3236
|
amount: u128;
|
|
3220
3237
|
releaseHeight: u64;
|
|
3221
3238
|
}>;
|
|
3239
|
+
LiquidityPoolRecordingError: AugmentedEvent<ApiType, [
|
|
3240
|
+
vaultId: u32,
|
|
3241
|
+
frameId: u64,
|
|
3242
|
+
vaultEarnings: u128,
|
|
3243
|
+
error: SpRuntimeDispatchError
|
|
3244
|
+
], {
|
|
3245
|
+
vaultId: u32;
|
|
3246
|
+
frameId: u64;
|
|
3247
|
+
vaultEarnings: u128;
|
|
3248
|
+
error: SpRuntimeDispatchError;
|
|
3249
|
+
}>;
|
|
3222
3250
|
LostBitcoinCompensated: AugmentedEvent<ApiType, [
|
|
3223
3251
|
vaultId: u32,
|
|
3224
3252
|
beneficiary: AccountId32,
|
|
@@ -3242,6 +3270,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3242
3270
|
securitizationRemaining: u128;
|
|
3243
3271
|
securitizationReleased: u128;
|
|
3244
3272
|
}>;
|
|
3273
|
+
/**
|
|
3274
|
+
* The vault collected revenue and cosigned all pending bitcoin locks
|
|
3275
|
+
**/
|
|
3276
|
+
VaultCollected: AugmentedEvent<ApiType, [
|
|
3277
|
+
vaultId: u32,
|
|
3278
|
+
revenue: u128
|
|
3279
|
+
], {
|
|
3280
|
+
vaultId: u32;
|
|
3281
|
+
revenue: u128;
|
|
3282
|
+
}>;
|
|
3245
3283
|
VaultCreated: AugmentedEvent<ApiType, [
|
|
3246
3284
|
vaultId: u32,
|
|
3247
3285
|
securitization: u128,
|
|
@@ -3264,6 +3302,18 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3264
3302
|
securitization: u128;
|
|
3265
3303
|
securitizationRatio: u128;
|
|
3266
3304
|
}>;
|
|
3305
|
+
/**
|
|
3306
|
+
* Vault revenue was not collected within the required window, so has been burned
|
|
3307
|
+
**/
|
|
3308
|
+
VaultRevenueUncollected: AugmentedEvent<ApiType, [
|
|
3309
|
+
vaultId: u32,
|
|
3310
|
+
frameId: u64,
|
|
3311
|
+
amount: u128
|
|
3312
|
+
], {
|
|
3313
|
+
vaultId: u32;
|
|
3314
|
+
frameId: u64;
|
|
3315
|
+
amount: u128;
|
|
3316
|
+
}>;
|
|
3267
3317
|
VaultTermsChanged: AugmentedEvent<ApiType, [vaultId: u32], {
|
|
3268
3318
|
vaultId: u32;
|
|
3269
3319
|
}>;
|
|
@@ -3355,6 +3405,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
3355
3405
|
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
3356
3406
|
};
|
|
3357
3407
|
bitcoinLocks: {
|
|
3408
|
+
/**
|
|
3409
|
+
* Utxos that have been requested to be cosigned for releasing
|
|
3410
|
+
**/
|
|
3411
|
+
lockCosignDueByFrame: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>, [
|
|
3412
|
+
u64
|
|
3413
|
+
]>;
|
|
3358
3414
|
/**
|
|
3359
3415
|
* Expiration of bitcoin locks by bitcoin height. Funds are burned since the user did not
|
|
3360
3416
|
* unlock it
|
|
@@ -3368,17 +3424,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
3368
3424
|
lockReleaseCosignHeightById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
|
|
3369
3425
|
u64
|
|
3370
3426
|
]>;
|
|
3427
|
+
lockReleaseRequestsByUtxoId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockReleaseRequest>>, [
|
|
3428
|
+
u64
|
|
3429
|
+
]>;
|
|
3371
3430
|
/**
|
|
3372
3431
|
* Stores bitcoin utxos that have requested to be released
|
|
3373
3432
|
**/
|
|
3374
3433
|
locksByUtxoId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBitcoinLocksLockedBitcoin>>, [
|
|
3375
3434
|
u64
|
|
3376
3435
|
]>;
|
|
3377
|
-
/**
|
|
3378
|
-
* Utxos that have been requested to be cosigned for releasing
|
|
3379
|
-
**/
|
|
3380
|
-
locksPendingReleaseByUtxoId: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, PalletBitcoinLocksLockReleaseRequest>>, [
|
|
3381
|
-
]>;
|
|
3382
3436
|
/**
|
|
3383
3437
|
* The minimum number of satoshis that can be locked
|
|
3384
3438
|
**/
|
|
@@ -3446,6 +3500,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
3446
3500
|
* target
|
|
3447
3501
|
**/
|
|
3448
3502
|
argonsPerBlock: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
3503
|
+
blockFees: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
3449
3504
|
/**
|
|
3450
3505
|
* The cohort block rewards by mining cohort (ie, with the same starting frame id)
|
|
3451
3506
|
**/
|
|
@@ -4238,7 +4293,19 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
4238
4293
|
]>;
|
|
4239
4294
|
};
|
|
4240
4295
|
vaults: {
|
|
4296
|
+
/**
|
|
4297
|
+
* The last collect frame of each vault
|
|
4298
|
+
**/
|
|
4299
|
+
lastCollectFrameByVaultId: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [
|
|
4300
|
+
u32
|
|
4301
|
+
]>;
|
|
4241
4302
|
nextVaultId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
4303
|
+
/**
|
|
4304
|
+
* Bitcoin Locks pending cosign by vault id
|
|
4305
|
+
**/
|
|
4306
|
+
pendingCosignByVaultId: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>, [
|
|
4307
|
+
u32
|
|
4308
|
+
]>;
|
|
4242
4309
|
/**
|
|
4243
4310
|
* Pending terms that will be committed at the given block number (must be a minimum of 1 slot
|
|
4244
4311
|
* change away)
|
|
@@ -4247,11 +4314,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
4247
4314
|
u64
|
|
4248
4315
|
]>;
|
|
4249
4316
|
/**
|
|
4250
|
-
* Tracks
|
|
4251
|
-
* "mining day" in Argon).
|
|
4252
|
-
*
|
|
4317
|
+
* Tracks revenue from Bitcoin Locks and Liquidity Pools for the trailing frames for each vault
|
|
4318
|
+
* (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
|
|
4319
|
+
* collect expiration window (`RevenueCollectionExpirationFrames`).
|
|
4253
4320
|
**/
|
|
4254
|
-
|
|
4321
|
+
revenuePerFrameByVault: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsVaultFrameRevenue>>, [
|
|
4255
4322
|
u32
|
|
4256
4323
|
]>;
|
|
4257
4324
|
/**
|
|
@@ -4771,16 +4838,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4771
4838
|
]>;
|
|
4772
4839
|
/**
|
|
4773
4840
|
* Set the prebonded argons for a vault. This is used by the vault operator to
|
|
4774
|
-
* pre-register funding for each frame. The allocation
|
|
4775
|
-
* `max_amount_per_frame` parameter.
|
|
4776
|
-
* frames. This amount cannot be less than the total amount / 10 or it will never be
|
|
4777
|
-
* depleted.
|
|
4841
|
+
* pre-register funding for each frame. The total allocation will be capped per frame using
|
|
4842
|
+
* the `max_amount_per_frame` parameter.
|
|
4778
4843
|
*
|
|
4779
|
-
* NOTE: a second
|
|
4844
|
+
* NOTE: calling this a second time will ensure your max_amount_per_frame is updated.
|
|
4845
|
+
* However, it will not reduce your allocation
|
|
4780
4846
|
**/
|
|
4781
|
-
vaultOperatorPrebond: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array,
|
|
4847
|
+
vaultOperatorPrebond: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, maxAmountPerFrame: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4782
4848
|
u32,
|
|
4783
|
-
u128,
|
|
4784
4849
|
u128
|
|
4785
4850
|
]>;
|
|
4786
4851
|
};
|
|
@@ -5948,6 +6013,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5948
6013
|
close: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5949
6014
|
u32
|
|
5950
6015
|
]>;
|
|
6016
|
+
collect: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
6017
|
+
u32
|
|
6018
|
+
]>;
|
|
5951
6019
|
create: AugmentedSubmittable<(vaultConfig: PalletVaultsVaultConfig | {
|
|
5952
6020
|
terms?: any;
|
|
5953
6021
|
securitization?: any;
|
|
@@ -8566,6 +8634,17 @@ declare module '@polkadot/types/lookup' {
|
|
|
8566
8634
|
readonly asVaultBitcoinXpubChange: {
|
|
8567
8635
|
readonly vaultId: u32;
|
|
8568
8636
|
} & Struct;
|
|
8637
|
+
readonly isVaultRevenueUncollected: boolean;
|
|
8638
|
+
readonly asVaultRevenueUncollected: {
|
|
8639
|
+
readonly vaultId: u32;
|
|
8640
|
+
readonly frameId: u64;
|
|
8641
|
+
readonly amount: u128;
|
|
8642
|
+
} & Struct;
|
|
8643
|
+
readonly isVaultCollected: boolean;
|
|
8644
|
+
readonly asVaultCollected: {
|
|
8645
|
+
readonly vaultId: u32;
|
|
8646
|
+
readonly revenue: u128;
|
|
8647
|
+
} & Struct;
|
|
8569
8648
|
readonly isFundsLocked: boolean;
|
|
8570
8649
|
readonly asFundsLocked: {
|
|
8571
8650
|
readonly vaultId: u32;
|
|
@@ -8602,7 +8681,14 @@ declare module '@polkadot/types/lookup' {
|
|
|
8602
8681
|
readonly vaultId: u32;
|
|
8603
8682
|
readonly error: SpRuntimeDispatchError;
|
|
8604
8683
|
} & Struct;
|
|
8605
|
-
readonly
|
|
8684
|
+
readonly isLiquidityPoolRecordingError: boolean;
|
|
8685
|
+
readonly asLiquidityPoolRecordingError: {
|
|
8686
|
+
readonly vaultId: u32;
|
|
8687
|
+
readonly frameId: u64;
|
|
8688
|
+
readonly vaultEarnings: u128;
|
|
8689
|
+
readonly error: SpRuntimeDispatchError;
|
|
8690
|
+
} & Struct;
|
|
8691
|
+
readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'LiquidityPoolRecordingError';
|
|
8606
8692
|
}
|
|
8607
8693
|
/** @name PalletBitcoinLocksEvent (57) */
|
|
8608
8694
|
interface PalletBitcoinLocksEvent extends Enum {
|
|
@@ -8619,6 +8705,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
8619
8705
|
readonly utxoId: u64;
|
|
8620
8706
|
readonly vaultId: u32;
|
|
8621
8707
|
readonly originalLockPrice: u128;
|
|
8708
|
+
readonly securityFee: u128;
|
|
8622
8709
|
readonly newLockPrice: u128;
|
|
8623
8710
|
readonly amountBurned: u128;
|
|
8624
8711
|
readonly accountId: AccountId32;
|
|
@@ -9467,7 +9554,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
9467
9554
|
readonly asVaultOperatorPrebond: {
|
|
9468
9555
|
readonly vaultId: u32;
|
|
9469
9556
|
readonly accountId: AccountId32;
|
|
9470
|
-
readonly
|
|
9557
|
+
readonly amountPerFrame: u128;
|
|
9471
9558
|
} & Struct;
|
|
9472
9559
|
readonly type: 'CouldNotDistributeBidPool' | 'CouldNotBurnBidPool' | 'BidPoolDistributed' | 'NextBidPoolCapitalLocked' | 'ErrorRefundingLiquidityPoolCapital' | 'RefundedLiquidityPoolCapital' | 'VaultOperatorPrebond';
|
|
9473
9560
|
}
|
|
@@ -9858,7 +9945,11 @@ declare module '@polkadot/types/lookup' {
|
|
|
9858
9945
|
readonly vaultId: u32;
|
|
9859
9946
|
readonly bitcoinXpub: ArgonPrimitivesBitcoinOpaqueBitcoinXpub;
|
|
9860
9947
|
} & Struct;
|
|
9861
|
-
readonly
|
|
9948
|
+
readonly isCollect: boolean;
|
|
9949
|
+
readonly asCollect: {
|
|
9950
|
+
readonly vaultId: u32;
|
|
9951
|
+
} & Struct;
|
|
9952
|
+
readonly type: 'Create' | 'ModifyFunding' | 'ModifyTerms' | 'Close' | 'ReplaceBitcoinXpub' | 'Collect';
|
|
9862
9953
|
}
|
|
9863
9954
|
/** @name PalletVaultsVaultConfig (203) */
|
|
9864
9955
|
interface PalletVaultsVaultConfig extends Struct {
|
|
@@ -10553,7 +10644,6 @@ declare module '@polkadot/types/lookup' {
|
|
|
10553
10644
|
readonly isVaultOperatorPrebond: boolean;
|
|
10554
10645
|
readonly asVaultOperatorPrebond: {
|
|
10555
10646
|
readonly vaultId: u32;
|
|
10556
|
-
readonly amount: u128;
|
|
10557
10647
|
readonly maxAmountPerFrame: u128;
|
|
10558
10648
|
} & Struct;
|
|
10559
10649
|
readonly type: 'BondArgons' | 'UnbondArgons' | 'VaultOperatorPrebond';
|
|
@@ -10701,16 +10791,23 @@ declare module '@polkadot/types/lookup' {
|
|
|
10701
10791
|
readonly isTest: boolean;
|
|
10702
10792
|
readonly type: 'Main' | 'Test';
|
|
10703
10793
|
}
|
|
10704
|
-
/** @name
|
|
10705
|
-
interface
|
|
10794
|
+
/** @name PalletVaultsVaultFrameRevenue (383) */
|
|
10795
|
+
interface PalletVaultsVaultFrameRevenue extends Struct {
|
|
10706
10796
|
readonly frameId: Compact<u64>;
|
|
10707
|
-
readonly
|
|
10797
|
+
readonly bitcoinLockFeeRevenue: Compact<u128>;
|
|
10708
10798
|
readonly bitcoinLocksCreated: Compact<u32>;
|
|
10709
10799
|
readonly bitcoinLocksMarketValue: Compact<u128>;
|
|
10710
10800
|
readonly bitcoinLocksTotalSatoshis: Compact<u64>;
|
|
10711
10801
|
readonly satoshisReleased: Compact<u64>;
|
|
10802
|
+
readonly securitizationActivated: Compact<u128>;
|
|
10803
|
+
readonly securitization: Compact<u128>;
|
|
10804
|
+
readonly liquidityPoolVaultEarnings: Compact<u128>;
|
|
10805
|
+
readonly liquidityPoolTotalEarnings: Compact<u128>;
|
|
10806
|
+
readonly liquidityPoolVaultCapital: Compact<u128>;
|
|
10807
|
+
readonly liquidityPoolExternalCapital: Compact<u128>;
|
|
10808
|
+
readonly uncollectedRevenue: Compact<u128>;
|
|
10712
10809
|
}
|
|
10713
|
-
/** @name PalletVaultsError (
|
|
10810
|
+
/** @name PalletVaultsError (385) */
|
|
10714
10811
|
interface PalletVaultsError extends Enum {
|
|
10715
10812
|
readonly isNoMoreVaultIds: boolean;
|
|
10716
10813
|
readonly isInsufficientFunds: boolean;
|
|
@@ -10738,13 +10835,15 @@ declare module '@polkadot/types/lookup' {
|
|
|
10738
10835
|
readonly isInternalError: boolean;
|
|
10739
10836
|
readonly isUnableToGenerateVaultBitcoinPubkey: boolean;
|
|
10740
10837
|
readonly isFundingChangeAlreadyScheduled: boolean;
|
|
10741
|
-
readonly
|
|
10838
|
+
readonly isPendingCosignsBeforeCollect: boolean;
|
|
10839
|
+
readonly type: 'NoMoreVaultIds' | 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'VaultReductionBelowSecuritization' | 'InvalidSecuritization' | 'ReusedVaultBitcoinXpub' | 'InvalidBitcoinScript' | 'InvalidXpubkey' | 'WrongXpubNetwork' | 'UnsafeXpubkey' | 'UnableToDeriveVaultXpubChild' | 'BitcoinConversionFailed' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'VaultNotYetActive' | 'NoVaultBitcoinPubkeysAvailable' | 'TermsModificationOverflow' | 'TermsChangeAlreadyScheduled' | 'InternalError' | 'UnableToGenerateVaultBitcoinPubkey' | 'FundingChangeAlreadyScheduled' | 'PendingCosignsBeforeCollect';
|
|
10742
10840
|
}
|
|
10743
|
-
/** @name PalletBitcoinLocksLockedBitcoin (
|
|
10841
|
+
/** @name PalletBitcoinLocksLockedBitcoin (386) */
|
|
10744
10842
|
interface PalletBitcoinLocksLockedBitcoin extends Struct {
|
|
10745
10843
|
readonly vaultId: Compact<u32>;
|
|
10746
10844
|
readonly lockPrice: u128;
|
|
10747
10845
|
readonly ownerAccount: AccountId32;
|
|
10846
|
+
readonly securityFees: u128;
|
|
10748
10847
|
readonly satoshis: Compact<u64>;
|
|
10749
10848
|
readonly vaultPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey;
|
|
10750
10849
|
readonly vaultClaimPubkey: ArgonPrimitivesBitcoinCompressedBitcoinPubkey;
|
|
@@ -10758,16 +10857,16 @@ declare module '@polkadot/types/lookup' {
|
|
|
10758
10857
|
readonly isRejectedNeedsRelease: bool;
|
|
10759
10858
|
readonly fundHoldExtensions: BTreeMap<u64, u128>;
|
|
10760
10859
|
}
|
|
10761
|
-
/** @name PalletBitcoinLocksLockReleaseRequest (
|
|
10860
|
+
/** @name PalletBitcoinLocksLockReleaseRequest (388) */
|
|
10762
10861
|
interface PalletBitcoinLocksLockReleaseRequest extends Struct {
|
|
10763
10862
|
readonly utxoId: Compact<u64>;
|
|
10764
10863
|
readonly vaultId: Compact<u32>;
|
|
10765
10864
|
readonly bitcoinNetworkFee: Compact<u64>;
|
|
10766
|
-
readonly
|
|
10865
|
+
readonly cosignDueFrame: Compact<u64>;
|
|
10767
10866
|
readonly toScriptPubkey: Bytes;
|
|
10768
10867
|
readonly redemptionPrice: Compact<u128>;
|
|
10769
10868
|
}
|
|
10770
|
-
/** @name PalletBitcoinLocksError (
|
|
10869
|
+
/** @name PalletBitcoinLocksError (391) */
|
|
10771
10870
|
interface PalletBitcoinLocksError extends Enum {
|
|
10772
10871
|
readonly isInsufficientFunds: boolean;
|
|
10773
10872
|
readonly isInsufficientVaultFunds: boolean;
|
|
@@ -10802,7 +10901,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10802
10901
|
readonly isOverflowError: boolean;
|
|
10803
10902
|
readonly type: 'InsufficientFunds' | 'InsufficientVaultFunds' | 'AccountWouldGoBelowMinimumBalance' | 'VaultClosed' | 'InvalidVaultAmount' | 'RedemptionNotLocked' | 'BitcoinReleaseInitiationDeadlinePassed' | 'BitcoinFeeTooHigh' | 'BitcoinUtxoNotFound' | 'BitcoinUnableToBeDecodedForRelease' | 'BitcoinSignatureUnableToBeDecoded' | 'BitcoinPubkeyUnableToBeDecoded' | 'BitcoinInvalidCosignature' | 'InsufficientSatoshisLocked' | 'NoBitcoinPricesAvailable' | 'InvalidBitcoinScript' | 'NoPermissions' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'GenericVaultError' | 'LockNotFound' | 'NoVaultBitcoinPubkeysAvailable' | 'UnableToGenerateVaultBitcoinPubkey' | 'VaultNotYetActive' | 'ExpirationAtBlockOverflow' | 'NoRatchetingAvailable' | 'LockInProcessOfRelease' | 'UnverifiedLock' | 'OverflowError';
|
|
10804
10903
|
}
|
|
10805
|
-
/** @name ArgonPrimitivesVaultVaultError (
|
|
10904
|
+
/** @name ArgonPrimitivesVaultVaultError (392) */
|
|
10806
10905
|
interface ArgonPrimitivesVaultVaultError extends Enum {
|
|
10807
10906
|
readonly isVaultClosed: boolean;
|
|
10808
10907
|
readonly isAccountWouldBeBelowMinimum: boolean;
|
|
@@ -10818,7 +10917,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10818
10917
|
readonly isVaultNotYetActive: boolean;
|
|
10819
10918
|
readonly type: 'VaultClosed' | 'AccountWouldBeBelowMinimum' | 'InsufficientFunds' | 'InsufficientVaultFunds' | 'HoldUnexpectedlyModified' | 'UnrecoverableHold' | 'VaultNotFound' | 'NoVaultBitcoinPubkeysAvailable' | 'UnableToGenerateVaultBitcoinPubkey' | 'InvalidBitcoinScript' | 'InternalError' | 'VaultNotYetActive';
|
|
10820
10919
|
}
|
|
10821
|
-
/** @name PalletNotariesError (
|
|
10920
|
+
/** @name PalletNotariesError (404) */
|
|
10822
10921
|
interface PalletNotariesError extends Enum {
|
|
10823
10922
|
readonly isProposalNotFound: boolean;
|
|
10824
10923
|
readonly isMaxNotariesExceeded: boolean;
|
|
@@ -10831,7 +10930,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10831
10930
|
readonly isInvalidNotary: boolean;
|
|
10832
10931
|
readonly type: 'ProposalNotFound' | 'MaxNotariesExceeded' | 'MaxProposalsPerBlockExceeded' | 'NotAnActiveNotary' | 'InvalidNotaryOperator' | 'NoMoreNotaryIds' | 'EffectiveTickTooSoon' | 'TooManyKeys' | 'InvalidNotary';
|
|
10833
10932
|
}
|
|
10834
|
-
/** @name ArgonPrimitivesNotaryNotaryNotebookKeyDetails (
|
|
10933
|
+
/** @name ArgonPrimitivesNotaryNotaryNotebookKeyDetails (408) */
|
|
10835
10934
|
interface ArgonPrimitivesNotaryNotaryNotebookKeyDetails extends Struct {
|
|
10836
10935
|
readonly notebookNumber: Compact<u32>;
|
|
10837
10936
|
readonly tick: Compact<u64>;
|
|
@@ -10839,7 +10938,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10839
10938
|
readonly secretHash: H256;
|
|
10840
10939
|
readonly parentSecret: Option<H256>;
|
|
10841
10940
|
}
|
|
10842
|
-
/** @name PalletNotebookError (
|
|
10941
|
+
/** @name PalletNotebookError (411) */
|
|
10843
10942
|
interface PalletNotebookError extends Enum {
|
|
10844
10943
|
readonly isDuplicateNotebookNumber: boolean;
|
|
10845
10944
|
readonly isMissingNotebookNumber: boolean;
|
|
@@ -10858,17 +10957,17 @@ declare module '@polkadot/types/lookup' {
|
|
|
10858
10957
|
readonly isInvalidNotebookSubmissionTick: boolean;
|
|
10859
10958
|
readonly type: 'DuplicateNotebookNumber' | 'MissingNotebookNumber' | 'NotebookTickAlreadyUsed' | 'InvalidNotebookSignature' | 'InvalidSecretProvided' | 'CouldNotDecodeNotebook' | 'DuplicateNotebookDigest' | 'MissingNotebookDigest' | 'InvalidNotebookDigest' | 'MultipleNotebookInherentsProvided' | 'InternalError' | 'NotebookSubmittedForLockedNotary' | 'InvalidReprocessNotebook' | 'InvalidNotaryOperator' | 'InvalidNotebookSubmissionTick';
|
|
10860
10959
|
}
|
|
10861
|
-
/** @name PalletChainTransferQueuedTransferOut (
|
|
10960
|
+
/** @name PalletChainTransferQueuedTransferOut (412) */
|
|
10862
10961
|
interface PalletChainTransferQueuedTransferOut extends Struct {
|
|
10863
10962
|
readonly accountId: AccountId32;
|
|
10864
10963
|
readonly amount: u128;
|
|
10865
10964
|
readonly expirationTick: u64;
|
|
10866
10965
|
readonly notaryId: u32;
|
|
10867
10966
|
}
|
|
10868
|
-
/** @name FrameSupportPalletId (
|
|
10967
|
+
/** @name FrameSupportPalletId (418) */
|
|
10869
10968
|
interface FrameSupportPalletId extends U8aFixed {
|
|
10870
10969
|
}
|
|
10871
|
-
/** @name PalletChainTransferError (
|
|
10970
|
+
/** @name PalletChainTransferError (419) */
|
|
10872
10971
|
interface PalletChainTransferError extends Enum {
|
|
10873
10972
|
readonly isMaxBlockTransfersExceeded: boolean;
|
|
10874
10973
|
readonly isInsufficientFunds: boolean;
|
|
@@ -10878,7 +10977,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10878
10977
|
readonly isInvalidNotaryUsedForTransfer: boolean;
|
|
10879
10978
|
readonly type: 'MaxBlockTransfersExceeded' | 'InsufficientFunds' | 'InsufficientNotarizedFunds' | 'InvalidOrDuplicatedLocalchainTransfer' | 'NotebookIncludesExpiredLocalchainTransfer' | 'InvalidNotaryUsedForTransfer';
|
|
10880
10979
|
}
|
|
10881
|
-
/** @name ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails (
|
|
10980
|
+
/** @name ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails (423) */
|
|
10882
10981
|
interface ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails extends Struct {
|
|
10883
10982
|
readonly notaryId: Compact<u32>;
|
|
10884
10983
|
readonly notebookNumber: Compact<u32>;
|
|
@@ -10886,12 +10985,12 @@ declare module '@polkadot/types/lookup' {
|
|
|
10886
10985
|
readonly blockVotesCount: Compact<u32>;
|
|
10887
10986
|
readonly blockVotingPower: Compact<u128>;
|
|
10888
10987
|
}
|
|
10889
|
-
/** @name PalletBlockSealSpecError (
|
|
10988
|
+
/** @name PalletBlockSealSpecError (428) */
|
|
10890
10989
|
interface PalletBlockSealSpecError extends Enum {
|
|
10891
10990
|
readonly isMaxNotebooksAtTickExceeded: boolean;
|
|
10892
10991
|
readonly type: 'MaxNotebooksAtTickExceeded';
|
|
10893
10992
|
}
|
|
10894
|
-
/** @name PalletDomainsError (
|
|
10993
|
+
/** @name PalletDomainsError (430) */
|
|
10895
10994
|
interface PalletDomainsError extends Enum {
|
|
10896
10995
|
readonly isDomainNotRegistered: boolean;
|
|
10897
10996
|
readonly isNotDomainOwner: boolean;
|
|
@@ -10900,7 +10999,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10900
10999
|
readonly isAccountDecodingError: boolean;
|
|
10901
11000
|
readonly type: 'DomainNotRegistered' | 'NotDomainOwner' | 'FailedToAddToAddressHistory' | 'FailedToAddExpiringDomain' | 'AccountDecodingError';
|
|
10902
11001
|
}
|
|
10903
|
-
/** @name PalletPriceIndexError (
|
|
11002
|
+
/** @name PalletPriceIndexError (431) */
|
|
10904
11003
|
interface PalletPriceIndexError extends Enum {
|
|
10905
11004
|
readonly isNotAuthorizedOperator: boolean;
|
|
10906
11005
|
readonly isMissingValue: boolean;
|
|
@@ -10908,7 +11007,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
10908
11007
|
readonly isMaxPriceChangePerTickExceeded: boolean;
|
|
10909
11008
|
readonly type: 'NotAuthorizedOperator' | 'MissingValue' | 'PricesTooOld' | 'MaxPriceChangePerTickExceeded';
|
|
10910
11009
|
}
|
|
10911
|
-
/** @name PalletGrandpaStoredState (
|
|
11010
|
+
/** @name PalletGrandpaStoredState (432) */
|
|
10912
11011
|
interface PalletGrandpaStoredState extends Enum {
|
|
10913
11012
|
readonly isLive: boolean;
|
|
10914
11013
|
readonly isPendingPause: boolean;
|
|
@@ -10924,14 +11023,14 @@ declare module '@polkadot/types/lookup' {
|
|
|
10924
11023
|
} & Struct;
|
|
10925
11024
|
readonly type: 'Live' | 'PendingPause' | 'Paused' | 'PendingResume';
|
|
10926
11025
|
}
|
|
10927
|
-
/** @name PalletGrandpaStoredPendingChange (
|
|
11026
|
+
/** @name PalletGrandpaStoredPendingChange (433) */
|
|
10928
11027
|
interface PalletGrandpaStoredPendingChange extends Struct {
|
|
10929
11028
|
readonly scheduledAt: u32;
|
|
10930
11029
|
readonly delay: u32;
|
|
10931
11030
|
readonly nextAuthorities: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>;
|
|
10932
11031
|
readonly forced: Option<u32>;
|
|
10933
11032
|
}
|
|
10934
|
-
/** @name PalletGrandpaError (
|
|
11033
|
+
/** @name PalletGrandpaError (436) */
|
|
10935
11034
|
interface PalletGrandpaError extends Enum {
|
|
10936
11035
|
readonly isPauseFailed: boolean;
|
|
10937
11036
|
readonly isResumeFailed: boolean;
|
|
@@ -10942,13 +11041,13 @@ declare module '@polkadot/types/lookup' {
|
|
|
10942
11041
|
readonly isDuplicateOffenceReport: boolean;
|
|
10943
11042
|
readonly type: 'PauseFailed' | 'ResumeFailed' | 'ChangePending' | 'TooSoon' | 'InvalidKeyOwnershipProof' | 'InvalidEquivocationProof' | 'DuplicateOffenceReport';
|
|
10944
11043
|
}
|
|
10945
|
-
/** @name ArgonPrimitivesProvidersBlockSealerInfo (
|
|
11044
|
+
/** @name ArgonPrimitivesProvidersBlockSealerInfo (437) */
|
|
10946
11045
|
interface ArgonPrimitivesProvidersBlockSealerInfo extends Struct {
|
|
10947
11046
|
readonly blockAuthorAccountId: AccountId32;
|
|
10948
11047
|
readonly blockVoteRewardsAccount: Option<AccountId32>;
|
|
10949
11048
|
readonly blockSealAuthority: Option<ArgonPrimitivesBlockSealAppPublic>;
|
|
10950
11049
|
}
|
|
10951
|
-
/** @name PalletBlockSealError (
|
|
11050
|
+
/** @name PalletBlockSealError (440) */
|
|
10952
11051
|
interface PalletBlockSealError extends Enum {
|
|
10953
11052
|
readonly isInvalidVoteSealStrength: boolean;
|
|
10954
11053
|
readonly isInvalidSubmitter: boolean;
|
|
@@ -10972,43 +11071,43 @@ declare module '@polkadot/types/lookup' {
|
|
|
10972
11071
|
readonly isInvalidMinerXorDistance: boolean;
|
|
10973
11072
|
readonly type: 'InvalidVoteSealStrength' | 'InvalidSubmitter' | 'UnableToDecodeVoteAccount' | 'UnregisteredBlockAuthor' | 'InvalidBlockVoteProof' | 'NoGrandparentVoteMinimum' | 'DuplicateBlockSealProvided' | 'InsufficientVotingPower' | 'ParentVotingKeyNotFound' | 'InvalidVoteGrandparentHash' | 'IneligibleNotebookUsed' | 'NoEligibleVotingRoot' | 'CouldNotDecodeVote' | 'MaxNotebooksAtTickExceeded' | 'NoClosestMinerFoundForVote' | 'BlockVoteInvalidSignature' | 'InvalidForkPowerParent' | 'BlockSealDecodeError' | 'InvalidComputeBlockTick' | 'InvalidMinerXorDistance';
|
|
10974
11073
|
}
|
|
10975
|
-
/** @name PalletBlockRewardsError (
|
|
11074
|
+
/** @name PalletBlockRewardsError (444) */
|
|
10976
11075
|
type PalletBlockRewardsError = Null;
|
|
10977
|
-
/** @name PalletMintMintAction (
|
|
11076
|
+
/** @name PalletMintMintAction (450) */
|
|
10978
11077
|
interface PalletMintMintAction extends Struct {
|
|
10979
11078
|
readonly argonBurned: u128;
|
|
10980
11079
|
readonly argonMinted: u128;
|
|
10981
11080
|
readonly bitcoinMinted: u128;
|
|
10982
11081
|
}
|
|
10983
|
-
/** @name PalletMintError (
|
|
11082
|
+
/** @name PalletMintError (451) */
|
|
10984
11083
|
interface PalletMintError extends Enum {
|
|
10985
11084
|
readonly isTooManyPendingMints: boolean;
|
|
10986
11085
|
readonly type: 'TooManyPendingMints';
|
|
10987
11086
|
}
|
|
10988
|
-
/** @name PalletBalancesBalanceLock (
|
|
11087
|
+
/** @name PalletBalancesBalanceLock (453) */
|
|
10989
11088
|
interface PalletBalancesBalanceLock extends Struct {
|
|
10990
11089
|
readonly id: U8aFixed;
|
|
10991
11090
|
readonly amount: u128;
|
|
10992
11091
|
readonly reasons: PalletBalancesReasons;
|
|
10993
11092
|
}
|
|
10994
|
-
/** @name PalletBalancesReasons (
|
|
11093
|
+
/** @name PalletBalancesReasons (454) */
|
|
10995
11094
|
interface PalletBalancesReasons extends Enum {
|
|
10996
11095
|
readonly isFee: boolean;
|
|
10997
11096
|
readonly isMisc: boolean;
|
|
10998
11097
|
readonly isAll: boolean;
|
|
10999
11098
|
readonly type: 'Fee' | 'Misc' | 'All';
|
|
11000
11099
|
}
|
|
11001
|
-
/** @name PalletBalancesReserveData (
|
|
11100
|
+
/** @name PalletBalancesReserveData (457) */
|
|
11002
11101
|
interface PalletBalancesReserveData extends Struct {
|
|
11003
11102
|
readonly id: U8aFixed;
|
|
11004
11103
|
readonly amount: u128;
|
|
11005
11104
|
}
|
|
11006
|
-
/** @name FrameSupportTokensMiscIdAmountRuntimeHoldReason (
|
|
11105
|
+
/** @name FrameSupportTokensMiscIdAmountRuntimeHoldReason (460) */
|
|
11007
11106
|
interface FrameSupportTokensMiscIdAmountRuntimeHoldReason extends Struct {
|
|
11008
11107
|
readonly id: ArgonRuntimeRuntimeHoldReason;
|
|
11009
11108
|
readonly amount: u128;
|
|
11010
11109
|
}
|
|
11011
|
-
/** @name ArgonRuntimeRuntimeHoldReason (
|
|
11110
|
+
/** @name ArgonRuntimeRuntimeHoldReason (461) */
|
|
11012
11111
|
interface ArgonRuntimeRuntimeHoldReason extends Enum {
|
|
11013
11112
|
readonly isMiningSlot: boolean;
|
|
11014
11113
|
readonly asMiningSlot: PalletMiningSlotHoldReason;
|
|
@@ -11022,49 +11121,50 @@ declare module '@polkadot/types/lookup' {
|
|
|
11022
11121
|
readonly asLiquidityPools: PalletLiquidityPoolsHoldReason;
|
|
11023
11122
|
readonly type: 'MiningSlot' | 'Vaults' | 'BitcoinLocks' | 'BlockRewards' | 'LiquidityPools';
|
|
11024
11123
|
}
|
|
11025
|
-
/** @name PalletMiningSlotHoldReason (
|
|
11124
|
+
/** @name PalletMiningSlotHoldReason (462) */
|
|
11026
11125
|
interface PalletMiningSlotHoldReason extends Enum {
|
|
11027
11126
|
readonly isRegisterAsMiner: boolean;
|
|
11028
11127
|
readonly type: 'RegisterAsMiner';
|
|
11029
11128
|
}
|
|
11030
|
-
/** @name PalletVaultsHoldReason (
|
|
11129
|
+
/** @name PalletVaultsHoldReason (463) */
|
|
11031
11130
|
interface PalletVaultsHoldReason extends Enum {
|
|
11032
11131
|
readonly isEnterVault: boolean;
|
|
11033
11132
|
readonly isObligationFee: boolean;
|
|
11034
|
-
readonly
|
|
11133
|
+
readonly isPendingCollect: boolean;
|
|
11134
|
+
readonly type: 'EnterVault' | 'ObligationFee' | 'PendingCollect';
|
|
11035
11135
|
}
|
|
11036
|
-
/** @name PalletBitcoinLocksHoldReason (
|
|
11136
|
+
/** @name PalletBitcoinLocksHoldReason (464) */
|
|
11037
11137
|
interface PalletBitcoinLocksHoldReason extends Enum {
|
|
11038
11138
|
readonly isReleaseBitcoinLock: boolean;
|
|
11039
11139
|
readonly type: 'ReleaseBitcoinLock';
|
|
11040
11140
|
}
|
|
11041
|
-
/** @name PalletBlockRewardsHoldReason (
|
|
11141
|
+
/** @name PalletBlockRewardsHoldReason (465) */
|
|
11042
11142
|
interface PalletBlockRewardsHoldReason extends Enum {
|
|
11043
11143
|
readonly isMaturationPeriod: boolean;
|
|
11044
11144
|
readonly type: 'MaturationPeriod';
|
|
11045
11145
|
}
|
|
11046
|
-
/** @name PalletLiquidityPoolsHoldReason (
|
|
11146
|
+
/** @name PalletLiquidityPoolsHoldReason (466) */
|
|
11047
11147
|
interface PalletLiquidityPoolsHoldReason extends Enum {
|
|
11048
11148
|
readonly isContributedToLiquidityPool: boolean;
|
|
11049
11149
|
readonly type: 'ContributedToLiquidityPool';
|
|
11050
11150
|
}
|
|
11051
|
-
/** @name FrameSupportTokensMiscIdAmountRuntimeFreezeReason (
|
|
11151
|
+
/** @name FrameSupportTokensMiscIdAmountRuntimeFreezeReason (469) */
|
|
11052
11152
|
interface FrameSupportTokensMiscIdAmountRuntimeFreezeReason extends Struct {
|
|
11053
11153
|
readonly id: ArgonRuntimeRuntimeFreezeReason;
|
|
11054
11154
|
readonly amount: u128;
|
|
11055
11155
|
}
|
|
11056
|
-
/** @name ArgonRuntimeRuntimeFreezeReason (
|
|
11156
|
+
/** @name ArgonRuntimeRuntimeFreezeReason (470) */
|
|
11057
11157
|
interface ArgonRuntimeRuntimeFreezeReason extends Enum {
|
|
11058
11158
|
readonly isBlockRewards: boolean;
|
|
11059
11159
|
readonly asBlockRewards: PalletBlockRewardsFreezeReason;
|
|
11060
11160
|
readonly type: 'BlockRewards';
|
|
11061
11161
|
}
|
|
11062
|
-
/** @name PalletBlockRewardsFreezeReason (
|
|
11162
|
+
/** @name PalletBlockRewardsFreezeReason (471) */
|
|
11063
11163
|
interface PalletBlockRewardsFreezeReason extends Enum {
|
|
11064
11164
|
readonly isMaturationPeriod: boolean;
|
|
11065
11165
|
readonly type: 'MaturationPeriod';
|
|
11066
11166
|
}
|
|
11067
|
-
/** @name PalletBalancesError (
|
|
11167
|
+
/** @name PalletBalancesError (473) */
|
|
11068
11168
|
interface PalletBalancesError extends Enum {
|
|
11069
11169
|
readonly isVestingBalance: boolean;
|
|
11070
11170
|
readonly isLiquidityRestrictions: boolean;
|
|
@@ -11080,7 +11180,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
11080
11180
|
readonly isDeltaZero: boolean;
|
|
11081
11181
|
readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'Expendability' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves' | 'TooManyHolds' | 'TooManyFreezes' | 'IssuanceDeactivated' | 'DeltaZero';
|
|
11082
11182
|
}
|
|
11083
|
-
/** @name PalletTxPauseError (
|
|
11183
|
+
/** @name PalletTxPauseError (475) */
|
|
11084
11184
|
interface PalletTxPauseError extends Enum {
|
|
11085
11185
|
readonly isIsPaused: boolean;
|
|
11086
11186
|
readonly isIsUnpaused: boolean;
|
|
@@ -11088,23 +11188,23 @@ declare module '@polkadot/types/lookup' {
|
|
|
11088
11188
|
readonly isNotFound: boolean;
|
|
11089
11189
|
readonly type: 'IsPaused' | 'IsUnpaused' | 'Unpausable' | 'NotFound';
|
|
11090
11190
|
}
|
|
11091
|
-
/** @name PalletTransactionPaymentReleases (
|
|
11191
|
+
/** @name PalletTransactionPaymentReleases (476) */
|
|
11092
11192
|
interface PalletTransactionPaymentReleases extends Enum {
|
|
11093
11193
|
readonly isV1Ancient: boolean;
|
|
11094
11194
|
readonly isV2: boolean;
|
|
11095
11195
|
readonly type: 'V1Ancient' | 'V2';
|
|
11096
11196
|
}
|
|
11097
|
-
/** @name PalletUtilityError (
|
|
11197
|
+
/** @name PalletUtilityError (477) */
|
|
11098
11198
|
interface PalletUtilityError extends Enum {
|
|
11099
11199
|
readonly isTooManyCalls: boolean;
|
|
11100
11200
|
readonly type: 'TooManyCalls';
|
|
11101
11201
|
}
|
|
11102
|
-
/** @name PalletSudoError (
|
|
11202
|
+
/** @name PalletSudoError (478) */
|
|
11103
11203
|
interface PalletSudoError extends Enum {
|
|
11104
11204
|
readonly isRequireSudo: boolean;
|
|
11105
11205
|
readonly type: 'RequireSudo';
|
|
11106
11206
|
}
|
|
11107
|
-
/** @name PalletIsmpError (
|
|
11207
|
+
/** @name PalletIsmpError (479) */
|
|
11108
11208
|
interface PalletIsmpError extends Enum {
|
|
11109
11209
|
readonly isInvalidMessage: boolean;
|
|
11110
11210
|
readonly isMessageNotFound: boolean;
|
|
@@ -11113,9 +11213,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
11113
11213
|
readonly isChallengePeriodUpdateFailed: boolean;
|
|
11114
11214
|
readonly type: 'InvalidMessage' | 'MessageNotFound' | 'ConsensusClientCreationFailed' | 'UnbondingPeriodUpdateFailed' | 'ChallengePeriodUpdateFailed';
|
|
11115
11215
|
}
|
|
11116
|
-
/** @name PalletHyperbridgeError (
|
|
11216
|
+
/** @name PalletHyperbridgeError (480) */
|
|
11117
11217
|
type PalletHyperbridgeError = Null;
|
|
11118
|
-
/** @name PalletTokenGatewayError (
|
|
11218
|
+
/** @name PalletTokenGatewayError (482) */
|
|
11119
11219
|
interface PalletTokenGatewayError extends Enum {
|
|
11120
11220
|
readonly isUnregisteredAsset: boolean;
|
|
11121
11221
|
readonly isAssetTeleportError: boolean;
|
|
@@ -11128,7 +11228,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
11128
11228
|
readonly isNotAssetOwner: boolean;
|
|
11129
11229
|
readonly type: 'UnregisteredAsset' | 'AssetTeleportError' | 'CoprocessorNotConfigured' | 'DispatchError' | 'AssetCreationError' | 'AssetDecimalsNotFound' | 'NotInitialized' | 'UnknownAsset' | 'NotAssetOwner';
|
|
11130
11230
|
}
|
|
11131
|
-
/** @name PalletLiquidityPoolsLiquidityPool (
|
|
11231
|
+
/** @name PalletLiquidityPoolsLiquidityPool (484) */
|
|
11132
11232
|
interface PalletLiquidityPoolsLiquidityPool extends Struct {
|
|
11133
11233
|
readonly contributorBalances: Vec<ITuple<[AccountId32, u128]>>;
|
|
11134
11234
|
readonly doNotRenew: Vec<AccountId32>;
|
|
@@ -11136,13 +11236,13 @@ declare module '@polkadot/types/lookup' {
|
|
|
11136
11236
|
readonly distributedProfits: Option<u128>;
|
|
11137
11237
|
readonly vaultSharingPercent: Compact<Permill>;
|
|
11138
11238
|
}
|
|
11139
|
-
/** @name PalletLiquidityPoolsLiquidityPoolCapital (
|
|
11239
|
+
/** @name PalletLiquidityPoolsLiquidityPoolCapital (493) */
|
|
11140
11240
|
interface PalletLiquidityPoolsLiquidityPoolCapital extends Struct {
|
|
11141
11241
|
readonly vaultId: Compact<u32>;
|
|
11142
11242
|
readonly activatedCapital: Compact<u128>;
|
|
11143
11243
|
readonly frameId: Compact<u64>;
|
|
11144
11244
|
}
|
|
11145
|
-
/** @name PalletLiquidityPoolsPrebondedArgons (
|
|
11245
|
+
/** @name PalletLiquidityPoolsPrebondedArgons (495) */
|
|
11146
11246
|
interface PalletLiquidityPoolsPrebondedArgons extends Struct {
|
|
11147
11247
|
readonly vaultId: Compact<u32>;
|
|
11148
11248
|
readonly accountId: AccountId32;
|
|
@@ -11151,7 +11251,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
11151
11251
|
readonly bondedByStartOffset: Vec<u128>;
|
|
11152
11252
|
readonly maxAmountPerFrame: Compact<u128>;
|
|
11153
11253
|
}
|
|
11154
|
-
/** @name PalletLiquidityPoolsError (
|
|
11254
|
+
/** @name PalletLiquidityPoolsError (496) */
|
|
11155
11255
|
interface PalletLiquidityPoolsError extends Enum {
|
|
11156
11256
|
readonly isContributionTooLow: boolean;
|
|
11157
11257
|
readonly isVaultNotAcceptingMiningBonds: boolean;
|
|
@@ -11167,35 +11267,35 @@ declare module '@polkadot/types/lookup' {
|
|
|
11167
11267
|
readonly isMaxAmountBelowMinimum: boolean;
|
|
11168
11268
|
readonly type: 'ContributionTooLow' | 'VaultNotAcceptingMiningBonds' | 'BelowMinimum' | 'NotAFundContributor' | 'InternalError' | 'CouldNotFindLiquidityPool' | 'MaxContributorsExceeded' | 'ActivatedSecuritizationExceeded' | 'MaxVaultsExceeded' | 'AlreadyRenewed' | 'NotAVaultOperator' | 'MaxAmountBelowMinimum';
|
|
11169
11269
|
}
|
|
11170
|
-
/** @name FrameSystemExtensionsCheckNonZeroSender (
|
|
11270
|
+
/** @name FrameSystemExtensionsCheckNonZeroSender (499) */
|
|
11171
11271
|
type FrameSystemExtensionsCheckNonZeroSender = Null;
|
|
11172
|
-
/** @name FrameSystemExtensionsCheckSpecVersion (
|
|
11272
|
+
/** @name FrameSystemExtensionsCheckSpecVersion (500) */
|
|
11173
11273
|
type FrameSystemExtensionsCheckSpecVersion = Null;
|
|
11174
|
-
/** @name FrameSystemExtensionsCheckTxVersion (
|
|
11274
|
+
/** @name FrameSystemExtensionsCheckTxVersion (501) */
|
|
11175
11275
|
type FrameSystemExtensionsCheckTxVersion = Null;
|
|
11176
|
-
/** @name FrameSystemExtensionsCheckGenesis (
|
|
11276
|
+
/** @name FrameSystemExtensionsCheckGenesis (502) */
|
|
11177
11277
|
type FrameSystemExtensionsCheckGenesis = Null;
|
|
11178
|
-
/** @name FrameSystemExtensionsCheckNonce (
|
|
11278
|
+
/** @name FrameSystemExtensionsCheckNonce (505) */
|
|
11179
11279
|
interface FrameSystemExtensionsCheckNonce extends Compact<u32> {
|
|
11180
11280
|
}
|
|
11181
|
-
/** @name FrameSystemExtensionsCheckWeight (
|
|
11281
|
+
/** @name FrameSystemExtensionsCheckWeight (506) */
|
|
11182
11282
|
type FrameSystemExtensionsCheckWeight = Null;
|
|
11183
|
-
/** @name PalletTransactionPaymentChargeTransactionPayment (
|
|
11283
|
+
/** @name PalletTransactionPaymentChargeTransactionPayment (507) */
|
|
11184
11284
|
interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {
|
|
11185
11285
|
}
|
|
11186
|
-
/** @name FrameMetadataHashExtensionCheckMetadataHash (
|
|
11286
|
+
/** @name FrameMetadataHashExtensionCheckMetadataHash (508) */
|
|
11187
11287
|
interface FrameMetadataHashExtensionCheckMetadataHash extends Struct {
|
|
11188
11288
|
readonly mode: FrameMetadataHashExtensionMode;
|
|
11189
11289
|
}
|
|
11190
|
-
/** @name FrameMetadataHashExtensionMode (
|
|
11290
|
+
/** @name FrameMetadataHashExtensionMode (509) */
|
|
11191
11291
|
interface FrameMetadataHashExtensionMode extends Enum {
|
|
11192
11292
|
readonly isDisabled: boolean;
|
|
11193
11293
|
readonly isEnabled: boolean;
|
|
11194
11294
|
readonly type: 'Disabled' | 'Enabled';
|
|
11195
11295
|
}
|
|
11196
|
-
/** @name FrameSystemExtensionsWeightReclaim (
|
|
11296
|
+
/** @name FrameSystemExtensionsWeightReclaim (510) */
|
|
11197
11297
|
type FrameSystemExtensionsWeightReclaim = Null;
|
|
11198
|
-
/** @name ArgonRuntimeRuntime (
|
|
11298
|
+
/** @name ArgonRuntimeRuntime (512) */
|
|
11199
11299
|
type ArgonRuntimeRuntime = Null;
|
|
11200
11300
|
}
|
|
11201
11301
|
|
|
@@ -11258,7 +11358,7 @@ declare class TxSubmitter {
|
|
|
11258
11358
|
txProgressCallback?: ITxProgressCallback;
|
|
11259
11359
|
}): Promise<TxResult>;
|
|
11260
11360
|
}
|
|
11261
|
-
type ITxProgressCallback = (progressToInBlock: number, result
|
|
11361
|
+
type ITxProgressCallback = (progressToInBlock: number, result?: TxResult) => void;
|
|
11262
11362
|
declare class TxResult {
|
|
11263
11363
|
private readonly client;
|
|
11264
11364
|
private shouldLog;
|
|
@@ -11401,11 +11501,31 @@ declare class BlockWatch {
|
|
|
11401
11501
|
* This class calculates fromeId from ticks.
|
|
11402
11502
|
*/
|
|
11403
11503
|
declare class FrameCalculator {
|
|
11404
|
-
|
|
11405
|
-
|
|
11504
|
+
miningConfig: {
|
|
11505
|
+
ticksBetweenSlots: number;
|
|
11506
|
+
slotBiddingStartAfterTicks: number;
|
|
11507
|
+
} | undefined;
|
|
11508
|
+
genesisTick: number | undefined;
|
|
11509
|
+
tickMillis: number | undefined;
|
|
11510
|
+
load(client: ArgonClient): Promise<{
|
|
11511
|
+
ticksBetweenFrames: number;
|
|
11512
|
+
slotBiddingStartAfterTicks: number;
|
|
11513
|
+
genesisTick: number;
|
|
11514
|
+
tickMillis: number;
|
|
11515
|
+
biddingStartTick: number;
|
|
11516
|
+
}>;
|
|
11406
11517
|
getForTick(client: ArgonClient, tick: number): Promise<number>;
|
|
11407
11518
|
getTickRangeForFrame(client: ArgonClient, frameId: number): Promise<[number, number]>;
|
|
11408
11519
|
getForHeader(client: ArgonClient, header: Header): Promise<number | undefined>;
|
|
11520
|
+
static frameToDateRange(frameId: number, config: {
|
|
11521
|
+
ticksBetweenFrames: number;
|
|
11522
|
+
biddingStartTick: number;
|
|
11523
|
+
tickMillis: number;
|
|
11524
|
+
}): [Date, Date];
|
|
11525
|
+
static calculateTickRangeForFrame(frameId: number, config: {
|
|
11526
|
+
ticksBetweenFrames: number;
|
|
11527
|
+
biddingStartTick: number;
|
|
11528
|
+
}): [number, number];
|
|
11409
11529
|
private getConfig;
|
|
11410
11530
|
}
|
|
11411
11531
|
|
|
@@ -11716,6 +11836,11 @@ type WatchAlerts = {
|
|
|
11716
11836
|
liquidityPoolSpaceAvailable?: bigint;
|
|
11717
11837
|
};
|
|
11718
11838
|
|
|
11839
|
+
interface IBidDetail {
|
|
11840
|
+
address: string;
|
|
11841
|
+
bidMicrogons: bigint;
|
|
11842
|
+
bidAtTick: number;
|
|
11843
|
+
}
|
|
11719
11844
|
declare class CohortBidder {
|
|
11720
11845
|
accountset: Accountset;
|
|
11721
11846
|
cohortStartingFrameId: number;
|
|
@@ -11732,23 +11857,55 @@ declare class CohortBidder {
|
|
|
11732
11857
|
bidDelay: number;
|
|
11733
11858
|
tipPerTransaction?: bigint;
|
|
11734
11859
|
};
|
|
11735
|
-
|
|
11860
|
+
callbacks?: {
|
|
11861
|
+
onBidsUpdated?(args: {
|
|
11862
|
+
bids: IBidDetail[];
|
|
11863
|
+
atBlockNumber: number;
|
|
11864
|
+
tick: number;
|
|
11865
|
+
}): void;
|
|
11866
|
+
onBidParamsAdjusted?(args: {
|
|
11867
|
+
tick: number;
|
|
11868
|
+
blockNumber: number;
|
|
11869
|
+
maxSeats: number;
|
|
11870
|
+
winningBidCount: number;
|
|
11871
|
+
reason: "max-bid-too-low" | "insufficient-balance" | "max-budget-too-low";
|
|
11872
|
+
availableBalanceForBids: bigint;
|
|
11873
|
+
}): void;
|
|
11874
|
+
onBidsSubmitted?(args: {
|
|
11875
|
+
tick: number;
|
|
11876
|
+
blockNumber: number;
|
|
11877
|
+
microgonsPerSeat: bigint;
|
|
11878
|
+
txFeePlusTip: bigint;
|
|
11879
|
+
submittedCount: number;
|
|
11880
|
+
}): void;
|
|
11881
|
+
onBidsRejected?(args: {
|
|
11882
|
+
tick: number;
|
|
11883
|
+
blockNumber: number;
|
|
11884
|
+
microgonsPerSeat: bigint;
|
|
11885
|
+
submittedCount: number;
|
|
11886
|
+
rejectedCount: number;
|
|
11887
|
+
bidError: ExtrinsicError;
|
|
11888
|
+
}): void;
|
|
11889
|
+
} | undefined;
|
|
11890
|
+
get clientPromise(): Promise<ArgonClient>;
|
|
11736
11891
|
txFees: bigint;
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11892
|
+
bidsAttempted: number;
|
|
11893
|
+
winningBids: IBidDetail[];
|
|
11894
|
+
readonly myAddresses: Set<string>;
|
|
11895
|
+
readonly currentBids: {
|
|
11896
|
+
atBlockNumber: number;
|
|
11897
|
+
atTick: number;
|
|
11898
|
+
mostRecentBidTick: number;
|
|
11899
|
+
bids: IBidDetail[];
|
|
11900
|
+
};
|
|
11741
11901
|
private unsubscribe?;
|
|
11742
11902
|
private pendingRequest;
|
|
11743
|
-
private retryTimeout?;
|
|
11744
11903
|
private isStopped;
|
|
11745
|
-
private needsRebid;
|
|
11746
|
-
private lastBidTime;
|
|
11747
11904
|
private millisPerTick?;
|
|
11748
11905
|
private minIncrement;
|
|
11749
11906
|
private nextCohortSize?;
|
|
11750
|
-
private
|
|
11751
|
-
private
|
|
11907
|
+
private lastBidTick;
|
|
11908
|
+
private evaluateInterval?;
|
|
11752
11909
|
constructor(accountset: Accountset, cohortStartingFrameId: number, subaccounts: {
|
|
11753
11910
|
index: number;
|
|
11754
11911
|
isRebid: boolean;
|
|
@@ -11760,13 +11917,43 @@ declare class CohortBidder {
|
|
|
11760
11917
|
bidIncrement: bigint;
|
|
11761
11918
|
bidDelay: number;
|
|
11762
11919
|
tipPerTransaction?: bigint;
|
|
11763
|
-
}
|
|
11920
|
+
}, callbacks?: {
|
|
11921
|
+
onBidsUpdated?(args: {
|
|
11922
|
+
bids: IBidDetail[];
|
|
11923
|
+
atBlockNumber: number;
|
|
11924
|
+
tick: number;
|
|
11925
|
+
}): void;
|
|
11926
|
+
onBidParamsAdjusted?(args: {
|
|
11927
|
+
tick: number;
|
|
11928
|
+
blockNumber: number;
|
|
11929
|
+
maxSeats: number;
|
|
11930
|
+
winningBidCount: number;
|
|
11931
|
+
reason: "max-bid-too-low" | "insufficient-balance" | "max-budget-too-low";
|
|
11932
|
+
availableBalanceForBids: bigint;
|
|
11933
|
+
}): void;
|
|
11934
|
+
onBidsSubmitted?(args: {
|
|
11935
|
+
tick: number;
|
|
11936
|
+
blockNumber: number;
|
|
11937
|
+
microgonsPerSeat: bigint;
|
|
11938
|
+
txFeePlusTip: bigint;
|
|
11939
|
+
submittedCount: number;
|
|
11940
|
+
}): void;
|
|
11941
|
+
onBidsRejected?(args: {
|
|
11942
|
+
tick: number;
|
|
11943
|
+
blockNumber: number;
|
|
11944
|
+
microgonsPerSeat: bigint;
|
|
11945
|
+
submittedCount: number;
|
|
11946
|
+
rejectedCount: number;
|
|
11947
|
+
bidError: ExtrinsicError;
|
|
11948
|
+
}): void;
|
|
11949
|
+
} | undefined);
|
|
11764
11950
|
start(): Promise<void>;
|
|
11765
11951
|
stop(): Promise<CohortBidder['winningBids']>;
|
|
11766
11952
|
private checkWinningBids;
|
|
11767
|
-
private
|
|
11768
|
-
private
|
|
11769
|
-
private
|
|
11953
|
+
private submitBids;
|
|
11954
|
+
private scheduleEvaluation;
|
|
11955
|
+
private updateBidList;
|
|
11956
|
+
private safeRecordParamsAdjusted;
|
|
11770
11957
|
}
|
|
11771
11958
|
|
|
11772
11959
|
interface IContributor {
|
|
@@ -11870,6 +12057,11 @@ declare class BitcoinLocks {
|
|
|
11870
12057
|
securityFee: bigint;
|
|
11871
12058
|
txFee: bigint;
|
|
11872
12059
|
}>;
|
|
12060
|
+
getBitcoinLockFromTxResult(txResult: TxResult): Promise<{
|
|
12061
|
+
lock: IBitcoinLock;
|
|
12062
|
+
createdAtHeight: number;
|
|
12063
|
+
txResult: TxResult;
|
|
12064
|
+
}>;
|
|
11873
12065
|
initializeLock(args: {
|
|
11874
12066
|
vault: Vault;
|
|
11875
12067
|
ownerBitcoinPubkey: Uint8Array;
|
|
@@ -11932,7 +12124,7 @@ declare class BitcoinLocks {
|
|
|
11932
12124
|
}>;
|
|
11933
12125
|
}
|
|
11934
12126
|
interface IBitcoinLockConfig {
|
|
11935
|
-
|
|
12127
|
+
lockReleaseCosignDeadlineFrames: number;
|
|
11936
12128
|
pendingConfirmationExpirationBlocks: number;
|
|
11937
12129
|
tickDurationMillis: number;
|
|
11938
12130
|
bitcoinNetwork: ArgonPrimitivesBitcoinBitcoinNetwork;
|
|
@@ -11942,7 +12134,7 @@ interface IReleaseRequest {
|
|
|
11942
12134
|
bitcoinNetworkFee: bigint;
|
|
11943
12135
|
}
|
|
11944
12136
|
interface IReleaseRequestDetails extends IReleaseRequest {
|
|
11945
|
-
|
|
12137
|
+
dueFrame: number;
|
|
11946
12138
|
vaultId: number;
|
|
11947
12139
|
redemptionPrice: bigint;
|
|
11948
12140
|
}
|