@dedot/api 0.6.1 → 0.7.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.
@@ -1,6 +1,6 @@
1
- import type { AccountId32, Bytes, DispatchError, DispatchInfo, FixedBytes, FixedU128, FixedU64, H256, Perbill, Permill, Perquintill, Result } from '@dedot/codecs';
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, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from './types.js';
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, PalletReviveExecOrigin, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from './types.js';
4
4
  export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
5
5
  /**
6
6
  * Pallet `System`'s events
@@ -10,14 +10,14 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
10
10
  * An extrinsic completed successfully.
11
11
  **/
12
12
  ExtrinsicSuccess: GenericPalletEvent<Rv, 'System', 'ExtrinsicSuccess', {
13
- dispatchInfo: DispatchInfo;
13
+ dispatchInfo: FrameSystemDispatchEventInfo;
14
14
  }>;
15
15
  /**
16
16
  * An extrinsic failed.
17
17
  **/
18
18
  ExtrinsicFailed: GenericPalletEvent<Rv, 'System', 'ExtrinsicFailed', {
19
19
  dispatchError: DispatchError;
20
- dispatchInfo: DispatchInfo;
20
+ dispatchInfo: FrameSystemDispatchEventInfo;
21
21
  }>;
22
22
  /**
23
23
  * `:code` was updated.
@@ -307,25 +307,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
307
307
  **/
308
308
  [prop: string]: GenericPalletEvent<Rv>;
309
309
  };
310
- /**
311
- * Pallet `AssetTxPayment`'s events
312
- **/
313
- assetTxPayment: {
314
- /**
315
- * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
316
- * has been paid by `who` in an asset `asset_id`.
317
- **/
318
- AssetTxFeePaid: GenericPalletEvent<Rv, 'AssetTxPayment', 'AssetTxFeePaid', {
319
- who: AccountId32;
320
- actualFee: bigint;
321
- tip: bigint;
322
- assetId?: number | undefined;
323
- }>;
324
- /**
325
- * Generic pallet event
326
- **/
327
- [prop: string]: GenericPalletEvent<Rv>;
328
- };
329
310
  /**
330
311
  * Pallet `AssetConversionTxPayment`'s events
331
312
  **/
@@ -338,7 +319,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
338
319
  who: AccountId32;
339
320
  actualFee: bigint;
340
321
  tip: bigint;
341
- assetId: number;
322
+ assetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
342
323
  }>;
343
324
  /**
344
325
  * A swap of the refund in native currency back to asset failed.
@@ -359,7 +340,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
359
340
  * A solution was stored with the given compute.
360
341
  *
361
342
  * The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
362
- * the stored solution was submited in the signed phase by a miner with the `AccountId`.
343
+ * the stored solution was submitted in the signed phase by a miner with the `AccountId`.
363
344
  * Otherwise, the solution was stored either during the unsigned phase or by
364
345
  * `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
365
346
  * room for this one.
@@ -500,11 +481,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
500
481
  stash: AccountId32;
501
482
  }>;
502
483
  /**
503
- * The stakers' rewards are getting paid.
484
+ * A Page of stakers rewards are getting paid. `next` is `None` if all pages are claimed.
504
485
  **/
505
486
  PayoutStarted: GenericPalletEvent<Rv, 'Staking', 'PayoutStarted', {
506
487
  eraIndex: number;
507
488
  validatorStash: AccountId32;
489
+ page: number;
490
+ next?: number | undefined;
508
491
  }>;
509
492
  /**
510
493
  * A validator has set their preferences.
@@ -641,7 +624,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
641
624
  vote: PalletDemocracyVoteAccountVote;
642
625
  }>;
643
626
  /**
644
- * An account has secconded a proposal
627
+ * An account has seconded a proposal
645
628
  **/
646
629
  Seconded: GenericPalletEvent<Rv, 'Democracy', 'Seconded', {
647
630
  seconder: AccountId32;
@@ -760,6 +743,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
760
743
  yes: number;
761
744
  no: number;
762
745
  }>;
