@dedot/chaintypes 0.269.0 → 0.271.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.
Files changed (41) hide show
  1. package/basilisk/consts.d.ts +9 -0
  2. package/basilisk/events.d.ts +15 -0
  3. package/basilisk/index.d.ts +1 -1
  4. package/basilisk/types.d.ts +6 -0
  5. package/hydration/consts.d.ts +0 -5
  6. package/hydration/errors.d.ts +17 -2
  7. package/hydration/events.d.ts +61 -0
  8. package/hydration/index.d.ts +1 -1
  9. package/hydration/query.d.ts +38 -0
  10. package/hydration/tx.d.ts +265 -0
  11. package/hydration/types.d.ts +333 -6
  12. package/moonbeam/index.d.ts +1 -1
  13. package/package.json +2 -2
  14. package/paseo/consts.d.ts +0 -9
  15. package/paseo/errors.d.ts +25 -108
  16. package/paseo/events.d.ts +0 -308
  17. package/paseo/index.d.ts +3 -1
  18. package/paseo/query.d.ts +82 -275
  19. package/paseo/runtime.d.ts +73 -2
  20. package/paseo/tx.d.ts +60 -375
  21. package/paseo/types.d.ts +160 -908
  22. package/paseo/view-functions.d.ts +0 -1
  23. package/paseo-people/consts.d.ts +2 -1
  24. package/paseo-people/events.d.ts +20 -0
  25. package/paseo-people/index.d.ts +3 -1
  26. package/paseo-people/json-rpc.d.ts +1 -0
  27. package/paseo-people/query.d.ts +45 -4
  28. package/paseo-people/runtime.d.ts +6 -2
  29. package/paseo-people/tx.d.ts +22 -13
  30. package/paseo-people/types.d.ts +104 -28
  31. package/paseo-people/view-functions.d.ts +38 -1
  32. package/polkadot-people/index.d.ts +1 -1
  33. package/westend-asset-hub/consts.d.ts +11 -2
  34. package/westend-asset-hub/errors.d.ts +29 -4
  35. package/westend-asset-hub/events.d.ts +60 -13
  36. package/westend-asset-hub/index.d.ts +1 -1
  37. package/westend-asset-hub/query.d.ts +100 -13
  38. package/westend-asset-hub/runtime.d.ts +59 -3
  39. package/westend-asset-hub/tx.d.ts +76 -35
  40. package/westend-asset-hub/types.d.ts +186 -58
  41. package/westend-asset-hub/view-functions.d.ts +59 -1
@@ -4402,8 +4402,8 @@ export type PalletMetaTxMetaTx = {
4402
4402
  };
4403
4403
 
4404
4404
  export type PalletVerifySignatureExtensionVerifySignature =
4405
- | { type: 'Signed'; value: { signature: SpRuntimeMultiSignature; account: AccountId32 } }
4406
- | { type: 'Disabled' };
4405
+ | { type: 'Disabled' }
4406
+ | { type: 'Signed'; value: { signature: SpRuntimeMultiSignature; account: AccountId32 } };
4407
4407
 
4408
4408
  export type SpRuntimeMultiSignature =
4409
4409
  | { type: 'Ed25519'; value: FixedBytes<64> }
