@dedot/chaintypes 0.56.0 → 0.58.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.
@@ -1,7 +1,17 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
4
- import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Bytes, Permill } from 'dedot/codecs';
4
+ import type {
5
+ DispatchInfo,
6
+ DispatchError,
7
+ AccountId32,
8
+ H256,
9
+ FixedBytes,
10
+ FixedU128,
11
+ Result,
12
+ Bytes,
13
+ Permill,
14
+ } from 'dedot/codecs';
5
15
  import type {
6
16
  SpWeightsWeightV2Weight,
7
17
  FrameSupportTokensMiscBalanceStatus,
@@ -750,6 +760,45 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
750
760
  **/
751
761
  [prop: string]: GenericPalletEvent<Rv>;
752
762
  };
763
+ /**
764
+ * Pallet `ToPolkadotXcmRouter`'s events
765
+ **/
766
+ toPolkadotXcmRouter: {
767
+ /**
768
+ * Delivery fee factor has been decreased.
769
+ **/
770
+ DeliveryFeeFactorDecreased: GenericPalletEvent<
771
+ Rv,
772
+ 'ToPolkadotXcmRouter',
773
+ 'DeliveryFeeFactorDecreased',
774
+ {
775
+ /**
776
+ * New value of the `DeliveryFeeFactor`.
777
+ **/
778
+ newValue: FixedU128;
779
+ }
780
+ >;
781
+
782
+ /**
783
+ * Delivery fee factor has been increased.
784
+ **/
785
+ DeliveryFeeFactorIncreased: GenericPalletEvent<
786
+ Rv,
787
+ 'ToPolkadotXcmRouter',
788
+ 'DeliveryFeeFactorIncreased',
789
+ {
790
+ /**
791
+ * New value of the `DeliveryFeeFactor`.
792
+ **/
793
+ newValue: FixedU128;
794
+ }
795
+ >;
796
+
797
+ /**
798
+ * Generic pallet event
799
+ **/
800
+ [prop: string]: GenericPalletEvent<Rv>;
801
+ };
753
802
  /**
754
803
  * Pallet `MessageQueue`'s events
755
804
  **/
@@ -23,7 +23,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
23
23
 
24
24
  /**
25
25
  * @name: KusamaAssetHubApi
26
- * @specVersion: 1003004
26
+ * @specVersion: 1004000
27
27
  **/
