@polkadot/api-augment 7.0.3-8 → 7.1.2-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.cjs +5 -0
- package/base.d.ts +2 -0
- package/{augment/index.js → base.js} +1 -7
- package/bundle.cjs +1 -1
- package/bundle.d.ts +1 -1
- package/bundle.js +1 -1
- package/{augment → kusama}/consts.cjs +0 -0
- package/kusama/consts.d.ts +892 -0
- package/{augment → kusama}/consts.js +0 -0
- package/{augment → kusama}/errors.cjs +0 -0
- package/kusama/errors.d.ts +1855 -0
- package/{augment → kusama}/errors.js +0 -0
- package/{augment → kusama}/events.cjs +0 -0
- package/kusama/events.d.ts +1278 -0
- package/{augment → kusama}/events.js +0 -0
- package/{augment → kusama}/index.cjs +1 -3
- package/{augment → kusama}/index.d.ts +1 -2
- package/kusama/index.js +8 -0
- package/{augment → kusama}/query.cjs +0 -0
- package/kusama/query.d.ts +1925 -0
- package/{augment → kusama}/query.js +0 -0
- package/{augment → kusama}/tx.cjs +0 -0
- package/kusama/tx.d.ts +4877 -0
- package/{augment → kusama}/tx.js +0 -0
- package/package.json +100 -35
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/polkadot/consts.cjs +1 -0
- package/polkadot/consts.d.ts +764 -0
- package/polkadot/consts.js +1 -0
- package/polkadot/errors.cjs +1 -0
- package/polkadot/errors.d.ts +1634 -0
- package/polkadot/errors.js +1 -0
- package/polkadot/events.cjs +1 -0
- package/polkadot/events.d.ts +1126 -0
- package/polkadot/events.js +1 -0
- package/polkadot/index.cjs +13 -0
- package/polkadot/index.d.ts +6 -0
- package/polkadot/index.js +8 -0
- package/polkadot/query.cjs +1 -0
- package/polkadot/query.d.ts +1770 -0
- package/polkadot/query.js +1 -0
- package/polkadot/tx.cjs +1 -0
- package/polkadot/tx.d.ts +4275 -0
- package/polkadot/tx.js +1 -0
- package/substrate/consts.cjs +1 -0
- package/{augment → substrate}/consts.d.ts +0 -0
- package/substrate/consts.js +1 -0
- package/substrate/errors.cjs +1 -0
- package/{augment → substrate}/errors.d.ts +0 -0
- package/substrate/errors.js +1 -0
- package/substrate/events.cjs +1 -0
- package/{augment → substrate}/events.d.ts +0 -0
- package/substrate/events.js +1 -0
- package/substrate/index.cjs +13 -0
- package/substrate/index.d.ts +6 -0
- package/substrate/index.js +8 -0
- package/substrate/query.cjs +1 -0
- package/{augment → substrate}/query.d.ts +0 -0
- package/substrate/query.js +1 -0
- package/substrate/tx.cjs +1 -0
- package/{augment → substrate}/tx.d.ts +0 -0
- package/substrate/tx.js +1 -0
package/polkadot/tx.d.ts
ADDED
|
@@ -0,0 +1,4275 @@
|
|
|
1
|
+
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
+
import type { Data } from '@polkadot/types';
|
|
3
|
+
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
|
+
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
|
+
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
|
+
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
+
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV1PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
|
+
declare module '@polkadot/api-base/types/submittable' {
|
|
9
|
+
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
10
|
+
auctions: {
|
|
11
|
+
/**
|
|
12
|
+
* Make a new bid from an account (including a parachain account) for deploying a new
|
|
13
|
+
* parachain.
|
|
14
|
+
*
|
|
15
|
+
* Multiple simultaneous bids from the same bidder are allowed only as long as all active
|
|
16
|
+
* bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted.
|
|
17
|
+
*
|
|
18
|
+
* - `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and
|
|
19
|
+
* funded by) the same account.
|
|
20
|
+
* - `auction_index` is the index of the auction to bid on. Should just be the present
|
|
21
|
+
* value of `AuctionCounter`.
|
|
22
|
+
* - `first_slot` is the first lease period index of the range to bid on. This is the
|
|
23
|
+
* absolute lease period index value, not an auction-specific offset.
|
|
24
|
+
* - `last_slot` is the last lease period index of the range to bid on. This is the
|
|
25
|
+
* absolute lease period index value, not an auction-specific offset.
|
|
26
|
+
* - `amount` is the amount to bid to be held as deposit for the parachain should the
|
|
27
|
+
* bid win. This amount is held throughout the range.
|
|
28
|
+
**/
|
|
29
|
+
bid: AugmentedSubmittable<(para: Compact<u32> | AnyNumber | Uint8Array, auctionIndex: Compact<u32> | AnyNumber | Uint8Array, firstSlot: Compact<u32> | AnyNumber | Uint8Array, lastSlot: Compact<u32> | AnyNumber | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, Compact<u32>, Compact<u32>, Compact<u128>]>;
|
|
30
|
+
/**
|
|
31
|
+
* Cancel an in-progress auction.
|
|
32
|
+
*
|
|
33
|
+
* Can only be called by Root origin.
|
|
34
|
+
**/
|
|
35
|
+
cancelAuction: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
36
|
+
/**
|
|
37
|
+
* Create a new auction.
|
|
38
|
+
*
|
|
39
|
+
* This can only happen when there isn't already an auction in progress and may only be
|
|
40
|
+
* called by the root origin. Accepts the `duration` of this auction and the
|
|
41
|
+
* `lease_period_index` of the initial lease period of the four that are to be auctioned.
|
|
42
|
+
**/
|
|
43
|
+
newAuction: AugmentedSubmittable<(duration: Compact<u32> | AnyNumber | Uint8Array, leasePeriodIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
|
|
44
|
+
/**
|
|
45
|
+
* Generic tx
|
|
46
|
+
**/
|
|
47
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
48
|
+
};
|
|
49
|
+
authorship: {
|
|
50
|
+
/**
|
|
51
|
+
* Provide a set of uncles.
|
|
52
|
+
**/
|
|
53
|
+
setUncles: AugmentedSubmittable<(newUncles: Vec<SpRuntimeHeader> | (SpRuntimeHeader | {
|
|
54
|
+
parentHash?: any;
|
|
55
|
+
number?: any;
|
|
56
|
+
stateRoot?: any;
|
|
57
|
+
extrinsicsRoot?: any;
|
|
58
|
+
digest?: any;
|
|
59
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<SpRuntimeHeader>]>;
|
|
60
|
+
/**
|
|
61
|
+
* Generic tx
|
|
62
|
+
**/
|
|
63
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
64
|
+
};
|
|
65
|
+
babe: {
|
|
66
|
+
/**
|
|
67
|
+
* Plan an epoch config change. The epoch config change is recorded and will be enacted on
|
|
68
|
+
* the next call to `enact_epoch_change`. The config will be activated one epoch after.
|
|
69
|
+
* Multiple calls to this method will replace any existing planned config change that had
|
|
70
|
+
* not been enacted yet.
|
|
71
|
+
**/
|
|
72
|
+
planConfigChange: AugmentedSubmittable<(config: SpConsensusBabeDigestsNextConfigDescriptor | {
|
|
73
|
+
V1: any;
|
|
74
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBabeDigestsNextConfigDescriptor]>;
|
|
75
|
+
/**
|
|
76
|
+
* Report authority equivocation/misbehavior. This method will verify
|
|
77
|
+
* the equivocation proof and validate the given key ownership proof
|
|
78
|
+
* against the extracted offender. If both are valid, the offence will
|
|
79
|
+
* be reported.
|
|
80
|
+
**/
|
|
81
|
+
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusSlotsEquivocationProof | {
|
|
82
|
+
offender?: any;
|
|
83
|
+
slot?: any;
|
|
84
|
+
firstHeader?: any;
|
|
85
|
+
secondHeader?: any;
|
|
86
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
87
|
+
session?: any;
|
|
88
|
+
trieNodes?: any;
|
|
89
|
+
validatorCount?: any;
|
|
90
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]>;
|
|
91
|
+
/**
|
|
92
|
+
* Report authority equivocation/misbehavior. This method will verify
|
|
93
|
+
* the equivocation proof and validate the given key ownership proof
|
|
94
|
+
* against the extracted offender. If both are valid, the offence will
|
|
95
|
+
* be reported.
|
|
96
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
97
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
98
|
+
* if the block author is defined it will be defined as the equivocation
|
|
99
|
+
* reporter.
|
|
100
|
+
**/
|
|
101
|
+
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusSlotsEquivocationProof | {
|
|
102
|
+
offender?: any;
|
|
103
|
+
slot?: any;
|
|
104
|
+
firstHeader?: any;
|
|
105
|
+
secondHeader?: any;
|
|
106
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
107
|
+
session?: any;
|
|
108
|
+
trieNodes?: any;
|
|
109
|
+
validatorCount?: any;
|
|
110
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]>;
|
|
111
|
+
/**
|
|
112
|
+
* Generic tx
|
|
113
|
+
**/
|
|
114
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
115
|
+
};
|
|
116
|
+
bagsList: {
|
|
117
|
+
/**
|
|
118
|
+
* Move the caller's Id directly in front of `lighter`.
|
|
119
|
+
*
|
|
120
|
+
* The dispatch origin for this call must be _Signed_ and can only be called by the Id of
|
|
121
|
+
* the account going in front of `lighter`.
|
|
122
|
+
*
|
|
123
|
+
* Only works if
|
|
124
|
+
* - both nodes are within the same bag,
|
|
125
|
+
* - and `origin` has a greater `VoteWeight` than `lighter`.
|
|
126
|
+
**/
|
|
127
|
+
putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
128
|
+
/**
|
|
129
|
+
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
|
130
|
+
* changed its weight that it should properly fall into a different bag than its current
|
|
131
|
+
* one.
|
|
132
|
+
*
|
|
133
|
+
* Anyone can call this function about any potentially dislocated account.
|
|
134
|
+
*
|
|
135
|
+
* Will never return an error; if `dislocated` does not exist or doesn't need a rebag, then
|
|
136
|
+
* it is a noop and fees are still collected from `origin`.
|
|
137
|
+
**/
|
|
138
|
+
rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
139
|
+
/**
|
|
140
|
+
* Generic tx
|
|
141
|
+
**/
|
|
142
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
143
|
+
};
|
|
144
|
+
balances: {
|
|
145
|
+
/**
|
|
146
|
+
* Exactly as `transfer`, except the origin must be root and the source account may be
|
|
147
|
+
* specified.
|
|
148
|
+
* # <weight>
|
|
149
|
+
* - Same as transfer, but additional read and write because the source account is not
|
|
150
|
+
* assumed to be in the overlay.
|
|
151
|
+
* # </weight>
|
|
152
|
+
**/
|
|
153
|
+
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
154
|
+
Id: any;
|
|
155
|
+
} | {
|
|
156
|
+
Index: any;
|
|
157
|
+
} | {
|
|
158
|
+
Raw: any;
|
|
159
|
+
} | {
|
|
160
|
+
Address32: any;
|
|
161
|
+
} | {
|
|
162
|
+
Address20: any;
|
|
163
|
+
} | string | Uint8Array, dest: MultiAddress | {
|
|
164
|
+
Id: any;
|
|
165
|
+
} | {
|
|
166
|
+
Index: any;
|
|
167
|
+
} | {
|
|
168
|
+
Raw: any;
|
|
169
|
+
} | {
|
|
170
|
+
Address32: any;
|
|
171
|
+
} | {
|
|
172
|
+
Address20: any;
|
|
173
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
|
174
|
+
/**
|
|
175
|
+
* Unreserve some balance from a user by force.
|
|
176
|
+
*
|
|
177
|
+
* Can only be called by ROOT.
|
|
178
|
+
**/
|
|
179
|
+
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
|
|
180
|
+
Id: any;
|
|
181
|
+
} | {
|
|
182
|
+
Index: any;
|
|
183
|
+
} | {
|
|
184
|
+
Raw: any;
|
|
185
|
+
} | {
|
|
186
|
+
Address32: any;
|
|
187
|
+
} | {
|
|
188
|
+
Address20: any;
|
|
189
|
+
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
|
190
|
+
/**
|
|
191
|
+
* Set the balances of a given account.
|
|
192
|
+
*
|
|
193
|
+
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
|
194
|
+
* also decrease the total issuance of the system (`TotalIssuance`).
|
|
195
|
+
* If the new free or reserved balance is below the existential deposit,
|
|
196
|
+
* it will reset the account nonce (`frame_system::AccountNonce`).
|
|
197
|
+
*
|
|
198
|
+
* The dispatch origin for this call is `root`.
|
|
199
|
+
**/
|
|
200
|
+
setBalance: AugmentedSubmittable<(who: MultiAddress | {
|
|
201
|
+
Id: any;
|
|
202
|
+
} | {
|
|
203
|
+
Index: any;
|
|
204
|
+
} | {
|
|
205
|
+
Raw: any;
|
|
206
|
+
} | {
|
|
207
|
+
Address32: any;
|
|
208
|
+
} | {
|
|
209
|
+
Address20: any;
|
|
210
|
+
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
|
211
|
+
/**
|
|
212
|
+
* Transfer some liquid free balance to another account.
|
|
213
|
+
*
|
|
214
|
+
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
|
215
|
+
* It will decrease the total issuance of the system by the `TransferFee`.
|
|
216
|
+
* If the sender's account is below the existential deposit as a result
|
|
217
|
+
* of the transfer, the account will be reaped.
|
|
218
|
+
*
|
|
219
|
+
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
220
|
+
*
|
|
221
|
+
* # <weight>
|
|
222
|
+
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
223
|
+
* types. See related functions below.
|
|
224
|
+
* - It contains a limited number of reads and writes internally and no complex
|
|
225
|
+
* computation.
|
|
226
|
+
*
|
|
227
|
+
* Related functions:
|
|
228
|
+
*
|
|
229
|
+
* - `ensure_can_withdraw` is always called internally but has a bounded complexity.
|
|
230
|
+
* - Transferring balances to accounts that did not exist before will cause
|
|
231
|
+
* `T::OnNewAccount::on_new_account` to be called.
|
|
232
|
+
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
233
|
+
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
234
|
+
* that the transfer will not kill the origin account.
|
|
235
|
+
* ---------------------------------
|
|
236
|
+
* - Origin account is already in memory, so no DB operations for them.
|
|
237
|
+
* # </weight>
|
|
238
|
+
**/
|
|
239
|
+
transfer: AugmentedSubmittable<(dest: MultiAddress | {
|
|
240
|
+
Id: any;
|
|
241
|
+
} | {
|
|
242
|
+
Index: any;
|
|
243
|
+
} | {
|
|
244
|
+
Raw: any;
|
|
245
|
+
} | {
|
|
246
|
+
Address32: any;
|
|
247
|
+
} | {
|
|
248
|
+
Address20: any;
|
|
249
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
250
|
+
/**
|
|
251
|
+
* Transfer the entire transferable balance from the caller account.
|
|
252
|
+
*
|
|
253
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
254
|
+
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
|
|
255
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
256
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
257
|
+
* deposits, etc...
|
|
258
|
+
*
|
|
259
|
+
* The dispatch origin of this call must be Signed.
|
|
260
|
+
*
|
|
261
|
+
* - `dest`: The recipient of the transfer.
|
|
262
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
263
|
+
* of the funds the account has, causing the sender account to be killed (false), or
|
|
264
|
+
* transfer everything except at least the existential deposit, which will guarantee to
|
|
265
|
+
* keep the sender account alive (true). # <weight>
|
|
266
|
+
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
267
|
+
* #</weight>
|
|
268
|
+
**/
|
|
269
|
+
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
270
|
+
Id: any;
|
|
271
|
+
} | {
|
|
272
|
+
Index: any;
|
|
273
|
+
} | {
|
|
274
|
+
Raw: any;
|
|
275
|
+
} | {
|
|
276
|
+
Address32: any;
|
|
277
|
+
} | {
|
|
278
|
+
Address20: any;
|
|
279
|
+
} | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
280
|
+
/**
|
|
281
|
+
* Same as the [`transfer`] call, but with a check that the transfer will not kill the
|
|
282
|
+
* origin account.
|
|
283
|
+
*
|
|
284
|
+
* 99% of the time you want [`transfer`] instead.
|
|
285
|
+
*
|
|
286
|
+
* [`transfer`]: struct.Pallet.html#method.transfer
|
|
287
|
+
**/
|
|
288
|
+
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
|
|
289
|
+
Id: any;
|
|
290
|
+
} | {
|
|
291
|
+
Index: any;
|
|
292
|
+
} | {
|
|
293
|
+
Raw: any;
|
|
294
|
+
} | {
|
|
295
|
+
Address32: any;
|
|
296
|
+
} | {
|
|
297
|
+
Address20: any;
|
|
298
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
299
|
+
/**
|
|
300
|
+
* Generic tx
|
|
301
|
+
**/
|
|
302
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
303
|
+
};
|
|
304
|
+
bounties: {
|
|
305
|
+
/**
|
|
306
|
+
* Accept the curator role for a bounty.
|
|
307
|
+
* A deposit will be reserved from curator and refund upon successful payout.
|
|
308
|
+
*
|
|
309
|
+
* May only be called from the curator.
|
|
310
|
+
*
|
|
311
|
+
* # <weight>
|
|
312
|
+
* - O(1).
|
|
313
|
+
* # </weight>
|
|
314
|
+
**/
|
|
315
|
+
acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
316
|
+
/**
|
|
317
|
+
* Approve a bounty proposal. At a later time, the bounty will be funded and become active
|
|
318
|
+
* and the original deposit will be returned.
|
|
319
|
+
*
|
|
320
|
+
* May only be called from `T::ApproveOrigin`.
|
|
321
|
+
*
|
|
322
|
+
* # <weight>
|
|
323
|
+
* - O(1).
|
|
324
|
+
* # </weight>
|
|
325
|
+
**/
|
|
326
|
+
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
327
|
+
/**
|
|
328
|
+
* Award bounty to a beneficiary account. The beneficiary will be able to claim the funds
|
|
329
|
+
* after a delay.
|
|
330
|
+
*
|
|
331
|
+
* The dispatch origin for this call must be the curator of this bounty.
|
|
332
|
+
*
|
|
333
|
+
* - `bounty_id`: Bounty ID to award.
|
|
334
|
+
* - `beneficiary`: The beneficiary account whom will receive the payout.
|
|
335
|
+
*
|
|
336
|
+
* # <weight>
|
|
337
|
+
* - O(1).
|
|
338
|
+
* # </weight>
|
|
339
|
+
**/
|
|
340
|
+
awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
341
|
+
Id: any;
|
|
342
|
+
} | {
|
|
343
|
+
Index: any;
|
|
344
|
+
} | {
|
|
345
|
+
Raw: any;
|
|
346
|
+
} | {
|
|
347
|
+
Address32: any;
|
|
348
|
+
} | {
|
|
349
|
+
Address20: any;
|
|
350
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
|
351
|
+
/**
|
|
352
|
+
* Claim the payout from an awarded bounty after payout delay.
|
|
353
|
+
*
|
|
354
|
+
* The dispatch origin for this call must be the beneficiary of this bounty.
|
|
355
|
+
*
|
|
356
|
+
* - `bounty_id`: Bounty ID to claim.
|
|
357
|
+
*
|
|
358
|
+
* # <weight>
|
|
359
|
+
* - O(1).
|
|
360
|
+
* # </weight>
|
|
361
|
+
**/
|
|
362
|
+
claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
363
|
+
/**
|
|
364
|
+
* Cancel a proposed or active bounty. All the funds will be sent to treasury and
|
|
365
|
+
* the curator deposit will be unreserved if possible.
|
|
366
|
+
*
|
|
367
|
+
* Only `T::RejectOrigin` is able to cancel a bounty.
|
|
368
|
+
*
|
|
369
|
+
* - `bounty_id`: Bounty ID to cancel.
|
|
370
|
+
*
|
|
371
|
+
* # <weight>
|
|
372
|
+
* - O(1).
|
|
373
|
+
* # </weight>
|
|
374
|
+
**/
|
|
375
|
+
closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
376
|
+
/**
|
|
377
|
+
* Extend the expiry time of an active bounty.
|
|
378
|
+
*
|
|
379
|
+
* The dispatch origin for this call must be the curator of this bounty.
|
|
380
|
+
*
|
|
381
|
+
* - `bounty_id`: Bounty ID to extend.
|
|
382
|
+
* - `remark`: additional information.
|
|
383
|
+
*
|
|
384
|
+
* # <weight>
|
|
385
|
+
* - O(1).
|
|
386
|
+
* # </weight>
|
|
387
|
+
**/
|
|
388
|
+
extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
|
|
389
|
+
/**
|
|
390
|
+
* Propose a new bounty.
|
|
391
|
+
*
|
|
392
|
+
* The dispatch origin for this call must be _Signed_.
|
|
393
|
+
*
|
|
394
|
+
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
395
|
+
* `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,
|
|
396
|
+
* or slashed when rejected.
|
|
397
|
+
*
|
|
398
|
+
* - `curator`: The curator account whom will manage this bounty.
|
|
399
|
+
* - `fee`: The curator fee.
|
|
400
|
+
* - `value`: The total payment amount of this bounty, curator fee included.
|
|
401
|
+
* - `description`: The description of this bounty.
|
|
402
|
+
**/
|
|
403
|
+
proposeBounty: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Bytes]>;
|
|
404
|
+
/**
|
|
405
|
+
* Assign a curator to a funded bounty.
|
|
406
|
+
*
|
|
407
|
+
* May only be called from `T::ApproveOrigin`.
|
|
408
|
+
*
|
|
409
|
+
* # <weight>
|
|
410
|
+
* - O(1).
|
|
411
|
+
* # </weight>
|
|
412
|
+
**/
|
|
413
|
+
proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
|
|
414
|
+
Id: any;
|
|
415
|
+
} | {
|
|
416
|
+
Index: any;
|
|
417
|
+
} | {
|
|
418
|
+
Raw: any;
|
|
419
|
+
} | {
|
|
420
|
+
Address32: any;
|
|
421
|
+
} | {
|
|
422
|
+
Address20: any;
|
|
423
|
+
} | string | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
|
|
424
|
+
/**
|
|
425
|
+
* Unassign curator from a bounty.
|
|
426
|
+
*
|
|
427
|
+
* This function can only be called by the `RejectOrigin` a signed origin.
|
|
428
|
+
*
|
|
429
|
+
* If this function is called by the `RejectOrigin`, we assume that the curator is
|
|
430
|
+
* malicious or inactive. As a result, we will slash the curator when possible.
|
|
431
|
+
*
|
|
432
|
+
* If the origin is the curator, we take this as a sign they are unable to do their job and
|
|
433
|
+
* they willingly give up. We could slash them, but for now we allow them to recover their
|
|
434
|
+
* deposit and exit without issue. (We may want to change this if it is abused.)
|
|
435
|
+
*
|
|
436
|
+
* Finally, the origin can be anyone if and only if the curator is "inactive". This allows
|
|
437
|
+
* anyone in the community to call out that a curator is not doing their due diligence, and
|
|
438
|
+
* we should pick a new curator. In this case the curator should also be slashed.
|
|
439
|
+
*
|
|
440
|
+
* # <weight>
|
|
441
|
+
* - O(1).
|
|
442
|
+
* # </weight>
|
|
443
|
+
**/
|
|
444
|
+
unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
445
|
+
/**
|
|
446
|
+
* Generic tx
|
|
447
|
+
**/
|
|
448
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
449
|
+
};
|
|
450
|
+
claims: {
|
|
451
|
+
/**
|
|
452
|
+
* Attest to a statement, needed to finalize the claims process.
|
|
453
|
+
*
|
|
454
|
+
* WARNING: Insecure unless your chain includes `PrevalidateAttests` as a `SignedExtension`.
|
|
455
|
+
*
|
|
456
|
+
* Unsigned Validation:
|
|
457
|
+
* A call to attest is deemed valid if the sender has a `Preclaim` registered
|
|
458
|
+
* and provides a `statement` which is expected for the account.
|
|
459
|
+
*
|
|
460
|
+
* Parameters:
|
|
461
|
+
* - `statement`: The identity of the statement which is being attested to in the signature.
|
|
462
|
+
*
|
|
463
|
+
* <weight>
|
|
464
|
+
* The weight of this call is invariant over the input parameters.
|
|
465
|
+
* Weight includes logic to do pre-validation on `attest` call.
|
|
466
|
+
*
|
|
467
|
+
* Total Complexity: O(1)
|
|
468
|
+
* </weight>
|
|
469
|
+
**/
|
|
470
|
+
attest: AugmentedSubmittable<(statement: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
471
|
+
/**
|
|
472
|
+
* Make a claim to collect your DOTs.
|
|
473
|
+
*
|
|
474
|
+
* The dispatch origin for this call must be _None_.
|
|
475
|
+
*
|
|
476
|
+
* Unsigned Validation:
|
|
477
|
+
* A call to claim is deemed valid if the signature provided matches
|
|
478
|
+
* the expected signed message of:
|
|
479
|
+
*
|
|
480
|
+
* > Ethereum Signed Message:
|
|
481
|
+
* > (configured prefix string)(address)
|
|
482
|
+
*
|
|
483
|
+
* and `address` matches the `dest` account.
|
|
484
|
+
*
|
|
485
|
+
* Parameters:
|
|
486
|
+
* - `dest`: The destination account to payout the claim.
|
|
487
|
+
* - `ethereum_signature`: The signature of an ethereum signed message
|
|
488
|
+
* matching the format described above.
|
|
489
|
+
*
|
|
490
|
+
* <weight>
|
|
491
|
+
* The weight of this call is invariant over the input parameters.
|
|
492
|
+
* Weight includes logic to validate unsigned `claim` call.
|
|
493
|
+
*
|
|
494
|
+
* Total Complexity: O(1)
|
|
495
|
+
* </weight>
|
|
496
|
+
**/
|
|
497
|
+
claim: AugmentedSubmittable<(dest: AccountId32 | string | Uint8Array, ethereumSignature: PolkadotRuntimeCommonClaimsEcdsaSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeCommonClaimsEcdsaSignature]>;
|
|
498
|
+
/**
|
|
499
|
+
* Make a claim to collect your DOTs by signing a statement.
|
|
500
|
+
*
|
|
501
|
+
* The dispatch origin for this call must be _None_.
|
|
502
|
+
*
|
|
503
|
+
* Unsigned Validation:
|
|
504
|
+
* A call to `claim_attest` is deemed valid if the signature provided matches
|
|
505
|
+
* the expected signed message of:
|
|
506
|
+
*
|
|
507
|
+
* > Ethereum Signed Message:
|
|
508
|
+
* > (configured prefix string)(address)(statement)
|
|
509
|
+
*
|
|
510
|
+
* and `address` matches the `dest` account; the `statement` must match that which is
|
|
511
|
+
* expected according to your purchase arrangement.
|
|
512
|
+
*
|
|
513
|
+
* Parameters:
|
|
514
|
+
* - `dest`: The destination account to payout the claim.
|
|
515
|
+
* - `ethereum_signature`: The signature of an ethereum signed message
|
|
516
|
+
* matching the format described above.
|
|
517
|
+
* - `statement`: The identity of the statement which is being attested to in the signature.
|
|
518
|
+
*
|
|
519
|
+
* <weight>
|
|
520
|
+
* The weight of this call is invariant over the input parameters.
|
|
521
|
+
* Weight includes logic to validate unsigned `claim_attest` call.
|
|
522
|
+
*
|
|
523
|
+
* Total Complexity: O(1)
|
|
524
|
+
* </weight>
|
|
525
|
+
**/
|
|
526
|
+
claimAttest: AugmentedSubmittable<(dest: AccountId32 | string | Uint8Array, ethereumSignature: PolkadotRuntimeCommonClaimsEcdsaSignature | string | Uint8Array, statement: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeCommonClaimsEcdsaSignature, Bytes]>;
|
|
527
|
+
/**
|
|
528
|
+
* Mint a new claim to collect DOTs.
|
|
529
|
+
*
|
|
530
|
+
* The dispatch origin for this call must be _Root_.
|
|
531
|
+
*
|
|
532
|
+
* Parameters:
|
|
533
|
+
* - `who`: The Ethereum address allowed to collect this claim.
|
|
534
|
+
* - `value`: The number of DOTs that will be claimed.
|
|
535
|
+
* - `vesting_schedule`: An optional vesting schedule for these DOTs.
|
|
536
|
+
*
|
|
537
|
+
* <weight>
|
|
538
|
+
* The weight of this call is invariant over the input parameters.
|
|
539
|
+
* We assume worst case that both vesting and statement is being inserted.
|
|
540
|
+
*
|
|
541
|
+
* Total Complexity: O(1)
|
|
542
|
+
* </weight>
|
|
543
|
+
**/
|
|
544
|
+
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | object | string | Uint8Array, statement: Option<PolkadotRuntimeCommonClaimsStatementKind> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PolkadotRuntimeCommonClaimsStatementKind>]>;
|
|
545
|
+
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
|
546
|
+
/**
|
|
547
|
+
* Generic tx
|
|
548
|
+
**/
|
|
549
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
550
|
+
};
|
|
551
|
+
configuration: {
|
|
552
|
+
/**
|
|
553
|
+
* Set the availability period for parachains.
|
|
554
|
+
**/
|
|
555
|
+
setChainAvailabilityPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
556
|
+
/**
|
|
557
|
+
* Set the acceptance period for an included candidate.
|
|
558
|
+
**/
|
|
559
|
+
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
560
|
+
/**
|
|
561
|
+
* Set the dispute conclusion by time out period.
|
|
562
|
+
**/
|
|
563
|
+
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
564
|
+
/**
|
|
565
|
+
* Set the maximum number of dispute spam slots.
|
|
566
|
+
**/
|
|
567
|
+
setDisputeMaxSpamSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
568
|
+
/**
|
|
569
|
+
* Set the dispute period, in number of sessions to keep for disputes.
|
|
570
|
+
**/
|
|
571
|
+
setDisputePeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
572
|
+
/**
|
|
573
|
+
* Set the dispute post conclusion acceptance period.
|
|
574
|
+
**/
|
|
575
|
+
setDisputePostConclusionAcceptancePeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
576
|
+
/**
|
|
577
|
+
* Set the parachain validator-group rotation frequency
|
|
578
|
+
**/
|
|
579
|
+
setGroupRotationFrequency: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
580
|
+
/**
|
|
581
|
+
* Sets the maximum number of messages allowed in an HRMP channel at once.
|
|
582
|
+
**/
|
|
583
|
+
setHrmpChannelMaxCapacity: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
584
|
+
/**
|
|
585
|
+
* Sets the maximum size of a message that could ever be put into an HRMP channel.
|
|
586
|
+
**/
|
|
587
|
+
setHrmpChannelMaxMessageSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
588
|
+
/**
|
|
589
|
+
* Sets the maximum total size of messages in bytes allowed in an HRMP channel at once.
|
|
590
|
+
**/
|
|
591
|
+
setHrmpChannelMaxTotalSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
592
|
+
/**
|
|
593
|
+
* Sets the maximum number of outbound HRMP messages can be sent by a candidate.
|
|
594
|
+
**/
|
|
595
|
+
setHrmpMaxMessageNumPerCandidate: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
596
|
+
/**
|
|
597
|
+
* Sets the maximum number of inbound HRMP channels a parachain is allowed to accept.
|
|
598
|
+
**/
|
|
599
|
+
setHrmpMaxParachainInboundChannels: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
600
|
+
/**
|
|
601
|
+
* Sets the maximum number of outbound HRMP channels a parachain is allowed to open.
|
|
602
|
+
**/
|
|
603
|
+
setHrmpMaxParachainOutboundChannels: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
604
|
+
/**
|
|
605
|
+
* Sets the maximum number of inbound HRMP channels a parathread is allowed to accept.
|
|
606
|
+
**/
|
|
607
|
+
setHrmpMaxParathreadInboundChannels: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
608
|
+
/**
|
|
609
|
+
* Sets the maximum number of outbound HRMP channels a parathread is allowed to open.
|
|
610
|
+
**/
|
|
611
|
+
setHrmpMaxParathreadOutboundChannels: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
612
|
+
/**
|
|
613
|
+
* Sets the number of sessions after which an HRMP open channel request expires.
|
|
614
|
+
**/
|
|
615
|
+
setHrmpOpenRequestTtl: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
616
|
+
/**
|
|
617
|
+
* Sets the amount of funds that the recipient should provide for accepting opening an HRMP
|
|
618
|
+
* channel.
|
|
619
|
+
**/
|
|
620
|
+
setHrmpRecipientDeposit: AugmentedSubmittable<(updated: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
|
|
621
|
+
/**
|
|
622
|
+
* Sets the amount of funds that the sender should provide for opening an HRMP channel.
|
|
623
|
+
**/
|
|
624
|
+
setHrmpSenderDeposit: AugmentedSubmittable<(updated: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
|
|
625
|
+
/**
|
|
626
|
+
* Set the max validation code size for incoming upgrades.
|
|
627
|
+
**/
|
|
628
|
+
setMaxCodeSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
629
|
+
/**
|
|
630
|
+
* Set the critical downward message size.
|
|
631
|
+
**/
|
|
632
|
+
setMaxDownwardMessageSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
633
|
+
/**
|
|
634
|
+
* Set the max head data size for paras.
|
|
635
|
+
**/
|
|
636
|
+
setMaxHeadDataSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
637
|
+
/**
|
|
638
|
+
* Set the max POV block size for incoming upgrades.
|
|
639
|
+
**/
|
|
640
|
+
setMaxPovSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
641
|
+
/**
|
|
642
|
+
* Sets the maximum number of messages that a candidate can contain.
|
|
643
|
+
**/
|
|
644
|
+
setMaxUpwardMessageNumPerCandidate: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
645
|
+
/**
|
|
646
|
+
* Sets the maximum size of an upward message that can be sent by a candidate.
|
|
647
|
+
**/
|
|
648
|
+
setMaxUpwardMessageSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
649
|
+
/**
|
|
650
|
+
* Sets the maximum items that can present in a upward dispatch queue at once.
|
|
651
|
+
**/
|
|
652
|
+
setMaxUpwardQueueCount: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
653
|
+
/**
|
|
654
|
+
* Sets the maximum total size of items that can present in a upward dispatch queue at once.
|
|
655
|
+
**/
|
|
656
|
+
setMaxUpwardQueueSize: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
657
|
+
/**
|
|
658
|
+
* Set the maximum number of validators to use in parachain consensus.
|
|
659
|
+
**/
|
|
660
|
+
setMaxValidators: AugmentedSubmittable<(updated: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
661
|
+
/**
|
|
662
|
+
* Set the maximum number of validators to assign to any core.
|
|
663
|
+
**/
|
|
664
|
+
setMaxValidatorsPerCore: AugmentedSubmittable<(updated: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
665
|
+
/**
|
|
666
|
+
* Sets the minimum delay between announcing the upgrade block for a parachain until the
|
|
667
|
+
* upgrade taking place.
|
|
668
|
+
**/
|
|
669
|
+
setMinimumValidationUpgradeDelay: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
670
|
+
/**
|
|
671
|
+
* Set the total number of delay tranches.
|
|
672
|
+
**/
|
|
673
|
+
setNDelayTranches: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
674
|
+
/**
|
|
675
|
+
* Set the number of validators needed to approve a block.
|
|
676
|
+
**/
|
|
677
|
+
setNeededApprovals: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
678
|
+
/**
|
|
679
|
+
* Set the no show slots, in number of number of consensus slots.
|
|
680
|
+
* Must be at least 1.
|
|
681
|
+
**/
|
|
682
|
+
setNoShowSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
683
|
+
/**
|
|
684
|
+
* Set the number of parathread execution cores.
|
|
685
|
+
**/
|
|
686
|
+
setParathreadCores: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
687
|
+
/**
|
|
688
|
+
* Set the number of retries for a particular parathread.
|
|
689
|
+
**/
|
|
690
|
+
setParathreadRetries: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
691
|
+
/**
|
|
692
|
+
* Enable or disable PVF pre-checking. Consult the field documentation prior executing.
|
|
693
|
+
**/
|
|
694
|
+
setPvfCheckingEnabled: AugmentedSubmittable<(updated: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
695
|
+
/**
|
|
696
|
+
* Set the number of session changes after which a PVF pre-checking voting is rejected.
|
|
697
|
+
**/
|
|
698
|
+
setPvfVotingTtl: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
699
|
+
/**
|
|
700
|
+
* Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion.
|
|
701
|
+
**/
|
|
702
|
+
setRelayVrfModuloSamples: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
703
|
+
/**
|
|
704
|
+
* Set the scheduling lookahead, in expected number of blocks at peak throughput.
|
|
705
|
+
**/
|
|
706
|
+
setSchedulingLookahead: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
707
|
+
/**
|
|
708
|
+
* Set the availability period for parathreads.
|
|
709
|
+
**/
|
|
710
|
+
setThreadAvailabilityPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
711
|
+
/**
|
|
712
|
+
* Sets the maximum amount of weight any individual upward message may consume.
|
|
713
|
+
**/
|
|
714
|
+
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
715
|
+
/**
|
|
716
|
+
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
|
717
|
+
**/
|
|
718
|
+
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
719
|
+
/**
|
|
720
|
+
* Set the validation upgrade delay.
|
|
721
|
+
**/
|
|
722
|
+
setValidationUpgradeDelay: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
723
|
+
/**
|
|
724
|
+
* Set the validation upgrade frequency.
|
|
725
|
+
**/
|
|
726
|
+
setValidationUpgradeFrequency: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
727
|
+
/**
|
|
728
|
+
* Set the zeroth delay tranche width.
|
|
729
|
+
**/
|
|
730
|
+
setZerothDelayTrancheWidth: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
731
|
+
/**
|
|
732
|
+
* Generic tx
|
|
733
|
+
**/
|
|
734
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
735
|
+
};
|
|
736
|
+
council: {
|
|
737
|
+
/**
|
|
738
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
739
|
+
*
|
|
740
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
741
|
+
*
|
|
742
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
743
|
+
* has enough votes to be approved or disapproved.
|
|
744
|
+
*
|
|
745
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
746
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
747
|
+
*
|
|
748
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
749
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
750
|
+
*
|
|
751
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
752
|
+
* proposal.
|
|
753
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
754
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
755
|
+
*
|
|
756
|
+
* # <weight>
|
|
757
|
+
* ## Weight
|
|
758
|
+
* - `O(B + M + P1 + P2)` where:
|
|
759
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
760
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
761
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
762
|
+
* - `P2` is proposal-count (code-bounded)
|
|
763
|
+
* - DB:
|
|
764
|
+
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
765
|
+
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
766
|
+
* `O(P2)`)
|
|
767
|
+
* - any mutations done while executing `proposal` (`P1`)
|
|
768
|
+
* - up to 3 events
|
|
769
|
+
* # </weight>
|
|
770
|
+
**/
|
|
771
|
+
close: 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>]>;
|
|
772
|
+
/**
|
|
773
|
+
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
774
|
+
* state.
|
|
775
|
+
*
|
|
776
|
+
* Must be called by the Root origin.
|
|
777
|
+
*
|
|
778
|
+
* Parameters:
|
|
779
|
+
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
780
|
+
*
|
|
781
|
+
* # <weight>
|
|
782
|
+
* Complexity: O(P) where P is the number of max proposals
|
|
783
|
+
* DB Weight:
|
|
784
|
+
* * Reads: Proposals
|
|
785
|
+
* * Writes: Voting, Proposals, ProposalOf
|
|
786
|
+
* # </weight>
|
|
787
|
+
**/
|
|
788
|
+
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
789
|
+
/**
|
|
790
|
+
* Dispatch a proposal from a member using the `Member` origin.
|
|
791
|
+
*
|
|
792
|
+
* Origin must be a member of the collective.
|
|
793
|
+
*
|
|
794
|
+
* # <weight>
|
|
795
|
+
* ## Weight
|
|
796
|
+
* - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
|
|
797
|
+
* `proposal`
|
|
798
|
+
* - DB: 1 read (codec `O(M)`) + DB access of `proposal`
|
|
799
|
+
* - 1 event
|
|
800
|
+
* # </weight>
|
|
801
|
+
**/
|
|
802
|
+
execute: AugmentedSubmittable<(proposal: Call | {
|
|
803
|
+
callIndex?: any;
|
|
804
|
+
args?: any;
|
|
805
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
806
|
+
/**
|
|
807
|
+
* Add a new proposal to either be voted on or executed directly.
|
|
808
|
+
*
|
|
809
|
+
* Requires the sender to be member.
|
|
810
|
+
*
|
|
811
|
+
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
812
|
+
* or put up for voting.
|
|
813
|
+
*
|
|
814
|
+
* # <weight>
|
|
815
|
+
* ## Weight
|
|
816
|
+
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
817
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
818
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
819
|
+
* - branching is influenced by `threshold` where:
|
|
820
|
+
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
821
|
+
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
822
|
+
* - DB:
|
|
823
|
+
* - 1 storage read `is_member` (codec `O(M)`)
|
|
824
|
+
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
825
|
+
* - DB accesses influenced by `threshold`:
|
|
826
|
+
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
827
|
+
* - OR proposal insertion (`threshold <= 2`)
|
|
828
|
+
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
829
|
+
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
830
|
+
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
831
|
+
* - 1 storage write `Voting` (codec `O(M)`)
|
|
832
|
+
* - 1 event
|
|
833
|
+
* # </weight>
|
|
834
|
+
**/
|
|
835
|
+
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
|
|
836
|
+
callIndex?: any;
|
|
837
|
+
args?: any;
|
|
838
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
839
|
+
/**
|
|
840
|
+
* Set the collective's membership.
|
|
841
|
+
*
|
|
842
|
+
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
843
|
+
* - `prime`: The prime member whose vote sets the default.
|
|
844
|
+
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
845
|
+
* weight estimation.
|
|
846
|
+
*
|
|
847
|
+
* Requires root origin.
|
|
848
|
+
*
|
|
849
|
+
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
850
|
+
* the weight estimations rely on it to estimate dispatchable weight.
|
|
851
|
+
*
|
|
852
|
+
* # WARNING:
|
|
853
|
+
*
|
|
854
|
+
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
855
|
+
* implementation of the trait [`ChangeMembers`].
|
|
856
|
+
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
857
|
+
* with other logic managing the member set.
|
|
858
|
+
*
|
|
859
|
+
* # <weight>
|
|
860
|
+
* ## Weight
|
|
861
|
+
* - `O(MP + N)` where:
|
|
862
|
+
* - `M` old-members-count (code- and governance-bounded)
|
|
863
|
+
* - `N` new-members-count (code- and governance-bounded)
|
|
864
|
+
* - `P` proposals-count (code-bounded)
|
|
865
|
+
* - DB:
|
|
866
|
+
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
867
|
+
* members
|
|
868
|
+
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
869
|
+
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
870
|
+
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
871
|
+
* # </weight>
|
|
872
|
+
**/
|
|
873
|
+
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | object | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
874
|
+
/**
|
|
875
|
+
* Add an aye or nay vote for the sender to the given proposal.
|
|
876
|
+
*
|
|
877
|
+
* Requires the sender to be a member.
|
|
878
|
+
*
|
|
879
|
+
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
880
|
+
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
881
|
+
* fee.
|
|
882
|
+
* # <weight>
|
|
883
|
+
* ## Weight
|
|
884
|
+
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
885
|
+
* - DB:
|
|
886
|
+
* - 1 storage read `Members` (codec `O(M)`)
|
|
887
|
+
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
888
|
+
* - 1 event
|
|
889
|
+
* # </weight>
|
|
890
|
+
**/
|
|
891
|
+
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
892
|
+
/**
|
|
893
|
+
* Generic tx
|
|
894
|
+
**/
|
|
895
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
896
|
+
};
|
|
897
|
+
crowdloan: {
|
|
898
|
+
/**
|
|
899
|
+
* Add an optional memo to an existing crowdloan contribution.
|
|
900
|
+
*
|
|
901
|
+
* Origin must be Signed, and the user must have contributed to the crowdloan.
|
|
902
|
+
**/
|
|
903
|
+
addMemo: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, memo: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
904
|
+
/**
|
|
905
|
+
* Contribute to a crowd sale. This will transfer some balance over to fund a parachain
|
|
906
|
+
* slot. It will be withdrawable when the crowdloan has ended and the funds are unused.
|
|
907
|
+
**/
|
|
908
|
+
contribute: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Option<SpRuntimeMultiSignature>]>;
|
|
909
|
+
/**
|
|
910
|
+
* Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain
|
|
911
|
+
* slot. It will be withdrawable when the crowdloan has ended and the funds are unused.
|
|
912
|
+
**/
|
|
913
|
+
contributeAll: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<SpRuntimeMultiSignature>]>;
|
|
914
|
+
/**
|
|
915
|
+
* Create a new crowdloaning campaign for a parachain slot with the given lease period range.
|
|
916
|
+
*
|
|
917
|
+
* This applies a lock to your parachain configuration, ensuring that it cannot be changed
|
|
918
|
+
* by the parachain manager.
|
|
919
|
+
**/
|
|
920
|
+
create: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Compact<u32>, Compact<u32>, Compact<u32>, Option<SpRuntimeMultiSigner>]>;
|
|
921
|
+
/**
|
|
922
|
+
* Remove a fund after the retirement period has ended and all funds have been returned.
|
|
923
|
+
**/
|
|
924
|
+
dissolve: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
925
|
+
/**
|
|
926
|
+
* Edit the configuration for an in-progress crowdloan.
|
|
927
|
+
*
|
|
928
|
+
* Can only be called by Root origin.
|
|
929
|
+
**/
|
|
930
|
+
edit: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Compact<u32>, Compact<u32>, Compact<u32>, Option<SpRuntimeMultiSigner>]>;
|
|
931
|
+
/**
|
|
932
|
+
* Poke the fund into `NewRaise`
|
|
933
|
+
*
|
|
934
|
+
* Origin must be Signed, and the fund has non-zero raise.
|
|
935
|
+
**/
|
|
936
|
+
poke: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
937
|
+
/**
|
|
938
|
+
* Automatically refund contributors of an ended crowdloan.
|
|
939
|
+
* Due to weight restrictions, this function may need to be called multiple
|
|
940
|
+
* times to fully refund all users. We will refund `RemoveKeysLimit` users at a time.
|
|
941
|
+
*
|
|
942
|
+
* Origin must be signed, but can come from anyone.
|
|
943
|
+
**/
|
|
944
|
+
refund: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
945
|
+
/**
|
|
946
|
+
* Withdraw full balance of a specific contributor.
|
|
947
|
+
*
|
|
948
|
+
* Origin must be signed, but can come from anyone.
|
|
949
|
+
*
|
|
950
|
+
* The fund must be either in, or ready for, retirement. For a fund to be *in* retirement, then the retirement
|
|
951
|
+
* flag must be set. For a fund to be ready for retirement, then:
|
|
952
|
+
* - it must not already be in retirement;
|
|
953
|
+
* - the amount of raised funds must be bigger than the _free_ balance of the account;
|
|
954
|
+
* - and either:
|
|
955
|
+
* - the block number must be at least `end`; or
|
|
956
|
+
* - the current lease period must be greater than the fund's `last_period`.
|
|
957
|
+
*
|
|
958
|
+
* In this case, the fund's retirement flag is set and its `end` is reset to the current block
|
|
959
|
+
* number.
|
|
960
|
+
*
|
|
961
|
+
* - `who`: The account whose contribution should be withdrawn.
|
|
962
|
+
* - `index`: The parachain to whose crowdloan the contribution was made.
|
|
963
|
+
**/
|
|
964
|
+
withdraw: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Compact<u32>]>;
|
|
965
|
+
/**
|
|
966
|
+
* Generic tx
|
|
967
|
+
**/
|
|
968
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
969
|
+
};
|
|
970
|
+
democracy: {
|
|
971
|
+
/**
|
|
972
|
+
* Permanently place a proposal into the blacklist. This prevents it from ever being
|
|
973
|
+
* proposed again.
|
|
974
|
+
*
|
|
975
|
+
* If called on a queued public or external proposal, then this will result in it being
|
|
976
|
+
* removed. If the `ref_index` supplied is an active referendum with the proposal hash,
|
|
977
|
+
* then it will be cancelled.
|
|
978
|
+
*
|
|
979
|
+
* The dispatch origin of this call must be `BlacklistOrigin`.
|
|
980
|
+
*
|
|
981
|
+
* - `proposal_hash`: The proposal hash to blacklist permanently.
|
|
982
|
+
* - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be
|
|
983
|
+
* cancelled.
|
|
984
|
+
*
|
|
985
|
+
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
986
|
+
* reasonable value).
|
|
987
|
+
**/
|
|
988
|
+
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
|
|
989
|
+
/**
|
|
990
|
+
* Remove a proposal.
|
|
991
|
+
*
|
|
992
|
+
* The dispatch origin of this call must be `CancelProposalOrigin`.
|
|
993
|
+
*
|
|
994
|
+
* - `prop_index`: The index of the proposal to cancel.
|
|
995
|
+
*
|
|
996
|
+
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
|
997
|
+
**/
|
|
998
|
+
cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
999
|
+
/**
|
|
1000
|
+
* Cancel a proposal queued for enactment.
|
|
1001
|
+
*
|
|
1002
|
+
* The dispatch origin of this call must be _Root_.
|
|
1003
|
+
*
|
|
1004
|
+
* - `which`: The index of the referendum to cancel.
|
|
1005
|
+
*
|
|
1006
|
+
* Weight: `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`.
|
|
1007
|
+
**/
|
|
1008
|
+
cancelQueued: AugmentedSubmittable<(which: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Remove a referendum.
|
|
1011
|
+
*
|
|
1012
|
+
* The dispatch origin of this call must be _Root_.
|
|
1013
|
+
*
|
|
1014
|
+
* - `ref_index`: The index of the referendum to cancel.
|
|
1015
|
+
*
|
|
1016
|
+
* # Weight: `O(1)`.
|
|
1017
|
+
**/
|
|
1018
|
+
cancelReferendum: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Clears all public proposals.
|
|
1021
|
+
*
|
|
1022
|
+
* The dispatch origin of this call must be _Root_.
|
|
1023
|
+
*
|
|
1024
|
+
* Weight: `O(1)`.
|
|
1025
|
+
**/
|
|
1026
|
+
clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Delegate the voting power (with some given conviction) of the sending account.
|
|
1029
|
+
*
|
|
1030
|
+
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
1031
|
+
* time appropriate for the conviction's lock period.
|
|
1032
|
+
*
|
|
1033
|
+
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
1034
|
+
* - be delegating already; or
|
|
1035
|
+
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
1036
|
+
* through `reap_vote` or `unvote`).
|
|
1037
|
+
*
|
|
1038
|
+
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
1039
|
+
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
1040
|
+
* account is undelegated, the funds will be locked for the corresponding period.
|
|
1041
|
+
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
1042
|
+
* be more than the account's current balance.
|
|
1043
|
+
*
|
|
1044
|
+
* Emits `Delegated`.
|
|
1045
|
+
*
|
|
1046
|
+
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
1047
|
+
* voted on. Weight is charged as if maximum votes.
|
|
1048
|
+
**/
|
|
1049
|
+
delegate: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PalletDemocracyConviction, u128]>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
|
|
1052
|
+
* referendum.
|
|
1053
|
+
*
|
|
1054
|
+
* The dispatch origin of this call must be `CancellationOrigin`.
|
|
1055
|
+
*
|
|
1056
|
+
* -`ref_index`: The index of the referendum to cancel.
|
|
1057
|
+
*
|
|
1058
|
+
* Weight: `O(1)`.
|
|
1059
|
+
**/
|
|
1060
|
+
emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Enact a proposal from a referendum. For now we just make the weight be the maximum.
|
|
1063
|
+
**/
|
|
1064
|
+
enactProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32]>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Schedule a referendum to be tabled once it is legal to schedule an external
|
|
1067
|
+
* referendum.
|
|
1068
|
+
*
|
|
1069
|
+
* The dispatch origin of this call must be `ExternalOrigin`.
|
|
1070
|
+
*
|
|
1071
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1072
|
+
*
|
|
1073
|
+
* Weight: `O(V)` with V number of vetoers in the blacklist of proposal.
|
|
1074
|
+
* Decoding vec of length V. Charged as maximum
|
|
1075
|
+
**/
|
|
1076
|
+
externalPropose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
|
1079
|
+
* schedule an external referendum.
|
|
1080
|
+
*
|
|
1081
|
+
* The dispatch of this call must be `ExternalDefaultOrigin`.
|
|
1082
|
+
*
|
|
1083
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1084
|
+
*
|
|
1085
|
+
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
1086
|
+
* pre-scheduled `external_propose` call.
|
|
1087
|
+
*
|
|
1088
|
+
* Weight: `O(1)`
|
|
1089
|
+
**/
|
|
1090
|
+
externalProposeDefault: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
1091
|
+
/**
|
|
1092
|
+
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
|
1093
|
+
* an external referendum.
|
|
1094
|
+
*
|
|
1095
|
+
* The dispatch of this call must be `ExternalMajorityOrigin`.
|
|
1096
|
+
*
|
|
1097
|
+
* - `proposal_hash`: The preimage hash of the proposal.
|
|
1098
|
+
*
|
|
1099
|
+
* Unlike `external_propose`, blacklisting has no effect on this and it may replace a
|
|
1100
|
+
* pre-scheduled `external_propose` call.
|
|
1101
|
+
*
|
|
1102
|
+
* Weight: `O(1)`
|
|
1103
|
+
**/
|
|
1104
|
+
externalProposeMajority: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
|
1107
|
+
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
|
1108
|
+
* but it is not a majority-carries referendum then it fails.
|
|
1109
|
+
*
|
|
1110
|
+
* The dispatch of this call must be `FastTrackOrigin`.
|
|
1111
|
+
*
|
|
1112
|
+
* - `proposal_hash`: The hash of the current external proposal.
|
|
1113
|
+
* - `voting_period`: The period that is allowed for voting on this proposal. Increased to
|
|
1114
|
+
* `FastTrackVotingPeriod` if too low.
|
|
1115
|
+
* - `delay`: The number of block after voting has ended in approval and this should be
|
|
1116
|
+
* enacted. This doesn't have a minimum amount.
|
|
1117
|
+
*
|
|
1118
|
+
* Emits `Started`.
|
|
1119
|
+
*
|
|
1120
|
+
* Weight: `O(1)`
|
|
1121
|
+
**/
|
|
1122
|
+
fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Register the preimage for an upcoming proposal. This requires the proposal to be
|
|
1125
|
+
* in the dispatch queue. No deposit is needed. When this call is successful, i.e.
|
|
1126
|
+
* the preimage has not been uploaded before and matches some imminent proposal,
|
|
1127
|
+
* no fee is paid.
|
|
1128
|
+
*
|
|
1129
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1130
|
+
*
|
|
1131
|
+
* - `encoded_proposal`: The preimage of a proposal.
|
|
1132
|
+
*
|
|
1133
|
+
* Emits `PreimageNoted`.
|
|
1134
|
+
*
|
|
1135
|
+
* Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
1136
|
+
**/
|
|
1137
|
+
noteImminentPreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Same as `note_imminent_preimage` but origin is `OperationalPreimageOrigin`.
|
|
1140
|
+
**/
|
|
1141
|
+
noteImminentPreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Register the preimage for an upcoming proposal. This doesn't require the proposal to be
|
|
1144
|
+
* in the dispatch queue but does require a deposit, returned once enacted.
|
|
1145
|
+
*
|
|
1146
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1147
|
+
*
|
|
1148
|
+
* - `encoded_proposal`: The preimage of a proposal.
|
|
1149
|
+
*
|
|
1150
|
+
* Emits `PreimageNoted`.
|
|
1151
|
+
*
|
|
1152
|
+
* Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
1153
|
+
**/
|
|
1154
|
+
notePreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Same as `note_preimage` but origin is `OperationalPreimageOrigin`.
|
|
1157
|
+
**/
|
|
1158
|
+
notePreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1159
|
+
/**
|
|
1160
|
+
* Propose a sensitive action to be taken.
|
|
1161
|
+
*
|
|
1162
|
+
* The dispatch origin of this call must be _Signed_ and the sender must
|
|
1163
|
+
* have funds to cover the deposit.
|
|
1164
|
+
*
|
|
1165
|
+
* - `proposal_hash`: The hash of the proposal preimage.
|
|
1166
|
+
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
|
1167
|
+
*
|
|
1168
|
+
* Emits `Proposed`.
|
|
1169
|
+
*
|
|
1170
|
+
* Weight: `O(p)`
|
|
1171
|
+
**/
|
|
1172
|
+
propose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
|
1173
|
+
/**
|
|
1174
|
+
* Remove an expired proposal preimage and collect the deposit.
|
|
1175
|
+
*
|
|
1176
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1177
|
+
*
|
|
1178
|
+
* - `proposal_hash`: The preimage hash of a proposal.
|
|
1179
|
+
* - `proposal_length_upper_bound`: an upper bound on length of the proposal. Extrinsic is
|
|
1180
|
+
* weighted according to this value with no refund.
|
|
1181
|
+
*
|
|
1182
|
+
* This will only work after `VotingPeriod` blocks from the time that the preimage was
|
|
1183
|
+
* noted, if it's the same account doing it. If it's a different account, then it'll only
|
|
1184
|
+
* work an additional `EnactmentPeriod` later.
|
|
1185
|
+
*
|
|
1186
|
+
* Emits `PreimageReaped`.
|
|
1187
|
+
*
|
|
1188
|
+
* Weight: `O(D)` where D is length of proposal.
|
|
1189
|
+
**/
|
|
1190
|
+
reapPreimage: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, proposalLenUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>]>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Remove a vote for a referendum.
|
|
1193
|
+
*
|
|
1194
|
+
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
1195
|
+
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
1196
|
+
* either because the referendum was cancelled, because the voter lost the referendum or
|
|
1197
|
+
* because the conviction period is over.
|
|
1198
|
+
*
|
|
1199
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1200
|
+
*
|
|
1201
|
+
* - `target`: The account of the vote to be removed; this account must have voted for
|
|
1202
|
+
* referendum `index`.
|
|
1203
|
+
* - `index`: The index of referendum of the vote to be removed.
|
|
1204
|
+
*
|
|
1205
|
+
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
1206
|
+
* Weight is calculated for the maximum number of vote.
|
|
1207
|
+
**/
|
|
1208
|
+
removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Remove a vote for a referendum.
|
|
1211
|
+
*
|
|
1212
|
+
* If:
|
|
1213
|
+
* - the referendum was cancelled, or
|
|
1214
|
+
* - the referendum is ongoing, or
|
|
1215
|
+
* - the referendum has ended such that
|
|
1216
|
+
* - the vote of the account was in opposition to the result; or
|
|
1217
|
+
* - there was no conviction to the account's vote; or
|
|
1218
|
+
* - the account made a split vote
|
|
1219
|
+
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
1220
|
+
* funds being available.
|
|
1221
|
+
*
|
|
1222
|
+
* If, however, the referendum has ended and:
|
|
1223
|
+
* - it finished corresponding to the vote of the account, and
|
|
1224
|
+
* - the account made a standard vote with conviction, and
|
|
1225
|
+
* - the lock period of the conviction is not over
|
|
1226
|
+
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
1227
|
+
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
1228
|
+
* of both the amount locked and the time is it locked for).
|
|
1229
|
+
*
|
|
1230
|
+
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
1231
|
+
* registered for referendum `index`.
|
|
1232
|
+
*
|
|
1233
|
+
* - `index`: The index of referendum of the vote to be removed.
|
|
1234
|
+
*
|
|
1235
|
+
* Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
|
|
1236
|
+
* Weight is calculated for the maximum number of vote.
|
|
1237
|
+
**/
|
|
1238
|
+
removeVote: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Signals agreement with a particular proposal.
|
|
1241
|
+
*
|
|
1242
|
+
* The dispatch origin of this call must be _Signed_ and the sender
|
|
1243
|
+
* must have funds to cover the deposit, equal to the original deposit.
|
|
1244
|
+
*
|
|
1245
|
+
* - `proposal`: The index of the proposal to second.
|
|
1246
|
+
* - `seconds_upper_bound`: an upper bound on the current number of seconds on this
|
|
1247
|
+
* proposal. Extrinsic is weighted according to this value with no refund.
|
|
1248
|
+
*
|
|
1249
|
+
* Weight: `O(S)` where S is the number of seconds a proposal already has.
|
|
1250
|
+
**/
|
|
1251
|
+
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array, secondsUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
|
|
1252
|
+
/**
|
|
1253
|
+
* Undelegate the voting power of the sending account.
|
|
1254
|
+
*
|
|
1255
|
+
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
1256
|
+
* of the conviction with which the delegation was issued.
|
|
1257
|
+
*
|
|
1258
|
+
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
1259
|
+
* currently delegating.
|
|
1260
|
+
*
|
|
1261
|
+
* Emits `Undelegated`.
|
|
1262
|
+
*
|
|
1263
|
+
* Weight: `O(R)` where R is the number of referendums the voter delegating to has
|
|
1264
|
+
* voted on. Weight is charged as if maximum votes.
|
|
1265
|
+
**/
|
|
1266
|
+
undelegate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1267
|
+
/**
|
|
1268
|
+
* Unlock tokens that have an expired lock.
|
|
1269
|
+
*
|
|
1270
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1271
|
+
*
|
|
1272
|
+
* - `target`: The account to remove the lock on.
|
|
1273
|
+
*
|
|
1274
|
+
* Weight: `O(R)` with R number of vote of target.
|
|
1275
|
+
**/
|
|
1276
|
+
unlock: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Veto and blacklist the external proposal hash.
|
|
1279
|
+
*
|
|
1280
|
+
* The dispatch origin of this call must be `VetoOrigin`.
|
|
1281
|
+
*
|
|
1282
|
+
* - `proposal_hash`: The preimage hash of the proposal to veto and blacklist.
|
|
1283
|
+
*
|
|
1284
|
+
* Emits `Vetoed`.
|
|
1285
|
+
*
|
|
1286
|
+
* Weight: `O(V + log(V))` where V is number of `existing vetoers`
|
|
1287
|
+
**/
|
|
1288
|
+
vetoExternal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
1289
|
+
/**
|
|
1290
|
+
* Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
1291
|
+
* otherwise it is a vote to keep the status quo.
|
|
1292
|
+
*
|
|
1293
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1294
|
+
*
|
|
1295
|
+
* - `ref_index`: The index of the referendum to vote for.
|
|
1296
|
+
* - `vote`: The vote configuration.
|
|
1297
|
+
*
|
|
1298
|
+
* Weight: `O(R)` where R is the number of referendums the voter has voted on.
|
|
1299
|
+
**/
|
|
1300
|
+
vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | {
|
|
1301
|
+
Standard: any;
|
|
1302
|
+
} | {
|
|
1303
|
+
Split: any;
|
|
1304
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletDemocracyVoteAccountVote]>;
|
|
1305
|
+
/**
|
|
1306
|
+
* Generic tx
|
|
1307
|
+
**/
|
|
1308
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1309
|
+
};
|
|
1310
|
+
dmp: {
|
|
1311
|
+
/**
|
|
1312
|
+
* Generic tx
|
|
1313
|
+
**/
|
|
1314
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1315
|
+
};
|
|
1316
|
+
electionProviderMultiPhase: {
|
|
1317
|
+
/**
|
|
1318
|
+
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
|
1319
|
+
* call to `ElectionProvider::elect`.
|
|
1320
|
+
*
|
|
1321
|
+
* This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`.
|
|
1322
|
+
*
|
|
1323
|
+
* The solution is not checked for any feasibility and is assumed to be trustworthy, as any
|
|
1324
|
+
* feasibility check itself can in principle cause the election process to fail (due to
|
|
1325
|
+
* memory/weight constrains).
|
|
1326
|
+
**/
|
|
1327
|
+
setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec<ITuple<[AccountId32, SpNposElectionsSupport]>> | ([AccountId32 | string | Uint8Array, SpNposElectionsSupport | {
|
|
1328
|
+
total?: any;
|
|
1329
|
+
voters?: any;
|
|
1330
|
+
} | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, SpNposElectionsSupport]>>]>;
|
|
1331
|
+
/**
|
|
1332
|
+
* Set a new value for `MinimumUntrustedScore`.
|
|
1333
|
+
*
|
|
1334
|
+
* Dispatch origin must be aligned with `T::ForceOrigin`.
|
|
1335
|
+
*
|
|
1336
|
+
* This check can be turned off by setting the value to `None`.
|
|
1337
|
+
**/
|
|
1338
|
+
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<Vec<u128>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Vec<u128>>]>;
|
|
1339
|
+
/**
|
|
1340
|
+
* Submit a solution for the signed phase.
|
|
1341
|
+
*
|
|
1342
|
+
* The dispatch origin fo this call must be __signed__.
|
|
1343
|
+
*
|
|
1344
|
+
* The solution is potentially queued, based on the claimed score and processed at the end
|
|
1345
|
+
* of the signed phase.
|
|
1346
|
+
*
|
|
1347
|
+
* A deposit is reserved and recorded for the solution. Based on the outcome, the solution
|
|
1348
|
+
* might be rewarded, slashed, or get all or a part of the deposit back.
|
|
1349
|
+
*
|
|
1350
|
+
* # <weight>
|
|
1351
|
+
* Queue size must be provided as witness data.
|
|
1352
|
+
* # </weight>
|
|
1353
|
+
**/
|
|
1354
|
+
submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | {
|
|
1355
|
+
solution?: any;
|
|
1356
|
+
score?: any;
|
|
1357
|
+
round?: any;
|
|
1358
|
+
} | string | Uint8Array, numSignedSubmissions: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, u32]>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Submit a solution for the unsigned phase.
|
|
1361
|
+
*
|
|
1362
|
+
* The dispatch origin fo this call must be __none__.
|
|
1363
|
+
*
|
|
1364
|
+
* This submission is checked on the fly. Moreover, this unsigned solution is only
|
|
1365
|
+
* validated when submitted to the pool from the **local** node. Effectively, this means
|
|
1366
|
+
* that only active validators can submit this transaction when authoring a block (similar
|
|
1367
|
+
* to an inherent).
|
|
1368
|
+
*
|
|
1369
|
+
* To prevent any incorrect solution (and thus wasted time/weight), this transaction will
|
|
1370
|
+
* panic if the solution submitted by the validator is invalid in any way, effectively
|
|
1371
|
+
* putting their authoring reward at risk.
|
|
1372
|
+
*
|
|
1373
|
+
* No deposit or reward is associated with this submission.
|
|
1374
|
+
**/
|
|
1375
|
+
submitUnsigned: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | {
|
|
1376
|
+
solution?: any;
|
|
1377
|
+
score?: any;
|
|
1378
|
+
round?: any;
|
|
1379
|
+
} | string | Uint8Array, witness: PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | {
|
|
1380
|
+
voters?: any;
|
|
1381
|
+
targets?: any;
|
|
1382
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize]>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Generic tx
|
|
1385
|
+
**/
|
|
1386
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1387
|
+
};
|
|
1388
|
+
grandpa: {
|
|
1389
|
+
/**
|
|
1390
|
+
* Note that the current authority set of the GRANDPA finality gadget has
|
|
1391
|
+
* stalled. This will trigger a forced authority set change at the beginning
|
|
1392
|
+
* of the next session, to be enacted `delay` blocks after that. The delay
|
|
1393
|
+
* should be high enough to safely assume that the block signalling the
|
|
1394
|
+
* forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
|
|
1395
|
+
* will start the new authority set using the given finalized block as base.
|
|
1396
|
+
* Only callable by root.
|
|
1397
|
+
**/
|
|
1398
|
+
noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
1399
|
+
/**
|
|
1400
|
+
* Report voter equivocation/misbehavior. This method will verify the
|
|
1401
|
+
* equivocation proof and validate the given key ownership proof
|
|
1402
|
+
* against the extracted offender. If both are valid, the offence
|
|
1403
|
+
* will be reported.
|
|
1404
|
+
**/
|
|
1405
|
+
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
|
|
1406
|
+
setId?: any;
|
|
1407
|
+
equivocation?: any;
|
|
1408
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1409
|
+
session?: any;
|
|
1410
|
+
trieNodes?: any;
|
|
1411
|
+
validatorCount?: any;
|
|
1412
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Report voter equivocation/misbehavior. This method will verify the
|
|
1415
|
+
* equivocation proof and validate the given key ownership proof
|
|
1416
|
+
* against the extracted offender. If both are valid, the offence
|
|
1417
|
+
* will be reported.
|
|
1418
|
+
*
|
|
1419
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
1420
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
1421
|
+
* if the block author is defined it will be defined as the equivocation
|
|
1422
|
+
* reporter.
|
|
1423
|
+
**/
|
|
1424
|
+
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
|
|
1425
|
+
setId?: any;
|
|
1426
|
+
equivocation?: any;
|
|
1427
|
+
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
1428
|
+
session?: any;
|
|
1429
|
+
trieNodes?: any;
|
|
1430
|
+
validatorCount?: any;
|
|
1431
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Generic tx
|
|
1434
|
+
**/
|
|
1435
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1436
|
+
};
|
|
1437
|
+
hrmp: {
|
|
1438
|
+
/**
|
|
1439
|
+
* This extrinsic triggers the cleanup of all the HRMP storage items that
|
|
1440
|
+
* a para may have. Normally this happens once per session, but this allows
|
|
1441
|
+
* you to trigger the cleanup immediately for a specific parachain.
|
|
1442
|
+
*
|
|
1443
|
+
* Origin must be Root.
|
|
1444
|
+
**/
|
|
1445
|
+
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1446
|
+
/**
|
|
1447
|
+
* Force process HRMP close channel requests.
|
|
1448
|
+
*
|
|
1449
|
+
* If there are pending HRMP close channel requests, you can use this
|
|
1450
|
+
* function process all of those requests immediately.
|
|
1451
|
+
**/
|
|
1452
|
+
forceProcessHrmpClose: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1453
|
+
/**
|
|
1454
|
+
* Force process HRMP open channel requests.
|
|
1455
|
+
*
|
|
1456
|
+
* If there are pending HRMP open channel requests, you can use this
|
|
1457
|
+
* function process all of those requests immediately.
|
|
1458
|
+
**/
|
|
1459
|
+
forceProcessHrmpOpen: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1460
|
+
/**
|
|
1461
|
+
* Accept a pending open channel request from the given sender.
|
|
1462
|
+
*
|
|
1463
|
+
* The channel will be opened only on the next session boundary.
|
|
1464
|
+
**/
|
|
1465
|
+
hrmpAcceptOpenChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1466
|
+
/**
|
|
1467
|
+
* This cancels a pending open channel request. It can be canceled be either of the sender
|
|
1468
|
+
* or the recipient for that request. The origin must be either of those.
|
|
1469
|
+
*
|
|
1470
|
+
* The cancellation happens immediately. It is not possible to cancel the request if it is
|
|
1471
|
+
* already accepted.
|
|
1472
|
+
**/
|
|
1473
|
+
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | {
|
|
1474
|
+
sender?: any;
|
|
1475
|
+
recipient?: any;
|
|
1476
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Initiate unilateral closing of a channel. The origin must be either the sender or the
|
|
1479
|
+
* recipient in the channel being closed.
|
|
1480
|
+
*
|
|
1481
|
+
* The closure can only happen on a session change.
|
|
1482
|
+
**/
|
|
1483
|
+
hrmpCloseChannel: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | {
|
|
1484
|
+
sender?: any;
|
|
1485
|
+
recipient?: any;
|
|
1486
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
|
1487
|
+
/**
|
|
1488
|
+
* Initiate opening a channel from a parachain to a given recipient with given channel
|
|
1489
|
+
* parameters.
|
|
1490
|
+
*
|
|
1491
|
+
* - `proposed_max_capacity` - specifies how many messages can be in the channel at once.
|
|
1492
|
+
* - `proposed_max_message_size` - specifies the maximum size of the messages.
|
|
1493
|
+
*
|
|
1494
|
+
* These numbers are a subject to the relay-chain configuration limits.
|
|
1495
|
+
*
|
|
1496
|
+
* The channel can be opened only after the recipient confirms it and only on a session
|
|
1497
|
+
* change.
|
|
1498
|
+
**/
|
|
1499
|
+
hrmpInitOpenChannel: AugmentedSubmittable<(recipient: u32 | AnyNumber | Uint8Array, proposedMaxCapacity: u32 | AnyNumber | Uint8Array, proposedMaxMessageSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
|
1500
|
+
/**
|
|
1501
|
+
* Generic tx
|
|
1502
|
+
**/
|
|
1503
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1504
|
+
};
|
|
1505
|
+
identity: {
|
|
1506
|
+
/**
|
|
1507
|
+
* Add a registrar to the system.
|
|
1508
|
+
*
|
|
1509
|
+
* The dispatch origin for this call must be `T::RegistrarOrigin`.
|
|
1510
|
+
*
|
|
1511
|
+
* - `account`: the account of the registrar.
|
|
1512
|
+
*
|
|
1513
|
+
* Emits `RegistrarAdded` if successful.
|
|
1514
|
+
*
|
|
1515
|
+
* # <weight>
|
|
1516
|
+
* - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
|
|
1517
|
+
* - One storage mutation (codec `O(R)`).
|
|
1518
|
+
* - One event.
|
|
1519
|
+
* # </weight>
|
|
1520
|
+
**/
|
|
1521
|
+
addRegistrar: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Add the given account to the sender's subs.
|
|
1524
|
+
*
|
|
1525
|
+
* Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
|
|
1526
|
+
* to the sender.
|
|
1527
|
+
*
|
|
1528
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
1529
|
+
* sub identity of `sub`.
|
|
1530
|
+
**/
|
|
1531
|
+
addSub: AugmentedSubmittable<(sub: MultiAddress | {
|
|
1532
|
+
Id: any;
|
|
1533
|
+
} | {
|
|
1534
|
+
Index: any;
|
|
1535
|
+
} | {
|
|
1536
|
+
Raw: any;
|
|
1537
|
+
} | {
|
|
1538
|
+
Address32: any;
|
|
1539
|
+
} | {
|
|
1540
|
+
Address20: any;
|
|
1541
|
+
} | string | Uint8Array, data: Data | {
|
|
1542
|
+
None: any;
|
|
1543
|
+
} | {
|
|
1544
|
+
Raw: any;
|
|
1545
|
+
} | {
|
|
1546
|
+
BlakeTwo256: any;
|
|
1547
|
+
} | {
|
|
1548
|
+
Sha256: any;
|
|
1549
|
+
} | {
|
|
1550
|
+
Keccak256: any;
|
|
1551
|
+
} | {
|
|
1552
|
+
ShaThree256: any;
|
|
1553
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Cancel a previous request.
|
|
1556
|
+
*
|
|
1557
|
+
* Payment: A previously reserved deposit is returned on success.
|
|
1558
|
+
*
|
|
1559
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a
|
|
1560
|
+
* registered identity.
|
|
1561
|
+
*
|
|
1562
|
+
* - `reg_index`: The index of the registrar whose judgement is no longer requested.
|
|
1563
|
+
*
|
|
1564
|
+
* Emits `JudgementUnrequested` if successful.
|
|
1565
|
+
*
|
|
1566
|
+
* # <weight>
|
|
1567
|
+
* - `O(R + X)`.
|
|
1568
|
+
* - One balance-reserve operation.
|
|
1569
|
+
* - One storage mutation `O(R + X)`.
|
|
1570
|
+
* - One event
|
|
1571
|
+
* # </weight>
|
|
1572
|
+
**/
|
|
1573
|
+
cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Clear an account's identity info and all sub-accounts and return all deposits.
|
|
1576
|
+
*
|
|
1577
|
+
* Payment: All reserved balances on the account are returned.
|
|
1578
|
+
*
|
|
1579
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
1580
|
+
* identity.
|
|
1581
|
+
*
|
|
1582
|
+
* Emits `IdentityCleared` if successful.
|
|
1583
|
+
*
|
|
1584
|
+
* # <weight>
|
|
1585
|
+
* - `O(R + S + X)`
|
|
1586
|
+
* - where `R` registrar-count (governance-bounded).
|
|
1587
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
1588
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
1589
|
+
* - One balance-unreserve operation.
|
|
1590
|
+
* - `2` storage reads and `S + 2` storage deletions.
|
|
1591
|
+
* - One event.
|
|
1592
|
+
* # </weight>
|
|
1593
|
+
**/
|
|
1594
|
+
clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Remove an account's identity and sub-account information and slash the deposits.
|
|
1597
|
+
*
|
|
1598
|
+
* Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by
|
|
1599
|
+
* `Slash`. Verification request deposits are not returned; they should be cancelled
|
|
1600
|
+
* manually using `cancel_request`.
|
|
1601
|
+
*
|
|
1602
|
+
* The dispatch origin for this call must match `T::ForceOrigin`.
|
|
1603
|
+
*
|
|
1604
|
+
* - `target`: the account whose identity the judgement is upon. This must be an account
|
|
1605
|
+
* with a registered identity.
|
|
1606
|
+
*
|
|
1607
|
+
* Emits `IdentityKilled` if successful.
|
|
1608
|
+
*
|
|
1609
|
+
* # <weight>
|
|
1610
|
+
* - `O(R + S + X)`.
|
|
1611
|
+
* - One balance-reserve operation.
|
|
1612
|
+
* - `S + 2` storage mutations.
|
|
1613
|
+
* - One event.
|
|
1614
|
+
* # </weight>
|
|
1615
|
+
**/
|
|
1616
|
+
killIdentity: AugmentedSubmittable<(target: MultiAddress | {
|
|
1617
|
+
Id: any;
|
|
1618
|
+
} | {
|
|
1619
|
+
Index: any;
|
|
1620
|
+
} | {
|
|
1621
|
+
Raw: any;
|
|
1622
|
+
} | {
|
|
1623
|
+
Address32: any;
|
|
1624
|
+
} | {
|
|
1625
|
+
Address20: any;
|
|
1626
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1627
|
+
/**
|
|
1628
|
+
* Provide a judgement for an account's identity.
|
|
1629
|
+
*
|
|
1630
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
1631
|
+
* of the registrar whose index is `reg_index`.
|
|
1632
|
+
*
|
|
1633
|
+
* - `reg_index`: the index of the registrar whose judgement is being made.
|
|
1634
|
+
* - `target`: the account whose identity the judgement is upon. This must be an account
|
|
1635
|
+
* with a registered identity.
|
|
1636
|
+
* - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
|
|
1637
|
+
*
|
|
1638
|
+
* Emits `JudgementGiven` if successful.
|
|
1639
|
+
*
|
|
1640
|
+
* # <weight>
|
|
1641
|
+
* - `O(R + X)`.
|
|
1642
|
+
* - One balance-transfer operation.
|
|
1643
|
+
* - Up to one account-lookup operation.
|
|
1644
|
+
* - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
|
|
1645
|
+
* - One event.
|
|
1646
|
+
* # </weight>
|
|
1647
|
+
**/
|
|
1648
|
+
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
|
|
1649
|
+
Id: any;
|
|
1650
|
+
} | {
|
|
1651
|
+
Index: any;
|
|
1652
|
+
} | {
|
|
1653
|
+
Raw: any;
|
|
1654
|
+
} | {
|
|
1655
|
+
Address32: any;
|
|
1656
|
+
} | {
|
|
1657
|
+
Address20: any;
|
|
1658
|
+
} | string | Uint8Array, judgement: PalletIdentityJudgement | {
|
|
1659
|
+
Unknown: any;
|
|
1660
|
+
} | {
|
|
1661
|
+
FeePaid: any;
|
|
1662
|
+
} | {
|
|
1663
|
+
Reasonable: any;
|
|
1664
|
+
} | {
|
|
1665
|
+
KnownGood: any;
|
|
1666
|
+
} | {
|
|
1667
|
+
OutOfDate: any;
|
|
1668
|
+
} | {
|
|
1669
|
+
LowQuality: any;
|
|
1670
|
+
} | {
|
|
1671
|
+
Erroneous: any;
|
|
1672
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement]>;
|
|
1673
|
+
/**
|
|
1674
|
+
* Remove the sender as a sub-account.
|
|
1675
|
+
*
|
|
1676
|
+
* Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
|
|
1677
|
+
* to the sender (*not* the original depositor).
|
|
1678
|
+
*
|
|
1679
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
1680
|
+
* super-identity.
|
|
1681
|
+
*
|
|
1682
|
+
* NOTE: This should not normally be used, but is provided in the case that the non-
|
|
1683
|
+
* controller of an account is maliciously registered as a sub-account.
|
|
1684
|
+
**/
|
|
1685
|
+
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1686
|
+
/**
|
|
1687
|
+
* Remove the given account from the sender's subs.
|
|
1688
|
+
*
|
|
1689
|
+
* Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
|
|
1690
|
+
* to the sender.
|
|
1691
|
+
*
|
|
1692
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
1693
|
+
* sub identity of `sub`.
|
|
1694
|
+
**/
|
|
1695
|
+
removeSub: AugmentedSubmittable<(sub: MultiAddress | {
|
|
1696
|
+
Id: any;
|
|
1697
|
+
} | {
|
|
1698
|
+
Index: any;
|
|
1699
|
+
} | {
|
|
1700
|
+
Raw: any;
|
|
1701
|
+
} | {
|
|
1702
|
+
Address32: any;
|
|
1703
|
+
} | {
|
|
1704
|
+
Address20: any;
|
|
1705
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Alter the associated name of the given sub-account.
|
|
1708
|
+
*
|
|
1709
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
1710
|
+
* sub identity of `sub`.
|
|
1711
|
+
**/
|
|
1712
|
+
renameSub: AugmentedSubmittable<(sub: MultiAddress | {
|
|
1713
|
+
Id: any;
|
|
1714
|
+
} | {
|
|
1715
|
+
Index: any;
|
|
1716
|
+
} | {
|
|
1717
|
+
Raw: any;
|
|
1718
|
+
} | {
|
|
1719
|
+
Address32: any;
|
|
1720
|
+
} | {
|
|
1721
|
+
Address20: any;
|
|
1722
|
+
} | string | Uint8Array, data: Data | {
|
|
1723
|
+
None: any;
|
|
1724
|
+
} | {
|
|
1725
|
+
Raw: any;
|
|
1726
|
+
} | {
|
|
1727
|
+
BlakeTwo256: any;
|
|
1728
|
+
} | {
|
|
1729
|
+
Sha256: any;
|
|
1730
|
+
} | {
|
|
1731
|
+
Keccak256: any;
|
|
1732
|
+
} | {
|
|
1733
|
+
ShaThree256: any;
|
|
1734
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
|
1735
|
+
/**
|
|
1736
|
+
* Request a judgement from a registrar.
|
|
1737
|
+
*
|
|
1738
|
+
* Payment: At most `max_fee` will be reserved for payment to the registrar if judgement
|
|
1739
|
+
* given.
|
|
1740
|
+
*
|
|
1741
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a
|
|
1742
|
+
* registered identity.
|
|
1743
|
+
*
|
|
1744
|
+
* - `reg_index`: The index of the registrar whose judgement is requested.
|
|
1745
|
+
* - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
|
|
1746
|
+
*
|
|
1747
|
+
* ```nocompile
|
|
1748
|
+
* Self::registrars().get(reg_index).unwrap().fee
|
|
1749
|
+
* ```
|
|
1750
|
+
*
|
|
1751
|
+
* Emits `JudgementRequested` if successful.
|
|
1752
|
+
*
|
|
1753
|
+
* # <weight>
|
|
1754
|
+
* - `O(R + X)`.
|
|
1755
|
+
* - One balance-reserve operation.
|
|
1756
|
+
* - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
|
|
1757
|
+
* - One event.
|
|
1758
|
+
* # </weight>
|
|
1759
|
+
**/
|
|
1760
|
+
requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
1761
|
+
/**
|
|
1762
|
+
* Change the account associated with a registrar.
|
|
1763
|
+
*
|
|
1764
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
1765
|
+
* of the registrar whose index is `index`.
|
|
1766
|
+
*
|
|
1767
|
+
* - `index`: the index of the registrar whose fee is to be set.
|
|
1768
|
+
* - `new`: the new account ID.
|
|
1769
|
+
*
|
|
1770
|
+
* # <weight>
|
|
1771
|
+
* - `O(R)`.
|
|
1772
|
+
* - One storage mutation `O(R)`.
|
|
1773
|
+
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
|
1774
|
+
* # </weight>
|
|
1775
|
+
**/
|
|
1776
|
+
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, AccountId32]>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Set the fee required for a judgement to be requested from a registrar.
|
|
1779
|
+
*
|
|
1780
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
1781
|
+
* of the registrar whose index is `index`.
|
|
1782
|
+
*
|
|
1783
|
+
* - `index`: the index of the registrar whose fee is to be set.
|
|
1784
|
+
* - `fee`: the new fee.
|
|
1785
|
+
*
|
|
1786
|
+
* # <weight>
|
|
1787
|
+
* - `O(R)`.
|
|
1788
|
+
* - One storage mutation `O(R)`.
|
|
1789
|
+
* - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
|
|
1790
|
+
* # </weight>
|
|
1791
|
+
**/
|
|
1792
|
+
setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Set the field information for a registrar.
|
|
1795
|
+
*
|
|
1796
|
+
* The dispatch origin for this call must be _Signed_ and the sender must be the account
|
|
1797
|
+
* of the registrar whose index is `index`.
|
|
1798
|
+
*
|
|
1799
|
+
* - `index`: the index of the registrar whose fee is to be set.
|
|
1800
|
+
* - `fields`: the fields that the registrar concerns themselves with.
|
|
1801
|
+
*
|
|
1802
|
+
* # <weight>
|
|
1803
|
+
* - `O(R)`.
|
|
1804
|
+
* - One storage mutation `O(R)`.
|
|
1805
|
+
* - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
|
|
1806
|
+
* # </weight>
|
|
1807
|
+
**/
|
|
1808
|
+
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
|
|
1809
|
+
/**
|
|
1810
|
+
* Set an account's identity information and reserve the appropriate deposit.
|
|
1811
|
+
*
|
|
1812
|
+
* If the account already has identity information, the deposit is taken as part payment
|
|
1813
|
+
* for the new deposit.
|
|
1814
|
+
*
|
|
1815
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1816
|
+
*
|
|
1817
|
+
* - `info`: The identity information.
|
|
1818
|
+
*
|
|
1819
|
+
* Emits `IdentitySet` if successful.
|
|
1820
|
+
*
|
|
1821
|
+
* # <weight>
|
|
1822
|
+
* - `O(X + X' + R)`
|
|
1823
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded)
|
|
1824
|
+
* - where `R` judgements-count (registrar-count-bounded)
|
|
1825
|
+
* - One balance reserve operation.
|
|
1826
|
+
* - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
|
|
1827
|
+
* - One event.
|
|
1828
|
+
* # </weight>
|
|
1829
|
+
**/
|
|
1830
|
+
setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
|
|
1831
|
+
additional?: any;
|
|
1832
|
+
display?: any;
|
|
1833
|
+
legal?: any;
|
|
1834
|
+
web?: any;
|
|
1835
|
+
riot?: any;
|
|
1836
|
+
email?: any;
|
|
1837
|
+
pgpFingerprint?: any;
|
|
1838
|
+
image?: any;
|
|
1839
|
+
twitter?: any;
|
|
1840
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;
|
|
1841
|
+
/**
|
|
1842
|
+
* Set the sub-accounts of the sender.
|
|
1843
|
+
*
|
|
1844
|
+
* Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned
|
|
1845
|
+
* and an amount `SubAccountDeposit` will be reserved for each item in `subs`.
|
|
1846
|
+
*
|
|
1847
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have a registered
|
|
1848
|
+
* identity.
|
|
1849
|
+
*
|
|
1850
|
+
* - `subs`: The identity's (new) sub-accounts.
|
|
1851
|
+
*
|
|
1852
|
+
* # <weight>
|
|
1853
|
+
* - `O(P + S)`
|
|
1854
|
+
* - where `P` old-subs-count (hard- and deposit-bounded).
|
|
1855
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
1856
|
+
* - At most one balance operations.
|
|
1857
|
+
* - DB:
|
|
1858
|
+
* - `P + S` storage mutations (codec complexity `O(1)`)
|
|
1859
|
+
* - One storage read (codec complexity `O(P)`).
|
|
1860
|
+
* - One storage write (codec complexity `O(S)`).
|
|
1861
|
+
* - One storage-exists (`IdentityOf::contains_key`).
|
|
1862
|
+
* # </weight>
|
|
1863
|
+
**/
|
|
1864
|
+
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
|
|
1865
|
+
None: any;
|
|
1866
|
+
} | {
|
|
1867
|
+
Raw: any;
|
|
1868
|
+
} | {
|
|
1869
|
+
BlakeTwo256: any;
|
|
1870
|
+
} | {
|
|
1871
|
+
Sha256: any;
|
|
1872
|
+
} | {
|
|
1873
|
+
Keccak256: any;
|
|
1874
|
+
} | {
|
|
1875
|
+
ShaThree256: any;
|
|
1876
|
+
} | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Generic tx
|
|
1879
|
+
**/
|
|
1880
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1881
|
+
};
|
|
1882
|
+
imOnline: {
|
|
1883
|
+
/**
|
|
1884
|
+
* # <weight>
|
|
1885
|
+
* - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is
|
|
1886
|
+
* length of `heartbeat.network_state.external_address`
|
|
1887
|
+
* - `O(K)`: decoding of length `K`
|
|
1888
|
+
* - `O(E)`: decoding/encoding of length `E`
|
|
1889
|
+
* - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
|
|
1890
|
+
* `ReceivedHeartbeats`
|
|
1891
|
+
* - DbWrites: `ReceivedHeartbeats`
|
|
1892
|
+
* # </weight>
|
|
1893
|
+
**/
|
|
1894
|
+
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
|
|
1895
|
+
blockNumber?: any;
|
|
1896
|
+
networkState?: any;
|
|
1897
|
+
sessionIndex?: any;
|
|
1898
|
+
authorityIndex?: any;
|
|
1899
|
+
validatorsLen?: any;
|
|
1900
|
+
} | string | Uint8Array, signature: PalletImOnlineSr25519AppSr25519Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature]>;
|
|
1901
|
+
/**
|
|
1902
|
+
* Generic tx
|
|
1903
|
+
**/
|
|
1904
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1905
|
+
};
|
|
1906
|
+
indices: {
|
|
1907
|
+
/**
|
|
1908
|
+
* Assign an previously unassigned index.
|
|
1909
|
+
*
|
|
1910
|
+
* Payment: `Deposit` is reserved from the sender account.
|
|
1911
|
+
*
|
|
1912
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1913
|
+
*
|
|
1914
|
+
* - `index`: the index to be claimed. This must not be in use.
|
|
1915
|
+
*
|
|
1916
|
+
* Emits `IndexAssigned` if successful.
|
|
1917
|
+
*
|
|
1918
|
+
* # <weight>
|
|
1919
|
+
* - `O(1)`.
|
|
1920
|
+
* - One storage mutation (codec `O(1)`).
|
|
1921
|
+
* - One reserve operation.
|
|
1922
|
+
* - One event.
|
|
1923
|
+
* -------------------
|
|
1924
|
+
* - DB Weight: 1 Read/Write (Accounts)
|
|
1925
|
+
* # </weight>
|
|
1926
|
+
**/
|
|
1927
|
+
claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1928
|
+
/**
|
|
1929
|
+
* Force an index to an account. This doesn't require a deposit. If the index is already
|
|
1930
|
+
* held, then any deposit is reimbursed to its current owner.
|
|
1931
|
+
*
|
|
1932
|
+
* The dispatch origin for this call must be _Root_.
|
|
1933
|
+
*
|
|
1934
|
+
* - `index`: the index to be (re-)assigned.
|
|
1935
|
+
* - `new`: the new owner of the index. This function is a no-op if it is equal to sender.
|
|
1936
|
+
* - `freeze`: if set to `true`, will freeze the index so it cannot be transferred.
|
|
1937
|
+
*
|
|
1938
|
+
* Emits `IndexAssigned` if successful.
|
|
1939
|
+
*
|
|
1940
|
+
* # <weight>
|
|
1941
|
+
* - `O(1)`.
|
|
1942
|
+
* - One storage mutation (codec `O(1)`).
|
|
1943
|
+
* - Up to one reserve operation.
|
|
1944
|
+
* - One event.
|
|
1945
|
+
* -------------------
|
|
1946
|
+
* - DB Weight:
|
|
1947
|
+
* - Reads: Indices Accounts, System Account (original owner)
|
|
1948
|
+
* - Writes: Indices Accounts, System Account (original owner)
|
|
1949
|
+
* # </weight>
|
|
1950
|
+
**/
|
|
1951
|
+
forceTransfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, bool]>;
|
|
1952
|
+
/**
|
|
1953
|
+
* Free up an index owned by the sender.
|
|
1954
|
+
*
|
|
1955
|
+
* Payment: Any previous deposit placed for the index is unreserved in the sender account.
|
|
1956
|
+
*
|
|
1957
|
+
* The dispatch origin for this call must be _Signed_ and the sender must own the index.
|
|
1958
|
+
*
|
|
1959
|
+
* - `index`: the index to be freed. This must be owned by the sender.
|
|
1960
|
+
*
|
|
1961
|
+
* Emits `IndexFreed` if successful.
|
|
1962
|
+
*
|
|
1963
|
+
* # <weight>
|
|
1964
|
+
* - `O(1)`.
|
|
1965
|
+
* - One storage mutation (codec `O(1)`).
|
|
1966
|
+
* - One reserve operation.
|
|
1967
|
+
* - One event.
|
|
1968
|
+
* -------------------
|
|
1969
|
+
* - DB Weight: 1 Read/Write (Accounts)
|
|
1970
|
+
* # </weight>
|
|
1971
|
+
**/
|
|
1972
|
+
free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1973
|
+
/**
|
|
1974
|
+
* Freeze an index so it will always point to the sender account. This consumes the
|
|
1975
|
+
* deposit.
|
|
1976
|
+
*
|
|
1977
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
1978
|
+
* non-frozen account `index`.
|
|
1979
|
+
*
|
|
1980
|
+
* - `index`: the index to be frozen in place.
|
|
1981
|
+
*
|
|
1982
|
+
* Emits `IndexFrozen` if successful.
|
|
1983
|
+
*
|
|
1984
|
+
* # <weight>
|
|
1985
|
+
* - `O(1)`.
|
|
1986
|
+
* - One storage mutation (codec `O(1)`).
|
|
1987
|
+
* - Up to one slash operation.
|
|
1988
|
+
* - One event.
|
|
1989
|
+
* -------------------
|
|
1990
|
+
* - DB Weight: 1 Read/Write (Accounts)
|
|
1991
|
+
* # </weight>
|
|
1992
|
+
**/
|
|
1993
|
+
freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Assign an index already owned by the sender to another account. The balance reservation
|
|
1996
|
+
* is effectively transferred to the new account.
|
|
1997
|
+
*
|
|
1998
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1999
|
+
*
|
|
2000
|
+
* - `index`: the index to be re-assigned. This must be owned by the sender.
|
|
2001
|
+
* - `new`: the new owner of the index. This function is a no-op if it is equal to sender.
|
|
2002
|
+
*
|
|
2003
|
+
* Emits `IndexAssigned` if successful.
|
|
2004
|
+
*
|
|
2005
|
+
* # <weight>
|
|
2006
|
+
* - `O(1)`.
|
|
2007
|
+
* - One storage mutation (codec `O(1)`).
|
|
2008
|
+
* - One transfer operation.
|
|
2009
|
+
* - One event.
|
|
2010
|
+
* -------------------
|
|
2011
|
+
* - DB Weight:
|
|
2012
|
+
* - Reads: Indices Accounts, System Account (recipient)
|
|
2013
|
+
* - Writes: Indices Accounts, System Account (recipient)
|
|
2014
|
+
* # </weight>
|
|
2015
|
+
**/
|
|
2016
|
+
transfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
2017
|
+
/**
|
|
2018
|
+
* Generic tx
|
|
2019
|
+
**/
|
|
2020
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2021
|
+
};
|
|
2022
|
+
initializer: {
|
|
2023
|
+
/**
|
|
2024
|
+
* Issue a signal to the consensus engine to forcibly act as though all parachain
|
|
2025
|
+
* blocks in all relay chain blocks up to and including the given number in the current
|
|
2026
|
+
* chain are valid and should be finalized.
|
|
2027
|
+
**/
|
|
2028
|
+
forceApprove: AugmentedSubmittable<(upTo: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2029
|
+
/**
|
|
2030
|
+
* Generic tx
|
|
2031
|
+
**/
|
|
2032
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2033
|
+
};
|
|
2034
|
+
multisig: {
|
|
2035
|
+
/**
|
|
2036
|
+
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2037
|
+
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2038
|
+
*
|
|
2039
|
+
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2040
|
+
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
2041
|
+
* is cancelled.
|
|
2042
|
+
*
|
|
2043
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2044
|
+
*
|
|
2045
|
+
* - `threshold`: The total number of approvals for this dispatch before it is executed.
|
|
2046
|
+
* - `other_signatories`: The accounts (other than the sender) who can approve this
|
|
2047
|
+
* dispatch. May not be empty.
|
|
2048
|
+
* - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
|
|
2049
|
+
* not the first approval, then it must be `Some`, with the timepoint (block number and
|
|
2050
|
+
* transaction index) of the first approval transaction.
|
|
2051
|
+
* - `call_hash`: The hash of the call to be executed.
|
|
2052
|
+
*
|
|
2053
|
+
* NOTE: If this is the final approval, you will want to use `as_multi` instead.
|
|
2054
|
+
*
|
|
2055
|
+
* # <weight>
|
|
2056
|
+
* - `O(S)`.
|
|
2057
|
+
* - Up to one balance-reserve or unreserve operation.
|
|
2058
|
+
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
2059
|
+
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
|
|
2060
|
+
* - One encode & hash, both of complexity `O(S)`.
|
|
2061
|
+
* - Up to one binary search and insert (`O(logS + S)`).
|
|
2062
|
+
* - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
|
|
2063
|
+
* - One event.
|
|
2064
|
+
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
2065
|
+
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
2066
|
+
* ----------------------------------
|
|
2067
|
+
* - DB Weight:
|
|
2068
|
+
* - Read: Multisig Storage, [Caller Account]
|
|
2069
|
+
* - Write: Multisig Storage, [Caller Account]
|
|
2070
|
+
* # </weight>
|
|
2071
|
+
**/
|
|
2072
|
+
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
|
|
2073
|
+
/**
|
|
2074
|
+
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2075
|
+
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
2076
|
+
*
|
|
2077
|
+
* If there are enough, then dispatch the call.
|
|
2078
|
+
*
|
|
2079
|
+
* Payment: `DepositBase` will be reserved if this is the first approval, plus
|
|
2080
|
+
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
|
|
2081
|
+
* is cancelled.
|
|
2082
|
+
*
|
|
2083
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2084
|
+
*
|
|
2085
|
+
* - `threshold`: The total number of approvals for this dispatch before it is executed.
|
|
2086
|
+
* - `other_signatories`: The accounts (other than the sender) who can approve this
|
|
2087
|
+
* dispatch. May not be empty.
|
|
2088
|
+
* - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
|
|
2089
|
+
* not the first approval, then it must be `Some`, with the timepoint (block number and
|
|
2090
|
+
* transaction index) of the first approval transaction.
|
|
2091
|
+
* - `call`: The call to be executed.
|
|
2092
|
+
*
|
|
2093
|
+
* NOTE: Unless this is the final approval, you will generally want to use
|
|
2094
|
+
* `approve_as_multi` instead, since it only requires a hash of the call.
|
|
2095
|
+
*
|
|
2096
|
+
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
|
|
2097
|
+
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
2098
|
+
* may be found in the deposited `MultisigExecuted` event.
|
|
2099
|
+
*
|
|
2100
|
+
* # <weight>
|
|
2101
|
+
* - `O(S + Z + Call)`.
|
|
2102
|
+
* - Up to one balance-reserve or unreserve operation.
|
|
2103
|
+
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
2104
|
+
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
|
|
2105
|
+
* - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
|
|
2106
|
+
* - One encode & hash, both of complexity `O(S)`.
|
|
2107
|
+
* - Up to one binary search and insert (`O(logS + S)`).
|
|
2108
|
+
* - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
|
|
2109
|
+
* - One event.
|
|
2110
|
+
* - The weight of the `call`.
|
|
2111
|
+
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
2112
|
+
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
2113
|
+
* -------------------------------
|
|
2114
|
+
* - DB Weight:
|
|
2115
|
+
* - Reads: Multisig Storage, [Caller Account], Calls (if `store_call`)
|
|
2116
|
+
* - Writes: Multisig Storage, [Caller Account], Calls (if `store_call`)
|
|
2117
|
+
* - Plus Call Weight
|
|
2118
|
+
* # </weight>
|
|
2119
|
+
**/
|
|
2120
|
+
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call: Bytes | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, Bytes, bool, u64]>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
2123
|
+
*
|
|
2124
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2125
|
+
*
|
|
2126
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
2127
|
+
* multi-signature, but do not participate in the approval process.
|
|
2128
|
+
* - `call`: The call to be executed.
|
|
2129
|
+
*
|
|
2130
|
+
* Result is equivalent to the dispatched result.
|
|
2131
|
+
*
|
|
2132
|
+
* # <weight>
|
|
2133
|
+
* O(Z + C) where Z is the length of the call and C its execution weight.
|
|
2134
|
+
* -------------------------------
|
|
2135
|
+
* - DB Weight: None
|
|
2136
|
+
* - Plus Call Weight
|
|
2137
|
+
* # </weight>
|
|
2138
|
+
**/
|
|
2139
|
+
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | {
|
|
2140
|
+
callIndex?: any;
|
|
2141
|
+
args?: any;
|
|
2142
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
|
2143
|
+
/**
|
|
2144
|
+
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
|
2145
|
+
* for this operation will be unreserved on success.
|
|
2146
|
+
*
|
|
2147
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2148
|
+
*
|
|
2149
|
+
* - `threshold`: The total number of approvals for this dispatch before it is executed.
|
|
2150
|
+
* - `other_signatories`: The accounts (other than the sender) who can approve this
|
|
2151
|
+
* dispatch. May not be empty.
|
|
2152
|
+
* - `timepoint`: The timepoint (block number and transaction index) of the first approval
|
|
2153
|
+
* transaction for this dispatch.
|
|
2154
|
+
* - `call_hash`: The hash of the call to be executed.
|
|
2155
|
+
*
|
|
2156
|
+
* # <weight>
|
|
2157
|
+
* - `O(S)`.
|
|
2158
|
+
* - Up to one balance-reserve or unreserve operation.
|
|
2159
|
+
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
2160
|
+
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
|
|
2161
|
+
* - One encode & hash, both of complexity `O(S)`.
|
|
2162
|
+
* - One event.
|
|
2163
|
+
* - I/O: 1 read `O(S)`, one remove.
|
|
2164
|
+
* - Storage: removes one item.
|
|
2165
|
+
* ----------------------------------
|
|
2166
|
+
* - DB Weight:
|
|
2167
|
+
* - Read: Multisig Storage, [Caller Account], Refund Account, Calls
|
|
2168
|
+
* - Write: Multisig Storage, [Caller Account], Refund Account, Calls
|
|
2169
|
+
* # </weight>
|
|
2170
|
+
**/
|
|
2171
|
+
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
|
|
2172
|
+
height?: any;
|
|
2173
|
+
index?: any;
|
|
2174
|
+
} | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
|
2175
|
+
/**
|
|
2176
|
+
* Generic tx
|
|
2177
|
+
**/
|
|
2178
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2179
|
+
};
|
|
2180
|
+
paraInclusion: {
|
|
2181
|
+
/**
|
|
2182
|
+
* Generic tx
|
|
2183
|
+
**/
|
|
2184
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2185
|
+
};
|
|
2186
|
+
paraInherent: {
|
|
2187
|
+
/**
|
|
2188
|
+
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
2189
|
+
**/
|
|
2190
|
+
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV1InherentData | {
|
|
2191
|
+
bitfields?: any;
|
|
2192
|
+
backedCandidates?: any;
|
|
2193
|
+
disputes?: any;
|
|
2194
|
+
parentHeader?: any;
|
|
2195
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV1InherentData]>;
|
|
2196
|
+
/**
|
|
2197
|
+
* Generic tx
|
|
2198
|
+
**/
|
|
2199
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2200
|
+
};
|
|
2201
|
+
paras: {
|
|
2202
|
+
/**
|
|
2203
|
+
* Note a new block head for para within the context of the current block.
|
|
2204
|
+
**/
|
|
2205
|
+
forceNoteNewHead: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newHead: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
2206
|
+
/**
|
|
2207
|
+
* Put a parachain directly into the next session's action queue.
|
|
2208
|
+
* We can't queue it any sooner than this without going into the
|
|
2209
|
+
* initializer...
|
|
2210
|
+
**/
|
|
2211
|
+
forceQueueAction: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2212
|
+
/**
|
|
2213
|
+
* Schedule an upgrade as if it was scheduled in the given relay parent block.
|
|
2214
|
+
**/
|
|
2215
|
+
forceScheduleCodeUpgrade: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newCode: Bytes | string | Uint8Array, relayParentNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, u32]>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Set the storage for the parachain validation code immediately.
|
|
2218
|
+
**/
|
|
2219
|
+
forceSetCurrentCode: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
2220
|
+
/**
|
|
2221
|
+
* Set the storage for the current parachain head data immediately.
|
|
2222
|
+
**/
|
|
2223
|
+
forceSetCurrentHead: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newHead: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
2224
|
+
/**
|
|
2225
|
+
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
2226
|
+
* enacts the results if that was the last vote before achieving the supermajority.
|
|
2227
|
+
**/
|
|
2228
|
+
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV1PvfCheckStatement | {
|
|
2229
|
+
accept?: any;
|
|
2230
|
+
subject?: any;
|
|
2231
|
+
sessionIndex?: any;
|
|
2232
|
+
validatorIndex?: any;
|
|
2233
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV0ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV1PvfCheckStatement, PolkadotPrimitivesV0ValidatorAppSignature]>;
|
|
2234
|
+
/**
|
|
2235
|
+
* Generic tx
|
|
2236
|
+
**/
|
|
2237
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2238
|
+
};
|
|
2239
|
+
parasShared: {
|
|
2240
|
+
/**
|
|
2241
|
+
* Generic tx
|
|
2242
|
+
**/
|
|
2243
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2244
|
+
};
|
|
2245
|
+
phragmenElection: {
|
|
2246
|
+
/**
|
|
2247
|
+
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
|
2248
|
+
* deposit of the removed voters are returned.
|
|
2249
|
+
*
|
|
2250
|
+
* This is an root function to be used only for cleaning the state.
|
|
2251
|
+
*
|
|
2252
|
+
* The dispatch origin of this call must be root.
|
|
2253
|
+
*
|
|
2254
|
+
* # <weight>
|
|
2255
|
+
* The total number of voters and those that are defunct must be provided as witness data.
|
|
2256
|
+
* # </weight>
|
|
2257
|
+
**/
|
|
2258
|
+
cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
2259
|
+
/**
|
|
2260
|
+
* Remove a particular member from the set. This is effective immediately and the bond of
|
|
2261
|
+
* the outgoing member is slashed.
|
|
2262
|
+
*
|
|
2263
|
+
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
2264
|
+
* outgoing member. Otherwise, a new phragmen election is started.
|
|
2265
|
+
*
|
|
2266
|
+
* The dispatch origin of this call must be root.
|
|
2267
|
+
*
|
|
2268
|
+
* Note that this does not affect the designated block number of the next election.
|
|
2269
|
+
*
|
|
2270
|
+
* # <weight>
|
|
2271
|
+
* If we have a replacement, we use a small weight. Else, since this is a root call and
|
|
2272
|
+
* will go into phragmen, we assume full block for now.
|
|
2273
|
+
* # </weight>
|
|
2274
|
+
**/
|
|
2275
|
+
removeMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
2276
|
+
Id: any;
|
|
2277
|
+
} | {
|
|
2278
|
+
Index: any;
|
|
2279
|
+
} | {
|
|
2280
|
+
Raw: any;
|
|
2281
|
+
} | {
|
|
2282
|
+
Address32: any;
|
|
2283
|
+
} | {
|
|
2284
|
+
Address20: any;
|
|
2285
|
+
} | string | Uint8Array, hasReplacement: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
2286
|
+
/**
|
|
2287
|
+
* Remove `origin` as a voter.
|
|
2288
|
+
*
|
|
2289
|
+
* This removes the lock and returns the deposit.
|
|
2290
|
+
*
|
|
2291
|
+
* The dispatch origin of this call must be signed and be a voter.
|
|
2292
|
+
**/
|
|
2293
|
+
removeVoter: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2294
|
+
/**
|
|
2295
|
+
* Renounce one's intention to be a candidate for the next election round. 3 potential
|
|
2296
|
+
* outcomes exist:
|
|
2297
|
+
*
|
|
2298
|
+
* - `origin` is a candidate and not elected in any set. In this case, the deposit is
|
|
2299
|
+
* unreserved, returned and origin is removed as a candidate.
|
|
2300
|
+
* - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
|
|
2301
|
+
* origin is removed as a runner-up.
|
|
2302
|
+
* - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
|
2303
|
+
* removed as a member, consequently not being a candidate for the next round anymore.
|
|
2304
|
+
* Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
|
2305
|
+
* are immediately used. If the prime is renouncing, then no prime will exist until the
|
|
2306
|
+
* next round.
|
|
2307
|
+
*
|
|
2308
|
+
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
2309
|
+
*
|
|
2310
|
+
* # <weight>
|
|
2311
|
+
* The type of renouncing must be provided as witness data.
|
|
2312
|
+
* # </weight>
|
|
2313
|
+
**/
|
|
2314
|
+
renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
|
|
2315
|
+
Member: any;
|
|
2316
|
+
} | {
|
|
2317
|
+
RunnerUp: any;
|
|
2318
|
+
} | {
|
|
2319
|
+
Candidate: any;
|
|
2320
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionsPhragmenRenouncing]>;
|
|
2321
|
+
/**
|
|
2322
|
+
* Submit oneself for candidacy. A fixed amount of deposit is recorded.
|
|
2323
|
+
*
|
|
2324
|
+
* All candidates are wiped at the end of the term. They either become a member/runner-up,
|
|
2325
|
+
* or leave the system while their deposit is slashed.
|
|
2326
|
+
*
|
|
2327
|
+
* The dispatch origin of this call must be signed.
|
|
2328
|
+
*
|
|
2329
|
+
* ### Warning
|
|
2330
|
+
*
|
|
2331
|
+
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
2332
|
+
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
2333
|
+
*
|
|
2334
|
+
* # <weight>
|
|
2335
|
+
* The number of current candidates must be provided as witness data.
|
|
2336
|
+
* # </weight>
|
|
2337
|
+
**/
|
|
2338
|
+
submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
2339
|
+
/**
|
|
2340
|
+
* Vote for a set of candidates for the upcoming round of election. This can be called to
|
|
2341
|
+
* set the initial votes, or update already existing votes.
|
|
2342
|
+
*
|
|
2343
|
+
* Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
|
|
2344
|
+
* reserved. The deposit is based on the number of votes and can be updated over time.
|
|
2345
|
+
*
|
|
2346
|
+
* The `votes` should:
|
|
2347
|
+
* - not be empty.
|
|
2348
|
+
* - be less than the number of possible candidates. Note that all current members and
|
|
2349
|
+
* runners-up are also automatically candidates for the next round.
|
|
2350
|
+
*
|
|
2351
|
+
* If `value` is more than `who`'s total balance, then the maximum of the two is used.
|
|
2352
|
+
*
|
|
2353
|
+
* The dispatch origin of this call must be signed.
|
|
2354
|
+
*
|
|
2355
|
+
* ### Warning
|
|
2356
|
+
*
|
|
2357
|
+
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
2358
|
+
* lock and keep some for further operations.
|
|
2359
|
+
*
|
|
2360
|
+
* # <weight>
|
|
2361
|
+
* We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less.
|
|
2362
|
+
* # </weight>
|
|
2363
|
+
**/
|
|
2364
|
+
vote: AugmentedSubmittable<(votes: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
|
|
2365
|
+
/**
|
|
2366
|
+
* Generic tx
|
|
2367
|
+
**/
|
|
2368
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2369
|
+
};
|
|
2370
|
+
preimage: {
|
|
2371
|
+
/**
|
|
2372
|
+
* Register a preimage on-chain.
|
|
2373
|
+
*
|
|
2374
|
+
* If the preimage was previously requested, no fees or deposits are taken for providing
|
|
2375
|
+
* the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.
|
|
2376
|
+
**/
|
|
2377
|
+
notePreimage: AugmentedSubmittable<(bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
2378
|
+
/**
|
|
2379
|
+
* Request a preimage be uploaded to the chain without paying any fees or deposits.
|
|
2380
|
+
*
|
|
2381
|
+
* If the preimage requests has already been provided on-chain, we unreserve any deposit
|
|
2382
|
+
* a user may have paid, and take the control of the preimage out of their hands.
|
|
2383
|
+
**/
|
|
2384
|
+
requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2385
|
+
/**
|
|
2386
|
+
* Clear an unrequested preimage from the runtime storage.
|
|
2387
|
+
**/
|
|
2388
|
+
unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2389
|
+
/**
|
|
2390
|
+
* Clear a previously made request for a preimage.
|
|
2391
|
+
*
|
|
2392
|
+
* NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.
|
|
2393
|
+
**/
|
|
2394
|
+
unrequestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2395
|
+
/**
|
|
2396
|
+
* Generic tx
|
|
2397
|
+
**/
|
|
2398
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2399
|
+
};
|
|
2400
|
+
proxy: {
|
|
2401
|
+
/**
|
|
2402
|
+
* Register a proxy account for the sender that is able to make calls on its behalf.
|
|
2403
|
+
*
|
|
2404
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2405
|
+
*
|
|
2406
|
+
* Parameters:
|
|
2407
|
+
* - `proxy`: The account that the `caller` would like to make a proxy.
|
|
2408
|
+
* - `proxy_type`: The permissions allowed for this proxy account.
|
|
2409
|
+
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
|
2410
|
+
* zero.
|
|
2411
|
+
*
|
|
2412
|
+
* # <weight>
|
|
2413
|
+
* Weight is a function of the number of proxies the user has (P).
|
|
2414
|
+
* # </weight>
|
|
2415
|
+
**/
|
|
2416
|
+
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u32]>;
|
|
2417
|
+
/**
|
|
2418
|
+
* Publish the hash of a proxy-call that will be made in the future.
|
|
2419
|
+
*
|
|
2420
|
+
* This must be called some number of blocks before the corresponding `proxy` is attempted
|
|
2421
|
+
* if the delay associated with the proxy relationship is greater than zero.
|
|
2422
|
+
*
|
|
2423
|
+
* No more than `MaxPending` announcements may be made at any one time.
|
|
2424
|
+
*
|
|
2425
|
+
* This will take a deposit of `AnnouncementDepositFactor` as well as
|
|
2426
|
+
* `AnnouncementDepositBase` if there are no other pending announcements.
|
|
2427
|
+
*
|
|
2428
|
+
* The dispatch origin for this call must be _Signed_ and a proxy of `real`.
|
|
2429
|
+
*
|
|
2430
|
+
* Parameters:
|
|
2431
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
2432
|
+
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
2433
|
+
*
|
|
2434
|
+
* # <weight>
|
|
2435
|
+
* Weight is a function of:
|
|
2436
|
+
* - A: the number of announcements made.
|
|
2437
|
+
* - P: the number of proxies the user has.
|
|
2438
|
+
* # </weight>
|
|
2439
|
+
**/
|
|
2440
|
+
announce: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
|
2441
|
+
/**
|
|
2442
|
+
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
|
2443
|
+
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
|
2444
|
+
*
|
|
2445
|
+
* Requires a `Signed` origin.
|
|
2446
|
+
*
|
|
2447
|
+
* - `proxy_type`: The type of the proxy that the sender will be registered as over the
|
|
2448
|
+
* new account. This will almost always be the most permissive `ProxyType` possible to
|
|
2449
|
+
* allow for maximum flexibility.
|
|
2450
|
+
* - `index`: A disambiguation index, in case this is called multiple times in the same
|
|
2451
|
+
* transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
|
|
2452
|
+
* want to use `0`.
|
|
2453
|
+
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
|
2454
|
+
* zero.
|
|
2455
|
+
*
|
|
2456
|
+
* Fails with `Duplicate` if this has already been called in this transaction, from the
|
|
2457
|
+
* same sender, with the same parameters.
|
|
2458
|
+
*
|
|
2459
|
+
* Fails if there are insufficient funds to pay for deposit.
|
|
2460
|
+
*
|
|
2461
|
+
* # <weight>
|
|
2462
|
+
* Weight is a function of the number of proxies the user has (P).
|
|
2463
|
+
* # </weight>
|
|
2464
|
+
* TODO: Might be over counting 1 read
|
|
2465
|
+
**/
|
|
2466
|
+
anonymous: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
|
2467
|
+
/**
|
|
2468
|
+
* Removes a previously spawned anonymous proxy.
|
|
2469
|
+
*
|
|
2470
|
+
* WARNING: **All access to this account will be lost.** Any funds held in it will be
|
|
2471
|
+
* inaccessible.
|
|
2472
|
+
*
|
|
2473
|
+
* Requires a `Signed` origin, and the sender account must have been created by a call to
|
|
2474
|
+
* `anonymous` with corresponding parameters.
|
|
2475
|
+
*
|
|
2476
|
+
* - `spawner`: The account that originally called `anonymous` to create this account.
|
|
2477
|
+
* - `index`: The disambiguation index originally passed to `anonymous`. Probably `0`.
|
|
2478
|
+
* - `proxy_type`: The proxy type originally passed to `anonymous`.
|
|
2479
|
+
* - `height`: The height of the chain when the call to `anonymous` was processed.
|
|
2480
|
+
* - `ext_index`: The extrinsic index in which the call to `anonymous` was processed.
|
|
2481
|
+
*
|
|
2482
|
+
* Fails with `NoPermission` in case the caller is not a previously created anonymous
|
|
2483
|
+
* account whose `anonymous` call has corresponding parameters.
|
|
2484
|
+
*
|
|
2485
|
+
* # <weight>
|
|
2486
|
+
* Weight is a function of the number of proxies the user has (P).
|
|
2487
|
+
* # </weight>
|
|
2488
|
+
**/
|
|
2489
|
+
killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
2490
|
+
/**
|
|
2491
|
+
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
2492
|
+
* `add_proxy`.
|
|
2493
|
+
*
|
|
2494
|
+
* Removes any corresponding announcement(s).
|
|
2495
|
+
*
|
|
2496
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2497
|
+
*
|
|
2498
|
+
* Parameters:
|
|
2499
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
2500
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
2501
|
+
* - `call`: The call to be made by the `real` account.
|
|
2502
|
+
*
|
|
2503
|
+
* # <weight>
|
|
2504
|
+
* Weight is a function of the number of proxies the user has (P).
|
|
2505
|
+
* # </weight>
|
|
2506
|
+
**/
|
|
2507
|
+
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
|
|
2508
|
+
callIndex?: any;
|
|
2509
|
+
args?: any;
|
|
2510
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2511
|
+
/**
|
|
2512
|
+
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
2513
|
+
* `add_proxy`.
|
|
2514
|
+
*
|
|
2515
|
+
* Removes any corresponding announcement(s).
|
|
2516
|
+
*
|
|
2517
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2518
|
+
*
|
|
2519
|
+
* Parameters:
|
|
2520
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
2521
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
2522
|
+
* - `call`: The call to be made by the `real` account.
|
|
2523
|
+
*
|
|
2524
|
+
* # <weight>
|
|
2525
|
+
* Weight is a function of:
|
|
2526
|
+
* - A: the number of announcements made.
|
|
2527
|
+
* - P: the number of proxies the user has.
|
|
2528
|
+
* # </weight>
|
|
2529
|
+
**/
|
|
2530
|
+
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
|
|
2531
|
+
callIndex?: any;
|
|
2532
|
+
args?: any;
|
|
2533
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
2534
|
+
/**
|
|
2535
|
+
* Remove the given announcement of a delegate.
|
|
2536
|
+
*
|
|
2537
|
+
* May be called by a target (proxied) account to remove a call that one of their delegates
|
|
2538
|
+
* (`delegate`) has announced they want to execute. The deposit is returned.
|
|
2539
|
+
*
|
|
2540
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2541
|
+
*
|
|
2542
|
+
* Parameters:
|
|
2543
|
+
* - `delegate`: The account that previously announced the call.
|
|
2544
|
+
* - `call_hash`: The hash of the call to be made.
|
|
2545
|
+
*
|
|
2546
|
+
* # <weight>
|
|
2547
|
+
* Weight is a function of:
|
|
2548
|
+
* - A: the number of announcements made.
|
|
2549
|
+
* - P: the number of proxies the user has.
|
|
2550
|
+
* # </weight>
|
|
2551
|
+
**/
|
|
2552
|
+
rejectAnnouncement: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
|
2553
|
+
/**
|
|
2554
|
+
* Remove a given announcement.
|
|
2555
|
+
*
|
|
2556
|
+
* May be called by a proxy account to remove a call they previously announced and return
|
|
2557
|
+
* the deposit.
|
|
2558
|
+
*
|
|
2559
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2560
|
+
*
|
|
2561
|
+
* Parameters:
|
|
2562
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
2563
|
+
* - `call_hash`: The hash of the call to be made by the `real` account.
|
|
2564
|
+
*
|
|
2565
|
+
* # <weight>
|
|
2566
|
+
* Weight is a function of:
|
|
2567
|
+
* - A: the number of announcements made.
|
|
2568
|
+
* - P: the number of proxies the user has.
|
|
2569
|
+
* # </weight>
|
|
2570
|
+
**/
|
|
2571
|
+
removeAnnouncement: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
|
|
2572
|
+
/**
|
|
2573
|
+
* Unregister all proxy accounts for the sender.
|
|
2574
|
+
*
|
|
2575
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2576
|
+
*
|
|
2577
|
+
* WARNING: This may be called on accounts created by `anonymous`, however if done, then
|
|
2578
|
+
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
2579
|
+
*
|
|
2580
|
+
* # <weight>
|
|
2581
|
+
* Weight is a function of the number of proxies the user has (P).
|
|
2582
|
+
* # </weight>
|
|
2583
|
+
**/
|
|
2584
|
+
removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2585
|
+
/**
|
|
2586
|
+
* Unregister a proxy account for the sender.
|
|
2587
|
+
*
|
|
2588
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2589
|
+
*
|
|
2590
|
+
* Parameters:
|
|
2591
|
+
* - `proxy`: The account that the `caller` would like to remove as a proxy.
|
|
2592
|
+
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
|
2593
|
+
*
|
|
2594
|
+
* # <weight>
|
|
2595
|
+
* Weight is a function of the number of proxies the user has (P).
|
|
2596
|
+
* # </weight>
|
|
2597
|
+
**/
|
|
2598
|
+
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u32]>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Generic tx
|
|
2601
|
+
**/
|
|
2602
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2603
|
+
};
|
|
2604
|
+
registrar: {
|
|
2605
|
+
/**
|
|
2606
|
+
* Deregister a Para Id, freeing all data and returning any deposit.
|
|
2607
|
+
*
|
|
2608
|
+
* The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread.
|
|
2609
|
+
**/
|
|
2610
|
+
deregister: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2611
|
+
/**
|
|
2612
|
+
* Force the registration of a Para Id on the relay chain.
|
|
2613
|
+
*
|
|
2614
|
+
* This function must be called by a Root origin.
|
|
2615
|
+
*
|
|
2616
|
+
* The deposit taken can be specified for this registration. Any `ParaId`
|
|
2617
|
+
* can be registered, including sub-1000 IDs which are System Parachains.
|
|
2618
|
+
**/
|
|
2619
|
+
forceRegister: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, deposit: u128 | AnyNumber | Uint8Array, id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128, u32, Bytes, Bytes]>;
|
|
2620
|
+
/**
|
|
2621
|
+
* Remove a manager lock from a para. This will allow the manager of a
|
|
2622
|
+
* previously locked para to deregister or swap a para without using governance.
|
|
2623
|
+
*
|
|
2624
|
+
* Can only be called by the Root origin.
|
|
2625
|
+
**/
|
|
2626
|
+
forceRemoveLock: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2627
|
+
/**
|
|
2628
|
+
* Register head data and validation code for a reserved Para Id.
|
|
2629
|
+
*
|
|
2630
|
+
* ## Arguments
|
|
2631
|
+
* - `origin`: Must be called by a `Signed` origin.
|
|
2632
|
+
* - `id`: The para ID. Must be owned/managed by the `origin` signing account.
|
|
2633
|
+
* - `genesis_head`: The genesis head data of the parachain/thread.
|
|
2634
|
+
* - `validation_code`: The initial validation code of the parachain/thread.
|
|
2635
|
+
*
|
|
2636
|
+
* ## Deposits/Fees
|
|
2637
|
+
* The origin signed account must reserve a corresponding deposit for the registration. Anything already
|
|
2638
|
+
* reserved previously for this para ID is accounted for.
|
|
2639
|
+
*
|
|
2640
|
+
* ## Events
|
|
2641
|
+
* The `Registered` event is emitted in case of success.
|
|
2642
|
+
**/
|
|
2643
|
+
register: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, Bytes]>;
|
|
2644
|
+
/**
|
|
2645
|
+
* Reserve a Para Id on the relay chain.
|
|
2646
|
+
*
|
|
2647
|
+
* This function will reserve a new Para Id to be owned/managed by the origin account.
|
|
2648
|
+
* The origin account is able to register head data and validation code using `register` to create
|
|
2649
|
+
* a parathread. Using the Slots pallet, a parathread can then be upgraded to get a parachain slot.
|
|
2650
|
+
*
|
|
2651
|
+
* ## Arguments
|
|
2652
|
+
* - `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new para ID.
|
|
2653
|
+
*
|
|
2654
|
+
* ## Deposits/Fees
|
|
2655
|
+
* The origin must reserve a deposit of `ParaDeposit` for the registration.
|
|
2656
|
+
*
|
|
2657
|
+
* ## Events
|
|
2658
|
+
* The `Reserved` event is emitted in case of success, which provides the ID reserved for use.
|
|
2659
|
+
**/
|
|
2660
|
+
reserve: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2661
|
+
/**
|
|
2662
|
+
* Swap a parachain with another parachain or parathread.
|
|
2663
|
+
*
|
|
2664
|
+
* The origin must be Root, the `para` owner, or the `para` itself.
|
|
2665
|
+
*
|
|
2666
|
+
* The swap will happen only if there is already an opposite swap pending. If there is not,
|
|
2667
|
+
* the swap will be stored in the pending swaps map, ready for a later confirmatory swap.
|
|
2668
|
+
*
|
|
2669
|
+
* The `ParaId`s remain mapped to the same head data and code so external code can rely on
|
|
2670
|
+
* `ParaId` to be a long-term identifier of a notional "parachain". However, their
|
|
2671
|
+
* scheduling info (i.e. whether they're a parathread or parachain), auction information
|
|
2672
|
+
* and the auction deposit are switched.
|
|
2673
|
+
**/
|
|
2674
|
+
swap: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
2675
|
+
/**
|
|
2676
|
+
* Generic tx
|
|
2677
|
+
**/
|
|
2678
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2679
|
+
};
|
|
2680
|
+
scheduler: {
|
|
2681
|
+
/**
|
|
2682
|
+
* Cancel an anonymously scheduled task.
|
|
2683
|
+
**/
|
|
2684
|
+
cancel: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
2685
|
+
/**
|
|
2686
|
+
* Cancel a named scheduled task.
|
|
2687
|
+
**/
|
|
2688
|
+
cancelNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Anonymously schedule a task.
|
|
2691
|
+
**/
|
|
2692
|
+
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2693
|
+
Value: any;
|
|
2694
|
+
} | {
|
|
2695
|
+
Hash: any;
|
|
2696
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
2697
|
+
/**
|
|
2698
|
+
* Anonymously schedule a task after a delay.
|
|
2699
|
+
*
|
|
2700
|
+
* # <weight>
|
|
2701
|
+
* Same as [`schedule`].
|
|
2702
|
+
* # </weight>
|
|
2703
|
+
**/
|
|
2704
|
+
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2705
|
+
Value: any;
|
|
2706
|
+
} | {
|
|
2707
|
+
Hash: any;
|
|
2708
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Schedule a named task.
|
|
2711
|
+
**/
|
|
2712
|
+
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2713
|
+
Value: any;
|
|
2714
|
+
} | {
|
|
2715
|
+
Hash: any;
|
|
2716
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
2717
|
+
/**
|
|
2718
|
+
* Schedule a named task after a delay.
|
|
2719
|
+
*
|
|
2720
|
+
* # <weight>
|
|
2721
|
+
* Same as [`schedule_named`](Self::schedule_named).
|
|
2722
|
+
* # </weight>
|
|
2723
|
+
**/
|
|
2724
|
+
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
2725
|
+
Value: any;
|
|
2726
|
+
} | {
|
|
2727
|
+
Hash: any;
|
|
2728
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
|
2729
|
+
/**
|
|
2730
|
+
* Generic tx
|
|
2731
|
+
**/
|
|
2732
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2733
|
+
};
|
|
2734
|
+
session: {
|
|
2735
|
+
/**
|
|
2736
|
+
* Removes any session key(s) of the function caller.
|
|
2737
|
+
*
|
|
2738
|
+
* This doesn't take effect until the next session.
|
|
2739
|
+
*
|
|
2740
|
+
* The dispatch origin of this function must be Signed and the account must be either be
|
|
2741
|
+
* convertible to a validator ID using the chain's typical addressing system (this usually
|
|
2742
|
+
* means being a controller account) or directly convertible into a validator ID (which
|
|
2743
|
+
* usually means being a stash account).
|
|
2744
|
+
*
|
|
2745
|
+
* # <weight>
|
|
2746
|
+
* - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
|
|
2747
|
+
* of `T::Keys::key_ids()` which is fixed.
|
|
2748
|
+
* - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
|
|
2749
|
+
* - DbWrites: `NextKeys`, `origin account`
|
|
2750
|
+
* - DbWrites per key id: `KeyOwner`
|
|
2751
|
+
* # </weight>
|
|
2752
|
+
**/
|
|
2753
|
+
purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2754
|
+
/**
|
|
2755
|
+
* Sets the session key(s) of the function caller to `keys`.
|
|
2756
|
+
* Allows an account to set its session key prior to becoming a validator.
|
|
2757
|
+
* This doesn't take effect until the next session.
|
|
2758
|
+
*
|
|
2759
|
+
* The dispatch origin of this function must be signed.
|
|
2760
|
+
*
|
|
2761
|
+
* # <weight>
|
|
2762
|
+
* - Complexity: `O(1)`. Actual cost depends on the number of length of
|
|
2763
|
+
* `T::Keys::key_ids()` which is fixed.
|
|
2764
|
+
* - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
|
|
2765
|
+
* - DbWrites: `origin account`, `NextKeys`
|
|
2766
|
+
* - DbReads per key id: `KeyOwner`
|
|
2767
|
+
* - DbWrites per key id: `KeyOwner`
|
|
2768
|
+
* # </weight>
|
|
2769
|
+
**/
|
|
2770
|
+
setKeys: AugmentedSubmittable<(keys: PolkadotRuntimeSessionKeys | {
|
|
2771
|
+
grandpa?: any;
|
|
2772
|
+
babe?: any;
|
|
2773
|
+
imOnline?: any;
|
|
2774
|
+
paraValidator?: any;
|
|
2775
|
+
paraAssignment?: any;
|
|
2776
|
+
authorityDiscovery?: any;
|
|
2777
|
+
} | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeSessionKeys, Bytes]>;
|
|
2778
|
+
/**
|
|
2779
|
+
* Generic tx
|
|
2780
|
+
**/
|
|
2781
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2782
|
+
};
|
|
2783
|
+
slots: {
|
|
2784
|
+
/**
|
|
2785
|
+
* Clear all leases for a Para Id, refunding any deposits back to the original owners.
|
|
2786
|
+
*
|
|
2787
|
+
* The dispatch origin for this call must match `T::ForceOrigin`.
|
|
2788
|
+
**/
|
|
2789
|
+
clearAllLeases: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2790
|
+
/**
|
|
2791
|
+
* Just a connect into the `lease_out` call, in case Root wants to force some lease to happen
|
|
2792
|
+
* independently of any other on-chain mechanism to use it.
|
|
2793
|
+
*
|
|
2794
|
+
* The dispatch origin for this call must match `T::ForceOrigin`.
|
|
2795
|
+
**/
|
|
2796
|
+
forceLease: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, leaser: AccountId32 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, periodBegin: u32 | AnyNumber | Uint8Array, periodCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32, u128, u32, u32]>;
|
|
2797
|
+
/**
|
|
2798
|
+
* Try to onboard a parachain that has a lease for the current lease period.
|
|
2799
|
+
*
|
|
2800
|
+
* This function can be useful if there was some state issue with a para that should
|
|
2801
|
+
* have onboarded, but was unable to. As long as they have a lease period, we can
|
|
2802
|
+
* let them onboard from here.
|
|
2803
|
+
*
|
|
2804
|
+
* Origin must be signed, but can be called by anyone.
|
|
2805
|
+
**/
|
|
2806
|
+
triggerOnboard: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2807
|
+
/**
|
|
2808
|
+
* Generic tx
|
|
2809
|
+
**/
|
|
2810
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2811
|
+
};
|
|
2812
|
+
staking: {
|
|
2813
|
+
/**
|
|
2814
|
+
* Take the origin account as a stash and lock up `value` of its balance. `controller` will
|
|
2815
|
+
* be the account that controls it.
|
|
2816
|
+
*
|
|
2817
|
+
* `value` must be more than the `minimum_balance` specified by `T::Currency`.
|
|
2818
|
+
*
|
|
2819
|
+
* The dispatch origin for this call must be _Signed_ by the stash account.
|
|
2820
|
+
*
|
|
2821
|
+
* Emits `Bonded`.
|
|
2822
|
+
* # <weight>
|
|
2823
|
+
* - Independent of the arguments. Moderate complexity.
|
|
2824
|
+
* - O(1).
|
|
2825
|
+
* - Three extra DB entries.
|
|
2826
|
+
*
|
|
2827
|
+
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
|
|
2828
|
+
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
|
|
2829
|
+
* ------------------
|
|
2830
|
+
* # </weight>
|
|
2831
|
+
**/
|
|
2832
|
+
bond: AugmentedSubmittable<(controller: MultiAddress | {
|
|
2833
|
+
Id: any;
|
|
2834
|
+
} | {
|
|
2835
|
+
Index: any;
|
|
2836
|
+
} | {
|
|
2837
|
+
Raw: any;
|
|
2838
|
+
} | {
|
|
2839
|
+
Address32: any;
|
|
2840
|
+
} | {
|
|
2841
|
+
Address20: any;
|
|
2842
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | {
|
|
2843
|
+
Staked: any;
|
|
2844
|
+
} | {
|
|
2845
|
+
Stash: any;
|
|
2846
|
+
} | {
|
|
2847
|
+
Controller: any;
|
|
2848
|
+
} | {
|
|
2849
|
+
Account: any;
|
|
2850
|
+
} | {
|
|
2851
|
+
None: any;
|
|
2852
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, PalletStakingRewardDestination]>;
|
|
2853
|
+
/**
|
|
2854
|
+
* Add some extra amount that have appeared in the stash `free_balance` into the balance up
|
|
2855
|
+
* for staking.
|
|
2856
|
+
*
|
|
2857
|
+
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
|
2858
|
+
*
|
|
2859
|
+
* Use this if there are additional funds in your stash account that you wish to bond.
|
|
2860
|
+
* Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose
|
|
2861
|
+
* any limitation on the amount that can be added.
|
|
2862
|
+
*
|
|
2863
|
+
* Emits `Bonded`.
|
|
2864
|
+
*
|
|
2865
|
+
* # <weight>
|
|
2866
|
+
* - Independent of the arguments. Insignificant complexity.
|
|
2867
|
+
* - O(1).
|
|
2868
|
+
* # </weight>
|
|
2869
|
+
**/
|
|
2870
|
+
bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
2871
|
+
/**
|
|
2872
|
+
* Cancel enactment of a deferred slash.
|
|
2873
|
+
*
|
|
2874
|
+
* Can be called by the `T::SlashCancelOrigin`.
|
|
2875
|
+
*
|
|
2876
|
+
* Parameters: era and indices of the slashes for that era to kill.
|
|
2877
|
+
*
|
|
2878
|
+
* # <weight>
|
|
2879
|
+
* Complexity: O(U + S)
|
|
2880
|
+
* with U unapplied slashes weighted with U=1000
|
|
2881
|
+
* and S is the number of slash indices to be canceled.
|
|
2882
|
+
* - Read: Unapplied Slashes
|
|
2883
|
+
* - Write: Unapplied Slashes
|
|
2884
|
+
* # </weight>
|
|
2885
|
+
**/
|
|
2886
|
+
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
|
2887
|
+
/**
|
|
2888
|
+
* Declare no desire to either validate or nominate.
|
|
2889
|
+
*
|
|
2890
|
+
* Effects will be felt at the beginning of the next era.
|
|
2891
|
+
*
|
|
2892
|
+
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
2893
|
+
*
|
|
2894
|
+
* # <weight>
|
|
2895
|
+
* - Independent of the arguments. Insignificant complexity.
|
|
2896
|
+
* - Contains one read.
|
|
2897
|
+
* - Writes are limited to the `origin` account key.
|
|
2898
|
+
* # </weight>
|
|
2899
|
+
**/
|
|
2900
|
+
chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2901
|
+
/**
|
|
2902
|
+
* Declare a `controller` to stop participating as either a validator or nominator.
|
|
2903
|
+
*
|
|
2904
|
+
* Effects will be felt at the beginning of the next era.
|
|
2905
|
+
*
|
|
2906
|
+
* The dispatch origin for this call must be _Signed_, but can be called by anyone.
|
|
2907
|
+
*
|
|
2908
|
+
* If the caller is the same as the controller being targeted, then no further checks are
|
|
2909
|
+
* enforced, and this function behaves just like `chill`.
|
|
2910
|
+
*
|
|
2911
|
+
* If the caller is different than the controller being targeted, the following conditions
|
|
2912
|
+
* must be met:
|
|
2913
|
+
* * A `ChillThreshold` must be set and checked which defines how close to the max
|
|
2914
|
+
* nominators or validators we must reach before users can start chilling one-another.
|
|
2915
|
+
* * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
|
|
2916
|
+
* how close we are to the threshold.
|
|
2917
|
+
* * A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines
|
|
2918
|
+
* if this is a person that should be chilled because they have not met the threshold
|
|
2919
|
+
* bond required.
|
|
2920
|
+
*
|
|
2921
|
+
* This can be helpful if bond requirements are updated, and we need to remove old users
|
|
2922
|
+
* who do not satisfy these requirements.
|
|
2923
|
+
**/
|
|
2924
|
+
chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2925
|
+
/**
|
|
2926
|
+
* Force there to be a new era at the end of the next session. After this, it will be
|
|
2927
|
+
* reset to normal (non-forced) behaviour.
|
|
2928
|
+
*
|
|
2929
|
+
* The dispatch origin must be Root.
|
|
2930
|
+
*
|
|
2931
|
+
* # Warning
|
|
2932
|
+
*
|
|
2933
|
+
* The election process starts multiple blocks before the end of the era.
|
|
2934
|
+
* If this is called just before a new era is triggered, the election process may not
|
|
2935
|
+
* have enough blocks to get a result.
|
|
2936
|
+
*
|
|
2937
|
+
* # <weight>
|
|
2938
|
+
* - No arguments.
|
|
2939
|
+
* - Weight: O(1)
|
|
2940
|
+
* - Write ForceEra
|
|
2941
|
+
* # </weight>
|
|
2942
|
+
**/
|
|
2943
|
+
forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Force there to be a new era at the end of sessions indefinitely.
|
|
2946
|
+
*
|
|
2947
|
+
* The dispatch origin must be Root.
|
|
2948
|
+
*
|
|
2949
|
+
* # Warning
|
|
2950
|
+
*
|
|
2951
|
+
* The election process starts multiple blocks before the end of the era.
|
|
2952
|
+
* If this is called just before a new era is triggered, the election process may not
|
|
2953
|
+
* have enough blocks to get a result.
|
|
2954
|
+
*
|
|
2955
|
+
* # <weight>
|
|
2956
|
+
* - Weight: O(1)
|
|
2957
|
+
* - Write: ForceEra
|
|
2958
|
+
* # </weight>
|
|
2959
|
+
**/
|
|
2960
|
+
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2961
|
+
/**
|
|
2962
|
+
* Force there to be no new eras indefinitely.
|
|
2963
|
+
*
|
|
2964
|
+
* The dispatch origin must be Root.
|
|
2965
|
+
*
|
|
2966
|
+
* # Warning
|
|
2967
|
+
*
|
|
2968
|
+
* The election process starts multiple blocks before the end of the era.
|
|
2969
|
+
* Thus the election process may be ongoing when this is called. In this case the
|
|
2970
|
+
* election will continue until the next era is triggered.
|
|
2971
|
+
*
|
|
2972
|
+
* # <weight>
|
|
2973
|
+
* - No arguments.
|
|
2974
|
+
* - Weight: O(1)
|
|
2975
|
+
* - Write: ForceEra
|
|
2976
|
+
* # </weight>
|
|
2977
|
+
**/
|
|
2978
|
+
forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2979
|
+
/**
|
|
2980
|
+
* Force a current staker to become completely unstaked, immediately.
|
|
2981
|
+
*
|
|
2982
|
+
* The dispatch origin must be Root.
|
|
2983
|
+
*
|
|
2984
|
+
* # <weight>
|
|
2985
|
+
* O(S) where S is the number of slashing spans to be removed
|
|
2986
|
+
* Reads: Bonded, Slashing Spans, Account, Locks
|
|
2987
|
+
* Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
|
|
2988
|
+
* Account, Locks Writes Each: SpanSlash * S
|
|
2989
|
+
* # </weight>
|
|
2990
|
+
**/
|
|
2991
|
+
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
2992
|
+
/**
|
|
2993
|
+
* Increments the ideal number of validators.
|
|
2994
|
+
*
|
|
2995
|
+
* The dispatch origin must be Root.
|
|
2996
|
+
*
|
|
2997
|
+
* # <weight>
|
|
2998
|
+
* Same as [`Self::set_validator_count`].
|
|
2999
|
+
* # </weight>
|
|
3000
|
+
**/
|
|
3001
|
+
increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3002
|
+
/**
|
|
3003
|
+
* Remove the given nominations from the calling validator.
|
|
3004
|
+
*
|
|
3005
|
+
* Effects will be felt at the beginning of the next era.
|
|
3006
|
+
*
|
|
3007
|
+
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3008
|
+
*
|
|
3009
|
+
* - `who`: A list of nominator stash accounts who are nominating this validator which
|
|
3010
|
+
* should no longer be nominating this validator.
|
|
3011
|
+
*
|
|
3012
|
+
* Note: Making this call only makes sense if you first set the validator preferences to
|
|
3013
|
+
* block any further nominations.
|
|
3014
|
+
**/
|
|
3015
|
+
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | (MultiAddress | {
|
|
3016
|
+
Id: any;
|
|
3017
|
+
} | {
|
|
3018
|
+
Index: any;
|
|
3019
|
+
} | {
|
|
3020
|
+
Raw: any;
|
|
3021
|
+
} | {
|
|
3022
|
+
Address32: any;
|
|
3023
|
+
} | {
|
|
3024
|
+
Address20: any;
|
|
3025
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
|
3026
|
+
/**
|
|
3027
|
+
* Declare the desire to nominate `targets` for the origin controller.
|
|
3028
|
+
*
|
|
3029
|
+
* Effects will be felt at the beginning of the next era.
|
|
3030
|
+
*
|
|
3031
|
+
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3032
|
+
*
|
|
3033
|
+
* # <weight>
|
|
3034
|
+
* - The transaction's complexity is proportional to the size of `targets` (N)
|
|
3035
|
+
* which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
|
|
3036
|
+
* - Both the reads and writes follow a similar pattern.
|
|
3037
|
+
* # </weight>
|
|
3038
|
+
**/
|
|
3039
|
+
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
|
|
3040
|
+
Id: any;
|
|
3041
|
+
} | {
|
|
3042
|
+
Index: any;
|
|
3043
|
+
} | {
|
|
3044
|
+
Raw: any;
|
|
3045
|
+
} | {
|
|
3046
|
+
Address32: any;
|
|
3047
|
+
} | {
|
|
3048
|
+
Address20: any;
|
|
3049
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Pay out all the stakers behind a single validator for a single era.
|
|
3052
|
+
*
|
|
3053
|
+
* - `validator_stash` is the stash account of the validator. Their nominators, up to
|
|
3054
|
+
* `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
|
|
3055
|
+
* - `era` may be any era between `[current_era - history_depth; current_era]`.
|
|
3056
|
+
*
|
|
3057
|
+
* The origin of this call must be _Signed_. Any account can call this function, even if
|
|
3058
|
+
* it is not one of the stakers.
|
|
3059
|
+
*
|
|
3060
|
+
* # <weight>
|
|
3061
|
+
* - Time complexity: at most O(MaxNominatorRewardedPerValidator).
|
|
3062
|
+
* - Contains a limited number of reads and writes.
|
|
3063
|
+
* -----------
|
|
3064
|
+
* N is the Number of payouts for the validator (including the validator)
|
|
3065
|
+
* Weight:
|
|
3066
|
+
* - Reward Destination Staked: O(N)
|
|
3067
|
+
* - Reward Destination Controller (Creating): O(N)
|
|
3068
|
+
*
|
|
3069
|
+
* NOTE: weights are assuming that payouts are made to alive stash account (Staked).
|
|
3070
|
+
* Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
|
|
3071
|
+
* # </weight>
|
|
3072
|
+
**/
|
|
3073
|
+
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
3074
|
+
/**
|
|
3075
|
+
* Remove all data structures concerning a staker/stash once it is at a state where it can
|
|
3076
|
+
* be considered `dust` in the staking system. The requirements are:
|
|
3077
|
+
*
|
|
3078
|
+
* 1. the `total_balance` of the stash is below existential deposit.
|
|
3079
|
+
* 2. or, the `ledger.total` of the stash is below existential deposit.
|
|
3080
|
+
*
|
|
3081
|
+
* The former can happen in cases like a slash; the latter when a fully unbonded account
|
|
3082
|
+
* is still receiving staking rewards in `RewardDestination::Staked`.
|
|
3083
|
+
*
|
|
3084
|
+
* It can be called by anyone, as long as `stash` meets the above requirements.
|
|
3085
|
+
*
|
|
3086
|
+
* Refunds the transaction fees upon successful execution.
|
|
3087
|
+
**/
|
|
3088
|
+
reapStash: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
3089
|
+
/**
|
|
3090
|
+
* Rebond a portion of the stash scheduled to be unlocked.
|
|
3091
|
+
*
|
|
3092
|
+
* The dispatch origin must be signed by the controller.
|
|
3093
|
+
*
|
|
3094
|
+
* # <weight>
|
|
3095
|
+
* - Time complexity: O(L), where L is unlocking chunks
|
|
3096
|
+
* - Bounded by `MAX_UNLOCKING_CHUNKS`.
|
|
3097
|
+
* - Storage changes: Can't increase storage, only decrease it.
|
|
3098
|
+
* # </weight>
|
|
3099
|
+
**/
|
|
3100
|
+
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
3101
|
+
/**
|
|
3102
|
+
* Scale up the ideal number of validators by a factor.
|
|
3103
|
+
*
|
|
3104
|
+
* The dispatch origin must be Root.
|
|
3105
|
+
*
|
|
3106
|
+
* # <weight>
|
|
3107
|
+
* Same as [`Self::set_validator_count`].
|
|
3108
|
+
* # </weight>
|
|
3109
|
+
**/
|
|
3110
|
+
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
|
|
3111
|
+
/**
|
|
3112
|
+
* (Re-)set the controller of a stash.
|
|
3113
|
+
*
|
|
3114
|
+
* Effects will be felt at the beginning of the next era.
|
|
3115
|
+
*
|
|
3116
|
+
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
|
3117
|
+
*
|
|
3118
|
+
* # <weight>
|
|
3119
|
+
* - Independent of the arguments. Insignificant complexity.
|
|
3120
|
+
* - Contains a limited number of reads.
|
|
3121
|
+
* - Writes are limited to the `origin` account key.
|
|
3122
|
+
* ----------
|
|
3123
|
+
* Weight: O(1)
|
|
3124
|
+
* DB Weight:
|
|
3125
|
+
* - Read: Bonded, Ledger New Controller, Ledger Old Controller
|
|
3126
|
+
* - Write: Bonded, Ledger New Controller, Ledger Old Controller
|
|
3127
|
+
* # </weight>
|
|
3128
|
+
**/
|
|
3129
|
+
setController: AugmentedSubmittable<(controller: MultiAddress | {
|
|
3130
|
+
Id: any;
|
|
3131
|
+
} | {
|
|
3132
|
+
Index: any;
|
|
3133
|
+
} | {
|
|
3134
|
+
Raw: any;
|
|
3135
|
+
} | {
|
|
3136
|
+
Address32: any;
|
|
3137
|
+
} | {
|
|
3138
|
+
Address20: any;
|
|
3139
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
3140
|
+
/**
|
|
3141
|
+
* Set `HistoryDepth` value. This function will delete any history information
|
|
3142
|
+
* when `HistoryDepth` is reduced.
|
|
3143
|
+
*
|
|
3144
|
+
* Parameters:
|
|
3145
|
+
* - `new_history_depth`: The new history depth you would like to set.
|
|
3146
|
+
* - `era_items_deleted`: The number of items that will be deleted by this dispatch. This
|
|
3147
|
+
* should report all the storage items that will be deleted by clearing old era history.
|
|
3148
|
+
* Needed to report an accurate weight for the dispatch. Trusted by `Root` to report an
|
|
3149
|
+
* accurate number.
|
|
3150
|
+
*
|
|
3151
|
+
* Origin must be root.
|
|
3152
|
+
*
|
|
3153
|
+
* # <weight>
|
|
3154
|
+
* - E: Number of history depths removed, i.e. 10 -> 7 = 3
|
|
3155
|
+
* - Weight: O(E)
|
|
3156
|
+
* - DB Weight:
|
|
3157
|
+
* - Reads: Current Era, History Depth
|
|
3158
|
+
* - Writes: History Depth
|
|
3159
|
+
* - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
|
|
3160
|
+
* - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,
|
|
3161
|
+
* ErasStartSessionIndex
|
|
3162
|
+
* # </weight>
|
|
3163
|
+
**/
|
|
3164
|
+
setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<u32> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
|
|
3165
|
+
/**
|
|
3166
|
+
* Set the validators who cannot be slashed (if any).
|
|
3167
|
+
*
|
|
3168
|
+
* The dispatch origin must be Root.
|
|
3169
|
+
*
|
|
3170
|
+
* # <weight>
|
|
3171
|
+
* - O(V)
|
|
3172
|
+
* - Write: Invulnerables
|
|
3173
|
+
* # </weight>
|
|
3174
|
+
**/
|
|
3175
|
+
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
3176
|
+
/**
|
|
3177
|
+
* (Re-)set the payment target for a controller.
|
|
3178
|
+
*
|
|
3179
|
+
* Effects will be felt at the beginning of the next era.
|
|
3180
|
+
*
|
|
3181
|
+
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3182
|
+
*
|
|
3183
|
+
* # <weight>
|
|
3184
|
+
* - Independent of the arguments. Insignificant complexity.
|
|
3185
|
+
* - Contains a limited number of reads.
|
|
3186
|
+
* - Writes are limited to the `origin` account key.
|
|
3187
|
+
* ---------
|
|
3188
|
+
* - Weight: O(1)
|
|
3189
|
+
* - DB Weight:
|
|
3190
|
+
* - Read: Ledger
|
|
3191
|
+
* - Write: Payee
|
|
3192
|
+
* # </weight>
|
|
3193
|
+
**/
|
|
3194
|
+
setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
|
|
3195
|
+
Staked: any;
|
|
3196
|
+
} | {
|
|
3197
|
+
Stash: any;
|
|
3198
|
+
} | {
|
|
3199
|
+
Controller: any;
|
|
3200
|
+
} | {
|
|
3201
|
+
Account: any;
|
|
3202
|
+
} | {
|
|
3203
|
+
None: any;
|
|
3204
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingRewardDestination]>;
|
|
3205
|
+
/**
|
|
3206
|
+
* Update the various staking configurations .
|
|
3207
|
+
*
|
|
3208
|
+
* * `min_nominator_bond`: The minimum active bond needed to be a nominator.
|
|
3209
|
+
* * `min_validator_bond`: The minimum active bond needed to be a validator.
|
|
3210
|
+
* * `max_nominator_count`: The max number of users who can be a nominator at once. When
|
|
3211
|
+
* set to `None`, no limit is enforced.
|
|
3212
|
+
* * `max_validator_count`: The max number of users who can be a validator at once. When
|
|
3213
|
+
* set to `None`, no limit is enforced.
|
|
3214
|
+
* * `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which
|
|
3215
|
+
* should be filled in order for the `chill_other` transaction to work.
|
|
3216
|
+
* * `min_commission`: The minimum amount of commission that each validators must maintain.
|
|
3217
|
+
* This is checked only upon calling `validate`. Existing validators are not affected.
|
|
3218
|
+
*
|
|
3219
|
+
* Origin must be Root to call this function.
|
|
3220
|
+
*
|
|
3221
|
+
* NOTE: Existing nominators and validators will not be affected by this update.
|
|
3222
|
+
* to kick people under the new limits, `chill_other` should be called.
|
|
3223
|
+
**/
|
|
3224
|
+
setStakingConfigs: AugmentedSubmittable<(minNominatorBond: u128 | AnyNumber | Uint8Array, minValidatorBond: u128 | AnyNumber | Uint8Array, maxNominatorCount: Option<u32> | null | object | string | Uint8Array, maxValidatorCount: Option<u32> | null | object | string | Uint8Array, chillThreshold: Option<Percent> | null | object | string | Uint8Array, minCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u128, Option<u32>, Option<u32>, Option<Percent>, Perbill]>;
|
|
3225
|
+
/**
|
|
3226
|
+
* Sets the ideal number of validators.
|
|
3227
|
+
*
|
|
3228
|
+
* The dispatch origin must be Root.
|
|
3229
|
+
*
|
|
3230
|
+
* # <weight>
|
|
3231
|
+
* Weight: O(1)
|
|
3232
|
+
* Write: Validator Count
|
|
3233
|
+
* # </weight>
|
|
3234
|
+
**/
|
|
3235
|
+
setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3236
|
+
/**
|
|
3237
|
+
* Schedule a portion of the stash to be unlocked ready for transfer out after the bond
|
|
3238
|
+
* period ends. If this leaves an amount actively bonded less than
|
|
3239
|
+
* T::Currency::minimum_balance(), then it is increased to the full amount.
|
|
3240
|
+
*
|
|
3241
|
+
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3242
|
+
*
|
|
3243
|
+
* Once the unlock period is done, you can call `withdraw_unbonded` to actually move
|
|
3244
|
+
* the funds out of management ready for transfer.
|
|
3245
|
+
*
|
|
3246
|
+
* No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
|
|
3247
|
+
* can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
|
|
3248
|
+
* to be called first to remove some of the chunks (if possible).
|
|
3249
|
+
*
|
|
3250
|
+
* If a user encounters the `InsufficientBond` error when calling this extrinsic,
|
|
3251
|
+
* they should call `chill` first in order to free up their bonded funds.
|
|
3252
|
+
*
|
|
3253
|
+
* Emits `Unbonded`.
|
|
3254
|
+
*
|
|
3255
|
+
* See also [`Call::withdraw_unbonded`].
|
|
3256
|
+
**/
|
|
3257
|
+
unbond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
3258
|
+
/**
|
|
3259
|
+
* Declare the desire to validate for the origin controller.
|
|
3260
|
+
*
|
|
3261
|
+
* Effects will be felt at the beginning of the next era.
|
|
3262
|
+
*
|
|
3263
|
+
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3264
|
+
**/
|
|
3265
|
+
validate: AugmentedSubmittable<(prefs: PalletStakingValidatorPrefs | {
|
|
3266
|
+
commission?: any;
|
|
3267
|
+
blocked?: any;
|
|
3268
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingValidatorPrefs]>;
|
|
3269
|
+
/**
|
|
3270
|
+
* Remove any unlocked chunks from the `unlocking` queue from our management.
|
|
3271
|
+
*
|
|
3272
|
+
* This essentially frees up that balance to be used by the stash account to do
|
|
3273
|
+
* whatever it wants.
|
|
3274
|
+
*
|
|
3275
|
+
* The dispatch origin for this call must be _Signed_ by the controller.
|
|
3276
|
+
*
|
|
3277
|
+
* Emits `Withdrawn`.
|
|
3278
|
+
*
|
|
3279
|
+
* See also [`Call::unbond`].
|
|
3280
|
+
*
|
|
3281
|
+
* # <weight>
|
|
3282
|
+
* Complexity O(S) where S is the number of slashing spans to remove
|
|
3283
|
+
* NOTE: Weight annotation is the kill scenario, we refund otherwise.
|
|
3284
|
+
* # </weight>
|
|
3285
|
+
**/
|
|
3286
|
+
withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3287
|
+
/**
|
|
3288
|
+
* Generic tx
|
|
3289
|
+
**/
|
|
3290
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3291
|
+
};
|
|
3292
|
+
system: {
|
|
3293
|
+
/**
|
|
3294
|
+
* A dispatch that will fill the block weight up to the given ratio.
|
|
3295
|
+
**/
|
|
3296
|
+
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
3297
|
+
/**
|
|
3298
|
+
* Kill all storage items with a key that starts with the given prefix.
|
|
3299
|
+
*
|
|
3300
|
+
* **NOTE:** We rely on the Root origin to provide us the number of subkeys under
|
|
3301
|
+
* the prefix we are removing to accurately calculate the weight of this function.
|
|
3302
|
+
**/
|
|
3303
|
+
killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
|
|
3304
|
+
/**
|
|
3305
|
+
* Kill some items from storage.
|
|
3306
|
+
**/
|
|
3307
|
+
killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
|
|
3308
|
+
/**
|
|
3309
|
+
* Make some on-chain remark.
|
|
3310
|
+
*
|
|
3311
|
+
* # <weight>
|
|
3312
|
+
* - `O(1)`
|
|
3313
|
+
* # </weight>
|
|
3314
|
+
**/
|
|
3315
|
+
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3316
|
+
/**
|
|
3317
|
+
* Make some on-chain remark and emit event.
|
|
3318
|
+
*
|
|
3319
|
+
* # <weight>
|
|
3320
|
+
* - `O(b)` where b is the length of the remark.
|
|
3321
|
+
* - 1 event.
|
|
3322
|
+
* # </weight>
|
|
3323
|
+
**/
|
|
3324
|
+
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3325
|
+
/**
|
|
3326
|
+
* Set the new runtime code.
|
|
3327
|
+
*
|
|
3328
|
+
* # <weight>
|
|
3329
|
+
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
|
|
3330
|
+
* - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
|
|
3331
|
+
* expensive).
|
|
3332
|
+
* - 1 storage write (codec `O(C)`).
|
|
3333
|
+
* - 1 digest item.
|
|
3334
|
+
* - 1 event.
|
|
3335
|
+
* The weight of this function is dependent on the runtime, but generally this is very
|
|
3336
|
+
* expensive. We will treat this as a full block.
|
|
3337
|
+
* # </weight>
|
|
3338
|
+
**/
|
|
3339
|
+
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3340
|
+
/**
|
|
3341
|
+
* Set the new runtime code without doing any checks of the given `code`.
|
|
3342
|
+
*
|
|
3343
|
+
* # <weight>
|
|
3344
|
+
* - `O(C)` where `C` length of `code`
|
|
3345
|
+
* - 1 storage write (codec `O(C)`).
|
|
3346
|
+
* - 1 digest item.
|
|
3347
|
+
* - 1 event.
|
|
3348
|
+
* The weight of this function is dependent on the runtime. We will treat this as a full
|
|
3349
|
+
* block. # </weight>
|
|
3350
|
+
**/
|
|
3351
|
+
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3352
|
+
/**
|
|
3353
|
+
* Set the number of pages in the WebAssembly environment's heap.
|
|
3354
|
+
**/
|
|
3355
|
+
setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
3356
|
+
/**
|
|
3357
|
+
* Set some items of storage.
|
|
3358
|
+
**/
|
|
3359
|
+
setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;
|
|
3360
|
+
/**
|
|
3361
|
+
* Generic tx
|
|
3362
|
+
**/
|
|
3363
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3364
|
+
};
|
|
3365
|
+
technicalCommittee: {
|
|
3366
|
+
/**
|
|
3367
|
+
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
3368
|
+
*
|
|
3369
|
+
* May be called by any signed account in order to finish voting and close the proposal.
|
|
3370
|
+
*
|
|
3371
|
+
* If called before the end of the voting period it will only close the vote if it is
|
|
3372
|
+
* has enough votes to be approved or disapproved.
|
|
3373
|
+
*
|
|
3374
|
+
* If called after the end of the voting period abstentions are counted as rejections
|
|
3375
|
+
* unless there is a prime member set and the prime member cast an approval.
|
|
3376
|
+
*
|
|
3377
|
+
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
3378
|
+
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
3379
|
+
*
|
|
3380
|
+
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
3381
|
+
* proposal.
|
|
3382
|
+
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
3383
|
+
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
3384
|
+
*
|
|
3385
|
+
* # <weight>
|
|
3386
|
+
* ## Weight
|
|
3387
|
+
* - `O(B + M + P1 + P2)` where:
|
|
3388
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
3389
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
3390
|
+
* - `P1` is the complexity of `proposal` preimage.
|
|
3391
|
+
* - `P2` is proposal-count (code-bounded)
|
|
3392
|
+
* - DB:
|
|
3393
|
+
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
3394
|
+
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
3395
|
+
* `O(P2)`)
|
|
3396
|
+
* - any mutations done while executing `proposal` (`P1`)
|
|
3397
|
+
* - up to 3 events
|
|
3398
|
+
* # </weight>
|
|
3399
|
+
**/
|
|
3400
|
+
close: 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>]>;
|
|
3401
|
+
/**
|
|
3402
|
+
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
3403
|
+
* state.
|
|
3404
|
+
*
|
|
3405
|
+
* Must be called by the Root origin.
|
|
3406
|
+
*
|
|
3407
|
+
* Parameters:
|
|
3408
|
+
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
3409
|
+
*
|
|
3410
|
+
* # <weight>
|
|
3411
|
+
* Complexity: O(P) where P is the number of max proposals
|
|
3412
|
+
* DB Weight:
|
|
3413
|
+
* * Reads: Proposals
|
|
3414
|
+
* * Writes: Voting, Proposals, ProposalOf
|
|
3415
|
+
* # </weight>
|
|
3416
|
+
**/
|
|
3417
|
+
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
3418
|
+
/**
|
|
3419
|
+
* Dispatch a proposal from a member using the `Member` origin.
|
|
3420
|
+
*
|
|
3421
|
+
* Origin must be a member of the collective.
|
|
3422
|
+
*
|
|
3423
|
+
* # <weight>
|
|
3424
|
+
* ## Weight
|
|
3425
|
+
* - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
|
|
3426
|
+
* `proposal`
|
|
3427
|
+
* - DB: 1 read (codec `O(M)`) + DB access of `proposal`
|
|
3428
|
+
* - 1 event
|
|
3429
|
+
* # </weight>
|
|
3430
|
+
**/
|
|
3431
|
+
execute: AugmentedSubmittable<(proposal: Call | {
|
|
3432
|
+
callIndex?: any;
|
|
3433
|
+
args?: any;
|
|
3434
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
3435
|
+
/**
|
|
3436
|
+
* Add a new proposal to either be voted on or executed directly.
|
|
3437
|
+
*
|
|
3438
|
+
* Requires the sender to be member.
|
|
3439
|
+
*
|
|
3440
|
+
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
3441
|
+
* or put up for voting.
|
|
3442
|
+
*
|
|
3443
|
+
* # <weight>
|
|
3444
|
+
* ## Weight
|
|
3445
|
+
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
3446
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
3447
|
+
* - `M` is members-count (code- and governance-bounded)
|
|
3448
|
+
* - branching is influenced by `threshold` where:
|
|
3449
|
+
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
3450
|
+
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
3451
|
+
* - DB:
|
|
3452
|
+
* - 1 storage read `is_member` (codec `O(M)`)
|
|
3453
|
+
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
3454
|
+
* - DB accesses influenced by `threshold`:
|
|
3455
|
+
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
3456
|
+
* - OR proposal insertion (`threshold <= 2`)
|
|
3457
|
+
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
3458
|
+
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
3459
|
+
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
3460
|
+
* - 1 storage write `Voting` (codec `O(M)`)
|
|
3461
|
+
* - 1 event
|
|
3462
|
+
* # </weight>
|
|
3463
|
+
**/
|
|
3464
|
+
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
|
|
3465
|
+
callIndex?: any;
|
|
3466
|
+
args?: any;
|
|
3467
|
+
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
3468
|
+
/**
|
|
3469
|
+
* Set the collective's membership.
|
|
3470
|
+
*
|
|
3471
|
+
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
3472
|
+
* - `prime`: The prime member whose vote sets the default.
|
|
3473
|
+
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
3474
|
+
* weight estimation.
|
|
3475
|
+
*
|
|
3476
|
+
* Requires root origin.
|
|
3477
|
+
*
|
|
3478
|
+
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
3479
|
+
* the weight estimations rely on it to estimate dispatchable weight.
|
|
3480
|
+
*
|
|
3481
|
+
* # WARNING:
|
|
3482
|
+
*
|
|
3483
|
+
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
3484
|
+
* implementation of the trait [`ChangeMembers`].
|
|
3485
|
+
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
3486
|
+
* with other logic managing the member set.
|
|
3487
|
+
*
|
|
3488
|
+
* # <weight>
|
|
3489
|
+
* ## Weight
|
|
3490
|
+
* - `O(MP + N)` where:
|
|
3491
|
+
* - `M` old-members-count (code- and governance-bounded)
|
|
3492
|
+
* - `N` new-members-count (code- and governance-bounded)
|
|
3493
|
+
* - `P` proposals-count (code-bounded)
|
|
3494
|
+
* - DB:
|
|
3495
|
+
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
3496
|
+
* members
|
|
3497
|
+
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
3498
|
+
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
3499
|
+
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
3500
|
+
* # </weight>
|
|
3501
|
+
**/
|
|
3502
|
+
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | object | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
3503
|
+
/**
|
|
3504
|
+
* Add an aye or nay vote for the sender to the given proposal.
|
|
3505
|
+
*
|
|
3506
|
+
* Requires the sender to be a member.
|
|
3507
|
+
*
|
|
3508
|
+
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
3509
|
+
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
3510
|
+
* fee.
|
|
3511
|
+
* # <weight>
|
|
3512
|
+
* ## Weight
|
|
3513
|
+
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
3514
|
+
* - DB:
|
|
3515
|
+
* - 1 storage read `Members` (codec `O(M)`)
|
|
3516
|
+
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
3517
|
+
* - 1 event
|
|
3518
|
+
* # </weight>
|
|
3519
|
+
**/
|
|
3520
|
+
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
3521
|
+
/**
|
|
3522
|
+
* Generic tx
|
|
3523
|
+
**/
|
|
3524
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3525
|
+
};
|
|
3526
|
+
technicalMembership: {
|
|
3527
|
+
/**
|
|
3528
|
+
* Add a member `who` to the set.
|
|
3529
|
+
*
|
|
3530
|
+
* May only be called from `T::AddOrigin`.
|
|
3531
|
+
**/
|
|
3532
|
+
addMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3533
|
+
/**
|
|
3534
|
+
* Swap out the sending member for some other key `new`.
|
|
3535
|
+
*
|
|
3536
|
+
* May only be called from `Signed` origin of a current member.
|
|
3537
|
+
*
|
|
3538
|
+
* Prime membership is passed from the origin account to `new`, if extant.
|
|
3539
|
+
**/
|
|
3540
|
+
changeKey: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3541
|
+
/**
|
|
3542
|
+
* Remove the prime member if it exists.
|
|
3543
|
+
*
|
|
3544
|
+
* May only be called from `T::PrimeOrigin`.
|
|
3545
|
+
**/
|
|
3546
|
+
clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3547
|
+
/**
|
|
3548
|
+
* Remove a member `who` from the set.
|
|
3549
|
+
*
|
|
3550
|
+
* May only be called from `T::RemoveOrigin`.
|
|
3551
|
+
**/
|
|
3552
|
+
removeMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3553
|
+
/**
|
|
3554
|
+
* Change the membership to a new set, disregarding the existing membership. Be nice and
|
|
3555
|
+
* pass `members` pre-sorted.
|
|
3556
|
+
*
|
|
3557
|
+
* May only be called from `T::ResetOrigin`.
|
|
3558
|
+
**/
|
|
3559
|
+
resetMembers: AugmentedSubmittable<(members: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
3560
|
+
/**
|
|
3561
|
+
* Set the prime member. Must be a current member.
|
|
3562
|
+
*
|
|
3563
|
+
* May only be called from `T::PrimeOrigin`.
|
|
3564
|
+
**/
|
|
3565
|
+
setPrime: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3566
|
+
/**
|
|
3567
|
+
* Swap out one member `remove` for another `add`.
|
|
3568
|
+
*
|
|
3569
|
+
* May only be called from `T::SwapOrigin`.
|
|
3570
|
+
*
|
|
3571
|
+
* Prime membership is *not* passed from `remove` to `add`, if extant.
|
|
3572
|
+
**/
|
|
3573
|
+
swapMember: AugmentedSubmittable<(remove: AccountId32 | string | Uint8Array, add: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
3574
|
+
/**
|
|
3575
|
+
* Generic tx
|
|
3576
|
+
**/
|
|
3577
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3578
|
+
};
|
|
3579
|
+
timestamp: {
|
|
3580
|
+
/**
|
|
3581
|
+
* Set the current time.
|
|
3582
|
+
*
|
|
3583
|
+
* This call should be invoked exactly once per block. It will panic at the finalization
|
|
3584
|
+
* phase, if this call hasn't been invoked by that time.
|
|
3585
|
+
*
|
|
3586
|
+
* The timestamp should be greater than the previous one by the amount specified by
|
|
3587
|
+
* `MinimumPeriod`.
|
|
3588
|
+
*
|
|
3589
|
+
* The dispatch origin for this call must be `Inherent`.
|
|
3590
|
+
*
|
|
3591
|
+
* # <weight>
|
|
3592
|
+
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
3593
|
+
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
|
|
3594
|
+
* `on_finalize`)
|
|
3595
|
+
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
3596
|
+
* # </weight>
|
|
3597
|
+
**/
|
|
3598
|
+
set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
|
|
3599
|
+
/**
|
|
3600
|
+
* Generic tx
|
|
3601
|
+
**/
|
|
3602
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3603
|
+
};
|
|
3604
|
+
tips: {
|
|
3605
|
+
/**
|
|
3606
|
+
* Close and payout a tip.
|
|
3607
|
+
*
|
|
3608
|
+
* The dispatch origin for this call must be _Signed_.
|
|
3609
|
+
*
|
|
3610
|
+
* The tip identified by `hash` must have finished its countdown period.
|
|
3611
|
+
*
|
|
3612
|
+
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
3613
|
+
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
3614
|
+
*
|
|
3615
|
+
* # <weight>
|
|
3616
|
+
* - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
|
|
3617
|
+
* `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost
|
|
3618
|
+
* depends on the implementation of `T::Tippers`.
|
|
3619
|
+
* - DbReads: `Tips`, `Tippers`, `tip finder`
|
|
3620
|
+
* - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
|
|
3621
|
+
* # </weight>
|
|
3622
|
+
**/
|
|
3623
|
+
closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
3624
|
+
/**
|
|
3625
|
+
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
|
|
3626
|
+
*
|
|
3627
|
+
* The dispatch origin for this call must be _Signed_.
|
|
3628
|
+
*
|
|
3629
|
+
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
3630
|
+
* `DataDepositPerByte` for each byte in `reason`.
|
|
3631
|
+
*
|
|
3632
|
+
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
3633
|
+
* a UTF-8-encoded URL.
|
|
3634
|
+
* - `who`: The account which should be credited for the tip.
|
|
3635
|
+
*
|
|
3636
|
+
* Emits `NewTip` if successful.
|
|
3637
|
+
*
|
|
3638
|
+
* # <weight>
|
|
3639
|
+
* - Complexity: `O(R)` where `R` length of `reason`.
|
|
3640
|
+
* - encoding and hashing of 'reason'
|
|
3641
|
+
* - DbReads: `Reasons`, `Tips`
|
|
3642
|
+
* - DbWrites: `Reasons`, `Tips`
|
|
3643
|
+
* # </weight>
|
|
3644
|
+
**/
|
|
3645
|
+
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32]>;
|
|
3646
|
+
/**
|
|
3647
|
+
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
|
3648
|
+
*
|
|
3649
|
+
* If successful, the original deposit will be unreserved.
|
|
3650
|
+
*
|
|
3651
|
+
* The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
|
|
3652
|
+
* must have been reported by the signing account through `report_awesome` (and not
|
|
3653
|
+
* through `tip_new`).
|
|
3654
|
+
*
|
|
3655
|
+
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
3656
|
+
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
3657
|
+
*
|
|
3658
|
+
* Emits `TipRetracted` if successful.
|
|
3659
|
+
*
|
|
3660
|
+
* # <weight>
|
|
3661
|
+
* - Complexity: `O(1)`
|
|
3662
|
+
* - Depends on the length of `T::Hash` which is fixed.
|
|
3663
|
+
* - DbReads: `Tips`, `origin account`
|
|
3664
|
+
* - DbWrites: `Reasons`, `Tips`, `origin account`
|
|
3665
|
+
* # </weight>
|
|
3666
|
+
**/
|
|
3667
|
+
retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
3668
|
+
/**
|
|
3669
|
+
* Remove and slash an already-open tip.
|
|
3670
|
+
*
|
|
3671
|
+
* May only be called from `T::RejectOrigin`.
|
|
3672
|
+
*
|
|
3673
|
+
* As a result, the finder is slashed and the deposits are lost.
|
|
3674
|
+
*
|
|
3675
|
+
* Emits `TipSlashed` if successful.
|
|
3676
|
+
*
|
|
3677
|
+
* # <weight>
|
|
3678
|
+
* `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
3679
|
+
* The actual cost depends on the implementation of `T::Tippers`.
|
|
3680
|
+
* # </weight>
|
|
3681
|
+
**/
|
|
3682
|
+
slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
3683
|
+
/**
|
|
3684
|
+
* Declare a tip value for an already-open tip.
|
|
3685
|
+
*
|
|
3686
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
3687
|
+
* member of the `Tippers` set.
|
|
3688
|
+
*
|
|
3689
|
+
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
3690
|
+
* as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
|
|
3691
|
+
* account ID.
|
|
3692
|
+
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
3693
|
+
* value of active tippers will be given to the `who`.
|
|
3694
|
+
*
|
|
3695
|
+
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
3696
|
+
* has started.
|
|
3697
|
+
*
|
|
3698
|
+
* # <weight>
|
|
3699
|
+
* - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
|
|
3700
|
+
* `T`, insert tip and check closing, `T` is charged as upper bound given by
|
|
3701
|
+
* `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`.
|
|
3702
|
+
*
|
|
3703
|
+
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
3704
|
+
* is weighted as if almost full i.e of length `T-1`.
|
|
3705
|
+
* - DbReads: `Tippers`, `Tips`
|
|
3706
|
+
* - DbWrites: `Tips`
|
|
3707
|
+
* # </weight>
|
|
3708
|
+
**/
|
|
3709
|
+
tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
|
3710
|
+
/**
|
|
3711
|
+
* Give a tip for something new; no finder's fee will be taken.
|
|
3712
|
+
*
|
|
3713
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
3714
|
+
* member of the `Tippers` set.
|
|
3715
|
+
*
|
|
3716
|
+
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
3717
|
+
* a UTF-8-encoded URL.
|
|
3718
|
+
* - `who`: The account which should be credited for the tip.
|
|
3719
|
+
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
3720
|
+
* value of active tippers will be given to the `who`.
|
|
3721
|
+
*
|
|
3722
|
+
* Emits `NewTip` if successful.
|
|
3723
|
+
*
|
|
3724
|
+
* # <weight>
|
|
3725
|
+
* - Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
3726
|
+
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
3727
|
+
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
3728
|
+
* `T::Tippers`.
|
|
3729
|
+
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
3730
|
+
* - DbReads: `Tippers`, `Reasons`
|
|
3731
|
+
* - DbWrites: `Reasons`, `Tips`
|
|
3732
|
+
* # </weight>
|
|
3733
|
+
**/
|
|
3734
|
+
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32, Compact<u128>]>;
|
|
3735
|
+
/**
|
|
3736
|
+
* Generic tx
|
|
3737
|
+
**/
|
|
3738
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3739
|
+
};
|
|
3740
|
+
treasury: {
|
|
3741
|
+
/**
|
|
3742
|
+
* Approve a proposal. At a later time, the proposal will be allocated to the beneficiary
|
|
3743
|
+
* and the original deposit will be returned.
|
|
3744
|
+
*
|
|
3745
|
+
* May only be called from `T::ApproveOrigin`.
|
|
3746
|
+
*
|
|
3747
|
+
* # <weight>
|
|
3748
|
+
* - Complexity: O(1).
|
|
3749
|
+
* - DbReads: `Proposals`, `Approvals`
|
|
3750
|
+
* - DbWrite: `Approvals`
|
|
3751
|
+
* # </weight>
|
|
3752
|
+
**/
|
|
3753
|
+
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3754
|
+
/**
|
|
3755
|
+
* Put forward a suggestion for spending. A deposit proportional to the value
|
|
3756
|
+
* is reserved and slashed if the proposal is rejected. It is returned once the
|
|
3757
|
+
* proposal is awarded.
|
|
3758
|
+
*
|
|
3759
|
+
* # <weight>
|
|
3760
|
+
* - Complexity: O(1)
|
|
3761
|
+
* - DbReads: `ProposalCount`, `origin account`
|
|
3762
|
+
* - DbWrites: `ProposalCount`, `Proposals`, `origin account`
|
|
3763
|
+
* # </weight>
|
|
3764
|
+
**/
|
|
3765
|
+
proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
3766
|
+
Id: any;
|
|
3767
|
+
} | {
|
|
3768
|
+
Index: any;
|
|
3769
|
+
} | {
|
|
3770
|
+
Raw: any;
|
|
3771
|
+
} | {
|
|
3772
|
+
Address32: any;
|
|
3773
|
+
} | {
|
|
3774
|
+
Address20: any;
|
|
3775
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
|
|
3776
|
+
/**
|
|
3777
|
+
* Reject a proposed spend. The original deposit will be slashed.
|
|
3778
|
+
*
|
|
3779
|
+
* May only be called from `T::RejectOrigin`.
|
|
3780
|
+
*
|
|
3781
|
+
* # <weight>
|
|
3782
|
+
* - Complexity: O(1)
|
|
3783
|
+
* - DbReads: `Proposals`, `rejected proposer account`
|
|
3784
|
+
* - DbWrites: `Proposals`, `rejected proposer account`
|
|
3785
|
+
* # </weight>
|
|
3786
|
+
**/
|
|
3787
|
+
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3788
|
+
/**
|
|
3789
|
+
* Generic tx
|
|
3790
|
+
**/
|
|
3791
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3792
|
+
};
|
|
3793
|
+
ump: {
|
|
3794
|
+
/**
|
|
3795
|
+
* Service a single overweight upward message.
|
|
3796
|
+
*
|
|
3797
|
+
* - `origin`: Must pass `ExecuteOverweightOrigin`.
|
|
3798
|
+
* - `index`: The index of the overweight message to service.
|
|
3799
|
+
* - `weight_limit`: The amount of weight that message execution may take.
|
|
3800
|
+
*
|
|
3801
|
+
* Errors:
|
|
3802
|
+
* - `UnknownMessageIndex`: Message of `index` is unknown.
|
|
3803
|
+
* - `WeightOverLimit`: Message execution may use greater than `weight_limit`.
|
|
3804
|
+
*
|
|
3805
|
+
* Events:
|
|
3806
|
+
* - `OverweightServiced`: On success.
|
|
3807
|
+
**/
|
|
3808
|
+
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
|
|
3809
|
+
/**
|
|
3810
|
+
* Generic tx
|
|
3811
|
+
**/
|
|
3812
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3813
|
+
};
|
|
3814
|
+
utility: {
|
|
3815
|
+
/**
|
|
3816
|
+
* Send a call through an indexed pseudonym of the sender.
|
|
3817
|
+
*
|
|
3818
|
+
* Filter from origin are passed along. The call will be dispatched with an origin which
|
|
3819
|
+
* use the same filter as the origin of this call.
|
|
3820
|
+
*
|
|
3821
|
+
* NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
|
|
3822
|
+
* because you expect `proxy` to have been used prior in the call stack and you do not want
|
|
3823
|
+
* the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
|
|
3824
|
+
* in the Multisig pallet instead.
|
|
3825
|
+
*
|
|
3826
|
+
* NOTE: Prior to version *12, this was called `as_limited_sub`.
|
|
3827
|
+
*
|
|
3828
|
+
* The dispatch origin for this call must be _Signed_.
|
|
3829
|
+
**/
|
|
3830
|
+
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | {
|
|
3831
|
+
callIndex?: any;
|
|
3832
|
+
args?: any;
|
|
3833
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
|
3834
|
+
/**
|
|
3835
|
+
* Send a batch of dispatch calls.
|
|
3836
|
+
*
|
|
3837
|
+
* May be called from any origin.
|
|
3838
|
+
*
|
|
3839
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
3840
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
3841
|
+
*
|
|
3842
|
+
* If origin is root then call are dispatch without checking origin filter. (This includes
|
|
3843
|
+
* bypassing `frame_system::Config::BaseCallFilter`).
|
|
3844
|
+
*
|
|
3845
|
+
* # <weight>
|
|
3846
|
+
* - Complexity: O(C) where C is the number of calls to be batched.
|
|
3847
|
+
* # </weight>
|
|
3848
|
+
*
|
|
3849
|
+
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
3850
|
+
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
3851
|
+
* `BatchInterrupted` event is deposited, along with the number of successful calls made
|
|
3852
|
+
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
|
3853
|
+
* event is deposited.
|
|
3854
|
+
**/
|
|
3855
|
+
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
|
|
3856
|
+
callIndex?: any;
|
|
3857
|
+
args?: any;
|
|
3858
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
3859
|
+
/**
|
|
3860
|
+
* Send a batch of dispatch calls and atomically execute them.
|
|
3861
|
+
* The whole transaction will rollback and fail if any of the calls failed.
|
|
3862
|
+
*
|
|
3863
|
+
* May be called from any origin.
|
|
3864
|
+
*
|
|
3865
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
3866
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
3867
|
+
*
|
|
3868
|
+
* If origin is root then call are dispatch without checking origin filter. (This includes
|
|
3869
|
+
* bypassing `frame_system::Config::BaseCallFilter`).
|
|
3870
|
+
*
|
|
3871
|
+
* # <weight>
|
|
3872
|
+
* - Complexity: O(C) where C is the number of calls to be batched.
|
|
3873
|
+
* # </weight>
|
|
3874
|
+
**/
|
|
3875
|
+
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
|
|
3876
|
+
callIndex?: any;
|
|
3877
|
+
args?: any;
|
|
3878
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
3879
|
+
/**
|
|
3880
|
+
* Dispatches a function call with a provided origin.
|
|
3881
|
+
*
|
|
3882
|
+
* The dispatch origin for this call must be _Root_.
|
|
3883
|
+
*
|
|
3884
|
+
* # <weight>
|
|
3885
|
+
* - O(1).
|
|
3886
|
+
* - Limited storage reads.
|
|
3887
|
+
* - One DB write (event).
|
|
3888
|
+
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
|
3889
|
+
* # </weight>
|
|
3890
|
+
**/
|
|
3891
|
+
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | {
|
|
3892
|
+
system: any;
|
|
3893
|
+
} | {
|
|
3894
|
+
Void: any;
|
|
3895
|
+
} | {
|
|
3896
|
+
Council: any;
|
|
3897
|
+
} | {
|
|
3898
|
+
TechnicalCommittee: any;
|
|
3899
|
+
} | {
|
|
3900
|
+
ParachainsOrigin: any;
|
|
3901
|
+
} | {
|
|
3902
|
+
XcmPallet: any;
|
|
3903
|
+
} | string | Uint8Array, call: Call | {
|
|
3904
|
+
callIndex?: any;
|
|
3905
|
+
args?: any;
|
|
3906
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
|
3907
|
+
/**
|
|
3908
|
+
* Generic tx
|
|
3909
|
+
**/
|
|
3910
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3911
|
+
};
|
|
3912
|
+
vesting: {
|
|
3913
|
+
/**
|
|
3914
|
+
* Force a vested transfer.
|
|
3915
|
+
*
|
|
3916
|
+
* The dispatch origin for this call must be _Root_.
|
|
3917
|
+
*
|
|
3918
|
+
* - `source`: The account whose funds should be transferred.
|
|
3919
|
+
* - `target`: The account that should be transferred the vested funds.
|
|
3920
|
+
* - `schedule`: The vesting schedule attached to the transfer.
|
|
3921
|
+
*
|
|
3922
|
+
* Emits `VestingCreated`.
|
|
3923
|
+
*
|
|
3924
|
+
* NOTE: This will unlock all schedules through the current block.
|
|
3925
|
+
*
|
|
3926
|
+
* # <weight>
|
|
3927
|
+
* - `O(1)`.
|
|
3928
|
+
* - DbWeight: 4 Reads, 4 Writes
|
|
3929
|
+
* - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
3930
|
+
* - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
3931
|
+
* # </weight>
|
|
3932
|
+
**/
|
|
3933
|
+
forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
3934
|
+
Id: any;
|
|
3935
|
+
} | {
|
|
3936
|
+
Index: any;
|
|
3937
|
+
} | {
|
|
3938
|
+
Raw: any;
|
|
3939
|
+
} | {
|
|
3940
|
+
Address32: any;
|
|
3941
|
+
} | {
|
|
3942
|
+
Address20: any;
|
|
3943
|
+
} | string | Uint8Array, target: MultiAddress | {
|
|
3944
|
+
Id: any;
|
|
3945
|
+
} | {
|
|
3946
|
+
Index: any;
|
|
3947
|
+
} | {
|
|
3948
|
+
Raw: any;
|
|
3949
|
+
} | {
|
|
3950
|
+
Address32: any;
|
|
3951
|
+
} | {
|
|
3952
|
+
Address20: any;
|
|
3953
|
+
} | string | Uint8Array, schedule: PalletVestingVestingInfo | {
|
|
3954
|
+
locked?: any;
|
|
3955
|
+
perBlock?: any;
|
|
3956
|
+
startingBlock?: any;
|
|
3957
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, PalletVestingVestingInfo]>;
|
|
3958
|
+
/**
|
|
3959
|
+
* Merge two vesting schedules together, creating a new vesting schedule that unlocks over
|
|
3960
|
+
* the highest possible start and end blocks. If both schedules have already started the
|
|
3961
|
+
* current block will be used as the schedule start; with the caveat that if one schedule
|
|
3962
|
+
* is finished by the current block, the other will be treated as the new merged schedule,
|
|
3963
|
+
* unmodified.
|
|
3964
|
+
*
|
|
3965
|
+
* NOTE: If `schedule1_index == schedule2_index` this is a no-op.
|
|
3966
|
+
* NOTE: This will unlock all schedules through the current block prior to merging.
|
|
3967
|
+
* NOTE: If both schedules have ended by the current block, no new schedule will be created
|
|
3968
|
+
* and both will be removed.
|
|
3969
|
+
*
|
|
3970
|
+
* Merged schedule attributes:
|
|
3971
|
+
* - `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,
|
|
3972
|
+
* current_block)`.
|
|
3973
|
+
* - `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`.
|
|
3974
|
+
* - `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`.
|
|
3975
|
+
*
|
|
3976
|
+
* The dispatch origin for this call must be _Signed_.
|
|
3977
|
+
*
|
|
3978
|
+
* - `schedule1_index`: index of the first schedule to merge.
|
|
3979
|
+
* - `schedule2_index`: index of the second schedule to merge.
|
|
3980
|
+
**/
|
|
3981
|
+
mergeSchedules: AugmentedSubmittable<(schedule1Index: u32 | AnyNumber | Uint8Array, schedule2Index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3982
|
+
/**
|
|
3983
|
+
* Unlock any vested funds of the sender account.
|
|
3984
|
+
*
|
|
3985
|
+
* The dispatch origin for this call must be _Signed_ and the sender must have funds still
|
|
3986
|
+
* locked under this pallet.
|
|
3987
|
+
*
|
|
3988
|
+
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
3989
|
+
*
|
|
3990
|
+
* # <weight>
|
|
3991
|
+
* - `O(1)`.
|
|
3992
|
+
* - DbWeight: 2 Reads, 2 Writes
|
|
3993
|
+
* - Reads: Vesting Storage, Balances Locks, [Sender Account]
|
|
3994
|
+
* - Writes: Vesting Storage, Balances Locks, [Sender Account]
|
|
3995
|
+
* # </weight>
|
|
3996
|
+
**/
|
|
3997
|
+
vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3998
|
+
/**
|
|
3999
|
+
* Create a vested transfer.
|
|
4000
|
+
*
|
|
4001
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4002
|
+
*
|
|
4003
|
+
* - `target`: The account receiving the vested funds.
|
|
4004
|
+
* - `schedule`: The vesting schedule attached to the transfer.
|
|
4005
|
+
*
|
|
4006
|
+
* Emits `VestingCreated`.
|
|
4007
|
+
*
|
|
4008
|
+
* NOTE: This will unlock all schedules through the current block.
|
|
4009
|
+
*
|
|
4010
|
+
* # <weight>
|
|
4011
|
+
* - `O(1)`.
|
|
4012
|
+
* - DbWeight: 3 Reads, 3 Writes
|
|
4013
|
+
* - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
4014
|
+
* - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
4015
|
+
* # </weight>
|
|
4016
|
+
**/
|
|
4017
|
+
vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
|
|
4018
|
+
Id: any;
|
|
4019
|
+
} | {
|
|
4020
|
+
Index: any;
|
|
4021
|
+
} | {
|
|
4022
|
+
Raw: any;
|
|
4023
|
+
} | {
|
|
4024
|
+
Address32: any;
|
|
4025
|
+
} | {
|
|
4026
|
+
Address20: any;
|
|
4027
|
+
} | string | Uint8Array, schedule: PalletVestingVestingInfo | {
|
|
4028
|
+
locked?: any;
|
|
4029
|
+
perBlock?: any;
|
|
4030
|
+
startingBlock?: any;
|
|
4031
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletVestingVestingInfo]>;
|
|
4032
|
+
/**
|
|
4033
|
+
* Unlock any vested funds of a `target` account.
|
|
4034
|
+
*
|
|
4035
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4036
|
+
*
|
|
4037
|
+
* - `target`: The account whose vested funds should be unlocked. Must have funds still
|
|
4038
|
+
* locked under this pallet.
|
|
4039
|
+
*
|
|
4040
|
+
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
4041
|
+
*
|
|
4042
|
+
* # <weight>
|
|
4043
|
+
* - `O(1)`.
|
|
4044
|
+
* - DbWeight: 3 Reads, 3 Writes
|
|
4045
|
+
* - Reads: Vesting Storage, Balances Locks, Target Account
|
|
4046
|
+
* - Writes: Vesting Storage, Balances Locks, Target Account
|
|
4047
|
+
* # </weight>
|
|
4048
|
+
**/
|
|
4049
|
+
vestOther: AugmentedSubmittable<(target: MultiAddress | {
|
|
4050
|
+
Id: any;
|
|
4051
|
+
} | {
|
|
4052
|
+
Index: any;
|
|
4053
|
+
} | {
|
|
4054
|
+
Raw: any;
|
|
4055
|
+
} | {
|
|
4056
|
+
Address32: any;
|
|
4057
|
+
} | {
|
|
4058
|
+
Address20: any;
|
|
4059
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
4060
|
+
/**
|
|
4061
|
+
* Generic tx
|
|
4062
|
+
**/
|
|
4063
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4064
|
+
};
|
|
4065
|
+
xcmPallet: {
|
|
4066
|
+
/**
|
|
4067
|
+
* Execute an XCM message from a local, signed, origin.
|
|
4068
|
+
*
|
|
4069
|
+
* An event is deposited indicating whether `msg` could be executed completely or only
|
|
4070
|
+
* partially.
|
|
4071
|
+
*
|
|
4072
|
+
* No more than `max_weight` will be used in its attempted execution. If this is less than the
|
|
4073
|
+
* maximum amount of weight that the message could take to be executed, then no execution
|
|
4074
|
+
* attempt will be made.
|
|
4075
|
+
*
|
|
4076
|
+
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
|
4077
|
+
* to completion; only that *some* of it was executed.
|
|
4078
|
+
**/
|
|
4079
|
+
execute: AugmentedSubmittable<(message: XcmVersionedXcm | {
|
|
4080
|
+
V0: any;
|
|
4081
|
+
} | {
|
|
4082
|
+
V1: any;
|
|
4083
|
+
} | {
|
|
4084
|
+
V2: any;
|
|
4085
|
+
} | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
|
|
4086
|
+
/**
|
|
4087
|
+
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
4088
|
+
* version a destination can accept is unknown).
|
|
4089
|
+
*
|
|
4090
|
+
* - `origin`: Must be Root.
|
|
4091
|
+
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
|
4092
|
+
**/
|
|
4093
|
+
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
4094
|
+
/**
|
|
4095
|
+
* Ask a location to notify us regarding their XCM version and any changes to it.
|
|
4096
|
+
*
|
|
4097
|
+
* - `origin`: Must be Root.
|
|
4098
|
+
* - `location`: The location to which we should subscribe for XCM version notifications.
|
|
4099
|
+
**/
|
|
4100
|
+
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | {
|
|
4101
|
+
V0: any;
|
|
4102
|
+
} | {
|
|
4103
|
+
V1: any;
|
|
4104
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
|
4105
|
+
/**
|
|
4106
|
+
* Require that a particular destination should no longer notify us regarding any XCM
|
|
4107
|
+
* version changes.
|
|
4108
|
+
*
|
|
4109
|
+
* - `origin`: Must be Root.
|
|
4110
|
+
* - `location`: The location to which we are currently subscribed for XCM version
|
|
4111
|
+
* notifications which we no longer desire.
|
|
4112
|
+
**/
|
|
4113
|
+
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | {
|
|
4114
|
+
V0: any;
|
|
4115
|
+
} | {
|
|
4116
|
+
V1: any;
|
|
4117
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
|
4118
|
+
/**
|
|
4119
|
+
* Extoll that a particular destination can be communicated with through a particular
|
|
4120
|
+
* version of XCM.
|
|
4121
|
+
*
|
|
4122
|
+
* - `origin`: Must be Root.
|
|
4123
|
+
* - `location`: The destination that is being described.
|
|
4124
|
+
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
4125
|
+
**/
|
|
4126
|
+
forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | {
|
|
4127
|
+
parents?: any;
|
|
4128
|
+
interior?: any;
|
|
4129
|
+
} | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;
|
|
4130
|
+
/**
|
|
4131
|
+
* Transfer some assets from the local chain to the sovereign account of a destination chain and forward
|
|
4132
|
+
* a notification XCM.
|
|
4133
|
+
*
|
|
4134
|
+
* Fee payment on the destination side is made from the first asset listed in the `assets` vector.
|
|
4135
|
+
*
|
|
4136
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
4137
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
4138
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
4139
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
4140
|
+
* an `AccountId32` value.
|
|
4141
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the
|
|
4142
|
+
* `dest` side.
|
|
4143
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
4144
|
+
* fees.
|
|
4145
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
4146
|
+
**/
|
|
4147
|
+
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
4148
|
+
V0: any;
|
|
4149
|
+
} | {
|
|
4150
|
+
V1: any;
|
|
4151
|
+
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
4152
|
+
V0: any;
|
|
4153
|
+
} | {
|
|
4154
|
+
V1: any;
|
|
4155
|
+
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
4156
|
+
V0: any;
|
|
4157
|
+
} | {
|
|
4158
|
+
V1: any;
|
|
4159
|
+
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | {
|
|
4160
|
+
Unlimited: any;
|
|
4161
|
+
} | {
|
|
4162
|
+
Limited: any;
|
|
4163
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
|
4164
|
+
/**
|
|
4165
|
+
* Teleport some assets from the local chain to some destination chain.
|
|
4166
|
+
*
|
|
4167
|
+
* Fee payment on the destination side is made from the first asset listed in the `assets` vector.
|
|
4168
|
+
*
|
|
4169
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
4170
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
4171
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
4172
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
4173
|
+
* an `AccountId32` value.
|
|
4174
|
+
* - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the
|
|
4175
|
+
* `dest` side. May not be empty.
|
|
4176
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
4177
|
+
* fees.
|
|
4178
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
4179
|
+
**/
|
|
4180
|
+
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
4181
|
+
V0: any;
|
|
4182
|
+
} | {
|
|
4183
|
+
V1: any;
|
|
4184
|
+
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
4185
|
+
V0: any;
|
|
4186
|
+
} | {
|
|
4187
|
+
V1: any;
|
|
4188
|
+
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
4189
|
+
V0: any;
|
|
4190
|
+
} | {
|
|
4191
|
+
V1: any;
|
|
4192
|
+
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | {
|
|
4193
|
+
Unlimited: any;
|
|
4194
|
+
} | {
|
|
4195
|
+
Limited: any;
|
|
4196
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
|
4197
|
+
/**
|
|
4198
|
+
* Transfer some assets from the local chain to the sovereign account of a destination chain and forward
|
|
4199
|
+
* a notification XCM.
|
|
4200
|
+
*
|
|
4201
|
+
* Fee payment on the destination side is made from the first asset listed in the `assets` vector and
|
|
4202
|
+
* fee-weight is calculated locally and thus remote weights are assumed to be equal to
|
|
4203
|
+
* local weights.
|
|
4204
|
+
*
|
|
4205
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
4206
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
4207
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
4208
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
4209
|
+
* an `AccountId32` value.
|
|
4210
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the
|
|
4211
|
+
* `dest` side.
|
|
4212
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
4213
|
+
* fees.
|
|
4214
|
+
**/
|
|
4215
|
+
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
4216
|
+
V0: any;
|
|
4217
|
+
} | {
|
|
4218
|
+
V1: any;
|
|
4219
|
+
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
4220
|
+
V0: any;
|
|
4221
|
+
} | {
|
|
4222
|
+
V1: any;
|
|
4223
|
+
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
4224
|
+
V0: any;
|
|
4225
|
+
} | {
|
|
4226
|
+
V1: any;
|
|
4227
|
+
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
|
4228
|
+
send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
4229
|
+
V0: any;
|
|
4230
|
+
} | {
|
|
4231
|
+
V1: any;
|
|
4232
|
+
} | string | Uint8Array, message: XcmVersionedXcm | {
|
|
4233
|
+
V0: any;
|
|
4234
|
+
} | {
|
|
4235
|
+
V1: any;
|
|
4236
|
+
} | {
|
|
4237
|
+
V2: any;
|
|
4238
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;
|
|
4239
|
+
/**
|
|
4240
|
+
* Teleport some assets from the local chain to some destination chain.
|
|
4241
|
+
*
|
|
4242
|
+
* Fee payment on the destination side is made from the first asset listed in the `assets` vector and
|
|
4243
|
+
* fee-weight is calculated locally and thus remote weights are assumed to be equal to
|
|
4244
|
+
* local weights.
|
|
4245
|
+
*
|
|
4246
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
4247
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
|
4248
|
+
* from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.
|
|
4249
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be
|
|
4250
|
+
* an `AccountId32` value.
|
|
4251
|
+
* - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the
|
|
4252
|
+
* `dest` side. May not be empty.
|
|
4253
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
4254
|
+
* fees.
|
|
4255
|
+
**/
|
|
4256
|
+
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | {
|
|
4257
|
+
V0: any;
|
|
4258
|
+
} | {
|
|
4259
|
+
V1: any;
|
|
4260
|
+
} | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | {
|
|
4261
|
+
V0: any;
|
|
4262
|
+
} | {
|
|
4263
|
+
V1: any;
|
|
4264
|
+
} | string | Uint8Array, assets: XcmVersionedMultiAssets | {
|
|
4265
|
+
V0: any;
|
|
4266
|
+
} | {
|
|
4267
|
+
V1: any;
|
|
4268
|
+
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
|
|
4269
|
+
/**
|
|
4270
|
+
* Generic tx
|
|
4271
|
+
**/
|
|
4272
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4273
|
+
};
|
|
4274
|
+
}
|
|
4275
|
+
}
|