@storagehub/api-augment 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 (86) hide show
  1. package/README.md +54 -0
  2. package/biome.json +10 -0
  3. package/dist/index.js +4 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/interfaces/augment-api-consts.js +6 -0
  6. package/dist/interfaces/augment-api-consts.js.map +1 -0
  7. package/dist/interfaces/augment-api-errors.js +6 -0
  8. package/dist/interfaces/augment-api-errors.js.map +1 -0
  9. package/dist/interfaces/augment-api-events.js +6 -0
  10. package/dist/interfaces/augment-api-events.js.map +1 -0
  11. package/dist/interfaces/augment-api-query.js +6 -0
  12. package/dist/interfaces/augment-api-query.js.map +1 -0
  13. package/dist/interfaces/augment-api-rpc.js +6 -0
  14. package/dist/interfaces/augment-api-rpc.js.map +1 -0
  15. package/dist/interfaces/augment-api-runtime.js +6 -0
  16. package/dist/interfaces/augment-api-runtime.js.map +1 -0
  17. package/dist/interfaces/augment-api-tx.js +6 -0
  18. package/dist/interfaces/augment-api-tx.js.map +1 -0
  19. package/dist/interfaces/augment-api.js +10 -0
  20. package/dist/interfaces/augment-api.js.map +1 -0
  21. package/dist/interfaces/augment-types.js +6 -0
  22. package/dist/interfaces/augment-types.js.map +1 -0
  23. package/dist/interfaces/definitions.js +2 -0
  24. package/dist/interfaces/definitions.js.map +1 -0
  25. package/dist/interfaces/index.js +4 -0
  26. package/dist/interfaces/index.js.map +1 -0
  27. package/dist/interfaces/lookup.js +4504 -0
  28. package/dist/interfaces/lookup.js.map +1 -0
  29. package/dist/interfaces/registry.js +6 -0
  30. package/dist/interfaces/registry.js.map +1 -0
  31. package/dist/interfaces/storagehubclient/definitions.js +7 -0
  32. package/dist/interfaces/storagehubclient/definitions.js.map +1 -0
  33. package/dist/interfaces/storagehubclient/index.js +4 -0
  34. package/dist/interfaces/storagehubclient/index.js.map +1 -0
  35. package/dist/interfaces/storagehubclient/runtime.js +152 -0
  36. package/dist/interfaces/storagehubclient/runtime.js.map +1 -0
  37. package/dist/interfaces/storagehubclient/types.js +4 -0
  38. package/dist/interfaces/storagehubclient/types.js.map +1 -0
  39. package/dist/interfaces/types-lookup.js +6 -0
  40. package/dist/interfaces/types-lookup.js.map +1 -0
  41. package/dist/interfaces/types.js +4 -0
  42. package/dist/interfaces/types.js.map +1 -0
  43. package/dist/types/index.d.ts +3 -0
  44. package/dist/types/interfaces/augment-api-consts.d.ts +556 -0
  45. package/dist/types/interfaces/augment-api-errors.d.ts +1195 -0
  46. package/dist/types/interfaces/augment-api-events.d.ts +2070 -0
  47. package/dist/types/interfaces/augment-api-query.d.ts +1439 -0
  48. package/dist/types/interfaces/augment-api-rpc.d.ts +718 -0
  49. package/dist/types/interfaces/augment-api-runtime.d.ts +441 -0
  50. package/dist/types/interfaces/augment-api-tx.d.ts +3039 -0
  51. package/dist/types/interfaces/augment-api.d.ts +7 -0
  52. package/dist/types/interfaces/augment-types.d.ts +1285 -0
  53. package/dist/types/interfaces/definitions.d.ts +1 -0
  54. package/dist/types/interfaces/index.d.ts +1 -0
  55. package/dist/types/interfaces/lookup.d.ts +4179 -0
  56. package/dist/types/interfaces/registry.d.ts +272 -0
  57. package/dist/types/interfaces/storagehubclient/definitions.d.ts +6 -0
  58. package/dist/types/interfaces/storagehubclient/index.d.ts +1 -0
  59. package/dist/types/interfaces/storagehubclient/runtime.d.ts +2 -0
  60. package/dist/types/interfaces/storagehubclient/types.d.ts +198 -0
  61. package/dist/types/interfaces/types-lookup.d.ts +4457 -0
  62. package/dist/types/interfaces/types.d.ts +1 -0
  63. package/package.json +38 -0
  64. package/scripts/scrapeMetadata.ts +77 -0
  65. package/src/index.ts +3 -0
  66. package/src/interfaces/augment-api-consts.ts +570 -0
  67. package/src/interfaces/augment-api-errors.ts +1203 -0
  68. package/src/interfaces/augment-api-events.ts +1836 -0
  69. package/src/interfaces/augment-api-query.ts +1975 -0
  70. package/src/interfaces/augment-api-rpc.ts +1201 -0
  71. package/src/interfaces/augment-api-runtime.ts +707 -0
  72. package/src/interfaces/augment-api-tx.ts +3418 -0
  73. package/src/interfaces/augment-api.ts +10 -0
  74. package/src/interfaces/augment-types.ts +2508 -0
  75. package/src/interfaces/definitions.ts +1 -0
  76. package/src/interfaces/index.ts +4 -0
  77. package/src/interfaces/lookup.ts +4511 -0
  78. package/src/interfaces/registry.ts +546 -0
  79. package/src/interfaces/storagehubclient/definitions.ts +7 -0
  80. package/src/interfaces/storagehubclient/index.ts +4 -0
  81. package/src/interfaces/storagehubclient/runtime.ts +156 -0
  82. package/src/interfaces/storagehubclient/types.ts +241 -0
  83. package/src/interfaces/types-lookup.ts +5623 -0
  84. package/src/interfaces/types.ts +4 -0
  85. package/storagehub.json +1 -0
  86. package/tsconfig.json +22 -0
