@polkadot/api-augment 9.4.1 → 9.4.2

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.
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '9.4.1'
14
+ version: '9.4.2'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
@@ -719,6 +719,28 @@ declare module '@polkadot/api-base/types/consts' {
719
719
  * Number of eras that staked funds must remain bonded for.
720
720
  **/
721
721
  bondingDuration: u32 & AugmentedConst<ApiType>;
722
+ /**
723
+ * Number of eras to keep in history.
724
+ *
725
+ * Following information is kept for eras in `[current_era -
726
+ * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
727
+ * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
728
+ * `ErasTotalStake`, `ErasStartSessionIndex`,
729
+ * `StakingLedger.claimed_rewards`.
730
+ *
731
+ * Must be more than the number of eras delayed by session.
732
+ * I.e. active era must always be in history. I.e. `active_era >
733
+ * current_era - history_depth` must be guaranteed.
734
+ *
735
+ * If migrating an existing pallet from storage value to config value,
736
+ * this should be set to same value or greater as in storage.
737
+ *
738
+ * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
739
+ * item `StakingLedger.claimed_rewards`. Setting this value lower than
740
+ * the existing value can lead to inconsistencies and will need to be
741
+ * handled properly in a migration.
742
+ **/
743
+ historyDepth: u32 & AugmentedConst<ApiType>;
722
744
  /**
723
745
  * Maximum number of nominations per nominator.
724
746
  **/
@@ -1674,6 +1674,10 @@ declare module '@polkadot/api-base/types/errors' {
1674
1674
  * A nomination target was supplied that was blocked or otherwise not a validator.
1675
1675
  **/
1676
1676
  BadTarget: AugmentedError<ApiType>;
1677
+ /**
1678
+ * Some bound is not met.
1679
+ **/
1680
+ BoundNotMet: AugmentedError<ApiType>;
1677
1681
  /**
1678
1682
  * The user has enough bond and thus cannot be chilled forcefully by an external person.
1679
1683
  **/
@@ -1143,16 +1143,6 @@ declare module '@polkadot/api-base/types/events' {
1143
1143
  proxy: AccountId32;
1144
1144
  callHash: H256;
1145
1145
  }>;
1146
- /**
1147
- * Anonymous account has been created by new proxy with given
1148
- * disambiguation index and proxy type.
1149
- **/
1150
- AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16], {
1151
- anonymous: AccountId32;
1152
- who: AccountId32;
1153
- proxyType: KusamaRuntimeProxyType;
1154
- disambiguationIndex: u16;
1155
- }>;
1156
1146
  /**
1157
1147
  * A proxy was added.
1158
1148
  **/
@@ -1177,6 +1167,16 @@ declare module '@polkadot/api-base/types/events' {
1177
1167
  proxyType: KusamaRuntimeProxyType;
1178
1168
  delay: u32;
1179
1169
  }>;
1170
+ /**
1171
+ * A pure account has been created by new proxy with given
1172
+ * disambiguation index and proxy type.
1173
+ **/
1174
+ PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16], {
1175
+ pure: AccountId32;
1176
+ who: AccountId32;
1177
+ proxyType: KusamaRuntimeProxyType;
1178
+ disambiguationIndex: u16;
1179
+ }>;
1180
1180
  /**
1181
1181
  * Generic event
1182
1182
  **/
