@polkadot/api-augment 9.1.1 → 9.2.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.
- package/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +15 -0
- package/kusama/runtime.d.ts +17 -2
- package/kusama/tx.d.ts +478 -38
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +40 -0
- package/polkadot/errors.d.ts +98 -0
- package/polkadot/events.d.ts +111 -1
- package/polkadot/query.d.ts +93 -1
- package/polkadot/runtime.d.ts +17 -2
- package/polkadot/tx.d.ts +569 -25
- package/substrate/consts.d.ts +15 -0
- package/substrate/errors.d.ts +6 -12
- package/substrate/events.d.ts +4 -8
- package/substrate/query.d.ts +0 -5
- package/substrate/runtime.d.ts +17 -2
- package/substrate/tx.d.ts +561 -63
package/substrate/consts.d.ts
CHANGED
|
@@ -486,6 +486,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
486
486
|
* Number of runners_up to keep.
|
|
487
487
|
**/
|
|
488
488
|
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
|
489
|
+
/**
|
|
490
|
+
* The maximum number of candidates in a phragmen election.
|
|
491
|
+
*
|
|
492
|
+
* Warning: The election happens onchain, and this value will determine
|
|
493
|
+
* the size of the election. When this limit is reached no more
|
|
494
|
+
* candidates are accepted in the election.
|
|
495
|
+
**/
|
|
496
|
+
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
497
|
+
/**
|
|
498
|
+
* The maximum number of voters to allow in a phragmen election.
|
|
499
|
+
*
|
|
500
|
+
* Warning: This impacts the size of the election which is run onchain.
|
|
501
|
+
* When the limit is reached the new voters are ignored.
|
|
502
|
+
**/
|
|
503
|
+
maxVoters: u32 & AugmentedConst<ApiType>;
|
|
489
504
|
/**
|
|
490
505
|
* Identifier for the elections-phragmen pallet's lock
|
|
491
506
|
**/
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1783,7 +1783,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1783
1783
|
};
|
|
1784
1784
|
stateTrieMigration: {
|
|
1785
1785
|
/**
|
|
1786
|
-
*
|
|
1786
|
+
* Bad child root provided.
|
|
1787
|
+
**/
|
|
1788
|
+
BadChildRoot: AugmentedError<ApiType>;
|
|
1789
|
+
/**
|
|
1790
|
+
* Bad witness data provided.
|
|
1787
1791
|
**/
|
|
1788
1792
|
BadWitness: AugmentedError<ApiType>;
|
|
1789
1793
|
/**
|
|
@@ -1797,7 +1801,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1797
1801
|
**/
|
|
1798
1802
|
KeyTooLong: AugmentedError<ApiType>;
|
|
1799
1803
|
/**
|
|
1800
|
-
*
|
|
1804
|
+
* Max signed limits not respected.
|
|
1801
1805
|
**/
|
|
1802
1806
|
MaxSignedLimits: AugmentedError<ApiType>;
|
|
1803
1807
|
/**
|
|
@@ -1808,10 +1812,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1808
1812
|
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
1809
1813
|
**/
|
|
1810
1814
|
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
|
1811
|
-
/**
|
|
1812
|
-
* upper bound of size is exceeded,
|
|
1813
|
-
**/
|
|
1814
|
-
SizeUpperBoundExceeded: AugmentedError<ApiType>;
|
|
1815
1815
|
/**
|
|
1816
1816
|
* Generic error
|
|
1817
1817
|
**/
|
|
@@ -2077,12 +2077,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2077
2077
|
* The provided max supply is less to the amount of items a collection already has.
|
|
2078
2078
|
**/
|
|
2079
2079
|
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
|
2080
|
-
/**
|
|
2081
|
-
* The `CollectionId` in `NextCollectionId` is not being used.
|
|
2082
|
-
*
|
|
2083
|
-
* This means that you can directly proceed to call `create`.
|
|
2084
|
-
**/
|
|
2085
|
-
NextIdNotUsed: AugmentedError<ApiType>;
|
|
2086
2080
|
/**
|
|
2087
2081
|
* There is no delegate approved.
|
|
2088
2082
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -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 } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
|
7
7
|
export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/events' {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -1841,7 +1841,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1841
1841
|
/**
|
|
1842
1842
|
* Migration got halted due to an error or miss-configuration.
|
|
1843
1843
|
**/
|
|
1844
|
-
Halted: AugmentedEvent<ApiType, []
|
|
1844
|
+
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], {
|
|
1845
|
+
error: PalletStateTrieMigrationError;
|
|
1846
|
+
}>;
|
|
1845
1847
|
/**
|
|
1846
1848
|
* Given number of `(top, child)` keys were migrated respectively, with the given
|
|
1847
1849
|
* `compute`.
|
|
@@ -2319,12 +2321,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2319
2321
|
data: Bytes;
|
|
2320
2322
|
isFrozen: bool;
|
|
2321
2323
|
}>;
|
|
2322
|
-
/**
|
|
2323
|
-
* Event gets emmited when the `NextCollectionId` gets incremented.
|
|
2324
|
-
**/
|
|
2325
|
-
NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: u32], {
|
|
2326
|
-
nextId: u32;
|
|
2327
|
-
}>;
|
|
2328
2324
|
/**
|
|
2329
2325
|
* The owner changed.
|
|
2330
2326
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -1771,11 +1771,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1771
1771
|
* Price of an asset instance.
|
|
1772
1772
|
**/
|
|
1773
1773
|
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
1774
|
-
/**
|
|
1775
|
-
* Stores the `CollectionId` that is going to be used for the next collection.
|
|
1776
|
-
* This gets incremented by 1 whenever a new collection is created.
|
|
1777
|
-
**/
|
|
1778
|
-
nextCollectionId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1779
1774
|
/**
|
|
1780
1775
|
* The collection, if any, of which an account is willing to take ownership.
|
|
1781
1776
|
**/
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/calls';
|
|
2
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Bytes, Null, Option, Result, Vec, u32, u64 } from '@polkadot/types-codec';
|
|
4
|
-
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
4
|
+
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
6
6
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
7
7
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
@@ -13,7 +13,7 @@ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
|
13
13
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
|
14
14
|
import type { NpApiError } from '@polkadot/types/interfaces/nompools';
|
|
15
15
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
16
|
-
import type { AccountId, Balance, Block, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
|
16
|
+
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
|
17
17
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
18
18
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
19
19
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
@@ -318,5 +318,20 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
318
318
|
**/
|
|
319
319
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
320
320
|
};
|
|
321
|
+
/** 0xf3ff14d5ab527059/1 */
|
|
322
|
+
transactionPaymentCallApi: {
|
|
323
|
+
/**
|
|
324
|
+
* The call fee details
|
|
325
|
+
**/
|
|
326
|
+
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
|
|
327
|
+
/**
|
|
328
|
+
* The call info
|
|
329
|
+
**/
|
|
330
|
+
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
|
331
|
+
/**
|
|
332
|
+
* Generic call
|
|
333
|
+
**/
|
|
334
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
335
|
+
};
|
|
321
336
|
}
|
|
322
337
|
}
|