@totochain/api-augment 0.0.0-stage → 0.2.0

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.
Files changed (59) hide show
  1. package/README.md +70 -2
  2. package/dist/definitions/definitions.d.ts +1 -0
  3. package/dist/definitions/definitions.js +2 -0
  4. package/dist/definitions/totochain/definitions.d.ts +5 -0
  5. package/dist/definitions/totochain/definitions.js +7 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +12 -0
  8. package/dist/interfaces/augment-api-consts.d.ts +861 -0
  9. package/dist/interfaces/augment-api-consts.js +5 -0
  10. package/dist/interfaces/augment-api-errors.d.ts +1183 -0
  11. package/dist/interfaces/augment-api-errors.js +5 -0
  12. package/dist/interfaces/augment-api-events.d.ts +2033 -0
  13. package/dist/interfaces/augment-api-events.js +5 -0
  14. package/dist/interfaces/augment-api-query.d.ts +1375 -0
  15. package/dist/interfaces/augment-api-query.js +5 -0
  16. package/dist/interfaces/augment-api-rpc.d.ts +683 -0
  17. package/dist/interfaces/augment-api-rpc.js +5 -0
  18. package/dist/interfaces/augment-api-runtime.d.ts +298 -0
  19. package/dist/interfaces/augment-api-runtime.js +5 -0
  20. package/dist/interfaces/augment-api-tx.d.ts +2356 -0
  21. package/dist/interfaces/augment-api-tx.js +5 -0
  22. package/dist/interfaces/augment-api.d.ts +7 -0
  23. package/dist/interfaces/augment-api.js +9 -0
  24. package/dist/interfaces/augment-types.d.ts +1368 -0
  25. package/dist/interfaces/augment-types.js +5 -0
  26. package/dist/interfaces/definitions.d.ts +1 -0
  27. package/dist/interfaces/definitions.js +2 -0
  28. package/dist/interfaces/index.d.ts +1 -0
  29. package/dist/interfaces/index.js +3 -0
  30. package/dist/interfaces/lookup.d.ts +3952 -0
  31. package/dist/interfaces/lookup.js +3954 -0
  32. package/dist/interfaces/registry.d.ts +279 -0
  33. package/dist/interfaces/registry.js +5 -0
  34. package/dist/interfaces/totochain/definitions.d.ts +5 -0
  35. package/dist/interfaces/totochain/definitions.js +7 -0
  36. package/dist/interfaces/types-lookup.d.ts +4085 -0
  37. package/dist/interfaces/types-lookup.js +5 -0
  38. package/dist/interfaces/types.d.ts +1 -0
  39. package/dist/interfaces/types.js +3 -0
  40. package/package.json +69 -4
  41. package/src/definitions/definitions.ts +2 -0
  42. package/src/definitions/totochain/definitions.ts +7 -0
  43. package/src/index.ts +15 -0
  44. package/src/interfaces/augment-api-consts.ts +869 -0
  45. package/src/interfaces/augment-api-errors.ts +1191 -0
  46. package/src/interfaces/augment-api-events.ts +1307 -0
  47. package/src/interfaces/augment-api-query.ts +1383 -0
  48. package/src/interfaces/augment-api-rpc.ts +621 -0
  49. package/src/interfaces/augment-api-runtime.ts +264 -0
  50. package/src/interfaces/augment-api-tx.ts +2175 -0
  51. package/src/interfaces/augment-api.ts +10 -0
  52. package/src/interfaces/augment-types.ts +1375 -0
  53. package/src/interfaces/definitions.ts +2 -0
  54. package/src/interfaces/index.ts +4 -0
  55. package/src/interfaces/lookup.ts +3956 -0
  56. package/src/interfaces/registry.ts +286 -0
  57. package/src/interfaces/totochain/definitions.ts +7 -0
  58. package/src/interfaces/types-lookup.ts +4352 -0
  59. package/src/interfaces/types.ts +4 -0
