@polkadot/api-augment 15.9.2 → 15.10.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/kusama/consts.d.ts +5 -2
- package/cjs/kusama/errors.d.ts +3 -27
- package/cjs/kusama/events.d.ts +63 -61
- package/cjs/kusama/query.d.ts +48 -26
- package/cjs/kusama/runtime.d.ts +34 -26
- package/cjs/kusama/tx.d.ts +110 -83
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.d.ts +5 -2
- package/cjs/polkadot/errors.d.ts +3 -27
- package/cjs/polkadot/events.d.ts +63 -61
- package/cjs/polkadot/query.d.ts +48 -26
- package/cjs/polkadot/runtime.d.ts +34 -26
- package/cjs/polkadot/tx.d.ts +110 -81
- package/cjs/substrate/consts.d.ts +57 -11
- package/cjs/substrate/errors.d.ts +218 -2
- package/cjs/substrate/events.d.ts +275 -91
- package/cjs/substrate/query.d.ts +92 -20
- package/cjs/substrate/runtime.d.ts +95 -9
- package/cjs/substrate/tx.d.ts +345 -31
- package/kusama/consts.d.ts +5 -2
- package/kusama/errors.d.ts +3 -27
- package/kusama/events.d.ts +63 -61
- package/kusama/query.d.ts +48 -26
- package/kusama/runtime.d.ts +34 -26
- package/kusama/tx.d.ts +110 -83
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +5 -2
- package/polkadot/errors.d.ts +3 -27
- package/polkadot/events.d.ts +63 -61
- package/polkadot/query.d.ts +48 -26
- package/polkadot/runtime.d.ts +34 -26
- package/polkadot/tx.d.ts +110 -81
- package/substrate/consts.d.ts +57 -11
- package/substrate/errors.d.ts +218 -2
- package/substrate/events.d.ts +275 -91
- package/substrate/query.d.ts +92 -20
- package/substrate/runtime.d.ts +95 -9
- package/substrate/tx.d.ts +345 -31
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, H160, 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, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, 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, PalletMetaTxMetaTx, 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, SpConsensusBeefyForkVotingProofAncestryProof, 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>;
|
|
@@ -466,6 +466,109 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
466
466
|
**/
|
|
467
467
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
468
468
|
};
|
|
469
|
+
assetRewards: {
|
|
470
|
+
/**
|
|
471
|
+
* Cleanup a pool.
|
|
472
|
+
*
|
|
473
|
+
* Origin must be the pool admin.
|
|
474
|
+
*
|
|
475
|
+
* Cleanup storage, release any associated storage cost and return the remaining reward
|
|
476
|
+
* tokens to the admin.
|
|
477
|
+
**/
|
|
478
|
+
cleanupPool: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
479
|
+
/**
|
|
480
|
+
* Create a new reward pool.
|
|
481
|
+
*
|
|
482
|
+
* Parameters:
|
|
483
|
+
* - `origin`: must be `Config::CreatePoolOrigin`;
|
|
484
|
+
* - `staked_asset_id`: the asset to be staked in the pool;
|
|
485
|
+
* - `reward_asset_id`: the asset to be distributed as rewards;
|
|
486
|
+
* - `reward_rate_per_block`: the amount of reward tokens distributed per block;
|
|
487
|
+
* - `expiry`: the block number at which the pool will cease to accumulate rewards. The
|
|
488
|
+
* [`DispatchTime::After`] variant evaluated at the execution time.
|
|
489
|
+
* - `admin`: the account allowed to extend the pool expiration, increase the rewards rate
|
|
490
|
+
* and receive the unutilized reward tokens back after the pool completion. If `None`,
|
|
491
|
+
* the caller is set as an admin.
|
|
492
|
+
**/
|
|
493
|
+
createPool: AugmentedSubmittable<(stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
494
|
+
Native: any;
|
|
495
|
+
} | {
|
|
496
|
+
WithId: any;
|
|
497
|
+
} | string | Uint8Array, rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
498
|
+
Native: any;
|
|
499
|
+
} | {
|
|
500
|
+
WithId: any;
|
|
501
|
+
} | string | Uint8Array, rewardRatePerBlock: u128 | AnyNumber | Uint8Array, expiry: FrameSupportScheduleDispatchTime | {
|
|
502
|
+
At: any;
|
|
503
|
+
} | {
|
|
504
|
+
After: any;
|
|
505
|
+
} | string | Uint8Array, admin: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId, u128, FrameSupportScheduleDispatchTime, Option<AccountId32>]>;
|
|
506
|
+
/**
|
|
507
|
+
* Convenience method to deposit reward tokens into a pool.
|
|
508
|
+
*
|
|
509
|
+
* This method is not strictly necessary (tokens could be transferred directly to the
|
|
510
|
+
* pool pot address), but is provided for convenience so manual derivation of the
|
|
511
|
+
* account id is not required.
|
|
512
|
+
**/
|
|
513
|
+
depositRewardTokens: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
|
514
|
+
/**
|
|
515
|
+
* Harvest unclaimed pool rewards.
|
|
516
|
+
*
|
|
517
|
+
* Parameters:
|
|
518
|
+
* - origin: must be the `staker` if the pool is still active. Otherwise, any account.
|
|
519
|
+
* - pool_id: the pool to harvest from.
|
|
520
|
+
* - staker: the account for which to harvest rewards. If `None`, the caller is used.
|
|
521
|
+
**/
|
|
522
|
+
harvestRewards: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, staker: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
|
523
|
+
/**
|
|
524
|
+
* Modify a pool admin.
|
|
525
|
+
*
|
|
526
|
+
* Only the pool admin may perform this operation.
|
|
527
|
+
**/
|
|
528
|
+
setPoolAdmin: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newAdmin: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;
|
|
529
|
+
/**
|
|
530
|
+
* Set when the pool should expire.
|
|
531
|
+
*
|
|
532
|
+
* Currently the expiry block can only be extended.
|
|
533
|
+
*
|
|
534
|
+
* Only the pool admin may perform this operation.
|
|
535
|
+
**/
|
|
536
|
+
setPoolExpiryBlock: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newExpiry: FrameSupportScheduleDispatchTime | {
|
|
537
|
+
At: any;
|
|
538
|
+
} | {
|
|
539
|
+
After: any;
|
|
540
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, FrameSupportScheduleDispatchTime]>;
|
|
541
|
+
/**
|
|
542
|
+
* Modify a pool reward rate.
|
|
543
|
+
*
|
|
544
|
+
* Currently the reward rate can only be increased.
|
|
545
|
+
*
|
|
546
|
+
* Only the pool admin may perform this operation.
|
|
547
|
+
**/
|
|
548
|
+
setPoolRewardRatePerBlock: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRewardRatePerBlock: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
|
549
|
+
/**
|
|
550
|
+
* Stake additional tokens in a pool.
|
|
551
|
+
*
|
|
552
|
+
* A freeze is placed on the staked tokens.
|
|
553
|
+
**/
|
|
554
|
+
stake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
|
555
|
+
/**
|
|
556
|
+
* Unstake tokens from a pool.
|
|
557
|
+
*
|
|
558
|
+
* Removes the freeze on the staked tokens.
|
|
559
|
+
*
|
|
560
|
+
* Parameters:
|
|
561
|
+
* - origin: must be the `staker` if the pool is still active. Otherwise, any account.
|
|
562
|
+
* - pool_id: the pool to unstake from.
|
|
563
|
+
* - amount: the amount of tokens to unstake.
|
|
564
|
+
* - staker: the account to unstake from. If `None`, the caller is used.
|
|
565
|
+
**/
|
|
566
|
+
unstake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array, staker: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, u128, Option<AccountId32>]>;
|
|
567
|
+
/**
|
|
568
|
+
* Generic tx
|
|
569
|
+
**/
|
|
570
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
571
|
+
};
|
|
469
572
|
assets: {
|
|
470
573
|
/**
|
|
471
574
|
* Approve an amount of asset for transfer by a delegated third-party account.
|
|
@@ -944,6 +1047,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
944
1047
|
* refunded.
|
|
945
1048
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
946
1049
|
*
|
|
1050
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
1051
|
+
* the asset account contains holds or freezes in place.
|
|
1052
|
+
*
|
|
947
1053
|
* Emits `Refunded` event when successful.
|
|
948
1054
|
**/
|
|
949
1055
|
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
|
|
@@ -957,6 +1063,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
957
1063
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
958
1064
|
* - `who`: The account to refund.
|
|
959
1065
|
*
|
|
1066
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
1067
|
+
* the asset account contains holds or freezes in place.
|
|
1068
|
+
*
|
|
960
1069
|
* Emits `Refunded` event when successful.
|
|
961
1070
|
**/
|
|
962
1071
|
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | {
|
|
@@ -1059,6 +1168,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1059
1168
|
*
|
|
1060
1169
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
1061
1170
|
* asset.
|
|
1171
|
+
*
|
|
1172
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
1173
|
+
* an account contains holds or freezes in place.
|
|
1062
1174
|
**/
|
|
1063
1175
|
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1064
1176
|
/**
|
|
@@ -1879,6 +1991,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1879
1991
|
* inefficient to look up when the core expires to schedule the next renewal.
|
|
1880
1992
|
**/
|
|
1881
1993
|
enableAutoRenew: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, task: u32 | AnyNumber | Uint8Array, workloadEndHint: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u16, u32, Option<u32>]>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Reserve a core for a workload immediately.
|
|
1996
|
+
*
|
|
1997
|
+
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
1998
|
+
* - `workload`: The workload which should be permanently placed on a core starting
|
|
1999
|
+
* immediately.
|
|
2000
|
+
* - `core`: The core to which the assignment should be made until the reservation takes
|
|
2001
|
+
* effect. It is left to the caller to either add this new core or reassign any other
|
|
2002
|
+
* tasks to this existing core.
|
|
2003
|
+
*
|
|
2004
|
+
* This reserves the workload and then injects the workload into the Workplan for the next
|
|
2005
|
+
* two sale periods. This overwrites any existing assignments for this core at the start of
|
|
2006
|
+
* the next sale period.
|
|
2007
|
+
**/
|
|
2008
|
+
forceReserve: AugmentedSubmittable<(workload: Vec<PalletBrokerScheduleItem> | (PalletBrokerScheduleItem | {
|
|
2009
|
+
mask?: any;
|
|
2010
|
+
assignment?: any;
|
|
2011
|
+
} | string | Uint8Array)[], core: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<PalletBrokerScheduleItem>, u16]>;
|
|
1882
2012
|
/**
|
|
1883
2013
|
* Split a Bulk Coretime Region into two wholly-overlapping Regions with complementary
|
|
1884
2014
|
* interlace masks which together make up the original Region's interlace mask.
|
|
@@ -1942,6 +2072,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1942
2072
|
* this will be the collator's hot wallet).
|
|
1943
2073
|
**/
|
|
1944
2074
|
purchaseCredit: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array, beneficiary: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, AccountId32]>;
|
|
2075
|
+
/**
|
|
2076
|
+
* Remove an assignment from the Workplan.
|
|
2077
|
+
*
|
|
2078
|
+
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
2079
|
+
* - `region_id`: The Region to be removed from the workplan.
|
|
2080
|
+
**/
|
|
2081
|
+
removeAssignment: AugmentedSubmittable<(regionId: PalletBrokerRegionId | {
|
|
2082
|
+
begin?: any;
|
|
2083
|
+
core?: any;
|
|
2084
|
+
mask?: any;
|
|
2085
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId]>;
|
|
2086
|
+
/**
|
|
2087
|
+
* Remove a lease.
|
|
2088
|
+
*
|
|
2089
|
+
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
2090
|
+
* - `task`: The task id of the lease which should be removed.
|
|
2091
|
+
**/
|
|
2092
|
+
removeLease: AugmentedSubmittable<(task: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1945
2093
|
/**
|
|
1946
2094
|
* Renew Bulk Coretime in the ongoing Sale or its prior Interlude Period.
|
|
1947
2095
|
*
|
|
@@ -1960,6 +2108,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1960
2108
|
/**
|
|
1961
2109
|
* Reserve a core for a workload.
|
|
1962
2110
|
*
|
|
2111
|
+
* The workload will be given a reservation, but two sale period boundaries must pass
|
|
2112
|
+
* before the core is actually assigned.
|
|
2113
|
+
*
|
|
1963
2114
|
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
1964
2115
|
* - `workload`: The workload which should be permanently placed on a core.
|
|
1965
2116
|
**/
|
|
@@ -2561,15 +2712,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2561
2712
|
**/
|
|
2562
2713
|
bump: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2563
2714
|
/**
|
|
2564
|
-
* Introduce an already-ranked individual of the collective into this pallet.
|
|
2565
|
-
*
|
|
2715
|
+
* Introduce an already-ranked individual of the collective into this pallet.
|
|
2716
|
+
*
|
|
2717
|
+
* The rank may still be zero. This resets `last_proof` to the current block and
|
|
2718
|
+
* `last_promotion` will be set to zero, thereby delaying any automatic demotion but
|
|
2719
|
+
* allowing immediate promotion.
|
|
2720
|
+
*
|
|
2721
|
+
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
|
2722
|
+
**/
|
|
2723
|
+
import: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2724
|
+
/**
|
|
2725
|
+
* Introduce an already-ranked individual of the collective into this pallet.
|
|
2726
|
+
*
|
|
2727
|
+
* The rank may still be zero. Can be called by anyone on any collective member - including
|
|
2728
|
+
* the sender.
|
|
2566
2729
|
*
|
|
2567
2730
|
* This resets `last_proof` to the current block and `last_promotion` will be set to zero,
|
|
2568
2731
|
* thereby delaying any automatic demotion but allowing immediate promotion.
|
|
2569
2732
|
*
|
|
2570
2733
|
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
|
2734
|
+
* - `who`: The account ID of the collective member to be inducted.
|
|
2571
2735
|
**/
|
|
2572
|
-
|
|
2736
|
+
importMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2573
2737
|
/**
|
|
2574
2738
|
* Introduce a new and unranked candidate (rank zero).
|
|
2575
2739
|
*
|
|
@@ -4009,6 +4173,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4009
4173
|
* - `O(1)`.
|
|
4010
4174
|
**/
|
|
4011
4175
|
freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
4176
|
+
/**
|
|
4177
|
+
* Poke the deposit reserved for an index.
|
|
4178
|
+
*
|
|
4179
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
4180
|
+
* non-frozen account `index`.
|
|
4181
|
+
*
|
|
4182
|
+
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
|
4183
|
+
*
|
|
4184
|
+
* - `index`: the index whose deposit is to be poked/reconsidered.
|
|
4185
|
+
*
|
|
4186
|
+
* Emits `DepositPoked` if successful.
|
|
4187
|
+
**/
|
|
4188
|
+
pokeDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
4012
4189
|
/**
|
|
4013
4190
|
* Assign an index already owned by the sender to another account. The balance reservation
|
|
4014
4191
|
* is effectively transferred to the new account.
|
|
@@ -4117,6 +4294,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4117
4294
|
**/
|
|
4118
4295
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4119
4296
|
};
|
|
4297
|
+
metaTx: {
|
|
4298
|
+
/**
|
|
4299
|
+
* Dispatch a given meta transaction.
|
|
4300
|
+
*
|
|
4301
|
+
* - `_origin`: Can be any kind of origin.
|
|
4302
|
+
* - `meta_tx`: Meta Transaction with a target call to be dispatched.
|
|
4303
|
+
**/
|
|
4304
|
+
dispatch: AugmentedSubmittable<(metaTx: PalletMetaTxMetaTx | {
|
|
4305
|
+
call?: any;
|
|
4306
|
+
extensionVersion?: any;
|
|
4307
|
+
extension?: any;
|
|
4308
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMetaTxMetaTx]>;
|
|
4309
|
+
/**
|
|
4310
|
+
* Generic tx
|
|
4311
|
+
**/
|
|
4312
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4313
|
+
};
|
|
4120
4314
|
mixnet: {
|
|
4121
4315
|
/**
|
|
4122
4316
|
* Register a mixnode for the following session.
|
|
@@ -4308,6 +4502,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4308
4502
|
height?: any;
|
|
4309
4503
|
index?: any;
|
|
4310
4504
|
} | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
|
4505
|
+
/**
|
|
4506
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
4507
|
+
*
|
|
4508
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
4509
|
+
* the multisig operation.
|
|
4510
|
+
*
|
|
4511
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4512
|
+
*
|
|
4513
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
4514
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
4515
|
+
* multisig.
|
|
4516
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
4517
|
+
*
|
|
4518
|
+
* Emits `DepositPoked` if successful.
|
|
4519
|
+
**/
|
|
4520
|
+
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
|
4311
4521
|
/**
|
|
4312
4522
|
* Generic tx
|
|
4313
4523
|
**/
|
|
@@ -5324,8 +5534,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5324
5534
|
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
|
5325
5535
|
* [`adapter::StakeStrategyType::Delegate`].
|
|
5326
5536
|
*
|
|
5327
|
-
*
|
|
5328
|
-
*
|
|
5537
|
+
* The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
|
|
5538
|
+
* This call can be dispatched permissionlessly (i.e. by any account). If the execution
|
|
5539
|
+
* is successful, fee is refunded and caller may be rewarded with a part of the slash
|
|
5540
|
+
* based on the [`crate::pallet::Config::StakeAdapter`] configuration.
|
|
5329
5541
|
**/
|
|
5330
5542
|
applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | {
|
|
5331
5543
|
Id: any;
|
|
@@ -5384,25 +5596,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5384
5596
|
* The dispatch origin of this call can be signed by the pool nominator or the pool
|
|
5385
5597
|
* root role, same as [`Pallet::nominate`].
|
|
5386
5598
|
*
|
|
5599
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
5600
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
5601
|
+
*
|
|
5387
5602
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
5388
5603
|
* account).
|
|
5389
5604
|
*
|
|
5390
5605
|
* # Conditions for a permissionless dispatch:
|
|
5391
|
-
* * When pool depositor has less than `MinNominatorBond` staked, otherwise
|
|
5606
|
+
* * When pool depositor has less than `MinNominatorBond` staked, otherwise pool members
|
|
5392
5607
|
* are unable to unbond.
|
|
5393
5608
|
*
|
|
5394
5609
|
* # Conditions for permissioned dispatch:
|
|
5395
|
-
* * The caller
|
|
5396
|
-
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
|
5397
|
-
* account.
|
|
5610
|
+
* * The caller is the pool's nominator or root.
|
|
5398
5611
|
**/
|
|
5399
5612
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
5400
5613
|
/**
|
|
5401
5614
|
* Claim pending commission.
|
|
5402
5615
|
*
|
|
5403
|
-
* The
|
|
5404
|
-
*
|
|
5405
|
-
*
|
|
5616
|
+
* The `root` role of the pool is _always_ allowed to claim the pool's commission.
|
|
5617
|
+
*
|
|
5618
|
+
* If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
|
|
5619
|
+
* trigger the process of claiming the pool's commission.
|
|
5620
|
+
*
|
|
5621
|
+
* If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
|
|
5622
|
+
* accounts
|
|
5623
|
+
* * `acc`, and
|
|
5624
|
+
* * the pool's root account
|
|
5625
|
+
*
|
|
5626
|
+
* may call this extrinsic on behalf of the pool.
|
|
5627
|
+
*
|
|
5628
|
+
* Pending commissions are paid out and added to the total claimed commission.
|
|
5629
|
+
* The total pending commission is reset to zero.
|
|
5406
5630
|
**/
|
|
5407
5631
|
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
5408
5632
|
/**
|
|
@@ -5513,8 +5737,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5513
5737
|
Address20: any;
|
|
5514
5738
|
} | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
|
5515
5739
|
/**
|
|
5516
|
-
* Stake funds with a pool. The amount to bond is
|
|
5517
|
-
*
|
|
5740
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
5741
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
5742
|
+
* increases the pool's bond.
|
|
5518
5743
|
*
|
|
5519
5744
|
* The method of transferring the amount to the pool account is determined by
|
|
5520
5745
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
@@ -5570,13 +5795,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5570
5795
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
|
5571
5796
|
* root role.
|
|
5572
5797
|
*
|
|
5573
|
-
* This directly
|
|
5574
|
-
*
|
|
5798
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
5799
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
5575
5800
|
*
|
|
5576
5801
|
* # Note
|
|
5577
5802
|
*
|
|
5578
|
-
* In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to
|
|
5579
|
-
* at least `depositor_min_bond` in the pool to start nominating.
|
|
5803
|
+
* In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
|
|
5804
|
+
* have at least `depositor_min_bond` in the pool to start nominating.
|
|
5580
5805
|
**/
|
|
5581
5806
|
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
|
5582
5807
|
/**
|
|
@@ -5826,6 +6051,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5826
6051
|
**/
|
|
5827
6052
|
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | {
|
|
5828
6053
|
Storage: any;
|
|
6054
|
+
} | {
|
|
6055
|
+
Referenda: any;
|
|
5829
6056
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
|
|
5830
6057
|
/**
|
|
5831
6058
|
* Generic tx
|
|
@@ -6310,6 +6537,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6310
6537
|
* refunded.
|
|
6311
6538
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
6312
6539
|
*
|
|
6540
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6541
|
+
* the asset account contains holds or freezes in place.
|
|
6542
|
+
*
|
|
6313
6543
|
* Emits `Refunded` event when successful.
|
|
6314
6544
|
**/
|
|
6315
6545
|
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
|
|
@@ -6323,6 +6553,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6323
6553
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
6324
6554
|
* - `who`: The account to refund.
|
|
6325
6555
|
*
|
|
6556
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6557
|
+
* the asset account contains holds or freezes in place.
|
|
6558
|
+
*
|
|
6326
6559
|
* Emits `Refunded` event when successful.
|
|
6327
6560
|
**/
|
|
6328
6561
|
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | {
|
|
@@ -6425,6 +6658,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6425
6658
|
*
|
|
6426
6659
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
6427
6660
|
* asset.
|
|
6661
|
+
*
|
|
6662
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6663
|
+
* an account contains holds or freezes in place.
|
|
6428
6664
|
**/
|
|
6429
6665
|
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
6430
6666
|
/**
|
|
@@ -6667,7 +6903,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6667
6903
|
};
|
|
6668
6904
|
preimage: {
|
|
6669
6905
|
/**
|
|
6670
|
-
* Ensure that the
|
|
6906
|
+
* Ensure that the bulk of pre-images is upgraded.
|
|
6671
6907
|
*
|
|
6672
6908
|
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
6673
6909
|
**/
|
|
@@ -6807,6 +7043,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6807
7043
|
} | {
|
|
6808
7044
|
Address20: any;
|
|
6809
7045
|
} | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KitchensinkRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
7046
|
+
/**
|
|
7047
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
7048
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
7049
|
+
*
|
|
7050
|
+
* The dispatch origin for this call must be _Signed_.
|
|
7051
|
+
*
|
|
7052
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
7053
|
+
*
|
|
7054
|
+
* Emits `DepositPoked` if successful.
|
|
7055
|
+
**/
|
|
7056
|
+
pokeDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
6810
7057
|
/**
|
|
6811
7058
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
6812
7059
|
* `add_proxy`.
|
|
@@ -7174,8 +7421,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7174
7421
|
**/
|
|
7175
7422
|
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | {
|
|
7176
7423
|
system: any;
|
|
7177
|
-
} | {
|
|
7178
|
-
Void: any;
|
|
7179
7424
|
} | {
|
|
7180
7425
|
Council: any;
|
|
7181
7426
|
} | {
|
|
@@ -7344,7 +7589,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7344
7589
|
**/
|
|
7345
7590
|
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
7346
7591
|
/**
|
|
7347
|
-
* Allow ROOT to bypass the recovery process and set
|
|
7592
|
+
* Allow ROOT to bypass the recovery process and set a rescuer account
|
|
7348
7593
|
* for a lost account directly.
|
|
7349
7594
|
*
|
|
7350
7595
|
* The dispatch origin for this call must be _ROOT_.
|
|
@@ -7506,8 +7751,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7506
7751
|
**/
|
|
7507
7752
|
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | {
|
|
7508
7753
|
system: any;
|
|
7509
|
-
} | {
|
|
7510
|
-
Void: any;
|
|
7511
7754
|
} | {
|
|
7512
7755
|
Council: any;
|
|
7513
7756
|
} | {
|
|
@@ -7576,7 +7819,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7576
7819
|
*
|
|
7577
7820
|
* # Parameters
|
|
7578
7821
|
*
|
|
7579
|
-
* * `payload`: The
|
|
7822
|
+
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
|
7580
7823
|
* * `gas_limit`: The gas limit enforced during contract execution.
|
|
7581
7824
|
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
|
7582
7825
|
* storage usage.
|
|
@@ -7588,10 +7831,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7588
7831
|
* runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
|
|
7589
7832
|
* signer and validating the transaction.
|
|
7590
7833
|
**/
|
|
7591
|
-
ethTransact: AugmentedSubmittable<(payload: Bytes | string | Uint8Array
|
|
7592
|
-
refTime?: any;
|
|
7593
|
-
proofSize?: any;
|
|
7594
|
-
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, SpWeightsWeightV2Weight, Compact<u128>]>;
|
|
7834
|
+
ethTransact: AugmentedSubmittable<(payload: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
7595
7835
|
/**
|
|
7596
7836
|
* Instantiates a contract from a previously deployed wasm binary.
|
|
7597
7837
|
*
|
|
@@ -8419,6 +8659,40 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8419
8659
|
} | {
|
|
8420
8660
|
Address20: any;
|
|
8421
8661
|
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
|
8662
|
+
/**
|
|
8663
|
+
* This function allows governance to manually slash a validator and is a
|
|
8664
|
+
* **fallback mechanism**.
|
|
8665
|
+
*
|
|
8666
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
8667
|
+
*
|
|
8668
|
+
* ## Parameters
|
|
8669
|
+
* - `validator_stash` - The stash account of the validator to slash.
|
|
8670
|
+
* - `era` - The era in which the validator was in the active set.
|
|
8671
|
+
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
|
8672
|
+
*
|
|
8673
|
+
* ## Behavior
|
|
8674
|
+
*
|
|
8675
|
+
* The slash will be applied using the standard slashing mechanics, respecting the
|
|
8676
|
+
* configured `SlashDeferDuration`.
|
|
8677
|
+
*
|
|
8678
|
+
* This means:
|
|
8679
|
+
* - If the validator was already slashed by a higher percentage for the same era, this
|
|
8680
|
+
* slash will have no additional effect.
|
|
8681
|
+
* - If the validator was previously slashed by a lower percentage, only the difference
|
|
8682
|
+
* will be applied.
|
|
8683
|
+
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
|
8684
|
+
**/
|
|
8685
|
+
manualSlash: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, slashFraction: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Perbill]>;
|
|
8686
|
+
/**
|
|
8687
|
+
* Removes the legacy Staking locks if they exist.
|
|
8688
|
+
*
|
|
8689
|
+
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
|
8690
|
+
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
|
8691
|
+
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
|
8692
|
+
*
|
|
8693
|
+
* The fee is waived if the migration is successful.
|
|
8694
|
+
**/
|
|
8695
|
+
migrateCurrency: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
8422
8696
|
/**
|
|
8423
8697
|
* Declare the desire to nominate `targets` for the origin controller.
|
|
8424
8698
|
*
|
|
@@ -10263,7 +10537,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
10263
10537
|
dispatchAs: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | {
|
|
10264
10538
|
system: any;
|
|
10265
10539
|
} | {
|
|
10266
|
-
|
|
10540
|
+
Council: any;
|
|
10541
|
+
} | {
|
|
10542
|
+
TechnicalCommittee: any;
|
|
10543
|
+
} | {
|
|
10544
|
+
AllianceMotion: any;
|
|
10545
|
+
} | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, Call]>;
|
|
10546
|
+
/**
|
|
10547
|
+
* Dispatches a function call with a provided origin.
|
|
10548
|
+
*
|
|
10549
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
10550
|
+
*
|
|
10551
|
+
* The dispatch origin for this call must be _Root_.
|
|
10552
|
+
**/
|
|
10553
|
+
dispatchAsFallible: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | {
|
|
10554
|
+
system: any;
|
|
10267
10555
|
} | {
|
|
10268
10556
|
Council: any;
|
|
10269
10557
|
} | {
|
|
@@ -10287,6 +10575,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
10287
10575
|
* - O(C) where C is the number of calls to be batched.
|
|
10288
10576
|
**/
|
|
10289
10577
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
10578
|
+
/**
|
|
10579
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
10580
|
+
* May be called from any origin except `None`.
|
|
10581
|
+
*
|
|
10582
|
+
* This function first attempts to dispatch the `main` call.
|
|
10583
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
10584
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
10585
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
10586
|
+
*
|
|
10587
|
+
* In the event of a fallback failure the whole call fails
|
|
10588
|
+
* with the weights returned.
|
|
10589
|
+
*
|
|
10590
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
10591
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
10592
|
+
*
|
|
10593
|
+
* ## Dispatch Logic
|
|
10594
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
10595
|
+
* applying any origin filters.
|
|
10596
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
10597
|
+
* `fallback` calls.
|
|
10598
|
+
*
|
|
10599
|
+
* ## Use Case
|
|
10600
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
10601
|
+
* or both.
|
|
10602
|
+
**/
|
|
10603
|
+
ifElse: AugmentedSubmittable<(main: Call | IMethod | string | Uint8Array, fallback: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Call]>;
|
|
10290
10604
|
/**
|
|
10291
10605
|
* Dispatch a function call with a specified weight.
|
|
10292
10606
|
*
|