746
+ /**
747
+ * A proposal was killed.
748
+ **/
749
+ Killed: GenericPalletEvent<Rv, 'Council', 'Killed', {
750
+ proposalHash: H256;
751
+ }>;
752
+ /**
753
+ * Some cost for storing a proposal was burned.
754
+ **/
755
+ ProposalCostBurned: GenericPalletEvent<Rv, 'Council', 'ProposalCostBurned', {
756
+ proposalHash: H256;
757
+ who: AccountId32;
758
+ }>;
759
+ /**
760
+ * Some cost for storing a proposal was released.
761
+ **/
762
+ ProposalCostReleased: GenericPalletEvent<Rv, 'Council', 'ProposalCostReleased', {
763
+ proposalHash: H256;
764
+ who: AccountId32;
765
+ }>;
763
766
  /**
764
767
  * Generic pallet event
765
768
  **/
@@ -824,6 +827,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
824
827
  yes: number;
825
828
  no: number;
826
829
  }>;
830
+ /**
831
+ * A proposal was killed.
832
+ **/
833
+ Killed: GenericPalletEvent<Rv, 'TechnicalCommittee', 'Killed', {
834
+ proposalHash: H256;
835
+ }>;
836
+ /**
837
+ * Some cost for storing a proposal was burned.
838
+ **/
839
+ ProposalCostBurned: GenericPalletEvent<Rv, 'TechnicalCommittee', 'ProposalCostBurned', {
840
+ proposalHash: H256;
841
+ who: AccountId32;
842
+ }>;
843
+ /**
844
+ * Some cost for storing a proposal was released.
845
+ **/
846
+ ProposalCostReleased: GenericPalletEvent<Rv, 'TechnicalCommittee', 'ProposalCostReleased', {
847
+ proposalHash: H256;
848
+ who: AccountId32;
849
+ }>;
827
850
  /**
828
851
  * Generic pallet event
829
852
  **/
@@ -947,12 +970,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
947
970
  * Pallet `Treasury`'s events
948
971
  **/
949
972
  treasury: {
950
- /**
951
- * New proposal.
952
- **/
953
- Proposed: GenericPalletEvent<Rv, 'Treasury', 'Proposed', {
954
- proposalIndex: number;
955
- }>;
956
973
  /**
957
974
  * We have ended a spend period and will now allocate funds.
958
975
  **/
@@ -967,13 +984,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
967
984
  award: bigint;
968
985
  account: AccountId32;
969
986
  }>;
970
- /**
971
- * A proposal was rejected; funds were slashed.
972
- **/
973
- Rejected: GenericPalletEvent<Rv, 'Treasury', 'Rejected', {
974
- proposalIndex: number;
975
- slashed: bigint;
976
- }>;
977
987
  /**
978
988
  * Some of our funds have been burnt.
979
989
  **/
@@ -1012,7 +1022,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1012
1022
  **/
1013
1023
  AssetSpendApproved: GenericPalletEvent<Rv, 'Treasury', 'AssetSpendApproved', {
1014
1024
  index: number;
1015
- assetKind: number;
1025
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1016
1026
  amount: bigint;
1017
1027
  beneficiary: AccountId32;
1018
1028
  validFrom: number;
@@ -1055,14 +1065,14 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1055
1065
  **/
1056
1066
  assetRate: {
1057
1067
  AssetRateCreated: GenericPalletEvent<Rv, 'AssetRate', 'AssetRateCreated', {
1058
- assetKind: number;
1068
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1059
1069
  rate: FixedU128;
1060
1070
  }>;
1061
1071
  AssetRateRemoved: GenericPalletEvent<Rv, 'AssetRate', 'AssetRateRemoved', {
1062
- assetKind: number;
1072
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1063
1073
  }>;
1064
1074
  AssetRateUpdated: GenericPalletEvent<Rv, 'AssetRate', 'AssetRateUpdated', {
1065
- assetKind: number;
1075
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1066
1076
  old: FixedU128;
1067
1077
  new: FixedU128;
1068
1078
  }>;
@@ -1353,6 +1363,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1353
1363
  main: AccountId32;
1354
1364
  deposit: bigint;
1355
1365
  }>;
1366
+ /**
1367
+ * An account's sub-identities were set (in bulk).
1368
+ **/
1369
+ SubIdentitiesSet: GenericPalletEvent<Rv, 'Identity', 'SubIdentitiesSet', {
1370
+ main: AccountId32;
1371
+ numberOfSubs: number;
1372
+ newDeposit: bigint;
1373
+ }>;
1374
+ /**
1375
+ * A given sub-account's associated name was changed by its super-identity.
1376
+ **/
1377
+ SubIdentityRenamed: GenericPalletEvent<Rv, 'Identity', 'SubIdentityRenamed', {
1378
+ sub: AccountId32;
1379
+ main: AccountId32;
1380
+ }>;
1356
1381
  /**
1357
1382
  * A sub-identity was removed from an identity and the deposit freed.
1358
1383
  **/
@@ -1418,6 +1443,24 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1418
1443
  who: AccountId32;
1419
1444
  username: Bytes;
1420
1445
  }>;