@@ -0,0 +1,2356 @@
1
+ import '@polkadot/api-base/types/submittable';
2
+ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
3
+ import type { Data } from '@polkadot/types';
4
+ import type { Bytes, Compact, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
+ import type { AccountId20, Call, H160, H256, Permill } from '@polkadot/types/interfaces/runtime';
7
+ import type { EthereumTransactionEip7702AuthorizationListItem, EthereumTransactionTransactionV3, FpAccountEthereumSignature, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletReputationVotingVoteDirection, PalletUniquesDestroyWitness, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpSessionMembershipProof, SpWeightsWeightV2Weight, TotochainRuntimeConfigsUtilityProxyType, TotochainRuntimeOriginCaller, TotochainRuntimeSessionKeys } from '@polkadot/types/lookup';
8
+ export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
+ export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
+ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
11
+ declare module '@polkadot/api-base/types/submittable' {
12
+ interface AugmentedSubmittables<ApiType extends ApiTypes> {
13
+ activityTracker: {
14
+ /**
15
+ * Generic tx
16
+ **/
17
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
18
+ };
19
+ attestation: {
20
+ add: AugmentedSubmittable<(subject: AccountId20 | string | Uint8Array, ctypeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256]>;
21
+ addAttester: AugmentedSubmittable<(attester: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
22
+ addCtypeWithWeight: AugmentedSubmittable<(ctypeHash: H256 | string | Uint8Array, ctypeWeight: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32]>;
23
+ forceRemove: AugmentedSubmittable<(subject: AccountId20 | string | Uint8Array, ctypeHash: H256 | string | Uint8Array, issuanceId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256, u64]>;
24
+ forceRevoke: AugmentedSubmittable<(subject: AccountId20 | string | Uint8Array, ctypeHash: H256 | string | Uint8Array, issuanceId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256, u64]>;
25
+ remove: AugmentedSubmittable<(subject: AccountId20 | string | Uint8Array, ctypeHash: H256 | string | Uint8Array, issuanceId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256, u64]>;
26
+ removeAttester: AugmentedSubmittable<(attester: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
27
+ removeCtypeWithWeight: AugmentedSubmittable<(ctypeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
28
+ revoke: AugmentedSubmittable<(subject: AccountId20 | string | Uint8Array, ctypeHash: H256 | string | Uint8Array, issuanceId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256, u64]>;
29
+ /**
30
+ * Generic tx
31
+ **/
32
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
33
+ };
34
+ babe: {
35
+ /**
36
+ * Plan an epoch config change. The epoch config change is recorded and will be enacted on
37
+ * the next call to `enact_epoch_change`. The config will be activated one epoch after.
38
+ * Multiple calls to this method will replace any existing planned config change that had
39
+ * not been enacted yet.
40
+ **/
41
+ planConfigChange: AugmentedSubmittable<(config: SpConsensusBabeDigestsNextConfigDescriptor | {
42
+ V1: any;
43
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBabeDigestsNextConfigDescriptor]>;
44
+ /**
45
+ * Report authority equivocation/misbehavior. This method will verify
46
+ * the equivocation proof and validate the given key ownership proof
47
+ * against the extracted offender. If both are valid, the offence will
48
+ * be reported.
49
+ **/
50
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusSlotsEquivocationProof | {
51
+ offender?: any;
52
+ slot?: any;
53
+ firstHeader?: any;
54
+ secondHeader?: any;
55
+ } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
56
+ session?: any;
57
+ trieNodes?: any;
58
+ validatorCount?: any;
59
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]>;
60
+ /**
61
+ * Report authority equivocation/misbehavior. This method will verify
62
+ * the equivocation proof and validate the given key ownership proof
63
+ * against the extracted offender. If both are valid, the offence will
64
+ * be reported.
65
+ * This extrinsic must be called unsigned and it is expected that only
66
+ * block authors will call it (validated in `ValidateUnsigned`), as such
67
+ * if the block author is defined it will be defined as the equivocation
68
+ * reporter.
69
+ **/
70
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusSlotsEquivocationProof | {
71
+ offender?: any;
72
+ slot?: any;
73
+ firstHeader?: any;
74
+ secondHeader?: any;
75
+ } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
76
+ session?: any;
77
+ trieNodes?: any;
78
+ validatorCount?: any;
79
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]>;
80
+ /**
81
+ * Generic tx
82
+ **/
83
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
84
+ };
85
+ balances: {
86
+ /**
87
+ * Burn the specified liquid free balance from the origin account.
88
+ *
89
+ * If the origin's account ends up below the existential deposit as a result
90
+ * of the burn and `keep_alive` is false, the account will be reaped.
91
+ *
92
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
93
+ * this `burn` operation will reduce total issuance by the amount _burned_.
94
+ **/
95
+ burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
96
+ /**
97
+ * Adjust the total issuance in a saturating way.
98
+ *
99
+ * Can only be called by root and always needs a positive `delta`.
100
+ *
101
+ * # Example
102
+ **/
103
+ forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
104
+ /**
105
+ * Set the regular balance of a given account.
106
+ *
107
+ * The dispatch origin for this call is `root`.
108
+ **/
109
+ forceSetBalance: AugmentedSubmittable<(who: AccountId20 | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Compact<u128>]>;
110
+ /**
111
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
112
+ * may be specified.
113
+ **/
114
+ forceTransfer: AugmentedSubmittable<(source: AccountId20 | string | Uint8Array, dest: AccountId20 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, AccountId20, Compact<u128>]>;
115
+ /**
116
+ * Unreserve some balance from a user by force.
117
+ *
118
+ * Can only be called by ROOT.
119
+ **/
120
+ forceUnreserve: AugmentedSubmittable<(who: AccountId20 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, u128]>;
121
+ /**
122
+ * Transfer the entire transferable balance from the caller account.
123
+ *
124
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
125
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
126
+ * transferred by this function. To ensure that this function results in a killed account,
127
+ * you might need to prepare the account by removing any reference counters, storage
128
+ * deposits, etc...
129
+ *
130
+ * The dispatch origin of this call must be Signed.
131
+ *
132
+ * - `dest`: The recipient of the transfer.
133
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
134
+ * of the funds the account has, causing the sender account to be killed (false), or
135
+ * transfer everything except at least the existential deposit, which will guarantee to
136
+ * keep the sender account alive (true).
137
+ **/
138
+ transferAll: AugmentedSubmittable<(dest: AccountId20 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, bool]>;
139
+ /**
140
+ * Transfer some liquid free balance to another account.
141
+ *
142
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
143
+ * If the sender's account is below the existential deposit as a result
144
+ * of the transfer, the account will be reaped.
145
+ *
146
+ * The dispatch origin for this call must be `Signed` by the transactor.
147
+ **/
148
+ transferAllowDeath: AugmentedSubmittable<(dest: AccountId20 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Compact<u128>]>;
149
+ /**
150
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
151
+ * kill the origin account.
152
+ *
153
+ * 99% of the time you want [`transfer_allow_death`] instead.
154
+ *
155
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
156
+ **/
157
+ transferKeepAlive: AugmentedSubmittable<(dest: AccountId20 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Compact<u128>]>;
158
+ /**
159
+ * Upgrade a specified account.
160
+ *
161
+ * - `origin`: Must be `Signed`.
162
+ * - `who`: The account to be upgraded.
163
+ *
164
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
165
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
166
+ * possibility of churn).
167
+ **/
168
+ upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId20>]>;
169
+ /**
170
+ * Generic tx
171
+ **/
172
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
173
+ };
174
+ baseFee: {
175
+ setBaseFeePerGas: AugmentedSubmittable<(fee: U256 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [U256]>;
176
+ setElasticity: AugmentedSubmittable<(elasticity: Permill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Permill]>;
177
+ /**
178
+ * Generic tx
179
+ **/
180
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
181
+ };
182
+ ctype: {
183
+ add: AugmentedSubmittable<(ctype: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
184
+ /**
185
+ * Generic tx
186
+ **/
187
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
188
+ };
189
+ did: {
190
+ createDidFor: AugmentedSubmittable<(subject: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
191
+ createFromAccount: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
192
+ /**
193
+ * Generic tx
194
+ **/
195
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
196
+ };
197
+ ethereum: {
198
+ /**
199
+ * Transact an Ethereum transaction.
200
+ **/
201
+ transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV3 | {
202
+ Legacy: any;
203
+ } | {
204
+ EIP2930: any;
205
+ } | {
206
+ EIP1559: any;
207
+ } | {
208
+ EIP7702: any;
209
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionTransactionV3]>;
210
+ /**
211
+ * Generic tx
212
+ **/
213
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
214
+ };
215
+ evm: {
216
+ /**
217
+ * Issue an EVM call operation. This is similar to a message call transaction in Ethereum.
218
+ **/
219
+ call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[], authorizationList: Vec<EthereumTransactionEip7702AuthorizationListItem> | (EthereumTransactionEip7702AuthorizationListItem | {
220
+ chainId?: any;
221
+ address?: any;
222
+ nonce?: any;
223
+ signature?: any;
224
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>, Vec<EthereumTransactionEip7702AuthorizationListItem>]>;
225
+ /**
226
+ * Issue an EVM create operation. This is similar to a contract creation transaction in
227
+ * Ethereum.
228
+ **/
229
+ create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[], authorizationList: Vec<EthereumTransactionEip7702AuthorizationListItem> | (EthereumTransactionEip7702AuthorizationListItem | {
230
+ chainId?: any;
231
+ address?: any;
232
+ nonce?: any;
233
+ signature?: any;
234
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>, Vec<EthereumTransactionEip7702AuthorizationListItem>]>;
235
+ /**
236
+ * Issue an EVM create2 operation.
237
+ **/
238
+ create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[], authorizationList: Vec<EthereumTransactionEip7702AuthorizationListItem> | (EthereumTransactionEip7702AuthorizationListItem | {
239
+ chainId?: any;
240
+ address?: any;
241
+ nonce?: any;
242
+ signature?: any;
243
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>, Vec<EthereumTransactionEip7702AuthorizationListItem>]>;
244
+ /**
245
+ * Withdraw balance from EVM into currency/balances pallet.
246
+ **/
247
+ withdraw: AugmentedSubmittable<(address: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, u128]>;
248
+ /**
249
+ * Generic tx
250
+ **/
251
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
252
+ };
253
+ grandpa: {
254
+ /**
255
+ * Note that the current authority set of the GRANDPA finality gadget has stalled.
256
+ *
257
+ * This will trigger a forced authority set change at the beginning of the next session, to
258
+ * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
259
+ * that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
260
+ * The block production rate (which may be slowed down because of finality lagging) should
261
+ * be taken into account when choosing the `delay`. The GRANDPA voters based on the new
262
+ * authority will start voting on top of `best_finalized_block_number` for new finalized
263
+ * blocks. `best_finalized_block_number` should be the highest of the latest finalized
264
+ * block of all validators of the new authority set.
265
+ *
266
+ * Only callable by root.
267
+ **/
268
+ noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
269
+ /**
270
+ * Report voter equivocation/misbehavior. This method will verify the
271
+ * equivocation proof and validate the given key ownership proof
272
+ * against the extracted offender. If both are valid, the offence
273
+ * will be reported.
274
+ **/
275
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
276
+ setId?: any;
277
+ equivocation?: any;
278
+ } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
279
+ session?: any;
280
+ trieNodes?: any;
281
+ validatorCount?: any;
282
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
283
+ /**
284
+ * Report voter equivocation/misbehavior. This method will verify the
285
+ * equivocation proof and validate the given key ownership proof
286
+ * against the extracted offender. If both are valid, the offence
287
+ * will be reported.
288
+ *
289
+ * This extrinsic must be called unsigned and it is expected that only
290
+ * block authors will call it (validated in `ValidateUnsigned`), as such
291
+ * if the block author is defined it will be defined as the equivocation
292
+ * reporter.
293
+ **/
294
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
295
+ setId?: any;
296
+ equivocation?: any;
297
+ } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
298
+ session?: any;
299
+ trieNodes?: any;
300
+ validatorCount?: any;
301
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
302
+ /**
303
+ * Generic tx
304
+ **/
305
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
306
+ };
307
+ handshake: {
308
+ /**
309
+ * Cancel a handshake request
310
+ **/
311
+ cancelHandshake: AugmentedSubmittable<(recipient: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
312
+ /**
313
+ * Complete a handshake
314
+ **/
315
+ completeHandshake: AugmentedSubmittable<(sender: AccountId20 | string | Uint8Array, recipient: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, AccountId20]>;
316
+ /**
317
+ * Confirm a handshake that was requested by another account
318
+ **/
319
+ confirmHandshake: AugmentedSubmittable<(sender: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
320
+ /**
321
+ * Request a handshake with another account
322
+ **/
323
+ requestHandshake: AugmentedSubmittable<(recipient: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
324
+ /**
325
+ * Generic tx
326
+ **/
327
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
328
+ };
329
+ identity: {
330
+ /**
331
+ * Accept a given username that an `authority` granted. The call must include the full
332
+ * username, as in `username.suffix`.
333
+ **/
334
+ acceptUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
335
+ /**
336
+ * Add a registrar to the system.
337
+ *
338
+ * The dispatch origin for this call must be `T::RegistrarOrigin`.
339
+ *
340
+ * - `account`: the account of the registrar.
341
+ *
342
+ * Emits `RegistrarAdded` if successful.
343
+ **/
344
+ addRegistrar: AugmentedSubmittable<(account: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
345
+ /**
346
+ * Add the given account to the sender's subs.
347
+ *
348
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
349
+ * to the sender.
350
+ *
351
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
352
+ * sub identity of `sub`.
353
+ **/
354
+ addSub: AugmentedSubmittable<(sub: AccountId20 | string | Uint8Array, data: Data | {
355
+ None: any;
356
+ } | {
357
+ Raw: any;
358
+ } | {
359
+ BlakeTwo256: any;
360
+ } | {
361
+ Sha256: any;
362
+ } | {
363
+ Keccak256: any;
364
+ } | {
365
+ ShaThree256: any;
366
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Data]>;
367
+ /**
368
+ * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
369
+ *
370
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
371
+ * change the account used to grant usernames, this call can be used with the updated
372
+ * parameters to overwrite the existing configuration.
373
+ **/
374
+ addUsernameAuthority: AugmentedSubmittable<(authority: AccountId20 | string | Uint8Array, suffix: Bytes | string | Uint8Array, allocation: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Bytes, u32]>;
375
+ /**
376
+ * Cancel a previous request.
377
+ *
378
+ * Payment: A previously reserved deposit is returned on success.
379
+ *
380
+ * The dispatch origin for this call must be _Signed_ and the sender must have a
381
+ * registered identity.
382
+ *
383
+ * - `reg_index`: The index of the registrar whose judgement is no longer requested.
384
+ *
385
+ * Emits `JudgementUnrequested` if successful.
386
+ **/
387
+ cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
388
+ /**
389
+ * Clear an account's identity info and all sub-accounts and return all deposits.
390
+ *
391
+ * Payment: All reserved balances on the account are returned.
392
+ *
393
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
394
+ * identity.
395
+ *
396
+ * Emits `IdentityCleared` if successful.
397
+ **/
398
+ clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
399
+ /**
400
+ * Remove an account's identity and sub-account information and slash the deposits.
401
+ *
402
+ * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by
403
+ * `Slash`. Verification request deposits are not returned; they should be cancelled
404
+ * manually using `cancel_request`.
405
+ *
406
+ * The dispatch origin for this call must match `T::ForceOrigin`.
407
+ *
408
+ * - `target`: the account whose identity the judgement is upon. This must be an account
409
+ * with a registered identity.
410
+ *
411
+ * Emits `IdentityKilled` if successful.
412
+ **/
413
+ killIdentity: AugmentedSubmittable<(target: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
414
+ /**
415
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
416
+ * and slashes any deposit associated with it.
417
+ **/
418
+ killUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
419
+ /**
420
+ * Provide a judgement for an account's identity.
421
+ *
422
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
423
+ * of the registrar whose index is `reg_index`.
424
+ *
425
+ * - `reg_index`: the index of the registrar whose judgement is being made.
426
+ * - `target`: the account whose identity the judgement is upon. This must be an account
427
+ * with a registered identity.
428
+ * - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
429
+ * - `identity`: The hash of the [`IdentityInformationProvider`] for that the judgement is
430
+ * provided.
431
+ *
432
+ * Note: Judgements do not apply to a username.
433
+ *
434
+ * Emits `JudgementGiven` if successful.
435
+ **/
436
+ provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: AccountId20 | string | Uint8Array, judgement: PalletIdentityJudgement | {
437
+ Unknown: any;
438
+ } | {
439
+ FeePaid: any;
440
+ } | {
441
+ Reasonable: any;
442
+ } | {
443
+ KnownGood: any;
444
+ } | {
445
+ OutOfDate: any;
446
+ } | {
447
+ LowQuality: any;
448
+ } | {
449
+ Erroneous: any;
450
+ } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, AccountId20, PalletIdentityJudgement, H256]>;
451
+ /**
452
+ * Remove the sender as a sub-account.
453
+ *
454
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
455
+ * to the sender (*not* the original depositor).
456
+ *
457
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
458
+ * super-identity.
459
+ *
460
+ * NOTE: This should not normally be used, but is provided in the case that the non-
461
+ * controller of an account is maliciously registered as a sub-account.
462
+ **/
463
+ quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
464
+ /**
465
+ * Remove an expired username approval. The username was approved by an authority but never
466
+ * accepted by the user and must now be beyond its expiration. The call must include the
467
+ * full username, as in `username.suffix`.
468
+ **/
469
+ removeExpiredApproval: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
470
+ /**
471
+ * Remove the given account from the sender's subs.
472
+ *
473
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
474
+ * to the sender.
475
+ *
476
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
477
+ * sub identity of `sub`.
478
+ **/
479
+ removeSub: AugmentedSubmittable<(sub: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
480
+ /**
481
+ * Permanently delete a username which has been unbinding for longer than the grace period.
482
+ * Caller is refunded the fee if the username expired and the removal was successful.
483
+ **/
484
+ removeUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
485
+ /**
486
+ * Remove `authority` from the username authorities.
487
+ **/
488
+ removeUsernameAuthority: AugmentedSubmittable<(suffix: Bytes | string | Uint8Array, authority: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId20]>;
489
+ /**
490
+ * Alter the associated name of the given sub-account.
491
+ *
492
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
493
+ * sub identity of `sub`.
494
+ **/
495
+ renameSub: AugmentedSubmittable<(sub: AccountId20 | string | Uint8Array, data: Data | {
496
+ None: any;
497
+ } | {
498
+ Raw: any;
499
+ } | {
500
+ BlakeTwo256: any;
501
+ } | {
502
+ Sha256: any;
503
+ } | {
504
+ Keccak256: any;
505
+ } | {
506
+ ShaThree256: any;
507
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Data]>;
508
+ /**
509
+ * Request a judgement from a registrar.
510
+ *
511
+ * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement
512
+ * given.
513
+ *
514
+ * The dispatch origin for this call must be _Signed_ and the sender must have a
515
+ * registered identity.
516
+ *
517
+ * - `reg_index`: The index of the registrar whose judgement is requested.
518
+ * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
519
+ *
520
+ * ```nocompile
521
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
522
+ * ```
523
+ *
524
+ * Emits `JudgementRequested` if successful.
525
+ **/
526
+ requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
527
+ /**
528
+ * Change the account associated with a registrar.
529
+ *
530
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
531
+ * of the registrar whose index is `index`.
532
+ *
533
+ * - `index`: the index of the registrar whose fee is to be set.
534
+ * - `new`: the new account ID.
535
+ **/
536
+ setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, AccountId20]>;
537
+ /**
538
+ * Set the fee required for a judgement to be requested from a registrar.
539
+ *
540
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
541
+ * of the registrar whose index is `index`.
542
+ *
543
+ * - `index`: the index of the registrar whose fee is to be set.
544
+ * - `fee`: the new fee.
545
+ **/
546
+ setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
547
+ /**
548
+ * Set the field information for a registrar.
549
+ *
550
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
551
+ * of the registrar whose index is `index`.
552
+ *
553
+ * - `index`: the index of the registrar whose fee is to be set.
554
+ * - `fields`: the fields that the registrar concerns themselves with.
555
+ **/
556
+ setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u64]>;
557
+ /**
558
+ * Set an account's identity information and reserve the appropriate deposit.
559
+ *
560
+ * If the account already has identity information, the deposit is taken as part payment
561
+ * for the new deposit.
562
+ *
563
+ * The dispatch origin for this call must be _Signed_.
564
+ *
565
+ * - `info`: The identity information.
566
+ *
567
+ * Emits `IdentitySet` if successful.
568
+ **/
569
+ setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | {
570
+ additional?: any;
571
+ display?: any;
572
+ legal?: any;
573
+ web?: any;
574
+ riot?: any;
575
+ email?: any;
576
+ pgpFingerprint?: any;
577
+ image?: any;
578
+ twitter?: any;
579
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
580
+ /**
581
+ * Set a given username as the primary. The username should include the suffix.
582
+ **/
583
+ setPrimaryUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
584
+ /**
585
+ * Set the sub-accounts of the sender.
586
+ *
587
+ * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned
588
+ * and an amount `SubAccountDeposit` will be reserved for each item in `subs`.
589
+ *
590
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
591
+ * identity.
592
+ *
593
+ * - `subs`: The identity's (new) sub-accounts.
594
+ **/
595
+ setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId20, Data]>> | ([AccountId20 | string | Uint8Array, Data | {
596
+ None: any;
597
+ } | {
598
+ Raw: any;
599
+ } | {
600
+ BlakeTwo256: any;
601
+ } | {
602
+ Sha256: any;
603
+ } | {
604
+ Keccak256: any;
605
+ } | {
606
+ ShaThree256: any;
607
+ } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId20, Data]>>]>;
608
+ /**
609
+ * Set the username for `who`. Must be called by a username authority.
610
+ *
611
+ * If `use_allocation` is set, the authority must have a username allocation available to
612
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
613
+ * username.
614
+ *
615
+ * Users can either pre-sign their usernames or
616
+ * accept them later.
617
+ *
618
+ * Usernames must:
619
+ * - Only contain lowercase ASCII characters or digits.
620
+ * - When combined with the suffix of the issuing authority be _less than_ the
621
+ * `MaxUsernameLength`.
622
+ **/
623
+ setUsernameFor: AugmentedSubmittable<(who: AccountId20 | string | Uint8Array, username: Bytes | string | Uint8Array, signature: Option<FpAccountEthereumSignature> | null | Uint8Array | FpAccountEthereumSignature | string, useAllocation: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Bytes, Option<FpAccountEthereumSignature>, bool]>;
624
+ /**
625
+ * Start the process of removing a username by placing it in the unbinding usernames map.
626
+ * Once the grace period has passed, the username can be deleted by calling
627
+ * [remove_username](crate::Call::remove_username).
628
+ **/
629
+ unbindUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
630
+ /**
631
+ * Generic tx
632
+ **/
633
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
634
+ };
635
+ imOnline: {
636
+ /**
637
+ * ## Complexity:
638
+ * - `O(K)` where K is length of `Keys` (heartbeat.validators_len)
639
+ * - `O(K)`: decoding of length `K`
640
+ **/
641
+ heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
642
+ blockNumber?: any;
643
+ sessionIndex?: any;
644
+ authorityIndex?: any;
645
+ validatorsLen?: any;
646
+ } | string | Uint8Array, signature: PalletImOnlineSr25519AppSr25519Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature]>;
647
+ /**
648
+ * Generic tx
649
+ **/
650
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
651
+ };
652
+ multisig: {
653
+ /**
654
+ * Register approval for a dispatch to be made from a deterministic composite account if
655
+ * approved by a total of `threshold - 1` of `other_signatories`.
656
+ *
657
+ * **This function will NEVER execute the call, even if the approval threshold is
658
+ * reached.** It only registers approval. To actually execute the call, `as_multi` must
659
+ * be called with the full call data by any of the signatories.
660
+ *
661
+ * This function is more efficient than `as_multi` for intermediate approvals since it
662
+ * only requires the call hash, not the full call data.
663
+ *
664
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
665
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
666
+ * is cancelled.
667
+ *
668
+ * The dispatch origin for this call must be _Signed_.
669
+ *
670
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
671
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
672
+ * dispatch. May not be empty.
673
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
674
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
675
+ * transaction index) of the first approval transaction.
676
+ * - `call_hash`: The hash of the call to be executed.
677
+ *
678
+ * NOTE: To execute the call after approvals are gathered, any signatory must call
679
+ * `as_multi` with the full call data. This function cannot execute the call.
680
+ *
681
+ * ## Complexity
682
+ * - `O(S)`.
683
+ * - Up to one balance-reserve or unreserve operation.
684
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
685
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
686
+ * - One encode & hash, both of complexity `O(S)`.
687
+ * - Up to one binary search and insert (`O(logS + S)`).
688
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
689
+ * - One event.
690
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
691
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
692
+ **/
693
+ approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
694
+ height?: any;
695
+ index?: any;
696
+ } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
697
+ refTime?: any;
698
+ proofSize?: any;
699
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId20>, Option<PalletMultisigTimepoint>, U8aFixed, SpWeightsWeightV2Weight]>;
700
+ /**
701
+ * Register approval for a dispatch to be made from a deterministic composite account if
702
+ * approved by a total of `threshold - 1` of `other_signatories`.
703
+ *
704
+ * **If the approval threshold is met (including the sender's approval), this will
705
+ * immediately execute the call.** This is the only way to execute a multisig call -
706
+ * `approve_as_multi` will never trigger execution.
707
+ *
708
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
709
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
710
+ * is cancelled.
711
+ *
712
+ * The dispatch origin for this call must be _Signed_.
713
+ *
714
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
715
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
716
+ * dispatch. May not be empty.
717
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
718
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
719
+ * transaction index) of the first approval transaction.
720
+ * - `call`: The call to be executed.
721
+ *
722
+ * NOTE: For intermediate approvals (not the final approval), you should generally use
723
+ * `approve_as_multi` instead, since it only requires a hash of the call and is more
724
+ * efficient.
725
+ *
726
+ * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
727
+ * on success, result is `Ok` and the result from the interior call, if it was executed,
728
+ * may be found in the deposited `MultisigExecuted` event.
729
+ *
730
+ * ## Complexity
731
+ * - `O(S + Z + Call)`.
732
+ * - Up to one balance-reserve or unreserve operation.
733
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
734
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
735
+ * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
736
+ * - One encode & hash, both of complexity `O(S)`.
737
+ * - Up to one binary search and insert (`O(logS + S)`).
738
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
739
+ * - One event.
740
+ * - The weight of the `call`.
741
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
742
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
743
+ **/
744
+ asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
745
+ height?: any;
746
+ index?: any;
747
+ } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
748
+ refTime?: any;
749
+ proofSize?: any;
750
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId20>, Option<PalletMultisigTimepoint>, Call, SpWeightsWeightV2Weight]>;
751
+ /**
752
+ * Immediately dispatch a multi-signature call using a single approval from the caller.
753
+ *
754
+ * The dispatch origin for this call must be _Signed_.
755
+ *
756
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
757
+ * multi-signature, but do not participate in the approval process.
758
+ * - `call`: The call to be executed.
759
+ *
760
+ * Result is equivalent to the dispatched result.
761
+ *
762
+ * ## Complexity
763
+ * O(Z + C) where Z is the length of the call and C its execution weight.
764
+ **/
765
+ asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId20>, Call]>;
766
+ /**
767
+ * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
768
+ * for this operation will be unreserved on success.
769
+ *
770
+ * The dispatch origin for this call must be _Signed_.
771
+ *
772
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
773
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
774
+ * dispatch. May not be empty.
775
+ * - `timepoint`: The timepoint (block number and transaction index) of the first approval
776
+ * transaction for this dispatch.
777
+ * - `call_hash`: The hash of the call to be executed.
778
+ *
779
+ * ## Complexity
780
+ * - `O(S)`.
781
+ * - Up to one balance-reserve or unreserve operation.
782
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
783
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
784
+ * - One encode & hash, both of complexity `O(S)`.
785
+ * - One event.
786
+ * - I/O: 1 read `O(S)`, one remove.
787
+ * - Storage: removes one item.
788
+ **/
789
+ cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
790
+ height?: any;
791
+ index?: any;
792
+ } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId20>, PalletMultisigTimepoint, U8aFixed]>;
793
+ /**
794
+ * Poke the deposit reserved for an existing multisig operation.
795
+ *
796
+ * The dispatch origin for this call must be _Signed_ and must be the original depositor of
797
+ * the multisig operation.
798
+ *
799
+ * The transaction fee is waived if the deposit amount has changed.
800
+ *
801
+ * - `threshold`: The total number of approvals needed for this multisig.
802
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
803
+ * multisig.
804
+ * - `call_hash`: The hash of the call this deposit is reserved for.
805
+ *
806
+ * Emits `DepositPoked` if successful.
807
+ **/
808
+ pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId20>, U8aFixed]>;
809
+ /**
810
+ * Generic tx
811
+ **/
812
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
813
+ };
814
+ potential: {
815
+ refer: AugmentedSubmittable<(referral: AccountId20 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, u128]>;
816
+ referWithDefaultAmount: AugmentedSubmittable<(referral: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
817
+ setActiveReferralShare: AugmentedSubmittable<(share: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
818
+ /**
819
+ * Generic tx
820
+ **/
821
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
822
+ };
823
+ preimage: {
824
+ /**
825
+ * Ensure that the bulk of pre-images is upgraded.
826
+ *
827
+ * The caller pays no fee if at least 90% of pre-images were successfully updated.
828
+ **/
829
+ ensureUpdated: AugmentedSubmittable<(hashes: Vec<H256> | (H256 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<H256>]>;
830
+ /**
831
+ * Register a preimage on-chain.
832
+ *
833
+ * If the preimage was previously requested, no fees or deposits are taken for providing
834
+ * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.
835
+ **/
836
+ notePreimage: AugmentedSubmittable<(bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
837
+ /**
838
+ * Request a preimage be uploaded to the chain without paying any fees or deposits.
839
+ *
840
+ * If the preimage requests has already been provided on-chain, we unreserve any deposit
841
+ * a user may have paid, and take the control of the preimage out of their hands.
842
+ **/
843
+ requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
844
+ /**
845
+ * Clear an unrequested preimage from the runtime storage.
846
+ *
847
+ * If `len` is provided, then it will be a much cheaper operation.
848
+ *
849
+ * - `hash`: The hash of the preimage to be removed from the store.
850
+ * - `len`: The length of the preimage of `hash`.
851
+ **/
852
+ unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
853
+ /**
854
+ * Clear a previously made request for a preimage.
855
+ *
856
+ * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.
857
+ **/
858
+ unrequestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
859
+ /**
860
+ * Generic tx
861
+ **/
862
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
863
+ };
864
+ proxy: {
865
+ /**
866
+ * Register a proxy account for the sender that is able to make calls on its behalf.
867
+ *
868
+ * The dispatch origin for this call must be _Signed_.
869
+ *
870
+ * Parameters:
871
+ * - `proxy`: The account that the `caller` would like to make a proxy.
872
+ * - `proxy_type`: The permissions allowed for this proxy account.
873
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
874
+ * zero.
875
+ **/
876
+ addProxy: AugmentedSubmittable<(delegate: AccountId20 | string | Uint8Array, proxyType: TotochainRuntimeConfigsUtilityProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'IdentityJudgement' | 'CancelProxy' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, TotochainRuntimeConfigsUtilityProxyType, u32]>;
877
+ /**
878
+ * Publish the hash of a proxy-call that will be made in the future.
879
+ *
880
+ * This must be called some number of blocks before the corresponding `proxy` is attempted
881
+ * if the delay associated with the proxy relationship is greater than zero.
882
+ *
883
+ * No more than `MaxPending` announcements may be made at any one time.
884
+ *
885
+ * This will take a deposit of `AnnouncementDepositFactor` as well as
886
+ * `AnnouncementDepositBase` if there are no other pending announcements.
887
+ *
888
+ * The dispatch origin for this call must be _Signed_ and a proxy of `real`.
889
+ *
890
+ * Parameters:
891
+ * - `real`: The account that the proxy will make a call on behalf of.
892
+ * - `call_hash`: The hash of the call to be made by the `real` account.
893
+ **/
894
+ announce: AugmentedSubmittable<(real: AccountId20 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256]>;
895
+ /**
896
+ * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
897
+ * initialize it with a proxy of `proxy_type` for `origin` sender.
898
+ *
899
+ * Requires a `Signed` origin.
900
+ *
901
+ * - `proxy_type`: The type of the proxy that the sender will be registered as over the
902
+ * new account. This will almost always be the most permissive `ProxyType` possible to
903
+ * allow for maximum flexibility.
904
+ * - `index`: A disambiguation index, in case this is called multiple times in the same
905
+ * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
906
+ * want to use `0`.
907
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
908
+ * zero.
909
+ *
910
+ * Fails with `Duplicate` if this has already been called in this transaction, from the
911
+ * same sender, with the same parameters.
912
+ *
913
+ * Fails if there are insufficient funds to pay for deposit.
914
+ **/
915
+ createPure: AugmentedSubmittable<(proxyType: TotochainRuntimeConfigsUtilityProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'IdentityJudgement' | 'CancelProxy' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [TotochainRuntimeConfigsUtilityProxyType, u32, u16]>;
916
+ /**
917
+ * Removes a previously spawned pure proxy.
918
+ *
919
+ * WARNING: **All access to this account will be lost.** Any funds held in it will be
920
+ * inaccessible.
921
+ *
922
+ * Requires a `Signed` origin, and the sender account must have been created by a call to
923
+ * `create_pure` with corresponding parameters.
924
+ *
925
+ * - `spawner`: The account that originally called `create_pure` to create this account.
926
+ * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
927
+ * - `proxy_type`: The proxy type originally passed to `create_pure`.
928
+ * - `height`: The height of the chain when the call to `create_pure` was processed.
929
+ * - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
930
+ *
931
+ * Fails with `NoPermission` in case the caller is not a previously created pure
932
+ * account whose `create_pure` call has corresponding parameters.
933
+ **/
934
+ killPure: AugmentedSubmittable<(spawner: AccountId20 | string | Uint8Array, proxyType: TotochainRuntimeConfigsUtilityProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'IdentityJudgement' | 'CancelProxy' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, TotochainRuntimeConfigsUtilityProxyType, u16, Compact<u32>, Compact<u32>]>;
935
+ /**
936
+ * Poke / Adjust deposits made for proxies and announcements based on current values.
937
+ * This can be used by accounts to possibly lower their locked amount.
938
+ *
939
+ * The dispatch origin for this call must be _Signed_.
940
+ *
941
+ * The transaction fee is waived if the deposit amount has changed.
942
+ *
943
+ * Emits `DepositPoked` if successful.
944
+ **/
945
+ pokeDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
946
+ /**
947
+ * Dispatch the given `call` from an account that the sender is authorised for through
948
+ * `add_proxy`.
949
+ *
950
+ * The dispatch origin for this call must be _Signed_.
951
+ *
952
+ * Parameters:
953
+ * - `real`: The account that the proxy will make a call on behalf of.
954
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
955
+ * - `call`: The call to be made by the `real` account.
956
+ **/
957
+ proxy: AugmentedSubmittable<(real: AccountId20 | string | Uint8Array, forceProxyType: Option<TotochainRuntimeConfigsUtilityProxyType> | null | Uint8Array | TotochainRuntimeConfigsUtilityProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'IdentityJudgement' | 'CancelProxy' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, Option<TotochainRuntimeConfigsUtilityProxyType>, Call]>;
958
+ /**
959
+ * Dispatch the given `call` from an account that the sender is authorized for through
960
+ * `add_proxy`.
961
+ *
962
+ * Removes any corresponding announcement(s).
963
+ *
964
+ * The dispatch origin for this call must be _Signed_.
965
+ *
966
+ * Parameters:
967
+ * - `real`: The account that the proxy will make a call on behalf of.
968
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
969
+ * - `call`: The call to be made by the `real` account.
970
+ **/
971
+ proxyAnnounced: AugmentedSubmittable<(delegate: AccountId20 | string | Uint8Array, real: AccountId20 | string | Uint8Array, forceProxyType: Option<TotochainRuntimeConfigsUtilityProxyType> | null | Uint8Array | TotochainRuntimeConfigsUtilityProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'IdentityJudgement' | 'CancelProxy' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, AccountId20, Option<TotochainRuntimeConfigsUtilityProxyType>, Call]>;
972
+ /**
973
+ * Remove the given announcement of a delegate.
974
+ *
975
+ * May be called by a target (proxied) account to remove a call that one of their delegates
976
+ * (`delegate`) has announced they want to execute. The deposit is returned.
977
+ *
978
+ * The dispatch origin for this call must be _Signed_.
979
+ *
980
+ * Parameters:
981
+ * - `delegate`: The account that previously announced the call.
982
+ * - `call_hash`: The hash of the call to be made.
983
+ **/
984
+ rejectAnnouncement: AugmentedSubmittable<(delegate: AccountId20 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256]>;
985
+ /**
986
+ * Remove a given announcement.
987
+ *
988
+ * May be called by a proxy account to remove a call they previously announced and return
989
+ * the deposit.
990
+ *
991
+ * The dispatch origin for this call must be _Signed_.
992
+ *
993
+ * Parameters:
994
+ * - `real`: The account that the proxy will make a call on behalf of.
995
+ * - `call_hash`: The hash of the call to be made by the `real` account.
996
+ **/
997
+ removeAnnouncement: AugmentedSubmittable<(real: AccountId20 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, H256]>;
998
+ /**
999
+ * Unregister all proxy accounts for the sender.
1000
+ *
1001
+ * The dispatch origin for this call must be _Signed_.
1002
+ *
1003
+ * WARNING: This may be called on accounts created by `create_pure`, however if done, then
1004
+ * the unreserved fees will be inaccessible. **All access to this account will be lost.**
1005
+ **/
1006
+ removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1007
+ /**
1008
+ * Unregister a proxy account for the sender.
1009
+ *
1010
+ * The dispatch origin for this call must be _Signed_.
1011
+ *
1012
+ * Parameters:
1013
+ * - `proxy`: The account that the `caller` would like to remove as a proxy.
1014
+ * - `proxy_type`: The permissions currently enabled for the removed proxy account.
1015
+ **/
1016
+ removeProxy: AugmentedSubmittable<(delegate: AccountId20 | string | Uint8Array, proxyType: TotochainRuntimeConfigsUtilityProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'IdentityJudgement' | 'CancelProxy' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, TotochainRuntimeConfigsUtilityProxyType, u32]>;
1017
+ /**
1018
+ * Generic tx
1019
+ **/
1020
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1021
+ };
1022
+ puzzlePieces: {
1023
+ /**
1024
+ * Destroy a collection a partial unlock retired, once its last leftover piece is
1025
+ * gone, releasing its deposit to the reward pool. Anyone may call it; a successful
1026
+ * reap pays no fee.
1027
+ **/
1028
+ reapCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1029
+ /**
1030
+ * Transfer puzzle piece
1031
+ **/
1032
+ transfer: AugmentedSubmittable<(to: AccountId20 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, u32, u32]>;
1033
+ /**
1034
+ * Generic tx
1035
+ **/
1036
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1037
+ };
1038
+ referenda: {
1039
+ /**
1040
+ * Cancel an ongoing referendum.
1041
+ *
1042
+ * - `origin`: must be the `CancelOrigin`.
1043
+ * - `index`: The index of the referendum to be cancelled.
1044
+ *
1045
+ * Emits `Cancelled`.
1046
+ **/
1047
+ cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1048
+ /**
1049
+ * Cancel an ongoing referendum and slash the deposits.
1050
+ *
1051
+ * - `origin`: must be the `KillOrigin`.
1052
+ * - `index`: The index of the referendum to be cancelled.
1053
+ *
1054
+ * Emits `Killed` and `DepositSlashed`.
1055
+ **/
1056
+ kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1057
+ /**
1058
+ * Advance a referendum onto its next logical state. Only used internally.
1059
+ *
1060
+ * - `origin`: must be `Root`.
1061
+ * - `index`: the referendum to be advanced.
1062
+ **/
1063
+ nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1064
+ /**
1065
+ * Advance a track onto its next logical state. Only used internally.
1066
+ *
1067
+ * - `origin`: must be `Root`.
1068
+ * - `track`: the track to be advanced.
1069
+ *
1070
+ * Action item for when there is now one fewer referendum in the deciding phase and the
1071
+ * `DecidingCount` is not yet updated. This means that we should either:
1072
+ * - begin deciding another referendum (and leave `DecidingCount` alone); or
1073
+ * - decrement `DecidingCount`.
1074
+ **/
1075
+ oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
1076
+ /**
1077
+ * Post the Decision Deposit for a referendum.
1078
+ *
1079
+ * - `origin`: must be `Signed` and the account must have funds available for the
1080
+ * referendum's track's Decision Deposit.
1081
+ * - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
1082
+ * posted.
1083
+ *
1084
+ * Emits `DecisionDepositPlaced`.
1085
+ **/
1086
+ placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1087
+ /**
1088
+ * Refund the Decision Deposit for a closed referendum back to the depositor.
1089
+ *
1090
+ * - `origin`: must be `Signed` or `Root`.
1091
+ * - `index`: The index of a closed referendum whose Decision Deposit has not yet been
1092
+ * refunded.
1093
+ *
1094
+ * Emits `DecisionDepositRefunded`.
1095
+ **/
1096
+ refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1097
+ /**
1098
+ * Refund the Submission Deposit for a closed referendum back to the depositor.
1099
+ *
1100
+ * - `origin`: must be `Signed` or `Root`.
1101
+ * - `index`: The index of a closed referendum whose Submission Deposit has not yet been
1102
+ * refunded.
1103
+ *
1104
+ * Emits `SubmissionDepositRefunded`.
1105
+ **/
1106
+ refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1107
+ /**
1108
+ * Set or clear metadata of a referendum.
1109
+ *
1110
+ * Parameters:
1111
+ * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
1112
+ * metadata of a finished referendum.
1113
+ * - `index`: The index of a referendum to set or clear metadata for.
1114
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
1115
+ **/
1116
+ setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
1117
+ /**
1118
+ * Propose a referendum on a privileged action.
1119
+ *
1120
+ * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
1121
+ * available.
1122
+ * - `proposal_origin`: The origin from which the proposal should be executed.
1123
+ * - `proposal`: The proposal.
1124
+ * - `enactment_moment`: The moment that the proposal should be enacted.
1125
+ *
1126
+ * Emits `Submitted`.
1127
+ **/
1128
+ submit: AugmentedSubmittable<(proposalOrigin: TotochainRuntimeOriginCaller | {
1129
+ system: any;
1130
+ } | {
1131
+ Origins: any;
1132
+ } | {
1133
+ TechnicalCommittee: any;
1134
+ } | {
1135
+ Ethereum: any;
1136
+ } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | {
1137
+ Legacy: any;
1138
+ } | {
1139
+ Inline: any;
1140
+ } | {
1141
+ Lookup: any;
1142
+ } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
1143
+ At: any;
1144
+ } | {
1145
+ After: any;
1146
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [TotochainRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
1147
+ /**
1148
+ * Generic tx
1149
+ **/
1150
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1151
+ };
1152
+ referral: {
1153
+ /**
1154
+ * Activate the caller's pending referral, commit its puzzle piece rewards to a later
1155
+ * draw, and attach the caller to the active tree.
1156
+ *
1157
+ * Uses **two independent chains**:
1158
+ * - **Active chain** (`collect_active_chain_bounded`): feeds `add_child_with_chain` and
1159
+ * `DescendantCount`. Rejects with [`Error::MaxReferralDepthExceeded`] when the active
1160
+ * ancestor count exceeds `MAX_REFERRAL_DEPTH`.
1161
+ * - **Lineage chain** (`collect_lineage_chain_truncated`): feeds puzzle piece reward distribution.
1162
+ * Walks `LineageParent` edges, filtering to reward-eligible ancestors. Truncates
1163
+ * silently at `MAX_LINEAGE_REWARD_DEPTH` instead of erroring, because lineage chains can
1164
+ * legitimately exceed 100 (splits shorten active chains but never lineage chains) — an
1165
+ * erroring variant would permanently brick activation for entire deep branches.
1166
+ *
1167
+ * Rewards follow a **two-tier payout** (decision 4): the sender (tier 1) and its
1168
+ * lineage ancestors (tier 2). They are not minted here: they are committed to a draw
1169
+ * that `pallet_puzzle_pieces` resolves, all-or-nothing, a few blocks later from block
1170
+ * entropy produced after this one (BC-538), so the sender cannot learn the outcome
1171
+ * before signing. A refused commit, such as a full draw queue, aborts the activation.
1172
+ *
1173
+ * Fails with [`Error::BlockProducerCannotActivateReferral`] if the caller is
1174
+ * already a block producer — block producers must be active-tree roots.
1175
+ *
1176
+ * Weight scales linearly with both active depth (`a`) and lineage
1177
+ * depth (`l`) via `WeightInfo::activate_referral_depth`, plus the weight resolving
1178
+ * the draw will take (`PuzzlePieceRewardDistributor::reward_draw_weight`), so the
1179
+ * sender pays for its mints. Pre-dispatch reserves worst case on all of them;
1180
+ * post-dispatch refunds to actual.
1181
+ **/
1182
+ activateReferral: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1183
+ /**
1184
+ * Generic tx
1185
+ **/
1186
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1187
+ };
1188
+ reputationVoting: {
1189
+ /**
1190
+ * Remove a vote from a poll.
1191
+ *
1192
+ * This removes the vote and updates the tally accordingly.
1193
+ * Can only remove votes from ongoing polls.
1194
+ *
1195
+ * Parameters:
1196
+ * - `poll_index`: The index of the poll to remove vote from
1197
+ **/
1198
+ removeVote: AugmentedSubmittable<(pollIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1199
+ /**
1200
+ * Atomically update an existing vote's direction on an ongoing poll.
1201
+ *
1202
+ * Swaps the vote from the current direction to `new_direction`, reusing the
1203
+ * original reputation snapshot (no re-check of current reputation). The tally
1204
+ * is updated atomically: the old direction's contribution is removed and the
1205
+ * new direction's contribution is added in a single `try_access_poll` call.
1206
+ *
1207
+ * Parameters:
1208
+ * - `poll_index`: The index of the poll to update the vote on
1209
+ * - `new_direction`: The new vote direction (must differ from current)
1210
+ **/
1211
+ updateVote: AugmentedSubmittable<(pollIndex: u32 | AnyNumber | Uint8Array, newDirection: PalletReputationVotingVoteDirection | 'Aye' | 'Nay' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletReputationVotingVoteDirection]>;
1212
+ /**
1213
+ * Cast a vote on a poll.
1214
+ *
1215
+ * The voting power is the account's current reputation at the time of voting.
1216
+ * Users can vote on multiple polls with the same reputation.
1217
+ *
1218
+ * Voting reputation is automatically processed when the poll completes
1219
+ * (transitions from Ongoing to Completed) via the `on_idle` hook.
1220
+ *
1221
+ * Parameters:
1222
+ * - `poll_index`: The index of the poll to vote on
1223
+ * - `direction`: Vote direction (Aye or Nay)
1224
+ **/
1225
+ vote: AugmentedSubmittable<(pollIndex: u32 | AnyNumber | Uint8Array, direction: PalletReputationVotingVoteDirection | 'Aye' | 'Nay' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletReputationVotingVoteDirection]>;
1226
+ /**
1227
+ * Generic tx
1228
+ **/
1229
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1230
+ };
1231
+ rewardPool: {
1232
+ /**
1233
+ * Update the recycle share that controls how future burnable inflows are
1234
+ * split between the cycle-burn bucket and the unlock fund.
1235
+ *
1236
+ * Affects only the split of **future** inflows; existing fund balances are
1237
+ * not rebalanced.
1238
+ **/
1239
+ setRecycleShare: AugmentedSubmittable<(share: Permill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Permill]>;
1240
+ /**
1241
+ * Unlock core asset for submitting all puzzle pieces.
1242
+ *
1243
+ * `WeightInfo::unlock` scales linearly with the number of items in the
1244
+ * collection at dispatch time: burning each puzzle piece and clearing
1245
+ * each valid-item entry is per-item work, and so is the wildcard lookup that
1246
+ * fills the caller's gaps (see [`MAX_UNLOCK_ITEMS`]). The dispatch pre-charges the
1247
+ * worst case `unlock(MAX_UNLOCK_ITEMS)` so the validator can admit the
1248
+ * extrinsic, then refunds the difference via `PostDispatchInfo`. Calls
1249
+ * against collections exceeding [`MAX_UNLOCK_ITEMS`] are rejected with
1250
+ * [`Error::CollectionTooLargeToUnlock`] and refunded down to the
1251
+ * constant-time read that produced the rejection.
1252
+ **/
1253
+ unlock: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1254
+ /**
1255
+ * Generic tx
1256
+ **/
1257
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1258
+ };
1259
+ safeMode: {
1260
+ /**
1261
+ * Enter safe-mode permissionlessly for [`Config::EnterDuration`] blocks.
1262
+ *
1263
+ * Reserves [`Config::EnterDepositAmount`] from the caller's account.
1264
+ * Emits an [`Event::Entered`] event on success.
1265
+ * Errors with [`Error::Entered`] if the safe-mode is already entered.
1266
+ * Errors with [`Error::NotConfigured`] if the deposit amount is `None`.
1267
+ **/
1268
+ enter: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1269
+ /**
1270
+ * Extend the safe-mode permissionlessly for [`Config::ExtendDuration`] blocks.
1271
+ *
1272
+ * This accumulates on top of the current remaining duration.
1273
+ * Reserves [`Config::ExtendDepositAmount`] from the caller's account.
1274
+ * Emits an [`Event::Extended`] event on success.
1275
+ * Errors with [`Error::Exited`] if the safe-mode is entered.
1276
+ * Errors with [`Error::NotConfigured`] if the deposit amount is `None`.
1277
+ *
1278
+ * This may be called by any signed origin with [`Config::ExtendDepositAmount`] free
1279
+ * currency to reserve. This call can be disabled for all origins by configuring
1280
+ * [`Config::ExtendDepositAmount`] to `None`.
1281
+ **/
1282
+ extend: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1283
+ /**
1284
+ * Enter safe-mode by force for a per-origin configured number of blocks.
1285
+ *
1286
+ * Emits an [`Event::Entered`] event on success.
1287
+ * Errors with [`Error::Entered`] if the safe-mode is already entered.
1288
+ *
1289
+ * Can only be called by the [`Config::ForceEnterOrigin`] origin.
1290
+ **/
1291
+ forceEnter: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1292
+ /**
1293
+ * Exit safe-mode by force.
1294
+ *
1295
+ * Emits an [`Event::Exited`] with [`ExitReason::Force`] event on success.
1296
+ * Errors with [`Error::Exited`] if the safe-mode is inactive.
1297
+ *
1298
+ * Note: `safe-mode` will be automatically deactivated by [`Pallet::on_initialize`] hook
1299
+ * after the block height is greater than the [`EnteredUntil`] storage item.
1300
+ * Emits an [`Event::Exited`] with [`ExitReason::Timeout`] event when deactivated in the
1301
+ * hook.
1302
+ **/
1303
+ forceExit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1304
+ /**
1305
+ * Extend the safe-mode by force for a per-origin configured number of blocks.
1306
+ *
1307
+ * Emits an [`Event::Extended`] event on success.
1308
+ * Errors with [`Error::Exited`] if the safe-mode is inactive.
1309
+ *
1310
+ * Can only be called by the [`Config::ForceExtendOrigin`] origin.
1311
+ **/
1312
+ forceExtend: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1313
+ /**
1314
+ * Force to release a deposit for an account that entered safe-mode at a given
1315
+ * historical block.
1316
+ *
1317
+ * This can be called while safe-mode is still entered.
1318
+ *
1319
+ * Emits a [`Event::DepositReleased`] event on success.
1320
+ * Errors with [`Error::Entered`] if safe-mode is entered.
1321
+ * Errors with [`Error::NoDeposit`] if the payee has no reserved currency at the
1322
+ * specified block.
1323
+ *
1324
+ * Can only be called by the [`Config::ForceDepositOrigin`] origin.
1325
+ **/
1326
+ forceReleaseDeposit: AugmentedSubmittable<(account: AccountId20 | string | Uint8Array, block: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, u32]>;
1327
+ /**
1328
+ * Slash a deposit for an account that entered or extended safe-mode at a given
1329
+ * historical block.
1330
+ *
1331
+ * This can only be called while safe-mode is entered.
1332
+ *
1333
+ * Emits a [`Event::DepositSlashed`] event on success.
1334
+ * Errors with [`Error::Entered`] if safe-mode is entered.
1335
+ *
1336
+ * Can only be called by the [`Config::ForceDepositOrigin`] origin.
1337
+ **/
1338
+ forceSlashDeposit: AugmentedSubmittable<(account: AccountId20 | string | Uint8Array, block: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, u32]>;
1339
+ /**
1340
+ * Permissionlessly release a deposit for an account that entered safe-mode at a
1341
+ * given historical block.
1342
+ *
1343
+ * The call can be completely disabled by setting [`Config::ReleaseDelay`] to `None`.
1344
+ * This cannot be called while safe-mode is entered and not until
1345
+ * [`Config::ReleaseDelay`] blocks have passed since safe-mode was entered.
1346
+ *
1347
+ * Emits a [`Event::DepositReleased`] event on success.
1348
+ * Errors with [`Error::Entered`] if the safe-mode is entered.
1349
+ * Errors with [`Error::CannotReleaseYet`] if [`Config::ReleaseDelay`] block have not
1350
+ * passed since safe-mode was entered. Errors with [`Error::NoDeposit`] if the payee has no
1351
+ * reserved currency at the block specified.
1352
+ **/
1353
+ releaseDeposit: AugmentedSubmittable<(account: AccountId20 | string | Uint8Array, block: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20, u32]>;
1354
+ /**
1355
+ * Generic tx
1356
+ **/
1357
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1358
+ };
1359
+ scheduler: {
1360
+ /**
1361
+ * Cancel a scheduled task (named or anonymous), by providing the block it is scheduled for
1362
+ * execution in, as well as the index of the task in that block's agenda.
1363
+ *
1364
+ * In the case of a named task, it will remove it from the lookup table as well.
1365
+ **/
1366
+ cancel: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
1367
+ /**
1368
+ * Cancel a named scheduled task.
1369
+ **/
1370
+ cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
1371
+ /**
1372
+ * Removes the retry configuration of a task.
1373
+ **/
1374
+ cancelRetry: AugmentedSubmittable<(task: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => SubmittableExtrinsic<ApiType>, [ITuple<[u32, u32]>]>;
1375
+ /**
1376
+ * Cancel the retry configuration of a named task.
1377
+ **/
1378
+ cancelRetryNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
1379
+ /**
1380
+ * Anonymously schedule a task.
1381
+ **/
1382
+ schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
1383
+ /**
1384
+ * Anonymously schedule a task after a delay.
1385
+ **/
1386
+ scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
1387
+ /**
1388
+ * Schedule a named task.
1389
+ **/
1390
+ scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
1391
+ /**
1392
+ * Schedule a named task after a delay.
1393
+ **/
1394
+ scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
1395
+ /**
1396
+ * Set a retry configuration for a task so that, in case its scheduled run fails, it will
1397
+ * be retried after `period` blocks, for a total amount of `retries` retries or until it
1398
+ * succeeds.
1399
+ *
1400
+ * Tasks which need to be scheduled for a retry are still subject to weight metering and
1401
+ * agenda space, same as a regular task. If a periodic task fails, it will be scheduled
1402
+ * normally while the task is retrying.
1403
+ *
1404
+ * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
1405
+ * clones of the original task. Their retry configuration will be derived from the
1406
+ * original task's configuration, but will have a lower value for `remaining` than the
1407
+ * original `total_retries`.
1408
+ *
1409
+ * This call **cannot** be used to set a retry configuration for a named task.
1410
+ **/
1411
+ setRetry: AugmentedSubmittable<(task: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ITuple<[u32, u32]>, u8, u32]>;
1412
+ /**
1413
+ * Set a retry configuration for a named task so that, in case its scheduled run fails, it
1414
+ * will be retried after `period` blocks, for a total amount of `retries` retries or until
1415
+ * it succeeds.
1416
+ *
1417
+ * Tasks which need to be scheduled for a retry are still subject to weight metering and
1418
+ * agenda space, same as a regular task. If a periodic task fails, it will be scheduled
1419
+ * normally while the task is retrying.
1420
+ *
1421
+ * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
1422
+ * clones of the original task. Their retry configuration will be derived from the
1423
+ * original task's configuration, but will have a lower value for `remaining` than the
1424
+ * original `total_retries`.
1425
+ *
1426
+ * This is the only way to set a retry configuration for a named task.
1427
+ **/
1428
+ setRetryNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u8, u32]>;
1429
+ /**
1430
+ * Generic tx
1431
+ **/
1432
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1433
+ };
1434
+ session: {
1435
+ /**
1436
+ * Removes any session key(s) of the function caller.
1437
+ *
1438
+ * This doesn't take effect until the next session.
1439
+ *
1440
+ * The dispatch origin of this function must be Signed and the account must be either be
1441
+ * convertible to a validator ID using the chain's typical addressing system (this usually
1442
+ * means being a controller account) or directly convertible into a validator ID (which
1443
+ * usually means being a stash account).
1444
+ **/
1445
+ purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1446
+ /**
1447
+ * Sets the session key(s) of the function caller to `keys`.
1448
+ *
1449
+ * Allows an account to set its session key prior to becoming a validator.
1450
+ * This doesn't take effect until the next session.
1451
+ *
1452
+ * - `origin`: The dispatch origin of this function must be signed.
1453
+ * - `keys`: The new session keys to set. These are the public keys of all sessions keys
1454
+ * setup in the runtime.
1455
+ * - `proof`: The proof that `origin` has access to the private keys of `keys`. See
1456
+ * [`impl_opaque_keys`](sp_runtime::impl_opaque_keys) for more information about the
1457
+ * proof format.
1458
+ **/
1459
+ setKeys: AugmentedSubmittable<(keys: TotochainRuntimeSessionKeys | {
1460
+ babe?: any;
1461
+ grandpa?: any;
1462
+ imOnline?: any;
1463
+ authorityDiscovery?: any;
1464
+ } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [TotochainRuntimeSessionKeys, Bytes]>;
1465
+ /**
1466
+ * Generic tx
1467
+ **/
1468
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1469
+ };
1470
+ system: {
1471
+ /**
1472
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
1473
+ *
1474
+ * If the authorization required a version check, this call will ensure the spec name
1475
+ * remains unchanged and that the spec version has increased.
1476
+ *
1477
+ * Depending on the runtime's `OnSetCode` configuration, this function may directly apply
1478
+ * the new `code` in the same block or attempt to schedule the upgrade.
1479
+ *
1480
+ * All origins are allowed.
1481
+ **/
1482
+ applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1483
+ /**
1484
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1485
+ * later.
1486
+ *
1487
+ * This call requires Root origin.
1488
+ **/
1489
+ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1490
+ /**
1491
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1492
+ * later.
1493
+ *
1494
+ * WARNING: This authorizes an upgrade that will take place without any safety checks, for
1495
+ * example that the spec name remains the same and that the version number increases. Not
1496
+ * recommended for normal use. Use `authorize_upgrade` instead.
1497
+ *
1498
+ * This call requires Root origin.
1499
+ **/
1500
+ authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1501
+ /**
1502
+ * Kill all storage items with a key that starts with the given prefix.
1503
+ *
1504
+ * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
1505
+ * the prefix we are removing to accurately calculate the weight of this function.
1506
+ **/
1507
+ killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
1508
+ /**
1509
+ * Kill some items from storage.
1510
+ **/
1511
+ killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
1512
+ /**
1513
+ * Make some on-chain remark.
1514
+ *
1515
+ * Can be executed by every `origin`.
1516
+ **/
1517
+ remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1518
+ /**
1519
+ * Make some on-chain remark and emit event.
1520
+ **/
1521
+ remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1522
+ /**
1523
+ * Set the new runtime code.
1524
+ **/
1525
+ setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1526
+ /**
1527
+ * Set the new runtime code without doing any checks of the given `code`.
1528
+ *
1529
+ * Note that runtime upgrades will not run if this is called with a not-increasing spec
1530
+ * version!
1531
+ **/
1532
+ setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
1533
+ /**
1534
+ * Set the number of pages in the WebAssembly environment's heap.
1535
+ **/
1536
+ setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
1537
+ /**
1538
+ * Set some items of storage.
1539
+ **/
1540
+ setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;
1541
+ /**
1542
+ * Generic tx
1543
+ **/
1544
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1545
+ };
1546
+ techCommitteeManager: {
1547
+ /**
1548
+ * Remove `who` from the candidates and, if it holds a seat, from the committee now
1549
+ * rather than at the next session, since the committee acts within a session. `who`
1550
+ * is banned from registering again until `unban_candidate`.
1551
+ *
1552
+ * The eviction may leave the committee below `MinMembers`, as blacklist eviction
1553
+ * does; it recovers once enough eligible candidates are registered.
1554
+ **/
1555
+ forceUnregisterCandidate: AugmentedSubmittable<(who: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
1556
+ registerTechCommitteeCandidate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1557
+ /**
1558
+ * Lift the ban `force_unregister_candidate` placed on `who`. It is not re-registered;
1559
+ * it may register itself again if it clears the floor.
1560
+ **/
1561
+ unbanCandidate: AugmentedSubmittable<(who: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId20]>;
1562
+ unregisterTechCommitteeCandidate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1563
+ /**
1564
+ * Generic tx
1565
+ **/
1566
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1567
+ };
1568
+ technicalCommittee: {
1569
+ /**
1570
+ * Close a vote that is either approved, disapproved or whose voting period has ended.
1571
+ *
1572
+ * May be called by any signed account in order to finish voting and close the proposal.
1573
+ *
1574
+ * If called before the end of the voting period it will only close the vote if it is
1575
+ * has enough votes to be approved or disapproved.
1576
+ *
1577
+ * If called after the end of the voting period abstentions are counted as rejections
1578
+ * unless there is a prime member set and the prime member cast an approval.
1579
+ *
1580
+ * If the close operation completes successfully with disapproval, the transaction fee will
1581
+ * be waived. Otherwise execution of the approved operation will be charged to the caller.
1582
+ *
1583
+ * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
1584
+ * proposal.
1585
+ * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1586
+ * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1587
+ *
1588
+ * ## Complexity
1589
+ * - `O(B + M + P1 + P2)` where:
1590
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
1591
+ * - `M` is members-count (code- and governance-bounded)
1592
+ * - `P1` is the complexity of `proposal` preimage.
1593
+ * - `P2` is proposal-count (code-bounded)
1594
+ **/
1595
+ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
1596
+ refTime?: any;
1597
+ proofSize?: any;
1598
+ } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
1599
+ /**
1600
+ * Disapprove a proposal, close, and remove it from the system, regardless of its current
1601
+ * state.
1602
+ *
1603
+ * Must be called by the Root origin.
1604
+ *
1605
+ * Parameters:
1606
+ * * `proposal_hash`: The hash of the proposal that should be disapproved.
1607
+ *
1608
+ * ## Complexity
1609
+ * O(P) where P is the number of max proposals
1610
+ **/
1611
+ disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1612
+ /**
1613
+ * Dispatch a proposal from a member using the `Member` origin.
1614
+ *
1615
+ * Origin must be a member of the collective.
1616
+ *
1617
+ * ## Complexity:
1618
+ * - `O(B + M + P)` where:
1619
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
1620
+ * - `M` members-count (code-bounded)
1621
+ * - `P` complexity of dispatching `proposal`
1622
+ **/
1623
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1624
+ /**
1625
+ * Disapprove the proposal and burn the cost held for storing this proposal.
1626
+ *
1627
+ * Parameters:
1628
+ * - `origin`: must be the `KillOrigin`.
1629
+ * - `proposal_hash`: The hash of the proposal that should be killed.
1630
+ *
1631
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
1632
+ **/
1633
+ kill: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1634
+ /**
1635
+ * Add a new proposal to either be voted on or executed directly.
1636
+ *
1637
+ * Requires the sender to be member.
1638
+ *
1639
+ * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
1640
+ * or put up for voting.
1641
+ *
1642
+ * ## Complexity
1643
+ * - `O(B + M + P1)` or `O(B + M + P2)` where:
1644
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
1645
+ * - `M` is members-count (code- and governance-bounded)
1646
+ * - branching is influenced by `threshold` where:
1647
+ * - `P1` is proposal execution complexity (`threshold < 2`)
1648
+ * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
1649
+ **/
1650
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1651
+ /**
1652
+ * Release the cost held for storing a proposal once the given proposal is completed.
1653
+ *
1654
+ * If there is no associated cost for the given proposal, this call will have no effect.
1655
+ *
1656
+ * Parameters:
1657
+ * - `origin`: must be `Signed` or `Root`.
1658
+ * - `proposal_hash`: The hash of the proposal.
1659
+ *
1660
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
1661
+ **/
1662
+ releaseProposalCost: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1663
+ /**
1664
+ * Set the collective's membership.
1665
+ *
1666
+ * - `new_members`: The new member list. Be nice to the chain and provide it sorted.
1667
+ * - `prime`: The prime member whose vote sets the default.
1668
+ * - `old_count`: The upper bound for the previous number of members in storage. Used for
1669
+ * weight estimation.
1670
+ *
1671
+ * The dispatch of this call must be `SetMembersOrigin`.
1672
+ *
1673
+ * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
1674
+ * the weight estimations rely on it to estimate dispatchable weight.
1675
+ *
1676
+ * # WARNING:
1677
+ *
1678
+ * The `pallet-collective` can also be managed by logic outside of the pallet through the
1679
+ * implementation of the trait [`ChangeMembers`].
1680
+ * Any call to `set_members` must be careful that the member set doesn't get out of sync
1681
+ * with other logic managing the member set.
1682
+ *
1683
+ * ## Complexity:
1684
+ * - `O(MP + N)` where:
1685
+ * - `M` old-members-count (code- and governance-bounded)
1686
+ * - `N` new-members-count (code- and governance-bounded)
1687
+ * - `P` proposals-count (code-bounded)
1688
+ **/
1689
+ setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId20> | (AccountId20 | string | Uint8Array)[], prime: Option<AccountId20> | null | Uint8Array | AccountId20 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId20>, Option<AccountId20>, u32]>;
1690
+ /**
1691
+ * Add an aye or nay vote for the sender to the given proposal.
1692
+ *
1693
+ * Requires the sender to be a member.
1694
+ *
1695
+ * Transaction fees will be waived if the member is voting on any particular proposal
1696
+ * for the first time and the call is successful. Subsequent vote changes will charge a
1697
+ * fee.
1698
+ * ## Complexity
1699
+ * - `O(M)` where `M` is members-count (code- and governance-bounded)
1700
+ **/
1701
+ vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
1702
+ /**
1703
+ * Generic tx
1704
+ **/
1705
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1706
+ };
1707
+ timestamp: {
1708
+ /**
1709
+ * Set the current time.
1710
+ *
1711
+ * This call should be invoked exactly once per block. It will panic at the finalization
1712
+ * phase, if this call hasn't been invoked by that time.
1713
+ *
1714
+ * The timestamp should be greater than the previous one by the amount specified by
1715
+ * [`Config::MinimumPeriod`].
1716
+ *
1717
+ * The dispatch origin for this call must be _None_.
1718
+ *
1719
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
1720
+ * that changing the complexity of this call could result exhausting the resources in a
1721
+ * block to execute any other calls.
1722
+ *
1723
+ * ## Complexity
1724
+ * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
1725
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
1726
+ * `on_finalize`)
1727
+ * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
1728
+ **/
1729
+ set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
1730
+ /**
1731
+ * Generic tx
1732
+ **/
1733
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1734
+ };
1735
+ txPause: {
1736
+ /**
1737
+ * Pause a call.
1738
+ *
1739
+ * Can only be called by [`Config::PauseOrigin`].
1740
+ * Emits an [`Event::CallPaused`] event on success.
1741
+ **/
1742
+ pause: AugmentedSubmittable<(fullName: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [ITuple<[Bytes, Bytes]>]>;
1743
+ /**
1744
+ * Un-pause a call.
1745
+ *
1746
+ * Can only be called by [`Config::UnpauseOrigin`].
1747
+ * Emits an [`Event::CallUnpaused`] event on success.
1748
+ **/
1749
+ unpause: AugmentedSubmittable<(ident: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [ITuple<[Bytes, Bytes]>]>;
1750
+ /**
1751
+ * Generic tx
1752
+ **/
1753
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1754
+ };
1755
+ uniques: {
1756
+ /**
1757
+ * Approve an item to be transferred by a delegated third-party account.
1758
+ *
1759
+ * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be
1760
+ * either the owner of the `item` or the admin of the collection.
1761
+ *
1762
+ * - `collection`: The collection of the item to be approved for delegated transfer.
1763
+ * - `item`: The item of the item to be approved for delegated transfer.
1764
+ * - `delegate`: The account to delegate permission to transfer the item.
1765
+ *
1766
+ * Important NOTE: The `approved` account gets reset after each transfer.
1767
+ *
1768
+ * Emits `ApprovedTransfer` on success.
1769
+ *
1770
+ * Weight: `O(1)`
1771
+ **/
1772
+ approveTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, AccountId20]>;
1773
+ /**
1774
+ * Destroy a single item.
1775
+ *
1776
+ * Origin must be Signed and the signing account must be either:
1777
+ * - the Admin of the `collection`;
1778
+ * - the Owner of the `item`;
1779
+ *
1780
+ * - `collection`: The collection of the item to be burned.
1781
+ * - `item`: The item of the item to be burned.
1782
+ * - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the
1783
+ * item is owned by this value.
1784
+ *
1785
+ * Emits `Burned` with the actual amount burned.
1786
+ *
1787
+ * Weight: `O(1)`
1788
+ * Modes: `check_owner.is_some()`.
1789
+ **/
1790
+ burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<AccountId20> | null | Uint8Array | AccountId20 | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<AccountId20>]>;
1791
+ /**
1792
+ * Allows to buy an item if it's up for sale.
1793
+ *
1794
+ * Origin must be Signed and must not be the owner of the `item`.
1795
+ *
1796
+ * - `collection`: The collection of the item.
1797
+ * - `item`: The item the sender wants to buy.
1798
+ * - `bid_price`: The price the sender is willing to pay.
1799
+ *
1800
+ * Emits `ItemBought` on success.
1801
+ **/
1802
+ buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
1803
+ /**
1804
+ * Cancel the prior approval for the transfer of an item by a delegate.
1805
+ *
1806
+ * Origin must be either:
1807
+ * - the `Force` origin;
1808
+ * - `Signed` with the signer being the Admin of the `collection`;
1809
+ * - `Signed` with the signer being the Owner of the `item`;
1810
+ *
1811
+ * Arguments:
1812
+ * - `collection`: The collection of the item of whose approval will be cancelled.
1813
+ * - `item`: The item of the item of whose approval will be cancelled.
1814
+ * - `maybe_check_delegate`: If `Some` will ensure that the given account is the one to
1815
+ * which permission of transfer is delegated.
1816
+ *
1817
+ * Emits `ApprovalCancelled` on success.
1818
+ *
1819
+ * Weight: `O(1)`
1820
+ **/
1821
+ cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<AccountId20> | null | Uint8Array | AccountId20 | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<AccountId20>]>;
1822
+ /**
1823
+ * Clear an attribute for a collection or item.
1824
+ *
1825
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
1826
+ * `collection`.
1827
+ *
1828
+ * Any deposit is freed for the collection's owner.
1829
+ *
1830
+ * - `collection`: The identifier of the collection whose item's metadata to clear.
1831
+ * - `maybe_item`: The identifier of the item whose metadata to clear.
1832
+ * - `key`: The key of the attribute.
1833
+ *
1834
+ * Emits `AttributeCleared`.
1835
+ *
1836
+ * Weight: `O(1)`
1837
+ **/
1838
+ clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes]>;
1839
+ /**
1840
+ * Clear the metadata for a collection.
1841
+ *
1842
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
1843
+ * the `collection`.
1844
+ *
1845
+ * Any deposit is freed for the collection's owner.
1846
+ *
1847
+ * - `collection`: The identifier of the collection whose metadata to clear.
1848
+ *
1849
+ * Emits `CollectionMetadataCleared`.
1850
+ *
1851
+ * Weight: `O(1)`
1852
+ **/
1853
+ clearCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1854
+ /**
1855
+ * Clear the metadata for an item.
1856
+ *
1857
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
1858
+ * `item`.
1859
+ *
1860
+ * Any deposit is freed for the collection's owner.
1861
+ *
1862
+ * - `collection`: The identifier of the collection whose item's metadata to clear.
1863
+ * - `item`: The identifier of the item whose metadata to clear.
1864
+ *
1865
+ * Emits `MetadataCleared`.
1866
+ *
1867
+ * Weight: `O(1)`
1868
+ **/
1869
+ clearMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
1870
+ /**
1871
+ * Issue a new collection of non-fungible items from a public origin.
1872
+ *
1873
+ * This new collection has no items initially and its owner is the origin.
1874
+ *
1875
+ * The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
1876
+ *
1877
+ * `ItemDeposit` funds of sender are reserved.
1878
+ *
1879
+ * Parameters:
1880
+ * - `collection`: The identifier of the new collection. This must not be currently in use.
1881
+ * - `admin`: The admin of this collection. The admin is the initial address of each
1882
+ * member of the collection's admin team.
1883
+ *
1884
+ * Emits `Created` event when successful.
1885
+ *
1886
+ * Weight: `O(1)`
1887
+ **/
1888
+ create: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, admin: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId20]>;
1889
+ /**
1890
+ * Destroy a collection of fungible items.
1891
+ *
1892
+ * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
1893
+ * owner of the `collection`.
1894
+ *
1895
+ * - `collection`: The identifier of the collection to be destroyed.
1896
+ * - `witness`: Information on the items minted in the collection. This must be
1897
+ * correct.
1898
+ *
1899
+ * Emits `Destroyed` event when successful.
1900
+ *
1901
+ * Weight: `O(n + m)` where:
1902
+ * - `n = witness.items`
1903
+ * - `m = witness.item_metadatas`
1904
+ * - `a = witness.attributes`
1905
+ **/
1906
+ destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletUniquesDestroyWitness | {
1907
+ items?: any;
1908
+ itemMetadatas?: any;
1909
+ attributes?: any;
1910
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletUniquesDestroyWitness]>;
1911
+ /**
1912
+ * Issue a new collection of non-fungible items from a privileged origin.
1913
+ *
1914
+ * This new collection has no items initially.
1915
+ *
1916
+ * The origin must conform to `ForceOrigin`.
1917
+ *
1918
+ * Unlike `create`, no funds are reserved.
1919
+ *
1920
+ * - `collection`: The identifier of the new item. This must not be currently in use.
1921
+ * - `owner`: The owner of this collection of items. The owner has full superuser
1922
+ * permissions
1923
+ * over this item, but may later change and configure the permissions using
1924
+ * `transfer_ownership` and `set_team`.
1925
+ *
1926
+ * Emits `ForceCreated` event when successful.
1927
+ *
1928
+ * Weight: `O(1)`
1929
+ **/
1930
+ forceCreate: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId20, bool]>;
1931
+ /**
1932
+ * Alter the attributes of a given item.
1933
+ *
1934
+ * Origin must be `ForceOrigin`.
1935
+ *
1936
+ * - `collection`: The identifier of the item.
1937
+ * - `owner`: The new Owner of this item.
1938
+ * - `issuer`: The new Issuer of this item.
1939
+ * - `admin`: The new Admin of this item.
1940
+ * - `freezer`: The new Freezer of this item.
1941
+ * - `free_holding`: Whether a deposit is taken for holding an item of this collection.
1942
+ * - `is_frozen`: Whether this collection is frozen except for permissioned/admin
1943
+ * instructions.
1944
+ *
1945
+ * Emits `ItemStatusChanged` with the identity of the item.
1946
+ *
1947
+ * Weight: `O(1)`
1948
+ **/
1949
+ forceItemStatus: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array, issuer: AccountId20 | string | Uint8Array, admin: AccountId20 | string | Uint8Array, freezer: AccountId20 | string | Uint8Array, freeHolding: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId20, AccountId20, AccountId20, AccountId20, bool, bool]>;
1950
+ /**
1951
+ * Disallow further unprivileged transfer of an item.
1952
+ *
1953
+ * Origin must be Signed and the sender should be the Freezer of the `collection`.
1954
+ *
1955
+ * - `collection`: The collection of the item to be frozen.
1956
+ * - `item`: The item of the item to be frozen.
1957
+ *
1958
+ * Emits `Frozen`.
1959
+ *
1960
+ * Weight: `O(1)`
1961
+ **/
1962
+ freeze: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
1963
+ /**
1964
+ * Disallow further unprivileged transfers for a whole collection.
1965
+ *
1966
+ * Origin must be Signed and the sender should be the Freezer of the `collection`.
1967
+ *
1968
+ * - `collection`: The collection to be frozen.
1969
+ *
1970
+ * Emits `CollectionFrozen`.
1971
+ *
1972
+ * Weight: `O(1)`
1973
+ **/
1974
+ freezeCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1975
+ /**
1976
+ * Mint an item of a particular collection.
1977
+ *
1978
+ * The origin must be Signed and the sender must be the Issuer of the `collection`.
1979
+ *
1980
+ * - `collection`: The collection of the item to be minted.
1981
+ * - `item`: The item value of the item to be minted.
1982
+ * - `beneficiary`: The initial owner of the minted item.
1983
+ *
1984
+ * Emits `Issued` event when successful.
1985
+ *
1986
+ * Weight: `O(1)`
1987
+ **/
1988
+ mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, owner: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, AccountId20]>;
1989
+ /**
1990
+ * Reevaluate the deposits on some items.
1991
+ *
1992
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
1993
+ *
1994
+ * - `collection`: The collection to be frozen.
1995
+ * - `items`: The items of the collection whose deposits will be reevaluated.
1996
+ *
1997
+ * NOTE: This exists as a best-effort function. Any items which are unknown or
1998
+ * in the case that the owner account does not have reservable funds to pay for a
1999
+ * deposit increase are ignored. Generally the owner isn't going to call this on items
2000
+ * whose existing deposit is less than the refreshed deposit as it would only cost them,
2001
+ * so it's of little consequence.
2002
+ *
2003
+ * It will still return an error in the case that the collection is unknown of the signer
2004
+ * is not permitted to call it.
2005
+ *
2006
+ * Weight: `O(items.len())`
2007
+ **/
2008
+ redeposit: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, items: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
2009
+ /**
2010
+ * Set (or reset) the acceptance of ownership for a particular account.
2011
+ *
2012
+ * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a
2013
+ * provider reference.
2014
+ *
2015
+ * - `maybe_collection`: The identifier of the collection whose ownership the signer is
2016
+ * willing to accept, or if `None`, an indication that the signer is willing to accept no
2017
+ * ownership transferal.
2018
+ *
2019
+ * Emits `OwnershipAcceptanceChanged`.
2020
+ **/
2021
+ setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
2022
+ /**
2023
+ * Set an attribute for a collection or item.
2024
+ *
2025
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
2026
+ * `collection`.
2027
+ *
2028
+ * If the origin is Signed, then funds of signer are reserved according to the formula:
2029
+ * `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into
2030
+ * account any already reserved funds.
2031
+ *
2032
+ * - `collection`: The identifier of the collection whose item's metadata to set.
2033
+ * - `maybe_item`: The identifier of the item whose metadata to set.
2034
+ * - `key`: The key of the attribute.
2035
+ * - `value`: The value to which to set the attribute.
2036
+ *
2037
+ * Emits `AttributeSet`.
2038
+ *
2039
+ * Weight: `O(1)`
2040
+ **/
2041
+ setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes, Bytes]>;
2042
+ /**
2043
+ * Set the maximum amount of items a collection could have.
2044
+ *
2045
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
2046
+ * the `collection`.
2047
+ *
2048
+ * Note: This function can only succeed once per collection.
2049
+ *
2050
+ * - `collection`: The identifier of the collection to change.
2051
+ * - `max_supply`: The maximum amount of items a collection could have.
2052
+ *
2053
+ * Emits `CollectionMaxSupplySet` event when successful.
2054
+ **/
2055
+ setCollectionMaxSupply: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maxSupply: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2056
+ /**
2057
+ * Set the metadata for a collection.
2058
+ *
2059
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
2060
+ * the `collection`.
2061
+ *
2062
+ * If the origin is `Signed`, then funds of signer are reserved according to the formula:
2063
+ * `MetadataDepositBase + DepositPerByte * data.len` taking into
2064
+ * account any already reserved funds.
2065
+ *
2066
+ * - `collection`: The identifier of the item whose metadata to update.
2067
+ * - `data`: The general information of this item. Limited in length by `StringLimit`.
2068
+ * - `is_frozen`: Whether the metadata should be frozen against further changes.
2069
+ *
2070
+ * Emits `CollectionMetadataSet`.
2071
+ *
2072
+ * Weight: `O(1)`
2073
+ **/
2074
+ setCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, bool]>;
2075
+ /**
2076
+ * Set the metadata for an item.
2077
+ *
2078
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
2079
+ * `collection`.
2080
+ *
2081
+ * If the origin is Signed, then funds of signer are reserved according to the formula:
2082
+ * `MetadataDepositBase + DepositPerByte * data.len` taking into
2083
+ * account any already reserved funds.
2084
+ *
2085
+ * - `collection`: The identifier of the collection whose item's metadata to set.
2086
+ * - `item`: The identifier of the item whose metadata to set.
2087
+ * - `data`: The general information of this item. Limited in length by `StringLimit`.
2088
+ * - `is_frozen`: Whether the metadata should be frozen against further changes.
2089
+ *
2090
+ * Emits `MetadataSet`.
2091
+ *
2092
+ * Weight: `O(1)`
2093
+ **/
2094
+ setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes, bool]>;
2095
+ /**
2096
+ * Set (or reset) the price for an item.
2097
+ *
2098
+ * Origin must be Signed and must be the owner of the asset `item`.
2099
+ *
2100
+ * - `collection`: The collection of the item.
2101
+ * - `item`: The item to set the price for.
2102
+ * - `price`: The price for the item. Pass `None`, to reset the price.
2103
+ * - `buyer`: Restricts the buy operation to a specific account.
2104
+ *
2105
+ * Emits `ItemPriceSet` on success if the price is not `None`.
2106
+ * Emits `ItemPriceRemoved` on success if the price is `None`.
2107
+ **/
2108
+ setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<AccountId20> | null | Uint8Array | AccountId20 | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<AccountId20>]>;
2109
+ /**
2110
+ * Change the Issuer, Admin and Freezer of a collection.
2111
+ *
2112
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
2113
+ *
2114
+ * - `collection`: The collection whose team should be changed.
2115
+ * - `issuer`: The new Issuer of this collection.
2116
+ * - `admin`: The new Admin of this collection.
2117
+ * - `freezer`: The new Freezer of this collection.
2118
+ *
2119
+ * Emits `TeamChanged`.
2120
+ *
2121
+ * Weight: `O(1)`
2122
+ **/
2123
+ setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: AccountId20 | string | Uint8Array, admin: AccountId20 | string | Uint8Array, freezer: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId20, AccountId20, AccountId20]>;
2124
+ /**
2125
+ * Re-allow unprivileged transfer of an item.
2126
+ *
2127
+ * Origin must be Signed and the sender should be the Freezer of the `collection`.
2128
+ *
2129
+ * - `collection`: The collection of the item to be thawed.
2130
+ * - `item`: The item of the item to be thawed.
2131
+ *
2132
+ * Emits `Thawed`.
2133
+ *
2134
+ * Weight: `O(1)`
2135
+ **/
2136
+ thaw: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2137
+ /**
2138
+ * Re-allow unprivileged transfers for a whole collection.
2139
+ *
2140
+ * Origin must be Signed and the sender should be the Admin of the `collection`.
2141
+ *
2142
+ * - `collection`: The collection to be thawed.
2143
+ *
2144
+ * Emits `CollectionThawed`.
2145
+ *
2146
+ * Weight: `O(1)`
2147
+ **/
2148
+ thawCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2149
+ /**
2150
+ * Move an item from the sender account to another.
2151
+ *
2152
+ * This resets the approved account of the item.
2153
+ *
2154
+ * Origin must be Signed and the signing account must be either:
2155
+ * - the Admin of the `collection`;
2156
+ * - the Owner of the `item`;
2157
+ * - the approved delegate for the `item` (in this case, the approval is reset).
2158
+ *
2159
+ * Arguments:
2160
+ * - `collection`: The collection of the item to be transferred.
2161
+ * - `item`: The item of the item to be transferred.
2162
+ * - `dest`: The account to receive ownership of the item.
2163
+ *
2164
+ * Emits `Transferred`.
2165
+ *
2166
+ * Weight: `O(1)`
2167
+ **/
2168
+ transfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, dest: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, AccountId20]>;
2169
+ /**
2170
+ * Change the Owner of a collection.
2171
+ *
2172
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
2173
+ *
2174
+ * - `collection`: The collection whose owner should be changed.
2175
+ * - `owner`: The new Owner of this collection. They must have called
2176
+ * `set_accept_ownership` with `collection` in order for this operation to succeed.
2177
+ *
2178
+ * Emits `OwnerChanged`.
2179
+ *
2180
+ * Weight: `O(1)`
2181
+ **/
2182
+ transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: AccountId20 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId20]>;
2183
+ /**
2184
+ * Generic tx
2185
+ **/
2186
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2187
+ };
2188
+ utility: {
2189
+ /**
2190
+ * Send a call through an indexed pseudonym of the sender.
2191
+ *
2192
+ * Filter from origin are passed along. The call will be dispatched with an origin which
2193
+ * use the same filter as the origin of this call.
2194
+ *
2195
+ * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
2196
+ * because you expect `proxy` to have been used prior in the call stack and you do not want
2197
+ * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
2198
+ * in the Multisig pallet instead.
2199
+ *
2200
+ * NOTE: Prior to version *12, this was called `as_limited_sub`.
2201
+ *
2202
+ * The dispatch origin for this call must be _Signed_.
2203
+ **/
2204
+ asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
2205
+ /**
2206
+ * Send a batch of dispatch calls.
2207
+ *
2208
+ * May be called from any origin except `None`.
2209
+ *
2210
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
2211
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
2212
+ *
2213
+ * If origin is root then the calls are dispatched without checking origin filter. (This
2214
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
2215
+ *
2216
+ * ## Complexity
2217
+ * - O(C) where C is the number of calls to be batched.
2218
+ *
2219
+ * This will return `Ok` in all circumstances. To determine the success of the batch, an
2220
+ * event is deposited. If a call failed and the batch was interrupted, then the
2221
+ * `BatchInterrupted` event is deposited, along with the number of successful calls made
2222
+ * and the error of the failed call. If all were successful, then the `BatchCompleted`
2223
+ * event is deposited.
2224
+ **/
2225
+ batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
2226
+ /**
2227
+ * Send a batch of dispatch calls and atomically execute them.
2228
+ * The whole transaction will rollback and fail if any of the calls failed.
2229
+ *
2230
+ * May be called from any origin except `None`.
2231
+ *
2232
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
2233
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
2234
+ *
2235
+ * If origin is root then the calls are dispatched without checking origin filter. (This
2236
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
2237
+ *
2238
+ * ## Complexity
2239
+ * - O(C) where C is the number of calls to be batched.
2240
+ **/
2241
+ batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
2242
+ /**
2243
+ * Dispatches a function call with a provided origin.
2244
+ *
2245
+ * The dispatch origin for this call must be _Root_.
2246
+ *
2247
+ * ## Complexity
2248
+ * - O(1).
2249
+ **/
2250
+ dispatchAs: AugmentedSubmittable<(asOrigin: TotochainRuntimeOriginCaller | {
2251
+ system: any;
2252
+ } | {
2253
+ Origins: any;
2254
+ } | {
2255
+ TechnicalCommittee: any;
2256
+ } | {
2257
+ Ethereum: any;
2258
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [TotochainRuntimeOriginCaller, Call]>;
2259
+ /**
2260
+ * Dispatches a function call with a provided origin.
2261
+ *
2262
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
2263
+ *
2264
+ * The dispatch origin for this call must be _Root_.
2265
+ **/
2266
+ dispatchAsFallible: AugmentedSubmittable<(asOrigin: TotochainRuntimeOriginCaller | {
2267
+ system: any;
2268
+ } | {
2269
+ Origins: any;
2270
+ } | {
2271
+ TechnicalCommittee: any;
2272
+ } | {
2273
+ Ethereum: any;
2274
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [TotochainRuntimeOriginCaller, Call]>;
2275
+ /**
2276
+ * Send a batch of dispatch calls.
2277
+ * Unlike `batch`, it allows errors and won't interrupt.
2278
+ *
2279
+ * May be called from any origin except `None`.
2280
+ *
2281
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
2282
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
2283
+ *
2284
+ * If origin is root then the calls are dispatch without checking origin filter. (This
2285
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
2286
+ *
2287
+ * ## Complexity
2288
+ * - O(C) where C is the number of calls to be batched.
2289
+ **/
2290
+ forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
2291
+ /**
2292
+ * Dispatch a fallback call in the event the main call fails to execute.
2293
+ * May be called from any origin except `None`.
2294
+ *
2295
+ * This function first attempts to dispatch the `main` call.
2296
+ * If the `main` call fails, the `fallback` is attemted.
2297
+ * if the fallback is successfully dispatched, the weights of both calls
2298
+ * are accumulated and an event containing the main call error is deposited.
2299
+ *
2300
+ * In the event of a fallback failure the whole call fails
2301
+ * with the weights returned.
2302
+ *
2303
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
2304
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
2305
+ *
2306
+ * ## Dispatch Logic
2307
+ * - If the origin is `root`, both the main and fallback calls are executed without
2308
+ * applying any origin filters.
2309
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
2310
+ * `fallback` calls.
2311
+ *
2312
+ * ## Use Case
2313
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
2314
+ * or both.
2315
+ **/
2316
+ ifElse: AugmentedSubmittable<(main: Call | IMethod | string | Uint8Array, fallback: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Call]>;
2317
+ /**
2318
+ * Dispatch a function call with a specified weight.
2319
+ *
2320
+ * This function does not check the weight of the call, and instead allows the
2321
+ * Root origin to specify the weight of the call.
2322
+ *
2323
+ * The dispatch origin for this call must be _Root_.
2324
+ **/
2325
+ withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
2326
+ refTime?: any;
2327
+ proofSize?: any;
2328
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
2329
+ /**
2330
+ * Generic tx
2331
+ **/
2332
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2333
+ };
2334
+ validatorManager: {
2335
+ registerValidator: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2336
+ unregisterValidator: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2337
+ /**
2338
+ * Generic tx
2339
+ **/
2340
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2341
+ };
2342
+ whitelist: {
2343
+ dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callEncodedLen: u32 | AnyNumber | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | {
2344
+ refTime?: any;
2345
+ proofSize?: any;
2346
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, SpWeightsWeightV2Weight]>;
2347
+ dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
2348
+ removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
2349
+ whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
2350
+ /**
2351
+ * Generic tx
2352
+ **/
2353
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2354
+ };
2355
+ }
2356
+ }