@polkadot/api-augment 10.1.3 → 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/kusama/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, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote,
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeParachainsDisputesSlashingDisputeProof, 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.
|
|
184
|
-
*
|
|
185
|
-
* Related functions:
|
|
182
|
+
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
|
186
183
|
*
|
|
187
|
-
*
|
|
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
|
**/
|
|
@@ -1037,150 +1055,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1037
1055
|
**/
|
|
1038
1056
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1039
1057
|
};
|
|
1040
|
-
council: {
|
|
1041
|
-
/**
|
|
1042
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
1043
|
-
*
|
|
1044
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
1045
|
-
*
|
|
1046
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
1047
|
-
* has enough votes to be approved or disapproved.
|
|
1048
|
-
*
|
|
1049
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
1050
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
1051
|
-
*
|
|
1052
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
1053
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
1054
|
-
*
|
|
1055
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
1056
|
-
* proposal.
|
|
1057
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
1058
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
1059
|
-
*
|
|
1060
|
-
* ## Complexity
|
|
1061
|
-
* - `O(B + M + P1 + P2)` where:
|
|
1062
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1063
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
1064
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
1065
|
-
* - `P2` is proposal-count (code-bounded)
|
|
1066
|
-
**/
|
|
1067
|
-
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
1068
|
-
refTime?: any;
|
|
1069
|
-
proofSize?: any;
|
|
1070
|
-
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
1071
|
-
/**
|
|
1072
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
1073
|
-
*
|
|
1074
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
1075
|
-
*
|
|
1076
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
1077
|
-
* has enough votes to be approved or disapproved.
|
|
1078
|
-
*
|
|
1079
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
1080
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
1081
|
-
*
|
|
1082
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
1083
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
1084
|
-
*
|
|
1085
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
1086
|
-
* proposal.
|
|
1087
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
1088
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
1089
|
-
*
|
|
1090
|
-
* ## Complexity
|
|
1091
|
-
* - `O(B + M + P1 + P2)` where:
|
|
1092
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1093
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
1094
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
1095
|
-
* - `P2` is proposal-count (code-bounded)
|
|
1096
|
-
**/
|
|
1097
|
-
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>]>;
|
|
1098
|
-
/**
|
|
1099
|
-
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
1100
|
-
* state.
|
|
1101
|
-
*
|
|
1102
|
-
* Must be called by the Root origin.
|
|
1103
|
-
*
|
|
1104
|
-
* Parameters:
|
|
1105
|
-
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
1106
|
-
*
|
|
1107
|
-
* ## Complexity
|
|
1108
|
-
* O(P) where P is the number of max proposals
|
|
1109
|
-
**/
|
|
1110
|
-
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
1111
|
-
/**
|
|
1112
|
-
* Dispatch a proposal from a member using the `Member` origin.
|
|
1113
|
-
*
|
|
1114
|
-
* Origin must be a member of the collective.
|
|
1115
|
-
*
|
|
1116
|
-
* ## Complexity:
|
|
1117
|
-
* - `O(B + M + P)` where:
|
|
1118
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1119
|
-
* - `M` members-count (code-bounded)
|
|
1120
|
-
* - `P` complexity of dispatching `proposal`
|
|
1121
|
-
**/
|
|
1122
|
-
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
1123
|
-
/**
|
|
1124
|
-
* Add a new proposal to either be voted on or executed directly.
|
|
1125
|
-
*
|
|
1126
|
-
* Requires the sender to be member.
|
|
1127
|
-
*
|
|
1128
|
-
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
1129
|
-
* or put up for voting.
|
|
1130
|
-
*
|
|
1131
|
-
* ## Complexity
|
|
1132
|
-
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
1133
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1134
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
1135
|
-
* - branching is influenced by `threshold` where:
|
|
1136
|
-
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
1137
|
-
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
1138
|
-
**/
|
|
1139
|
-
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
1140
|
-
/**
|
|
1141
|
-
* Set the collective's membership.
|
|
1142
|
-
*
|
|
1143
|
-
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
1144
|
-
* - `prime`: The prime member whose vote sets the default.
|
|
1145
|
-
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
1146
|
-
* weight estimation.
|
|
1147
|
-
*
|
|
1148
|
-
* The dispatch of this call must be `SetMembersOrigin`.
|
|
1149
|
-
*
|
|
1150
|
-
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
1151
|
-
* the weight estimations rely on it to estimate dispatchable weight.
|
|
1152
|
-
*
|
|
1153
|
-
* # WARNING:
|
|
1154
|
-
*
|
|
1155
|
-
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
1156
|
-
* implementation of the trait [`ChangeMembers`].
|
|
1157
|
-
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
1158
|
-
* with other logic managing the member set.
|
|
1159
|
-
*
|
|
1160
|
-
* ## Complexity:
|
|
1161
|
-
* - `O(MP + N)` where:
|
|
1162
|
-
* - `M` old-members-count (code- and governance-bounded)
|
|
1163
|
-
* - `N` new-members-count (code- and governance-bounded)
|
|
1164
|
-
* - `P` proposals-count (code-bounded)
|
|
1165
|
-
**/
|
|
1166
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
1167
|
-
/**
|
|
1168
|
-
* Add an aye or nay vote for the sender to the given proposal.
|
|
1169
|
-
*
|
|
1170
|
-
* Requires the sender to be a member.
|
|
1171
|
-
*
|
|
1172
|
-
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
1173
|
-
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
1174
|
-
* fee.
|
|
1175
|
-
* ## Complexity
|
|
1176
|
-
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
1177
|
-
**/
|
|
1178
|
-
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
1179
|
-
/**
|
|
1180
|
-
* Generic tx
|
|
1181
|
-
**/
|
|
1182
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1183
|
-
};
|
|
1184
1058
|
crowdloan: {
|
|
1185
1059
|
/**
|
|
1186
1060
|
* Add an optional memo to an existing crowdloan contribution.
|
|
@@ -1278,346 +1152,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1278
1152
|
**/
|
|
1279
1153
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1280
1154
|
};
|
|
1281
|
-
democracy: {
|
|
1282
|
-
/**
|
|
1283
|
-
* Permanently place a proposal into the blacklist. This prevents it from ever being
|
|
1284
|
-
* proposed again.
|
|
1285
|
-
*
|
|
1286
|
-
* If called on a queued public or external proposal, then this will result in it being
|
|
1287
|
-
* removed. If the `ref_index` supplied is an active referendum with the proposal hash,
|
|
1288
|
-
* then it will be cancelled.
|
|
1289
|
-
*
|
|
1290
|
-
* The dispatch origin of this call must be `BlacklistOrigin`.
|
|
1291
|
-
*
|
|
1292
|
-
* - `proposal_hash`: The proposal hash to blacklist permanently.
|
|
1293
|
-
* - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be
|
|
1294
|
-
* cancelled.
|
|
1295
|
-
*
|
|
1296
|
-
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
1297
|
-
* reasonable value).
|
|
1298
|
-
**/
|
|
1299
|
-
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
|
|
1300
|
-
/**
|
|
1301
|
-
* Remove a proposal.
|
|
1302
|
-
*
|
|
1303
|
-
* The dispatch origin of this call must be `CancelProposalOrigin`.
|
|
1304
|
-
*
|
|
1305
|
-
* - `prop_index`: The index of the proposal to cancel.
|
|
1306
|
-
*
|
|
1307
|
-
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
|
1308
|
-
**/
|
|
1309
|
-
cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1310
|
-
/**
|
|
1311
|
-
* Remove a referendum.
|
|
1312
|
-
*
|
|
1313
|
-
* The dispatch origin of this call must be _Root_.
|
|
1314
|
-
*
|
|
1315
|
-
* - `ref_index`: The index of the referendum to cancel.
|
|
1316
|
-
*
|
|
1317
|
-
* # Weight: `O(1)`.
|
|
1318
|
-
**/
|
|
1319
|
-
cancelReferendum: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1320
|
-
/**
|
|
1321
|
-
* Clears all public proposals.
|
|
1322
|
-
*
|
|
1323
|
-
* The dispatch origin of this call must be _Root_.
|
|
1324
|
-
*
|
|
1325
|
-
* Weight: `O(1)`.
|
|
1326
|
-
**/
|
|
1327
|
-
clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1328
|
-
/**
|
|
1329
|
-
* Delegate the voting power (with some given conviction) of the sending account.
|
|
1330
|
-
*
|
|
1331
|
-
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
1332
|
-
* time appropriate for the conviction's lock period.
|
|
1333
|
-
*
|
|
1334
|
-
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
1335
|
-
* - be delegating already; or
|
|
1336
|
-
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
1337
|
-
* through `reap_vote` or `unvote`).
|
|
1338
|
-
*
|
|
1339
|
-
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
1340
|
-
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
1341
|
-
* account is undelegated, the funds will be locked for the corresponding period.
|
|
1342
|
-
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
1343
|
-
* be more than the account's current balance.
|
|
1344
|
-
*
|
|
1345
|
-
* Emits `Delegated`.
|
|
1346
|
-
*
|
|
1347
|
-
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
1348
|
-
* voted on. Weight is charged as if maximum votes.
|
|
1349
|
-
**/
|
|
1350
|
-
delegate: AugmentedSubmittable<(to: MultiAddress | {
|
|
1351
|
-
Id: any;
|
|
1352
|
-
} | {
|
|
1353
|
-
Index: any;
|
|
1354
|
-
} | {
|
|
1355
|
-
Raw: any;
|
|
1356
|
-
} | {
|
|
1357
|
-
Address32: any;
|
|
1358
|
-
} | {
|
|
1359
|
-
Address20: any;
|
|
1360
|
-
} | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletDemocracyConviction, u128]>;
|
|
1361
|
-
/**
|
|
1362
|
-
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
|
1363
|
-
* referendum.
|
|
1364
|
-
*
|
|
1365
|
-
* The dispatch origin of this call must be `CancellationOrigin`.
|
|
1366
|
-
*
|
|
1367
|
-
* -`ref_index`: The index of the referendum to cancel.
|
|
1368
|
-
*
|
|
1369
|
-
* Weight: `O(1)`.
|
|
1370
|
-
**/
|
|
1371
|
-
emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1372
|
-
/**
|
|
1373
|
-
* Schedule a referendum to be tabled once it is legal to schedule an external
|
|
1374
|
-
* referendum.
|
|
1375
|
-
*
|
|
1376
|
-
* The dispatch origin of this call must be `ExternalOrigin`.
|
|
1377
|
-
*
|
|
1378
|
-
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1379
|
-
**/
|
|
1380
|
-
externalPropose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
|
|
1381
|
-
Legacy: any;
|
|
1382
|
-
} | {
|
|
1383
|
-
Inline: any;
|
|
1384
|
-
} | {
|
|
1385
|
-
Lookup: any;
|
|
1386
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
|
1387
|
-
/**
|
|
1388
|
-
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
|
1389
|
-
* schedule an external referendum.
|
|
1390
|
-
*
|
|
1391
|
-
* The dispatch of this call must be `ExternalDefaultOrigin`.
|
|
1392
|
-
*
|
|
1393
|
-
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1394
|
-
*
|
|
1395
|
-
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
1396
|
-
* pre-scheduled `external_propose` call.
|
|
1397
|
-
*
|
|
1398
|
-
* Weight: `O(1)`
|
|
1399
|
-
**/
|
|
1400
|
-
externalProposeDefault: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
|
|
1401
|
-
Legacy: any;
|
|
1402
|
-
} | {
|
|
1403
|
-
Inline: any;
|
|
1404
|
-
} | {
|
|
1405
|
-
Lookup: any;
|
|
1406
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
|
1407
|
-
/**
|
|
1408
|
-
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
|
1409
|
-
* an external referendum.
|
|
1410
|
-
*
|
|
1411
|
-
* The dispatch of this call must be `ExternalMajorityOrigin`.
|
|
1412
|
-
*
|
|
1413
|
-
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1414
|
-
*
|
|
1415
|
-
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
1416
|
-
* pre-scheduled `external_propose` call.
|
|
1417
|
-
*
|
|
1418
|
-
* Weight: `O(1)`
|
|
1419
|
-
**/
|
|
1420
|
-
externalProposeMajority: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
|
|
1421
|
-
Legacy: any;
|
|
1422
|
-
} | {
|
|
1423
|
-
Inline: any;
|
|
1424
|
-
} | {
|
|
1425
|
-
Lookup: any;
|
|
1426
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
|
1427
|
-
/**
|
|
1428
|
-
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
|
1429
|
-
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
|
1430
|
-
* but it is not a majority-carries referendum then it fails.
|
|
1431
|
-
*
|
|
1432
|
-
* The dispatch of this call must be `FastTrackOrigin`.
|
|
1433
|
-
*
|
|
1434
|
-
* - `proposal_hash`: The hash of the current external proposal.
|
|
1435
|
-
* - `voting_period`: The period that is allowed for voting on this proposal. Increased to
|
|
1436
|
-
* Must be always greater than zero.
|
|
1437
|
-
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
|
1438
|
-
* - `delay`: The number of block after voting has ended in approval and this should be
|
|
1439
|
-
* enacted. This doesn't have a minimum amount.
|
|
1440
|
-
*
|
|
1441
|
-
* Emits `Started`.
|
|
1442
|
-
*
|
|
1443
|
-
* Weight: `O(1)`
|
|
1444
|
-
**/
|
|
1445
|
-
fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
|
|
1446
|
-
/**
|
|
1447
|
-
* Propose a sensitive action to be taken.
|
|
1448
|
-
*
|
|
1449
|
-
* The dispatch origin of this call must be _Signed_ and the sender must
|
|
1450
|
-
* have funds to cover the deposit.
|
|
1451
|
-
*
|
|
1452
|
-
* - `proposal_hash`: The hash of the proposal preimage.
|
|
1453
|
-
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
|
1454
|
-
*
|
|
1455
|
-
* Emits `Proposed`.
|
|
1456
|
-
**/
|
|
1457
|
-
propose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
|
|
1458
|
-
Legacy: any;
|
|
1459
|
-
} | {
|
|
1460
|
-
Inline: any;
|
|
1461
|
-
} | {
|
|
1462
|
-
Lookup: any;
|
|
1463
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded, Compact<u128>]>;
|
|
1464
|
-
/**
|
|
1465
|
-
* Remove a vote for a referendum.
|
|
1466
|
-
*
|
|
1467
|
-
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
1468
|
-
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
1469
|
-
* either because the referendum was cancelled, because the voter lost the referendum or
|
|
1470
|
-
* because the conviction period is over.
|
|
1471
|
-
*
|
|
1472
|
-
* The dispatch origin of this call must be _Signed_.
|
|
1473
|
-
*
|
|
1474
|
-
* - `target`: The account of the vote to be removed; this account must have voted for
|
|
1475
|
-
* referendum `index`.
|
|
1476
|
-
* - `index`: The index of referendum of the vote to be removed.
|
|
1477
|
-
*
|
|
1478
|
-
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
1479
|
-
* Weight is calculated for the maximum number of vote.
|
|
1480
|
-
**/
|
|
1481
|
-
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | {
|
|
1482
|
-
Id: any;
|
|
1483
|
-
} | {
|
|
1484
|
-
Index: any;
|
|
1485
|
-
} | {
|
|
1486
|
-
Raw: any;
|
|
1487
|
-
} | {
|
|
1488
|
-
Address32: any;
|
|
1489
|
-
} | {
|
|
1490
|
-
Address20: any;
|
|
1491
|
-
} | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
|
|
1492
|
-
/**
|
|
1493
|
-
* Remove a vote for a referendum.
|
|
1494
|
-
*
|
|
1495
|
-
* If:
|
|
1496
|
-
* - the referendum was cancelled, or
|
|
1497
|
-
* - the referendum is ongoing, or
|
|
1498
|
-
* - the referendum has ended such that
|
|
1499
|
-
* - the vote of the account was in opposition to the result; or
|
|
1500
|
-
* - there was no conviction to the account's vote; or
|
|
1501
|
-
* - the account made a split vote
|
|
1502
|
-
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
1503
|
-
* funds being available.
|
|
1504
|
-
*
|
|
1505
|
-
* If, however, the referendum has ended and:
|
|
1506
|
-
* - it finished corresponding to the vote of the account, and
|
|
1507
|
-
* - the account made a standard vote with conviction, and
|
|
1508
|
-
* - the lock period of the conviction is not over
|
|
1509
|
-
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
1510
|
-
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
1511
|
-
* of both the amount locked and the time is it locked for).
|
|
1512
|
-
*
|
|
1513
|
-
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
1514
|
-
* registered for referendum `index`.
|
|
1515
|
-
*
|
|
1516
|
-
* - `index`: The index of referendum of the vote to be removed.
|
|
1517
|
-
*
|
|
1518
|
-
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
1519
|
-
* Weight is calculated for the maximum number of vote.
|
|
1520
|
-
**/
|
|
1521
|
-
removeVote: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1522
|
-
/**
|
|
1523
|
-
* Signals agreement with a particular proposal.
|
|
1524
|
-
*
|
|
1525
|
-
* The dispatch origin of this call must be _Signed_ and the sender
|
|
1526
|
-
* must have funds to cover the deposit, equal to the original deposit.
|
|
1527
|
-
*
|
|
1528
|
-
* - `proposal`: The index of the proposal to second.
|
|
1529
|
-
**/
|
|
1530
|
-
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1531
|
-
/**
|
|
1532
|
-
* Set or clear a metadata of a proposal or a referendum.
|
|
1533
|
-
*
|
|
1534
|
-
* Parameters:
|
|
1535
|
-
* - `origin`: Must correspond to the `MetadataOwner`.
|
|
1536
|
-
* - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
|
|
1537
|
-
* threshold.
|
|
1538
|
-
* - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
|
|
1539
|
-
* threshold.
|
|
1540
|
-
* - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
|
|
1541
|
-
* threshold.
|
|
1542
|
-
* - `Signed` by a creator for a public proposal.
|
|
1543
|
-
* - `Signed` to clear a metadata for a finished referendum.
|
|
1544
|
-
* - `Root` to set a metadata for an ongoing referendum.
|
|
1545
|
-
* - `owner`: an identifier of a metadata owner.
|
|
1546
|
-
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
|
1547
|
-
**/
|
|
1548
|
-
setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | {
|
|
1549
|
-
External: any;
|
|
1550
|
-
} | {
|
|
1551
|
-
Proposal: any;
|
|
1552
|
-
} | {
|
|
1553
|
-
Referendum: any;
|
|
1554
|
-
} | string | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [PalletDemocracyMetadataOwner, Option<H256>]>;
|
|
1555
|
-
/**
|
|
1556
|
-
* Undelegate the voting power of the sending account.
|
|
1557
|
-
*
|
|
1558
|
-
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
1559
|
-
* of the conviction with which the delegation was issued.
|
|
1560
|
-
*
|
|
1561
|
-
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
1562
|
-
* currently delegating.
|
|
1563
|
-
*
|
|
1564
|
-
* Emits `Undelegated`.
|
|
1565
|
-
*
|
|
1566
|
-
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
1567
|
-
* voted on. Weight is charged as if maximum votes.
|
|
1568
|
-
**/
|
|
1569
|
-
undelegate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1570
|
-
/**
|
|
1571
|
-
* Unlock tokens that have an expired lock.
|
|
1572
|
-
*
|
|
1573
|
-
* The dispatch origin of this call must be _Signed_.
|
|
1574
|
-
*
|
|
1575
|
-
* - `target`: The account to remove the lock on.
|
|
1576
|
-
*
|
|
1577
|
-
* Weight: `O(R)` with R number of vote of target.
|
|
1578
|
-
**/
|
|
1579
|
-
unlock: AugmentedSubmittable<(target: MultiAddress | {
|
|
1580
|
-
Id: any;
|
|
1581
|
-
} | {
|
|
1582
|
-
Index: any;
|
|
1583
|
-
} | {
|
|
1584
|
-
Raw: any;
|
|
1585
|
-
} | {
|
|
1586
|
-
Address32: any;
|
|
1587
|
-
} | {
|
|
1588
|
-
Address20: any;
|
|
1589
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1590
|
-
/**
|
|
1591
|
-
* Veto and blacklist the external proposal hash.
|
|
1592
|
-
*
|
|
1593
|
-
* The dispatch origin of this call must be `VetoOrigin`.
|
|
1594
|
-
*
|
|
1595
|
-
* - `proposal_hash`: The preimage hash of the proposal to veto and blacklist.
|
|
1596
|
-
*
|
|
1597
|
-
* Emits `Vetoed`.
|
|
1598
|
-
*
|
|
1599
|
-
* Weight: `O(V + log(V))` where V is number of `existing vetoers`
|
|
1600
|
-
**/
|
|
1601
|
-
vetoExternal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
1602
|
-
/**
|
|
1603
|
-
* Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
1604
|
-
* otherwise it is a vote to keep the status quo.
|
|
1605
|
-
*
|
|
1606
|
-
* The dispatch origin of this call must be _Signed_.
|
|
1607
|
-
*
|
|
1608
|
-
* - `ref_index`: The index of the referendum to vote for.
|
|
1609
|
-
* - `vote`: The vote configuration.
|
|
1610
|
-
**/
|
|
1611
|
-
vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | {
|
|
1612
|
-
Standard: any;
|
|
1613
|
-
} | {
|
|
1614
|
-
Split: any;
|
|
1615
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletDemocracyVoteAccountVote]>;
|
|
1616
|
-
/**
|
|
1617
|
-
* Generic tx
|
|
1618
|
-
**/
|
|
1619
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1620
|
-
};
|
|
1621
1155
|
dmp: {
|
|
1622
1156
|
/**
|
|
1623
1157
|
* Generic tx
|
|
@@ -1952,10 +1486,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1952
1486
|
system: any;
|
|
1953
1487
|
} | {
|
|
1954
1488
|
Void: any;
|
|
1955
|
-
} | {
|
|
1956
|
-
Council: any;
|
|
1957
|
-
} | {
|
|
1958
|
-
TechnicalCommittee: any;
|
|
1959
1489
|
} | {
|
|
1960
1490
|
Origins: any;
|
|
1961
1491
|
} | {
|
|
@@ -2819,11 +2349,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2819
2349
|
};
|
|
2820
2350
|
nisCounterpartBalances: {
|
|
2821
2351
|
/**
|
|
2822
|
-
*
|
|
2823
|
-
*
|
|
2824
|
-
*
|
|
2825
|
-
|
|
2826
|
-
|
|
2352
|
+
* Set the regular balance of a given account.
|
|
2353
|
+
*
|
|
2354
|
+
* The dispatch origin for this call is `root`.
|
|
2355
|
+
**/
|
|
2356
|
+
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
|
|
2357
|
+
Id: any;
|
|
2358
|
+
} | {
|
|
2359
|
+
Index: any;
|
|
2360
|
+
} | {
|
|
2361
|
+
Raw: any;
|
|
2362
|
+
} | {
|
|
2363
|
+
Address32: any;
|
|
2364
|
+
} | {
|
|
2365
|
+
Address20: any;
|
|
2366
|
+
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
2367
|
+
/**
|
|
2368
|
+
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
2369
|
+
* may be specified.
|
|
2827
2370
|
**/
|
|
2828
2371
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
2829
2372
|
Id: any;
|
|
@@ -2863,16 +2406,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2863
2406
|
Address20: any;
|
|
2864
2407
|
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
|
2865
2408
|
/**
|
|
2866
|
-
* Set the
|
|
2867
|
-
*
|
|
2868
|
-
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
|
2869
|
-
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
|
2870
|
-
* If the new free or reserved balance is below the existential deposit,
|
|
2871
|
-
* it will reset the account nonce (`frame_system::AccountNonce`).
|
|
2409
|
+
* Set the regular balance of a given account; it also takes a reserved balance but this
|
|
2410
|
+
* must be the same as the account's current reserved balance.
|
|
2872
2411
|
*
|
|
2873
2412
|
* The dispatch origin for this call is `root`.
|
|
2413
|
+
*
|
|
2414
|
+
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
|
2874
2415
|
**/
|
|
2875
|
-
|
|
2416
|
+
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | {
|
|
2876
2417
|
Id: any;
|
|
2877
2418
|
} | {
|
|
2878
2419
|
Index: any;
|
|
@@ -2882,30 +2423,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2882
2423
|
Address32: any;
|
|
2883
2424
|
} | {
|
|
2884
2425
|
Address20: any;
|
|
2885
|
-
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array,
|
|
2426
|
+
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
|
2886
2427
|
/**
|
|
2887
|
-
*
|
|
2888
|
-
*
|
|
2889
|
-
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
|
2890
|
-
* If the sender's account is below the existential deposit as a result
|
|
2891
|
-
* of the transfer, the account will be reaped.
|
|
2428
|
+
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
|
2892
2429
|
*
|
|
2893
|
-
*
|
|
2894
|
-
*
|
|
2895
|
-
* ## Complexity
|
|
2896
|
-
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
2897
|
-
* types. See related functions below.
|
|
2898
|
-
* - It contains a limited number of reads and writes internally and no complex
|
|
2899
|
-
* computation.
|
|
2900
|
-
*
|
|
2901
|
-
* Related functions:
|
|
2902
|
-
*
|
|
2903
|
-
* - `ensure_can_withdraw` is always called internally but has a bounded complexity.
|
|
2904
|
-
* - Transferring balances to accounts that did not exist before will cause
|
|
2905
|
-
* `T::OnNewAccount::on_new_account` to be called.
|
|
2906
|
-
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
2907
|
-
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
2908
|
-
* that the transfer will not kill the origin account.
|
|
2430
|
+
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
|
2909
2431
|
**/
|
|
2910
2432
|
transfer: AugmentedSubmittable<(dest: MultiAddress | {
|
|
2911
2433
|
Id: any;
|
|
@@ -2933,8 +2455,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2933
2455
|
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
2934
2456
|
* of the funds the account has, causing the sender account to be killed (false), or
|
|
2935
2457
|
* transfer everything except at least the existential deposit, which will guarantee to
|
|
2936
|
-
* keep the sender account alive (true).
|
|
2937
|
-
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
2458
|
+
* keep the sender account alive (true).
|
|
2938
2459
|
**/
|
|
2939
2460
|
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
2940
2461
|
Id: any;
|
|
@@ -2948,12 +2469,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2948
2469
|
Address20: any;
|
|
2949
2470
|
} | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
2950
2471
|
/**
|
|
2951
|
-
*
|
|
2952
|
-
*
|
|
2472
|
+
* Transfer some liquid free balance to another account.
|
|
2473
|
+
*
|
|
2474
|
+
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
2475
|
+
* If the sender's account is below the existential deposit as a result
|
|
2476
|
+
* of the transfer, the account will be reaped.
|
|
2477
|
+
*
|
|
2478
|
+
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
2479
|
+
**/
|
|
2480
|
+
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
|
|
2481
|
+
Id: any;
|
|
2482
|
+
} | {
|
|
2483
|
+
Index: any;
|
|
2484
|
+
} | {
|
|
2485
|
+
Raw: any;
|
|
2486
|
+
} | {
|
|
2487
|
+
Address32: any;
|
|
2488
|
+
} | {
|
|
2489
|
+
Address20: any;
|
|
2490
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
2491
|
+
/**
|
|
2492
|
+
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
2493
|
+
* kill the origin account.
|
|
2953
2494
|
*
|
|
2954
|
-
* 99% of the time you want [`
|
|
2495
|
+
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
2955
2496
|
*
|
|
2956
|
-
* [`
|
|
2497
|
+
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
2957
2498
|
**/
|
|
2958
2499
|
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
|
|
2959
2500
|
Id: any;
|
|
@@ -2966,6 +2507,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2966
2507
|
} | {
|
|
2967
2508
|
Address20: any;
|
|
2968
2509
|
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
2510
|
+
/**
|
|
2511
|
+
* Upgrade a specified account.
|
|
2512
|
+
*
|
|
2513
|
+
* - `origin`: Must be `Signed`.
|
|
2514
|
+
* - `who`: The account to be upgraded.
|
|
2515
|
+
*
|
|
2516
|
+
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
2517
|
+
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
2518
|
+
* possibililty of churn).
|
|
2519
|
+
**/
|
|
2520
|
+
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
2969
2521
|
/**
|
|
2970
2522
|
* Generic tx
|
|
2971
2523
|
**/
|
|
@@ -3022,9 +2574,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3022
2574
|
* account.
|
|
3023
2575
|
**/
|
|
3024
2576
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2577
|
+
/**
|
|
2578
|
+
* Claim pending commission.
|
|
2579
|
+
*
|
|
2580
|
+
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
|
2581
|
+
* commission is paid out and added to total claimed commission`. Total pending commission
|
|
2582
|
+
* is reset to zero. the current.
|
|
2583
|
+
**/
|
|
2584
|
+
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3025
2585
|
/**
|
|
3026
2586
|
* A bonded member can use this to claim their payout based on the rewards that the pool
|
|
3027
|
-
* has accumulated since their last claimed payout (OR since joining if this is
|
|
2587
|
+
* has accumulated since their last claimed payout (OR since joining if this is their first
|
|
3028
2588
|
* time claiming rewards). The payout will be transferred to the member's account.
|
|
3029
2589
|
*
|
|
3030
2590
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
@@ -3176,6 +2736,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3176
2736
|
* * `actor` - Account to claim reward. // improve this
|
|
3177
2737
|
**/
|
|
3178
2738
|
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
2739
|
+
/**
|
|
2740
|
+
* Set the commission of a pool.
|
|
2741
|
+
* Both a commission percentage and a commission payee must be provided in the `current`
|
|
2742
|
+
* tuple. Where a `current` of `None` is provided, any current commission will be removed.
|
|
2743
|
+
*
|
|
2744
|
+
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
|
2745
|
+
**/
|
|
2746
|
+
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]>>]>;
|
|
2747
|
+
/**
|
|
2748
|
+
* Set the commission change rate for a pool.
|
|
2749
|
+
*
|
|
2750
|
+
* Initial change rate is not bounded, whereas subsequent updates can only be more
|
|
2751
|
+
* restrictive than the current.
|
|
2752
|
+
**/
|
|
2753
|
+
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | {
|
|
2754
|
+
maxIncrease?: any;
|
|
2755
|
+
minDelay?: any;
|
|
2756
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
|
2757
|
+
/**
|
|
2758
|
+
* Set the maximum commission of a pool.
|
|
2759
|
+
*
|
|
2760
|
+
* - Initial max can be set to any `Perbill`, and only smaller values thereafter.
|
|
2761
|
+
* - Current commission will be lowered in the event it is higher than a new max
|
|
2762
|
+
* commission.
|
|
2763
|
+
**/
|
|
2764
|
+
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
|
3179
2765
|
/**
|
|
3180
2766
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
3181
2767
|
* Root.
|
|
@@ -3187,6 +2773,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3187
2773
|
* * `max_pools` - Set [`MaxPools`].
|
|
3188
2774
|
* * `max_members` - Set [`MaxPoolMembers`].
|
|
3189
2775
|
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
|
2776
|
+
* * `global_max_commission` - Set [`GlobalMaxCommission`].
|
|
3190
2777
|
**/
|
|
3191
2778
|
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | {
|
|
3192
2779
|
Noop: any;
|
|
@@ -3218,12 +2805,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3218
2805
|
Set: any;
|
|
3219
2806
|
} | {
|
|
3220
2807
|
Remove: any;
|
|
3221
|
-
} | string | Uint8Array
|
|
2808
|
+
} | string | Uint8Array, globalMaxCommission: PalletNominationPoolsConfigOpPerbill | {
|
|
2809
|
+
Noop: any;
|
|
2810
|
+
} | {
|
|
2811
|
+
Set: any;
|
|
2812
|
+
} | {
|
|
2813
|
+
Remove: any;
|
|
2814
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill]>;
|
|
3222
2815
|
/**
|
|
3223
2816
|
* Set a new metadata for the pool.
|
|
3224
2817
|
*
|
|
3225
|
-
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
3226
|
-
*
|
|
2818
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role of the
|
|
2819
|
+
* pool.
|
|
3227
2820
|
**/
|
|
3228
2821
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
3229
2822
|
/**
|
|
@@ -3358,12 +2951,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3358
2951
|
/**
|
|
3359
2952
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
3360
2953
|
**/
|
|
3361
|
-
enter: AugmentedSubmittable<(data:
|
|
2954
|
+
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV4InherentData | {
|
|
3362
2955
|
bitfields?: any;
|
|
3363
2956
|
backedCandidates?: any;
|
|
3364
2957
|
disputes?: any;
|
|
3365
2958
|
parentHeader?: any;
|
|
3366
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2959
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4InherentData]>;
|
|
3367
2960
|
/**
|
|
3368
2961
|
* Generic tx
|
|
3369
2962
|
**/
|
|
@@ -3412,12 +3005,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3412
3005
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
3413
3006
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
3414
3007
|
**/
|
|
3415
|
-
includePvfCheckStatement: AugmentedSubmittable<(stmt:
|
|
3008
|
+
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV4PvfCheckStatement | {
|
|
3416
3009
|
accept?: any;
|
|
3417
3010
|
subject?: any;
|
|
3418
3011
|
sessionIndex?: any;
|
|
3419
3012
|
validatorIndex?: any;
|
|
3420
|
-
} | string | Uint8Array, signature:
|
|
3013
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV4ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature]>;
|
|
3421
3014
|
/**
|
|
3422
3015
|
* Remove the validation code from the storage iff the reference count is 0.
|
|
3423
3016
|
*
|
|
@@ -3428,141 +3021,33 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3428
3021
|
pokeUnusedValidationCode: AugmentedSubmittable<(validationCodeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
3429
3022
|
/**
|
|
3430
3023
|
* Generic tx
|
|
3431
|
-
**/
|
|
3432
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3433
|
-
};
|
|
3434
|
-
parasDisputes: {
|
|
3435
|
-
forceUnfreeze: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3436
|
-
/**
|
|
3437
|
-
* Generic tx
|
|
3438
|
-
**/
|
|
3439
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3440
|
-
};
|
|
3441
|
-
parasShared: {
|
|
3442
|
-
/**
|
|
3443
|
-
* Generic tx
|
|
3444
|
-
**/
|
|
3445
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3446
|
-
};
|
|
3447
|
-
phragmenElection: {
|
|
3448
|
-
/**
|
|
3449
|
-
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
|
3450
|
-
* deposit of the removed voters are returned.
|
|
3451
|
-
*
|
|
3452
|
-
* This is an root function to be used only for cleaning the state.
|
|
3453
|
-
*
|
|
3454
|
-
* The dispatch origin of this call must be root.
|
|
3455
|
-
*
|
|
3456
|
-
* ## Complexity
|
|
3457
|
-
* - Check is_defunct_voter() details.
|
|
3458
|
-
**/
|
|
3459
|
-
cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3460
|
-
/**
|
|
3461
|
-
* Remove a particular member from the set. This is effective immediately and the bond of
|
|
3462
|
-
* the outgoing member is slashed.
|
|
3463
|
-
*
|
|
3464
|
-
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
3465
|
-
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
3466
|
-
* started, else, nothing happens.
|
|
3467
|
-
*
|
|
3468
|
-
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
3469
|
-
* it is returned.
|
|
3470
|
-
*
|
|
3471
|
-
* The dispatch origin of this call must be root.
|
|
3472
|
-
*
|
|
3473
|
-
* Note that this does not affect the designated block number of the next election.
|
|
3474
|
-
*
|
|
3475
|
-
* ## Complexity
|
|
3476
|
-
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
3477
|
-
**/
|
|
3478
|
-
removeMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
3479
|
-
Id: any;
|
|
3480
|
-
} | {
|
|
3481
|
-
Index: any;
|
|
3482
|
-
} | {
|
|
3483
|
-
Raw: any;
|
|
3484
|
-
} | {
|
|
3485
|
-
Address32: any;
|
|
3486
|
-
} | {
|
|
3487
|
-
Address20: any;
|
|
3488
|
-
} | string | Uint8Array, slashBond: bool | boolean | Uint8Array, rerunElection: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool, bool]>;
|
|
3489
|
-
/**
|
|
3490
|
-
* Remove `origin` as a voter.
|
|
3491
|
-
*
|
|
3492
|
-
* This removes the lock and returns the deposit.
|
|
3493
|
-
*
|
|
3494
|
-
* The dispatch origin of this call must be signed and be a voter.
|
|
3495
|
-
**/
|
|
3496
|
-
removeVoter: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3497
|
-
/**
|
|
3498
|
-
* Renounce one's intention to be a candidate for the next election round. 3 potential
|
|
3499
|
-
* outcomes exist:
|
|
3500
|
-
*
|
|
3501
|
-
* - `origin` is a candidate and not elected in any set. In this case, the deposit is
|
|
3502
|
-
* unreserved, returned and origin is removed as a candidate.
|
|
3503
|
-
* - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
|
|
3504
|
-
* origin is removed as a runner-up.
|
|
3505
|
-
* - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
|
3506
|
-
* removed as a member, consequently not being a candidate for the next round anymore.
|
|
3507
|
-
* Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
|
3508
|
-
* are immediately used. If the prime is renouncing, then no prime will exist until the
|
|
3509
|
-
* next round.
|
|
3510
|
-
*
|
|
3511
|
-
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
3512
|
-
* The type of renouncing must be provided as witness data.
|
|
3513
|
-
*
|
|
3514
|
-
* ## Complexity
|
|
3515
|
-
* - Renouncing::Candidate(count): O(count + log(count))
|
|
3516
|
-
* - Renouncing::Member: O(1)
|
|
3517
|
-
* - Renouncing::RunnerUp: O(1)
|
|
3518
|
-
**/
|
|
3519
|
-
renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
|
|
3520
|
-
Member: any;
|
|
3521
|
-
} | {
|
|
3522
|
-
RunnerUp: any;
|
|
3523
|
-
} | {
|
|
3524
|
-
Candidate: any;
|
|
3525
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionsPhragmenRenouncing]>;
|
|
3024
|
+
**/
|
|
3025
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3026
|
+
};
|
|
3027
|
+
parasDisputes: {
|
|
3028
|
+
forceUnfreeze: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3526
3029
|
/**
|
|
3527
|
-
*
|
|
3528
|
-
*
|
|
3529
|
-
* All candidates are wiped at the end of the term. They either become a member/runner-up,
|
|
3530
|
-
* or leave the system while their deposit is slashed.
|
|
3531
|
-
*
|
|
3532
|
-
* The dispatch origin of this call must be signed.
|
|
3533
|
-
*
|
|
3534
|
-
* ### Warning
|
|
3535
|
-
*
|
|
3536
|
-
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
3537
|
-
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
3538
|
-
*
|
|
3539
|
-
* The number of current candidates must be provided as witness data.
|
|
3540
|
-
* ## Complexity
|
|
3541
|
-
* O(C + log(C)) where C is candidate_count.
|
|
3030
|
+
* Generic tx
|
|
3542
3031
|
**/
|
|
3543
|
-
|
|
3032
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3033
|
+
};
|
|
3034
|
+
parasShared: {
|
|
3544
3035
|
/**
|
|
3545
|
-
*
|
|
3546
|
-
* set the initial votes, or update already existing votes.
|
|
3547
|
-
*
|
|
3548
|
-
* Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
|
|
3549
|
-
* reserved. The deposit is based on the number of votes and can be updated over time.
|
|
3550
|
-
*
|
|
3551
|
-
* The `votes` should:
|
|
3552
|
-
* - not be empty.
|
|
3553
|
-
* - be less than the number of possible candidates. Note that all current members and
|
|
3554
|
-
* runners-up are also automatically candidates for the next round.
|
|
3555
|
-
*
|
|
3556
|
-
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
|
3557
|
-
*
|
|
3558
|
-
* The dispatch origin of this call must be signed.
|
|
3559
|
-
*
|
|
3560
|
-
* ### Warning
|
|
3561
|
-
*
|
|
3562
|
-
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
3563
|
-
* lock and keep some for further operations.
|
|
3036
|
+
* Generic tx
|
|
3564
3037
|
**/
|
|
3565
|
-
|
|
3038
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3039
|
+
};
|
|
3040
|
+
parasSlashing: {
|
|
3041
|
+
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof: PolkadotRuntimeParachainsDisputesSlashingDisputeProof | {
|
|
3042
|
+
timeSlot?: any;
|
|
3043
|
+
kind?: any;
|
|
3044
|
+
validatorIndex?: any;
|
|
3045
|
+
validatorId?: any;
|
|
3046
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
3047
|
+
session?: any;
|
|
3048
|
+
trieNodes?: any;
|
|
3049
|
+
validatorCount?: any;
|
|
3050
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeParachainsDisputesSlashingDisputeProof, SpSessionMembershipProof]>;
|
|
3566
3051
|
/**
|
|
3567
3052
|
* Generic tx
|
|
3568
3053
|
**/
|
|
@@ -4150,10 +3635,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4150
3635
|
system: any;
|
|
4151
3636
|
} | {
|
|
4152
3637
|
Void: any;
|
|
4153
|
-
} | {
|
|
4154
|
-
Council: any;
|
|
4155
|
-
} | {
|
|
4156
|
-
TechnicalCommittee: any;
|
|
4157
3638
|
} | {
|
|
4158
3639
|
Origins: any;
|
|
4159
3640
|
} | {
|
|
@@ -5142,263 +4623,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5142
4623
|
**/
|
|
5143
4624
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5144
4625
|
};
|
|
5145
|
-
technicalCommittee: {
|
|
5146
|
-
/**
|
|
5147
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
5148
|
-
*
|
|
5149
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
5150
|
-
*
|
|
5151
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
5152
|
-
* has enough votes to be approved or disapproved.
|
|
5153
|
-
*
|
|
5154
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
5155
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
5156
|
-
*
|
|
5157
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
5158
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
5159
|
-
*
|
|
5160
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
5161
|
-
* proposal.
|
|
5162
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
5163
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
5164
|
-
*
|
|
5165
|
-
* ## Complexity
|
|
5166
|
-
* - `O(B + M + P1 + P2)` where:
|
|
5167
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5168
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
5169
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
5170
|
-
* - `P2` is proposal-count (code-bounded)
|
|
5171
|
-
**/
|
|
5172
|
-
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
5173
|
-
refTime?: any;
|
|
5174
|
-
proofSize?: any;
|
|
5175
|
-
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
5176
|
-
/**
|
|
5177
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
5178
|
-
*
|
|
5179
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
5180
|
-
*
|
|
5181
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
5182
|
-
* has enough votes to be approved or disapproved.
|
|
5183
|
-
*
|
|
5184
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
5185
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
5186
|
-
*
|
|
5187
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
5188
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
5189
|
-
*
|
|
5190
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
5191
|
-
* proposal.
|
|
5192
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
5193
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
5194
|
-
*
|
|
5195
|
-
* ## Complexity
|
|
5196
|
-
* - `O(B + M + P1 + P2)` where:
|
|
5197
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5198
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
5199
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
5200
|
-
* - `P2` is proposal-count (code-bounded)
|
|
5201
|
-
**/
|
|
5202
|
-
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>]>;
|
|
5203
|
-
/**
|
|
5204
|
-
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
5205
|
-
* state.
|
|
5206
|
-
*
|
|
5207
|
-
* Must be called by the Root origin.
|
|
5208
|
-
*
|
|
5209
|
-
* Parameters:
|
|
5210
|
-
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
5211
|
-
*
|
|
5212
|
-
* ## Complexity
|
|
5213
|
-
* O(P) where P is the number of max proposals
|
|
5214
|
-
**/
|
|
5215
|
-
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5216
|
-
/**
|
|
5217
|
-
* Dispatch a proposal from a member using the `Member` origin.
|
|
5218
|
-
*
|
|
5219
|
-
* Origin must be a member of the collective.
|
|
5220
|
-
*
|
|
5221
|
-
* ## Complexity:
|
|
5222
|
-
* - `O(B + M + P)` where:
|
|
5223
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5224
|
-
* - `M` members-count (code-bounded)
|
|
5225
|
-
* - `P` complexity of dispatching `proposal`
|
|
5226
|
-
**/
|
|
5227
|
-
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
5228
|
-
/**
|
|
5229
|
-
* Add a new proposal to either be voted on or executed directly.
|
|
5230
|
-
*
|
|
5231
|
-
* Requires the sender to be member.
|
|
5232
|
-
*
|
|
5233
|
-
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
5234
|
-
* or put up for voting.
|
|
5235
|
-
*
|
|
5236
|
-
* ## Complexity
|
|
5237
|
-
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
5238
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5239
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
5240
|
-
* - branching is influenced by `threshold` where:
|
|
5241
|
-
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
5242
|
-
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
5243
|
-
**/
|
|
5244
|
-
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
5245
|
-
/**
|
|
5246
|
-
* Set the collective's membership.
|
|
5247
|
-
*
|
|
5248
|
-
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
5249
|
-
* - `prime`: The prime member whose vote sets the default.
|
|
5250
|
-
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
5251
|
-
* weight estimation.
|
|
5252
|
-
*
|
|
5253
|
-
* The dispatch of this call must be `SetMembersOrigin`.
|
|
5254
|
-
*
|
|
5255
|
-
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
5256
|
-
* the weight estimations rely on it to estimate dispatchable weight.
|
|
5257
|
-
*
|
|
5258
|
-
* # WARNING:
|
|
5259
|
-
*
|
|
5260
|
-
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
5261
|
-
* implementation of the trait [`ChangeMembers`].
|
|
5262
|
-
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
5263
|
-
* with other logic managing the member set.
|
|
5264
|
-
*
|
|
5265
|
-
* ## Complexity:
|
|
5266
|
-
* - `O(MP + N)` where:
|
|
5267
|
-
* - `M` old-members-count (code- and governance-bounded)
|
|
5268
|
-
* - `N` new-members-count (code- and governance-bounded)
|
|
5269
|
-
* - `P` proposals-count (code-bounded)
|
|
5270
|
-
**/
|
|
5271
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
5272
|
-
/**
|
|
5273
|
-
* Add an aye or nay vote for the sender to the given proposal.
|
|
5274
|
-
*
|
|
5275
|
-
* Requires the sender to be a member.
|
|
5276
|
-
*
|
|
5277
|
-
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
5278
|
-
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
5279
|
-
* fee.
|
|
5280
|
-
* ## Complexity
|
|
5281
|
-
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
5282
|
-
**/
|
|
5283
|
-
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
5284
|
-
/**
|
|
5285
|
-
* Generic tx
|
|
5286
|
-
**/
|
|
5287
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5288
|
-
};
|
|
5289
|
-
technicalMembership: {
|
|
5290
|
-
/**
|
|
5291
|
-
* Add a member `who` to the set.
|
|
5292
|
-
*
|
|
5293
|
-
* May only be called from `T::AddOrigin`.
|
|
5294
|
-
**/
|
|
5295
|
-
addMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
5296
|
-
Id: any;
|
|
5297
|
-
} | {
|
|
5298
|
-
Index: any;
|
|
5299
|
-
} | {
|
|
5300
|
-
Raw: any;
|
|
5301
|
-
} | {
|
|
5302
|
-
Address32: any;
|
|
5303
|
-
} | {
|
|
5304
|
-
Address20: any;
|
|
5305
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
5306
|
-
/**
|
|
5307
|
-
* Swap out the sending member for some other key `new`.
|
|
5308
|
-
*
|
|
5309
|
-
* May only be called from `Signed` origin of a current member.
|
|
5310
|
-
*
|
|
5311
|
-
* Prime membership is passed from the origin account to `new`, if extant.
|
|
5312
|
-
**/
|
|
5313
|
-
changeKey: AugmentedSubmittable<(updated: MultiAddress | {
|
|
5314
|
-
Id: any;
|
|
5315
|
-
} | {
|
|
5316
|
-
Index: any;
|
|
5317
|
-
} | {
|
|
5318
|
-
Raw: any;
|
|
5319
|
-
} | {
|
|
5320
|
-
Address32: any;
|
|
5321
|
-
} | {
|
|
5322
|
-
Address20: any;
|
|
5323
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
5324
|
-
/**
|
|
5325
|
-
* Remove the prime member if it exists.
|
|
5326
|
-
*
|
|
5327
|
-
* May only be called from `T::PrimeOrigin`.
|
|
5328
|
-
**/
|
|
5329
|
-
clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5330
|
-
/**
|
|
5331
|
-
* Remove a member `who` from the set.
|
|
5332
|
-
*
|
|
5333
|
-
* May only be called from `T::RemoveOrigin`.
|
|
5334
|
-
**/
|
|
5335
|
-
removeMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
5336
|
-
Id: any;
|
|
5337
|
-
} | {
|
|
5338
|
-
Index: any;
|
|
5339
|
-
} | {
|
|
5340
|
-
Raw: any;
|
|
5341
|
-
} | {
|
|
5342
|
-
Address32: any;
|
|
5343
|
-
} | {
|
|
5344
|
-
Address20: any;
|
|
5345
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
5346
|
-
/**
|
|
5347
|
-
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
|
5348
|
-
* pass `members` pre-sorted.
|
|
5349
|
-
*
|
|
5350
|
-
* May only be called from `T::ResetOrigin`.
|
|
5351
|
-
**/
|
|
5352
|
-
resetMembers: AugmentedSubmittable<(members: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
5353
|
-
/**
|
|
5354
|
-
* Set the prime member. Must be a current member.
|
|
5355
|
-
*
|
|
5356
|
-
* May only be called from `T::PrimeOrigin`.
|
|
5357
|
-
**/
|
|
5358
|
-
setPrime: AugmentedSubmittable<(who: MultiAddress | {
|
|
5359
|
-
Id: any;
|
|
5360
|
-
} | {
|
|
5361
|
-
Index: any;
|
|
5362
|
-
} | {
|
|
5363
|
-
Raw: any;
|
|
5364
|
-
} | {
|
|
5365
|
-
Address32: any;
|
|
5366
|
-
} | {
|
|
5367
|
-
Address20: any;
|
|
5368
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
5369
|
-
/**
|
|
5370
|
-
* Swap out one member `remove` for another `add`.
|
|
5371
|
-
*
|
|
5372
|
-
* May only be called from `T::SwapOrigin`.
|
|
5373
|
-
*
|
|
5374
|
-
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
|
5375
|
-
**/
|
|
5376
|
-
swapMember: AugmentedSubmittable<(remove: MultiAddress | {
|
|
5377
|
-
Id: any;
|
|
5378
|
-
} | {
|
|
5379
|
-
Index: any;
|
|
5380
|
-
} | {
|
|
5381
|
-
Raw: any;
|
|
5382
|
-
} | {
|
|
5383
|
-
Address32: any;
|
|
5384
|
-
} | {
|
|
5385
|
-
Address20: any;
|
|
5386
|
-
} | string | Uint8Array, add: MultiAddress | {
|
|
5387
|
-
Id: any;
|
|
5388
|
-
} | {
|
|
5389
|
-
Index: any;
|
|
5390
|
-
} | {
|
|
5391
|
-
Raw: any;
|
|
5392
|
-
} | {
|
|
5393
|
-
Address32: any;
|
|
5394
|
-
} | {
|
|
5395
|
-
Address20: any;
|
|
5396
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
|
|
5397
|
-
/**
|
|
5398
|
-
* Generic tx
|
|
5399
|
-
**/
|
|
5400
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5401
|
-
};
|
|
5402
4626
|
timestamp: {
|
|
5403
4627
|
/**
|
|
5404
4628
|
* Set the current time.
|
|
@@ -5423,145 +4647,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5423
4647
|
**/
|
|
5424
4648
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5425
4649
|
};
|
|
5426
|
-
tips: {
|
|
5427
|
-
/**
|
|
5428
|
-
* Close and payout a tip.
|
|
5429
|
-
*
|
|
5430
|
-
* The dispatch origin for this call must be _Signed_.
|
|
5431
|
-
*
|
|
5432
|
-
* The tip identified by `hash` must have finished its countdown period.
|
|
5433
|
-
*
|
|
5434
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
5435
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
5436
|
-
*
|
|
5437
|
-
* ## Complexity
|
|
5438
|
-
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
5439
|
-
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
5440
|
-
* the implementation of `T::Tippers`.
|
|
5441
|
-
**/
|
|
5442
|
-
closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5443
|
-
/**
|
|
5444
|
-
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
|
|
5445
|
-
*
|
|
5446
|
-
* The dispatch origin for this call must be _Signed_.
|
|
5447
|
-
*
|
|
5448
|
-
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
5449
|
-
* `DataDepositPerByte` for each byte in `reason`.
|
|
5450
|
-
*
|
|
5451
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
5452
|
-
* a UTF-8-encoded URL.
|
|
5453
|
-
* - `who`: The account which should be credited for the tip.
|
|
5454
|
-
*
|
|
5455
|
-
* Emits `NewTip` if successful.
|
|
5456
|
-
*
|
|
5457
|
-
* ## Complexity
|
|
5458
|
-
* - `O(R)` where `R` length of `reason`.
|
|
5459
|
-
* - encoding and hashing of 'reason'
|
|
5460
|
-
**/
|
|
5461
|
-
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
5462
|
-
Id: any;
|
|
5463
|
-
} | {
|
|
5464
|
-
Index: any;
|
|
5465
|
-
} | {
|
|
5466
|
-
Raw: any;
|
|
5467
|
-
} | {
|
|
5468
|
-
Address32: any;
|
|
5469
|
-
} | {
|
|
5470
|
-
Address20: any;
|
|
5471
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress]>;
|
|
5472
|
-
/**
|
|
5473
|
-
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
|
5474
|
-
*
|
|
5475
|
-
* If successful, the original deposit will be unreserved.
|
|
5476
|
-
*
|
|
5477
|
-
* The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
|
|
5478
|
-
* must have been reported by the signing account through `report_awesome` (and not
|
|
5479
|
-
* through `tip_new`).
|
|
5480
|
-
*
|
|
5481
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
5482
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
5483
|
-
*
|
|
5484
|
-
* Emits `TipRetracted` if successful.
|
|
5485
|
-
*
|
|
5486
|
-
* ## Complexity
|
|
5487
|
-
* - `O(1)`
|
|
5488
|
-
* - Depends on the length of `T::Hash` which is fixed.
|
|
5489
|
-
**/
|
|
5490
|
-
retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5491
|
-
/**
|
|
5492
|
-
* Remove and slash an already-open tip.
|
|
5493
|
-
*
|
|
5494
|
-
* May only be called from `T::RejectOrigin`.
|
|
5495
|
-
*
|
|
5496
|
-
* As a result, the finder is slashed and the deposits are lost.
|
|
5497
|
-
*
|
|
5498
|
-
* Emits `TipSlashed` if successful.
|
|
5499
|
-
*
|
|
5500
|
-
* ## Complexity
|
|
5501
|
-
* - O(1).
|
|
5502
|
-
**/
|
|
5503
|
-
slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5504
|
-
/**
|
|
5505
|
-
* Declare a tip value for an already-open tip.
|
|
5506
|
-
*
|
|
5507
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
5508
|
-
* member of the `Tippers` set.
|
|
5509
|
-
*
|
|
5510
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
5511
|
-
* as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
|
|
5512
|
-
* account ID.
|
|
5513
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
5514
|
-
* value of active tippers will be given to the `who`.
|
|
5515
|
-
*
|
|
5516
|
-
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
5517
|
-
* has started.
|
|
5518
|
-
*
|
|
5519
|
-
* ## Complexity
|
|
5520
|
-
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
5521
|
-
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
5522
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
5523
|
-
*
|
|
5524
|
-
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
5525
|
-
* is weighted as if almost full i.e of length `T-1`.
|
|
5526
|
-
**/
|
|
5527
|
-
tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
|
5528
|
-
/**
|
|
5529
|
-
* Give a tip for something new; no finder's fee will be taken.
|
|
5530
|
-
*
|
|
5531
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
5532
|
-
* member of the `Tippers` set.
|
|
5533
|
-
*
|
|
5534
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
5535
|
-
* a UTF-8-encoded URL.
|
|
5536
|
-
* - `who`: The account which should be credited for the tip.
|
|
5537
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
5538
|
-
* value of active tippers will be given to the `who`.
|
|
5539
|
-
*
|
|
5540
|
-
* Emits `NewTip` if successful.
|
|
5541
|
-
*
|
|
5542
|
-
* ## Complexity
|
|
5543
|
-
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
5544
|
-
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
5545
|
-
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
5546
|
-
* `T::Tippers`.
|
|
5547
|
-
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
5548
|
-
**/
|
|
5549
|
-
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
5550
|
-
Id: any;
|
|
5551
|
-
} | {
|
|
5552
|
-
Index: any;
|
|
5553
|
-
} | {
|
|
5554
|
-
Raw: any;
|
|
5555
|
-
} | {
|
|
5556
|
-
Address32: any;
|
|
5557
|
-
} | {
|
|
5558
|
-
Address20: any;
|
|
5559
|
-
} | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress, Compact<u128>]>;
|
|
5560
|
-
/**
|
|
5561
|
-
* Generic tx
|
|
5562
|
-
**/
|
|
5563
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
5564
|
-
};
|
|
5565
4650
|
treasury: {
|
|
5566
4651
|
/**
|
|
5567
4652
|
* Approve a proposal. At a later time, the proposal will be allocated to the beneficiary
|
|
@@ -5733,10 +4818,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5733
4818
|
system: any;
|
|
5734
4819
|
} | {
|
|
5735
4820
|
Void: any;
|
|
5736
|
-
} | {
|
|
5737
|
-
Council: any;
|
|
5738
|
-
} | {
|
|
5739
|
-
TechnicalCommittee: any;
|
|
5740
4821
|
} | {
|
|
5741
4822
|
Origins: any;
|
|
5742
4823
|
} | {
|