@dedot/chaintypes 0.61.0 → 0.62.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/astar/consts.d.ts CHANGED
@@ -440,6 +440,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
440
440
  **/
441
441
  rankingEnabled: boolean;
442
442
 
443
+ /**
444
+ * The maximum number of 'safe move actions' allowed within a single period while
445
+ * retaining eligibility for bonus rewards. Exceeding this limit will result in the
446
+ * forfeiture of the bonus rewards for the affected stake.
447
+ **/
448
+ maxBonusSafeMovesPerPeriod: number;
449
+
443
450
  /**
444
451
  * Generic pallet constant
445
452
  **/
@@ -1082,11 +1089,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1082
1089
  **/
1083
1090
  maxApprovals: number;
1084
1091
 
1085
- /**
1086
- * The period during which an approved treasury spend has to be claimed.
1087
- **/
1088
- payoutPeriod: number;
1089
-
1090
1092
  /**
1091
1093
  * Generic pallet constant
1092
1094
  **/
@@ -1134,11 +1136,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1134
1136
  **/
1135
1137
  maxApprovals: number;
1136
1138
 
1137
- /**
1138
- * The period during which an approved treasury spend has to be claimed.
1139
- **/
1140
- payoutPeriod: number;
1141
-
1142
1139
  /**
1143
1140
  * Generic pallet constant
1144
1141
  **/
package/astar/errors.d.ts CHANGED
@@ -725,6 +725,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
725
725
  **/
726
726
  ForceNotAllowed: GenericPalletError<Rv>;
727
727
 
728
+ /**
729
+ * Invalid tier parameters were provided. This can happen if any number exceeds 100% or if number of elements does not match the number of tiers.
730
+ **/
731
+ InvalidTierParams: GenericPalletError<Rv>;
732
+
733
+ /**
734
+ * Same contract specified as source and destination.
735
+ **/
736
+ SameContracts: GenericPalletError<Rv>;
737
+
728
738
  /**
729
739
  * Generic pallet error
730
740
  **/
@@ -2169,41 +2179,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2169
2179
  **/
2170
2180
  ProposalNotApproved: GenericPalletError<Rv>;
2171
2181
 
2172
- /**
2173
- * The balance of the asset kind is not convertible to the balance of the native asset.
2174
- **/
2175
- FailedToConvertBalance: GenericPalletError<Rv>;
2176
-
2177
- /**
2178
- * The spend has expired and cannot be claimed.
2179
- **/
2180
- SpendExpired: GenericPalletError<Rv>;
2181
-
2182
- /**
2183
- * The spend is not yet eligible for payout.
2184
- **/
2185
- EarlyPayout: GenericPalletError<Rv>;
2186
-
2187
- /**
2188
- * The payment has already been attempted.
2189
- **/
2190
- AlreadyAttempted: GenericPalletError<Rv>;
2191
-
2192
- /**
2193
- * There was some issue with the mechanism of payment.
2194
- **/
2195
- PayoutError: GenericPalletError<Rv>;
2196
-
2197
- /**
2198
- * The payout was not yet attempted/claimed.
2199
- **/
2200
- NotAttempted: GenericPalletError<Rv>;
2201
-
2202
- /**
2203
- * The payment has neither failed nor succeeded yet.
2204
- **/
2205
- Inconclusive: GenericPalletError<Rv>;
2206
-
2207
2182
  /**
2208
2183
  * Generic pallet error
2209
2184
  **/
@@ -2239,41 +2214,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2239
2214
  **/
2240
2215
  ProposalNotApproved: GenericPalletError<Rv>;
2241
2216
 
2242
- /**
2243
- * The balance of the asset kind is not convertible to the balance of the native asset.
2244
- **/
2245
- FailedToConvertBalance: GenericPalletError<Rv>;
2246
-
2247
- /**
2248
- * The spend has expired and cannot be claimed.
2249
- **/
2250
- SpendExpired: GenericPalletError<Rv>;
2251
-
2252
- /**
2253
- * The spend is not yet eligible for payout.
2254
- **/
2255
- EarlyPayout: GenericPalletError<Rv>;
2256
-
2257
- /**
2258
- * The payment has already been attempted.
2259
- **/
2260
- AlreadyAttempted: GenericPalletError<Rv>;
2261
-
2262
- /**
2263
- * There was some issue with the mechanism of payment.
2264
- **/
2265
- PayoutError: GenericPalletError<Rv>;
2266
-
2267
- /**
2268
- * The payout was not yet attempted/claimed.
2269
- **/
2270
- NotAttempted: GenericPalletError<Rv>;
2271
-
2272
- /**
2273
- * The payment has neither failed nor succeeded yet.
2274
- **/
2275
- Inconclusive: GenericPalletError<Rv>;
2276
-
2277
2217
  /**
2278
2218
  * Generic pallet error
2279
2219
  **/
