@dedot/chaintypes 0.78.0 → 0.80.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/paseo-people/json-rpc.d.ts +11 -10
- package/westend/consts.d.ts +38 -32
- package/westend/errors.d.ts +64 -9
- package/westend/events.d.ts +143 -52
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +63 -98
- package/westend/runtime.d.ts +7 -7
- package/westend/tx.d.ts +235 -64
- package/westend/types.d.ts +441 -174
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "781989bcd644283383b2016c8761c18a8c8299f9",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
25
25
|
"exports": {
|
|
@@ -5,16 +5,16 @@ import type { JsonRpcApis } from 'dedot/types/json-rpc';
|
|
|
5
5
|
|
|
6
6
|
export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
7
7
|
JsonRpcApis,
|
|
8
|
-
| '
|
|
9
|
-
| '
|
|
10
|
-
| '
|
|
11
|
-
| '
|
|
12
|
-
| '
|
|
13
|
-
| '
|
|
14
|
-
| '
|
|
15
|
-
| '
|
|
16
|
-
| '
|
|
17
|
-
| '
|
|
8
|
+
| 'archive_v1_body'
|
|
9
|
+
| 'archive_v1_call'
|
|
10
|
+
| 'archive_v1_finalizedHeight'
|
|
11
|
+
| 'archive_v1_genesisHash'
|
|
12
|
+
| 'archive_v1_hashByHeight'
|
|
13
|
+
| 'archive_v1_header'
|
|
14
|
+
| 'archive_v1_stopStorage'
|
|
15
|
+
| 'archive_v1_storage'
|
|
16
|
+
| 'archive_v1_storageDiff'
|
|
17
|
+
| 'archive_v1_storageDiff_stopStorageDiff'
|
|
18
18
|
| 'author_hasKey'
|
|
19
19
|
| 'author_hasSessionKeys'
|
|
20
20
|
| 'author_insertKey'
|
|
@@ -48,6 +48,7 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
48
48
|
| 'childstate_getStorageHash'
|
|
49
49
|
| 'childstate_getStorageSize'
|
|
50
50
|
| 'dev_getBlockStats'
|
|
51
|
+
| 'offchain_localStorageClear'
|
|
51
52
|
| 'offchain_localStorageGet'
|
|
52
53
|
| 'offchain_localStorageSet'
|
|
53
54
|
| 'payment_queryFeeDetails'
|
package/westend/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, Perbill, Permill, FixedU128 } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, Perbill, Permill, AccountId32, 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
|
|
|
@@ -216,9 +216,10 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
216
216
|
* Number of eras to keep in history.
|
|
217
217
|
*
|
|
218
218
|
* Following information is kept for eras in `[current_era -
|
|
219
|
-
* HistoryDepth, current_era]`: `
|
|
220
|
-
* `
|
|
221
|
-
* `
|
|
219
|
+
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
|
220
|
+
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
|
221
|
+
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
|
|
222
|
+
* `ErasStakersOverview`.
|
|
222
223
|
*
|
|
223
224
|
* Must be more than the number of eras delayed by session.
|
|
224
225
|
* I.e. active era must always be in history. I.e. `active_era >
|
|
@@ -268,14 +269,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
268
269
|
**/
|
|
269
270
|
maxExposurePageSize: number;
|
|
270
271
|
|
|
271
|
-
/**
|
|
272
|
-
* The absolute maximum of winner validators this pallet should return.
|
|
273
|
-
*
|
|
274
|
-
* As this pallet supports multi-block election, the set of winner validators *per
|
|
275
|
-
* election* is bounded by this type.
|
|
276
|
-
**/
|
|
277
|
-
maxValidatorSet: number;
|
|
278
|
-
|
|
279
272
|
/**
|
|
280
273
|
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
281
274
|
* have. Effectively determines how many unique eras a staker may be
|
|
@@ -290,16 +283,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
290
283
|
**/
|
|
291
284
|
maxUnlockingChunks: number;
|
|
292
285
|
|
|
293
|
-
/**
|
|
294
|
-
* Maximum number of invulnerable validators.
|
|
295
|
-
**/
|
|
296
|
-
maxInvulnerables: number;
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Maximum number of disabled validators.
|
|
300
|
-
**/
|
|
301
|
-
maxDisabledValidators: number;
|
|
302
|
-
|
|
303
286
|
/**
|
|
304
287
|
* Generic pallet constant
|
|
305
288
|
**/
|
|
@@ -707,18 +690,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
707
690
|
signedDepositWeight: bigint;
|
|
708
691
|
|
|
709
692
|
/**
|
|
710
|
-
*
|
|
693
|
+
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
694
|
+
* implementation.
|
|
711
695
|
*
|
|
712
696
|
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
|
713
697
|
**/
|
|
714
698
|
maxWinners: number;
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* Maximum number of voters that can support a winner in an election solution.
|
|
718
|
-
*
|
|
719
|
-
* This is needed to ensure election computation is bounded.
|
|
720
|
-
**/
|
|
721
|
-
maxBackersPerWinner: number;
|
|
722
699
|
minerMaxLength: number;
|
|
723
700
|
minerMaxWeight: SpWeightsWeightV2Weight;
|
|
724
701
|
minerMaxVotesPerVoter: number;
|
|
@@ -886,7 +863,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
886
863
|
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
887
864
|
**/
|
|
888
865
|
alarmInterval: number;
|
|
889
|
-
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* A list of tracks.
|
|
869
|
+
*
|
|
870
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
871
|
+
**/
|
|
872
|
+
tracks: Array<[number, PalletReferendaTrackDetails]>;
|
|
890
873
|
|
|
891
874
|
/**
|
|
892
875
|
* Generic pallet constant
|
|
@@ -945,6 +928,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
945
928
|
**/
|
|
946
929
|
payoutPeriod: number;
|
|
947
930
|
|
|
931
|
+
/**
|
|
932
|
+
* Gets this pallet's derived pot account.
|
|
933
|
+
**/
|
|
934
|
+
potAccount: AccountId32;
|
|
935
|
+
|
|
948
936
|
/**
|
|
949
937
|
* Generic pallet constant
|
|
950
938
|
**/
|
|
@@ -1358,6 +1346,24 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1358
1346
|
**/
|
|
1359
1347
|
[name: string]: any;
|
|
1360
1348
|
};
|
|
1349
|
+
/**
|
|
1350
|
+
* Pallet `MetaTx`'s constants
|
|
1351
|
+
**/
|
|
1352
|
+
metaTx: {
|
|
1353
|
+
/**
|
|
1354
|
+
* Generic pallet constant
|
|
1355
|
+
**/
|
|
1356
|
+
[name: string]: any;
|
|
1357
|
+
};
|
|
1358
|
+
/**
|
|
1359
|
+
* Pallet `VerifySignature`'s constants
|
|
1360
|
+
**/
|
|
1361
|
+
verifySignature: {
|
|
1362
|
+
/**
|
|
1363
|
+
* Generic pallet constant
|
|
1364
|
+
**/
|
|
1365
|
+
[name: string]: any;
|
|
1366
|
+
};
|
|
1361
1367
|
/**
|
|
1362
1368
|
* Pallet `Beefy`'s constants
|
|
1363
1369
|
**/
|
package/westend/errors.d.ts
CHANGED
|
@@ -228,9 +228,9 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
228
228
|
DuplicateIndex: GenericPalletError<Rv>;
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* Slash record
|
|
231
|
+
* Slash record index out of bounds.
|
|
232
232
|
**/
|
|
233
|
-
|
|
233
|
+
InvalidSlashIndex: GenericPalletError<Rv>;
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* Cannot have a validator or nominator role, with value less than the minimum defined by
|
|
@@ -264,6 +264,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
264
264
|
**/
|
|
265
265
|
InvalidNumberOfNominations: GenericPalletError<Rv>;
|
|
266
266
|
|
|
267
|
+
/**
|
|
268
|
+
* Items are not sorted and unique.
|
|
269
|
+
**/
|
|
270
|
+
NotSortedAndUnique: GenericPalletError<Rv>;
|
|
271
|
+
|
|
267
272
|
/**
|
|
268
273
|
* Rewards for this era have already been claimed for this validator.
|
|
269
274
|
**/
|
|
@@ -361,11 +366,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
361
366
|
**/
|
|
362
367
|
AlreadyMigrated: GenericPalletError<Rv>;
|
|
363
368
|
|
|
364
|
-
/**
|
|
365
|
-
* Era not yet started.
|
|
366
|
-
**/
|
|
367
|
-
EraNotStarted: GenericPalletError<Rv>;
|
|
368
|
-
|
|
369
369
|
/**
|
|
370
370
|
* Account is restricted from participation in staking. This may happen if the account is
|
|
371
371
|
* staking in another way already, such as via pool.
|
|
@@ -941,12 +941,13 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
941
941
|
SenderInSignatories: GenericPalletError<Rv>;
|
|
942
942
|
|
|
943
943
|
/**
|
|
944
|
-
* Multisig operation not found
|
|
944
|
+
* Multisig operation not found in storage.
|
|
945
945
|
**/
|
|
946
946
|
NotFound: GenericPalletError<Rv>;
|
|
947
947
|
|
|
948
948
|
/**
|
|
949
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
949
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
950
|
+
* its deposits.
|
|
950
951
|
**/
|
|
951
952
|
NotOwner: GenericPalletError<Rv>;
|
|
952
953
|
|
|
@@ -2652,6 +2653,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2652
2653
|
**/
|
|
2653
2654
|
LocalExecutionIncomplete: GenericPalletError<Rv>;
|
|
2654
2655
|
|
|
2656
|
+
/**
|
|
2657
|
+
* Too many locations authorized to alias origin.
|
|
2658
|
+
**/
|
|
2659
|
+
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* Expiry block number is in the past.
|
|
2663
|
+
**/
|
|
2664
|
+
ExpiresInPast: GenericPalletError<Rv>;
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* The alias to remove authorization for was not found.
|
|
2668
|
+
**/
|
|
2669
|
+
AliasNotFound: GenericPalletError<Rv>;
|
|
2670
|
+
|
|
2655
2671
|
/**
|
|
2656
2672
|
* Generic pallet error
|
|
2657
2673
|
**/
|
|
@@ -2741,6 +2757,45 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2741
2757
|
**/
|
|
2742
2758
|
[error: string]: GenericPalletError<Rv>;
|
|
2743
2759
|
};
|
|
2760
|
+
/**
|
|
2761
|
+
* Pallet `MetaTx`'s errors
|
|
2762
|
+
**/
|
|
2763
|
+
metaTx: {
|
|
2764
|
+
/**
|
|
2765
|
+
* Invalid proof (e.g. signature).
|
|
2766
|
+
**/
|
|
2767
|
+
BadProof: GenericPalletError<Rv>;
|
|
2768
|
+
|
|
2769
|
+
/**
|
|
2770
|
+
* The meta transaction is not yet valid (e.g. nonce too high).
|
|
2771
|
+
**/
|
|
2772
|
+
Future: GenericPalletError<Rv>;
|
|
2773
|
+
|
|
2774
|
+
/**
|
|
2775
|
+
* The meta transaction is outdated (e.g. nonce too low).
|
|
2776
|
+
**/
|
|
2777
|
+
Stale: GenericPalletError<Rv>;
|
|
2778
|
+
|
|
2779
|
+
/**
|
|
2780
|
+
* The meta transactions's birth block is ancient.
|
|
2781
|
+
**/
|
|
2782
|
+
AncientBirthBlock: GenericPalletError<Rv>;
|
|
2783
|
+
|
|
2784
|
+
/**
|
|
2785
|
+
* The transaction extension did not authorize any origin.
|
|
2786
|
+
**/
|
|
2787
|
+
UnknownOrigin: GenericPalletError<Rv>;
|
|
2788
|
+
|
|
2789
|
+
/**
|
|
2790
|
+
* The meta transaction is invalid.
|
|
2791
|
+
**/
|
|
2792
|
+
Invalid: GenericPalletError<Rv>;
|
|
2793
|
+
|
|
2794
|
+
/**
|
|
2795
|
+
* Generic pallet error
|
|
2796
|
+
**/
|
|
2797
|
+
[error: string]: GenericPalletError<Rv>;
|
|
2798
|
+
};
|
|
2744
2799
|
/**
|
|
2745
2800
|
* Pallet `Beefy`'s errors
|
|
2746
2801
|
**/
|
package/westend/events.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { DispatchError, AccountId32, H256,
|
|
4
|
+
import type { DispatchError, AccountId32, H256, Perbill, FixedBytes, Bytes, Result, FixedU128 } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemDispatchEventInfo,
|
|
7
7
|
FrameSupportTokensMiscBalanceStatus,
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
WestendRuntimeRuntimeParametersValue,
|
|
13
13
|
SpConsensusGrandpaAppPublic,
|
|
14
14
|
WestendRuntimeProxyType,
|
|
15
|
+
PalletProxyDepositKind,
|
|
15
16
|
PalletMultisigTimepoint,
|
|
16
17
|
PalletElectionProviderMultiPhaseElectionCompute,
|
|
17
18
|
SpNposElectionsElectionScore,
|
|
@@ -40,11 +41,12 @@ import type {
|
|
|
40
41
|
StagingXcmV5TraitsOutcome,
|
|
41
42
|
StagingXcmV5Location,
|
|
42
43
|
StagingXcmV5Xcm,
|
|
44
|
+
XcmV3TraitsSendError,
|
|
45
|
+
XcmV5TraitsError,
|
|
43
46
|
StagingXcmV5Response,
|
|
44
47
|
SpWeightsWeightV2Weight,
|
|
45
48
|
XcmVersionedAssets,
|
|
46
49
|
StagingXcmV5AssetAssets,
|
|
47
|
-
XcmV5TraitsError,
|
|
48
50
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
49
51
|
FrameSupportMessagesProcessMessageError,
|
|
50
52
|
} from './types.js';
|
|
@@ -99,6 +101,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
99
101
|
**/
|
|
100
102
|
UpgradeAuthorized: GenericPalletEvent<Rv, 'System', 'UpgradeAuthorized', { codeHash: H256; checkVersion: boolean }>;
|
|
101
103
|
|
|
104
|
+
/**
|
|
105
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
106
|
+
**/
|
|
107
|
+
RejectedInvalidAuthorizedUpgrade: GenericPalletEvent<
|
|
108
|
+
Rv,
|
|
109
|
+
'System',
|
|
110
|
+
'RejectedInvalidAuthorizedUpgrade',
|
|
111
|
+
{ codeHash: H256; error: DispatchError }
|
|
112
|
+
>;
|
|
113
|
+
|
|
102
114
|
/**
|
|
103
115
|
* Generic pallet event
|
|
104
116
|
**/
|
|
@@ -123,6 +135,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
123
135
|
**/
|
|
124
136
|
IndexFrozen: GenericPalletEvent<Rv, 'Indices', 'IndexFrozen', { index: number; who: AccountId32 }>;
|
|
125
137
|
|
|
138
|
+
/**
|
|
139
|
+
* A deposit to reserve an index has been poked/reconsidered.
|
|
140
|
+
**/
|
|
141
|
+
DepositPoked: GenericPalletEvent<
|
|
142
|
+
Rv,
|
|
143
|
+
'Indices',
|
|
144
|
+
'DepositPoked',
|
|
145
|
+
{ who: AccountId32; index: number; oldDeposit: bigint; newDeposit: bigint }
|
|
146
|
+
>;
|
|
147
|
+
|
|
126
148
|
/**
|
|
127
149
|
* Generic pallet event
|
|
128
150
|
**/
|
|
@@ -304,6 +326,17 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
304
326
|
**/
|
|
305
327
|
Slashed: GenericPalletEvent<Rv, 'Staking', 'Slashed', { staker: AccountId32; amount: bigint }>;
|
|
306
328
|
|
|
329
|
+
/**
|
|
330
|
+
* A slash for the given validator, for the given percentage of their stake, at the given
|
|
331
|
+
* era as been reported.
|
|
332
|
+
**/
|
|
333
|
+
SlashReported: GenericPalletEvent<
|
|
334
|
+
Rv,
|
|
335
|
+
'Staking',
|
|
336
|
+
'SlashReported',
|
|
337
|
+
{ validator: AccountId32; fraction: Perbill; slashEra: number }
|
|
338
|
+
>;
|
|
339
|
+
|
|
307
340
|
/**
|
|
308
341
|
* An old slashing report from a prior era was discarded because it could
|
|
309
342
|
* not be processed.
|
|
@@ -383,6 +416,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
383
416
|
* Targets size limit reached.
|
|
384
417
|
**/
|
|
385
418
|
SnapshotTargetsSizeExceeded: GenericPalletEvent<Rv, 'Staking', 'SnapshotTargetsSizeExceeded', { size: number }>;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* A new force era mode was set.
|
|
422
|
+
**/
|
|
386
423
|
ForceEra: GenericPalletEvent<Rv, 'Staking', 'ForceEra', { mode: PalletStakingForcing }>;
|
|
387
424
|
|
|
388
425
|
/**
|
|
@@ -401,55 +438,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
401
438
|
{ stash: AccountId32; forceWithdraw: bigint }
|
|
402
439
|
>;
|
|
403
440
|
|
|
404
|
-
/**
|
|
405
|
-
* A page from a multi-page election was fetched. A number of these are followed by
|
|
406
|
-
* `StakersElected`.
|
|
407
|
-
*
|
|
408
|
-
* `Ok(count)` indicates the give number of stashes were added.
|
|
409
|
-
* `Err(index)` indicates that the stashes after index were dropped.
|
|
410
|
-
* `Err(0)` indicates that an error happened but no stashes were dropped nor added.
|
|
411
|
-
*
|
|
412
|
-
* The error indicates that a number of validators were dropped due to excess size, but
|
|
413
|
-
* the overall election will continue.
|
|
414
|
-
**/
|
|
415
|
-
PagedElectionProceeded: GenericPalletEvent<
|
|
416
|
-
Rv,
|
|
417
|
-
'Staking',
|
|
418
|
-
'PagedElectionProceeded',
|
|
419
|
-
{ page: number; result: Result<number, number> }
|
|
420
|
-
>;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* An offence for the given validator, for the given percentage of their stake, at the
|
|
424
|
-
* given era as been reported.
|
|
425
|
-
**/
|
|
426
|
-
OffenceReported: GenericPalletEvent<
|
|
427
|
-
Rv,
|
|
428
|
-
'Staking',
|
|
429
|
-
'OffenceReported',
|
|
430
|
-
{ offenceEra: number; validator: AccountId32; fraction: Perbill }
|
|
431
|
-
>;
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* An offence has been processed and the corresponding slash has been computed.
|
|
435
|
-
**/
|
|
436
|
-
SlashComputed: GenericPalletEvent<
|
|
437
|
-
Rv,
|
|
438
|
-
'Staking',
|
|
439
|
-
'SlashComputed',
|
|
440
|
-
{ offenceEra: number; slashEra: number; offender: AccountId32; page: number }
|
|
441
|
-
>;
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* An unapplied slash has been cancelled.
|
|
445
|
-
**/
|
|
446
|
-
SlashCancelled: GenericPalletEvent<
|
|
447
|
-
Rv,
|
|
448
|
-
'Staking',
|
|
449
|
-
'SlashCancelled',
|
|
450
|
-
{ slashEra: number; slashKey: [AccountId32, Perbill, number]; payout: bigint }
|
|
451
|
-
>;
|
|
452
|
-
|
|
453
441
|
/**
|
|
454
442
|
* Generic pallet event
|
|
455
443
|
**/
|
|
@@ -946,6 +934,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
946
934
|
{ task: [number, number]; id?: FixedBytes<32> | undefined }
|
|
947
935
|
>;
|
|
948
936
|
|
|
937
|
+
/**
|
|
938
|
+
* Agenda is incomplete from `when`.
|
|
939
|
+
**/
|
|
940
|
+
AgendaIncomplete: GenericPalletEvent<Rv, 'Scheduler', 'AgendaIncomplete', { when: number }>;
|
|
941
|
+
|
|
949
942
|
/**
|
|
950
943
|
* Generic pallet event
|
|
951
944
|
**/
|
|
@@ -1084,6 +1077,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1084
1077
|
{ delegator: AccountId32; delegatee: AccountId32; proxyType: WestendRuntimeProxyType; delay: number }
|
|
1085
1078
|
>;
|
|
1086
1079
|
|
|
1080
|
+
/**
|
|
1081
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1082
|
+
**/
|
|
1083
|
+
DepositPoked: GenericPalletEvent<
|
|
1084
|
+
Rv,
|
|
1085
|
+
'Proxy',
|
|
1086
|
+
'DepositPoked',
|
|
1087
|
+
{ who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint }
|
|
1088
|
+
>;
|
|
1089
|
+
|
|
1087
1090
|
/**
|
|
1088
1091
|
* Generic pallet event
|
|
1089
1092
|
**/
|
|
@@ -1139,6 +1142,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1139
1142
|
{ cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
|
|
1140
1143
|
>;
|
|
1141
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
1147
|
+
**/
|
|
1148
|
+
DepositPoked: GenericPalletEvent<
|
|
1149
|
+
Rv,
|
|
1150
|
+
'Multisig',
|
|
1151
|
+
'DepositPoked',
|
|
1152
|
+
{ who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint }
|
|
1153
|
+
>;
|
|
1154
|
+
|
|
1142
1155
|
/**
|
|
1143
1156
|
* Generic pallet event
|
|
1144
1157
|
**/
|
|
@@ -2813,7 +2826,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2813
2826
|
Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
2814
2827
|
|
|
2815
2828
|
/**
|
|
2816
|
-
*
|
|
2829
|
+
* An XCM message was sent.
|
|
2817
2830
|
**/
|
|
2818
2831
|
Sent: GenericPalletEvent<
|
|
2819
2832
|
Rv,
|
|
@@ -2827,6 +2840,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2827
2840
|
}
|
|
2828
2841
|
>;
|
|
2829
2842
|
|
|
2843
|
+
/**
|
|
2844
|
+
* An XCM message failed to send.
|
|
2845
|
+
**/
|
|
2846
|
+
SendFailed: GenericPalletEvent<
|
|
2847
|
+
Rv,
|
|
2848
|
+
'XcmPallet',
|
|
2849
|
+
'SendFailed',
|
|
2850
|
+
{
|
|
2851
|
+
origin: StagingXcmV5Location;
|
|
2852
|
+
destination: StagingXcmV5Location;
|
|
2853
|
+
error: XcmV3TraitsSendError;
|
|
2854
|
+
messageId: FixedBytes<32>;
|
|
2855
|
+
}
|
|
2856
|
+
>;
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* An XCM message failed to process.
|
|
2860
|
+
**/
|
|
2861
|
+
ProcessXcmError: GenericPalletEvent<
|
|
2862
|
+
Rv,
|
|
2863
|
+
'XcmPallet',
|
|
2864
|
+
'ProcessXcmError',
|
|
2865
|
+
{ origin: StagingXcmV5Location; error: XcmV5TraitsError; messageId: FixedBytes<32> }
|
|
2866
|
+
>;
|
|
2867
|
+
|
|
2830
2868
|
/**
|
|
2831
2869
|
* Query response received which does not match a registered query. This may be because a
|
|
2832
2870
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
@@ -3080,6 +3118,37 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3080
3118
|
**/
|
|
3081
3119
|
VersionMigrationFinished: GenericPalletEvent<Rv, 'XcmPallet', 'VersionMigrationFinished', { version: number }>;
|
|
3082
3120
|
|
|
3121
|
+
/**
|
|
3122
|
+
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
|
3123
|
+
* `expiry` block number.
|
|
3124
|
+
**/
|
|
3125
|
+
AliasAuthorized: GenericPalletEvent<
|
|
3126
|
+
Rv,
|
|
3127
|
+
'XcmPallet',
|
|
3128
|
+
'AliasAuthorized',
|
|
3129
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location; expiry?: bigint | undefined }
|
|
3130
|
+
>;
|
|
3131
|
+
|
|
3132
|
+
/**
|
|
3133
|
+
* `target` removed alias authorization for `aliaser`.
|
|
3134
|
+
**/
|
|
3135
|
+
AliasAuthorizationRemoved: GenericPalletEvent<
|
|
3136
|
+
Rv,
|
|
3137
|
+
'XcmPallet',
|
|
3138
|
+
'AliasAuthorizationRemoved',
|
|
3139
|
+
{ aliaser: StagingXcmV5Location; target: StagingXcmV5Location }
|
|
3140
|
+
>;
|
|
3141
|
+
|
|
3142
|
+
/**
|
|
3143
|
+
* `target` removed all alias authorizations.
|
|
3144
|
+
**/
|
|
3145
|
+
AliasesAuthorizationsRemoved: GenericPalletEvent<
|
|
3146
|
+
Rv,
|
|
3147
|
+
'XcmPallet',
|
|
3148
|
+
'AliasesAuthorizationsRemoved',
|
|
3149
|
+
{ target: StagingXcmV5Location }
|
|
3150
|
+
>;
|
|
3151
|
+
|
|
3083
3152
|
/**
|
|
3084
3153
|
* Generic pallet event
|
|
3085
3154
|
**/
|
|
@@ -3249,6 +3318,28 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3249
3318
|
**/
|
|
3250
3319
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
3251
3320
|
};
|
|
3321
|
+
/**
|
|
3322
|
+
* Pallet `MetaTx`'s events
|
|
3323
|
+
**/
|
|
3324
|
+
metaTx: {
|
|
3325
|
+
/**
|
|
3326
|
+
* A meta transaction has been dispatched.
|
|
3327
|
+
*
|
|
3328
|
+
* Contains the dispatch result of the meta transaction along with post-dispatch
|
|
3329
|
+
* information.
|
|
3330
|
+
**/
|
|
3331
|
+
Dispatched: GenericPalletEvent<
|
|
3332
|
+
Rv,
|
|
3333
|
+
'MetaTx',
|
|
3334
|
+
'Dispatched',
|
|
3335
|
+
{ result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
|
|
3336
|
+
>;
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* Generic pallet event
|
|
3340
|
+
**/
|
|
3341
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
3342
|
+
};
|
|
3252
3343
|
/**
|
|
3253
3344
|
* Pallet `IdentityMigrator`'s events
|
|
3254
3345
|
**/
|
package/westend/index.d.ts
CHANGED