@dedot/chaintypes 0.61.0 → 0.63.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/types.d.ts CHANGED
@@ -11,6 +11,8 @@ import type {
11
11
  FixedBytes,
12
12
  Perquintill,
13
13
  H160,
14
+ Permill,
15
+ Perbill,
14
16
  FixedU128,
15
17
  FixedArray,
16
18
  U256,
@@ -19,8 +21,6 @@ import type {
19
21
  Data,
20
22
  MultiAddressLike,
21
23
  AccountId32Like,
22
- Permill,
23
- Perbill,
24
24
  Era,
25
25
  Header,
26
26
  UncheckedExtrinsic,
@@ -647,7 +647,7 @@ export type PalletDappStakingEvent =
647
647
  **/
648
648
  | { name: 'Reward'; data: { account: AccountId32; era: number; amount: bigint } }
649
649
  /**
650
- * Bonus reward has been paid out to a loyal staker.
650
+ * Bonus reward has been paid out to a staker with an eligible bonus status.
651
651
  **/
652
652
  | {
653
653
  name: 'BonusReward';
@@ -686,7 +686,23 @@ export type PalletDappStakingEvent =
686
686
  /**
687
687
  * Privileged origin has forced a new era and possibly a subperiod to start from next block.
688
688
  **/
689
- | { name: 'Force'; data: { forcingType: PalletDappStakingForcingType } };
689
+ | { name: 'Force'; data: { forcingType: PalletDappStakingForcingType } }
690
+ /**
691
+ * Account has moved some stake from a source smart contract to a destination smart contract.
692
+ **/
693
+ | {
694
+ name: 'StakeMoved';
695
+ data: {
696
+ account: AccountId32;
697
+ sourceContract: AstarPrimitivesDappStakingSmartContract;
698
+ destinationContract: AstarPrimitivesDappStakingSmartContract;
699
+ amount: bigint;
700
+ };
701
+ }
702
+ /**
703
+ * Tier parameters, used to calculate tier configuration, have been updated, and will be applicable from next era.
704
+ **/
705
+ | { name: 'NewTierParameters'; data: { params: PalletDappStakingTierParameters } };
690
706
 
691
707
  export type PalletDappStakingSubperiod = 'Voting' | 'BuildAndEarn';
692
708
 
@@ -696,6 +712,17 @@ export type AstarPrimitivesDappStakingSmartContract =
696
712
 
697
713
  export type PalletDappStakingForcingType = 'Era' | 'Subperiod';
698
714
 
715
+ export type PalletDappStakingTierParameters = {
716
+ rewardPortion: Array<Permill>;
717
+ slotDistribution: Array<Permill>;
718
+ tierThresholds: Array<PalletDappStakingTierThreshold>;
719
+ slotNumberArgs: [bigint, bigint];
720
+ };
721
+
722
+ export type PalletDappStakingTierThreshold =
723
+ | { type: 'FixedPercentage'; value: { requiredPercentage: Perbill } }
724
+ | { type: 'DynamicPercentage'; value: { percentage: Perbill; minimumRequiredPercentage: Perbill } };
725
+
699
726
  /**
700
727
  * The `Event` enum of this pallet
701
728
  **/
@@ -2182,43 +2209,9 @@ export type PalletTreasuryEvent =
2182
2209
  | { name: 'Deposit'; data: { value: bigint } }
2183
2210
  /**
2184
2211
  * A new spend proposal has been approved.
2185
- **/
2186
- | { name: 'SpendApproved'; data: { proposalIndex: number; amount: bigint; beneficiary: AccountId32 } }
2187
- /**
2188
2212
  * The inactive funds of the pallet have been updated.
2189
2213
  **/
2190
- | { name: 'UpdatedInactive'; data: { reactivated: bigint; deactivated: bigint } }
2191
- /**
2192
- * A new asset spend proposal has been approved.
2193
- **/
2194
- | {
2195
- name: 'AssetSpendApproved';
2196
- data: {
2197
- index: number;
2198
- assetKind: [];
2199
- amount: bigint;
2200
- beneficiary: AccountId32;
2201
- validFrom: number;
2202
- expireAt: number;
2203
- };
2204
- }
2205
- /**
2206
- * An approved spend was voided.
2207
- **/
2208
- | { name: 'AssetSpendVoided'; data: { index: number } }
2209
- /**
2210
- * A payment happened.
2211
- **/
2212
- | { name: 'Paid'; data: { index: number; paymentId: [] } }
2213
- /**
2214
- * A payment failed and can be retried.
2215
- **/
2216
- | { name: 'PaymentFailed'; data: { index: number; paymentId: [] } }
2217
- /**
2218
- * A spend was processed and removed from the storage. It might have been successfully
2219
- * paid or it may have expired.
2220
- **/
2221
- | { name: 'SpendProcessed'; data: { index: number } };
2214
+ | { name: 'UpdatedInactive'; data: { reactivated: bigint; deactivated: bigint } };
2222
2215
 
2223
2216
  /**
2224
2217
  * The `Event` enum of this pallet
@@ -4853,8 +4846,8 @@ export type PalletDappStakingCall =
4853
4846
  * Cleanup expired stake entries for the contract.
4854
4847
  *
4855
4848
  * Entry is considered to be expired if:
4856
- * 1. It's from a past period & the account wasn't a loyal staker, meaning there's no claimable bonus reward.
4857
- * 2. It's from a period older than the oldest claimable period, regardless whether the account was loyal or not.
4849
+ * 1. It's from a past period & the account did not maintain an eligible bonus status, meaning there's no claimable bonus reward.
4850
+ * 2. It's from a period older than the oldest claimable period, regardless of whether the account had an eligible bonus status or not.
4858
4851
  **/
4859
4852
  | { name: 'CleanupExpiredEntries' }
4860
4853
  /**
@@ -4878,7 +4871,38 @@ export type PalletDappStakingCall =
4878
4871
  | {
4879
4872
  name: 'ClaimBonusRewardFor';
4880
4873
  params: { account: AccountId32; smartContract: AstarPrimitivesDappStakingSmartContract };
4881
- };
4874
+ }
4875
+ /**
4876
+ * Transfers stake between two smart contracts, ensuring bonus status preservation if eligible.
4877
+ * Emits a `StakeMoved` event.
4878
+ **/
4879
+ | {
4880
+ name: 'MoveStake';
4881
+ params: {
4882
+ sourceContract: AstarPrimitivesDappStakingSmartContract;
4883
+ destinationContract: AstarPrimitivesDappStakingSmartContract;
4884
+ amount: bigint;
4885
+ };
4886
+ }
4887
+ /**
4888
+ * Used to set static tier parameters, which are used to calculate tier configuration.
4889
+ * Tier configuration defines tier entry threshold values, number of slots, and reward portions.
4890
+ *
4891
+ * This is a delicate call and great care should be taken when changing these
4892
+ * values since it has a significant impact on the reward system.
4893
+ **/
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 } };
4882
4906
 
4883
4907
  export type PalletDappStakingCallLike =
4884
4908
  /**
@@ -5003,8 +5027,8 @@ export type PalletDappStakingCallLike =
5003
5027
  * Cleanup expired stake entries for the contract.
5004
5028
  *
5005
5029
  * Entry is considered to be expired if:
5006
- * 1. It's from a past period & the account wasn't a loyal staker, meaning there's no claimable bonus reward.
5007
- * 2. It's from a period older than the oldest claimable period, regardless whether the account was loyal or not.
5030
+ * 1. It's from a past period & the account did not maintain an eligible bonus status, meaning there's no claimable bonus reward.
5031
+ * 2. It's from a period older than the oldest claimable period, regardless of whether the account had an eligible bonus status or not.
5008
5032
  **/
5009
5033
  | { name: 'CleanupExpiredEntries' }
5010
5034
  /**
@@ -5028,7 +5052,38 @@ export type PalletDappStakingCallLike =
5028
5052
  | {
5029
5053
  name: 'ClaimBonusRewardFor';
5030
5054
  params: { account: AccountId32Like; smartContract: AstarPrimitivesDappStakingSmartContract };
5031
- };
5055
+ }
5056
+ /**
5057
+ * Transfers stake between two smart contracts, ensuring bonus status preservation if eligible.
5058
+ * Emits a `StakeMoved` event.
5059
+ **/
5060
+ | {
5061
+ name: 'MoveStake';
5062
+ params: {
5063
+ sourceContract: AstarPrimitivesDappStakingSmartContract;
5064
+ destinationContract: AstarPrimitivesDappStakingSmartContract;
5065
+ amount: bigint;
5066
+ };
5067
+ }
5068
+ /**
5069
+ * Used to set static tier parameters, which are used to calculate tier configuration.
5070
+ * Tier configuration defines tier entry threshold values, number of slots, and reward portions.
5071
+ *
5072
+ * This is a delicate call and great care should be taken when changing these
5073
+ * values since it has a significant impact on the reward system.
5074
+ **/
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 } };
5032
5087
 
