@polkadot/api-augment 9.4.3 → 9.5.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 +13 -4
- package/kusama/errors.d.ts +32 -0
- package/kusama/events.d.ts +87 -20
- package/kusama/query.d.ts +30 -1
- package/kusama/tx.d.ts +43 -0
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +13 -4
- package/polkadot/errors.d.ts +32 -0
- package/polkadot/events.d.ts +87 -20
- package/polkadot/query.d.ts +30 -1
- package/polkadot/tx.d.ts +43 -0
- package/substrate/consts.d.ts +20 -11
- package/substrate/errors.d.ts +4 -0
- package/substrate/events.d.ts +50 -22
- package/substrate/query.d.ts +2 -3
- package/substrate/tx.d.ts +226 -17
package/substrate/tx.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
|
-
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill
|
|
7
|
-
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, 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 } from '@polkadot/types/lookup';
|
|
6
|
+
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
|
+
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, 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';
|
|
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>;
|
|
@@ -32,7 +32,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
32
32
|
*
|
|
33
33
|
* Requires the sender to be a founder or fellow.
|
|
34
34
|
**/
|
|
35
|
-
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound:
|
|
35
|
+
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
36
|
+
refTime?: any;
|
|
37
|
+
proofSize?: any;
|
|
38
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
39
|
+
/**
|
|
40
|
+
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
|
41
|
+
*
|
|
42
|
+
* Requires the sender to be a founder or fellow.
|
|
43
|
+
**/
|
|
44
|
+
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
36
45
|
/**
|
|
37
46
|
* Disband the Alliance, remove all active members and unreserve deposits.
|
|
38
47
|
*
|
|
@@ -190,7 +199,45 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
190
199
|
* - up to 3 events
|
|
191
200
|
* # </weight>
|
|
192
201
|
**/
|
|
193
|
-
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound:
|
|
202
|
+
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
203
|
+
refTime?: any;
|
|
204
|
+
proofSize?: any;
|
|
205
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
206
|
+
/**
|
|
207
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
208
|
+
*
|
|
209
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
210
|
+
*
|
|
211
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
212
|
+
* has enough votes to be approved or disapproved.
|
|
213
|
+
*
|
|
214
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
215
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
216
|
+
*
|
|
217
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
218
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
219
|
+
*
|
|
220
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
221
|
+
* proposal.
|
|
222
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
223
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
224
|
+
*
|
|
225
|
+
* # <weight>
|
|
226
|
+
* ## Weight
|
|
227
|
+
* - `O(B + M + P1 + P2)` where:
|
|
228
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
229
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
230
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
231
|
+
* - `P2` is proposal-count (code-bounded)
|
|
232
|
+
* - DB:
|
|
233
|
+
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
234
|
+
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
235
|
+
* `O(P2)`)
|
|
236
|
+
* - any mutations done while executing `proposal` (`P1`)
|
|
237
|
+
* - up to 3 events
|
|
238
|
+
* # </weight>
|
|
239
|
+
**/
|
|
240
|
+
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
194
241
|
/**
|
|
195
242
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
196
243
|
* state.
|
|
@@ -1578,7 +1625,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1578
1625
|
Address32: any;
|
|
1579
1626
|
} | {
|
|
1580
1627
|
Address20: any;
|
|
1581
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit:
|
|
1628
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
1629
|
+
refTime?: any;
|
|
1630
|
+
proofSize?: any;
|
|
1631
|
+
} | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, SpWeightsWeightV2Weight, Option<Compact<u128>>, Bytes]>;
|
|
1632
|
+
/**
|
|
1633
|
+
* Makes a call to an account, optionally transferring some balance.
|
|
1634
|
+
*
|
|
1635
|
+
* # Parameters
|
|
1636
|
+
*
|
|
1637
|
+
* * `dest`: Address of the contract to call.
|
|
1638
|
+
* * `value`: The balance to transfer from the `origin` to `dest`.
|
|
1639
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
1640
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
|
1641
|
+
* caller to pay for the storage consumed.
|
|
1642
|
+
* * `data`: The input data to pass to the contract.
|
|
1643
|
+
*
|
|
1644
|
+
* * If the account is a smart-contract account, the associated code will be
|
|
1645
|
+
* executed and any value will be transferred.
|
|
1646
|
+
* * If the account is a regular account, any value will be transferred.
|
|
1647
|
+
* * If no account exists and the call value is not less than `existential_deposit`,
|
|
1648
|
+
* a regular account will be created and any value will be transferred.
|
|
1649
|
+
**/
|
|
1650
|
+
callOldWeight: AugmentedSubmittable<(dest: MultiAddress | {
|
|
1651
|
+
Id: any;
|
|
1652
|
+
} | {
|
|
1653
|
+
Index: any;
|
|
1654
|
+
} | {
|
|
1655
|
+
Raw: any;
|
|
1656
|
+
} | {
|
|
1657
|
+
Address32: any;
|
|
1658
|
+
} | {
|
|
1659
|
+
Address20: any;
|
|
1660
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes]>;
|
|
1582
1661
|
/**
|
|
1583
1662
|
* Instantiates a contract from a previously deployed wasm binary.
|
|
1584
1663
|
*
|
|
@@ -1586,7 +1665,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1586
1665
|
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
|
1587
1666
|
* must be supplied.
|
|
1588
1667
|
**/
|
|
1589
|
-
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit:
|
|
1668
|
+
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
1669
|
+
refTime?: any;
|
|
1670
|
+
proofSize?: any;
|
|
1671
|
+
} | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Option<Compact<u128>>, H256, Bytes, Bytes]>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Instantiates a contract from a previously deployed wasm binary.
|
|
1674
|
+
*
|
|
1675
|
+
* This function is identical to [`Self::instantiate_with_code`] but without the
|
|
1676
|
+
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
|
1677
|
+
* must be supplied.
|
|
1678
|
+
**/
|
|
1679
|
+
instantiateOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
|
|
1590
1680
|
/**
|
|
1591
1681
|
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
1592
1682
|
* some balance.
|
|
@@ -1615,7 +1705,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1615
1705
|
* - The `value` is transferred to the new account.
|
|
1616
1706
|
* - The `deploy` function is executed in the context of the newly-created account.
|
|
1617
1707
|
**/
|
|
1618
|
-
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit:
|
|
1708
|
+
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
1709
|
+
refTime?: any;
|
|
1710
|
+
proofSize?: any;
|
|
1711
|
+
} | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
|
|
1712
|
+
/**
|
|
1713
|
+
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
1714
|
+
* some balance.
|
|
1715
|
+
*
|
|
1716
|
+
* This dispatchable has the same effect as calling [`Self::upload_code`] +
|
|
1717
|
+
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
|
|
1718
|
+
* also check the documentation of [`Self::upload_code`].
|
|
1719
|
+
*
|
|
1720
|
+
* # Parameters
|
|
1721
|
+
*
|
|
1722
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
1723
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
1724
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
1725
|
+
* from the caller to pay for the storage consumed.
|
|
1726
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
1727
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
1728
|
+
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
|
|
1729
|
+
*
|
|
1730
|
+
* Instantiation is executed as follows:
|
|
1731
|
+
*
|
|
1732
|
+
* - The supplied `code` is instrumented, deployed, and a `code_hash` is created for that
|
|
1733
|
+
* code.
|
|
1734
|
+
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
|
|
1735
|
+
* - The destination address is computed based on the sender, code_hash and the salt.
|
|
1736
|
+
* - The smart-contract account is created at the computed address.
|
|
1737
|
+
* - The `value` is transferred to the new account.
|
|
1738
|
+
* - The `deploy` function is executed in the context of the newly-created account.
|
|
1739
|
+
**/
|
|
1740
|
+
instantiateWithCodeOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
|
|
1619
1741
|
/**
|
|
1620
1742
|
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
1621
1743
|
*
|
|
@@ -1863,7 +1985,45 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1863
1985
|
* - up to 3 events
|
|
1864
1986
|
* # </weight>
|
|
1865
1987
|
**/
|
|
1866
|
-
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound:
|
|
1988
|
+
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
1989
|
+
refTime?: any;
|
|
1990
|
+
proofSize?: any;
|
|
1991
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
1992
|
+
/**
|
|
1993
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
1994
|
+
*
|
|
1995
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
1996
|
+
*
|
|
1997
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
1998
|
+
* has enough votes to be approved or disapproved.
|
|
1999
|
+
*
|
|
2000
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
2001
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
2002
|
+
*
|
|
2003
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
2004
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
2005
|
+
*
|
|
2006
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
2007
|
+
* proposal.
|
|
2008
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
2009
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
2010
|
+
*
|
|
2011
|
+
* # <weight>
|
|
2012
|
+
* ## Weight
|
|
2013
|
+
* - `O(B + M + P1 + P2)` where:
|
|
2014
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
2015
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
2016
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
2017
|
+
* - `P2` is proposal-count (code-bounded)
|
|
2018
|
+
* - DB:
|
|
2019
|
+
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
2020
|
+
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
2021
|
+
* `O(P2)`)
|
|
2022
|
+
* - any mutations done while executing `proposal` (`P1`)
|
|
2023
|
+
* - up to 3 events
|
|
2024
|
+
* # </weight>
|
|
2025
|
+
**/
|
|
2026
|
+
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
1867
2027
|
/**
|
|
1868
2028
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
1869
2029
|
* state.
|
|
@@ -2570,8 +2730,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2570
2730
|
**/
|
|
2571
2731
|
control: AugmentedSubmittable<(uncheckedErasToCheck: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2572
2732
|
/**
|
|
2573
|
-
* Deregister oneself from the fast-unstake
|
|
2574
|
-
* supplied on `register_fast_unstake` .
|
|
2733
|
+
* Deregister oneself from the fast-unstake.
|
|
2575
2734
|
*
|
|
2576
2735
|
* This is useful if one is registered, they are still waiting, and they change their mind.
|
|
2577
2736
|
*
|
|
@@ -2594,13 +2753,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2594
2753
|
* they are guaranteed to remain eligible, because the call will chill them as well.
|
|
2595
2754
|
*
|
|
2596
2755
|
* If the check works, the entire staking data is removed, i.e. the stash is fully
|
|
2597
|
-
* unstaked
|
|
2756
|
+
* unstaked.
|
|
2598
2757
|
*
|
|
2599
2758
|
* If the check fails, the stash remains chilled and waiting for being unbonded as in with
|
|
2600
2759
|
* the normal staking system, but they lose part of their unbonding chunks due to consuming
|
|
2601
2760
|
* the chain's resources.
|
|
2602
2761
|
**/
|
|
2603
|
-
registerFastUnstake: AugmentedSubmittable<(
|
|
2762
|
+
registerFastUnstake: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2604
2763
|
/**
|
|
2605
2764
|
* Generic tx
|
|
2606
2765
|
**/
|
|
@@ -3359,7 +3518,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3359
3518
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
3360
3519
|
height?: any;
|
|
3361
3520
|
index?: any;
|
|
3362
|
-
} | string, callHash: U8aFixed | string | Uint8Array, maxWeight:
|
|
3521
|
+
} | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
|
|
3522
|
+
refTime?: any;
|
|
3523
|
+
proofSize?: any;
|
|
3524
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, SpWeightsWeightV2Weight]>;
|
|
3363
3525
|
/**
|
|
3364
3526
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
3365
3527
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
@@ -3410,7 +3572,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3410
3572
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
3411
3573
|
height?: any;
|
|
3412
3574
|
index?: any;
|
|
3413
|
-
} | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight:
|
|
3575
|
+
} | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
|
|
3576
|
+
refTime?: any;
|
|
3577
|
+
proofSize?: any;
|
|
3578
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, SpWeightsWeightV2Weight]>;
|
|
3414
3579
|
/**
|
|
3415
3580
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
3416
3581
|
*
|
|
@@ -5661,7 +5826,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5661
5826
|
* - The weight of this call is defined by the caller.
|
|
5662
5827
|
* # </weight>
|
|
5663
5828
|
**/
|
|
5664
|
-
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight:
|
|
5829
|
+
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
|
|
5830
|
+
refTime?: any;
|
|
5831
|
+
proofSize?: any;
|
|
5832
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
|
|
5665
5833
|
/**
|
|
5666
5834
|
* Generic tx
|
|
5667
5835
|
**/
|
|
@@ -5770,7 +5938,45 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5770
5938
|
* - up to 3 events
|
|
5771
5939
|
* # </weight>
|
|
5772
5940
|
**/
|
|
5773
|
-
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound:
|
|
5941
|
+
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
5942
|
+
refTime?: any;
|
|
5943
|
+
proofSize?: any;
|
|
5944
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
5945
|
+
/**
|
|
5946
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
5947
|
+
*
|
|
5948
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
5949
|
+
*
|
|
5950
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
5951
|
+
* has enough votes to be approved or disapproved.
|
|
5952
|
+
*
|
|
5953
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
5954
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
5955
|
+
*
|
|
5956
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
5957
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
5958
|
+
*
|
|
5959
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
5960
|
+
* proposal.
|
|
5961
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
5962
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
5963
|
+
*
|
|
5964
|
+
* # <weight>
|
|
5965
|
+
* ## Weight
|
|
5966
|
+
* - `O(B + M + P1 + P2)` where:
|
|
5967
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5968
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
5969
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
5970
|
+
* - `P2` is proposal-count (code-bounded)
|
|
5971
|
+
* - DB:
|
|
5972
|
+
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
5973
|
+
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
5974
|
+
* `O(P2)`)
|
|
5975
|
+
* - any mutations done while executing `proposal` (`P1`)
|
|
5976
|
+
* - up to 3 events
|
|
5977
|
+
* # </weight>
|
|
5978
|
+
**/
|
|
5979
|
+
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
5774
5980
|
/**
|
|
5775
5981
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
5776
5982
|
* state.
|
|
@@ -7211,7 +7417,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7211
7417
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
7212
7418
|
};
|
|
7213
7419
|
whitelist: {
|
|
7214
|
-
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness:
|
|
7420
|
+
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | {
|
|
7421
|
+
refTime?: any;
|
|
7422
|
+
proofSize?: any;
|
|
7423
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, SpWeightsWeightV2Weight]>;
|
|
7215
7424
|
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
|
7216
7425
|
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
7217
7426
|
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|