1446
+ /**
1447
+ * A username has been unbound.
1448
+ **/
1449
+ UsernameUnbound: GenericPalletEvent<Rv, 'Identity', 'UsernameUnbound', {
1450
+ username: Bytes;
1451
+ }>;
1452
+ /**
1453
+ * A username has been removed.
1454
+ **/
1455
+ UsernameRemoved: GenericPalletEvent<Rv, 'Identity', 'UsernameRemoved', {
1456
+ username: Bytes;
1457
+ }>;
1458
+ /**
1459
+ * A username has been killed.
1460
+ **/
1461
+ UsernameKilled: GenericPalletEvent<Rv, 'Identity', 'UsernameKilled', {
1462
+ username: Bytes;
1463
+ }>;
1421
1464
  /**
1422
1465
  * Generic pallet event
1423
1466
  **/
@@ -1726,6 +1769,15 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1726
1769
  **/
1727
1770
  storage: FixedU64;
1728
1771
  }>;
1772
+ /**
1773
+ * The block length limit has been updated.
1774
+ **/
1775
+ BlockLengthLimitSet: GenericPalletEvent<Rv, 'Glutton', 'BlockLengthLimitSet', {
1776
+ /**
1777
+ * The block length limit.
1778
+ **/
1779
+ blockLength: FixedU64;
1780
+ }>;
1729
1781
  /**
1730
1782
  * Generic pallet event
1731
1783
  **/
@@ -2164,6 +2216,22 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2164
2216
  assetId: number;
2165
2217
  who: AccountId32;
2166
2218
  }>;
2219
+ /**
2220
+ * Some assets were deposited (e.g. for transaction fees).
2221
+ **/
2222
+ Deposited: GenericPalletEvent<Rv, 'Assets', 'Deposited', {
2223
+ assetId: number;
2224
+ who: AccountId32;
2225
+ amount: bigint;
2226
+ }>;
2227
+ /**
2228
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
2229
+ **/
2230
+ Withdrawn: GenericPalletEvent<Rv, 'Assets', 'Withdrawn', {
2231
+ assetId: number;
2232
+ who: AccountId32;
2233
+ amount: bigint;
2234
+ }>;
2167
2235
  /**
2168
2236
  * Generic pallet event
2169
2237
  **/
@@ -2355,6 +2423,22 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2355
2423
  assetId: number;
2356
2424
  who: AccountId32;
2357
2425
  }>;
2426
+ /**
2427
+ * Some assets were deposited (e.g. for transaction fees).
2428
+ **/
2429
+ Deposited: GenericPalletEvent<Rv, 'PoolAssets', 'Deposited', {
2430
+ assetId: number;
2431
+ who: AccountId32;
2432
+ amount: bigint;
2433
+ }>;
2434
+ /**
2435
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
2436
+ **/
2437
+ Withdrawn: GenericPalletEvent<Rv, 'PoolAssets', 'Withdrawn', {
2438
+ assetId: number;
2439
+ who: AccountId32;
2440
+ amount: bigint;
2441
+ }>;
2358
2442
  /**
2359
2443
  * Generic pallet event
2360
2444
  **/
@@ -2476,7 +2560,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2476
2560
  deficit: bigint;
2477
2561
  }>;
