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