@@ -11402,7 +11402,7 @@ export type FrameSupportScheduleDispatchTime = { type: 'At'; value: number } | {
11402
11402
  **/
11403
11403
  export type PalletPsmCall =
11404
11404
  /**
11405
- * Swap external stablecoin for pUSD.
11405
+ * Swap external stablecoin for internal.
11406
11406
  *
11407
11407
  * ## Dispatch Origin
11408
11408
  *
@@ -11411,7 +11411,7 @@ export type PalletPsmCall =
11411
11411
  * ## Details
11412
11412
  *
11413
11413
  * Transfers `external_amount` of the specified external stablecoin from the caller
11414
- * to the PSM account, then mints pUSD to the caller minus the minting fee.
11414
+ * to the PSM account, then mints internal to the caller minus the minting fee.
11415
11415
  * The fee is calculated using ceiling rounding (`mul_ceil`), ensuring the
11416
11416
  * protocol never undercharges. The fee is transferred to [`Config::FeeDestination`].
11417
11417
  *
@@ -11425,17 +11425,22 @@ export type PalletPsmCall =
11425
11425
  * - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
11426
11426
  * - [`Error::MintingStopped`]: If circuit breaker is at `MintingDisabled` or higher
11427
11427
  * - [`Error::BelowMinimumSwap`]: If `external_amount` is below [`Config::MinSwapAmount`]
11428
- * - [`Error::ExceedsMaxIssuance`]: If minting would exceed system-wide pUSD issuance cap
11428
+ * - [`Error::ExceedsMaxIssuance`]: If minting would exceed system-wide internal issuance
11429
+ * cap
11429
11430
  * - [`Error::ExceedsMaxPsmDebt`]: If minting would exceed PSM debt ceiling (aggregate or
11430
11431
  * per-asset)
11432
+ * - [`Error::DecimalsMismatch`]: If the asset's decimals do not match the internal asset's
11433
+ * decimals
11434
+ * - [`Error::AmountTooSmallAfterConversion`]: if the conversion to the counter-asset
11435
+ * rounds to zero; swap would transfer nothing
11431
11436
  *
11432
11437
  * ## Events
11433
11438
  *
11434
11439
  * - [`Event::Minted`]: Emitted on successful mint
11435
11440
  **/
11436
- | { name: 'Mint'; params: { assetId: number; externalAmount: bigint } }
11441
+ | { name: 'Mint'; params: { assetId: StagingXcmV5Location; externalAmount: bigint } }
11437
11442
  /**
11438
- * Swap pUSD for external stablecoin.
11443
+ * Swap internal for external stablecoin.
11439
11444
  *
11440
11445
  * ## Dispatch Origin
11441
11446
  *
@@ -11443,7 +11448,7 @@ export type PalletPsmCall =
11443
11448
  *
11444
11449
  * ## Details
11445
11450
  *
11446
- * Burns `pusd_amount` pUSD from the caller minus fee (transferred to
11451
+ * Burns `amount` internal from the caller minus fee (transferred to
11447
11452
  * [`Config::FeeDestination`]), then transfers the resulting amount in external
11448
11453
  * stablecoin from PSM to the caller. The fee is calculated using ceiling rounding
11449
11454
  * (`mul_ceil`), ensuring the protocol never undercharges.
@@ -11451,22 +11456,26 @@ export type PalletPsmCall =
11451
11456
  * ## Parameters
11452
11457
  *
11453
11458
  * - `asset_id`: The external stablecoin to receive (must be in `ExternalAssets`)
11454
- * - `pusd_amount`: Amount of pUSD to redeem
11459
+ * - `amount`: Amount of internal to redeem
11455
11460
  *
11456
11461
  * ## Errors
11457
11462
  *
11458
11463
  * - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
11459
11464
  * - [`Error::AllSwapsStopped`]: If circuit breaker is at `AllDisabled`
11460
- * - [`Error::BelowMinimumSwap`]: If `pusd_amount` is below [`Config::MinSwapAmount`]
11465
+ * - [`Error::BelowMinimumSwap`]: If `amount` is below [`Config::MinSwapAmount`]
11461
11466
  * - [`Error::InsufficientReserve`]: If PSM has insufficient external stablecoin
11467
+ * - [`Error::DecimalsMismatch`]: If the asset's decimals do not match the internal asset's
11468
+ * decimals
11469
+ * - [`Error::AmountTooSmallAfterConversion`]: if the conversion to the counter-asset
11470
+ * rounds to zero; swap would transfer nothing
11462
11471
  *
11463
11472
  * ## Events
11464
11473
  *
11465
11474
  * - [`Event::Redeemed`]: Emitted on successful redemption
11466
11475
  **/
11467
- | { name: 'Redeem'; params: { assetId: number; pusdAmount: bigint } }
11476
+ | { name: 'Redeem'; params: { assetId: StagingXcmV5Location; amount: bigint } }
11468
11477
  /**
11469
- * Set the minting fee for a specific asset (external → pUSD).
11478
+ * Set the minting fee for a specific asset (external → internal).
11470
11479
  *
11471
11480
  * ## Dispatch Origin
11472
11481
  *
@@ -11481,9 +11490,9 @@ export type PalletPsmCall =
11481
11490
  *
11482
11491
  * - [`Event::MintingFeeUpdated`]: Emitted with old and new values
11483
11492
  **/
11484
- | { name: 'SetMintingFee'; params: { assetId: number; fee: Permill } }
11493
+ | { name: 'SetMintingFee'; params: { assetId: StagingXcmV5Location; fee: Permill } }
11485
11494
  /**
11486
- * Set the redemption fee for a specific asset (pUSD → external).
11495
+ * Set the redemption fee for a specific asset (internal → external).
11487
11496
  *
11488
11497
  * ## Dispatch Origin
11489
11498
  *
@@ -11498,7 +11507,7 @@ export type PalletPsmCall =
11498
11507
  *
11499
11508
  * - [`Event::RedemptionFeeUpdated`]: Emitted with old and new values
11500
11509
  **/
11501
- | { name: 'SetRedemptionFee'; params: { assetId: number; fee: Permill } }
11510
+ | { name: 'SetRedemptionFee'; params: { assetId: StagingXcmV5Location; fee: Permill } }
11502
11511
  /**
11503
11512
  * Set the maximum PSM debt as a percentage of total maximum issuance.
11504
11513
  *
@@ -11539,7 +11548,7 @@ export type PalletPsmCall =
11539
11548
  *
11540
11549
  * - [`Event::AssetStatusUpdated`]: Emitted with the asset ID and new status
11541
11550
  **/
11542
- | { name: 'SetAssetStatus'; params: { assetId: number; status: PalletPsmCircuitBreakerLevel } }
11551
+ | { name: 'SetAssetStatus'; params: { assetId: StagingXcmV5Location; status: PalletPsmCircuitBreakerLevel } }
11543
11552
  /**
11544
11553
  * Set the per-asset debt ceiling weight.
11545
11554
  *
@@ -11564,7 +11573,7 @@ export type PalletPsmCall =
11564
11573
  *
11565
11574
  * - [`Event::AssetCeilingWeightUpdated`]: Emitted with old and new values
11566
11575
  **/
11567
- | { name: 'SetAssetCeilingWeight'; params: { assetId: number; weight: Permill } }
11576
+ | { name: 'SetAssetCeilingWeight'; params: { assetId: StagingXcmV5Location; weight: Permill } }
11568
11577
  /**
11569
11578
  * Add an external stablecoin to the approved list.
11570
11579
  *
@@ -11584,7 +11593,7 @@ export type PalletPsmCall =
11584
11593
  *
11585
11594
  * - [`Event::ExternalAssetAdded`]: Emitted on successful addition
11586
11595
  **/
11587
- | { name: 'AddExternalAsset'; params: { assetId: number } }
11596
+ | { name: 'AddExternalAsset'; params: { assetId: StagingXcmV5Location } }
11588
11597
  /**
11589
11598
  * Remove an external stablecoin from the approved list.
11590
11599
  *
@@ -11615,11 +11624,11 @@ export type PalletPsmCall =
11615
11624
  *
11616
11625
  * - [`Event::ExternalAssetRemoved`]: Emitted on successful removal
11617
11626
  **/
11618
- | { name: 'RemoveExternalAsset'; params: { assetId: number } };
11627
+ | { name: 'RemoveExternalAsset'; params: { assetId: StagingXcmV5Location } };
11619
11628
 
11620
11629
  export type PalletPsmCallLike =
11621
11630
  /**
11622
- * Swap external stablecoin for pUSD.
11631
+ * Swap external stablecoin for internal.
11623
11632
  *
11624
11633
  * ## Dispatch Origin
11625
11634
  *
@@ -11628,7 +11637,7 @@ export type PalletPsmCallLike =
11628
11637
  * ## Details
11629
11638
  *
11630
11639
  * Transfers `external_amount` of the specified external stablecoin from the caller
11631
- * to the PSM account, then mints pUSD to the caller minus the minting fee.
11640
+ * to the PSM account, then mints internal to the caller minus the minting fee.
11632
11641
  * The fee is calculated using ceiling rounding (`mul_ceil`), ensuring the
11633
11642
  * protocol never undercharges. The fee is transferred to [`Config::FeeDestination`].
11634
11643
  *
@@ -11642,17 +11651,22 @@ export type PalletPsmCallLike =
11642
11651
  * - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
11643
11652
  * - [`Error::MintingStopped`]: If circuit breaker is at `MintingDisabled` or higher
11644
11653
  * - [`Error::BelowMinimumSwap`]: If `external_amount` is below [`Config::MinSwapAmount`]
11645
- * - [`Error::ExceedsMaxIssuance`]: If minting would exceed system-wide pUSD issuance cap
11654
+ * - [`Error::ExceedsMaxIssuance`]: If minting would exceed system-wide internal issuance
11655
+ * cap
11646
11656
  * - [`Error::ExceedsMaxPsmDebt`]: If minting would exceed PSM debt ceiling (aggregate or
11647
11657
  * per-asset)
11658
+ * - [`Error::DecimalsMismatch`]: If the asset's decimals do not match the internal asset's
11659
+ * decimals
11660
+ * - [`Error::AmountTooSmallAfterConversion`]: if the conversion to the counter-asset
11661
+ * rounds to zero; swap would transfer nothing
11648
11662
  *
11649
11663
  * ## Events
11650
11664
  *
11651
11665
  * - [`Event::Minted`]: Emitted on successful mint
11652
11666
  **/
11653
- | { name: 'Mint'; params: { assetId: number; externalAmount: bigint } }
11667
+ | { name: 'Mint'; params: { assetId: StagingXcmV5Location; externalAmount: bigint } }
11654
11668
  /**
11655
- * Swap pUSD for external stablecoin.
11669
+ * Swap internal for external stablecoin.
11656
11670
  *
11657
11671
  * ## Dispatch Origin
11658
11672
  *
@@ -11660,7 +11674,7 @@ export type PalletPsmCallLike =
11660
11674
  *
11661
11675
  * ## Details
11662
11676
  *
11663
- * Burns `pusd_amount` pUSD from the caller minus fee (transferred to
11677
+ * Burns `amount` internal from the caller minus fee (transferred to
11664
11678
  * [`Config::FeeDestination`]), then transfers the resulting amount in external
11665
11679
  * stablecoin from PSM to the caller. The fee is calculated using ceiling rounding
11666
11680
  * (`mul_ceil`), ensuring the protocol never undercharges.
@@ -11668,22 +11682,26 @@ export type PalletPsmCallLike =
11668
11682
  * ## Parameters
11669
11683
  *
11670
11684
  * - `asset_id`: The external stablecoin to receive (must be in `ExternalAssets`)
11671
- * - `pusd_amount`: Amount of pUSD to redeem
11685
+ * - `amount`: Amount of internal to redeem
11672
11686
  *
11673
11687
  * ## Errors
11674
11688
  *
11675
11689
  * - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
11676
11690
  * - [`Error::AllSwapsStopped`]: If circuit breaker is at `AllDisabled`
11677
- * - [`Error::BelowMinimumSwap`]: If `pusd_amount` is below [`Config::MinSwapAmount`]
11691
+ * - [`Error::BelowMinimumSwap`]: If `amount` is below [`Config::MinSwapAmount`]
11678
11692
  * - [`Error::InsufficientReserve`]: If PSM has insufficient external stablecoin
11693
+ * - [`Error::DecimalsMismatch`]: If the asset's decimals do not match the internal asset's
11694
+ * decimals
11695
+ * - [`Error::AmountTooSmallAfterConversion`]: if the conversion to the counter-asset
11696
+ * rounds to zero; swap would transfer nothing
11679
11697
  *
11680
11698
  * ## Events
11681
11699
  *
11682
11700
  * - [`Event::Redeemed`]: Emitted on successful redemption
11683
11701
  **/
11684
- | { name: 'Redeem'; params: { assetId: number; pusdAmount: bigint } }
11702
+ | { name: 'Redeem'; params: { assetId: StagingXcmV5Location; amount: bigint } }
11685
11703
  /**
11686
- * Set the minting fee for a specific asset (external → pUSD).
11704
+ * Set the minting fee for a specific asset (external → internal).
11687
11705
  *
11688
11706
  * ## Dispatch Origin
11689
11707
  *
@@ -11698,9 +11716,9 @@ export type PalletPsmCallLike =
11698
11716
  *
11699
11717
  * - [`Event::MintingFeeUpdated`]: Emitted with old and new values
11700
11718
  **/
11701
- | { name: 'SetMintingFee'; params: { assetId: number; fee: Permill } }
11719
+ | { name: 'SetMintingFee'; params: { assetId: StagingXcmV5Location; fee: Permill } }
11702
11720
  /**
11703
- * Set the redemption fee for a specific asset (pUSD → external).
11721
+ * Set the redemption fee for a specific asset (internal → external).
11704
11722
  *
11705
11723
  * ## Dispatch Origin
11706
11724
  *
@@ -11715,7 +11733,7 @@ export type PalletPsmCallLike =
11715
11733
  *
11716
11734
  * - [`Event::RedemptionFeeUpdated`]: Emitted with old and new values
11717
11735
  **/
11718
- | { name: 'SetRedemptionFee'; params: { assetId: number; fee: Permill } }
11736
+ | { name: 'SetRedemptionFee'; params: { assetId: StagingXcmV5Location; fee: Permill } }
11719
11737
  /**
11720
11738
  * Set the maximum PSM debt as a percentage of total maximum issuance.
11721
11739
  *
@@ -11756,7 +11774,7 @@ export type PalletPsmCallLike =
11756
11774
  *
11757
11775
  * - [`Event::AssetStatusUpdated`]: Emitted with the asset ID and new status
11758
11776
  **/
11759
- | { name: 'SetAssetStatus'; params: { assetId: number; status: PalletPsmCircuitBreakerLevel } }
11777
+ | { name: 'SetAssetStatus'; params: { assetId: StagingXcmV5Location; status: PalletPsmCircuitBreakerLevel } }
11760
11778
  /**
11761
11779
  * Set the per-asset debt ceiling weight.
11762
11780
  *
@@ -11781,7 +11799,7 @@ export type PalletPsmCallLike =
11781
11799
  *
11782
11800
  * - [`Event::AssetCeilingWeightUpdated`]: Emitted with old and new values
11783
11801
  **/
11784
- | { name: 'SetAssetCeilingWeight'; params: { assetId: number; weight: Permill } }
11802
+ | { name: 'SetAssetCeilingWeight'; params: { assetId: StagingXcmV5Location; weight: Permill } }
11785
11803
  /**
11786
11804
  * Add an external stablecoin to the approved list.
11787
11805
  *
@@ -11801,7 +11819,7 @@ export type PalletPsmCallLike =
11801
11819
  *
11802
11820
  * - [`Event::ExternalAssetAdded`]: Emitted on successful addition
11803
11821
  **/
11804
- | { name: 'AddExternalAsset'; params: { assetId: number } }
11822
+ | { name: 'AddExternalAsset'; params: { assetId: StagingXcmV5Location } }
11805
11823
  /**
11806
11824
  * Remove an external stablecoin from the approved list.
11807
11825
  *
@@ -11832,7 +11850,7 @@ export type PalletPsmCallLike =
11832
11850
  *
11833
11851
  * - [`Event::ExternalAssetRemoved`]: Emitted on successful removal
11834
11852
  **/
11835
- | { name: 'RemoveExternalAsset'; params: { assetId: number } };
11853
+ | { name: 'RemoveExternalAsset'; params: { assetId: StagingXcmV5Location } };
11836
11854
 
11837
11855
  export type PalletPsmCircuitBreakerLevel = 'AllEnabled' | 'MintingDisabled' | 'AllDisabled';
11838
11856
 
@@ -12470,7 +12488,22 @@ export type PalletStakingAsyncPalletCall =
12470
12488
  *
12471
12489
  * The dispatch origin must be `T::AdminOrigin`.
12472
12490
  **/
12473
- | { name: 'SetMaxCommission'; params: { new: Perbill } };
12491
+ | { name: 'SetMaxCommission'; params: { new: Perbill } }
12492
+ /**
12493
+ * Configure the validator self-stake incentive parameters.
12494
+ *
12495
+ * The dispatch origin must be `T::AdminOrigin`.
12496
+ *
12497
+ * Changes take effect in the next era when rewards are calculated.
12498
+ **/
12499
+ | {
12500
+ name: 'SetValidatorSelfStakeIncentiveConfig';
12501
+ params: {
12502
+ optimumSelfStake: PalletStakingAsyncPalletConfigOp;
12503
+ hardCapSelfStake: PalletStakingAsyncPalletConfigOp;
12504
+ selfStakeSlopeFactor: PalletStakingAsyncPalletConfigOpPerbill;
12505
+ };
12506
+ };
12474
12507
 
12475
12508
  export type PalletStakingAsyncPalletCallLike =
12476
12509
  /**
@@ -12937,7 +12970,22 @@ export type PalletStakingAsyncPalletCallLike =
12937
12970
  *
12938
12971
  * The dispatch origin must be `T::AdminOrigin`.
12939
12972
  **/
12940
- | { name: 'SetMaxCommission'; params: { new: Perbill } };
12973
+ | { name: 'SetMaxCommission'; params: { new: Perbill } }
12974
+ /**
12975
+ * Configure the validator self-stake incentive parameters.
12976
+ *
12977
+ * The dispatch origin must be `T::AdminOrigin`.
12978
+ *
12979
+ * Changes take effect in the next era when rewards are calculated.
12980
+ **/
12981
+ | {
12982
+ name: 'SetValidatorSelfStakeIncentiveConfig';
12983
+ params: {
12984
+ optimumSelfStake: PalletStakingAsyncPalletConfigOp;
12985
+ hardCapSelfStake: PalletStakingAsyncPalletConfigOp;
12986
+ selfStakeSlopeFactor: PalletStakingAsyncPalletConfigOpPerbill;
12987
+ };
12988
+ };
12941
12989
 
12942
12990
  export type PalletStakingAsyncRewardDestination =
12943
12991
  | { type: 'Staked' }
@@ -15839,6 +15887,7 @@ export type AssetHubWestendRuntimeRuntimeEvent =
15839
15887
  | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
15840
15888
  | { pallet: 'AssetTxPayment'; palletEvent: PalletAssetConversionTxPaymentEvent }
15841
15889
  | { pallet: 'Vesting'; palletEvent: PalletVestingEvent }
15890
+ | { pallet: 'PgasAllowance'; palletEvent: PalletPgasAllowanceEvent }
15842
15891
  | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent }
