@polkadot/api-augment 9.6.2 → 9.8.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/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 +8 -8
- 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 +10 -3
- package/substrate/errors.d.ts +29 -5
- package/substrate/events.d.ts +12 -6
- package/substrate/query.d.ts +5 -5
- package/substrate/runtime.d.ts +13 -7
- package/substrate/tx.d.ts +62 -17
package/substrate/consts.d.ts
CHANGED
|
@@ -239,8 +239,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
239
239
|
/**
|
|
240
240
|
* The maximum number of concurrent votes an account may have.
|
|
241
241
|
*
|
|
242
|
-
* Also used to compute weight, an overly large value can
|
|
243
|
-
*
|
|
242
|
+
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
|
243
|
+
* weight estimation: see `delegate` for instance.
|
|
244
244
|
**/
|
|
245
245
|
maxVotes: u32 & AugmentedConst<ApiType>;
|
|
246
246
|
/**
|
|
@@ -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>;
|
|
@@ -616,7 +623,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
616
623
|
/**
|
|
617
624
|
* The maximum amount of signatories allowed in the multisig.
|
|
618
625
|
**/
|
|
619
|
-
maxSignatories:
|
|
626
|
+
maxSignatories: u32 & AugmentedConst<ApiType>;
|
|
620
627
|
/**
|
|
621
628
|
* Generic const
|
|
622
629
|
**/
|
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
|
/**
|
|
@@ -450,6 +450,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
450
450
|
* The topics passed to `seal_deposit_events` contains at least one duplicate.
|
|
451
451
|
**/
|
|
452
452
|
DuplicateTopics: AugmentedError<ApiType>;
|
|
453
|
+
/**
|
|
454
|
+
* An indetermistic code was used in a context where this is not permitted.
|
|
455
|
+
**/
|
|
456
|
+
Indeterministic: AugmentedError<ApiType>;
|
|
453
457
|
/**
|
|
454
458
|
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
|
455
459
|
**/
|
|
@@ -731,6 +735,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
731
735
|
[key: string]: AugmentedError<ApiType>;
|
|
732
736
|
};
|
|
733
737
|
electionProviderMultiPhase: {
|
|
738
|
+
/**
|
|
739
|
+
* Some bound not met
|
|
740
|
+
**/
|
|
741
|
+
BoundNotMet: AugmentedError<ApiType>;
|
|
734
742
|
/**
|
|
735
743
|
* The call is not allowed at this point.
|
|
736
744
|
**/
|
|
@@ -779,6 +787,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
779
787
|
* The signed submission consumes too much weight
|
|
780
788
|
**/
|
|
781
789
|
SignedTooMuchWeight: AugmentedError<ApiType>;
|
|
790
|
+
/**
|
|
791
|
+
* Submitted solution has too many winners
|
|
792
|
+
**/
|
|
793
|
+
TooManyWinners: AugmentedError<ApiType>;
|
|
782
794
|
/**
|
|
783
795
|
* Generic error
|
|
784
796
|
**/
|
|
@@ -998,6 +1010,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
998
1010
|
* Judgement given.
|
|
999
1011
|
**/
|
|
1000
1012
|
JudgementGiven: AugmentedError<ApiType>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Error that occurs when there is an issue paying for judgement.
|
|
1015
|
+
**/
|
|
1016
|
+
JudgementPaymentFailed: AugmentedError<ApiType>;
|
|
1001
1017
|
/**
|
|
1002
1018
|
* No identity found.
|
|
1003
1019
|
**/
|
|
@@ -1203,6 +1219,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1203
1219
|
* anymore to, for example, collect rewards).
|
|
1204
1220
|
**/
|
|
1205
1221
|
FullyUnbonding: AugmentedError<ApiType>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Pool id provided is not correct/usable.
|
|
1224
|
+
**/
|
|
1225
|
+
InvalidPoolId: AugmentedError<ApiType>;
|
|
1206
1226
|
/**
|
|
1207
1227
|
* Too many members in the pool or system.
|
|
1208
1228
|
**/
|
|
@@ -1252,6 +1272,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1252
1272
|
* Partial unbonding now allowed permissionlessly.
|
|
1253
1273
|
**/
|
|
1254
1274
|
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
|
1275
|
+
/**
|
|
1276
|
+
* Pool id currently in use.
|
|
1277
|
+
**/
|
|
1278
|
+
PoolIdInUse: AugmentedError<ApiType>;
|
|
1255
1279
|
/**
|
|
1256
1280
|
* An account is not a member.
|
|
1257
1281
|
**/
|
|
@@ -1393,7 +1417,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1393
1417
|
**/
|
|
1394
1418
|
BadTrack: AugmentedError<ApiType>;
|
|
1395
1419
|
/**
|
|
1396
|
-
* There are already a full complement of
|
|
1420
|
+
* There are already a full complement of referenda in progress for this track.
|
|
1397
1421
|
**/
|
|
1398
1422
|
Full: AugmentedError<ApiType>;
|
|
1399
1423
|
/**
|
|
@@ -1513,7 +1537,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1513
1537
|
**/
|
|
1514
1538
|
BadTrack: AugmentedError<ApiType>;
|
|
1515
1539
|
/**
|
|
1516
|
-
* There are already a full complement of
|
|
1540
|
+
* There are already a full complement of referenda in progress for this track.
|
|
1517
1541
|
**/
|
|
1518
1542
|
Full: AugmentedError<ApiType>;
|
|
1519
1543
|
/**
|
|
@@ -1798,8 +1822,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1798
1822
|
**/
|
|
1799
1823
|
TooManyTargets: AugmentedError<ApiType>;
|
|
1800
1824
|
/**
|
|
1801
|
-
* There are too many
|
|
1802
|
-
* 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.
|
|
1803
1827
|
**/
|
|
1804
1828
|
TooManyValidators: AugmentedError<ApiType>;
|
|
1805
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.
|
|
@@ -1353,7 +1359,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1353
1359
|
rank: u16;
|
|
1354
1360
|
}>;
|
|
1355
1361
|
/**
|
|
1356
|
-
* The member `who`
|
|
1362
|
+
* The member `who`se rank has been changed to the given `rank`.
|
|
1357
1363
|
**/
|
|
1358
1364
|
RankChanged: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], {
|
|
1359
1365
|
who: AccountId32;
|
|
@@ -1448,7 +1454,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1448
1454
|
tally: PalletRankedCollectiveTally;
|
|
1449
1455
|
}>;
|
|
1450
1456
|
/**
|
|
1451
|
-
* A referendum has
|
|
1457
|
+
* A referendum has been submitted.
|
|
1452
1458
|
**/
|
|
1453
1459
|
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], {
|
|
1454
1460
|
index: u32;
|
|
@@ -1588,7 +1594,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1588
1594
|
tally: PalletConvictionVotingTally;
|
|
1589
1595
|
}>;
|
|
1590
1596
|
/**
|
|
1591
|
-
* A referendum has
|
|
1597
|
+
* A referendum has been submitted.
|
|
1592
1598
|
**/
|
|
1593
1599
|
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], {
|
|
1594
1600
|
index: u32;
|
package/substrate/query.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
7
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
@@ -536,14 +536,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
536
536
|
**/
|
|
537
537
|
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
538
538
|
/**
|
|
539
|
-
* A sorted, bounded
|
|
540
|
-
* `SignedSubmissions`.
|
|
539
|
+
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
|
540
|
+
* value in `SignedSubmissions`.
|
|
541
541
|
*
|
|
542
542
|
* We never need to process more than a single signed submission at a time. Signed submissions
|
|
543
543
|
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
|
544
544
|
* them one at a time instead of reading and decoding all of them at once.
|
|
545
545
|
**/
|
|
546
|
-
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<
|
|
546
|
+
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
547
547
|
/**
|
|
548
548
|
* The next index to be assigned to an incoming signed submission.
|
|
549
549
|
*
|
|
@@ -1447,7 +1447,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1447
1447
|
**/
|
|
1448
1448
|
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1449
1449
|
/**
|
|
1450
|
-
* The ideal number of
|
|
1450
|
+
* The ideal number of active validators.
|
|
1451
1451
|
**/
|
|
1452
1452
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1453
1453
|
/**
|
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
|
@@ -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, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
8
8
|
export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
9
|
export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
10
|
export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -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
|
*
|
|
@@ -1735,6 +1735,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1735
1735
|
* the in storage version to the current
|
|
1736
1736
|
* [`InstructionWeights::version`](InstructionWeights).
|
|
1737
1737
|
*
|
|
1738
|
+
* - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
|
|
1739
|
+
* then the only way to use this code is to delegate call into it from an offchain
|
|
1740
|
+
* execution. Set to [`Determinism::Deterministic`] if in doubt.
|
|
1741
|
+
*
|
|
1738
1742
|
* # Note
|
|
1739
1743
|
*
|
|
1740
1744
|
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
|
@@ -1742,7 +1746,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1742
1746
|
* only be instantiated by permissioned entities. The same is true when uploading
|
|
1743
1747
|
* through [`Self::instantiate_with_code`].
|
|
1744
1748
|
**/
|
|
1745
|
-
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128
|
|
1749
|
+
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Deterministic' | 'AllowIndeterminism' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>, PalletContractsWasmDeterminism]>;
|
|
1746
1750
|
/**
|
|
1747
1751
|
* Generic tx
|
|
1748
1752
|
**/
|
|
@@ -1850,7 +1854,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1850
1854
|
* Undelegate the voting power of the sending account for a particular class of polls.
|
|
1851
1855
|
*
|
|
1852
1856
|
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
1853
|
-
* of the conviction with which the delegation was issued.
|
|
1857
|
+
* of the conviction with which the delegation was issued has passed.
|
|
1854
1858
|
*
|
|
1855
1859
|
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
1856
1860
|
* currently delegating.
|
|
@@ -1864,7 +1868,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1864
1868
|
**/
|
|
1865
1869
|
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
|
1866
1870
|
/**
|
|
1867
|
-
* Remove the lock caused prior voting/delegating which has expired within a
|
|
1871
|
+
* Remove the lock caused by prior voting/delegating which has expired within a particular
|
|
1868
1872
|
* class.
|
|
1869
1873
|
*
|
|
1870
1874
|
* The dispatch origin of this call must be _Signed_.
|
|
@@ -3616,6 +3620,45 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3616
3620
|
} | {
|
|
3617
3621
|
Address20: any;
|
|
3618
3622
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
|
3623
|
+
/**
|
|
3624
|
+
* Create a new delegation pool with a previously used pool id
|
|
3625
|
+
*
|
|
3626
|
+
* # Arguments
|
|
3627
|
+
*
|
|
3628
|
+
* same as `create` with the inclusion of
|
|
3629
|
+
* * `pool_id` - `A valid PoolId.
|
|
3630
|
+
**/
|
|
3631
|
+
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | {
|
|
3632
|
+
Id: any;
|
|
3633
|
+
} | {
|
|
3634
|
+
Index: any;
|
|
3635
|
+
} | {
|
|
3636
|
+
Raw: any;
|
|
3637
|
+
} | {
|
|
3638
|
+
Address32: any;
|
|
3639
|
+
} | {
|
|
3640
|
+
Address20: any;
|
|
3641
|
+
} | string | Uint8Array, nominator: MultiAddress | {
|
|
3642
|
+
Id: any;
|
|
3643
|
+
} | {
|
|
3644
|
+
Index: any;
|
|
3645
|
+
} | {
|
|
3646
|
+
Raw: any;
|
|
3647
|
+
} | {
|
|
3648
|
+
Address32: any;
|
|
3649
|
+
} | {
|
|
3650
|
+
Address20: any;
|
|
3651
|
+
} | string | Uint8Array, stateToggler: MultiAddress | {
|
|
3652
|
+
Id: any;
|
|
3653
|
+
} | {
|
|
3654
|
+
Index: any;
|
|
3655
|
+
} | {
|
|
3656
|
+
Raw: any;
|
|
3657
|
+
} | {
|
|
3658
|
+
Address32: any;
|
|
3659
|
+
} | {
|
|
3660
|
+
Address20: any;
|
|
3661
|
+
} | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
|
3619
3662
|
/**
|
|
3620
3663
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
|
3621
3664
|
* pools account and immediately increases the pools bond.
|
|
@@ -5255,7 +5298,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5255
5298
|
**/
|
|
5256
5299
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
5257
5300
|
/**
|
|
5258
|
-
* Increments the ideal number of validators
|
|
5301
|
+
* Increments the ideal number of validators upto maximum of
|
|
5302
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
5259
5303
|
*
|
|
5260
5304
|
* The dispatch origin must be Root.
|
|
5261
5305
|
*
|
|
@@ -5364,7 +5408,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5364
5408
|
**/
|
|
5365
5409
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
5366
5410
|
/**
|
|
5367
|
-
* 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`.
|
|
5368
5413
|
*
|
|
5369
5414
|
* The dispatch origin must be Root.
|
|
5370
5415
|
*
|
|
@@ -6571,7 +6616,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6571
6616
|
*
|
|
6572
6617
|
* This new collection has no items initially and its owner is the origin.
|
|
6573
6618
|
*
|
|
6574
|
-
* The origin must
|
|
6619
|
+
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
6575
6620
|
*
|
|
6576
6621
|
* `ItemDeposit` funds of sender are reserved.
|
|
6577
6622
|
*
|
|
@@ -7034,13 +7079,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7034
7079
|
/**
|
|
7035
7080
|
* Send a batch of dispatch calls.
|
|
7036
7081
|
*
|
|
7037
|
-
* May be called from any origin
|
|
7082
|
+
* May be called from any origin except `None`.
|
|
7038
7083
|
*
|
|
7039
7084
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
7040
7085
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
7041
7086
|
*
|
|
7042
|
-
* If origin is root then
|
|
7043
|
-
* bypassing `frame_system::Config::BaseCallFilter`).
|
|
7087
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
7088
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
7044
7089
|
*
|
|
7045
7090
|
* # <weight>
|
|
7046
7091
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
|
@@ -7057,13 +7102,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7057
7102
|
* Send a batch of dispatch calls and atomically execute them.
|
|
7058
7103
|
* The whole transaction will rollback and fail if any of the calls failed.
|
|
7059
7104
|
*
|
|
7060
|
-
* May be called from any origin
|
|
7105
|
+
* May be called from any origin except `None`.
|
|
7061
7106
|
*
|
|
7062
7107
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
7063
7108
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
7064
7109
|
*
|
|
7065
|
-
* If origin is root then
|
|
7066
|
-
* bypassing `frame_system::Config::BaseCallFilter`).
|
|
7110
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
7111
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
7067
7112
|
*
|
|
7068
7113
|
* # <weight>
|
|
7069
7114
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
|
@@ -7097,13 +7142,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7097
7142
|
* Send a batch of dispatch calls.
|
|
7098
7143
|
* Unlike `batch`, it allows errors and won't interrupt.
|
|
7099
7144
|
*
|
|
7100
|
-
* May be called from any origin
|
|
7145
|
+
* May be called from any origin except `None`.
|
|
7101
7146
|
*
|
|
7102
7147
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
7103
7148
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
7104
7149
|
*
|
|
7105
|
-
* If origin is root then
|
|
7106
|
-
* bypassing `frame_system::Config::BaseCallFilter`).
|
|
7150
|
+
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
7151
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
7107
7152
|
*
|
|
7108
7153
|
* # <weight>
|
|
7109
7154
|
* - Complexity: O(C) where C is the number of calls to be batched.
|