@argonprotocol/mainchain 1.3.7 → 1.3.9

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/lib/index.d.ts CHANGED
@@ -1,12 +1,11 @@
1
- import * as _polkadot_api_base_types from '@polkadot/api-base/types';
2
1
  import { ApiTypes, AugmentedConst, AugmentedError, AugmentedEvent, AugmentedQuery, AugmentedSubmittable, SubmittableExtrinsic, AugmentedCall } from '@polkadot/api-base/types';
3
2
  import { u128, u32, u64, u16, u8, bool, Bytes, Vec, Option, U8aFixed, U256, i128, Result, Null, BTreeSet, BTreeMap, Compact, Text, HashMap, U64, f64, Json, BitVec, Bool, f32, F32, F64, I128, i16, I16, i256, I256, i32, I32, i64, I64, i8, I8, isize, ISize, OptionBool, Raw, Type, U128, U16, u256, U32, U8, usize, USize, Struct, Enum } from '@polkadot/types-codec';
4
3
  export { BTreeMap, Bool, Bytes, Compact, Enum, Null, Option, Range, Result, Struct, Text, Tuple, U256, U8aFixed, Vec, bool, i128, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
4
  import { ITuple, AnyNumber, IMethod, Codec } from '@polkadot/types-codec/types';
6
5
  export { Codec, ITuple } from '@polkadot/types-codec/types';
7
6
  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
- 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, 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';
7
+ export { AccountId, AccountId32, Block, Call, H160, H256, Header, MultiAddress, Permill, SignedBlock } from '@polkadot/types/interfaces/runtime';
8
+ 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, ArgonPrimitivesBlockSealMiningBidStats, ArgonPrimitivesBlockSealMiningSlotConfig, PalletMintMintAction, PalletMultisigMultisig, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSupportDispatchPerDispatchClassWeight, SpRuntimeDigest, FrameSystemEventRecord, FrameSystemPhase, SpWeightsWeightV2Weight, FrameSystemLastRuntimeUpgradeInfo, ArgonPrimitivesTickTicker, PalletTransactionPaymentReleases, PalletTreasuryTreasuryCapital, PalletTreasuryPrebondedArgons, PalletTreasuryTreasuryPool, 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
9
  export * from '@polkadot/types/lookup';
11
10
  import { Observable, IExtrinsic } from '@polkadot/types/types';
12
11
  import { AugmentedRpc } from '@polkadot/rpc-core/types';
@@ -22,7 +21,7 @@ import { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus'
22
21
  import { ContractCallRequest, ContractExecResult, InstantiateRequestV1, ContractInstantiateResult, CodeUploadRequest, CodeUploadResult, AliveContractInfo, CodeHash, CodeSource, CodeUploadResultValue, ContractCallFlags, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractExecResultU64, ContractInfo, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractInstantiateResultU64, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
23
22
  import { BlockStats } from '@polkadot/types/interfaces/dev';
24
23
  import { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
25
- import { EthCallRequest, EthFeeHistory, EthRichBlock, EthFilterChanges, EthLog, EthFilter, EthAccount, EthTransaction, EthReceipt, EthWork, EthTransactionRequest, EthSubKind, EthSubParams, EthSyncStatus, BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAddress, EthBlock, EthBloom, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, EthFilterAddress, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthReceiptV0, EthReceiptV3, EthRichHeader, EthStorageProof, EthSubResult, EthSyncInfo, EthTransactionAction, EthTransactionCondition, EthTransactionSignature, EthTransactionStatus, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';
24
+ import { EthCallRequest, EthFeeHistory, EthRichBlock, EthFilterChanges, EthLog, EthFilter, EthAccount, EthTransaction, EthReceipt, EthWork, EthTransactionRequest, EthSubKind, EthSubParams, EthSyncStatus, BlockV0, BlockV1, BlockV2, BlockV3, EIP1559Transaction, EIP2930Transaction, EIP7702Transaction, EthAccessList, EthAccessListItem, EthAddress, EthAuthorizationList, EthAuthorizationListItem, EthAuthorizationSignature, EthBlock, EthBloom, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, EthFilterAddress, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLegacyTransactionSignature, EthReceiptV0, EthReceiptV3, EthReceiptV4, EthRichHeader, EthStorageProof, EthSubResult, EthSyncInfo, EthTransactionAction, EthTransactionCondition, EthTransactionSignature, EthTransactionStatus, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2, TransactionV3 } from '@polkadot/types/interfaces/eth';
26
25
  import { Extrinsic, AnySignature, EcdsaSignature, Ed25519Signature, Era, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicPayloadV5, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicSignatureV5, ExtrinsicUnknown, ExtrinsicV4, ExtrinsicV5, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
27
26
  import { EncodedFinalityProofs, ReportedRoundStates, JustificationNotification, SetId, AuthorityList, GrandpaEquivocationProof, AuthorityIndex, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, RoundState, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
28
27
  import { MmrLeafBatchProof, MmrHash, MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
@@ -89,15 +88,18 @@ export { Keyring } from '@polkadot/api';
89
88
  export { decodeAddress, mnemonicGenerate } from '@polkadot/util-crypto';
90
89
  export { InterfaceTypes as interfaces } from '@polkadot/types/types/registry';
91
90
  export { KeypairType } from '@polkadot/util-crypto/types';
91
+ import * as _polkadot_api_types from '@polkadot/api/types';
92
+ import { SignerOptions, ApiDecoration, ApiOptions } from '@polkadot/api/types';
93
+ export { ApiDecoration } from '@polkadot/api/types';
94
+ import { SubmittableExtrinsic as SubmittableExtrinsic$1 } from '@polkadot/api/promise/types';
95
+ export { SubmittableExtrinsic } from '@polkadot/api/promise/types';
92
96
  import * as _polkadot_types_types_extrinsic from '@polkadot/types/types/extrinsic';
93
97
  import { ISubmittableResult } from '@polkadot/types/types/extrinsic';
94
98
  export { IExtrinsic, ISignerPayload, ISubmittableResult, Signer, SignerResult } from '@polkadot/types/types/extrinsic';
95
- import { SubmittableExtrinsic as SubmittableExtrinsic$1 } from '@polkadot/api/promise/types';
96
- import { SignerOptions, ApiDecoration } from '@polkadot/api/types';
97
99
  import { GenericEvent } from '@polkadot/types/generic';
98
100
  export { GenericAddress, GenericBlock, GenericEvent } from '@polkadot/types/generic';
101
+ import { DispatchError as DispatchError$1 } from '@polkadot/types/interfaces';
99
102
  import BigNumber from 'bignumber.js';
100
- import { DispatchError as DispatchError$1, Header as Header$1 } from '@polkadot/types/interfaces';
101
103
  export { hexToU8a, u8aEq, u8aToHex } from '@polkadot/util';
102
104
 
103
105
  declare module '@polkadot/api-base/types/consts' {
@@ -250,28 +252,6 @@ declare module '@polkadot/api-base/types/consts' {
250
252
  **/
251
253
  maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
252
254
  };
253
- liquidityPools: {
254
- /**
255
- * Bid Pool burn percent
256
- **/
257
- bidPoolBurnPercent: Percent & AugmentedConst<ApiType>;
258
- /**
259
- * The number of vaults that can participate in the bid pools. This is a substrate limit.
260
- **/
261
- maxBidPoolVaultParticipants: u32 & AugmentedConst<ApiType>;
262
- /**
263
- * The maximum number of contributors to a bond fund
264
- **/
265
- maxLiquidityPoolContributors: u32 & AugmentedConst<ApiType>;
266
- /**
267
- * The minimum argons per fund contributor
268
- **/
269
- minimumArgonsPerContributor: u128 & AugmentedConst<ApiType>;
270
- /**
271
- * A pallet id that is used to hold the bid pool
272
- **/
273
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
274
- };
275
255
  miningSlot: {
276
256
  /**
277
257
  * The max percent swing for the argonots per slot (from the last percent)
@@ -531,6 +511,28 @@ declare module '@polkadot/api-base/types/consts' {
531
511
  **/
532
512
  operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
533
513
  };
514
+ treasury: {
515
+ /**
516
+ * Bid Pool burn percent
517
+ **/
518
+ bidPoolBurnPercent: Percent & AugmentedConst<ApiType>;
519
+ /**
520
+ * The maximum number of contributors to a bond fund
521
+ **/
522
+ maxTreasuryContributors: u32 & AugmentedConst<ApiType>;
523
+ /**
524
+ * The number of vaults that can participate in each bond. This is a substrate limit.
525
+ **/
526
+ maxVaultsPerPool: u32 & AugmentedConst<ApiType>;
527
+ /**
528
+ * The minimum argons per fund contributor
529
+ **/
530
+ minimumArgonsPerContributor: u128 & AugmentedConst<ApiType>;
531
+ /**
532
+ * A pallet id that is used to hold the bid pool
533
+ **/
534
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
535
+ };
534
536
  txPause: {
535
537
  /**
536
538
  * Maximum length for pallet name and call name SCALE encoded string names.
@@ -980,6 +982,10 @@ declare module '@polkadot/api-base/types/errors' {
980
982
  * Encountered an error while creating the consensus client.
981
983
  **/
982
984
  ConsensusClientCreationFailed: AugmentedError<ApiType>;
985
+ /**
986
+ * Error charging fee
987
+ **/
988
+ ErrorChargingFee: AugmentedError<ApiType>;
983
989
  /**
984
990
  * Invalid ISMP message
985
991
  **/
@@ -993,56 +999,6 @@ declare module '@polkadot/api-base/types/errors' {
993
999
  **/
994
1000
  UnbondingPeriodUpdateFailed: AugmentedError<ApiType>;
995
1001
  };
996
- liquidityPools: {
997
- /**
998
- * The added amount would exceed the activated securitization
999
- **/
1000
- ActivatedSecuritizationExceeded: AugmentedError<ApiType>;
1001
- /**
1002
- * This fund has already been renewed
1003
- **/
1004
- AlreadyRenewed: AugmentedError<ApiType>;
1005
- /**
1006
- * Below the minimum amount of argons per contributor
1007
- **/
1008
- BelowMinimum: AugmentedError<ApiType>;
1009
- /**
1010
- * The contributed amount would not make this account a contributor
1011
- **/
1012
- ContributionTooLow: AugmentedError<ApiType>;
1013
- /**
1014
- * Unable to update the vault fund
1015
- **/
1016
- CouldNotFindLiquidityPool: AugmentedError<ApiType>;
1017
- /**
1018
- * An internal error occurred (like an overflow)
1019
- **/
1020
- InternalError: AugmentedError<ApiType>;
1021
- /**
1022
- * The prebond amount cannot be reduced and this takes it below the previous allocation
1023
- **/
1024
- MaxAmountBelowMinimum: AugmentedError<ApiType>;
1025
- /**
1026
- * Max contributors for a fund exceeded
1027
- **/
1028
- MaxContributorsExceeded: AugmentedError<ApiType>;
1029
- /**
1030
- * Max Vaults exceeded
1031
- **/
1032
- MaxVaultsExceeded: AugmentedError<ApiType>;
1033
- /**
1034
- * This account is not an active mining fund contributor
1035
- **/
1036
- NotAFundContributor: AugmentedError<ApiType>;
1037
- /**
1038
- * Vault operator only
1039
- **/
1040
- NotAVaultOperator: AugmentedError<ApiType>;
1041
- /**
1042
- * The given vault is not accepting mining bonds
1043
- **/
1044
- VaultNotAcceptingMiningBonds: AugmentedError<ApiType>;
1045
- };
1046
1002
  miningSlot: {
1047
1003
  /**
1048
1004
  * The mining bid cannot be reduced
@@ -1432,6 +1388,56 @@ declare module '@polkadot/api-base/types/errors' {
1432
1388
  **/
1433
1389
  UnregisteredAsset: AugmentedError<ApiType>;
1434
1390
  };
1391
+ treasury: {
1392
+ /**
1393
+ * The added amount would exceed the activated securitization
1394
+ **/
1395
+ ActivatedSecuritizationExceeded: AugmentedError<ApiType>;
1396
+ /**
1397
+ * This fund has already been renewed
1398
+ **/
1399
+ AlreadyRenewed: AugmentedError<ApiType>;
1400
+ /**
1401
+ * Below the minimum amount of argons per contributor
1402
+ **/
1403
+ BelowMinimum: AugmentedError<ApiType>;
1404
+ /**
1405
+ * The contributed amount would not make this account a contributor
1406
+ **/
1407
+ ContributionTooLow: AugmentedError<ApiType>;
1408
+ /**
1409
+ * Unable to update the vault fund
1410
+ **/
1411
+ CouldNotFindTreasury: AugmentedError<ApiType>;
1412
+ /**
1413
+ * An internal error occurred (like an overflow)
1414
+ **/
1415
+ InternalError: AugmentedError<ApiType>;
1416
+ /**
1417
+ * The prebond amount cannot be reduced and this takes it below the previous allocation
1418
+ **/
1419
+ MaxAmountBelowMinimum: AugmentedError<ApiType>;
1420
+ /**
1421
+ * Max contributors for a fund exceeded
1422
+ **/
1423
+ MaxContributorsExceeded: AugmentedError<ApiType>;
1424
+ /**
1425
+ * Max Vaults exceeded
1426
+ **/
1427
+ MaxVaultsExceeded: AugmentedError<ApiType>;
1428
+ /**
1429
+ * This account is not an active mining fund contributor
1430
+ **/
1431
+ NotAFundContributor: AugmentedError<ApiType>;
1432
+ /**
1433
+ * Vault operator only
1434
+ **/
1435
+ NotAVaultOperator: AugmentedError<ApiType>;
1436
+ /**
1437
+ * The given vault is not accepting mining bonds
1438
+ **/
1439
+ VaultNotAcceptingMiningBonds: AugmentedError<ApiType>;
1440
+ };
1435
1441
  txPause: {
1436
1442
  /**
1437
1443
  * The call is paused.
@@ -1454,6 +1460,10 @@ declare module '@polkadot/api-base/types/errors' {
1454
1460
  TooManyCalls: AugmentedError<ApiType>;
1455
1461
  };
1456
1462
  vaults: {
1463
+ /**
1464
+ * An account may only be associated with a single vault
1465
+ **/
1466
+ AccountAlreadyHasVault: AugmentedError<ApiType>;
1457
1467
  /**
1458
1468
  * The proposed transaction would take the account below the minimum (existential) balance
1459
1469
  **/
@@ -1799,30 +1809,34 @@ declare module '@polkadot/api-base/types/events' {
1799
1809
  BitcoinLockCreated: AugmentedEvent<ApiType, [
1800
1810
  utxoId: u64,
1801
1811
  vaultId: u32,
1802
- lockPrice: u128,
1812
+ liquidityPromised: u128,
1813
+ peggedPrice: u128,
1803
1814
  accountId: AccountId32,
1804
1815
  securityFee: u128
1805
1816
  ], {
1806
1817
  utxoId: u64;
1807
1818
  vaultId: u32;
1808
- lockPrice: u128;
1819
+ liquidityPromised: u128;
1820
+ peggedPrice: u128;
1809
1821
  accountId: AccountId32;
1810
1822
  securityFee: u128;
1811
1823
  }>;
1812
1824
  BitcoinLockRatcheted: AugmentedEvent<ApiType, [
1813
1825
  utxoId: u64,
1814
1826
  vaultId: u32,
1815
- originalLockPrice: u128,
1827
+ liquidityPromised: u128,
1828
+ originalPeggedPrice: u128,
1816
1829
  securityFee: u128,
1817
- newLockPrice: u128,
1830
+ newPeggedPrice: u128,
1818
1831
  amountBurned: u128,
1819
1832
  accountId: AccountId32
1820
1833
  ], {
1821
1834
  utxoId: u64;
1822
1835
  vaultId: u32;
1823
- originalLockPrice: u128;
1836
+ liquidityPromised: u128;
1837
+ originalPeggedPrice: u128;
1824
1838
  securityFee: u128;
1825
- newLockPrice: u128;
1839
+ newPeggedPrice: u128;
1826
1840
  amountBurned: u128;
1827
1841
  accountId: AccountId32;
1828
1842
  }>;
@@ -2153,16 +2167,6 @@ declare module '@polkadot/api-base/types/events' {
2153
2167
  old: PalletHyperbridgeVersionedHostParams;
2154
2168
  new_: PalletHyperbridgeVersionedHostParams;
2155
2169
  }>;
2156
- /**
2157
- * Hyperbridge has withdrawn it's protocol revenue
2158
- **/
2159
- ProtocolRevenueWithdrawn: AugmentedEvent<ApiType, [
2160
- amount: u128,
2161
- account: AccountId32
2162
- ], {
2163
- amount: u128;
2164
- account: AccountId32;
2165
- }>;
2166
2170
  /**
2167
2171
  * A relayer has withdrawn some fees
2168
2172
  **/
@@ -2292,107 +2296,6 @@ declare module '@polkadot/api-base/types/events' {
2292
2296
  stateMachines: Vec<IsmpHostStateMachine>;
2293
2297
  }>;
2294
2298
  };
2295
- liquidityPools: {
2296
- /**
2297
- * Funds from the active bid pool have been distributed
2298
- **/
2299
- BidPoolDistributed: AugmentedEvent<ApiType, [
2300
- frameId: u64,
2301
- bidPoolDistributed: u128,
2302
- bidPoolBurned: u128,
2303
- bidPoolShares: u32
2304
- ], {
2305
- frameId: u64;
2306
- bidPoolDistributed: u128;
2307
- bidPoolBurned: u128;
2308
- bidPoolShares: u32;
2309
- }>;
2310
- /**
2311
- * An error occurred burning from the bid pool
2312
- **/
2313
- CouldNotBurnBidPool: AugmentedEvent<ApiType, [
2314
- frameId: u64,
2315
- amount: u128,
2316
- dispatchError: SpRuntimeDispatchError
2317
- ], {
2318
- frameId: u64;
2319
- amount: u128;
2320
- dispatchError: SpRuntimeDispatchError;
2321
- }>;
2322
- /**
2323
- * An error occurred distributing a bid pool
2324
- **/
2325
- CouldNotDistributeBidPool: AugmentedEvent<ApiType, [
2326
- accountId: AccountId32,
2327
- frameId: u64,
2328
- vaultId: u32,
2329
- amount: u128,
2330
- dispatchError: SpRuntimeDispatchError,
2331
- isForVault: bool
2332
- ], {
2333
- accountId: AccountId32;
2334
- frameId: u64;
2335
- vaultId: u32;
2336
- amount: u128;
2337
- dispatchError: SpRuntimeDispatchError;
2338
- isForVault: bool;
2339
- }>;
2340
- /**
2341
- * An error occurred releasing a contributor hold
2342
- **/
2343
- ErrorRefundingLiquidityPoolCapital: AugmentedEvent<ApiType, [
2344
- frameId: u64,
2345
- vaultId: u32,
2346
- amount: u128,
2347
- accountId: AccountId32,
2348
- dispatchError: SpRuntimeDispatchError
2349
- ], {
2350
- frameId: u64;
2351
- vaultId: u32;
2352
- amount: u128;
2353
- accountId: AccountId32;
2354
- dispatchError: SpRuntimeDispatchError;
2355
- }>;
2356
- /**
2357
- * The next bid pool has been locked in
2358
- **/
2359
- NextBidPoolCapitalLocked: AugmentedEvent<ApiType, [
2360
- frameId: u64,
2361
- totalActivatedCapital: u128,
2362
- participatingVaults: u32
2363
- ], {
2364
- frameId: u64;
2365
- totalActivatedCapital: u128;
2366
- participatingVaults: u32;
2367
- }>;
2368
- /**
2369
- * Some mining bond capital was refunded due to less activated vault funds than bond
2370
- * capital
2371
- **/
2372
- RefundedLiquidityPoolCapital: AugmentedEvent<ApiType, [
2373
- frameId: u64,
2374
- vaultId: u32,
2375
- amount: u128,
2376
- accountId: AccountId32
2377
- ], {
2378
- frameId: u64;
2379
- vaultId: u32;
2380
- amount: u128;
2381
- accountId: AccountId32;
2382
- }>;
2383
- /**
2384
- * The vault operator pre-registered to bond argons for a vault
2385
- **/
2386
- VaultOperatorPrebond: AugmentedEvent<ApiType, [
2387
- vaultId: u32,
2388
- accountId: AccountId32,
2389
- amountPerFrame: u128
2390
- ], {
2391
- vaultId: u32;
2392
- accountId: AccountId32;
2393
- amountPerFrame: u128;
2394
- }>;
2395
- };
2396
2299
  miningSlot: {
2397
2300
  /**
2398
2301
  * Bids are closed due to the VRF randomized function triggering
@@ -2957,6 +2860,20 @@ declare module '@polkadot/api-base/types/events' {
2957
2860
  proxyType: ArgonRuntimeProxyType;
2958
2861
  disambiguationIndex: u16;
2959
2862
  }>;
2863
+ /**
2864
+ * A pure proxy was killed by its spawner.
2865
+ **/
2866
+ PureKilled: AugmentedEvent<ApiType, [
2867
+ pure: AccountId32,
2868
+ spawner: AccountId32,
2869
+ proxyType: ArgonRuntimeProxyType,
2870
+ disambiguationIndex: u16
2871
+ ], {
2872
+ pure: AccountId32;
2873
+ spawner: AccountId32;
2874
+ proxyType: ArgonRuntimeProxyType;
2875
+ disambiguationIndex: u16;
2876
+ }>;
2960
2877
  };
2961
2878
  sudo: {
2962
2879
  /**
@@ -3081,6 +2998,16 @@ declare module '@polkadot/api-base/types/events' {
3081
2998
  amount: u128;
3082
2999
  source: IsmpHostStateMachine;
3083
3000
  }>;
3001
+ /**
3002
+ * An asset has been registered locally
3003
+ **/
3004
+ AssetRegisteredLocally: AugmentedEvent<ApiType, [
3005
+ localId: u32,
3006
+ assetId: H256
3007
+ ], {
3008
+ localId: u32;
3009
+ assetId: H256;
3010
+ }>;
3084
3011
  /**
3085
3012
  * An asset has been teleported
3086
3013
  **/
@@ -3116,9 +3043,110 @@ declare module '@polkadot/api-base/types/events' {
3116
3043
  actualFee: u128,
3117
3044
  tip: u128
3118
3045
  ], {
3119
- who: AccountId32;
3120
- actualFee: u128;
3121
- tip: u128;
3046
+ who: AccountId32;
3047
+ actualFee: u128;
3048
+ tip: u128;
3049
+ }>;
3050
+ };
3051
+ treasury: {
3052
+ /**
3053
+ * Funds from the active bid pool have been distributed
3054
+ **/
3055
+ BidPoolDistributed: AugmentedEvent<ApiType, [
3056
+ frameId: u64,
3057
+ bidPoolDistributed: u128,
3058
+ bidPoolBurned: u128,
3059
+ bidPoolShares: u32
3060
+ ], {
3061
+ frameId: u64;
3062
+ bidPoolDistributed: u128;
3063
+ bidPoolBurned: u128;
3064
+ bidPoolShares: u32;
3065
+ }>;
3066
+ /**
3067
+ * An error occurred burning from the bid pool
3068
+ **/
3069
+ CouldNotBurnBidPool: AugmentedEvent<ApiType, [
3070
+ frameId: u64,
3071
+ amount: u128,
3072
+ dispatchError: SpRuntimeDispatchError
3073
+ ], {
3074
+ frameId: u64;
3075
+ amount: u128;
3076
+ dispatchError: SpRuntimeDispatchError;
3077
+ }>;
3078
+ /**
3079
+ * An error occurred distributing a bid pool
3080
+ **/
3081
+ CouldNotDistributeBidPool: AugmentedEvent<ApiType, [
3082
+ accountId: AccountId32,
3083
+ frameId: u64,
3084
+ vaultId: u32,
3085
+ amount: u128,
3086
+ dispatchError: SpRuntimeDispatchError,
3087
+ isForVault: bool
3088
+ ], {
3089
+ accountId: AccountId32;
3090
+ frameId: u64;
3091
+ vaultId: u32;
3092
+ amount: u128;
3093
+ dispatchError: SpRuntimeDispatchError;
3094
+ isForVault: bool;
3095
+ }>;
3096
+ /**
3097
+ * An error occurred releasing a contributor hold
3098
+ **/
3099
+ ErrorRefundingTreasuryCapital: AugmentedEvent<ApiType, [
3100
+ frameId: u64,
3101
+ vaultId: u32,
3102
+ amount: u128,
3103
+ accountId: AccountId32,
3104
+ dispatchError: SpRuntimeDispatchError
3105
+ ], {
3106
+ frameId: u64;
3107
+ vaultId: u32;
3108
+ amount: u128;
3109
+ accountId: AccountId32;
3110
+ dispatchError: SpRuntimeDispatchError;
3111
+ }>;
3112
+ /**
3113
+ * The next bid pool has been locked in
3114
+ **/
3115
+ NextBidPoolCapitalLocked: AugmentedEvent<ApiType, [
3116
+ frameId: u64,
3117
+ totalActivatedCapital: u128,
3118
+ participatingVaults: u32
3119
+ ], {
3120
+ frameId: u64;
3121
+ totalActivatedCapital: u128;
3122
+ participatingVaults: u32;
3123
+ }>;
3124
+ /**
3125
+ * Some mining bond capital was refunded due to less activated vault funds than bond
3126
+ * capital
3127
+ **/
3128
+ RefundedTreasuryCapital: AugmentedEvent<ApiType, [
3129
+ frameId: u64,
3130
+ vaultId: u32,
3131
+ amount: u128,
3132
+ accountId: AccountId32
3133
+ ], {
3134
+ frameId: u64;
3135
+ vaultId: u32;
3136
+ amount: u128;
3137
+ accountId: AccountId32;
3138
+ }>;
3139
+ /**
3140
+ * The vault operator pre-registered to bond argons for a vault
3141
+ **/
3142
+ VaultOperatorPrebond: AugmentedEvent<ApiType, [
3143
+ vaultId: u32,
3144
+ accountId: AccountId32,
3145
+ amountPerFrame: u128
3146
+ ], {
3147
+ vaultId: u32;
3148
+ accountId: AccountId32;
3149
+ amountPerFrame: u128;
3122
3150
  }>;
3123
3151
  };
3124
3152
  txPause: {
@@ -3236,17 +3264,6 @@ declare module '@polkadot/api-base/types/events' {
3236
3264
  amount: u128;
3237
3265
  releaseHeight: u64;
3238
3266
  }>;
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
- }>;
3250
3267
  LostBitcoinCompensated: AugmentedEvent<ApiType, [
3251
3268
  vaultId: u32,
3252
3269
  beneficiary: AccountId32,
@@ -3258,6 +3275,17 @@ declare module '@polkadot/api-base/types/events' {
3258
3275
  toBeneficiary: u128;
3259
3276
  burned: u128;
3260
3277
  }>;
3278
+ TreasuryRecordingError: AugmentedEvent<ApiType, [
3279
+ vaultId: u32,
3280
+ frameId: u64,
3281
+ vaultEarnings: u128,
3282
+ error: SpRuntimeDispatchError
3283
+ ], {
3284
+ vaultId: u32;
3285
+ frameId: u64;
3286
+ vaultEarnings: u128;
3287
+ error: SpRuntimeDispatchError;
3288
+ }>;
3261
3289
  VaultBitcoinXpubChange: AugmentedEvent<ApiType, [vaultId: u32], {
3262
3290
  vaultId: u32;
3263
3291
  }>;
@@ -3413,7 +3441,7 @@ declare module '@polkadot/api-base/types/storage' {
3413
3441
  ]>;
3414
3442
  /**
3415
3443
  * Expiration of bitcoin locks by bitcoin height. Funds are burned since the user did not
3416
- * unlock it
3444
+ * unlock it. Bitcoin will go to vault
3417
3445
  **/
3418
3446
  lockExpirationsByBitcoinHeight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u64>>, [
3419
3447
  u64
@@ -3784,33 +3812,6 @@ declare module '@polkadot/api-base/types/storage' {
3784
3812
  IsmpHostStateMachine
3785
3813
  ]>;
3786
3814
  };
3787
- liquidityPools: {
3788
- /**
3789
- * The liquidity pool for the current frame. This correlates with the bids coming in for the
3790
- * current frame. Sorted with the biggest share last. (current frame + 1)
3791
- **/
3792
- capitalActive: AugmentedQuery<ApiType, () => Observable<Vec<PalletLiquidityPoolsLiquidityPoolCapital>>, [
3793
- ]>;
3794
- /**
3795
- * The liquidity pool still raising capital. (current frame + 2)
3796
- **/
3797
- capitalRaising: AugmentedQuery<ApiType, () => Observable<Vec<PalletLiquidityPoolsLiquidityPoolCapital>>, [
3798
- ]>;
3799
- /**
3800
- * Any vaults that have been pre-registered for bonding argons. This is used by the vault
3801
- * operator to allocate argons to be bonded once bitcoins are securitized in their vault.
3802
- **/
3803
- prebondedByVaultId: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletLiquidityPoolsPrebondedArgons>>, [
3804
- u32
3805
- ]>;
3806
- /**
3807
- * The currently earning contributors for the current epoch's bond funds. Sorted by highest
3808
- * bids first
3809
- **/
3810
- vaultPoolsByFrame: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, PalletLiquidityPoolsLiquidityPool>>, [
3811
- u64
3812
- ]>;
3813
- };
3814
3815
  miningSlot: {
3815
3816
  /**
3816
3817
  * Lookup by account id to the corresponding index in MinersByCohort and MinerXorKeysByCohort
@@ -4284,6 +4285,33 @@ declare module '@polkadot/api-base/types/storage' {
4284
4285
  storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, [
4285
4286
  ]>;
4286
4287
  };
4288
+ treasury: {
4289
+ /**
4290
+ * The treasury pool for the current frame. This correlates with the bids coming in for the
4291
+ * current frame. Sorted with the biggest share last. (current frame)
4292
+ **/
4293
+ capitalActive: AugmentedQuery<ApiType, () => Observable<Vec<PalletTreasuryTreasuryCapital>>, [
4294
+ ]>;
4295
+ /**
4296
+ * The treasury pool still raising capital. (current frame + 1)
4297
+ **/
4298
+ capitalRaising: AugmentedQuery<ApiType, () => Observable<Vec<PalletTreasuryTreasuryCapital>>, [
4299
+ ]>;
4300
+ /**
4301
+ * Any vaults that have been pre-registered for bonding argons. This is used by the vault
4302
+ * operator to allocate argons to be bonded once bitcoins are securitized in their vault.
4303
+ **/
4304
+ prebondedByVaultId: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryPrebondedArgons>>, [
4305
+ u32
4306
+ ]>;
4307
+ /**
4308
+ * The currently earning contributors for the current epoch's bond funds. Sorted by highest
4309
+ * bids first
4310
+ **/
4311
+ vaultPoolsByFrame: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, PalletTreasuryTreasuryPool>>, [
4312
+ u64
4313
+ ]>;
4314
+ };
4287
4315
  txPause: {
4288
4316
  /**
4289
4317
  * The set of calls that are explicitly paused.
@@ -4314,7 +4342,7 @@ declare module '@polkadot/api-base/types/storage' {
4314
4342
  u64
4315
4343
  ]>;
4316
4344
  /**
4317
- * Tracks revenue from Bitcoin Locks and Liquidity Pools for the trailing frames for each vault
4345
+ * Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
4318
4346
  * (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
4319
4347
  * collect expiration window (`RevenueCollectionExpirationFrames`).
4320
4348
  **/
@@ -4327,6 +4355,12 @@ declare module '@polkadot/api-base/types/storage' {
4327
4355
  vaultFundsReleasingByHeight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<u32>>, [
4328
4356
  u64
4329
4357
  ]>;
4358
+ /**
4359
+ * Vaults by owner
4360
+ **/
4361
+ vaultIdByOperator: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [
4362
+ AccountId32
4363
+ ]>;
4330
4364
  /**
4331
4365
  * Vaults by id
4332
4366
  **/
@@ -4810,45 +4844,6 @@ declare module '@polkadot/api-base/types/submittable' {
4810
4844
  Vec<IsmpHostStateMachine>
4811
4845
  ]>;
4812
4846
  };
4813
- liquidityPools: {
4814
- /**
4815
- * Bond argons to a Vault's next liquidity pool, tied to the next frame (aka,
4816
- * tomorrow noon EDT to day after tomorrow noon). The amount bonded to the pool cannot
4817
- * exceed 1/10th of the activated securitization for the vault.
4818
- *
4819
- * The bonded argons and profits will be automatically rolled over to the next fund up to
4820
- * the max securitization activated.
4821
- *
4822
- * - `origin`: The account that is joining the fund
4823
- * - `vault_id`: The vault id that the account would like to join a fund for
4824
- * - `amount`: The amount of argons to contribute to the fund. If you change this amount,
4825
- * it will just add the incremental amount
4826
- **/
4827
- bondArgons: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4828
- u32,
4829
- u128
4830
- ]>;
4831
- /**
4832
- * Allows a user to remove their bonded argons from the fund after the hold is released
4833
- * (once epoch starting at bonded frame is complete).
4834
- **/
4835
- unbondArgons: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, frameId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4836
- u32,
4837
- u64
4838
- ]>;
4839
- /**
4840
- * Set the prebonded argons for a vault. This is used by the vault operator to
4841
- * pre-register funding for each frame. The total allocation will be capped per frame using
4842
- * the `max_amount_per_frame` parameter.
4843
- *
4844
- * NOTE: calling this a second time will ensure your max_amount_per_frame is updated.
4845
- * However, it will not reduce your allocation
4846
- **/
4847
- vaultOperatorPrebond: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, maxAmountPerFrame: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4848
- u32,
4849
- u128
4850
- ]>;
4851
- };
4852
4847
  miningSlot: {
4853
4848
  /**
4854
4849
  * Submit a bid for a mining slot in the next cohort. Once all spots are filled in the next
@@ -5397,7 +5392,7 @@ declare module '@polkadot/api-base/types/submittable' {
5397
5392
  * `pure` with corresponding parameters.
5398
5393
  *
5399
5394
  * - `spawner`: The account that originally called `pure` to create this account.
5400
- * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
5395
+ * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
5401
5396
  * - `proxy_type`: The proxy type originally passed to `pure`.
5402
5397
  * - `height`: The height of the chain when the call to `pure` was processed.
5403
5398
  * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
@@ -5787,6 +5782,19 @@ declare module '@polkadot/api-base/types/submittable' {
5787
5782
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5788
5783
  PalletTokenGatewayAssetRegistration
5789
5784
  ]>;
5785
+ /**
5786
+ * Registers a multi-chain ERC6160 asset without sending any dispatch request.
5787
+ * You should use register_asset_locally when you want to enable token gateway transfers
5788
+ * for an asset that already exists on an external chain.
5789
+ **/
5790
+ registerAssetLocally: AugmentedSubmittable<(asset: PalletTokenGatewayAssetRegistration | {
5791
+ localId?: any;
5792
+ reg?: any;
5793
+ native?: any;
5794
+ precision?: any;
5795
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5796
+ PalletTokenGatewayAssetRegistration
5797
+ ]>;
5790
5798
  /**
5791
5799
  * Set the token gateway address for specified chains
5792
5800
  **/
@@ -5834,6 +5842,45 @@ declare module '@polkadot/api-base/types/submittable' {
5834
5842
  TokenGatewayPrimitivesGatewayAssetUpdate
5835
5843
  ]>;
5836
5844
  };
5845
+ treasury: {
5846
+ /**
5847
+ * Bond argons to a Vault's next treasury pool, tied to the next frame (aka,
5848
+ * tomorrow noon EDT to day after tomorrow noon). The amount bonded to the pool cannot
5849
+ * exceed 1/10th of the activated securitization for the vault.
5850
+ *
5851
+ * The bonded argons and profits will be automatically rolled over to the next fund up to
5852
+ * the max securitization activated.
5853
+ *
5854
+ * - `origin`: The account that is joining the fund
5855
+ * - `vault_id`: The vault id that the account would like to join a fund for
5856
+ * - `amount`: The amount of argons to contribute to the fund. If you increase this amount,
5857
+ * it will just add the incremental amount
5858
+ **/
5859
+ bondArgons: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5860
+ u32,
5861
+ u128
5862
+ ]>;
5863
+ /**
5864
+ * Allows a user to remove their bonded argons from the fund after the hold is released
5865
+ * (once epoch starting at bonded frame is complete).
5866
+ **/
5867
+ unbondArgons: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, frameId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5868
+ u32,
5869
+ u64
5870
+ ]>;
5871
+ /**
5872
+ * Set the prebonded argons for a vault. This is used by the vault operator to
5873
+ * pre-register funding for each frame. The total allocation will be capped per frame using
5874
+ * the `max_amount_per_frame` parameter.
5875
+ *
5876
+ * NOTE: calling this a second time will ensure your max_amount_per_frame is updated.
5877
+ * However, it will not reduce your allocation
5878
+ **/
5879
+ vaultOperatorPrebond: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, maxAmountPerFrame: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5880
+ u32,
5881
+ u128
5882
+ ]>;
5883
+ };
5837
5884
  txPause: {
5838
5885
  /**
5839
5886
  * Pause a call.
@@ -6046,7 +6093,7 @@ declare module '@polkadot/api-base/types/submittable' {
6046
6093
  modifyTerms: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, terms: ArgonPrimitivesVaultVaultTerms | {
6047
6094
  bitcoinAnnualPercentRate?: any;
6048
6095
  bitcoinBaseFee?: any;
6049
- liquidityPoolProfitSharing?: any;
6096
+ treasuryProfitSharing?: any;
6050
6097
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6051
6098
  u32,
6052
6099
  ArgonPrimitivesVaultVaultTerms
@@ -7033,6 +7080,7 @@ declare module '@polkadot/types/types/registry' {
7033
7080
  BlockV0: BlockV0;
7034
7081
  BlockV1: BlockV1;
7035
7082
  BlockV2: BlockV2;
7083
+ BlockV3: BlockV3;
7036
7084
  BlockWeights: BlockWeights;
7037
7085
  BodyId: BodyId;
7038
7086
  BodyIdV2: BodyIdV2;
@@ -7234,6 +7282,7 @@ declare module '@polkadot/types/types/registry' {
7234
7282
  Ed25519Signature: Ed25519Signature;
7235
7283
  EIP1559Transaction: EIP1559Transaction;
7236
7284
  EIP2930Transaction: EIP2930Transaction;
7285
+ EIP7702Transaction: EIP7702Transaction;
7237
7286
  ElectionCompute: ElectionCompute;
7238
7287
  ElectionPhase: ElectionPhase;
7239
7288
  ElectionResult: ElectionResult;
@@ -7263,6 +7312,9 @@ declare module '@polkadot/types/types/registry' {
7263
7312
  EthAccessListItem: EthAccessListItem;
7264
7313
  EthAccount: EthAccount;
7265
7314
  EthAddress: EthAddress;
7315
+ EthAuthorizationList: EthAuthorizationList;
7316
+ EthAuthorizationListItem: EthAuthorizationListItem;
7317
+ EthAuthorizationSignature: EthAuthorizationSignature;
7266
7318
  EthBlock: EthBlock;
7267
7319
  EthBloom: EthBloom;
7268
7320
  EthCallRequest: EthCallRequest;
@@ -7278,10 +7330,12 @@ declare module '@polkadot/types/types/registry' {
7278
7330
  EthFilterTopicEntry: EthFilterTopicEntry;
7279
7331
  EthFilterTopicInner: EthFilterTopicInner;
7280
7332
  EthHeader: EthHeader;
7333
+ EthLegacyTransactionSignature: EthLegacyTransactionSignature;
7281
7334
  EthLog: EthLog;
7282
7335
  EthReceipt: EthReceipt;
7283
7336
  EthReceiptV0: EthReceiptV0;
7284
7337
  EthReceiptV3: EthReceiptV3;
7338
+ EthReceiptV4: EthReceiptV4;
7285
7339
  EthRichBlock: EthRichBlock;
7286
7340
  EthRichHeader: EthRichHeader;
7287
7341
  EthStorageProof: EthStorageProof;
@@ -8055,6 +8109,7 @@ declare module '@polkadot/types/types/registry' {
8055
8109
  TransactionV0: TransactionV0;
8056
8110
  TransactionV1: TransactionV1;
8057
8111
  TransactionV2: TransactionV2;
8112
+ TransactionV3: TransactionV3;
8058
8113
  TransactionValidity: TransactionValidity;
8059
8114
  TransactionValidityError: TransactionValidityError;
8060
8115
  TransientValidationData: TransientValidationData;
@@ -8434,6 +8489,13 @@ declare module '@polkadot/types/lookup' {
8434
8489
  readonly proxyType: ArgonRuntimeProxyType;
8435
8490
  readonly disambiguationIndex: u16;
8436
8491
  } & Struct;
8492
+ readonly isPureKilled: boolean;
8493
+ readonly asPureKilled: {
8494
+ readonly pure: AccountId32;
8495
+ readonly spawner: AccountId32;
8496
+ readonly proxyType: ArgonRuntimeProxyType;
8497
+ readonly disambiguationIndex: u16;
8498
+ } & Struct;
8437
8499
  readonly isAnnounced: boolean;
8438
8500
  readonly asAnnounced: {
8439
8501
  readonly real: AccountId32;
@@ -8461,7 +8523,7 @@ declare module '@polkadot/types/lookup' {
8461
8523
  readonly oldDeposit: u128;
8462
8524
  readonly newDeposit: u128;
8463
8525
  } & Struct;
8464
- readonly type: 'ProxyExecuted' | 'PureCreated' | 'Announced' | 'ProxyAdded' | 'ProxyRemoved' | 'DepositPoked';
8526
+ readonly type: 'ProxyExecuted' | 'PureCreated' | 'PureKilled' | 'Announced' | 'ProxyAdded' | 'ProxyRemoved' | 'DepositPoked';
8465
8527
  }
8466
8528
  /** @name ArgonRuntimeProxyType (38) */
8467
8529
  interface ArgonRuntimeProxyType extends Enum {
@@ -8681,14 +8743,14 @@ declare module '@polkadot/types/lookup' {
8681
8743
  readonly vaultId: u32;
8682
8744
  readonly error: SpRuntimeDispatchError;
8683
8745
  } & Struct;
8684
- readonly isLiquidityPoolRecordingError: boolean;
8685
- readonly asLiquidityPoolRecordingError: {
8746
+ readonly isTreasuryRecordingError: boolean;
8747
+ readonly asTreasuryRecordingError: {
8686
8748
  readonly vaultId: u32;
8687
8749
  readonly frameId: u64;
8688
8750
  readonly vaultEarnings: u128;
8689
8751
  readonly error: SpRuntimeDispatchError;
8690
8752
  } & Struct;
8691
- readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'LiquidityPoolRecordingError';
8753
+ readonly type: 'VaultCreated' | 'VaultModified' | 'VaultTermsChangeScheduled' | 'VaultTermsChanged' | 'VaultClosed' | 'VaultBitcoinXpubChange' | 'VaultRevenueUncollected' | 'VaultCollected' | 'FundsLocked' | 'FundLockCanceled' | 'FundsScheduledForRelease' | 'LostBitcoinCompensated' | 'FundsReleased' | 'FundsReleasedError' | 'TreasuryRecordingError';
8692
8754
  }
8693
8755
  /** @name PalletBitcoinLocksEvent (57) */
8694
8756
  interface PalletBitcoinLocksEvent extends Enum {
@@ -8696,7 +8758,8 @@ declare module '@polkadot/types/lookup' {
8696
8758
  readonly asBitcoinLockCreated: {
8697
8759
  readonly utxoId: u64;
8698
8760
  readonly vaultId: u32;
8699
- readonly lockPrice: u128;
8761
+ readonly liquidityPromised: u128;
8762
+ readonly peggedPrice: u128;
8700
8763
  readonly accountId: AccountId32;
8701
8764
  readonly securityFee: u128;
8702
8765
  } & Struct;
@@ -8704,9 +8767,10 @@ declare module '@polkadot/types/lookup' {
8704
8767
  readonly asBitcoinLockRatcheted: {
8705
8768
  readonly utxoId: u64;
8706
8769
  readonly vaultId: u32;
8707
- readonly originalLockPrice: u128;
8770
+ readonly liquidityPromised: u128;
8771
+ readonly originalPeggedPrice: u128;
8708
8772
  readonly securityFee: u128;
8709
- readonly newLockPrice: u128;
8773
+ readonly newPeggedPrice: u128;
8710
8774
  readonly amountBurned: u128;
8711
8775
  readonly accountId: AccountId32;
8712
8776
  } & Struct;
@@ -9458,12 +9522,7 @@ declare module '@polkadot/types/lookup' {
9458
9522
  readonly amount: u128;
9459
9523
  readonly account: AccountId32;
9460
9524
  } & Struct;
9461
- readonly isProtocolRevenueWithdrawn: boolean;
9462
- readonly asProtocolRevenueWithdrawn: {
9463
- readonly amount: u128;
9464
- readonly account: AccountId32;
9465
- } & Struct;
9466
- readonly type: 'HostParamsUpdated' | 'RelayerFeeWithdrawn' | 'ProtocolRevenueWithdrawn';
9525
+ readonly type: 'HostParamsUpdated' | 'RelayerFeeWithdrawn';
9467
9526
  }
9468
9527
  /** @name PalletHyperbridgeVersionedHostParams (126) */
9469
9528
  interface PalletHyperbridgeVersionedHostParams extends Enum {
@@ -9503,10 +9562,15 @@ declare module '@polkadot/types/lookup' {
9503
9562
  readonly asErc6160AssetRegistrationDispatched: {
9504
9563
  readonly commitment: H256;
9505
9564
  } & Struct;
9506
- readonly type: 'AssetTeleported' | 'AssetReceived' | 'AssetRefunded' | 'Erc6160AssetRegistrationDispatched';
9565
+ readonly isAssetRegisteredLocally: boolean;
9566
+ readonly asAssetRegisteredLocally: {
9567
+ readonly localId: u32;
9568
+ readonly assetId: H256;
9569
+ } & Struct;
9570
+ readonly type: 'AssetTeleported' | 'AssetReceived' | 'AssetRefunded' | 'Erc6160AssetRegistrationDispatched' | 'AssetRegisteredLocally';
9507
9571
  }
9508
- /** @name PalletLiquidityPoolsEvent (132) */
9509
- interface PalletLiquidityPoolsEvent extends Enum {
9572
+ /** @name PalletTreasuryEvent (132) */
9573
+ interface PalletTreasuryEvent extends Enum {
9510
9574
  readonly isCouldNotDistributeBidPool: boolean;
9511
9575
  readonly asCouldNotDistributeBidPool: {
9512
9576
  readonly accountId: AccountId32;
@@ -9535,16 +9599,16 @@ declare module '@polkadot/types/lookup' {
9535
9599
  readonly totalActivatedCapital: u128;
9536
9600
  readonly participatingVaults: u32;
9537
9601
  } & Struct;
9538
- readonly isErrorRefundingLiquidityPoolCapital: boolean;
9539
- readonly asErrorRefundingLiquidityPoolCapital: {
9602
+ readonly isErrorRefundingTreasuryCapital: boolean;
9603
+ readonly asErrorRefundingTreasuryCapital: {
9540
9604
  readonly frameId: u64;
9541
9605
  readonly vaultId: u32;
9542
9606
  readonly amount: u128;
9543
9607
  readonly accountId: AccountId32;
9544
9608
  readonly dispatchError: SpRuntimeDispatchError;
9545
9609
  } & Struct;
9546
- readonly isRefundedLiquidityPoolCapital: boolean;
9547
- readonly asRefundedLiquidityPoolCapital: {
9610
+ readonly isRefundedTreasuryCapital: boolean;
9611
+ readonly asRefundedTreasuryCapital: {
9548
9612
  readonly frameId: u64;
9549
9613
  readonly vaultId: u32;
9550
9614
  readonly amount: u128;
@@ -9556,7 +9620,7 @@ declare module '@polkadot/types/lookup' {
9556
9620
  readonly accountId: AccountId32;
9557
9621
  readonly amountPerFrame: u128;
9558
9622
  } & Struct;
9559
- readonly type: 'CouldNotDistributeBidPool' | 'CouldNotBurnBidPool' | 'BidPoolDistributed' | 'NextBidPoolCapitalLocked' | 'ErrorRefundingLiquidityPoolCapital' | 'RefundedLiquidityPoolCapital' | 'VaultOperatorPrebond';
9623
+ readonly type: 'CouldNotDistributeBidPool' | 'CouldNotBurnBidPool' | 'BidPoolDistributed' | 'NextBidPoolCapitalLocked' | 'ErrorRefundingTreasuryCapital' | 'RefundedTreasuryCapital' | 'VaultOperatorPrebond';
9560
9624
  }
9561
9625
  /** @name PalletSkipFeelessPaymentEvent (133) */
9562
9626
  interface PalletSkipFeelessPaymentEvent extends Enum {
@@ -9578,7 +9642,8 @@ declare module '@polkadot/types/lookup' {
9578
9642
  readonly isSigned: boolean;
9579
9643
  readonly asSigned: AccountId32;
9580
9644
  readonly isNone: boolean;
9581
- readonly type: 'Root' | 'Signed' | 'None';
9645
+ readonly isAuthorized: boolean;
9646
+ readonly type: 'Root' | 'Signed' | 'None' | 'Authorized';
9582
9647
  }
9583
9648
  /** @name FrameSystemPhase (136) */
9584
9649
  interface FrameSystemPhase extends Enum {
@@ -9962,7 +10027,7 @@ declare module '@polkadot/types/lookup' {
9962
10027
  interface ArgonPrimitivesVaultVaultTerms extends Struct {
9963
10028
  readonly bitcoinAnnualPercentRate: Compact<u128>;
9964
10029
  readonly bitcoinBaseFee: Compact<u128>;
9965
- readonly liquidityPoolProfitSharing: Compact<Permill>;
10030
+ readonly treasuryProfitSharing: Compact<Permill>;
9966
10031
  }
9967
10032
  /** @name ArgonPrimitivesBitcoinOpaqueBitcoinXpub (208) */
9968
10033
  interface ArgonPrimitivesBitcoinOpaqueBitcoinXpub extends U8aFixed {
@@ -10589,7 +10654,11 @@ declare module '@polkadot/types/lookup' {
10589
10654
  readonly asUpdateAssetPrecision: {
10590
10655
  readonly update: PalletTokenGatewayPrecisionUpdate;
10591
10656
  } & Struct;
10592
- readonly type: 'Teleport' | 'SetTokenGatewayAddresses' | 'CreateErc6160Asset' | 'UpdateErc6160Asset' | 'UpdateAssetPrecision';
10657
+ readonly isRegisterAssetLocally: boolean;
10658
+ readonly asRegisterAssetLocally: {
10659
+ readonly asset: PalletTokenGatewayAssetRegistration;
10660
+ } & Struct;
10661
+ readonly type: 'Teleport' | 'SetTokenGatewayAddresses' | 'CreateErc6160Asset' | 'UpdateErc6160Asset' | 'UpdateAssetPrecision' | 'RegisterAssetLocally';
10593
10662
  }
10594
10663
  /** @name PalletTokenGatewayTeleportParams (302) */
10595
10664
  interface PalletTokenGatewayTeleportParams extends Struct {
@@ -10629,8 +10698,8 @@ declare module '@polkadot/types/lookup' {
10629
10698
  readonly assetId: u32;
10630
10699
  readonly precisions: BTreeMap<IsmpHostStateMachine, u8>;
10631
10700
  }
10632
- /** @name PalletLiquidityPoolsCall (319) */
10633
- interface PalletLiquidityPoolsCall extends Enum {
10701
+ /** @name PalletTreasuryCall (319) */
10702
+ interface PalletTreasuryCall extends Enum {
10634
10703
  readonly isBondArgons: boolean;
10635
10704
  readonly asBondArgons: {
10636
10705
  readonly vaultId: u32;
@@ -10801,10 +10870,10 @@ declare module '@polkadot/types/lookup' {
10801
10870
  readonly satoshisReleased: Compact<u64>;
10802
10871
  readonly securitizationActivated: Compact<u128>;
10803
10872
  readonly securitization: Compact<u128>;
10804
- readonly liquidityPoolVaultEarnings: Compact<u128>;
10805
- readonly liquidityPoolTotalEarnings: Compact<u128>;
10806
- readonly liquidityPoolVaultCapital: Compact<u128>;
10807
- readonly liquidityPoolExternalCapital: Compact<u128>;
10873
+ readonly treasuryVaultEarnings: Compact<u128>;
10874
+ readonly treasuryTotalEarnings: Compact<u128>;
10875
+ readonly treasuryVaultCapital: Compact<u128>;
10876
+ readonly treasuryExternalCapital: Compact<u128>;
10808
10877
  readonly uncollectedRevenue: Compact<u128>;
10809
10878
  }
10810
10879
  /** @name PalletVaultsError (385) */
@@ -10836,12 +10905,14 @@ declare module '@polkadot/types/lookup' {
10836
10905
  readonly isUnableToGenerateVaultBitcoinPubkey: boolean;
10837
10906
  readonly isFundingChangeAlreadyScheduled: boolean;
10838
10907
  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';
10908
+ readonly isAccountAlreadyHasVault: boolean;
10909
+ 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' | 'AccountAlreadyHasVault';
10840
10910
  }
10841
10911
  /** @name PalletBitcoinLocksLockedBitcoin (386) */
10842
10912
  interface PalletBitcoinLocksLockedBitcoin extends Struct {
10843
10913
  readonly vaultId: Compact<u32>;
10844
- readonly lockPrice: u128;
10914
+ readonly liquidityPromised: u128;
10915
+ readonly peggedPrice: u128;
10845
10916
  readonly ownerAccount: AccountId32;
10846
10917
  readonly securityFees: u128;
10847
10918
  readonly satoshis: Compact<u64>;
@@ -11117,9 +11188,9 @@ declare module '@polkadot/types/lookup' {
11117
11188
  readonly asBitcoinLocks: PalletBitcoinLocksHoldReason;
11118
11189
  readonly isBlockRewards: boolean;
11119
11190
  readonly asBlockRewards: PalletBlockRewardsHoldReason;
11120
- readonly isLiquidityPools: boolean;
11121
- readonly asLiquidityPools: PalletLiquidityPoolsHoldReason;
11122
- readonly type: 'MiningSlot' | 'Vaults' | 'BitcoinLocks' | 'BlockRewards' | 'LiquidityPools';
11191
+ readonly isTreasury: boolean;
11192
+ readonly asTreasury: PalletTreasuryHoldReason;
11193
+ readonly type: 'MiningSlot' | 'Vaults' | 'BitcoinLocks' | 'BlockRewards' | 'Treasury';
11123
11194
  }
11124
11195
  /** @name PalletMiningSlotHoldReason (462) */
11125
11196
  interface PalletMiningSlotHoldReason extends Enum {
@@ -11143,10 +11214,10 @@ declare module '@polkadot/types/lookup' {
11143
11214
  readonly isMaturationPeriod: boolean;
11144
11215
  readonly type: 'MaturationPeriod';
11145
11216
  }
11146
- /** @name PalletLiquidityPoolsHoldReason (466) */
11147
- interface PalletLiquidityPoolsHoldReason extends Enum {
11148
- readonly isContributedToLiquidityPool: boolean;
11149
- readonly type: 'ContributedToLiquidityPool';
11217
+ /** @name PalletTreasuryHoldReason (466) */
11218
+ interface PalletTreasuryHoldReason extends Enum {
11219
+ readonly isContributedToTreasury: boolean;
11220
+ readonly type: 'ContributedToTreasury';
11150
11221
  }
11151
11222
  /** @name FrameSupportTokensMiscIdAmountRuntimeFreezeReason (469) */
11152
11223
  interface FrameSupportTokensMiscIdAmountRuntimeFreezeReason extends Struct {
@@ -11211,7 +11282,8 @@ declare module '@polkadot/types/lookup' {
11211
11282
  readonly isConsensusClientCreationFailed: boolean;
11212
11283
  readonly isUnbondingPeriodUpdateFailed: boolean;
11213
11284
  readonly isChallengePeriodUpdateFailed: boolean;
11214
- readonly type: 'InvalidMessage' | 'MessageNotFound' | 'ConsensusClientCreationFailed' | 'UnbondingPeriodUpdateFailed' | 'ChallengePeriodUpdateFailed';
11285
+ readonly isErrorChargingFee: boolean;
11286
+ readonly type: 'InvalidMessage' | 'MessageNotFound' | 'ConsensusClientCreationFailed' | 'UnbondingPeriodUpdateFailed' | 'ChallengePeriodUpdateFailed' | 'ErrorChargingFee';
11215
11287
  }
11216
11288
  /** @name PalletHyperbridgeError (480) */
11217
11289
  type PalletHyperbridgeError = Null;
@@ -11228,22 +11300,28 @@ declare module '@polkadot/types/lookup' {
11228
11300
  readonly isNotAssetOwner: boolean;
11229
11301
  readonly type: 'UnregisteredAsset' | 'AssetTeleportError' | 'CoprocessorNotConfigured' | 'DispatchError' | 'AssetCreationError' | 'AssetDecimalsNotFound' | 'NotInitialized' | 'UnknownAsset' | 'NotAssetOwner';
11230
11302
  }
11231
- /** @name PalletLiquidityPoolsLiquidityPool (484) */
11232
- interface PalletLiquidityPoolsLiquidityPool extends Struct {
11233
- readonly contributorBalances: Vec<ITuple<[AccountId32, u128]>>;
11303
+ /** @name PalletTreasuryTreasuryPool (484) */
11304
+ interface PalletTreasuryTreasuryPool extends Struct {
11305
+ readonly bondHolders: Vec<ITuple<[AccountId32, PalletTreasuryBondHolder]>>;
11234
11306
  readonly doNotRenew: Vec<AccountId32>;
11235
11307
  readonly isRolledOver: bool;
11236
- readonly distributedProfits: Option<u128>;
11308
+ readonly distributedEarnings: Option<u128>;
11237
11309
  readonly vaultSharingPercent: Compact<Permill>;
11238
11310
  }
11239
- /** @name PalletLiquidityPoolsLiquidityPoolCapital (493) */
11240
- interface PalletLiquidityPoolsLiquidityPoolCapital extends Struct {
11311
+ /** @name PalletTreasuryBondHolder (487) */
11312
+ interface PalletTreasuryBondHolder extends Struct {
11313
+ readonly startingBalance: Compact<u128>;
11314
+ readonly earnings: Compact<u128>;
11315
+ readonly keepEarningsInPool: bool;
11316
+ }
11317
+ /** @name PalletTreasuryTreasuryCapital (494) */
11318
+ interface PalletTreasuryTreasuryCapital extends Struct {
11241
11319
  readonly vaultId: Compact<u32>;
11242
11320
  readonly activatedCapital: Compact<u128>;
11243
11321
  readonly frameId: Compact<u64>;
11244
11322
  }
11245
- /** @name PalletLiquidityPoolsPrebondedArgons (495) */
11246
- interface PalletLiquidityPoolsPrebondedArgons extends Struct {
11323
+ /** @name PalletTreasuryPrebondedArgons (496) */
11324
+ interface PalletTreasuryPrebondedArgons extends Struct {
11247
11325
  readonly vaultId: Compact<u32>;
11248
11326
  readonly accountId: AccountId32;
11249
11327
  readonly amountUnbonded: Compact<u128>;
@@ -11251,51 +11329,53 @@ declare module '@polkadot/types/lookup' {
11251
11329
  readonly bondedByStartOffset: Vec<u128>;
11252
11330
  readonly maxAmountPerFrame: Compact<u128>;
11253
11331
  }
11254
- /** @name PalletLiquidityPoolsError (496) */
11255
- interface PalletLiquidityPoolsError extends Enum {
11332
+ /** @name PalletTreasuryError (497) */
11333
+ interface PalletTreasuryError extends Enum {
11256
11334
  readonly isContributionTooLow: boolean;
11257
11335
  readonly isVaultNotAcceptingMiningBonds: boolean;
11258
11336
  readonly isBelowMinimum: boolean;
11259
11337
  readonly isNotAFundContributor: boolean;
11260
11338
  readonly isInternalError: boolean;
11261
- readonly isCouldNotFindLiquidityPool: boolean;
11339
+ readonly isCouldNotFindTreasury: boolean;
11262
11340
  readonly isMaxContributorsExceeded: boolean;
11263
11341
  readonly isActivatedSecuritizationExceeded: boolean;
11264
11342
  readonly isMaxVaultsExceeded: boolean;
11265
11343
  readonly isAlreadyRenewed: boolean;
11266
11344
  readonly isNotAVaultOperator: boolean;
11267
11345
  readonly isMaxAmountBelowMinimum: boolean;
11268
- readonly type: 'ContributionTooLow' | 'VaultNotAcceptingMiningBonds' | 'BelowMinimum' | 'NotAFundContributor' | 'InternalError' | 'CouldNotFindLiquidityPool' | 'MaxContributorsExceeded' | 'ActivatedSecuritizationExceeded' | 'MaxVaultsExceeded' | 'AlreadyRenewed' | 'NotAVaultOperator' | 'MaxAmountBelowMinimum';
11346
+ readonly type: 'ContributionTooLow' | 'VaultNotAcceptingMiningBonds' | 'BelowMinimum' | 'NotAFundContributor' | 'InternalError' | 'CouldNotFindTreasury' | 'MaxContributorsExceeded' | 'ActivatedSecuritizationExceeded' | 'MaxVaultsExceeded' | 'AlreadyRenewed' | 'NotAVaultOperator' | 'MaxAmountBelowMinimum';
11269
11347
  }
11270
- /** @name FrameSystemExtensionsCheckNonZeroSender (499) */
11348
+ /** @name FrameSystemExtensionsAuthorizeCall (500) */
11349
+ type FrameSystemExtensionsAuthorizeCall = Null;
11350
+ /** @name FrameSystemExtensionsCheckNonZeroSender (501) */
11271
11351
  type FrameSystemExtensionsCheckNonZeroSender = Null;
11272
- /** @name FrameSystemExtensionsCheckSpecVersion (500) */
11352
+ /** @name FrameSystemExtensionsCheckSpecVersion (502) */
11273
11353
  type FrameSystemExtensionsCheckSpecVersion = Null;
11274
- /** @name FrameSystemExtensionsCheckTxVersion (501) */
11354
+ /** @name FrameSystemExtensionsCheckTxVersion (503) */
11275
11355
  type FrameSystemExtensionsCheckTxVersion = Null;
11276
- /** @name FrameSystemExtensionsCheckGenesis (502) */
11356
+ /** @name FrameSystemExtensionsCheckGenesis (504) */
11277
11357
  type FrameSystemExtensionsCheckGenesis = Null;
11278
- /** @name FrameSystemExtensionsCheckNonce (505) */
11358
+ /** @name FrameSystemExtensionsCheckNonce (507) */
11279
11359
  interface FrameSystemExtensionsCheckNonce extends Compact<u32> {
11280
11360
  }
11281
- /** @name FrameSystemExtensionsCheckWeight (506) */
11361
+ /** @name FrameSystemExtensionsCheckWeight (508) */
11282
11362
  type FrameSystemExtensionsCheckWeight = Null;
11283
- /** @name PalletTransactionPaymentChargeTransactionPayment (507) */
11363
+ /** @name PalletTransactionPaymentChargeTransactionPayment (509) */
11284
11364
  interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {
11285
11365
  }
11286
- /** @name FrameMetadataHashExtensionCheckMetadataHash (508) */
11366
+ /** @name FrameMetadataHashExtensionCheckMetadataHash (510) */
11287
11367
  interface FrameMetadataHashExtensionCheckMetadataHash extends Struct {
11288
11368
  readonly mode: FrameMetadataHashExtensionMode;
11289
11369
  }
11290
- /** @name FrameMetadataHashExtensionMode (509) */
11370
+ /** @name FrameMetadataHashExtensionMode (511) */
11291
11371
  interface FrameMetadataHashExtensionMode extends Enum {
11292
11372
  readonly isDisabled: boolean;
11293
11373
  readonly isEnabled: boolean;
11294
11374
  readonly type: 'Disabled' | 'Enabled';
11295
11375
  }
11296
- /** @name FrameSystemExtensionsWeightReclaim (510) */
11376
+ /** @name FrameSystemExtensionsWeightReclaim (512) */
11297
11377
  type FrameSystemExtensionsWeightReclaim = Null;
11298
- /** @name ArgonRuntimeRuntime (512) */
11378
+ /** @name ArgonRuntimeRuntime (514) */
11299
11379
  type ArgonRuntimeRuntime = Null;
11300
11380
  }
11301
11381
 
@@ -11389,31 +11469,9 @@ declare class TxResult {
11389
11469
  private reject;
11390
11470
  }
11391
11471
 
11392
- declare class AccountRegistry {
11393
- namedAccounts: Map<string, string>;
11394
- me: string;
11395
- constructor(name?: string);
11396
- getName(address: string): string | undefined;
11397
- register(address: string, name: string): void;
11398
- static factory: (name?: string) => AccountRegistry;
11399
- }
11400
-
11401
11472
  declare const MICROGONS_PER_ARGON = 1000000;
11402
- declare function miniSecretFromUri(uri: string, password?: string): string;
11403
11473
  declare function formatArgons(microgons: bigint | number): string;
11404
- declare function formatPercent(x: BigNumber | undefined): string;
11405
- type NonNullableProps<T> = {
11406
- [K in keyof T]-?: Exclude<T[K], undefined | null>;
11407
- };
11408
- declare function filterUndefined<T extends Record<string, any>>(obj: Partial<T>): NonNullableProps<T>;
11409
11474
  declare function gettersToObject<T>(obj: T): Promise<T>;
11410
- declare function toFixedNumber(value: string | number | BigNumber, // accept string to avoid early precision loss
11411
- decimals: number): bigint;
11412
- declare function convertNumberToFixedU128(value: number): bigint;
11413
- declare function convertFixedU128ToBigNumber(fixedU128: bigint): BigNumber;
11414
- declare function convertPermillToBigNumber(permill: bigint): BigNumber;
11415
- declare function convertNumberToPermill(value: number): bigint;
11416
- declare function eventDataToJson(event: GenericEvent): any;
11417
11475
  declare function dispatchErrorToString(client: ArgonClient, error: DispatchError$1): string;
11418
11476
  declare class ExtrinsicError extends Error {
11419
11477
  readonly errorCode: string;
@@ -11430,310 +11488,14 @@ declare function dispatchErrorToExtrinsicError(client: ArgonClient, error: Dispa
11430
11488
  * @returns A promise that resolves if the extrinsic was successful, and rejects if it failed
11431
11489
  */
11432
11490
  declare function checkForExtrinsicSuccess(events: EventRecord[], client: ArgonClient): Promise<void>;
11433
- /**
11434
- * JSON with support for BigInt in JSON.stringify and JSON.parse
11435
- */
11436
- declare class JsonExt {
11437
- static stringify(obj: any, space?: number): string;
11438
- static parse<T = any>(str: string): T;
11439
- }
11440
- declare function createNanoEvents<Events extends EventsMap = DefaultEvents>(): TypedEmitter<Events>;
11441
- declare class TypedEmitter<Events extends EventsMap = DefaultEvents> {
11442
- private events;
11443
- emit<K extends keyof Events>(this: this, event: K, ...args: Parameters<Events[K]>): void;
11444
- on<K extends keyof Events>(this: this, event: K, cb: Events[K]): () => void;
11445
- }
11446
- interface EventsMap {
11447
- [event: string]: any;
11448
- }
11449
- interface DefaultEvents extends EventsMap {
11450
- [event: string]: (...args: any) => void;
11451
- }
11452
-
11453
- type BlockWatchEvents = {
11454
- block: (header: Header$1, digests: {
11455
- tick: number;
11456
- author: string;
11457
- }, events: GenericEvent[]) => void;
11458
- 'vaults-updated': (header: Header$1, vaultIds: Set<number>) => void;
11459
- 'bitcoin-verified': (header: Header$1, lockedBitcoin: {
11460
- utxoId: number;
11461
- vaultId: number;
11462
- lockPrice: bigint;
11463
- }) => void;
11464
- 'mining-bid': (header: Header$1, bid: {
11465
- amount: bigint;
11466
- accountId: string;
11467
- }) => void;
11468
- 'mining-bid-ousted': (header: Header$1, bid: {
11469
- preservedArgonotHold: boolean;
11470
- accountId: string;
11471
- }) => void;
11472
- event: (header: Header$1, event: GenericEvent) => void;
11473
- };
11474
- declare function getTickFromHeader(client: ArgonClient, header: Header$1): number | undefined;
11475
- declare function getAuthorFromHeader(client: ArgonClient, header: Header$1): string | undefined;
11476
- declare class BlockWatch {
11477
- private readonly mainchain;
11478
- private options;
11479
- readonly events: TypedEmitter<BlockWatchEvents>;
11480
- readonly locksById: {
11481
- [utxoId: number]: {
11482
- vaultId: number;
11483
- lockPrice: bigint;
11484
- };
11485
- };
11486
- private unsubscribe?;
11487
- constructor(mainchain: Promise<ArgonClient>, options?: {
11488
- finalizedBlocks?: boolean;
11489
- shouldLog?: boolean;
11490
- });
11491
- stop(): void;
11492
- start(): Promise<void>;
11493
- private watchBlocks;
11494
- private processBlock;
11495
- private getBitcoinLockDetails;
11496
- }
11497
-
11498
- /**
11499
- * A frame starts with the bidding start time (noon EDT), and ends the next day at noon EDT. Frame 0 was the first day of
11500
- * bidding, and frame 1 began once the first miners were selected. This occurred on February 24th, 2025 at 12pm EDT.
11501
- *
11502
- * This class calculates fromeId from ticks.
11503
- */
11504
- declare class FrameCalculator {
11505
- miningConfig: {
11506
- ticksBetweenSlots: number;
11507
- slotBiddingStartAfterTicks: number;
11508
- } | undefined;
11509
- genesisTick: number | undefined;
11510
- tickMillis: number | undefined;
11511
- load(client: ArgonClient): Promise<{
11512
- ticksBetweenFrames: number;
11513
- slotBiddingStartAfterTicks: number;
11514
- genesisTick: number;
11515
- tickMillis: number;
11516
- biddingStartTick: number;
11517
- }>;
11518
- getForTick(client: ArgonClient, tick: number): Promise<number>;
11519
- getTickRangeForFrame(client: ArgonClient, frameId: number): Promise<[number, number]>;
11520
- getForHeader(client: ArgonClient, header: Header): Promise<number | undefined>;
11521
- static frameToDateRange(frameId: number, config: {
11522
- ticksBetweenFrames: number;
11523
- biddingStartTick: number;
11524
- tickMillis: number;
11525
- }): [Date, Date];
11526
- static calculateTickRangeForFrame(frameId: number, config: {
11527
- ticksBetweenFrames: number;
11528
- biddingStartTick: number;
11529
- }): [number, number];
11530
- private getConfig;
11531
- }
11532
11491
 
11533
- declare class AccountMiners {
11534
- private accountset;
11535
- private options;
11536
- events: TypedEmitter<{
11537
- mined: (header: Header, earnings: {
11538
- author: string;
11539
- argons: bigint;
11540
- argonots: bigint;
11541
- forCohortWithStartingFrameId: number;
11542
- duringFrameId: number;
11543
- }) => void;
11544
- minted: (header: Header, minted: {
11545
- accountId: string;
11546
- argons: bigint;
11547
- forCohortWithStartingFrameId: number;
11548
- duringFrameId: number;
11549
- }) => void;
11550
- }>;
11551
- frameCalculator: FrameCalculator;
11552
- private trackedAccountsByAddress;
11553
- constructor(accountset: Accountset, registeredMiners: (ISubaccountMiner & {
11554
- seat: IMiningIndex;
11555
- })[], options?: {
11556
- shouldLog: boolean;
11557
- });
11558
- watch(): Promise<BlockWatch>;
11559
- onBlock(header: Header, digests: {
11560
- author: string;
11561
- tick: number;
11562
- }, events: GenericEvent$1[]): Promise<{
11563
- [cohortStartingFrameId: number]: {
11564
- argonsMinted: bigint;
11565
- argonsMined: bigint;
11566
- argonotsMined: bigint;
11567
- };
11568
- duringFrameId: number;
11569
- }>;
11570
- private newCohortMiners;
11571
- static loadAt(accountset: Accountset, options?: {
11572
- blockHash?: Uint8Array;
11573
- shouldLog?: boolean;
11574
- }): Promise<AccountMiners>;
11575
- }
11576
-
11577
- type SubaccountRange = readonly number[];
11578
- type IAddressNames = Map<string, string>;
11579
- interface ISubaccountMiner {
11580
- address: string;
11581
- subaccountIndex: number;
11582
- seat?: IMiningIndex;
11583
- isLastDay: boolean;
11584
- }
11585
- interface IMiningIndex {
11586
- startingFrameId: number;
11587
- index: number;
11588
- bidAmount: bigint;
11589
- }
11590
- declare class Accountset {
11591
- txSubmitterPair: KeyringPair;
11592
- isProxy: boolean;
11593
- seedAddress: string;
11594
- subAccountsByAddress: {
11595
- [address: string]: {
11596
- index: number;
11597
- pair?: KeyringPair;
11598
- };
11599
- };
11600
- accountRegistry: AccountRegistry;
11601
- readonly client: Promise<ArgonClient>;
11602
- get addresses(): string[];
11603
- get namedAccounts(): IAddressNames;
11604
- private readonly sessionKeySeed;
11605
- constructor(options: {
11606
- client: Promise<ArgonClient>;
11607
- accountRegistry?: AccountRegistry;
11608
- subaccountRange?: SubaccountRange;
11609
- sessionKeySeedOrMnemonic?: string;
11610
- name?: string;
11611
- } & ({
11612
- seedAccount: KeyringPair;
11613
- } | {
11614
- seedAddress: string;
11615
- isProxy: true;
11616
- txSubmitter: KeyringPair;
11617
- }));
11618
- submitterBalance(blockHash?: Uint8Array): Promise<bigint>;
11619
- balance(blockHash?: Uint8Array): Promise<bigint>;
11620
- totalArgonsAt(blockHash?: Uint8Array): Promise<{
11621
- address: string;
11622
- amount: bigint;
11623
- index: number;
11624
- }[]>;
11625
- totalArgonotsAt(blockHash?: Uint8Array): Promise<{
11626
- address: string;
11627
- amount: bigint;
11628
- index: number;
11629
- }[]>;
11630
- getAvailableMinerAccounts(maxSeats: number): Promise<{
11631
- index: number;
11632
- isRebid: boolean;
11633
- address: string;
11634
- }[]>;
11635
- loadRegisteredMiners(api: ApiDecoration<'promise'>): Promise<ISubaccountMiner[]>;
11636
- miningSeats(blockHash?: Uint8Array): Promise<(ISubaccountMiner & {
11637
- hasWinningBid: boolean;
11638
- bidAmount?: bigint;
11639
- })[]>;
11640
- bids(blockHash?: Uint8Array): Promise<{
11641
- address: string;
11642
- bidPlace?: number;
11643
- index: number;
11644
- bidAmount: bigint;
11645
- }[]>;
11646
- consolidate(subaccounts?: SubaccountRange): Promise<{
11647
- index: number;
11648
- inBlock?: string;
11649
- failedError?: Error;
11650
- }[]>;
11651
- status(opts: {
11652
- argons: Awaited<ReturnType<Accountset['totalArgonsAt']>>;
11653
- argonots: Awaited<ReturnType<Accountset['totalArgonotsAt']>>;
11654
- seats: Awaited<ReturnType<Accountset['miningSeats']>>;
11655
- bids: Awaited<ReturnType<Accountset['bids']>>;
11656
- accountSubset?: ReturnType<Accountset['getAccountsInRange']>;
11657
- }): IAccountStatus[];
11658
- registerKeys(url: string): Promise<void>;
11659
- keys(keysVersion?: number): {
11660
- gran: {
11661
- privateKey: string;
11662
- publicKey: string;
11663
- rawPublicKey: Uint8Array;
11664
- };
11665
- seal: {
11666
- privateKey: string;
11667
- publicKey: string;
11668
- rawPublicKey: Uint8Array;
11669
- };
11670
- };
11671
- tx(tx: SubmittableExtrinsic$1): Promise<TxSubmitter>;
11672
- /**
11673
- * Create but don't submit a mining bid transaction.
11674
- * @param options
11675
- */
11676
- createMiningBidTx(options: {
11677
- subaccounts: {
11678
- address: string;
11679
- }[];
11680
- bidAmount: bigint;
11681
- }): Promise<TxSubmitter>;
11682
- /**
11683
- * Create a mining bid. This will create a bid for each account in the given range from the seed account as funding.
11684
- */
11685
- createMiningBids(options: {
11686
- subaccountRange?: SubaccountRange;
11687
- bidAmount: bigint;
11688
- tip?: bigint;
11689
- }): Promise<{
11690
- finalFee?: bigint;
11691
- blockHash?: Uint8Array;
11692
- bidError?: Error;
11693
- successfulBids?: number;
11694
- }>;
11695
- getAccountsInRange(range?: SubaccountRange): IAccountAndKey[];
11696
- watchBlocks(shouldLog?: boolean): Promise<AccountMiners>;
11697
- }
11698
- type IAccountAndKey = {
11699
- pair?: KeyringPair;
11700
- index: number;
11701
- address: string;
11702
- };
11703
- interface IAccountStatus {
11704
- index: string;
11705
- address: string;
11706
- argons: string;
11707
- argonots: string;
11708
- seat?: IMiningIndex;
11709
- bidPlace?: number;
11710
- bidAmount?: bigint;
11711
- isWorkingOn?: boolean;
11712
- }
11492
+ declare function keyringFromSuri(suri: string, cryptoType?: 'sr25519' | 'ed25519'): KeyringPair;
11493
+ declare function createKeyringPair(opts: {
11494
+ cryptoType?: 'sr25519' | 'ed25519';
11495
+ }): KeyringPair;
11713
11496
 
11714
- declare class MiningBids {
11715
- readonly client: Promise<ArgonClient>;
11716
- private shouldLog;
11717
- nextCohort: {
11718
- accountId: string;
11719
- isOurs: string;
11720
- bidAmount: bigint;
11721
- }[];
11722
- constructor(client: Promise<ArgonClient>, shouldLog?: boolean);
11723
- maxCohortSize(): Promise<number>;
11724
- onCohortChange(options: {
11725
- onBiddingStart?: (cohortStartingFrameId: number) => Promise<void>;
11726
- onBiddingEnd?: (cohortStartingFrameId: number) => Promise<void>;
11727
- }): Promise<{
11728
- unsubscribe: () => void;
11729
- }>;
11730
- watch(accountNames: IAddressNames, blockHash?: Uint8Array, printFn?: (blockNumber: number) => void): Promise<{
11731
- unsubscribe: () => void;
11732
- }>;
11733
- loadAt(accountNames: IAddressNames, blockHash?: Uint8Array): Promise<void>;
11734
- private toBid;
11735
- print(): void;
11736
- }
11497
+ declare function getTickFromHeader(client: ArgonClient, header: Header): number | undefined;
11498
+ declare function getAuthorFromHeader(client: ArgonClient, header: Header): string | undefined;
11737
11499
 
11738
11500
  declare class Vault {
11739
11501
  tickDuration: number;
@@ -11759,7 +11521,7 @@ declare class Vault {
11759
11521
  minimumSecuritization(): bigint;
11760
11522
  activatedSecuritization(): bigint;
11761
11523
  /**
11762
- * Returns the amount of Argons available to match per liquidity pool
11524
+ * Returns the amount of Argons available to match per treasury pool
11763
11525
  */
11764
11526
  activatedSecuritizationPerSlot(): bigint;
11765
11527
  calculateBitcoinFee(amount: bigint): bigint;
@@ -11770,7 +11532,7 @@ declare class Vault {
11770
11532
  annualPercentRate: number;
11771
11533
  baseFee: bigint | number;
11772
11534
  bitcoinXpub: string;
11773
- liquidityPoolProfitSharing: number;
11535
+ treasuryProfitSharing: number;
11774
11536
  tip?: bigint;
11775
11537
  doNotExceedBalance?: bigint;
11776
11538
  txProgressCallback?: ITxProgressCallback;
@@ -11784,249 +11546,57 @@ declare class Vault {
11784
11546
  interface ITerms {
11785
11547
  readonly bitcoinAnnualPercentRate: BigNumber;
11786
11548
  readonly bitcoinBaseFee: bigint;
11787
- readonly liquidityPoolProfitSharing: BigNumber;
11788
- }
11789
-
11790
- declare class VaultMonitor {
11791
- readonly accountset: Accountset;
11792
- readonly alerts: WatchAlerts;
11793
- readonly options: {
11794
- vaultOnlyWatchMode?: boolean;
11795
- shouldLog?: boolean;
11796
- };
11797
- events: TypedEmitter<{
11798
- 'bitcoin-space-above': (vaultId: number, amount: bigint) => void;
11799
- 'liquidity-pool-space-above': (vaultId: number, amount: bigint) => void;
11800
- }>;
11801
- readonly vaultsById: {
11802
- [id: number]: Vault;
11803
- };
11804
- readonly blockWatch: BlockWatch;
11805
- readonly mainchain: Promise<ArgonClient>;
11806
- activatedCapitalByVault: {
11807
- [vaultId: number]: bigint;
11808
- };
11809
- private lastPrintedBids;
11810
- private readonly miningBids;
11811
- private tickDuration;
11812
- private vaultOnlyWatchMode;
11813
- private shouldLog;
11814
- constructor(accountset: Accountset, alerts?: WatchAlerts, options?: {
11815
- vaultOnlyWatchMode?: boolean;
11816
- shouldLog?: boolean;
11817
- });
11818
- stop(): void;
11819
- monitor(justPrint?: boolean): Promise<void>;
11820
- printVaults(): void;
11821
- private recheckAfterActive;
11822
- private onVaultsUpdated;
11823
- private reloadVaultsAt;
11824
- private updateVault;
11825
- private checkAlerts;
11826
- private checkMiningBondAlerts;
11827
- private printBids;
11549
+ readonly treasuryProfitSharing: BigNumber;
11828
11550
  }
11829
- type WatchAlerts = {
11830
- /**
11831
- * Alert when a vault has available space for bitcoins to move in greater than or equal to this amount
11832
- */
11833
- bitcoinSpaceAvailable?: bigint;
11834
- /**
11835
- * Liquidity pool space available
11836
- */
11837
- liquidityPoolSpaceAvailable?: bigint;
11838
- };
11839
11551
 
11840
- interface IBidDetail {
11841
- address: string;
11842
- bidMicrogons: bigint;
11843
- bidAtTick: number;
11844
- }
11845
- declare class CohortBidder {
11846
- accountset: Accountset;
11847
- cohortStartingFrameId: number;
11848
- subaccounts: {
11849
- index: number;
11850
- isRebid: boolean;
11851
- address: string;
11852
- }[];
11853
- options: {
11854
- minBid: bigint;
11855
- maxBid: bigint;
11856
- maxBudget: bigint;
11857
- bidIncrement: bigint;
11858
- bidDelay: number;
11859
- tipPerTransaction?: bigint;
11860
- };
11861
- callbacks?: {
11862
- onBidsUpdated?(args: {
11863
- bids: IBidDetail[];
11864
- atBlockNumber: number;
11865
- tick: number;
11866
- }): void;
11867
- onBidParamsAdjusted?(args: {
11868
- tick: number;
11869
- blockNumber: number;
11870
- maxSeats: number;
11871
- winningBidCount: number;
11872
- reason: "max-bid-too-low" | "insufficient-balance" | "max-budget-too-low";
11873
- availableBalanceForBids: bigint;
11874
- }): void;
11875
- onBidsSubmitted?(args: {
11876
- tick: number;
11877
- blockNumber: number;
11878
- microgonsPerSeat: bigint;
11879
- txFeePlusTip: bigint;
11880
- submittedCount: number;
11881
- }): void;
11882
- onBidsRejected?(args: {
11883
- tick: number;
11884
- blockNumber: number;
11885
- microgonsPerSeat: bigint;
11886
- submittedCount: number;
11887
- rejectedCount: number;
11888
- bidError: ExtrinsicError;
11889
- }): void;
11890
- } | undefined;
11891
- get clientPromise(): Promise<ArgonClient>;
11892
- txFees: bigint;
11893
- bidsAttempted: number;
11894
- winningBids: IBidDetail[];
11895
- readonly myAddresses: Set<string>;
11896
- readonly currentBids: {
11897
- atBlockNumber: number;
11898
- atTick: number;
11899
- mostRecentBidTick: number;
11900
- bids: IBidDetail[];
11901
- };
11902
- private unsubscribe?;
11903
- private pendingRequest;
11904
- private isStopped;
11905
- private millisPerTick?;
11906
- private minIncrement;
11907
- private nextCohortSize?;
11908
- private lastBidTick;
11909
- private evaluateInterval?;
11910
- constructor(accountset: Accountset, cohortStartingFrameId: number, subaccounts: {
11911
- index: number;
11912
- isRebid: boolean;
11913
- address: string;
11914
- }[], options: {
11915
- minBid: bigint;
11916
- maxBid: bigint;
11917
- maxBudget: bigint;
11918
- bidIncrement: bigint;
11919
- bidDelay: number;
11920
- tipPerTransaction?: bigint;
11921
- }, callbacks?: {
11922
- onBidsUpdated?(args: {
11923
- bids: IBidDetail[];
11924
- atBlockNumber: number;
11925
- tick: number;
11926
- }): void;
11927
- onBidParamsAdjusted?(args: {
11928
- tick: number;
11929
- blockNumber: number;
11930
- maxSeats: number;
11931
- winningBidCount: number;
11932
- reason: "max-bid-too-low" | "insufficient-balance" | "max-budget-too-low";
11933
- availableBalanceForBids: bigint;
11934
- }): void;
11935
- onBidsSubmitted?(args: {
11936
- tick: number;
11937
- blockNumber: number;
11938
- microgonsPerSeat: bigint;
11939
- txFeePlusTip: bigint;
11940
- submittedCount: number;
11941
- }): void;
11942
- onBidsRejected?(args: {
11943
- tick: number;
11944
- blockNumber: number;
11945
- microgonsPerSeat: bigint;
11946
- submittedCount: number;
11947
- rejectedCount: number;
11948
- bidError: ExtrinsicError;
11949
- }): void;
11950
- } | undefined);
11951
- start(): Promise<void>;
11952
- stop(): Promise<CohortBidder['winningBids']>;
11953
- private checkWinningBids;
11954
- private submitBids;
11955
- private scheduleEvaluation;
11956
- private updateBidList;
11957
- private safeRecordParamsAdjusted;
11958
- }
11552
+ declare function toFixedNumber(value: string | number | BigNumber, // accept string to avoid early precision loss
11553
+ decimals: number): bigint;
11554
+ declare function fromFixedNumber(value: bigint, decimals?: number): BigNumber;
11555
+ declare const FIXED_U128_DECIMALS = 18;
11556
+ declare const PERMILL_DECIMALS = 6;
11959
11557
 
11960
- interface IContributor {
11961
- address: string;
11962
- amount: bigint;
11963
- }
11964
- interface IVaultMiningBondFund {
11965
- activatedCapital: bigint;
11966
- contributors?: IContributor[];
11967
- vaultSharingPercent?: BigNumber;
11968
- earnings?: bigint;
11969
- }
11970
- declare class BidPool {
11971
- readonly client: Promise<ArgonClient>;
11972
- readonly keypair: KeyringPair;
11973
- readonly accountRegistry: AccountRegistry;
11974
- bidPoolAmount: bigint;
11975
- nextFrameId: number;
11976
- poolVaultCapitalByFrame: {
11977
- [frameId: number]: {
11978
- [vaultId: number]: IVaultMiningBondFund;
11979
- };
11980
- };
11981
- private vaultSecuritization;
11982
- private printTimeout?;
11983
- private blockWatch;
11984
- private vaultsById;
11985
- private tickDuration?;
11986
- private lastDistributedFrameId?;
11987
- private FrameSubscriptions;
11988
- constructor(client: Promise<ArgonClient>, keypair: KeyringPair, accountRegistry?: AccountRegistry);
11989
- private onVaultsUpdated;
11990
- getBidPool(): Promise<bigint>;
11991
- loadAt(blockHash?: Uint8Array): Promise<void>;
11992
- watch(): Promise<{
11993
- unsubscribe: () => void;
11994
- }>;
11995
- bondArgons(vaultId: number, amount: bigint, options?: {
11996
- tip: bigint;
11997
- }): Promise<TxResult>;
11998
- printDebounce(): void;
11999
- getOperatorName(vaultId: number): string;
12000
- print(): void;
12001
- private setVaultFrameData;
12002
- private createBondCapitalTable;
12003
- private loadFrameData;
11558
+ declare class PriceIndex {
11559
+ btcUsdPrice?: BigNumber;
11560
+ argonotUsdPrice?: BigNumber;
11561
+ argonUsdPrice?: BigNumber;
11562
+ argonUsdTargetPrice?: BigNumber;
11563
+ argonTimeWeightedAverageLiquidity?: BigNumber;
11564
+ lastUpdatedTick?: number;
11565
+ load(client: ArgonClient): Promise<this>;
11566
+ getBtcMicrogonPrice(satoshis: bigint | number): bigint;
11567
+ get rValue(): BigNumber;
11568
+ get argonCpi(): BigNumber;
12004
11569
  }
12005
11570
 
12006
11571
  declare const SATS_PER_BTC = 100000000n;
12007
11572
  declare class BitcoinLocks {
12008
- readonly client: Promise<ArgonClient>;
12009
- constructor(client: Promise<ArgonClient>);
11573
+ readonly client: ArgonClient;
11574
+ constructor(client: ArgonClient);
12010
11575
  getUtxoIdFromEvents(events: GenericEvent$1[]): Promise<number | undefined>;
12011
- getMarketRate(satoshis: bigint): Promise<bigint>;
12012
- getRedemptionRate(satoshis: bigint): Promise<bigint>;
11576
+ getMarketRate(priceIndex: PriceIndex, satoshis: number | bigint): Promise<bigint>;
11577
+ getRedemptionRate(priceIndex: PriceIndex, details: {
11578
+ satoshis: bigint;
11579
+ peggedPrice?: bigint;
11580
+ }): Promise<bigint>;
11581
+ getMarketRateApi(satoshis: bigint): Promise<bigint>;
11582
+ getRedemptionRateApi(satoshis: bigint): Promise<bigint>;
12013
11583
  getConfig(): Promise<IBitcoinLockConfig>;
12014
11584
  getBitcoinConfirmedBlockHeight(): Promise<number>;
12015
11585
  /**
12016
11586
  * Gets the UTXO reference by ID.
12017
11587
  * @param utxoId - The UTXO ID to look up.
12018
- * @param atHeight - Optional block height to query the UTXO reference at a specific point in time.
11588
+ * @param clientAtHeight - Optional client at the block height to query the UTXO reference at a specific point in time.
12019
11589
  * @return An object containing the transaction ID and output index, or undefined if not found.
12020
11590
  * @return.txid - The Bitcoin transaction ID of the UTXO.
12021
11591
  * @return.vout - The output index of the UTXO in the transaction.
12022
11592
  * @return.bitcoinTxid - The Bitcoin transaction ID of the UTXO formatted in little endian
12023
11593
  */
12024
- getUtxoRef(utxoId: number, atHeight?: number): Promise<{
11594
+ getUtxoRef(utxoId: number, clientAtHeight?: ApiDecoration<'promise'>): Promise<{
12025
11595
  txid: string;
12026
11596
  vout: number;
12027
11597
  bitcoinTxid: string;
12028
11598
  } | undefined>;
12029
- getReleaseRequest(utxoId: number, atHeight?: number): Promise<IReleaseRequestDetails | undefined>;
11599
+ getReleaseRequest(utxoId: number, clientAtHeight?: ApiDecoration<'promise'>): Promise<IReleaseRequestDetails | undefined>;
12030
11600
  submitVaultSignature(args: {
12031
11601
  utxoId: number;
12032
11602
  vaultSignature: Uint8Array;
@@ -12048,13 +11618,14 @@ declare class BitcoinLocks {
12048
11618
  findPendingMints(utxoId: number): Promise<bigint[]>;
12049
11619
  createInitializeLockTx(args: {
12050
11620
  vault: Vault;
11621
+ priceIndex: PriceIndex;
12051
11622
  ownerBitcoinPubkey: Uint8Array;
12052
11623
  satoshis: bigint;
12053
11624
  argonKeyring: KeyringPair;
12054
11625
  reducedBalanceBy?: bigint;
12055
11626
  tip?: bigint;
12056
11627
  }): Promise<{
12057
- tx: _polkadot_api_base_types.SubmittableExtrinsic<"promise", _polkadot_types_types_extrinsic.ISubmittableResult>;
11628
+ tx: _polkadot_api_types.SubmittableExtrinsic<"promise", _polkadot_types_types_extrinsic.ISubmittableResult>;
12058
11629
  securityFee: bigint;
12059
11630
  txFee: bigint;
12060
11631
  }>;
@@ -12065,6 +11636,7 @@ declare class BitcoinLocks {
12065
11636
  }>;
12066
11637
  initializeLock(args: {
12067
11638
  vault: Vault;
11639
+ priceIndex: PriceIndex;
12068
11640
  ownerBitcoinPubkey: Uint8Array;
12069
11641
  argonKeyring: KeyringPair;
12070
11642
  satoshis: bigint;
@@ -12076,9 +11648,10 @@ declare class BitcoinLocks {
12076
11648
  txResult: TxResult;
12077
11649
  securityFee: bigint;
12078
11650
  }>;
12079
- requiredSatoshisForArgonLiquidity(argonAmount: bigint): Promise<bigint>;
11651
+ requiredSatoshisForArgonLiquidity(priceIndex: PriceIndex, argonAmount: bigint): Promise<bigint>;
12080
11652
  requestRelease(args: {
12081
11653
  lock: IBitcoinLock;
11654
+ priceIndex: PriceIndex;
12082
11655
  releaseRequest: IReleaseRequest;
12083
11656
  argonKeyring: KeyringPair;
12084
11657
  tip?: bigint;
@@ -12087,14 +11660,18 @@ declare class BitcoinLocks {
12087
11660
  blockHash: Uint8Array;
12088
11661
  blockHeight: number;
12089
11662
  }>;
12090
- releasePrice(satoshis: bigint, lockPrice: bigint): Promise<bigint>;
12091
- getRatchetPrice(lock: IBitcoinLock, vault: Vault): Promise<{
11663
+ releasePrice(priceIndex: PriceIndex, lock: {
11664
+ satoshis: bigint;
11665
+ peggedPrice: bigint;
11666
+ }): Promise<bigint>;
11667
+ getRatchetPrice(lock: IBitcoinLock, priceIndex: PriceIndex, vault: Vault): Promise<{
12092
11668
  burnAmount: bigint;
12093
11669
  ratchetingFee: bigint;
12094
11670
  marketRate: bigint;
12095
11671
  }>;
12096
11672
  ratchet(args: {
12097
11673
  lock: IBitcoinLock;
11674
+ priceIndex: PriceIndex;
12098
11675
  argonKeyring: KeyringPair;
12099
11676
  tip?: bigint;
12100
11677
  vault: Vault;
@@ -12102,27 +11679,13 @@ declare class BitcoinLocks {
12102
11679
  }): Promise<{
12103
11680
  securityFee: bigint;
12104
11681
  txFee: bigint;
12105
- newLockPrice: bigint;
11682
+ newPeggedPrice: bigint;
11683
+ liquidityPromised: bigint;
12106
11684
  pendingMint: bigint;
12107
11685
  burned: bigint;
12108
11686
  blockHeight: number;
12109
11687
  bitcoinBlockHeight: number;
12110
11688
  }>;
12111
- static waitForSpace(accountset: Accountset, options: {
12112
- argonAmount: bigint;
12113
- bitcoinXpub: string;
12114
- maxLockFee?: bigint;
12115
- tip?: bigint;
12116
- satoshiWiggleRoomForDynamicPrice?: bigint;
12117
- }): Promise<{
12118
- satoshis: bigint;
12119
- argons: bigint;
12120
- vaultId: number;
12121
- txFee: bigint;
12122
- securityFee: bigint;
12123
- utxoId: number;
12124
- finalizedPromise: Promise<Uint8Array>;
12125
- }>;
12126
11689
  }
12127
11690
  interface IBitcoinLockConfig {
12128
11691
  lockReleaseCosignDeadlineFrames: number;
@@ -12143,10 +11706,12 @@ interface IBitcoinLock {
12143
11706
  utxoId: number;
12144
11707
  p2wshScriptHashHex: string;
12145
11708
  vaultId: number;
12146
- lockPrice: bigint;
11709
+ peggedPrice: bigint;
11710
+ liquidityPromised: bigint;
12147
11711
  ownerAccount: string;
12148
11712
  satoshis: bigint;
12149
11713
  vaultPubkey: string;
11714
+ securityFees: bigint;
12150
11715
  vaultClaimPubkey: string;
12151
11716
  ownerPubkey: string;
12152
11717
  vaultXpubSources: {
@@ -12162,20 +11727,6 @@ interface IBitcoinLock {
12162
11727
  fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
12163
11728
  }
12164
11729
 
12165
- declare function keyringFromSuri(suri: string, cryptoType?: 'sr25519' | 'ed25519'): KeyringPair;
12166
- declare function createKeyringPair(opts: {
12167
- cryptoType?: 'sr25519' | 'ed25519';
12168
- }): KeyringPair;
12169
-
12170
- interface ArgonClientConfig {
12171
- debug?: boolean;
12172
- keysVersion?: number;
12173
- keySeedOrMnemonic?: string;
12174
- subaccountRange?: string;
12175
- }
12176
- declare function setConfig(newConfig: ArgonClientConfig): void;
12177
- declare function getConfig(): ArgonClientConfig;
12178
-
12179
11730
  type ArgonClient = ApiPromise;
12180
11731
  /**
12181
11732
  * Wait for the crypto library to be ready (requires wasm, which needs async loading in commonjs)
@@ -12184,8 +11735,9 @@ declare function waitForLoad(): Promise<void>;
12184
11735
  /**
12185
11736
  * Get a client for the given host
12186
11737
  * @param host The host to connect to
11738
+ * @param options Additional options for the API
12187
11739
  * @returns The client
12188
11740
  */
12189
- declare function getClient(host: string): Promise<ArgonClient>;
11741
+ declare function getClient(host: string, options?: ApiOptions): Promise<ArgonClient>;
12190
11742
 
12191
- export { AccountMiners, AccountRegistry, Accountset, type ArgonClient, type ArgonClientConfig, BidPool, BitcoinLocks, BlockWatch, CohortBidder, ExtrinsicError, FrameCalculator, type IBitcoinLock, type IBitcoinLockConfig, type IMiningIndex, type IReleaseRequest, type IReleaseRequestDetails, type ISubaccountMiner, type ITxProgressCallback, JsonExt, MICROGONS_PER_ARGON, MiningBids, SATS_PER_BTC, TxResult, TxSubmitter, TypedEmitter, Vault, VaultMonitor, WageProtector, checkForExtrinsicSuccess, convertFixedU128ToBigNumber, convertNumberToFixedU128, convertNumberToPermill, convertPermillToBigNumber, createKeyringPair, createNanoEvents, dispatchErrorToExtrinsicError, dispatchErrorToString, eventDataToJson, filterUndefined, formatArgons, formatPercent, getAuthorFromHeader, getClient, getConfig, getTickFromHeader, gettersToObject, keyringFromSuri, miniSecretFromUri, setConfig, toFixedNumber, waitForLoad };
11743
+ export { type ArgonClient, BitcoinLocks, ExtrinsicError, FIXED_U128_DECIMALS, type IBitcoinLock, type IBitcoinLockConfig, type IReleaseRequest, type IReleaseRequestDetails, type ITerms, type ITxProgressCallback, MICROGONS_PER_ARGON, PERMILL_DECIMALS, PriceIndex, SATS_PER_BTC, TxResult, TxSubmitter, Vault, WageProtector, checkForExtrinsicSuccess, createKeyringPair, dispatchErrorToExtrinsicError, dispatchErrorToString, formatArgons, fromFixedNumber, getAuthorFromHeader, getClient, getTickFromHeader, gettersToObject, keyringFromSuri, toFixedNumber, waitForLoad };