15843
15892
  | { pallet: 'Session'; palletEvent: PalletSessionEvent }
15844
15893
  | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent }
@@ -15898,9 +15947,9 @@ export type FrameSystemEvent =
15898
15947
  **/
15899
15948
  | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo } }
15900
15949
  /**
15901
- * `:code` was updated.
15950
+ * `:code` was updated to the code with the given hash.
15902
15951
  **/
15903
- | { name: 'CodeUpdated' }
15952
+ | { name: 'CodeUpdated'; data: { hash: H256 } }
15904
15953
  /**
15905
15954
  * A new account was created.
15906
15955
  **/
@@ -16402,6 +16451,16 @@ export type PalletVestingEvent =
16402
16451
  **/
16403
16452
  | { name: 'VestingCompleted'; data: { account: AccountId32 } };
16404
16453
 
16454
+ /**
16455
+ * The `Event` enum of this pallet
16456
+ **/
16457
+ export type PalletPgasAllowanceEvent =
16458
+ /**
16459
+ * A transaction fee `actual_fee` has been paid by `who` in PGAS and burned. Mirrors
16460
+ * [`pallet_transaction_payment::Event::TransactionFeePaid`].
16461
+ **/
16462
+ { name: 'PgasFeePaid'; data: { who: AccountId32; actualFee: bigint } };
16463
+
16405
16464
  /**
16406
16465
  * The `Event` enum of this pallet
16407
16466
  **/
