@dedot/api 0.10.0 → 0.11.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/chaintypes/substrate/consts.d.ts +81 -11
- package/chaintypes/substrate/errors.d.ts +230 -2
- package/chaintypes/substrate/events.d.ts +335 -85
- package/chaintypes/substrate/query.d.ts +132 -19
- package/chaintypes/substrate/runtime.d.ts +92 -11
- package/chaintypes/substrate/tx.d.ts +559 -27
- package/chaintypes/substrate/types.d.ts +1752 -258
- package/cjs/extrinsic/submittable/BaseSubmittableExtrinsic.js +28 -3
- package/cjs/extrinsic/submittable/SubmittableExtrinsic.js +30 -22
- package/cjs/extrinsic/submittable/SubmittableExtrinsicV2.js +31 -22
- package/cjs/extrinsic/submittable/errors.js +10 -1
- package/cjs/extrinsic/submittable/utils.js +39 -1
- package/extrinsic/submittable/BaseSubmittableExtrinsic.d.ts +7 -7
- package/extrinsic/submittable/BaseSubmittableExtrinsic.js +29 -4
- package/extrinsic/submittable/SubmittableExtrinsic.d.ts +4 -4
- package/extrinsic/submittable/SubmittableExtrinsic.js +31 -23
- package/extrinsic/submittable/SubmittableExtrinsicV2.d.ts +3 -4
- package/extrinsic/submittable/SubmittableExtrinsicV2.js +32 -23
- package/extrinsic/submittable/errors.d.ts +6 -0
- package/extrinsic/submittable/errors.js +8 -0
- package/extrinsic/submittable/utils.d.ts +8 -2
- package/extrinsic/submittable/utils.js +38 -1
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccountId32, Bytes, DispatchError, FixedBytes, FixedU128, FixedU64, H160, H256, Perbill, Permill, Perquintill, Result } from '@dedot/codecs';
|
|
2
2
|
import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from '@dedot/types';
|
|
3
|
-
import type { FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord,
|
|
3
|
+
import type { FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletProxyDepositKind, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchErrorWithPostInfo, SpStatementStoreStatement, SpWeightsWeightV2Weight } from './types.js';
|
|
4
4
|
export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
|
|
5
5
|
/**
|
|
6
6
|
* Pallet `System`'s events
|
|
@@ -49,6 +49,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
49
49
|
codeHash: H256;
|
|
50
50
|
checkVersion: boolean;
|
|
51
51
|
}>;
|
|
52
|
+
/**
|
|
53
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
54
|
+
**/
|
|
55
|
+
RejectedInvalidAuthorizedUpgrade: GenericPalletEvent<Rv, 'System', 'RejectedInvalidAuthorizedUpgrade', {
|
|
56
|
+
codeHash: H256;
|
|
57
|
+
error: DispatchError;
|
|
58
|
+
}>;
|
|
52
59
|
/**
|
|
53
60
|
* Generic pallet event
|
|
54
61
|
**/
|
|
@@ -90,6 +97,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
90
97
|
DispatchedAs: GenericPalletEvent<Rv, 'Utility', 'DispatchedAs', {
|
|
91
98
|
result: Result<[], DispatchError>;
|
|
92
99
|
}>;
|
|
100
|
+
/**
|
|
101
|
+
* Main call was dispatched.
|
|
102
|
+
**/
|
|
103
|
+
IfElseMainSuccess: GenericPalletEvent<Rv, 'Utility', 'IfElseMainSuccess', null>;
|
|
104
|
+
/**
|
|
105
|
+
* The fallback call was dispatched.
|
|
106
|
+
**/
|
|
107
|
+
IfElseFallbackCalled: GenericPalletEvent<Rv, 'Utility', 'IfElseFallbackCalled', {
|
|
108
|
+
mainError: DispatchError;
|
|
109
|
+
}>;
|
|
93
110
|
/**
|
|
94
111
|
* Generic pallet event
|
|
95
112
|
**/
|
|
@@ -119,6 +136,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
119
136
|
index: number;
|
|
120
137
|
who: AccountId32;
|
|
121
138
|
}>;
|
|
139
|
+
/**
|
|
140
|
+
* A deposit to reserve an index has been poked/reconsidered.
|
|
141
|
+
**/
|
|
142
|
+
DepositPoked: GenericPalletEvent<Rv, 'Indices', 'DepositPoked', {
|
|
143
|
+
who: AccountId32;
|
|
144
|
+
index: number;
|
|
145
|
+
oldDeposit: bigint;
|
|
146
|
+
newDeposit: bigint;
|
|
147
|
+
}>;
|
|
122
148
|
/**
|
|
123
149
|
* Generic pallet event
|
|
124
150
|
**/
|
|
@@ -520,6 +546,14 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
520
546
|
ControllerBatchDeprecated: GenericPalletEvent<Rv, 'Staking', 'ControllerBatchDeprecated', {
|
|
521
547
|
failures: number;
|
|
522
548
|
}>;
|
|
549
|
+
/**
|
|
550
|
+
* Staking balance migrated from locks to holds, with any balance that could not be held
|
|
551
|
+
* is force withdrawn.
|
|
552
|
+
**/
|
|
553
|
+
CurrencyMigrated: GenericPalletEvent<Rv, 'Staking', 'CurrencyMigrated', {
|
|
554
|
+
stash: AccountId32;
|
|
555
|
+
forceWithdraw: bigint;
|
|
556
|
+
}>;
|
|
523
557
|
/**
|
|
524
558
|
* Generic pallet event
|
|
525
559
|
**/
|
|
@@ -536,6 +570,18 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
536
570
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', {
|
|
537
571
|
sessionIndex: number;
|
|
538
572
|
}>;
|
|
573
|
+
/**
|
|
574
|
+
* Validator has been disabled.
|
|
575
|
+
**/
|
|
576
|
+
ValidatorDisabled: GenericPalletEvent<Rv, 'Session', 'ValidatorDisabled', {
|
|
577
|
+
validator: AccountId32;
|
|
578
|
+
}>;
|
|
579
|
+
/**
|
|
580
|
+
* Validator has been re-enabled.
|
|
581
|
+
**/
|
|
582
|
+
ValidatorReenabled: GenericPalletEvent<Rv, 'Session', 'ValidatorReenabled', {
|
|
583
|
+
validator: AccountId32;
|
|
584
|
+
}>;
|
|
539
585
|
/**
|
|
540
586
|
* Generic pallet event
|
|
541
587
|
**/
|
|
@@ -858,7 +904,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
858
904
|
elections: {
|
|
859
905
|
/**
|
|
860
906
|
* A new term with new_members. This indicates that enough candidates existed to run
|
|
861
|
-
* the election, not that enough have
|
|
907
|
+
* the election, not that enough have been elected. The inner value must be examined
|
|
862
908
|
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
|
863
909
|
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
|
864
910
|
* begin with.
|
|
@@ -1279,7 +1325,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1279
1325
|
* At the end of the session, at least one validator was found to be offline.
|
|
1280
1326
|
**/
|
|
1281
1327
|
SomeOffline: GenericPalletEvent<Rv, 'ImOnline', 'SomeOffline', {
|
|
1282
|
-
offline: Array<[AccountId32,
|
|
1328
|
+
offline: Array<[AccountId32, []]>;
|
|
1283
1329
|
}>;
|
|
1284
1330
|
/**
|
|
1285
1331
|
* Generic pallet event
|
|
@@ -1733,6 +1779,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1733
1779
|
task: [number, number];
|
|
1734
1780
|
id?: FixedBytes<32> | undefined;
|
|
1735
1781
|
}>;
|
|
1782
|
+
/**
|
|
1783
|
+
* Agenda is incomplete from `when`.
|
|
1784
|
+
**/
|
|
1785
|
+
AgendaIncomplete: GenericPalletEvent<Rv, 'Scheduler', 'AgendaIncomplete', {
|
|
1786
|
+
when: number;
|
|
1787
|
+
}>;
|
|
1736
1788
|
/**
|
|
1737
1789
|
* Generic pallet event
|
|
1738
1790
|
**/
|
|
@@ -1856,6 +1908,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1856
1908
|
proxyType: KitchensinkRuntimeProxyType;
|
|
1857
1909
|
delay: number;
|
|
1858
1910
|
}>;
|
|
1911
|
+
/**
|
|
1912
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1913
|
+
**/
|
|
1914
|
+
DepositPoked: GenericPalletEvent<Rv, 'Proxy', 'DepositPoked', {
|
|
1915
|
+
who: AccountId32;
|
|
1916
|
+
kind: PalletProxyDepositKind;
|
|
1917
|
+
oldDeposit: bigint;
|
|
1918
|
+
newDeposit: bigint;
|
|
1919
|
+
}>;
|
|
1859
1920
|
/**
|
|
1860
1921
|
* Generic pallet event
|
|
1861
1922
|
**/
|
|
@@ -1901,6 +1962,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1901
1962
|
multisig: AccountId32;
|
|
1902
1963
|
callHash: FixedBytes<32>;
|
|
1903
1964
|
}>;
|
|
1965
|
+
/**
|
|
1966
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
1967
|
+
**/
|
|
1968
|
+
DepositPoked: GenericPalletEvent<Rv, 'Multisig', 'DepositPoked', {
|
|
1969
|
+
who: AccountId32;
|
|
1970
|
+
callHash: FixedBytes<32>;
|
|
1971
|
+
oldDeposit: bigint;
|
|
1972
|
+
newDeposit: bigint;
|
|
1973
|
+
}>;
|
|
1904
1974
|
/**
|
|
1905
1975
|
* Generic pallet event
|
|
1906
1976
|
**/
|
|
@@ -3673,19 +3743,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3673
3743
|
**/
|
|
3674
3744
|
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
3675
3745
|
/**
|
|
3676
|
-
* An account
|
|
3746
|
+
* An account has voted
|
|
3677
3747
|
**/
|
|
3678
3748
|
Voted: GenericPalletEvent<Rv, 'ConvictionVoting', 'Voted', {
|
|
3679
3749
|
who: AccountId32;
|
|
3680
3750
|
vote: PalletConvictionVotingVoteAccountVote;
|
|
3681
3751
|
}>;
|
|
3682
3752
|
/**
|
|
3683
|
-
* A vote
|
|
3753
|
+
* A vote has been removed
|
|
3684
3754
|
**/
|
|
3685
3755
|
VoteRemoved: GenericPalletEvent<Rv, 'ConvictionVoting', 'VoteRemoved', {
|
|
3686
3756
|
who: AccountId32;
|
|
3687
3757
|
vote: PalletConvictionVotingVoteAccountVote;
|
|
3688
3758
|
}>;
|
|
3759
|
+
/**
|
|
3760
|
+
* The lockup period of a conviction vote expired, and the funds have been unlocked.
|
|
3761
|
+
**/
|
|
3762
|
+
VoteUnlocked: GenericPalletEvent<Rv, 'ConvictionVoting', 'VoteUnlocked', {
|
|
3763
|
+
who: AccountId32;
|
|
3764
|
+
class: number;
|
|
3765
|
+
}>;
|
|
3689
3766
|
/**
|
|
3690
3767
|
* Generic pallet event
|
|
3691
3768
|
**/
|
|
@@ -4048,6 +4125,46 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4048
4125
|
poolId: number;
|
|
4049
4126
|
amount: bigint;
|
|
4050
4127
|
}>;
|
|
4128
|
+
/**
|
|
4129
|
+
* A pool member's claim permission has been updated.
|
|
4130
|
+
**/
|
|
4131
|
+
MemberClaimPermissionUpdated: GenericPalletEvent<Rv, 'NominationPools', 'MemberClaimPermissionUpdated', {
|
|
4132
|
+
member: AccountId32;
|
|
4133
|
+
permission: PalletNominationPoolsClaimPermission;
|
|
4134
|
+
}>;
|
|
4135
|
+
/**
|
|
4136
|
+
* A pool's metadata was updated.
|
|
4137
|
+
**/
|
|
4138
|
+
MetadataUpdated: GenericPalletEvent<Rv, 'NominationPools', 'MetadataUpdated', {
|
|
4139
|
+
poolId: number;
|
|
4140
|
+
caller: AccountId32;
|
|
4141
|
+
}>;
|
|
4142
|
+
/**
|
|
4143
|
+
* A pool's nominating account (or the pool's root account) has nominated a validator set
|
|
4144
|
+
* on behalf of the pool.
|
|
4145
|
+
**/
|
|
4146
|
+
PoolNominationMade: GenericPalletEvent<Rv, 'NominationPools', 'PoolNominationMade', {
|
|
4147
|
+
poolId: number;
|
|
4148
|
+
caller: AccountId32;
|
|
4149
|
+
}>;
|
|
4150
|
+
/**
|
|
4151
|
+
* The pool is chilled i.e. no longer nominating.
|
|
4152
|
+
**/
|
|
4153
|
+
PoolNominatorChilled: GenericPalletEvent<Rv, 'NominationPools', 'PoolNominatorChilled', {
|
|
4154
|
+
poolId: number;
|
|
4155
|
+
caller: AccountId32;
|
|
4156
|
+
}>;
|
|
4157
|
+
/**
|
|
4158
|
+
* Global parameters regulating nomination pools have been updated.
|
|
4159
|
+
**/
|
|
4160
|
+
GlobalParamsUpdated: GenericPalletEvent<Rv, 'NominationPools', 'GlobalParamsUpdated', {
|
|
4161
|
+
minJoinBond: bigint;
|
|
4162
|
+
minCreateBond: bigint;
|
|
4163
|
+
maxPools?: number | undefined;
|
|
4164
|
+
maxMembers?: number | undefined;
|
|
4165
|
+
maxMembersPerPool?: number | undefined;
|
|
4166
|
+
globalMaxCommission?: Perbill | undefined;
|
|
4167
|
+
}>;
|
|
4051
4168
|
/**
|
|
4052
4169
|
* Generic pallet event
|
|
4053
4170
|
**/
|
|
@@ -4959,6 +5076,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4959
5076
|
**/
|
|
4960
5077
|
task: number;
|
|
4961
5078
|
}>;
|
|
5079
|
+
/**
|
|
5080
|
+
* An assignment has been removed from the workplan.
|
|
5081
|
+
**/
|
|
5082
|
+
AssignmentRemoved: GenericPalletEvent<Rv, 'Broker', 'AssignmentRemoved', {
|
|
5083
|
+
/**
|
|
5084
|
+
* The Region which was removed from the workplan.
|
|
5085
|
+
**/
|
|
5086
|
+
regionId: PalletBrokerRegionId;
|
|
5087
|
+
}>;
|
|
4962
5088
|
/**
|
|
4963
5089
|
* A Region has been added to the Instantaneous Coretime Pool.
|
|
4964
5090
|
**/
|
|
@@ -5021,11 +5147,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
5021
5147
|
**/
|
|
5022
5148
|
SaleInitialized: GenericPalletEvent<Rv, 'Broker', 'SaleInitialized', {
|
|
5023
5149
|
/**
|
|
5024
|
-
* The
|
|
5150
|
+
* The relay block number at which the sale will/did start.
|
|
5025
5151
|
**/
|
|
5026
5152
|
saleStart: number;
|
|
5027
5153
|
/**
|
|
5028
|
-
* The length in blocks of the Leadin Period (where the price is
|
|
5154
|
+
* The length in relay chain blocks of the Leadin Period (where the price is
|
|
5155
|
+
* decreasing).
|
|
5029
5156
|
**/
|
|
5030
5157
|
leadinLength: number;
|
|
5031
5158
|
/**
|
|
@@ -5069,6 +5196,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
5069
5196
|
**/
|
|
5070
5197
|
until: number;
|
|
5071
5198
|
}>;
|
|
5199
|
+
/**
|
|
5200
|
+
* A lease has been removed.
|
|
5201
|
+
**/
|
|
5202
|
+
LeaseRemoved: GenericPalletEvent<Rv, 'Broker', 'LeaseRemoved', {
|
|
5203
|
+
/**
|
|
5204
|
+
* The task to which a core was assigned.
|
|
5205
|
+
**/
|
|
5206
|
+
task: number;
|
|
5207
|
+
}>;
|
|
5072
5208
|
/**
|
|
5073
5209
|
* A lease is about to end.
|
|
5074
5210
|
**/
|
|
@@ -5391,137 +5527,251 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
5391
5527
|
**/
|
|
5392
5528
|
revive: {
|
|
5393
5529
|
/**
|
|
5394
|
-
*
|
|
5530
|
+
* A custom event emitted by the contract.
|
|
5395
5531
|
**/
|
|
5396
|
-
|
|
5397
|
-
|
|
5532
|
+
ContractEmitted: GenericPalletEvent<Rv, 'Revive', 'ContractEmitted', {
|
|
5533
|
+
/**
|
|
5534
|
+
* The contract that emitted the event.
|
|
5535
|
+
**/
|
|
5398
5536
|
contract: H160;
|
|
5537
|
+
/**
|
|
5538
|
+
* Data supplied by the contract. Metadata generated during contract compilation
|
|
5539
|
+
* is needed to decode it.
|
|
5540
|
+
**/
|
|
5541
|
+
data: Bytes;
|
|
5542
|
+
/**
|
|
5543
|
+
* A list of topics used to index the event.
|
|
5544
|
+
* Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
|
|
5545
|
+
**/
|
|
5546
|
+
topics: Array<H256>;
|
|
5399
5547
|
}>;
|
|
5400
5548
|
/**
|
|
5401
|
-
*
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5549
|
+
* Generic pallet event
|
|
5550
|
+
**/
|
|
5551
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
5552
|
+
};
|
|
5553
|
+
/**
|
|
5554
|
+
* Pallet `DelegatedStaking`'s events
|
|
5555
|
+
**/
|
|
5556
|
+
delegatedStaking: {
|
|
5557
|
+
/**
|
|
5558
|
+
* Funds delegated by a delegator.
|
|
5559
|
+
**/
|
|
5560
|
+
Delegated: GenericPalletEvent<Rv, 'DelegatedStaking', 'Delegated', {
|
|
5561
|
+
agent: AccountId32;
|
|
5562
|
+
delegator: AccountId32;
|
|
5563
|
+
amount: bigint;
|
|
5564
|
+
}>;
|
|
5565
|
+
/**
|
|
5566
|
+
* Funds released to a delegator.
|
|
5567
|
+
**/
|
|
5568
|
+
Released: GenericPalletEvent<Rv, 'DelegatedStaking', 'Released', {
|
|
5569
|
+
agent: AccountId32;
|
|
5570
|
+
delegator: AccountId32;
|
|
5571
|
+
amount: bigint;
|
|
5572
|
+
}>;
|
|
5573
|
+
/**
|
|
5574
|
+
* Funds slashed from a delegator.
|
|
5575
|
+
**/
|
|
5576
|
+
Slashed: GenericPalletEvent<Rv, 'DelegatedStaking', 'Slashed', {
|
|
5577
|
+
agent: AccountId32;
|
|
5578
|
+
delegator: AccountId32;
|
|
5579
|
+
amount: bigint;
|
|
5580
|
+
}>;
|
|
5581
|
+
/**
|
|
5582
|
+
* Unclaimed delegation funds migrated to delegator.
|
|
5583
|
+
**/
|
|
5584
|
+
MigratedDelegation: GenericPalletEvent<Rv, 'DelegatedStaking', 'MigratedDelegation', {
|
|
5585
|
+
agent: AccountId32;
|
|
5586
|
+
delegator: AccountId32;
|
|
5587
|
+
amount: bigint;
|
|
5588
|
+
}>;
|
|
5589
|
+
/**
|
|
5590
|
+
* Generic pallet event
|
|
5591
|
+
**/
|
|
5592
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
5593
|
+
};
|
|
5594
|
+
/**
|
|
5595
|
+
* Pallet `AssetRewards`'s events
|
|
5596
|
+
**/
|
|
5597
|
+
assetRewards: {
|
|
5598
|
+
/**
|
|
5599
|
+
* An account staked some tokens in a pool.
|
|
5407
5600
|
**/
|
|
5408
|
-
|
|
5601
|
+
Staked: GenericPalletEvent<Rv, 'AssetRewards', 'Staked', {
|
|
5409
5602
|
/**
|
|
5410
|
-
* The
|
|
5603
|
+
* The account that staked assets.
|
|
5411
5604
|
**/
|
|
5412
|
-
|
|
5605
|
+
staker: AccountId32;
|
|
5413
5606
|
/**
|
|
5414
|
-
* The
|
|
5607
|
+
* The pool.
|
|
5608
|
+
**/
|
|
5609
|
+
poolId: number;
|
|
5610
|
+
/**
|
|
5611
|
+
* The staked asset amount.
|
|
5415
5612
|
**/
|
|
5416
|
-
|
|
5613
|
+
amount: bigint;
|
|
5417
5614
|
}>;
|
|
5418
5615
|
/**
|
|
5419
|
-
*
|
|
5616
|
+
* An account unstaked some tokens from a pool.
|
|
5420
5617
|
**/
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5618
|
+
Unstaked: GenericPalletEvent<Rv, 'AssetRewards', 'Unstaked', {
|
|
5619
|
+
/**
|
|
5620
|
+
* The account that signed transaction.
|
|
5621
|
+
**/
|
|
5622
|
+
caller: AccountId32;
|
|
5623
|
+
/**
|
|
5624
|
+
* The account that unstaked assets.
|
|
5625
|
+
**/
|
|
5626
|
+
staker: AccountId32;
|
|
5627
|
+
/**
|
|
5628
|
+
* The pool.
|
|
5629
|
+
**/
|
|
5630
|
+
poolId: number;
|
|
5631
|
+
/**
|
|
5632
|
+
* The unstaked asset amount.
|
|
5633
|
+
**/
|
|
5634
|
+
amount: bigint;
|
|
5425
5635
|
}>;
|
|
5426
5636
|
/**
|
|
5427
|
-
*
|
|
5637
|
+
* An account harvested some rewards.
|
|
5428
5638
|
**/
|
|
5429
|
-
|
|
5639
|
+
RewardsHarvested: GenericPalletEvent<Rv, 'AssetRewards', 'RewardsHarvested', {
|
|
5430
5640
|
/**
|
|
5431
|
-
* The
|
|
5641
|
+
* The account that signed transaction.
|
|
5432
5642
|
**/
|
|
5433
|
-
|
|
5643
|
+
caller: AccountId32;
|
|
5434
5644
|
/**
|
|
5435
|
-
*
|
|
5436
|
-
* is needed to decode it.
|
|
5645
|
+
* The staker whos rewards were harvested.
|
|
5437
5646
|
**/
|
|
5438
|
-
|
|
5647
|
+
staker: AccountId32;
|
|
5439
5648
|
/**
|
|
5440
|
-
*
|
|
5441
|
-
* Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
|
|
5649
|
+
* The pool.
|
|
5442
5650
|
**/
|
|
5443
|
-
|
|
5651
|
+
poolId: number;
|
|
5652
|
+
/**
|
|
5653
|
+
* The amount of harvested tokens.
|
|
5654
|
+
**/
|
|
5655
|
+
amount: bigint;
|
|
5444
5656
|
}>;
|
|
5445
5657
|
/**
|
|
5446
|
-
* A
|
|
5658
|
+
* A new reward pool was created.
|
|
5447
5659
|
**/
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5660
|
+
PoolCreated: GenericPalletEvent<Rv, 'AssetRewards', 'PoolCreated', {
|
|
5661
|
+
/**
|
|
5662
|
+
* The account that created the pool.
|
|
5663
|
+
**/
|
|
5664
|
+
creator: AccountId32;
|
|
5665
|
+
/**
|
|
5666
|
+
* The unique ID for the new pool.
|
|
5667
|
+
**/
|
|
5668
|
+
poolId: number;
|
|
5669
|
+
/**
|
|
5670
|
+
* The staking asset.
|
|
5671
|
+
**/
|
|
5672
|
+
stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
|
|
5673
|
+
/**
|
|
5674
|
+
* The reward asset.
|
|
5675
|
+
**/
|
|
5676
|
+
rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
|
|
5677
|
+
/**
|
|
5678
|
+
* The initial reward rate per block.
|
|
5679
|
+
**/
|
|
5680
|
+
rewardRatePerBlock: bigint;
|
|
5681
|
+
/**
|
|
5682
|
+
* The block the pool will cease to accumulate rewards.
|
|
5683
|
+
**/
|
|
5684
|
+
expiryBlock: number;
|
|
5685
|
+
/**
|
|
5686
|
+
* The account allowed to modify the pool.
|
|
5687
|
+
**/
|
|
5688
|
+
admin: AccountId32;
|
|
5452
5689
|
}>;
|
|
5453
5690
|
/**
|
|
5454
|
-
* A
|
|
5691
|
+
* A pool reward rate was modified by the admin.
|
|
5455
5692
|
**/
|
|
5456
|
-
|
|
5457
|
-
/**
|
|
5458
|
-
* The contract that has been updated.
|
|
5459
|
-
**/
|
|
5460
|
-
contract: H160;
|
|
5693
|
+
PoolRewardRateModified: GenericPalletEvent<Rv, 'AssetRewards', 'PoolRewardRateModified', {
|
|
5461
5694
|
/**
|
|
5462
|
-
*
|
|
5695
|
+
* The modified pool.
|
|
5463
5696
|
**/
|
|
5464
|
-
|
|
5697
|
+
poolId: number;
|
|
5465
5698
|
/**
|
|
5466
|
-
*
|
|
5699
|
+
* The new reward rate per block.
|
|
5467
5700
|
**/
|
|
5468
|
-
|
|
5701
|
+
newRewardRatePerBlock: bigint;
|
|
5469
5702
|
}>;
|
|
5470
5703
|
/**
|
|
5471
|
-
* A
|
|
5472
|
-
*
|
|
5473
|
-
* # Note
|
|
5474
|
-
*
|
|
5475
|
-
* Please keep in mind that like all events this is only emitted for successful
|
|
5476
|
-
* calls. This is because on failure all storage changes including events are
|
|
5477
|
-
* rolled back.
|
|
5704
|
+
* A pool admin was modified.
|
|
5478
5705
|
**/
|
|
5479
|
-
|
|
5706
|
+
PoolAdminModified: GenericPalletEvent<Rv, 'AssetRewards', 'PoolAdminModified', {
|
|
5480
5707
|
/**
|
|
5481
|
-
* The
|
|
5708
|
+
* The modified pool.
|
|
5482
5709
|
**/
|
|
5483
|
-
|
|
5710
|
+
poolId: number;
|
|
5484
5711
|
/**
|
|
5485
|
-
* The
|
|
5712
|
+
* The new admin.
|
|
5486
5713
|
**/
|
|
5487
|
-
|
|
5714
|
+
newAdmin: AccountId32;
|
|
5488
5715
|
}>;
|
|
5489
5716
|
/**
|
|
5490
|
-
* A
|
|
5491
|
-
*
|
|
5492
|
-
* # Note
|
|
5493
|
-
*
|
|
5494
|
-
* Please keep in mind that like all events this is only emitted for successful
|
|
5495
|
-
* calls. This is because on failure all storage changes including events are
|
|
5496
|
-
* rolled back.
|
|
5717
|
+
* A pool expiry block was modified by the admin.
|
|
5497
5718
|
**/
|
|
5498
|
-
|
|
5719
|
+
PoolExpiryBlockModified: GenericPalletEvent<Rv, 'AssetRewards', 'PoolExpiryBlockModified', {
|
|
5499
5720
|
/**
|
|
5500
|
-
* The
|
|
5501
|
-
* the `code_hash` is executed.
|
|
5721
|
+
* The modified pool.
|
|
5502
5722
|
**/
|
|
5503
|
-
|
|
5723
|
+
poolId: number;
|
|
5504
5724
|
/**
|
|
5505
|
-
* The
|
|
5725
|
+
* The new expiry block.
|
|
5506
5726
|
**/
|
|
5507
|
-
|
|
5727
|
+
newExpiryBlock: number;
|
|
5508
5728
|
}>;
|
|
5509
5729
|
/**
|
|
5510
|
-
*
|
|
5730
|
+
* A pool information was cleared after it's completion.
|
|
5511
5731
|
**/
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5732
|
+
PoolCleanedUp: GenericPalletEvent<Rv, 'AssetRewards', 'PoolCleanedUp', {
|
|
5733
|
+
/**
|
|
5734
|
+
* The cleared pool.
|
|
5735
|
+
**/
|
|
5736
|
+
poolId: number;
|
|
5516
5737
|
}>;
|
|
5517
5738
|
/**
|
|
5518
|
-
*
|
|
5739
|
+
* Generic pallet event
|
|
5519
5740
|
**/
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5741
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
5742
|
+
};
|
|
5743
|
+
/**
|
|
5744
|
+
* Pallet `AssetsFreezer`'s events
|
|
5745
|
+
**/
|
|
5746
|
+
assetsFreezer: {
|
|
5747
|
+
Frozen: GenericPalletEvent<Rv, 'AssetsFreezer', 'Frozen', {
|
|
5748
|
+
who: AccountId32;
|
|
5749
|
+
assetId: number;
|
|
5523
5750
|
amount: bigint;
|
|
5524
5751
|
}>;
|
|
5752
|
+
Thawed: GenericPalletEvent<Rv, 'AssetsFreezer', 'Thawed', {
|
|
5753
|
+
who: AccountId32;
|
|
5754
|
+
assetId: number;
|
|
5755
|
+
amount: bigint;
|
|
5756
|
+
}>;
|
|
5757
|
+
/**
|
|
5758
|
+
* Generic pallet event
|
|
5759
|
+
**/
|
|
5760
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
5761
|
+
};
|
|
5762
|
+
/**
|
|
5763
|
+
* Pallet `MetaTx`'s events
|
|
5764
|
+
**/
|
|
5765
|
+
metaTx: {
|
|
5766
|
+
/**
|
|
5767
|
+
* A meta transaction has been dispatched.
|
|
5768
|
+
*
|
|
5769
|
+
* Contains the dispatch result of the meta transaction along with post-dispatch
|
|
5770
|
+
* information.
|
|
5771
|
+
**/
|
|
5772
|
+
Dispatched: GenericPalletEvent<Rv, 'MetaTx', 'Dispatched', {
|
|
5773
|
+
result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>;
|
|
5774
|
+
}>;
|
|
5525
5775
|
/**
|
|
5526
5776
|
* Generic pallet event
|
|
5527
5777
|
**/
|