@polkadot/api-augment 9.11.1 → 9.11.3

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.
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@polkadot/api-augment',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '9.11.1'
16
+ version: '9.11.3'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
@@ -1462,14 +1462,14 @@ declare module '@polkadot/api-base/types/errors' {
1462
1462
  * Invalid signature on statement.
1463
1463
  **/
1464
1464
  InvalidSignature: AugmentedError<ApiType>;
1465
- /**
1466
- * Too many spam slots used by some specific validator.
1467
- **/
1468
- PotentialSpam: AugmentedError<ApiType>;
1469
1465
  /**
1470
1466
  * A dispute where there are only votes on one side.
1471
1467
  **/
1472
1468
  SingleSidedDispute: AugmentedError<ApiType>;
1469
+ /**
1470
+ * Unconfirmed dispute statement sets provided
1471
+ **/
1472
+ UnconfirmedDispute: AugmentedError<ApiType>;
1473
1473
  /**
1474
1474
  * Validator index on statement is out of bounds for session.
1475
1475
  **/
package/kusama/query.d.ts CHANGED
@@ -1301,14 +1301,6 @@ declare module '@polkadot/api-base/types/storage' {
1301
1301
  * references sessions.
1302
1302
  **/
1303
1303
  lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1304
- /**
1305
- * Maps session indices to a vector indicating the number of potentially-spam disputes
1306
- * each validator is participating in. Potentially-spam disputes are remote disputes which have
1307
- * fewer than `byzantine_threshold + 1` validators.
1308
- *
1309
- * The i'th entry of the vector corresponds to the i'th validator in the session.
1310
- **/
1311
- spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1312
1304
  /**
1313
1305
  * Generic query
1314
1306
  **/
package/kusama/tx.d.ts CHANGED
@@ -730,10 +730,6 @@ declare module '@polkadot/api-base/types/submittable' {
730
730
  * Set the dispute conclusion by time out period.
731
731
  **/
732
732
  setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
733
- /**
734
- * Set the maximum number of dispute spam slots.
735
- **/
736
- setDisputeMaxSpamSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
737
733
  /**
738
734
  * Set the dispute period, in number of sessions to keep for disputes.
739
735
  **/
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.11.1",
23
+ "version": "9.11.3",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -186,11 +186,11 @@
186
186
  },
187
187
  "dependencies": {
188
188
  "@babel/runtime": "^7.20.7",
189
- "@polkadot/api-base": "9.11.1",
190
- "@polkadot/rpc-augment": "9.11.1",
191
- "@polkadot/types": "9.11.1",
192
- "@polkadot/types-augment": "9.11.1",
193
- "@polkadot/types-codec": "9.11.1",
194
- "@polkadot/util": "^10.2.3"
189
+ "@polkadot/api-base": "9.11.3",
190
+ "@polkadot/rpc-augment": "9.11.3",
191
+ "@polkadot/types": "9.11.3",
192
+ "@polkadot/types-augment": "9.11.3",
193
+ "@polkadot/types-codec": "9.11.3",
194
+ "@polkadot/util": "^10.2.6"
195
195
  }
196
196
  }
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@polkadot/api-augment',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '9.11.1'
10
+ version: '9.11.3'
11
11
  };