package/astar/events.d.ts CHANGED
@@ -22,6 +22,7 @@ import type {
22
22
  PalletDappStakingSubperiod,
23
23
  AstarPrimitivesDappStakingSmartContract,
24
24
  PalletDappStakingForcingType,
25
+ PalletDappStakingTierParameters,
25
26
  AstarPrimitivesOracleCurrencyId,
26
27
  StagingXcmV4TraitsOutcome,
27
28
  StagingXcmV4Location,
@@ -837,7 +838,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
837
838
  Reward: GenericPalletEvent<Rv, 'DappStaking', 'Reward', { account: AccountId32; era: number; amount: bigint }>;
838
839
 
839
840
  /**
840
- * Bonus reward has been paid out to a loyal staker.
841
+ * Bonus reward has been paid out to a staker with an eligible bonus status.
841
842
  **/
842
843
  BonusReward: GenericPalletEvent<
843
844
  Rv,
@@ -888,6 +889,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
888
889
  **/
889
890
  Force: GenericPalletEvent<Rv, 'DappStaking', 'Force', { forcingType: PalletDappStakingForcingType }>;
890
891
 
892
+ /**
893
+ * Account has moved some stake from a source smart contract to a destination smart contract.
894
+ **/
895
+ StakeMoved: GenericPalletEvent<
896
+ Rv,
897
+ 'DappStaking',
898
+ 'StakeMoved',
899
+ {
900
+ account: AccountId32;
901
+ sourceContract: AstarPrimitivesDappStakingSmartContract;
902
+ destinationContract: AstarPrimitivesDappStakingSmartContract;
903
+ amount: bigint;
904
+ }
905
+ >;
906
+
907
+ /**
908
+ * Tier parameters, used to calculate tier configuration, have been updated, and will be applicable from next era.
909
+ **/
910
+ NewTierParameters: GenericPalletEvent<
911
+ Rv,
912
+ 'DappStaking',
913
+ 'NewTierParameters',
914
+ { params: PalletDappStakingTierParameters }
915
+ >;
916
+
891
917
  /**
892
918
  * Generic pallet event
893
919
  **/
@@ -2575,15 +2601,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2575
2601
 
2576
2602
  /**
2577
2603
  * A new spend proposal has been approved.
2578
- **/
2579
- SpendApproved: GenericPalletEvent<
2580
- Rv,
2581
- 'Treasury',
2582
- 'SpendApproved',
2583
- { proposalIndex: number; amount: bigint; beneficiary: AccountId32 }
2584
- >;
2585
-
2586
- /**
2587
2604
  * The inactive funds of the pallet have been updated.
2588
2605
  **/
2589
2606
  UpdatedInactive: GenericPalletEvent<
@@ -2593,37 +2610,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2593
2610
  { reactivated: bigint; deactivated: bigint }
2594
2611
  >;
2595
2612
 
2596
- /**
2597
- * A new asset spend proposal has been approved.
2598
- **/
2599
- AssetSpendApproved: GenericPalletEvent<
2600
- Rv,
2601
- 'Treasury',
2602
- 'AssetSpendApproved',
2603
- { index: number; assetKind: []; amount: bigint; beneficiary: AccountId32; validFrom: number; expireAt: number }
2604
- >;
2605
-
2606
- /**
2607
- * An approved spend was voided.
2608
- **/
2609
- AssetSpendVoided: GenericPalletEvent<Rv, 'Treasury', 'AssetSpendVoided', { index: number }>;
2610
-
2611
- /**
2612
- * A payment happened.
2613
- **/
2614
- Paid: GenericPalletEvent<Rv, 'Treasury', 'Paid', { index: number; paymentId: [] }>;
2615
-
2616
- /**
2617
- * A payment failed and can be retried.
2618
- **/
2619
- PaymentFailed: GenericPalletEvent<Rv, 'Treasury', 'PaymentFailed', { index: number; paymentId: [] }>;
2620
-
2621
- /**
2622
- * A spend was processed and removed from the storage. It might have been successfully
2623
- * paid or it may have expired.
2624
- **/
2625
- SpendProcessed: GenericPalletEvent<Rv, 'Treasury', 'SpendProcessed', { index: number }>;
2626
-
2627
2613
  /**
2628
2614
  * Generic pallet event
2629
2615
  **/
@@ -2675,15 +2661,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2675
2661
 
2676
2662
  /**
2677
2663
  * A new spend proposal has been approved.
2678
- **/
2679
- SpendApproved: GenericPalletEvent<
2680
- Rv,
2681
- 'CommunityTreasury',
2682
- 'SpendApproved',
2683
- { proposalIndex: number; amount: bigint; beneficiary: AccountId32 }
2684
- >;
2685
-
2686
- /**
2687
2664
  * The inactive funds of the pallet have been updated.
2688
2665
  **/
2689
2666
  UpdatedInactive: GenericPalletEvent<
@@ -2693,37 +2670,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2693
2670
  { reactivated: bigint; deactivated: bigint }
2694
2671
  >;
2695
2672
 
2696
- /**
2697
- * A new asset spend proposal has been approved.
2698
- **/
2699
- AssetSpendApproved: GenericPalletEvent<
2700
- Rv,
2701
- 'CommunityTreasury',
2702
- 'AssetSpendApproved',
2703
- { index: number; assetKind: []; amount: bigint; beneficiary: AccountId32; validFrom: number; expireAt: number }
2704
- >;
2705
-
2706
- /**
2707
- * An approved spend was voided.
2708
- **/
2709
- AssetSpendVoided: GenericPalletEvent<Rv, 'CommunityTreasury', 'AssetSpendVoided', { index: number }>;
2710
-
2711
- /**
2712
- * A payment happened.
2713
- **/
2714
- Paid: GenericPalletEvent<Rv, 'CommunityTreasury', 'Paid', { index: number; paymentId: [] }>;
2715
-
2716
- /**
2717
- * A payment failed and can be retried.
2718
- **/
2719
- PaymentFailed: GenericPalletEvent<Rv, 'CommunityTreasury', 'PaymentFailed', { index: number; paymentId: [] }>;
2720
-
2721
- /**
2722
- * A spend was processed and removed from the storage. It might have been successfully
2723
- * paid or it may have expired.
2724
- **/
2725
- SpendProcessed: GenericPalletEvent<Rv, 'CommunityTreasury', 'SpendProcessed', { index: number }>;
2726
-
2727
2673
  /**
2728
2674
  * Generic pallet event
2729
2675
  **/
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: 1200
26
+ * @specVersion: 1301
27
27
  **/
28
28
  export interface AstarApi {
29
29
  legacy: VersionedAstarApi<RpcLegacy>;
package/astar/query.d.ts CHANGED
@@ -64,6 +64,7 @@ import type {
64
64
  PalletDappStakingTiersConfiguration,
65
65
  PalletDappStakingDAppTierRewards,
66
66
  PalletDappStakingCleanupMarker,
67
+ PalletDappStakingBonusUpdateState,
67
68
  PalletAssetsAssetDetails,
68
69
  PalletAssetsAssetAccount,
69
70
  PalletAssetsApproval,
@@ -107,7 +108,6 @@ import type {
107
108
  PalletDemocracyVoteThreshold,
108
109
  PalletDemocracyMetadataOwner,
109
110
  PalletTreasuryProposal,
110
- PalletTreasurySpendStatus,
111
111
  PalletMigrationsMigrationCursor,
112
112
  } from './types';
113
113
 
@@ -1068,6 +1068,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1068
1068
  **/
1069
1069
  safeguard: GenericStorageQuery<Rv, () => boolean>;
1070
1070
 
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
+
1071
1079
  /**
1072
1080
  * Generic pallet storage query
1073
1081
  **/
@@ -2383,21 +2391,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2383
2391
  **/
2384
2392
  approvals: GenericStorageQuery<Rv, () => Array<number>>;
2385
2393
 
2386
- /**
2387
- * The count of spends that have been made.
2388
- *
2389
- * @param {Callback<number> =} callback
2390
- **/
2391
- spendCount: GenericStorageQuery<Rv, () => number>;
2392
-
2393
- /**
2394
- * Spends that have been approved and being processed.
2395
- *
2396
- * @param {number} arg
2397
- * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
2398
- **/
2399
- spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
2400
-
2401
2394
  /**
2402
2395
  * Generic pallet storage query
2403
2396
  **/
@@ -2436,21 +2429,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2436
2429
  **/
2437
2430
  approvals: GenericStorageQuery<Rv, () => Array<number>>;
2438
2431
 
2439
- /**
2440
- * The count of spends that have been made.
2441
- *
2442
- * @param {Callback<number> =} callback
2443
- **/
2444
- spendCount: GenericStorageQuery<Rv, () => number>;
2445
-
2446
- /**
2447
- * Spends that have been approved and being processed.
2448
- *
2449
- * @param {number} arg
2450
- * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
2451
- **/
2452
- spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
2453
-
2454
2432
  /**
2455
2433
  * Generic pallet storage query
2456
2434
  **/