@argonprotocol/mainchain 1.6.0-dev.270525da → 1.6.0-dev.5a8defda

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.6.0-dev.270525da",
3
+ "version": "1.6.0-dev.5a8defda",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "devDependencies": {
74
74
  "@argonprotocol/ethereum-contracts": "workspace:*",
75
- "@argonprotocol/testing": "1.6.0-dev.270525da",
75
+ "@argonprotocol/testing": "1.6.0-dev.5a8defda",
76
76
  "@polkadot/typegen": "^17.0.1",
77
77
  "@substrate/ss58-registry": "^1.51.0",
78
78
  "@types/node": "^20",
@@ -572,9 +572,9 @@ declare module '@polkadot/api-base/types/consts' {
572
572
  **/
573
573
  maxLiquidRepaysPerBlock: u32 & AugmentedConst<ApiType>;
574
574
  /**
575
- * Maximum work in each automatic stage per block: ranked bid decisions, then account
576
- * payout attempts. Failures and empty-auction completion consume work; excess stays
577
- * queued.
575
+ * Maximum work in each automatic stage per block: ranked bid decisions, then principal
576
+ * release and repayment attempts. Failures and empty-auction completion consume work;
577
+ * excess stays queued.
578
578
  **/
579
579
  maxPayoutsPerBlock: u32 & AugmentedConst<ApiType>;
580
580
  /**
@@ -601,10 +601,39 @@ declare module '@polkadot/api-base/types/consts' {
601
601
  };
602
602
  stabilizerPools: {
603
603
  /**
604
- * Opening references retained in financial-day frames, including the checkpoint buffer.
605
- * Zero disables history. Both production runtimes retain 30 frames plus a 3-frame buffer.
604
+ * Closed frames available to prove eligibility. Accepted earnings never expire.
606
605
  **/
607
- maxFramePriceHistoryFrames: u32 & AugmentedConst<ApiType>;
606
+ claimWindowFrames: u32 & AugmentedConst<ApiType>;
607
+ /**
608
+ * Maximum Ethereum handoff gap in milliseconds; finality and relay waits are excluded.
609
+ **/
610
+ continuationGraceMillis: u64 & AugmentedConst<ApiType>;
611
+ /**
612
+ * Maximum beneficiary slots, including reported NFTs held for recovery or collection.
613
+ **/
614
+ maxPositionsPerAccount: u32 & AugmentedConst<ApiType>;
615
+ /**
616
+ * Maximum number of time buckets used to sample one frame. Zero disables sampling.
617
+ **/
618
+ maxPriceBucketsPerFrame: u32 & AugmentedConst<ApiType>;
619
+ /**
620
+ * Closed mining frames retained in the sampled Uniswap price history.
621
+ **/
622
+ maxSampledPriceHistoryFrames: u32 & AugmentedConst<ApiType>;
623
+ /**
624
+ * Minimum share of Mainchain ticks with a valid price in each bucket. Even at zero,
625
+ * each bucket needs a sample to calculate its mean.
626
+ **/
627
+ minPriceBucketCoverage: Percent & AugmentedConst<ApiType>;
628
+ /**
629
+ * Lower and upper reward price boundaries, as percentages of the ARGON USD target.
630
+ * The lower boundary must be positive and strictly below the upper boundary.
631
+ **/
632
+ rewardPriceBand: ITuple<[Percent, Percent]> & AugmentedConst<ApiType>;
633
+ /**
634
+ * Share of rewards assigned to USDC principal. ARGON receives the remainder.
635
+ **/
636
+ usdcRewardShare: Percent & AugmentedConst<ApiType>;
608
637
  };
609
638
  system: {
610
639
  /**
@@ -676,7 +705,7 @@ declare module '@polkadot/api-base/types/consts' {
676
705
  treasury: {
677
706
  /**
678
707
  * Maximum rewarded Argonot value as a multiple of the vault's Argon securitization.
679
- * Zero disables Argonot backing requirements and bonuses.
708
+ * The reward weight is configured separately by `ArgonotParticipationFactor`.
680
709
  **/
681
710
  argonotSecuritizationMultiplier: u32 & AugmentedConst<ApiType>;
682
711
  /**
@@ -684,27 +713,25 @@ declare module '@polkadot/api-base/types/consts' {
684
713
  **/
685
714
  defaultTargetBitcoinPercent: Percent & AugmentedConst<ApiType>;
686
715
  /**
687
- * The maximum number of active Argonot bond lots.
716
+ * Default circulating ARGON fraction used as the stabilizer pool reward reference.
688
717
  **/
689
- maxActiveArgonotBondLots: u32 & AugmentedConst<ApiType>;
718
+ defaultTargetStabilizerPoolPercent: Percent & AugmentedConst<ApiType>;
690
719
  /**
691
- * Maximum live Argon bond lots while direct frame payouts iterate every lot.
720
+ * The maximum number of active Argonot bond lots.
692
721
  **/
693
- maxArgonBondLots: u32 & AugmentedConst<ApiType>;
722
+ maxActiveArgonotBondLots: u32 & AugmentedConst<ApiType>;
694
723
  /**
695
724
  * The maximum percent of ownership-token circulation that can be bonded.
696
725
  **/
697
726
  maxArgonotBondedPercentOfCirculation: Percent & AugmentedConst<ApiType>;
698
727
  /**
699
- * Maximum accounts whose queued bond collateral is attempted in one block.
728
+ * Maximum concrete lots backing one operator across all of its authorities.
700
729
  **/
701
- maxBondCollateralSettlementsPerBlock: u32 & AugmentedConst<ApiType>;
730
+ maxBondCollateralLots: u32 & AugmentedConst<ApiType>;
702
731
  /**
703
- * Owner bond/stake lot count assumed by scan benchmarks and checked by try_state.
704
- * Includes lots awaiting release. Purchases remain unrestricted and scans are not
705
- * truncated.
732
+ * Maximum accounts whose queued bond collateral is attempted in one block.
706
733
  **/
707
- maxExpectedBondLotsPerAccount: u32 & AugmentedConst<ApiType>;
734
+ maxBondCollateralSettlementsPerBlock: u32 & AugmentedConst<ApiType>;
708
735
  /**
709
736
  * The maximum number of bond lots whose release delay may mature in a single frame.
710
737
  **/
@@ -730,41 +757,61 @@ declare module '@polkadot/api-base/types/consts' {
730
757
  **/
731
758
  percentForArgonBondPool: Percent & AugmentedConst<ApiType>;
732
759
  /**
733
- * Percent reserved for Bitcoin Liquids and burned in this release.
760
+ * Percent credited to the Bitcoin Liquids reserve.
734
761
  **/
735
762
  percentForBitcoinLiquidPool: Percent & AugmentedConst<ApiType>;
763
+ /**
764
+ * Percent of the bid pool held for marketing rewards.
765
+ **/
766
+ percentForMarketing: Percent & AugmentedConst<ApiType>;
736
767
  /**
737
768
  * Percent reserved for future mining-operator rewards and burned in this release.
738
769
  **/
739
770
  percentForMiningOperatorPool: Percent & AugmentedConst<ApiType>;
740
771
  /**
741
- * Percent of the full bid pool paid to Argonot Stakes.
772
+ * Percent credited to the stabilizer pool rewards reserve.
742
773
  **/
743
- percentForStakePool: Percent & AugmentedConst<ApiType>;
774
+ percentForStabilizerPool: Percent & AugmentedConst<ApiType>;
744
775
  /**
745
- * Percent of the bid pool reserved for treasury reserves.
776
+ * Percent of the full bid pool paid to Argonot Stakes.
746
777
  **/
747
- percentForTreasuryReserves: Percent & AugmentedConst<ApiType>;
778
+ percentForStakePool: Percent & AugmentedConst<ApiType>;
748
779
  /**
749
780
  * Maximum percent paid to vaults when the network target is filled.
750
781
  **/
751
782
  percentForVaultPool: Percent & AugmentedConst<ApiType>;
783
+ /**
784
+ * Retain each frame's financial terms through funding and the collection window.
785
+ **/
786
+ stabilizerPoolRewardHistoryFrames: u32 & AugmentedConst<ApiType>;
752
787
  /**
753
788
  * The number of frames a releasing bond lot remains held before release.
754
789
  **/
755
790
  treasuryExitDelayFrames: u64 & AugmentedConst<ApiType>;
756
791
  /**
757
- * Account that holds treasury reserves for claims and reserve-funded payouts.
792
+ * Funded upstream Bitcoin securitization, in microgons, required for full Bitcoin credit.
758
793
  **/
759
- treasuryReservesAccount: AccountId32 & AugmentedConst<ApiType>;
760
794
  upstreamBitcoinTarget: u128 & AugmentedConst<ApiType>;
761
795
  upstreamBitcoinWeight: Permill & AugmentedConst<ApiType>;
796
+ /**
797
+ * Upstream bond principal, in microgons, required for full bond credit.
798
+ **/
762
799
  upstreamBondTarget: u128 & AugmentedConst<ApiType>;
763
800
  /**
764
801
  * Maximum share of the full bid pool paid for vault Bitcoin participation.
765
802
  **/
766
803
  vaultBitcoinRewardPercent: Permill & AugmentedConst<ApiType>;
767
804
  };
805
+ treasuryPositions: {
806
+ /**
807
+ * Maximum ready quantity changes settled by one Collect.
808
+ **/
809
+ maxEarningChangesPerCall: u32 & AugmentedConst<ApiType>;
810
+ /**
811
+ * Account that holds issued backing for committed collections.
812
+ **/
813
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
814
+ };
768
815
  txPause: {
769
816
  /**
770
817
  * Maximum length for pallet name and call name SCALE encoded string names.
@@ -1517,6 +1517,23 @@ declare module '@polkadot/api-base/types/errors' {
1517
1517
  PayoutNotReady: AugmentedError<ApiType>;
1518
1518
  };
1519
1519
  stabilizerPools: {
1520
+ /**
1521
+ * The registered position cannot be valued at the frame's sampled pool price.
1522
+ **/
1523
+ ClaimValuationFailed: AugmentedError<ApiType>;
1524
+ /**
1525
+ * Another handoff already consumed a frame touched by this transition.
1526
+ **/
1527
+ ContinuationAlreadyUsed: AugmentedError<ApiType>;
1528
+ /**
1529
+ * The Ethereum gap exceeds the configured allowance, or continuation is disabled.
1530
+ **/
1531
+ ContinuationGraceExceeded: AugmentedError<ApiType>;
1532
+ /**
1533
+ * The source frame is too old, the replacement proof is in the future, or report recovery
1534
+ * has expired.
1535
+ **/
1536
+ ContinuationTooLate: AugmentedError<ApiType>;
1520
1537
  /**
1521
1538
  * The three account witnesses do not contain identical execution-block proofs.
1522
1539
  **/
@@ -1527,8 +1544,8 @@ declare module '@polkadot/api-base/types/errors' {
1527
1544
  **/
1528
1545
  InvalidPool: AugmentedError<ApiType>;
1529
1546
  /**
1530
- * The packed PoolId mismatches, ticks are invalid/misaligned, or liquidity exceeds
1531
- * uint128.
1547
+ * The pool or PositionManager identity mismatches, ticks are invalid/misaligned,
1548
+ * or liquidity exceeds uint128.
1532
1549
  **/
1533
1550
  InvalidPosition: AugmentedError<ApiType>;
1534
1551
  /**
@@ -1546,7 +1563,7 @@ declare module '@polkadot/api-base/types/errors' {
1546
1563
  **/
1547
1564
  InvalidSubscription: AugmentedError<ApiType>;
1548
1565
  /**
1549
- * The signer does not match the beneficiary encoded in the subscription witness.
1566
+ * The signer does not match the beneficiary of the position.
1550
1567
  **/
1551
1568
  NotBeneficiary: AugmentedError<ApiType>;
1552
1569
  /**
@@ -1557,11 +1574,35 @@ declare module '@polkadot/api-base/types/errors' {
1557
1574
  * No approved configuration exists for the supplied PoolManager/PoolId pair.
1558
1575
  **/
1559
1576
  PoolNotRegistered: AugmentedError<ApiType>;
1577
+ /**
1578
+ * The replacement NFT has previous Mainchain checkpoint history.
1579
+ **/
1580
+ PositionAlreadyCheckpointed: AugmentedError<ApiType>;
1560
1581
  /**
1561
1582
  * Beneficiary, subscriber, pool, tick range, or liquidity changed without a revision
1562
1583
  * increase.
1563
1584
  **/
1564
1585
  PositionChangedWithoutRevision: AugmentedError<ApiType>;
1586
+ /**
1587
+ * The authenticated state still has the registered revision or subscription.
1588
+ **/
1589
+ PositionChangeNotProven: AugmentedError<ApiType>;
1590
+ /**
1591
+ * The enrollment, recoverable report, account slot, or required checkpoint is missing.
1592
+ **/
1593
+ PositionNotEnrolled: AugmentedError<ApiType>;
1594
+ /**
1595
+ * The source NFT's packed position slot is not proven zero at the replacement block.
1596
+ **/
1597
+ PositionNotRetired: AugmentedError<ApiType>;
1598
+ /**
1599
+ * New enrollment or increased liquidity would be admitted below the ARGON target price.
1600
+ **/
1601
+ PriceBelowTarget: AugmentedError<ApiType>;
1602
+ /**
1603
+ * Current market or target quotes are unavailable, or the target is zero.
1604
+ **/
1605
+ PriceUnavailable: AugmentedError<ApiType>;
1565
1606
  /**
1566
1607
  * The subscriber revision is lower than the NFT's last accepted revision.
1567
1608
  **/
@@ -1570,6 +1611,19 @@ declare module '@polkadot/api-base/types/errors' {
1570
1611
  * Ethereum block height or time does not strictly advance past the stored checkpoint.
1571
1612
  **/
1572
1613
  StaleCheckpoint: AugmentedError<ApiType>;
1614
+ /**
1615
+ * The active frame is tracking its maximum number of distinct band changes. A proof
1616
+ * needs no pending entry when the Ethereum handoff frame has already closed.
1617
+ **/
1618
+ TooManyPendingBandChanges: AugmentedError<ApiType>;
1619
+ /**
1620
+ * Unpaid history cannot fit within the retained frame bound.
1621
+ **/
1622
+ TooManyPositionPeriods: AugmentedError<ApiType>;
1623
+ /**
1624
+ * The beneficiary already has the maximum number of enrolled NFTs.
1625
+ **/
1626
+ TooManyPositions: AugmentedError<ApiType>;
1573
1627
  };
1574
1628
  sudo: {
1575
1629
  /**
@@ -1635,6 +1689,11 @@ declare module '@polkadot/api-base/types/errors' {
1635
1689
  * The Argonot bond purchase did not beat the current active-set cutoff.
1636
1690
  **/
1637
1691
  ArgonotBondPurchaseBelowCutoff: AugmentedError<ApiType>;
1692
+ /**
1693
+ * Pre-upgrade collateral exceeds its selected backing; supply a complete lot selection
1694
+ * with registration before withdrawing principal or processing collateral.
1695
+ **/
1696
+ BondCollateralSelectionRequired: AugmentedError<ApiType>;
1638
1697
  /**
1639
1698
  * The bond lot is already scheduled for release.
1640
1699
  **/
@@ -1679,6 +1738,10 @@ declare module '@polkadot/api-base/types/errors' {
1679
1738
  * The bonus approval was signed for a different vault.
1680
1739
  **/
1681
1740
  BonusApprovalWrongVault: AugmentedError<ApiType>;
1741
+ /**
1742
+ * A caller-supplied collateral selection repeats a lot ID.
1743
+ **/
1744
+ DuplicateBondCollateralLot: AugmentedError<ApiType>;
1682
1745
  /**
1683
1746
  * The vault doesn't have enough raw securitization to support this bond purchase.
1684
1747
  **/
@@ -1687,6 +1750,10 @@ declare module '@polkadot/api-base/types/errors' {
1687
1750
  * An internal error occurred.
1688
1751
  **/
1689
1752
  InternalError: AugmentedError<ApiType>;
1753
+ /**
1754
+ * Only active ARGON vault bonds can back a gateway authority.
1755
+ **/
1756
+ InvalidBondCollateralLot: AugmentedError<ApiType>;
1690
1757
  /**
1691
1758
  * The proposed backfill would reduce or corrupt the lot's earnings metrics.
1692
1759
  **/
@@ -1696,9 +1763,9 @@ declare module '@polkadot/api-base/types/errors' {
1696
1763
  **/
1697
1764
  InvalidBonusApprovalSignature: AugmentedError<ApiType>;
1698
1765
  /**
1699
- * The network has reached the direct-payout vault bond lot admission limit.
1766
+ * A reward target or the price adjustment window is invalid.
1700
1767
  **/
1701
- MaxArgonBondLotsExceeded: AugmentedError<ApiType>;
1768
+ InvalidRewardTaperingPolicy: AugmentedError<ApiType>;
1702
1769
  /**
1703
1770
  * The vault already has the maximum number of flexible bond lots.
1704
1771
  **/
@@ -1715,11 +1782,45 @@ declare module '@polkadot/api-base/types/errors' {
1715
1782
  * The caller does not own the bond lot.
1716
1783
  **/
1717
1784
  NotBondLotOwner: AugmentedError<ApiType>;
1785
+ /**
1786
+ * A requested reward frame has yet to finalize its rate.
1787
+ **/
1788
+ StabilizerPoolClaimNotReady: AugmentedError<ApiType>;
1789
+ /**
1790
+ * The supplied list or the operator's resulting backing set exceeds the lot limit.
1791
+ **/
1792
+ TooManyBondCollateralLots: AugmentedError<ApiType>;
1718
1793
  /**
1719
1794
  * The vault is not accepting bond purchases.
1720
1795
  **/
1721
1796
  VaultNotAcceptingBondPurchases: AugmentedError<ApiType>;
1722
1797
  };
1798
+ treasuryPositions: {
1799
+ /**
1800
+ * The account layout upgrade must succeed before custody can be used.
1801
+ **/
1802
+ CollectMigrationIncomplete: AugmentedError<ApiType>;
1803
+ /**
1804
+ * Indexed frames must commit once and in their allocation order.
1805
+ **/
1806
+ EarningsFrameOutOfOrder: AugmentedError<ApiType>;
1807
+ /**
1808
+ * The source tried to expire more vault revenue than its account bucket contains.
1809
+ **/
1810
+ InsufficientVaultEarnings: AugmentedError<ApiType>;
1811
+ /**
1812
+ * An account quantity transition still refers to a missing retained boundary.
1813
+ **/
1814
+ MissingEarningsBoundary: AugmentedError<ApiType>;
1815
+ /**
1816
+ * The caller and beneficiary do not share a registered operational account.
1817
+ **/
1818
+ NotLinkedAccount: AugmentedError<ApiType>;
1819
+ /**
1820
+ * A nonzero indexed allocation requires eligible quantity.
1821
+ **/
1822
+ UnfundedEarnings: AugmentedError<ApiType>;
1823
+ };
1723
1824
  txPause: {
1724
1825
  /**
1725
1826
  * The call is paused.
@@ -1758,6 +1859,10 @@ declare module '@polkadot/api-base/types/errors' {
1758
1859
  * Bitcoin conversion to compressed pubkey failed
1759
1860
  **/
1760
1861
  BitcoinConversionFailed: AugmentedError<ApiType>;
1862
+ /**
1863
+ * Vault revenue must be moved from legacy holds into Collect custody first.
1864
+ **/
1865
+ CollectMigrationIncomplete: AugmentedError<ApiType>;
1761
1866
  /**
1762
1867
  * A funding change is already scheduled
1763
1868
  **/
@@ -1855,6 +1960,10 @@ declare module '@polkadot/api-base/types/errors' {
1855
1960
  * This reduction in vault securitization goes below the amount already committed
1856
1961
  **/
1857
1962
  VaultReductionBelowSecuritization: AugmentedError<ApiType>;
1963
+ /**
1964
+ * The vault's frame ledger differs from its aggregate earnings in Positions.
1965
+ **/
1966
+ VaultRevenueMismatch: AugmentedError<ApiType>;
1858
1967
  /**
1859
1968
  * Wrong Xpub Network
1860
1969
  **/
@@ -8,7 +8,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
8
8
  import type { Bytes, Compact, Null, Option, Result, U256, U8aFixed, Vec, bool, i128, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
9
9
  import type { ITuple } from '@polkadot/types-codec/types';
10
10
  import type { AccountId32, H160, H256, Percent, Permill } from '@polkadot/types/interfaces/runtime';
11
- import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesGatewayGatewayState, ArgonPrimitivesGatewaySourceChain, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersOperationalRewardKind, ArgonPrimitivesVaultBitcoinSecuritizationBasis, ArgonRuntimeOriginCaller, ArgonRuntimeProxyType, ArgonRuntimeRuntimeHoldReason, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletBalancesUnexpectedKind, PalletBootstrapEndpointPubkey, PalletBootstrapRecoveryPubkey, PalletCrosschainTransferAssetKind, PalletCrosschainTransferCouncilApprovalTargetId, PalletCrosschainTransferGatewaySyncPause, PalletCrosschainTransferSwapPurchaseEvidence, PalletCrosschainTransferTransferToArgonActivity, PalletDomainsDomainRegistration, PalletEthereumVerifierBasicOperatingMode, PalletMintMintType, PalletMultisigTimepoint, PalletProxyDepositKind, PalletStabilizerBuysIneligibleReason, PalletStabilizerBuysUniswapPurchasePurchasePool, PalletStabilizerPoolsCheckpointOutcome, PalletStabilizerPoolsPoolConfig, PalletStabilizerPoolsPositionCheckpoint, PalletTreasuryBondProgramId, PalletTreasuryBondReleaseReason, PalletTreasuryRewardReserveBalances, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
11
+ import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesEthereumEthereumProofBlock, ArgonPrimitivesGatewayGatewayState, ArgonPrimitivesGatewaySourceChain, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersOperationalRewardKind, ArgonPrimitivesTreasuryCollectAmounts, ArgonPrimitivesTreasuryCollectSource, ArgonPrimitivesVaultBitcoinSecuritizationBasis, ArgonRuntimeOriginCaller, ArgonRuntimeProxyType, ArgonRuntimeRuntimeHoldReason, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletBalancesUnexpectedKind, PalletBootstrapEndpointPubkey, PalletBootstrapRecoveryPubkey, PalletCrosschainTransferAssetKind, PalletCrosschainTransferCouncilApprovalTargetId, PalletCrosschainTransferGatewaySyncPause, PalletCrosschainTransferSwapPurchaseEvidence, PalletCrosschainTransferTransferToArgonActivity, PalletDomainsDomainRegistration, PalletEthereumVerifierBasicOperatingMode, PalletMintMintType, PalletMultisigTimepoint, PalletProxyDepositKind, PalletStabilizerBuysIneligibleReason, PalletStabilizerBuysUniswapPurchasePurchasePool, PalletStabilizerPoolsCheckpointOutcome, PalletStabilizerPoolsPoolConfig, PalletStabilizerPoolsPositionCheckpoint, PalletStabilizerPoolsStabilizerPoolPositionId, PalletTreasuryBondProgramId, PalletTreasuryBondReleaseReason, PalletTreasuryRewardReserveBalances, PalletTreasuryTaperingPolicy, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
12
12
 
13
13
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
14
14
 
@@ -455,8 +455,7 @@ declare module '@polkadot/api-base/types/events' {
455
455
  **/
456
456
  BitcoinMint: AugmentedEvent<ApiType, [accountId: AccountId32, fissionId: u64, lockId: Option<u64>, amount: u128], { accountId: AccountId32, fissionId: u64, lockId: Option<u64>, amount: u128 }>;
457
457
  /**
458
- * The amount of microgons minted for mining. NOTE: accounts below Existential Deposit
459
- * will not be able to mint
458
+ * ARGON expansion minted into custody and indexed for eligible mining seats.
460
459
  **/
461
460
  MiningMint: AugmentedEvent<ApiType, [amount: u128, perMiner: u128, argonCpi: i128, liquidity: u128], { amount: u128, perMiner: u128, argonCpi: i128, liquidity: u128 }>;
462
461
  /**
@@ -737,7 +736,13 @@ declare module '@polkadot/api-base/types/events' {
737
736
  };
738
737
  stabilizerPools: {
739
738
  PoolRegistered: AugmentedEvent<ApiType, [poolManager: H160, poolId: H256, config: PalletStabilizerPoolsPoolConfig], { poolManager: H160, poolId: H256, config: PalletStabilizerPoolsPoolConfig }>;
739
+ PositionChangeReported: AugmentedEvent<ApiType, [position: PalletStabilizerPoolsStabilizerPoolPositionId, observedAt: ArgonPrimitivesEthereumEthereumProofBlock], { position: PalletStabilizerPoolsStabilizerPoolPositionId, observedAt: ArgonPrimitivesEthereumEthereumProofBlock }>;
740
740
  PositionCheckpointed: AugmentedEvent<ApiType, [positionManager: H160, tokenId: U256, checkpoint: PalletStabilizerPoolsPositionCheckpoint, outcome: PalletStabilizerPoolsCheckpointOutcome], { positionManager: H160, tokenId: U256, checkpoint: PalletStabilizerPoolsPositionCheckpoint, outcome: PalletStabilizerPoolsCheckpointOutcome }>;
741
+ PositionContinued: AugmentedEvent<ApiType, [position: PalletStabilizerPoolsStabilizerPoolPositionId, replacement: PalletStabilizerPoolsStabilizerPoolPositionId, firstEligibleFrameId: u64], { position: PalletStabilizerPoolsStabilizerPoolPositionId, replacement: PalletStabilizerPoolsStabilizerPoolPositionId, firstEligibleFrameId: u64 }>;
742
+ /**
743
+ * An accepted NFT earning period was handed to the owner's backed Positions bucket.
744
+ **/
745
+ PositionEarningsAccrued: AugmentedEvent<ApiType, [account: AccountId32, position: PalletStabilizerPoolsStabilizerPoolPositionId, frameId: u64, amount: u128], { account: AccountId32, position: PalletStabilizerPoolsStabilizerPoolPositionId, frameId: u64, amount: u128 }>;
741
746
  };
742
747
  sudo: {
743
748
  /**
@@ -817,10 +822,6 @@ declare module '@polkadot/api-base/types/events' {
817
822
  * A bond lot was removed from future frames and scheduled for release.
818
823
  **/
819
824
  BondLotReleaseScheduled: AugmentedEvent<ApiType, [programId: PalletTreasuryBondProgramId, bondLotId: u64, accountId: AccountId32, bonds: u32, releaseFrameId: u64, reason: PalletTreasuryBondReleaseReason], { programId: PalletTreasuryBondProgramId, bondLotId: u64, accountId: AccountId32, bonds: u32, releaseFrameId: u64, reason: PalletTreasuryBondReleaseReason }>;
820
- /**
821
- * A fixed or unearned reward allocation could not be burned.
822
- **/
823
- CouldNotBurnRewardAllocation: AugmentedEvent<ApiType, [frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError], { frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError }>;
824
825
  /**
825
826
  * An error occurred while paying frame earnings for an Argonot bond lot.
826
827
  **/
@@ -829,6 +830,14 @@ declare module '@polkadot/api-base/types/events' {
829
830
  * An error occurred while paying frame earnings for a bond lot.
830
831
  **/
831
832
  CouldNotDistributeEarningsToBondLot: AugmentedEvent<ApiType, [frameId: u64, vaultId: u32, bondLotId: u64, accountId: AccountId32, amount: u128, dispatchError: SpRuntimeDispatchError], { frameId: u64, vaultId: u32, bondLotId: u64, accountId: AccountId32, amount: u128, dispatchError: SpRuntimeDispatchError }>;
833
+ /**
834
+ * Bid revenue could not be withdrawn for frame distribution.
835
+ **/
836
+ CouldNotFundBidPool: AugmentedEvent<ApiType, [frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError], { frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError }>;
837
+ /**
838
+ * A reserve top-up could not be added to the frame reward funding.
839
+ **/
840
+ CouldNotFundReserveTopup: AugmentedEvent<ApiType, [frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError], { frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError }>;
832
841
  /**
833
842
  * An error occurred while releasing a bond lot.
834
843
  **/
@@ -837,26 +846,48 @@ declare module '@polkadot/api-base/types/events' {
837
846
  * Settlement rolled back and remains queued for a later block.
838
847
  **/
839
848
  CouldNotSettleBondCollateral: AugmentedEvent<ApiType, [accountId: AccountId32, dispatchError: SpRuntimeDispatchError], { accountId: AccountId32, dispatchError: SpRuntimeDispatchError }>;
840
- /**
841
- * An error occurred while moving bid-pool funds into treasury reserves.
842
- **/
843
- CouldNotTransferToTreasuryReserves: AugmentedEvent<ApiType, [frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError], { frameId: u64, amount: u128, dispatchError: SpRuntimeDispatchError }>;
844
849
  /**
845
850
  * Encumbered treasury backing was burned and any no-longer-needed fractional hold was
846
851
  * returned.
847
852
  **/
848
853
  EncumberedBondMicrogonsBurned: AugmentedEvent<ApiType, [accountId: AccountId32, burnedAmount: u128, releasedAmount: u128], { accountId: AccountId32, burnedAmount: u128, releasedAmount: u128 }>;
854
+ /**
855
+ * Earnings reserved for the frame; wallet delivery is recorded by Collect.
856
+ **/
857
+ FrameEarningsAllocated: AugmentedEvent<ApiType, [frameId: u64, bidPoolAllocated: u128, stakeEarnings: u128, bondEarnings: u128, bitcoinEarnings: u128, vaultEarnings: u128, reservedFromCirculation: u128, participatingVaults: u32], { frameId: u64, bidPoolAllocated: u128, stakeEarnings: u128, bondEarnings: u128, bitcoinEarnings: u128, vaultEarnings: u128, reservedFromCirculation: u128, participatingVaults: u32 }>;
849
858
  /**
850
859
  * Frame earnings were distributed.
851
860
  **/
852
- FrameEarningsDistributed: AugmentedEvent<ApiType, [frameId: u64, bidPoolDistributed: u128, stakePoolDistributed: u128, argonBondPoolDistributed: u128, vaultPoolDistributed: u128, burned: u128, treasuryReserves: u128, participatingVaults: u32], { frameId: u64, bidPoolDistributed: u128, stakePoolDistributed: u128, argonBondPoolDistributed: u128, vaultPoolDistributed: u128, burned: u128, treasuryReserves: u128, participatingVaults: u32 }>;
861
+ FrameEarningsDistributed: AugmentedEvent<ApiType, [frameId: u64, bidPoolDistributed: u128, stakePoolDistributed: u128, argonBondPoolDistributed: u128, bitcoinEarnings: u128, vaultPoolDistributed: u128, reservedFromCirculation: u128, participatingVaults: u32], { frameId: u64, bidPoolDistributed: u128, stakePoolDistributed: u128, argonBondPoolDistributed: u128, bitcoinEarnings: u128, vaultPoolDistributed: u128, reservedFromCirculation: u128, participatingVaults: u32 }>;
853
862
  /**
854
863
  * The current frame's vault capital was locked in.
855
864
  **/
856
865
  FrameVaultCapitalLocked: AugmentedEvent<ApiType, [frameId: u64, totalActiveBonds: u128, participatingVaults: u32], { frameId: u64, totalActiveBonds: u128, participatingVaults: u32 }>;
857
866
  ReservedBondSpaceChanged: AugmentedEvent<ApiType, [vaultId: u32, reservedBondSpace: u32], { vaultId: u32, reservedBondSpace: u32 }>;
858
- RewardEconomicsConfigured: AugmentedEvent<ApiType, [targetBitcoinPercent: Percent, upstreamParticipationFactor: Percent], { targetBitcoinPercent: Percent, upstreamParticipationFactor: Percent }>;
867
+ RewardEconomicsConfigured: AugmentedEvent<ApiType, [targetBitcoinPercent: Percent, upstreamParticipationFactor: Percent, targetStabilizerPoolPercent: Percent, argonotParticipationFactor: Percent], { targetBitcoinPercent: Percent, upstreamParticipationFactor: Percent, targetStabilizerPoolPercent: Percent, argonotParticipationFactor: Percent }>;
868
+ /**
869
+ * Reward reserve balances after settlement or a reserve-funded payment.
870
+ **/
859
871
  RewardReservesUpdated: AugmentedEvent<ApiType, [reserves: PalletTreasuryRewardReserveBalances], { reserves: PalletTreasuryRewardReserveBalances }>;
872
+ RewardTaperingPolicyConfigured: AugmentedEvent<ApiType, [policy: PalletTreasuryTaperingPolicy], { policy: PalletTreasuryTaperingPolicy }>;
873
+ };
874
+ treasuryPositions: {
875
+ /**
876
+ * Already backed earnings assigned to the beneficiary.
877
+ **/
878
+ CollectAccrued: AugmentedEvent<ApiType, [account: AccountId32, source: ArgonPrimitivesTreasuryCollectSource, amount: u128], { account: AccountId32, source: ArgonPrimitivesTreasuryCollectSource, amount: u128 }>;
879
+ /**
880
+ * ARGON and ARGNOT collected from a position, recorded by source.
881
+ **/
882
+ Collected: AugmentedEvent<ApiType, [account: AccountId32, recipient: AccountId32, amounts: ArgonPrimitivesTreasuryCollectAmounts], { account: AccountId32, recipient: AccountId32, amounts: ArgonPrimitivesTreasuryCollectAmounts }>;
883
+ /**
884
+ * Source earnings backed in custody, before assignment to individual owners.
885
+ **/
886
+ CollectFunded: AugmentedEvent<ApiType, [amounts: ArgonPrimitivesTreasuryCollectAmounts], { amounts: ArgonPrimitivesTreasuryCollectAmounts }>;
887
+ /**
888
+ * Funded allocations added to the cumulative bond/stake indexes, once per frame.
889
+ **/
890
+ FrameEarningsIndexed: AugmentedEvent<ApiType, [frameId: u64, amounts: ArgonPrimitivesTreasuryCollectAmounts], { frameId: u64, amounts: ArgonPrimitivesTreasuryCollectAmounts }>;
860
891
  };
861
892
  txPause: {
862
893
  /**