@polkadot/api-augment 9.14.1 → 10.0.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/base.js +0 -4
- package/bundle.js +2 -5
- package/cjs/base.js +1 -1
- package/cjs/bundle.js +4 -11
- package/cjs/detectOther.js +5 -12
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +3 -15
- package/cjs/kusama/consts.js +2 -1
- package/cjs/kusama/errors.js +2 -1
- package/cjs/kusama/events.js +2 -1
- package/cjs/kusama/index.js +1 -1
- package/cjs/kusama/query.js +2 -1
- package/cjs/kusama/registry.js +1 -1
- package/cjs/kusama/runtime.js +2 -1
- package/cjs/kusama/tx.js +2 -1
- package/cjs/packageInfo.js +2 -16
- package/cjs/polkadot/consts.js +2 -1
- package/cjs/polkadot/errors.js +2 -1
- package/cjs/polkadot/events.js +2 -1
- package/cjs/polkadot/index.js +1 -1
- package/cjs/polkadot/query.js +2 -1
- package/cjs/polkadot/registry.js +1 -1
- package/cjs/polkadot/runtime.js +2 -1
- package/cjs/polkadot/tx.js +2 -1
- package/cjs/substrate/consts.js +2 -1
- package/cjs/substrate/errors.js +2 -1
- package/cjs/substrate/events.js +2 -1
- package/cjs/substrate/index.js +1 -1
- package/cjs/substrate/query.js +2 -1
- package/cjs/substrate/registry.js +1 -1
- package/cjs/substrate/runtime.js +2 -1
- package/cjs/substrate/tx.js +2 -1
- package/detectOther.js +0 -3
- package/detectPackage.js +2 -7
- package/index.js +2 -5
- package/kusama/consts.js +1 -7
- package/kusama/errors.d.ts +4 -0
- package/kusama/errors.js +1 -7
- package/kusama/events.d.ts +2 -2
- package/kusama/events.js +1 -7
- package/kusama/index.js +8 -11
- package/kusama/query.d.ts +20 -1
- package/kusama/query.js +1 -7
- package/kusama/registry.js +0 -3
- package/kusama/runtime.js +1 -7
- package/kusama/tx.d.ts +258 -638
- package/kusama/tx.js +1 -7
- package/package.json +12 -9
- package/packageInfo.js +1 -11
- package/polkadot/consts.js +1 -7
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/errors.js +1 -7
- package/polkadot/events.d.ts +2 -2
- package/polkadot/events.js +1 -7
- package/polkadot/index.js +8 -11
- package/polkadot/query.d.ts +20 -1
- package/polkadot/query.js +1 -7
- package/polkadot/registry.js +0 -3
- package/polkadot/runtime.js +1 -7
- package/polkadot/tx.d.ts +209 -478
- package/polkadot/tx.js +1 -7
- package/substrate/consts.d.ts +4 -0
- package/substrate/consts.js +1 -7
- package/substrate/errors.d.ts +43 -4
- package/substrate/errors.js +1 -7
- package/substrate/events.d.ts +43 -11
- package/substrate/events.js +1 -7
- package/substrate/index.js +8 -11
- package/substrate/query.d.ts +50 -16
- package/substrate/query.js +1 -7
- package/substrate/registry.js +0 -3
- package/substrate/runtime.js +1 -7
- package/substrate/tx.d.ts +364 -731
- package/substrate/tx.js +1 -7
package/substrate/tx.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature,
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
9
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
10
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -185,20 +185,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
185
185
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
186
186
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
187
187
|
*
|
|
188
|
-
*
|
|
189
|
-
* ## Weight
|
|
188
|
+
* ## Complexity
|
|
190
189
|
* - `O(B + M + P1 + P2)` where:
|
|
191
190
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
192
191
|
* - `M` is members-count (code- and governance-bounded)
|
|
193
192
|
* - `P1` is the complexity of `proposal` preimage.
|
|
194
193
|
* - `P2` is proposal-count (code-bounded)
|
|
195
|
-
* - DB:
|
|
196
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
197
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
198
|
-
* `O(P2)`)
|
|
199
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
200
|
-
* - up to 3 events
|
|
201
|
-
* # </weight>
|
|
202
194
|
**/
|
|
203
195
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
204
196
|
refTime?: any;
|
|
@@ -223,20 +215,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
223
215
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
224
216
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
225
217
|
*
|
|
226
|
-
*
|
|
227
|
-
* ## Weight
|
|
218
|
+
* ## Complexity
|
|
228
219
|
* - `O(B + M + P1 + P2)` where:
|
|
229
220
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
230
221
|
* - `M` is members-count (code- and governance-bounded)
|
|
231
222
|
* - `P1` is the complexity of `proposal` preimage.
|
|
232
223
|
* - `P2` is proposal-count (code-bounded)
|
|
233
|
-
* - DB:
|
|
234
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
235
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
236
|
-
* `O(P2)`)
|
|
237
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
238
|
-
* - up to 3 events
|
|
239
|
-
* # </weight>
|
|
240
224
|
**/
|
|
241
225
|
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>]>;
|
|
242
226
|
/**
|
|
@@ -248,12 +232,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
248
232
|
* Parameters:
|
|
249
233
|
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
250
234
|
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
* DB Weight:
|
|
254
|
-
* * Reads: Proposals
|
|
255
|
-
* * Writes: Voting, Proposals, ProposalOf
|
|
256
|
-
* # </weight>
|
|
235
|
+
* ## Complexity
|
|
236
|
+
* O(P) where P is the number of max proposals
|
|
257
237
|
**/
|
|
258
238
|
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
259
239
|
/**
|
|
@@ -261,13 +241,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
261
241
|
*
|
|
262
242
|
* Origin must be a member of the collective.
|
|
263
243
|
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* - `
|
|
267
|
-
* `
|
|
268
|
-
* -
|
|
269
|
-
* - 1 event
|
|
270
|
-
* # </weight>
|
|
244
|
+
* ## Complexity:
|
|
245
|
+
* - `O(B + M + P)` where:
|
|
246
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
247
|
+
* - `M` members-count (code-bounded)
|
|
248
|
+
* - `P` complexity of dispatching `proposal`
|
|
271
249
|
**/
|
|
272
250
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
273
251
|
/**
|
|
@@ -278,26 +256,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
278
256
|
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
279
257
|
* or put up for voting.
|
|
280
258
|
*
|
|
281
|
-
*
|
|
282
|
-
* ## Weight
|
|
259
|
+
* ## Complexity
|
|
283
260
|
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
284
261
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
285
262
|
* - `M` is members-count (code- and governance-bounded)
|
|
286
263
|
* - branching is influenced by `threshold` where:
|
|
287
264
|
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
288
265
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
289
|
-
* - DB:
|
|
290
|
-
* - 1 storage read `is_member` (codec `O(M)`)
|
|
291
|
-
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
292
|
-
* - DB accesses influenced by `threshold`:
|
|
293
|
-
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
294
|
-
* - OR proposal insertion (`threshold <= 2`)
|
|
295
|
-
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
296
|
-
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
297
|
-
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
298
|
-
* - 1 storage write `Voting` (codec `O(M)`)
|
|
299
|
-
* - 1 event
|
|
300
|
-
* # </weight>
|
|
301
266
|
**/
|
|
302
267
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
303
268
|
/**
|
|
@@ -320,19 +285,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
320
285
|
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
321
286
|
* with other logic managing the member set.
|
|
322
287
|
*
|
|
323
|
-
*
|
|
324
|
-
* ## Weight
|
|
288
|
+
* ## Complexity:
|
|
325
289
|
* - `O(MP + N)` where:
|
|
326
290
|
* - `M` old-members-count (code- and governance-bounded)
|
|
327
291
|
* - `N` new-members-count (code- and governance-bounded)
|
|
328
292
|
* - `P` proposals-count (code-bounded)
|
|
329
|
-
* - DB:
|
|
330
|
-
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
331
|
-
* members
|
|
332
|
-
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
333
|
-
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
334
|
-
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
335
|
-
* # </weight>
|
|
336
293
|
**/
|
|
337
294
|
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]>;
|
|
338
295
|
/**
|
|
@@ -343,14 +300,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
343
300
|
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
344
301
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
345
302
|
* fee.
|
|
346
|
-
*
|
|
347
|
-
* ## Weight
|
|
303
|
+
* ## Complexity
|
|
348
304
|
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
349
|
-
* - DB:
|
|
350
|
-
* - 1 storage read `Members` (codec `O(M)`)
|
|
351
|
-
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
352
|
-
* - 1 event
|
|
353
|
-
* # </weight>
|
|
354
305
|
**/
|
|
355
306
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
356
307
|
/**
|
|
@@ -1123,10 +1074,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1123
1074
|
/**
|
|
1124
1075
|
* Exactly as `transfer`, except the origin must be root and the source account may be
|
|
1125
1076
|
* specified.
|
|
1126
|
-
*
|
|
1077
|
+
* ## Complexity
|
|
1127
1078
|
* - Same as transfer, but additional read and write because the source account is not
|
|
1128
1079
|
* assumed to be in the overlay.
|
|
1129
|
-
* # </weight>
|
|
1130
1080
|
**/
|
|
1131
1081
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
1132
1082
|
Id: any;
|
|
@@ -1195,7 +1145,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1195
1145
|
*
|
|
1196
1146
|
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
1197
1147
|
*
|
|
1198
|
-
*
|
|
1148
|
+
* ## Complexity
|
|
1199
1149
|
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
1200
1150
|
* types. See related functions below.
|
|
1201
1151
|
* - It contains a limited number of reads and writes internally and no complex
|
|
@@ -1209,9 +1159,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1209
1159
|
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
1210
1160
|
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
1211
1161
|
* that the transfer will not kill the origin account.
|
|
1212
|
-
* ---------------------------------
|
|
1213
|
-
* - Origin account is already in memory, so no DB operations for them.
|
|
1214
|
-
* # </weight>
|
|
1215
1162
|
**/
|
|
1216
1163
|
transfer: AugmentedSubmittable<(dest: MultiAddress | {
|
|
1217
1164
|
Id: any;
|
|
@@ -1239,9 +1186,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1239
1186
|
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
1240
1187
|
* of the funds the account has, causing the sender account to be killed (false), or
|
|
1241
1188
|
* transfer everything except at least the existential deposit, which will guarantee to
|
|
1242
|
-
* keep the sender account alive (true).
|
|
1189
|
+
* keep the sender account alive (true). ## Complexity
|
|
1243
1190
|
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
1244
|
-
* #</weight>
|
|
1245
1191
|
**/
|
|
1246
1192
|
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
1247
1193
|
Id: any;
|
|
@@ -1285,9 +1231,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1285
1231
|
*
|
|
1286
1232
|
* May only be called from the curator.
|
|
1287
1233
|
*
|
|
1288
|
-
*
|
|
1234
|
+
* ## Complexity
|
|
1289
1235
|
* - O(1).
|
|
1290
|
-
* # </weight>
|
|
1291
1236
|
**/
|
|
1292
1237
|
acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1293
1238
|
/**
|
|
@@ -1296,9 +1241,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1296
1241
|
*
|
|
1297
1242
|
* May only be called from `T::SpendOrigin`.
|
|
1298
1243
|
*
|
|
1299
|
-
*
|
|
1244
|
+
* ## Complexity
|
|
1300
1245
|
* - O(1).
|
|
1301
|
-
* # </weight>
|
|
1302
1246
|
**/
|
|
1303
1247
|
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1304
1248
|
/**
|
|
@@ -1310,9 +1254,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1310
1254
|
* - `bounty_id`: Bounty ID to award.
|
|
1311
1255
|
* - `beneficiary`: The beneficiary account whom will receive the payout.
|
|
1312
1256
|
*
|
|
1313
|
-
*
|
|
1257
|
+
* ## Complexity
|
|
1314
1258
|
* - O(1).
|
|
1315
|
-
* # </weight>
|
|
1316
1259
|
**/
|
|
1317
1260
|
awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
1318
1261
|
Id: any;
|
|
@@ -1332,9 +1275,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1332
1275
|
*
|
|
1333
1276
|
* - `bounty_id`: Bounty ID to claim.
|
|
1334
1277
|
*
|
|
1335
|
-
*
|
|
1278
|
+
* ## Complexity
|
|
1336
1279
|
* - O(1).
|
|
1337
|
-
* # </weight>
|
|
1338
1280
|
**/
|
|
1339
1281
|
claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1340
1282
|
/**
|
|
@@ -1345,9 +1287,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1345
1287
|
*
|
|
1346
1288
|
* - `bounty_id`: Bounty ID to cancel.
|
|
1347
1289
|
*
|
|
1348
|
-
*
|
|
1290
|
+
* ## Complexity
|
|
1349
1291
|
* - O(1).
|
|
1350
|
-
* # </weight>
|
|
1351
1292
|
**/
|
|
1352
1293
|
closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1353
1294
|
/**
|
|
@@ -1358,9 +1299,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1358
1299
|
* - `bounty_id`: Bounty ID to extend.
|
|
1359
1300
|
* - `remark`: additional information.
|
|
1360
1301
|
*
|
|
1361
|
-
*
|
|
1302
|
+
* ## Complexity
|
|
1362
1303
|
* - O(1).
|
|
1363
|
-
* # </weight>
|
|
1364
1304
|
**/
|
|
1365
1305
|
extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
|
|
1366
1306
|
/**
|
|
@@ -1383,9 +1323,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1383
1323
|
*
|
|
1384
1324
|
* May only be called from `T::SpendOrigin`.
|
|
1385
1325
|
*
|
|
1386
|
-
*
|
|
1326
|
+
* ## Complexity
|
|
1387
1327
|
* - O(1).
|
|
1388
|
-
* # </weight>
|
|
1389
1328
|
**/
|
|
1390
1329
|
proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
|
|
1391
1330
|
Id: any;
|
|
@@ -1414,9 +1353,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1414
1353
|
* anyone in the community to call out that a curator is not doing their due diligence, and
|
|
1415
1354
|
* we should pick a new curator. In this case the curator should also be slashed.
|
|
1416
1355
|
*
|
|
1417
|
-
*
|
|
1356
|
+
* ## Complexity
|
|
1418
1357
|
* - O(1).
|
|
1419
|
-
* # </weight>
|
|
1420
1358
|
**/
|
|
1421
1359
|
unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1422
1360
|
/**
|
|
@@ -1949,20 +1887,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1949
1887
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
1950
1888
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
1951
1889
|
*
|
|
1952
|
-
*
|
|
1953
|
-
* ## Weight
|
|
1890
|
+
* ## Complexity
|
|
1954
1891
|
* - `O(B + M + P1 + P2)` where:
|
|
1955
1892
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1956
1893
|
* - `M` is members-count (code- and governance-bounded)
|
|
1957
1894
|
* - `P1` is the complexity of `proposal` preimage.
|
|
1958
1895
|
* - `P2` is proposal-count (code-bounded)
|
|
1959
|
-
* - DB:
|
|
1960
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
1961
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
1962
|
-
* `O(P2)`)
|
|
1963
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
1964
|
-
* - up to 3 events
|
|
1965
|
-
* # </weight>
|
|
1966
1896
|
**/
|
|
1967
1897
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
1968
1898
|
refTime?: any;
|
|
@@ -1987,20 +1917,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1987
1917
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
1988
1918
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
1989
1919
|
*
|
|
1990
|
-
*
|
|
1991
|
-
* ## Weight
|
|
1920
|
+
* ## Complexity
|
|
1992
1921
|
* - `O(B + M + P1 + P2)` where:
|
|
1993
1922
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1994
1923
|
* - `M` is members-count (code- and governance-bounded)
|
|
1995
1924
|
* - `P1` is the complexity of `proposal` preimage.
|
|
1996
1925
|
* - `P2` is proposal-count (code-bounded)
|
|
1997
|
-
* - DB:
|
|
1998
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
1999
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
2000
|
-
* `O(P2)`)
|
|
2001
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
2002
|
-
* - up to 3 events
|
|
2003
|
-
* # </weight>
|
|
2004
1926
|
**/
|
|
2005
1927
|
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>]>;
|
|
2006
1928
|
/**
|
|
@@ -2012,12 +1934,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2012
1934
|
* Parameters:
|
|
2013
1935
|
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
2014
1936
|
*
|
|
2015
|
-
*
|
|
2016
|
-
*
|
|
2017
|
-
* DB Weight:
|
|
2018
|
-
* * Reads: Proposals
|
|
2019
|
-
* * Writes: Voting, Proposals, ProposalOf
|
|
2020
|
-
* # </weight>
|
|
1937
|
+
* ## Complexity
|
|
1938
|
+
* O(P) where P is the number of max proposals
|
|
2021
1939
|
**/
|
|
2022
1940
|
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2023
1941
|
/**
|
|
@@ -2025,13 +1943,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2025
1943
|
*
|
|
2026
1944
|
* Origin must be a member of the collective.
|
|
2027
1945
|
*
|
|
2028
|
-
*
|
|
2029
|
-
*
|
|
2030
|
-
* - `
|
|
2031
|
-
* `
|
|
2032
|
-
* -
|
|
2033
|
-
* - 1 event
|
|
2034
|
-
* # </weight>
|
|
1946
|
+
* ## Complexity:
|
|
1947
|
+
* - `O(B + M + P)` where:
|
|
1948
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1949
|
+
* - `M` members-count (code-bounded)
|
|
1950
|
+
* - `P` complexity of dispatching `proposal`
|
|
2035
1951
|
**/
|
|
2036
1952
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
2037
1953
|
/**
|
|
@@ -2042,26 +1958,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2042
1958
|
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
2043
1959
|
* or put up for voting.
|
|
2044
1960
|
*
|
|
2045
|
-
*
|
|
2046
|
-
* ## Weight
|
|
1961
|
+
* ## Complexity
|
|
2047
1962
|
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
2048
1963
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
2049
1964
|
* - `M` is members-count (code- and governance-bounded)
|
|
2050
1965
|
* - branching is influenced by `threshold` where:
|
|
2051
1966
|
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
2052
1967
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
2053
|
-
* - DB:
|
|
2054
|
-
* - 1 storage read `is_member` (codec `O(M)`)
|
|
2055
|
-
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
2056
|
-
* - DB accesses influenced by `threshold`:
|
|
2057
|
-
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
2058
|
-
* - OR proposal insertion (`threshold <= 2`)
|
|
2059
|
-
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
2060
|
-
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
2061
|
-
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
2062
|
-
* - 1 storage write `Voting` (codec `O(M)`)
|
|
2063
|
-
* - 1 event
|
|
2064
|
-
* # </weight>
|
|
2065
1968
|
**/
|
|
2066
1969
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
2067
1970
|
/**
|
|
@@ -2084,19 +1987,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2084
1987
|
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
2085
1988
|
* with other logic managing the member set.
|
|
2086
1989
|
*
|
|
2087
|
-
*
|
|
2088
|
-
* ## Weight
|
|
1990
|
+
* ## Complexity:
|
|
2089
1991
|
* - `O(MP + N)` where:
|
|
2090
1992
|
* - `M` old-members-count (code- and governance-bounded)
|
|
2091
1993
|
* - `N` new-members-count (code- and governance-bounded)
|
|
2092
1994
|
* - `P` proposals-count (code-bounded)
|
|
2093
|
-
* - DB:
|
|
2094
|
-
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
2095
|
-
* members
|
|
2096
|
-
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
2097
|
-
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
2098
|
-
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
2099
|
-
* # </weight>
|
|
2100
1995
|
**/
|
|
2101
1996
|
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]>;
|
|
2102
1997
|
/**
|
|
@@ -2107,14 +2002,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2107
2002
|
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
2108
2003
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
2109
2004
|
* fee.
|
|
2110
|
-
*
|
|
2111
|
-
* ## Weight
|
|
2005
|
+
* ## Complexity
|
|
2112
2006
|
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
2113
|
-
* - DB:
|
|
2114
|
-
* - 1 storage read `Members` (codec `O(M)`)
|
|
2115
|
-
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
2116
|
-
* - 1 event
|
|
2117
|
-
* # </weight>
|
|
2118
2007
|
**/
|
|
2119
2008
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
2120
2009
|
/**
|
|
@@ -2550,9 +2439,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2550
2439
|
*
|
|
2551
2440
|
* The dispatch origin of this call must be root.
|
|
2552
2441
|
*
|
|
2553
|
-
*
|
|
2554
|
-
*
|
|
2555
|
-
* # </weight>
|
|
2442
|
+
* ## Complexity
|
|
2443
|
+
* - Check is_defunct_voter() details.
|
|
2556
2444
|
**/
|
|
2557
2445
|
cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
2558
2446
|
/**
|
|
@@ -2570,10 +2458,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2570
2458
|
*
|
|
2571
2459
|
* Note that this does not affect the designated block number of the next election.
|
|
2572
2460
|
*
|
|
2573
|
-
*
|
|
2574
|
-
*
|
|
2575
|
-
* will go into phragmen, we assume full block for now.
|
|
2576
|
-
* # </weight>
|
|
2461
|
+
* ## Complexity
|
|
2462
|
+
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
2577
2463
|
**/
|
|
2578
2464
|
removeMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
2579
2465
|
Id: any;
|
|
@@ -2609,10 +2495,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2609
2495
|
* next round.
|
|
2610
2496
|
*
|
|
2611
2497
|
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
2612
|
-
*
|
|
2613
|
-
* # <weight>
|
|
2614
2498
|
* The type of renouncing must be provided as witness data.
|
|
2615
|
-
*
|
|
2499
|
+
*
|
|
2500
|
+
* ## Complexity
|
|
2501
|
+
* - Renouncing::Candidate(count): O(count + log(count))
|
|
2502
|
+
* - Renouncing::Member: O(1)
|
|
2503
|
+
* - Renouncing::RunnerUp: O(1)
|
|
2616
2504
|
**/
|
|
2617
2505
|
renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
|
|
2618
2506
|
Member: any;
|
|
@@ -2634,9 +2522,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2634
2522
|
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
2635
2523
|
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
2636
2524
|
*
|
|
2637
|
-
* # <weight>
|
|
2638
2525
|
* The number of current candidates must be provided as witness data.
|
|
2639
|
-
*
|
|
2526
|
+
* ## Complexity
|
|
2527
|
+
* O(C + log(C)) where C is candidate_count.
|
|
2640
2528
|
**/
|
|
2641
2529
|
submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
2642
2530
|
/**
|
|
@@ -2709,6 +2597,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2709
2597
|
**/
|
|
2710
2598
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2711
2599
|
};
|
|
2600
|
+
glutton: {
|
|
2601
|
+
/**
|
|
2602
|
+
* Initializes the pallet by writing into `TrashData`.
|
|
2603
|
+
*
|
|
2604
|
+
* Only callable by Root. A good default for `trash_count` is `5_000`.
|
|
2605
|
+
**/
|
|
2606
|
+
initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
|
|
2607
|
+
/**
|
|
2608
|
+
* Set the `Compute` storage value that determines how much of the
|
|
2609
|
+
* block's weight `ref_time` to use during `on_idle`.
|
|
2610
|
+
*
|
|
2611
|
+
* Only callable by Root.
|
|
2612
|
+
**/
|
|
2613
|
+
setCompute: AugmentedSubmittable<(compute: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Set the `Storage` storage value that determines the PoV size usage
|
|
2616
|
+
* for each block.
|
|
2617
|
+
*
|
|
2618
|
+
* Only callable by Root.
|
|
2619
|
+
**/
|
|
2620
|
+
setStorage: AugmentedSubmittable<(storage: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
2621
|
+
/**
|
|
2622
|
+
* Generic tx
|
|
2623
|
+
**/
|
|
2624
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2625
|
+
};
|
|
2712
2626
|
grandpa: {
|
|
2713
2627
|
/**
|
|
2714
2628
|
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
|
@@ -2773,11 +2687,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2773
2687
|
*
|
|
2774
2688
|
* Emits `RegistrarAdded` if successful.
|
|
2775
2689
|
*
|
|
2776
|
-
*
|
|
2690
|
+
* ## Complexity
|
|
2777
2691
|
* - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
|
|
2778
|
-
* - One storage mutation (codec `O(R)`).
|
|
2779
|
-
* - One event.
|
|
2780
|
-
* # </weight>
|
|
2781
2692
|
**/
|
|
2782
2693
|
addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
|
|
2783
2694
|
Id: any;
|
|
@@ -2834,12 +2745,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2834
2745
|
*
|
|
2835
2746
|
* Emits `JudgementUnrequested` if successful.
|
|
2836
2747
|
*
|
|
2837
|
-
*
|
|
2748
|
+
* ## Complexity
|
|
2838
2749
|
* - `O(R + X)`.
|
|
2839
|
-
* -
|
|
2840
|
-
* -
|
|
2841
|
-
* - One event
|
|
2842
|
-
* # </weight>
|
|
2750
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2751
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2843
2752
|
**/
|
|
2844
2753
|
cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2845
2754
|
/**
|
|
@@ -2852,15 +2761,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2852
2761
|
*
|
|
2853
2762
|
* Emits `IdentityCleared` if successful.
|
|
2854
2763
|
*
|
|
2855
|
-
*
|
|
2764
|
+
* ## Complexity
|
|
2856
2765
|
* - `O(R + S + X)`
|
|
2857
2766
|
* - where `R` registrar-count (governance-bounded).
|
|
2858
2767
|
* - where `S` subs-count (hard- and deposit-bounded).
|
|
2859
2768
|
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2860
|
-
* - One balance-unreserve operation.
|
|
2861
|
-
* - `2` storage reads and `S + 2` storage deletions.
|
|
2862
|
-
* - One event.
|
|
2863
|
-
* # </weight>
|
|
2864
2769
|
**/
|
|
2865
2770
|
clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2866
2771
|
/**
|
|
@@ -2877,12 +2782,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2877
2782
|
*
|
|
2878
2783
|
* Emits `IdentityKilled` if successful.
|
|
2879
2784
|
*
|
|
2880
|
-
*
|
|
2881
|
-
* - `O(R + S + X)
|
|
2882
|
-
* -
|
|
2883
|
-
* - `S
|
|
2884
|
-
* -
|
|
2885
|
-
* # </weight>
|
|
2785
|
+
* ## Complexity
|
|
2786
|
+
* - `O(R + S + X)`
|
|
2787
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2788
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
2789
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2886
2790
|
**/
|
|
2887
2791
|
killIdentity: AugmentedSubmittable<(target: MultiAddress | {
|
|
2888
2792
|
Id: any;
|
|
@@ -2909,13 +2813,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2909
2813
|
*
|
|
2910
2814
|
* Emits `JudgementGiven` if successful.
|
|
2911
2815
|
*
|
|
2912
|
-
*
|
|
2816
|
+
* ## Complexity
|
|
2913
2817
|
* - `O(R + X)`.
|
|
2914
|
-
* -
|
|
2915
|
-
* -
|
|
2916
|
-
* - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
|
|
2917
|
-
* - One event.
|
|
2918
|
-
* # </weight>
|
|
2818
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2819
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2919
2820
|
**/
|
|
2920
2821
|
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
|
|
2921
2822
|
Id: any;
|
|
@@ -3022,12 +2923,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3022
2923
|
*
|
|
3023
2924
|
* Emits `JudgementRequested` if successful.
|
|
3024
2925
|
*
|
|
3025
|
-
*
|
|
2926
|
+
* ## Complexity
|
|
3026
2927
|
* - `O(R + X)`.
|
|
3027
|
-
* -
|
|
3028
|
-
* -
|
|
3029
|
-
* - One event.
|
|
3030
|
-
* # </weight>
|
|
2928
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2929
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
3031
2930
|
**/
|
|
3032
2931
|
requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
3033
2932
|
/**
|
|
@@ -3039,11 +2938,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3039
2938
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
3040
2939
|
* - `new`: the new account ID.
|
|
3041
2940
|
*
|
|
3042
|
-
*
|
|
2941
|
+
* ## Complexity
|
|
3043
2942
|
* - `O(R)`.
|
|
3044
|
-
* -
|
|
3045
|
-
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
|
3046
|
-
* # </weight>
|
|
2943
|
+
* - where `R` registrar-count (governance-bounded).
|
|
3047
2944
|
**/
|
|
3048
2945
|
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
|
|
3049
2946
|
Id: any;
|
|
@@ -3065,11 +2962,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3065
2962
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
3066
2963
|
* - `fee`: the new fee.
|
|
3067
2964
|
*
|
|
3068
|
-
*
|
|
2965
|
+
* ## Complexity
|
|
3069
2966
|
* - `O(R)`.
|
|
3070
|
-
* -
|
|
3071
|
-
* - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
|
|
3072
|
-
* # </weight>
|
|
2967
|
+
* - where `R` registrar-count (governance-bounded).
|
|
3073
2968
|
**/
|
|
3074
2969
|
setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
3075
2970
|
/**
|
|
@@ -3081,11 +2976,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3081
2976
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
3082
2977
|
* - `fields`: the fields that the registrar concerns themselves with.
|
|
3083
2978
|
*
|
|
3084
|
-
*
|
|
2979
|
+
* ## Complexity
|
|
3085
2980
|
* - `O(R)`.
|
|
3086
|
-
* -
|
|
3087
|
-
* - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
|
|
3088
|
-
* # </weight>
|
|
2981
|
+
* - where `R` registrar-count (governance-bounded).
|
|
3089
2982
|
**/
|
|
3090
2983
|
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
|
|
3091
2984
|
/**
|
|
@@ -3100,14 +2993,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3100
2993
|
*
|
|
3101
2994
|
* Emits `IdentitySet` if successful.
|
|
3102
2995
|
*
|
|
3103
|
-
*
|
|
2996
|
+
* ## Complexity
|
|
3104
2997
|
* - `O(X + X' + R)`
|
|
3105
2998
|
* - where `X` additional-field-count (deposit-bounded and code-bounded)
|
|
3106
2999
|
* - where `R` judgements-count (registrar-count-bounded)
|
|
3107
|
-
* - One balance reserve operation.
|
|
3108
|
-
* - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
|
|
3109
|
-
* - One event.
|
|
3110
|
-
* # </weight>
|
|
3111
3000
|
**/
|
|
3112
3001
|
setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
|
|
3113
3002
|
additional?: any;
|
|
@@ -3131,17 +3020,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3131
3020
|
*
|
|
3132
3021
|
* - `subs`: The identity's (new) sub-accounts.
|
|
3133
3022
|
*
|
|
3134
|
-
*
|
|
3023
|
+
* ## Complexity
|
|
3135
3024
|
* - `O(P + S)`
|
|
3136
3025
|
* - where `P` old-subs-count (hard- and deposit-bounded).
|
|
3137
3026
|
* - where `S` subs-count (hard- and deposit-bounded).
|
|
3138
|
-
* - At most one balance operations.
|
|
3139
|
-
* - DB:
|
|
3140
|
-
* - `P + S` storage mutations (codec complexity `O(1)`)
|
|
3141
|
-
* - One storage read (codec complexity `O(P)`).
|
|
3142
|
-
* - One storage write (codec complexity `O(S)`).
|
|
3143
|
-
* - One storage-exists (`IdentityOf::contains_key`).
|
|
3144
|
-
* # </weight>
|
|
3145
3027
|
**/
|
|
3146
3028
|
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
|
|
3147
3029
|
None: any;
|
|
@@ -3163,15 +3045,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3163
3045
|
};
|
|
3164
3046
|
imOnline: {
|
|
3165
3047
|
/**
|
|
3166
|
-
*
|
|
3167
|
-
* -
|
|
3168
|
-
*
|
|
3048
|
+
* ## Complexity:
|
|
3049
|
+
* - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
|
|
3050
|
+
* `heartbeat.network_state.external_address`
|
|
3169
3051
|
* - `O(K)`: decoding of length `K`
|
|
3170
3052
|
* - `O(E)`: decoding/encoding of length `E`
|
|
3171
|
-
* - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
|
|
3172
|
-
* `ReceivedHeartbeats`
|
|
3173
|
-
* - DbWrites: `ReceivedHeartbeats`
|
|
3174
|
-
* # </weight>
|
|
3175
3053
|
**/
|
|
3176
3054
|
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
|
|
3177
3055
|
blockNumber?: any;
|
|
@@ -3197,14 +3075,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3197
3075
|
*
|
|
3198
3076
|
* Emits `IndexAssigned` if successful.
|
|
3199
3077
|
*
|
|
3200
|
-
*
|
|
3078
|
+
* ## Complexity
|
|
3201
3079
|
* - `O(1)`.
|
|
3202
|
-
* - One storage mutation (codec `O(1)`).
|
|
3203
|
-
* - One reserve operation.
|
|
3204
|
-
* - One event.
|
|
3205
|
-
* -------------------
|
|
3206
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
3207
|
-
* # </weight>
|
|
3208
3080
|
**/
|
|
3209
3081
|
claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3210
3082
|
/**
|
|
@@ -3219,16 +3091,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3219
3091
|
*
|
|
3220
3092
|
* Emits `IndexAssigned` if successful.
|
|
3221
3093
|
*
|
|
3222
|
-
*
|
|
3094
|
+
* ## Complexity
|
|
3223
3095
|
* - `O(1)`.
|
|
3224
|
-
* - One storage mutation (codec `O(1)`).
|
|
3225
|
-
* - Up to one reserve operation.
|
|
3226
|
-
* - One event.
|
|
3227
|
-
* -------------------
|
|
3228
|
-
* - DB Weight:
|
|
3229
|
-
* - Reads: Indices Accounts, System Account (original owner)
|
|
3230
|
-
* - Writes: Indices Accounts, System Account (original owner)
|
|
3231
|
-
* # </weight>
|
|
3232
3096
|
**/
|
|
3233
3097
|
forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
3234
3098
|
Id: any;
|
|
@@ -3252,14 +3116,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3252
3116
|
*
|
|
3253
3117
|
* Emits `IndexFreed` if successful.
|
|
3254
3118
|
*
|
|
3255
|
-
*
|
|
3119
|
+
* ## Complexity
|
|
3256
3120
|
* - `O(1)`.
|
|
3257
|
-
* - One storage mutation (codec `O(1)`).
|
|
3258
|
-
* - One reserve operation.
|
|
3259
|
-
* - One event.
|
|
3260
|
-
* -------------------
|
|
3261
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
3262
|
-
* # </weight>
|
|
3263
3121
|
**/
|
|
3264
3122
|
free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3265
3123
|
/**
|
|
@@ -3273,14 +3131,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3273
3131
|
*
|
|
3274
3132
|
* Emits `IndexFrozen` if successful.
|
|
3275
3133
|
*
|
|
3276
|
-
*
|
|
3134
|
+
* ## Complexity
|
|
3277
3135
|
* - `O(1)`.
|
|
3278
|
-
* - One storage mutation (codec `O(1)`).
|
|
3279
|
-
* - Up to one slash operation.
|
|
3280
|
-
* - One event.
|
|
3281
|
-
* -------------------
|
|
3282
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
3283
|
-
* # </weight>
|
|
3284
3136
|
**/
|
|
3285
3137
|
freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3286
3138
|
/**
|
|
@@ -3294,16 +3146,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3294
3146
|
*
|
|
3295
3147
|
* Emits `IndexAssigned` if successful.
|
|
3296
3148
|
*
|
|
3297
|
-
*
|
|
3149
|
+
* ## Complexity
|
|
3298
3150
|
* - `O(1)`.
|
|
3299
|
-
* - One storage mutation (codec `O(1)`).
|
|
3300
|
-
* - One transfer operation.
|
|
3301
|
-
* - One event.
|
|
3302
|
-
* -------------------
|
|
3303
|
-
* - DB Weight:
|
|
3304
|
-
* - Reads: Indices Accounts, System Account (recipient)
|
|
3305
|
-
* - Writes: Indices Accounts, System Account (recipient)
|
|
3306
|
-
* # </weight>
|
|
3307
3151
|
**/
|
|
3308
3152
|
transfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
3309
3153
|
Id: any;
|
|
@@ -3374,6 +3218,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3374
3218
|
/**
|
|
3375
3219
|
* Execute an overweight message.
|
|
3376
3220
|
*
|
|
3221
|
+
* Temporary processing errors will be propagated whereas permanent errors are treated
|
|
3222
|
+
* as success condition.
|
|
3223
|
+
*
|
|
3377
3224
|
* - `origin`: Must be `Signed`.
|
|
3378
3225
|
* - `message_origin`: The origin from which the message to be executed arrived.
|
|
3379
3226
|
* - `page`: The page in the queue in which the message to be executed is sitting.
|
|
@@ -3383,26 +3230,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3383
3230
|
*
|
|
3384
3231
|
* Benchmark complexity considerations: O(index + weight_limit).
|
|
3385
3232
|
**/
|
|
3386
|
-
executeOverweight: AugmentedSubmittable<(messageOrigin:
|
|
3387
|
-
Here: any;
|
|
3388
|
-
} | {
|
|
3389
|
-
There: any;
|
|
3390
|
-
} | {
|
|
3391
|
-
Everywhere: any;
|
|
3392
|
-
} | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
3233
|
+
executeOverweight: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
3393
3234
|
refTime?: any;
|
|
3394
3235
|
proofSize?: any;
|
|
3395
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3236
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, SpWeightsWeightV2Weight]>;
|
|
3396
3237
|
/**
|
|
3397
3238
|
* Remove a page which has no more messages remaining to be processed or is stale.
|
|
3398
3239
|
**/
|
|
3399
|
-
reapPage: AugmentedSubmittable<(messageOrigin:
|
|
3400
|
-
Here: any;
|
|
3401
|
-
} | {
|
|
3402
|
-
There: any;
|
|
3403
|
-
} | {
|
|
3404
|
-
Everywhere: any;
|
|
3405
|
-
} | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
|
3240
|
+
reapPage: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3406
3241
|
/**
|
|
3407
3242
|
* Generic tx
|
|
3408
3243
|
**/
|
|
@@ -3429,7 +3264,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3429
3264
|
*
|
|
3430
3265
|
* NOTE: If this is the final approval, you will want to use `as_multi` instead.
|
|
3431
3266
|
*
|
|
3432
|
-
*
|
|
3267
|
+
* ## Complexity
|
|
3433
3268
|
* - `O(S)`.
|
|
3434
3269
|
* - Up to one balance-reserve or unreserve operation.
|
|
3435
3270
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -3440,11 +3275,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3440
3275
|
* - One event.
|
|
3441
3276
|
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
3442
3277
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
3443
|
-
* ----------------------------------
|
|
3444
|
-
* - DB Weight:
|
|
3445
|
-
* - Read: Multisig Storage, [Caller Account]
|
|
3446
|
-
* - Write: Multisig Storage, [Caller Account]
|
|
3447
|
-
* # </weight>
|
|
3448
3278
|
**/
|
|
3449
3279
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
3450
3280
|
height?: any;
|
|
@@ -3480,7 +3310,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3480
3310
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
3481
3311
|
* may be found in the deposited `MultisigExecuted` event.
|
|
3482
3312
|
*
|
|
3483
|
-
*
|
|
3313
|
+
* ## Complexity
|
|
3484
3314
|
* - `O(S + Z + Call)`.
|
|
3485
3315
|
* - Up to one balance-reserve or unreserve operation.
|
|
3486
3316
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -3493,12 +3323,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3493
3323
|
* - The weight of the `call`.
|
|
3494
3324
|
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
3495
3325
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
3496
|
-
* -------------------------------
|
|
3497
|
-
* - DB Weight:
|
|
3498
|
-
* - Reads: Multisig Storage, [Caller Account]
|
|
3499
|
-
* - Writes: Multisig Storage, [Caller Account]
|
|
3500
|
-
* - Plus Call Weight
|
|
3501
|
-
* # </weight>
|
|
3502
3326
|
**/
|
|
3503
3327
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
3504
3328
|
height?: any;
|
|
@@ -3518,12 +3342,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3518
3342
|
*
|
|
3519
3343
|
* Result is equivalent to the dispatched result.
|
|
3520
3344
|
*
|
|
3521
|
-
*
|
|
3345
|
+
* ## Complexity
|
|
3522
3346
|
* O(Z + C) where Z is the length of the call and C its execution weight.
|
|
3523
|
-
* -------------------------------
|
|
3524
|
-
* - DB Weight: None
|
|
3525
|
-
* - Plus Call Weight
|
|
3526
|
-
* # </weight>
|
|
3527
3347
|
**/
|
|
3528
3348
|
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
|
3529
3349
|
/**
|
|
@@ -3539,7 +3359,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3539
3359
|
* transaction for this dispatch.
|
|
3540
3360
|
* - `call_hash`: The hash of the call to be executed.
|
|
3541
3361
|
*
|
|
3542
|
-
*
|
|
3362
|
+
* ## Complexity
|
|
3543
3363
|
* - `O(S)`.
|
|
3544
3364
|
* - Up to one balance-reserve or unreserve operation.
|
|
3545
3365
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -3548,11 +3368,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3548
3368
|
* - One event.
|
|
3549
3369
|
* - I/O: 1 read `O(S)`, one remove.
|
|
3550
3370
|
* - Storage: removes one item.
|
|
3551
|
-
* ----------------------------------
|
|
3552
|
-
* - DB Weight:
|
|
3553
|
-
* - Read: Multisig Storage, [Caller Account], Refund Account
|
|
3554
|
-
* - Write: Multisig Storage, [Caller Account], Refund Account
|
|
3555
|
-
* # </weight>
|
|
3556
3371
|
**/
|
|
3557
3372
|
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
|
|
3558
3373
|
height?: any;
|
|
@@ -4091,6 +3906,35 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4091
3906
|
} | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | {
|
|
4092
3907
|
ownerOfItem?: any;
|
|
4093
3908
|
} | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
|
|
3909
|
+
/**
|
|
3910
|
+
* Mint an item by providing the pre-signed approval.
|
|
3911
|
+
*
|
|
3912
|
+
* Origin must be Signed.
|
|
3913
|
+
*
|
|
3914
|
+
* - `mint_data`: The pre-signed approval that consists of the information about the item,
|
|
3915
|
+
* its metadata, attributes, who can mint it (`None` for anyone) and until what block
|
|
3916
|
+
* number.
|
|
3917
|
+
* - `signature`: The signature of the `data` object.
|
|
3918
|
+
* - `signer`: The `data` object's signer. Should be an owner of the collection.
|
|
3919
|
+
*
|
|
3920
|
+
* Emits `Issued` on success.
|
|
3921
|
+
* Emits `AttributeSet` if the attributes were provided.
|
|
3922
|
+
* Emits `ItemMetadataSet` if the metadata was not empty.
|
|
3923
|
+
**/
|
|
3924
|
+
mintPreSigned: AugmentedSubmittable<(mintData: PalletNftsPreSignedMint | {
|
|
3925
|
+
collection?: any;
|
|
3926
|
+
item?: any;
|
|
3927
|
+
attributes?: any;
|
|
3928
|
+
metadata?: any;
|
|
3929
|
+
onlyAccount?: any;
|
|
3930
|
+
deadline?: any;
|
|
3931
|
+
} | string | Uint8Array, signature: SpRuntimeMultiSignature | {
|
|
3932
|
+
Ed25519: any;
|
|
3933
|
+
} | {
|
|
3934
|
+
Sr25519: any;
|
|
3935
|
+
} | {
|
|
3936
|
+
Ecdsa: any;
|
|
3937
|
+
} | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNftsPreSignedMint, SpRuntimeMultiSignature, AccountId32]>;
|
|
4094
3938
|
/**
|
|
4095
3939
|
* Allows to pay the tips.
|
|
4096
3940
|
*
|
|
@@ -4172,6 +4016,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4172
4016
|
} | {
|
|
4173
4017
|
Account: any;
|
|
4174
4018
|
} | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
|
4019
|
+
/**
|
|
4020
|
+
* Set attributes for an item by providing the pre-signed approval.
|
|
4021
|
+
*
|
|
4022
|
+
* Origin must be Signed and must be an owner of the `data.item`.
|
|
4023
|
+
*
|
|
4024
|
+
* - `data`: The pre-signed approval that consists of the information about the item,
|
|
4025
|
+
* attributes to update and until what block number.
|
|
4026
|
+
* - `signature`: The signature of the `data` object.
|
|
4027
|
+
* - `signer`: The `data` object's signer. Should be an owner of the collection for the
|
|
4028
|
+
* `CollectionOwner` namespace.
|
|
4029
|
+
*
|
|
4030
|
+
* Emits `AttributeSet` for each provided attribute.
|
|
4031
|
+
* Emits `ItemAttributesApprovalAdded` if the approval wasn't set before.
|
|
4032
|
+
* Emits `PreSignedAttributesSet` on success.
|
|
4033
|
+
**/
|
|
4034
|
+
setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | {
|
|
4035
|
+
collection?: any;
|
|
4036
|
+
item?: any;
|
|
4037
|
+
attributes?: any;
|
|
4038
|
+
namespace?: any;
|
|
4039
|
+
deadline?: any;
|
|
4040
|
+
} | string | Uint8Array, signature: SpRuntimeMultiSignature | {
|
|
4041
|
+
Ed25519: any;
|
|
4042
|
+
} | {
|
|
4043
|
+
Sr25519: any;
|
|
4044
|
+
} | {
|
|
4045
|
+
Ecdsa: any;
|
|
4046
|
+
} | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNftsPreSignedAttributes, SpRuntimeMultiSignature, AccountId32]>;
|
|
4175
4047
|
/**
|
|
4176
4048
|
* Set the maximum number of items a collection could have.
|
|
4177
4049
|
*
|
|
@@ -4451,12 +4323,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4451
4323
|
* accumulated rewards, see [`BondExtra`].
|
|
4452
4324
|
*
|
|
4453
4325
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
4326
|
+
* See `bond_extra_other` to bond pending rewards of `other` members.
|
|
4454
4327
|
**/
|
|
4455
4328
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
4456
4329
|
FreeBalance: any;
|
|
4457
4330
|
} | {
|
|
4458
4331
|
Rewards: any;
|
|
4459
4332
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
4333
|
+
/**
|
|
4334
|
+
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
|
4335
|
+
* pools.
|
|
4336
|
+
*
|
|
4337
|
+
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
|
4338
|
+
* other`.
|
|
4339
|
+
*
|
|
4340
|
+
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
|
4341
|
+
* `other` members assuming set_claim_permission for the given member is
|
|
4342
|
+
* `PermissionlessAll` or `PermissionlessCompound`.
|
|
4343
|
+
**/
|
|
4344
|
+
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
|
|
4345
|
+
Id: any;
|
|
4346
|
+
} | {
|
|
4347
|
+
Index: any;
|
|
4348
|
+
} | {
|
|
4349
|
+
Raw: any;
|
|
4350
|
+
} | {
|
|
4351
|
+
Address32: any;
|
|
4352
|
+
} | {
|
|
4353
|
+
Address20: any;
|
|
4354
|
+
} | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
|
|
4355
|
+
FreeBalance: any;
|
|
4356
|
+
} | {
|
|
4357
|
+
Rewards: any;
|
|
4358
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
|
4460
4359
|
/**
|
|
4461
4360
|
* Chill on behalf of the pool.
|
|
4462
4361
|
*
|
|
@@ -4474,8 +4373,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4474
4373
|
*
|
|
4475
4374
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
4476
4375
|
* members in the pools stake. Rewards do not "expire".
|
|
4376
|
+
*
|
|
4377
|
+
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
|
4477
4378
|
**/
|
|
4478
4379
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4380
|
+
/**
|
|
4381
|
+
* `origin` can claim payouts on some pool member `other`'s behalf.
|
|
4382
|
+
*
|
|
4383
|
+
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
|
4384
|
+
* for this call to be successful.
|
|
4385
|
+
**/
|
|
4386
|
+
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
4479
4387
|
/**
|
|
4480
4388
|
* Create a new delegation pool.
|
|
4481
4389
|
*
|
|
@@ -4488,7 +4396,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4488
4396
|
* creating multiple pools in the same extrinsic.
|
|
4489
4397
|
* * `root` - The account to set as [`PoolRoles::root`].
|
|
4490
4398
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
4491
|
-
* * `
|
|
4399
|
+
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
|
4492
4400
|
*
|
|
4493
4401
|
* # Note
|
|
4494
4402
|
*
|
|
@@ -4515,7 +4423,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4515
4423
|
Address32: any;
|
|
4516
4424
|
} | {
|
|
4517
4425
|
Address20: any;
|
|
4518
|
-
} | string | Uint8Array,
|
|
4426
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
4519
4427
|
Id: any;
|
|
4520
4428
|
} | {
|
|
4521
4429
|
Index: any;
|
|
@@ -4554,7 +4462,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4554
4462
|
Address32: any;
|
|
4555
4463
|
} | {
|
|
4556
4464
|
Address20: any;
|
|
4557
|
-
} | string | Uint8Array,
|
|
4465
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
4558
4466
|
Id: any;
|
|
4559
4467
|
} | {
|
|
4560
4468
|
Index: any;
|
|
@@ -4597,6 +4505,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4597
4505
|
* they attempt to unbond.
|
|
4598
4506
|
**/
|
|
4599
4507
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
4508
|
+
/**
|
|
4509
|
+
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
|
4510
|
+
* bonding and withdrawing.
|
|
4511
|
+
*
|
|
4512
|
+
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
|
4513
|
+
* claim their pending rewards. If a pool member wishes so, they can set this to
|
|
4514
|
+
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
|
4515
|
+
* pool.
|
|
4516
|
+
*
|
|
4517
|
+
* # Arguments
|
|
4518
|
+
*
|
|
4519
|
+
* * `origin` - Member of a pool.
|
|
4520
|
+
* * `actor` - Account to claim reward. // improve this
|
|
4521
|
+
**/
|
|
4522
|
+
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
4600
4523
|
/**
|
|
4601
4524
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
4602
4525
|
* Root.
|
|
@@ -4643,7 +4566,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4643
4566
|
/**
|
|
4644
4567
|
* Set a new metadata for the pool.
|
|
4645
4568
|
*
|
|
4646
|
-
* The dispatch origin of this call must be signed by the
|
|
4569
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
4647
4570
|
* of the pool.
|
|
4648
4571
|
**/
|
|
4649
4572
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
@@ -4655,7 +4578,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4655
4578
|
*
|
|
4656
4579
|
* The dispatch origin of this call must be either:
|
|
4657
4580
|
*
|
|
4658
|
-
* 1. signed by the
|
|
4581
|
+
* 1. signed by the bouncer, or the root role of the pool,
|
|
4659
4582
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
4660
4583
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
4661
4584
|
**/
|
|
@@ -4670,8 +4593,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4670
4593
|
*
|
|
4671
4594
|
* # Conditions for a permissionless dispatch.
|
|
4672
4595
|
*
|
|
4673
|
-
* * The pool is blocked and the caller is either the root or
|
|
4674
|
-
*
|
|
4596
|
+
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
|
4597
|
+
* as a kick.
|
|
4675
4598
|
* * The pool is destroying and the member is not the depositor.
|
|
4676
4599
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
4677
4600
|
* pool.
|
|
@@ -4725,7 +4648,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4725
4648
|
Set: any;
|
|
4726
4649
|
} | {
|
|
4727
4650
|
Remove: any;
|
|
4728
|
-
} | string | Uint8Array,
|
|
4651
|
+
} | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
|
|
4729
4652
|
Noop: any;
|
|
4730
4653
|
} | {
|
|
4731
4654
|
Set: any;
|
|
@@ -4743,7 +4666,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4743
4666
|
*
|
|
4744
4667
|
* * The pool is in destroy mode and the target is not the depositor.
|
|
4745
4668
|
* * The target is the depositor and they are the only member in the sub pools.
|
|
4746
|
-
* * The pool is blocked and the caller is either the root or
|
|
4669
|
+
* * The pool is blocked and the caller is either the root or bouncer.
|
|
4747
4670
|
*
|
|
4748
4671
|
* # Conditions for permissioned dispatch
|
|
4749
4672
|
*
|
|
@@ -5644,10 +5567,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5644
5567
|
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
5645
5568
|
/**
|
|
5646
5569
|
* Anonymously schedule a task after a delay.
|
|
5647
|
-
*
|
|
5648
|
-
* # <weight>
|
|
5649
|
-
* Same as [`schedule`].
|
|
5650
|
-
* # </weight>
|
|
5651
5570
|
**/
|
|
5652
5571
|
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
5653
5572
|
/**
|
|
@@ -5656,10 +5575,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5656
5575
|
scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
5657
5576
|
/**
|
|
5658
5577
|
* Schedule a named task after a delay.
|
|
5659
|
-
*
|
|
5660
|
-
* # <weight>
|
|
5661
|
-
* Same as [`schedule_named`](Self::schedule_named).
|
|
5662
|
-
* # </weight>
|
|
5663
5578
|
**/
|
|
5664
5579
|
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
5665
5580
|
/**
|
|
@@ -5678,13 +5593,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5678
5593
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
5679
5594
|
* usually means being a stash account).
|
|
5680
5595
|
*
|
|
5681
|
-
*
|
|
5682
|
-
* -
|
|
5683
|
-
*
|
|
5684
|
-
* - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
|
|
5685
|
-
* - DbWrites: `NextKeys`, `origin account`
|
|
5686
|
-
* - DbWrites per key id: `KeyOwner`
|
|
5687
|
-
* # </weight>
|
|
5596
|
+
* ## Complexity
|
|
5597
|
+
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
5598
|
+
* `T::Keys::key_ids()` which is fixed.
|
|
5688
5599
|
**/
|
|
5689
5600
|
purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5690
5601
|
/**
|
|
@@ -5694,14 +5605,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5694
5605
|
*
|
|
5695
5606
|
* The dispatch origin of this function must be signed.
|
|
5696
5607
|
*
|
|
5697
|
-
*
|
|
5698
|
-
* -
|
|
5699
|
-
*
|
|
5700
|
-
* - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
|
|
5701
|
-
* - DbWrites: `origin account`, `NextKeys`
|
|
5702
|
-
* - DbReads per key id: `KeyOwner`
|
|
5703
|
-
* - DbWrites per key id: `KeyOwner`
|
|
5704
|
-
* # </weight>
|
|
5608
|
+
* ## Complexity
|
|
5609
|
+
* - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
|
|
5610
|
+
* fixed.
|
|
5705
5611
|
**/
|
|
5706
5612
|
setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | {
|
|
5707
5613
|
grandpa?: any;
|
|
@@ -5726,30 +5632,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5726
5632
|
* Parameters:
|
|
5727
5633
|
* - `value`: A one time payment the bid would like to receive when joining the society.
|
|
5728
5634
|
*
|
|
5729
|
-
*
|
|
5730
|
-
*
|
|
5731
|
-
* -
|
|
5732
|
-
* -
|
|
5733
|
-
* -
|
|
5734
|
-
* -
|
|
5735
|
-
* - One storage read to retrieve all current candidates. O(C)
|
|
5736
|
-
* - One storage read to retrieve all members. O(M)
|
|
5737
|
-
* - Storage Writes:
|
|
5738
|
-
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
|
|
5739
|
-
* w/ read)
|
|
5740
|
-
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
|
5741
|
-
* - Notable Computation:
|
|
5742
|
-
* - O(B + C + log M) search to check user is not already a part of society.
|
|
5743
|
-
* - O(log B) search to insert the new bid sorted.
|
|
5744
|
-
* - External Pallet Operations:
|
|
5745
|
-
* - One balance reserve operation. O(X)
|
|
5746
|
-
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
|
5747
|
-
* - Events:
|
|
5748
|
-
* - One event for new bid.
|
|
5749
|
-
* - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
|
|
5750
|
-
*
|
|
5751
|
-
* Total Complexity: O(M + B + C + logM + logB + X)
|
|
5752
|
-
* # </weight>
|
|
5635
|
+
* ## Complexity
|
|
5636
|
+
* - O(M + B + C + logM + logB + X)
|
|
5637
|
+
* - B (len of bids)
|
|
5638
|
+
* - C (len of candidates)
|
|
5639
|
+
* - M (len of members)
|
|
5640
|
+
* - X (balance reserve)
|
|
5753
5641
|
**/
|
|
5754
5642
|
bid: AugmentedSubmittable<(value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
|
|
5755
5643
|
/**
|
|
@@ -5761,14 +5649,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5761
5649
|
* - `approve`: A boolean which says if the candidate should be
|
|
5762
5650
|
* approved (`true`) or rejected (`false`).
|
|
5763
5651
|
*
|
|
5764
|
-
*
|
|
5765
|
-
* -
|
|
5766
|
-
* -
|
|
5767
|
-
* - One storage write to add vote to votes. O(1)
|
|
5768
|
-
* - One event.
|
|
5769
|
-
*
|
|
5770
|
-
* Total Complexity: O(M + logM)
|
|
5771
|
-
* # </weight>
|
|
5652
|
+
* ## Complexity
|
|
5653
|
+
* - O(M + logM)
|
|
5654
|
+
* - M (len of members)
|
|
5772
5655
|
**/
|
|
5773
5656
|
defenderVote: AugmentedSubmittable<(approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
5774
5657
|
/**
|
|
@@ -5784,13 +5667,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5784
5667
|
* - `max_members` - The initial max number of members for the society.
|
|
5785
5668
|
* - `rules` - The rules of this society concerning membership.
|
|
5786
5669
|
*
|
|
5787
|
-
*
|
|
5788
|
-
* -
|
|
5789
|
-
* - One storage write to add the first member to society. O(1)
|
|
5790
|
-
* - One event.
|
|
5791
|
-
*
|
|
5792
|
-
* Total Complexity: O(1)
|
|
5793
|
-
* # </weight>
|
|
5670
|
+
* ## Complexity
|
|
5671
|
+
* - O(1)
|
|
5794
5672
|
**/
|
|
5795
5673
|
found: AugmentedSubmittable<(founder: MultiAddress | {
|
|
5796
5674
|
Id: any;
|
|
@@ -5821,29 +5699,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5821
5699
|
* - `who` - The suspended candidate to be judged.
|
|
5822
5700
|
* - `judgement` - `Approve`, `Reject`, or `Rebid`.
|
|
5823
5701
|
*
|
|
5824
|
-
*
|
|
5825
|
-
*
|
|
5826
|
-
* -
|
|
5827
|
-
* -
|
|
5828
|
-
* -
|
|
5829
|
-
* - One storage read to get the available pot to pay users with. O(1)
|
|
5830
|
-
* - One storage write to update the available pot. O(1)
|
|
5831
|
-
* - One storage read to get the current block number. O(1)
|
|
5832
|
-
* - One storage read to get all members. O(M)
|
|
5833
|
-
* - Up to one unreserve currency action.
|
|
5834
|
-
* - Up to two new storage writes to payouts.
|
|
5835
|
-
* - Up to one storage write with O(log M) binary search to add a member to society.
|
|
5836
|
-
* - Reject Logic
|
|
5837
|
-
* - Up to one repatriate reserved currency action. O(X)
|
|
5838
|
-
* - Up to one storage write to ban the vouching member from vouching again.
|
|
5839
|
-
* - Rebid Logic
|
|
5840
|
-
* - Storage mutate with O(log B) binary search to place the user back into bids.
|
|
5841
|
-
* - Up to one additional event if unvouch takes place.
|
|
5842
|
-
* - One storage removal.
|
|
5843
|
-
* - One event for the judgement.
|
|
5844
|
-
*
|
|
5845
|
-
* Total Complexity: O(M + logM + B + X)
|
|
5846
|
-
* # </weight>
|
|
5702
|
+
* ## Complexity
|
|
5703
|
+
* - O(M + logM + B + X)
|
|
5704
|
+
* - B (len of bids)
|
|
5705
|
+
* - M (len of members)
|
|
5706
|
+
* - X (balance action)
|
|
5847
5707
|
**/
|
|
5848
5708
|
judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | {
|
|
5849
5709
|
Id: any;
|
|
@@ -5872,19 +5732,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5872
5732
|
* - `forgive` - A boolean representing whether the suspension judgement origin forgives
|
|
5873
5733
|
* (`true`) or rejects (`false`) a suspended member.
|
|
5874
5734
|
*
|
|
5875
|
-
*
|
|
5876
|
-
*
|
|
5877
|
-
* -
|
|
5878
|
-
* -
|
|
5879
|
-
* society.
|
|
5880
|
-
* - Up to 3 storage removals O(1) to clean up a removed member.
|
|
5881
|
-
* - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
|
|
5882
|
-
* - Up to one additional event if unvouch takes place.
|
|
5883
|
-
* - One storage removal. O(1)
|
|
5884
|
-
* - One event for the judgement.
|
|
5885
|
-
*
|
|
5886
|
-
* Total Complexity: O(M + logM + B)
|
|
5887
|
-
* # </weight>
|
|
5735
|
+
* ## Complexity
|
|
5736
|
+
* - O(M + logM + B)
|
|
5737
|
+
* - B (len of bids)
|
|
5738
|
+
* - M (len of members)
|
|
5888
5739
|
**/
|
|
5889
5740
|
judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
5890
5741
|
Id: any;
|
|
@@ -5909,16 +5760,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5909
5760
|
* The dispatch origin for this call must be _Signed_ and a member with
|
|
5910
5761
|
* payouts remaining.
|
|
5911
5762
|
*
|
|
5912
|
-
*
|
|
5913
|
-
*
|
|
5914
|
-
* -
|
|
5915
|
-
* -
|
|
5916
|
-
* -
|
|
5917
|
-
* - One currency transfer call. O(X)
|
|
5918
|
-
* - One storage write or removal to update the member's payouts. O(P)
|
|
5919
|
-
*
|
|
5920
|
-
* Total Complexity: O(M + logM + P + X)
|
|
5921
|
-
* # </weight>
|
|
5763
|
+
* ## Complexity
|
|
5764
|
+
* - O(M + logM + P + X)
|
|
5765
|
+
* - M (len of members)
|
|
5766
|
+
* - P (number of payouts for a particular member)
|
|
5767
|
+
* - X (currency transfer call)
|
|
5922
5768
|
**/
|
|
5923
5769
|
payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5924
5770
|
/**
|
|
@@ -5930,12 +5776,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5930
5776
|
* Parameters:
|
|
5931
5777
|
* - `max` - The maximum number of members for the society.
|
|
5932
5778
|
*
|
|
5933
|
-
*
|
|
5934
|
-
* -
|
|
5935
|
-
* - One event.
|
|
5936
|
-
*
|
|
5937
|
-
* Total Complexity: O(1)
|
|
5938
|
-
* # </weight>
|
|
5779
|
+
* ## Complexity
|
|
5780
|
+
* - O(1)
|
|
5939
5781
|
**/
|
|
5940
5782
|
setMaxMembers: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
5941
5783
|
/**
|
|
@@ -5950,14 +5792,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5950
5792
|
* Parameters:
|
|
5951
5793
|
* - `pos`: Position in the `Bids` vector of the bid who wants to unbid.
|
|
5952
5794
|
*
|
|
5953
|
-
*
|
|
5954
|
-
*
|
|
5955
|
-
* -
|
|
5956
|
-
* -
|
|
5957
|
-
* - One event.
|
|
5958
|
-
*
|
|
5959
|
-
* Total Complexity: O(B + X)
|
|
5960
|
-
* # </weight>
|
|
5795
|
+
* ## Complexity
|
|
5796
|
+
* - O(B + X)
|
|
5797
|
+
* - B (len of bids)
|
|
5798
|
+
* - X (balance unreserve)
|
|
5961
5799
|
**/
|
|
5962
5800
|
unbid: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
5963
5801
|
/**
|
|
@@ -5967,13 +5805,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5967
5805
|
* the `Founder` and the `Head`. This implies that it may only be done when there is one
|
|
5968
5806
|
* member.
|
|
5969
5807
|
*
|
|
5970
|
-
*
|
|
5971
|
-
* -
|
|
5972
|
-
* - Four storage removals O(1).
|
|
5973
|
-
* - One event.
|
|
5974
|
-
*
|
|
5975
|
-
* Total Complexity: O(1)
|
|
5976
|
-
* # </weight>
|
|
5808
|
+
* ## Complexity
|
|
5809
|
+
* - O(1)
|
|
5977
5810
|
**/
|
|
5978
5811
|
unfound: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5979
5812
|
/**
|
|
@@ -5985,15 +5818,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5985
5818
|
* Parameters:
|
|
5986
5819
|
* - `pos`: Position in the `Bids` vector of the bid who should be unvouched.
|
|
5987
5820
|
*
|
|
5988
|
-
*
|
|
5989
|
-
*
|
|
5990
|
-
* -
|
|
5991
|
-
* - One storage mutate to retrieve and update the bids. O(B)
|
|
5992
|
-
* - One vouching storage removal. O(1)
|
|
5993
|
-
* - One event.
|
|
5994
|
-
*
|
|
5995
|
-
* Total Complexity: O(B)
|
|
5996
|
-
* # </weight>
|
|
5821
|
+
* ## Complexity
|
|
5822
|
+
* - O(B)
|
|
5823
|
+
* - B (len of bids)
|
|
5997
5824
|
**/
|
|
5998
5825
|
unvouch: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
5999
5826
|
/**
|
|
@@ -6006,16 +5833,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6006
5833
|
* - `approve`: A boolean which says if the candidate should be approved (`true`) or
|
|
6007
5834
|
* rejected (`false`).
|
|
6008
5835
|
*
|
|
6009
|
-
*
|
|
6010
|
-
*
|
|
6011
|
-
* -
|
|
6012
|
-
* -
|
|
6013
|
-
* - One storage read O(C) and O(C) search to check that user is a candidate.
|
|
6014
|
-
* - One storage write to add vote to votes. O(1)
|
|
6015
|
-
* - One event.
|
|
6016
|
-
*
|
|
6017
|
-
* Total Complexity: O(M + logM + C)
|
|
6018
|
-
* # </weight>
|
|
5836
|
+
* ## Complexity
|
|
5837
|
+
* - O(M + logM + C)
|
|
5838
|
+
* - C (len of candidates)
|
|
5839
|
+
* - M (len of members)
|
|
6019
5840
|
**/
|
|
6020
5841
|
vote: AugmentedSubmittable<(candidate: MultiAddress | {
|
|
6021
5842
|
Id: any;
|
|
@@ -6047,33 +5868,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6047
5868
|
* - `tip`: Your cut of the total `value` payout when the candidate is inducted into
|
|
6048
5869
|
* the society. Tips larger than `value` will be saturated upon payout.
|
|
6049
5870
|
*
|
|
6050
|
-
*
|
|
6051
|
-
*
|
|
6052
|
-
* -
|
|
6053
|
-
* -
|
|
6054
|
-
* -
|
|
6055
|
-
* -
|
|
6056
|
-
* - One storage read to check for suspended member. O(1)
|
|
6057
|
-
* - One storage read to retrieve all current bids. O(B)
|
|
6058
|
-
* - One storage read to retrieve all current candidates. O(C)
|
|
6059
|
-
* - Storage Writes:
|
|
6060
|
-
* - One storage write to insert vouching status to the member. O(1)
|
|
6061
|
-
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
|
|
6062
|
-
* w/ read)
|
|
6063
|
-
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
|
6064
|
-
* - Notable Computation:
|
|
6065
|
-
* - O(log M) search to check sender is a member.
|
|
6066
|
-
* - O(B + C + log M) search to check user is not already a part of society.
|
|
6067
|
-
* - O(log B) search to insert the new bid sorted.
|
|
6068
|
-
* - External Pallet Operations:
|
|
6069
|
-
* - One balance reserve operation. O(X)
|
|
6070
|
-
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
|
6071
|
-
* - Events:
|
|
6072
|
-
* - One event for vouch.
|
|
6073
|
-
* - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
|
|
6074
|
-
*
|
|
6075
|
-
* Total Complexity: O(M + B + C + logM + logB + X)
|
|
6076
|
-
* # </weight>
|
|
5871
|
+
* ## Complexity
|
|
5872
|
+
* - O(M + B + C + logM + logB + X)
|
|
5873
|
+
* - B (len of bids)
|
|
5874
|
+
* - C (len of candidates)
|
|
5875
|
+
* - M (len of members)
|
|
5876
|
+
* - X (balance reserve)
|
|
6077
5877
|
**/
|
|
6078
5878
|
vouch: AugmentedSubmittable<(who: MultiAddress | {
|
|
6079
5879
|
Id: any;
|
|
@@ -6101,15 +5901,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6101
5901
|
* The dispatch origin for this call must be _Signed_ by the stash account.
|
|
6102
5902
|
*
|
|
6103
5903
|
* Emits `Bonded`.
|
|
6104
|
-
*
|
|
5904
|
+
* ## Complexity
|
|
6105
5905
|
* - Independent of the arguments. Moderate complexity.
|
|
6106
5906
|
* - O(1).
|
|
6107
5907
|
* - Three extra DB entries.
|
|
6108
5908
|
*
|
|
6109
5909
|
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
|
|
6110
5910
|
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
|
|
6111
|
-
* ------------------
|
|
6112
|
-
* # </weight>
|
|
6113
5911
|
**/
|
|
6114
5912
|
bond: AugmentedSubmittable<(controller: MultiAddress | {
|
|
6115
5913
|
Id: any;
|
|
@@ -6144,10 +5942,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6144
5942
|
*
|
|
6145
5943
|
* Emits `Bonded`.
|
|
6146
5944
|
*
|
|
6147
|
-
*
|
|
5945
|
+
* ## Complexity
|
|
6148
5946
|
* - Independent of the arguments. Insignificant complexity.
|
|
6149
5947
|
* - O(1).
|
|
6150
|
-
* # </weight>
|
|
6151
5948
|
**/
|
|
6152
5949
|
bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
6153
5950
|
/**
|
|
@@ -6165,11 +5962,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6165
5962
|
*
|
|
6166
5963
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
6167
5964
|
*
|
|
6168
|
-
*
|
|
5965
|
+
* ## Complexity
|
|
6169
5966
|
* - Independent of the arguments. Insignificant complexity.
|
|
6170
5967
|
* - Contains one read.
|
|
6171
5968
|
* - Writes are limited to the `origin` account key.
|
|
6172
|
-
* # </weight>
|
|
6173
5969
|
**/
|
|
6174
5970
|
chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
6175
5971
|
/**
|
|
@@ -6219,11 +6015,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6219
6015
|
* If this is called just before a new era is triggered, the election process may not
|
|
6220
6016
|
* have enough blocks to get a result.
|
|
6221
6017
|
*
|
|
6222
|
-
*
|
|
6018
|
+
* ## Complexity
|
|
6223
6019
|
* - No arguments.
|
|
6224
6020
|
* - Weight: O(1)
|
|
6225
|
-
* - Write ForceEra
|
|
6226
|
-
* # </weight>
|
|
6227
6021
|
**/
|
|
6228
6022
|
forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
6229
6023
|
/**
|
|
@@ -6249,11 +6043,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6249
6043
|
* Thus the election process may be ongoing when this is called. In this case the
|
|
6250
6044
|
* election will continue until the next era is triggered.
|
|
6251
6045
|
*
|
|
6252
|
-
*
|
|
6046
|
+
* ## Complexity
|
|
6253
6047
|
* - No arguments.
|
|
6254
6048
|
* - Weight: O(1)
|
|
6255
|
-
* - Write: ForceEra
|
|
6256
|
-
* # </weight>
|
|
6257
6049
|
**/
|
|
6258
6050
|
forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
6259
6051
|
/**
|
|
@@ -6268,9 +6060,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6268
6060
|
*
|
|
6269
6061
|
* The dispatch origin must be Root.
|
|
6270
6062
|
*
|
|
6271
|
-
*
|
|
6063
|
+
* ## Complexity
|
|
6272
6064
|
* Same as [`Self::set_validator_count`].
|
|
6273
|
-
* # </weight>
|
|
6274
6065
|
**/
|
|
6275
6066
|
increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
6276
6067
|
/**
|
|
@@ -6304,11 +6095,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6304
6095
|
*
|
|
6305
6096
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
6306
6097
|
*
|
|
6307
|
-
*
|
|
6098
|
+
* ## Complexity
|
|
6308
6099
|
* - The transaction's complexity is proportional to the size of `targets` (N)
|
|
6309
6100
|
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
|
6310
6101
|
* - Both the reads and writes follow a similar pattern.
|
|
6311
|
-
* # </weight>
|
|
6312
6102
|
**/
|
|
6313
6103
|
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
|
|
6314
6104
|
Id: any;
|
|
@@ -6331,18 +6121,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6331
6121
|
* The origin of this call must be _Signed_. Any account can call this function, even if
|
|
6332
6122
|
* it is not one of the stakers.
|
|
6333
6123
|
*
|
|
6334
|
-
*
|
|
6335
|
-
* -
|
|
6336
|
-
* - Contains a limited number of reads and writes.
|
|
6337
|
-
* -----------
|
|
6338
|
-
* N is the Number of payouts for the validator (including the validator)
|
|
6339
|
-
* Weight:
|
|
6340
|
-
* - Reward Destination Staked: O(N)
|
|
6341
|
-
* - Reward Destination Controller (Creating): O(N)
|
|
6342
|
-
*
|
|
6343
|
-
* NOTE: weights are assuming that payouts are made to alive stash account (Staked).
|
|
6344
|
-
* Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
|
|
6345
|
-
* # </weight>
|
|
6124
|
+
* ## Complexity
|
|
6125
|
+
* - At most O(MaxNominatorRewardedPerValidator).
|
|
6346
6126
|
**/
|
|
6347
6127
|
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
6348
6128
|
/**
|
|
@@ -6365,11 +6145,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6365
6145
|
*
|
|
6366
6146
|
* The dispatch origin must be signed by the controller.
|
|
6367
6147
|
*
|
|
6368
|
-
*
|
|
6148
|
+
* ## Complexity
|
|
6369
6149
|
* - Time complexity: O(L), where L is unlocking chunks
|
|
6370
6150
|
* - Bounded by `MaxUnlockingChunks`.
|
|
6371
|
-
* - Storage changes: Can't increase storage, only decrease it.
|
|
6372
|
-
* # </weight>
|
|
6373
6151
|
**/
|
|
6374
6152
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
6375
6153
|
/**
|
|
@@ -6378,9 +6156,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6378
6156
|
*
|
|
6379
6157
|
* The dispatch origin must be Root.
|
|
6380
6158
|
*
|
|
6381
|
-
*
|
|
6159
|
+
* ## Complexity
|
|
6382
6160
|
* Same as [`Self::set_validator_count`].
|
|
6383
|
-
* # </weight>
|
|
6384
6161
|
**/
|
|
6385
6162
|
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
|
|
6386
6163
|
/**
|
|
@@ -6390,16 +6167,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6390
6167
|
*
|
|
6391
6168
|
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
|
6392
6169
|
*
|
|
6393
|
-
*
|
|
6170
|
+
* ## Complexity
|
|
6171
|
+
* O(1)
|
|
6394
6172
|
* - Independent of the arguments. Insignificant complexity.
|
|
6395
6173
|
* - Contains a limited number of reads.
|
|
6396
6174
|
* - Writes are limited to the `origin` account key.
|
|
6397
|
-
* ----------
|
|
6398
|
-
* Weight: O(1)
|
|
6399
|
-
* DB Weight:
|
|
6400
|
-
* - Read: Bonded, Ledger New Controller, Ledger Old Controller
|
|
6401
|
-
* - Write: Bonded, Ledger New Controller, Ledger Old Controller
|
|
6402
|
-
* # </weight>
|
|
6403
6175
|
**/
|
|
6404
6176
|
setController: AugmentedSubmittable<(controller: MultiAddress | {
|
|
6405
6177
|
Id: any;
|
|
@@ -6432,16 +6204,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6432
6204
|
*
|
|
6433
6205
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
6434
6206
|
*
|
|
6435
|
-
*
|
|
6207
|
+
* ## Complexity
|
|
6208
|
+
* - O(1)
|
|
6436
6209
|
* - Independent of the arguments. Insignificant complexity.
|
|
6437
6210
|
* - Contains a limited number of reads.
|
|
6438
6211
|
* - Writes are limited to the `origin` account key.
|
|
6439
6212
|
* ---------
|
|
6440
|
-
* - Weight: O(1)
|
|
6441
|
-
* - DB Weight:
|
|
6442
|
-
* - Read: Ledger
|
|
6443
|
-
* - Write: Payee
|
|
6444
|
-
* # </weight>
|
|
6445
6213
|
**/
|
|
6446
6214
|
setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
|
|
6447
6215
|
Staked: any;
|
|
@@ -6515,10 +6283,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6515
6283
|
*
|
|
6516
6284
|
* The dispatch origin must be Root.
|
|
6517
6285
|
*
|
|
6518
|
-
*
|
|
6519
|
-
*
|
|
6520
|
-
* Write: Validator Count
|
|
6521
|
-
* # </weight>
|
|
6286
|
+
* ## Complexity
|
|
6287
|
+
* O(1)
|
|
6522
6288
|
**/
|
|
6523
6289
|
setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
6524
6290
|
/**
|
|
@@ -6566,10 +6332,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6566
6332
|
*
|
|
6567
6333
|
* See also [`Call::unbond`].
|
|
6568
6334
|
*
|
|
6569
|
-
*
|
|
6570
|
-
*
|
|
6335
|
+
* ## Complexity
|
|
6336
|
+
* O(S) where S is the number of slashing spans to remove
|
|
6571
6337
|
* NOTE: Weight annotation is the kill scenario, we refund otherwise.
|
|
6572
|
-
* # </weight>
|
|
6573
6338
|
**/
|
|
6574
6339
|
withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
6575
6340
|
/**
|
|
@@ -6679,11 +6444,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6679
6444
|
*
|
|
6680
6445
|
* The dispatch origin for this call must be _Signed_.
|
|
6681
6446
|
*
|
|
6682
|
-
*
|
|
6447
|
+
* ## Complexity
|
|
6683
6448
|
* - O(1).
|
|
6684
|
-
* - Limited storage reads.
|
|
6685
|
-
* - One DB change.
|
|
6686
|
-
* # </weight>
|
|
6687
6449
|
**/
|
|
6688
6450
|
setKey: AugmentedSubmittable<(updated: MultiAddress | {
|
|
6689
6451
|
Id: any;
|
|
@@ -6701,12 +6463,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6701
6463
|
*
|
|
6702
6464
|
* The dispatch origin for this call must be _Signed_.
|
|
6703
6465
|
*
|
|
6704
|
-
*
|
|
6466
|
+
* ## Complexity
|
|
6705
6467
|
* - O(1).
|
|
6706
|
-
* - Limited storage reads.
|
|
6707
|
-
* - One DB write (event).
|
|
6708
|
-
* - Weight of derivative `call` execution + 10,000.
|
|
6709
|
-
* # </weight>
|
|
6710
6468
|
**/
|
|
6711
6469
|
sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
|
6712
6470
|
/**
|
|
@@ -6715,12 +6473,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6715
6473
|
*
|
|
6716
6474
|
* The dispatch origin for this call must be _Signed_.
|
|
6717
6475
|
*
|
|
6718
|
-
*
|
|
6476
|
+
* ## Complexity
|
|
6719
6477
|
* - O(1).
|
|
6720
|
-
* - Limited storage reads.
|
|
6721
|
-
* - One DB write (event).
|
|
6722
|
-
* - Weight of derivative `call` execution + 10,000.
|
|
6723
|
-
* # </weight>
|
|
6724
6478
|
**/
|
|
6725
6479
|
sudoAs: AugmentedSubmittable<(who: MultiAddress | {
|
|
6726
6480
|
Id: any;
|
|
@@ -6740,10 +6494,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6740
6494
|
*
|
|
6741
6495
|
* The dispatch origin for this call must be _Signed_.
|
|
6742
6496
|
*
|
|
6743
|
-
*
|
|
6497
|
+
* ## Complexity
|
|
6744
6498
|
* - O(1).
|
|
6745
|
-
* - The weight of this call is defined by the caller.
|
|
6746
|
-
* # </weight>
|
|
6747
6499
|
**/
|
|
6748
6500
|
sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
|
|
6749
6501
|
refTime?: any;
|
|
@@ -6769,9 +6521,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6769
6521
|
/**
|
|
6770
6522
|
* Make some on-chain remark.
|
|
6771
6523
|
*
|
|
6772
|
-
*
|
|
6524
|
+
* ## Complexity
|
|
6773
6525
|
* - `O(1)`
|
|
6774
|
-
* # </weight>
|
|
6775
6526
|
**/
|
|
6776
6527
|
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
6777
6528
|
/**
|
|
@@ -6781,28 +6532,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6781
6532
|
/**
|
|
6782
6533
|
* Set the new runtime code.
|
|
6783
6534
|
*
|
|
6784
|
-
*
|
|
6535
|
+
* ## Complexity
|
|
6785
6536
|
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
|
|
6786
|
-
* - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
|
|
6787
|
-
* expensive).
|
|
6788
|
-
* - 1 storage write (codec `O(C)`).
|
|
6789
|
-
* - 1 digest item.
|
|
6790
|
-
* - 1 event.
|
|
6791
|
-
* The weight of this function is dependent on the runtime, but generally this is very
|
|
6792
|
-
* expensive. We will treat this as a full block.
|
|
6793
|
-
* # </weight>
|
|
6794
6537
|
**/
|
|
6795
6538
|
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
6796
6539
|
/**
|
|
6797
6540
|
* Set the new runtime code without doing any checks of the given `code`.
|
|
6798
6541
|
*
|
|
6799
|
-
*
|
|
6542
|
+
* ## Complexity
|
|
6800
6543
|
* - `O(C)` where `C` length of `code`
|
|
6801
|
-
* - 1 storage write (codec `O(C)`).
|
|
6802
|
-
* - 1 digest item.
|
|
6803
|
-
* - 1 event.
|
|
6804
|
-
* The weight of this function is dependent on the runtime. We will treat this as a full
|
|
6805
|
-
* block. # </weight>
|
|
6806
6544
|
**/
|
|
6807
6545
|
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
6808
6546
|
/**
|
|
@@ -6838,20 +6576,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6838
6576
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
6839
6577
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
6840
6578
|
*
|
|
6841
|
-
*
|
|
6842
|
-
* ## Weight
|
|
6579
|
+
* ## Complexity
|
|
6843
6580
|
* - `O(B + M + P1 + P2)` where:
|
|
6844
6581
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
6845
6582
|
* - `M` is members-count (code- and governance-bounded)
|
|
6846
6583
|
* - `P1` is the complexity of `proposal` preimage.
|
|
6847
6584
|
* - `P2` is proposal-count (code-bounded)
|
|
6848
|
-
* - DB:
|
|
6849
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
6850
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
6851
|
-
* `O(P2)`)
|
|
6852
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
6853
|
-
* - up to 3 events
|
|
6854
|
-
* # </weight>
|
|
6855
6585
|
**/
|
|
6856
6586
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
6857
6587
|
refTime?: any;
|
|
@@ -6876,20 +6606,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6876
6606
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
6877
6607
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
6878
6608
|
*
|
|
6879
|
-
*
|
|
6880
|
-
* ## Weight
|
|
6609
|
+
* ## Complexity
|
|
6881
6610
|
* - `O(B + M + P1 + P2)` where:
|
|
6882
6611
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
6883
6612
|
* - `M` is members-count (code- and governance-bounded)
|
|
6884
6613
|
* - `P1` is the complexity of `proposal` preimage.
|
|
6885
6614
|
* - `P2` is proposal-count (code-bounded)
|
|
6886
|
-
* - DB:
|
|
6887
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
6888
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
6889
|
-
* `O(P2)`)
|
|
6890
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
6891
|
-
* - up to 3 events
|
|
6892
|
-
* # </weight>
|
|
6893
6615
|
**/
|
|
6894
6616
|
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>]>;
|
|
6895
6617
|
/**
|
|
@@ -6901,12 +6623,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6901
6623
|
* Parameters:
|
|
6902
6624
|
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
6903
6625
|
*
|
|
6904
|
-
*
|
|
6905
|
-
*
|
|
6906
|
-
* DB Weight:
|
|
6907
|
-
* * Reads: Proposals
|
|
6908
|
-
* * Writes: Voting, Proposals, ProposalOf
|
|
6909
|
-
* # </weight>
|
|
6626
|
+
* ## Complexity
|
|
6627
|
+
* O(P) where P is the number of max proposals
|
|
6910
6628
|
**/
|
|
6911
6629
|
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
6912
6630
|
/**
|
|
@@ -6914,13 +6632,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6914
6632
|
*
|
|
6915
6633
|
* Origin must be a member of the collective.
|
|
6916
6634
|
*
|
|
6917
|
-
*
|
|
6918
|
-
*
|
|
6919
|
-
* - `
|
|
6920
|
-
* `
|
|
6921
|
-
* -
|
|
6922
|
-
* - 1 event
|
|
6923
|
-
* # </weight>
|
|
6635
|
+
* ## Complexity:
|
|
6636
|
+
* - `O(B + M + P)` where:
|
|
6637
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
6638
|
+
* - `M` members-count (code-bounded)
|
|
6639
|
+
* - `P` complexity of dispatching `proposal`
|
|
6924
6640
|
**/
|
|
6925
6641
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
6926
6642
|
/**
|
|
@@ -6931,26 +6647,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6931
6647
|
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
6932
6648
|
* or put up for voting.
|
|
6933
6649
|
*
|
|
6934
|
-
*
|
|
6935
|
-
* ## Weight
|
|
6650
|
+
* ## Complexity
|
|
6936
6651
|
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
6937
6652
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
6938
6653
|
* - `M` is members-count (code- and governance-bounded)
|
|
6939
6654
|
* - branching is influenced by `threshold` where:
|
|
6940
6655
|
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
6941
6656
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
6942
|
-
* - DB:
|
|
6943
|
-
* - 1 storage read `is_member` (codec `O(M)`)
|
|
6944
|
-
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
6945
|
-
* - DB accesses influenced by `threshold`:
|
|
6946
|
-
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
6947
|
-
* - OR proposal insertion (`threshold <= 2`)
|
|
6948
|
-
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
6949
|
-
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
6950
|
-
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
6951
|
-
* - 1 storage write `Voting` (codec `O(M)`)
|
|
6952
|
-
* - 1 event
|
|
6953
|
-
* # </weight>
|
|
6954
6657
|
**/
|
|
6955
6658
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
6956
6659
|
/**
|
|
@@ -6973,19 +6676,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6973
6676
|
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
6974
6677
|
* with other logic managing the member set.
|
|
6975
6678
|
*
|
|
6976
|
-
*
|
|
6977
|
-
* ## Weight
|
|
6679
|
+
* ## Complexity:
|
|
6978
6680
|
* - `O(MP + N)` where:
|
|
6979
6681
|
* - `M` old-members-count (code- and governance-bounded)
|
|
6980
6682
|
* - `N` new-members-count (code- and governance-bounded)
|
|
6981
6683
|
* - `P` proposals-count (code-bounded)
|
|
6982
|
-
* - DB:
|
|
6983
|
-
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
6984
|
-
* members
|
|
6985
|
-
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
6986
|
-
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
6987
|
-
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
6988
|
-
* # </weight>
|
|
6989
6684
|
**/
|
|
6990
6685
|
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]>;
|
|
6991
6686
|
/**
|
|
@@ -6996,14 +6691,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6996
6691
|
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
6997
6692
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
6998
6693
|
* fee.
|
|
6999
|
-
*
|
|
7000
|
-
* ## Weight
|
|
6694
|
+
* ## Complexity
|
|
7001
6695
|
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
7002
|
-
* - DB:
|
|
7003
|
-
* - 1 storage read `Members` (codec `O(M)`)
|
|
7004
|
-
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
7005
|
-
* - 1 event
|
|
7006
|
-
* # </weight>
|
|
7007
6696
|
**/
|
|
7008
6697
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
7009
6698
|
/**
|
|
@@ -7136,12 +6825,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7136
6825
|
*
|
|
7137
6826
|
* The dispatch origin for this call must be `Inherent`.
|
|
7138
6827
|
*
|
|
7139
|
-
*
|
|
6828
|
+
* ## Complexity
|
|
7140
6829
|
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
7141
6830
|
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
|
|
7142
6831
|
* `on_finalize`)
|
|
7143
6832
|
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
7144
|
-
* # </weight>
|
|
7145
6833
|
**/
|
|
7146
6834
|
set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
|
|
7147
6835
|
/**
|
|
@@ -7160,13 +6848,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7160
6848
|
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
7161
6849
|
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
7162
6850
|
*
|
|
7163
|
-
*
|
|
7164
|
-
* -
|
|
7165
|
-
*
|
|
7166
|
-
*
|
|
7167
|
-
* - DbReads: `Tips`, `Tippers`, `tip finder`
|
|
7168
|
-
* - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
|
|
7169
|
-
* # </weight>
|
|
6851
|
+
* ## Complexity
|
|
6852
|
+
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
6853
|
+
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
6854
|
+
* the implementation of `T::Tippers`.
|
|
7170
6855
|
**/
|
|
7171
6856
|
closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
7172
6857
|
/**
|
|
@@ -7183,12 +6868,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7183
6868
|
*
|
|
7184
6869
|
* Emits `NewTip` if successful.
|
|
7185
6870
|
*
|
|
7186
|
-
*
|
|
7187
|
-
* -
|
|
6871
|
+
* ## Complexity
|
|
6872
|
+
* - `O(R)` where `R` length of `reason`.
|
|
7188
6873
|
* - encoding and hashing of 'reason'
|
|
7189
|
-
* - DbReads: `Reasons`, `Tips`
|
|
7190
|
-
* - DbWrites: `Reasons`, `Tips`
|
|
7191
|
-
* # </weight>
|
|
7192
6874
|
**/
|
|
7193
6875
|
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
7194
6876
|
Id: any;
|
|
@@ -7215,12 +6897,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7215
6897
|
*
|
|
7216
6898
|
* Emits `TipRetracted` if successful.
|
|
7217
6899
|
*
|
|
7218
|
-
*
|
|
7219
|
-
* -
|
|
6900
|
+
* ## Complexity
|
|
6901
|
+
* - `O(1)`
|
|
7220
6902
|
* - Depends on the length of `T::Hash` which is fixed.
|
|
7221
|
-
* - DbReads: `Tips`, `origin account`
|
|
7222
|
-
* - DbWrites: `Reasons`, `Tips`, `origin account`
|
|
7223
|
-
* # </weight>
|
|
7224
6903
|
**/
|
|
7225
6904
|
retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
7226
6905
|
/**
|
|
@@ -7232,10 +6911,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7232
6911
|
*
|
|
7233
6912
|
* Emits `TipSlashed` if successful.
|
|
7234
6913
|
*
|
|
7235
|
-
*
|
|
7236
|
-
*
|
|
7237
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
7238
|
-
* # </weight>
|
|
6914
|
+
* ## Complexity
|
|
6915
|
+
* - O(1).
|
|
7239
6916
|
**/
|
|
7240
6917
|
slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
7241
6918
|
/**
|
|
@@ -7253,16 +6930,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7253
6930
|
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
7254
6931
|
* has started.
|
|
7255
6932
|
*
|
|
7256
|
-
*
|
|
7257
|
-
* -
|
|
7258
|
-
*
|
|
7259
|
-
*
|
|
6933
|
+
* ## Complexity
|
|
6934
|
+
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
6935
|
+
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
6936
|
+
* The actual cost depends on the implementation of `T::Tippers`.
|
|
7260
6937
|
*
|
|
7261
6938
|
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
7262
6939
|
* is weighted as if almost full i.e of length `T-1`.
|
|
7263
|
-
* - DbReads: `Tippers`, `Tips`
|
|
7264
|
-
* - DbWrites: `Tips`
|
|
7265
|
-
* # </weight>
|
|
7266
6940
|
**/
|
|
7267
6941
|
tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
|
7268
6942
|
/**
|
|
@@ -7279,15 +6953,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7279
6953
|
*
|
|
7280
6954
|
* Emits `NewTip` if successful.
|
|
7281
6955
|
*
|
|
7282
|
-
*
|
|
7283
|
-
* -
|
|
6956
|
+
* ## Complexity
|
|
6957
|
+
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
7284
6958
|
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
7285
6959
|
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
7286
6960
|
* `T::Tippers`.
|
|
7287
6961
|
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
7288
|
-
* - DbReads: `Tippers`, `Reasons`
|
|
7289
|
-
* - DbWrites: `Reasons`, `Tips`
|
|
7290
|
-
* # </weight>
|
|
7291
6962
|
**/
|
|
7292
6963
|
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
7293
6964
|
Id: any;
|
|
@@ -7309,12 +6980,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7309
6980
|
/**
|
|
7310
6981
|
* Check storage proof for block number `block_number() - StoragePeriod`.
|
|
7311
6982
|
* If such block does not exist the proof is expected to be `None`.
|
|
7312
|
-
*
|
|
6983
|
+
* ## Complexity
|
|
7313
6984
|
* - Linear w.r.t the number of indexed transactions in the proved block for random
|
|
7314
6985
|
* probing.
|
|
7315
6986
|
* There's a DB read for each transaction.
|
|
7316
|
-
* Here we assume a maximum of 100 probed transactions.
|
|
7317
|
-
* # </weight>
|
|
7318
6987
|
**/
|
|
7319
6988
|
checkProof: AugmentedSubmittable<(proof: SpTransactionStorageProofTransactionStorageProof | {
|
|
7320
6989
|
chunk?: any;
|
|
@@ -7325,18 +6994,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7325
6994
|
* previous `store` or `renew` call and transaction index within that block.
|
|
7326
6995
|
* Transaction index is emitted in the `Stored` or `Renewed` event.
|
|
7327
6996
|
* Applies same fees as `store`.
|
|
7328
|
-
*
|
|
7329
|
-
* -
|
|
7330
|
-
* # </weight>
|
|
6997
|
+
* ## Complexity
|
|
6998
|
+
* - O(1).
|
|
7331
6999
|
**/
|
|
7332
7000
|
renew: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
7333
7001
|
/**
|
|
7334
7002
|
* Index and store data off chain. Minimum data size is 1 bytes, maximum is
|
|
7335
7003
|
* `MaxTransactionSize`. Data will be removed after `STORAGE_PERIOD` blocks, unless `renew`
|
|
7336
|
-
* is called.
|
|
7337
|
-
*
|
|
7338
|
-
*
|
|
7339
|
-
* # </weight>
|
|
7004
|
+
* is called.
|
|
7005
|
+
* ## Complexity
|
|
7006
|
+
* - O(n*log(n)) of data size, as all data is pushed to an in-memory trie.
|
|
7340
7007
|
**/
|
|
7341
7008
|
store: AugmentedSubmittable<(data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
7342
7009
|
/**
|
|
@@ -7351,11 +7018,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7351
7018
|
*
|
|
7352
7019
|
* May only be called from `T::ApproveOrigin`.
|
|
7353
7020
|
*
|
|
7354
|
-
*
|
|
7355
|
-
* -
|
|
7356
|
-
* - DbReads: `Proposals`, `Approvals`
|
|
7357
|
-
* - DbWrite: `Approvals`
|
|
7358
|
-
* # </weight>
|
|
7021
|
+
* ## Complexity
|
|
7022
|
+
* - O(1).
|
|
7359
7023
|
**/
|
|
7360
7024
|
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
7361
7025
|
/**
|
|
@@ -7363,11 +7027,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7363
7027
|
* is reserved and slashed if the proposal is rejected. It is returned once the
|
|
7364
7028
|
* proposal is awarded.
|
|
7365
7029
|
*
|
|
7366
|
-
*
|
|
7367
|
-
* -
|
|
7368
|
-
* - DbReads: `ProposalCount`, `origin account`
|
|
7369
|
-
* - DbWrites: `ProposalCount`, `Proposals`, `origin account`
|
|
7370
|
-
* # </weight>
|
|
7030
|
+
* ## Complexity
|
|
7031
|
+
* - O(1)
|
|
7371
7032
|
**/
|
|
7372
7033
|
proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
7373
7034
|
Id: any;
|
|
@@ -7385,11 +7046,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7385
7046
|
*
|
|
7386
7047
|
* May only be called from `T::RejectOrigin`.
|
|
7387
7048
|
*
|
|
7388
|
-
*
|
|
7389
|
-
* -
|
|
7390
|
-
* - DbReads: `Proposals`, `rejected proposer account`
|
|
7391
|
-
* - DbWrites: `Proposals`, `rejected proposer account`
|
|
7392
|
-
* # </weight>
|
|
7049
|
+
* ## Complexity
|
|
7050
|
+
* - O(1)
|
|
7393
7051
|
**/
|
|
7394
7052
|
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
7395
7053
|
/**
|
|
@@ -7399,10 +7057,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7399
7057
|
* May only be called from `T::RejectOrigin`.
|
|
7400
7058
|
* - `proposal_id`: The index of a proposal
|
|
7401
7059
|
*
|
|
7402
|
-
*
|
|
7403
|
-
* -
|
|
7404
|
-
* - Db reads and writes: `Approvals`
|
|
7405
|
-
* # </weight>
|
|
7060
|
+
* ## Complexity
|
|
7061
|
+
* - O(A) where `A` is the number of approvals
|
|
7406
7062
|
*
|
|
7407
7063
|
* Errors:
|
|
7408
7064
|
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
|
@@ -8057,9 +7713,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8057
7713
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
8058
7714
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
8059
7715
|
*
|
|
8060
|
-
*
|
|
8061
|
-
* -
|
|
8062
|
-
* # </weight>
|
|
7716
|
+
* ## Complexity
|
|
7717
|
+
* - O(C) where C is the number of calls to be batched.
|
|
8063
7718
|
*
|
|
8064
7719
|
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
8065
7720
|
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
@@ -8080,9 +7735,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8080
7735
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
8081
7736
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
8082
7737
|
*
|
|
8083
|
-
*
|
|
8084
|
-
* -
|
|
8085
|
-
* # </weight>
|
|
7738
|
+
* ## Complexity
|
|
7739
|
+
* - O(C) where C is the number of calls to be batched.
|
|
8086
7740
|
**/
|
|
8087
7741
|
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
8088
7742
|
/**
|
|
@@ -8090,12 +7744,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8090
7744
|
*
|
|
8091
7745
|
* The dispatch origin for this call must be _Root_.
|
|
8092
7746
|
*
|
|
8093
|
-
*
|
|
7747
|
+
* ## Complexity
|
|
8094
7748
|
* - O(1).
|
|
8095
|
-
* - Limited storage reads.
|
|
8096
|
-
* - One DB write (event).
|
|
8097
|
-
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
|
8098
|
-
* # </weight>
|
|
8099
7749
|
**/
|
|
8100
7750
|
dispatchAs: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | {
|
|
8101
7751
|
system: any;
|
|
@@ -8120,9 +7770,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8120
7770
|
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
8121
7771
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
8122
7772
|
*
|
|
8123
|
-
*
|
|
8124
|
-
* -
|
|
8125
|
-
* # </weight>
|
|
7773
|
+
* ## Complexity
|
|
7774
|
+
* - O(C) where C is the number of calls to be batched.
|
|
8126
7775
|
**/
|
|
8127
7776
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
8128
7777
|
/**
|
|
@@ -8156,12 +7805,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8156
7805
|
*
|
|
8157
7806
|
* NOTE: This will unlock all schedules through the current block.
|
|
8158
7807
|
*
|
|
8159
|
-
*
|
|
7808
|
+
* ## Complexity
|
|
8160
7809
|
* - `O(1)`.
|
|
8161
|
-
* - DbWeight: 4 Reads, 4 Writes
|
|
8162
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
8163
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
8164
|
-
* # </weight>
|
|
8165
7810
|
**/
|
|
8166
7811
|
forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
8167
7812
|
Id: any;
|
|
@@ -8220,12 +7865,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8220
7865
|
*
|
|
8221
7866
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
8222
7867
|
*
|
|
8223
|
-
*
|
|
7868
|
+
* ## Complexity
|
|
8224
7869
|
* - `O(1)`.
|
|
8225
|
-
* - DbWeight: 2 Reads, 2 Writes
|
|
8226
|
-
* - Reads: Vesting Storage, Balances Locks, [Sender Account]
|
|
8227
|
-
* - Writes: Vesting Storage, Balances Locks, [Sender Account]
|
|
8228
|
-
* # </weight>
|
|
8229
7870
|
**/
|
|
8230
7871
|
vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
8231
7872
|
/**
|
|
@@ -8240,12 +7881,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8240
7881
|
*
|
|
8241
7882
|
* NOTE: This will unlock all schedules through the current block.
|
|
8242
7883
|
*
|
|
8243
|
-
*
|
|
7884
|
+
* ## Complexity
|
|
8244
7885
|
* - `O(1)`.
|
|
8245
|
-
* - DbWeight: 3 Reads, 3 Writes
|
|
8246
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
8247
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
8248
|
-
* # </weight>
|
|
8249
7886
|
**/
|
|
8250
7887
|
vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
|
|
8251
7888
|
Id: any;
|
|
@@ -8272,12 +7909,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8272
7909
|
*
|
|
8273
7910
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
8274
7911
|
*
|
|
8275
|
-
*
|
|
7912
|
+
* ## Complexity
|
|
8276
7913
|
* - `O(1)`.
|
|
8277
|
-
* - DbWeight: 3 Reads, 3 Writes
|
|
8278
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account
|
|
8279
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account
|
|
8280
|
-
* # </weight>
|
|
8281
7914
|
**/
|
|
8282
7915
|
vestOther: AugmentedSubmittable<(target: MultiAddress | {
|
|
8283
7916
|
Id: any;
|