5033
5088
  /**
5034
5089
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -9397,146 +9452,7 @@ export type PalletTreasuryCall =
9397
9452
  *
9398
9453
  * No events are emitted from this dispatch.
9399
9454
  **/
9400
- | { name: 'ApproveProposal'; params: { proposalId: number } }
9401
- /**
9402
- * Propose and approve a spend of treasury funds.
9403
- *
9404
- * ## Dispatch Origin
9405
- *
9406
- * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`.
9407
- *
9408
- * ### Details
9409
- * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
9410
- * beneficiary.
9411
- *
9412
- * ### Parameters
9413
- * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
9414
- * - `beneficiary`: The destination account for the transfer.
9415
- *
9416
- * ## Events
9417
- *
9418
- * Emits [`Event::SpendApproved`] if successful.
9419
- **/
9420
- | { name: 'SpendLocal'; params: { amount: bigint; beneficiary: MultiAddress } }
9421
- /**
9422
- * Force a previously approved proposal to be removed from the approval queue.
9423
- *
9424
- * ## Dispatch Origin
9425
- *
9426
- * Must be [`Config::RejectOrigin`].
9427
- *
9428
- * ## Details
9429
- *
9430
- * The original deposit will no longer be returned.
9431
- *
9432
- * ### Parameters
9433
- * - `proposal_id`: The index of a proposal
9434
- *
9435
- * ### Complexity
9436
- * - O(A) where `A` is the number of approvals
9437
- *
9438
- * ### Errors
9439
- * - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the
9440
- * approval queue, i.e., the proposal has not been approved. This could also mean the
9441
- * proposal does not exist altogether, thus there is no way it would have been approved
9442
- * in the first place.
9443
- **/
9444
- | { name: 'RemoveApproval'; params: { proposalId: number } }
9445
- /**
9446
- * Propose and approve a spend of treasury funds.
9447
- *
9448
- * ## Dispatch Origin
9449
- *
9450
- * Must be [`Config::SpendOrigin`] with the `Success` value being at least
9451
- * `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted
9452
- * for assertion using the [`Config::BalanceConverter`].
9453
- *
9454
- * ## Details
9455
- *
9456
- * Create an approved spend for transferring a specific `amount` of `asset_kind` to a
9457
- * designated beneficiary. The spend must be claimed using the `payout` dispatchable within
9458
- * the [`Config::PayoutPeriod`].
9459
- *
9460
- * ### Parameters
9461
- * - `asset_kind`: An indicator of the specific asset class to be spent.
9462
- * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
9463
- * - `beneficiary`: The beneficiary of the spend.
9464
- * - `valid_from`: The block number from which the spend can be claimed. It can refer to
9465
- * the past if the resulting spend has not yet expired according to the
9466
- * [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after
9467
- * approval.
9468
- *
9469
- * ## Events
9470
- *
9471
- * Emits [`Event::AssetSpendApproved`] if successful.
9472
- **/
9473
- | {
9474
- name: 'Spend';
9475
- params: { assetKind: []; amount: bigint; beneficiary: AccountId32; validFrom?: number | undefined };
9476
- }
9477
- /**
9478
- * Claim a spend.
9479
- *
9480
- * ## Dispatch Origin
9481
- *
9482
- * Must be signed.
9483
- *
9484
- * ## Details
9485
- *
9486
- * Spends must be claimed within some temporal bounds. A spend may be claimed within one
9487
- * [`Config::PayoutPeriod`] from the `valid_from` block.
9488
- * In case of a payout failure, the spend status must be updated with the `check_status`
9489
- * dispatchable before retrying with the current function.
9490
- *
9491
- * ### Parameters
9492
- * - `index`: The spend index.
9493
- *
9494
- * ## Events
9495
- *
9496
- * Emits [`Event::Paid`] if successful.
9497
- **/
9498
- | { name: 'Payout'; params: { index: number } }
9499
- /**
9500
- * Check the status of the spend and remove it from the storage if processed.
9501
- *
9502
- * ## Dispatch Origin
9503
- *
9504
- * Must be signed.
9505
- *
9506
- * ## Details
9507
- *
9508
- * The status check is a prerequisite for retrying a failed payout.
9509
- * If a spend has either succeeded or expired, it is removed from the storage by this
9510
- * function. In such instances, transaction fees are refunded.
9511
- *
9512
- * ### Parameters
9513
- * - `index`: The spend index.
9514
- *
9515
- * ## Events
9516
- *
9517
- * Emits [`Event::PaymentFailed`] if the spend payout has failed.
9518
- * Emits [`Event::SpendProcessed`] if the spend payout has succeed.
9519
- **/
9520
- | { name: 'CheckStatus'; params: { index: number } }
9521
- /**
9522
- * Void previously approved spend.
9523
- *
9524
- * ## Dispatch Origin
9525
- *
9526
- * Must be [`Config::RejectOrigin`].
9527
- *
9528
- * ## Details
9529
- *
9530
- * A spend void is only possible if the payout has not been attempted yet.
9531
- *
9532
- * ### Parameters
9533
- * - `index`: The spend index.
9534
- *
9535
- * ## Events
9536
- *
9537
- * Emits [`Event::AssetSpendVoided`] if successful.
9538
- **/
9539
- | { name: 'VoidSpend'; params: { index: number } };
9455
+ | { name: 'ApproveProposal'; params: { proposalId: number } };
9540
9456
 