@@ -0,0 +1,3039 @@
1
+ import "@polkadot/api-base/types/submittable";
2
+ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from "@polkadot/api-base/types";
3
+ import type { Bytes, Compact, Option, Vec, bool, u128, u32, u64 } from "@polkadot/types-codec";
4
+ import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
5
+ import type { AccountId32, Call, H256, MultiAddress } from "@polkadot/types/interfaces/runtime";
6
+ import type { CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletFileSystemBucketMoveRequestResponse, PalletFileSystemMspStorageRequestResponse, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletProofsDealerProof, PalletStorageProvidersValueProposition, ShpFileKeyVerifierFileKeyProof, SpRuntimeMultiSignature, SpTrieStorageProofCompactProof, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, StorageHubRuntimeConfigsRuntimeParamsRuntimeParameters, StorageHubRuntimeSessionKeys, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from "@polkadot/types/lookup";
7
+ export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
8
+ export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
9
+ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
10
+ declare module "@polkadot/api-base/types/submittable" {
11
+ interface AugmentedSubmittables<ApiType extends ApiTypes> {
12
+ balances: {
13
+ /**
14
+ * Burn the specified liquid free balance from the origin account.
15
+ *
16
+ * If the origin's account ends up below the existential deposit as a result
17
+ * of the burn and `keep_alive` is false, the account will be reaped.
18
+ *
19
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
20
+ * this `burn` operation will reduce total issuance by the amount _burned_.
21
+ **/
22
+ burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
23
+ Compact<u128>,
24
+ bool
25
+ ]>;
26
+ /**
27
+ * Adjust the total issuance in a saturating way.
28
+ *
29
+ * Can only be called by root and always needs a positive `delta`.
30
+ *
31
+ * # Example
32
+ **/
33
+ forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | "Increase" | "Decrease" | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
34
+ PalletBalancesAdjustmentDirection,
35
+ Compact<u128>
36
+ ]>;
37
+ /**
38
+ * Set the regular balance of a given account.
39
+ *
40
+ * The dispatch origin for this call is `root`.
41
+ **/
42
+ forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
43
+ Id: any;
44
+ } | {
45
+ Index: any;
46
+ } | {
47
+ Raw: any;
48
+ } | {
49
+ Address32: any;
50
+ } | {
51
+ Address20: any;
52
+ } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
53
+ MultiAddress,
54
+ Compact<u128>
55
+ ]>;
56
+ /**
57
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
58
+ * may be specified.
59
+ **/
60
+ forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
61
+ Id: any;
62
+ } | {
63
+ Index: any;
64
+ } | {
65
+ Raw: any;
66
+ } | {
67
+ Address32: any;
68
+ } | {
69
+ Address20: any;
70
+ } | string | Uint8Array, dest: MultiAddress | {
71
+ Id: any;
72
+ } | {
73
+ Index: any;
74
+ } | {
75
+ Raw: any;
76
+ } | {
77
+ Address32: any;
78
+ } | {
79
+ Address20: any;
80
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
81
+ MultiAddress,
82
+ MultiAddress,
83
+ Compact<u128>
84
+ ]>;
85
+ /**
86
+ * Unreserve some balance from a user by force.
87
+ *
88
+ * Can only be called by ROOT.
89
+ **/
90
+ forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
91
+ Id: any;
92
+ } | {
93
+ Index: any;
94
+ } | {
95
+ Raw: any;
96
+ } | {
97
+ Address32: any;
98
+ } | {
99
+ Address20: any;
100
+ } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
101
+ MultiAddress,
102
+ u128
103
+ ]>;
104
+ /**
105
+ * Transfer the entire transferable balance from the caller account.
106
+ *
107
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
108
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
109
+ * transferred by this function. To ensure that this function results in a killed account,
110
+ * you might need to prepare the account by removing any reference counters, storage
111
+ * deposits, etc...
112
+ *
113
+ * The dispatch origin of this call must be Signed.
114
+ *
115
+ * - `dest`: The recipient of the transfer.
116
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
117
+ * of the funds the account has, causing the sender account to be killed (false), or
118
+ * transfer everything except at least the existential deposit, which will guarantee to
119
+ * keep the sender account alive (true).
120
+ **/
121
+ transferAll: AugmentedSubmittable<(dest: MultiAddress | {
122
+ Id: any;
123
+ } | {
124
+ Index: any;
125
+ } | {
126
+ Raw: any;
127
+ } | {
128
+ Address32: any;
129
+ } | {
130
+ Address20: any;
131
+ } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
132
+ MultiAddress,
133
+ bool
134
+ ]>;
135
+ /**
136
+ * Transfer some liquid free balance to another account.
137
+ *
138
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
139
+ * If the sender's account is below the existential deposit as a result
140
+ * of the transfer, the account will be reaped.
141
+ *
142
+ * The dispatch origin for this call must be `Signed` by the transactor.
143
+ **/
144
+ transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
145
+ Id: any;
146
+ } | {
147
+ Index: any;
148
+ } | {
149
+ Raw: any;
150
+ } | {
151
+ Address32: any;
152
+ } | {
153
+ Address20: any;
154
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
155
+ MultiAddress,
156
+ Compact<u128>
157
+ ]>;
158
+ /**
159
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
160
+ * kill the origin account.
161
+ *
162
+ * 99% of the time you want [`transfer_allow_death`] instead.
163
+ *
164
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
165
+ **/
166
+ transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
167
+ Id: any;
168
+ } | {
169
+ Index: any;
170
+ } | {
171
+ Raw: any;
172
+ } | {
173
+ Address32: any;
174
+ } | {
175
+ Address20: any;
176
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
177
+ MultiAddress,
178
+ Compact<u128>
179
+ ]>;
180
+ /**
181
+ * Upgrade a specified account.
182
+ *
183
+ * - `origin`: Must be `Signed`.
184
+ * - `who`: The account to be upgraded.
185
+ *
186
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
187
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
188
+ * possibility of churn).
189
+ **/
190
+ upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
191
+ Vec<AccountId32>
192
+ ]>;
193
+ /**
194
+ * Generic tx
195
+ **/
196
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
197
+ };
198
+ bucketNfts: {
199
+ /**
200
+ * Share access to files within a bucket with another account.
201
+ *
202
+ * The `read_access_regex` parameter is optional and when set to `None` it means that the recipient will be denied access for any read request within the bucket.
203
+ **/
204
+ shareAccess: AugmentedSubmittable<(recipient: MultiAddress | {
205
+ Id: any;
206
+ } | {
207
+ Index: any;
208
+ } | {
209
+ Raw: any;
210
+ } | {
211
+ Address32: any;
212
+ } | {
213
+ Address20: any;
214
+ } | string | Uint8Array, bucket: H256 | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, readAccessRegex: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>, [
215
+ MultiAddress,
216
+ H256,
217
+ u32,
218
+ Option<Bytes>
219
+ ]>;
220
+ /**
221
+ * Update read access for an item.
222
+ **/
223
+ updateReadAccess: AugmentedSubmittable<(bucket: H256 | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, readAccessRegex: Option<Bytes> | null | Uint8Array | Bytes | string) => SubmittableExtrinsic<ApiType>, [
224
+ H256,
225
+ u32,
226
+ Option<Bytes>
227
+ ]>;
228
+ /**
229
+ * Generic tx
230
+ **/
231
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
232
+ };
233
+ collatorSelection: {
234
+ /**
235
+ * Add a new account `who` to the list of `Invulnerables` collators. `who` must have
236
+ * registered session keys. If `who` is a candidate, they will be removed.
237
+ *
238
+ * The origin for this call must be the `UpdateOrigin`.
239
+ **/
240
+ addInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
241
+ AccountId32
242
+ ]>;
243
+ /**
244
+ * Deregister `origin` as a collator candidate. Note that the collator can only leave on
245
+ * session change. The `CandidacyBond` will be unreserved immediately.
246
+ *
247
+ * This call will fail if the total number of candidates would drop below
248
+ * `MinEligibleCollators`.
249
+ **/
250
+ leaveIntent: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
251
+ /**
252
+ * Register this account as a collator candidate. The account must (a) already have
253
+ * registered session keys and (b) be able to reserve the `CandidacyBond`.
254
+ *
255
+ * This call is not available to `Invulnerable` collators.
256
+ **/
257
+ registerAsCandidate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
258
+ /**
259
+ * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must
260
+ * be sorted.
261
+ *
262
+ * The origin for this call must be the `UpdateOrigin`.
263
+ **/
264
+ removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
265
+ AccountId32
266
+ ]>;
267
+ /**
268
+ * Set the candidacy bond amount.
269
+ *
270
+ * If the candidacy bond is increased by this call, all current candidates which have a
271
+ * deposit lower than the new bond will be kicked from the list and get their deposits
272
+ * back.
273
+ *
274
+ * The origin for this call must be the `UpdateOrigin`.
275
+ **/
276
+ setCandidacyBond: AugmentedSubmittable<(bond: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
277
+ u128
278
+ ]>;
279
+ /**
280
+ * Set the ideal number of non-invulnerable collators. If lowering this number, then the
281
+ * number of running collators could be higher than this figure. Aside from that edge case,
282
+ * there should be no other way to have more candidates than the desired number.
283
+ *
284
+ * The origin for this call must be the `UpdateOrigin`.
285
+ **/
286
+ setDesiredCandidates: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
287
+ u32
288
+ ]>;
289
+ /**
290
+ * Set the list of invulnerable (fixed) collators. These collators must do some
291
+ * preparation, namely to have registered session keys.
292
+ *
293
+ * The call will remove any accounts that have not registered keys from the set. That is,
294
+ * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as
295
+ * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables.
296
+ *
297
+ * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It
298
+ * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A
299
+ * `batch_all` can also be used to enforce atomicity. If any candidates are included in
300
+ * `new`, they should be removed with `remove_invulnerable_candidate` after execution.
301
+ *
302
+ * Must be called by the `UpdateOrigin`.
303
+ **/
304
+ setInvulnerables: AugmentedSubmittable<(updated: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
305
+ Vec<AccountId32>
306
+ ]>;
307
+ /**
308
+ * The caller `origin` replaces a candidate `target` in the collator candidate list by
309
+ * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than
310
+ * the existing bond of the target it is trying to replace.
311
+ *
312
+ * This call will fail if the caller is already a collator candidate or invulnerable, the
313
+ * caller does not have registered session keys, the target is not a collator candidate,
314
+ * and/or the `deposit` amount cannot be reserved.
315
+ **/
316
+ takeCandidateSlot: AugmentedSubmittable<(deposit: u128 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
317
+ u128,
318
+ AccountId32
319
+ ]>;
320
+ /**
321
+ * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`.
322
+ *
323
+ * Setting a `new_deposit` that is lower than the current deposit while `origin` is
324
+ * occupying a top-`DesiredCandidates` slot is not allowed.
325
+ *
326
+ * This call will fail if `origin` is not a collator candidate, the updated bond is lower
327
+ * than the minimum candidacy bond, and/or the amount cannot be reserved.
328
+ **/
329
+ updateBond: AugmentedSubmittable<(newDeposit: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
330
+ u128
331
+ ]>;
332
+ /**
333
+ * Generic tx
334
+ **/
335
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
336
+ };
337
+ cumulusXcm: {
338
+ /**
339
+ * Generic tx
340
+ **/
341
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
342
+ };
343
+ fileSystem: {
344
+ /**
345
+ * Add yourself as a data server for providing the files of the bucket requested to be moved.
346
+ **/
347
+ bspAddDataServerForMoveBucketRequest: AugmentedSubmittable<(bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
348
+ H256
349
+ ]>;
350
+ /**
351
+ * Executed by a BSP to confirm to stop storing a file.
352
+ *
353
+ * It has to have previously opened a pending stop storing request using the `bsp_request_stop_storing` extrinsic.
354
+ * The minimum amount of blocks between the request and the confirmation is defined by the runtime, such that the
355
+ * BSP can't immediately stop storing a file it has previously lost when receiving a challenge for it.
356
+ **/
357
+ bspConfirmStopStoring: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array, inclusionForestProof: SpTrieStorageProofCompactProof | {
358
+ encodedNodes?: any;
359
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
360
+ H256,
361
+ SpTrieStorageProofCompactProof
362
+ ]>;
363
+ /**
364
+ * Used by a BSP to confirm they are storing data of a storage request.
365
+ **/
366
+ bspConfirmStoring: AugmentedSubmittable<(nonInclusionForestProof: SpTrieStorageProofCompactProof | {
367
+ encodedNodes?: any;
368
+ } | string | Uint8Array, fileKeysAndProofs: Vec<ITuple<[H256, ShpFileKeyVerifierFileKeyProof]>> | [
369
+ H256 | string | Uint8Array,
370
+ (ShpFileKeyVerifierFileKeyProof | {
371
+ fileMetadata?: any;
372
+ proof?: any;
373
+ } | string | Uint8Array)
374
+ ][]) => SubmittableExtrinsic<ApiType>, [
375
+ SpTrieStorageProofCompactProof,
376
+ Vec<ITuple<[H256, ShpFileKeyVerifierFileKeyProof]>>
377
+ ]>;
378
+ /**
379
+ * Executed by a BSP to request to stop storing a file.
380
+ *
381
+ * In the event when a storage request no longer exists for the data the BSP no longer stores,
382
+ * it is required that the BSP still has access to the metadata of the initial storage request.
383
+ * If they do not, they will at least need that metadata to reconstruct the File ID and from wherever
384
+ * the BSP gets that data is up to it. One example could be from the assigned MSP.
385
+ * This metadata is necessary since it is needed to reconstruct the leaf node key in the storage
386
+ * provider's Merkle Forest.
387
+ **/
388
+ bspRequestStopStoring: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array, bucketId: H256 | string | Uint8Array, location: Bytes | string | Uint8Array, owner: AccountId32 | string | Uint8Array, fingerprint: H256 | string | Uint8Array, size: u64 | AnyNumber | Uint8Array, canServe: bool | boolean | Uint8Array, inclusionForestProof: SpTrieStorageProofCompactProof | {
389
+ encodedNodes?: any;
390
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
391
+ H256,
392
+ H256,
393
+ Bytes,
394
+ AccountId32,
395
+ H256,
396
+ u64,
397
+ bool,
398
+ SpTrieStorageProofCompactProof
399
+ ]>;
400
+ /**
401
+ * Used by a BSP to volunteer for storing a file.
402
+ *
403
+ * The transaction will fail if the XOR between the file ID and the BSP ID is not below the threshold,
404
+ * so a BSP is strongly advised to check beforehand. Another reason for failure is
405
+ * if the maximum number of BSPs has been reached. A successful assignment as BSP means
406
+ * that some of the collateral tokens of that MSP are frozen.
407
+ **/
408
+ bspVolunteer: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
409
+ H256
410
+ ]>;
411
+ /**
412
+ * Create and associate a collection with a bucket.
413
+ **/
414
+ createAndAssociateCollectionWithBucket: AugmentedSubmittable<(bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
415
+ H256
416
+ ]>;
417
+ createBucket: AugmentedSubmittable<(mspId: H256 | string | Uint8Array, name: Bytes | string | Uint8Array, private: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
418
+ H256,
419
+ Bytes,
420
+ bool
421
+ ]>;
422
+ deleteFile: AugmentedSubmittable<(bucketId: H256 | string | Uint8Array, fileKey: H256 | string | Uint8Array, location: Bytes | string | Uint8Array, size: u64 | AnyNumber | Uint8Array, fingerprint: H256 | string | Uint8Array, maybeInclusionForestProof: Option<SpTrieStorageProofCompactProof> | null | Uint8Array | SpTrieStorageProofCompactProof | {
423
+ encodedNodes?: any;
424
+ } | string) => SubmittableExtrinsic<ApiType>, [
425
+ H256,
426
+ H256,
427
+ Bytes,
428
+ u64,
429
+ H256,
430
+ Option<SpTrieStorageProofCompactProof>
431
+ ]>;
432
+ /**
433
+ * Issue a new storage request for a file
434
+ **/
435
+ issueStorageRequest: AugmentedSubmittable<(bucketId: H256 | string | Uint8Array, location: Bytes | string | Uint8Array, fingerprint: H256 | string | Uint8Array, size: u64 | AnyNumber | Uint8Array, mspId: H256 | string | Uint8Array, peerIds: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
436
+ H256,
437
+ Bytes,
438
+ H256,
439
+ u64,
440
+ H256,
441
+ Vec<Bytes>
442
+ ]>;
443
+ mspRespondMoveBucketRequest: AugmentedSubmittable<(bucketId: H256 | string | Uint8Array, response: PalletFileSystemBucketMoveRequestResponse | "Accepted" | "Rejected" | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
444
+ H256,
445
+ PalletFileSystemBucketMoveRequestResponse
446
+ ]>;
447
+ /**
448
+ * Used by a MSP to accept or decline storage requests in batches, grouped by bucket.
449
+ *
450
+ * This follows a best-effort strategy, meaning that all file keys will be processed and declared to have successfully be
451
+ * accepted, rejected or have failed to be processed in the results of the event emitted.
452
+ *
453
+ * The MSP has to provide a file proof for all the file keys that are being accepted and a non-inclusion proof for the file keys
454
+ * in the bucket's Merkle Patricia Forest. The file proofs for the file keys is necessary to verify that
455
+ * the MSP actually has the files, while the non-inclusion proof is necessary to verify that the MSP
456
+ * wasn't storing it before.
457
+ **/
458
+ mspRespondStorageRequestsMultipleBuckets: AugmentedSubmittable<(fileKeyResponsesInput: Vec<ITuple<[H256, PalletFileSystemMspStorageRequestResponse]>> | [
459
+ H256 | string | Uint8Array,
460
+ (PalletFileSystemMspStorageRequestResponse | {
461
+ accept?: any;
462
+ reject?: any;
463
+ } | string | Uint8Array)
464
+ ][]) => SubmittableExtrinsic<ApiType>, [
465
+ Vec<ITuple<[H256, PalletFileSystemMspStorageRequestResponse]>>
466
+ ]>;
467
+ pendingFileDeletionRequestSubmitProof: AugmentedSubmittable<(user: AccountId32 | string | Uint8Array, fileKey: H256 | string | Uint8Array, bucketId: H256 | string | Uint8Array, forestProof: SpTrieStorageProofCompactProof | {
468
+ encodedNodes?: any;
469
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
470
+ AccountId32,
471
+ H256,
472
+ H256,
473
+ SpTrieStorageProofCompactProof
474
+ ]>;
475
+ requestMoveBucket: AugmentedSubmittable<(bucketId: H256 | string | Uint8Array, newMspId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
476
+ H256,
477
+ H256
478
+ ]>;
479
+ /**
480
+ * Revoke storage request
481
+ **/
482
+ revokeStorageRequest: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
483
+ H256
484
+ ]>;
485
+ setGlobalParameters: AugmentedSubmittable<(replicationTarget: Option<u32> | null | Uint8Array | u32 | AnyNumber, tickRangeToMaximumThreshold: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
486
+ Option<u32>,
487
+ Option<u32>
488
+ ]>;
489
+ /**
490
+ * Executed by a SP to stop storing a file from an insolvent user.
491
+ *
492
+ * This is used when a user has become insolvent and the SP needs to stop storing the files of that user, since
493
+ * it won't be getting paid for it anymore.
494
+ * The validations are similar to the ones in the `bsp_request_stop_storing` and `bsp_confirm_stop_storing` extrinsics, but the SP doesn't need to
495
+ * wait for a minimum amount of blocks to confirm to stop storing the file nor it has to be a BSP.
496
+ **/
497
+ stopStoringForInsolventUser: AugmentedSubmittable<(fileKey: H256 | string | Uint8Array, bucketId: H256 | string | Uint8Array, location: Bytes | string | Uint8Array, owner: AccountId32 | string | Uint8Array, fingerprint: H256 | string | Uint8Array, size: u64 | AnyNumber | Uint8Array, inclusionForestProof: SpTrieStorageProofCompactProof | {
498
+ encodedNodes?: any;
499
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
500
+ H256,
501
+ H256,
502
+ Bytes,
503
+ AccountId32,
504
+ H256,
505
+ u64,
506
+ SpTrieStorageProofCompactProof
507
+ ]>;
508
+ updateBucketPrivacy: AugmentedSubmittable<(bucketId: H256 | string | Uint8Array, private: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
509
+ H256,
510
+ bool
511
+ ]>;
512
+ /**
513
+ * Generic tx
514
+ **/
515
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
516
+ };
517
+ messageQueue: {
518
+ /**
519
+ * Execute an overweight message.
520
+ *
521
+ * Temporary processing errors will be propagated whereas permanent errors are treated
522
+ * as success condition.
523
+ *
524
+ * - `origin`: Must be `Signed`.
525
+ * - `message_origin`: The origin from which the message to be executed arrived.
526
+ * - `page`: The page in the queue in which the message to be executed is sitting.
527
+ * - `index`: The index into the queue of the message to be executed.
528
+ * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution
529
+ * of the message.
530
+ *
531
+ * Benchmark complexity considerations: O(index + weight_limit).
532
+ **/
533
+ executeOverweight: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | {
534
+ Here: any;
535
+ } | {
536
+ Parent: any;
537
+ } | {
538
+ Sibling: any;
539
+ } | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
540
+ refTime?: any;
541
+ proofSize?: any;
542
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
543
+ CumulusPrimitivesCoreAggregateMessageOrigin,
544
+ u32,
545
+ u32,
546
+ SpWeightsWeightV2Weight
547
+ ]>;
548
+ /**
549
+ * Remove a page which has no more messages remaining to be processed or is stale.
550
+ **/
551
+ reapPage: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | {
552
+ Here: any;
553
+ } | {
554
+ Parent: any;
555
+ } | {
556
+ Sibling: any;
557
+ } | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
558
+ CumulusPrimitivesCoreAggregateMessageOrigin,
559
+ u32
560
+ ]>;
561
+ /**
562
+ * Generic tx
563
+ **/
564
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
565
+ };
566
+ nfts: {
567
+ /**
568
+ * Approve item's attributes to be changed by a delegated third-party account.
569
+ *
570
+ * Origin must be Signed and must be an owner of the `item`.
571
+ *
572
+ * - `collection`: A collection of the item.
573
+ * - `item`: The item that holds attributes.
574
+ * - `delegate`: The account to delegate permission to change attributes of the item.
575
+ *
576
+ * Emits `ItemAttributesApprovalAdded` on success.
577
+ **/
578
+ approveItemAttributes: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
579
+ Id: any;
580
+ } | {
581
+ Index: any;
582
+ } | {
583
+ Raw: any;
584
+ } | {
585
+ Address32: any;
586
+ } | {
587
+ Address20: any;
588
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
589
+ u32,
590
+ u32,
591
+ MultiAddress
592
+ ]>;
593
+ /**
594
+ * Approve an item to be transferred by a delegated third-party account.
595
+ *
596
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
597
+ * `item`.
598
+ *
599
+ * - `collection`: The collection of the item to be approved for delegated transfer.
600
+ * - `item`: The item to be approved for delegated transfer.
601
+ * - `delegate`: The account to delegate permission to transfer the item.
602
+ * - `maybe_deadline`: Optional deadline for the approval. Specified by providing the
603
+ * number of blocks after which the approval will expire
604
+ *
605
+ * Emits `TransferApproved` on success.
606
+ *
607
+ * Weight: `O(1)`
608
+ **/
609
+ approveTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
610
+ Id: any;
611
+ } | {
612
+ Index: any;
613
+ } | {
614
+ Raw: any;
615
+ } | {
616
+ Address32: any;
617
+ } | {
618
+ Address20: any;
619
+ } | string | Uint8Array, maybeDeadline: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
620
+ u32,
621
+ u32,
622
+ MultiAddress,
623
+ Option<u32>
624
+ ]>;
625
+ /**
626
+ * Destroy a single item.
627
+ *
628
+ * The origin must conform to `ForceOrigin` or must be Signed and the signing account must
629
+ * be the owner of the `item`.
630
+ *
631
+ * - `collection`: The collection of the item to be burned.
632
+ * - `item`: The item to be burned.
633
+ *
634
+ * Emits `Burned`.
635
+ *
636
+ * Weight: `O(1)`
637
+ **/
638
+ burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
639
+ u32,
640
+ u32
641
+ ]>;
642
+ /**
643
+ * Allows to buy an item if it's up for sale.
644
+ *
645
+ * Origin must be Signed and must not be the owner of the `item`.
646
+ *
647
+ * - `collection`: The collection of the item.
648
+ * - `item`: The item the sender wants to buy.
649
+ * - `bid_price`: The price the sender is willing to pay.
650
+ *
651
+ * Emits `ItemBought` on success.
652
+ **/
653
+ buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
654
+ u32,
655
+ u32,
656
+ u128
657
+ ]>;
658
+ /**
659
+ * Cancel one of the transfer approvals for a specific item.
660
+ *
661
+ * Origin must be either:
662
+ * - the `Force` origin;
663
+ * - `Signed` with the signer being the Owner of the `item`;
664
+ *
665
+ * Arguments:
666
+ * - `collection`: The collection of the item of whose approval will be cancelled.
667
+ * - `item`: The item of the collection of whose approval will be cancelled.
668
+ * - `delegate`: The account that is going to loose their approval.
669
+ *
670
+ * Emits `ApprovalCancelled` on success.
671
+ *
672
+ * Weight: `O(1)`
673
+ **/
674
+ cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
675
+ Id: any;
676
+ } | {
677
+ Index: any;
678
+ } | {
679
+ Raw: any;
680
+ } | {
681
+ Address32: any;
682
+ } | {
683
+ Address20: any;
684
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
685
+ u32,
686
+ u32,
687
+ MultiAddress
688
+ ]>;
689
+ /**
690
+ * Cancel the previously provided approval to change item's attributes.
691
+ * All the previously set attributes by the `delegate` will be removed.
692
+ *
693
+ * Origin must be Signed and must be an owner of the `item`.
694
+ *
695
+ * - `collection`: Collection that the item is contained within.
696
+ * - `item`: The item that holds attributes.
697
+ * - `delegate`: The previously approved account to remove.
698
+ *
699
+ * Emits `ItemAttributesApprovalRemoved` on success.
700
+ **/
701
+ cancelItemAttributesApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
702
+ Id: any;
703
+ } | {
704
+ Index: any;
705
+ } | {
706
+ Raw: any;
707
+ } | {
708
+ Address32: any;
709
+ } | {
710
+ Address20: any;
711
+ } | string | Uint8Array, witness: PalletNftsCancelAttributesApprovalWitness | {
712
+ accountAttributes?: any;
713
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
714
+ u32,
715
+ u32,
716
+ MultiAddress,
717
+ PalletNftsCancelAttributesApprovalWitness
718
+ ]>;
719
+ /**
720
+ * Cancel an atomic swap.
721
+ *
722
+ * Origin must be Signed.
723
+ * Origin must be an owner of the `item` if the deadline hasn't expired.
724
+ *
725
+ * - `collection`: The collection of the item.
726
+ * - `item`: The item an owner wants to give.
727
+ *
728
+ * Emits `SwapCancelled` on success.
729
+ **/
730
+ cancelSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
731
+ u32,
732
+ u32
733
+ ]>;
734
+ /**
735
+ * Claim an atomic swap.
736
+ * This method executes a pending swap, that was created by a counterpart before.
737
+ *
738
+ * Origin must be Signed and must be an owner of the `item`.
739
+ *
740
+ * - `send_collection`: The collection of the item to be sent.
741
+ * - `send_item`: The item to be sent.
742
+ * - `receive_collection`: The collection of the item to be received.
743
+ * - `receive_item`: The item to be received.
744
+ * - `witness_price`: A price that was previously agreed on.
745
+ *
746
+ * Emits `SwapClaimed` on success.
747
+ **/
748
+ claimSwap: AugmentedSubmittable<(sendCollection: u32 | AnyNumber | Uint8Array, sendItem: u32 | AnyNumber | Uint8Array, receiveCollection: u32 | AnyNumber | Uint8Array, receiveItem: u32 | AnyNumber | Uint8Array, witnessPrice: Option<PalletNftsPriceWithDirection> | null | Uint8Array | PalletNftsPriceWithDirection | {
749
+ amount?: any;
750
+ direction?: any;
751
+ } | string) => SubmittableExtrinsic<ApiType>, [
752
+ u32,
753
+ u32,
754
+ u32,
755
+ u32,
756
+ Option<PalletNftsPriceWithDirection>
757
+ ]>;
758
+ /**
759
+ * Cancel all the approvals of a specific item.
760
+ *
761
+ * Origin must be either:
762
+ * - the `Force` origin;
763
+ * - `Signed` with the signer being the Owner of the `item`;
764
+ *
765
+ * Arguments:
766
+ * - `collection`: The collection of the item of whose approvals will be cleared.
767
+ * - `item`: The item of the collection of whose approvals will be cleared.
768
+ *
769
+ * Emits `AllApprovalsCancelled` on success.
770
+ *
771
+ * Weight: `O(1)`
772
+ **/
773
+ clearAllTransferApprovals: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
774
+ u32,
775
+ u32
776
+ ]>;
777
+ /**
778
+ * Clear an attribute for a collection or item.
779
+ *
780
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
781
+ * attribute.
782
+ *
783
+ * Any deposit is freed for the collection's owner.
784
+ *
785
+ * - `collection`: The identifier of the collection whose item's metadata to clear.
786
+ * - `maybe_item`: The identifier of the item whose metadata to clear.
787
+ * - `namespace`: Attribute's namespace.
788
+ * - `key`: The key of the attribute.
789
+ *
790
+ * Emits `AttributeCleared`.
791
+ *
792
+ * Weight: `O(1)`
793
+ **/
794
+ clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
795
+ Pallet: any;
796
+ } | {
797
+ CollectionOwner: any;
798
+ } | {
799
+ ItemOwner: any;
800
+ } | {
801
+ Account: any;
802
+ } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
803
+ u32,
804
+ Option<u32>,
805
+ PalletNftsAttributeNamespace,
806
+ Bytes
807
+ ]>;
808
+ /**
809
+ * Clear the metadata for a collection.
810
+ *
811
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
812
+ * the `collection`.
813
+ *
814
+ * Any deposit is freed for the collection's owner.
815
+ *
816
+ * - `collection`: The identifier of the collection whose metadata to clear.
817
+ *
818
+ * Emits `CollectionMetadataCleared`.
819
+ *
820
+ * Weight: `O(1)`
821
+ **/
822
+ clearCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
823
+ u32
824
+ ]>;
825
+ /**
826
+ * Clear the metadata for an item.
827
+ *
828
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
829
+ * `collection`.
830
+ *
831
+ * Any deposit is freed for the collection's owner.
832
+ *
833
+ * - `collection`: The identifier of the collection whose item's metadata to clear.
834
+ * - `item`: The identifier of the item whose metadata to clear.
835
+ *
836
+ * Emits `ItemMetadataCleared`.
837
+ *
838
+ * Weight: `O(1)`
839
+ **/
840
+ clearMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
841
+ u32,
842
+ u32
843
+ ]>;
844
+ /**
845
+ * Issue a new collection of non-fungible items from a public origin.
846
+ *
847
+ * This new collection has no items initially and its owner is the origin.
848
+ *
849
+ * The origin must be Signed and the sender must have sufficient funds free.
850
+ *
851
+ * `CollectionDeposit` funds of sender are reserved.
852
+ *
853
+ * Parameters:
854
+ * - `admin`: The admin of this collection. The admin is the initial address of each
855
+ * member of the collection's admin team.
856
+ *
857
+ * Emits `Created` event when successful.
858
+ *
859
+ * Weight: `O(1)`
860
+ **/
861
+ create: AugmentedSubmittable<(admin: MultiAddress | {
862
+ Id: any;
863
+ } | {
864
+ Index: any;
865
+ } | {
866
+ Raw: any;
867
+ } | {
868
+ Address32: any;
869
+ } | {
870
+ Address20: any;
871
+ } | string | Uint8Array, config: PalletNftsCollectionConfig | {
872
+ settings?: any;
873
+ maxSupply?: any;
874
+ mintSettings?: any;
875
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
876
+ MultiAddress,
877
+ PalletNftsCollectionConfig
878
+ ]>;
879
+ /**
880
+ * Register a new atomic swap, declaring an intention to send an `item` in exchange for
881
+ * `desired_item` from origin to target on the current blockchain.
882
+ * The target can execute the swap during the specified `duration` of blocks (if set).
883
+ * Additionally, the price could be set for the desired `item`.
884
+ *
885
+ * Origin must be Signed and must be an owner of the `item`.
886
+ *
887
+ * - `collection`: The collection of the item.
888
+ * - `item`: The item an owner wants to give.
889
+ * - `desired_collection`: The collection of the desired item.
890
+ * - `desired_item`: The desired item an owner wants to receive.
891
+ * - `maybe_price`: The price an owner is willing to pay or receive for the desired `item`.
892
+ * - `duration`: A deadline for the swap. Specified by providing the number of blocks
893
+ * after which the swap will expire.
894
+ *
895
+ * Emits `SwapCreated` on success.
896
+ **/
897
+ createSwap: AugmentedSubmittable<(offeredCollection: u32 | AnyNumber | Uint8Array, offeredItem: u32 | AnyNumber | Uint8Array, desiredCollection: u32 | AnyNumber | Uint8Array, maybeDesiredItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, maybePrice: Option<PalletNftsPriceWithDirection> | null | Uint8Array | PalletNftsPriceWithDirection | {
898
+ amount?: any;
899
+ direction?: any;
900
+ } | string, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
901
+ u32,
902
+ u32,
903
+ u32,
904
+ Option<u32>,
905
+ Option<PalletNftsPriceWithDirection>,
906
+ u32
907
+ ]>;
908
+ /**
909
+ * Destroy a collection of fungible items.
910
+ *
911
+ * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
912
+ * owner of the `collection`.
913
+ *
914
+ * NOTE: The collection must have 0 items to be destroyed.
915
+ *
916
+ * - `collection`: The identifier of the collection to be destroyed.
917
+ * - `witness`: Information on the items minted in the collection. This must be
918
+ * correct.
919
+ *
920
+ * Emits `Destroyed` event when successful.
921
+ *
922
+ * Weight: `O(m + c + a)` where:
923
+ * - `m = witness.item_metadatas`
924
+ * - `c = witness.item_configs`
925
+ * - `a = witness.attributes`
926
+ **/
927
+ destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | {
928
+ itemMetadatas?: any;
929
+ itemConfigs?: any;
930
+ attributes?: any;
931
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
932
+ u32,
933
+ PalletNftsDestroyWitness
934
+ ]>;
935
+ /**
936
+ * Change the config of a collection.
937
+ *
938
+ * Origin must be `ForceOrigin`.
939
+ *
940
+ * - `collection`: The identifier of the collection.
941
+ * - `config`: The new config of this collection.
942
+ *
943
+ * Emits `CollectionConfigChanged`.
944
+ *
945
+ * Weight: `O(1)`
946
+ **/
947
+ forceCollectionConfig: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, config: PalletNftsCollectionConfig | {
948
+ settings?: any;
949
+ maxSupply?: any;
950
+ mintSettings?: any;
951
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
952
+ u32,
953
+ PalletNftsCollectionConfig
954
+ ]>;
955
+ /**
956
+ * Change the Owner of a collection.
957
+ *
958
+ * Origin must be `ForceOrigin`.
959
+ *
960
+ * - `collection`: The identifier of the collection.
961
+ * - `owner`: The new Owner of this collection.
962
+ *
963
+ * Emits `OwnerChanged`.
964
+ *
965
+ * Weight: `O(1)`
966
+ **/
967
+ forceCollectionOwner: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, owner: MultiAddress | {
968
+ Id: any;
969
+ } | {
970
+ Index: any;
971
+ } | {
972
+ Raw: any;
973
+ } | {
974
+ Address32: any;
975
+ } | {
976
+ Address20: any;
977
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
978
+ u32,
979
+ MultiAddress
980
+ ]>;
981
+ /**
982
+ * Issue a new collection of non-fungible items from a privileged origin.
983
+ *
984
+ * This new collection has no items initially.
985
+ *
986
+ * The origin must conform to `ForceOrigin`.
987
+ *
988
+ * Unlike `create`, no funds are reserved.
989
+ *
990
+ * - `owner`: The owner of this collection of items. The owner has full superuser
991
+ * permissions over this item, but may later change and configure the permissions using
992
+ * `transfer_ownership` and `set_team`.
993
+ *
994
+ * Emits `ForceCreated` event when successful.
995
+ *
996
+ * Weight: `O(1)`
997
+ **/
998
+ forceCreate: AugmentedSubmittable<(owner: MultiAddress | {
999
+ Id: any;
1000
+ } | {
1001
+ Index: any;
1002
+ } | {
1003
+ Raw: any;
1004
+ } | {
1005
+ Address32: any;
1006
+ } | {
1007
+ Address20: any;
1008
+ } | string | Uint8Array, config: PalletNftsCollectionConfig | {
1009
+ settings?: any;
1010
+ maxSupply?: any;
1011
+ mintSettings?: any;
1012
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1013
+ MultiAddress,
1014
+ PalletNftsCollectionConfig
1015
+ ]>;
1016
+ /**
1017
+ * Mint an item of a particular collection from a privileged origin.
1018
+ *
1019
+ * The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
1020
+ * Issuer of the `collection`.
1021
+ *
1022
+ * - `collection`: The collection of the item to be minted.
1023
+ * - `item`: An identifier of the new item.
1024
+ * - `mint_to`: Account into which the item will be minted.
1025
+ * - `item_config`: A config of the new item.
1026
+ *
1027
+ * Emits `Issued` event when successful.
1028
+ *
1029
+ * Weight: `O(1)`
1030
+ **/
1031
+ forceMint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | {
1032
+ Id: any;
1033
+ } | {
1034
+ Index: any;
1035
+ } | {
1036
+ Raw: any;
1037
+ } | {
1038
+ Address32: any;
1039
+ } | {
1040
+ Address20: any;
1041
+ } | string | Uint8Array, itemConfig: PalletNftsItemConfig | {
1042
+ settings?: any;
1043
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1044
+ u32,
1045
+ u32,
1046
+ MultiAddress,
1047
+ PalletNftsItemConfig
1048
+ ]>;
1049
+ /**
1050
+ * Force-set an attribute for a collection or item.
1051
+ *
1052
+ * Origin must be `ForceOrigin`.
1053
+ *
1054
+ * If the attribute already exists and it was set by another account, the deposit
1055
+ * will be returned to the previous owner.
1056
+ *
1057
+ * - `set_as`: An optional owner of the attribute.
1058
+ * - `collection`: The identifier of the collection whose item's metadata to set.
1059
+ * - `maybe_item`: The identifier of the item whose metadata to set.
1060
+ * - `namespace`: Attribute's namespace.
1061
+ * - `key`: The key of the attribute.
1062
+ * - `value`: The value to which to set the attribute.
1063
+ *
1064
+ * Emits `AttributeSet`.
1065
+ *
1066
+ * Weight: `O(1)`
1067
+ **/
1068
+ forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
1069
+ Pallet: any;
1070
+ } | {
1071
+ CollectionOwner: any;
1072
+ } | {
1073
+ ItemOwner: any;
1074
+ } | {
1075
+ Account: any;
1076
+ } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1077
+ Option<AccountId32>,
1078
+ u32,
1079
+ Option<u32>,
1080
+ PalletNftsAttributeNamespace,
1081
+ Bytes,
1082
+ Bytes
1083
+ ]>;
1084
+ /**
1085
+ * Disallows specified settings for the whole collection.
1086
+ *
1087
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
1088
+ *
1089
+ * - `collection`: The collection to be locked.
1090
+ * - `lock_settings`: The settings to be locked.
1091
+ *
1092
+ * Note: it's possible to only lock(set) the setting, but not to unset it.
1093
+ *
1094
+ * Emits `CollectionLocked`.
1095
+ *
1096
+ * Weight: `O(1)`
1097
+ **/
1098
+ lockCollection: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, lockSettings: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1099
+ u32,
1100
+ u64
1101
+ ]>;
1102
+ /**
1103
+ * Disallows changing the metadata or attributes of the item.
1104
+ *
1105
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin
1106
+ * of the `collection`.
1107
+ *
1108
+ * - `collection`: The collection if the `item`.
1109
+ * - `item`: An item to be locked.
1110
+ * - `lock_metadata`: Specifies whether the metadata should be locked.
1111
+ * - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace
1112
+ * should be locked.
1113
+ *
1114
+ * Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only.
1115
+ * When the metadata or attributes are locked, it won't be possible the unlock them.
1116
+ *
1117
+ * Emits `ItemPropertiesLocked`.
1118
+ *
1119
+ * Weight: `O(1)`
1120
+ **/
1121
+ lockItemProperties: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, lockMetadata: bool | boolean | Uint8Array, lockAttributes: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1122
+ u32,
1123
+ u32,
1124
+ bool,
1125
+ bool
1126
+ ]>;
1127
+ /**
1128
+ * Disallow further unprivileged transfer of an item.
1129
+ *
1130
+ * Origin must be Signed and the sender should be the Freezer of the `collection`.
1131
+ *
1132
+ * - `collection`: The collection of the item to be changed.
1133
+ * - `item`: The item to become non-transferable.
1134
+ *
1135
+ * Emits `ItemTransferLocked`.
1136
+ *
1137
+ * Weight: `O(1)`
1138
+ **/
1139
+ lockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1140
+ u32,
1141
+ u32
1142
+ ]>;
1143
+ /**
1144
+ * Mint an item of a particular collection.
1145
+ *
1146
+ * The origin must be Signed and the sender must comply with the `mint_settings` rules.
1147
+ *
1148
+ * - `collection`: The collection of the item to be minted.
1149
+ * - `item`: An identifier of the new item.
1150
+ * - `mint_to`: Account into which the item will be minted.
1151
+ * - `witness_data`: When the mint type is `HolderOf(collection_id)`, then the owned
1152
+ * item_id from that collection needs to be provided within the witness data object. If
1153
+ * the mint price is set, then it should be additionally confirmed in the `witness_data`.
1154
+ *
1155
+ * Note: the deposit will be taken from the `origin` and not the `owner` of the `item`.
1156
+ *
1157
+ * Emits `Issued` event when successful.
1158
+ *
1159
+ * Weight: `O(1)`
1160
+ **/
1161
+ mint: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, mintTo: MultiAddress | {
1162
+ Id: any;
1163
+ } | {
1164
+ Index: any;
1165
+ } | {
1166
+ Raw: any;
1167
+ } | {
1168
+ Address32: any;
1169
+ } | {
1170
+ Address20: any;
1171
+ } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | {
1172
+ ownedItem?: any;
1173
+ mintPrice?: any;
1174
+ } | string) => SubmittableExtrinsic<ApiType>, [
1175
+ u32,
1176
+ u32,
1177
+ MultiAddress,
1178
+ Option<PalletNftsMintWitness>
1179
+ ]>;
1180
+ /**
1181
+ * Mint an item by providing the pre-signed approval.
1182
+ *
1183
+ * Origin must be Signed.
1184
+ *
1185
+ * - `mint_data`: The pre-signed approval that consists of the information about the item,
1186
+ * its metadata, attributes, who can mint it (`None` for anyone) and until what block
1187
+ * number.
1188
+ * - `signature`: The signature of the `data` object.
1189
+ * - `signer`: The `data` object's signer. Should be an Issuer of the collection.
1190
+ *
1191
+ * Emits `Issued` on success.
1192
+ * Emits `AttributeSet` if the attributes were provided.
1193
+ * Emits `ItemMetadataSet` if the metadata was not empty.
1194
+ **/
1195
+ mintPreSigned: AugmentedSubmittable<(mintData: PalletNftsPreSignedMint | {
1196
+ collection?: any;
1197
+ item?: any;
1198
+ attributes?: any;
1199
+ metadata?: any;
1200
+ onlyAccount?: any;
1201
+ deadline?: any;
1202
+ mintPrice?: any;
1203
+ } | string | Uint8Array, signature: SpRuntimeMultiSignature | {
1204
+ Ed25519: any;
1205
+ } | {
1206
+ Sr25519: any;
1207
+ } | {
1208
+ Ecdsa: any;
1209
+ } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1210
+ PalletNftsPreSignedMint,
1211
+ SpRuntimeMultiSignature,
1212
+ AccountId32
1213
+ ]>;
1214
+ /**
1215
+ * Allows to pay the tips.
1216
+ *
1217
+ * Origin must be Signed.
1218
+ *
1219
+ * - `tips`: Tips array.
1220
+ *
1221
+ * Emits `TipSent` on every tip transfer.
1222
+ **/
1223
+ payTips: AugmentedSubmittable<(tips: Vec<PalletNftsItemTip> | (PalletNftsItemTip | {
1224
+ collection?: any;
1225
+ item?: any;
1226
+ receiver?: any;
1227
+ amount?: any;
1228
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
1229
+ Vec<PalletNftsItemTip>
1230
+ ]>;
1231
+ /**
1232
+ * Re-evaluate the deposits on some items.
1233
+ *
1234
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
1235
+ *
1236
+ * - `collection`: The collection of the items to be reevaluated.
1237
+ * - `items`: The items of the collection whose deposits will be reevaluated.
1238
+ *
1239
+ * NOTE: This exists as a best-effort function. Any items which are unknown or
1240
+ * in the case that the owner account does not have reservable funds to pay for a
1241
+ * deposit increase are ignored. Generally the owner isn't going to call this on items
1242
+ * whose existing deposit is less than the refreshed deposit as it would only cost them,
1243
+ * so it's of little consequence.
1244
+ *
1245
+ * It will still return an error in the case that the collection is unknown or the signer
1246
+ * is not permitted to call it.
1247
+ *
1248
+ * Weight: `O(items.len())`
1249
+ **/
1250
+ redeposit: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, items: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
1251
+ u32,
1252
+ Vec<u32>
1253
+ ]>;
1254
+ /**
1255
+ * Set (or reset) the acceptance of ownership for a particular account.
1256
+ *
1257
+ * Origin must be `Signed` and if `maybe_collection` is `Some`, then the signer must have a
1258
+ * provider reference.
1259
+ *
1260
+ * - `maybe_collection`: The identifier of the collection whose ownership the signer is
1261
+ * willing to accept, or if `None`, an indication that the signer is willing to accept no
1262
+ * ownership transferal.
1263
+ *
1264
+ * Emits `OwnershipAcceptanceChanged`.
1265
+ **/
1266
+ setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
1267
+ Option<u32>
1268
+ ]>;
1269
+ /**
1270
+ * Set an attribute for a collection or item.
1271
+ *
1272
+ * Origin must be Signed and must conform to the namespace ruleset:
1273
+ * - `CollectionOwner` namespace could be modified by the `collection` Admin only;
1274
+ * - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item`
1275
+ * should be set in that case;
1276
+ * - `Account(AccountId)` namespace could be modified only when the `origin` was given a
1277
+ * permission to do so;
1278
+ *
1279
+ * The funds of `origin` are reserved according to the formula:
1280
+ * `AttributeDepositBase + DepositPerByte * (key.len + value.len)` taking into
1281
+ * account any already reserved funds.
1282
+ *
1283
+ * - `collection`: The identifier of the collection whose item's metadata to set.
1284
+ * - `maybe_item`: The identifier of the item whose metadata to set.
1285
+ * - `namespace`: Attribute's namespace.
1286
+ * - `key`: The key of the attribute.
1287
+ * - `value`: The value to which to set the attribute.
1288
+ *
1289
+ * Emits `AttributeSet`.
1290
+ *
1291
+ * Weight: `O(1)`
1292
+ **/
1293
+ setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
1294
+ Pallet: any;
1295
+ } | {
1296
+ CollectionOwner: any;
1297
+ } | {
1298
+ ItemOwner: any;
1299
+ } | {
1300
+ Account: any;
1301
+ } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1302
+ u32,
1303
+ Option<u32>,
1304
+ PalletNftsAttributeNamespace,
1305
+ Bytes,
1306
+ Bytes
1307
+ ]>;
1308
+ /**
1309
+ * Set attributes for an item by providing the pre-signed approval.
1310
+ *
1311
+ * Origin must be Signed and must be an owner of the `data.item`.
1312
+ *
1313
+ * - `data`: The pre-signed approval that consists of the information about the item,
1314
+ * attributes to update and until what block number.
1315
+ * - `signature`: The signature of the `data` object.
1316
+ * - `signer`: The `data` object's signer. Should be an Admin of the collection for the
1317
+ * `CollectionOwner` namespace.
1318
+ *
1319
+ * Emits `AttributeSet` for each provided attribute.
1320
+ * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before.
1321
+ * Emits `PreSignedAttributesSet` on success.
1322
+ **/
1323
+ setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | {
1324
+ collection?: any;
1325
+ item?: any;
1326
+ attributes?: any;
1327
+ namespace?: any;
1328
+ deadline?: any;
1329
+ } | string | Uint8Array, signature: SpRuntimeMultiSignature | {
1330
+ Ed25519: any;
1331
+ } | {
1332
+ Sr25519: any;
1333
+ } | {
1334
+ Ecdsa: any;
1335
+ } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1336
+ PalletNftsPreSignedAttributes,
1337
+ SpRuntimeMultiSignature,
1338
+ AccountId32
1339
+ ]>;
1340
+ /**
1341
+ * Set the maximum number of items a collection could have.
1342
+ *
1343
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
1344
+ * the `collection`.
1345
+ *
1346
+ * - `collection`: The identifier of the collection to change.
1347
+ * - `max_supply`: The maximum number of items a collection could have.
1348
+ *
1349
+ * Emits `CollectionMaxSupplySet` event when successful.
1350
+ **/
1351
+ setCollectionMaxSupply: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maxSupply: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1352
+ u32,
1353
+ u32
1354
+ ]>;
1355
+ /**
1356
+ * Set the metadata for a collection.
1357
+ *
1358
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
1359
+ * the `collection`.
1360
+ *
1361
+ * If the origin is `Signed`, then funds of signer are reserved according to the formula:
1362
+ * `MetadataDepositBase + DepositPerByte * data.len` taking into
1363
+ * account any already reserved funds.
1364
+ *
1365
+ * - `collection`: The identifier of the item whose metadata to update.
1366
+ * - `data`: The general information of this item. Limited in length by `StringLimit`.
1367
+ *
1368
+ * Emits `CollectionMetadataSet`.
1369
+ *
1370
+ * Weight: `O(1)`
1371
+ **/
1372
+ setCollectionMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1373
+ u32,
1374
+ Bytes
1375
+ ]>;
1376
+ /**
1377
+ * Set the metadata for an item.
1378
+ *
1379
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
1380
+ * `collection`.
1381
+ *
1382
+ * If the origin is Signed, then funds of signer are reserved according to the formula:
1383
+ * `MetadataDepositBase + DepositPerByte * data.len` taking into
1384
+ * account any already reserved funds.
1385
+ *
1386
+ * - `collection`: The identifier of the collection whose item's metadata to set.
1387
+ * - `item`: The identifier of the item whose metadata to set.
1388
+ * - `data`: The general information of this item. Limited in length by `StringLimit`.
1389
+ *
1390
+ * Emits `ItemMetadataSet`.
1391
+ *
1392
+ * Weight: `O(1)`
1393
+ **/
1394
+ setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1395
+ u32,
1396
+ u32,
1397
+ Bytes
1398
+ ]>;
1399
+ /**
1400
+ * Set (or reset) the price for an item.
1401
+ *
1402
+ * Origin must be Signed and must be the owner of the `item`.
1403
+ *
1404
+ * - `collection`: The collection of the item.
1405
+ * - `item`: The item to set the price for.
1406
+ * - `price`: The price for the item. Pass `None`, to reset the price.
1407
+ * - `buyer`: Restricts the buy operation to a specific account.
1408
+ *
1409
+ * Emits `ItemPriceSet` on success if the price is not `None`.
1410
+ * Emits `ItemPriceRemoved` on success if the price is `None`.
1411
+ **/
1412
+ setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
1413
+ Id: any;
1414
+ } | {
1415
+ Index: any;
1416
+ } | {
1417
+ Raw: any;
1418
+ } | {
1419
+ Address32: any;
1420
+ } | {
1421
+ Address20: any;
1422
+ } | string) => SubmittableExtrinsic<ApiType>, [
1423
+ u32,
1424
+ u32,
1425
+ Option<u128>,
1426
+ Option<MultiAddress>
1427
+ ]>;
1428
+ /**
1429
+ * Change the Issuer, Admin and Freezer of a collection.
1430
+ *
1431
+ * Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
1432
+ * `collection`.
1433
+ *
1434
+ * Note: by setting the role to `None` only the `ForceOrigin` will be able to change it
1435
+ * after to `Some(account)`.
1436
+ *
1437
+ * - `collection`: The collection whose team should be changed.
1438
+ * - `issuer`: The new Issuer of this collection.
1439
+ * - `admin`: The new Admin of this collection.
1440
+ * - `freezer`: The new Freezer of this collection.
1441
+ *
1442
+ * Emits `TeamChanged`.
1443
+ *
1444
+ * Weight: `O(1)`
1445
+ **/
1446
+ setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
1447
+ Id: any;
1448
+ } | {
1449
+ Index: any;
1450
+ } | {
1451
+ Raw: any;
1452
+ } | {
1453
+ Address32: any;
1454
+ } | {
1455
+ Address20: any;
1456
+ } | string, admin: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
1457
+ Id: any;
1458
+ } | {
1459
+ Index: any;
1460
+ } | {
1461
+ Raw: any;
1462
+ } | {
1463
+ Address32: any;
1464
+ } | {
1465
+ Address20: any;
1466
+ } | string, freezer: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
1467
+ Id: any;
1468
+ } | {
1469
+ Index: any;
1470
+ } | {
1471
+ Raw: any;
1472
+ } | {
1473
+ Address32: any;
1474
+ } | {
1475
+ Address20: any;
1476
+ } | string) => SubmittableExtrinsic<ApiType>, [
1477
+ u32,
1478
+ Option<MultiAddress>,
1479
+ Option<MultiAddress>,
1480
+ Option<MultiAddress>
1481
+ ]>;
1482
+ /**
1483
+ * Move an item from the sender account to another.
1484
+ *
1485
+ * Origin must be Signed and the signing account must be either:
1486
+ * - the Owner of the `item`;
1487
+ * - the approved delegate for the `item` (in this case, the approval is reset).
1488
+ *
1489
+ * Arguments:
1490
+ * - `collection`: The collection of the item to be transferred.
1491
+ * - `item`: The item to be transferred.
1492
+ * - `dest`: The account to receive ownership of the item.
1493
+ *
1494
+ * Emits `Transferred`.
1495
+ *
1496
+ * Weight: `O(1)`
1497
+ **/
1498
+ transfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, dest: MultiAddress | {
1499
+ Id: any;
1500
+ } | {
1501
+ Index: any;
1502
+ } | {
1503
+ Raw: any;
1504
+ } | {
1505
+ Address32: any;
1506
+ } | {
1507
+ Address20: any;
1508
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1509
+ u32,
1510
+ u32,
1511
+ MultiAddress
1512
+ ]>;
1513
+ /**
1514
+ * Change the Owner of a collection.
1515
+ *
1516
+ * Origin must be Signed and the sender should be the Owner of the `collection`.
1517
+ *
1518
+ * - `collection`: The collection whose owner should be changed.
1519
+ * - `owner`: The new Owner of this collection. They must have called
1520
+ * `set_accept_ownership` with `collection` in order for this operation to succeed.
1521
+ *
1522
+ * Emits `OwnerChanged`.
1523
+ *
1524
+ * Weight: `O(1)`
1525
+ **/
1526
+ transferOwnership: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, newOwner: MultiAddress | {
1527
+ Id: any;
1528
+ } | {
1529
+ Index: any;
1530
+ } | {
1531
+ Raw: any;
1532
+ } | {
1533
+ Address32: any;
1534
+ } | {
1535
+ Address20: any;
1536
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1537
+ u32,
1538
+ MultiAddress
1539
+ ]>;
1540
+ /**
1541
+ * Re-allow unprivileged transfer of an item.
1542
+ *
1543
+ * Origin must be Signed and the sender should be the Freezer of the `collection`.
1544
+ *
1545
+ * - `collection`: The collection of the item to be changed.
1546
+ * - `item`: The item to become transferable.
1547
+ *
1548
+ * Emits `ItemTransferUnlocked`.
1549
+ *
1550
+ * Weight: `O(1)`
1551
+ **/
1552
+ unlockItemTransfer: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1553
+ u32,
1554
+ u32
1555
+ ]>;
1556
+ /**
1557
+ * Update mint settings.
1558
+ *
1559
+ * Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer
1560
+ * of the `collection`.
1561
+ *
1562
+ * - `collection`: The identifier of the collection to change.
1563
+ * - `mint_settings`: The new mint settings.
1564
+ *
1565
+ * Emits `CollectionMintSettingsUpdated` event when successful.
1566
+ **/
1567
+ updateMintSettings: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, mintSettings: PalletNftsMintSettings | {
1568
+ mintType?: any;
1569
+ price?: any;
1570
+ startBlock?: any;
1571
+ endBlock?: any;
1572
+ defaultItemSettings?: any;
1573
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1574
+ u32,
1575
+ PalletNftsMintSettings
1576
+ ]>;
1577
+ /**
1578
+ * Generic tx
1579
+ **/
1580
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1581
+ };
1582
+ parachainInfo: {
1583
+ /**
1584
+ * Generic tx
1585
+ **/
1586
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1587
+ };
1588
+ parachainSystem: {
1589
+ /**
1590
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1591
+ * later.
1592
+ *
1593
+ * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
1594
+ * version and name should be verified on upgrade. Since the authorization only has a hash,
1595
+ * it cannot actually perform the verification.
1596
+ *
1597
+ * This call requires Root origin.
1598
+ **/
1599
+ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array, checkVersion: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1600
+ H256,
1601
+ bool
1602
+ ]>;
1603
+ /**
1604
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
1605
+ *
1606
+ * If the authorization required a version check, this call will ensure the spec name
1607
+ * remains unchanged and that the spec version has increased.
1608
+ *
1609
+ * Note that this function will not apply the new `code`, but only attempt to schedule the
1610
+ * upgrade with the Relay Chain.
1611
+ *
1612
+ * All origins are allowed.
1613
+ **/
1614
+ enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1615
+ Bytes
1616
+ ]>;
1617
+ /**
1618
+ * Set the current validation data.
1619
+ *
1620
+ * This should be invoked exactly once per block. It will panic at the finalization
1621
+ * phase if the call was not invoked.
1622
+ *
1623
+ * The dispatch origin for this call must be `Inherent`
1624
+ *
1625
+ * As a side effect, this function upgrades the current validation function
1626
+ * if the appropriate time has come.
1627
+ **/
1628
+ setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | {
1629
+ validationData?: any;
1630
+ relayChainState?: any;
1631
+ downwardMessages?: any;
1632
+ horizontalMessages?: any;
1633
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1634
+ CumulusPrimitivesParachainInherentParachainInherentData
1635
+ ]>;
1636
+ sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1637
+ Bytes
1638
+ ]>;
1639
+ /**
1640
+ * Generic tx
1641
+ **/
1642
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1643
+ };
1644
+ parameters: {
1645
+ /**
1646
+ * Set the value of a parameter.
1647
+ *
1648
+ * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
1649
+ * deleted by setting them to `None`.
1650
+ **/
1651
+ setParameter: AugmentedSubmittable<(keyValue: StorageHubRuntimeConfigsRuntimeParamsRuntimeParameters | {
1652
+ RuntimeConfig: any;
1653
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1654
+ StorageHubRuntimeConfigsRuntimeParamsRuntimeParameters
1655
+ ]>;
1656
+ /**
1657
+ * Generic tx
1658
+ **/
1659
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1660
+ };
1661
+ paymentStreams: {
1662
+ /**
1663
+ * Dispatchable extrinsic that allows Providers to charge a payment stream from a User.
1664
+ *
1665
+ * The dispatch origin for this call must be Signed.
1666
+ * The origin must be the Provider that has at least one type of payment stream with the User.
1667
+ *
1668
+ * Parameters:
1669
+ * - `user_account`: The User Account ID that the payment stream is for.
1670
+ *
1671
+ * This extrinsic will perform the following checks and logic:
1672
+ * 1. Check that the extrinsic was signed and get the signer.
1673
+ * 2. Check that a payment stream between the signer (Provider) and the User exists
1674
+ * 3. If there is a fixed-rate payment stream:
1675
+ * 1. Get the rate of the payment stream
1676
+ * 2. Get the difference between the last charged tick number and the last chargeable tick number of the stream
1677
+ * 3. Calculate the amount to charge doing `rate * difference`
1678
+ * 4. Charge the user (if the user does not have enough funds, it gets flagged and a `UserWithoutFunds` event is emitted)
1679
+ * 5. Update the last charged tick number of the payment stream
1680
+ * 4. If there is a dynamic-rate payment stream:
1681
+ * 1. Get the amount provided by the Provider
1682
+ * 2. Get the difference between price index when the stream was last charged and the price index at the last chargeable tick
1683
+ * 3. Calculate the amount to charge doing `amount_provided * difference`
1684
+ * 4. Charge the user (if the user does not have enough funds, it gets flagged and a `UserWithoutFunds` event is emitted)
1685
+ * 5. Update the price index when the stream was last charged of the payment stream
1686
+ *
1687
+ * Emits a `PaymentStreamCharged` event when successful.
1688
+ *
1689
+ * Notes: a Provider could have both a fixed-rate and a dynamic-rate payment stream with a User. If that's the case, this extrinsic
1690
+ * will try to charge both and the amount charged will be the sum of the amounts charged for each payment stream.
1691
+ **/
1692
+ chargePaymentStreams: AugmentedSubmittable<(userAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1693
+ AccountId32
1694
+ ]>;
1695
+ /**
1696
+ * Dispatchable extrinsic that allows a user flagged as without funds long ago enough to clear this flag from its account,
1697
+ * allowing it to begin contracting and paying for services again. If there's any outstanding debt, it will be charged and cleared.
1698
+ *
1699
+ * The dispatch origin for this call must be Signed.
1700
+ * The origin must be the User that has been flagged as without funds.
1701
+ *
1702
+ * This extrinsic will perform the following checks and logic:
1703
+ * 1. Check that the extrinsic was signed and get the signer.
1704
+ * 2. Check that the user has been flagged as without funds.
1705
+ * 3. Check that the cooldown period has passed since the user was flagged as without funds.
1706
+ * 4. Check if there's any outstanding debt and charge it. This is done by:
1707
+ * a. Releasing any remaining funds held as a deposit for each payment stream.
1708
+ * b. Getting all payment streams of the user and charging them, paying the Providers for the services.
1709
+ * c. Returning the User any remaining funds.
1710
+ * d. Deleting all payment streams of the user.
1711
+ * 5. Unflag the user as without funds.
1712
+ *
1713
+ * Emits a 'UserSolvent' event when successful.
1714
+ *
1715
+ * Notes: this extrinsic iterates over all remaining payment streams of the user and charges them, so it can be expensive in terms of weight.
1716
+ * The fee to execute it should be high enough to compensate for the weight of the extrinsic, without being too high that the user
1717
+ * finds more convenient to wait for Providers to get its deposits one by one instead.
1718
+ **/
1719
+ clearInsolventFlag: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1720
+ /**
1721
+ * Dispatchable extrinsic that allows root to add a dynamic-rate payment stream from a User to a Provider.
1722
+ *
1723
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1724
+ * this extrinsic is for manual testing).
1725
+ *
1726
+ * Parameters:
1727
+ * - `provider_id`: The Provider ID that the payment stream is for.
1728
+ * - `user_account`: The User Account ID that the payment stream is for.
1729
+ * - `amount_provided`: The initial amount provided by the Provider.
1730
+ *
1731
+ * This extrinsic will perform the following checks and logic:
1732
+ * 1. Check that the extrinsic was executed by the root origin
1733
+ * 2. Check that the payment stream does not already exist
1734
+ * 3. Check that the User has enough funds to pay the deposit
1735
+ * 4. Hold the deposit from the User
1736
+ * 5. Update the Payment Streams storage to add the new payment stream
1737
+ *
1738
+ * Emits `DynamicRatePaymentStreamCreated` event when successful.
1739
+ **/
1740
+ createDynamicRatePaymentStream: AugmentedSubmittable<(providerId: H256 | string | Uint8Array, userAccount: AccountId32 | string | Uint8Array, amountProvided: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1741
+ H256,
1742
+ AccountId32,
1743
+ u64
1744
+ ]>;
1745
+ /**
1746
+ * Dispatchable extrinsic that allows root to add a fixed-rate payment stream from a User to a Provider.
1747
+ *
1748
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1749
+ * this extrinsic is for manual testing).
1750
+ *
1751
+ * Parameters:
1752
+ * - `provider_id`: The Provider ID that the payment stream is for.
1753
+ * - `user_account`: The User Account ID that the payment stream is for.
1754
+ * - `rate`: The initial rate of the payment stream.
1755
+ *
1756
+ * This extrinsic will perform the following checks and logic:
1757
+ * 1. Check that the extrinsic was executed by the root origin
1758
+ * 2. Check that the payment stream does not already exist
1759
+ * 3. Check that the User has enough funds to pay the deposit
1760
+ * 4. Hold the deposit from the User
1761
+ * 5. Update the Payment Streams storage to add the new payment stream
1762
+ *
1763
+ * Emits `FixedRatePaymentStreamCreated` event when successful.
1764
+ **/
1765
+ createFixedRatePaymentStream: AugmentedSubmittable<(providerId: H256 | string | Uint8Array, userAccount: AccountId32 | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1766
+ H256,
1767
+ AccountId32,
1768
+ u128
1769
+ ]>;
1770
+ /**
1771
+ * Dispatchable extrinsic that allows root to delete an existing dynamic-rate payment stream between a User and a Provider.
1772
+ *
1773
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1774
+ * this extrinsic is for manual testing).
1775
+ *
1776
+ * Parameters:
1777
+ * - `provider_id`: The Provider ID that the payment stream is for.
1778
+ * - `user_account`: The User Account ID that the payment stream is for.
1779
+ *
1780
+ * This extrinsic will perform the following checks and logic:
1781
+ * 1. Check that the extrinsic was executed by the root origin
1782
+ * 2. Check that the payment stream exists
1783
+ * 3. Update the Payment Streams storage to remove the payment stream
1784
+ *
1785
+ * Emits `DynamicRatePaymentStreamDeleted` event when successful.
1786
+ **/
1787
+ deleteDynamicRatePaymentStream: AugmentedSubmittable<(providerId: H256 | string | Uint8Array, userAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1788
+ H256,
1789
+ AccountId32
1790
+ ]>;
1791
+ /**
1792
+ * Dispatchable extrinsic that allows root to delete an existing fixed-rate payment stream between a User and a Provider.
1793
+ *
1794
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1795
+ * this extrinsic is for manual testing).
1796
+ *
1797
+ * Parameters:
1798
+ * - `provider_id`: The Provider ID that the payment stream is for.
1799
+ * - `user_account`: The User Account ID that the payment stream is for.
1800
+ *
1801
+ * This extrinsic will perform the following checks and logic:
1802
+ * 1. Check that the extrinsic was executed by the root origin
1803
+ * 2. Check that the payment stream exists
1804
+ * 3. Update the Payment Streams storage to remove the payment stream
1805
+ *
1806
+ * Emits `FixedRatePaymentStreamDeleted` event when successful.
1807
+ **/
1808
+ deleteFixedRatePaymentStream: AugmentedSubmittable<(providerId: H256 | string | Uint8Array, userAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1809
+ H256,
1810
+ AccountId32
1811
+ ]>;
1812
+ /**
1813
+ * Dispatchable extrinsic that allows a user flagged as without funds to pay all remaining payment streams to be able to recover
1814
+ * its deposits.
1815
+ *
1816
+ * The dispatch origin for this call must be Signed.
1817
+ * The origin must be the User that has been flagged as without funds.
1818
+ *
1819
+ * This extrinsic will perform the following checks and logic:
1820
+ * 1. Check that the extrinsic was signed and get the signer.
1821
+ * 2. Check that the user has been flagged as without funds.
1822
+ * 3. Release the user's funds that were held as a deposit for each payment stream.
1823
+ * 4. Get all payment streams of the user and charge them, paying the Providers for the services.
1824
+ * 5. Delete all payment streams of the user.
1825
+ *
1826
+ * Emits a 'UserPaidDebts' event when successful.
1827
+ *
1828
+ * Notes: this extrinsic iterates over all payment streams of the user and charges them, so it can be expensive in terms of weight.
1829
+ * The fee to execute it should be high enough to compensate for the weight of the extrinsic, without being too high that the user
1830
+ * finds more convenient to wait for Providers to get its deposits one by one instead.
1831
+ **/
1832
+ payOutstandingDebt: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1833
+ /**
1834
+ * Dispatchable extrinsic that allows root to update an existing dynamic-rate payment stream between a User and a Provider.
1835
+ *
1836
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1837
+ * this extrinsic is for manual testing).
1838
+ *
1839
+ * Parameters:
1840
+ * - `provider_id`: The Provider ID that the payment stream is for.
1841
+ * - `user_account`: The User Account ID that the payment stream is for.
1842
+ * - `new_amount_provided`: The new amount provided by the Provider.
1843
+ *
1844
+ * This extrinsic will perform the following checks and logic:
1845
+ * 1. Check that the extrinsic was executed by the root origin
1846
+ * 2. Check that the payment stream exists
1847
+ * 3. Update the Payment Streams storage to update the payment stream
1848
+ *
1849
+ * Emits `DynamicRatePaymentStreamUpdated` event when successful.
1850
+ **/
1851
+ updateDynamicRatePaymentStream: AugmentedSubmittable<(providerId: H256 | string | Uint8Array, userAccount: AccountId32 | string | Uint8Array, newAmountProvided: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1852
+ H256,
1853
+ AccountId32,
1854
+ u64
1855
+ ]>;
1856
+ /**
1857
+ * Dispatchable extrinsic that allows root to update an existing fixed-rate payment stream between a User and a Provider.
1858
+ *
1859
+ * The dispatch origin for this call must be Root (Payment streams should only be added by traits in other pallets,
1860
+ * this extrinsic is for manual testing).
1861
+ *
1862
+ * Parameters:
1863
+ * - `provider_id`: The Provider ID that the payment stream is for.
1864
+ * - `user_account`: The User Account ID that the payment stream is for.
1865
+ * - `new_rate`: The new rate of the payment stream.
1866
+ *
1867
+ * This extrinsic will perform the following checks and logic:
1868
+ * 1. Check that the extrinsic was executed by the root origin
1869
+ * 2. Check that the payment stream exists
1870
+ * 3. Update the Payment Streams storage to update the payment stream
1871
+ *
1872
+ * Emits `FixedRatePaymentStreamUpdated` event when successful.
1873
+ **/
1874
+ updateFixedRatePaymentStream: AugmentedSubmittable<(providerId: H256 | string | Uint8Array, userAccount: AccountId32 | string | Uint8Array, newRate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1875
+ H256,
1876
+ AccountId32,
1877
+ u128
1878
+ ]>;
1879
+ /**
1880
+ * Generic tx
1881
+ **/
1882
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1883
+ };
1884
+ polkadotXcm: {
1885
+ /**
1886
+ * Claims assets trapped on this pallet because of leftover assets during XCM execution.
1887
+ *
1888
+ * - `origin`: Anyone can call this extrinsic.
1889
+ * - `assets`: The exact assets that were trapped. Use the version to specify what version
1890
+ * was the latest when they were trapped.
1891
+ * - `beneficiary`: The location/account where the claimed assets will be deposited.
1892
+ **/
1893
+ claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | {
1894
+ V2: any;
1895
+ } | {
1896
+ V3: any;
1897
+ } | {
1898
+ V4: any;
1899
+ } | string | Uint8Array, beneficiary: XcmVersionedLocation | {
1900
+ V2: any;
1901
+ } | {
1902
+ V3: any;
1903
+ } | {
1904
+ V4: any;
1905
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1906
+ XcmVersionedAssets,
1907
+ XcmVersionedLocation
1908
+ ]>;
1909
+ /**
1910
+ * Execute an XCM message from a local, signed, origin.
1911
+ *
1912
+ * An event is deposited indicating whether `msg` could be executed completely or only
1913
+ * partially.
1914
+ *
1915
+ * No more than `max_weight` will be used in its attempted execution. If this is less than
1916
+ * the maximum amount of weight that the message could take to be executed, then no
1917
+ * execution attempt will be made.
1918
+ **/
1919
+ execute: AugmentedSubmittable<(message: XcmVersionedXcm | {
1920
+ V2: any;
1921
+ } | {
1922
+ V3: any;
1923
+ } | {
1924
+ V4: any;
1925
+ } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
1926
+ refTime?: any;
1927
+ proofSize?: any;
1928
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1929
+ XcmVersionedXcm,
1930
+ SpWeightsWeightV2Weight
1931
+ ]>;
1932
+ /**
1933
+ * Set a safe XCM version (the version that XCM should be encoded with if the most recent
1934
+ * version a destination can accept is unknown).
1935
+ *
1936
+ * - `origin`: Must be an origin specified by AdminOrigin.
1937
+ * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
1938
+ **/
1939
+ forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
1940
+ Option<u32>
1941
+ ]>;
1942
+ /**
1943
+ * Ask a location to notify us regarding their XCM version and any changes to it.
1944
+ *
1945
+ * - `origin`: Must be an origin specified by AdminOrigin.
1946
+ * - `location`: The location to which we should subscribe for XCM version notifications.
1947
+ **/
1948
+ forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | {
1949
+ V2: any;
1950
+ } | {
1951
+ V3: any;
1952
+ } | {
1953
+ V4: any;
1954
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1955
+ XcmVersionedLocation
1956
+ ]>;
1957
+ /**
1958
+ * Set or unset the global suspension state of the XCM executor.
1959
+ *
1960
+ * - `origin`: Must be an origin specified by AdminOrigin.
1961
+ * - `suspended`: `true` to suspend, `false` to resume.
1962
+ **/
1963
+ forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1964
+ bool
1965
+ ]>;
1966
+ /**
1967
+ * Require that a particular destination should no longer notify us regarding any XCM
1968
+ * version changes.
1969
+ *
1970
+ * - `origin`: Must be an origin specified by AdminOrigin.
1971
+ * - `location`: The location to which we are currently subscribed for XCM version
1972
+ * notifications which we no longer desire.
1973
+ **/
1974
+ forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | {
1975
+ V2: any;
1976
+ } | {
1977
+ V3: any;
1978
+ } | {
1979
+ V4: any;
1980
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1981
+ XcmVersionedLocation
1982
+ ]>;
1983
+ /**
1984
+ * Extoll that a particular destination can be communicated with through a particular
1985
+ * version of XCM.
1986
+ *
1987
+ * - `origin`: Must be an origin specified by AdminOrigin.
1988
+ * - `location`: The destination that is being described.
1989
+ * - `xcm_version`: The latest version of XCM that `location` supports.
1990
+ **/
1991
+ forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | {
1992
+ parents?: any;
1993
+ interior?: any;
1994
+ } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1995
+ StagingXcmV4Location,
1996
+ u32
1997
+ ]>;
1998
+ /**
1999
+ * Transfer some assets from the local chain to the destination chain through their local,
2000
+ * destination or remote reserve.
2001
+ *
2002
+ * `assets` must have same reserve location and may not be teleportable to `dest`.
2003
+ * - `assets` have local reserve: transfer assets to sovereign account of destination
2004
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
2005
+ * assets to `beneficiary`.
2006
+ * - `assets` have destination reserve: burn local assets and forward a notification to
2007
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
2008
+ * deposit them to `beneficiary`.
2009
+ * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
2010
+ * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
2011
+ * to mint and deposit reserve-based assets to `beneficiary`.
2012
+ *
2013
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
2014
+ * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
2015
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
2016
+ * at risk.
2017
+ *
2018
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
2019
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
2020
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
2021
+ * relay to parachain.
2022
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
2023
+ * generally be an `AccountId32` value.
2024
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
2025
+ * fee on the `dest` (and possibly reserve) chains.
2026
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
2027
+ * fees.
2028
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
2029
+ **/
2030
+ limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
2031
+ V2: any;
2032
+ } | {
2033
+ V3: any;
2034
+ } | {
2035
+ V4: any;
2036
+ } | string | Uint8Array, beneficiary: XcmVersionedLocation | {
2037
+ V2: any;
2038
+ } | {
2039
+ V3: any;
2040
+ } | {
2041
+ V4: any;
2042
+ } | string | Uint8Array, assets: XcmVersionedAssets | {
2043
+ V2: any;
2044
+ } | {
2045
+ V3: any;
2046
+ } | {
2047
+ V4: any;
2048
+ } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
2049
+ Unlimited: any;
2050
+ } | {
2051
+ Limited: any;
2052
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2053
+ XcmVersionedLocation,
2054
+ XcmVersionedLocation,
2055
+ XcmVersionedAssets,
2056
+ u32,
2057
+ XcmV3WeightLimit
2058
+ ]>;
2059
+ /**
2060
+ * Teleport some assets from the local chain to some destination chain.
2061
+ *
2062
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
2063
+ * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
2064
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
2065
+ * at risk.
2066
+ *
2067
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
2068
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
2069
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
2070
+ * relay to parachain.
2071
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
2072
+ * generally be an `AccountId32` value.
2073
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
2074
+ * fee on the `dest` chain.
2075
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
2076
+ * fees.
2077
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
2078
+ **/
2079
+ limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
2080
+ V2: any;
2081
+ } | {
2082
+ V3: any;
2083
+ } | {
2084
+ V4: any;
2085
+ } | string | Uint8Array, beneficiary: XcmVersionedLocation | {
2086
+ V2: any;
2087
+ } | {
2088
+ V3: any;
2089
+ } | {
2090
+ V4: any;
2091
+ } | string | Uint8Array, assets: XcmVersionedAssets | {
2092
+ V2: any;
2093
+ } | {
2094
+ V3: any;
2095
+ } | {
2096
+ V4: any;
2097
+ } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
2098
+ Unlimited: any;
2099
+ } | {
2100
+ Limited: any;
2101
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2102
+ XcmVersionedLocation,
2103
+ XcmVersionedLocation,
2104
+ XcmVersionedAssets,
2105
+ u32,
2106
+ XcmV3WeightLimit
2107
+ ]>;
2108
+ /**
2109
+ * Transfer some assets from the local chain to the destination chain through their local,
2110
+ * destination or remote reserve.
2111
+ *
2112
+ * `assets` must have same reserve location and may not be teleportable to `dest`.
2113
+ * - `assets` have local reserve: transfer assets to sovereign account of destination
2114
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
2115
+ * assets to `beneficiary`.
2116
+ * - `assets` have destination reserve: burn local assets and forward a notification to
2117
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
2118
+ * deposit them to `beneficiary`.
2119
+ * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
2120
+ * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
2121
+ * to mint and deposit reserve-based assets to `beneficiary`.
2122
+ *
2123
+ * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.**
2124
+ *
2125
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
2126
+ * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
2127
+ * with all fees taken as needed from the asset.
2128
+ *
2129
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
2130
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
2131
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
2132
+ * relay to parachain.
2133
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
2134
+ * generally be an `AccountId32` value.
2135
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
2136
+ * fee on the `dest` (and possibly reserve) chains.
2137
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
2138
+ * fees.
2139
+ **/
2140
+ reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
2141
+ V2: any;
2142
+ } | {
2143
+ V3: any;
2144
+ } | {
2145
+ V4: any;
2146
+ } | string | Uint8Array, beneficiary: XcmVersionedLocation | {
2147
+ V2: any;
2148
+ } | {
2149
+ V3: any;
2150
+ } | {
2151
+ V4: any;
2152
+ } | string | Uint8Array, assets: XcmVersionedAssets | {
2153
+ V2: any;
2154
+ } | {
2155
+ V3: any;
2156
+ } | {
2157
+ V4: any;
2158
+ } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2159
+ XcmVersionedLocation,
2160
+ XcmVersionedLocation,
2161
+ XcmVersionedAssets,
2162
+ u32
2163
+ ]>;
2164
+ send: AugmentedSubmittable<(dest: XcmVersionedLocation | {
2165
+ V2: any;
2166
+ } | {
2167
+ V3: any;
2168
+ } | {
2169
+ V4: any;
2170
+ } | string | Uint8Array, message: XcmVersionedXcm | {
2171
+ V2: any;
2172
+ } | {
2173
+ V3: any;
2174
+ } | {
2175
+ V4: any;
2176
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2177
+ XcmVersionedLocation,
2178
+ XcmVersionedXcm
2179
+ ]>;
2180
+ /**
2181
+ * Teleport some assets from the local chain to some destination chain.
2182
+ *
2183
+ * **This function is deprecated: Use `limited_teleport_assets` instead.**
2184
+ *
2185
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
2186
+ * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
2187
+ * with all fees taken as needed from the asset.
2188
+ *
2189
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
2190
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
2191
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
2192
+ * relay to parachain.
2193
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
2194
+ * generally be an `AccountId32` value.
2195
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
2196
+ * fee on the `dest` chain.
2197
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
2198
+ * fees.
2199
+ **/
2200
+ teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
2201
+ V2: any;
2202
+ } | {
2203
+ V3: any;
2204
+ } | {
2205
+ V4: any;
2206
+ } | string | Uint8Array, beneficiary: XcmVersionedLocation | {
2207
+ V2: any;
2208
+ } | {
2209
+ V3: any;
2210
+ } | {
2211
+ V4: any;
2212
+ } | string | Uint8Array, assets: XcmVersionedAssets | {
2213
+ V2: any;
2214
+ } | {
2215
+ V3: any;
2216
+ } | {
2217
+ V4: any;
2218
+ } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2219
+ XcmVersionedLocation,
2220
+ XcmVersionedLocation,
2221
+ XcmVersionedAssets,
2222
+ u32
2223
+ ]>;
2224
+ /**
2225
+ * Transfer some assets from the local chain to the destination chain through their local,
2226
+ * destination or remote reserve, or through teleports.
2227
+ *
2228
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
2229
+ * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
2230
+ * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
2231
+ * operation will fail and the sent assets may be at risk.
2232
+ *
2233
+ * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
2234
+ * to `dest`, no limitations imposed on `fees`.
2235
+ * - for local reserve: transfer assets to sovereign account of destination chain and
2236
+ * forward a notification XCM to `dest` to mint and deposit reserve-based assets to
2237
+ * `beneficiary`.
2238
+ * - for destination reserve: burn local assets and forward a notification to `dest` chain
2239
+ * to withdraw the reserve assets from this chain's sovereign account and deposit them
2240
+ * to `beneficiary`.
2241
+ * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves
2242
+ * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint
2243
+ * and deposit reserve-based assets to `beneficiary`.
2244
+ * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport
2245
+ * assets and deposit them to `beneficiary`.
2246
+ *
2247
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
2248
+ * - `dest`: Destination context for the assets. Will typically be `X2(Parent,
2249
+ * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send
2250
+ * from relay to parachain.
2251
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
2252
+ * generally be an `AccountId32` value.
2253
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
2254
+ * fee on the `dest` (and possibly reserve) chains.
2255
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
2256
+ * fees.
2257
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
2258
+ **/
2259
+ transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
2260
+ V2: any;
2261
+ } | {
2262
+ V3: any;
2263
+ } | {
2264
+ V4: any;
2265
+ } | string | Uint8Array, beneficiary: XcmVersionedLocation | {
2266
+ V2: any;
2267
+ } | {
2268
+ V3: any;
2269
+ } | {
2270
+ V4: any;
2271
+ } | string | Uint8Array, assets: XcmVersionedAssets | {
2272
+ V2: any;
2273
+ } | {
2274
+ V3: any;
2275
+ } | {
2276
+ V4: any;
2277
+ } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
2278
+ Unlimited: any;
2279
+ } | {
2280
+ Limited: any;
2281
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2282
+ XcmVersionedLocation,
2283
+ XcmVersionedLocation,
2284
+ XcmVersionedAssets,
2285
+ u32,
2286
+ XcmV3WeightLimit
2287
+ ]>;
2288
+ /**
2289
+ * Transfer assets from the local chain to the destination chain using explicit transfer
2290
+ * types for assets and fees.
2291
+ *
2292
+ * `assets` must have same reserve location or may be teleportable to `dest`. Caller must
2293
+ * provide the `assets_transfer_type` to be used for `assets`:
2294
+ * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination
2295
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
2296
+ * assets to `beneficiary`.
2297
+ * - `TransferType::DestinationReserve`: burn local assets and forward a notification to
2298
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
2299
+ * deposit them to `beneficiary`.
2300
+ * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`
2301
+ * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another
2302
+ * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically
2303
+ * the remote `reserve` is Asset Hub.
2304
+ * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to
2305
+ * mint/teleport assets and deposit them to `beneficiary`.
2306
+ *
2307
+ * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to
2308
+ * buy execution using transferred `assets` identified by `remote_fees_id`.
2309
+ * Make sure enough of the specified `remote_fees_id` asset is included in the given list
2310
+ * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight
2311
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
2312
+ * at risk.
2313
+ *
2314
+ * `remote_fees_id` may use different transfer type than rest of `assets` and can be
2315
+ * specified through `fees_transfer_type`.
2316
+ *
2317
+ * The caller needs to specify what should happen to the transferred assets once they reach
2318
+ * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which
2319
+ * contains the instructions to execute on `dest` as a final step.
2320
+ * This is usually as simple as:
2321
+ * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,
2322
+ * but could be something more exotic like sending the `assets` even further.
2323
+ *
2324
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
2325
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
2326
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
2327
+ * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from
2328
+ * parachain across a bridge to another ecosystem destination.
2329
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
2330
+ * fee on the `dest` (and possibly reserve) chains.
2331
+ * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
2332
+ * - `remote_fees_id`: One of the included `assets` to be used to pay fees.
2333
+ * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
2334
+ * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
2335
+ * transfer, which also determines what happens to the assets on the destination chain.
2336
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
2337
+ **/
2338
+ transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | {
2339
+ V2: any;
2340
+ } | {
2341
+ V3: any;
2342
+ } | {
2343
+ V4: any;
2344
+ } | string | Uint8Array, assets: XcmVersionedAssets | {
2345
+ V2: any;
2346
+ } | {
2347
+ V3: any;
2348
+ } | {
2349
+ V4: any;
2350
+ } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | {
2351
+ Teleport: any;
2352
+ } | {
2353
+ LocalReserve: any;
2354
+ } | {
2355
+ DestinationReserve: any;
2356
+ } | {
2357
+ RemoteReserve: any;
2358
+ } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | {
2359
+ V3: any;
2360
+ } | {
2361
+ V4: any;
2362
+ } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | {
2363
+ Teleport: any;
2364
+ } | {
2365
+ LocalReserve: any;
2366
+ } | {
2367
+ DestinationReserve: any;
2368
+ } | {
2369
+ RemoteReserve: any;
2370
+ } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | {
2371
+ V2: any;
2372
+ } | {
2373
+ V3: any;
2374
+ } | {
2375
+ V4: any;
2376
+ } | string | Uint8Array, weightLimit: XcmV3WeightLimit | {
2377
+ Unlimited: any;
2378
+ } | {
2379
+ Limited: any;
2380
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2381
+ XcmVersionedLocation,
2382
+ XcmVersionedAssets,
2383
+ StagingXcmExecutorAssetTransferTransferType,
2384
+ XcmVersionedAssetId,
2385
+ StagingXcmExecutorAssetTransferTransferType,
2386
+ XcmVersionedXcm,
2387
+ XcmV3WeightLimit
2388
+ ]>;
2389
+ /**
2390
+ * Generic tx
2391
+ **/
2392
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2393
+ };
2394
+ proofsDealer: {
2395
+ /**
2396
+ * Introduce a new challenge.
2397
+ *
2398
+ * This function allows anyone to add a new challenge to the `ChallengesQueue`.
2399
+ * The challenge will be dispatched in the coming blocks.
2400
+ * Users are charged a small fee for submitting a challenge, which
2401
+ * goes to the Treasury.
2402
+ **/
2403
+ challenge: AugmentedSubmittable<(key: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2404
+ H256
2405
+ ]>;
2406
+ /**
2407
+ * Initialise a Provider's challenge cycle.
2408
+ *
2409
+ * Only callable by sudo.
2410
+ *
2411
+ * Sets the last tick the Provider submitted a proof for to the current tick, and sets the
2412
+ * deadline for submitting a proof to the current tick + the Provider's period + the tolerance.
2413
+ **/
2414
+ forceInitialiseChallengeCycle: AugmentedSubmittable<(provider: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2415
+ H256
2416
+ ]>;
2417
+ /**
2418
+ * Set the [`ChallengesTickerPaused`] to `true` or `false`.
2419
+ *
2420
+ * Only callable by sudo.
2421
+ **/
2422
+ setPaused: AugmentedSubmittable<(paused: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2423
+ bool
2424
+ ]>;
2425
+ /**
2426
+ * For a Provider to submit a proof.
2427
+ *
2428
+ * Checks that `provider` is a registered Provider. If none
2429
+ * is provided, the proof submitter is considered to be the Provider.
2430
+ * Relies on a Providers pallet to get the root for the Provider.
2431
+ * Validates that the proof corresponds to a challenge that was made in the past,
2432
+ * by checking the `TickToChallengesSeed` StorageMap. The challenge tick that the
2433
+ * Provider should have submitted a proof is calculated based on the last tick they
2434
+ * submitted a proof for ([`LastTickProviderSubmittedAProofFor`]), and the proving period for
2435
+ * that Provider, which is a function of their stake.
2436
+ * This extrinsic also checks that there hasn't been a checkpoint challenge round
2437
+ * in between the last time the Provider submitted a proof for and the tick
2438
+ * for which the proof is being submitted. If there has been, the Provider is
2439
+ * subject to slashing.
2440
+ *
2441
+ * If valid:
2442
+ * - Pushes forward the Provider in the [`TickToProvidersDeadlines`] StorageMap a number
2443
+ * of ticks corresponding to the stake of the Provider.
2444
+ * - Registers this tick as the last tick in which the Provider submitted a proof.
2445
+ *
2446
+ * Execution of this extrinsic should be refunded if the proof is valid.
2447
+ **/
2448
+ submitProof: AugmentedSubmittable<(proof: PalletProofsDealerProof | {
2449
+ forestProof?: any;
2450
+ keyProofs?: any;
2451
+ } | string | Uint8Array, provider: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [
2452
+ PalletProofsDealerProof,
2453
+ Option<H256>
2454
+ ]>;
2455
+ /**
2456
+ * Generic tx
2457
+ **/
2458
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2459
+ };
2460
+ providers: {
2461
+ /**
2462
+ * Dispatchable extrinsic only callable by an MSP that allows it to add a value proposition to its service
2463
+ *
2464
+ * The dispatch origin for this call must be Signed.
2465
+ * The origin must be the account that wants to add a value proposition.
2466
+ *
2467
+ * Parameters:
2468
+ * - `new_value_prop`: The value proposition that the MSP wants to add to its service.
2469
+ *
2470
+ * This extrinsic will perform the following checks and logic:
2471
+ * 1. Check that the extrinsic was signed and get the signer.
2472
+ * 2. Check that the signer is registered as a MSP
2473
+ * 3. Check that the MSP has not reached the maximum amount of value propositions
2474
+ * 4. Check that the value proposition is valid (size and any other relevant checks)
2475
+ * 5. Update the MSPs storage to add the value proposition (with its identifier)
2476
+ *
2477
+ * Emits `ValuePropAdded` event when successful.
2478
+ **/
2479
+ addValueProp: AugmentedSubmittable<(newValueProp: PalletStorageProvidersValueProposition | {
2480
+ identifier?: any;
2481
+ dataLimit?: any;
2482
+ protocols?: any;
2483
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2484
+ PalletStorageProvidersValueProposition
2485
+ ]>;
2486
+ /**
2487
+ * Dispatchable extrinsic that allows users to sign off as a Backup Storage Provider.
2488
+ *
2489
+ * The dispatch origin for this call must be Signed.
2490
+ * The origin must be the account that wants to sign off as a Backup Storage Provider.
2491
+ *
2492
+ * This extrinsic will perform the following checks and logic:
2493
+ * 1. Check that the extrinsic was signed and get the signer.
2494
+ * 2. Check that the signer is registered as a BSP
2495
+ * 3. Check that the BSP has no storage assigned to it
2496
+ * 4. Update the BSPs storage, removing the signer as an BSP
2497
+ * 5. Update the total capacity of all BSPs, removing the capacity of the signer
2498
+ * 6. Return the deposit to the signer
2499
+ * 7. Decrement the storage that holds total amount of BSPs currently in the system
2500
+ *
2501
+ * Emits `BspSignOffSuccess` event when successful.
2502
+ **/
2503
+ bspSignOff: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2504
+ /**
2505
+ * Dispatchable extrinsic that allows a user with a pending Sign Up Request to cancel it, getting the deposit back.
2506
+ *
2507
+ * The dispatch origin for this call must be Signed.
2508
+ * The origin must be the account that requested to sign up as a Storage Provider.
2509
+ *
2510
+ * This extrinsic will perform the following checks and logic:
2511
+ * 1. Check that the extrinsic was signed and get the signer.
2512
+ * 2. Check that the signer has requested to sign up as a SP
2513
+ * 3. Delete the request from the Sign Up Requests storage
2514
+ * 4. Return the deposit to the signer
2515
+ *
2516
+ * Emits `SignUpRequestCanceled` event when successful.
2517
+ **/
2518
+ cancelSignUp: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2519
+ /**
2520
+ * Dispatchable extrinsic that allows users to change their amount of stored data
2521
+ *
2522
+ * The dispatch origin for this call must be Signed.
2523
+ * The origin must be the account that wants to change its capacity.
2524
+ *
2525
+ * Parameters:
2526
+ * - `new_capacity`: The new total amount of data that the Storage Provider wants to be able to store.
2527
+ *
2528
+ * This extrinsic will perform the following checks and logic:
2529
+ * 1. Check that the extrinsic was signed and get the signer.
2530
+ * 2. Check that the signer is registered as a SP
2531
+ * 3. Check that enough time has passed since the last time the SP changed its capacity
2532
+ * 4. Check that the new capacity is greater than the minimum required by the runtime
2533
+ * 5. Check that the new capacity is greater than the data used by this SP
2534
+ * 6. Calculate the new deposit needed for this new capacity
2535
+ * 7. Check to see if the new deposit needed is greater or less than the current deposit
2536
+ * a. If the new deposit is greater than the current deposit:
2537
+ * i. Check that the signer has enough funds to pay this extra deposit
2538
+ * ii. Hold the extra deposit from the signer
2539
+ * b. If the new deposit is less than the current deposit, return the held difference to the signer
2540
+ * 7. Update the SPs storage to change the total data
2541
+ * 8. If user is a BSP, update the total capacity of the network (sum of all capacities of BSPs)
2542
+ *
2543
+ * Emits `CapacityChanged` event when successful.
2544
+ **/
2545
+ changeCapacity: AugmentedSubmittable<(newCapacity: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2546
+ u64
2547
+ ]>;
2548
+ /**
2549
+ * Dispatchable extrinsic that allows users to confirm their sign up as a Storage Provider, either MSP or BSP.
2550
+ *
2551
+ * The dispatch origin for this call must be Signed.
2552
+ * The origin must be the account that requested to sign up as a Storage Provider, except when providing a
2553
+ * `provider_account` parameter, in which case the origin can be any account.
2554
+ *
2555
+ * Parameters:
2556
+ * - `provider_account`: The account that requested to sign up as a Storage Provider. If not provided, the signer
2557
+ * will be considered the account that requested to sign up.
2558
+ *
2559
+ * This extrinsic will perform the following checks and logic:
2560
+ * 1. Check that the extrinsic was signed
2561
+ * 2. Check that the account received has requested to register as a SP
2562
+ * 3. Check that the current randomness is sufficiently fresh to be used as a salt for that request
2563
+ * 4. Check that the request has not expired
2564
+ * 5. Register the signer as a MSP or BSP with the data provided in the request
2565
+ *
2566
+ * Emits `MspSignUpSuccess` or `BspSignUpSuccess` event when successful, depending on the type of sign up.
2567
+ *
2568
+ * Notes:
2569
+ * - This extrinsic could be called by the user itself or by a third party
2570
+ * - The deposit that the user has to pay to register as a SP is held when the user requests to register as a SP
2571
+ * - If this extrinsic is successful, it will be free for the caller, to incentive state debloating
2572
+ **/
2573
+ confirmSignUp: AugmentedSubmittable<(providerAccount: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [
2574
+ Option<AccountId32>
2575
+ ]>;
2576
+ /**
2577
+ * Dispatchable extrinsic that allows to forcefully and automatically sing up a Backup Storage Provider.
2578
+ *
2579
+ * The dispatch origin for this call must be Root.
2580
+ * The `who` parameter is the account that wants to sign up as a Backup Storage Provider.
2581
+ *
2582
+ * Funds proportional to the capacity requested are reserved (held) from the account passed as the `who` parameter.
2583
+ *
2584
+ * Parameters:
2585
+ * - `who`: The account that wants to sign up as a Backup Storage Provider.
2586
+ * - `bsp_id`: The Backup Storage Provider ID that the account passed as the `who` parameter is requesting to sign up as.
2587
+ * - `capacity`: The total amount of data that the Backup Storage Provider will be able to store.
2588
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2589
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2590
+ *
2591
+ * This extrinsic will perform the steps of:
2592
+ * 1. [request_bsp_sign_up](crate::dispatchables::request_bsp_sign_up)
2593
+ * 2. [confirm_sign_up](crate::dispatchables::confirm_sign_up)
2594
+ *
2595
+ * Emits `BspRequestSignUpSuccess` and `BspSignUpSuccess` events when successful.
2596
+ **/
2597
+ forceBspSignUp: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, bspId: H256 | string | Uint8Array, capacity: u64 | AnyNumber | Uint8Array, multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[], paymentAccount: AccountId32 | string | Uint8Array, weight: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
2598
+ AccountId32,
2599
+ H256,
2600
+ u64,
2601
+ Vec<Bytes>,
2602
+ AccountId32,
2603
+ Option<u32>
2604
+ ]>;
2605
+ /**
2606
+ * Dispatchable extrinsic that allows to forcefully and automatically sing up a Main Storage Provider.
2607
+ *
2608
+ * The dispatch origin for this call must be Root.
2609
+ * The `who` parameter is the account that wants to sign up as a Main Storage Provider.
2610
+ *
2611
+ * Funds proportional to the capacity requested are reserved (held) from the account passed as the `who` parameter.
2612
+ *
2613
+ * Parameters:
2614
+ * - `who`: The account that wants to sign up as a Main Storage Provider.
2615
+ * - `msp_id`: The Main Storage Provider ID that the account passed as the `who` parameter is requesting to sign up as.
2616
+ * - `capacity`: The total amount of data that the Main Storage Provider will be able to store.
2617
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2618
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2619
+ * - `value_prop`: The value proposition that the signer will provide as a Main Storage Provider to
2620
+ * users and wants to register on-chain. It could be data limits, communication protocols to access the user's
2621
+ * data, and more.
2622
+ *
2623
+ * This extrinsic will perform the steps of:
2624
+ * 1. [request_msp_sign_up](crate::dispatchables::request_msp_sign_up)
2625
+ * 2. [confirm_sign_up](crate::dispatchables::confirm_sign_up)
2626
+ *
2627
+ * Emits `MspRequestSignUpSuccess` and `MspSignUpSuccess` events when successful.
2628
+ **/
2629
+ forceMspSignUp: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, mspId: H256 | string | Uint8Array, capacity: u64 | AnyNumber | Uint8Array, multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[], valueProp: PalletStorageProvidersValueProposition | {
2630
+ identifier?: any;
2631
+ dataLimit?: any;
2632
+ protocols?: any;
2633
+ } | string | Uint8Array, paymentAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2634
+ AccountId32,
2635
+ H256,
2636
+ u64,
2637
+ Vec<Bytes>,
2638
+ PalletStorageProvidersValueProposition,
2639
+ AccountId32
2640
+ ]>;
2641
+ /**
2642
+ * Dispatchable extrinsic that allows users to sign off as a Main Storage Provider.
2643
+ *
2644
+ * The dispatch origin for this call must be Signed.
2645
+ * The origin must be the account that wants to sign off as a Main Storage Provider.
2646
+ *
2647
+ * This extrinsic will perform the following checks and logic:
2648
+ * 1. Check that the extrinsic was signed and get the signer.
2649
+ * 2. Check that the signer is registered as a MSP
2650
+ * 3. Check that the MSP has no storage assigned to it (no buckets or data used by it)
2651
+ * 4. Update the MSPs storage, removing the signer as an MSP
2652
+ * 5. Return the deposit to the signer
2653
+ * 6. Decrement the storage that holds total amount of MSPs currently in the system
2654
+ *
2655
+ * Emits `MspSignOffSuccess` event when successful.
2656
+ **/
2657
+ mspSignOff: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2658
+ /**
2659
+ * Dispatchable extrinsic that allows users to sign up as a Backup Storage Provider.
2660
+ *
2661
+ * The dispatch origin for this call must be Signed.
2662
+ * The origin must be the account that wants to sign up as a Backup Storage Provider.
2663
+ *
2664
+ * Funds proportional to the capacity requested are reserved (held) from the account.
2665
+ *
2666
+ * Parameters:
2667
+ * - `capacity`: The total amount of data that the Backup Storage Provider will be able to store.
2668
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2669
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2670
+ *
2671
+ * This extrinsic will perform the following checks and logic:
2672
+ * 1. Check that the extrinsic was signed and get the signer.
2673
+ * 2. Check that the signer is not already registered as either a MSP or BSP
2674
+ * 3. Check that the multiaddress is valid
2675
+ * 4. Check that the data to be stored is greater than the minimum required by the runtime
2676
+ * 5. Calculate how much deposit will the signer have to pay using the amount of data it wants to store
2677
+ * 6. Check that the signer has enough funds to pay the deposit
2678
+ * 7. Hold the deposit from the signer
2679
+ * 8. Update the Sign Up Requests storage to add the signer as requesting to sign up as a BSP
2680
+ *
2681
+ * Emits `BspRequestSignUpSuccess` event when successful.
2682
+ **/
2683
+ requestBspSignUp: AugmentedSubmittable<(capacity: u64 | AnyNumber | Uint8Array, multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[], paymentAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2684
+ u64,
2685
+ Vec<Bytes>,
2686
+ AccountId32
2687
+ ]>;
2688
+ /**
2689
+ * Dispatchable extrinsic that allows users to request to sign up as a Main Storage Provider.
2690
+ *
2691
+ * The dispatch origin for this call must be Signed.
2692
+ * The origin must be the account that wants to sign up as a Main Storage Provider.
2693
+ *
2694
+ * Funds proportional to the capacity requested are reserved (held) from the account.
2695
+ *
2696
+ * Parameters:
2697
+ * - `capacity`: The total amount of data that the Main Storage Provider will be able to store.
2698
+ * - `multiaddresses`: The vector of multiaddresses that the signer wants to register (according to the
2699
+ * [Multiaddr spec](https://github.com/multiformats/multiaddr))
2700
+ * - `value_prop`: The value proposition that the signer will provide as a Main Storage Provider to
2701
+ * users and wants to register on-chain. It could be data limits, communication protocols to access the user's
2702
+ * data, and more.
2703
+ *
2704
+ * This extrinsic will perform the following checks and logic:
2705
+ * 1. Check that the extrinsic was signed and get the signer.
2706
+ * 2. Check that the signer is not already registered as either a MSP or BSP
2707
+ * 3. Check that the multiaddress is valid
2708
+ * 4. Check that the data to be stored is greater than the minimum required by the runtime.
2709
+ * 5. Calculate how much deposit will the signer have to pay using the amount of data it wants to store
2710
+ * 6. Check that the signer has enough funds to pay the deposit
2711
+ * 7. Hold the deposit from the signer
2712
+ * 8. Update the Sign Up Requests storage to add the signer as requesting to sign up as a MSP
2713
+ *
2714
+ * Emits `MspRequestSignUpSuccess` event when successful.
2715
+ **/
2716
+ requestMspSignUp: AugmentedSubmittable<(capacity: u64 | AnyNumber | Uint8Array, multiaddresses: Vec<Bytes> | (Bytes | string | Uint8Array)[], valueProp: PalletStorageProvidersValueProposition | {
2717
+ identifier?: any;
2718
+ dataLimit?: any;
2719
+ protocols?: any;
2720
+ } | string | Uint8Array, paymentAccount: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2721
+ u64,
2722
+ Vec<Bytes>,
2723
+ PalletStorageProvidersValueProposition,
2724
+ AccountId32
2725
+ ]>;
2726
+ /**
2727
+ * Dispatchable extrinsic to slash a _slashable_ Storage Provider.
2728
+ *
2729
+ * A Storage Provider is _slashable_ iff it has failed to respond to challenges for providing proofs of storage.
2730
+ * In the context of the StorageHub protocol, the proofs-dealer pallet marks a Storage Provider as _slashable_ when it fails to respond to challenges.
2731
+ **/
2732
+ slash: AugmentedSubmittable<(providerId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2733
+ H256
2734
+ ]>;
2735
+ /**
2736
+ * Generic tx
2737
+ **/
2738
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2739
+ };
2740
+ randomness: {
2741
+ /**
2742
+ * This inherent that must be included (DispatchClass::Mandatory) at each block saves the latest randomness available from the
2743
+ * relay chain into a variable that can then be used as a seed for commitments that happened during
2744
+ * the previous relay chain epoch
2745
+ **/
2746
+ setBabeRandomness: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2747
+ /**
2748
+ * Generic tx
2749
+ **/
2750
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2751
+ };
2752
+ session: {
2753
+ /**
2754
+ * Removes any session key(s) of the function caller.
2755
+ *
2756
+ * This doesn't take effect until the next session.
2757
+ *
2758
+ * The dispatch origin of this function must be Signed and the account must be either be
2759
+ * convertible to a validator ID using the chain's typical addressing system (this usually
2760
+ * means being a controller account) or directly convertible into a validator ID (which
2761
+ * usually means being a stash account).
2762
+ *
2763
+ * ## Complexity
2764
+ * - `O(1)` in number of key types. Actual cost depends on the number of length of
2765
+ * `T::Keys::key_ids()` which is fixed.
2766
+ **/
2767
+ purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2768
+ /**
2769
+ * Sets the session key(s) of the function caller to `keys`.
2770
+ * Allows an account to set its session key prior to becoming a validator.
2771
+ * This doesn't take effect until the next session.
2772
+ *
2773
+ * The dispatch origin of this function must be signed.
2774
+ *
2775
+ * ## Complexity
2776
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
2777
+ * fixed.
2778
+ **/
2779
+ setKeys: AugmentedSubmittable<(keys: StorageHubRuntimeSessionKeys | {
2780
+ aura?: any;
2781
+ } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2782
+ StorageHubRuntimeSessionKeys,
2783
+ Bytes
2784
+ ]>;
2785
+ /**
2786
+ * Generic tx
2787
+ **/
2788
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2789
+ };
2790
+ sudo: {
2791
+ /**
2792
+ * Permanently removes the sudo key.
2793
+ *
2794
+ * **This cannot be un-done.**
2795
+ **/
2796
+ removeKey: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2797
+ /**
2798
+ * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
2799
+ * key.
2800
+ **/
2801
+ setKey: AugmentedSubmittable<(updated: MultiAddress | {
2802
+ Id: any;
2803
+ } | {
2804
+ Index: any;
2805
+ } | {
2806
+ Raw: any;
2807
+ } | {
2808
+ Address32: any;
2809
+ } | {
2810
+ Address20: any;
2811
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2812
+ MultiAddress
2813
+ ]>;
2814
+ /**
2815
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
2816
+ **/
2817
+ sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2818
+ Call
2819
+ ]>;
2820
+ /**
2821
+ * Authenticates the sudo key and dispatches a function call with `Signed` origin from
2822
+ * a given account.
2823
+ *
2824
+ * The dispatch origin for this call must be _Signed_.
2825
+ **/
2826
+ sudoAs: AugmentedSubmittable<(who: MultiAddress | {
2827
+ Id: any;
2828
+ } | {
2829
+ Index: any;
2830
+ } | {
2831
+ Raw: any;
2832
+ } | {
2833
+ Address32: any;
2834
+ } | {
2835
+ Address20: any;
2836
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2837
+ MultiAddress,
2838
+ Call
2839
+ ]>;
2840
+ /**
2841
+ * Authenticates the sudo key and dispatches a function call with `Root` origin.
2842
+ * This function does not check the weight of the call, and instead allows the
2843
+ * Sudo user to specify the weight of the call.
2844
+ *
2845
+ * The dispatch origin for this call must be _Signed_.
2846
+ **/
2847
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
2848
+ refTime?: any;
2849
+ proofSize?: any;
2850
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2851
+ Call,
2852
+ SpWeightsWeightV2Weight
2853
+ ]>;
2854
+ /**
2855
+ * Generic tx
2856
+ **/
2857
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2858
+ };
2859
+ system: {
2860
+ /**
2861
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
2862
+ *
2863
+ * If the authorization required a version check, this call will ensure the spec name
2864
+ * remains unchanged and that the spec version has increased.
2865
+ *
2866
+ * Depending on the runtime's `OnSetCode` configuration, this function may directly apply
2867
+ * the new `code` in the same block or attempt to schedule the upgrade.
2868
+ *
2869
+ * All origins are allowed.
2870
+ **/
2871
+ applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2872
+ Bytes
2873
+ ]>;
2874
+ /**
2875
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
2876
+ * later.
2877
+ *
2878
+ * This call requires Root origin.
2879
+ **/
2880
+ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2881
+ H256
2882
+ ]>;
2883
+ /**
2884
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
2885
+ * later.
2886
+ *
2887
+ * WARNING: This authorizes an upgrade that will take place without any safety checks, for
2888
+ * example that the spec name remains the same and that the version number increases. Not
2889
+ * recommended for normal use. Use `authorize_upgrade` instead.
2890
+ *
2891
+ * This call requires Root origin.
2892
+ **/
2893
+ authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2894
+ H256
2895
+ ]>;
2896
+ /**
2897
+ * Kill all storage items with a key that starts with the given prefix.
2898
+ *
2899
+ * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
2900
+ * the prefix we are removing to accurately calculate the weight of this function.
2901
+ **/
2902
+ killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2903
+ Bytes,
2904
+ u32
2905
+ ]>;
2906
+ /**
2907
+ * Kill some items from storage.
2908
+ **/
2909
+ killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
2910
+ Vec<Bytes>
2911
+ ]>;
2912
+ /**
2913
+ * Make some on-chain remark.
2914
+ *
2915
+ * Can be executed by every `origin`.
2916
+ **/
2917
+ remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2918
+ Bytes
2919
+ ]>;
2920
+ /**
2921
+ * Make some on-chain remark and emit event.
2922
+ **/
2923
+ remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2924
+ Bytes
2925
+ ]>;
2926
+ /**
2927
+ * Set the new runtime code.
2928
+ **/
2929
+ setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2930
+ Bytes
2931
+ ]>;
2932
+ /**
2933
+ * Set the new runtime code without doing any checks of the given `code`.
2934
+ *
2935
+ * Note that runtime upgrades will not run if this is called with a not-increasing spec
2936
+ * version!
2937
+ **/
2938
+ setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2939
+ Bytes
2940
+ ]>;
2941
+ /**
2942
+ * Set the number of pages in the WebAssembly environment's heap.
2943
+ **/
2944
+ setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2945
+ u64
2946
+ ]>;
2947
+ /**
2948
+ * Set some items of storage.
2949
+ **/
2950
+ setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array][]) => SubmittableExtrinsic<ApiType>, [
2951
+ Vec<ITuple<[Bytes, Bytes]>>
2952
+ ]>;
2953
+ /**
2954
+ * Generic tx
2955
+ **/
2956
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2957
+ };
2958
+ timestamp: {
2959
+ /**
2960
+ * Set the current time.
2961
+ *
2962
+ * This call should be invoked exactly once per block. It will panic at the finalization
2963
+ * phase, if this call hasn't been invoked by that time.
2964
+ *
2965
+ * The timestamp should be greater than the previous one by the amount specified by
2966
+ * [`Config::MinimumPeriod`].
2967
+ *
2968
+ * The dispatch origin for this call must be _None_.
2969
+ *
2970
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
2971
+ * that changing the complexity of this call could result exhausting the resources in a
2972
+ * block to execute any other calls.
2973
+ *
2974
+ * ## Complexity
2975
+ * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
2976
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
2977
+ * `on_finalize`)
2978
+ * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
2979
+ **/
2980
+ set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2981
+ Compact<u64>
2982
+ ]>;
2983
+ /**
2984
+ * Generic tx
2985
+ **/
2986
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2987
+ };
2988
+ xcmpQueue: {
2989
+ /**
2990
+ * Resumes all XCM executions for the XCMP queue.
2991
+ *
2992
+ * Note that this function doesn't change the status of the in/out bound channels.
2993
+ *
2994
+ * - `origin`: Must pass `ControllerOrigin`.
2995
+ **/
2996
+ resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2997
+ /**
2998
+ * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.
2999
+ *
3000
+ * - `origin`: Must pass `ControllerOrigin`.
3001
+ **/
3002
+ suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3003
+ /**
3004
+ * Overwrites the number of pages which must be in the queue after which we drop any
3005
+ * further messages from the channel.
3006
+ *
3007
+ * - `origin`: Must pass `Root`.
3008
+ * - `new`: Desired value for `QueueConfigData.drop_threshold`
3009
+ **/
3010
+ updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3011
+ u32
3012
+ ]>;
3013
+ /**
3014
+ * Overwrites the number of pages which the queue must be reduced to before it signals
3015
+ * that message sending may recommence after it has been suspended.
3016
+ *
3017
+ * - `origin`: Must pass `Root`.
3018
+ * - `new`: Desired value for `QueueConfigData.resume_threshold`
3019
+ **/
3020
+ updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3021
+ u32
3022
+ ]>;
3023
+ /**
3024
+ * Overwrites the number of pages which must be in the queue for the other side to be
3025
+ * told to suspend their sending.
3026
+ *
3027
+ * - `origin`: Must pass `Root`.
3028
+ * - `new`: Desired value for `QueueConfigData.suspend_value`
3029
+ **/
3030
+ updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3031
+ u32
3032
+ ]>;
3033
+ /**
3034
+ * Generic tx
3035
+ **/
3036
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
3037
+ };
3038
+ }
3039
+ }