@argonprotocol/mainchain 1.0.17 → 1.0.18

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.
Files changed (35) hide show
  1. package/lib/cjs/interfaces/augment-api-consts.d.ts +16 -7
  2. package/lib/cjs/interfaces/augment-api-errors.d.ts +7 -19
  3. package/lib/cjs/interfaces/augment-api-events.d.ts +90 -73
  4. package/lib/cjs/interfaces/augment-api-query.d.ts +44 -28
  5. package/lib/cjs/interfaces/augment-api-rpc.d.ts +4 -0
  6. package/lib/cjs/interfaces/augment-api-tx.d.ts +25 -34
  7. package/lib/cjs/interfaces/lookup.d.ts +241 -276
  8. package/lib/cjs/interfaces/lookup.js +280 -292
  9. package/lib/cjs/interfaces/lookup.js.map +1 -1
  10. package/lib/cjs/interfaces/registry.d.ts +2 -3
  11. package/lib/cjs/interfaces/types-lookup.d.ts +278 -293
  12. package/lib/esm/interfaces/augment-api-consts.d.ts +16 -7
  13. package/lib/esm/interfaces/augment-api-errors.d.ts +7 -19
  14. package/lib/esm/interfaces/augment-api-events.d.ts +90 -73
  15. package/lib/esm/interfaces/augment-api-query.d.ts +44 -28
  16. package/lib/esm/interfaces/augment-api-rpc.d.ts +4 -0
  17. package/lib/esm/interfaces/augment-api-tx.d.ts +25 -34
  18. package/lib/esm/interfaces/lookup.d.ts +241 -276
  19. package/lib/esm/interfaces/lookup.js +280 -292
  20. package/lib/esm/interfaces/lookup.js.map +1 -1
  21. package/lib/esm/interfaces/registry.d.ts +2 -3
  22. package/lib/esm/interfaces/types-lookup.d.ts +278 -293
  23. package/lib/tsconfig-cjs.tsbuildinfo +1 -1
  24. package/lib/tsconfig-types.tsbuildinfo +1 -1
  25. package/lib/tsconfig.tsbuildinfo +1 -1
  26. package/lib/types/interfaces/augment-api-consts.d.ts +16 -7
  27. package/lib/types/interfaces/augment-api-errors.d.ts +7 -19
  28. package/lib/types/interfaces/augment-api-events.d.ts +90 -73
  29. package/lib/types/interfaces/augment-api-query.d.ts +44 -28
  30. package/lib/types/interfaces/augment-api-rpc.d.ts +4 -0
  31. package/lib/types/interfaces/augment-api-tx.d.ts +25 -34
  32. package/lib/types/interfaces/lookup.d.ts +241 -276
  33. package/lib/types/interfaces/registry.d.ts +2 -3
  34. package/lib/types/interfaces/types-lookup.d.ts +278 -293
  35. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
