@dedot/chaintypes 0.97.0 → 0.99.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/substrate/consts.d.ts +96 -11
- package/substrate/errors.d.ts +276 -2
- package/substrate/events.d.ts +416 -97
- package/substrate/query.d.ts +163 -19
- package/substrate/runtime.d.ts +134 -19
- package/substrate/tx.d.ts +699 -29
- package/substrate/types.d.ts +1380 -218
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +7 -0
- package/westend/tx.d.ts +40 -0
- package/westend/types.d.ts +20 -4
- package/westend-asset-hub/index.d.ts +1 -1
package/substrate/events.d.ts
CHANGED
|
@@ -31,9 +31,9 @@ import type {
|
|
|
31
31
|
SpConsensusGrandpaAppPublic,
|
|
32
32
|
PalletContractsOrigin,
|
|
33
33
|
PalletImOnlineSr25519AppSr25519Public,
|
|
34
|
-
SpStakingExposure,
|
|
35
34
|
PalletSocietyGroupParams,
|
|
36
35
|
KitchensinkRuntimeProxyType,
|
|
36
|
+
PalletProxyDepositKind,
|
|
37
37
|
PalletMultisigTimepoint,
|
|
38
38
|
PalletNftsAttributeNamespace,
|
|
39
39
|
PalletNftsPriceWithDirection,
|
|
@@ -52,6 +52,7 @@ import type {
|
|
|
52
52
|
PalletNominationPoolsPoolState,
|
|
53
53
|
PalletNominationPoolsCommissionChangeRate,
|
|
54
54
|
PalletNominationPoolsCommissionClaimPermission,
|
|
55
|
+
PalletNominationPoolsClaimPermission,
|
|
55
56
|
PalletRankedCollectiveTally,
|
|
56
57
|
PalletRankedCollectiveVoteRecord,
|
|
57
58
|
FrameSupportMessagesProcessMessageError,
|
|
@@ -64,7 +65,6 @@ import type {
|
|
|
64
65
|
KitchensinkRuntimeRuntimeParametersKey,
|
|
65
66
|
KitchensinkRuntimeRuntimeParametersValue,
|
|
66
67
|
KitchensinkRuntimeOriginCaller,
|
|
67
|
-
PalletReviveExecOrigin,
|
|
68
68
|
} from './types.js';
|
|
69
69
|
|
|
70
70
|
export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
|
|
@@ -117,6 +117,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
117
117
|
**/
|
|
118
118
|
UpgradeAuthorized: GenericPalletEvent<Rv, 'System', 'UpgradeAuthorized', { codeHash: H256; checkVersion: boolean }>;
|
|
119
119
|
|
|
120
|
+
/**
|
|
121
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
122
|
+
**/
|
|
123
|
+
RejectedInvalidAuthorizedUpgrade: GenericPalletEvent<
|
|
124
|
+
Rv,
|
|
125
|
+
'System',
|
|
126
|
+
'RejectedInvalidAuthorizedUpgrade',
|
|
127
|
+
{ codeHash: H256; error: DispatchError }
|
|
128
|
+
>;
|
|
129
|
+
|
|
120
130
|
/**
|
|
121
131
|
* Generic pallet event
|
|
122
132
|
**/
|
|
@@ -157,6 +167,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
157
167
|
**/
|
|
158
168
|
DispatchedAs: GenericPalletEvent<Rv, 'Utility', 'DispatchedAs', { result: Result<[], DispatchError> }>;
|
|
159
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Main call was dispatched.
|
|
172
|
+
**/
|
|
173
|
+
IfElseMainSuccess: GenericPalletEvent<Rv, 'Utility', 'IfElseMainSuccess', null>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The fallback call was dispatched.
|
|
177
|
+
**/
|
|
178
|
+
IfElseFallbackCalled: GenericPalletEvent<Rv, 'Utility', 'IfElseFallbackCalled', { mainError: DispatchError }>;
|
|
179
|
+
|
|
160
180
|
/**
|
|
161
181
|
* Generic pallet event
|
|
162
182
|
**/
|
|
@@ -181,6 +201,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
181
201
|
**/
|
|
182
202
|
IndexFrozen: GenericPalletEvent<Rv, 'Indices', 'IndexFrozen', { index: number; who: AccountId32 }>;
|
|
183
203
|
|
|
204
|
+
/**
|
|
205
|
+
* A deposit to reserve an index has been poked/reconsidered.
|
|
206
|
+
**/
|
|
207
|
+
DepositPoked: GenericPalletEvent<
|
|
208
|
+
Rv,
|
|
209
|
+
'Indices',
|
|
210
|
+
'DepositPoked',
|
|
211
|
+
{ who: AccountId32; index: number; oldDeposit: bigint; newDeposit: bigint }
|
|
212
|
+
>;
|
|
213
|
+
|
|
184
214
|
/**
|
|
185
215
|
* Generic pallet event
|
|
186
216
|
**/
|
|
@@ -559,6 +589,17 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
559
589
|
**/
|
|
560
590
|
ControllerBatchDeprecated: GenericPalletEvent<Rv, 'Staking', 'ControllerBatchDeprecated', { failures: number }>;
|
|
561
591
|
|
|
592
|
+
/**
|
|
593
|
+
* Staking balance migrated from locks to holds, with any balance that could not be held
|
|
594
|
+
* is force withdrawn.
|
|
595
|
+
**/
|
|
596
|
+
CurrencyMigrated: GenericPalletEvent<
|
|
597
|
+
Rv,
|
|
598
|
+
'Staking',
|
|
599
|
+
'CurrencyMigrated',
|
|
600
|
+
{ stash: AccountId32; forceWithdraw: bigint }
|
|
601
|
+
>;
|
|
602
|
+
|
|
562
603
|
/**
|
|
563
604
|
* Generic pallet event
|
|
564
605
|
**/
|
|
@@ -574,6 +615,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
574
615
|
**/
|
|
575
616
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
|
|
576
617
|
|
|
618
|
+
/**
|
|
619
|
+
* Validator has been disabled.
|
|
620
|
+
**/
|
|
621
|
+
ValidatorDisabled: GenericPalletEvent<Rv, 'Session', 'ValidatorDisabled', { validator: AccountId32 }>;
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Validator has been re-enabled.
|
|
625
|
+
**/
|
|
626
|
+
ValidatorReenabled: GenericPalletEvent<Rv, 'Session', 'ValidatorReenabled', { validator: AccountId32 }>;
|
|
627
|
+
|
|
577
628
|
/**
|
|
578
629
|
* Generic pallet event
|
|
579
630
|
**/
|
|
@@ -916,7 +967,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
916
967
|
elections: {
|
|
917
968
|
/**
|
|
918
969
|
* A new term with new_members. This indicates that enough candidates existed to run
|
|
919
|
-
* the election, not that enough have
|
|
970
|
+
* the election, not that enough have been elected. The inner value must be examined
|
|
920
971
|
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
|
921
972
|
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
|
922
973
|
* begin with.
|
|
@@ -1430,12 +1481,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1430
1481
|
/**
|
|
1431
1482
|
* At the end of the session, at least one validator was found to be offline.
|
|
1432
1483
|
**/
|
|
1433
|
-
SomeOffline: GenericPalletEvent<
|
|
1434
|
-
Rv,
|
|
1435
|
-
'ImOnline',
|
|
1436
|
-
'SomeOffline',
|
|
1437
|
-
{ offline: Array<[AccountId32, SpStakingExposure]> }
|
|
1438
|
-
>;
|
|
1484
|
+
SomeOffline: GenericPalletEvent<Rv, 'ImOnline', 'SomeOffline', { offline: Array<[AccountId32, []]> }>;
|
|
1439
1485
|
|
|
1440
1486
|
/**
|
|
1441
1487
|
* Generic pallet event
|
|
@@ -1900,6 +1946,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1900
1946
|
{ task: [number, number]; id?: FixedBytes<32> | undefined }
|
|
1901
1947
|
>;
|
|
1902
1948
|
|
|
1949
|
+
/**
|
|
1950
|
+
* Agenda is incomplete from `when`.
|
|
1951
|
+
**/
|
|
1952
|
+
AgendaIncomplete: GenericPalletEvent<Rv, 'Scheduler', 'AgendaIncomplete', { when: number }>;
|
|
1953
|
+
|
|
1903
1954
|
/**
|
|
1904
1955
|
* Generic pallet event
|
|
1905
1956
|
**/
|
|
@@ -2043,6 +2094,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2043
2094
|
{ delegator: AccountId32; delegatee: AccountId32; proxyType: KitchensinkRuntimeProxyType; delay: number }
|
|
2044
2095
|
>;
|
|
2045
2096
|
|
|
2097
|
+
/**
|
|
2098
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
2099
|
+
**/
|
|
2100
|
+
DepositPoked: GenericPalletEvent<
|
|
2101
|
+
Rv,
|
|
2102
|
+
'Proxy',
|
|
2103
|
+
'DepositPoked',
|
|
2104
|
+
{ who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint }
|
|
2105
|
+
>;
|
|
2106
|
+
|
|
2046
2107
|
/**
|
|
2047
2108
|
* Generic pallet event
|
|
2048
2109
|
**/
|
|
@@ -2098,6 +2159,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2098
2159
|
{ cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
|
|
2099
2160
|
>;
|
|
2100
2161
|
|
|
2162
|
+
/**
|
|
2163
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
2164
|
+
**/
|
|
2165
|
+
DepositPoked: GenericPalletEvent<
|
|
2166
|
+
Rv,
|
|
2167
|
+
'Multisig',
|
|
2168
|
+
'DepositPoked',
|
|
2169
|
+
{ who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint }
|
|
2170
|
+
>;
|
|
2171
|
+
|
|
2101
2172
|
/**
|
|
2102
2173
|
* Generic pallet event
|
|
2103
2174
|
**/
|
|
@@ -3961,7 +4032,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3961
4032
|
Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
|
|
3962
4033
|
|
|
3963
4034
|
/**
|
|
3964
|
-
* An account
|
|
4035
|
+
* An account has voted
|
|
3965
4036
|
**/
|
|
3966
4037
|
Voted: GenericPalletEvent<
|
|
3967
4038
|
Rv,
|
|
@@ -3971,7 +4042,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3971
4042
|
>;
|
|
3972
4043
|
|
|
3973
4044
|
/**
|
|
3974
|
-
* A vote
|
|
4045
|
+
* A vote has been removed
|
|
3975
4046
|
**/
|
|
3976
4047
|
VoteRemoved: GenericPalletEvent<
|
|
3977
4048
|
Rv,
|
|
@@ -3980,6 +4051,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3980
4051
|
{ who: AccountId32; vote: PalletConvictionVotingVoteAccountVote }
|
|
3981
4052
|
>;
|
|
3982
4053
|
|
|
4054
|
+
/**
|
|
4055
|
+
* The lockup period of a conviction vote expired, and the funds have been unlocked.
|
|
4056
|
+
**/
|
|
4057
|
+
VoteUnlocked: GenericPalletEvent<Rv, 'ConvictionVoting', 'VoteUnlocked', { who: AccountId32; class: number }>;
|
|
4058
|
+
|
|
3983
4059
|
/**
|
|
3984
4060
|
* Generic pallet event
|
|
3985
4061
|
**/
|
|
@@ -4397,6 +4473,64 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4397
4473
|
{ poolId: number; amount: bigint }
|
|
4398
4474
|
>;
|
|
4399
4475
|
|
|
4476
|
+
/**
|
|
4477
|
+
* A pool member's claim permission has been updated.
|
|
4478
|
+
**/
|
|
4479
|
+
MemberClaimPermissionUpdated: GenericPalletEvent<
|
|
4480
|
+
Rv,
|
|
4481
|
+
'NominationPools',
|
|
4482
|
+
'MemberClaimPermissionUpdated',
|
|
4483
|
+
{ member: AccountId32; permission: PalletNominationPoolsClaimPermission }
|
|
4484
|
+
>;
|
|
4485
|
+
|
|
4486
|
+
/**
|
|
4487
|
+
* A pool's metadata was updated.
|
|
4488
|
+
**/
|
|
4489
|
+
MetadataUpdated: GenericPalletEvent<
|
|
4490
|
+
Rv,
|
|
4491
|
+
'NominationPools',
|
|
4492
|
+
'MetadataUpdated',
|
|
4493
|
+
{ poolId: number; caller: AccountId32 }
|
|
4494
|
+
>;
|
|
4495
|
+
|
|
4496
|
+
/**
|
|
4497
|
+
* A pool's nominating account (or the pool's root account) has nominated a validator set
|
|
4498
|
+
* on behalf of the pool.
|
|
4499
|
+
**/
|
|
4500
|
+
PoolNominationMade: GenericPalletEvent<
|
|
4501
|
+
Rv,
|
|
4502
|
+
'NominationPools',
|
|
4503
|
+
'PoolNominationMade',
|
|
4504
|
+
{ poolId: number; caller: AccountId32 }
|
|
4505
|
+
>;
|
|
4506
|
+
|
|
4507
|
+
/**
|
|
4508
|
+
* The pool is chilled i.e. no longer nominating.
|
|
4509
|
+
**/
|
|
4510
|
+
PoolNominatorChilled: GenericPalletEvent<
|
|
4511
|
+
Rv,
|
|
4512
|
+
'NominationPools',
|
|
4513
|
+
'PoolNominatorChilled',
|
|
4514
|
+
{ poolId: number; caller: AccountId32 }
|
|
4515
|
+
>;
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* Global parameters regulating nomination pools have been updated.
|
|
4519
|
+
**/
|
|
4520
|
+
GlobalParamsUpdated: GenericPalletEvent<
|
|
4521
|
+
Rv,
|
|
4522
|
+
'NominationPools',
|
|
4523
|
+
'GlobalParamsUpdated',
|
|
4524
|
+
{
|
|
4525
|
+
minJoinBond: bigint;
|
|
4526
|
+
minCreateBond: bigint;
|
|
4527
|
+
maxPools?: number | undefined;
|
|
4528
|
+
maxMembers?: number | undefined;
|
|
4529
|
+
maxMembersPerPool?: number | undefined;
|
|
4530
|
+
globalMaxCommission?: Perbill | undefined;
|
|
4531
|
+
}
|
|
4532
|
+
>;
|
|
4533
|
+
|
|
4400
4534
|
/**
|
|
4401
4535
|
* Generic pallet event
|
|
4402
4536
|
**/
|
|
@@ -5609,6 +5743,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
5609
5743
|
}
|
|
5610
5744
|
>;
|
|
5611
5745
|
|
|
5746
|
+
/**
|
|
5747
|
+
* An assignment has been removed from the workplan.
|
|
5748
|
+
**/
|
|
5749
|
+
AssignmentRemoved: GenericPalletEvent<
|
|
5750
|
+
Rv,
|
|
5751
|
+
'Broker',
|
|
5752
|
+
'AssignmentRemoved',
|
|
5753
|
+
{
|
|
5754
|
+
/**
|
|
5755
|
+
* The Region which was removed from the workplan.
|
|
5756
|
+
**/
|
|
5757
|
+
regionId: PalletBrokerRegionId;
|
|
5758
|
+
}
|
|
5759
|
+
>;
|
|
5760
|
+
|
|
5612
5761
|
/**
|
|
5613
5762
|
* A Region has been added to the Instantaneous Coretime Pool.
|
|
5614
5763
|
**/
|
|
@@ -5708,12 +5857,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
5708
5857
|
'SaleInitialized',
|
|
5709
5858
|
{
|
|
5710
5859
|
/**
|
|
5711
|
-
* The
|
|
5860
|
+
* The relay block number at which the sale will/did start.
|
|
5712
5861
|
**/
|
|
5713
5862
|
saleStart: number;
|
|
5714
5863
|
|
|
5715
5864
|
/**
|
|
5716
|
-
* The length in blocks of the Leadin Period (where the price is
|
|
5865
|
+
* The length in relay chain blocks of the Leadin Period (where the price is
|
|
5866
|
+
* decreasing).
|
|
5717
5867
|
**/
|
|
5718
5868
|
leadinLength: number;
|
|
5719
5869
|
|
|
@@ -5772,6 +5922,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
5772
5922
|
}
|
|
5773
5923
|
>;
|
|
5774
5924
|
|
|
5925
|
+
/**
|
|
5926
|
+
* A lease has been removed.
|
|
5927
|
+
**/
|
|
5928
|
+
LeaseRemoved: GenericPalletEvent<
|
|
5929
|
+
Rv,
|
|
5930
|
+
'Broker',
|
|
5931
|
+
'LeaseRemoved',
|
|
5932
|
+
{
|
|
5933
|
+
/**
|
|
5934
|
+
* The task to which a core was assigned.
|
|
5935
|
+
**/
|
|
5936
|
+
task: number;
|
|
5937
|
+
}
|
|
5938
|
+
>;
|
|
5939
|
+
|
|
5775
5940
|
/**
|
|
5776
5941
|
* A lease is about to end.
|
|
5777
5942
|
**/
|
|
@@ -6231,173 +6396,327 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
6231
6396
|
**/
|
|
6232
6397
|
revive: {
|
|
6233
6398
|
/**
|
|
6234
|
-
*
|
|
6235
|
-
**/
|
|
6236
|
-
Instantiated: GenericPalletEvent<Rv, 'Revive', 'Instantiated', { deployer: H160; contract: H160 }>;
|
|
6237
|
-
|
|
6238
|
-
/**
|
|
6239
|
-
* Contract has been removed.
|
|
6240
|
-
*
|
|
6241
|
-
* # Note
|
|
6242
|
-
*
|
|
6243
|
-
* The only way for a contract to be removed and emitting this event is by calling
|
|
6244
|
-
* `seal_terminate`.
|
|
6399
|
+
* A custom event emitted by the contract.
|
|
6245
6400
|
**/
|
|
6246
|
-
|
|
6401
|
+
ContractEmitted: GenericPalletEvent<
|
|
6247
6402
|
Rv,
|
|
6248
6403
|
'Revive',
|
|
6249
|
-
'
|
|
6404
|
+
'ContractEmitted',
|
|
6250
6405
|
{
|
|
6251
6406
|
/**
|
|
6252
|
-
* The contract that
|
|
6407
|
+
* The contract that emitted the event.
|
|
6253
6408
|
**/
|
|
6254
6409
|
contract: H160;
|
|
6255
6410
|
|
|
6256
6411
|
/**
|
|
6257
|
-
*
|
|
6412
|
+
* Data supplied by the contract. Metadata generated during contract compilation
|
|
6413
|
+
* is needed to decode it.
|
|
6414
|
+
**/
|
|
6415
|
+
data: Bytes;
|
|
6416
|
+
|
|
6417
|
+
/**
|
|
6418
|
+
* A list of topics used to index the event.
|
|
6419
|
+
* Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
|
|
6258
6420
|
**/
|
|
6259
|
-
|
|
6421
|
+
topics: Array<H256>;
|
|
6260
6422
|
}
|
|
6261
6423
|
>;
|
|
6262
6424
|
|
|
6263
6425
|
/**
|
|
6264
|
-
*
|
|
6426
|
+
* Generic pallet event
|
|
6265
6427
|
**/
|
|
6266
|
-
|
|
6428
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
6429
|
+
};
|
|
6430
|
+
/**
|
|
6431
|
+
* Pallet `DelegatedStaking`'s events
|
|
6432
|
+
**/
|
|
6433
|
+
delegatedStaking: {
|
|
6434
|
+
/**
|
|
6435
|
+
* Funds delegated by a delegator.
|
|
6436
|
+
**/
|
|
6437
|
+
Delegated: GenericPalletEvent<
|
|
6438
|
+
Rv,
|
|
6439
|
+
'DelegatedStaking',
|
|
6440
|
+
'Delegated',
|
|
6441
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
6442
|
+
>;
|
|
6267
6443
|
|
|
6268
6444
|
/**
|
|
6269
|
-
*
|
|
6445
|
+
* Funds released to a delegator.
|
|
6270
6446
|
**/
|
|
6271
|
-
|
|
6447
|
+
Released: GenericPalletEvent<
|
|
6272
6448
|
Rv,
|
|
6273
|
-
'
|
|
6274
|
-
'
|
|
6449
|
+
'DelegatedStaking',
|
|
6450
|
+
'Released',
|
|
6451
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
6452
|
+
>;
|
|
6453
|
+
|
|
6454
|
+
/**
|
|
6455
|
+
* Funds slashed from a delegator.
|
|
6456
|
+
**/
|
|
6457
|
+
Slashed: GenericPalletEvent<
|
|
6458
|
+
Rv,
|
|
6459
|
+
'DelegatedStaking',
|
|
6460
|
+
'Slashed',
|
|
6461
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
6462
|
+
>;
|
|
6463
|
+
|
|
6464
|
+
/**
|
|
6465
|
+
* Unclaimed delegation funds migrated to delegator.
|
|
6466
|
+
**/
|
|
6467
|
+
MigratedDelegation: GenericPalletEvent<
|
|
6468
|
+
Rv,
|
|
6469
|
+
'DelegatedStaking',
|
|
6470
|
+
'MigratedDelegation',
|
|
6471
|
+
{ agent: AccountId32; delegator: AccountId32; amount: bigint }
|
|
6472
|
+
>;
|
|
6473
|
+
|
|
6474
|
+
/**
|
|
6475
|
+
* Generic pallet event
|
|
6476
|
+
**/
|
|
6477
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
6478
|
+
};
|
|
6479
|
+
/**
|
|
6480
|
+
* Pallet `AssetRewards`'s events
|
|
6481
|
+
**/
|
|
6482
|
+
assetRewards: {
|
|
6483
|
+
/**
|
|
6484
|
+
* An account staked some tokens in a pool.
|
|
6485
|
+
**/
|
|
6486
|
+
Staked: GenericPalletEvent<
|
|
6487
|
+
Rv,
|
|
6488
|
+
'AssetRewards',
|
|
6489
|
+
'Staked',
|
|
6275
6490
|
{
|
|
6276
6491
|
/**
|
|
6277
|
-
* The
|
|
6492
|
+
* The account that staked assets.
|
|
6278
6493
|
**/
|
|
6279
|
-
|
|
6494
|
+
staker: AccountId32;
|
|
6280
6495
|
|
|
6281
6496
|
/**
|
|
6282
|
-
*
|
|
6283
|
-
* is needed to decode it.
|
|
6497
|
+
* The pool.
|
|
6284
6498
|
**/
|
|
6285
|
-
|
|
6499
|
+
poolId: number;
|
|
6286
6500
|
|
|
6287
6501
|
/**
|
|
6288
|
-
*
|
|
6289
|
-
* Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
|
|
6502
|
+
* The staked asset amount.
|
|
6290
6503
|
**/
|
|
6291
|
-
|
|
6504
|
+
amount: bigint;
|
|
6292
6505
|
}
|
|
6293
6506
|
>;
|
|
6294
6507
|
|
|
6295
6508
|
/**
|
|
6296
|
-
*
|
|
6509
|
+
* An account unstaked some tokens from a pool.
|
|
6297
6510
|
**/
|
|
6298
|
-
|
|
6511
|
+
Unstaked: GenericPalletEvent<
|
|
6299
6512
|
Rv,
|
|
6300
|
-
'
|
|
6301
|
-
'
|
|
6302
|
-
{
|
|
6513
|
+
'AssetRewards',
|
|
6514
|
+
'Unstaked',
|
|
6515
|
+
{
|
|
6516
|
+
/**
|
|
6517
|
+
* The account that signed transaction.
|
|
6518
|
+
**/
|
|
6519
|
+
caller: AccountId32;
|
|
6520
|
+
|
|
6521
|
+
/**
|
|
6522
|
+
* The account that unstaked assets.
|
|
6523
|
+
**/
|
|
6524
|
+
staker: AccountId32;
|
|
6525
|
+
|
|
6526
|
+
/**
|
|
6527
|
+
* The pool.
|
|
6528
|
+
**/
|
|
6529
|
+
poolId: number;
|
|
6530
|
+
|
|
6531
|
+
/**
|
|
6532
|
+
* The unstaked asset amount.
|
|
6533
|
+
**/
|
|
6534
|
+
amount: bigint;
|
|
6535
|
+
}
|
|
6303
6536
|
>;
|
|
6304
6537
|
|
|
6305
6538
|
/**
|
|
6306
|
-
*
|
|
6539
|
+
* An account harvested some rewards.
|
|
6307
6540
|
**/
|
|
6308
|
-
|
|
6541
|
+
RewardsHarvested: GenericPalletEvent<
|
|
6309
6542
|
Rv,
|
|
6310
|
-
'
|
|
6311
|
-
'
|
|
6543
|
+
'AssetRewards',
|
|
6544
|
+
'RewardsHarvested',
|
|
6312
6545
|
{
|
|
6313
6546
|
/**
|
|
6314
|
-
* The
|
|
6547
|
+
* The account that signed transaction.
|
|
6315
6548
|
**/
|
|
6316
|
-
|
|
6549
|
+
caller: AccountId32;
|
|
6317
6550
|
|
|
6318
6551
|
/**
|
|
6319
|
-
*
|
|
6552
|
+
* The staker whos rewards were harvested.
|
|
6320
6553
|
**/
|
|
6321
|
-
|
|
6554
|
+
staker: AccountId32;
|
|
6322
6555
|
|
|
6323
6556
|
/**
|
|
6324
|
-
*
|
|
6557
|
+
* The pool.
|
|
6325
6558
|
**/
|
|
6326
|
-
|
|
6559
|
+
poolId: number;
|
|
6560
|
+
|
|
6561
|
+
/**
|
|
6562
|
+
* The amount of harvested tokens.
|
|
6563
|
+
**/
|
|
6564
|
+
amount: bigint;
|
|
6327
6565
|
}
|
|
6328
6566
|
>;
|
|
6329
6567
|
|
|
6330
6568
|
/**
|
|
6331
|
-
* A
|
|
6332
|
-
*
|
|
6333
|
-
* # Note
|
|
6334
|
-
*
|
|
6335
|
-
* Please keep in mind that like all events this is only emitted for successful
|
|
6336
|
-
* calls. This is because on failure all storage changes including events are
|
|
6337
|
-
* rolled back.
|
|
6569
|
+
* A new reward pool was created.
|
|
6338
6570
|
**/
|
|
6339
|
-
|
|
6571
|
+
PoolCreated: GenericPalletEvent<
|
|
6340
6572
|
Rv,
|
|
6341
|
-
'
|
|
6342
|
-
'
|
|
6573
|
+
'AssetRewards',
|
|
6574
|
+
'PoolCreated',
|
|
6343
6575
|
{
|
|
6344
6576
|
/**
|
|
6345
|
-
* The
|
|
6577
|
+
* The account that created the pool.
|
|
6346
6578
|
**/
|
|
6347
|
-
|
|
6579
|
+
creator: AccountId32;
|
|
6348
6580
|
|
|
6349
6581
|
/**
|
|
6350
|
-
* The
|
|
6582
|
+
* The unique ID for the new pool.
|
|
6351
6583
|
**/
|
|
6352
|
-
|
|
6584
|
+
poolId: number;
|
|
6585
|
+
|
|
6586
|
+
/**
|
|
6587
|
+
* The staking asset.
|
|
6588
|
+
**/
|
|
6589
|
+
stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
|
|
6590
|
+
|
|
6591
|
+
/**
|
|
6592
|
+
* The reward asset.
|
|
6593
|
+
**/
|
|
6594
|
+
rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
|
|
6595
|
+
|
|
6596
|
+
/**
|
|
6597
|
+
* The initial reward rate per block.
|
|
6598
|
+
**/
|
|
6599
|
+
rewardRatePerBlock: bigint;
|
|
6600
|
+
|
|
6601
|
+
/**
|
|
6602
|
+
* The block the pool will cease to accumulate rewards.
|
|
6603
|
+
**/
|
|
6604
|
+
expiryBlock: number;
|
|
6605
|
+
|
|
6606
|
+
/**
|
|
6607
|
+
* The account allowed to modify the pool.
|
|
6608
|
+
**/
|
|
6609
|
+
admin: AccountId32;
|
|
6353
6610
|
}
|
|
6354
6611
|
>;
|
|
6355
6612
|
|
|
6356
6613
|
/**
|
|
6357
|
-
* A
|
|
6358
|
-
*
|
|
6359
|
-
* # Note
|
|
6360
|
-
*
|
|
6361
|
-
* Please keep in mind that like all events this is only emitted for successful
|
|
6362
|
-
* calls. This is because on failure all storage changes including events are
|
|
6363
|
-
* rolled back.
|
|
6614
|
+
* A pool reward rate was modified by the admin.
|
|
6364
6615
|
**/
|
|
6365
|
-
|
|
6616
|
+
PoolRewardRateModified: GenericPalletEvent<
|
|
6366
6617
|
Rv,
|
|
6367
|
-
'
|
|
6368
|
-
'
|
|
6618
|
+
'AssetRewards',
|
|
6619
|
+
'PoolRewardRateModified',
|
|
6369
6620
|
{
|
|
6370
6621
|
/**
|
|
6371
|
-
* The
|
|
6372
|
-
* the `code_hash` is executed.
|
|
6622
|
+
* The modified pool.
|
|
6373
6623
|
**/
|
|
6374
|
-
|
|
6624
|
+
poolId: number;
|
|
6375
6625
|
|
|
6376
6626
|
/**
|
|
6377
|
-
* The
|
|
6627
|
+
* The new reward rate per block.
|
|
6378
6628
|
**/
|
|
6379
|
-
|
|
6629
|
+
newRewardRatePerBlock: bigint;
|
|
6380
6630
|
}
|
|
6381
6631
|
>;
|
|
6382
6632
|
|
|
6383
6633
|
/**
|
|
6384
|
-
*
|
|
6634
|
+
* A pool admin was modified.
|
|
6385
6635
|
**/
|
|
6386
|
-
|
|
6636
|
+
PoolAdminModified: GenericPalletEvent<
|
|
6387
6637
|
Rv,
|
|
6388
|
-
'
|
|
6389
|
-
'
|
|
6390
|
-
{
|
|
6638
|
+
'AssetRewards',
|
|
6639
|
+
'PoolAdminModified',
|
|
6640
|
+
{
|
|
6641
|
+
/**
|
|
6642
|
+
* The modified pool.
|
|
6643
|
+
**/
|
|
6644
|
+
poolId: number;
|
|
6645
|
+
|
|
6646
|
+
/**
|
|
6647
|
+
* The new admin.
|
|
6648
|
+
**/
|
|
6649
|
+
newAdmin: AccountId32;
|
|
6650
|
+
}
|
|
6391
6651
|
>;
|
|
6392
6652
|
|
|
6393
6653
|
/**
|
|
6394
|
-
*
|
|
6654
|
+
* A pool expiry block was modified by the admin.
|
|
6395
6655
|
**/
|
|
6396
|
-
|
|
6656
|
+
PoolExpiryBlockModified: GenericPalletEvent<
|
|
6397
6657
|
Rv,
|
|
6398
|
-
'
|
|
6399
|
-
'
|
|
6400
|
-
{
|
|
6658
|
+
'AssetRewards',
|
|
6659
|
+
'PoolExpiryBlockModified',
|
|
6660
|
+
{
|
|
6661
|
+
/**
|
|
6662
|
+
* The modified pool.
|
|
6663
|
+
**/
|
|
6664
|
+
poolId: number;
|
|
6665
|
+
|
|
6666
|
+
/**
|
|
6667
|
+
* The new expiry block.
|
|
6668
|
+
**/
|
|
6669
|
+
newExpiryBlock: number;
|
|
6670
|
+
}
|
|
6671
|
+
>;
|
|
6672
|
+
|
|
6673
|
+
/**
|
|
6674
|
+
* A pool information was cleared after it's completion.
|
|
6675
|
+
**/
|
|
6676
|
+
PoolCleanedUp: GenericPalletEvent<
|
|
6677
|
+
Rv,
|
|
6678
|
+
'AssetRewards',
|
|
6679
|
+
'PoolCleanedUp',
|
|
6680
|
+
{
|
|
6681
|
+
/**
|
|
6682
|
+
* The cleared pool.
|
|
6683
|
+
**/
|
|
6684
|
+
poolId: number;
|
|
6685
|
+
}
|
|
6686
|
+
>;
|
|
6687
|
+
|
|
6688
|
+
/**
|
|
6689
|
+
* Generic pallet event
|
|
6690
|
+
**/
|
|
6691
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
6692
|
+
};
|
|
6693
|
+
/**
|
|
6694
|
+
* Pallet `AssetsFreezer`'s events
|
|
6695
|
+
**/
|
|
6696
|
+
assetsFreezer: {
|
|
6697
|
+
Frozen: GenericPalletEvent<Rv, 'AssetsFreezer', 'Frozen', { who: AccountId32; assetId: number; amount: bigint }>;
|
|
6698
|
+
Thawed: GenericPalletEvent<Rv, 'AssetsFreezer', 'Thawed', { who: AccountId32; assetId: number; amount: bigint }>;
|
|
6699
|
+
|
|
6700
|
+
/**
|
|
6701
|
+
* Generic pallet event
|
|
6702
|
+
**/
|
|
6703
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
6704
|
+
};
|
|
6705
|
+
/**
|
|
6706
|
+
* Pallet `MetaTx`'s events
|
|
6707
|
+
**/
|
|
6708
|
+
metaTx: {
|
|
6709
|
+
/**
|
|
6710
|
+
* A meta transaction has been dispatched.
|
|
6711
|
+
*
|
|
6712
|
+
* Contains the dispatch result of the meta transaction along with post-dispatch
|
|
6713
|
+
* information.
|
|
6714
|
+
**/
|
|
6715
|
+
Dispatched: GenericPalletEvent<
|
|
6716
|
+
Rv,
|
|
6717
|
+
'MetaTx',
|
|
6718
|
+
'Dispatched',
|
|
6719
|
+
{ result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
|
|
6401
6720
|
>;
|
|
6402
6721
|
|
|
6403
6722
|
/**
|