@dedot/chaintypes 0.96.0 → 0.98.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 +2 -2
- package/westend/consts.d.ts +37 -2
- package/westend/errors.d.ts +56 -0
- package/westend/events.d.ts +160 -0
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +158 -0
- package/westend/tx.d.ts +246 -8
- package/westend/types.d.ts +510 -25
- package/westend-asset-hub/consts.d.ts +569 -1
- package/westend-asset-hub/errors.d.ts +1159 -9
- package/westend-asset-hub/events.d.ts +1623 -21
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +1597 -6
- package/westend-asset-hub/runtime.d.ts +142 -0
- package/westend-asset-hub/tx.d.ts +10328 -5573
- package/westend-asset-hub/types.d.ts +15285 -8631
|
@@ -7,10 +7,11 @@ import type {
|
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
10
|
-
FrameSupportPalletId,
|
|
11
10
|
SpWeightsWeightV2Weight,
|
|
11
|
+
FrameSupportPalletId,
|
|
12
12
|
PalletNftsBitFlagsPalletFeature,
|
|
13
13
|
StagingXcmV5Location,
|
|
14
|
+
PalletReferendaTrackDetails,
|
|
14
15
|
} from './types.js';
|
|
15
16
|
|
|
16
17
|
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
@@ -133,6 +134,47 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
133
134
|
**/
|
|
134
135
|
[name: string]: any;
|
|
135
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* Pallet `Preimage`'s constants
|
|
139
|
+
**/
|
|
140
|
+
preimage: {
|
|
141
|
+
/**
|
|
142
|
+
* Generic pallet constant
|
|
143
|
+
**/
|
|
144
|
+
[name: string]: any;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Pallet `Scheduler`'s constants
|
|
148
|
+
**/
|
|
149
|
+
scheduler: {
|
|
150
|
+
/**
|
|
151
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
152
|
+
**/
|
|
153
|
+
maximumWeight: SpWeightsWeightV2Weight;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
157
|
+
*
|
|
158
|
+
* NOTE:
|
|
159
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
160
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
161
|
+
**/
|
|
162
|
+
maxScheduledPerBlock: number;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Generic pallet constant
|
|
166
|
+
**/
|
|
167
|
+
[name: string]: any;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Pallet `Sudo`'s constants
|
|
171
|
+
**/
|
|
172
|
+
sudo: {
|
|
173
|
+
/**
|
|
174
|
+
* Generic pallet constant
|
|
175
|
+
**/
|
|
176
|
+
[name: string]: any;
|
|
177
|
+
};
|
|
136
178
|
/**
|
|
137
179
|
* Pallet `Balances`'s constants
|
|
138
180
|
**/
|
|
@@ -217,6 +259,21 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
217
259
|
**/
|
|
218
260
|
[name: string]: any;
|
|
219
261
|
};
|
|
262
|
+
/**
|
|
263
|
+
* Pallet `Vesting`'s constants
|
|
264
|
+
**/
|
|
265
|
+
vesting: {
|
|
266
|
+
/**
|
|
267
|
+
* The minimum amount transferred to call `vested_transfer`.
|
|
268
|
+
**/
|
|
269
|
+
minVestedTransfer: bigint;
|
|
270
|
+
maxVestingSchedules: number;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Generic pallet constant
|
|
274
|
+
**/
|
|
275
|
+
[name: string]: any;
|
|
276
|
+
};
|
|
220
277
|
/**
|
|
221
278
|
* Pallet `Authorship`'s constants
|
|
222
279
|
**/
|
|
@@ -522,6 +579,20 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
522
579
|
**/
|
|
523
580
|
[name: string]: any;
|
|
524
581
|
};
|
|
582
|
+
/**
|
|
583
|
+
* Pallet `Indices`'s constants
|
|
584
|
+
**/
|
|
585
|
+
indices: {
|
|
586
|
+
/**
|
|
587
|
+
* The deposit needed for reserving an index.
|
|
588
|
+
**/
|
|
589
|
+
deposit: bigint;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Generic pallet constant
|
|
593
|
+
**/
|
|
594
|
+
[name: string]: any;
|
|
595
|
+
};
|
|
525
596
|
/**
|
|
526
597
|
* Pallet `Assets`'s constants
|
|
527
598
|
**/
|
|
@@ -1012,6 +1083,485 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1012
1083
|
**/
|
|
1013
1084
|
[name: string]: any;
|
|
1014
1085
|
};
|
|
1086
|
+
/**
|
|
1087
|
+
* Pallet `Staking`'s constants
|
|
1088
|
+
**/
|
|
1089
|
+
staking: {
|
|
1090
|
+
/**
|
|
1091
|
+
* Number of eras to keep in history.
|
|
1092
|
+
*
|
|
1093
|
+
* Following information is kept for eras in `[current_era -
|
|
1094
|
+
* HistoryDepth, current_era]`: `ErasValidatorPrefs`, `ErasValidatorReward`,
|
|
1095
|
+
* `ErasRewardPoints`, `ErasTotalStake`, `ErasClaimedRewards`,
|
|
1096
|
+
* `ErasStakersPaged`, `ErasStakersOverview`.
|
|
1097
|
+
*
|
|
1098
|
+
* Must be more than the number of eras delayed by session.
|
|
1099
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
1100
|
+
* current_era - history_depth` must be guaranteed.
|
|
1101
|
+
*
|
|
1102
|
+
* If migrating an existing pallet from storage value to config value,
|
|
1103
|
+
* this should be set to same value or greater as in storage.
|
|
1104
|
+
**/
|
|
1105
|
+
historyDepth: number;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Number of sessions per era.
|
|
1109
|
+
**/
|
|
1110
|
+
sessionsPerEra: number;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Number of sessions before the end of an era when the election for the next era will
|
|
1114
|
+
* start.
|
|
1115
|
+
*
|
|
1116
|
+
* - This determines how many sessions **before** the last session of the era the staking
|
|
1117
|
+
* election process should begin.
|
|
1118
|
+
* - The value is bounded between **1** (election starts at the beginning of the last
|
|
1119
|
+
* session) and `SessionsPerEra` (election starts at the beginning of the first session
|
|
1120
|
+
* of the era).
|
|
1121
|
+
*
|
|
1122
|
+
* ### Example:
|
|
1123
|
+
* - If `SessionsPerEra = 6` and `PlanningEraOffset = 1`, the election starts at the
|
|
1124
|
+
* beginning of session `6 - 1 = 5`.
|
|
1125
|
+
* - If `PlanningEraOffset = 6`, the election starts at the beginning of session `6 - 6 =
|
|
1126
|
+
* 0`, meaning it starts at the very beginning of the era.
|
|
1127
|
+
**/
|
|
1128
|
+
planningEraOffset: number;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Number of eras that staked funds must remain bonded for.
|
|
1132
|
+
**/
|
|
1133
|
+
bondingDuration: number;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Number of eras that slashes are deferred by, after computation.
|
|
1137
|
+
*
|
|
1138
|
+
* This should be less than the bonding duration. Set to 0 if slashes
|
|
1139
|
+
* should be applied immediately, without opportunity for intervention.
|
|
1140
|
+
**/
|
|
1141
|
+
slashDeferDuration: number;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* The maximum size of each `T::ExposurePage`.
|
|
1145
|
+
*
|
|
1146
|
+
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
|
|
1147
|
+
* nominators.
|
|
1148
|
+
*
|
|
1149
|
+
* For older non-paged exposure, a reward payout was restricted to the top
|
|
1150
|
+
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
|
|
1151
|
+
* nominator payout.
|
|
1152
|
+
*
|
|
1153
|
+
* Note: `MaxExposurePageSize` is used to bound `ErasClaimedRewards` and is unsafe to
|
|
1154
|
+
* reduce without handling it in a migration.
|
|
1155
|
+
**/
|
|
1156
|
+
maxExposurePageSize: number;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* The absolute maximum of winner validators this pallet should return.
|
|
1160
|
+
*
|
|
1161
|
+
* As this pallet supports multi-block election, the set of winner validators *per
|
|
1162
|
+
* election* is bounded by this type.
|
|
1163
|
+
**/
|
|
1164
|
+
maxValidatorSet: number;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
1168
|
+
* have. Effectively determines how many unique eras a staker may be
|
|
1169
|
+
* unbonding in.
|
|
1170
|
+
*
|
|
1171
|
+
* Note: `MaxUnlockingChunks` is used as the upper bound for the
|
|
1172
|
+
* `BoundedVec` item `StakingLedger.unlocking`. Setting this value
|
|
1173
|
+
* lower than the existing value can lead to inconsistencies in the
|
|
1174
|
+
* `StakingLedger` and will need to be handled properly in a runtime
|
|
1175
|
+
* migration. The test `reducing_max_unlocking_chunks_abrupt` shows
|
|
1176
|
+
* this effect.
|
|
1177
|
+
**/
|
|
1178
|
+
maxUnlockingChunks: number;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Maximum number of invulnerable validators.
|
|
1182
|
+
**/
|
|
1183
|
+
maxInvulnerables: number;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Maximum number of disabled validators.
|
|
1187
|
+
**/
|
|
1188
|
+
maxDisabledValidators: number;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Generic pallet constant
|
|
1192
|
+
**/
|
|
1193
|
+
[name: string]: any;
|
|
1194
|
+
};
|
|
1195
|
+
/**
|
|
1196
|
+
* Pallet `NominationPools`'s constants
|
|
1197
|
+
**/
|
|
1198
|
+
nominationPools: {
|
|
1199
|
+
/**
|
|
1200
|
+
* The nomination pool's pallet id.
|
|
1201
|
+
**/
|
|
1202
|
+
palletId: FrameSupportPalletId;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
1206
|
+
*
|
|
1207
|
+
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
1208
|
+
* ratio becomes disproportional.
|
|
1209
|
+
*
|
|
1210
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
1211
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
1212
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
1213
|
+
* the chain, in the absolute worse case.
|
|
1214
|
+
*
|
|
1215
|
+
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
1216
|
+
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
1217
|
+
**/
|
|
1218
|
+
maxPointsToBalance: number;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* The maximum number of simultaneous unbonding chunks that can exist per member.
|
|
1222
|
+
**/
|
|
1223
|
+
maxUnbonding: number;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* Generic pallet constant
|
|
1227
|
+
**/
|
|
1228
|
+
[name: string]: any;
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* Pallet `FastUnstake`'s constants
|
|
1232
|
+
**/
|
|
1233
|
+
fastUnstake: {
|
|
1234
|
+
/**
|
|
1235
|
+
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
|
1236
|
+
* the costs of resources on unsuccessful unstake.
|
|
1237
|
+
**/
|
|
1238
|
+
deposit: bigint;
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* Generic pallet constant
|
|
1242
|
+
**/
|
|
1243
|
+
[name: string]: any;
|
|
1244
|
+
};
|
|
1245
|
+
/**
|
|
1246
|
+
* Pallet `VoterList`'s constants
|
|
1247
|
+
**/
|
|
1248
|
+
voterList: {
|
|
1249
|
+
/**
|
|
1250
|
+
* The list of thresholds separating the various bags.
|
|
1251
|
+
*
|
|
1252
|
+
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
1253
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
1254
|
+
* is less than or equal to its upper threshold.
|
|
1255
|
+
*
|
|
1256
|
+
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
1257
|
+
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
1258
|
+
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
1259
|
+
*
|
|
1260
|
+
* # Expressing the constant
|
|
1261
|
+
*
|
|
1262
|
+
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
1263
|
+
* permitted.
|
|
1264
|
+
*
|
|
1265
|
+
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
1266
|
+
* specified within the bag. For any two threshold lists, if one ends with
|
|
1267
|
+
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
1268
|
+
* lists will behave identically.
|
|
1269
|
+
*
|
|
1270
|
+
* # Calculation
|
|
1271
|
+
*
|
|
1272
|
+
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
1273
|
+
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
1274
|
+
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
1275
|
+
*
|
|
1276
|
+
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
1277
|
+
*
|
|
1278
|
+
* # Examples
|
|
1279
|
+
*
|
|
1280
|
+
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
1281
|
+
* iteration is strictly in insertion order.
|
|
1282
|
+
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
1283
|
+
* the procedure given above, then the constant ratio is equal to 2.
|
|
1284
|
+
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
1285
|
+
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
1286
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
1287
|
+
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
1288
|
+
*
|
|
1289
|
+
* # Migration
|
|
1290
|
+
*
|
|
1291
|
+
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
1292
|
+
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
1293
|
+
**/
|
|
1294
|
+
bagThresholds: Array<bigint>;
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Generic pallet constant
|
|
1298
|
+
**/
|
|
1299
|
+
[name: string]: any;
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* Pallet `DelegatedStaking`'s constants
|
|
1303
|
+
**/
|
|
1304
|
+
delegatedStaking: {
|
|
1305
|
+
/**
|
|
1306
|
+
* Injected identifier for the pallet.
|
|
1307
|
+
**/
|
|
1308
|
+
palletId: FrameSupportPalletId;
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
|
1312
|
+
**/
|
|
1313
|
+
slashRewardFraction: Perbill;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* Generic pallet constant
|
|
1317
|
+
**/
|
|
1318
|
+
[name: string]: any;
|
|
1319
|
+
};
|
|
1320
|
+
/**
|
|
1321
|
+
* Pallet `StakingNextRcClient`'s constants
|
|
1322
|
+
**/
|
|
1323
|
+
stakingNextRcClient: {
|
|
1324
|
+
/**
|
|
1325
|
+
* Generic pallet constant
|
|
1326
|
+
**/
|
|
1327
|
+
[name: string]: any;
|
|
1328
|
+
};
|
|
1329
|
+
/**
|
|
1330
|
+
* Pallet `MultiBlock`'s constants
|
|
1331
|
+
**/
|
|
1332
|
+
multiBlock: {
|
|
1333
|
+
/**
|
|
1334
|
+
* Duration of the unsigned phase.
|
|
1335
|
+
**/
|
|
1336
|
+
unsignedPhase: number;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* Duration of the signed phase.
|
|
1340
|
+
**/
|
|
1341
|
+
signedPhase: number;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* Duration of the singed validation phase.
|
|
1345
|
+
*
|
|
1346
|
+
* The duration of this should not be less than `T::Pages`, and there is no point in it
|
|
1347
|
+
* being more than `SignedPhase::MaxSubmission::get() * T::Pages`. TODO: integrity test for
|
|
1348
|
+
* it.
|
|
1349
|
+
**/
|
|
1350
|
+
signedValidationPhase: number;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* The number of snapshot voters to fetch per block.
|
|
1354
|
+
**/
|
|
1355
|
+
voterSnapshotPerBlock: number;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* The number of snapshot targets to fetch per block.
|
|
1359
|
+
**/
|
|
1360
|
+
targetSnapshotPerBlock: number;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* The number of pages.
|
|
1364
|
+
*
|
|
1365
|
+
* The snapshot is created with this many keys in the storage map.
|
|
1366
|
+
*
|
|
1367
|
+
* The solutions may contain at MOST this many pages, but less pages are acceptable as
|
|
1368
|
+
* well.
|
|
1369
|
+
**/
|
|
1370
|
+
pages: number;
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Generic pallet constant
|
|
1374
|
+
**/
|
|
1375
|
+
[name: string]: any;
|
|
1376
|
+
};
|
|
1377
|
+
/**
|
|
1378
|
+
* Pallet `MultiBlockVerifier`'s constants
|
|
1379
|
+
**/
|
|
1380
|
+
multiBlockVerifier: {
|
|
1381
|
+
/**
|
|
1382
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
1383
|
+
* "better".
|
|
1384
|
+
**/
|
|
1385
|
+
solutionImprovementThreshold: Perbill;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Maximum number of backers, per winner, among all pages of an election.
|
|
1389
|
+
*
|
|
1390
|
+
* This can only be checked at the very final step of verification.
|
|
1391
|
+
*
|
|
1392
|
+
* NOTE: at the moment, we don't check this, and it is in place for future compatibility.
|
|
1393
|
+
**/
|
|
1394
|
+
maxBackersPerWinnerFinal: number;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Maximum number of backers, per winner, per page.
|
|
1398
|
+
**/
|
|
1399
|
+
maxBackersPerWinner: number;
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Maximum number of supports (aka. winners/validators/targets) that can be represented in
|
|
1403
|
+
* a page of results.
|
|
1404
|
+
**/
|
|
1405
|
+
maxWinnersPerPage: number;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Generic pallet constant
|
|
1409
|
+
**/
|
|
1410
|
+
[name: string]: any;
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* Pallet `MultiBlockUnsigned`'s constants
|
|
1414
|
+
**/
|
|
1415
|
+
multiBlockUnsigned: {
|
|
1416
|
+
/**
|
|
1417
|
+
* Generic pallet constant
|
|
1418
|
+
**/
|
|
1419
|
+
[name: string]: any;
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Pallet `MultiBlockSigned`'s constants
|
|
1423
|
+
**/
|
|
1424
|
+
multiBlockSigned: {
|
|
1425
|
+
/**
|
|
1426
|
+
* Generic pallet constant
|
|
1427
|
+
**/
|
|
1428
|
+
[name: string]: any;
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* Pallet `ConvictionVoting`'s constants
|
|
1432
|
+
**/
|
|
1433
|
+
convictionVoting: {
|
|
1434
|
+
/**
|
|
1435
|
+
* The maximum number of concurrent votes an account may have.
|
|
1436
|
+
*
|
|
1437
|
+
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
|
1438
|
+
* weight estimation: see `delegate` for instance.
|
|
1439
|
+
**/
|
|
1440
|
+
maxVotes: number;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* The minimum period of vote locking.
|
|
1444
|
+
*
|
|
1445
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
1446
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
1447
|
+
**/
|
|
1448
|
+
voteLockingPeriod: number;
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* Generic pallet constant
|
|
1452
|
+
**/
|
|
1453
|
+
[name: string]: any;
|
|
1454
|
+
};
|
|
1455
|
+
/**
|
|
1456
|
+
* Pallet `Referenda`'s constants
|
|
1457
|
+
**/
|
|
1458
|
+
referenda: {
|
|
1459
|
+
/**
|
|
1460
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
1461
|
+
**/
|
|
1462
|
+
submissionDeposit: bigint;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Maximum size of the referendum queue for a single track.
|
|
1466
|
+
**/
|
|
1467
|
+
maxQueued: number;
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* The number of blocks after submission that a referendum must begin being decided by.
|
|
1471
|
+
* Once this passes, then anyone may cancel the referendum.
|
|
1472
|
+
**/
|
|
1473
|
+
undecidingTimeout: number;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
1477
|
+
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
|
1478
|
+
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
1479
|
+
**/
|
|
1480
|
+
alarmInterval: number;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* A list of tracks.
|
|
1484
|
+
*
|
|
1485
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
1486
|
+
**/
|
|
1487
|
+
tracks: Array<[number, PalletReferendaTrackDetails]>;
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* Generic pallet constant
|
|
1491
|
+
**/
|
|
1492
|
+
[name: string]: any;
|
|
1493
|
+
};
|
|
1494
|
+
/**
|
|
1495
|
+
* Pallet `Origins`'s constants
|
|
1496
|
+
**/
|
|
1497
|
+
origins: {
|
|
1498
|
+
/**
|
|
1499
|
+
* Generic pallet constant
|
|
1500
|
+
**/
|
|
1501
|
+
[name: string]: any;
|
|
1502
|
+
};
|
|
1503
|
+
/**
|
|
1504
|
+
* Pallet `Whitelist`'s constants
|
|
1505
|
+
**/
|
|
1506
|
+
whitelist: {
|
|
1507
|
+
/**
|
|
1508
|
+
* Generic pallet constant
|
|
1509
|
+
**/
|
|
1510
|
+
[name: string]: any;
|
|
1511
|
+
};
|
|
1512
|
+
/**
|
|
1513
|
+
* Pallet `Treasury`'s constants
|
|
1514
|
+
**/
|
|
1515
|
+
treasury: {
|
|
1516
|
+
/**
|
|
1517
|
+
* Period between successive spends.
|
|
1518
|
+
**/
|
|
1519
|
+
spendPeriod: number;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
1523
|
+
**/
|
|
1524
|
+
burn: Permill;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
1528
|
+
**/
|
|
1529
|
+
palletId: FrameSupportPalletId;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
1533
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
1534
|
+
*
|
|
1535
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
1536
|
+
*
|
|
1537
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
1538
|
+
**/
|
|
1539
|
+
maxApprovals: number;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* The period during which an approved treasury spend has to be claimed.
|
|
1543
|
+
**/
|
|
1544
|
+
payoutPeriod: number;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Gets this pallet's derived pot account.
|
|
1548
|
+
**/
|
|
1549
|
+
potAccount: AccountId32;
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* Generic pallet constant
|
|
1553
|
+
**/
|
|
1554
|
+
[name: string]: any;
|
|
1555
|
+
};
|
|
1556
|
+
/**
|
|
1557
|
+
* Pallet `AssetRate`'s constants
|
|
1558
|
+
**/
|
|
1559
|
+
assetRate: {
|
|
1560
|
+
/**
|
|
1561
|
+
* Generic pallet constant
|
|
1562
|
+
**/
|
|
1563
|
+
[name: string]: any;
|
|
1564
|
+
};
|
|
1015
1565
|
/**
|
|
1016
1566
|
* Pallet `AssetConversionMigration`'s constants
|
|
1017
1567
|
**/
|
|
@@ -1021,4 +1571,22 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1021
1571
|
**/
|
|
1022
1572
|
[name: string]: any;
|
|
1023
1573
|
};
|
|
1574
|
+
/**
|
|
1575
|
+
* Pallet `AhOps`'s constants
|
|
1576
|
+
**/
|
|
1577
|
+
ahOps: {
|
|
1578
|
+
/**
|
|
1579
|
+
* Generic pallet constant
|
|
1580
|
+
**/
|
|
1581
|
+
[name: string]: any;
|
|
1582
|
+
};
|
|
1583
|
+
/**
|
|
1584
|
+
* Pallet `AhMigrator`'s constants
|
|
1585
|
+
**/
|
|
1586
|
+
ahMigrator: {
|
|
1587
|
+
/**
|
|
1588
|
+
* Generic pallet constant
|
|
1589
|
+
**/
|
|
1590
|
+
[name: string]: any;
|
|
1591
|
+
};
|
|
1024
1592
|
}
|