28
28
  export interface KusamaAssetHubApi {
29
29
  legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
@@ -20,12 +20,12 @@ import type {
20
20
  FrameSystemCodeUpgradeAuthorization,
21
21
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
22
22
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
23
- PolkadotPrimitivesV7PersistedValidationData,
24
- PolkadotPrimitivesV7UpgradeRestriction,
25
- PolkadotPrimitivesV7UpgradeGoAhead,
23
+ PolkadotPrimitivesV8PersistedValidationData,
24
+ PolkadotPrimitivesV8UpgradeRestriction,
25
+ PolkadotPrimitivesV8UpgradeGoAhead,
26
26
  SpTrieStorageProof,
27
27
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
28
- PolkadotPrimitivesV7AbridgedHostConfiguration,
28
+ PolkadotPrimitivesV8AbridgedHostConfiguration,
29
29
  CumulusPrimitivesParachainInherentMessageQueueChain,
30
30
  PolkadotParachainPrimitivesPrimitivesId,
31
31
  PolkadotCorePrimitivesOutboundHrmpMessage,
@@ -293,9 +293,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
293
293
  * This value is expected to be set only once per block and it's never stored
294
294
  * in the trie.
295
295
  *
296
- * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
296
+ * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
297
297
  **/
298
- validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
298
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
299
299
 
300
300
  /**
301
301
  * Were the validation data set to notify the relay chain?
@@ -322,9 +322,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
322
322
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
323
323
  * set after the inherent.
324
324
  *
325
- * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
325
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
326
326
  **/
327
- upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
327
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
328
328
 
329
329
  /**
330
330
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -333,9 +333,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
333
333
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
334
334
  * set after the inherent.
335
335
  *
336
- * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
336
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
337
337
  **/
338
- upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
338
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
339
339
 
340
340
  /**
341
341
  * The state proof for the last relay parent block.
@@ -373,9 +373,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
373
373
  *
374
374
  * This data is also absent from the genesis.
375
375
  *
376
- * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
376
+ * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
377
377
  **/
378
- hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
378
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
379
379
 
380
380
  /**
381
381
  * The last downward message queue chain head we have observed.
@@ -694,7 +694,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
694
694
  *
695
695
  * Otherwise function returns a JSON representation of the built-in, named
696
696
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
697
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
697
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
698
698
  * (potentially nested) key-value pairs that are intended for customizing the default
699
699
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
700
700
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
@@ -354,63 +354,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
354
354
  >
355
355
  >;
356
356
 
357
- /**
358
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
359
- * later.
360
- *
361
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
362
- * version and name should be verified on upgrade. Since the authorization only has a hash,
363
- * it cannot actually perform the verification.
364
- *
365
- * This call requires Root origin.
366
- *
367
- * @param {H256} codeHash
368
- * @param {boolean} checkVersion
369
- **/
370
- authorizeUpgrade: GenericTxCall<
371
- Rv,
372
- (
373
- codeHash: H256,
374
- checkVersion: boolean,
375
- ) => ChainSubmittableExtrinsic<
376
- Rv,
377
- {
378
- pallet: 'ParachainSystem';
379
- palletCall: {
380
- name: 'AuthorizeUpgrade';
381
- params: { codeHash: H256; checkVersion: boolean };
382
- };
383
- }
384
- >
385
- >;
386
-
387
- /**
388
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
389
- *
390
- * If the authorization required a version check, this call will ensure the spec name
391
- * remains unchanged and that the spec version has increased.
392
- *
393
- * Note that this function will not apply the new `code`, but only attempt to schedule the
394
- * upgrade with the Relay Chain.
395
- *
396
- * All origins are allowed.
397
- *
398
- * @param {BytesLike} code
399
- **/
400
- enactAuthorizedUpgrade: GenericTxCall<
401
- Rv,
402
- (code: BytesLike) => ChainSubmittableExtrinsic<
403
- Rv,
404
- {
405
- pallet: 'ParachainSystem';
406
- palletCall: {
407
- name: 'EnactAuthorizedUpgrade';
408
- params: { code: BytesLike };
409
- };
410
- }
411
- >
412
- >;
413
-
414
357
  /**
415
358
  * Generic pallet tx call
416
359
  **/
@@ -2958,8 +2901,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2958
2901
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
2959
2902
  * asset.
2960
2903
  *
2961
- * The asset class must be frozen before calling `start_destroy`.
2962
- *
2963
2904
  * @param {number} id
2964
2905
  **/
2965
2906
  startDestroy: GenericTxCall<
@@ -4014,6 +3955,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4014
3955
  >
4015
3956
  >;
4016
3957
 
3958
+ /**
3959
+ * Transfer the entire transferable balance from the caller asset account.
3960
+ *
3961
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
3962
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
3963
+ * transferred by this function. To ensure that this function results in a killed account,
3964
+ * you might need to prepare the account by removing any reference counters, storage
3965
+ * deposits, etc...
3966
+ *
3967
+ * The dispatch origin of this call must be Signed.
3968
+ *
3969
+ * - `id`: The identifier of the asset for the account holding a deposit.
3970
+ * - `dest`: The recipient of the transfer.
3971
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
3972
+ * of the funds the asset account has, causing the sender asset account to be killed
3973
+ * (false), or transfer everything except at least the minimum balance, which will
3974
+ * guarantee to keep the sender asset account alive (true).
3975
+ *
3976
+ * @param {number} id
3977
+ * @param {MultiAddressLike} dest
3978
+ * @param {boolean} keepAlive
3979
+ **/
3980
+ transferAll: GenericTxCall<
3981
+ Rv,
3982
+ (
3983
+ id: number,
3984
+ dest: MultiAddressLike,
3985
+ keepAlive: boolean,
3986
+ ) => ChainSubmittableExtrinsic<
3987
+ Rv,
3988
+ {
3989
+ pallet: 'Assets';
3990
+ palletCall: {
3991
+ name: 'TransferAll';
3992
+ params: { id: number; dest: MultiAddressLike; keepAlive: boolean };
3993
+ };
3994
+ }
3995
+ >
3996
+ >;
3997
+
4017
3998
  /**
4018
3999
  * Generic pallet tx call
4019
4000
  **/
@@ -6580,8 +6561,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6580
6561
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
6581
6562
  * asset.
6582
6563
  *
6583
- * The asset class must be frozen before calling `start_destroy`.
6584
- *
6585
6564
  * @param {StagingXcmV4Location} id
6586
6565
  **/
6587
6566
  startDestroy: GenericTxCall<
@@ -7652,6 +7631,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7652
7631
  >
7653
7632
  >;
7654
7633
 
7634
+ /**
7635
+ * Transfer the entire transferable balance from the caller asset account.
7636
+ *
7637
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
7638
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
7639
+ * transferred by this function. To ensure that this function results in a killed account,
7640
+ * you might need to prepare the account by removing any reference counters, storage
7641
+ * deposits, etc...
7642
+ *
7643
+ * The dispatch origin of this call must be Signed.
7644
+ *
7645
+ * - `id`: The identifier of the asset for the account holding a deposit.
7646
+ * - `dest`: The recipient of the transfer.
7647
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
7648
+ * of the funds the asset account has, causing the sender asset account to be killed
7649
+ * (false), or transfer everything except at least the minimum balance, which will
7650
+ * guarantee to keep the sender asset account alive (true).
7651
+ *
7652
+ * @param {StagingXcmV4Location} id
7653
+ * @param {MultiAddressLike} dest
7654
+ * @param {boolean} keepAlive
7655
+ **/
7656
+ transferAll: GenericTxCall<
7657
+ Rv,
7658
+ (
7659
+ id: StagingXcmV4Location,
7660
+ dest: MultiAddressLike,
7661
+ keepAlive: boolean,
7662
+ ) => ChainSubmittableExtrinsic<
7663
+ Rv,
7664
+ {
7665
+ pallet: 'ForeignAssets';
7666
+ palletCall: {
7667
+ name: 'TransferAll';
7668
+ params: { id: StagingXcmV4Location; dest: MultiAddressLike; keepAlive: boolean };
7669
+ };
7670
+ }
7671
+ >
7672
+ >;
7673
+
7655
7674
  /**
7656
7675
  * Generic pallet tx call
7657
7676
  **/
@@ -7862,8 +7881,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7862
7881
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
7863
7882
  * asset.
7864
7883
  *
7865
- * The asset class must be frozen before calling `start_destroy`.
7866
- *
7867
7884
  * @param {number} id
7868
7885
  **/
7869
7886
  startDestroy: GenericTxCall<
@@ -8918,6 +8935,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8918
8935
  >
8919
8936
  >;
8920
8937
 
8938
+ /**
8939
+ * Transfer the entire transferable balance from the caller asset account.
8940
+ *
8941
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
8942
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
8943
+ * transferred by this function. To ensure that this function results in a killed account,
8944
+ * you might need to prepare the account by removing any reference counters, storage
8945
+ * deposits, etc...
8946
+ *
8947
+ * The dispatch origin of this call must be Signed.
8948
+ *
8949
+ * - `id`: The identifier of the asset for the account holding a deposit.
8950
+ * - `dest`: The recipient of the transfer.
8951
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
8952
+ * of the funds the asset account has, causing the sender asset account to be killed
8953
+ * (false), or transfer everything except at least the minimum balance, which will
8954
+ * guarantee to keep the sender asset account alive (true).
8955
+ *
8956
+ * @param {number} id
8957
+ * @param {MultiAddressLike} dest
8958
+ * @param {boolean} keepAlive
8959
+ **/
8960
+ transferAll: GenericTxCall<
8961
+ Rv,
8962
+ (
8963
+ id: number,
8964
+ dest: MultiAddressLike,
8965
+ keepAlive: boolean,
8966
+ ) => ChainSubmittableExtrinsic<
8967
+ Rv,
8968
+ {
8969
+ pallet: 'PoolAssets';
8970
+ palletCall: {
8971
+ name: 'TransferAll';
8972
+ params: { id: number; dest: MultiAddressLike; keepAlive: boolean };
8973
+ };
8974
+ }
8975
+ >
8976
+ >;
8977
+
8921
8978
  /**
8922
8979
  * Generic pallet tx call
8923
8980
  **/
@@ -8967,7 +9024,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8967
9024
  * calls to render the liquidity withdrawable and rectify the exchange rate.
8968
9025
  *
8969
9026
  * Once liquidity is added, someone may successfully call
8970
- * [`Pallet::swap_exact_tokens_for_tokens`] successfully.
9027
+ * [`Pallet::swap_exact_tokens_for_tokens`].
8971
9028
  *
8972
9029
  * @param {StagingXcmV4Location} asset1
8973
9030
  * @param {StagingXcmV4Location} asset2