@dedot/chaintypes 0.70.0 → 0.72.0

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/aleph/consts.d.ts CHANGED
@@ -303,6 +303,8 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
303
303
  * Pallet `Aleph`'s constants
304
304
  **/
305
305
  aleph: {
306
+ scoreSubmissionPeriod: number;
307
+
306
308
  /**
307
309
  * Generic pallet constant
308
310
  **/
package/aleph/errors.d.ts CHANGED
@@ -1084,7 +1084,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1084
1084
  **/
1085
1085
  committeeManagement: {
1086
1086
  /**
1087
- * Raised in any scenario [`BanConfig`] is invalid
1087
+ * Raised in any scenario [`ProductionBanConfig`] is invalid
1088
1088
  * * `performance_ratio_threshold` must be a number in range [0; 100]
1089
1089
  * * `underperformed_session_count_threshold` must be a positive number,
1090
1090
  * * `clean_session_counter_delay` must be a positive number.
package/aleph/events.d.ts CHANGED
@@ -15,7 +15,8 @@ import type {
15
15
  PalletNominationPoolsPoolState,
16
16
  PalletNominationPoolsCommissionChangeRate,
17
17
  PalletNominationPoolsCommissionClaimPermission,
18
- PrimitivesBanConfig,
18
+ PrimitivesProductionBanConfig,
19
+ PrimitivesFinalityBanConfig,
19
20
  PrimitivesBanInfo,
20
21
  AlephRuntimeProxyType,
21
22
  PalletSafeModeExitReason,
@@ -1242,7 +1243,17 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1242
1243
  /**
1243
1244
  * Ban thresholds for the next era has changed
1244
1245
  **/
1245
- SetBanConfig: GenericPalletEvent<Rv, 'CommitteeManagement', 'SetBanConfig', PrimitivesBanConfig>;
1246
+ SetBanConfig: GenericPalletEvent<Rv, 'CommitteeManagement', 'SetBanConfig', PrimitivesProductionBanConfig>;
1247
+
1248
+ /**
1249
+ * Ban thresholds for the next era has changed
1250
+ **/
1251
+ SetFinalityBanConfig: GenericPalletEvent<
1252
+ Rv,
1253
+ 'CommitteeManagement',
1254
+ 'SetFinalityBanConfig',
1255
+ PrimitivesFinalityBanConfig
1256
+ >;
1246
1257
 
1247
1258
  /**
1248
1259
  * Validators have been banned from the committee
package/aleph/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedAlephApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: AlephApi
26
- * @specVersion: 14000000
26
+ * @specVersion: 15000000
27
27
  **/
28
28
  export interface AlephApi {
29
29
  legacy: VersionedAlephApi<RpcLegacy>;
package/aleph/query.d.ts CHANGED
@@ -48,6 +48,7 @@ import type {
48
48
  SpCoreCryptoKeyTypeId,
49
49
  PrimitivesAppPublic,
50
50
  PrimitivesVersionChange,
51
+ PrimitivesScore,
51
52
  PrimitivesCommitteeSeats,
52
53
  PrimitivesEraValidators,
53
54
  PrimitivesElectionOpenness,
@@ -68,9 +69,10 @@ import type {
68
69
  PalletIdentityRegistrarInfo,
69
70
  PalletIdentityAuthorityProperties,
70
71
  PalletCommitteeManagementValidatorTotalRewards,
71
- PrimitivesBanConfig,
72
+ PrimitivesProductionBanConfig,
72
73
  PrimitivesBanInfo,
73
74
  PalletCommitteeManagementCurrentAndNextSessionValidators,
75
+ PrimitivesFinalityBanConfig,
74
76
  PalletProxyProxyDefinition,
75
77
  PalletProxyAnnouncement,
76
78
  } from './types';
@@ -1076,6 +1078,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1076
1078
  **/
1077
1079
  finalityScheduledVersionChange: GenericStorageQuery<Rv, () => PrimitivesVersionChange | undefined>;
1078
1080
 
1081
+ /**
1082
+ *
1083
+ * @param {number} arg
1084
+ * @param {Callback<PrimitivesScore | undefined> =} callback
1085
+ **/
1086
+ abftScores: GenericStorageQuery<Rv, (arg: number) => PrimitivesScore | undefined, number>;
1087
+
1088
+ /**
1089
+ *
1090
+ * @param {Callback<number> =} callback
1091
+ **/
1092
+ lastScoreNonce: GenericStorageQuery<Rv, () => number>;
1093
+
1079
1094
  /**
1080
1095
  * Generic pallet storage query
1081
1096
  **/
@@ -1658,14 +1673,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1658
1673
  validatorEraTotalReward: GenericStorageQuery<Rv, () => PalletCommitteeManagementValidatorTotalRewards | undefined>;
1659
1674
 
1660
1675
  /**
1661
- * Current era config for ban functionality, see [`BanConfig`]
1676
+ * Current era config for ban functionality related to block production.
1662
1677
  *
1663
- * @param {Callback<PrimitivesBanConfig> =} callback
1678
+ * @param {Callback<PrimitivesProductionBanConfig> =} callback
1664
1679
  **/
1665
- banConfig: GenericStorageQuery<Rv, () => PrimitivesBanConfig>;
1680
+ productionBanConfig: GenericStorageQuery<Rv, () => PrimitivesProductionBanConfig>;
1666
1681
 
1667
1682
  /**
1668
- * A lookup for a number of underperformance sessions for a given validator
1683
+ * A lookup for a number of underperformance sessions in block production for a given validator
1669
1684
  *
1670
1685
  * @param {AccountId32Like} arg
1671
1686
  * @param {Callback<number> =} callback
@@ -1690,6 +1705,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1690
1705
  () => PalletCommitteeManagementCurrentAndNextSessionValidators
1691
1706
  >;
1692
1707
 
1708
+ /**
1709
+ * A lookup for a number of underperformance sessions in block finalization for a given validator
1710
+ *
1711
+ * @param {AccountId32Like} arg
1712
+ * @param {Callback<number> =} callback
1713
+ **/
1714
+ underperformedFinalizerSessionCount: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
1715
+
1716
+ /**
1717
+ * Current era config for ban functionality related to block finality.
1718
+ *
1719
+ * @param {Callback<PrimitivesFinalityBanConfig> =} callback
1720
+ **/
1721
+ finalityBanConfig: GenericStorageQuery<Rv, () => PrimitivesFinalityBanConfig>;
1722
+
1693
1723
  /**
1694
1724
  * Generic pallet storage query
1695
1725
  **/
@@ -34,6 +34,8 @@ import type {
34
34
  PrimitivesSessionAuthorityData,
35
35
  PrimitivesSessionCommittee,
36
36
  PrimitivesSessionValidatorError,
37
+ PrimitivesScore,
38
+ PrimitivesCryptoSignatureSet,
37
39
  PalletContractsPrimitivesContractResult,
38
40
  PalletContractsPrimitivesContractResultResult,
39
41
  PalletContractsPrimitivesCode,
@@ -400,6 +402,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
400
402
  **/
401
403
  nextSessionFinalityVersion: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
402
404
 
405
+ /**
406
+ *
407
+ * @callname: AlephSessionApi_score_submission_period
408
+ **/
409
+ scoreSubmissionPeriod: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
410
+
403
411
  /**
404
412
  * Predict finality committee and block producers for the given session. `session` must be
405
413
  * within the current era (current, in the staking context).
@@ -450,6 +458,18 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
450
458
  **/
451
459
  currentEraPayout: GenericRuntimeApiMethod<Rv, () => Promise<[bigint, bigint]>>;
452
460
 
461
+ /**
462
+ * Submits score for a nonce in a session of performance of finality committee members.
463
+ *
464
+ * @callname: AlephSessionApi_submit_abft_score
465
+ * @param {PrimitivesScore} score
466
+ * @param {PrimitivesCryptoSignatureSet} signature
467
+ **/
468
+ submitAbftScore: GenericRuntimeApiMethod<
469
+ Rv,
470
+ (score: PrimitivesScore, signature: PrimitivesCryptoSignatureSet) => Promise<[] | undefined>
471
+ >;
472
+
453
473
  /**
454
474
  * Generic runtime api call
455
475
  **/
package/aleph/tx.d.ts CHANGED
@@ -33,6 +33,8 @@ import type {
33
33
  PalletStakingPalletConfigOpPerbill,
34
34
  PrimitivesAlephNodeSessionKeys,
35
35
  PrimitivesAppPublic,
36
+ PrimitivesScore,
37
+ PrimitivesCryptoSignatureSet,
36
38
  PrimitivesCommitteeSeats,
37
39
  PrimitivesElectionOpenness,
38
40
  PalletVestingVestingInfo,
@@ -1381,6 +1383,29 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1381
1383
  >
1382
1384
  >;
1383
1385
 
1386
+ /**
1387
+ * See [`Pallet::unsigned_submit_abft_score`].
1388
+ *
1389
+ * @param {PrimitivesScore} score
1390
+ * @param {PrimitivesCryptoSignatureSet} signature
1391
+ **/
1392
+ unsignedSubmitAbftScore: GenericTxCall<
1393
+ Rv,
1394
+ (
1395
+ score: PrimitivesScore,
1396
+ signature: PrimitivesCryptoSignatureSet,
1397
+ ) => ChainSubmittableExtrinsic<
1398
+ Rv,
1399
+ {
1400
+ pallet: 'Aleph';
1401
+ palletCall: {
1402
+ name: 'UnsignedSubmitAbftScore';
1403
+ params: { score: PrimitivesScore; signature: PrimitivesCryptoSignatureSet };
1404
+ };
1405
+ }
1406
+ >
1407
+ >;
1408
+
1384
1409
  /**
1385
1410
  * Generic pallet tx call
1386
1411
  **/
@@ -3590,6 +3615,38 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3590
3615
  >
3591
3616
  >;
3592
3617
 
3618
+ /**
3619
+ * See [`Pallet::set_finality_ban_config`].
3620
+ *
3621
+ * @param {number | undefined} minimalExpectedPerformance
3622
+ * @param {number | undefined} underperformedSessionCountThreshold
3623
+ * @param {number | undefined} banPeriod
3624
+ * @param {number | undefined} cleanSessionCounterDelay
3625
+ **/
3626
+ setFinalityBanConfig: GenericTxCall<
3627
+ Rv,
3628
+ (
3629
+ minimalExpectedPerformance: number | undefined,
3630
+ underperformedSessionCountThreshold: number | undefined,
3631
+ banPeriod: number | undefined,
3632
+ cleanSessionCounterDelay: number | undefined,
3633
+ ) => ChainSubmittableExtrinsic<
3634
+ Rv,
3635
+ {
3636
+ pallet: 'CommitteeManagement';
3637
+ palletCall: {
3638
+ name: 'SetFinalityBanConfig';
3639
+ params: {
3640
+ minimalExpectedPerformance: number | undefined;
3641
+ underperformedSessionCountThreshold: number | undefined;
3642
+ banPeriod: number | undefined;
3643
+ cleanSessionCounterDelay: number | undefined;
3644
+ };
3645
+ };
3646
+ }
3647
+ >
3648
+ >;
3649
+
3593
3650
  /**
3594
3651
  * Generic pallet tx call
3595
3652
  **/
package/aleph/types.d.ts CHANGED
@@ -929,22 +929,36 @@ export type PalletCommitteeManagementEvent =
929
929
  /**
930
930
  * Ban thresholds for the next era has changed
931
931
  **/
932
- | { name: 'SetBanConfig'; data: PrimitivesBanConfig }
932
+ | { name: 'SetBanConfig'; data: PrimitivesProductionBanConfig }
933
+ /**
934
+ * Ban thresholds for the next era has changed
935
+ **/
936
+ | { name: 'SetFinalityBanConfig'; data: PrimitivesFinalityBanConfig }
933
937
  /**
934
938
  * Validators have been banned from the committee
935
939
  **/
936
940
  | { name: 'BanValidators'; data: Array<[AccountId32, PrimitivesBanInfo]> };
937
941
 
938
- export type PrimitivesBanConfig = {
942
+ export type PrimitivesProductionBanConfig = {
939
943
  minimalExpectedPerformance: Perbill;
940
944
  underperformedSessionCountThreshold: number;
941
945
  cleanSessionCounterDelay: number;
942
946
  banPeriod: number;
943
947
  };
944
948
 
949
+ export type PrimitivesFinalityBanConfig = {
950
+ minimalExpectedPerformance: number;
951
+ underperformedSessionCountThreshold: number;
952
+ banPeriod: number;
953
+ cleanSessionCounterDelay: number;
954
+ };
955
+
945
956
  export type PrimitivesBanInfo = { reason: PrimitivesBanReason; start: number };
946
957
 
947
- export type PrimitivesBanReason = { type: 'InsufficientUptime'; value: number } | { type: 'OtherReason'; value: Bytes };
958
+ export type PrimitivesBanReason =
959
+ | { type: 'InsufficientProduction'; value: number }
960
+ | { type: 'InsufficientFinalization'; value: number }
961
+ | { type: 'OtherReason'; value: Bytes };
948
962
 
949
963
  /**
950
964
  * The `Event` enum of this pallet
@@ -1797,10 +1811,11 @@ export type PalletAlephCall =
1797
1811
  /**
1798
1812
  * See [`Pallet::set_inflation_parameters`].
1799
1813
  **/
1800
- | {
1801
- name: 'SetInflationParameters';
1802
- params: { azeroCap?: bigint | undefined; horizonMillisecs?: bigint | undefined };
1803
- };
1814
+ | { name: 'SetInflationParameters'; params: { azeroCap?: bigint | undefined; horizonMillisecs?: bigint | undefined } }
1815
+ /**
1816
+ * See [`Pallet::unsigned_submit_abft_score`].
1817
+ **/
1818
+ | { name: 'UnsignedSubmitAbftScore'; params: { score: PrimitivesScore; signature: PrimitivesCryptoSignatureSet } };
1804
1819
 
1805
1820
  export type PalletAlephCallLike =
1806
1821
  /**
@@ -1814,10 +1829,21 @@ export type PalletAlephCallLike =
1814
1829
  /**
1815
1830
  * See [`Pallet::set_inflation_parameters`].
1816
1831
  **/
1817
- | {
1818
- name: 'SetInflationParameters';
1819
- params: { azeroCap?: bigint | undefined; horizonMillisecs?: bigint | undefined };
1820
- };
1832
+ | { name: 'SetInflationParameters'; params: { azeroCap?: bigint | undefined; horizonMillisecs?: bigint | undefined } }
1833
+ /**
1834
+ * See [`Pallet::unsigned_submit_abft_score`].
1835
+ **/
1836
+ | { name: 'UnsignedSubmitAbftScore'; params: { score: PrimitivesScore; signature: PrimitivesCryptoSignatureSet } };
1837
+
1838
+ export type PrimitivesScore = { sessionId: number; nonce: number; points: Array<number> };
1839
+
1840
+ export type PrimitivesCryptoSignatureSet = Array<PrimitivesCryptoIndexedSignature>;
1841
+
1842
+ export type PrimitivesAppSignature = SpCoreEd25519Signature;
1843
+
1844
+ export type SpCoreEd25519Signature = FixedBytes<64>;
1845
+
1846
+ export type PrimitivesCryptoIndexedSignature = { index: bigint; signature: PrimitivesAppSignature };
1821
1847
 
1822
1848
  /**
1823
1849
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -2925,8 +2951,6 @@ export type SpRuntimeMultiSignature =
2925
2951
  | { type: 'Sr25519'; value: SpCoreSr25519Signature }
2926
2952
  | { type: 'Ecdsa'; value: SpCoreEcdsaSignature };
2927
2953
 
2928
- export type SpCoreEd25519Signature = FixedBytes<64>;
2929
-
2930
2954
  export type SpCoreSr25519Signature = FixedBytes<64>;
2931
2955
 
2932
2956
  export type SpCoreEcdsaSignature = FixedBytes<65>;
@@ -2958,7 +2982,19 @@ export type PalletCommitteeManagementCall =
2958
2982
  /**
2959
2983
  * See [`Pallet::set_lenient_threshold`].
2960
2984
  **/
2961
- | { name: 'SetLenientThreshold'; params: { thresholdPercent: number } };
2985
+ | { name: 'SetLenientThreshold'; params: { thresholdPercent: number } }
2986
+ /**
2987
+ * See [`Pallet::set_finality_ban_config`].
2988
+ **/
2989
+ | {
2990
+ name: 'SetFinalityBanConfig';
2991
+ params: {
2992
+ minimalExpectedPerformance?: number | undefined;
2993
+ underperformedSessionCountThreshold?: number | undefined;
2994
+ banPeriod?: number | undefined;
2995
+ cleanSessionCounterDelay?: number | undefined;
2996
+ };
2997
+ };
2962
2998
 
2963
2999
  export type PalletCommitteeManagementCallLike =
2964
3000
  /**
@@ -2984,7 +3020,19 @@ export type PalletCommitteeManagementCallLike =
2984
3020
  /**
2985
3021
  * See [`Pallet::set_lenient_threshold`].
2986
3022
  **/
2987
- | { name: 'SetLenientThreshold'; params: { thresholdPercent: number } };
3023
+ | { name: 'SetLenientThreshold'; params: { thresholdPercent: number } }
3024
+ /**
3025
+ * See [`Pallet::set_finality_ban_config`].
3026
+ **/
3027
+ | {
3028
+ name: 'SetFinalityBanConfig';
3029
+ params: {
3030
+ minimalExpectedPerformance?: number | undefined;
3031
+ underperformedSessionCountThreshold?: number | undefined;
3032
+ banPeriod?: number | undefined;
3033
+ cleanSessionCounterDelay?: number | undefined;
3034
+ };
3035
+ };
2988
3036
 
2989
3037
  /**
2990
3038
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -4321,14 +4369,18 @@ export type PalletCommitteeManagementCurrentAndNextSessionValidators = {
4321
4369
  current: PrimitivesSessionValidators;
4322
4370
  };
4323
4371
 
4324
- export type PrimitivesSessionValidators = { committee: Array<AccountId32>; nonCommittee: Array<AccountId32> };
4372
+ export type PrimitivesSessionValidators = {
4373
+ producers: Array<AccountId32>;
4374
+ finalizers: Array<AccountId32>;
4375
+ nonCommittee: Array<AccountId32>;
4376
+ };
4325
4377
 
4326
4378
  /**
4327
4379
  * The `Error` enum of this pallet.
4328
4380
  **/
4329
4381
  export type PalletCommitteeManagementError =
4330
4382
  /**
4331
- * Raised in any scenario [`BanConfig`] is invalid
4383
+ * Raised in any scenario [`ProductionBanConfig`] is invalid
4332
4384
  * * `performance_ratio_threshold` must be a number in range [0; 100]
4333
4385
  * * `underperformed_session_count_threshold` must be a positive number,
4334
4386
  * * `clean_session_counter_delay` must be a positive number.
@@ -4514,7 +4566,7 @@ export type PrimitivesSessionAuthorityData = {
4514
4566
  emergencyFinalizer?: PrimitivesAppPublic | undefined;
4515
4567
  };
4516
4568
 
4517
- export type PrimitivesSessionCommittee = { finalityCommittee: Array<AccountId32>; blockProducers: Array<AccountId32> };
4569
+ export type PrimitivesSessionCommittee = { finalizers: Array<AccountId32>; producers: Array<AccountId32> };
4518
4570
 
4519
4571
  export type PrimitivesSessionValidatorError =
4520
4572
  | { type: 'SessionNotWithinRange'; value: { lowerLimit: number; upperLimit: number } }
package/astar/events.d.ts CHANGED
@@ -693,16 +693,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
693
693
  **/
694
694
  InflationParametersForceChanged: GenericPalletEvent<Rv, 'Inflation', 'InflationParametersForceChanged', null>;
695
695
 
696
- /**
697
- * Inflation configuration has been force changed. This will have an immediate effect from this block.
698
- **/
699
- InflationConfigurationForceChanged: GenericPalletEvent<
700
- Rv,
701
- 'Inflation',
702
- 'InflationConfigurationForceChanged',
703
- { config: PalletInflationInflationConfiguration }
704
- >;
705
-
706
696
  /**
707
697
  * Inflation recalculation has been forced.
708
698
  **/
package/astar/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: AstarApi
26
- * @specVersion: 1301
26
+ * @specVersion: 1401
27
27
  **/
28
28
  export interface AstarApi {
29
29
  legacy: VersionedAstarApi<RpcLegacy>;
package/astar/query.d.ts CHANGED
@@ -64,7 +64,6 @@ import type {
64
64
  PalletDappStakingTiersConfiguration,
65
65
  PalletDappStakingDAppTierRewards,
66
66
  PalletDappStakingCleanupMarker,
67
- PalletDappStakingBonusUpdateState,
68
67
  PalletAssetsAssetDetails,
69
68
  PalletAssetsAssetAccount,
70
69
  PalletAssetsApproval,
@@ -1068,14 +1067,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1068
1067
  **/
1069
1068
  safeguard: GenericStorageQuery<Rv, () => boolean>;
1070
1069
 
1071
- /**
1072
- * Temporary cursor to persist latest BonusStatus item updated.
1073
- * TODO: remove it once all BonusStatus are updated and this storage value is cleanup.
1074
- *
1075
- * @param {Callback<PalletDappStakingBonusUpdateState> =} callback
1076
- **/
1077
- activeBonusUpdateState: GenericStorageQuery<Rv, () => PalletDappStakingBonusUpdateState>;
1078
-
1079
1070
  /**
1080
1071
  * Generic pallet storage query
1081
1072
  **/
package/astar/tx.d.ts CHANGED
@@ -2700,6 +2700,35 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2700
2700
  >
2701
2701
  >;
2702
2702
 
2703
+ /**
2704
+ * Re-adjust the existing inflation configuration using the current inflation parameters.
2705
+ *
2706
+ * It might seem similar to forcing the inflation recalculation, but it's not.
2707
+ * This function adjusts the existing configuration, respecting the `max_emission` value used to calculate the current inflation config.
2708
+ * (The 'force' approach uses the current total issuance)
2709
+ *
2710
+ * This call should be used in case inflation parameters have changed during the cycle, and the configuration should be adjusted now.
2711
+ *
2712
+ * NOTE:
2713
+ * The call will do the best possible approximation of what the calculated max emission was at the moment when last inflation recalculation was done.
2714
+ * But due to rounding losses, it's not possible to get the exact same value. As a consequence, repeated calls to this function
2715
+ * might result in changes to the configuration, even though the inflation parameters haven't changed.
2716
+ * However, since this function isn't supposed to be called often, and changes are minimal, this is acceptable.
2717
+ *
2718
+ **/
2719
+ forceReadjustConfig: GenericTxCall<
2720
+ Rv,
2721
+ () => ChainSubmittableExtrinsic<
2722
+ Rv,
2723
+ {
2724
+ pallet: 'Inflation';
2725
+ palletCall: {
2726
+ name: 'ForceReadjustConfig';
2727
+ };
2728
+ }
2729
+ >
2730
+ >;
2731
+
2703
2732
  /**
2704
2733
  * Generic pallet tx call
2705
2734
  **/
@@ -3243,32 +3272,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3243
3272
  >
3244
3273
  >;
3245
3274
 
3246
- /**
3247
- * Active update `BonusStatus` according to the new MaxBonusSafeMovesPerPeriod from config
3248
- * for all already existing StakerInfo in steps, consuming up to the specified amount of
3249
- * weight.
3250
- *
3251
- * If no weight is specified, max allowed weight is used.
3252
- * In any case the weight_limit is clamped between the minimum & maximum allowed values.
3253
- *
3254
- * TODO: remove this extrinsic once BonusStatus update is done
3255
- *
3256
- * @param {SpWeightsWeightV2Weight | undefined} weightLimit
3257
- **/
3258
- updateBonus: GenericTxCall<
3259
- Rv,
3260
- (weightLimit: SpWeightsWeightV2Weight | undefined) => ChainSubmittableExtrinsic<
3261
- Rv,
3262
- {
3263
- pallet: 'DappStaking';
3264
- palletCall: {
3265
- name: 'UpdateBonus';
3266
- params: { weightLimit: SpWeightsWeightV2Weight | undefined };
3267
- };
3268
- }
3269
- >
3270
- >;
3271
-
3272
3275
  /**
3273
3276
  * Generic pallet tx call
3274
3277
  **/
package/astar/types.d.ts CHANGED
@@ -546,10 +546,6 @@ export type PalletInflationEvent =
546
546
  * Inflation parameters have been force changed. This will have effect on the next inflation recalculation.
547
547
  **/
548
548
  | { name: 'InflationParametersForceChanged' }
549
- /**
550
- * Inflation configuration has been force changed. This will have an immediate effect from this block.
551
- **/
552
- | { name: 'InflationConfigurationForceChanged'; data: { config: PalletInflationInflationConfiguration } }
553
549
  /**
554
550
  * Inflation recalculation has been forced.
555
551
  **/
@@ -4690,7 +4686,23 @@ export type PalletInflationCall =
4690
4686
  *
4691
4687
  * Purpose of the call is testing & handling unforeseen circumstances.
4692
4688
  **/
4693
- | { name: 'ForceInflationRecalculation'; params: { nextEra: number } };
4689
+ | { name: 'ForceInflationRecalculation'; params: { nextEra: number } }
4690
+ /**
4691
+ * Re-adjust the existing inflation configuration using the current inflation parameters.
4692
+ *
4693
+ * It might seem similar to forcing the inflation recalculation, but it's not.
4694
+ * This function adjusts the existing configuration, respecting the `max_emission` value used to calculate the current inflation config.
4695
+ * (The 'force' approach uses the current total issuance)
4696
+ *
4697
+ * This call should be used in case inflation parameters have changed during the cycle, and the configuration should be adjusted now.
4698
+ *
4699
+ * NOTE:
4700
+ * The call will do the best possible approximation of what the calculated max emission was at the moment when last inflation recalculation was done.
4701
+ * But due to rounding losses, it's not possible to get the exact same value. As a consequence, repeated calls to this function
4702
+ * might result in changes to the configuration, even though the inflation parameters haven't changed.
4703
+ * However, since this function isn't supposed to be called often, and changes are minimal, this is acceptable.
4704
+ **/
4705
+ | { name: 'ForceReadjustConfig' };
4694
4706
 
4695
4707
  export type PalletInflationCallLike =
4696
4708
  /**
@@ -4710,7 +4722,23 @@ export type PalletInflationCallLike =
4710
4722
  *
4711
4723
  * Purpose of the call is testing & handling unforeseen circumstances.
4712
4724
  **/
4713
- | { name: 'ForceInflationRecalculation'; params: { nextEra: number } };
4725
+ | { name: 'ForceInflationRecalculation'; params: { nextEra: number } }
4726
+ /**
4727
+ * Re-adjust the existing inflation configuration using the current inflation parameters.
4728
+ *
4729
+ * It might seem similar to forcing the inflation recalculation, but it's not.
4730
+ * This function adjusts the existing configuration, respecting the `max_emission` value used to calculate the current inflation config.
4731
+ * (The 'force' approach uses the current total issuance)
4732
+ *
4733
+ * This call should be used in case inflation parameters have changed during the cycle, and the configuration should be adjusted now.
4734
+ *
4735
+ * NOTE:
4736
+ * The call will do the best possible approximation of what the calculated max emission was at the moment when last inflation recalculation was done.
4737
+ * But due to rounding losses, it's not possible to get the exact same value. As a consequence, repeated calls to this function
4738
+ * might result in changes to the configuration, even though the inflation parameters haven't changed.
4739
+ * However, since this function isn't supposed to be called often, and changes are minimal, this is acceptable.
4740
+ **/
4741
+ | { name: 'ForceReadjustConfig' };
4714
4742
 
4715
4743
  export type PalletInflationInflationParameters = {
4716
4744
  maxInflationRate: Perquintill;
@@ -4891,18 +4919,7 @@ export type PalletDappStakingCall =
4891
4919
  * This is a delicate call and great care should be taken when changing these
4892
4920
  * values since it has a significant impact on the reward system.
4893
4921
  **/
4894
- | { name: 'SetStaticTierParams'; params: { params: PalletDappStakingTierParameters } }
4895
- /**
4896
- * Active update `BonusStatus` according to the new MaxBonusSafeMovesPerPeriod from config
4897
- * for all already existing StakerInfo in steps, consuming up to the specified amount of
4898
- * weight.
4899
- *
4900
- * If no weight is specified, max allowed weight is used.
4901
- * In any case the weight_limit is clamped between the minimum & maximum allowed values.
4902
- *
4903
- * TODO: remove this extrinsic once BonusStatus update is done
4904
- **/
4905
- | { name: 'UpdateBonus'; params: { weightLimit?: SpWeightsWeightV2Weight | undefined } };
4922
+ | { name: 'SetStaticTierParams'; params: { params: PalletDappStakingTierParameters } };
4906
4923
 
4907
4924
  export type PalletDappStakingCallLike =
4908
4925
  /**
@@ -5072,18 +5089,7 @@ export type PalletDappStakingCallLike =
5072
5089
  * This is a delicate call and great care should be taken when changing these
5073
5090
  * values since it has a significant impact on the reward system.
5074
5091
  **/
5075
- | { name: 'SetStaticTierParams'; params: { params: PalletDappStakingTierParameters } }
5076
- /**
5077
- * Active update `BonusStatus` according to the new MaxBonusSafeMovesPerPeriod from config
5078
- * for all already existing StakerInfo in steps, consuming up to the specified amount of
5079
- * weight.
5080
- *
5081
- * If no weight is specified, max allowed weight is used.
5082
- * In any case the weight_limit is clamped between the minimum & maximum allowed values.
5083
- *
5084
- * TODO: remove this extrinsic once BonusStatus update is done
5085
- **/
5086
- | { name: 'UpdateBonus'; params: { weightLimit?: SpWeightsWeightV2Weight | undefined } };
5092
+ | { name: 'SetStaticTierParams'; params: { params: PalletDappStakingTierParameters } };
5087
5093
 
5088
5094
  /**
5089
5095
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -10221,11 +10227,6 @@ export type AstarPrimitivesDappStakingRankedTier = number;
10221
10227
 
10222
10228
  export type PalletDappStakingCleanupMarker = { eraRewardIndex: number; dappTiersIndex: number; oldestValidEra: number };
10223
10229
 
10224
- export type PalletDappStakingBonusUpdateState =
10225
- | { type: 'NotInProgress' }
10226
- | { type: 'InProgress'; value: [AccountId32, AstarPrimitivesDappStakingSmartContract] }
10227
- | { type: 'Finished' };
10228
-
10229
10230
  /**
10230
10231
  * The `Error` enum of this pallet.
10231
10232
  **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.70.0",
3
+ "version": "0.72.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "1fe9aea0f268277d06948e19152baf6b86b3e43e",
22
+ "gitHead": "cf860568f0e7ec8b51e4469dfdc1f4666ecaa673",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }