@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.
@@ -7,10 +7,11 @@ import type {
7
7
  H256,
8
8
  FixedBytes,
9
9
  Bytes,
10
- FixedU128,
11
10
  Result,
11
+ FixedU128,
12
12
  Permill,
13
13
  H160,
14
+ Perbill,
14
15
  } from 'dedot/codecs';
15
16
  import type {
16
17
  FrameSystemDispatchEventInfo,
@@ -36,6 +37,26 @@ import type {
36
37
  PalletNftsPalletAttributes,
37
38
  PalletStateTrieMigrationMigrationCompute,
38
39
  PalletStateTrieMigrationError,
40
+ PalletStakingAsyncRewardDestination,
41
+ PalletStakingAsyncValidatorPrefs,
42
+ PalletStakingAsyncForcing,
43
+ PalletNominationPoolsPoolState,
44
+ PalletNominationPoolsCommissionChangeRate,
45
+ PalletNominationPoolsCommissionClaimPermission,
46
+ PalletNominationPoolsClaimPermission,
47
+ PalletStakingAsyncRcClientUnexpectedKind,
48
+ PalletElectionProviderMultiBlockPhase,
49
+ PalletElectionProviderMultiBlockVerifierFeasibilityError,
50
+ SpNposElectionsElectionScore,
51
+ PalletConvictionVotingVoteAccountVote,
52
+ FrameSupportPreimagesBounded,
53
+ PalletConvictionVotingTally,
54
+ FrameSupportDispatchPostDispatchInfo,
55
+ SpRuntimeDispatchErrorWithPostInfo,
56
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset,
57
+ PolkadotParachainPrimitivesPrimitivesId,
58
+ PalletAhMigratorMigrationStage,
59
+ PalletAhMigratorPalletEventName,
39
60
  } from './types.js';
40
61
 
41
62
  export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
@@ -292,6 +313,189 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
292
313
  **/
293
314
  [prop: string]: GenericPalletEvent<Rv>;
294
315
  };
316
+ /**
317
+ * Pallet `Preimage`'s events
318
+ **/
319
+ preimage: {
320
+ /**
321
+ * A preimage has been noted.
322
+ **/
323
+ Noted: GenericPalletEvent<Rv, 'Preimage', 'Noted', { hash: H256 }>;
324
+
325
+ /**
326
+ * A preimage has been requested.
327
+ **/
328
+ Requested: GenericPalletEvent<Rv, 'Preimage', 'Requested', { hash: H256 }>;
329
+
330
+ /**
331
+ * A preimage has ben cleared.
332
+ **/
333
+ Cleared: GenericPalletEvent<Rv, 'Preimage', 'Cleared', { hash: H256 }>;
334
+
335
+ /**
336
+ * Generic pallet event
337
+ **/
338
+ [prop: string]: GenericPalletEvent<Rv>;
339
+ };
340
+ /**
341
+ * Pallet `Scheduler`'s events
342
+ **/
343
+ scheduler: {
344
+ /**
345
+ * Scheduled some task.
346
+ **/
347
+ Scheduled: GenericPalletEvent<Rv, 'Scheduler', 'Scheduled', { when: number; index: number }>;
348
+
349
+ /**
350
+ * Canceled some task.
351
+ **/
352
+ Canceled: GenericPalletEvent<Rv, 'Scheduler', 'Canceled', { when: number; index: number }>;
353
+
354
+ /**
355
+ * Dispatched some task.
356
+ **/
357
+ Dispatched: GenericPalletEvent<
358
+ Rv,
359
+ 'Scheduler',
360
+ 'Dispatched',
361
+ { task: [number, number]; id?: FixedBytes<32> | undefined; result: Result<[], DispatchError> }
362
+ >;
363
+
364
+ /**
365
+ * Set a retry configuration for some task.
366
+ **/
367
+ RetrySet: GenericPalletEvent<
368
+ Rv,
369
+ 'Scheduler',
370
+ 'RetrySet',
371
+ { task: [number, number]; id?: FixedBytes<32> | undefined; period: number; retries: number }
372
+ >;
373
+
374
+ /**
375
+ * Cancel a retry configuration for some task.
376
+ **/
377
+ RetryCancelled: GenericPalletEvent<
378
+ Rv,
379
+ 'Scheduler',
380
+ 'RetryCancelled',
381
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
382
+ >;
383
+
384
+ /**
385
+ * The call for the provided hash was not found so the task has been aborted.
386
+ **/
387
+ CallUnavailable: GenericPalletEvent<
388
+ Rv,
389
+ 'Scheduler',
390
+ 'CallUnavailable',
391
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
392
+ >;
393
+
394
+ /**
395
+ * The given task was unable to be renewed since the agenda is full at that block.
396
+ **/
397
+ PeriodicFailed: GenericPalletEvent<
398
+ Rv,
399
+ 'Scheduler',
400
+ 'PeriodicFailed',
401
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
402
+ >;
403
+
404
+ /**
405
+ * The given task was unable to be retried since the agenda is full at that block or there
406
+ * was not enough weight to reschedule it.
407
+ **/
408
+ RetryFailed: GenericPalletEvent<
409
+ Rv,
410
+ 'Scheduler',
411
+ 'RetryFailed',
412
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
413
+ >;
414
+
415
+ /**
416
+ * The given task can never be executed since it is overweight.
417
+ **/
418
+ PermanentlyOverweight: GenericPalletEvent<
419
+ Rv,
420
+ 'Scheduler',
421
+ 'PermanentlyOverweight',
422
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
423
+ >;
424
+
425
+ /**
426
+ * Agenda is incomplete from `when`.
427
+ **/
428
+ AgendaIncomplete: GenericPalletEvent<Rv, 'Scheduler', 'AgendaIncomplete', { when: number }>;
429
+
430
+ /**
431
+ * Generic pallet event
432
+ **/
433
+ [prop: string]: GenericPalletEvent<Rv>;
434
+ };
435
+ /**
436
+ * Pallet `Sudo`'s events
437
+ **/
438
+ sudo: {
439
+ /**
440
+ * A sudo call just took place.
441
+ **/
442
+ Sudid: GenericPalletEvent<
443
+ Rv,
444
+ 'Sudo',
445
+ 'Sudid',
446
+ {
447
+ /**
448
+ * The result of the call made by the sudo user.
449
+ **/
450
+ sudoResult: Result<[], DispatchError>;
451
+ }
452
+ >;
453
+
454
+ /**
455
+ * The sudo key has been updated.
456
+ **/
457
+ KeyChanged: GenericPalletEvent<
458
+ Rv,
459
+ 'Sudo',
460
+ 'KeyChanged',
461
+ {
462
+ /**
463
+ * The old sudo key (if one was previously set).
464
+ **/
465
+ old?: AccountId32 | undefined;
466
+
467
+ /**
468
+ * The new sudo key (if one was set).
469
+ **/
470
+ new: AccountId32;
471
+ }
472
+ >;
473
+
474
+ /**
475
+ * The key was permanently removed.
476
+ **/
477
+ KeyRemoved: GenericPalletEvent<Rv, 'Sudo', 'KeyRemoved', null>;
478
+
479
+ /**
480
+ * A [sudo_as](Pallet::sudo_as) call just took place.
481
+ **/
482
+ SudoAsDone: GenericPalletEvent<
483
+ Rv,
484
+ 'Sudo',
485
+ 'SudoAsDone',
486
+ {
487
+ /**
488
+ * The result of the call made by the sudo user.
489
+ **/
490
+ sudoResult: Result<[], DispatchError>;
491
+ }
492
+ >;
493
+
494
+ /**
495
+ * Generic pallet event
496
+ **/
497
+ [prop: string]: GenericPalletEvent<Rv>;
498
+ };
295
499
  /**
296
500
  * Pallet `Balances`'s events
297
501
  **/
@@ -463,6 +667,36 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
463
667
  **/
464
668
  [prop: string]: GenericPalletEvent<Rv>;
465
669
  };
670
+ /**
671
+ * Pallet `Vesting`'s events
672
+ **/
673
+ vesting: {
674
+ /**
675
+ * A vesting schedule has been created.
676
+ **/
677
+ VestingCreated: GenericPalletEvent<
678
+ Rv,
679
+ 'Vesting',
680
+ 'VestingCreated',
681
+ { account: AccountId32; scheduleIndex: number }
682
+ >;
683
+
684
+ /**
685
+ * The amount vested has been updated. This could indicate a change in funds available.
686
+ * The balance given is the amount which is left unvested (and thus locked).
687
+ **/
688
+ VestingUpdated: GenericPalletEvent<Rv, 'Vesting', 'VestingUpdated', { account: AccountId32; unvested: bigint }>;
689
+
690
+ /**
691
+ * An \[account\] has become fully vested.
692
+ **/
693
+ VestingCompleted: GenericPalletEvent<Rv, 'Vesting', 'VestingCompleted', { account: AccountId32 }>;
694
+
695
+ /**
696
+ * Generic pallet event
697
+ **/
698
+ [prop: string]: GenericPalletEvent<Rv>;
699
+ };
466
700
  /**
467
701
  * Pallet `CollatorSelection`'s events
468
702
  **/
@@ -1353,6 +1587,40 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1353
1587
  **/
1354
1588
  [prop: string]: GenericPalletEvent<Rv>;
1355
1589
  };
1590
+ /**
1591
+ * Pallet `Indices`'s events
1592
+ **/
1593
+ indices: {
1594
+ /**
1595
+ * A account index was assigned.
1596
+ **/
1597
+ IndexAssigned: GenericPalletEvent<Rv, 'Indices', 'IndexAssigned', { who: AccountId32; index: number }>;
1598
+
1599
+ /**
1600
+ * A account index has been freed up (unassigned).
1601
+ **/
1602
+ IndexFreed: GenericPalletEvent<Rv, 'Indices', 'IndexFreed', { index: number }>;
1603
+
1604
+ /**
1605
+ * A account index has been frozen to its current account ID.
1606
+ **/
1607
+ IndexFrozen: GenericPalletEvent<Rv, 'Indices', 'IndexFrozen', { index: number; who: AccountId32 }>;
1608
+
1609
+ /**
1610
+ * A deposit to reserve an index has been poked/reconsidered.
1611
+ **/
1612
+ DepositPoked: GenericPalletEvent<
1613
+ Rv,
1614
+ 'Indices',
1615
+ 'DepositPoked',
1616
+ { who: AccountId32; index: number; oldDeposit: bigint; newDeposit: bigint }
1617
+ >;
1618
+
1619
+ /**
1620
+ * Generic pallet event
1621
+ **/
1622
+ [prop: string]: GenericPalletEvent<Rv>;
1623
+ };
1356
1624
  /**
1357
1625
  * Pallet `Assets`'s events
1358
1626
  **/
@@ -3136,34 +3404,1368 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3136
3404
  [prop: string]: GenericPalletEvent<Rv>;
3137
3405
  };
3138
3406
  /**
3139
- * Pallet `AssetConversionMigration`'s events
3407
+ * Pallet `Staking`'s events
3140
3408
  **/
