@polkadot/api-augment 12.2.2 → 12.3.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.
- package/cjs/packageInfo.js +1 -1
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/substrate/consts.d.ts +5 -0
- package/substrate/errors.d.ts +18 -2
- package/substrate/runtime.d.ts +5 -5
- package/substrate/tx.d.ts +65 -3
package/cjs/packageInfo.js
CHANGED
|
@@ -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: '12.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.3.1' };
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "12.
|
|
21
|
+
"version": "12.3.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": "12.
|
|
215
|
-
"@polkadot/rpc-augment": "12.
|
|
216
|
-
"@polkadot/types": "12.
|
|
217
|
-
"@polkadot/types-augment": "12.
|
|
218
|
-
"@polkadot/types-codec": "12.
|
|
214
|
+
"@polkadot/api-base": "12.3.1",
|
|
215
|
+
"@polkadot/rpc-augment": "12.3.1",
|
|
216
|
+
"@polkadot/types": "12.3.1",
|
|
217
|
+
"@polkadot/types-augment": "12.3.1",
|
|
218
|
+
"@polkadot/types-codec": "12.3.1",
|
|
219
219
|
"@polkadot/util": "^13.0.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: '12.
|
|
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: '12.3.1' };
|
package/substrate/consts.d.ts
CHANGED
|
@@ -345,6 +345,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
345
345
|
* The maximum allowable length in bytes for storage keys.
|
|
346
346
|
**/
|
|
347
347
|
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
|
348
|
+
/**
|
|
349
|
+
* The maximum size of the transient storage in bytes.
|
|
350
|
+
* This includes keys, values, and previous entries used for storage rollback.
|
|
351
|
+
**/
|
|
352
|
+
maxTransientStorageSize: u32 & AugmentedConst<ApiType>;
|
|
348
353
|
/**
|
|
349
354
|
* Cost schedule and limits.
|
|
350
355
|
**/
|
package/substrate/errors.d.ts
CHANGED
|
@@ -476,9 +476,21 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
476
476
|
**/
|
|
477
477
|
InvalidConfiguration: AugmentedError<ApiType>;
|
|
478
478
|
/**
|
|
479
|
-
*
|
|
479
|
+
* A double voting proof provided as part of an equivocation report is invalid.
|
|
480
480
|
**/
|
|
481
|
-
|
|
481
|
+
InvalidDoubleVotingProof: AugmentedError<ApiType>;
|
|
482
|
+
/**
|
|
483
|
+
* The session of the equivocation proof is invalid
|
|
484
|
+
**/
|
|
485
|
+
InvalidEquivocationProofSession: AugmentedError<ApiType>;
|
|
486
|
+
/**
|
|
487
|
+
* A fork voting proof provided as part of an equivocation report is invalid.
|
|
488
|
+
**/
|
|
489
|
+
InvalidForkVotingProof: AugmentedError<ApiType>;
|
|
490
|
+
/**
|
|
491
|
+
* A future block voting proof provided as part of an equivocation report is invalid.
|
|
492
|
+
**/
|
|
493
|
+
InvalidFutureBlockVotingProof: AugmentedError<ApiType>;
|
|
482
494
|
/**
|
|
483
495
|
* A key ownership proof provided as part of an equivocation report is invalid.
|
|
484
496
|
**/
|
|
@@ -793,6 +805,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
793
805
|
* The executed contract exhausted its gas limit.
|
|
794
806
|
**/
|
|
795
807
|
OutOfGas: AugmentedError<ApiType>;
|
|
808
|
+
/**
|
|
809
|
+
* Can not add more data to transient storage.
|
|
810
|
+
**/
|
|
811
|
+
OutOfTransientStorage: AugmentedError<ApiType>;
|
|
796
812
|
/**
|
|
797
813
|
* The output buffer supplied to a contract API call was too small.
|
|
798
814
|
**/
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@po
|
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
|
6
6
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
7
|
-
import type {
|
|
7
|
+
import type { ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
8
8
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
9
9
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
10
10
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
@@ -23,7 +23,7 @@ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
|
23
23
|
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
|
|
24
24
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
25
25
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
26
|
-
import type { SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
|
26
|
+
import type { SpConsensusBeefyDoubleVotingProof, SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
|
27
27
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
28
28
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
29
29
|
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
@@ -117,7 +117,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
117
117
|
**/
|
|
118
118
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
119
119
|
};
|
|
120
|
-
/** 0x49eaaf1b548a0cb0/
|
|
120
|
+
/** 0x49eaaf1b548a0cb0/4 */
|
|
121
121
|
beefyApi: {
|
|
122
122
|
/**
|
|
123
123
|
* Return the block number where BEEFY consensus is enabled/started
|
|
@@ -128,9 +128,9 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
128
128
|
**/
|
|
129
129
|
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
|
130
130
|
/**
|
|
131
|
-
* Submits an unsigned extrinsic to report
|
|
131
|
+
* Submits an unsigned extrinsic to report a double voting equivocation.
|
|
132
132
|
**/
|
|
133
|
-
|
|
133
|
+
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: SpConsensusBeefyDoubleVotingProof | {
|
|
134
134
|
first?: any;
|
|
135
135
|
second?: any;
|
|
136
136
|
} | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
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, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, 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';
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, 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, SpConsensusBeefyForkVotingProof, SpConsensusBeefyFutureBlockVotingProof, 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>;
|
|
@@ -1447,7 +1447,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1447
1447
|
* against the extracted offender. If both are valid, the offence
|
|
1448
1448
|
* will be reported.
|
|
1449
1449
|
**/
|
|
1450
|
-
|
|
1450
|
+
reportDoubleVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
|
|
1451
1451
|
first?: any;
|
|
1452
1452
|
second?: any;
|
|
1453
1453
|
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
@@ -1466,7 +1466,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1466
1466
|
* if the block author is defined it will be defined as the equivocation
|
|
1467
1467
|
* reporter.
|
|
1468
1468
|
**/
|
|
1469
|
-
|
|
1469
|
+
reportDoubleVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
|
|
1470
1470
|
first?: any;
|
|
1471
1471
|
second?: any;
|
|
1472
1472
|
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
@@ -1474,6 +1474,68 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1474
1474
|
trieNodes?: any;
|
|
1475
1475
|
validatorCount?: any;
|
|
1476
1476
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
1479
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1480
|
+
* If both are valid, the offence will be reported.
|
|
1481
|
+
**/
|
|
1482
|
+
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProof | {
|
|
1483
|
+
vote?: any;
|
|
1484
|
+
ancestryProof?: any;
|
|
1485
|
+
header?: any;
|
|
1486
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1487
|
+
session?: any;
|
|
1488
|
+
trieNodes?: any;
|
|
1489
|
+
validatorCount?: any;
|
|
1490
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, SpSessionMembershipProof]>;
|
|
1491
|
+
/**
|
|
1492
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
1493
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1494
|
+
* If both are valid, the offence will be reported.
|
|
1495
|
+
*
|
|
1496
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
1497
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
1498
|
+
* if the block author is defined it will be defined as the equivocation
|
|
1499
|
+
* reporter.
|
|
1500
|
+
**/
|
|
1501
|
+
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProof | {
|
|
1502
|
+
vote?: any;
|
|
1503
|
+
ancestryProof?: any;
|
|
1504
|
+
header?: any;
|
|
1505
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1506
|
+
session?: any;
|
|
1507
|
+
trieNodes?: any;
|
|
1508
|
+
validatorCount?: any;
|
|
1509
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, SpSessionMembershipProof]>;
|
|
1510
|
+
/**
|
|
1511
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
1512
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1513
|
+
* If both are valid, the offence will be reported.
|
|
1514
|
+
**/
|
|
1515
|
+
reportFutureBlockVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
|
|
1516
|
+
vote?: any;
|
|
1517
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1518
|
+
session?: any;
|
|
1519
|
+
trieNodes?: any;
|
|
1520
|
+
validatorCount?: any;
|
|
1521
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
1524
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
1525
|
+
* If both are valid, the offence will be reported.
|
|
1526
|
+
*
|
|
1527
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
1528
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
1529
|
+
* if the block author is defined it will be defined as the equivocation
|
|
1530
|
+
* reporter.
|
|
1531
|
+
**/
|
|
1532
|
+
reportFutureBlockVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
|
|
1533
|
+
vote?: any;
|
|
1534
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1535
|
+
session?: any;
|
|
1536
|
+
trieNodes?: any;
|
|
1537
|
+
validatorCount?: any;
|
|
1538
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
|
|
1477
1539
|
/**
|
|
1478
1540
|
* Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
|
|
1479
1541
|
* future.
|