@@ -18272,27 +18331,27 @@ export type PalletAssetRewardsEvent =
18272
18331
  **/
18273
18332
  export type PalletPsmEvent =
18274
18333
  /**
18275
- * User swapped external stablecoin for pUSD.
18334
+ * User swapped external stablecoin for internal.
18276
18335
  **/
18277
18336
  | {
18278
18337
  name: 'Minted';
18279
- data: { who: AccountId32; assetId: number; externalAmount: bigint; pusdReceived: bigint; fee: bigint };
18338
+ data: { who: AccountId32; assetId: StagingXcmV5Location; externalAmount: bigint; received: bigint; fee: bigint };
18280
18339
  }
18281
18340
  /**
18282
- * User swapped pUSD for external stablecoin.
18341
+ * User swapped internal for external stablecoin.
18283
18342
  **/
18284
18343
  | {
18285
18344
  name: 'Redeemed';
18286
- data: { who: AccountId32; assetId: number; pusdPaid: bigint; externalReceived: bigint; fee: bigint };
18345
+ data: { who: AccountId32; assetId: StagingXcmV5Location; paid: bigint; externalReceived: bigint; fee: bigint };
18287
18346
  }
18288
18347
  /**
18289
18348
  * Minting fee updated for an asset by governance.
18290
18349
  **/