3141
- assetConversionMigration: {
3409
+ staking: {
3142
3410
  /**
3143
- * Indicates that a pool has been migrated to the new account ID.
3411
+ * The era payout has been set; the first balance is the validator-payout; the second is
3412
+ * the remainder from the maximum amount of reward.
3144
3413
  **/
3145
- MigratedToNewAccount: GenericPalletEvent<
3414
+ EraPaid: GenericPalletEvent<
3146
3415
  Rv,
3147
- 'AssetConversionMigration',
3148
- 'MigratedToNewAccount',
3149
- {
3150
- /**
3151
- * Pool's ID.
3152
- **/
3153
- poolId: [StagingXcmV5Location, StagingXcmV5Location];
3416
+ 'Staking',
3417
+ 'EraPaid',
3418
+ { eraIndex: number; validatorPayout: bigint; remainder: bigint }
3419
+ >;
3154
3420
 
3155
- /**
3156
- * Pool's prior account ID.
3157
- **/
3158
- priorAccount: AccountId32;
3421
+ /**
3422
+ * The nominator has been rewarded by this amount to this destination.
3423
+ **/
3424
+ Rewarded: GenericPalletEvent<
3425
+ Rv,
3426
+ 'Staking',
3427
+ 'Rewarded',
3428
+ { stash: AccountId32; dest: PalletStakingAsyncRewardDestination; amount: bigint }
3429
+ >;
3159
3430
 
3160
- /**
3161
- * Pool's new account ID.
3162
- **/
3163
- newAccount: AccountId32;
3164
- }
3431
+ /**
3432
+ * A staker (validator or nominator) has been slashed by the given amount.
3433
+ **/
3434
+ Slashed: GenericPalletEvent<Rv, 'Staking', 'Slashed', { staker: AccountId32; amount: bigint }>;
3435
+
3436
+ /**
3437
+ * An old slashing report from a prior era was discarded because it could
3438
+ * not be processed.
3439
+ **/
3440
+ OldSlashingReportDiscarded: GenericPalletEvent<
3441
+ Rv,
3442
+ 'Staking',
3443
+ 'OldSlashingReportDiscarded',
3444
+ { sessionIndex: number }
3445
+ >;
3446
+
3447
+ /**
3448
+ * An account has bonded this amount. \[stash, amount\]
3449
+ *
3450
+ * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
3451
+ * it will not be emitted for staking rewards when they are added to stake.
3452
+ **/
3453
+ Bonded: GenericPalletEvent<Rv, 'Staking', 'Bonded', { stash: AccountId32; amount: bigint }>;
3454
+
3455
+ /**
3456
+ * An account has unbonded this amount.
3457
+ **/
3458
+ Unbonded: GenericPalletEvent<Rv, 'Staking', 'Unbonded', { stash: AccountId32; amount: bigint }>;
3459
+
3460
+ /**
3461
+ * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
3462
+ * from the unlocking queue.
3463
+ **/
3464
+ Withdrawn: GenericPalletEvent<Rv, 'Staking', 'Withdrawn', { stash: AccountId32; amount: bigint }>;
3465
+
3466
+ /**
3467
+ * A subsequent event of `Withdrawn`, indicating that `stash` was fully removed from the
3468
+ * system.
3469
+ **/
3470
+ StakerRemoved: GenericPalletEvent<Rv, 'Staking', 'StakerRemoved', { stash: AccountId32 }>;
3471
+
3472
+ /**
3473
+ * A nominator has been kicked from a validator.
3474
+ **/
3475
+ Kicked: GenericPalletEvent<Rv, 'Staking', 'Kicked', { nominator: AccountId32; stash: AccountId32 }>;
3476
+
3477
+ /**
3478
+ * An account has stopped participating as either a validator or nominator.
3479
+ **/
3480
+ Chilled: GenericPalletEvent<Rv, 'Staking', 'Chilled', { stash: AccountId32 }>;
3481
+
3482
+ /**
3483
+ * A Page of stakers rewards are getting paid. `next` is `None` if all pages are claimed.
3484
+ **/
3485
+ PayoutStarted: GenericPalletEvent<
3486
+ Rv,
3487
+ 'Staking',
3488
+ 'PayoutStarted',
3489
+ { eraIndex: number; validatorStash: AccountId32; page: number; next?: number | undefined }
3490
+ >;
3491
+
3492
+ /**
3493
+ * A validator has set their preferences.
3494
+ **/
3495
+ ValidatorPrefsSet: GenericPalletEvent<
3496
+ Rv,
3497
+ 'Staking',
3498
+ 'ValidatorPrefsSet',
3499
+ { stash: AccountId32; prefs: PalletStakingAsyncValidatorPrefs }
3500
+ >;
3501
+
3502
+ /**
3503
+ * Voters size limit reached.
3504
+ **/
3505
+ SnapshotVotersSizeExceeded: GenericPalletEvent<Rv, 'Staking', 'SnapshotVotersSizeExceeded', { size: number }>;
3506
+
3507
+ /**
3508
+ * Targets size limit reached.
3509
+ **/
3510
+ SnapshotTargetsSizeExceeded: GenericPalletEvent<Rv, 'Staking', 'SnapshotTargetsSizeExceeded', { size: number }>;
3511
+ ForceEra: GenericPalletEvent<Rv, 'Staking', 'ForceEra', { mode: PalletStakingAsyncForcing }>;
3512
+
3513
+ /**
3514
+ * Report of a controller batch deprecation.
3515
+ **/
3516
+ ControllerBatchDeprecated: GenericPalletEvent<Rv, 'Staking', 'ControllerBatchDeprecated', { failures: number }>;
3517
+
3518
+ /**
3519
+ * Staking balance migrated from locks to holds, with any balance that could not be held
3520
+ * is force withdrawn.
3521
+ **/
3522
+ CurrencyMigrated: GenericPalletEvent<
3523
+ Rv,
3524
+ 'Staking',
3525
+ 'CurrencyMigrated',
3526
+ { stash: AccountId32; forceWithdraw: bigint }
3165
3527
  >;
3166
3528
 
3529
+ /**
3530
+ * A page from a multi-page election was fetched. A number of these are followed by
3531
+ * `StakersElected`.
3532
+ *
3533
+ * `Ok(count)` indicates the give number of stashes were added.
3534
+ * `Err(index)` indicates that the stashes after index were dropped.
3535
+ * `Err(0)` indicates that an error happened but no stashes were dropped nor added.
3536
+ *
3537
+ * The error indicates that a number of validators were dropped due to excess size, but
3538
+ * the overall election will continue.
3539
+ **/
3540
+ PagedElectionProceeded: GenericPalletEvent<
3541
+ Rv,
3542
+ 'Staking',
3543
+ 'PagedElectionProceeded',
3544
+ { page: number; result: Result<number, number> }
3545
+ >;
3546
+
3547
+ /**
3548
+ * An offence for the given validator, for the given percentage of their stake, at the
3549
+ * given era as been reported.
3550
+ **/
3551
+ OffenceReported: GenericPalletEvent<
3552
+ Rv,
3553
+ 'Staking',
3554
+ 'OffenceReported',
3555
+ { offenceEra: number; validator: AccountId32; fraction: Perbill }
3556
+ >;
3557
+
3558
+ /**
3559
+ * An offence has been processed and the corresponding slash has been computed.
3560
+ **/
3561
+ SlashComputed: GenericPalletEvent<
3562
+ Rv,
3563
+ 'Staking',
3564
+ 'SlashComputed',
3565
+ { offenceEra: number; slashEra: number; offender: AccountId32; page: number }
3566
+ >;
3567
+
3568
+ /**
3569
+ * An unapplied slash has been cancelled.
3570
+ **/
3571
+ SlashCancelled: GenericPalletEvent<
3572
+ Rv,
3573
+ 'Staking',
3574
+ 'SlashCancelled',
3575
+ { slashEra: number; slashKey: [AccountId32, Perbill, number]; payout: bigint }
3576
+ >;
3577
+
3578
+ /**
3579
+ * Session change has been triggered.
3580
+ *
3581
+ * If planned_era is one era ahead of active_era, it implies new era is being planned and
3582
+ * election is ongoing.
3583
+ **/
3584
+ SessionRotated: GenericPalletEvent<
3585
+ Rv,
3586
+ 'Staking',
3587
+ 'SessionRotated',
3588
+ { startingSession: number; activeEra: number; plannedEra: number }
3589
+ >;
3590
+
3591
+ /**
3592
+ * Generic pallet event
3593
+ **/
3594
+ [prop: string]: GenericPalletEvent<Rv>;
3595
+ };
3596
+ /**
3597
+ * Pallet `NominationPools`'s events
3598
+ **/
3599
+ nominationPools: {
3600
+ /**
3601
+ * A pool has been created.
3602
+ **/
3603
+ Created: GenericPalletEvent<Rv, 'NominationPools', 'Created', { depositor: AccountId32; poolId: number }>;
3604
+
3605
+ /**
3606
+ * A member has became bonded in a pool.
3607
+ **/
3608
+ Bonded: GenericPalletEvent<
3609
+ Rv,
3610
+ 'NominationPools',
3611
+ 'Bonded',
3612
+ { member: AccountId32; poolId: number; bonded: bigint; joined: boolean }
3613
+ >;
3614
+
3615
+ /**
3616
+ * A payout has been made to a member.
3617
+ **/
3618
+ PaidOut: GenericPalletEvent<
3619
+ Rv,
3620
+ 'NominationPools',
3621
+ 'PaidOut',
3622
+ { member: AccountId32; poolId: number; payout: bigint }
3623
+ >;
3624
+
3625
+ /**
3626
+ * A member has unbonded from their pool.
3627
+ *
3628
+ * - `balance` is the corresponding balance of the number of points that has been
3629
+ * requested to be unbonded (the argument of the `unbond` transaction) from the bonded
3630
+ * pool.
3631
+ * - `points` is the number of points that are issued as a result of `balance` being
3632
+ * dissolved into the corresponding unbonding pool.
3633
+ * - `era` is the era in which the balance will be unbonded.
3634
+ * In the absence of slashing, these values will match. In the presence of slashing, the
3635
+ * number of points that are issued in the unbonding pool will be less than the amount
3636
+ * requested to be unbonded.
3637
+ **/
3638
+ Unbonded: GenericPalletEvent<
3639
+ Rv,
3640
+ 'NominationPools',
3641
+ 'Unbonded',
3642
+ { member: AccountId32; poolId: number; balance: bigint; points: bigint; era: number }
3643
+ >;
3644
+
3645
+ /**
3646
+ * A member has withdrawn from their pool.
3647
+ *
3648
+ * The given number of `points` have been dissolved in return of `balance`.
3649
+ *
3650
+ * Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance
3651
+ * will be 1.
3652
+ **/
3653
+ Withdrawn: GenericPalletEvent<
3654
+ Rv,
3655
+ 'NominationPools',
3656
+ 'Withdrawn',
3657
+ { member: AccountId32; poolId: number; balance: bigint; points: bigint }
3658
+ >;
3659
+
3660
+ /**
3661
+ * A pool has been destroyed.
3662
+ **/
3663
+ Destroyed: GenericPalletEvent<Rv, 'NominationPools', 'Destroyed', { poolId: number }>;
3664
+
3665
+ /**
3666
+ * The state of a pool has changed
3667
+ **/
3668
+ StateChanged: GenericPalletEvent<
3669
+ Rv,
3670
+ 'NominationPools',
3671
+ 'StateChanged',
3672
+ { poolId: number; newState: PalletNominationPoolsPoolState }
3673
+ >;
3674
+
3675
+ /**
3676
+ * A member has been removed from a pool.
3677
+ *
3678
+ * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
3679
+ * Any funds that are still delegated (i.e. dangling delegation) are released and are
3680
+ * represented by `released_balance`.
3681
+ **/
3682
+ MemberRemoved: GenericPalletEvent<
3683
+ Rv,
3684
+ 'NominationPools',
3685
+ 'MemberRemoved',
3686
+ { poolId: number; member: AccountId32; releasedBalance: bigint }
3687
+ >;
3688
+
3689
+ /**
3690
+ * The roles of a pool have been updated to the given new roles. Note that the depositor
3691
+ * can never change.
3692
+ **/
3693
+ RolesUpdated: GenericPalletEvent<
3694
+ Rv,
3695
+ 'NominationPools',
3696
+ 'RolesUpdated',
3697
+ { root?: AccountId32 | undefined; bouncer?: AccountId32 | undefined; nominator?: AccountId32 | undefined }
3698
+ >;
3699
+
3700
+ /**
3701
+ * The active balance of pool `pool_id` has been slashed to `balance`.
3702
+ **/
3703
+ PoolSlashed: GenericPalletEvent<Rv, 'NominationPools', 'PoolSlashed', { poolId: number; balance: bigint }>;
3704
+
3705
+ /**
3706
+ * The unbond pool at `era` of pool `pool_id` has been slashed to `balance`.
3707
+ **/
3708
+ UnbondingPoolSlashed: GenericPalletEvent<
3709
+ Rv,
3710
+ 'NominationPools',
3711
+ 'UnbondingPoolSlashed',
3712
+ { poolId: number; era: number; balance: bigint }
3713
+ >;
3714
+
3715
+ /**
3716
+ * A pool's commission setting has been changed.
3717
+ **/
3718
+ PoolCommissionUpdated: GenericPalletEvent<
3719
+ Rv,
3720
+ 'NominationPools',
3721
+ 'PoolCommissionUpdated',
3722
+ { poolId: number; current?: [Perbill, AccountId32] | undefined }
3723
+ >;
3724
+
3725
+ /**
3726
+ * A pool's maximum commission setting has been changed.
3727
+ **/
3728
+ PoolMaxCommissionUpdated: GenericPalletEvent<
3729
+ Rv,
3730
+ 'NominationPools',
3731
+ 'PoolMaxCommissionUpdated',
3732
+ { poolId: number; maxCommission: Perbill }
3733
+ >;
3734
+
3735
+ /**
3736
+ * A pool's commission `change_rate` has been changed.
3737
+ **/
3738
+ PoolCommissionChangeRateUpdated: GenericPalletEvent<
3739
+ Rv,
3740
+ 'NominationPools',
3741
+ 'PoolCommissionChangeRateUpdated',
3742
+ { poolId: number; changeRate: PalletNominationPoolsCommissionChangeRate }
3743
+ >;
3744
+
3745
+ /**
3746
+ * Pool commission claim permission has been updated.
3747
+ **/
3748
+ PoolCommissionClaimPermissionUpdated: GenericPalletEvent<
3749
+ Rv,
3750
+ 'NominationPools',
3751
+ 'PoolCommissionClaimPermissionUpdated',
3752
+ { poolId: number; permission?: PalletNominationPoolsCommissionClaimPermission | undefined }
3753
+ >;
3754
+
3755
+ /**
3756
+ * Pool commission has been claimed.
3757
+ **/
3758
+ PoolCommissionClaimed: GenericPalletEvent<
3759
+ Rv,
3760
+ 'NominationPools',
3761
+ 'PoolCommissionClaimed',
3762
+ { poolId: number; commission: bigint }
3763
+ >;
3764
+
3765
+ /**
3766
+ * Topped up deficit in frozen ED of the reward pool.
3767
+ **/
3768
+ MinBalanceDeficitAdjusted: GenericPalletEvent<
3769
+ Rv,
3770
+ 'NominationPools',
3771
+ 'MinBalanceDeficitAdjusted',
3772
+ { poolId: number; amount: bigint }
3773
+ >;
3774
+
3775
+ /**
3776
+ * Claimed excess frozen ED of af the reward pool.
3777
+ **/
3778
+ MinBalanceExcessAdjusted: GenericPalletEvent<
3779
+ Rv,
3780
+ 'NominationPools',
3781
+ 'MinBalanceExcessAdjusted',
3782
+ { poolId: number; amount: bigint }
3783
+ >;
3784
+
3785
+ /**
3786
+ * A pool member's claim permission has been updated.
3787
+ **/
3788
+ MemberClaimPermissionUpdated: GenericPalletEvent<
3789
+ Rv,
3790
+ 'NominationPools',
3791
+ 'MemberClaimPermissionUpdated',
3792
+ { member: AccountId32; permission: PalletNominationPoolsClaimPermission }
3793
+ >;
3794
+
3795
+ /**
3796
+ * A pool's metadata was updated.
3797
+ **/
3798
+ MetadataUpdated: GenericPalletEvent<
3799
+ Rv,
3800
+ 'NominationPools',
3801
+ 'MetadataUpdated',
3802
+ { poolId: number; caller: AccountId32 }
3803
+ >;
3804
+
3805
+ /**
3806
+ * A pool's nominating account (or the pool's root account) has nominated a validator set
3807
+ * on behalf of the pool.
3808
+ **/
3809
+ PoolNominationMade: GenericPalletEvent<
3810
+ Rv,
3811
+ 'NominationPools',
3812
+ 'PoolNominationMade',
3813
+ { poolId: number; caller: AccountId32 }
3814
+ >;
3815
+
3816
+ /**
3817
+ * The pool is chilled i.e. no longer nominating.
3818
+ **/
3819
+ PoolNominatorChilled: GenericPalletEvent<
3820
+ Rv,
3821
+ 'NominationPools',
3822
+ 'PoolNominatorChilled',
3823
+ { poolId: number; caller: AccountId32 }
3824
+ >;
3825
+
3826
+ /**
3827
+ * Global parameters regulating nomination pools have been updated.
3828
+ **/
3829
+ GlobalParamsUpdated: GenericPalletEvent<
3830
+ Rv,
3831
+ 'NominationPools',
3832
+ 'GlobalParamsUpdated',
3833
+ {
3834
+ minJoinBond: bigint;
3835
+ minCreateBond: bigint;
3836
+ maxPools?: number | undefined;
3837
+ maxMembers?: number | undefined;
3838
+ maxMembersPerPool?: number | undefined;
3839
+ globalMaxCommission?: Perbill | undefined;
3840
+ }
3841
+ >;
3842
+
3843
+ /**
3844
+ * Generic pallet event
3845
+ **/
3846
+ [prop: string]: GenericPalletEvent<Rv>;
3847
+ };
3848
+ /**
3849
+ * Pallet `FastUnstake`'s events
3850
+ **/
3851
+ fastUnstake: {
3852
+ /**
3853
+ * A staker was unstaked.
3854
+ **/
3855
+ Unstaked: GenericPalletEvent<
3856
+ Rv,
3857
+ 'FastUnstake',
3858
+ 'Unstaked',
3859
+ { stash: AccountId32; result: Result<[], DispatchError> }
3860
+ >;
3861
+
3862
+ /**
3863
+ * A staker was slashed for requesting fast-unstake whilst being exposed.
3864
+ **/
3865
+ Slashed: GenericPalletEvent<Rv, 'FastUnstake', 'Slashed', { stash: AccountId32; amount: bigint }>;
3866
+
3867
+ /**
3868
+ * A batch was partially checked for the given eras, but the process did not finish.
3869
+ **/
3870
+ BatchChecked: GenericPalletEvent<Rv, 'FastUnstake', 'BatchChecked', { eras: Array<number> }>;
3871
+
3872
+ /**
3873
+ * A batch of a given size was terminated.
3874
+ *
3875
+ * This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
3876
+ * of the batch. A new batch will be created upon next block.
3877
+ **/
3878
+ BatchFinished: GenericPalletEvent<Rv, 'FastUnstake', 'BatchFinished', { size: number }>;
3879
+
3880
+ /**
3881
+ * An internal error happened. Operations will be paused now.
3882
+ **/
3883
+ InternalError: GenericPalletEvent<Rv, 'FastUnstake', 'InternalError', null>;
3884
+
3885
+ /**
3886
+ * Generic pallet event
3887
+ **/
3888
+ [prop: string]: GenericPalletEvent<Rv>;
3889
+ };
3890
+ /**
3891
+ * Pallet `VoterList`'s events
3892
+ **/
3893
+ voterList: {
3894
+ /**
3895
+ * Moved an account from one bag to another.
3896
+ **/
3897
+ Rebagged: GenericPalletEvent<Rv, 'VoterList', 'Rebagged', { who: AccountId32; from: bigint; to: bigint }>;
3898
+
3899
+ /**
3900
+ * Updated the score of some account to the given amount.
3901
+ **/
3902
+ ScoreUpdated: GenericPalletEvent<Rv, 'VoterList', 'ScoreUpdated', { who: AccountId32; newScore: bigint }>;
3903
+
3904
+ /**
3905
+ * Generic pallet event
3906
+ **/
3907
+ [prop: string]: GenericPalletEvent<Rv>;
3908
+ };
3909
+ /**
3910
+ * Pallet `DelegatedStaking`'s events
3911
+ **/
3912
+ delegatedStaking: {
3913
+ /**
3914
+ * Funds delegated by a delegator.
3915
+ **/
3916
+ Delegated: GenericPalletEvent<
3917
+ Rv,
3918
+ 'DelegatedStaking',
3919
+ 'Delegated',
3920
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
3921
+ >;
3922
+
3923
+ /**
3924
+ * Funds released to a delegator.
3925
+ **/
3926
+ Released: GenericPalletEvent<
3927
+ Rv,
3928
+ 'DelegatedStaking',
3929
+ 'Released',
3930
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
3931
+ >;
3932
+
3933
+ /**
3934
+ * Funds slashed from a delegator.
3935
+ **/
3936
+ Slashed: GenericPalletEvent<
3937
+ Rv,
3938
+ 'DelegatedStaking',
3939
+ 'Slashed',
3940
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
3941
+ >;
3942
+
3943
+ /**
3944
+ * Unclaimed delegation funds migrated to delegator.
3945
+ **/
3946
+ MigratedDelegation: GenericPalletEvent<
3947
+ Rv,
3948
+ 'DelegatedStaking',
3949
+ 'MigratedDelegation',
3950
+ { agent: AccountId32; delegator: AccountId32; amount: bigint }
3951
+ >;
3952
+
3953
+ /**
3954
+ * Generic pallet event
3955
+ **/
3956
+ [prop: string]: GenericPalletEvent<Rv>;
3957
+ };
3958
+ /**
3959
+ * Pallet `StakingNextRcClient`'s events
3960
+ **/
3961
+ stakingNextRcClient: {
3962
+ /**
3963
+ * A said session report was received.
3964
+ **/
3965
+ SessionReportReceived: GenericPalletEvent<
3966
+ Rv,
3967
+ 'StakingNextRcClient',
3968
+ 'SessionReportReceived',
3969
+ {
3970
+ endIndex: number;
3971
+ activationTimestamp?: [bigint, number] | undefined;
3972
+ validatorPointsCounts: number;
3973
+ leftover: boolean;
3974
+ }
3975
+ >;
3976
+
3977
+ /**
3978
+ * A new offence was reported.
3979
+ **/
3980
+ OffenceReceived: GenericPalletEvent<
3981
+ Rv,
3982
+ 'StakingNextRcClient',
3983
+ 'OffenceReceived',
3984
+ { slashSession: number; offencesCount: number }
3985
+ >;
3986
+
3987
+ /**
3988
+ * Something occurred that should never happen under normal operation.
3989
+ * Logged as an event for fail-safe observability.
3990
+ **/
3991
+ Unexpected: GenericPalletEvent<Rv, 'StakingNextRcClient', 'Unexpected', PalletStakingAsyncRcClientUnexpectedKind>;
3992
+
3993
+ /**
3994
+ * Generic pallet event
3995
+ **/
3996
+ [prop: string]: GenericPalletEvent<Rv>;
3997
+ };
3998
+ /**
3999
+ * Pallet `MultiBlock`'s events
4000
+ **/
4001
+ multiBlock: {
4002
+ /**
4003
+ * A phase transition happened. Only checks major changes in the variants, not minor inner
4004
+ * values.
4005
+ **/
4006
+ PhaseTransitioned: GenericPalletEvent<
4007
+ Rv,
4008
+ 'MultiBlock',
4009
+ 'PhaseTransitioned',
4010
+ {
4011
+ /**
4012
+ * the source phase
4013
+ **/
4014
+ from: PalletElectionProviderMultiBlockPhase;
4015
+
4016
+ /**
4017
+ * The target phase
4018
+ **/
4019
+ to: PalletElectionProviderMultiBlockPhase;
4020
+ }
4021
+ >;
4022
+
4023
+ /**
4024
+ * Generic pallet event
4025
+ **/
4026
+ [prop: string]: GenericPalletEvent<Rv>;
4027
+ };
4028
+ /**
4029
+ * Pallet `MultiBlockVerifier`'s events
4030
+ **/
4031
+ multiBlockVerifier: {
4032
+ /**
4033
+ * The verification data was unavailable and it could not continue.
4034
+ **/
4035
+ VerificationDataUnavailable: GenericPalletEvent<Rv, 'MultiBlockVerifier', 'VerificationDataUnavailable', null>;
4036
+
4037
+ /**
4038
+ * A verification failed at the given page.
4039
+ *
4040
+ * NOTE: if the index is 0, then this could mean either the feasibility of the last page
4041
+ * was wrong, or the final checks of `finalize_verification` failed.
4042
+ **/
4043
+ VerificationFailed: GenericPalletEvent<
4044
+ Rv,
4045
+ 'MultiBlockVerifier',
4046
+ 'VerificationFailed',
4047
+ [number, PalletElectionProviderMultiBlockVerifierFeasibilityError]
4048
+ >;
4049
+
4050
+ /**
4051
+ * The given page of a solution has been verified, with the given number of winners being
4052
+ * found in it.
4053
+ **/
4054
+ Verified: GenericPalletEvent<Rv, 'MultiBlockVerifier', 'Verified', [number, number]>;
4055
+
4056
+ /**
4057
+ * A solution with the given score has replaced our current best solution.
4058
+ **/
4059
+ Queued: GenericPalletEvent<
4060
+ Rv,
4061
+ 'MultiBlockVerifier',
4062
+ 'Queued',
4063
+ [SpNposElectionsElectionScore, SpNposElectionsElectionScore | undefined]
4064
+ >;
4065
+
4066
+ /**
4067
+ * Generic pallet event
4068
+ **/
4069
+ [prop: string]: GenericPalletEvent<Rv>;
4070
+ };
4071
+ /**
4072
+ * Pallet `MultiBlockSigned`'s events
4073
+ **/
4074
+ multiBlockSigned: {
4075
+ /**
4076
+ * Upcoming submission has been registered for the given account, with the given score.
4077
+ **/
4078
+ Registered: GenericPalletEvent<
4079
+ Rv,
4080
+ 'MultiBlockSigned',
4081
+ 'Registered',
4082
+ [number, AccountId32, SpNposElectionsElectionScore]
4083
+ >;
4084
+
4085
+ /**
4086
+ * A page of solution solution with the given index has been stored for the given account.
4087
+ **/
4088
+ Stored: GenericPalletEvent<Rv, 'MultiBlockSigned', 'Stored', [number, AccountId32, number]>;
4089
+
4090
+ /**
4091
+ * The given account has been rewarded with the given amount.
4092
+ **/
4093
+ Rewarded: GenericPalletEvent<Rv, 'MultiBlockSigned', 'Rewarded', [number, AccountId32, bigint]>;
4094
+
4095
+ /**
4096
+ * The given account has been slashed with the given amount.
4097
+ **/
4098
+ Slashed: GenericPalletEvent<Rv, 'MultiBlockSigned', 'Slashed', [number, AccountId32, bigint]>;
4099
+
4100
+ /**
4101
+ * The given solution, for the given round, was ejected.
4102
+ **/
4103
+ Ejected: GenericPalletEvent<Rv, 'MultiBlockSigned', 'Ejected', [number, AccountId32]>;
4104
+
4105
+ /**
4106
+ * The given account has been discarded.
4107
+ **/
4108
+ Discarded: GenericPalletEvent<Rv, 'MultiBlockSigned', 'Discarded', [number, AccountId32]>;
4109
+
4110
+ /**
4111
+ * The given account has bailed.
4112
+ **/
4113
+ Bailed: GenericPalletEvent<Rv, 'MultiBlockSigned', 'Bailed', [number, AccountId32]>;
4114
+
4115
+ /**
4116
+ * Generic pallet event
4117
+ **/
4118
+ [prop: string]: GenericPalletEvent<Rv>;
4119
+ };
4120
+ /**
4121
+ * Pallet `ConvictionVoting`'s events
4122
+ **/
4123
+ convictionVoting: {
4124
+ /**
4125
+ * An account has delegated their vote to another account. \[who, target\]
4126
+ **/
4127
+ Delegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Delegated', [AccountId32, AccountId32]>;
4128
+
4129
+ /**
4130
+ * An \[account\] has cancelled a previous delegation operation.
4131
+ **/
4132
+ Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
4133
+
4134
+ /**
4135
+ * An account has voted
4136
+ **/
4137
+ Voted: GenericPalletEvent<
4138
+ Rv,
4139
+ 'ConvictionVoting',
4140
+ 'Voted',
4141
+ { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
4142
+ >;
4143
+
4144
+ /**
4145
+ * A vote has been removed
4146
+ **/
4147
+ VoteRemoved: GenericPalletEvent<
4148
+ Rv,
4149
+ 'ConvictionVoting',
4150
+ 'VoteRemoved',
4151
+ { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
4152
+ >;
4153
+
4154
+ /**
4155
+ * The lockup period of a conviction vote expired, and the funds have been unlocked.
4156
+ **/
4157
+ VoteUnlocked: GenericPalletEvent<Rv, 'ConvictionVoting', 'VoteUnlocked', { who: AccountId32; class: number }>;
4158
+
4159
+ /**
4160
+ * Generic pallet event
4161
+ **/
4162
+ [prop: string]: GenericPalletEvent<Rv>;
4163
+ };
4164
+ /**
4165
+ * Pallet `Referenda`'s events
4166
+ **/
4167
+ referenda: {
4168
+ /**
4169
+ * A referendum has been submitted.
4170
+ **/
4171
+ Submitted: GenericPalletEvent<
4172
+ Rv,
4173
+ 'Referenda',
4174
+ 'Submitted',
4175
+ {
4176
+ /**
4177
+ * Index of the referendum.
4178
+ **/
4179
+ index: number;
4180
+
4181
+ /**
4182
+ * The track (and by extension proposal dispatch origin) of this referendum.
4183
+ **/
4184
+ track: number;
4185
+
4186
+ /**
4187
+ * The proposal for the referendum.
4188
+ **/
4189
+ proposal: FrameSupportPreimagesBounded;
4190
+ }
4191
+ >;
4192
+
4193
+ /**
4194
+ * The decision deposit has been placed.
4195
+ **/
4196
+ DecisionDepositPlaced: GenericPalletEvent<
4197
+ Rv,
4198
+ 'Referenda',
4199
+ 'DecisionDepositPlaced',
4200
+ {
4201
+ /**
4202
+ * Index of the referendum.
4203
+ **/
4204
+ index: number;
4205
+
4206
+ /**
4207
+ * The account who placed the deposit.
4208
+ **/
4209
+ who: AccountId32;
4210
+
4211
+ /**
4212
+ * The amount placed by the account.
4213
+ **/
4214
+ amount: bigint;
4215
+ }
4216
+ >;
4217
+
4218
+ /**
4219
+ * The decision deposit has been refunded.
4220
+ **/
4221
+ DecisionDepositRefunded: GenericPalletEvent<
4222
+ Rv,
4223
+ 'Referenda',
4224
+ 'DecisionDepositRefunded',
4225
+ {
4226
+ /**
4227
+ * Index of the referendum.
4228
+ **/
4229
+ index: number;
4230
+
4231
+ /**
4232
+ * The account who placed the deposit.
4233
+ **/
4234
+ who: AccountId32;
4235
+
4236
+ /**
4237
+ * The amount placed by the account.
4238
+ **/
4239
+ amount: bigint;
4240
+ }
4241
+ >;
4242
+
4243
+ /**
4244
+ * A deposit has been slashed.
4245
+ **/
4246
+ DepositSlashed: GenericPalletEvent<
4247
+ Rv,
4248
+ 'Referenda',
4249
+ 'DepositSlashed',
4250
+ {
4251
+ /**
4252
+ * The account who placed the deposit.
4253
+ **/
4254
+ who: AccountId32;
4255
+
4256
+ /**
4257
+ * The amount placed by the account.
4258
+ **/
4259
+ amount: bigint;
4260
+ }
4261
+ >;
4262
+
4263
+ /**
4264
+ * A referendum has moved into the deciding phase.
4265
+ **/
4266
+ DecisionStarted: GenericPalletEvent<
4267
+ Rv,
4268
+ 'Referenda',
4269
+ 'DecisionStarted',
4270
+ {
4271
+ /**
4272
+ * Index of the referendum.
4273
+ **/
4274
+ index: number;
4275
+
4276
+ /**
4277
+ * The track (and by extension proposal dispatch origin) of this referendum.
4278
+ **/
4279
+ track: number;
4280
+
4281
+ /**
4282
+ * The proposal for the referendum.
4283
+ **/
4284
+ proposal: FrameSupportPreimagesBounded;
4285
+
4286
+ /**
4287
+ * The current tally of votes in this referendum.
4288
+ **/
4289
+ tally: PalletConvictionVotingTally;
4290
+ }
4291
+ >;
4292
+ ConfirmStarted: GenericPalletEvent<
4293
+ Rv,
4294
+ 'Referenda',
4295
+ 'ConfirmStarted',
4296
+ {
4297
+ /**
4298
+ * Index of the referendum.
4299
+ **/
4300
+ index: number;
4301
+ }
4302
+ >;
4303
+ ConfirmAborted: GenericPalletEvent<
4304
+ Rv,
4305
+ 'Referenda',
4306
+ 'ConfirmAborted',
4307
+ {
4308
+ /**
4309
+ * Index of the referendum.
4310
+ **/
4311
+ index: number;
4312
+ }
4313
+ >;
4314
+
4315
+ /**
4316
+ * A referendum has ended its confirmation phase and is ready for approval.
4317
+ **/
4318
+ Confirmed: GenericPalletEvent<
4319
+ Rv,
4320
+ 'Referenda',
4321
+ 'Confirmed',
4322
+ {
4323
+ /**
4324
+ * Index of the referendum.
4325
+ **/
4326
+ index: number;
4327
+
4328
+ /**
4329
+ * The final tally of votes in this referendum.
4330
+ **/
4331
+ tally: PalletConvictionVotingTally;
4332
+ }
4333
+ >;
4334
+
4335
+ /**
4336
+ * A referendum has been approved and its proposal has been scheduled.
4337
+ **/
4338
+ Approved: GenericPalletEvent<
4339
+ Rv,
4340
+ 'Referenda',
4341
+ 'Approved',
4342
+ {
4343
+ /**
4344
+ * Index of the referendum.
4345
+ **/
4346
+ index: number;
4347
+ }
4348
+ >;
4349
+
4350
+ /**
4351
+ * A proposal has been rejected by referendum.
4352
+ **/
4353
+ Rejected: GenericPalletEvent<
4354
+ Rv,
4355
+ 'Referenda',
4356
+ 'Rejected',
4357
+ {
4358
+ /**
4359
+ * Index of the referendum.
4360
+ **/
4361
+ index: number;
4362
+
4363
+ /**
4364
+ * The final tally of votes in this referendum.
4365
+ **/
4366
+ tally: PalletConvictionVotingTally;
4367
+ }
4368
+ >;
4369
+
4370
+ /**
4371
+ * A referendum has been timed out without being decided.
4372
+ **/
4373
+ TimedOut: GenericPalletEvent<
4374
+ Rv,
4375
+ 'Referenda',
4376
+ 'TimedOut',
4377
+ {
4378
+ /**
4379
+ * Index of the referendum.
4380
+ **/
4381
+ index: number;
4382
+
4383
+ /**
4384
+ * The final tally of votes in this referendum.
4385
+ **/
4386
+ tally: PalletConvictionVotingTally;
4387
+ }
4388
+ >;
4389
+
4390
+ /**
4391
+ * A referendum has been cancelled.
4392
+ **/
4393
+ Cancelled: GenericPalletEvent<
4394
+ Rv,
4395
+ 'Referenda',
4396
+ 'Cancelled',
4397
+ {
4398
+ /**
4399
+ * Index of the referendum.
4400
+ **/
4401
+ index: number;
4402
+
4403
+ /**
4404
+ * The final tally of votes in this referendum.
4405
+ **/
4406
+ tally: PalletConvictionVotingTally;
4407
+ }
4408
+ >;
4409
+
4410
+ /**
4411
+ * A referendum has been killed.
4412
+ **/
4413
+ Killed: GenericPalletEvent<
4414
+ Rv,
4415
+ 'Referenda',
4416
+ 'Killed',
4417
+ {
4418
+ /**
4419
+ * Index of the referendum.
4420
+ **/
4421
+ index: number;
4422
+
4423
+ /**
4424
+ * The final tally of votes in this referendum.
4425
+ **/
4426
+ tally: PalletConvictionVotingTally;
4427
+ }
4428
+ >;
4429
+
4430
+ /**
4431
+ * The submission deposit has been refunded.
4432
+ **/
4433
+ SubmissionDepositRefunded: GenericPalletEvent<
4434
+ Rv,
4435
+ 'Referenda',
4436
+ 'SubmissionDepositRefunded',
4437
+ {
4438
+ /**
4439
+ * Index of the referendum.
4440
+ **/
4441
+ index: number;
4442
+
4443
+ /**
4444
+ * The account who placed the deposit.
4445
+ **/
4446
+ who: AccountId32;
4447
+
4448
+ /**
4449
+ * The amount placed by the account.
4450
+ **/
4451
+ amount: bigint;
4452
+ }
4453
+ >;
4454
+
4455
+ /**
4456
+ * Metadata for a referendum has been set.
4457
+ **/
4458
+ MetadataSet: GenericPalletEvent<
4459
+ Rv,
4460
+ 'Referenda',
4461
+ 'MetadataSet',
4462
+ {
4463
+ /**
4464
+ * Index of the referendum.
4465
+ **/
4466
+ index: number;
4467
+
4468
+ /**
4469
+ * Preimage hash.
4470
+ **/
4471
+ hash: H256;
4472
+ }
4473
+ >;
4474
+
4475
+ /**
4476
+ * Metadata for a referendum has been cleared.
4477
+ **/
4478
+ MetadataCleared: GenericPalletEvent<
4479
+ Rv,
4480
+ 'Referenda',
4481
+ 'MetadataCleared',
4482
+ {
4483
+ /**
4484
+ * Index of the referendum.
4485
+ **/
4486
+ index: number;
4487
+
4488
+ /**
4489
+ * Preimage hash.
4490
+ **/
4491
+ hash: H256;
4492
+ }
4493
+ >;
4494
+
4495
+ /**
4496
+ * Generic pallet event
4497
+ **/
4498
+ [prop: string]: GenericPalletEvent<Rv>;
4499
+ };
4500
+ /**
4501
+ * Pallet `Whitelist`'s events
4502
+ **/
4503
+ whitelist: {
4504
+ CallWhitelisted: GenericPalletEvent<Rv, 'Whitelist', 'CallWhitelisted', { callHash: H256 }>;
4505
+ WhitelistedCallRemoved: GenericPalletEvent<Rv, 'Whitelist', 'WhitelistedCallRemoved', { callHash: H256 }>;
4506
+ WhitelistedCallDispatched: GenericPalletEvent<
4507
+ Rv,
4508
+ 'Whitelist',
4509
+ 'WhitelistedCallDispatched',
4510
+ { callHash: H256; result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
4511
+ >;
4512
+
4513
+ /**
4514
+ * Generic pallet event
4515
+ **/
4516
+ [prop: string]: GenericPalletEvent<Rv>;
4517
+ };
4518
+ /**
4519
+ * Pallet `Treasury`'s events
4520
+ **/
4521
+ treasury: {
4522
+ /**
4523
+ * We have ended a spend period and will now allocate funds.
4524
+ **/
4525
+ Spending: GenericPalletEvent<Rv, 'Treasury', 'Spending', { budgetRemaining: bigint }>;
4526
+
4527
+ /**
4528
+ * Some funds have been allocated.
4529
+ **/
4530
+ Awarded: GenericPalletEvent<
4531
+ Rv,
4532
+ 'Treasury',
4533
+ 'Awarded',
4534
+ { proposalIndex: number; award: bigint; account: AccountId32 }
4535
+ >;
4536
+
4537
+ /**
4538
+ * Some of our funds have been burnt.
4539
+ **/
4540
+ Burnt: GenericPalletEvent<Rv, 'Treasury', 'Burnt', { burntFunds: bigint }>;
4541
+
4542
+ /**
4543
+ * Spending has finished; this is the amount that rolls over until next spend.
4544
+ **/
4545
+ Rollover: GenericPalletEvent<Rv, 'Treasury', 'Rollover', { rolloverBalance: bigint }>;
4546
+
4547
+ /**
4548
+ * Some funds have been deposited.
4549
+ **/
4550
+ Deposit: GenericPalletEvent<Rv, 'Treasury', 'Deposit', { value: bigint }>;
4551
+
4552
+ /**
4553
+ * A new spend proposal has been approved.
4554
+ **/
4555
+ SpendApproved: GenericPalletEvent<
4556
+ Rv,
4557
+ 'Treasury',
4558
+ 'SpendApproved',
4559
+ { proposalIndex: number; amount: bigint; beneficiary: AccountId32 }
4560
+ >;
4561
+
4562
+ /**
4563
+ * The inactive funds of the pallet have been updated.
4564
+ **/
4565
+ UpdatedInactive: GenericPalletEvent<
4566
+ Rv,
4567
+ 'Treasury',
4568
+ 'UpdatedInactive',
4569
+ { reactivated: bigint; deactivated: bigint }
4570
+ >;
4571
+
4572
+ /**
4573
+ * A new asset spend proposal has been approved.
4574
+ **/
4575
+ AssetSpendApproved: GenericPalletEvent<
4576
+ Rv,
4577
+ 'Treasury',
4578
+ 'AssetSpendApproved',
4579
+ {
4580
+ index: number;
4581
+ assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset;
4582
+ amount: bigint;
4583
+ beneficiary: XcmVersionedLocation;
4584
+ validFrom: number;
4585
+ expireAt: number;
4586
+ }
4587
+ >;
4588
+
4589
+ /**
4590
+ * An approved spend was voided.
4591
+ **/
4592
+ AssetSpendVoided: GenericPalletEvent<Rv, 'Treasury', 'AssetSpendVoided', { index: number }>;
4593
+
4594
+ /**
4595
+ * A payment happened.
4596
+ **/
4597
+ Paid: GenericPalletEvent<Rv, 'Treasury', 'Paid', { index: number; paymentId: bigint }>;
4598
+
4599
+ /**
4600
+ * A payment failed and can be retried.
4601
+ **/
4602
+ PaymentFailed: GenericPalletEvent<Rv, 'Treasury', 'PaymentFailed', { index: number; paymentId: bigint }>;
4603
+
4604
+ /**
4605
+ * A spend was processed and removed from the storage. It might have been successfully
4606
+ * paid or it may have expired.
4607
+ **/
4608
+ SpendProcessed: GenericPalletEvent<Rv, 'Treasury', 'SpendProcessed', { index: number }>;
4609
+
4610
+ /**
4611
+ * Generic pallet event
4612
+ **/
4613
+ [prop: string]: GenericPalletEvent<Rv>;
4614
+ };
4615
+ /**
4616
+ * Pallet `AssetRate`'s events
4617
+ **/
4618
+ assetRate: {
4619
+ AssetRateCreated: GenericPalletEvent<
4620
+ Rv,
4621
+ 'AssetRate',
4622
+ 'AssetRateCreated',
4623
+ { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset; rate: FixedU128 }
4624
+ >;
4625
+ AssetRateRemoved: GenericPalletEvent<
4626
+ Rv,
4627
+ 'AssetRate',
4628
+ 'AssetRateRemoved',
4629
+ { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset }
4630
+ >;
4631
+ AssetRateUpdated: GenericPalletEvent<
4632
+ Rv,
4633
+ 'AssetRate',
4634
+ 'AssetRateUpdated',
4635
+ { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset; old: FixedU128; new: FixedU128 }
4636
+ >;
4637
+
4638
+ /**
4639
+ * Generic pallet event
4640
+ **/
4641
+ [prop: string]: GenericPalletEvent<Rv>;
4642
+ };
4643
+ /**
4644
+ * Pallet `AssetConversionMigration`'s events
4645
+ **/
4646
+ assetConversionMigration: {
4647
+ /**
4648
+ * Indicates that a pool has been migrated to the new account ID.
4649
+ **/
4650
+ MigratedToNewAccount: GenericPalletEvent<
4651
+ Rv,
4652
+ 'AssetConversionMigration',
4653
+ 'MigratedToNewAccount',
4654
+ {
4655
+ /**
4656
+ * Pool's ID.
4657
+ **/
4658
+ poolId: [StagingXcmV5Location, StagingXcmV5Location];
4659
+
4660
+ /**
4661
+ * Pool's prior account ID.
4662
+ **/
4663
+ priorAccount: AccountId32;
4664
+
4665
+ /**
4666
+ * Pool's new account ID.
4667
+ **/
4668
+ newAccount: AccountId32;
4669
+ }
4670
+ >;
4671
+
4672
+ /**
4673
+ * Generic pallet event
4674
+ **/
4675
+ [prop: string]: GenericPalletEvent<Rv>;
4676
+ };
4677
+ /**
4678
+ * Pallet `AhOps`'s events
4679
+ **/
4680
+ ahOps: {
4681
+ /**
4682
+ * Some lease reserve could not be unreserved and needs manual cleanup.
4683
+ **/
4684
+ LeaseUnreserveRemaining: GenericPalletEvent<
4685
+ Rv,
4686
+ 'AhOps',
4687
+ 'LeaseUnreserveRemaining',
4688
+ { depositor: AccountId32; paraId: PolkadotParachainPrimitivesPrimitivesId; remaining: bigint }
4689
+ >;
4690
+
4691
+ /**
4692
+ * Some amount for a crowdloan reserve could not be unreserved and needs manual cleanup.
4693
+ **/
4694
+ CrowdloanUnreserveRemaining: GenericPalletEvent<
4695
+ Rv,
4696
+ 'AhOps',
4697
+ 'CrowdloanUnreserveRemaining',
4698
+ { depositor: AccountId32; paraId: PolkadotParachainPrimitivesPrimitivesId; remaining: bigint }
4699
+ >;
4700
+
4701
+ /**
4702
+ * Generic pallet event
4703
+ **/
4704
+ [prop: string]: GenericPalletEvent<Rv>;
4705
+ };
4706
+ /**
4707
+ * Pallet `AhMigrator`'s events
4708
+ **/
4709
+ ahMigrator: {
4710
+ /**
4711
+ * A stage transition has occurred.
4712
+ **/
4713
+ StageTransition: GenericPalletEvent<
4714
+ Rv,
4715
+ 'AhMigrator',
4716
+ 'StageTransition',
4717
+ {
4718
+ /**
4719
+ * The old stage before the transition.
4720
+ **/
4721
+ old: PalletAhMigratorMigrationStage;
4722
+
4723
+ /**
4724
+ * The new stage after the transition.
4725
+ **/
4726
+ new: PalletAhMigratorMigrationStage;
4727
+ }
4728
+ >;
4729
+
4730
+ /**
4731
+ * We received a batch of messages that will be integrated into a pallet.
4732
+ **/
4733
+ BatchReceived: GenericPalletEvent<
4734
+ Rv,
4735
+ 'AhMigrator',
4736
+ 'BatchReceived',
4737
+ { pallet: PalletAhMigratorPalletEventName; count: number }
4738
+ >;
4739
+
4740
+ /**
4741
+ * We processed a batch of messages for this pallet.
4742
+ **/
4743
+ BatchProcessed: GenericPalletEvent<
4744
+ Rv,
4745
+ 'AhMigrator',
4746
+ 'BatchProcessed',
4747
+ { pallet: PalletAhMigratorPalletEventName; countGood: number; countBad: number }
4748
+ >;
4749
+
4750
+ /**
4751
+ * The Asset Hub Migration started and is active until `AssetHubMigrationFinished` is
4752
+ * emitted.
4753
+ *
4754
+ * This event is equivalent to `StageTransition { new: DataMigrationOngoing, .. }` but is
4755
+ * easier to understand. The activation is immediate and affects all events happening
4756
+ * afterwards.
4757
+ **/
4758
+ AssetHubMigrationStarted: GenericPalletEvent<Rv, 'AhMigrator', 'AssetHubMigrationStarted', null>;
4759
+
4760
+ /**
4761
+ * The Asset Hub Migration finished.
4762
+ *
4763
+ * This event is equivalent to `StageTransition { new: MigrationDone, .. }` but is easier
4764
+ * to understand. The finishing is immediate and affects all events happening
4765
+ * afterwards.
4766
+ **/
4767
+ AssetHubMigrationFinished: GenericPalletEvent<Rv, 'AhMigrator', 'AssetHubMigrationFinished', null>;
4768
+
3167
4769
  /**
3168
4770
  * Generic pallet event
3169
4771
  **/