9541
9457
  export type PalletTreasuryCallLike =
9542
9458
  /**
@@ -9595,146 +9511,7 @@ export type PalletTreasuryCallLike =
9595
9511
  *
9596
9512
  * No events are emitted from this dispatch.
9597
9513
  **/
9598
- | { name: 'ApproveProposal'; params: { proposalId: number } }
9599
- /**
9600
- * Propose and approve a spend of treasury funds.
9601
- *
9602
- * ## Dispatch Origin
9603
- *
9604
- * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`.
9605
- *
9606
- * ### Details
9607
- * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
9608
- * beneficiary.
9609
- *
9610
- * ### Parameters
9611
- * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
9612
- * - `beneficiary`: The destination account for the transfer.
9613
- *
9614
- * ## Events
9615
- *
9616
- * Emits [`Event::SpendApproved`] if successful.
9617
- **/
9618
- | { name: 'SpendLocal'; params: { amount: bigint; beneficiary: MultiAddressLike } }
9619
- /**
9620
- * Force a previously approved proposal to be removed from the approval queue.
9621
- *
9622
- * ## Dispatch Origin
9623
- *
9624
- * Must be [`Config::RejectOrigin`].
9625
- *
9626
- * ## Details
9627
- *
9628
- * The original deposit will no longer be returned.
9629
- *
9630
- * ### Parameters
9631
- * - `proposal_id`: The index of a proposal
9632
- *
9633
- * ### Complexity
9634
- * - O(A) where `A` is the number of approvals
9635
- *
9636
- * ### Errors
9637
- * - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the
9638
- * approval queue, i.e., the proposal has not been approved. This could also mean the
9639
- * proposal does not exist altogether, thus there is no way it would have been approved
9640
- * in the first place.
9641
- **/
9642
- | { name: 'RemoveApproval'; params: { proposalId: number } }
9643
- /**
9644
- * Propose and approve a spend of treasury funds.
9645
- *
9646
- * ## Dispatch Origin
9647
- *
9648
- * Must be [`Config::SpendOrigin`] with the `Success` value being at least
9649
- * `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted
9650
- * for assertion using the [`Config::BalanceConverter`].
9651
- *
9652
- * ## Details
9653
- *
9654
- * Create an approved spend for transferring a specific `amount` of `asset_kind` to a
9655
- * designated beneficiary. The spend must be claimed using the `payout` dispatchable within
9656
- * the [`Config::PayoutPeriod`].
9657
- *
9658
- * ### Parameters
9659
- * - `asset_kind`: An indicator of the specific asset class to be spent.
9660
- * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
9661
- * - `beneficiary`: The beneficiary of the spend.
9662
- * - `valid_from`: The block number from which the spend can be claimed. It can refer to
9663
- * the past if the resulting spend has not yet expired according to the
9664
- * [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after
9665
- * approval.
9666
- *
9667
- * ## Events
9668
- *
9669
- * Emits [`Event::AssetSpendApproved`] if successful.
9670
- **/
9671
- | {
9672
- name: 'Spend';
9673
- params: { assetKind: []; amount: bigint; beneficiary: AccountId32Like; validFrom?: number | undefined };
9674
- }
9675
- /**
9676
- * Claim a spend.
9677
- *
9678
- * ## Dispatch Origin
9679
- *
9680
- * Must be signed.
9681
- *
9682
- * ## Details
9683
- *
9684
- * Spends must be claimed within some temporal bounds. A spend may be claimed within one
9685
- * [`Config::PayoutPeriod`] from the `valid_from` block.
9686
- * In case of a payout failure, the spend status must be updated with the `check_status`
9687
- * dispatchable before retrying with the current function.
9688
- *
9689
- * ### Parameters
9690
- * - `index`: The spend index.
9691
- *
9692
- * ## Events
9693
- *
9694
- * Emits [`Event::Paid`] if successful.
9695
- **/
9696
- | { name: 'Payout'; params: { index: number } }
9697
- /**
9698
- * Check the status of the spend and remove it from the storage if processed.
9699
- *
9700
- * ## Dispatch Origin
9701
- *
9702
- * Must be signed.
9703
- *
9704
- * ## Details
9705
- *
9706
- * The status check is a prerequisite for retrying a failed payout.
9707
- * If a spend has either succeeded or expired, it is removed from the storage by this
9708
- * function. In such instances, transaction fees are refunded.
9709
- *
9710
- * ### Parameters
9711
- * - `index`: The spend index.
9712
- *
9713
- * ## Events
9714
- *
9715
- * Emits [`Event::PaymentFailed`] if the spend payout has failed.
9716
- * Emits [`Event::SpendProcessed`] if the spend payout has succeed.
9717
- **/
9718
- | { name: 'CheckStatus'; params: { index: number } }
9719
- /**
9720
- * Void previously approved spend.
9721
- *
9722
- * ## Dispatch Origin
9723
- *
9724
- * Must be [`Config::RejectOrigin`].
9725
- *
9726
- * ## Details
9727
- *
9728
- * A spend void is only possible if the payout has not been attempted yet.
9729
- *
9730
- * ### Parameters
9731
- * - `index`: The spend index.
9732
- *
9733
- * ## Events
9734
- *
9735
- * Emits [`Event::AssetSpendVoided`] if successful.
9736
- **/
9737
- | { name: 'VoidSpend'; params: { index: number } };
9514
+ | { name: 'ApproveProposal'; params: { proposalId: number } };
9738
9515
 