18291
- | { name: 'MintingFeeUpdated'; data: { assetId: number; oldValue: Permill; newValue: Permill } }
18350
+ | { name: 'MintingFeeUpdated'; data: { assetId: StagingXcmV5Location; oldValue: Permill; newValue: Permill } }
18292
18351
  /**
18293
18352
  * Redemption fee updated for an asset by governance.
18294
18353
  **/
18295
- | { name: 'RedemptionFeeUpdated'; data: { assetId: number; oldValue: Permill; newValue: Permill } }
18354
+ | { name: 'RedemptionFeeUpdated'; data: { assetId: StagingXcmV5Location; oldValue: Permill; newValue: Permill } }
18296
18355
  /**
18297
18356
  * Max PSM debt ratio updated by governance.
18298
18357
  **/
@@ -18300,19 +18359,19 @@ export type PalletPsmEvent =
18300
18359
  /**
18301
18360
  * Per-asset debt ceiling weight updated by governance.
18302
18361
  **/
18303
- | { name: 'AssetCeilingWeightUpdated'; data: { assetId: number; oldValue: Permill; newValue: Permill } }
18362
+ | { name: 'AssetCeilingWeightUpdated'; data: { assetId: StagingXcmV5Location; oldValue: Permill; newValue: Permill } }
18304
18363
  /**
18305
18364
  * Per-asset circuit breaker status updated.
18306
18365
  **/
