@polkadot/api-augment 10.9.1 → 10.10.1
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 +82 -34
- package/kusama/errors.d.ts +150 -26
- package/kusama/events.d.ts +66 -19
- package/kusama/query.d.ts +206 -87
- package/kusama/runtime.d.ts +36 -4
- package/kusama/tx.d.ts +192 -53
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +15 -198
- package/polkadot/errors.d.ts +37 -340
- package/polkadot/events.d.ts +24 -376
- package/polkadot/query.d.ts +63 -272
- package/polkadot/runtime.d.ts +20 -3
- package/polkadot/tx.d.ts +62 -441
- package/substrate/consts.d.ts +118 -34
- package/substrate/errors.d.ts +303 -8
- package/substrate/events.d.ts +379 -25
- package/substrate/query.d.ts +160 -44
- package/substrate/runtime.d.ts +21 -1
- package/substrate/tx.d.ts +252 -29
package/substrate/consts.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
9
9
|
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
@@ -134,6 +134,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
134
134
|
* Max number of authorities allowed
|
|
135
135
|
**/
|
|
136
136
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
137
|
+
/**
|
|
138
|
+
* The maximum number of nominators for each validator.
|
|
139
|
+
**/
|
|
140
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
137
141
|
/**
|
|
138
142
|
* Generic const
|
|
139
143
|
**/
|
|
@@ -220,6 +224,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
220
224
|
**/
|
|
221
225
|
[key: string]: Codec;
|
|
222
226
|
};
|
|
227
|
+
broker: {
|
|
228
|
+
/**
|
|
229
|
+
* Maximum number of legacy leases.
|
|
230
|
+
**/
|
|
231
|
+
maxLeasedCores: u32 & AugmentedConst<ApiType>;
|
|
232
|
+
/**
|
|
233
|
+
* Maximum number of system cores.
|
|
234
|
+
**/
|
|
235
|
+
maxReservedCores: u32 & AugmentedConst<ApiType>;
|
|
236
|
+
/**
|
|
237
|
+
* Identifier from which the internal Pot is generated.
|
|
238
|
+
**/
|
|
239
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
240
|
+
/**
|
|
241
|
+
* Number of Relay-chain blocks per timeslice.
|
|
242
|
+
**/
|
|
243
|
+
timeslicePeriod: u32 & AugmentedConst<ApiType>;
|
|
244
|
+
/**
|
|
245
|
+
* Generic const
|
|
246
|
+
**/
|
|
247
|
+
[key: string]: Codec;
|
|
248
|
+
};
|
|
223
249
|
childBounties: {
|
|
224
250
|
/**
|
|
225
251
|
* Minimum value for a child-bounty.
|
|
@@ -235,6 +261,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
235
261
|
[key: string]: Codec;
|
|
236
262
|
};
|
|
237
263
|
contracts: {
|
|
264
|
+
/**
|
|
265
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
266
|
+
* Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
|
|
267
|
+
* protects the code from being removed. In order to prevent abuse these actions are
|
|
268
|
+
* protected with a percentage of the code deposit.
|
|
269
|
+
**/
|
|
270
|
+
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
|
|
238
271
|
/**
|
|
239
272
|
* Fallback value to limit the storage deposit if it's not being set by the caller.
|
|
240
273
|
**/
|
|
@@ -256,9 +289,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
256
289
|
**/
|
|
257
290
|
depositPerItem: u128 & AugmentedConst<ApiType>;
|
|
258
291
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
* a
|
|
292
|
+
* Type that bundles together all the runtime configurable interface types.
|
|
293
|
+
*
|
|
294
|
+
* This is not a real config. We just mention the type here as constant so that
|
|
295
|
+
* its type appears in the metadata. Only valid value is `()`.
|
|
296
|
+
**/
|
|
297
|
+
environment: PalletContractsEnvironment & AugmentedConst<ApiType>;
|
|
298
|
+
/**
|
|
299
|
+
* The maximum length of a contract code in bytes.
|
|
262
300
|
*
|
|
263
301
|
* The value should be chosen carefully taking into the account the overall memory limit
|
|
264
302
|
* your runtime has, as well as the [maximum allowed callstack
|
|
@@ -269,6 +307,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
269
307
|
* The maximum length of the debug buffer in bytes.
|
|
270
308
|
**/
|
|
271
309
|
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
|
|
310
|
+
/**
|
|
311
|
+
* The maximum number of delegate_dependencies that a contract can lock with
|
|
312
|
+
* [`chain_extension::Ext::add_delegate_dependency`].
|
|
313
|
+
**/
|
|
314
|
+
maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
|
|
272
315
|
/**
|
|
273
316
|
* The maximum allowable length in bytes for storage keys.
|
|
274
317
|
**/
|
|
@@ -411,16 +454,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
411
454
|
* "better" in the Unsigned phase.
|
|
412
455
|
**/
|
|
413
456
|
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
414
|
-
/**
|
|
415
|
-
* The maximum number of electable targets to put in the snapshot.
|
|
416
|
-
**/
|
|
417
|
-
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
|
418
|
-
/**
|
|
419
|
-
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
|
420
|
-
* are only over a single block, but once multi-block elections are introduced they will
|
|
421
|
-
* take place over multiple blocks.
|
|
422
|
-
**/
|
|
423
|
-
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
424
457
|
/**
|
|
425
458
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
426
459
|
* implementation.
|
|
@@ -574,6 +607,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
574
607
|
* Max Authorities in use
|
|
575
608
|
**/
|
|
576
609
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
610
|
+
/**
|
|
611
|
+
* The maximum number of nominators for each validator.
|
|
612
|
+
**/
|
|
613
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
577
614
|
/**
|
|
578
615
|
* The maximum number of entries to keep in the set id to session index mapping.
|
|
579
616
|
*
|
|
@@ -1075,6 +1112,45 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1075
1112
|
**/
|
|
1076
1113
|
[key: string]: Codec;
|
|
1077
1114
|
};
|
|
1115
|
+
safeMode: {
|
|
1116
|
+
/**
|
|
1117
|
+
* The amount that will be reserved upon calling [`Pallet::enter`].
|
|
1118
|
+
*
|
|
1119
|
+
* `None` disallows permissionlessly enabling the safe-mode and is a sane default.
|
|
1120
|
+
**/
|
|
1121
|
+
enterDepositAmount: Option<u128> & AugmentedConst<ApiType>;
|
|
1122
|
+
/**
|
|
1123
|
+
* For how many blocks the safe-mode will be entered by [`Pallet::enter`].
|
|
1124
|
+
**/
|
|
1125
|
+
enterDuration: u32 & AugmentedConst<ApiType>;
|
|
1126
|
+
/**
|
|
1127
|
+
* The amount that will be reserved upon calling [`Pallet::extend`].
|
|
1128
|
+
*
|
|
1129
|
+
* `None` disallows permissionlessly extending the safe-mode and is a sane default.
|
|
1130
|
+
**/
|
|
1131
|
+
extendDepositAmount: Option<u128> & AugmentedConst<ApiType>;
|
|
1132
|
+
/**
|
|
1133
|
+
* For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call.
|
|
1134
|
+
*
|
|
1135
|
+
* This does not impose a hard limit as the safe-mode can be extended multiple times.
|
|
1136
|
+
**/
|
|
1137
|
+
extendDuration: u32 & AugmentedConst<ApiType>;
|
|
1138
|
+
/**
|
|
1139
|
+
* The minimal duration a deposit will remain reserved after safe-mode is entered or
|
|
1140
|
+
* extended, unless [`Pallet::force_release_deposit`] is successfully called sooner.
|
|
1141
|
+
*
|
|
1142
|
+
* Every deposit is tied to a specific activation or extension, thus each deposit can be
|
|
1143
|
+
* released independently after the delay for it has passed.
|
|
1144
|
+
*
|
|
1145
|
+
* `None` disallows permissionlessly releasing the safe-mode deposits and is a sane
|
|
1146
|
+
* default.
|
|
1147
|
+
**/
|
|
1148
|
+
releaseDelay: Option<u32> & AugmentedConst<ApiType>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Generic const
|
|
1151
|
+
**/
|
|
1152
|
+
[key: string]: Codec;
|
|
1153
|
+
};
|
|
1078
1154
|
salary: {
|
|
1079
1155
|
/**
|
|
1080
1156
|
* The total budget per cycle.
|
|
@@ -1121,27 +1197,31 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1121
1197
|
[key: string]: Codec;
|
|
1122
1198
|
};
|
|
1123
1199
|
society: {
|
|
1124
|
-
/**
|
|
1125
|
-
* The minimum amount of a deposit required for a bid to be made.
|
|
1126
|
-
**/
|
|
1127
|
-
candidateDeposit: u128 & AugmentedConst<ApiType>;
|
|
1128
1200
|
/**
|
|
1129
1201
|
* The number of blocks between membership challenges.
|
|
1130
1202
|
**/
|
|
1131
1203
|
challengePeriod: u32 & AugmentedConst<ApiType>;
|
|
1132
1204
|
/**
|
|
1133
|
-
* The
|
|
1205
|
+
* The number of blocks on which new candidates can claim their membership and be the
|
|
1206
|
+
* named head.
|
|
1134
1207
|
**/
|
|
1135
|
-
|
|
1208
|
+
claimPeriod: u32 & AugmentedConst<ApiType>;
|
|
1209
|
+
/**
|
|
1210
|
+
* The maximum number of strikes before a member gets funds slashed.
|
|
1211
|
+
**/
|
|
1212
|
+
graceStrikes: u32 & AugmentedConst<ApiType>;
|
|
1213
|
+
/**
|
|
1214
|
+
* The maximum number of bids at once.
|
|
1215
|
+
**/
|
|
1216
|
+
maxBids: u32 & AugmentedConst<ApiType>;
|
|
1136
1217
|
/**
|
|
1137
1218
|
* The maximum duration of the payout lock.
|
|
1138
1219
|
**/
|
|
1139
1220
|
maxLockDuration: u32 & AugmentedConst<ApiType>;
|
|
1140
1221
|
/**
|
|
1141
|
-
* The number of
|
|
1142
|
-
* skeptic) before they become suspended.
|
|
1222
|
+
* The maximum number of payouts a member may have waiting unclaimed.
|
|
1143
1223
|
**/
|
|
1144
|
-
|
|
1224
|
+
maxPayouts: u32 & AugmentedConst<ApiType>;
|
|
1145
1225
|
/**
|
|
1146
1226
|
* The societies's pallet id
|
|
1147
1227
|
**/
|
|
@@ -1151,14 +1231,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1151
1231
|
**/
|
|
1152
1232
|
periodSpend: u128 & AugmentedConst<ApiType>;
|
|
1153
1233
|
/**
|
|
1154
|
-
* The number of blocks
|
|
1234
|
+
* The number of blocks on which new candidates should be voted on. Together with
|
|
1235
|
+
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
|
|
1155
1236
|
**/
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* The amount of the unpaid reward that gets deducted in the case that either a skeptic
|
|
1159
|
-
* doesn't vote or someone votes in the wrong way.
|
|
1160
|
-
**/
|
|
1161
|
-
wrongSideDeduction: u128 & AugmentedConst<ApiType>;
|
|
1237
|
+
votingPeriod: u32 & AugmentedConst<ApiType>;
|
|
1162
1238
|
/**
|
|
1163
1239
|
* Generic const
|
|
1164
1240
|
**/
|
|
@@ -1192,10 +1268,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1192
1268
|
* The test `reducing_history_depth_abrupt` shows this effect.
|
|
1193
1269
|
**/
|
|
1194
1270
|
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
1195
|
-
/**
|
|
1196
|
-
* Maximum number of nominations per nominator.
|
|
1197
|
-
**/
|
|
1198
|
-
maxNominations: u32 & AugmentedConst<ApiType>;
|
|
1199
1271
|
/**
|
|
1200
1272
|
* The maximum number of nominators rewarded for each validator.
|
|
1201
1273
|
*
|
|
@@ -1444,6 +1516,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1444
1516
|
**/
|
|
1445
1517
|
[key: string]: Codec;
|
|
1446
1518
|
};
|
|
1519
|
+
txPause: {
|
|
1520
|
+
/**
|
|
1521
|
+
* Maximum length for pallet name and call name SCALE encoded string names.
|
|
1522
|
+
*
|
|
1523
|
+
* TOO LONG NAMES WILL BE TREATED AS PAUSED.
|
|
1524
|
+
**/
|
|
1525
|
+
maxNameLen: u32 & AugmentedConst<ApiType>;
|
|
1526
|
+
/**
|
|
1527
|
+
* Generic const
|
|
1528
|
+
**/
|
|
1529
|
+
[key: string]: Codec;
|
|
1530
|
+
};
|
|
1447
1531
|
uniques: {
|
|
1448
1532
|
/**
|
|
1449
1533
|
* The basic amount of funds that must be reserved when adding an attribute to an item.
|