@dedot/chaintypes 0.58.0 → 0.60.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/package.json +4 -4
- package/polkadot/consts.d.ts +19 -9
- package/polkadot/errors.d.ts +95 -12
- package/polkadot/events.d.ts +90 -51
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +104 -75
- package/polkadot/runtime.d.ts +141 -63
- package/polkadot/tx.d.ts +165 -72
- package/polkadot/types.d.ts +440 -301
- package/polkadot-asset-hub/events.d.ts +50 -1
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +12 -12
- package/polkadot-asset-hub/runtime.d.ts +1 -1
- package/polkadot-asset-hub/tx.d.ts +121 -64
- package/polkadot-asset-hub/types.d.ts +167 -81
|
@@ -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 {
|
|
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 `ToKusamaXcmRouter`'s events
|
|
765
|
+
**/
|
|
766
|
+
toKusamaXcmRouter: {
|
|
767
|
+
/**
|
|
768
|
+
* Delivery fee factor has been decreased.
|
|
769
|
+
**/
|
|
770
|
+
DeliveryFeeFactorDecreased: GenericPalletEvent<
|
|
771
|
+
Rv,
|
|
772
|
+
'ToKusamaXcmRouter',
|
|
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
|
+
'ToKusamaXcmRouter',
|
|
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 VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: PolkadotAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1004000
|
|
27
27
|
**/
|
|
28
28
|
export interface PolkadotAssetHubApi {
|
|
29
29
|
legacy: VersionedPolkadotAssetHubApi<RpcLegacy>;
|
|
@@ -20,12 +20,12 @@ import type {
|
|
|
20
20
|
FrameSystemCodeUpgradeAuthorization,
|
|
21
21
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
22
22
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
PolkadotPrimitivesV8PersistedValidationData,
|
|
24
|
+
PolkadotPrimitivesV8UpgradeRestriction,
|
|
25
|
+
PolkadotPrimitivesV8UpgradeGoAhead,
|
|
26
26
|
SpTrieStorageProof,
|
|
27
27
|
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
|
|
28
|
-
|
|
28
|
+
PolkadotPrimitivesV8AbridgedHostConfiguration,
|
|
29
29
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
30
30
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
31
31
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
@@ -292,9 +292,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
292
292
|
* This value is expected to be set only once per block and it's never stored
|
|
293
293
|
* in the trie.
|
|
294
294
|
*
|
|
295
|
-
* @param {Callback<
|
|
295
|
+
* @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
|
|
296
296
|
**/
|
|
297
|
-
validationData: GenericStorageQuery<Rv, () =>
|
|
297
|
+
validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* Were the validation data set to notify the relay chain?
|
|
@@ -321,9 +321,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
321
321
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
322
322
|
* set after the inherent.
|
|
323
323
|
*
|
|
324
|
-
* @param {Callback<
|
|
324
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
|
|
325
325
|
**/
|
|
326
|
-
upgradeRestrictionSignal: GenericStorageQuery<Rv, () =>
|
|
326
|
+
upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
|
|
327
327
|
|
|
328
328
|
/**
|
|
329
329
|
* Optional upgrade go-ahead signal from the relay-chain.
|
|
@@ -332,9 +332,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
332
332
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
333
333
|
* set after the inherent.
|
|
334
334
|
*
|
|
335
|
-
* @param {Callback<
|
|
335
|
+
* @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
|
|
336
336
|
**/
|
|
337
|
-
upgradeGoAhead: GenericStorageQuery<Rv, () =>
|
|
337
|
+
upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
|
|
338
338
|
|
|
339
339
|
/**
|
|
340
340
|
* The state proof for the last relay parent block.
|
|
@@ -372,9 +372,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
372
372
|
*
|
|
373
373
|
* This data is also absent from the genesis.
|
|
374
374
|
*
|
|
375
|
-
* @param {Callback<
|
|
375
|
+
* @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
|
|
376
376
|
**/
|
|
377
|
-
hostConfiguration: GenericStorageQuery<Rv, () =>
|
|
377
|
+
hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* The last downward message queue chain head we have observed.
|
|
@@ -632,7 +632,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
632
632
|
*
|
|
633
633
|
* Otherwise function returns a JSON representation of the built-in, named
|
|
634
634
|
* `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
|
|
635
|
-
*
|
|
635
|
+
* exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
|
|
636
636
|
* (potentially nested) key-value pairs that are intended for customizing the default
|
|
637
637
|
* runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
|
|
638
638
|
* 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
|
**/
|
|
@@ -7760,8 +7779,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7760
7779
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7761
7780
|
* asset.
|
|
7762
7781
|
*
|
|
7763
|
-
* The asset class must be frozen before calling `start_destroy`.
|
|
7764
|
-
*
|
|
7765
7782
|
* @param {number} id
|
|
7766
7783
|
**/
|
|
7767
7784
|
startDestroy: GenericTxCall<
|
|
@@ -8816,6 +8833,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8816
8833
|
>
|
|
8817
8834
|
>;
|
|
8818
8835
|
|
|
8836
|
+
/**
|
|
8837
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
8838
|
+
*
|
|
8839
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
8840
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
8841
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
8842
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
8843
|
+
* deposits, etc...
|
|
8844
|
+
*
|
|
8845
|
+
* The dispatch origin of this call must be Signed.
|
|
8846
|
+
*
|
|
8847
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
8848
|
+
* - `dest`: The recipient of the transfer.
|
|
8849
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
8850
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
8851
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
8852
|
+
* guarantee to keep the sender asset account alive (true).
|
|
8853
|
+
*
|
|
8854
|
+
* @param {number} id
|
|
8855
|
+
* @param {MultiAddressLike} dest
|
|
8856
|
+
* @param {boolean} keepAlive
|
|
8857
|
+
**/
|
|
8858
|
+
transferAll: GenericTxCall<
|
|
8859
|
+
Rv,
|
|
8860
|
+
(
|
|
8861
|
+
id: number,
|
|
8862
|
+
dest: MultiAddressLike,
|
|
8863
|
+
keepAlive: boolean,
|
|
8864
|
+
) => ChainSubmittableExtrinsic<
|
|
8865
|
+
Rv,
|
|
8866
|
+
{
|
|
8867
|
+
pallet: 'PoolAssets';
|
|
8868
|
+
palletCall: {
|
|
8869
|
+
name: 'TransferAll';
|
|
8870
|
+
params: { id: number; dest: MultiAddressLike; keepAlive: boolean };
|
|
8871
|
+
};
|
|
8872
|
+
}
|
|
8873
|
+
>
|
|
8874
|
+
>;
|
|
8875
|
+
|
|
8819
8876
|
/**
|
|
8820
8877
|
* Generic pallet tx call
|
|
8821
8878
|
**/
|
|
@@ -8865,7 +8922,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8865
8922
|
* calls to render the liquidity withdrawable and rectify the exchange rate.
|
|
8866
8923
|
*
|
|
8867
8924
|
* Once liquidity is added, someone may successfully call
|
|
8868
|
-
* [`Pallet::swap_exact_tokens_for_tokens`]
|
|
8925
|
+
* [`Pallet::swap_exact_tokens_for_tokens`].
|
|
8869
8926
|
*
|
|
8870
8927
|
* @param {StagingXcmV4Location} asset1
|
|
8871
8928
|
* @param {StagingXcmV4Location} asset2
|