- import type { bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
+ import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { Percent } from '@polkadot/types/interfaces/runtime';
6
6
  import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
@@ -83,10 +83,6 @@ declare module '@polkadot/api-base/types/consts' {
83
83
  * The growth path for both ownership and argons before halving
84
84
  **/
85
85
  incrementalGrowth: ITuple<[u128, u64, u128]> & AugmentedConst<ApiType>;
86
- /**
87
- * Blocks until a block reward is mature
88
- **/
89
- maturationBlocks: u32 & AugmentedConst<ApiType>;
90
86
  /**
91
87
  * Percent as a number out of 100 of the block reward that goes to the miner.
92
88
  **/
@@ -155,6 +151,10 @@ declare module '@polkadot/api-base/types/consts' {
155
151
  * The max percent swing for the argonots per slot (from the last percent
156
152
  **/
157
153
  argonotsPercentAdjustmentDamper: u128 & AugmentedConst<ApiType>;
154
+ /**
155
+ * The increment that bids can be on (for instance, one cent increments)
156
+ **/
157
+ bidIncrements: u128 & AugmentedConst<ApiType>;
158
158
  /**
159
159
  * How many new miners can be in the cohort for each slot
160
160
  **/
@@ -179,6 +179,10 @@ declare module '@polkadot/api-base/types/consts' {
179
179
  targetBidsPerSlot: u32 & AugmentedConst<ApiType>;
180
180
  };
181
181
  mint: {
182
+ /**
183
+ * The maximum number of mint histories to keep
184
+ **/
185
+ maxMintHistoryToMaintain: u32 & AugmentedConst<ApiType>;
182
186
  /**
183
187
  * The maximum number of UTXOs that can be waiting for minting
184
188
  **/
@@ -404,9 +408,10 @@ declare module '@polkadot/api-base/types/consts' {
404
408
  };
405
409
  vaults: {
406
410
  /**
407
- * Is reward sharing enabled
411
+ * Max entrants allowed in the bid pool. This is only present because substrate prefers
412
+ * limits
408
413
  **/
409
- enableRewardSharing: bool & AugmentedConst<ApiType>;
414
+ maxBidPoolEntrants: u32 & AugmentedConst<ApiType>;
410
415
  /**
411
416
  * Pallet storage requires bounds, so we have to set a maximum number that can expire in a
412
417
  * single block
@@ -424,6 +429,10 @@ declare module '@polkadot/api-base/types/consts' {
424
429
  * The number of ticks that a funding change will be delayed before it takes effect
425
430
  **/
426
431
  miningArgonIncreaseTickDelay: u64 & AugmentedConst<ApiType>;
432
+ /**
433
+ * A pallet id that is used to hold the bid pool
434
+ **/
435
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
427
436
  /**
428
437
  * Argon blocks per day
429
438
  **/
@@ -87,13 +87,8 @@ declare module '@polkadot/api-base/types/errors' {
87
87
  * There are too many obligations expiring in the given expiration block
88
88
  **/
89
89
  ExpirationAtBlockOverflow: AugmentedError<ApiType>;
90
- ExpirationTooSoon: AugmentedError<ApiType>;
91
90
  GenericObligationError: AugmentedError<ApiType>;
92
91
  HoldUnexpectedlyModified: AugmentedError<ApiType>;
93
- /**
94
- * The vault does not have enough bitcoins to cover the bonded argons
95
- **/
96
- InsufficientBondedArgons: AugmentedError<ApiType>;
97
92
  InsufficientFunds: AugmentedError<ApiType>;
98
93
  InsufficientSatoshisLocked: AugmentedError<ApiType>;
99
94
  InsufficientVaultFunds: AugmentedError<ApiType>;
@@ -414,11 +409,11 @@ declare module '@polkadot/api-base/types/errors' {
414
409
  };
415
410
  miningSlot: {
416
411
  AccountWouldBeBelowMinimum: AugmentedError<ApiType>;
417
- BidTooLow: AugmentedError<ApiType>;
418
412
  /**
419
- * You can't reduce the amount of bonded argons
413
+ * The mining bid cannot be reduced
420
414
  **/
421
- CannotReduceBondedArgons: AugmentedError<ApiType>;
415
+ BidCannotBeReduced: AugmentedError<ApiType>;
416
+ BidTooLow: AugmentedError<ApiType>;
422
417
  /**
423
418
  * Keys cannot be registered by multiple accounts
424
419
  **/
@@ -428,20 +423,18 @@ declare module '@polkadot/api-base/types/errors' {
428
423
  * There are too many obligations expiring in the given expiration block
429
424
  **/
430
425
  ExpirationAtBlockOverflow: AugmentedError<ApiType>;
431
- ExpirationTooSoon: AugmentedError<ApiType>;
432
- GenericObligationError: AugmentedError<ApiType>;
433
426
  HoldUnexpectedlyModified: AugmentedError<ApiType>;
434
427
  InsufficientFunds: AugmentedError<ApiType>;
435
428
  InsufficientOwnershipTokens: AugmentedError<ApiType>;
436
429
  InsufficientVaultFunds: AugmentedError<ApiType>;
437
430
  /**
438
- * Unable to decode the key format
431
+ * Bids must be in allowed increments
439
432
  **/
440
- InvalidKeyFormat: AugmentedError<ApiType>;
433
+ InvalidBidAmount: AugmentedError<ApiType>;
441
434
  /**
442
- * Cannot change the bonded argon vault
435
+ * Unable to decode the key format
443
436
  **/
444
- InvalidVaultSwitch: AugmentedError<ApiType>;
437
+ InvalidKeyFormat: AugmentedError<ApiType>;
445
438
  MinimumObligationAmountNotMet: AugmentedError<ApiType>;
446
439
  NoMoreObligationIds: AugmentedError<ApiType>;
447
440
  NoPermissions: AugmentedError<ApiType>;
@@ -840,16 +833,11 @@ declare module '@polkadot/api-base/types/errors' {
840
833
  * There are too many obligations expiring in the given expiration block
841
834
  **/
842
835
  ExpirationAtBlockOverflow: AugmentedError<ApiType>;
843
- ExpirationTooSoon: AugmentedError<ApiType>;
844
836
  /**
845
837
  * A funding change is already scheduled
846
838
  **/
847
839
  FundingChangeAlreadyScheduled: AugmentedError<ApiType>;
848
840
  HoldUnexpectedlyModified: AugmentedError<ApiType>;
849
- /**
850
- * The vault does not have enough bonded argons for the request
851
- **/
852
- InsufficientBondedArgons: AugmentedError<ApiType>;
853
841
  InsufficientFunds: AugmentedError<ApiType>;
854
842
  InsufficientVaultFunds: AugmentedError<ApiType>;
855
843
  /**
@@ -1,6 +1,6 @@
1
1
  import '@polkadot/api-base/types/events';
2
2
  import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
3
- import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
3
+ import type { Bytes, Null, Option, Result, U256, U8aFixed, Vec, bool, i128, u128, u16, u32, u64 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
6
  import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinBitcoinRejectedReason, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesVaultFundType, ArgonPrimitivesVaultObligationExpiration, ArgonRuntimeProxyType, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpEventsRequestResponseHandled, IsmpEventsTimeoutHandled, IsmpHostStateMachine, PalletDomainsDomainRegistration, PalletHyperbridgeVersionedHostParams, PalletIsmpErrorsHandlingError, PalletMintMintType, PalletMultisigTimepoint, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
@@ -354,10 +354,8 @@ declare module '@polkadot/api-base/types/events' {
354
354
  };
355
355
  blockRewards: {
356
356
  RewardCreated: AugmentedEvent<ApiType, [
357
- maturationBlock: u32,
358
357
  rewards: Vec<ArgonPrimitivesBlockSealBlockPayout>
359
358
  ], {
360
- maturationBlock: u32;
361
359
  rewards: Vec<ArgonPrimitivesBlockSealBlockPayout>;
362
360
  }>;
363
361
  RewardCreateError: AugmentedEvent<ApiType, [
@@ -371,22 +369,6 @@ declare module '@polkadot/api-base/types/events' {
371
369
  ownership: Option<u128>;
372
370
  error: SpRuntimeDispatchError;
373
371
  }>;
374
- RewardUnlocked: AugmentedEvent<ApiType, [
375
- rewards: Vec<ArgonPrimitivesBlockSealBlockPayout>
376
- ], {
377
- rewards: Vec<ArgonPrimitivesBlockSealBlockPayout>;
378
- }>;
379
- RewardUnlockError: AugmentedEvent<ApiType, [
380
- accountId: AccountId32,
381
- argons: Option<u128>,
382
- ownership: Option<u128>,
383
- error: SpRuntimeDispatchError
384
- ], {
385
- accountId: AccountId32;
386
- argons: Option<u128>;
387
- ownership: Option<u128>;
388
- error: SpRuntimeDispatchError;
389
- }>;
390
372
  };
391
373
  blockSealSpec: {
392
374
  ComputeDifficultyAdjusted: AugmentedEvent<ApiType, [
@@ -776,37 +758,26 @@ declare module '@polkadot/api-base/types/events' {
776
758
  NewMiners: AugmentedEvent<ApiType, [
777
759
  startIndex: u32,
778
760
  newMiners: Vec<ArgonPrimitivesBlockSealMiningRegistration>,
761
+ releasedMiners: u32,
779
762
  cohortId: u64
780
763
  ], {
781
764
  startIndex: u32;
782
765
  newMiners: Vec<ArgonPrimitivesBlockSealMiningRegistration>;
766
+ releasedMiners: u32;
783
767
  cohortId: u64;
784
768
  }>;
785
769
  ReleaseBidError: AugmentedEvent<ApiType, [
786
770
  accountId: AccountId32,
787
- obligationId: Option<u64>,
788
771
  error: SpRuntimeDispatchError
789
772
  ], {
790
773
  accountId: AccountId32;
791
- obligationId: Option<u64>;
792
774
  error: SpRuntimeDispatchError;
793
775
  }>;
794
- ReleasedMinerSeat: AugmentedEvent<ApiType, [
795
- accountId: AccountId32,
796
- obligationId: Option<u64>,
797
- preservedArgonotHold: bool
798
- ], {
799
- accountId: AccountId32;
800
- obligationId: Option<u64>;
801
- preservedArgonotHold: bool;
802
- }>;
803
776
  ReleaseMinerSeatError: AugmentedEvent<ApiType, [
804
777
  accountId: AccountId32,
805
- obligationId: Option<u64>,
806
778
  error: SpRuntimeDispatchError
807
779
  ], {
808
780
  accountId: AccountId32;
809
- obligationId: Option<u64>;
810
781
  error: SpRuntimeDispatchError;
811
782
  }>;
812
783
  SlotBidderAdded: AugmentedEvent<ApiType, [
@@ -820,35 +791,31 @@ declare module '@polkadot/api-base/types/events' {
820
791
  }>;
821
792
  SlotBidderDropped: AugmentedEvent<ApiType, [
822
793
  accountId: AccountId32,
823
- obligationId: Option<u64>,
824
794
  preservedArgonotHold: bool
825
795
  ], {
826
796
  accountId: AccountId32;
827
- obligationId: Option<u64>;
828
797
  preservedArgonotHold: bool;
829
798
  }>;
830
- SlotBidderOut: AugmentedEvent<ApiType, [
831
- accountId: AccountId32,
832
- bidAmount: u128,
833
- obligationId: Option<u64>
834
- ], {
835
- accountId: AccountId32;
836
- bidAmount: u128;
837
- obligationId: Option<u64>;
838
- }>;
839
799
  };
840
800
  mint: {
841
- ArgonsMinted: AugmentedEvent<ApiType, [
842
- mintType: PalletMintMintType,
801
+ BitcoinMint: AugmentedEvent<ApiType, [
843
802
  accountId: AccountId32,
844
803
  utxoId: Option<u64>,
845
804
  amount: u128
846
805
  ], {
847
- mintType: PalletMintMintType;
848
806
  accountId: AccountId32;
849
807
  utxoId: Option<u64>;
850
808
  amount: u128;
851
809
  }>;
810
+ MiningMint: AugmentedEvent<ApiType, [
811
+ amount: U256,
812
+ argonCpi: i128,
813
+ liquidity: u128
814
+ ], {
815
+ amount: U256;
816
+ argonCpi: i128;
817
+ liquidity: u128;
818
+ }>;
852
819
  MintError: AugmentedEvent<ApiType, [
853
820
  mintType: PalletMintMintType,
854
821
  accountId: AccountId32,
@@ -1517,6 +1484,66 @@ declare module '@polkadot/api-base/types/events' {
1517
1484
  }>;
1518
1485
  };
1519
1486
  vaults: {
1487
+ /**
1488
+ * Funds fro the active bid pool have been distributed
1489
+ **/
1490
+ BidPoolDistributed: AugmentedEvent<ApiType, [
1491
+ cohortId: u64,
1492
+ bidPoolDistributed: u128,
1493
+ bidPoolBurned: u128,
1494
+ bidPoolEntrants: u32
1495
+ ], {
1496
+ cohortId: u64;
1497
+ bidPoolDistributed: u128;
1498
+ bidPoolBurned: u128;
1499
+ bidPoolEntrants: u32;
1500
+ }>;
1501
+ /**
1502
+ * An error occurred allocating the next bid pool
1503
+ **/
1504
+ CouldNotAllocateNextBidPool: AugmentedEvent<ApiType, [
1505
+ cohortId: u64,
1506
+ dispatchError: SpRuntimeDispatchError
1507
+ ], {
1508
+ cohortId: u64;
1509
+ dispatchError: SpRuntimeDispatchError;
1510
+ }>;
1511
+ /**
1512
+ * An error occurred burning from the bid pool
1513
+ **/
1514
+ CouldNotBurnBidPool: AugmentedEvent<ApiType, [
1515
+ cohortId: u64,
1516
+ amount: u128,
1517
+ dispatchError: SpRuntimeDispatchError
1518
+ ], {
1519
+ cohortId: u64;
1520
+ amount: u128;
1521
+ dispatchError: SpRuntimeDispatchError;
1522
+ }>;
1523
+ /**
1524
+ * An error occurred distributing a bid pool
1525
+ **/
1526
+ CouldNotDistributeBidPool: AugmentedEvent<ApiType, [
1527
+ cohortId: u64,
1528
+ vaultId: u32,
1529
+ amount: u128,
1530
+ dispatchError: SpRuntimeDispatchError
1531
+ ], {
1532
+ cohortId: u64;
1533
+ vaultId: u32;
1534
+ amount: u128;
1535
+ dispatchError: SpRuntimeDispatchError;
1536
+ }>;
1537
+ /**
1538
+ * The next bid pool has been allocated
1539
+ **/
1540
+ NextBidPoolAllocated: AugmentedEvent<ApiType, [
1541
+ bondedBitcoinPool: u128,
1542
+ bidPoolEntrants: u32
1543
+ ], {
1544
+ bondedBitcoinPool: u128;
1545
+ bidPoolEntrants: u32;
1546
+ }>;
1520
1547
  /**
1521
1548
  * An error occurred releasing a base fee hold
1522
1549
  **/
@@ -1546,10 +1573,14 @@ declare module '@polkadot/api-base/types/events' {
1546
1573
  }>;
1547
1574
  ObligationCompleted: AugmentedEvent<ApiType, [
1548
1575
  vaultId: u32,
1549
- obligationId: u64
1576
+ obligationId: u64,
1577
+ returnedFee: u128,
1578
+ releasedFee: u128
1550
1579
  ], {
1551
1580
  vaultId: u32;
1552
1581
  obligationId: u64;
1582
+ returnedFee: u128;
1583
+ releasedFee: u128;
1553
1584
  }>;
1554
1585
  /**
1555
1586
  * An error occurred while completing an obligation
@@ -1590,55 +1621,41 @@ declare module '@polkadot/api-base/types/events' {
1590
1621
  ], {
1591
1622
  vaultId: u32;
1592
1623
  }>;
1593
- VaultBondedArgonsChangeScheduled: AugmentedEvent<ApiType, [
1594
- vaultId: u32,
1595
- changeTick: u64
1596
- ], {
1597
- vaultId: u32;
1598
- changeTick: u64;
1599
- }>;
1600
- VaultBondedArgonsIncreased: AugmentedEvent<ApiType, [
1601
- vaultId: u32,
1602
- bondedArgons: u128
1603
- ], {
1604
- vaultId: u32;
1605
- bondedArgons: u128;
1606
- }>;
1607
1624
  VaultClosed: AugmentedEvent<ApiType, [
1608
1625
  vaultId: u32,
1609
- bitcoinAmountStillReserved: u128,
1610
- miningAmountStillReserved: u128,
1626
+ lockedBitcoinAmountStillReserved: u128,
1627
+ bondedBitcoinAmountStillReserved: u128,
1611
1628
  securitizationStillReserved: u128
1612
1629
  ], {
1613
1630
  vaultId: u32;
1614
- bitcoinAmountStillReserved: u128;
1615
- miningAmountStillReserved: u128;
1631
+ lockedBitcoinAmountStillReserved: u128;
1632
+ bondedBitcoinAmountStillReserved: u128;
1616
1633
  securitizationStillReserved: u128;
1617
1634
  }>;
1618
1635
  VaultCreated: AugmentedEvent<ApiType, [
1619
1636
  vaultId: u32,
1620
- bitcoinArgons: u128,
1621
- bondedArgons: u128,
1637
+ lockedBitcoinArgons: u128,
1638
+ bondedBitcoinArgons: u128,
1622
1639
  addedSecuritizationPercent: u128,
1623
1640
  operatorAccountId: AccountId32,
1624
1641
  activationTick: u64
1625
1642
  ], {
1626
1643
  vaultId: u32;
1627
- bitcoinArgons: u128;
1628
- bondedArgons: u128;
1644
+ lockedBitcoinArgons: u128;
1645
+ bondedBitcoinArgons: u128;
1629
1646
  addedSecuritizationPercent: u128;
1630
1647
  operatorAccountId: AccountId32;
1631
1648
  activationTick: u64;
1632
1649
  }>;
1633
1650
  VaultModified: AugmentedEvent<ApiType, [
1634
1651
  vaultId: u32,
1635
- bitcoinArgons: u128,
1636
- bondedArgons: u128,
1652
+ lockedBitcoinArgons: u128,
1653
+ bondedBitcoinArgons: u128,
1637
1654
  addedSecuritizationPercent: u128
1638
1655
  ], {
1639
1656
  vaultId: u32;
1640
- bitcoinArgons: u128;
1641
- bondedArgons: u128;
1657
+ lockedBitcoinArgons: u128;
1658
+ bondedBitcoinArgons: u128;
1642
1659
  addedSecuritizationPercent: u128;
1643
1660
  }>;
1644
1661
  VaultTermsChanged: AugmentedEvent<ApiType, [
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
3
3
  import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
- import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealAppPublic, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningBidStats, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsDigestset, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesForkPower, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, ArgonPrimitivesVault, ArgonPrimitivesVaultObligation, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, IsmpConsensusStateCommitment, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpHostStateMachine, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBitcoinLocksLockReleaseRequest, PalletBitcoinLocksLockedBitcoin, PalletChainTransferQueuedTransferOut, PalletDomainsDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletHyperbridgeVersionedHostParams, PalletMintMintAction, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, SpConsensusGrandpaAppPublic, SpRuntimeDigest } from '@polkadot/types/lookup';
6
+ import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningBidStats, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsDigestset, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesForkPower, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, ArgonPrimitivesVault, ArgonPrimitivesVaultObligation, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, IsmpConsensusStateCommitment, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpHostStateMachine, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBitcoinLocksLockReleaseRequest, PalletBitcoinLocksLockedBitcoin, PalletChainTransferQueuedTransferOut, PalletDomainsDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletHyperbridgeVersionedHostParams, PalletMintMintAction, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, PalletVaultsBidPoolEntrant, SpConsensusGrandpaAppPublic, SpRuntimeDigest } from '@polkadot/types/lookup';
7
7
  import type { Observable } from '@polkadot/types/types';
8
8
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
9
9
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -180,10 +180,23 @@ declare module '@polkadot/api-base/types/storage' {
180
180
  ]>;
181
181
  };
182
182
  blockRewards: {
183
+ /**
184
+ * The current scaled block rewards. It will adjust based on the argon movement away from price
185
+ * target
186
+ **/
187
+ argonsPerBlock: AugmentedQuery<ApiType, () => Observable<u128>, []>;
188
+ /**
189
+ * The cohort block rewards
190
+ **/
191
+ blockRewardsByCohort: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u128]>>>, [
192
+ ]>;
183
193
  /**
184
194
  * Bool if block rewards are paused
185
195
  **/
186
196
  blockRewardsPaused: AugmentedQuery<ApiType, () => Observable<bool>, []>;
197
+ /**
198
+ * Historical payouts by block number
199
+ **/
187
200
  payoutsByBlock: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ArgonPrimitivesBlockSealBlockPayout>>, [
188
201
  u32
189
202
  ]>;
@@ -478,18 +491,6 @@ declare module '@polkadot/api-base/types/storage' {
478
491
  **/
479
492
  argonotsPerMiningSeat: AugmentedQuery<ApiType, () => Observable<u128>, [
480
493
  ]>;
481
- /**
482
- * Authorities are the session keys that are actively participating in the network.
483
- * The tuple is the authority, and the blake2 256 hash of the authority used for xor lookups
484
- **/
485
- authorityHashByIndex: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, U256>>, [
486
- ]>;
487
- /**
488
- * Keys in use
489
- **/
490
- authorityIdToMinerId: AugmentedQuery<ApiType, (arg: ArgonPrimitivesBlockSealAppPublic | string | Uint8Array) => Observable<Option<AccountId32>>, [
491
- ArgonPrimitivesBlockSealAppPublic
492
- ]>;
493
494
  hasAddedGrandpaRotation: AugmentedQuery<ApiType, () => Observable<bool>, [
494
495
  ]>;
495
496
  /**
@@ -506,6 +507,12 @@ declare module '@polkadot/api-base/types/storage' {
506
507
  * The last activated cohort id
507
508
  **/
508
509
  lastActivatedCohortId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
510
+ /**
511
+ * This is a lookup of each miner's XOR key to use. It's a blake2 256 hash of the account id of
512
+ * the miner and the block hash at time of activation.
513
+ **/
514
+ minerXorKeyByIndex: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, U256>>, [
515
+ ]>;
509
516
  /**
510
517
  * The mining slot configuration set in genesis
511
518
  **/
@@ -517,11 +524,27 @@ declare module '@polkadot/api-base/types/storage' {
517
524
  **/
518
525
  nextSlotCohort: AugmentedQuery<ApiType, () => Observable<Vec<ArgonPrimitivesBlockSealMiningRegistration>>, [
519
526
  ]>;
527
+ /**
528
+ * The miners released in the last block (only kept for a single block)
529
+ **/
530
+ releasedMinersByAccountId: AugmentedQuery<ApiType, () => Observable<BTreeMap<AccountId32, ArgonPrimitivesBlockSealMiningRegistration>>, [
531
+ ]>;
520
532
  };
521
533
  mint: {
522
534
  blockMintAction: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, PalletMintMintAction]>>, [
523
535
  ]>;
536
+ /**
537
+ * The amount of argons minted per cohort for mining
538
+ **/
539
+ miningMintPerCohort: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, u128>>, [
540
+ ]>;
541
+ /**
542
+ * The total amount of Bitcoin argons minted. Cannot exceed `MintedMiningArgons`.
543
+ **/
524
544
  mintedBitcoinArgons: AugmentedQuery<ApiType, () => Observable<U256>, []>;
545
+ /**
546
+ * The total amount of argons minted for mining
547
+ **/
525
548
  mintedMiningArgons: AugmentedQuery<ApiType, () => Observable<U256>, []>;
526
549
  /**
527
550
  * Bitcoin UTXOs that have been submitted for minting. This list is FIFO for minting whenever
@@ -921,11 +944,17 @@ declare module '@polkadot/api-base/types/storage' {
921
944
  u64
922
945
  ]>;
923
946
  /**
924
- * Completion of mining obligation, upon which funds are returned to the vault
947
+ * Completion of bonded bitcoin obligation, upon which funds are returned to the vault
925
948
  **/
926
- bondedArgonCompletions: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [
949
+ bondedBitcoinCompletions: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [
927
950
  u64
928
951
  ]>;
952
+ /**
953
+ * The entrants in the bonded bitcoin pool that will next be paid out. They apply to the next
954
+ * closed mining slot cohort bid pool.
955
+ **/
956
+ nextBondedBitcoinPoolEntrants: AugmentedQuery<ApiType, () => Observable<Vec<PalletVaultsBidPoolEntrant>>, [
957
+ ]>;
929
958
  nextObligationId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, [
930
959
  ]>;
931
960
  nextVaultId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
@@ -935,19 +964,6 @@ declare module '@polkadot/api-base/types/storage' {
935
964
  obligationsById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesVaultObligation>>, [
936
965
  u64
937
966
  ]>;
938
- /**
939
- * Pending base fee hold releases
940
- **/
941
- pendingBaseFeeMaturationByTick: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, u128, u32, u64]>>>, [
942
- u64
943
- ]>;
944
- /**
945
- * Pending funding that will be committed at the given block number (must be a minimum of 1
946
- * slot change away)
947
- **/
948
- pendingFundingModificationsByTick: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [
949
- u64
950
- ]>;
951
967
  /**
952
968
  * Pending terms that will be committed at the given block number (must be a minimum of 1 slot
953
969
  * change away)
@@ -466,6 +466,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
466
466
  version: AugmentedRpc<() => Observable<Text>>;
467
467
  };
468
468
  offchain: {
469
+ /**
470
+ * Clear offchain local storage under given key and prefix
471
+ **/
472
+ localStorageClear: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Null>>;
469
473
  /**
470
474
  * Get offchain local storage under given key and prefix
471
475
  **/