2478
2562
  /**
2479
- * A receipt was transfered.
2563
+ * A receipt was transferred.
2480
2564
  **/
2481
2565
  Transferred: GenericPalletEvent<Rv, 'Nis', 'Transferred', {
2482
2566
  from: AccountId32;
@@ -3588,6 +3672,20 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3588
3672
  * An \[account\] has cancelled a previous delegation operation.
3589
3673
  **/
3590
3674
  Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId32>;
3675
+ /**
3676
+ * An account that has voted
3677
+ **/
3678
+ Voted: GenericPalletEvent<Rv, 'ConvictionVoting', 'Voted', {
3679
+ who: AccountId32;
3680
+ vote: PalletConvictionVotingVoteAccountVote;
3681
+ }>;
3682
+ /**
3683
+ * A vote that been removed
3684
+ **/
3685
+ VoteRemoved: GenericPalletEvent<Rv, 'ConvictionVoting', 'VoteRemoved', {
3686
+ who: AccountId32;
3687
+ vote: PalletConvictionVotingVoteAccountVote;
3688
+ }>;
3591
3689
  /**
3592
3690
  * Generic pallet event
3593
3691
  **/
@@ -3671,6 +3769,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3671
3769
  yes: number;
3672
3770
  no: number;
3673
3771
  }>;
3772
+ /**
3773
+ * A proposal was killed.
3774
+ **/
3775
+ Killed: GenericPalletEvent<Rv, 'AllianceMotion', 'Killed', {
3776
+ proposalHash: H256;
3777
+ }>;
3778
+ /**
3779
+ * Some cost for storing a proposal was burned.
3780
+ **/
3781
+ ProposalCostBurned: GenericPalletEvent<Rv, 'AllianceMotion', 'ProposalCostBurned', {
3782
+ proposalHash: H256;
3783
+ who: AccountId32;
3784
+ }>;
3785
+ /**
3786
+ * Some cost for storing a proposal was released.
3787
+ **/
3788
+ ProposalCostReleased: GenericPalletEvent<Rv, 'AllianceMotion', 'ProposalCostReleased', {
3789
+ proposalHash: H256;
3790
+ who: AccountId32;
3791
+ }>;
3674
3792
  /**
3675
3793
  * Generic pallet event
3676
3794
  **/
@@ -3849,10 +3967,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3849
3967
  * A member has been removed from a pool.
3850
3968
  *
3851
3969
  * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
3970
+ * Any funds that are still delegated (i.e. dangling delegation) are released and are
3971
+ * represented by `released_balance`.
3852
3972
  **/
3853
3973
  MemberRemoved: GenericPalletEvent<Rv, 'NominationPools', 'MemberRemoved', {
3854
3974
  poolId: number;
3855
3975
  member: AccountId32;
3976
+ releasedBalance: bigint;
3856
3977
  }>;
3857
3978
  /**
3858
3979
  * The roles of a pool have been updated to the given new roles. Note that the depositor
@@ -4206,7 +4327,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4206
4327
  **/
4207
4328
  assetConversion: {
4208
4329
  /**
4209
- * A successful call of the `CretaPool` extrinsic will create this event.
4330
+ * A successful call of the `CreatePool` extrinsic will create this event.
4210
4331
  **/
4211
4332
  PoolCreated: GenericPalletEvent<Rv, 'AssetConversion', 'PoolCreated', {
4212
4333
  /**
@@ -4343,6 +4464,19 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4343
4464
  **/
4344
4465
  path: Array<[FrameSupportTokensFungibleUnionOfNativeOrWithId, bigint]>;
4345
4466
  }>;
4467
+ /**
4468
+ * Pool has been touched in order to fulfill operational requirements.
4469
+ **/
4470
+ Touched: GenericPalletEvent<Rv, 'AssetConversion', 'Touched', {
4471
+ /**
4472
+ * The ID of the pool.
4473
+ **/
4474
+ poolId: [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId];
4475
+ /**
4476
+ * The account initiating the touch.
4477
+ **/
4478
+ who: AccountId32;
4479
+ }>;
4346
4480
  /**
4347
4481
  * Generic pallet event
4348
4482
  **/
@@ -4776,11 +4910,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4776
4910
  /**
4777
4911
  * The old owner of the Region.
4778
4912
  **/
4779
- oldOwner: AccountId32;
4913
+ oldOwner?: AccountId32 | undefined;
4780
4914
  /**
4781
4915
  * The new owner of the Region.
4782
4916
  **/
4783
- owner: AccountId32;
4917
+ owner?: AccountId32 | undefined;
4784
4918
  }>;
