@dedot/chaintypes 0.152.0 → 0.153.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/events.d.ts +79 -5
- package/westend/index.d.ts +1 -1
- package/westend/types.d.ts +70 -23
- package/westend-asset-hub/consts.d.ts +14 -0
- package/westend-asset-hub/errors.d.ts +29 -9
- package/westend-asset-hub/events.d.ts +95 -12
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +27 -4
- package/westend-asset-hub/runtime.d.ts +17 -0
- package/westend-asset-hub/tx.d.ts +110 -26
- package/westend-asset-hub/types.d.ts +281 -102
- package/westend-people/consts.d.ts +27 -0
- package/westend-people/errors.d.ts +26 -12
- package/westend-people/events.d.ts +181 -3
- package/westend-people/index.d.ts +3 -1
- package/westend-people/query.d.ts +40 -2
- package/westend-people/runtime.d.ts +131 -31
- package/westend-people/tx.d.ts +156 -12
- package/westend-people/types.d.ts +1153 -783
- package/westend-people/view-functions.d.ts +34 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.153.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "a5be2eed5e86289203ebf5fd9a23b97fcf1d0025",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/westend/events.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import type { DispatchError, AccountId32, H256, Perbill, FixedBytes, Bytes, Resu
|
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemDispatchEventInfo,
|
|
7
7
|
FrameSupportTokensMiscBalanceStatus,
|
|
8
|
+
WestendRuntimeRuntimeHoldReason,
|
|
9
|
+
PalletBalancesUnexpectedKind,
|
|
8
10
|
PalletStakingRewardDestination,
|
|
9
11
|
PalletStakingValidatorPrefs,
|
|
10
12
|
PalletStakingForcing,
|
|
@@ -218,11 +220,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
218
220
|
**/
|
|
219
221
|
Minted: GenericPalletEvent<Rv, 'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
|
|
220
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Some credit was balanced and added to the TotalIssuance.
|
|
225
|
+
**/
|
|
226
|
+
MintedCredit: GenericPalletEvent<Rv, 'Balances', 'MintedCredit', { amount: bigint }>;
|
|
227
|
+
|
|
221
228
|
/**
|
|
222
229
|
* Some amount was burned from an account.
|
|
223
230
|
**/
|
|
224
231
|
Burned: GenericPalletEvent<Rv, 'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
|
|
225
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Some debt has been dropped from the Total Issuance.
|
|
235
|
+
**/
|
|
236
|
+
BurnedDebt: GenericPalletEvent<Rv, 'Balances', 'BurnedDebt', { amount: bigint }>;
|
|
237
|
+
|
|
226
238
|
/**
|
|
227
239
|
* Some amount was suspended from an account (it can be restored later).
|
|
228
240
|
**/
|
|
@@ -273,6 +285,61 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
273
285
|
**/
|
|
274
286
|
TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
|
|
275
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Some balance was placed on hold.
|
|
290
|
+
**/
|
|
291
|
+
Held: GenericPalletEvent<
|
|
292
|
+
Rv,
|
|
293
|
+
'Balances',
|
|
294
|
+
'Held',
|
|
295
|
+
{ reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
296
|
+
>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Held balance was burned from an account.
|
|
300
|
+
**/
|
|
301
|
+
BurnedHeld: GenericPalletEvent<
|
|
302
|
+
Rv,
|
|
303
|
+
'Balances',
|
|
304
|
+
'BurnedHeld',
|
|
305
|
+
{ reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
306
|
+
>;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* A transfer of `amount` on hold from `source` to `dest` was initiated.
|
|
310
|
+
**/
|
|
311
|
+
TransferOnHold: GenericPalletEvent<
|
|
312
|
+
Rv,
|
|
313
|
+
'Balances',
|
|
314
|
+
'TransferOnHold',
|
|
315
|
+
{ reason: WestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint }
|
|
316
|
+
>;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The `transferred` balance is placed on hold at the `dest` account.
|
|
320
|
+
**/
|
|
321
|
+
TransferAndHold: GenericPalletEvent<
|
|
322
|
+
Rv,
|
|
323
|
+
'Balances',
|
|
324
|
+
'TransferAndHold',
|
|
325
|
+
{ reason: WestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint }
|
|
326
|
+
>;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Some balance was released from hold.
|
|
330
|
+
**/
|
|
331
|
+
Released: GenericPalletEvent<
|
|
332
|
+
Rv,
|
|
333
|
+
'Balances',
|
|
334
|
+
'Released',
|
|
335
|
+
{ reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
336
|
+
>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* An unexpected/defensive event was triggered.
|
|
340
|
+
**/
|
|
341
|
+
Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
|
|
342
|
+
|
|
276
343
|
/**
|
|
277
344
|
* Generic pallet event
|
|
278
345
|
**/
|
|
@@ -1096,7 +1163,14 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1096
1163
|
Rv,
|
|
1097
1164
|
'Proxy',
|
|
1098
1165
|
'PureCreated',
|
|
1099
|
-
{
|
|
1166
|
+
{
|
|
1167
|
+
pure: AccountId32;
|
|
1168
|
+
who: AccountId32;
|
|
1169
|
+
proxyType: WestendRuntimeProxyType;
|
|
1170
|
+
disambiguationIndex: number;
|
|
1171
|
+
at: number;
|
|
1172
|
+
extrinsicIndex: number;
|
|
1173
|
+
}
|
|
1100
1174
|
>;
|
|
1101
1175
|
|
|
1102
1176
|
/**
|
|
@@ -1600,12 +1674,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1600
1674
|
/**
|
|
1601
1675
|
* An account has delegated their vote to another account. \[who, target\]
|
|
1602
1676
|
**/
|
|
1603
|
-
Delegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Delegated', [AccountId32, AccountId32]>;
|
|
1677
|
+
Delegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Delegated', [AccountId32, AccountId32, number]>;
|
|
1604
1678
|
|
|
1605
1679
|
/**
|
|
1606
1680
|
* An \[account\] has cancelled a previous delegation operation.
|
|
1607
1681
|
**/
|
|
1608
|
-
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
1682
|
+
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', [AccountId32, number]>;
|
|
1609
1683
|
|
|
1610
1684
|
/**
|
|
1611
1685
|
* An account has voted
|
|
@@ -1614,7 +1688,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1614
1688
|
Rv,
|
|
1615
1689
|
'ConvictionVoting',
|
|
1616
1690
|
'Voted',
|
|
1617
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
1691
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
1618
1692
|
>;
|
|
1619
1693
|
|
|
1620
1694
|
/**
|
|
@@ -1624,7 +1698,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1624
1698
|
Rv,
|
|
1625
1699
|
'ConvictionVoting',
|
|
1626
1700
|
'VoteRemoved',
|
|
1627
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
1701
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
1628
1702
|
>;
|
|
1629
1703
|
|
|
1630
1704
|
/**
|
package/westend/index.d.ts
CHANGED
package/westend/types.d.ts
CHANGED
|
@@ -244,10 +244,18 @@ export type PalletBalancesEvent =
|
|
|
244
244
|
* Some amount was minted into an account.
|
|
245
245
|
**/
|
|
246
246
|
| { name: 'Minted'; data: { who: AccountId32; amount: bigint } }
|
|
247
|
+
/**
|
|
248
|
+
* Some credit was balanced and added to the TotalIssuance.
|
|
249
|
+
**/
|
|
250
|
+
| { name: 'MintedCredit'; data: { amount: bigint } }
|
|
247
251
|
/**
|
|
248
252
|
* Some amount was burned from an account.
|
|
249
253
|
**/
|
|
250
254
|
| { name: 'Burned'; data: { who: AccountId32; amount: bigint } }
|
|
255
|
+
/**
|
|
256
|
+
* Some debt has been dropped from the Total Issuance.
|
|
257
|
+
**/
|
|
258
|
+
| { name: 'BurnedDebt'; data: { amount: bigint } }
|
|
251
259
|
/**
|
|
252
260
|
* Some amount was suspended from an account (it can be restored later).
|
|
253
261
|
**/
|
|
@@ -287,10 +295,59 @@ export type PalletBalancesEvent =
|
|
|
287
295
|
/**
|
|
288
296
|
* The `TotalIssuance` was forcefully changed.
|
|
289
297
|
**/
|
|
290
|
-
| { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }
|
|
298
|
+
| { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }
|
|
299
|
+
/**
|
|
300
|
+
* Some balance was placed on hold.
|
|
301
|
+
**/
|
|
302
|
+
| { name: 'Held'; data: { reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint } }
|
|
303
|
+
/**
|
|
304
|
+
* Held balance was burned from an account.
|
|
305
|
+
**/
|
|
306
|
+
| { name: 'BurnedHeld'; data: { reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint } }
|
|
307
|
+
/**
|
|
308
|
+
* A transfer of `amount` on hold from `source` to `dest` was initiated.
|
|
309
|
+
**/
|
|
310
|
+
| {
|
|
311
|
+
name: 'TransferOnHold';
|
|
312
|
+
data: { reason: WestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint };
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* The `transferred` balance is placed on hold at the `dest` account.
|
|
316
|
+
**/
|
|
317
|
+
| {
|
|
318
|
+
name: 'TransferAndHold';
|
|
319
|
+
data: { reason: WestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint };
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Some balance was released from hold.
|
|
323
|
+
**/
|
|
324
|
+
| { name: 'Released'; data: { reason: WestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint } }
|
|
325
|
+
/**
|
|
326
|
+
* An unexpected/defensive event was triggered.
|
|
327
|
+
**/
|
|
328
|
+
| { name: 'Unexpected'; data: PalletBalancesUnexpectedKind };
|
|
291
329
|
|
|
292
330
|
export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved';
|
|
293
331
|
|
|
332
|
+
export type WestendRuntimeRuntimeHoldReason =
|
|
333
|
+
| { type: 'Staking'; value: PalletStakingPalletHoldReason }
|
|
334
|
+
| { type: 'Session'; value: PalletSessionHoldReason }
|
|
335
|
+
| { type: 'Preimage'; value: PalletPreimageHoldReason }
|
|
336
|
+
| { type: 'DelegatedStaking'; value: PalletDelegatedStakingHoldReason }
|
|
337
|
+
| { type: 'XcmPallet'; value: PalletXcmHoldReason };
|
|
338
|
+
|
|
339
|
+
export type PalletStakingPalletHoldReason = 'Staking';
|
|
340
|
+
|
|
341
|
+
export type PalletSessionHoldReason = 'Keys';
|
|
342
|
+
|
|
343
|
+
export type PalletPreimageHoldReason = 'Preimage';
|
|
344
|
+
|
|
345
|
+
export type PalletDelegatedStakingHoldReason = 'StakingDelegation';
|
|
346
|
+
|
|
347
|
+
export type PalletXcmHoldReason = 'AuthorizeAlias';
|
|
348
|
+
|
|
349
|
+
export type PalletBalancesUnexpectedKind = 'BalanceUpdated' | 'FailedToMutateAccount';
|
|
350
|
+
|
|
294
351
|
/**
|
|
295
352
|
* The `Event` enum of this pallet
|
|
296
353
|
**/
|
|
@@ -857,7 +914,14 @@ export type PalletProxyEvent =
|
|
|
857
914
|
**/
|
|
858
915
|
| {
|
|
859
916
|
name: 'PureCreated';
|
|
860
|
-
data: {
|
|
917
|
+
data: {
|
|
918
|
+
pure: AccountId32;
|
|
919
|
+
who: AccountId32;
|
|
920
|
+
proxyType: WestendRuntimeProxyType;
|
|
921
|
+
disambiguationIndex: number;
|
|
922
|
+
at: number;
|
|
923
|
+
extrinsicIndex: number;
|
|
924
|
+
};
|
|
861
925
|
}
|
|
862
926
|
/**
|
|
863
927
|
* A pure proxy was killed by its spawner.
|
|
@@ -1233,19 +1297,19 @@ export type PalletConvictionVotingEvent =
|
|
|
1233
1297
|
/**
|
|
1234
1298
|
* An account has delegated their vote to another account. \[who, target\]
|
|
1235
1299
|
**/
|
|
1236
|
-
| { name: 'Delegated'; data: [AccountId32, AccountId32] }
|
|
1300
|
+
| { name: 'Delegated'; data: [AccountId32, AccountId32, number] }
|
|
1237
1301
|
/**
|
|
1238
1302
|
* An \[account\] has cancelled a previous delegation operation.
|
|
1239
1303
|
**/
|
|
1240
|
-
| { name: 'Undelegated'; data: AccountId32 }
|
|
1304
|
+
| { name: 'Undelegated'; data: [AccountId32, number] }
|
|
1241
1305
|
/**
|
|
1242
1306
|
* An account has voted
|
|
1243
1307
|
**/
|
|
1244
|
-
| { name: 'Voted'; data: { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote } }
|
|
1308
|
+
| { name: 'Voted'; data: { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number } }
|
|
1245
1309
|
/**
|
|
1246
1310
|
* A vote has been removed
|
|
1247
1311
|
**/
|
|
1248
|
-
| { name: 'VoteRemoved'; data: { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote } }
|
|
1312
|
+
| { name: 'VoteRemoved'; data: { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number } }
|
|
1249
1313
|
/**
|
|
1250
1314
|
* The lockup period of a conviction vote expired, and the funds have been unlocked.
|
|
1251
1315
|
**/
|
|
@@ -13216,23 +13280,6 @@ export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
|
|
|
13216
13280
|
|
|
13217
13281
|
export type FrameSupportTokensMiscIdAmount = { id: WestendRuntimeRuntimeHoldReason; amount: bigint };
|
|
13218
13282
|
|
|
13219
|
-
export type WestendRuntimeRuntimeHoldReason =
|
|
13220
|
-
| { type: 'Staking'; value: PalletStakingPalletHoldReason }
|
|
13221
|
-
| { type: 'Session'; value: PalletSessionHoldReason }
|
|
13222
|
-
| { type: 'Preimage'; value: PalletPreimageHoldReason }
|
|
13223
|
-
| { type: 'DelegatedStaking'; value: PalletDelegatedStakingHoldReason }
|
|
13224
|
-
| { type: 'XcmPallet'; value: PalletXcmHoldReason };
|
|
13225
|
-
|
|
13226
|
-
export type PalletStakingPalletHoldReason = 'Staking';
|
|
13227
|
-
|
|
13228
|
-
export type PalletSessionHoldReason = 'Keys';
|
|
13229
|
-
|
|
13230
|
-
export type PalletPreimageHoldReason = 'Preimage';
|
|
13231
|
-
|
|
13232
|
-
export type PalletDelegatedStakingHoldReason = 'StakingDelegation';
|
|
13233
|
-
|
|
13234
|
-
export type PalletXcmHoldReason = 'AuthorizeAlias';
|
|
13235
|
-
|
|
13236
13283
|
export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = {
|
|
13237
13284
|
id: WestendRuntimeRuntimeFreezeReason;
|
|
13238
13285
|
amount: bigint;
|
|
@@ -1036,6 +1036,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1036
1036
|
**/
|
|
1037
1037
|
unsafeUnstableInterface: boolean;
|
|
1038
1038
|
|
|
1039
|
+
/**
|
|
1040
|
+
* Allow EVM bytecode to be uploaded and instantiated.
|
|
1041
|
+
**/
|
|
1042
|
+
allowEVMBytecode: boolean;
|
|
1043
|
+
|
|
1039
1044
|
/**
|
|
1040
1045
|
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
1041
1046
|
*
|
|
@@ -1215,6 +1220,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1215
1220
|
**/
|
|
1216
1221
|
maxEraDuration: bigint;
|
|
1217
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* Maximum number of storage items that can be pruned in a single call.
|
|
1225
|
+
*
|
|
1226
|
+
* This controls how many storage items can be deleted in each call to `prune_era_step`.
|
|
1227
|
+
* This should be set to a conservative value (e.g., 100-500 items) to ensure pruning
|
|
1228
|
+
* doesn't consume too much block space. The actual weight is determined by benchmarks.
|
|
1229
|
+
**/
|
|
1230
|
+
maxPruningItems: number;
|
|
1231
|
+
|
|
1218
1232
|
/**
|
|
1219
1233
|
* Generic pallet constant
|
|
1220
1234
|
**/
|
|
@@ -1939,7 +1939,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1939
1939
|
ContractTrapped: GenericPalletError<Rv>;
|
|
1940
1940
|
|
|
1941
1941
|
/**
|
|
1942
|
-
*
|
|
1942
|
+
* Event body or storage item exceeds [`limits::PAYLOAD_BYTES`].
|
|
1943
1943
|
**/
|
|
1944
1944
|
ValueTooLarge: GenericPalletError<Rv>;
|
|
1945
1945
|
|
|
@@ -2023,8 +2023,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2023
2023
|
BlobTooLarge: GenericPalletError<Rv>;
|
|
2024
2024
|
|
|
2025
2025
|
/**
|
|
2026
|
-
* The
|
|
2027
|
-
* [`limits::code::STATIC_MEMORY_BYTES`].
|
|
2026
|
+
* The contract declares too much memory (ro + rw + stack).
|
|
2028
2027
|
**/
|
|
2029
2028
|
StaticMemoryTooLarge: GenericPalletError<Rv>;
|
|
2030
2029
|
|
|
@@ -2083,11 +2082,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2083
2082
|
**/
|
|
2084
2083
|
BalanceConversionFailed: GenericPalletError<Rv>;
|
|
2085
2084
|
|
|
2086
|
-
/**
|
|
2087
|
-
* Failed to convert an EVM balance to a native balance.
|
|
2088
|
-
**/
|
|
2089
|
-
DecimalPrecisionLoss: GenericPalletError<Rv>;
|
|
2090
|
-
|
|
2091
2085
|
/**
|
|
2092
2086
|
* Immutable data can only be set during deploys and only be read during calls.
|
|
2093
2087
|
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
@@ -2117,10 +2111,20 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2117
2111
|
RefcountOverOrUnderflow: GenericPalletError<Rv>;
|
|
2118
2112
|
|
|
2119
2113
|
/**
|
|
2120
|
-
* Unsupported precompile address
|
|
2114
|
+
* Unsupported precompile address.
|
|
2121
2115
|
**/
|
|
2122
2116
|
UnsupportedPrecompileAddress: GenericPalletError<Rv>;
|
|
2123
2117
|
|
|
2118
|
+
/**
|
|
2119
|
+
* The calldata exceeds [`limits::CALLDATA_BYTES`].
|
|
2120
|
+
**/
|
|
2121
|
+
CallDataTooLarge: GenericPalletError<Rv>;
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* The return data exceeds [`limits::CALLDATA_BYTES`].
|
|
2125
|
+
**/
|
|
2126
|
+
ReturnDataTooLarge: GenericPalletError<Rv>;
|
|
2127
|
+
|
|
2124
2128
|
/**
|
|
2125
2129
|
* Generic pallet error
|
|
2126
2130
|
**/
|
|
@@ -2404,6 +2408,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2404
2408
|
**/
|
|
2405
2409
|
Restricted: GenericPalletError<Rv>;
|
|
2406
2410
|
|
|
2411
|
+
/**
|
|
2412
|
+
* Unapplied slashes in the recently concluded era is blocking this operation.
|
|
2413
|
+
* See `Call::apply_slash` to apply them.
|
|
2414
|
+
**/
|
|
2415
|
+
UnappliedSlashesInPreviousEra: GenericPalletError<Rv>;
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* The era is not eligible for pruning.
|
|
2419
|
+
**/
|
|
2420
|
+
EraNotPrunable: GenericPalletError<Rv>;
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* The slash has been cancelled and cannot be applied.
|
|
2424
|
+
**/
|
|
2425
|
+
CancelledSlash: GenericPalletError<Rv>;
|
|
2426
|
+
|
|
2407
2427
|
/**
|
|
2408
2428
|
* Generic pallet error
|
|
2409
2429
|
**/
|
|
@@ -17,6 +17,8 @@ import type {
|
|
|
17
17
|
FrameSystemDispatchEventInfo,
|
|
18
18
|
SpWeightsWeightV2Weight,
|
|
19
19
|
FrameSupportTokensMiscBalanceStatus,
|
|
20
|
+
AssetHubWestendRuntimeRuntimeHoldReason,
|
|
21
|
+
PalletBalancesUnexpectedKind,
|
|
20
22
|
StagingXcmV5Location,
|
|
21
23
|
StagingXcmV5TraitsOutcome,
|
|
22
24
|
StagingXcmV5Xcm,
|
|
@@ -56,7 +58,6 @@ import type {
|
|
|
56
58
|
SpRuntimeDispatchErrorWithPostInfo,
|
|
57
59
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
58
60
|
ParachainsCommonPayVersionedLocatableAccount,
|
|
59
|
-
AssetHubWestendRuntimeRuntimeHoldReason,
|
|
60
61
|
} from './types.js';
|
|
61
62
|
|
|
62
63
|
export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
|
|
@@ -562,11 +563,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
562
563
|
**/
|
|
563
564
|
Minted: GenericPalletEvent<Rv, 'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
|
|
564
565
|
|
|
566
|
+
/**
|
|
567
|
+
* Some credit was balanced and added to the TotalIssuance.
|
|
568
|
+
**/
|
|
569
|
+
MintedCredit: GenericPalletEvent<Rv, 'Balances', 'MintedCredit', { amount: bigint }>;
|
|
570
|
+
|
|
565
571
|
/**
|
|
566
572
|
* Some amount was burned from an account.
|
|
567
573
|
**/
|
|
568
574
|
Burned: GenericPalletEvent<Rv, 'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
|
|
569
575
|
|
|
576
|
+
/**
|
|
577
|
+
* Some debt has been dropped from the Total Issuance.
|
|
578
|
+
**/
|
|
579
|
+
BurnedDebt: GenericPalletEvent<Rv, 'Balances', 'BurnedDebt', { amount: bigint }>;
|
|
580
|
+
|
|
570
581
|
/**
|
|
571
582
|
* Some amount was suspended from an account (it can be restored later).
|
|
572
583
|
**/
|
|
@@ -617,6 +628,61 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
617
628
|
**/
|
|
618
629
|
TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
|
|
619
630
|
|
|
631
|
+
/**
|
|
632
|
+
* Some balance was placed on hold.
|
|
633
|
+
**/
|
|
634
|
+
Held: GenericPalletEvent<
|
|
635
|
+
Rv,
|
|
636
|
+
'Balances',
|
|
637
|
+
'Held',
|
|
638
|
+
{ reason: AssetHubWestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
639
|
+
>;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Held balance was burned from an account.
|
|
643
|
+
**/
|
|
644
|
+
BurnedHeld: GenericPalletEvent<
|
|
645
|
+
Rv,
|
|
646
|
+
'Balances',
|
|
647
|
+
'BurnedHeld',
|
|
648
|
+
{ reason: AssetHubWestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
649
|
+
>;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* A transfer of `amount` on hold from `source` to `dest` was initiated.
|
|
653
|
+
**/
|
|
654
|
+
TransferOnHold: GenericPalletEvent<
|
|
655
|
+
Rv,
|
|
656
|
+
'Balances',
|
|
657
|
+
'TransferOnHold',
|
|
658
|
+
{ reason: AssetHubWestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint }
|
|
659
|
+
>;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* The `transferred` balance is placed on hold at the `dest` account.
|
|
663
|
+
**/
|
|
664
|
+
TransferAndHold: GenericPalletEvent<
|
|
665
|
+
Rv,
|
|
666
|
+
'Balances',
|
|
667
|
+
'TransferAndHold',
|
|
668
|
+
{ reason: AssetHubWestendRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint }
|
|
669
|
+
>;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Some balance was released from hold.
|
|
673
|
+
**/
|
|
674
|
+
Released: GenericPalletEvent<
|
|
675
|
+
Rv,
|
|
676
|
+
'Balances',
|
|
677
|
+
'Released',
|
|
678
|
+
{ reason: AssetHubWestendRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
|
|
679
|
+
>;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* An unexpected/defensive event was triggered.
|
|
683
|
+
**/
|
|
684
|
+
Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
|
|
685
|
+
|
|
620
686
|
/**
|
|
621
687
|
* Generic pallet event
|
|
622
688
|
**/
|
|
@@ -1529,7 +1595,14 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1529
1595
|
Rv,
|
|
1530
1596
|
'Proxy',
|
|
1531
1597
|
'PureCreated',
|
|
1532
|
-
{
|
|
1598
|
+
{
|
|
1599
|
+
pure: AccountId32;
|
|
1600
|
+
who: AccountId32;
|
|
1601
|
+
proxyType: AssetHubWestendRuntimeProxyType;
|
|
1602
|
+
disambiguationIndex: number;
|
|
1603
|
+
at: number;
|
|
1604
|
+
extrinsicIndex: number;
|
|
1605
|
+
}
|
|
1533
1606
|
>;
|
|
1534
1607
|
|
|
1535
1608
|
/**
|
|
@@ -3573,12 +3646,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3573
3646
|
/**
|
|
3574
3647
|
* An unapplied slash has been cancelled.
|
|
3575
3648
|
**/
|
|
3576
|
-
SlashCancelled: GenericPalletEvent<
|
|
3577
|
-
Rv,
|
|
3578
|
-
'Staking',
|
|
3579
|
-
'SlashCancelled',
|
|
3580
|
-
{ slashEra: number; slashKey: [AccountId32, Perbill, number]; payout: bigint }
|
|
3581
|
-
>;
|
|
3649
|
+
SlashCancelled: GenericPalletEvent<Rv, 'Staking', 'SlashCancelled', { slashEra: number; validator: AccountId32 }>;
|
|
3582
3650
|
|
|
3583
3651
|
/**
|
|
3584
3652
|
* Session change has been triggered.
|
|
@@ -3599,6 +3667,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3599
3667
|
**/
|
|
3600
3668
|
Unexpected: GenericPalletEvent<Rv, 'Staking', 'Unexpected', PalletStakingAsyncPalletUnexpectedKind>;
|
|
3601
3669
|
|
|
3670
|
+
/**
|
|
3671
|
+
* An offence was reported that was too old to be processed, and thus was dropped.
|
|
3672
|
+
**/
|
|
3673
|
+
OffenceTooOld: GenericPalletEvent<
|
|
3674
|
+
Rv,
|
|
3675
|
+
'Staking',
|
|
3676
|
+
'OffenceTooOld',
|
|
3677
|
+
{ offenceEra: number; validator: AccountId32; fraction: Perbill }
|
|
3678
|
+
>;
|
|
3679
|
+
|
|
3680
|
+
/**
|
|
3681
|
+
* An old era with the given index was pruned.
|
|
3682
|
+
**/
|
|
3683
|
+
EraPruned: GenericPalletEvent<Rv, 'Staking', 'EraPruned', { index: number }>;
|
|
3684
|
+
|
|
3602
3685
|
/**
|
|
3603
3686
|
* Generic pallet event
|
|
3604
3687
|
**/
|
|
@@ -4145,12 +4228,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4145
4228
|
/**
|
|
4146
4229
|
* An account has delegated their vote to another account. \[who, target\]
|
|
4147
4230
|
**/
|
|
4148
|
-
Delegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Delegated', [AccountId32, AccountId32]>;
|
|
4231
|
+
Delegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Delegated', [AccountId32, AccountId32, number]>;
|
|
4149
4232
|
|
|
4150
4233
|
/**
|
|
4151
4234
|
* An \[account\] has cancelled a previous delegation operation.
|
|
4152
4235
|
**/
|
|
4153
|
-
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
4236
|
+
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', [AccountId32, number]>;
|
|
4154
4237
|
|
|
4155
4238
|
/**
|
|
4156
4239
|
* An account has voted
|
|
@@ -4159,7 +4242,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4159
4242
|
Rv,
|
|
4160
4243
|
'ConvictionVoting',
|
|
4161
4244
|
'Voted',
|
|
4162
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
4245
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
4163
4246
|
>;
|
|
4164
4247
|
|
|
4165
4248
|
/**
|
|
@@ -4169,7 +4252,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4169
4252
|
Rv,
|
|
4170
4253
|
'ConvictionVoting',
|
|
4171
4254
|
'VoteRemoved',
|
|
4172
|
-
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
4255
|
+
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote; pollIndex: number }
|
|
4173
4256
|
>;
|
|
4174
4257
|
|
|
4175
4258
|
/**
|
|
@@ -61,7 +61,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* @name: WestendAssetHubApi
|
|
64
|
-
* @specVersion:
|
|
64
|
+
* @specVersion: 1020000
|
|
65
65
|
**/
|
|
66
66
|
export interface WestendAssetHubApi {
|
|
67
67
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|
|
@@ -92,7 +92,7 @@ import type {
|
|
|
92
92
|
PalletNftFractionalizationDetails,
|
|
93
93
|
PalletAssetConversionPoolInfo,
|
|
94
94
|
PalletReviveVmCodeInfo,
|
|
95
|
-
|
|
95
|
+
PalletReviveStorageAccountInfo,
|
|
96
96
|
PalletReviveStorageDeletionQueueManager,
|
|
97
97
|
PalletAssetRewardsPoolStakerInfo,
|
|
98
98
|
PalletAssetRewardsPoolInfo,
|
|
@@ -111,6 +111,7 @@ import type {
|
|
|
111
111
|
PalletStakingAsyncSlashingOffenceRecord,
|
|
112
112
|
PalletStakingAsyncUnappliedSlash,
|
|
113
113
|
PalletStakingAsyncSnapshotStatus,
|
|
114
|
+
PalletStakingAsyncPalletPruningStep,
|
|
114
115
|
PalletNominationPoolsPoolMember,
|
|
115
116
|
PalletNominationPoolsBondedPoolInner,
|
|
116
117
|
PalletNominationPoolsRewardPool,
|
|
@@ -2122,6 +2123,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2122
2123
|
revive: {
|
|
2123
2124
|
/**
|
|
2124
2125
|
* A mapping from a contract's code hash to its code.
|
|
2126
|
+
* The code's size is bounded by [`crate::limits::BLOB_BYTES`] for PVM and
|
|
2127
|
+
* [`revm::primitives::eip170::MAX_CODE_SIZE`] for EVM bytecode.
|
|
2125
2128
|
*
|
|
2126
2129
|
* @param {H256} arg
|
|
2127
2130
|
* @param {Callback<Bytes | undefined> =} callback
|
|
@@ -2137,12 +2140,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2137
2140
|
codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletReviveVmCodeInfo | undefined, H256>;
|
|
2138
2141
|
|
|
2139
2142
|
/**
|
|
2140
|
-
* The
|
|
2143
|
+
* The data associated to a contract or externally owned account.
|
|
2141
2144
|
*
|
|
2142
2145
|
* @param {H160} arg
|
|
2143
|
-
* @param {Callback<
|
|
2146
|
+
* @param {Callback<PalletReviveStorageAccountInfo | undefined> =} callback
|
|
2144
2147
|
**/
|
|
2145
|
-
|
|
2148
|
+
accountInfoOf: GenericStorageQuery<Rv, (arg: H160) => PalletReviveStorageAccountInfo | undefined, H160>;
|
|
2146
2149
|
|
|
2147
2150
|
/**
|
|
2148
2151
|
* The immutable data associated with a given account.
|
|
@@ -2691,6 +2694,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2691
2694
|
[number, [AccountId32, Perbill, number]]
|
|
2692
2695
|
>;
|
|
2693
2696
|
|
|
2697
|
+
/**
|
|
2698
|
+
* Cancelled slashes by era and validator with maximum slash fraction to be cancelled.
|
|
2699
|
+
*
|
|
2700
|
+
* When slashes are cancelled by governance, this stores the era and the validators
|
|
2701
|
+
* whose slashes should be cancelled, along with the maximum slash fraction that should
|
|
2702
|
+
* be cancelled for each validator.
|
|
2703
|
+
*
|
|
2704
|
+
* @param {number} arg
|
|
2705
|
+
* @param {Callback<Array<[AccountId32, Perbill]>> =} callback
|
|
2706
|
+
**/
|
|
2707
|
+
cancelledSlashes: GenericStorageQuery<Rv, (arg: number) => Array<[AccountId32, Perbill]>, number>;
|
|
2708
|
+
|
|
2694
2709
|
/**
|
|
2695
2710
|
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
2696
2711
|
* and slash value of the era.
|
|
@@ -2742,6 +2757,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2742
2757
|
**/
|
|
2743
2758
|
electableStashes: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
2744
2759
|
|
|
2760
|
+
/**
|
|
2761
|
+
* Tracks the current step of era pruning process for each era being lazily pruned.
|
|
2762
|
+
*
|
|
2763
|
+
* @param {number} arg
|
|
2764
|
+
* @param {Callback<PalletStakingAsyncPalletPruningStep | undefined> =} callback
|
|
2765
|
+
**/
|
|
2766
|
+
eraPruningState: GenericStorageQuery<Rv, (arg: number) => PalletStakingAsyncPalletPruningStep | undefined, number>;
|
|
2767
|
+
|
|
2745
2768
|
/**
|
|
2746
2769
|
* Generic pallet storage query
|
|
2747
2770
|
**/
|