@totochain/api-augment 0.0.0-stage → 0.1.0

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