9739
9516
  /**
9740
9517
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -10402,7 +10179,7 @@ export type PalletDappStakingStakeAmount = { voting: bigint; buildAndEarn: bigin
10402
10179
  export type PalletDappStakingSingularStakingInfo = {
10403
10180
  previousStaked: PalletDappStakingStakeAmount;
10404
10181
  staked: PalletDappStakingStakeAmount;
10405
- loyalStaker: boolean;
10182
+ bonusStatus: number;
10406
10183
  };
10407
10184
 
10408
10185
  export type PalletDappStakingContractStakeAmount = {
@@ -10427,16 +10204,6 @@ export type PalletDappStakingEraReward = { stakerRewardPool: bigint; staked: big
10427
10204
 
10428
10205
  export type PalletDappStakingPeriodEndInfo = { bonusRewardPool: bigint; totalVpStake: bigint; finalEra: number };
10429
10206
 
10430
- export type PalletDappStakingTierParameters = {
10431
- rewardPortion: Array<Permill>;
10432
- slotDistribution: Array<Permill>;
10433
- tierThresholds: Array<PalletDappStakingTierThreshold>;
10434
- };
10435
-
10436
- export type PalletDappStakingTierThreshold =
10437
- | { type: 'FixedPercentage'; value: { requiredPercentage: Perbill } }
10438
- | { type: 'DynamicPercentage'; value: { percentage: Perbill; minimumRequiredPercentage: Perbill } };
10439
-
10440
10207
  export type PalletDappStakingTiersConfiguration = {
10441
10208
  slotsPerTier: Array<number>;
10442
10209
  rewardPortion: Array<Permill>;
@@ -10454,6 +10221,11 @@ export type AstarPrimitivesDappStakingRankedTier = number;
10454
10221
 
10455
10222
  export type PalletDappStakingCleanupMarker = { eraRewardIndex: number; dappTiersIndex: number; oldestValidEra: number };
10456
10223
 
10224
+ export type PalletDappStakingBonusUpdateState =
10225
+ | { type: 'NotInProgress' }
10226
+ | { type: 'InProgress'; value: [AccountId32, AstarPrimitivesDappStakingSmartContract] }
10227
+ | { type: 'Finished' };
10228
+
10457
10229
  /**
10458
10230
  * The `Error` enum of this pallet.
10459
10231
  **/