18307
- | { name: 'AssetStatusUpdated'; data: { assetId: number; status: PalletPsmCircuitBreakerLevel } }
18366
+ | { name: 'AssetStatusUpdated'; data: { assetId: StagingXcmV5Location; status: PalletPsmCircuitBreakerLevel } }
18308
18367
  /**
18309
18368
  * An external asset was added to the approved list.
18310
18369
  **/
18311
- | { name: 'ExternalAssetAdded'; data: { assetId: number } }
18370
+ | { name: 'ExternalAssetAdded'; data: { assetId: StagingXcmV5Location } }
18312
18371
  /**
18313
18372
  * An external asset was removed from the approved list.
18314
18373
  **/
18315
- | { name: 'ExternalAssetRemoved'; data: { assetId: number } };
18374
+ | { name: 'ExternalAssetRemoved'; data: { assetId: StagingXcmV5Location } };
18316
18375
 
18317
18376
  /**
18318
18377
  * Inner events of this pallet.
@@ -18500,7 +18559,21 @@ export type PalletStakingAsyncPalletEvent =
18500
18559
  /**
18501
18560
  * An old era with the given index was pruned.
18502
18561
  **/
18503
- | { name: 'EraPruned'; data: { index: number } };
18562
+ | { name: 'EraPruned'; data: { index: number } }
18563
+ /**
18564
+ * The validator has been paid their self-stake incentive bonus.
18565
+ **/
18566
+ | {
18567
+ name: 'ValidatorIncentivePaid';
18568
+ data: { era: number; validatorStash: AccountId32; dest: PalletStakingAsyncRewardDestination; amount: bigint };
18569
+ }
18570
+ /**
18571
+ * Validator self-stake incentive configuration has been updated.
18572
+ **/
18573
+ | {
18574
+ name: 'ValidatorIncentiveConfigSet';
18575
+ data: { optimumSelfStake: bigint; hardCapSelfStake: bigint; slopeFactor: Perbill };
18576
+ };
18504
18577
 
18505
18578
  export type PalletStakingAsyncForcing = 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways';
18506
18579
 
@@ -18511,7 +18584,9 @@ export type PalletStakingAsyncPalletUnexpectedKind =
18511
18584
  type: 'PagedElectionOutOfWeight';
18512
18585
  value: { page: number; required: SpWeightsWeightV2Weight; had: SpWeightsWeightV2Weight };
18513
18586
  }
18514
- | { type: 'MissingPayee'; value: { era: number; stash: AccountId32 } };
18587
+ | { type: 'MissingPayee'; value: { era: number; stash: AccountId32 } }
18588
+ | { type: 'ValidatorIncentiveWeightMismatch'; value: { era: number } }
18589
+ | { type: 'ValidatorIncentiveTransferFailed'; value: { era: number } };
18515
18590
 
18516
18591
  /**
18517
18592
  * Events of this pallet.
@@ -19363,6 +19438,18 @@ export type PalletDapEvent =
19363
19438
  allocations: Array<[Bytes, Perbill]>;
19364
19439
  };
19365
19440
  }
19441
+ /**
19442
+ * Funds were drained from the staging account into the DAP buffer.
19443
+ **/
19444
+ | {
19445
+ name: 'StagingDrained';
19446
+ data: {
19447
+ /**
19448
+ * Amount drained.
19449
+ **/
19450
+ amount: bigint;
19451
+ };
19452
+ }
19366
19453
  /**
19367
19454
  * An unexpected/defensive event was triggered.
19368
19455
  **/
@@ -19635,6 +19722,7 @@ export type CumulusPalletParachainSystemPoVMessages = {
19635
19722
  bundleIndex: number;
19636
19723
  umpMsgCount: number;
19637
19724
  hrmpOutboundCount: number;
19725
+ hrmpOutboundRecipients: Array<PolkadotParachainPrimitivesPrimitivesId>;
19638
19726
  };
19639
19727
 
19640
19728
  /**
@@ -21187,7 +21275,11 @@ export type PalletAssetConversionError =
21187
21275
  /**
21188
21276
  * The destination account cannot exist with the swapped funds.
21189
21277
  **/
21190
- | 'BelowMinimum';
21278
+ | 'BelowMinimum'
21279
+ /**
21280
+ * The pool exists but has no liquidity (at least one of the reserves is zero).
21281
+ **/
21282
+ | 'PoolEmpty';
21191
21283
 
21192
21284
  /**
21193
21285
  * The `Error` enum of this pallet.
@@ -21826,13 +21918,17 @@ export type PalletPsmError =
21826
21918
  **/
21827
21919
  | 'UnsupportedAsset'
21828
21920
  /**
21829
- * Mint would exceed system-wide maximum pUSD issuance.
21921
+ * Mint would exceed system-wide maximum internal issuance.
21830
21922
  **/
21831
21923
  | 'ExceedsMaxIssuance'
21832
21924
  /**
21833
21925
  * Asset is already in the approved list.
21834
21926
  **/
21835
21927
  | 'AssetAlreadyApproved'
21928
+ /**
21929
+ * Asset does not exist.
21930
+ **/
21931
+ | 'AssetDoesNotExist'
21836
21932
  /**
21837
21933
  * Cannot remove asset: not in approved list.
21838
21934
  **/
@@ -21850,9 +21946,21 @@ export type PalletPsmError =
21850
21946
  **/
21851
21947
  | 'TooManyAssets'
21852
21948
  /**
21853
- * External asset decimals do not match the stable asset decimals.
21949
+ * Live decimals diverged from the snapshot taken at registration or genesis.
21854
21950
  **/
21855
21951
  | 'DecimalsMismatch'
21952
+ /**
21953
+ * The asset's decimal precision is outside the supported range.
21954
+ **/
21955
+ | 'DecimalsRangeExceeded'
21956
+ /**
21957
+ * Decimal scaling produced an arithmetic overflow.
21958
+ **/
21959
+ | 'ConversionOverflow'
21960
+ /**
21961
+ * Conversion to the counter-asset rounds to zero; swap would transfer nothing.
21962
+ **/
21963
+ | 'AmountTooSmallAfterConversion'
21856
21964
  /**
21857
21965
  * An unexpected invariant violation occurred. This should be reported.
21858
21966
  **/
@@ -21908,7 +22016,8 @@ export type PalletStakingAsyncPalletPruningStep =
21908
22016
  | 'ErasValidatorReward'
21909
22017
  | 'ErasRewardPoints'
21910
22018
  | 'SingleEntryCleanups'
21911
- | 'ValidatorSlashInEra';
22019
+ | 'ValidatorSlashInEra'
22020
+ | 'ErasValidatorIncentiveWeight';
21912
22021
 
21913
22022
  /**
21914
22023
  * The `Error` enum of this pallet.
@@ -22069,9 +22178,17 @@ export type PalletStakingAsyncPalletError =
22069
22178
  **/
22070
22179
  | 'CommissionTooHigh'
22071
22180
  /**
22072
- * Era has no reward pot but legacy minting is disabled.
22181
+ * Optimum self-stake cannot be greater than hard cap.
22073
22182
  **/
22074
- | 'LegacyMintingDisabled';
22183
+ | 'OptimumGreaterThanCap';
22184
+
22185
+ export type PalletStakingAsyncRewardPot =
22186
+ | { type: 'General'; value: PalletStakingAsyncRewardKind }
22187
+ | { type: 'Era'; value: [number, PalletStakingAsyncRewardKind] };
22188
+
22189
+ export type PalletStakingAsyncRewardKind = 'StakerRewards' | 'ValidatorSelfStake';
22190
+
22191
+ export type PalletStakingAsyncRewardEraRewardAllocation = { stakerRewards: bigint; validatorIncentive: bigint };
22075
22192
 
