@dedot/chaintypes 0.241.0 → 0.242.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.
@@ -235,87 +235,6 @@ export interface ChainConsts extends GenericChainConsts {
235
235
  **/
236
236
  [name: string]: any;
237
237
  };
238
- /**
239
- * Pallet `Democracy`'s constants
240
- **/
241
- democracy: {
242
- /**
243
- * The period between a proposal being approved and enacted.
244
- *
245
- * It should generally be a little more than the unstake period to ensure that
246
- * voting stakers have an opportunity to remove themselves from the system in the case
247
- * where they are on the losing side of a vote.
248
- **/
249
- enactmentPeriod: number;
250
-
251
- /**
252
- * How often (in blocks) new public referenda are launched.
253
- **/
254
- launchPeriod: number;
255
-
256
- /**
257
- * How often (in blocks) to check for new votes.
258
- **/
259
- votingPeriod: number;
260
-
261
- /**
262
- * The minimum period of vote locking.
263
- *
264
- * It should be no shorter than enactment period to ensure that in the case of an approval,
265
- * those successful voters are locked into the consequences that their votes entail.
266
- **/
267
- voteLockingPeriod: number;
268
-
269
- /**
270
- * The minimum amount to be used as a deposit for a public referendum proposal.
271
- **/
272
- minimumDeposit: bigint;
273
-
274
- /**
275
- * Indicator for whether an emergency origin is even allowed to happen. Some chains may
276
- * want to set this permanently to `false`, others may want to condition it on things such
277
- * as an upgrade having happened recently.
278
- **/
279
- instantAllowed: boolean;
280
-
281
- /**
282
- * Minimum voting period allowed for a fast-track referendum.
283
- **/
284
- fastTrackVotingPeriod: number;
285
-
286
- /**
287
- * Period in blocks where an external proposal may not be re-submitted after being vetoed.
288
- **/
289
- cooloffPeriod: number;
290
-
291
- /**
292
- * The maximum number of votes for an account.
293
- *
294
- * Also used to compute weight, an overly big value can
295
- * lead to extrinsic with very big weight: see `delegate` for instance.
296
- **/
297
- maxVotes: number;
298
-
299
- /**
300
- * The maximum number of public proposals that can exist at any time.
301
- **/
302
- maxProposals: number;
303
-
304
- /**
305
- * The maximum number of deposits a public proposal may have at any time.
306
- **/
307
- maxDeposits: number;
308
-
309
- /**
310
- * The maximum number of items which can be blacklisted.
311
- **/
312
- maxBlacklisted: number;
313
-
314
- /**
315
- * Generic pallet constant
316
- **/
317
- [name: string]: any;
318
- };
319
238
  /**
320
239
  * Pallet `TechnicalCommittee`'s constants
321
240
  **/
