@polkadot/api-augment 14.0.1 → 14.1.1

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.
Files changed (40) hide show
  1. package/cjs/base.d.ts +2 -0
  2. package/cjs/bundle.d.ts +2 -0
  3. package/cjs/index.d.ts +2 -0
  4. package/cjs/kusama/consts.d.ts +1044 -0
  5. package/cjs/kusama/errors.d.ts +2355 -0
  6. package/cjs/kusama/events.d.ts +2543 -0
  7. package/cjs/kusama/index.d.ts +8 -0
  8. package/cjs/kusama/query.d.ts +2378 -0
  9. package/cjs/kusama/registry.d.ts +3 -0
  10. package/cjs/kusama/runtime.d.ts +683 -0
  11. package/cjs/kusama/tx.d.ts +5778 -0
  12. package/cjs/packageDetect.d.ts +1 -0
  13. package/cjs/packageInfo.d.ts +6 -0
  14. package/cjs/packageInfo.js +1 -1
  15. package/cjs/polkadot/consts.d.ts +864 -0
  16. package/cjs/polkadot/errors.d.ts +1954 -0
  17. package/cjs/polkadot/events.d.ts +2024 -0
  18. package/cjs/polkadot/index.d.ts +8 -0
  19. package/cjs/polkadot/query.d.ts +2133 -0
  20. package/cjs/polkadot/registry.d.ts +2 -0
  21. package/cjs/polkadot/runtime.d.ts +683 -0
  22. package/cjs/polkadot/tx.d.ts +4932 -0
  23. package/cjs/substrate/consts.d.ts +1763 -0
  24. package/cjs/substrate/errors.d.ts +3409 -0
  25. package/cjs/substrate/events.d.ts +4300 -0
  26. package/cjs/substrate/index.d.ts +8 -0
  27. package/cjs/substrate/query.d.ts +2582 -0
  28. package/cjs/substrate/registry.d.ts +1 -0
  29. package/cjs/substrate/runtime.d.ts +577 -0
  30. package/cjs/substrate/tx.d.ts +10200 -0
  31. package/kusama/runtime.d.ts +253 -212
  32. package/package.json +368 -128
  33. package/packageInfo.js +1 -1
  34. package/polkadot/consts.d.ts +50 -66
  35. package/polkadot/errors.d.ts +114 -183
  36. package/polkadot/events.d.ts +83 -144
  37. package/polkadot/query.d.ts +159 -100
  38. package/polkadot/runtime.d.ts +315 -179
  39. package/polkadot/tx.d.ts +2770 -636
  40. package/substrate/runtime.d.ts +217 -175
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
8
8
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
9
9
  declare module '@polkadot/api-base/types/events' {
10
10
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -395,6 +395,24 @@ declare module '@polkadot/api-base/types/events' {
395
395
  **/
396
396
  [key: string]: AugmentedEvent<ApiType>;
397
397
  };
398
+ coretime: {
399
+ /**
400
+ * A core has received a new assignment from the broker chain.
401
+ **/
402
+ CoreAssigned: AugmentedEvent<ApiType, [core: u32], {
403
+ core: u32;
404
+ }>;
405
+ /**
406
+ * The broker chain has asked for revenue information for a specific block.
407
+ **/
408
+ RevenueInfoRequested: AugmentedEvent<ApiType, [when: u32], {
409
+ when: u32;
410
+ }>;
411
+ /**
412
+ * Generic event
413
+ **/
414
+ [key: string]: AugmentedEvent<ApiType>;
415
+ };
398
416
  crowdloan: {
399
417
  /**
400
418
  * A parachain has been moved to `NewRaise`
@@ -509,7 +527,7 @@ declare module '@polkadot/api-base/types/events' {
509
527
  * A solution was stored with the given compute.
510
528
  *
511
529
  * The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
512
- * the stored solution was submited in the signed phase by a miner with the `AccountId`.
530
+ * the stored solution was submitted in the signed phase by a miner with the `AccountId`.
513
531
  * Otherwise, the solution was stored either during the unsigned phase or by
514
532
  * `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
515
533
  * room for this one.
@@ -644,132 +662,6 @@ declare module '@polkadot/api-base/types/events' {
644
662
  **/
645
663
  [key: string]: AugmentedEvent<ApiType>;
646
664
  };
647
- identity: {
648
- /**
649
- * A username authority was added.
650
- **/
651
- AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], {
652
- authority: AccountId32;
653
- }>;
654
- /**
655
- * A username authority was removed.
656
- **/
657
- AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], {
658
- authority: AccountId32;
659
- }>;
660
- /**
661
- * A dangling username (as in, a username corresponding to an account that has removed its
662
- * identity) has been removed.
663
- **/
664
- DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
665
- who: AccountId32;
666
- username: Bytes;
667
- }>;
668
- /**
669
- * A name was cleared, and the given balance returned.
670
- **/
671
- IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], {
672
- who: AccountId32;
673
- deposit: u128;
674
- }>;
675
- /**
676
- * A name was removed and the given balance slashed.
677
- **/
678
- IdentityKilled: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], {
679
- who: AccountId32;
680
- deposit: u128;
681
- }>;
682
- /**
683
- * A name was set or reset (which will remove all judgements).
684
- **/
685
- IdentitySet: AugmentedEvent<ApiType, [who: AccountId32], {
686
- who: AccountId32;
687
- }>;
688
- /**
689
- * A judgement was given by a registrar.
690
- **/
691
- JudgementGiven: AugmentedEvent<ApiType, [target: AccountId32, registrarIndex: u32], {
692
- target: AccountId32;
693
- registrarIndex: u32;
694
- }>;
695
- /**
696
- * A judgement was asked from a registrar.
697
- **/
698
- JudgementRequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], {
699
- who: AccountId32;
700
- registrarIndex: u32;
701
- }>;
702
- /**
703
- * A judgement request was retracted.
704
- **/
705
- JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], {
706
- who: AccountId32;
707
- registrarIndex: u32;
708
- }>;
709
- /**
710
- * A queued username passed its expiration without being claimed and was removed.
711
- **/
712
- PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], {
713
- whose: AccountId32;
714
- }>;
715
- /**
716
- * A username was set as a primary and can be looked up from `who`.
717
- **/
718
- PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
719
- who: AccountId32;
720
- username: Bytes;
721
- }>;
722
- /**
723
- * A registrar was added.
724
- **/
725
- RegistrarAdded: AugmentedEvent<ApiType, [registrarIndex: u32], {
726
- registrarIndex: u32;
727
- }>;
728
- /**
729
- * A sub-identity was added to an identity and the deposit paid.
730
- **/
731
- SubIdentityAdded: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], {
732
- sub: AccountId32;
733
- main: AccountId32;
734
- deposit: u128;
735
- }>;
736
- /**
737
- * A sub-identity was removed from an identity and the deposit freed.
738
- **/
739
- SubIdentityRemoved: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], {
740
- sub: AccountId32;
741
- main: AccountId32;
742
- deposit: u128;
743
- }>;
744
- /**
745
- * A sub-identity was cleared, and the given deposit repatriated from the
746
- * main identity account to the sub-identity account.
747
- **/
748
- SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], {
749
- sub: AccountId32;
750
- main: AccountId32;
751
- deposit: u128;
752
- }>;
753
- /**
754
- * A username was queued, but `who` must accept it prior to `expiration`.
755
- **/
756
- UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], {
757
- who: AccountId32;
758
- username: Bytes;
759
- expiration: u32;
760
- }>;
761
- /**
762
- * A username was set for `who`.
763
- **/
764
- UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
765
- who: AccountId32;
766
- username: Bytes;
767
- }>;
768
- /**
769
- * Generic event
770
- **/
771
- [key: string]: AugmentedEvent<ApiType>;
772
- };
773
665
  indices: {
774
666
  /**
775
667
  * A account index was assigned.
@@ -1051,19 +943,39 @@ declare module '@polkadot/api-base/types/events' {
1051
943
  **/
1052
944
  [key: string]: AugmentedEvent<ApiType>;
1053
945
  };
