@totochain/api-augment 0.0.0-stage → 0.2.0

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