@polkadot/api-augment 9.4.1 → 9.4.3
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/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +22 -0
- package/kusama/errors.d.ts +4 -0
- package/kusama/events.d.ts +12 -12
- package/kusama/query.d.ts +0 -10
- package/kusama/tx.d.ts +13 -87
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +22 -0
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/events.d.ts +12 -12
- package/polkadot/query.d.ts +0 -10
- package/polkadot/tx.d.ts +13 -87
- package/substrate/consts.d.ts +74 -52
- package/substrate/errors.d.ts +42 -10
- package/substrate/events.d.ts +72 -33
- package/substrate/query.d.ts +54 -34
- package/substrate/runtime.d.ts +6 -2
- package/substrate/tx.d.ts +107 -137
package/substrate/tx.d.ts
CHANGED
|
@@ -1055,56 +1055,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1055
1055
|
**/
|
|
1056
1056
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1057
1057
|
};
|
|
1058
|
-
bagsList: {
|
|
1059
|
-
/**
|
|
1060
|
-
* Move the caller's Id directly in front of `lighter`.
|
|
1061
|
-
*
|
|
1062
|
-
* The dispatch origin for this call must be _Signed_ and can only be called by the Id of
|
|
1063
|
-
* the account going in front of `lighter`.
|
|
1064
|
-
*
|
|
1065
|
-
* Only works if
|
|
1066
|
-
* - both nodes are within the same bag,
|
|
1067
|
-
* - and `origin` has a greater `Score` than `lighter`.
|
|
1068
|
-
**/
|
|
1069
|
-
putInFrontOf: AugmentedSubmittable<(lighter: MultiAddress | {
|
|
1070
|
-
Id: any;
|
|
1071
|
-
} | {
|
|
1072
|
-
Index: any;
|
|
1073
|
-
} | {
|
|
1074
|
-
Raw: any;
|
|
1075
|
-
} | {
|
|
1076
|
-
Address32: any;
|
|
1077
|
-
} | {
|
|
1078
|
-
Address20: any;
|
|
1079
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1080
|
-
/**
|
|
1081
|
-
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
|
1082
|
-
* changed its score that it should properly fall into a different bag than its current
|
|
1083
|
-
* one.
|
|
1084
|
-
*
|
|
1085
|
-
* Anyone can call this function about any potentially dislocated account.
|
|
1086
|
-
*
|
|
1087
|
-
* Will always update the stored score of `dislocated` to the correct score, based on
|
|
1088
|
-
* `ScoreProvider`.
|
|
1089
|
-
*
|
|
1090
|
-
* If `dislocated` does not exists, it returns an error.
|
|
1091
|
-
**/
|
|
1092
|
-
rebag: AugmentedSubmittable<(dislocated: MultiAddress | {
|
|
1093
|
-
Id: any;
|
|
1094
|
-
} | {
|
|
1095
|
-
Index: any;
|
|
1096
|
-
} | {
|
|
1097
|
-
Raw: any;
|
|
1098
|
-
} | {
|
|
1099
|
-
Address32: any;
|
|
1100
|
-
} | {
|
|
1101
|
-
Address20: any;
|
|
1102
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1103
|
-
/**
|
|
1104
|
-
* Generic tx
|
|
1105
|
-
**/
|
|
1106
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1107
|
-
};
|
|
1108
1058
|
balances: {
|
|
1109
1059
|
/**
|
|
1110
1060
|
* Exactly as `transfer`, except the origin must be root and the source account may be
|
|
@@ -2612,6 +2562,50 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2612
2562
|
**/
|
|
2613
2563
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2614
2564
|
};
|
|
2565
|
+
fastUnstake: {
|
|
2566
|
+
/**
|
|
2567
|
+
* Control the operation of this pallet.
|
|
2568
|
+
*
|
|
2569
|
+
* Dispatch origin must be signed by the [`Config::ControlOrigin`].
|
|
2570
|
+
**/
|
|
2571
|
+
control: AugmentedSubmittable<(uncheckedErasToCheck: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2572
|
+
/**
|
|
2573
|
+
* Deregister oneself from the fast-unstake (also cancels joining the pool if that was
|
|
2574
|
+
* supplied on `register_fast_unstake` .
|
|
2575
|
+
*
|
|
2576
|
+
* This is useful if one is registered, they are still waiting, and they change their mind.
|
|
2577
|
+
*
|
|
2578
|
+
* Note that the associated stash is still fully unbonded and chilled as a consequence of
|
|
2579
|
+
* calling `register_fast_unstake`. This should probably be followed by a call to
|
|
2580
|
+
* `Staking::rebond`.
|
|
2581
|
+
**/
|
|
2582
|
+
deregister: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Register oneself for fast-unstake.
|
|
2585
|
+
*
|
|
2586
|
+
* The dispatch origin of this call must be signed by the controller account, similar to
|
|
2587
|
+
* `staking::unbond`.
|
|
2588
|
+
*
|
|
2589
|
+
* The stash associated with the origin must have no ongoing unlocking chunks. If
|
|
2590
|
+
* successful, this will fully unbond and chill the stash. Then, it will enqueue the stash
|
|
2591
|
+
* to be checked in further blocks.
|
|
2592
|
+
*
|
|
2593
|
+
* If by the time this is called, the stash is actually eligible for fast-unstake, then
|
|
2594
|
+
* they are guaranteed to remain eligible, because the call will chill them as well.
|
|
2595
|
+
*
|
|
2596
|
+
* If the check works, the entire staking data is removed, i.e. the stash is fully
|
|
2597
|
+
* unstaked, and they potentially join a pool with their entire bonded stake.
|
|
2598
|
+
*
|
|
2599
|
+
* If the check fails, the stash remains chilled and waiting for being unbonded as in with
|
|
2600
|
+
* the normal staking system, but they lose part of their unbonding chunks due to consuming
|
|
2601
|
+
* the chain's resources.
|
|
2602
|
+
**/
|
|
2603
|
+
registerFastUnstake: AugmentedSubmittable<(maybePoolId: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
2604
|
+
/**
|
|
2605
|
+
* Generic tx
|
|
2606
|
+
**/
|
|
2607
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2608
|
+
};
|
|
2615
2609
|
gilt: {
|
|
2616
2610
|
/**
|
|
2617
2611
|
* Place a bid for a gilt to be issued.
|
|
@@ -3798,10 +3792,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3798
3792
|
* - `proxy_type`: The permissions allowed for this proxy account.
|
|
3799
3793
|
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
|
3800
3794
|
* zero.
|
|
3801
|
-
*
|
|
3802
|
-
* # <weight>
|
|
3803
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3804
|
-
* # </weight>
|
|
3805
3795
|
**/
|
|
3806
3796
|
addProxy: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
3807
3797
|
Id: any;
|
|
@@ -3830,12 +3820,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3830
3820
|
* Parameters:
|
|
3831
3821
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
3832
3822
|
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
3833
|
-
*
|
|
3834
|
-
* # <weight>
|
|
3835
|
-
* Weight is a function of:
|
|
3836
|
-
* - A: the number of announcements made.
|
|
3837
|
-
* - P: the number of proxies the user has.
|
|
3838
|
-
* # </weight>
|
|
3839
3823
|
**/
|
|
3840
3824
|
announce: AugmentedSubmittable<(real: MultiAddress | {
|
|
3841
3825
|
Id: any;
|
|
@@ -3867,36 +3851,27 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3867
3851
|
* same sender, with the same parameters.
|
|
3868
3852
|
*
|
|
3869
3853
|
* Fails if there are insufficient funds to pay for deposit.
|
|
3870
|
-
*
|
|
3871
|
-
* # <weight>
|
|
3872
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3873
|
-
* # </weight>
|
|
3874
|
-
* TODO: Might be over counting 1 read
|
|
3875
3854
|
**/
|
|
3876
|
-
|
|
3855
|
+
createPure: AugmentedSubmittable<(proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeProxyType, u32, u16]>;
|
|
3877
3856
|
/**
|
|
3878
|
-
* Removes a previously spawned
|
|
3857
|
+
* Removes a previously spawned pure proxy.
|
|
3879
3858
|
*
|
|
3880
3859
|
* WARNING: **All access to this account will be lost.** Any funds held in it will be
|
|
3881
3860
|
* inaccessible.
|
|
3882
3861
|
*
|
|
3883
3862
|
* Requires a `Signed` origin, and the sender account must have been created by a call to
|
|
3884
|
-
* `
|
|
3885
|
-
*
|
|
3886
|
-
* - `spawner`: The account that originally called `anonymous` to create this account.
|
|
3887
|
-
* - `index`: The disambiguation index originally passed to `anonymous`. Probably `0`.
|
|
3888
|
-
* - `proxy_type`: The proxy type originally passed to `anonymous`.
|
|
3889
|
-
* - `height`: The height of the chain when the call to `anonymous` was processed.
|
|
3890
|
-
* - `ext_index`: The extrinsic index in which the call to `anonymous` was processed.
|
|
3863
|
+
* `pure` with corresponding parameters.
|
|
3891
3864
|
*
|
|
3892
|
-
*
|
|
3893
|
-
*
|
|
3865
|
+
* - `spawner`: The account that originally called `pure` to create this account.
|
|
3866
|
+
* - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
|
|
3867
|
+
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
3868
|
+
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
3869
|
+
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
3894
3870
|
*
|
|
3895
|
-
*
|
|
3896
|
-
*
|
|
3897
|
-
* # </weight>
|
|
3871
|
+
* Fails with `NoPermission` in case the caller is not a previously created pure
|
|
3872
|
+
* account whose `pure` call has corresponding parameters.
|
|
3898
3873
|
**/
|
|
3899
|
-
|
|
3874
|
+
killPure: AugmentedSubmittable<(spawner: MultiAddress | {
|
|
3900
3875
|
Id: any;
|
|
3901
3876
|
} | {
|
|
3902
3877
|
Index: any;
|
|
@@ -3919,10 +3894,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3919
3894
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
3920
3895
|
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
3921
3896
|
* - `call`: The call to be made by the `real` account.
|
|
3922
|
-
*
|
|
3923
|
-
* # <weight>
|
|
3924
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
3925
|
-
* # </weight>
|
|
3926
3897
|
**/
|
|
3927
3898
|
proxy: AugmentedSubmittable<(real: MultiAddress | {
|
|
3928
3899
|
Id: any;
|
|
@@ -3947,12 +3918,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3947
3918
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
3948
3919
|
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
3949
3920
|
* - `call`: The call to be made by the `real` account.
|
|
3950
|
-
*
|
|
3951
|
-
* # <weight>
|
|
3952
|
-
* Weight is a function of:
|
|
3953
|
-
* - A: the number of announcements made.
|
|
3954
|
-
* - P: the number of proxies the user has.
|
|
3955
|
-
* # </weight>
|
|
3956
3921
|
**/
|
|
3957
3922
|
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
3958
3923
|
Id: any;
|
|
@@ -3986,12 +3951,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3986
3951
|
* Parameters:
|
|
3987
3952
|
* - `delegate`: The account that previously announced the call.
|
|
3988
3953
|
* - `call_hash`: The hash of the call to be made.
|
|
3989
|
-
*
|
|
3990
|
-
* # <weight>
|
|
3991
|
-
* Weight is a function of:
|
|
3992
|
-
* - A: the number of announcements made.
|
|
3993
|
-
* - P: the number of proxies the user has.
|
|
3994
|
-
* # </weight>
|
|
3995
3954
|
**/
|
|
3996
3955
|
rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
3997
3956
|
Id: any;
|
|
@@ -4015,12 +3974,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4015
3974
|
* Parameters:
|
|
4016
3975
|
* - `real`: The account that the proxy will make a call on behalf of.
|
|
4017
3976
|
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
4018
|
-
*
|
|
4019
|
-
* # <weight>
|
|
4020
|
-
* Weight is a function of:
|
|
4021
|
-
* - A: the number of announcements made.
|
|
4022
|
-
* - P: the number of proxies the user has.
|
|
4023
|
-
* # </weight>
|
|
4024
3977
|
**/
|
|
4025
3978
|
removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | {
|
|
4026
3979
|
Id: any;
|
|
@@ -4038,12 +3991,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4038
3991
|
*
|
|
4039
3992
|
* The dispatch origin for this call must be _Signed_.
|
|
4040
3993
|
*
|
|
4041
|
-
* WARNING: This may be called on accounts created by `
|
|
3994
|
+
* WARNING: This may be called on accounts created by `pure`, however if done, then
|
|
4042
3995
|
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
4043
|
-
*
|
|
4044
|
-
* # <weight>
|
|
4045
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
4046
|
-
* # </weight>
|
|
4047
3996
|
**/
|
|
4048
3997
|
removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4049
3998
|
/**
|
|
@@ -4054,10 +4003,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4054
4003
|
* Parameters:
|
|
4055
4004
|
* - `proxy`: The account that the `caller` would like to remove as a proxy.
|
|
4056
4005
|
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
|
4057
|
-
*
|
|
4058
|
-
* # <weight>
|
|
4059
|
-
* Weight is a function of the number of proxies the user has (P).
|
|
4060
|
-
* # </weight>
|
|
4061
4006
|
**/
|
|
4062
4007
|
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | {
|
|
4063
4008
|
Id: any;
|
|
@@ -5390,31 +5335,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5390
5335
|
} | {
|
|
5391
5336
|
Address20: any;
|
|
5392
5337
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
5393
|
-
/**
|
|
5394
|
-
* Set `HistoryDepth` value. This function will delete any history information
|
|
5395
|
-
* when `HistoryDepth` is reduced.
|
|
5396
|
-
*
|
|
5397
|
-
* Parameters:
|
|
5398
|
-
* - `new_history_depth`: The new history depth you would like to set.
|
|
5399
|
-
* - `era_items_deleted`: The number of items that will be deleted by this dispatch. This
|
|
5400
|
-
* should report all the storage items that will be deleted by clearing old era history.
|
|
5401
|
-
* Needed to report an accurate weight for the dispatch. Trusted by `Root` to report an
|
|
5402
|
-
* accurate number.
|
|
5403
|
-
*
|
|
5404
|
-
* Origin must be root.
|
|
5405
|
-
*
|
|
5406
|
-
* # <weight>
|
|
5407
|
-
* - E: Number of history depths removed, i.e. 10 -> 7 = 3
|
|
5408
|
-
* - Weight: O(E)
|
|
5409
|
-
* - DB Weight:
|
|
5410
|
-
* - Reads: Current Era, History Depth
|
|
5411
|
-
* - Writes: History Depth
|
|
5412
|
-
* - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
|
|
5413
|
-
* - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,
|
|
5414
|
-
* ErasStartSessionIndex
|
|
5415
|
-
* # </weight>
|
|
5416
|
-
**/
|
|
5417
|
-
setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<u32> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
|
|
5418
5338
|
/**
|
|
5419
5339
|
* Set the validators who cannot be slashed (if any).
|
|
5420
5340
|
*
|
|
@@ -5464,7 +5384,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5464
5384
|
* * `min_commission`: The minimum amount of commission that each validators must maintain.
|
|
5465
5385
|
* This is checked only upon calling `validate`. Existing validators are not affected.
|
|
5466
5386
|
*
|
|
5467
|
-
*
|
|
5387
|
+
* RuntimeOrigin must be Root to call this function.
|
|
5468
5388
|
*
|
|
5469
5389
|
* NOTE: Existing nominators and validators will not be affected by this update.
|
|
5470
5390
|
* to kick people under the new limits, `chill_other` should be called.
|
|
@@ -7240,6 +7160,56 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7240
7160
|
**/
|
|
7241
7161
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
7242
7162
|
};
|
|
7163
|
+
voterBagsList: {
|
|
7164
|
+
/**
|
|
7165
|
+
* Move the caller's Id directly in front of `lighter`.
|
|
7166
|
+
*
|
|
7167
|
+
* The dispatch origin for this call must be _Signed_ and can only be called by the Id of
|
|
7168
|
+
* the account going in front of `lighter`.
|
|
7169
|
+
*
|
|
7170
|
+
* Only works if
|
|
7171
|
+
* - both nodes are within the same bag,
|
|
7172
|
+
* - and `origin` has a greater `Score` than `lighter`.
|
|
7173
|
+
**/
|
|
7174
|
+
putInFrontOf: AugmentedSubmittable<(lighter: MultiAddress | {
|
|
7175
|
+
Id: any;
|
|
7176
|
+
} | {
|
|
7177
|
+
Index: any;
|
|
7178
|
+
} | {
|
|
7179
|
+
Raw: any;
|
|
7180
|
+
} | {
|
|
7181
|
+
Address32: any;
|
|
7182
|
+
} | {
|
|
7183
|
+
Address20: any;
|
|
7184
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
7185
|
+
/**
|
|
7186
|
+
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
|
7187
|
+
* changed its score that it should properly fall into a different bag than its current
|
|
7188
|
+
* one.
|
|
7189
|
+
*
|
|
7190
|
+
* Anyone can call this function about any potentially dislocated account.
|
|
7191
|
+
*
|
|
7192
|
+
* Will always update the stored score of `dislocated` to the correct score, based on
|
|
7193
|
+
* `ScoreProvider`.
|
|
7194
|
+
*
|
|
7195
|
+
* If `dislocated` does not exists, it returns an error.
|
|
7196
|
+
**/
|
|
7197
|
+
rebag: AugmentedSubmittable<(dislocated: MultiAddress | {
|
|
7198
|
+
Id: any;
|
|
7199
|
+
} | {
|
|
7200
|
+
Index: any;
|
|
7201
|
+
} | {
|
|
7202
|
+
Raw: any;
|
|
7203
|
+
} | {
|
|
7204
|
+
Address32: any;
|
|
7205
|
+
} | {
|
|
7206
|
+
Address20: any;
|
|
7207
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
7208
|
+
/**
|
|
7209
|
+
* Generic tx
|
|
7210
|
+
**/
|
|
7211
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
7212
|
+
};
|
|
7243
7213
|
whitelist: {
|
|
7244
7214
|
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Weight]>;
|
|
7245
7215
|
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|