@dedot/chaintypes 0.149.0 → 0.151.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/basilisk/index.d.ts +1 -1
- package/kusama/consts.d.ts +41 -2
- package/kusama/errors.d.ts +38 -0
- package/kusama/events.d.ts +132 -0
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +35 -0
- package/kusama/tx.d.ts +209 -15
- package/kusama/types.d.ts +465 -98
- package/kusama/view-functions.d.ts +80 -1
- package/kusama-asset-hub/consts.d.ts +48 -2
- package/kusama-asset-hub/errors.d.ts +52 -23
- package/kusama-asset-hub/events.d.ts +212 -36
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +79 -26
- package/kusama-asset-hub/runtime.d.ts +180 -13
- package/kusama-asset-hub/tx.d.ts +347 -143
- package/kusama-asset-hub/types.d.ts +1613 -1188
- package/kusama-asset-hub/view-functions.d.ts +34 -1
- package/kusama-people/consts.d.ts +21 -0
- package/kusama-people/errors.d.ts +8 -0
- package/kusama-people/events.d.ts +22 -0
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +25 -2
- package/kusama-people/runtime.d.ts +121 -0
- package/kusama-people/tx.d.ts +24 -12
- package/kusama-people/types.d.ts +1072 -954
- package/kusama-people/view-functions.d.ts +34 -1
- package/package.json +2 -2
package/kusama/tx.d.ts
CHANGED
|
@@ -1025,6 +1025,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1025
1025
|
* period ends. If this leaves an amount actively bonded less than
|
|
1026
1026
|
* [`asset::existential_deposit`], then it is increased to the full amount.
|
|
1027
1027
|
*
|
|
1028
|
+
* The stash may be chilled if the ledger total amount falls to 0 after unbonding.
|
|
1029
|
+
*
|
|
1028
1030
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
1029
1031
|
*
|
|
1030
1032
|
* Once the unlock period is done, you can call `withdraw_unbonded` to actually move
|
|
@@ -1450,6 +1452,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1450
1452
|
* Can be called by the `T::AdminOrigin`.
|
|
1451
1453
|
*
|
|
1452
1454
|
* Parameters: era and indices of the slashes for that era to kill.
|
|
1455
|
+
* They **must** be sorted in ascending order, *and* unique.
|
|
1453
1456
|
*
|
|
1454
1457
|
* @param {number} era
|
|
1455
1458
|
* @param {Array<number>} slashIndices
|
|
@@ -2280,6 +2283,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2280
2283
|
* Emits [`Event::Paid`] if successful.
|
|
2281
2284
|
*
|
|
2282
2285
|
* @param {number} index
|
|
2286
|
+
*
|
|
2287
|
+
* @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
|
|
2283
2288
|
**/
|
|
2284
2289
|
payout: GenericTxCall<
|
|
2285
2290
|
Rv,
|
|
@@ -2317,6 +2322,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2317
2322
|
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
2318
2323
|
*
|
|
2319
2324
|
* @param {number} index
|
|
2325
|
+
*
|
|
2326
|
+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
|
|
2320
2327
|
**/
|
|
2321
2328
|
checkStatus: GenericTxCall<
|
|
2322
2329
|
Rv,
|
|
@@ -4463,6 +4470,29 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4463
4470
|
>
|
|
4464
4471
|
>;
|
|
4465
4472
|
|
|
4473
|
+
/**
|
|
4474
|
+
* Poke the deposit reserved when bidding.
|
|
4475
|
+
*
|
|
4476
|
+
* The dispatch origin for this call must be _Signed_ and must be the bidder.
|
|
4477
|
+
*
|
|
4478
|
+
* The transaction fee is waived if the deposit is changed after poking/reconsideration.
|
|
4479
|
+
*
|
|
4480
|
+
* Emits `DepositPoked` if successful.
|
|
4481
|
+
*
|
|
4482
|
+
**/
|
|
4483
|
+
pokeDeposit: GenericTxCall<
|
|
4484
|
+
Rv,
|
|
4485
|
+
() => ChainSubmittableExtrinsic<
|
|
4486
|
+
Rv,
|
|
4487
|
+
{
|
|
4488
|
+
pallet: 'Society';
|
|
4489
|
+
palletCall: {
|
|
4490
|
+
name: 'PokeDeposit';
|
|
4491
|
+
};
|
|
4492
|
+
}
|
|
4493
|
+
>
|
|
4494
|
+
>;
|
|
4495
|
+
|
|
4466
4496
|
/**
|
|
4467
4497
|
* Generic pallet tx call
|
|
4468
4498
|
**/
|
|
@@ -4743,6 +4773,47 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4743
4773
|
>
|
|
4744
4774
|
>;
|
|
4745
4775
|
|
|
4776
|
+
/**
|
|
4777
|
+
* Poke deposits for recovery configurations and / or active recoveries.
|
|
4778
|
+
*
|
|
4779
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
4780
|
+
*
|
|
4781
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4782
|
+
*
|
|
4783
|
+
* Parameters:
|
|
4784
|
+
* - `maybe_account`: Optional recoverable account for which you have an active recovery
|
|
4785
|
+
* and want to adjust the deposit for the active recovery.
|
|
4786
|
+
*
|
|
4787
|
+
* This function checks both recovery configuration deposit and active recovery deposits
|
|
4788
|
+
* of the caller:
|
|
4789
|
+
* - If the caller has created a recovery configuration, checks and adjusts its deposit
|
|
4790
|
+
* - If the caller has initiated any active recoveries, and provides the account in
|
|
4791
|
+
* `maybe_account`, checks and adjusts those deposits
|
|
4792
|
+
*
|
|
4793
|
+
* If any deposit is updated, the difference will be reserved/unreserved from the caller's
|
|
4794
|
+
* account.
|
|
4795
|
+
*
|
|
4796
|
+
* The transaction is made free if any deposit is updated and paid otherwise.
|
|
4797
|
+
*
|
|
4798
|
+
* Emits `DepositPoked` if any deposit is updated.
|
|
4799
|
+
* Multiple events may be emitted in case both types of deposits are updated.
|
|
4800
|
+
*
|
|
4801
|
+
* @param {MultiAddressLike | undefined} maybeAccount
|
|
4802
|
+
**/
|
|
4803
|
+
pokeDeposit: GenericTxCall<
|
|
4804
|
+
Rv,
|
|
4805
|
+
(maybeAccount: MultiAddressLike | undefined) => ChainSubmittableExtrinsic<
|
|
4806
|
+
Rv,
|
|
4807
|
+
{
|
|
4808
|
+
pallet: 'Recovery';
|
|
4809
|
+
palletCall: {
|
|
4810
|
+
name: 'PokeDeposit';
|
|
4811
|
+
params: { maybeAccount: MultiAddressLike | undefined };
|
|
4812
|
+
};
|
|
4813
|
+
}
|
|
4814
|
+
>
|
|
4815
|
+
>;
|
|
4816
|
+
|
|
4746
4817
|
/**
|
|
4747
4818
|
* Generic pallet tx call
|
|
4748
4819
|
**/
|
|
@@ -5360,7 +5431,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5360
5431
|
*
|
|
5361
5432
|
* The dispatch origin for this call must be _Signed_.
|
|
5362
5433
|
*
|
|
5363
|
-
* WARNING: This may be called on accounts created by `
|
|
5434
|
+
* WARNING: This may be called on accounts created by `create_pure`, however if done, then
|
|
5364
5435
|
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
5365
5436
|
*
|
|
5366
5437
|
**/
|
|
@@ -5426,16 +5497,16 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5426
5497
|
* inaccessible.
|
|
5427
5498
|
*
|
|
5428
5499
|
* Requires a `Signed` origin, and the sender account must have been created by a call to
|
|
5429
|
-
* `
|
|
5500
|
+
* `create_pure` with corresponding parameters.
|
|
5430
5501
|
*
|
|
5431
|
-
* - `spawner`: The account that originally called `
|
|
5432
|
-
* - `index`: The disambiguation index originally passed to `
|
|
5433
|
-
* - `proxy_type`: The proxy type originally passed to `
|
|
5434
|
-
* - `height`: The height of the chain when the call to `
|
|
5435
|
-
* - `ext_index`: The extrinsic index in which the call to `
|
|
5502
|
+
* - `spawner`: The account that originally called `create_pure` to create this account.
|
|
5503
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
5504
|
+
* - `proxy_type`: The proxy type originally passed to `create_pure`.
|
|
5505
|
+
* - `height`: The height of the chain when the call to `create_pure` was processed.
|
|
5506
|
+
* - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
|
|
5436
5507
|
*
|
|
5437
5508
|
* Fails with `NoPermission` in case the caller is not a previously created pure
|
|
5438
|
-
* account whose `
|
|
5509
|
+
* account whose `create_pure` call has corresponding parameters.
|
|
5439
5510
|
*
|
|
5440
5511
|
* @param {MultiAddressLike} spawner
|
|
5441
5512
|
* @param {KusamaRuntimeConstantsProxyProxyType} proxyType
|
|
@@ -6333,6 +6404,39 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6333
6404
|
>
|
|
6334
6405
|
>;
|
|
6335
6406
|
|
|
6407
|
+
/**
|
|
6408
|
+
* Poke the deposit reserved for creating a bounty proposal.
|
|
6409
|
+
*
|
|
6410
|
+
* This can be used by accounts to update their reserved amount.
|
|
6411
|
+
*
|
|
6412
|
+
* The dispatch origin for this call must be _Signed_.
|
|
6413
|
+
*
|
|
6414
|
+
* Parameters:
|
|
6415
|
+
* - `bounty_id`: The bounty id for which to adjust the deposit.
|
|
6416
|
+
*
|
|
6417
|
+
* If the deposit is updated, the difference will be reserved/unreserved from the
|
|
6418
|
+
* proposer's account.
|
|
6419
|
+
*
|
|
6420
|
+
* The transaction is made free if the deposit is updated and paid otherwise.
|
|
6421
|
+
*
|
|
6422
|
+
* Emits `DepositPoked` if the deposit is updated.
|
|
6423
|
+
*
|
|
6424
|
+
* @param {number} bountyId
|
|
6425
|
+
**/
|
|
6426
|
+
pokeDeposit: GenericTxCall<
|
|
6427
|
+
Rv,
|
|
6428
|
+
(bountyId: number) => ChainSubmittableExtrinsic<
|
|
6429
|
+
Rv,
|
|
6430
|
+
{
|
|
6431
|
+
pallet: 'Bounties';
|
|
6432
|
+
palletCall: {
|
|
6433
|
+
name: 'PokeDeposit';
|
|
6434
|
+
params: { bountyId: number };
|
|
6435
|
+
};
|
|
6436
|
+
}
|
|
6437
|
+
>
|
|
6438
|
+
>;
|
|
6439
|
+
|
|
6336
6440
|
/**
|
|
6337
6441
|
* Generic pallet tx call
|
|
6338
6442
|
**/
|
|
@@ -6776,21 +6880,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6776
6880
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
6777
6881
|
* calling [`Call::set_emergency_election_result`].
|
|
6778
6882
|
*
|
|
6779
|
-
* @param {number | undefined} maybeMaxVoters
|
|
6780
|
-
* @param {number | undefined} maybeMaxTargets
|
|
6781
6883
|
**/
|
|
6782
6884
|
governanceFallback: GenericTxCall<
|
|
6783
6885
|
Rv,
|
|
6784
|
-
(
|
|
6785
|
-
maybeMaxVoters: number | undefined,
|
|
6786
|
-
maybeMaxTargets: number | undefined,
|
|
6787
|
-
) => ChainSubmittableExtrinsic<
|
|
6886
|
+
() => ChainSubmittableExtrinsic<
|
|
6788
6887
|
Rv,
|
|
6789
6888
|
{
|
|
6790
6889
|
pallet: 'ElectionProviderMultiPhase';
|
|
6791
6890
|
palletCall: {
|
|
6792
6891
|
name: 'GovernanceFallback';
|
|
6793
|
-
params: { maybeMaxVoters: number | undefined; maybeMaxTargets: number | undefined };
|
|
6794
6892
|
};
|
|
6795
6893
|
}
|
|
6796
6894
|
>
|
|
@@ -9471,6 +9569,94 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9471
9569
|
>
|
|
9472
9570
|
>;
|
|
9473
9571
|
|
|
9572
|
+
/**
|
|
9573
|
+
* Remove an upgrade cooldown for a parachain.
|
|
9574
|
+
*
|
|
9575
|
+
* The cost for removing the cooldown earlier depends on the time left for the cooldown
|
|
9576
|
+
* multiplied by [`Config::CooldownRemovalMultiplier`]. The paid tokens are burned.
|
|
9577
|
+
*
|
|
9578
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
9579
|
+
**/
|
|
9580
|
+
removeUpgradeCooldown: GenericTxCall<
|
|
9581
|
+
Rv,
|
|
9582
|
+
(para: PolkadotParachainPrimitivesPrimitivesId) => ChainSubmittableExtrinsic<
|
|
9583
|
+
Rv,
|
|
9584
|
+
{
|
|
9585
|
+
pallet: 'Paras';
|
|
9586
|
+
palletCall: {
|
|
9587
|
+
name: 'RemoveUpgradeCooldown';
|
|
9588
|
+
params: { para: PolkadotParachainPrimitivesPrimitivesId };
|
|
9589
|
+
};
|
|
9590
|
+
}
|
|
9591
|
+
>
|
|
9592
|
+
>;
|
|
9593
|
+
|
|
9594
|
+
/**
|
|
9595
|
+
* Sets the storage for the authorized current code hash of the parachain.
|
|
9596
|
+
* If not applied, it will be removed at the `System::block_number() + valid_period` block.
|
|
9597
|
+
*
|
|
9598
|
+
* This can be useful, when triggering `Paras::force_set_current_code(para, code)`
|
|
9599
|
+
* from a different chain than the one where the `Paras` pallet is deployed.
|
|
9600
|
+
*
|
|
9601
|
+
* The main purpose is to avoid transferring the entire `code` Wasm blob between chains.
|
|
9602
|
+
* Instead, we authorize `code_hash` with `root`, which can later be applied by
|
|
9603
|
+
* `Paras::apply_authorized_force_set_current_code(para, code)` by anyone.
|
|
9604
|
+
*
|
|
9605
|
+
* Authorizations are stored in an **overwriting manner**.
|
|
9606
|
+
*
|
|
9607
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
9608
|
+
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} newCodeHash
|
|
9609
|
+
* @param {number} validPeriod
|
|
9610
|
+
**/
|
|
9611
|
+
authorizeForceSetCurrentCodeHash: GenericTxCall<
|
|
9612
|
+
Rv,
|
|
9613
|
+
(
|
|
9614
|
+
para: PolkadotParachainPrimitivesPrimitivesId,
|
|
9615
|
+
newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
9616
|
+
validPeriod: number,
|
|
9617
|
+
) => ChainSubmittableExtrinsic<
|
|
9618
|
+
Rv,
|
|
9619
|
+
{
|
|
9620
|
+
pallet: 'Paras';
|
|
9621
|
+
palletCall: {
|
|
9622
|
+
name: 'AuthorizeForceSetCurrentCodeHash';
|
|
9623
|
+
params: {
|
|
9624
|
+
para: PolkadotParachainPrimitivesPrimitivesId;
|
|
9625
|
+
newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
|
|
9626
|
+
validPeriod: number;
|
|
9627
|
+
};
|
|
9628
|
+
};
|
|
9629
|
+
}
|
|
9630
|
+
>
|
|
9631
|
+
>;
|
|
9632
|
+
|
|
9633
|
+
/**
|
|
9634
|
+
* Applies the already authorized current code for the parachain,
|
|
9635
|
+
* triggering the same functionality as `force_set_current_code`.
|
|
9636
|
+
*
|
|
9637
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
9638
|
+
* @param {PolkadotParachainPrimitivesPrimitivesValidationCode} newCode
|
|
9639
|
+
**/
|
|
9640
|
+
applyAuthorizedForceSetCurrentCode: GenericTxCall<
|
|
9641
|
+
Rv,
|
|
9642
|
+
(
|
|
9643
|
+
para: PolkadotParachainPrimitivesPrimitivesId,
|
|
9644
|
+
newCode: PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
9645
|
+
) => ChainSubmittableExtrinsic<
|
|
9646
|
+
Rv,
|
|
9647
|
+
{
|
|
9648
|
+
pallet: 'Paras';
|
|
9649
|
+
palletCall: {
|
|
9650
|
+
name: 'ApplyAuthorizedForceSetCurrentCode';
|
|
9651
|
+
params: {
|
|
9652
|
+
para: PolkadotParachainPrimitivesPrimitivesId;
|
|
9653
|
+
newCode: PolkadotParachainPrimitivesPrimitivesValidationCode;
|
|
9654
|
+
};
|
|
9655
|
+
};
|
|
9656
|
+
}
|
|
9657
|
+
>
|
|
9658
|
+
>;
|
|
9659
|
+
|
|
9474
9660
|
/**
|
|
9475
9661
|
* Generic pallet tx call
|
|
9476
9662
|
**/
|
|
@@ -9921,6 +10107,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9921
10107
|
*
|
|
9922
10108
|
* @param {bigint} maxAmount
|
|
9923
10109
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
10110
|
+
*
|
|
10111
|
+
* @deprecated This will be removed in favor of using `place_order_with_credits`
|
|
9924
10112
|
**/
|
|
9925
10113
|
placeOrderAllowDeath: GenericTxCall<
|
|
9926
10114
|
Rv,
|
|
@@ -9958,6 +10146,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9958
10146
|
*
|
|
9959
10147
|
* @param {bigint} maxAmount
|
|
9960
10148
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
10149
|
+
*
|
|
10150
|
+
* @deprecated This will be removed in favor of using `place_order_with_credits`
|
|
9961
10151
|
**/
|
|
9962
10152
|
placeOrderKeepAlive: GenericTxCall<
|
|
9963
10153
|
Rv,
|
|
@@ -10958,6 +11148,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10958
11148
|
* @param {XcmVersionedLocation} beneficiary
|
|
10959
11149
|
* @param {XcmVersionedAssets} assets
|
|
10960
11150
|
* @param {number} feeAssetItem
|
|
11151
|
+
*
|
|
11152
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
10961
11153
|
**/
|
|
10962
11154
|
teleportAssets: GenericTxCall<
|
|
10963
11155
|
Rv,
|
|
@@ -11019,6 +11211,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
11019
11211
|
* @param {XcmVersionedLocation} beneficiary
|
|
11020
11212
|
* @param {XcmVersionedAssets} assets
|
|
11021
11213
|
* @param {number} feeAssetItem
|
|
11214
|
+
*
|
|
11215
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
11022
11216
|
**/
|
|
11023
11217
|
reserveTransferAssets: GenericTxCall<
|
|
11024
11218
|
Rv,
|