946
+ onDemand: {
947
+ /**
948
+ * An order was placed at some spot price amount by orderer ordered_by
949
+ **/
950
+ OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128, orderedBy: AccountId32], {
951
+ paraId: u32;
952
+ spotPrice: u128;
953
+ orderedBy: AccountId32;
954
+ }>;
955
+ /**
956
+ * The value of the spot price has likely changed
957
+ **/
958
+ SpotPriceSet: AugmentedEvent<ApiType, [spotPrice: u128], {
959
+ spotPrice: u128;
960
+ }>;
961
+ /**
962
+ * Generic event
963
+ **/
964
+ [key: string]: AugmentedEvent<ApiType>;
965
+ };
1054
966
  paraInclusion: {
1055
967
  /**
1056
968
  * A candidate was backed. `[candidate, head_data]`
1057
969
  **/
1058
- CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
970
+ CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
1059
971
  /**
1060
972
  * A candidate was included. `[candidate, head_data]`
1061
973
  **/
1062
- CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
974
+ CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
1063
975
  /**
1064
976
  * A candidate timed out. `[candidate, head_data]`
1065
977
  **/
1066
- CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32]>;
978
+ CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32]>;
1067
979
  /**
1068
980
  * Some upward messages have been received and will be processed.
1069
981
  **/
