@polkadot/api-augment 11.0.3 → 11.2.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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.0.3' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.2.1' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "11.0.3",
21
+ "version": "11.2.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -211,11 +211,11 @@
211
211
  }
212
212
  },
213
213
  "dependencies": {
214
- "@polkadot/api-base": "11.0.3",
215
- "@polkadot/rpc-augment": "11.0.3",
216
- "@polkadot/types": "11.0.3",
217
- "@polkadot/types-augment": "11.0.3",
218
- "@polkadot/types-codec": "11.0.3",
214
+ "@polkadot/api-base": "11.2.1",
215
+ "@polkadot/rpc-augment": "11.2.1",
216
+ "@polkadot/types": "11.2.1",
217
+ "@polkadot/types-augment": "11.2.1",
218
+ "@polkadot/types-codec": "11.2.1",
219
219
  "@polkadot/util": "^12.6.2",
220
220
  "tslib": "^2.6.2"
221
221
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.0.3' };
1
+ export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.2.1' };
@@ -2865,6 +2865,10 @@ declare module '@polkadot/api-base/types/errors' {
2865
2865
  * staking settings to keep things safe for the runtime.
2866
2866
  **/
2867
2867
  TooManyValidators: AugmentedError<ApiType>;
2868
+ /**
2869
+ * Operation not allowed for virtual stakers.
2870
+ **/
2871
+ VirtualStakerNotAllowed: AugmentedError<ApiType>;
2868
2872
  /**
2869
2873
  * Generic error
2870
2874
  **/
@@ -361,6 +361,14 @@ declare module '@polkadot/api-base/types/events' {
361
361
  creator: AccountId32;
362
362
  owner: AccountId32;
363
363
  }>;
364
+ /**
365
+ * Some assets were deposited (e.g. for transaction fees).
366
+ **/
367
+ Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
368
+ assetId: u32;
369
+ who: AccountId32;
370
+ amount: u128;
371
+ }>;
364
372
  /**
365
373
  * An asset class was destroyed.
366
374
  **/
@@ -462,6 +470,14 @@ declare module '@polkadot/api-base/types/events' {
462
470
  destination: AccountId32;
463
471
  amount: u128;
464
472
  }>;
473
+ /**
474
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
475
+ **/
476
+ Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
477
+ assetId: u32;
478
+ who: AccountId32;
479
+ amount: u128;
480
+ }>;
465
481
  /**
466
482
  * Generic event
467
483
  **/
@@ -2575,6 +2591,14 @@ declare module '@polkadot/api-base/types/events' {
2575
2591
  creator: AccountId32;
2576
2592
  owner: AccountId32;
2577
2593
  }>;
2594
+ /**
2595
+ * Some assets were deposited (e.g. for transaction fees).
2596
+ **/
2597
+ Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
2598
+ assetId: u32;
2599
+ who: AccountId32;
2600
+ amount: u128;
2601
+ }>;
2578
2602
  /**
2579
2603
  * An asset class was destroyed.
2580
2604
  **/
@@ -2676,6 +2700,14 @@ declare module '@polkadot/api-base/types/events' {
2676
2700
  destination: AccountId32;
2677
2701
  amount: u128;
2678
2702
  }>;
2703
+ /**
2704
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
2705
+ **/
2706
+ Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], {
2707
+ assetId: u32;
2708
+ who: AccountId32;
2709
+ amount: u128;
2710
+ }>;
2679
2711
  /**
2680
2712
  * Generic event
2681
2713
  **/