4785
4919
  /**
4786
4920
  * A Region has been split into two non-overlapping Regions.
@@ -4901,7 +5035,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4901
5035
  /**
4902
5036
  * The price of Bulk Coretime after the Leadin Period.
4903
5037
  **/
4904
- regularPrice: bigint;
5038
+ endPrice: bigint;
4905
5039
  /**
4906
5040
  * The first timeslice of the Regions which are being sold in this sale.
4907
5041
  **/
@@ -4912,8 +5046,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4912
5046
  **/
4913
5047
  regionEnd: number;
4914
5048
  /**
4915
- * The number of cores we want to sell, ideally. Selling this amount would result in
4916
- * no change to the price for the next sale.
5049
+ * The number of cores we want to sell, ideally.
4917
5050
  **/
4918
5051
  idealCoresSold: number;
4919
5052
  /**
@@ -5126,7 +5259,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
5126
5259
  /**
5127
5260
  * Some historical Instantaneous Core Pool payment record has been dropped.
5128
5261
  **/
5129
- AllowedRenewalDropped: GenericPalletEvent<Rv, 'Broker', 'AllowedRenewalDropped', {
5262
+ PotentialRenewalDropped: GenericPalletEvent<Rv, 'Broker', 'PotentialRenewalDropped', {
5130
5263
  /**
5131
5264
  * The timeslice whose renewal is no longer available.
5132
5265
  **/
@@ -5136,6 +5269,49 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
5136
5269
  **/
5137
5270
  core: number;
5138
5271
  }>;
5272
+ AutoRenewalEnabled: GenericPalletEvent<Rv, 'Broker', 'AutoRenewalEnabled', {
5273
+ /**
5274
+ * The core for which the renewal was enabled.
5275
+ **/
5276
+ core: number;
5277
+ /**
5278
+ * The task for which the renewal was enabled.
5279
+ **/
5280
+ task: number;
5281
+ }>;
5282
+ AutoRenewalDisabled: GenericPalletEvent<Rv, 'Broker', 'AutoRenewalDisabled', {
5283
+ /**
5284
+ * The core for which the renewal was disabled.
5285
+ **/
5286
+ core: number;
5287
+ /**
5288
+ * The task for which the renewal was disabled.
5289
+ **/
5290
+ task: number;
5291
+ }>;
5292
+ /**
5293
+ * Failed to auto-renew a core, likely due to the payer account not being sufficiently
5294
+ * funded.
5295
+ **/
5296
+ AutoRenewalFailed: GenericPalletEvent<Rv, 'Broker', 'AutoRenewalFailed', {
5297
+ /**
5298
+ * The core for which the renewal failed.
5299
+ **/
5300
+ core: number;
5301
+ /**
5302
+ * The account which was supposed to pay for renewal.
5303
+ *
5304
+ * If `None` it indicates that we failed to get the sovereign account of a task.
5305
+ **/
5306
+ payer?: AccountId32 | undefined;
5307
+ }>;
5308
+ /**
5309
+ * The auto-renewal limit has been reached upon renewing cores.
5310
+ *
5311
+ * This should never happen, given that enable_auto_renew checks for this before enabling
5312
+ * auto-renewal.
5313
+ **/
5314
+ AutoRenewalLimitReached: GenericPalletEvent<Rv, 'Broker', 'AutoRenewalLimitReached', null>;
5139
5315
  /**
5140
5316
  * Generic pallet event
5141
5317
  **/
@@ -5177,7 +5353,174 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
5177
5353
  * A transaction fee was skipped.
5178
5354
  **/
5179
5355
  FeeSkipped: GenericPalletEvent<Rv, 'SkipFeelessPayment', 'FeeSkipped', {
5180
- who: AccountId32;
5356
+ origin: KitchensinkRuntimeOriginCaller;
5357
+ }>;
5358
+ /**
5359
+ * Generic pallet event
5360
+ **/
5361
+ [prop: string]: GenericPalletEvent<Rv>;
5362
+ };
5363
+ /**
5364
+ * Pallet `AssetConversionMigration`'s events
5365
+ **/
5366
+ assetConversionMigration: {
5367
+ /**
5368
+ * Indicates that a pool has been migrated to the new account ID.
5369
+ **/
5370
+ MigratedToNewAccount: GenericPalletEvent<Rv, 'AssetConversionMigration', 'MigratedToNewAccount', {
5371
+ /**
5372
+ * Pool's ID.
5373
+ **/
5374
+ poolId: [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId];
5375
+ /**
5376
+ * Pool's prior account ID.
5377
+ **/
5378
+ priorAccount: AccountId32;
5379
+ /**
5380
+ * Pool's new account ID.
5381
+ **/
5382
+ newAccount: AccountId32;
5383
+ }>;
5384
+ /**
5385
+ * Generic pallet event
5386
+ **/
5387
+ [prop: string]: GenericPalletEvent<Rv>;
5388
+ };
5389
+ /**
5390
+ * Pallet `Revive`'s events
5391
+ **/
5392
+ revive: {
5393
+ /**
5394
+ * Contract deployed by address at the specified address.
5395
+ **/
5396
+ Instantiated: GenericPalletEvent<Rv, 'Revive', 'Instantiated', {
5397
+ deployer: H160;
5398
+ contract: H160;
5399
+ }>;
5400
+ /**
5401
+ * Contract has been removed.
5402
+ *
5403
+ * # Note
5404
+ *
5405
+ * The only way for a contract to be removed and emitting this event is by calling
5406
+ * `seal_terminate`.
5407
+ **/
5408
+ Terminated: GenericPalletEvent<Rv, 'Revive', 'Terminated', {
5409
+ /**
5410
+ * The contract that was terminated.
5411
+ **/
5412
+ contract: H160;
5413
+ /**
5414
+ * The account that received the contracts remaining balance
5415
+ **/
5416
+ beneficiary: H160;
5417
+ }>;
5418
+ /**
5419
+ * Code with the specified hash has been stored.
5420
+ **/
5421
+ CodeStored: GenericPalletEvent<Rv, 'Revive', 'CodeStored', {
5422
+ codeHash: H256;
5423
+ depositHeld: bigint;
5424
+ uploader: H160;
5425
+ }>;
5426
+ /**
5427
+ * A custom event emitted by the contract.
5428
+ **/
5429
+ ContractEmitted: GenericPalletEvent<Rv, 'Revive', 'ContractEmitted', {
5430
+ /**
5431
+ * The contract that emitted the event.
5432
+ **/
5433
+ contract: H160;
5434
+ /**
5435
+ * Data supplied by the contract. Metadata generated during contract compilation
5436
+ * is needed to decode it.
5437
+ **/
5438
+ data: Bytes;
5439
+ /**
5440
+ * A list of topics used to index the event.
5441
+ * Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
5442
+ **/
5443
+ topics: Array<H256>;
5444
+ }>;
5445
+ /**
5446
+ * A code with the specified hash was removed.
5447
+ **/
5448
+ CodeRemoved: GenericPalletEvent<Rv, 'Revive', 'CodeRemoved', {
5449
+ codeHash: H256;
5450
+ depositReleased: bigint;
5451
+ remover: H160;
5452
+ }>;
5453
+ /**
5454
+ * A contract's code was updated.
5455
+ **/
5456
+ ContractCodeUpdated: GenericPalletEvent<Rv, 'Revive', 'ContractCodeUpdated', {
5457
+ /**
5458
+ * The contract that has been updated.
5459
+ **/
5460
+ contract: H160;
5461
+ /**
5462
+ * New code hash that was set for the contract.
5463
+ **/
5464
+ newCodeHash: H256;
5465
+ /**
5466
+ * Previous code hash of the contract.
5467
+ **/
5468
+ oldCodeHash: H256;
5469
+ }>;
5470
+ /**
5471
+ * A contract was called either by a plain account or another contract.
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.
5478
+ **/
5479
+ Called: GenericPalletEvent<Rv, 'Revive', 'Called', {
5480
+ /**
5481
+ * The caller of the `contract`.
5482
+ **/
5483
+ caller: PalletReviveExecOrigin;
5484
+ /**
5485
+ * The contract that was called.
5486
+ **/
5487
+ contract: H160;
5488
+ }>;
5489
+ /**
5490
+ * A contract delegate called a code hash.
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.
5497
+ **/
5498
+ DelegateCalled: GenericPalletEvent<Rv, 'Revive', 'DelegateCalled', {
5499
+ /**
5500
+ * The contract that performed the delegate call and hence in whose context
5501
+ * the `code_hash` is executed.
5502
+ **/
5503
+ contract: H160;
5504
+ /**
5505
+ * The code hash that was delegate called.
5506
+ **/
5507
+ codeHash: H256;
5508
+ }>;
5509
+ /**
5510
+ * Some funds have been transferred and held as storage deposit.
5511
+ **/
5512
+ StorageDepositTransferredAndHeld: GenericPalletEvent<Rv, 'Revive', 'StorageDepositTransferredAndHeld', {
5513
+ from: H160;
5514
+ to: H160;
5515
+ amount: bigint;
5516
+ }>;
5517
+ /**
5518
+ * Some storage deposit funds have been transferred and released.
5519
+ **/
5520
+ StorageDepositTransferredAndReleased: GenericPalletEvent<Rv, 'Revive', 'StorageDepositTransferredAndReleased', {
5521
+ from: H160;
5522
+ to: H160;
5523
+ amount: bigint;
5181
5524
  }>;
5182
5525
  /**
5183
5526
  * Generic pallet event
@@ -1,3 +1,3 @@
1
1
  import type { GenericJsonRpcApis, RpcVersion } from '@dedot/types';
2
2
  import type { JsonRpcApis } from '@dedot/types/json-rpc';
3
- export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<JsonRpcApis, 'author_hasKey' | 'author_hasSessionKeys' | 'author_insertKey' | 'author_pendingExtrinsics' | 'author_removeExtrinsic' | 'author_rotateKeys' | 'author_submitAndWatchExtrinsic' | 'author_submitExtrinsic' | 'babe_epochAuthorship' | 'beefy_getFinalizedHead' | 'beefy_subscribeJustifications' | 'chainHead_v1_body' | 'chainHead_v1_call' | 'chainHead_v1_continue' | 'chainHead_v1_follow' | 'chainHead_v1_header' | 'chainHead_v1_stopOperation' | 'chainHead_v1_storage' | 'chainHead_v1_unpin' | 'chainSpec_v1_chainName' | 'chainSpec_v1_genesisHash' | 'chainSpec_v1_properties' | 'chain_getBlock' | 'chain_getBlockHash' | 'chain_getFinalizedHead' | 'chain_getHeader' | 'chain_subscribeAllHeads' | 'chain_subscribeFinalizedHeads' | 'chain_subscribeNewHeads' | 'childstate_getKeys' | 'childstate_getKeysPaged' | 'childstate_getStorage' | 'childstate_getStorageEntries' | 'childstate_getStorageHash' | 'childstate_getStorageSize' | 'dev_getBlockStats' | 'grandpa_proveFinality' | 'grandpa_roundState' | 'grandpa_subscribeJustifications' | 'mmr_generateProof' | 'mmr_root' | 'mmr_verifyProof' | 'mmr_verifyProofStateless' | 'offchain_localStorageGet' | 'offchain_localStorageSet' | 'payment_queryFeeDetails' | 'payment_queryInfo' | 'rpc_methods' | 'state_call' | 'state_getChildReadProof' | 'state_getKeys' | 'state_getKeysPaged' | 'state_getMetadata' | 'state_getPairs' | 'state_getReadProof' | 'state_getRuntimeVersion' | 'state_getStorage' | 'state_getStorageHash' | 'state_getStorageSize' | 'state_queryStorage' | 'state_queryStorageAt' | 'state_subscribeRuntimeVersion' | 'state_subscribeStorage' | 'state_traceBlock' | 'state_trieMigrationStatus' | 'statement_broadcasts' | 'statement_dump' | 'statement_posted' | 'statement_postedClear' | 'statement_remove' | 'statement_submit' | 'sync_state_genSyncSpec' | 'system_accountNextIndex' | 'system_addLogFilter' | 'system_addReservedPeer' | 'system_chain' | 'system_chainType' | 'system_dryRun' | 'system_health' | 'system_localListenAddresses' | 'system_localPeerId' | 'system_name' | 'system_nodeRoles' | 'system_peers' | 'system_properties' | 'system_removeReservedPeer' | 'system_reservedPeers' | 'system_resetLogFilter' | 'system_syncState' | 'system_unstable_networkState' | 'system_version' | 'transactionWatch_v1_submitAndWatch' | 'transaction_v1_broadcast' | 'transaction_v1_stop'> & GenericJsonRpcApis<Rv>;
3
+ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<JsonRpcApis, 'author_hasKey' | 'author_hasSessionKeys' | 'author_insertKey' | 'author_pendingExtrinsics' | 'author_removeExtrinsic' | 'author_rotateKeys' | 'author_submitAndWatchExtrinsic' | 'author_submitExtrinsic' | 'babe_epochAuthorship' | 'beefy_getFinalizedHead' | 'beefy_subscribeJustifications' | 'chainHead_v1_body' | 'chainHead_v1_call' | 'chainHead_v1_continue' | 'chainHead_v1_follow' | 'chainHead_v1_header' | 'chainHead_v1_stopOperation' | 'chainHead_v1_storage' | 'chainHead_v1_unpin' | 'chainSpec_v1_chainName' | 'chainSpec_v1_genesisHash' | 'chainSpec_v1_properties' | 'chain_getBlock' | 'chain_getBlockHash' | 'chain_getFinalizedHead' | 'chain_getHeader' | 'chain_subscribeAllHeads' | 'chain_subscribeFinalizedHeads' | 'chain_subscribeNewHeads' | 'childstate_getKeys' | 'childstate_getKeysPaged' | 'childstate_getStorage' | 'childstate_getStorageEntries' | 'childstate_getStorageHash' | 'childstate_getStorageSize' | 'dev_getBlockStats' | 'grandpa_proveFinality' | 'grandpa_roundState' | 'grandpa_subscribeJustifications' | 'mmr_generateProof' | 'mmr_root' | 'mmr_verifyProof' | 'mmr_verifyProofStateless' | 'offchain_localStorageClear' | 'offchain_localStorageGet' | 'offchain_localStorageSet' | 'payment_queryFeeDetails' | 'payment_queryInfo' | 'rpc_methods' | 'state_call' | 'state_getChildReadProof' | 'state_getKeys' | 'state_getKeysPaged' | 'state_getMetadata' | 'state_getPairs' | 'state_getReadProof' | 'state_getRuntimeVersion' | 'state_getStorage' | 'state_getStorageHash' | 'state_getStorageSize' | 'state_queryStorage' | 'state_queryStorageAt' | 'state_subscribeRuntimeVersion' | 'state_subscribeStorage' | 'state_traceBlock' | 'state_trieMigrationStatus' | 'statement_broadcasts' | 'statement_dump' | 'statement_posted' | 'statement_postedClear' | 'statement_remove' | 'statement_submit' | 'sync_state_genSyncSpec' | 'system_accountNextIndex' | 'system_addLogFilter' | 'system_addReservedPeer' | 'system_chain' | 'system_chainType' | 'system_dryRun' | 'system_health' | 'system_localListenAddresses' | 'system_localPeerId' | 'system_name' | 'system_nodeRoles' | 'system_peers' | 'system_properties' | 'system_removeReservedPeer' | 'system_reservedPeers' | 'system_resetLogFilter' | 'system_syncState' | 'system_unstable_networkState' | 'system_version' | 'transactionWatch_v1_submitAndWatch' | 'transaction_v1_broadcast' | 'transaction_v1_stop'> & GenericJsonRpcApis<Rv>;