@polkadot/api-augment 9.7.1 → 9.8.2
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 +101 -14
- package/kusama/errors.d.ts +256 -29
- package/kusama/events.d.ts +297 -62
- package/kusama/query.d.ts +120 -28
- package/kusama/runtime.d.ts +2 -2
- package/kusama/tx.d.ts +718 -139
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +22 -13
- package/polkadot/errors.d.ts +33 -29
- package/polkadot/events.d.ts +45 -62
- package/polkadot/query.d.ts +17 -28
- package/polkadot/runtime.d.ts +2 -2
- package/polkadot/tx.d.ts +233 -139
- package/substrate/consts.d.ts +7 -0
- package/substrate/errors.d.ts +11 -3
- package/substrate/events.d.ts +9 -3
- package/substrate/runtime.d.ts +13 -7
- package/substrate/tx.d.ts +6 -4
package/substrate/consts.d.ts
CHANGED
|
@@ -342,6 +342,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
342
342
|
* take place over multiple blocks.
|
|
343
343
|
**/
|
|
344
344
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
345
|
+
/**
|
|
346
|
+
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
347
|
+
* implementation.
|
|
348
|
+
*
|
|
349
|
+
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
|
350
|
+
**/
|
|
351
|
+
maxWinners: u32 & AugmentedConst<ApiType>;
|
|
345
352
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
|
346
353
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
347
354
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
package/substrate/errors.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
298
298
|
**/
|
|
299
299
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
|
300
300
|
/**
|
|
301
|
-
* Balance too low to send value
|
|
301
|
+
* Balance too low to send value.
|
|
302
302
|
**/
|
|
303
303
|
InsufficientBalance: AugmentedError<ApiType>;
|
|
304
304
|
/**
|
|
@@ -735,6 +735,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
735
735
|
[key: string]: AugmentedError<ApiType>;
|
|
736
736
|
};
|
|
737
737
|
electionProviderMultiPhase: {
|
|
738
|
+
/**
|
|
739
|
+
* Some bound not met
|
|
740
|
+
**/
|
|
741
|
+
BoundNotMet: AugmentedError<ApiType>;
|
|
738
742
|
/**
|
|
739
743
|
* The call is not allowed at this point.
|
|
740
744
|
**/
|
|
@@ -783,6 +787,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
783
787
|
* The signed submission consumes too much weight
|
|
784
788
|
**/
|
|
785
789
|
SignedTooMuchWeight: AugmentedError<ApiType>;
|
|
790
|
+
/**
|
|
791
|
+
* Submitted solution has too many winners
|
|
792
|
+
**/
|
|
793
|
+
TooManyWinners: AugmentedError<ApiType>;
|
|
786
794
|
/**
|
|
787
795
|
* Generic error
|
|
788
796
|
**/
|
|
@@ -1814,8 +1822,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1814
1822
|
**/
|
|
1815
1823
|
TooManyTargets: AugmentedError<ApiType>;
|
|
1816
1824
|
/**
|
|
1817
|
-
* There are too many
|
|
1818
|
-
* settings to keep things safe for the runtime.
|
|
1825
|
+
* There are too many validator candidates in the system. Governance needs to adjust the
|
|
1826
|
+
* staking settings to keep things safe for the runtime.
|
|
1819
1827
|
**/
|
|
1820
1828
|
TooManyValidators: AugmentedError<ApiType>;
|
|
1821
1829
|
/**
|
package/substrate/events.d.ts
CHANGED
|
@@ -849,12 +849,18 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
849
849
|
};
|
|
850
850
|
fastUnstake: {
|
|
851
851
|
/**
|
|
852
|
-
* A
|
|
852
|
+
* A batch was partially checked for the given eras, but the process did not finish.
|
|
853
853
|
**/
|
|
854
|
-
|
|
855
|
-
stash: AccountId32;
|
|
854
|
+
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], {
|
|
856
855
|
eras: Vec<u32>;
|
|
857
856
|
}>;
|
|
857
|
+
/**
|
|
858
|
+
* A batch was terminated.
|
|
859
|
+
*
|
|
860
|
+
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
|
861
|
+
* of the batch. A new batch will be created upon next block.
|
|
862
|
+
**/
|
|
863
|
+
BatchFinished: AugmentedEvent<ApiType, []>;
|
|
858
864
|
/**
|
|
859
865
|
* Some internal error happened while migrating stash. They are removed as head as a
|
|
860
866
|
* consequence.
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/calls';
|
|
2
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
3
|
-
import type { Bytes, Null, Option, Result, Vec, u32
|
|
3
|
+
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
|
4
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';
|
|
@@ -12,7 +12,7 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
|
|
|
12
12
|
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 { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
15
|
-
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
|
15
|
+
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
|
16
16
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
17
17
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
18
18
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
@@ -109,12 +109,15 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
109
109
|
**/
|
|
110
110
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
111
111
|
};
|
|
112
|
-
/** 0x68b66ba122c93fa7/
|
|
112
|
+
/** 0x68b66ba122c93fa7/2 */
|
|
113
113
|
contractsApi: {
|
|
114
114
|
/**
|
|
115
115
|
* Perform a call from a specified account to a given contract.
|
|
116
116
|
**/
|
|
117
|
-
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit:
|
|
117
|
+
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | {
|
|
118
|
+
refTime?: any;
|
|
119
|
+
proofSize?: any;
|
|
120
|
+
} | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
|
|
118
121
|
/**
|
|
119
122
|
* Query a given storage key in a given contract.
|
|
120
123
|
**/
|
|
@@ -122,7 +125,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
122
125
|
/**
|
|
123
126
|
* Instantiate a new contract.
|
|
124
127
|
**/
|
|
125
|
-
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit:
|
|
128
|
+
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | {
|
|
129
|
+
refTime?: any;
|
|
130
|
+
proofSize?: any;
|
|
131
|
+
} | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | {
|
|
126
132
|
Upload: any;
|
|
127
133
|
} | {
|
|
128
134
|
Existing: any;
|
|
@@ -306,7 +312,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
306
312
|
**/
|
|
307
313
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
308
314
|
};
|
|
309
|
-
/** 0x37c8bb1350a9a2a8/
|
|
315
|
+
/** 0x37c8bb1350a9a2a8/2 */
|
|
310
316
|
transactionPaymentApi: {
|
|
311
317
|
/**
|
|
312
318
|
* The transaction fee details
|
|
@@ -321,7 +327,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
321
327
|
**/
|
|
322
328
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
323
329
|
};
|
|
324
|
-
/** 0xf3ff14d5ab527059/
|
|
330
|
+
/** 0xf3ff14d5ab527059/2 */
|
|
325
331
|
transactionPaymentCallApi: {
|
|
326
332
|
/**
|
|
327
333
|
* The call fee details
|
package/substrate/tx.d.ts
CHANGED
|
@@ -464,7 +464,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
464
464
|
*
|
|
465
465
|
* This new asset class has no assets initially and its owner is the origin.
|
|
466
466
|
*
|
|
467
|
-
* The origin must
|
|
467
|
+
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
468
468
|
*
|
|
469
469
|
* Funds of sender are reserved by `AssetDeposit`.
|
|
470
470
|
*
|
|
@@ -5298,7 +5298,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5298
5298
|
**/
|
|
5299
5299
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
5300
5300
|
/**
|
|
5301
|
-
* Increments the ideal number of validators
|
|
5301
|
+
* Increments the ideal number of validators upto maximum of
|
|
5302
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
5302
5303
|
*
|
|
5303
5304
|
* The dispatch origin must be Root.
|
|
5304
5305
|
*
|
|
@@ -5407,7 +5408,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5407
5408
|
**/
|
|
5408
5409
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
5409
5410
|
/**
|
|
5410
|
-
* Scale up the ideal number of validators by a factor
|
|
5411
|
+
* Scale up the ideal number of validators by a factor upto maximum of
|
|
5412
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
5411
5413
|
*
|
|
5412
5414
|
* The dispatch origin must be Root.
|
|
5413
5415
|
*
|
|
@@ -6614,7 +6616,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6614
6616
|
*
|
|
6615
6617
|
* This new collection has no items initially and its owner is the origin.
|
|
6616
6618
|
*
|
|
6617
|
-
* The origin must
|
|
6619
|
+
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
6618
6620
|
*
|
|
6619
6621
|
* `ItemDeposit` funds of sender are reserved.
|
|
6620
6622
|
*
|