@@ -1917,6 +1917,16 @@ declare module '@polkadot/api-base/types/storage' {
1917
1917
  * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
1918
1918
  **/
1919
1919
  currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1920
+ /**
1921
+ * Indices of validators that have offended in the active era. The offenders are disabled for a
1922
+ * whole era. For this reason they are kept here - only staking pallet knows about eras. The
1923
+ * implementor of [`DisablingStrategy`] defines if a validator should be disabled which
1924
+ * implicitly means that the implementor also controls the max number of disabled validators.
1925
+ *
1926
+ * The vec is always kept sorted so that we can find whether a given validator has previously
1927
+ * offended using binary search.
1928
+ **/
1929
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1920
1930
  /**
1921
1931
  * Rewards for the last [`Config::HistoryDepth`] eras.
1922
1932
  * If reward hasn't been set or has been removed then 0 reward is returned.
@@ -2085,18 +2095,6 @@ declare module '@polkadot/api-base/types/storage' {
2085
2095
  * All slashing events on nominators, mapped by era to the highest slash value of the era.
2086
2096
  **/
2087
2097
  nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
2088
- /**
2089
- * Indices of validators that have offended in the active era and whether they are currently
2090
- * disabled.
2091
- *
2092
- * This value should be a superset of disabled validators since not all offences lead to the
2093
- * validator being disabled (if there was no slash). This is needed to track the percentage of
2094
- * validators that have offended in the current era, ensuring a new era is forced if
2095
- * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
2096
- * whether a given validator has previously offended using binary search. It gets cleared when
2097
- * the era ends.
2098
- **/
2099
- offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
2100
2098
  /**
2101
2099
  * Where the reward payment should be made. Keyed by stash.
2102
2100
  *
package/substrate/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
10
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -1282,6 +1282,16 @@ declare module '@polkadot/api-base/types/submittable' {
1282
1282
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1283
1283
  };
1284
1284
  balances: {
1285
+ /**
1286
+ * Burn the specified liquid free balance from the origin account.
1287
+ *
1288
+ * If the origin's account ends up below the existential deposit as a result
1289
+ * of the burn and `keep_alive` is false, the account will be reaped.
1290
+ *
1291
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
1292
+ * this `burn` operation will reduce total issuance by the amount _burned_.
1293
+ **/
1294
+ burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
1285
1295
  /**
1286
1296
  * Adjust the total issuance in a saturating way.
1287
1297
  *
@@ -1437,14 +1447,14 @@ declare module '@polkadot/api-base/types/submittable' {
1437
1447
  * against the extracted offender. If both are valid, the offence
1438
1448
  * will be reported.
1439
1449
  **/
1440
- reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | {
1450
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
1441
1451
  first?: any;
1442
1452
  second?: any;
1443
1453
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
1444
1454
  session?: any;
1445
1455
  trieNodes?: any;
1446
1456
  validatorCount?: any;
1447
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
1457
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
1448
1458
  /**
1449
1459
  * Report voter equivocation/misbehavior. This method will verify the
1450
1460
  * equivocation proof and validate the given key ownership proof
@@ -1456,14 +1466,14 @@ declare module '@polkadot/api-base/types/submittable' {
1456
1466
  * if the block author is defined it will be defined as the equivocation
1457
1467
  * reporter.
1458
1468
  **/
1459
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyEquivocationProof | {
1469
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
1460
1470
  first?: any;
1461
1471
  second?: any;
1462
1472
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
1463
1473
  session?: any;
1464
1474
  trieNodes?: any;
1465
1475
  validatorCount?: any;
1466
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyEquivocationProof, SpSessionMembershipProof]>;
1476
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
1467
1477
  /**
1468
1478
  * Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
1469
1479
  * future.
@@ -7735,7 +7745,8 @@ declare module '@polkadot/api-base/types/submittable' {
7735
7745
  * - Three extra DB entries.
7736
7746
  *
7737
7747
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
7738
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
7748
+ * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
7749
+ * as dust.
7739
7750
  **/
7740
7751
  bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | {
7741
7752
  Staked: any;
@@ -7986,6 +7997,7 @@ declare module '@polkadot/api-base/types/submittable' {
7986
7997
  *
7987
7998
  * 1. the `total_balance` of the stash is below existential deposit.
7988
7999
  * 2. or, the `ledger.total` of the stash is below existential deposit.
8000
+ * 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
7989
8001
  *
7990
8002
  * The former can happen in cases like a slash; the latter when a fully unbonded account
7991
8003
  * is still receiving staking rewards in `RewardDestination::Staked`.