@@ -1214,14 +1214,14 @@ declare module '@polkadot/api-base/types/errors' {
1214
1214
  * Invalid signature on statement.
1215
1215
  **/
1216
1216
  InvalidSignature: AugmentedError<ApiType>;
1217
- /**
1218
- * Too many spam slots used by some specific validator.
1219
- **/
1220
- PotentialSpam: AugmentedError<ApiType>;
1221
1217
  /**
1222
1218
  * A dispute where there are only votes on one side.
1223
1219
  **/
1224
1220
  SingleSidedDispute: AugmentedError<ApiType>;
1221
+ /**
1222
+ * Unconfirmed dispute statement sets provided
1223
+ **/
1224
+ UnconfirmedDispute: AugmentedError<ApiType>;
1225
1225
  /**
1226
1226
  * Validator index on statement is out of bounds for session.
1227
1227
  **/
@@ -1154,14 +1154,6 @@ declare module '@polkadot/api-base/types/storage' {
1154
1154
  * references sessions.
1155
1155
  **/
1156
1156
  lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1157
- /**
1158
- * Maps session indices to a vector indicating the number of potentially-spam disputes
1159
- * each validator is participating in. Potentially-spam disputes are remote disputes which have
1160
- * fewer than `byzantine_threshold + 1` validators.
1161
- *
1162
- * The i'th entry of the vector corresponds to the i'th validator in the session.
1163
- **/
1164
- spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1165
1157
  /**
1166
1158
  * Generic query
1167
1159
  **/
package/polkadot/tx.d.ts CHANGED
@@ -730,10 +730,6 @@ declare module '@polkadot/api-base/types/submittable' {
730
730
  * Set the dispute conclusion by time out period.
731
731
  **/
732
732
  setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
733
- /**
734
- * Set the maximum number of dispute spam slots.
735
- **/
736
- setDisputeMaxSpamSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
737
733
  /**
738
734
  * Set the dispute period, in number of sessions to keep for disputes.
739
735
  **/
@@ -797,20 +797,6 @@ declare module '@polkadot/api-base/types/consts' {
797
797
  **/
798
798
  [key: string]: Codec;
799
799
  };
800
- preimage: {
801
- /**
802
- * The base deposit for placing a preimage on chain.
803
- **/
804
- baseDeposit: u128 & AugmentedConst<ApiType>;
805
- /**
806
- * The per-byte deposit for placing a preimage on chain.
807
- **/
808
- byteDeposit: u128 & AugmentedConst<ApiType>;
809
- /**
810
- * Generic const
811
- **/
812
- [key: string]: Codec;
813
- };
814
800
  proxy: {
815
801
  /**
816
802
  * The base amount of currency needed to reserve for creating an announcement.
@@ -460,10 +460,6 @@ declare module '@polkadot/api-base/types/errors' {
460
460
  * A contract with the same AccountId already exists.
461
461
  **/
462
462
  DuplicateContract: AugmentedError<ApiType>;
463
- /**
464
- * The topics passed to `seal_deposit_events` contains at least one duplicate.
465
- **/
466
- DuplicateTopics: AugmentedError<ApiType>;
467
463
  /**
468
464
  * An indetermistic code was used in a context where this is not permitted.
469
465
  **/
@@ -1210,6 +1206,10 @@ declare module '@polkadot/api-base/types/errors' {
1210
1206
  * The approval had a deadline that expired, so the approval isn't valid anymore.
1211
1207
  **/
1212
1208
  ApprovalExpired: AugmentedError<ApiType>;
1209
+ /**
1210
+ * The provided attribute can't be found.
1211
+ **/
1212
+ AttributeNotFound: AugmentedError<ApiType>;
1213
1213
  /**
1214
1214
  * The witness data given does not match the current state of the chain.
1215
1215
  **/
@@ -1270,6 +1270,10 @@ declare module '@polkadot/api-base/types/errors' {
1270
1270
  * The provided max supply is less than the number of items a collection already has.
1271
1271
  **/
1272
1272
  MaxSupplyTooSmall: AugmentedError<ApiType>;
1273
+ /**
1274
+ * The given item has no metadata set.
1275
+ **/
1276
+ MetadataNotFound: AugmentedError<ApiType>;
1273
1277
  /**
1274
1278
  * The method is disabled by system settings.
1275
1279
  **/
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
6
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
8
8
  declare module '@polkadot/api-base/types/events' {
9
9
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -776,6 +776,14 @@ declare module '@polkadot/api-base/types/events' {
776
776
  compute: PalletElectionProviderMultiPhaseElectionCompute;
777
777
  score: SpNposElectionsElectionScore;
778
778
  }>;
779
+ /**
780
+ * There was a phase transition in a given round.
781
+ **/
782
+ PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], {
783
+ from: PalletElectionProviderMultiPhasePhase;
784
+ to: PalletElectionProviderMultiPhasePhase;
785
+ round: u32;
786
+ }>;
779
787
  /**
780
788
  * An account has been rewarded for their signed submission being finalized.
781
789
  **/
@@ -783,12 +791,6 @@ declare module '@polkadot/api-base/types/events' {
783
791
  account: AccountId32;
784
792
  value: u128;
785
793
  }>;
786
- /**
787
- * The signed phase of the given round has started.
788
- **/
789
- SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], {
790
- round: u32;
791
- }>;
792
794
  /**
793
795
  * An account has been slashed for submitting an invalid signed submission.
794
796
  **/
@@ -799,21 +801,17 @@ declare module '@polkadot/api-base/types/events' {
799
801
  /**
800
802
  * A solution was stored with the given compute.
801
803
  *
802
- * If the solution is signed, this means that it hasn't yet been processed. If the
803
- * solution is unsigned, this means that it has also been processed.
804
- *
805
- * The `bool` is `true` when a previous solution was ejected to make room for this one.
804
+ * The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
805
+ * the stored solution was submited in the signed phase by a miner with the `AccountId`.
806
+ * Otherwise, the solution was stored either during the unsigned phase or by
807
+ * `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
808
+ * room for this one.
806
809
  **/
807
- SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], {
810
+ SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], {
808
811
  compute: PalletElectionProviderMultiPhaseElectionCompute;
812
+ origin: Option<AccountId32>;
809
813
  prevEjected: bool;
810
814
  }>;
811
- /**
812
- * The unsigned phase of the given round has started.
813
- **/
814
- UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], {
815
- round: u32;
816
- }>;
817
815
  /**
818
816
  * Generic event
819
817
  **/
@@ -2232,6 +2230,12 @@ declare module '@polkadot/api-base/types/events' {
2232
2230
  validatorPayout: u128;
2233
2231
  remainder: u128;
2234
2232
  }>;
2233
+ /**
2234
+ * A new force era mode was set.
2235
+ **/
2236
+ ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], {
2237
+ mode: PalletStakingForcing;
2238
+ }>;
2235
2239
  /**
2236
2240
  * A nominator has been kicked from a validator.
2237
2241
  **/
@@ -639,6 +639,8 @@ declare module '@polkadot/api-base/types/storage' {
639
639
  * The map of all accounts wishing to be unstaked.
640
640
  *
641
641
  * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
642
+ *
643
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
642
644
  **/
643
645
  queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
644
646
  /**
@@ -1020,6 +1022,8 @@ declare module '@polkadot/api-base/types/storage' {
1020
1022
  minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1021
1023
  /**
1022
1024
  * Active members.
1025
+ *
1026
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1023
1027
  **/
1024
1028
  poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1025
1029
  /**
@@ -1346,6 +1350,8 @@ declare module '@polkadot/api-base/types/storage' {
1346
1350
  activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
1347
1351
  /**
1348
1352
  * Map from all locked "stash" accounts to the controller account.
1353
+ *
1354
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1349
1355
  **/
1350
1356
  bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1351
1357
  /**
@@ -1506,6 +1512,8 @@ declare module '@polkadot/api-base/types/storage' {
1506
1512
  *
1507
1513
  * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
1508
1514
  * [`Call::chill_other`] dispatchable by anyone.
1515
+ *
1516
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1509
1517
  **/
1510
1518
  nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1511
1519
  /**
@@ -1526,6 +1534,8 @@ declare module '@polkadot/api-base/types/storage' {
1526
1534
  offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
1527
1535
  /**
1528
1536
  * Where the reward payment should be made. Keyed by stash.
1537
+ *
1538
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1529
1539
  **/
1530
1540
  payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1531
1541
  /**
@@ -1553,6 +1563,8 @@ declare module '@polkadot/api-base/types/storage' {
1553
1563
  validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1554
1564
  /**
1555
1565
  * The map from (wannabe) validator stash key to the preferences of that validator.
1566
+ *
1567
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1556
1568
  **/
1557
1569
  validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1558
1570
  /**
package/substrate/tx.d.ts CHANGED
@@ -3753,7 +3753,7 @@ declare module '@polkadot/api-base/types/submittable' {
3753
3753
  * Clear an attribute for a collection or item.
3754
3754
  *
3755
3755
  * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
3756
- * `collection`.
3756
+ * attribute.
3757
3757
  *
3758
3758
  * Any deposit is freed for the collection's owner.
3759
3759
  *