@@ -1470,8 +1470,8 @@ declare module '@polkadot/api-base/types/events' {
1470
1470
  **/
1471
1471
  Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
1472
1472
  /**
1473
- * One validator (and its nominators) has been slashed by the given amount.
1474
- * \[validator, amount\]
1473
+ * One staker (and potentially its nominators) has been slashed by the given amount.
1474
+ * \[staker, amount\]
1475
1475
  **/
1476
1476
  Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
1477
1477
  /**
package/kusama/query.d.ts CHANGED
@@ -1594,16 +1594,6 @@ declare module '@polkadot/api-base/types/storage' {
1594
1594
  * Mode of era forcing.
1595
1595
  **/
1596
1596
  forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []> & QueryableStorageEntry<ApiType, []>;
1597
- /**
1598
- * Number of eras to keep in history.
1599
- *
1600
- * Information is kept for eras in `[current_era - history_depth; current_era]`.
1601
- *
1602
- * Must be more than the number of eras delayed by session otherwise. I.e. active era must
1603
- * always be in history. I.e. `active_era > current_era - history_depth` must be
1604
- * guaranteed.
1605
- **/
1606
- historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1607
1597
  /**
1608
1598
  * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
1609
1599
  * easy to initialize and the performance hit is minimal (we expect no more than four
package/kusama/tx.d.ts CHANGED
@@ -3063,10 +3063,6 @@ declare module '@polkadot/api-base/types/submittable' {
3063
3063
  * - `proxy_type`: The permissions allowed for this proxy account.
3064
3064
  * - `delay`: The announcement period required of the initial proxy. Will generally be
3065
3065
  * zero.
3066
- *
3067
- * # <weight>
3068
- * Weight is a function of the number of proxies the user has (P).
3069
- * # </weight>
3070
3066
  **/
3071
3067
  addProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3072
3068
  Id: any;
@@ -3095,12 +3091,6 @@ declare module '@polkadot/api-base/types/submittable' {
3095
3091
  * Parameters:
3096
3092
  * - `real`: The account that the proxy will make a call on behalf of.
3097
3093
  * - `call_hash`: The hash of the call to be made by the `real` account.
3098
- *
3099
- * # <weight>
3100
- * Weight is a function of:
3101
- * - A: the number of announcements made.
3102
- * - P: the number of proxies the user has.
3103
- * # </weight>
3104
3094
  **/
3105
3095
  announce: AugmentedSubmittable<(real: MultiAddress | {
3106
3096
  Id: any;
@@ -3132,36 +3122,27 @@ declare module '@polkadot/api-base/types/submittable' {
3132
3122
  * same sender, with the same parameters.
3133
3123
  *
3134
3124
  * Fails if there are insufficient funds to pay for deposit.
3135
- *
3136
- * # <weight>
3137
- * Weight is a function of the number of proxies the user has (P).
3138
- * # </weight>
3139
- * TODO: Might be over counting 1 read
3140
3125
  **/
3141
- anonymous: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>;
3126
+ createPure: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>;
3142
3127
  /**
3143
- * Removes a previously spawned anonymous proxy.
3128
+ * Removes a previously spawned pure proxy.
3144
3129
  *
3145
3130
  * WARNING: **All access to this account will be lost.** Any funds held in it will be
3146
3131
  * inaccessible.
3147
3132
  *
3148
3133
  * Requires a `Signed` origin, and the sender account must have been created by a call to
3149
- * `anonymous` with corresponding parameters.
3150
- *
3151
- * - `spawner`: The account that originally called `anonymous` to create this account.
3152
- * - `index`: The disambiguation index originally passed to `anonymous`. Probably `0`.
3153
- * - `proxy_type`: The proxy type originally passed to `anonymous`.
3154
- * - `height`: The height of the chain when the call to `anonymous` was processed.
3155
- * - `ext_index`: The extrinsic index in which the call to `anonymous` was processed.
3134
+ * `pure` with corresponding parameters.
3156
3135
  *
3157
- * Fails with `NoPermission` in case the caller is not a previously created anonymous
3158
- * account whose `anonymous` call has corresponding parameters.
3136
+ * - `spawner`: The account that originally called `pure` to create this account.
3137
+ * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
3138
+ * - `proxy_type`: The proxy type originally passed to `pure`.
3139
+ * - `height`: The height of the chain when the call to `pure` was processed.
3140
+ * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
3159
3141
  *
3160
- * # <weight>
3161
- * Weight is a function of the number of proxies the user has (P).
3162
- * # </weight>
3142
+ * Fails with `NoPermission` in case the caller is not a previously created pure
3143
+ * account whose `pure` call has corresponding parameters.
3163
3144
  **/
3164
- killAnonymous: AugmentedSubmittable<(spawner: MultiAddress | {
3145
+ killPure: AugmentedSubmittable<(spawner: MultiAddress | {
3165
3146
  Id: any;
3166
3147
  } | {
3167
3148
  Index: any;
@@ -3184,10 +3165,6 @@ declare module '@polkadot/api-base/types/submittable' {
3184
3165
  * - `real`: The account that the proxy will make a call on behalf of.
3185
3166
  * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
3186
3167
  * - `call`: The call to be made by the `real` account.
3187
- *
3188
- * # <weight>
3189
- * Weight is a function of the number of proxies the user has (P).
3190
- * # </weight>
3191
3168
  **/
3192
3169
  proxy: AugmentedSubmittable<(real: MultiAddress | {
3193
3170
  Id: any;
@@ -3212,12 +3189,6 @@ declare module '@polkadot/api-base/types/submittable' {
3212
3189
  * - `real`: The account that the proxy will make a call on behalf of.
3213
3190
  * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
3214
3191
  * - `call`: The call to be made by the `real` account.
3215
- *
3216
- * # <weight>
3217
- * Weight is a function of:
3218
- * - A: the number of announcements made.
3219
- * - P: the number of proxies the user has.
3220
- * # </weight>
3221
3192
  **/
3222
3193
  proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | {
3223
3194
  Id: any;
@@ -3251,12 +3222,6 @@ declare module '@polkadot/api-base/types/submittable' {
3251
3222
  * Parameters:
3252
3223
  * - `delegate`: The account that previously announced the call.
3253
3224
  * - `call_hash`: The hash of the call to be made.
3254
- *
3255
- * # <weight>
3256
- * Weight is a function of:
3257
- * - A: the number of announcements made.
3258
- * - P: the number of proxies the user has.
3259
- * # </weight>
3260
3225
  **/
3261
3226
  rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | {
3262
3227
  Id: any;
@@ -3280,12 +3245,6 @@ declare module '@polkadot/api-base/types/submittable' {
3280
3245
  * Parameters:
3281
3246
  * - `real`: The account that the proxy will make a call on behalf of.
3282
3247
  * - `call_hash`: The hash of the call to be made by the `real` account.
3283
- *
3284
- * # <weight>
3285
- * Weight is a function of:
3286
- * - A: the number of announcements made.
3287
- * - P: the number of proxies the user has.
3288
- * # </weight>
3289
3248
  **/
3290
3249
  removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | {
3291
3250
  Id: any;
@@ -3303,12 +3262,8 @@ declare module '@polkadot/api-base/types/submittable' {
3303
3262
  *
3304
3263
  * The dispatch origin for this call must be _Signed_.
3305
3264
  *
3306
- * WARNING: This may be called on accounts created by `anonymous`, however if done, then
3265
+ * WARNING: This may be called on accounts created by `pure`, however if done, then
3307
3266
  * the unreserved fees will be inaccessible. **All access to this account will be lost.**
3308
- *
3309
- * # <weight>
3310
- * Weight is a function of the number of proxies the user has (P).
3311
- * # </weight>
3312
3267
  **/
3313
3268
  removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3314
3269
  /**
@@ -3319,10 +3274,6 @@ declare module '@polkadot/api-base/types/submittable' {
3319
3274
  * Parameters:
3320
3275
  * - `proxy`: The account that the `caller` would like to remove as a proxy.
3321
3276
  * - `proxy_type`: The permissions currently enabled for the removed proxy account.
3322
- *
3323
- * # <weight>
3324
- * Weight is a function of the number of proxies the user has (P).
3325
- * # </weight>
3326
3277
  **/
3327
3278
  removeProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3328
3279
  Id: any;
@@ -4460,31 +4411,6 @@ declare module '@polkadot/api-base/types/submittable' {
4460
4411
  } | {
4461
4412
  Address20: any;
4462
4413
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
4463
- /**
4464
- * Set `HistoryDepth` value. This function will delete any history information
4465
- * when `HistoryDepth` is reduced.
4466
- *
4467
- * Parameters:
4468
- * - `new_history_depth`: The new history depth you would like to set.
4469
- * - `era_items_deleted`: The number of items that will be deleted by this dispatch. This
4470
- * should report all the storage items that will be deleted by clearing old era history.
4471
- * Needed to report an accurate weight for the dispatch. Trusted by `Root` to report an
4472
- * accurate number.
4473
- *
4474
- * Origin must be root.
4475
- *
4476
- * # <weight>
4477
- * - E: Number of history depths removed, i.e. 10 -> 7 = 3
4478
- * - Weight: O(E)
4479
- * - DB Weight:
4480
- * - Reads: Current Era, History Depth
4481
- * - Writes: History Depth
4482
- * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
4483
- * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,
4484
- * ErasStartSessionIndex
4485
- * # </weight>
4486
- **/
4487
- setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<u32> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
4488
4414
  /**
4489
4415
  * Set the validators who cannot be slashed (if any).
4490
4416
  *
@@ -4534,7 +4460,7 @@ declare module '@polkadot/api-base/types/submittable' {
4534
4460
  * * `min_commission`: The minimum amount of commission that each validators must maintain.
4535
4461
  * This is checked only upon calling `validate`. Existing validators are not affected.
4536
4462
  *
4537
- * Origin must be Root to call this function.
4463
+ * RuntimeOrigin must be Root to call this function.
4538
4464
  *
4539
4465
  * NOTE: Existing nominators and validators will not be affected by this update.
4540
4466
  * to kick people under the new limits, `chill_other` should be called.
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.4.1",
23
+ "version": "9.4.2",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -186,11 +186,11 @@
186
186
  },
187
187
  "dependencies": {
188
188
  "@babel/runtime": "^7.19.0",
189
- "@polkadot/api-base": "9.4.1",
190
- "@polkadot/rpc-augment": "9.4.1",
191
- "@polkadot/types": "9.4.1",
192
- "@polkadot/types-augment": "9.4.1",
193
- "@polkadot/types-codec": "9.4.1",
194
- "@polkadot/util": "^10.1.8"
189
+ "@polkadot/api-base": "9.4.2",
190
+ "@polkadot/rpc-augment": "9.4.2",
191
+ "@polkadot/types": "9.4.2",
192
+ "@polkadot/types-augment": "9.4.2",
193
+ "@polkadot/types-codec": "9.4.2",
194
+ "@polkadot/util": "^10.1.9"
195
195
  }
196
196
  }
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '9.4.1'
8
+ version: '9.4.2'
9
9
  };
@@ -586,6 +586,28 @@ declare module '@polkadot/api-base/types/consts' {
586
586
  * Number of eras that staked funds must remain bonded for.
587
587
  **/
588
588
  bondingDuration: u32 & AugmentedConst<ApiType>;
589
+ /**
590
+ * Number of eras to keep in history.
591
+ *
592
+ * Following information is kept for eras in `[current_era -
593
+ * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
594
+ * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
595
+ * `ErasTotalStake`, `ErasStartSessionIndex`,
596
+ * `StakingLedger.claimed_rewards`.
597
+ *
598
+ * Must be more than the number of eras delayed by session.
599
+ * I.e. active era must always be in history. I.e. `active_era >
600
+ * current_era - history_depth` must be guaranteed.
601
+ *
602
+ * If migrating an existing pallet from storage value to config value,
603
+ * this should be set to same value or greater as in storage.
604
+ *
605
+ * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
606
+ * item `StakingLedger.claimed_rewards`. Setting this value lower than
607
+ * the existing value can lead to inconsistencies and will need to be
608
+ * handled properly in a migration.
609
+ **/
610
+ historyDepth: u32 & AugmentedConst<ApiType>;
589
611
  /**
590
612
  * Maximum number of nominations per nominator.
591
613
  **/
@@ -1487,6 +1487,10 @@ declare module '@polkadot/api-base/types/errors' {
1487
1487
  * A nomination target was supplied that was blocked or otherwise not a validator.
1488
1488
  **/
1489
1489
  BadTarget: AugmentedError<ApiType>;
1490
+ /**
1491
+ * Some bound is not met.
1492
+ **/
1493
+ BoundNotMet: AugmentedError<ApiType>;
1490
1494
  /**
1491
1495
  * The user has enough bond and thus cannot be chilled forcefully by an external person.
1492
1496
  **/
@@ -1103,16 +1103,6 @@ declare module '@polkadot/api-base/types/events' {
1103
1103
  proxy: AccountId32;
1104
1104
  callHash: H256;
1105
1105
  }>;
1106
- /**
1107
- * Anonymous account has been created by new proxy with given
1108
- * disambiguation index and proxy type.
1109
- **/
1110
- AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: PolkadotRuntimeProxyType, disambiguationIndex: u16], {
1111
- anonymous: AccountId32;
1112
- who: AccountId32;
1113
- proxyType: PolkadotRuntimeProxyType;
1114
- disambiguationIndex: u16;
1115
- }>;
1116
1106
  /**
1117
1107
  * A proxy was added.
1118
1108
  **/
@@ -1137,6 +1127,16 @@ declare module '@polkadot/api-base/types/events' {
1137
1127
  proxyType: PolkadotRuntimeProxyType;
1138
1128
  delay: u32;
1139
1129
  }>;
1130
+ /**
1131
+ * A pure account has been created by new proxy with given
1132
+ * disambiguation index and proxy type.
1133
+ **/
1134
+ PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: PolkadotRuntimeProxyType, disambiguationIndex: u16], {
1135
+ pure: AccountId32;
1136
+ who: AccountId32;
1137
+ proxyType: PolkadotRuntimeProxyType;
1138
+ disambiguationIndex: u16;
1139
+ }>;
1140
1140
  /**
1141
1141
  * Generic event
1142
1142
  **/
@@ -1270,8 +1270,8 @@ declare module '@polkadot/api-base/types/events' {
1270
1270
  **/
1271
1271
  Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
1272
1272
  /**
1273
- * One validator (and its nominators) has been slashed by the given amount.
1274
- * \[validator, amount\]
1273
+ * One staker (and potentially its nominators) has been slashed by the given amount.
1274
+ * \[staker, amount\]
1275
1275
  **/
1276
1276
  Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
1277
1277
  /**
@@ -1474,16 +1474,6 @@ declare module '@polkadot/api-base/types/storage' {
1474
1474
  * Mode of era forcing.
1475
1475
  **/
1476
1476
  forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []> & QueryableStorageEntry<ApiType, []>;
1477
- /**
1478
- * Number of eras to keep in history.
1479
- *
1480
- * Information is kept for eras in `[current_era - history_depth; current_era]`.
1481
- *
1482
- * Must be more than the number of eras delayed by session otherwise. I.e. active era must
1483
- * always be in history. I.e. `active_era > current_era - history_depth` must be
1484
- * guaranteed.
1485
- **/
1486
- historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1487
1477
  /**
1488
1478
  * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
1489
1479
  * easy to initialize and the performance hit is minimal (we expect no more than four
package/polkadot/tx.d.ts CHANGED
@@ -3012,10 +3012,6 @@ declare module '@polkadot/api-base/types/submittable' {
3012
3012
  * - `proxy_type`: The permissions allowed for this proxy account.
3013
3013
  * - `delay`: The announcement period required of the initial proxy. Will generally be
3014
3014
  * zero.
3015
- *
3016
- * # <weight>
3017
- * Weight is a function of the number of proxies the user has (P).
3018
- * # </weight>
3019
3015
  **/
3020
3016
  addProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3021
3017
  Id: any;
@@ -3044,12 +3040,6 @@ declare module '@polkadot/api-base/types/submittable' {
3044
3040
  * Parameters:
3045
3041
  * - `real`: The account that the proxy will make a call on behalf of.
3046
3042
  * - `call_hash`: The hash of the call to be made by the `real` account.
3047
- *
3048
- * # <weight>
3049
- * Weight is a function of:
3050
- * - A: the number of announcements made.
3051
- * - P: the number of proxies the user has.
3052
- * # </weight>
3053
3043
  **/
3054
3044
  announce: AugmentedSubmittable<(real: MultiAddress | {
3055
3045
  Id: any;
@@ -3081,36 +3071,27 @@ declare module '@polkadot/api-base/types/submittable' {
3081
3071
  * same sender, with the same parameters.
3082
3072
  *
3083
3073
  * Fails if there are insufficient funds to pay for deposit.
3084
- *
3085
- * # <weight>
3086
- * Weight is a function of the number of proxies the user has (P).
3087
- * # </weight>
3088
- * TODO: Might be over counting 1 read
3089
3074
  **/
3090
- anonymous: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
3075
+ createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
3091
3076
  /**
3092
- * Removes a previously spawned anonymous proxy.
3077
+ * Removes a previously spawned pure proxy.
3093
3078
  *
3094
3079
  * WARNING: **All access to this account will be lost.** Any funds held in it will be
3095
3080
  * inaccessible.
3096
3081
  *
3097
3082
  * Requires a `Signed` origin, and the sender account must have been created by a call to
3098
- * `anonymous` with corresponding parameters.
3099
- *
3100
- * - `spawner`: The account that originally called `anonymous` to create this account.
3101
- * - `index`: The disambiguation index originally passed to `anonymous`. Probably `0`.
3102
- * - `proxy_type`: The proxy type originally passed to `anonymous`.
3103
- * - `height`: The height of the chain when the call to `anonymous` was processed.
3104
- * - `ext_index`: The extrinsic index in which the call to `anonymous` was processed.
3083
+ * `pure` with corresponding parameters.
3105
3084
  *
3106
- * Fails with `NoPermission` in case the caller is not a previously created anonymous
3107
- * account whose `anonymous` call has corresponding parameters.
3085
+ * - `spawner`: The account that originally called `pure` to create this account.
3086
+ * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
3087
+ * - `proxy_type`: The proxy type originally passed to `pure`.
3088
+ * - `height`: The height of the chain when the call to `pure` was processed.
3089
+ * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
3108
3090
  *
3109
- * # <weight>
3110
- * Weight is a function of the number of proxies the user has (P).
3111
- * # </weight>
3091
+ * Fails with `NoPermission` in case the caller is not a previously created pure
3092
+ * account whose `pure` call has corresponding parameters.
3112
3093
  **/
3113
- killAnonymous: AugmentedSubmittable<(spawner: MultiAddress | {
3094
+ killPure: AugmentedSubmittable<(spawner: MultiAddress | {
3114
3095
  Id: any;
3115
3096
  } | {
3116
3097
  Index: any;
@@ -3133,10 +3114,6 @@ declare module '@polkadot/api-base/types/submittable' {
3133
3114
  * - `real`: The account that the proxy will make a call on behalf of.
3134
3115
  * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
3135
3116
  * - `call`: The call to be made by the `real` account.
3136
- *
3137
- * # <weight>
3138
- * Weight is a function of the number of proxies the user has (P).
3139
- * # </weight>
3140
3117
  **/
3141
3118
  proxy: AugmentedSubmittable<(real: MultiAddress | {
3142
3119
  Id: any;
@@ -3161,12 +3138,6 @@ declare module '@polkadot/api-base/types/submittable' {
3161
3138
  * - `real`: The account that the proxy will make a call on behalf of.
3162
3139
  * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
3163
3140
  * - `call`: The call to be made by the `real` account.
3164
- *
3165
- * # <weight>
3166
- * Weight is a function of:
3167
- * - A: the number of announcements made.
3168
- * - P: the number of proxies the user has.
3169
- * # </weight>
3170
3141
  **/
3171
3142
  proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | {
3172
3143
  Id: any;
@@ -3200,12 +3171,6 @@ declare module '@polkadot/api-base/types/submittable' {
3200
3171
  * Parameters:
3201
3172
  * - `delegate`: The account that previously announced the call.
3202
3173
  * - `call_hash`: The hash of the call to be made.
3203
- *
3204
- * # <weight>
3205
- * Weight is a function of:
3206
- * - A: the number of announcements made.
3207
- * - P: the number of proxies the user has.
3208
- * # </weight>
3209
3174
  **/
3210
3175
  rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | {
3211
3176
  Id: any;
@@ -3229,12 +3194,6 @@ declare module '@polkadot/api-base/types/submittable' {
3229
3194
  * Parameters:
3230
3195
  * - `real`: The account that the proxy will make a call on behalf of.
3231
3196
  * - `call_hash`: The hash of the call to be made by the `real` account.
3232
- *
3233
- * # <weight>
3234
- * Weight is a function of:
3235
- * - A: the number of announcements made.
3236
- * - P: the number of proxies the user has.
3237
- * # </weight>
3238
3197
  **/
3239
3198
  removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | {
3240
3199
  Id: any;
@@ -3252,12 +3211,8 @@ declare module '@polkadot/api-base/types/submittable' {
3252
3211
  *
3253
3212
  * The dispatch origin for this call must be _Signed_.
3254
3213
  *
3255
- * WARNING: This may be called on accounts created by `anonymous`, however if done, then
3214
+ * WARNING: This may be called on accounts created by `pure`, however if done, then
3256
3215
  * the unreserved fees will be inaccessible. **All access to this account will be lost.**
3257
- *
3258
- * # <weight>
3259
- * Weight is a function of the number of proxies the user has (P).
3260
- * # </weight>
3261
3216
  **/
3262
3217
  removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3263
3218
  /**
@@ -3268,10 +3223,6 @@ declare module '@polkadot/api-base/types/submittable' {
3268
3223
  * Parameters:
3269
3224
  * - `proxy`: The account that the `caller` would like to remove as a proxy.
3270
3225
  * - `proxy_type`: The permissions currently enabled for the removed proxy account.
3271
- *
3272
- * # <weight>
3273
- * Weight is a function of the number of proxies the user has (P).
3274
- * # </weight>
3275
3226
  **/
3276
3227
  removeProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3277
3228
  Id: any;
@@ -3816,31 +3767,6 @@ declare module '@polkadot/api-base/types/submittable' {
3816
3767
  } | {
3817
3768
  Address20: any;
3818
3769
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
3819
- /**
3820
- * Set `HistoryDepth` value. This function will delete any history information
3821
- * when `HistoryDepth` is reduced.
3822
- *
3823
- * Parameters:
3824
- * - `new_history_depth`: The new history depth you would like to set.
3825
- * - `era_items_deleted`: The number of items that will be deleted by this dispatch. This
3826
- * should report all the storage items that will be deleted by clearing old era history.
3827
- * Needed to report an accurate weight for the dispatch. Trusted by `Root` to report an
3828
- * accurate number.
3829
- *
3830
- * Origin must be root.
3831
- *
3832
- * # <weight>
3833
- * - E: Number of history depths removed, i.e. 10 -> 7 = 3
3834
- * - Weight: O(E)
3835
- * - DB Weight:
3836
- * - Reads: Current Era, History Depth
3837
- * - Writes: History Depth
3838
- * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
3839
- * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,
3840
- * ErasStartSessionIndex
3841
- * # </weight>
3842
- **/
3843
- setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<u32> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
3844
3770
  /**
3845
3771
  * Set the validators who cannot be slashed (if any).
3846
3772
  *
@@ -3890,7 +3816,7 @@ declare module '@polkadot/api-base/types/submittable' {
3890
3816
  * * `min_commission`: The minimum amount of commission that each validators must maintain.
3891
3817
  * This is checked only upon calling `validate`. Existing validators are not affected.
3892
3818
  *
3893
- * Origin must be Root to call this function.
3819
+ * RuntimeOrigin must be Root to call this function.
3894
3820
  *
3895
3821
  * NOTE: Existing nominators and validators will not be affected by this update.
3896
3822
  * to kick people under the new limits, `chill_other` should be called.