@polkadot/api-augment 10.1.4 → 10.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +40 -167
- package/kusama/errors.d.ts +75 -318
- package/kusama/events.d.ts +154 -379
- package/kusama/query.d.ts +47 -215
- package/kusama/runtime.d.ts +27 -31
- package/kusama/tx.d.ts +210 -1122
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +68 -3
- package/polkadot/errors.d.ts +180 -9
- package/polkadot/events.d.ts +238 -11
- package/polkadot/query.d.ts +88 -16
- package/polkadot/runtime.d.ts +27 -31
- package/polkadot/tx.d.ts +420 -59
- package/substrate/consts.d.ts +32 -33
- package/substrate/errors.d.ts +103 -24
- package/substrate/events.d.ts +172 -7
- package/substrate/query.d.ts +48 -8
- package/substrate/runtime.d.ts +18 -30
- package/substrate/tx.d.ts +241 -93
package/polkadot/tx.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId,
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
10
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
11
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -103,11 +103,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
103
103
|
};
|
|
104
104
|
balances: {
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
* Set the regular balance of a given account.
|
|
107
|
+
*
|
|
108
|
+
* The dispatch origin for this call is `root`.
|
|
109
|
+
**/
|
|
110
|
+
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
|
|
111
|
+
Id: any;
|
|
112
|
+
} | {
|
|
113
|
+
Index: any;
|
|
114
|
+
} | {
|
|
115
|
+
Raw: any;
|
|
116
|
+
} | {
|
|
117
|
+
Address32: any;
|
|
118
|
+
} | {
|
|
119
|
+
Address20: any;
|
|
120
|
+
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
121
|
+
/**
|
|
122
|
+
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
123
|
+
* may be specified.
|
|
111
124
|
**/
|
|
112
125
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
113
126
|
Id: any;
|
|
@@ -147,16 +160,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
147
160
|
Address20: any;
|
|
148
161
|
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
|
149
162
|
/**
|
|
150
|
-
* Set the
|
|
151
|
-
*
|
|
152
|
-
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
|
153
|
-
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
|
154
|
-
* If the new free or reserved balance is below the existential deposit,
|
|
155
|
-
* it will reset the account nonce (`frame_system::AccountNonce`).
|
|
163
|
+
* Set the regular balance of a given account; it also takes a reserved balance but this
|
|
164
|
+
* must be the same as the account's current reserved balance.
|
|
156
165
|
*
|
|
157
166
|
* The dispatch origin for this call is `root`.
|
|
167
|
+
*
|
|
168
|
+
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
|
158
169
|
**/
|
|
159
|
-
|
|
170
|
+
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | {
|
|
160
171
|
Id: any;
|
|
161
172
|
} | {
|
|
162
173
|
Index: any;
|
|
@@ -166,30 +177,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
166
177
|
Address32: any;
|
|
167
178
|
} | {
|
|
168
179
|
Address20: any;
|
|
169
|
-
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array,
|
|
180
|
+
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
|
170
181
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
|
174
|
-
* If the sender's account is below the existential deposit as a result
|
|
175
|
-
* of the transfer, the account will be reaped.
|
|
176
|
-
*
|
|
177
|
-
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
178
|
-
*
|
|
179
|
-
* ## Complexity
|
|
180
|
-
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
181
|
-
* types. See related functions below.
|
|
182
|
-
* - It contains a limited number of reads and writes internally and no complex
|
|
183
|
-
* computation.
|
|
182
|
+
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
|
184
183
|
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* - `ensure_can_withdraw` is always called internally but has a bounded complexity.
|
|
188
|
-
* - Transferring balances to accounts that did not exist before will cause
|
|
189
|
-
* `T::OnNewAccount::on_new_account` to be called.
|
|
190
|
-
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
191
|
-
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
192
|
-
* that the transfer will not kill the origin account.
|
|
184
|
+
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
|
193
185
|
**/
|
|
194
186
|
transfer: AugmentedSubmittable<(dest: MultiAddress | {
|
|
195
187
|
Id: any;
|
|
@@ -217,8 +209,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
217
209
|
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
218
210
|
* of the funds the account has, causing the sender account to be killed (false), or
|
|
219
211
|
* transfer everything except at least the existential deposit, which will guarantee to
|
|
220
|
-
* keep the sender account alive (true).
|
|
221
|
-
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
212
|
+
* keep the sender account alive (true).
|
|
222
213
|
**/
|
|
223
214
|
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
224
215
|
Id: any;
|
|
@@ -232,12 +223,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
232
223
|
Address20: any;
|
|
233
224
|
} | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
234
225
|
/**
|
|
235
|
-
*
|
|
236
|
-
* origin account.
|
|
226
|
+
* Transfer some liquid free balance to another account.
|
|
237
227
|
*
|
|
238
|
-
*
|
|
228
|
+
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
229
|
+
* If the sender's account is below the existential deposit as a result
|
|
230
|
+
* of the transfer, the account will be reaped.
|
|
239
231
|
*
|
|
240
|
-
*
|
|
232
|
+
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
233
|
+
**/
|
|
234
|
+
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
|
|
235
|
+
Id: any;
|
|
236
|
+
} | {
|
|
237
|
+
Index: any;
|
|
238
|
+
} | {
|
|
239
|
+
Raw: any;
|
|
240
|
+
} | {
|
|
241
|
+
Address32: any;
|
|
242
|
+
} | {
|
|
243
|
+
Address20: any;
|
|
244
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
245
|
+
/**
|
|
246
|
+
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
247
|
+
* kill the origin account.
|
|
248
|
+
*
|
|
249
|
+
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
250
|
+
*
|
|
251
|
+
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
241
252
|
**/
|
|
242
253
|
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
|
|
243
254
|
Id: any;
|
|
@@ -250,6 +261,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
250
261
|
} | {
|
|
251
262
|
Address20: any;
|
|
252
263
|
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
264
|
+
/**
|
|
265
|
+
* Upgrade a specified account.
|
|
266
|
+
*
|
|
267
|
+
* - `origin`: Must be `Signed`.
|
|
268
|
+
* - `who`: The account to be upgraded.
|
|
269
|
+
*
|
|
270
|
+
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
271
|
+
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
272
|
+
* possibililty of churn).
|
|
273
|
+
**/
|
|
274
|
+
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
253
275
|
/**
|
|
254
276
|
* Generic tx
|
|
255
277
|
**/
|
|
@@ -684,6 +706,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
684
706
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
685
707
|
};
|
|
686
708
|
configuration: {
|
|
709
|
+
/**
|
|
710
|
+
* Set the asynchronous backing parameters.
|
|
711
|
+
**/
|
|
712
|
+
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingAsyncBackingParams | {
|
|
713
|
+
maxCandidateDepth?: any;
|
|
714
|
+
allowedAncestryLen?: any;
|
|
715
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingAsyncBackingParams]>;
|
|
687
716
|
/**
|
|
688
717
|
* Setting this to true will disable consistency checks for the configuration setters.
|
|
689
718
|
* Use with caution.
|
|
@@ -697,10 +726,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
697
726
|
* Set the acceptance period for an included candidate.
|
|
698
727
|
**/
|
|
699
728
|
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
700
|
-
/**
|
|
701
|
-
* Set the dispute conclusion by time out period.
|
|
702
|
-
**/
|
|
703
|
-
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
704
729
|
/**
|
|
705
730
|
* Set the dispute period, in number of sessions to keep for disputes.
|
|
706
731
|
**/
|
|
@@ -877,6 +902,166 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
877
902
|
**/
|
|
878
903
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
879
904
|
};
|
|
905
|
+
convictionVoting: {
|
|
906
|
+
/**
|
|
907
|
+
* Delegate the voting power (with some given conviction) of the sending account for a
|
|
908
|
+
* particular class of polls.
|
|
909
|
+
*
|
|
910
|
+
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
911
|
+
* time appropriate for the conviction's lock period.
|
|
912
|
+
*
|
|
913
|
+
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
914
|
+
* - be delegating already; or
|
|
915
|
+
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
916
|
+
* through `reap_vote` or `unvote`).
|
|
917
|
+
*
|
|
918
|
+
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
919
|
+
* - `class`: The class of polls to delegate. To delegate multiple classes, multiple calls
|
|
920
|
+
* to this function are required.
|
|
921
|
+
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
922
|
+
* account is undelegated, the funds will be locked for the corresponding period.
|
|
923
|
+
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
924
|
+
* be more than the account's current balance.
|
|
925
|
+
*
|
|
926
|
+
* Emits `Delegated`.
|
|
927
|
+
*
|
|
928
|
+
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
|
929
|
+
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
|
930
|
+
**/
|
|
931
|
+
delegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, to: MultiAddress | {
|
|
932
|
+
Id: any;
|
|
933
|
+
} | {
|
|
934
|
+
Index: any;
|
|
935
|
+
} | {
|
|
936
|
+
Raw: any;
|
|
937
|
+
} | {
|
|
938
|
+
Address32: any;
|
|
939
|
+
} | {
|
|
940
|
+
Address20: any;
|
|
941
|
+
} | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress, PalletConvictionVotingConviction, u128]>;
|
|
942
|
+
/**
|
|
943
|
+
* Remove a vote for a poll.
|
|
944
|
+
*
|
|
945
|
+
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
946
|
+
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
947
|
+
* either because the poll was cancelled, because the voter lost the poll or
|
|
948
|
+
* because the conviction period is over.
|
|
949
|
+
*
|
|
950
|
+
* The dispatch origin of this call must be _Signed_.
|
|
951
|
+
*
|
|
952
|
+
* - `target`: The account of the vote to be removed; this account must have voted for poll
|
|
953
|
+
* `index`.
|
|
954
|
+
* - `index`: The index of poll of the vote to be removed.
|
|
955
|
+
* - `class`: The class of the poll.
|
|
956
|
+
*
|
|
957
|
+
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
|
958
|
+
* Weight is calculated for the maximum number of vote.
|
|
959
|
+
**/
|
|
960
|
+
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | {
|
|
961
|
+
Id: any;
|
|
962
|
+
} | {
|
|
963
|
+
Index: any;
|
|
964
|
+
} | {
|
|
965
|
+
Raw: any;
|
|
966
|
+
} | {
|
|
967
|
+
Address32: any;
|
|
968
|
+
} | {
|
|
969
|
+
Address20: any;
|
|
970
|
+
} | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u16, u32]>;
|
|
971
|
+
/**
|
|
972
|
+
* Remove a vote for a poll.
|
|
973
|
+
*
|
|
974
|
+
* If:
|
|
975
|
+
* - the poll was cancelled, or
|
|
976
|
+
* - the poll is ongoing, or
|
|
977
|
+
* - the poll has ended such that
|
|
978
|
+
* - the vote of the account was in opposition to the result; or
|
|
979
|
+
* - there was no conviction to the account's vote; or
|
|
980
|
+
* - the account made a split vote
|
|
981
|
+
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
982
|
+
* funds being available.
|
|
983
|
+
*
|
|
984
|
+
* If, however, the poll has ended and:
|
|
985
|
+
* - it finished corresponding to the vote of the account, and
|
|
986
|
+
* - the account made a standard vote with conviction, and
|
|
987
|
+
* - the lock period of the conviction is not over
|
|
988
|
+
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
989
|
+
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
990
|
+
* of both the amount locked and the time is it locked for).
|
|
991
|
+
*
|
|
992
|
+
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
993
|
+
* registered for poll `index`.
|
|
994
|
+
*
|
|
995
|
+
* - `index`: The index of poll of the vote to be removed.
|
|
996
|
+
* - `class`: Optional parameter, if given it indicates the class of the poll. For polls
|
|
997
|
+
* which have finished or are cancelled, this must be `Some`.
|
|
998
|
+
*
|
|
999
|
+
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
|
1000
|
+
* Weight is calculated for the maximum number of vote.
|
|
1001
|
+
**/
|
|
1002
|
+
removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | Uint8Array | u16 | AnyNumber, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
|
|
1003
|
+
/**
|
|
1004
|
+
* Undelegate the voting power of the sending account for a particular class of polls.
|
|
1005
|
+
*
|
|
1006
|
+
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
1007
|
+
* of the conviction with which the delegation was issued has passed.
|
|
1008
|
+
*
|
|
1009
|
+
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
1010
|
+
* currently delegating.
|
|
1011
|
+
*
|
|
1012
|
+
* - `class`: The class of polls to remove the delegation from.
|
|
1013
|
+
*
|
|
1014
|
+
* Emits `Undelegated`.
|
|
1015
|
+
*
|
|
1016
|
+
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
|
1017
|
+
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
|
1018
|
+
**/
|
|
1019
|
+
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Remove the lock caused by prior voting/delegating which has expired within a particular
|
|
1022
|
+
* class.
|
|
1023
|
+
*
|
|
1024
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1025
|
+
*
|
|
1026
|
+
* - `class`: The class of polls to unlock.
|
|
1027
|
+
* - `target`: The account to remove the lock on.
|
|
1028
|
+
*
|
|
1029
|
+
* Weight: `O(R)` with R number of vote of target.
|
|
1030
|
+
**/
|
|
1031
|
+
unlock: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, target: MultiAddress | {
|
|
1032
|
+
Id: any;
|
|
1033
|
+
} | {
|
|
1034
|
+
Index: any;
|
|
1035
|
+
} | {
|
|
1036
|
+
Raw: any;
|
|
1037
|
+
} | {
|
|
1038
|
+
Address32: any;
|
|
1039
|
+
} | {
|
|
1040
|
+
Address20: any;
|
|
1041
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress]>;
|
|
1042
|
+
/**
|
|
1043
|
+
* Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
1044
|
+
* otherwise it is a vote to keep the status quo.
|
|
1045
|
+
*
|
|
1046
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1047
|
+
*
|
|
1048
|
+
* - `poll_index`: The index of the poll to vote for.
|
|
1049
|
+
* - `vote`: The vote configuration.
|
|
1050
|
+
*
|
|
1051
|
+
* Weight: `O(R)` where R is the number of polls the voter has voted on.
|
|
1052
|
+
**/
|
|
1053
|
+
vote: AugmentedSubmittable<(pollIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletConvictionVotingVoteAccountVote | {
|
|
1054
|
+
Standard: any;
|
|
1055
|
+
} | {
|
|
1056
|
+
Split: any;
|
|
1057
|
+
} | {
|
|
1058
|
+
SplitAbstain: any;
|
|
1059
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletConvictionVotingVoteAccountVote]>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Generic tx
|
|
1062
|
+
**/
|
|
1063
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1064
|
+
};
|
|
880
1065
|
council: {
|
|
881
1066
|
/**
|
|
882
1067
|
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
@@ -2412,9 +2597,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2412
2597
|
* account.
|
|
2413
2598
|
**/
|
|
2414
2599
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2600
|
+
/**
|
|
2601
|
+
* Claim pending commission.
|
|
2602
|
+
*
|
|
2603
|
+
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
|
2604
|
+
* commission is paid out and added to total claimed commission`. Total pending commission
|
|
2605
|
+
* is reset to zero. the current.
|
|
2606
|
+
**/
|
|
2607
|
+
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2415
2608
|
/**
|
|
2416
2609
|
* A bonded member can use this to claim their payout based on the rewards that the pool
|
|
2417
|
-
* has accumulated since their last claimed payout (OR since joining if this is
|
|
2610
|
+
* has accumulated since their last claimed payout (OR since joining if this is their first
|
|
2418
2611
|
* time claiming rewards). The payout will be transferred to the member's account.
|
|
2419
2612
|
*
|
|
2420
2613
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
@@ -2566,6 +2759,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2566
2759
|
* * `actor` - Account to claim reward. // improve this
|
|
2567
2760
|
**/
|
|
2568
2761
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
2762
|
+
/**
|
|
2763
|
+
* Set the commission of a pool.
|
|
2764
|
+
* Both a commission percentage and a commission payee must be provided in the `current`
|
|
2765
|
+
* tuple. Where a `current` of `None` is provided, any current commission will be removed.
|
|
2766
|
+
*
|
|
2767
|
+
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
|
2768
|
+
**/
|
|
2769
|
+
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
|
2770
|
+
/**
|
|
2771
|
+
* Set the commission change rate for a pool.
|
|
2772
|
+
*
|
|
2773
|
+
* Initial change rate is not bounded, whereas subsequent updates can only be more
|
|
2774
|
+
* restrictive than the current.
|
|
2775
|
+
**/
|
|
2776
|
+
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | {
|
|
2777
|
+
maxIncrease?: any;
|
|
2778
|
+
minDelay?: any;
|
|
2779
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
|
2780
|
+
/**
|
|
2781
|
+
* Set the maximum commission of a pool.
|
|
2782
|
+
*
|
|
2783
|
+
* - Initial max can be set to any `Perbill`, and only smaller values thereafter.
|
|
2784
|
+
* - Current commission will be lowered in the event it is higher than a new max
|
|
2785
|
+
* commission.
|
|
2786
|
+
**/
|
|
2787
|
+
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
|
2569
2788
|
/**
|
|
2570
2789
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
2571
2790
|
* Root.
|
|
@@ -2577,6 +2796,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2577
2796
|
* * `max_pools` - Set [`MaxPools`].
|
|
2578
2797
|
* * `max_members` - Set [`MaxPoolMembers`].
|
|
2579
2798
|
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
|
2799
|
+
* * `global_max_commission` - Set [`GlobalMaxCommission`].
|
|
2580
2800
|
**/
|
|
2581
2801
|
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | {
|
|
2582
2802
|
Noop: any;
|
|
@@ -2608,12 +2828,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2608
2828
|
Set: any;
|
|
2609
2829
|
} | {
|
|
2610
2830
|
Remove: any;
|
|
2611
|
-
} | string | Uint8Array
|
|
2831
|
+
} | string | Uint8Array, globalMaxCommission: PalletNominationPoolsConfigOpPerbill | {
|
|
2832
|
+
Noop: any;
|
|
2833
|
+
} | {
|
|
2834
|
+
Set: any;
|
|
2835
|
+
} | {
|
|
2836
|
+
Remove: any;
|
|
2837
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill]>;
|
|
2612
2838
|
/**
|
|
2613
2839
|
* Set a new metadata for the pool.
|
|
2614
2840
|
*
|
|
2615
|
-
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
2616
|
-
*
|
|
2841
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role of the
|
|
2842
|
+
* pool.
|
|
2617
2843
|
**/
|
|
2618
2844
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
2619
2845
|
/**
|
|
@@ -2748,12 +2974,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2748
2974
|
/**
|
|
2749
2975
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
2750
2976
|
**/
|
|
2751
|
-
enter: AugmentedSubmittable<(data:
|
|
2977
|
+
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV4InherentData | {
|
|
2752
2978
|
bitfields?: any;
|
|
2753
2979
|
backedCandidates?: any;
|
|
2754
2980
|
disputes?: any;
|
|
2755
2981
|
parentHeader?: any;
|
|
2756
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2982
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4InherentData]>;
|
|
2757
2983
|
/**
|
|
2758
2984
|
* Generic tx
|
|
2759
2985
|
**/
|
|
@@ -2802,12 +3028,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2802
3028
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
2803
3029
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
2804
3030
|
**/
|
|
2805
|
-
includePvfCheckStatement: AugmentedSubmittable<(stmt:
|
|
3031
|
+
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV4PvfCheckStatement | {
|
|
2806
3032
|
accept?: any;
|
|
2807
3033
|
subject?: any;
|
|
2808
3034
|
sessionIndex?: any;
|
|
2809
3035
|
validatorIndex?: any;
|
|
2810
|
-
} | string | Uint8Array, signature:
|
|
3036
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV4ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature]>;
|
|
2811
3037
|
/**
|
|
2812
3038
|
* Remove the validation code from the storage iff the reference count is 0.
|
|
2813
3039
|
*
|
|
@@ -3015,7 +3241,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3015
3241
|
Address32: any;
|
|
3016
3242
|
} | {
|
|
3017
3243
|
Address20: any;
|
|
3018
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3244
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3019
3245
|
/**
|
|
3020
3246
|
* Publish the hash of a proxy-call that will be made in the future.
|
|
3021
3247
|
*
|
|
@@ -3064,7 +3290,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3064
3290
|
*
|
|
3065
3291
|
* Fails if there are insufficient funds to pay for deposit.
|
|
3066
3292
|
**/
|
|
3067
|
-
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
|
3293
|
+
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
|
3068
3294
|
/**
|
|
3069
3295
|
* Removes a previously spawned pure proxy.
|
|
3070
3296
|
*
|
|
@@ -3093,7 +3319,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3093
3319
|
Address32: any;
|
|
3094
3320
|
} | {
|
|
3095
3321
|
Address20: any;
|
|
3096
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
3322
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
3097
3323
|
/**
|
|
3098
3324
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
3099
3325
|
* `add_proxy`.
|
|
@@ -3115,7 +3341,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3115
3341
|
Address32: any;
|
|
3116
3342
|
} | {
|
|
3117
3343
|
Address20: any;
|
|
3118
|
-
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3344
|
+
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3119
3345
|
/**
|
|
3120
3346
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
3121
3347
|
* `add_proxy`.
|
|
@@ -3149,7 +3375,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3149
3375
|
Address32: any;
|
|
3150
3376
|
} | {
|
|
3151
3377
|
Address20: any;
|
|
3152
|
-
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3378
|
+
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3153
3379
|
/**
|
|
3154
3380
|
* Remove the given announcement of a delegate.
|
|
3155
3381
|
*
|
|
@@ -3224,7 +3450,127 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3224
3450
|
Address32: any;
|
|
3225
3451
|
} | {
|
|
3226
3452
|
Address20: any;
|
|
3227
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3453
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3454
|
+
/**
|
|
3455
|
+
* Generic tx
|
|
3456
|
+
**/
|
|
3457
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3458
|
+
};
|
|
3459
|
+
referenda: {
|
|
3460
|
+
/**
|
|
3461
|
+
* Cancel an ongoing referendum.
|
|
3462
|
+
*
|
|
3463
|
+
* - `origin`: must be the `CancelOrigin`.
|
|
3464
|
+
* - `index`: The index of the referendum to be cancelled.
|
|
3465
|
+
*
|
|
3466
|
+
* Emits `Cancelled`.
|
|
3467
|
+
**/
|
|
3468
|
+
cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3469
|
+
/**
|
|
3470
|
+
* Cancel an ongoing referendum and slash the deposits.
|
|
3471
|
+
*
|
|
3472
|
+
* - `origin`: must be the `KillOrigin`.
|
|
3473
|
+
* - `index`: The index of the referendum to be cancelled.
|
|
3474
|
+
*
|
|
3475
|
+
* Emits `Killed` and `DepositSlashed`.
|
|
3476
|
+
**/
|
|
3477
|
+
kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3478
|
+
/**
|
|
3479
|
+
* Advance a referendum onto its next logical state. Only used internally.
|
|
3480
|
+
*
|
|
3481
|
+
* - `origin`: must be `Root`.
|
|
3482
|
+
* - `index`: the referendum to be advanced.
|
|
3483
|
+
**/
|
|
3484
|
+
nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3485
|
+
/**
|
|
3486
|
+
* Advance a track onto its next logical state. Only used internally.
|
|
3487
|
+
*
|
|
3488
|
+
* - `origin`: must be `Root`.
|
|
3489
|
+
* - `track`: the track to be advanced.
|
|
3490
|
+
*
|
|
3491
|
+
* Action item for when there is now one fewer referendum in the deciding phase and the
|
|
3492
|
+
* `DecidingCount` is not yet updated. This means that we should either:
|
|
3493
|
+
* - begin deciding another referendum (and leave `DecidingCount` alone); or
|
|
3494
|
+
* - decrement `DecidingCount`.
|
|
3495
|
+
**/
|
|
3496
|
+
oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
|
3497
|
+
/**
|
|
3498
|
+
* Post the Decision Deposit for a referendum.
|
|
3499
|
+
*
|
|
3500
|
+
* - `origin`: must be `Signed` and the account must have funds available for the
|
|
3501
|
+
* referendum's track's Decision Deposit.
|
|
3502
|
+
* - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
|
|
3503
|
+
* posted.
|
|
3504
|
+
*
|
|
3505
|
+
* Emits `DecisionDepositPlaced`.
|
|
3506
|
+
**/
|
|
3507
|
+
placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3508
|
+
/**
|
|
3509
|
+
* Refund the Decision Deposit for a closed referendum back to the depositor.
|
|
3510
|
+
*
|
|
3511
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
3512
|
+
* - `index`: The index of a closed referendum whose Decision Deposit has not yet been
|
|
3513
|
+
* refunded.
|
|
3514
|
+
*
|
|
3515
|
+
* Emits `DecisionDepositRefunded`.
|
|
3516
|
+
**/
|
|
3517
|
+
refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3518
|
+
/**
|
|
3519
|
+
* Refund the Submission Deposit for a closed referendum back to the depositor.
|
|
3520
|
+
*
|
|
3521
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
3522
|
+
* - `index`: The index of a closed referendum whose Submission Deposit has not yet been
|
|
3523
|
+
* refunded.
|
|
3524
|
+
*
|
|
3525
|
+
* Emits `SubmissionDepositRefunded`.
|
|
3526
|
+
**/
|
|
3527
|
+
refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3528
|
+
/**
|
|
3529
|
+
* Set or clear metadata of a referendum.
|
|
3530
|
+
*
|
|
3531
|
+
* Parameters:
|
|
3532
|
+
* - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
|
|
3533
|
+
* metadata of a finished referendum.
|
|
3534
|
+
* - `index`: The index of a referendum to set or clear metadata for.
|
|
3535
|
+
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
3536
|
+
**/
|
|
3537
|
+
setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
|
|
3538
|
+
/**
|
|
3539
|
+
* Propose a referendum on a privileged action.
|
|
3540
|
+
*
|
|
3541
|
+
* - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
|
|
3542
|
+
* available.
|
|
3543
|
+
* - `proposal_origin`: The origin from which the proposal should be executed.
|
|
3544
|
+
* - `proposal`: The proposal.
|
|
3545
|
+
* - `enactment_moment`: The moment that the proposal should be enacted.
|
|
3546
|
+
*
|
|
3547
|
+
* Emits `Submitted`.
|
|
3548
|
+
**/
|
|
3549
|
+
submit: AugmentedSubmittable<(proposalOrigin: PolkadotRuntimeOriginCaller | {
|
|
3550
|
+
system: any;
|
|
3551
|
+
} | {
|
|
3552
|
+
Void: any;
|
|
3553
|
+
} | {
|
|
3554
|
+
Council: any;
|
|
3555
|
+
} | {
|
|
3556
|
+
TechnicalCommittee: any;
|
|
3557
|
+
} | {
|
|
3558
|
+
Origins: any;
|
|
3559
|
+
} | {
|
|
3560
|
+
ParachainsOrigin: any;
|
|
3561
|
+
} | {
|
|
3562
|
+
XcmPallet: any;
|
|
3563
|
+
} | string | Uint8Array, proposal: FrameSupportPreimagesBounded | {
|
|
3564
|
+
Legacy: any;
|
|
3565
|
+
} | {
|
|
3566
|
+
Inline: any;
|
|
3567
|
+
} | {
|
|
3568
|
+
Lookup: any;
|
|
3569
|
+
} | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
|
|
3570
|
+
At: any;
|
|
3571
|
+
} | {
|
|
3572
|
+
After: any;
|
|
3573
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
|
3228
3574
|
/**
|
|
3229
3575
|
* Generic tx
|
|
3230
3576
|
**/
|
|
@@ -4520,6 +4866,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4520
4866
|
Council: any;
|
|
4521
4867
|
} | {
|
|
4522
4868
|
TechnicalCommittee: any;
|
|
4869
|
+
} | {
|
|
4870
|
+
Origins: any;
|
|
4523
4871
|
} | {
|
|
4524
4872
|
ParachainsOrigin: any;
|
|
4525
4873
|
} | {
|
|
@@ -4745,6 +5093,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4745
5093
|
**/
|
|
4746
5094
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4747
5095
|
};
|
|
5096
|
+
whitelist: {
|
|
5097
|
+
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callEncodedLen: u32 | AnyNumber | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | {
|
|
5098
|
+
refTime?: any;
|
|
5099
|
+
proofSize?: any;
|
|
5100
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, SpWeightsWeightV2Weight]>;
|
|
5101
|
+
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
|
5102
|
+
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5103
|
+
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5104
|
+
/**
|
|
5105
|
+
* Generic tx
|
|
5106
|
+
**/
|
|
5107
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5108
|
+
};
|
|
4748
5109
|
xcmPallet: {
|
|
4749
5110
|
/**
|
|
4750
5111
|
* Execute an XCM message from a local, signed, origin.
|