22076
22193
  export type PalletNominationPoolsPoolMember = {
22077
22194
  poolId: number;
@@ -23022,6 +23139,13 @@ export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
23022
23139
 
23023
23140
  export type SpCoreOpaqueMetadata = Bytes;
23024
23141
 
23142
+ export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
23143
+
23144
+ export type FrameSupportViewFunctionsViewFunctionDispatchError =
23145
+ | { type: 'NotImplemented' }
23146
+ | { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
23147
+ | { type: 'Codec' };
23148
+
23025
23149
  export type SpRuntimeTransactionValidityTransactionValidityError =
23026
23150
  | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction }
23027
23151
  | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction };
@@ -23328,6 +23452,10 @@ export type PalletReviveEvmApiDebugRpcTypesExecutionStepKind =
23328
23452
  }
23329
23453
  | { type: 'PvmSyscall'; value: { op: number; args: Array<bigint>; returned?: bigint | undefined } };
23330
23454
 
23455
+ export type PalletReviveEvmApiRpcTypesTracingConfig = {
23456
+ stateOverrides?: PalletReviveEvmApiRpcTypesGenStateOverrideSet | undefined;
23457
+ };
23458
+
23331
23459
  export type PalletRevivePrimitivesBalanceConversionError = 'Value' | 'Dust';
23332
23460
 
23333
23461
  export type AssetHubWestendRuntimeRuntimeError =
@@ -1,7 +1,7 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
4
- import type { Bytes, AccountId32Like, Result } from 'dedot/codecs';
4
+ import type { Bytes, AccountId32Like, Result, AccountId32, Perbill } from 'dedot/codecs';
5
5
  import type {
6
6
  PalletMigrationsMbmIsOngoing,
7
7
  PalletMigrationsMbmProgress,
@@ -13,6 +13,8 @@ import type {
13
13
  StagingXcmV5Location,
14
14
  AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
15
15
  PalletAssetConversionError,
16
+ PalletStakingAsyncRewardPot,
17
+ PalletStakingAsyncRewardEraRewardAllocation,
16
18
  } from './types.js';
17
19
 
18
20
  export interface ChainViewFunctions extends GenericChainViewFunctions {
@@ -264,6 +266,38 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
264
266
  **/
265
267
  [name: string]: GenericViewFunction;
266
268
  };
269
+ /**
270
+ * Pallet `Staking`'s view functions
271
+ **/
272
+ staking: {
273
+ /**
274
+ * Resolve the account ID for a given reward pot.
275
+ *
276
+ * @param {PalletStakingAsyncRewardPot} pot
277
+ **/
278
+ potAccount: GenericViewFunction<(pot: PalletStakingAsyncRewardPot) => Promise<AccountId32>>;
279
+
280
+ /**
281
+ * Current balance held in a given reward pot.
282
+ *
283
+ * @param {PalletStakingAsyncRewardPot} pot
284
+ **/
285
+ potBalance: GenericViewFunction<(pot: PalletStakingAsyncRewardPot) => Promise<bigint>>;
286
+
287
+ /**
288
+ * Per-era reward allocation (staker rewards + validator incentive budget).
289
+ *
290
+ * Both fields are zero for eras created in legacy minting mode.
291
+ *
292
+ * @param {number} era
293
+ **/
294
+ eraRewardAllocation: GenericViewFunction<(era: number) => Promise<PalletStakingAsyncRewardEraRewardAllocation>>;
295
+
296
+ /**
297
+ * Generic pallet view function
298
+ **/
299
+ [name: string]: GenericViewFunction;
300
+ };
267
301
  /**
268
302
  * Pallet `VoterList`'s view functions
269
303
  **/
@@ -301,6 +335,30 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
301
335
  **/
302
336
  depositFor: GenericViewFunction<(who: AccountId32Like, pages: number) => Promise<bigint>>;
303
337
 
338
+ /**
339
+ * Generic pallet view function
340
+ **/
341
+ [name: string]: GenericViewFunction;
342
+ };
343
+ /**
344
+ * Pallet `Dap`'s view functions
345
+ **/
346
+ dap: {
347
+ /**
348
+ * All registered budget recipients with their current allocation shares.
349
+ *
350
+ * The `Perbill` is taken from `BudgetAllocation`; recipients absent from
351
+ * the map appear with `Perbill::zero()`.
352
+ **/
353
+ budgetRecipients: GenericViewFunction<() => Promise<Array<[Bytes, AccountId32, Perbill]>>>;
354
+
355
+ /**
356
+ * Account that holds burned/slashed funds before they are drained into
357
+ * the DAP buffer by `on_idle`. Exposed to clients so they don't have to
358
+ * re-derive the sub-account themselves.
359
+ **/
360
+ staging: GenericViewFunction<() => Promise<AccountId32>>;
361
+
304
362
  /**
305
363
  * Generic pallet view function
306
364
  **/