@@ -10599,7 +10371,15 @@ export type PalletDappStakingError =
10599
10371
  /**
10600
10372
  * Force call is not allowed in production.
10601
10373
  **/
10602
- | 'ForceNotAllowed';
10374
+ | 'ForceNotAllowed'
10375
+ /**
10376
+ * 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.
10377
+ **/
10378
+ | 'InvalidTierParams'
10379
+ /**
10380
+ * Same contract specified as source and destination.
10381
+ **/
10382
+ | 'SameContracts';
10603
10383
 
10604
10384
  export type PalletAssetsAssetDetails = {
10605
10385
  owner: AccountId32;
@@ -11842,20 +11622,6 @@ export type PalletDemocracyError =
11842
11622
 
11843
11623
  export type PalletTreasuryProposal = { proposer: AccountId32; value: bigint; beneficiary: AccountId32; bond: bigint };
11844
11624
 
11845
- export type PalletTreasurySpendStatus = {
11846
- assetKind: [];
11847
- amount: bigint;
11848
- beneficiary: AccountId32;
11849
- validFrom: number;
11850
- expireAt: number;
11851
- status: PalletTreasuryPaymentState;
11852
- };
11853
-
11854
- export type PalletTreasuryPaymentState =
11855
- | { type: 'Pending' }
11856
- | { type: 'Attempted'; value: { id: [] } }
11857
- | { type: 'Failed' };
11858
-
11859
11625
  export type FrameSupportPalletId = FixedBytes<8>;
11860
11626
 
11861
11627
  /**
@@ -11882,35 +11648,7 @@ export type PalletTreasuryError =
11882
11648
  /**
11883
11649
  * Proposal has not been approved.
11884
11650
  **/
11885
- | 'ProposalNotApproved'
11886
- /**
11887
- * The balance of the asset kind is not convertible to the balance of the native asset.
11888
- **/
11889
- | 'FailedToConvertBalance'
11890
- /**
11891
- * The spend has expired and cannot be claimed.
11892
- **/
11893
- | 'SpendExpired'
11894
- /**
11895
- * The spend is not yet eligible for payout.
11896
- **/
11897
- | 'EarlyPayout'
11898
- /**
11899
- * The payment has already been attempted.
11900
- **/
11901
- | 'AlreadyAttempted'
11902
- /**
11903
- * There was some issue with the mechanism of payment.
11904
- **/
11905
- | 'PayoutError'
11906
- /**
11907
- * The payout was not yet attempted/claimed.
11908
- **/
11909
- | 'NotAttempted'
11910
- /**
11911
- * The payment has neither failed nor succeeded yet.
11912
- **/
11913
- | 'Inconclusive';
11651
+ | 'ProposalNotApproved';
11914
11652
 
11915
11653
  /**
11916
11654
  * The `Error` enum of this pallet.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.61.0",
3
+ "version": "0.63.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": "9744f17440020a96d35bcf33686b00e9ac779666",
22
+ "gitHead": "71547dbbb53b1882770753c4d30013ea4fccb5e0",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }