@dedot/chaintypes 0.122.0 → 0.131.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/astar/consts.d.ts +0 -9
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +0 -15
- package/hydration/consts.d.ts +29 -0
- package/hydration/errors.d.ts +172 -10
- package/hydration/events.d.ts +105 -0
- package/hydration/index.d.ts +1 -1
- package/hydration/json-rpc.d.ts +1 -0
- package/hydration/query.d.ts +50 -0
- package/hydration/tx.d.ts +408 -0
- package/hydration/types.d.ts +695 -12
- package/kusama/consts.d.ts +27 -7
- package/kusama/errors.d.ts +51 -4
- package/kusama/events.d.ts +212 -4
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +44 -19
- package/kusama/runtime.d.ts +22 -0
- package/kusama/tx.d.ts +377 -25
- package/kusama/types.d.ts +638 -80
- package/kusama-asset-hub/consts.d.ts +98 -2
- package/kusama-asset-hub/errors.d.ts +314 -12
- package/kusama-asset-hub/events.d.ts +157 -3
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +113 -6
- package/kusama-asset-hub/runtime.d.ts +217 -1
- package/kusama-asset-hub/tx.d.ts +581 -1
- package/kusama-asset-hub/types.d.ts +1086 -26
- package/moonbeam/index.d.ts +1 -1
- package/package.json +2 -2
- package/polkadot/consts.d.ts +23 -5
- package/polkadot/errors.d.ts +51 -4
- package/polkadot/events.d.ts +207 -4
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +44 -19
- package/polkadot/runtime.d.ts +22 -0
- package/polkadot/tx.d.ts +376 -24
- package/polkadot/types.d.ts +630 -78
- package/westend/consts.d.ts +28 -9
- package/westend/errors.d.ts +21 -37
- package/westend/events.d.ts +25 -49
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +40 -70
- package/westend/runtime.d.ts +7 -0
- package/westend/tx.d.ts +77 -124
- package/westend/types.d.ts +228 -328
- package/westend-asset-hub/consts.d.ts +41 -14
- package/westend-asset-hub/errors.d.ts +12 -96
- package/westend-asset-hub/events.d.ts +29 -81
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +61 -125
- package/westend-asset-hub/runtime.d.ts +47 -1
- package/westend-asset-hub/tx.d.ts +97 -549
- package/westend-asset-hub/types.d.ts +489 -958
package/moonbeam/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.131.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": "9a0f917f6b068f43aaf1389d81247f39cdb22374",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Permill, Bytes, Perbill, FixedU128 } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, Permill, AccountId32, Bytes, Perbill, FixedU128 } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
SpWeightsWeightV2Weight,
|
|
10
10
|
FrameSupportPalletId,
|
|
11
|
-
|
|
11
|
+
PalletReferendaTrackDetails,
|
|
12
12
|
StagingXcmV5Junctions,
|
|
13
13
|
} from './types.js';
|
|
14
14
|
|
|
@@ -419,6 +419,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
419
419
|
**/
|
|
420
420
|
payoutPeriod: number;
|
|
421
421
|
|
|
422
|
+
/**
|
|
423
|
+
* Gets this pallet's derived pot account.
|
|
424
|
+
**/
|
|
425
|
+
potAccount: AccountId32;
|
|
426
|
+
|
|
422
427
|
/**
|
|
423
428
|
* Generic pallet constant
|
|
424
429
|
**/
|
|
@@ -477,9 +482,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
477
482
|
alarmInterval: number;
|
|
478
483
|
|
|
479
484
|
/**
|
|
480
|
-
*
|
|
485
|
+
* A list of tracks.
|
|
486
|
+
*
|
|
487
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
481
488
|
**/
|
|
482
|
-
tracks: Array<[number,
|
|
489
|
+
tracks: Array<[number, PalletReferendaTrackDetails]>;
|
|
483
490
|
|
|
484
491
|
/**
|
|
485
492
|
* Generic pallet constant
|
|
@@ -642,7 +649,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
642
649
|
bountyDepositPayoutDelay: number;
|
|
643
650
|
|
|
644
651
|
/**
|
|
645
|
-
*
|
|
652
|
+
* The time limit for a curator to act before a bounty expires.
|
|
653
|
+
*
|
|
654
|
+
* The period that starts when a curator is approved, during which they must execute or
|
|
655
|
+
* update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
|
|
656
|
+
* curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
|
|
657
|
+
* removing the need for `extend_bounty_expiry`.
|
|
646
658
|
**/
|
|
647
659
|
bountyUpdatePeriod: number;
|
|
648
660
|
|
|
@@ -1208,6 +1220,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1208
1220
|
* Pallet `XcmPallet`'s constants
|
|
1209
1221
|
**/
|
|
1210
1222
|
xcmPallet: {
|
|
1223
|
+
/**
|
|
1224
|
+
* The latest supported version that we advertise. Generally just set it to
|
|
1225
|
+
* `pallet_xcm::CurrentXcmVersion`.
|
|
1226
|
+
**/
|
|
1227
|
+
advertisedXcmVersion: number;
|
|
1228
|
+
|
|
1211
1229
|
/**
|
|
1212
1230
|
* Generic pallet constant
|
|
1213
1231
|
**/
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -439,6 +439,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
439
439
|
**/
|
|
440
440
|
VirtualStakerNotAllowed: GenericPalletError<Rv>;
|
|
441
441
|
|
|
442
|
+
/**
|
|
443
|
+
* Stash could not be reaped as other pallet might depend on it.
|
|
444
|
+
**/
|
|
445
|
+
CannotReapStash: GenericPalletError<Rv>;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* The stake of this account is already migrated to `Fungible` holds.
|
|
449
|
+
**/
|
|
450
|
+
AlreadyMigrated: GenericPalletError<Rv>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Account is restricted from participation in staking. This may happen if the account is
|
|
454
|
+
* staking in another way already, such as via pool.
|
|
455
|
+
**/
|
|
456
|
+
Restricted: GenericPalletError<Rv>;
|
|
457
|
+
|
|
442
458
|
/**
|
|
443
459
|
* Generic pallet error
|
|
444
460
|
**/
|
|
@@ -950,12 +966,13 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
950
966
|
SenderInSignatories: GenericPalletError<Rv>;
|
|
951
967
|
|
|
952
968
|
/**
|
|
953
|
-
* Multisig operation not found
|
|
969
|
+
* Multisig operation not found in storage.
|
|
954
970
|
**/
|
|
955
971
|
NotFound: GenericPalletError<Rv>;
|
|
956
972
|
|
|
957
973
|
/**
|
|
958
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
974
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
975
|
+
* its deposits.
|
|
959
976
|
**/
|
|
960
977
|
NotOwner: GenericPalletError<Rv>;
|
|
961
978
|
|
|
@@ -1353,6 +1370,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1353
1370
|
**/
|
|
1354
1371
|
NothingToSlash: GenericPalletError<Rv>;
|
|
1355
1372
|
|
|
1373
|
+
/**
|
|
1374
|
+
* The slash amount is too low to be applied.
|
|
1375
|
+
**/
|
|
1376
|
+
SlashTooLow: GenericPalletError<Rv>;
|
|
1377
|
+
|
|
1356
1378
|
/**
|
|
1357
1379
|
* The pool or member delegation has already migrated to delegate stake.
|
|
1358
1380
|
**/
|
|
@@ -1364,11 +1386,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1364
1386
|
NotMigrated: GenericPalletError<Rv>;
|
|
1365
1387
|
|
|
1366
1388
|
/**
|
|
1367
|
-
* This call is not allowed in the current state of the pallet
|
|
1368
|
-
* occurred.
|
|
1389
|
+
* This call is not allowed in the current state of the pallet.
|
|
1369
1390
|
**/
|
|
1370
1391
|
NotSupported: GenericPalletError<Rv>;
|
|
1371
1392
|
|
|
1393
|
+
/**
|
|
1394
|
+
* Account is restricted from participation in pools. This may happen if the account is
|
|
1395
|
+
* staking in another way already.
|
|
1396
|
+
**/
|
|
1397
|
+
Restricted: GenericPalletError<Rv>;
|
|
1398
|
+
|
|
1372
1399
|
/**
|
|
1373
1400
|
* Generic pallet error
|
|
1374
1401
|
**/
|
|
@@ -1922,6 +1949,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1922
1949
|
**/
|
|
1923
1950
|
SpotPriceHigherThanMaxAmount: GenericPalletError<Rv>;
|
|
1924
1951
|
|
|
1952
|
+
/**
|
|
1953
|
+
* The account doesn't have enough credits to purchase on-demand coretime.
|
|
1954
|
+
**/
|
|
1955
|
+
InsufficientCredits: GenericPalletError<Rv>;
|
|
1956
|
+
|
|
1925
1957
|
/**
|
|
1926
1958
|
* Generic pallet error
|
|
1927
1959
|
**/
|
|
@@ -2410,6 +2442,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2410
2442
|
**/
|
|
2411
2443
|
LocalExecutionIncomplete: GenericPalletError<Rv>;
|
|
2412
2444
|
|
|
2445
|
+
/**
|
|
2446
|
+
* Too many locations authorized to alias origin.
|
|
2447
|
+
**/
|
|
2448
|
+
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* Expiry block number is in the past.
|
|
2452
|
+
**/
|
|
2453
|
+
ExpiresInPast: GenericPalletError<Rv>;
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* The alias to remove authorization for was not found.
|
|
2457
|
+
**/
|
|
2458
|
+
AliasNotFound: GenericPalletError<Rv>;
|
|
2459
|
+
|
|
2413
2460
|
/**
|
|
2414
2461
|
* Generic pallet error
|
|
2415
2462
|
**/
|
package/polkadot/events.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import type {
|
|
|
27
27
|
FrameSupportDispatchPostDispatchInfo,
|
|
28
28
|
SpRuntimeDispatchErrorWithPostInfo,
|
|
29
29
|
PolkadotRuntimeConstantsProxyProxyType,
|
|
30
|
+
PalletProxyDepositKind,
|
|
30
31
|
PalletMultisigTimepoint,
|
|
31
32
|
PalletElectionProviderMultiPhaseElectionCompute,
|
|
32
33
|
SpNposElectionsElectionScore,
|
|
@@ -34,6 +35,7 @@ import type {
|
|
|
34
35
|
PalletNominationPoolsPoolState,
|
|
35
36
|
PalletNominationPoolsCommissionChangeRate,
|
|
36
37
|
PalletNominationPoolsCommissionClaimPermission,
|
|
38
|
+
PalletNominationPoolsClaimPermission,
|
|
37
39
|
PolkadotPrimitivesVstagingCandidateReceiptV2,
|
|
38
40
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
39
41
|
PolkadotPrimitivesV8CoreIndex,
|
|
@@ -49,11 +51,12 @@ import type {
|
|
|
49
51
|
StagingXcmV5TraitsOutcome,
|
|
50
52
|
StagingXcmV5Location,
|
|
51
53
|
StagingXcmV5Xcm,
|
|
54
|
+
XcmV3TraitsSendError,
|
|
55
|
+
XcmV5TraitsError,
|
|
52
56
|
StagingXcmV5Response,
|
|
53
57
|
SpWeightsWeightV2Weight,
|
|
54
58
|
XcmVersionedAssets,
|
|
55
59
|
StagingXcmV5AssetAssets,
|
|
56
|
-
XcmV5TraitsError,
|
|
57
60
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
58
61
|
FrameSupportMessagesProcessMessageError,
|
|
59
62
|
} from './types.js';
|
|
@@ -108,6 +111,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
108
111
|
**/
|
|
109
112
|
UpgradeAuthorized: GenericPalletEvent<Rv, 'System', 'UpgradeAuthorized', { codeHash: H256; checkVersion: boolean }>;
|
|
110
113
|
|
|
114
|
+
/**
|
|
115
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
116
|
+
**/
|
|
117
|
+
RejectedInvalidAuthorizedUpgrade: GenericPalletEvent<
|
|
118
|
+
Rv,
|
|
119
|
+
'System',
|
|
120
|
+
'RejectedInvalidAuthorizedUpgrade',
|
|
121
|
+
{ codeHash: H256; error: DispatchError }
|
|
122
|
+
>;
|
|
123
|
+
|
|
111
124
|
/**
|
|
112
125
|
* Generic pallet event
|
|
113
126
|
**/
|
|
@@ -198,6 +211,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
198
211
|
{ task: [number, number]; id?: FixedBytes<32> | undefined }
|
|
199
212
|
>;
|
|
200
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Agenda is incomplete from `when`.
|
|
216
|
+
**/
|
|
217
|
+
AgendaIncomplete: GenericPalletEvent<Rv, 'Scheduler', 'AgendaIncomplete', { when: number }>;
|
|
218
|
+
|
|
201
219
|
/**
|
|
202
220
|
* Generic pallet event
|
|
203
221
|
**/
|
|
@@ -246,6 +264,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
246
264
|
**/
|
|
247
265
|
IndexFrozen: GenericPalletEvent<Rv, 'Indices', 'IndexFrozen', { index: number; who: AccountId32 }>;
|
|
248
266
|
|
|
267
|
+
/**
|
|
268
|
+
* A deposit to reserve an index has been poked/reconsidered.
|
|
269
|
+
**/
|
|
270
|
+
DepositPoked: GenericPalletEvent<
|
|
271
|
+
Rv,
|
|
272
|
+
'Indices',
|
|
273
|
+
'DepositPoked',
|
|
274
|
+
{ who: AccountId32; index: number; oldDeposit: bigint; newDeposit: bigint }
|
|
275
|
+
>;
|
|
276
|
+
|
|
249
277
|
/**
|
|
250
278
|
* Generic pallet event
|
|
251
279
|
**/
|
|
@@ -528,6 +556,17 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
528
556
|
**/
|
|
529
557
|
ControllerBatchDeprecated: GenericPalletEvent<Rv, 'Staking', 'ControllerBatchDeprecated', { failures: number }>;
|
|
530
558
|
|
|
559
|
+
/**
|
|
560
|
+
* Staking balance migrated from locks to holds, with any balance that could not be held
|
|
561
|
+
* is force withdrawn.
|
|
562
|
+
**/
|
|
563
|
+
CurrencyMigrated: GenericPalletEvent<
|
|
564
|
+
Rv,
|
|
565
|
+
'Staking',
|
|
566
|
+
'CurrencyMigrated',
|
|
567
|
+
{ stash: AccountId32; forceWithdraw: bigint }
|
|
568
|
+
>;
|
|
569
|
+
|
|
531
570
|
/**
|
|
532
571
|
* Generic pallet event
|
|
533
572
|
**/
|
|
@@ -559,6 +598,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
559
598
|
**/
|
|
560
599
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
|
|
561
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Validator has been disabled.
|
|
603
|
+
**/
|
|
604
|
+
ValidatorDisabled: GenericPalletEvent<Rv, 'Session', 'ValidatorDisabled', { validator: AccountId32 }>;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Validator has been re-enabled.
|
|
608
|
+
**/
|
|
609
|
+
ValidatorReenabled: GenericPalletEvent<Rv, 'Session', 'ValidatorReenabled', { validator: AccountId32 }>;
|
|
610
|
+
|
|
562
611
|
/**
|
|
563
612
|
* Generic pallet event
|
|
564
613
|
**/
|
|
@@ -705,7 +754,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
705
754
|
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
706
755
|
|
|
707
756
|
/**
|
|
708
|
-
* An account
|
|
757
|
+
* An account has voted
|
|
709
758
|
**/
|
|
710
759
|
Voted: GenericPalletEvent<
|
|
711
760
|
Rv,
|
|
@@ -715,7 +764,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
715
764
|
>;
|
|
716
765
|
|
|
717
766
|
/**
|
|
718
|
-
* A vote
|
|
767
|
+
* A vote has been removed
|
|
719
768
|
**/
|
|
720
769
|
VoteRemoved: GenericPalletEvent<
|
|
721
770
|
Rv,
|
|
@@ -724,6 +773,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
724
773
|
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
725
774
|
>;
|
|
726
775
|
|
|
776
|
+
/**
|
|
777
|
+
* The lockup period of a conviction vote expired, and the funds have been unlocked.
|
|
778
|
+
**/
|
|
779
|
+
VoteUnlocked: GenericPalletEvent<Rv, 'ConvictionVoting', 'VoteUnlocked', { who: AccountId32; class: number }>;
|
|
780
|
+
|
|
727
781
|
/**
|
|
728
782
|
* Generic pallet event
|
|
729
783
|
**/
|
|
@@ -1157,6 +1211,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1157
1211
|
**/
|
|
1158
1212
|
DispatchedAs: GenericPalletEvent<Rv, 'Utility', 'DispatchedAs', { result: Result<[], DispatchError> }>;
|
|
1159
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* Main call was dispatched.
|
|
1216
|
+
**/
|
|
1217
|
+
IfElseMainSuccess: GenericPalletEvent<Rv, 'Utility', 'IfElseMainSuccess', null>;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* The fallback call was dispatched.
|
|
1221
|
+
**/
|
|
1222
|
+
IfElseFallbackCalled: GenericPalletEvent<Rv, 'Utility', 'IfElseFallbackCalled', { mainError: DispatchError }>;
|
|
1223
|
+
|
|
1160
1224
|
/**
|
|
1161
1225
|
* Generic pallet event
|
|
1162
1226
|
**/
|
|
@@ -1222,6 +1286,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1222
1286
|
}
|
|
1223
1287
|
>;
|
|
1224
1288
|
|
|
1289
|
+
/**
|
|
1290
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1291
|
+
**/
|
|
1292
|
+
DepositPoked: GenericPalletEvent<
|
|
1293
|
+
Rv,
|
|
1294
|
+
'Proxy',
|
|
1295
|
+
'DepositPoked',
|
|
1296
|
+
{ who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint }
|
|
1297
|
+
>;
|
|
1298
|
+
|
|
1225
1299
|
/**
|
|
1226
1300
|
* Generic pallet event
|
|
1227
1301
|
**/
|
|
@@ -1277,6 +1351,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1277
1351
|
{ cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
|
|
1278
1352
|
>;
|
|
1279
1353
|
|
|
1354
|
+
/**
|
|
1355
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
1356
|
+
**/
|
|
1357
|
+
DepositPoked: GenericPalletEvent<
|
|
1358
|
+
Rv,
|
|
1359
|
+
'Multisig',
|
|
1360
|
+
'DepositPoked',
|
|
1361
|
+
{ who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint }
|
|
1362
|
+
>;
|
|
1363
|
+
|
|
1280
1364
|
/**
|
|
1281
1365
|
* Generic pallet event
|
|
1282
1366
|
**/
|
|
@@ -1664,6 +1748,64 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1664
1748
|
{ poolId: number; amount: bigint }
|
|
1665
1749
|
>;
|
|
1666
1750
|
|
|
1751
|
+
/**
|
|
1752
|
+
* A pool member's claim permission has been updated.
|
|
1753
|
+
**/
|
|
1754
|
+
MemberClaimPermissionUpdated: GenericPalletEvent<
|
|
1755
|
+
Rv,
|
|
1756
|
+
'NominationPools',
|
|
1757
|
+
'MemberClaimPermissionUpdated',
|
|
1758
|
+
{ member: AccountId32; permission: PalletNominationPoolsClaimPermission }
|
|
1759
|
+
>;
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* A pool's metadata was updated.
|
|
1763
|
+
**/
|
|
1764
|
+
MetadataUpdated: GenericPalletEvent<
|
|
1765
|
+
Rv,
|
|
1766
|
+
'NominationPools',
|
|
1767
|
+
'MetadataUpdated',
|
|
1768
|
+
{ poolId: number; caller: AccountId32 }
|
|
1769
|
+
>;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* A pool's nominating account (or the pool's root account) has nominated a validator set
|
|
1773
|
+
* on behalf of the pool.
|
|
1774
|
+
**/
|
|
1775
|
+
PoolNominationMade: GenericPalletEvent<
|
|
1776
|
+
Rv,
|
|
1777
|
+
'NominationPools',
|
|
1778
|
+
'PoolNominationMade',
|
|
1779
|
+
{ poolId: number; caller: AccountId32 }
|
|
1780
|
+
>;
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* The pool is chilled i.e. no longer nominating.
|
|
1784
|
+
**/
|
|
1785
|
+
PoolNominatorChilled: GenericPalletEvent<
|
|
1786
|
+
Rv,
|
|
1787
|
+
'NominationPools',
|
|
1788
|
+
'PoolNominatorChilled',
|
|
1789
|
+
{ poolId: number; caller: AccountId32 }
|
|
1790
|
+
>;
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* Global parameters regulating nomination pools have been updated.
|
|
1794
|
+
**/
|
|
1795
|
+
GlobalParamsUpdated: GenericPalletEvent<
|
|
1796
|
+
Rv,
|
|
1797
|
+
'NominationPools',
|
|
1798
|
+
'GlobalParamsUpdated',
|
|
1799
|
+
{
|
|
1800
|
+
minJoinBond: bigint;
|
|
1801
|
+
minCreateBond: bigint;
|
|
1802
|
+
maxPools?: number | undefined;
|
|
1803
|
+
maxMembers?: number | undefined;
|
|
1804
|
+
maxMembersPerPool?: number | undefined;
|
|
1805
|
+
globalMaxCommission?: Perbill | undefined;
|
|
1806
|
+
}
|
|
1807
|
+
>;
|
|
1808
|
+
|
|
1667
1809
|
/**
|
|
1668
1810
|
* Generic pallet event
|
|
1669
1811
|
**/
|
|
@@ -2052,6 +2194,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2052
2194
|
**/
|
|
2053
2195
|
SpotPriceSet: GenericPalletEvent<Rv, 'OnDemand', 'SpotPriceSet', { spotPrice: bigint }>;
|
|
2054
2196
|
|
|
2197
|
+
/**
|
|
2198
|
+
* An account was given credits.
|
|
2199
|
+
**/
|
|
2200
|
+
AccountCredited: GenericPalletEvent<Rv, 'OnDemand', 'AccountCredited', { who: AccountId32; amount: bigint }>;
|
|
2201
|
+
|
|
2055
2202
|
/**
|
|
2056
2203
|
* Generic pallet event
|
|
2057
2204
|
**/
|
|
@@ -2357,7 +2504,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2357
2504
|
Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
2358
2505
|
|
|
2359
2506
|
/**
|
|
2360
|
-
*
|
|
2507
|
+
* An XCM message was sent.
|
|
2361
2508
|
**/
|
|
2362
2509
|
Sent: GenericPalletEvent<
|
|
2363
2510
|
Rv,
|
|
@@ -2371,6 +2518,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2371
2518
|
}
|
|
2372
2519
|
>;
|
|
2373
2520
|
|
|
2521
|
+
/**
|
|
2522
|
+
* An XCM message failed to send.
|
|
2523
|
+
**/
|
|
2524
|
+
SendFailed: GenericPalletEvent<
|
|
2525
|
+
Rv,
|
|
2526
|
+
'XcmPallet',
|
|
2527
|
+
'SendFailed',
|
|
2528
|
+
{
|
|
2529
|
+
origin: StagingXcmV5Location;
|
|
2530
|
+
destination: StagingXcmV5Location;
|
|
2531
|
+
error: XcmV3TraitsSendError;
|
|
2532
|
+
messageId: FixedBytes<32>;
|
|
2533
|
+
}
|
|
2534
|
+
>;
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* An XCM message failed to process.
|
|
2538
|
+
**/
|
|
2539
|
+
ProcessXcmError: GenericPalletEvent<
|
|
2540
|
+
Rv,
|
|
2541
|
+
'XcmPallet',
|
|
2542
|
+
'ProcessXcmError',
|
|
2543
|
+
{ origin: StagingXcmV5Location; error: XcmV5TraitsError; messageId: FixedBytes<32> }
|
|
2544
|
+
>;
|
|
2545
|
+
|
|
2374
2546
|
/**
|
|
2375
2547
|
* Query response received which does not match a registered query. This may be because a
|
|
2376
2548
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
@@ -2624,6 +2796,37 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2624
2796
|
**/
|
|
2625
2797
|
VersionMigrationFinished: GenericPalletEvent<Rv, 'XcmPallet', 'VersionMigrationFinished', { version: number }>;
|
|
2626
2798
|
|
|
2799
|
+
/**
|
|
2800
|
+
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
|
2801
|
+
* `expiry` block number.
|
|
2802
|
+
**/
|
|
2803
|
+
AliasAuthorized: GenericPalletEvent<
|
|
2804
|
+
Rv,
|
|
2805
|
+
'XcmPallet',
|
|
2806
|
+
'AliasAuthorized',
|
|
2807
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location; expiry?: bigint | undefined }
|
|
2808
|
+
>;
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* `target` removed alias authorization for `aliaser`.
|
|
2812
|
+
**/
|
|
2813
|
+
AliasAuthorizationRemoved: GenericPalletEvent<
|
|
2814
|
+
Rv,
|
|
2815
|
+
'XcmPallet',
|
|
2816
|
+
'AliasAuthorizationRemoved',
|
|
2817
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location }
|
|
2818
|
+
>;
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* `target` removed all alias authorizations.
|
|
2822
|
+
**/
|
|
2823
|
+
AliasesAuthorizationsRemoved: GenericPalletEvent<
|
|
2824
|
+
Rv,
|
|
2825
|
+
'XcmPallet',
|
|
2826
|
+
'AliasesAuthorizationsRemoved',
|
|
2827
|
+
{ target: StagingXcmV5Location }
|
|
2828
|
+
>;
|
|
2829
|
+
|
|
2627
2830
|
/**
|
|
2628
2831
|
* Generic pallet event
|
|
2629
2832
|
**/
|
package/polkadot/index.d.ts
CHANGED
package/polkadot/query.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
FrameSystemEventRecord,
|
|
24
24
|
FrameSystemLastRuntimeUpgradeInfo,
|
|
25
25
|
FrameSystemCodeUpgradeAuthorization,
|
|
26
|
+
SpWeightsWeightV2Weight,
|
|
26
27
|
PalletSchedulerScheduled,
|
|
27
28
|
PalletSchedulerRetryConfig,
|
|
28
29
|
PalletPreimageOldRequestStatus,
|
|
@@ -53,6 +54,7 @@ import type {
|
|
|
53
54
|
PalletStakingSlashingSpanRecord,
|
|
54
55
|
SpStakingOffenceOffenceDetails,
|
|
55
56
|
PolkadotRuntimeSessionKeys,
|
|
57
|
+
SpStakingOffenceOffenceSeverity,
|
|
56
58
|
SpCoreCryptoKeyTypeId,
|
|
57
59
|
PalletGrandpaStoredState,
|
|
58
60
|
PalletGrandpaStoredPendingChange,
|
|
@@ -115,7 +117,7 @@ import type {
|
|
|
115
117
|
PolkadotPrimitivesV8ExecutorParams,
|
|
116
118
|
PolkadotPrimitivesV8DisputeState,
|
|
117
119
|
PolkadotCorePrimitivesCandidateHash,
|
|
118
|
-
|
|
120
|
+
PolkadotPrimitivesVstagingPendingSlashes,
|
|
119
121
|
PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
|
|
120
122
|
PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
|
|
121
123
|
BinaryHeapEnqueuedOrder,
|
|
@@ -127,11 +129,11 @@ import type {
|
|
|
127
129
|
PalletStateTrieMigrationMigrationLimits,
|
|
128
130
|
PalletXcmQueryStatus,
|
|
129
131
|
XcmVersionedLocation,
|
|
130
|
-
SpWeightsWeightV2Weight,
|
|
131
132
|
PalletXcmVersionMigrationStage,
|
|
132
133
|
PalletXcmRemoteLockedFungibleRecord,
|
|
133
134
|
XcmVersionedAssetId,
|
|
134
135
|
StagingXcmV5Xcm,
|
|
136
|
+
PalletXcmAuthorizedAliasesEntry,
|
|
135
137
|
PalletMessageQueueBookState,
|
|
136
138
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
137
139
|
PalletMessageQueuePage,
|
|
@@ -291,6 +293,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
291
293
|
**/
|
|
292
294
|
authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
|
|
293
295
|
|
|
296
|
+
/**
|
|
297
|
+
* The weight reclaimed for the extrinsic.
|
|
298
|
+
*
|
|
299
|
+
* This information is available until the end of the extrinsic execution.
|
|
300
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
301
|
+
*
|
|
302
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
303
|
+
* reduction.
|
|
304
|
+
*
|
|
305
|
+
* @param {Callback<SpWeightsWeightV2Weight> =} callback
|
|
306
|
+
**/
|
|
307
|
+
extrinsicWeightReclaimed: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight>;
|
|
308
|
+
|
|
294
309
|
/**
|
|
295
310
|
* Generic pallet storage query
|
|
296
311
|
**/
|
|
@@ -301,6 +316,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
301
316
|
**/
|
|
302
317
|
scheduler: {
|
|
303
318
|
/**
|
|
319
|
+
* Block number at which the agenda began incomplete execution.
|
|
304
320
|
*
|
|
305
321
|
* @param {Callback<number | undefined> =} callback
|
|
306
322
|
**/
|
|
@@ -1173,19 +1189,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1173
1189
|
**/
|
|
1174
1190
|
currentPlannedSession: GenericStorageQuery<Rv, () => number>;
|
|
1175
1191
|
|
|
1176
|
-
/**
|
|
1177
|
-
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
|
1178
|
-
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
|
1179
|
-
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
|
1180
|
-
* implicitly means that the implementor also controls the max number of disabled validators.
|
|
1181
|
-
*
|
|
1182
|
-
* The vec is always kept sorted so that we can find whether a given validator has previously
|
|
1183
|
-
* offended using binary search.
|
|
1184
|
-
*
|
|
1185
|
-
* @param {Callback<Array<number>> =} callback
|
|
1186
|
-
**/
|
|
1187
|
-
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1188
|
-
|
|
1189
1192
|
/**
|
|
1190
1193
|
* The threshold for when users can start calling `chill_other` for other validators /
|
|
1191
1194
|
* nominators. The threshold is compared to the actual number of validators / nominators
|
|
@@ -1294,9 +1297,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1294
1297
|
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
1295
1298
|
* a new set of identities.
|
|
1296
1299
|
*
|
|
1297
|
-
* @param {Callback<Array<number>> =} callback
|
|
1300
|
+
* @param {Callback<Array<[number, SpStakingOffenceOffenceSeverity]>> =} callback
|
|
1298
1301
|
**/
|
|
1299
|
-
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1302
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<[number, SpStakingOffenceOffenceSeverity]>>;
|
|
1300
1303
|
|
|
1301
1304
|
/**
|
|
1302
1305
|
* The next session keys for a validator.
|
|
@@ -3176,11 +3179,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3176
3179
|
* Validators pending dispute slashes.
|
|
3177
3180
|
*
|
|
3178
3181
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
3179
|
-
* @param {Callback<
|
|
3182
|
+
* @param {Callback<PolkadotPrimitivesVstagingPendingSlashes | undefined> =} callback
|
|
3180
3183
|
**/
|
|
3181
3184
|
unappliedSlashes: GenericStorageQuery<
|
|
3182
3185
|
Rv,
|
|
3183
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
3186
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesVstagingPendingSlashes | undefined,
|
|
3184
3187
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
3185
3188
|
>;
|
|
3186
3189
|
|
|
@@ -3250,6 +3253,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3250
3253
|
**/
|
|
3251
3254
|
revenue: GenericStorageQuery<Rv, () => Array<bigint>>;
|
|
3252
3255
|
|
|
3256
|
+
/**
|
|
3257
|
+
* Keeps track of credits owned by each account.
|
|
3258
|
+
*
|
|
3259
|
+
* @param {AccountId32Like} arg
|
|
3260
|
+
* @param {Callback<bigint> =} callback
|
|
3261
|
+
**/
|
|
3262
|
+
credits: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint, AccountId32>;
|
|
3263
|
+
|
|
3253
3264
|
/**
|
|
3254
3265
|
* Generic pallet storage query
|
|
3255
3266
|
**/
|
|
@@ -3656,6 +3667,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3656
3667
|
**/
|
|
3657
3668
|
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
3658
3669
|
|
|
3670
|
+
/**
|
|
3671
|
+
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
|
3672
|
+
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
|
3673
|
+
* block number.
|
|
3674
|
+
*
|
|
3675
|
+
* @param {XcmVersionedLocation} arg
|
|
3676
|
+
* @param {Callback<PalletXcmAuthorizedAliasesEntry | undefined> =} callback
|
|
3677
|
+
**/
|
|
3678
|
+
authorizedAliases: GenericStorageQuery<
|
|
3679
|
+
Rv,
|
|
3680
|
+
(arg: XcmVersionedLocation) => PalletXcmAuthorizedAliasesEntry | undefined,
|
|
3681
|
+
XcmVersionedLocation
|
|
3682
|
+
>;
|
|
3683
|
+
|
|
3659
3684
|
/**
|
|
3660
3685
|
* Generic pallet storage query
|
|
3661
3686
|
**/
|