@@ -982,7 +901,6 @@ export interface ChainConsts extends GenericChainConsts {
982
901
  **/
983
902
  duster: {
984
903
  /**
985
- * Duster for accounts with AToken dusts
986
904
  * Treasury account, which receives the dust.
987
905
  **/
988
906
  treasuryAccountId: AccountId32;
@@ -1160,6 +1078,31 @@ export interface ChainConsts extends GenericChainConsts {
1160
1078
  **/
1161
1079
  [name: string]: any;
1162
1080
  };
1081
+ /**
1082
+ * Pallet `MultiBlockMigrations`'s constants
1083
+ **/
1084
+ multiBlockMigrations: {
1085
+ /**
1086
+ * The maximal length of an encoded cursor.
1087
+ *
1088
+ * A good default needs to selected such that no migration will ever have a cursor with MEL
1089
+ * above this limit. This is statically checked in `integrity_test`.
1090
+ **/
1091
+ cursorMaxLen: number;
1092
+
1093
+ /**
1094
+ * The maximal length of an encoded identifier.
1095
+ *
1096
+ * A good default needs to selected such that no migration will ever have an identifier
1097
+ * with MEL above this limit. This is statically checked in `integrity_test`.
1098
+ **/
1099
+ identifierMaxLen: number;
1100
+
1101
+ /**
1102
+ * Generic pallet constant
1103
+ **/
1104
+ [name: string]: any;
1105
+ };
1163
1106
  /**
1164
1107
  * Pallet `EmaOracle`'s constants
1165
1108
  **/
@@ -278,136 +278,6 @@ export interface ChainErrors extends GenericChainErrors {
278
278
  **/
279
279
  [error: string]: GenericPalletError;
280
280
  };
281
- /**
282
- * Pallet `Democracy`'s errors
283
- **/
284
- democracy: {
285
- /**
286
- * Value too low
287
- **/
288
- ValueLow: GenericPalletError;
289
-
290
- /**
291
- * Proposal does not exist
292
- **/
293
- ProposalMissing: GenericPalletError;
294
-
295
- /**
296
- * Cannot cancel the same proposal twice
297
- **/
298
- AlreadyCanceled: GenericPalletError;
299
-
300
- /**
301
- * Proposal already made
302
- **/
303
- DuplicateProposal: GenericPalletError;
304
-
305
- /**
306
- * Proposal still blacklisted
307
- **/
308
- ProposalBlacklisted: GenericPalletError;
309
-
310
- /**
311
- * Next external proposal not simple majority
312
- **/
313
- NotSimpleMajority: GenericPalletError;
314
-
315
- /**
316
- * Invalid hash
317
- **/
318
- InvalidHash: GenericPalletError;
319
-
320
- /**
321
- * No external proposal
322
- **/
323
- NoProposal: GenericPalletError;
324
-
325
- /**
326
- * Identity may not veto a proposal twice
327
- **/
328
- AlreadyVetoed: GenericPalletError;
329
-
330
- /**
331
- * Vote given for invalid referendum
332
- **/
333
- ReferendumInvalid: GenericPalletError;
334
-
335
- /**
336
- * No proposals waiting
337
- **/
338
- NoneWaiting: GenericPalletError;
339
-
340
- /**
341
- * The given account did not vote on the referendum.
342
- **/
343
- NotVoter: GenericPalletError;
344
-
345
- /**
346
- * The actor has no permission to conduct the action.
347
- **/
348
- NoPermission: GenericPalletError;
349
-
350
- /**
351
- * The account is already delegating.
352
- **/
353
- AlreadyDelegating: GenericPalletError;
354
-
355
- /**
356
- * Too high a balance was provided that the account cannot afford.
357
- **/
358
- InsufficientFunds: GenericPalletError;
359
-
360
- /**
361
- * The account is not currently delegating.
362
- **/
363
- NotDelegating: GenericPalletError;
364
-
365
- /**
366
- * The account currently has votes attached to it and the operation cannot succeed until
367
- * these are removed, either through `unvote` or `reap_vote`.
368
- **/
369
- VotesExist: GenericPalletError;
370
-
371
- /**
372
- * The instant referendum origin is currently disallowed.
373
- **/
374
- InstantNotAllowed: GenericPalletError;
375
-
376
- /**
377
- * Delegation to oneself makes no sense.
378
- **/
379
- Nonsense: GenericPalletError;
380
-
381
- /**
382
- * Invalid upper bound.
383
- **/
384
- WrongUpperBound: GenericPalletError;
385
-
386
- /**
387
- * Maximum number of votes reached.
388
- **/
389
- MaxVotesReached: GenericPalletError;
390
-
391
- /**
392
- * Maximum number of items reached.
393
- **/
394
- TooMany: GenericPalletError;
395
-
396
- /**
397
- * Voting period too low
398
- **/
399
- VotingPeriodLow: GenericPalletError;
400
-
401
- /**
402
- * The preimage does not exist.
403
- **/
404
- PreimageNotExist: GenericPalletError;
405
-
406
- /**
407
- * Generic pallet error
408
- **/
409
- [error: string]: GenericPalletError;
410
- };
411
281
  /**
412
282
  * Pallet `TechnicalCommittee`'s errors
413
283
  **/
@@ -836,6 +706,26 @@ export interface ChainErrors extends GenericChainErrors {
836
706
  **/
837
707
  BidTooLow: GenericPalletError;
838
708
 
709
+ /**
710
+ * No metadata is found.
711
+ **/
712
+ NoMetadata: GenericPalletError;
713
+
714
+ /**
715
+ * Wrong metadata key/value bytes supplied.
716
+ **/
717
+ WrongMetadata: GenericPalletError;
718
+
719
+ /**
720
+ * An attribute is not found.
721
+ **/
722
+ AttributeNotFound: GenericPalletError;
723
+
724
+ /**
725
+ * Wrong attribute key/value bytes supplied.
726
+ **/
727
+ WrongAttribute: GenericPalletError;
728
+
839
729
  /**
840
730
  * Generic pallet error
841
731
  **/
@@ -1521,6 +1411,8 @@ export interface ChainErrors extends GenericChainErrors {
1521
1411
 
1522
1412
  /**
1523
1413
  * Too many locations authorized to alias origin.
1414
+ *
1415
+ * @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
1524
1416
  **/
1525
1417
  TooManyAuthorizedAliases: GenericPalletError;
1526
1418
 
@@ -1534,6 +1426,12 @@ export interface ChainErrors extends GenericChainErrors {
1534
1426
  **/
1535
1427
  AliasNotFound: GenericPalletError;
1536
1428
 
1429
+ /**
1430
+ * Local XCM execution incomplete with the actual XCM error and the index of the
1431
+ * instruction that caused the error.
1432
+ **/
1433
+ LocalExecutionIncompleteWithError: GenericPalletError;
1434
+
1537
1435
  /**
1538
1436
  * Generic pallet error
1539
1437
  **/
@@ -2420,6 +2318,20 @@ export interface ChainErrors extends GenericChainErrors {
2420
2318
  **/
2421
2319
  [error: string]: GenericPalletError;
2422
2320
  };
2321
+ /**
2322
+ * Pallet `MultiBlockMigrations`'s errors
2323
+ **/
2324
+ multiBlockMigrations: {
2325
+ /**
2326
+ * The operation cannot complete since some MBMs are ongoing.
2327
+ **/
2328
+ Ongoing: GenericPalletError;
2329
+
2330
+ /**
2331
+ * Generic pallet error
2332
+ **/
2333
+ [error: string]: GenericPalletError;
2334
+ };
2423
2335
  /**
2424
2336
  * Pallet `EmaOracle`'s errors
2425
2337
  **/
@@ -5,9 +5,6 @@ import type { DispatchError, AccountId32, H256, Result, Bytes, FixedBytes, Perqu
5
5
  import type {
6
6
  FrameSystemDispatchEventInfo,
7
7
  FrameSupportTokensMiscBalanceStatus,
8
- PalletDemocracyVoteThreshold,
9
- PalletDemocracyVoteAccountVote,
10
- PalletDemocracyMetadataOwner,
11
8
  OrmlVestingVestingSchedule,
12
9
  BasiliskRuntimeSystemProxyType,
13
10
  PalletProxyDepositKind,
@@ -422,151 +419,6 @@ export interface ChainEvents extends GenericChainEvents {
422
419
  **/
423
420
  [prop: string]: GenericPalletEvent;
424
421
  };
425
- /**
426
- * Pallet `Democracy`'s events
427
- **/
428
- democracy: {
429
- /**
430
- * A motion has been proposed by a public account.
431
- **/
432
- Proposed: GenericPalletEvent<'Democracy', 'Proposed', { proposalIndex: number; deposit: bigint }>;
433
-
434
- /**
435
- * A public proposal has been tabled for referendum vote.
436
- **/
437
- Tabled: GenericPalletEvent<'Democracy', 'Tabled', { proposalIndex: number; deposit: bigint }>;
438
-
439
- /**
440
- * An external proposal has been tabled.
441
- **/
442
- ExternalTabled: GenericPalletEvent<'Democracy', 'ExternalTabled', null>;
443
-
444
- /**
445
- * A referendum has begun.
446
- **/
447
- Started: GenericPalletEvent<'Democracy', 'Started', { refIndex: number; threshold: PalletDemocracyVoteThreshold }>;
448
-
449
- /**
450
- * A proposal has been approved by referendum.
451
- **/
452
- Passed: GenericPalletEvent<'Democracy', 'Passed', { refIndex: number }>;
453
-
454
- /**
455
- * A proposal has been rejected by referendum.
456
- **/
457
- NotPassed: GenericPalletEvent<'Democracy', 'NotPassed', { refIndex: number }>;
458
-
459
- /**
460
- * A referendum has been cancelled.
461
- **/
462
- Cancelled: GenericPalletEvent<'Democracy', 'Cancelled', { refIndex: number }>;
463
-
464
- /**
465
- * An account has delegated their vote to another account.
466
- **/
467
- Delegated: GenericPalletEvent<'Democracy', 'Delegated', { who: AccountId32; target: AccountId32 }>;
468
-
469
- /**
470
- * An account has cancelled a previous delegation operation.
471
- **/
472
- Undelegated: GenericPalletEvent<'Democracy', 'Undelegated', { account: AccountId32 }>;
473
-
474
- /**
475
- * An external proposal has been vetoed.
476
- **/
477
- Vetoed: GenericPalletEvent<'Democracy', 'Vetoed', { who: AccountId32; proposalHash: H256; until: number }>;
478
-
479
- /**
480
- * A proposal_hash has been blacklisted permanently.
481
- **/
482
- Blacklisted: GenericPalletEvent<'Democracy', 'Blacklisted', { proposalHash: H256 }>;
483
-
484
- /**
485
- * An account has voted in a referendum
486
- **/
487
- Voted: GenericPalletEvent<
488
- 'Democracy',
489
- 'Voted',
490
- { voter: AccountId32; refIndex: number; vote: PalletDemocracyVoteAccountVote }
491
- >;
492
-
493
- /**
494
- * An account has seconded a proposal
495
- **/
496
- Seconded: GenericPalletEvent<'Democracy', 'Seconded', { seconder: AccountId32; propIndex: number }>;
497
-
498
- /**
499
- * A proposal got canceled.
500
- **/
501
- ProposalCanceled: GenericPalletEvent<'Democracy', 'ProposalCanceled', { propIndex: number }>;
502
-
503
- /**
504
- * Metadata for a proposal or a referendum has been set.
505
- **/
506
- MetadataSet: GenericPalletEvent<
507
- 'Democracy',
508
- 'MetadataSet',
509
- {
510
- /**
511
- * Metadata owner.
512
- **/
513
- owner: PalletDemocracyMetadataOwner;
514
-
515
- /**
516
- * Preimage hash.
517
- **/
518
- hash: H256;
519
- }
520
- >;
521
-
522
- /**
523
- * Metadata for a proposal or a referendum has been cleared.
524
- **/
525
- MetadataCleared: GenericPalletEvent<
526
- 'Democracy',
527
- 'MetadataCleared',
528
- {
529
- /**
530
- * Metadata owner.
531
- **/
532
- owner: PalletDemocracyMetadataOwner;
533
-
534
- /**
535
- * Preimage hash.
536
- **/
537
- hash: H256;
538
- }
539
- >;
540
-
541
- /**
542
- * Metadata has been transferred to new owner.
543
- **/
544
- MetadataTransferred: GenericPalletEvent<
545
- 'Democracy',
546
- 'MetadataTransferred',
547
- {
548
- /**
549
- * Previous metadata owner.
550
- **/
551
- prevOwner: PalletDemocracyMetadataOwner;
552
-
553
- /**
554
- * New metadata owner.
555
- **/
556
- owner: PalletDemocracyMetadataOwner;
557
-
558
- /**
559
- * Preimage hash.
560
- **/
561
- hash: H256;
562
- }
563
- >;
564
-
565
- /**
566
- * Generic pallet event
567
- **/
568
- [prop: string]: GenericPalletEvent;
569
- };
570
422
  /**
571
423
  * Pallet `TechnicalCommittee`'s events
572
424
  **/
@@ -699,6 +551,20 @@ export interface ChainEvents extends GenericChainEvents {
699
551
  { pure: AccountId32; who: AccountId32; proxyType: BasiliskRuntimeSystemProxyType; disambiguationIndex: number }
700
552
  >;
701
553
 
554
+ /**
555
+ * A pure proxy was killed by its spawner.
556
+ **/
557
+ PureKilled: GenericPalletEvent<
558
+ 'Proxy',
559
+ 'PureKilled',
560
+ {
561
+ pure: AccountId32;
562
+ spawner: AccountId32;
563
+ proxyType: BasiliskRuntimeSystemProxyType;
564
+ disambiguationIndex: number;
565
+ }
566
+ >;
567
+
702
568
  /**
703
569
  * An announcement was placed to make a call in the future.
704
570
  **/
@@ -830,6 +696,12 @@ export interface ChainEvents extends GenericChainEvents {
830
696
  **/
831
697
  NewSession: GenericPalletEvent<'Session', 'NewSession', { sessionIndex: number }>;
832
698
 
699
+ /**
700
+ * The `NewSession` event in the current block also implies a new validator set to be
701
+ * queued.
702
+ **/
703
+ NewQueued: GenericPalletEvent<'Session', 'NewQueued', null>;
704
+
833
705
  /**
834
706
  * Validator has been disabled.
835
707
  **/
@@ -2992,6 +2864,135 @@ export interface ChainEvents extends GenericChainEvents {
2992
2864
  **/
2993
2865
  [prop: string]: GenericPalletEvent;
2994
2866
  };
2867
+ /**
2868
+ * Pallet `MultiBlockMigrations`'s events
2869
+ **/
2870
+ multiBlockMigrations: {
2871
+ /**
2872
+ * A Runtime upgrade started.
2873
+ *
2874
+ * Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
2875
+ **/
2876
+ UpgradeStarted: GenericPalletEvent<
2877
+ 'MultiBlockMigrations',
2878
+ 'UpgradeStarted',
2879
+ {
2880
+ /**
2881
+ * The number of migrations that this upgrade contains.
2882
+ *
2883
+ * This can be used to design a progress indicator in combination with counting the
2884
+ * `MigrationCompleted` and `MigrationSkipped` events.
2885
+ **/
2886
+ migrations: number;
2887
+ }
2888
+ >;
2889
+
2890
+ /**
2891
+ * The current runtime upgrade completed.
2892
+ *
2893
+ * This implies that all of its migrations completed successfully as well.
2894
+ **/
2895
+ UpgradeCompleted: GenericPalletEvent<'MultiBlockMigrations', 'UpgradeCompleted', null>;
2896
+
2897
+ /**
2898
+ * Runtime upgrade failed.
2899
+ *
2900
+ * This is very bad and will require governance intervention.
2901
+ **/
2902
+ UpgradeFailed: GenericPalletEvent<'MultiBlockMigrations', 'UpgradeFailed', null>;
2903
+
2904
+ /**
2905
+ * A migration was skipped since it was already executed in the past.
2906
+ **/
2907
+ MigrationSkipped: GenericPalletEvent<
2908
+ 'MultiBlockMigrations',
2909
+ 'MigrationSkipped',
2910
+ {
2911
+ /**
2912
+ * The index of the skipped migration within the [`Config::Migrations`] list.
2913
+ **/
2914
+ index: number;
2915
+ }
2916
+ >;
2917
+
2918
+ /**
2919
+ * A migration progressed.
2920
+ **/
2921
+ MigrationAdvanced: GenericPalletEvent<
2922
+ 'MultiBlockMigrations',
2923
+ 'MigrationAdvanced',
2924
+ {
2925
+ /**
2926
+ * The index of the migration within the [`Config::Migrations`] list.
2927
+ **/
2928
+ index: number;
2929
+
2930
+ /**
2931
+ * The number of blocks that this migration took so far.
2932
+ **/
2933
+ took: number;
2934
+ }
2935
+ >;
2936
+
2937
+ /**
2938
+ * A Migration completed.
2939
+ **/
2940
+ MigrationCompleted: GenericPalletEvent<
2941
+ 'MultiBlockMigrations',
2942
+ 'MigrationCompleted',
2943
+ {
2944
+ /**
2945
+ * The index of the migration within the [`Config::Migrations`] list.
2946
+ **/
2947
+ index: number;
2948
+
2949
+ /**
2950
+ * The number of blocks that this migration took so far.
2951
+ **/
2952
+ took: number;
2953
+ }
2954
+ >;
2955
+
2956
+ /**
2957
+ * A Migration failed.
2958
+ *
2959
+ * This implies that the whole upgrade failed and governance intervention is required.
2960
+ **/
2961
+ MigrationFailed: GenericPalletEvent<
2962
+ 'MultiBlockMigrations',
2963
+ 'MigrationFailed',
2964
+ {
2965
+ /**
2966
+ * The index of the migration within the [`Config::Migrations`] list.
2967
+ **/
2968
+ index: number;
2969
+
2970
+ /**
2971
+ * The number of blocks that this migration took so far.
2972
+ **/
2973
+ took: number;
2974
+ }
2975
+ >;
2976
+
2977
+ /**
2978
+ * The set of historical migrations has been cleared.
2979
+ **/
2980
+ HistoricCleared: GenericPalletEvent<
2981
+ 'MultiBlockMigrations',
2982
+ 'HistoricCleared',
2983
+ {
2984
+ /**
2985
+ * Should be passed to `clear_historic` in a successive call.
2986
+ **/
2987
+ nextCursor?: Bytes | undefined;
2988
+ }
2989
+ >;
2990
+
2991
+ /**
2992
+ * Generic pallet event
2993
+ **/
2994
+ [prop: string]: GenericPalletEvent;
2995
+ };
2995
2996
  /**
2996
2997
  * Pallet `EmaOracle`'s events
2997
2998
  **/
@@ -44,7 +44,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
44
44
 
45
45
  /**
46
46
  * @name: BasiliskApi
47
- * @specVersion: 128
47
+ * @specVersion: 129
48
48
  **/
49
49
  export interface BasiliskApi extends GenericSubstrateApi {
50
50
  rpc: ChainJsonRpcApis;