@polkadot/api-augment 10.1.4 → 10.2.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 +24 -165
- package/kusama/errors.d.ts +75 -318
- package/kusama/events.d.ts +126 -379
- package/kusama/query.d.ts +47 -215
- package/kusama/runtime.d.ts +27 -31
- package/kusama/tx.d.ts +197 -1116
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +60 -2
- package/polkadot/errors.d.ts +180 -9
- package/polkadot/events.d.ts +224 -11
- package/polkadot/query.d.ts +88 -16
- package/polkadot/runtime.d.ts +27 -31
- package/polkadot/tx.d.ts +407 -53
- package/substrate/consts.d.ts +32 -6
- package/substrate/errors.d.ts +103 -16
- package/substrate/events.d.ts +172 -7
- package/substrate/query.d.ts +41 -6
- 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, 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
|
**/
|
|
@@ -697,10 +719,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
697
719
|
* Set the acceptance period for an included candidate.
|
|
698
720
|
**/
|
|
699
721
|
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
722
|
/**
|
|
705
723
|
* Set the dispute period, in number of sessions to keep for disputes.
|
|
706
724
|
**/
|
|
@@ -877,6 +895,166 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
877
895
|
**/
|
|
878
896
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
879
897
|
};
|
|
898
|
+
convictionVoting: {
|
|
899
|
+
/**
|
|
900
|
+
* Delegate the voting power (with some given conviction) of the sending account for a
|
|
901
|
+
* particular class of polls.
|
|
902
|
+
*
|
|
903
|
+
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
904
|
+
* time appropriate for the conviction's lock period.
|
|
905
|
+
*
|
|
906
|
+
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
907
|
+
* - be delegating already; or
|
|
908
|
+
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
909
|
+
* through `reap_vote` or `unvote`).
|
|
910
|
+
*
|
|
911
|
+
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
912
|
+
* - `class`: The class of polls to delegate. To delegate multiple classes, multiple calls
|
|
913
|
+
* to this function are required.
|
|
914
|
+
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
915
|
+
* account is undelegated, the funds will be locked for the corresponding period.
|
|
916
|
+
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
917
|
+
* be more than the account's current balance.
|
|
918
|
+
*
|
|
919
|
+
* Emits `Delegated`.
|
|
920
|
+
*
|
|
921
|
+
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
|
922
|
+
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
|
923
|
+
**/
|
|
924
|
+
delegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, to: MultiAddress | {
|
|
925
|
+
Id: any;
|
|
926
|
+
} | {
|
|
927
|
+
Index: any;
|
|
928
|
+
} | {
|
|
929
|
+
Raw: any;
|
|
930
|
+
} | {
|
|
931
|
+
Address32: any;
|
|
932
|
+
} | {
|
|
933
|
+
Address20: any;
|
|
934
|
+
} | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress, PalletConvictionVotingConviction, u128]>;
|
|
935
|
+
/**
|
|
936
|
+
* Remove a vote for a poll.
|
|
937
|
+
*
|
|
938
|
+
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
939
|
+
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
940
|
+
* either because the poll was cancelled, because the voter lost the poll or
|
|
941
|
+
* because the conviction period is over.
|
|
942
|
+
*
|
|
943
|
+
* The dispatch origin of this call must be _Signed_.
|
|
944
|
+
*
|
|
945
|
+
* - `target`: The account of the vote to be removed; this account must have voted for poll
|
|
946
|
+
* `index`.
|
|
947
|
+
* - `index`: The index of poll of the vote to be removed.
|
|
948
|
+
* - `class`: The class of the poll.
|
|
949
|
+
*
|
|
950
|
+
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
|
951
|
+
* Weight is calculated for the maximum number of vote.
|
|
952
|
+
**/
|
|
953
|
+
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | {
|
|
954
|
+
Id: any;
|
|
955
|
+
} | {
|
|
956
|
+
Index: any;
|
|
957
|
+
} | {
|
|
958
|
+
Raw: any;
|
|
959
|
+
} | {
|
|
960
|
+
Address32: any;
|
|
961
|
+
} | {
|
|
962
|
+
Address20: any;
|
|
963
|
+
} | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u16, u32]>;
|
|
964
|
+
/**
|
|
965
|
+
* Remove a vote for a poll.
|
|
966
|
+
*
|
|
967
|
+
* If:
|
|
968
|
+
* - the poll was cancelled, or
|
|
969
|
+
* - the poll is ongoing, or
|
|
970
|
+
* - the poll has ended such that
|
|
971
|
+
* - the vote of the account was in opposition to the result; or
|
|
972
|
+
* - there was no conviction to the account's vote; or
|
|
973
|
+
* - the account made a split vote
|
|
974
|
+
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
975
|
+
* funds being available.
|
|
976
|
+
*
|
|
977
|
+
* If, however, the poll has ended and:
|
|
978
|
+
* - it finished corresponding to the vote of the account, and
|
|
979
|
+
* - the account made a standard vote with conviction, and
|
|
980
|
+
* - the lock period of the conviction is not over
|
|
981
|
+
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
982
|
+
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
983
|
+
* of both the amount locked and the time is it locked for).
|
|
984
|
+
*
|
|
985
|
+
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
986
|
+
* registered for poll `index`.
|
|
987
|
+
*
|
|
988
|
+
* - `index`: The index of poll of the vote to be removed.
|
|
989
|
+
* - `class`: Optional parameter, if given it indicates the class of the poll. For polls
|
|
990
|
+
* which have finished or are cancelled, this must be `Some`.
|
|
991
|
+
*
|
|
992
|
+
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
|
993
|
+
* Weight is calculated for the maximum number of vote.
|
|
994
|
+
**/
|
|
995
|
+
removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | Uint8Array | u16 | AnyNumber, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
|
|
996
|
+
/**
|
|
997
|
+
* Undelegate the voting power of the sending account for a particular class of polls.
|
|
998
|
+
*
|
|
999
|
+
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
1000
|
+
* of the conviction with which the delegation was issued has passed.
|
|
1001
|
+
*
|
|
1002
|
+
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
1003
|
+
* currently delegating.
|
|
1004
|
+
*
|
|
1005
|
+
* - `class`: The class of polls to remove the delegation from.
|
|
1006
|
+
*
|
|
1007
|
+
* Emits `Undelegated`.
|
|
1008
|
+
*
|
|
1009
|
+
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
|
1010
|
+
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
|
1011
|
+
**/
|
|
1012
|
+
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Remove the lock caused by prior voting/delegating which has expired within a particular
|
|
1015
|
+
* class.
|
|
1016
|
+
*
|
|
1017
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1018
|
+
*
|
|
1019
|
+
* - `class`: The class of polls to unlock.
|
|
1020
|
+
* - `target`: The account to remove the lock on.
|
|
1021
|
+
*
|
|
1022
|
+
* Weight: `O(R)` with R number of vote of target.
|
|
1023
|
+
**/
|
|
1024
|
+
unlock: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, target: MultiAddress | {
|
|
1025
|
+
Id: any;
|
|
1026
|
+
} | {
|
|
1027
|
+
Index: any;
|
|
1028
|
+
} | {
|
|
1029
|
+
Raw: any;
|
|
1030
|
+
} | {
|
|
1031
|
+
Address32: any;
|
|
1032
|
+
} | {
|
|
1033
|
+
Address20: any;
|
|
1034
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress]>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
1037
|
+
* otherwise it is a vote to keep the status quo.
|
|
1038
|
+
*
|
|
1039
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1040
|
+
*
|
|
1041
|
+
* - `poll_index`: The index of the poll to vote for.
|
|
1042
|
+
* - `vote`: The vote configuration.
|
|
1043
|
+
*
|
|
1044
|
+
* Weight: `O(R)` where R is the number of polls the voter has voted on.
|
|
1045
|
+
**/
|
|
1046
|
+
vote: AugmentedSubmittable<(pollIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletConvictionVotingVoteAccountVote | {
|
|
1047
|
+
Standard: any;
|
|
1048
|
+
} | {
|
|
1049
|
+
Split: any;
|
|
1050
|
+
} | {
|
|
1051
|
+
SplitAbstain: any;
|
|
1052
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletConvictionVotingVoteAccountVote]>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Generic tx
|
|
1055
|
+
**/
|
|
1056
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1057
|
+
};
|
|
880
1058
|
council: {
|
|
881
1059
|
/**
|
|
882
1060
|
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
@@ -2412,9 +2590,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2412
2590
|
* account.
|
|
2413
2591
|
**/
|
|
2414
2592
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2593
|
+
/**
|
|
2594
|
+
* Claim pending commission.
|
|
2595
|
+
*
|
|
2596
|
+
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
|
2597
|
+
* commission is paid out and added to total claimed commission`. Total pending commission
|
|
2598
|
+
* is reset to zero. the current.
|
|
2599
|
+
**/
|
|
2600
|
+
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2415
2601
|
/**
|
|
2416
2602
|
* 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
|
|
2603
|
+
* has accumulated since their last claimed payout (OR since joining if this is their first
|
|
2418
2604
|
* time claiming rewards). The payout will be transferred to the member's account.
|
|
2419
2605
|
*
|
|
2420
2606
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
@@ -2566,6 +2752,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2566
2752
|
* * `actor` - Account to claim reward. // improve this
|
|
2567
2753
|
**/
|
|
2568
2754
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
2755
|
+
/**
|
|
2756
|
+
* Set the commission of a pool.
|
|
2757
|
+
* Both a commission percentage and a commission payee must be provided in the `current`
|
|
2758
|
+
* tuple. Where a `current` of `None` is provided, any current commission will be removed.
|
|
2759
|
+
*
|
|
2760
|
+
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
|
2761
|
+
**/
|
|
2762
|
+
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]>>]>;
|
|
2763
|
+
/**
|
|
2764
|
+
* Set the commission change rate for a pool.
|
|
2765
|
+
*
|
|
2766
|
+
* Initial change rate is not bounded, whereas subsequent updates can only be more
|
|
2767
|
+
* restrictive than the current.
|
|
2768
|
+
**/
|
|
2769
|
+
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | {
|
|
2770
|
+
maxIncrease?: any;
|
|
2771
|
+
minDelay?: any;
|
|
2772
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
|
2773
|
+
/**
|
|
2774
|
+
* Set the maximum commission of a pool.
|
|
2775
|
+
*
|
|
2776
|
+
* - Initial max can be set to any `Perbill`, and only smaller values thereafter.
|
|
2777
|
+
* - Current commission will be lowered in the event it is higher than a new max
|
|
2778
|
+
* commission.
|
|
2779
|
+
**/
|
|
2780
|
+
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
|
2569
2781
|
/**
|
|
2570
2782
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
2571
2783
|
* Root.
|
|
@@ -2577,6 +2789,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2577
2789
|
* * `max_pools` - Set [`MaxPools`].
|
|
2578
2790
|
* * `max_members` - Set [`MaxPoolMembers`].
|
|
2579
2791
|
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
|
2792
|
+
* * `global_max_commission` - Set [`GlobalMaxCommission`].
|
|
2580
2793
|
**/
|
|
2581
2794
|
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | {
|
|
2582
2795
|
Noop: any;
|
|
@@ -2608,12 +2821,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2608
2821
|
Set: any;
|
|
2609
2822
|
} | {
|
|
2610
2823
|
Remove: any;
|
|
2611
|
-
} | string | Uint8Array
|
|
2824
|
+
} | string | Uint8Array, globalMaxCommission: PalletNominationPoolsConfigOpPerbill | {
|
|
2825
|
+
Noop: any;
|
|
2826
|
+
} | {
|
|
2827
|
+
Set: any;
|
|
2828
|
+
} | {
|
|
2829
|
+
Remove: any;
|
|
2830
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill]>;
|
|
2612
2831
|
/**
|
|
2613
2832
|
* Set a new metadata for the pool.
|
|
2614
2833
|
*
|
|
2615
|
-
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
2616
|
-
*
|
|
2834
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role of the
|
|
2835
|
+
* pool.
|
|
2617
2836
|
**/
|
|
2618
2837
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
2619
2838
|
/**
|
|
@@ -2748,12 +2967,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2748
2967
|
/**
|
|
2749
2968
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
2750
2969
|
**/
|
|
2751
|
-
enter: AugmentedSubmittable<(data:
|
|
2970
|
+
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV4InherentData | {
|
|
2752
2971
|
bitfields?: any;
|
|
2753
2972
|
backedCandidates?: any;
|
|
2754
2973
|
disputes?: any;
|
|
2755
2974
|
parentHeader?: any;
|
|
2756
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2975
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4InherentData]>;
|
|
2757
2976
|
/**
|
|
2758
2977
|
* Generic tx
|
|
2759
2978
|
**/
|
|
@@ -2802,12 +3021,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2802
3021
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
2803
3022
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
2804
3023
|
**/
|
|
2805
|
-
includePvfCheckStatement: AugmentedSubmittable<(stmt:
|
|
3024
|
+
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV4PvfCheckStatement | {
|
|
2806
3025
|
accept?: any;
|
|
2807
3026
|
subject?: any;
|
|
2808
3027
|
sessionIndex?: any;
|
|
2809
3028
|
validatorIndex?: any;
|
|
2810
|
-
} | string | Uint8Array, signature:
|
|
3029
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV4ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature]>;
|
|
2811
3030
|
/**
|
|
2812
3031
|
* Remove the validation code from the storage iff the reference count is 0.
|
|
2813
3032
|
*
|
|
@@ -3230,6 +3449,126 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3230
3449
|
**/
|
|
3231
3450
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3232
3451
|
};
|
|
3452
|
+
referenda: {
|
|
3453
|
+
/**
|
|
3454
|
+
* Cancel an ongoing referendum.
|
|
3455
|
+
*
|
|
3456
|
+
* - `origin`: must be the `CancelOrigin`.
|
|
3457
|
+
* - `index`: The index of the referendum to be cancelled.
|
|
3458
|
+
*
|
|
3459
|
+
* Emits `Cancelled`.
|
|
3460
|
+
**/
|
|
3461
|
+
cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3462
|
+
/**
|
|
3463
|
+
* Cancel an ongoing referendum and slash the deposits.
|
|
3464
|
+
*
|
|
3465
|
+
* - `origin`: must be the `KillOrigin`.
|
|
3466
|
+
* - `index`: The index of the referendum to be cancelled.
|
|
3467
|
+
*
|
|
3468
|
+
* Emits `Killed` and `DepositSlashed`.
|
|
3469
|
+
**/
|
|
3470
|
+
kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3471
|
+
/**
|
|
3472
|
+
* Advance a referendum onto its next logical state. Only used internally.
|
|
3473
|
+
*
|
|
3474
|
+
* - `origin`: must be `Root`.
|
|
3475
|
+
* - `index`: the referendum to be advanced.
|
|
3476
|
+
**/
|
|
3477
|
+
nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3478
|
+
/**
|
|
3479
|
+
* Advance a track onto its next logical state. Only used internally.
|
|
3480
|
+
*
|
|
3481
|
+
* - `origin`: must be `Root`.
|
|
3482
|
+
* - `track`: the track to be advanced.
|
|
3483
|
+
*
|
|
3484
|
+
* Action item for when there is now one fewer referendum in the deciding phase and the
|
|
3485
|
+
* `DecidingCount` is not yet updated. This means that we should either:
|
|
3486
|
+
* - begin deciding another referendum (and leave `DecidingCount` alone); or
|
|
3487
|
+
* - decrement `DecidingCount`.
|
|
3488
|
+
**/
|
|
3489
|
+
oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
|
3490
|
+
/**
|
|
3491
|
+
* Post the Decision Deposit for a referendum.
|
|
3492
|
+
*
|
|
3493
|
+
* - `origin`: must be `Signed` and the account must have funds available for the
|
|
3494
|
+
* referendum's track's Decision Deposit.
|
|
3495
|
+
* - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
|
|
3496
|
+
* posted.
|
|
3497
|
+
*
|
|
3498
|
+
* Emits `DecisionDepositPlaced`.
|
|
3499
|
+
**/
|
|
3500
|
+
placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3501
|
+
/**
|
|
3502
|
+
* Refund the Decision Deposit for a closed referendum back to the depositor.
|
|
3503
|
+
*
|
|
3504
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
3505
|
+
* - `index`: The index of a closed referendum whose Decision Deposit has not yet been
|
|
3506
|
+
* refunded.
|
|
3507
|
+
*
|
|
3508
|
+
* Emits `DecisionDepositRefunded`.
|
|
3509
|
+
**/
|
|
3510
|
+
refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3511
|
+
/**
|
|
3512
|
+
* Refund the Submission Deposit for a closed referendum back to the depositor.
|
|
3513
|
+
*
|
|
3514
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
3515
|
+
* - `index`: The index of a closed referendum whose Submission Deposit has not yet been
|
|
3516
|
+
* refunded.
|
|
3517
|
+
*
|
|
3518
|
+
* Emits `SubmissionDepositRefunded`.
|
|
3519
|
+
**/
|
|
3520
|
+
refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3521
|
+
/**
|
|
3522
|
+
* Set or clear metadata of a referendum.
|
|
3523
|
+
*
|
|
3524
|
+
* Parameters:
|
|
3525
|
+
* - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
|
|
3526
|
+
* metadata of a finished referendum.
|
|
3527
|
+
* - `index`: The index of a referendum to set or clear metadata for.
|
|
3528
|
+
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
3529
|
+
**/
|
|
3530
|
+
setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
|
|
3531
|
+
/**
|
|
3532
|
+
* Propose a referendum on a privileged action.
|
|
3533
|
+
*
|
|
3534
|
+
* - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
|
|
3535
|
+
* available.
|
|
3536
|
+
* - `proposal_origin`: The origin from which the proposal should be executed.
|
|
3537
|
+
* - `proposal`: The proposal.
|
|
3538
|
+
* - `enactment_moment`: The moment that the proposal should be enacted.
|
|
3539
|
+
*
|
|
3540
|
+
* Emits `Submitted`.
|
|
3541
|
+
**/
|
|
3542
|
+
submit: AugmentedSubmittable<(proposalOrigin: PolkadotRuntimeOriginCaller | {
|
|
3543
|
+
system: any;
|
|
3544
|
+
} | {
|
|
3545
|
+
Void: any;
|
|
3546
|
+
} | {
|
|
3547
|
+
Council: any;
|
|
3548
|
+
} | {
|
|
3549
|
+
TechnicalCommittee: any;
|
|
3550
|
+
} | {
|
|
3551
|
+
Origins: any;
|
|
3552
|
+
} | {
|
|
3553
|
+
ParachainsOrigin: any;
|
|
3554
|
+
} | {
|
|
3555
|
+
XcmPallet: any;
|
|
3556
|
+
} | string | Uint8Array, proposal: FrameSupportPreimagesBounded | {
|
|
3557
|
+
Legacy: any;
|
|
3558
|
+
} | {
|
|
3559
|
+
Inline: any;
|
|
3560
|
+
} | {
|
|
3561
|
+
Lookup: any;
|
|
3562
|
+
} | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
|
|
3563
|
+
At: any;
|
|
3564
|
+
} | {
|
|
3565
|
+
After: any;
|
|
3566
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
|
3567
|
+
/**
|
|
3568
|
+
* Generic tx
|
|
3569
|
+
**/
|
|
3570
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3571
|
+
};
|
|
3233
3572
|
registrar: {
|
|
3234
3573
|
/**
|
|
3235
3574
|
* Add a manager lock from a para. This will prevent the manager of a
|
|
@@ -4520,6 +4859,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4520
4859
|
Council: any;
|
|
4521
4860
|
} | {
|
|
4522
4861
|
TechnicalCommittee: any;
|
|
4862
|
+
} | {
|
|
4863
|
+
Origins: any;
|
|
4523
4864
|
} | {
|
|
4524
4865
|
ParachainsOrigin: any;
|
|
4525
4866
|
} | {
|
|
@@ -4745,6 +5086,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4745
5086
|
**/
|
|
4746
5087
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4747
5088
|
};
|
|
5089
|
+
whitelist: {
|
|
5090
|
+
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callEncodedLen: u32 | AnyNumber | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | {
|
|
5091
|
+
refTime?: any;
|
|
5092
|
+
proofSize?: any;
|
|
5093
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, SpWeightsWeightV2Weight]>;
|
|
5094
|
+
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
|
5095
|
+
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5096
|
+
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5097
|
+
/**
|
|
5098
|
+
* Generic tx
|
|
5099
|
+
**/
|
|
5100
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5101
|
+
};
|
|
4748
5102
|
xcmPallet: {
|
|
4749
5103
|
/**
|
|
4750
5104
|
* Execute an XCM message from a local, signed, origin.
|