@@ -1076,6 +988,22 @@ declare module '@polkadot/api-base/types/events' {
1076
988
  **/
1077
989
  [key: string]: AugmentedEvent<ApiType>;
1078
990
  };
991
+ parameters: {
992
+ /**
993
+ * A Parameter was set.
994
+ *
995
+ * Is also emitted when the value was not changed.
996
+ **/
997
+ Updated: AugmentedEvent<ApiType, [key: PolkadotRuntimeRuntimeParametersKey, oldValue: Option<PolkadotRuntimeRuntimeParametersValue>, newValue: Option<PolkadotRuntimeRuntimeParametersValue>], {
998
+ key: PolkadotRuntimeRuntimeParametersKey;
999
+ oldValue: Option<PolkadotRuntimeRuntimeParametersValue>;
1000
+ newValue: Option<PolkadotRuntimeRuntimeParametersValue>;
1001
+ }>;
1002
+ /**
1003
+ * Generic event
1004
+ **/
1005
+ [key: string]: AugmentedEvent<ApiType>;
1006
+ };
1079
1007
  paras: {
1080
1008
  /**
1081
1009
  * A para has been queued to execute pending actions. `para_id`
@@ -1384,6 +1312,30 @@ declare module '@polkadot/api-base/types/events' {
1384
1312
  task: ITuple<[u32, u32]>;
1385
1313
  id: Option<U8aFixed>;
1386
1314
  }>;
1315
+ /**
1316
+ * Cancel a retry configuration for some task.
1317
+ **/
1318
+ RetryCancelled: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], {
1319
+ task: ITuple<[u32, u32]>;
1320
+ id: Option<U8aFixed>;
1321
+ }>;
1322
+ /**
1323
+ * The given task was unable to be retried since the agenda is full at that block or there
1324
+ * was not enough weight to reschedule it.
1325
+ **/
1326
+ RetryFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], {
1327
+ task: ITuple<[u32, u32]>;
1328
+ id: Option<U8aFixed>;
1329
+ }>;
1330
+ /**
1331
+ * Set a retry configuration for some task.
1332
+ **/
1333
+ RetrySet: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8], {
1334
+ task: ITuple<[u32, u32]>;
1335
+ id: Option<U8aFixed>;
1336
+ period: u32;
1337
+ retries: u8;
1338
+ }>;
1387
1339
  /**
1388
1340
  * Scheduled some task.
1389
1341
  **/
@@ -1712,19 +1664,6 @@ declare module '@polkadot/api-base/types/events' {
1712
1664
  index: u32;
1713
1665
  paymentId: u64;
1714
1666
  }>;
1715
- /**
1716
- * New proposal.
1717
- **/
1718
- Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], {
1719
- proposalIndex: u32;
1720
- }>;
1721
- /**
1722
- * A proposal was rejected; funds were slashed.
1723
- **/
1724
- Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], {
1725
- proposalIndex: u32;
1726
- slashed: u128;
1727
- }>;
1728
1667
  /**
1729
1668
  * Spending has finished; this is the amount that rolls over until next spend.
1730
1669
  **/