33
44// import type lookup before we augment - in some environments
55// this is required to allow for ambient/previous definitions
6- import 'https://deno.land/x/polkadot@0.2.9 /api-base/types/events.ts' ;
6+ import 'https://deno.land/x/polkadot/api-base/types/events.ts' ;
77
8- import type { ApiTypes , AugmentedEvent } from 'https://deno.land/x/polkadot@0.2.9 /api-base/types/index.ts' ;
9- import type { Bytes , Null , Option , Result , U8aFixed , Vec , bool , u128 , u16 , u32 , u64 , u8 } from 'https://deno.land/x/polkadot@0.2.9 /types-codec/mod.ts' ;
10- import type { ITuple } from 'https://deno.land/x/polkadot@0.2.9 /types-codec/types/index.ts' ;
11- import type { EthereumAddress } from 'https://deno.land/x/polkadot@0.2.9 /types/interfaces/eth/index.ts' ;
12- import type { AccountId32 , H256 , Weight } from 'https://deno.land/x/polkadot@0.2.9 /types/interfaces/runtime/index.ts' ;
13- import type { FrameSupportDispatchDispatchInfo , FrameSupportScheduleLookupError , FrameSupportTokensMiscBalanceStatus , KusamaRuntimeProxyType , PalletDemocracyVoteAccountVote , PalletDemocracyVoteThreshold , PalletElectionProviderMultiPhaseElectionCompute , PalletImOnlineSr25519AppSr25519Public , PalletMultisigTimepoint , PalletNominationPoolsPoolState , PalletStakingExposure , PalletStakingValidatorPrefs , PolkadotParachainPrimitivesHrmpChannelId , PolkadotPrimitivesV2CandidateReceipt , PolkadotRuntimeParachainsDisputesDisputeLocation , PolkadotRuntimeParachainsDisputesDisputeResult , SpFinalityGrandpaAppPublic , SpNposElectionsElectionScore , SpRuntimeDispatchError , XcmV1MultiLocation , XcmV2Response , XcmV2TraitsError , XcmV2TraitsOutcome , XcmV2Xcm , XcmVersionedMultiAssets , XcmVersionedMultiLocation } from 'https://deno.land/x/polkadot@0.2.9 /types/lookup.ts' ;
8+ import type { ApiTypes , AugmentedEvent } from 'https://deno.land/x/polkadot/api-base/types/index.ts' ;
9+ import type { Bytes , Null , Option , Result , U8aFixed , Vec , bool , u128 , u16 , u32 , u64 , u8 } from 'https://deno.land/x/polkadot/types-codec/mod.ts' ;
10+ import type { ITuple } from 'https://deno.land/x/polkadot/types-codec/types/index.ts' ;
11+ import type { EthereumAddress } from 'https://deno.land/x/polkadot/types/interfaces/eth/index.ts' ;
12+ import type { AccountId32 , H256 , Weight } from 'https://deno.land/x/polkadot/types/interfaces/runtime/index.ts' ;
13+ import type { FrameSupportDispatchDispatchInfo , FrameSupportScheduleLookupError , FrameSupportTokensMiscBalanceStatus , KusamaRuntimeProxyType , PalletDemocracyVoteAccountVote , PalletDemocracyVoteThreshold , PalletElectionProviderMultiPhaseElectionCompute , PalletImOnlineSr25519AppSr25519Public , PalletMultisigTimepoint , PalletNominationPoolsPoolState , PalletStakingExposure , PalletStakingValidatorPrefs , PolkadotParachainPrimitivesHrmpChannelId , PolkadotPrimitivesV2CandidateReceipt , PolkadotRuntimeParachainsDisputesDisputeLocation , PolkadotRuntimeParachainsDisputesDisputeResult , SpFinalityGrandpaAppPublic , SpNposElectionsElectionScore , SpRuntimeDispatchError , XcmV1MultiLocation , XcmV2Response , XcmV2TraitsError , XcmV2TraitsOutcome , XcmV2Xcm , XcmVersionedMultiAssets , XcmVersionedMultiLocation } from 'https://deno.land/x/polkadot/types/lookup.ts' ;
1414
1515export type __AugmentedEvent < ApiType extends ApiTypes > = AugmentedEvent < ApiType > ;
1616
17- declare module 'https://deno.land/x/polkadot@0.2.9 /api-base/types/events.ts' {
17+ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
1818 interface AugmentedEvents < ApiType extends ApiTypes > {
1919 auctions : {
2020 /**
@@ -377,6 +377,33 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/events.ts' {
377377 **/
378378 [ key : string ] : AugmentedEvent < ApiType > ;
379379 } ;
380+ fastUnstake : {
381+ /**
382+ * A staker was partially checked for the given eras, but the process did not finish.
383+ **/
384+ Checking : AugmentedEvent < ApiType , [ stash : AccountId32 , eras : Vec < u32 > ] , { stash : AccountId32 , eras : Vec < u32 > } > ;
385+ /**
386+ * Some internal error happened while migrating stash. They are removed as head as a
387+ * consequence.
388+ **/
389+ Errored : AugmentedEvent < ApiType , [ stash : AccountId32 ] , { stash : AccountId32 } > ;
390+ /**
391+ * An internal error happened. Operations will be paused now.
392+ **/
393+ InternalError : AugmentedEvent < ApiType , [ ] > ;
394+ /**
395+ * A staker was slashed for requesting fast-unstake whilst being exposed.
396+ **/
397+ Slashed : AugmentedEvent < ApiType , [ stash : AccountId32 , amount : u128 ] , { stash : AccountId32 , amount : u128 } > ;
398+ /**
399+ * A staker was unstaked.
400+ **/
401+ Unstaked : AugmentedEvent < ApiType , [ stash : AccountId32 , result : Result < Null , SpRuntimeDispatchError > ] , { stash : AccountId32 , result : Result < Null , SpRuntimeDispatchError > } > ;
402+ /**
403+ * Generic event
404+ **/
405+ [ key : string ] : AugmentedEvent < ApiType > ;
406+ } ;
380407 gilt : {
381408 /**
382409 * A bid was successfully placed.
@@ -968,40 +995,37 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/events.ts' {
968995 * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
969996 * it will not be emitted for staking rewards when they are added to stake.
970997 **/
971- Bonded : AugmentedEvent < ApiType , [ AccountId32 , u128 ] > ;
998+ Bonded : AugmentedEvent < ApiType , [ stash : AccountId32 , amount : u128 ] , { stash : AccountId32 , amount : u128 } > ;
972999 /**
9731000 * An account has stopped participating as either a validator or nominator.
974- * \[stash\]
9751001 **/
976- Chilled : AugmentedEvent < ApiType , [ AccountId32 ] > ;
1002+ Chilled : AugmentedEvent < ApiType , [ stash : AccountId32 ] , { stash : AccountId32 } > ;
9771003 /**
9781004 * The era payout has been set; the first balance is the validator-payout; the second is
9791005 * the remainder from the maximum amount of reward.
980- * \[era_index, validator_payout, remainder\]
9811006 **/
982- EraPaid : AugmentedEvent < ApiType , [ u32 , u128 , u128 ] > ;
1007+ EraPaid : AugmentedEvent < ApiType , [ eraIndex : u32 , validatorPayout : u128 , remainder : u128 ] , { eraIndex : u32 , validatorPayout : u128 , remainder : u128 } > ;
9831008 /**
984- * A nominator has been kicked from a validator. \[nominator, stash\]
1009+ * A nominator has been kicked from a validator.
9851010 **/
986- Kicked : AugmentedEvent < ApiType , [ AccountId32 , AccountId32 ] > ;
1011+ Kicked : AugmentedEvent < ApiType , [ nominator : AccountId32 , stash : AccountId32 ] , { nominator : AccountId32 , stash : AccountId32 } > ;
9871012 /**
9881013 * An old slashing report from a prior era was discarded because it could
989- * not be processed. \[session_index\]
1014+ * not be processed.
9901015 **/
991- OldSlashingReportDiscarded : AugmentedEvent < ApiType , [ u32 ] > ;
1016+ OldSlashingReportDiscarded : AugmentedEvent < ApiType , [ sessionIndex : u32 ] , { sessionIndex : u32 } > ;
9921017 /**
993- * The stakers' rewards are getting paid. \[era_index, validator_stash\]
1018+ * The stakers' rewards are getting paid.
9941019 **/
995- PayoutStarted : AugmentedEvent < ApiType , [ u32 , AccountId32 ] > ;
1020+ PayoutStarted : AugmentedEvent < ApiType , [ eraIndex : u32 , validatorStash : AccountId32 ] , { eraIndex : u32 , validatorStash : AccountId32 } > ;
9961021 /**
997- * The nominator has been rewarded by this amount. \[stash, amount\]
1022+ * The nominator has been rewarded by this amount.
9981023 **/
999- Rewarded : AugmentedEvent < ApiType , [ AccountId32 , u128 ] > ;
1024+ Rewarded : AugmentedEvent < ApiType , [ stash : AccountId32 , amount : u128 ] , { stash : AccountId32 , amount : u128 } > ;
10001025 /**
10011026 * One staker (and potentially its nominators) has been slashed by the given amount.
1002- * \[staker, amount\]
10031027 **/
1004- Slashed : AugmentedEvent < ApiType , [ AccountId32 , u128 ] > ;
1028+ Slashed : AugmentedEvent < ApiType , [ staker : AccountId32 , amount : u128 ] , { staker : AccountId32 , amount : u128 } > ;
10051029 /**
10061030 * A new set of stakers was elected.
10071031 **/
@@ -1011,18 +1035,18 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/events.ts' {
10111035 **/
10121036 StakingElectionFailed : AugmentedEvent < ApiType , [ ] > ;
10131037 /**
1014- * An account has unbonded this amount. \[stash, amount\]
1038+ * An account has unbonded this amount.
10151039 **/
1016- Unbonded : AugmentedEvent < ApiType , [ AccountId32 , u128 ] > ;
1040+ Unbonded : AugmentedEvent < ApiType , [ stash : AccountId32 , amount : u128 ] , { stash : AccountId32 , amount : u128 } > ;
10171041 /**
10181042 * A validator has set their preferences.
10191043 **/
1020- ValidatorPrefsSet : AugmentedEvent < ApiType , [ AccountId32 , PalletStakingValidatorPrefs ] > ;
1044+ ValidatorPrefsSet : AugmentedEvent < ApiType , [ stash : AccountId32 , prefs : PalletStakingValidatorPrefs ] , { stash : AccountId32 , prefs : PalletStakingValidatorPrefs } > ;
10211045 /**
10221046 * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
1023- * from the unlocking queue. \[stash, amount\]
1047+ * from the unlocking queue.
10241048 **/
1025- Withdrawn : AugmentedEvent < ApiType , [ AccountId32 , u128 ] > ;
1049+ Withdrawn : AugmentedEvent < ApiType , [ stash : AccountId32 , amount : u128 ] , { stash : AccountId32 , amount : u128 } > ;
10261050 /**
10271051 * Generic event
10281052 **/
0 commit comments