@dedot/chaintypes 0.4.0 → 0.6.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 (46) hide show
  1. package/kusama-asset-hub/consts.d.ts +765 -0
  2. package/kusama-asset-hub/errors.d.ts +1529 -0
  3. package/kusama-asset-hub/events.d.ts +2443 -0
  4. package/kusama-asset-hub/index.d.ts +27 -0
  5. package/kusama-asset-hub/json-rpc.d.ts +90 -0
  6. package/kusama-asset-hub/query.d.ts +1677 -0
  7. package/kusama-asset-hub/runtime.d.ts +555 -0
  8. package/kusama-asset-hub/tx.d.ts +6364 -0
  9. package/kusama-asset-hub/types.d.ts +6921 -0
  10. package/package.json +3 -3
  11. package/polkadot-asset-hub/consts.d.ts +730 -0
  12. package/polkadot-asset-hub/errors.d.ts +1500 -0
  13. package/polkadot-asset-hub/events.d.ts +2414 -0
  14. package/polkadot-asset-hub/index.d.ts +27 -0
  15. package/polkadot-asset-hub/json-rpc.d.ts +90 -0
  16. package/polkadot-asset-hub/query.d.ts +1655 -0
  17. package/polkadot-asset-hub/runtime.d.ts +558 -0
  18. package/polkadot-asset-hub/tx.d.ts +6293 -0
  19. package/polkadot-asset-hub/types.d.ts +6829 -0
  20. package/rococo-asset-hub/consts.d.ts +835 -0
  21. package/rococo-asset-hub/errors.d.ts +1590 -0
  22. package/rococo-asset-hub/events.d.ts +2573 -0
  23. package/rococo-asset-hub/index.d.ts +27 -0
  24. package/rococo-asset-hub/json-rpc.d.ts +90 -0
  25. package/rococo-asset-hub/query.d.ts +1829 -0
  26. package/rococo-asset-hub/runtime.d.ts +726 -0
  27. package/rococo-asset-hub/tx.d.ts +9011 -0
  28. package/rococo-asset-hub/types.d.ts +12431 -0
  29. package/westend-asset-hub/consts.d.ts +869 -0
  30. package/westend-asset-hub/errors.d.ts +1635 -0
  31. package/westend-asset-hub/events.d.ts +2610 -0
  32. package/westend-asset-hub/index.d.ts +27 -0
  33. package/westend-asset-hub/json-rpc.d.ts +90 -0
  34. package/westend-asset-hub/query.d.ts +1868 -0
  35. package/westend-asset-hub/runtime.d.ts +798 -0
  36. package/westend-asset-hub/tx.d.ts +9199 -0
  37. package/westend-asset-hub/types.d.ts +12661 -0
  38. package/westend-people/consts.d.ts +434 -0
  39. package/westend-people/errors.d.ts +769 -0
  40. package/westend-people/events.d.ts +1082 -0
  41. package/westend-people/index.d.ts +27 -0
  42. package/westend-people/json-rpc.d.ts +89 -0
  43. package/westend-people/query.d.ts +1209 -0
  44. package/westend-people/runtime.d.ts +636 -0
  45. package/westend-people/tx.d.ts +2891 -0
  46. package/westend-people/types.d.ts +4984 -0
@@ -0,0 +1,2891 @@
1
+ // Generated by dedot cli
2
+
3
+ import type {
4
+ GenericChainTx,
5
+ GenericTxCall,
6
+ ISubmittableExtrinsic,
7
+ ISubmittableResult,
8
+ IRuntimeTxCall,
9
+ RpcVersion,
10
+ RpcV2,
11
+ ISubmittableExtrinsicLegacy,
12
+ } from 'dedot/types';
13
+ import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes, Data } from 'dedot/codecs';
14
+ import type {
15
+ PeopleWestendRuntimeRuntimeCallLike,
16
+ SpRuntimeMultiSignature,
17
+ FrameSystemEventRecord,
18
+ CumulusPrimitivesParachainInherentParachainInherentData,
19
+ PalletBalancesAdjustmentDirection,
20
+ PeopleWestendRuntimeSessionKeys,
21
+ XcmVersionedLocation,
22
+ XcmVersionedXcm,
23
+ XcmVersionedAssets,
24
+ SpWeightsWeightV2Weight,
25
+ StagingXcmV4Location,
26
+ XcmV3WeightLimit,
27
+ StagingXcmExecutorAssetTransferTransferType,
28
+ XcmVersionedAssetId,
29
+ CumulusPrimitivesCoreAggregateMessageOrigin,
30
+ PeopleWestendRuntimeOriginCaller,
31
+ PalletMultisigTimepoint,
32
+ PeopleWestendRuntimePeopleIdentityInfo,
33
+ PalletIdentityJudgement,
34
+ } from './types';
35
+
36
+ export type ChainSubmittableExtrinsic<
37
+ Rv extends RpcVersion,
38
+ T extends IRuntimeTxCall = PeopleWestendRuntimeRuntimeCallLike,
39
+ > = Extrinsic<MultiAddressLike, T, SpRuntimeMultiSignature, any[]> &
40
+ (Rv extends RpcV2
41
+ ? ISubmittableExtrinsic<ISubmittableResult<FrameSystemEventRecord>>
42
+ : ISubmittableExtrinsicLegacy<ISubmittableResult<FrameSystemEventRecord>>);
43
+
44
+ export type TxCall<Rv extends RpcVersion> = (...args: any[]) => ChainSubmittableExtrinsic<Rv>;
45
+
46
+ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCall<Rv>> {
47
+ /**
48
+ * Pallet `System`'s transaction calls
49
+ **/
50
+ system: {
51
+ /**
52
+ * Make some on-chain remark.
53
+ *
54
+ * Can be executed by every `origin`.
55
+ *
56
+ * @param {BytesLike} remark
57
+ **/
58
+ remark: GenericTxCall<
59
+ Rv,
60
+ (remark: BytesLike) => ChainSubmittableExtrinsic<
61
+ Rv,
62
+ {
63
+ pallet: 'System';
64
+ palletCall: {
65
+ name: 'Remark';
66
+ params: { remark: BytesLike };
67
+ };
68
+ }
69
+ >
70
+ >;
71
+
72
+ /**
73
+ * Set the number of pages in the WebAssembly environment's heap.
74
+ *
75
+ * @param {bigint} pages
76
+ **/
77
+ setHeapPages: GenericTxCall<
78
+ Rv,
79
+ (pages: bigint) => ChainSubmittableExtrinsic<
80
+ Rv,
81
+ {
82
+ pallet: 'System';
83
+ palletCall: {
84
+ name: 'SetHeapPages';
85
+ params: { pages: bigint };
86
+ };
87
+ }
88
+ >
89
+ >;
90
+
91
+ /**
92
+ * Set the new runtime code.
93
+ *
94
+ * @param {BytesLike} code
95
+ **/
96
+ setCode: GenericTxCall<
97
+ Rv,
98
+ (code: BytesLike) => ChainSubmittableExtrinsic<
99
+ Rv,
100
+ {
101
+ pallet: 'System';
102
+ palletCall: {
103
+ name: 'SetCode';
104
+ params: { code: BytesLike };
105
+ };
106
+ }
107
+ >
108
+ >;
109
+
110
+ /**
111
+ * Set the new runtime code without doing any checks of the given `code`.
112
+ *
113
+ * Note that runtime upgrades will not run if this is called with a not-increasing spec
114
+ * version!
115
+ *
116
+ * @param {BytesLike} code
117
+ **/
118
+ setCodeWithoutChecks: GenericTxCall<
119
+ Rv,
120
+ (code: BytesLike) => ChainSubmittableExtrinsic<
121
+ Rv,
122
+ {
123
+ pallet: 'System';
124
+ palletCall: {
125
+ name: 'SetCodeWithoutChecks';
126
+ params: { code: BytesLike };
127
+ };
128
+ }
129
+ >
130
+ >;
131
+
132
+ /**
133
+ * Set some items of storage.
134
+ *
135
+ * @param {Array<[BytesLike, BytesLike]>} items
136
+ **/
137
+ setStorage: GenericTxCall<
138
+ Rv,
139
+ (items: Array<[BytesLike, BytesLike]>) => ChainSubmittableExtrinsic<
140
+ Rv,
141
+ {
142
+ pallet: 'System';
143
+ palletCall: {
144
+ name: 'SetStorage';
145
+ params: { items: Array<[BytesLike, BytesLike]> };
146
+ };
147
+ }
148
+ >
149
+ >;
150
+
151
+ /**
152
+ * Kill some items from storage.
153
+ *
154
+ * @param {Array<BytesLike>} keys
155
+ **/
156
+ killStorage: GenericTxCall<
157
+ Rv,
158
+ (keys: Array<BytesLike>) => ChainSubmittableExtrinsic<
159
+ Rv,
160
+ {
161
+ pallet: 'System';
162
+ palletCall: {
163
+ name: 'KillStorage';
164
+ params: { keys: Array<BytesLike> };
165
+ };
166
+ }
167
+ >
168
+ >;
169
+
170
+ /**
171
+ * Kill all storage items with a key that starts with the given prefix.
172
+ *
173
+ * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
174
+ * the prefix we are removing to accurately calculate the weight of this function.
175
+ *
176
+ * @param {BytesLike} prefix
177
+ * @param {number} subkeys
178
+ **/
179
+ killPrefix: GenericTxCall<
180
+ Rv,
181
+ (
182
+ prefix: BytesLike,
183
+ subkeys: number,
184
+ ) => ChainSubmittableExtrinsic<
185
+ Rv,
186
+ {
187
+ pallet: 'System';
188
+ palletCall: {
189
+ name: 'KillPrefix';
190
+ params: { prefix: BytesLike; subkeys: number };
191
+ };
192
+ }
193
+ >
194
+ >;
195
+
196
+ /**
197
+ * Make some on-chain remark and emit event.
198
+ *
199
+ * @param {BytesLike} remark
200
+ **/
201
+ remarkWithEvent: GenericTxCall<
202
+ Rv,
203
+ (remark: BytesLike) => ChainSubmittableExtrinsic<
204
+ Rv,
205
+ {
206
+ pallet: 'System';
207
+ palletCall: {
208
+ name: 'RemarkWithEvent';
209
+ params: { remark: BytesLike };
210
+ };
211
+ }
212
+ >
213
+ >;
214
+
215
+ /**
216
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
217
+ * later.
218
+ *
219
+ * This call requires Root origin.
220
+ *
221
+ * @param {H256} codeHash
222
+ **/
223
+ authorizeUpgrade: GenericTxCall<
224
+ Rv,
225
+ (codeHash: H256) => ChainSubmittableExtrinsic<
226
+ Rv,
227
+ {
228
+ pallet: 'System';
229
+ palletCall: {
230
+ name: 'AuthorizeUpgrade';
231
+ params: { codeHash: H256 };
232
+ };
233
+ }
234
+ >
235
+ >;
236
+
237
+ /**
238
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
239
+ * later.
240
+ *
241
+ * WARNING: This authorizes an upgrade that will take place without any safety checks, for
242
+ * example that the spec name remains the same and that the version number increases. Not
243
+ * recommended for normal use. Use `authorize_upgrade` instead.
244
+ *
245
+ * This call requires Root origin.
246
+ *
247
+ * @param {H256} codeHash
248
+ **/
249
+ authorizeUpgradeWithoutChecks: GenericTxCall<
250
+ Rv,
251
+ (codeHash: H256) => ChainSubmittableExtrinsic<
252
+ Rv,
253
+ {
254
+ pallet: 'System';
255
+ palletCall: {
256
+ name: 'AuthorizeUpgradeWithoutChecks';
257
+ params: { codeHash: H256 };
258
+ };
259
+ }
260
+ >
261
+ >;
262
+
263
+ /**
264
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
265
+ *
266
+ * If the authorization required a version check, this call will ensure the spec name
267
+ * remains unchanged and that the spec version has increased.
268
+ *
269
+ * Depending on the runtime's `OnSetCode` configuration, this function may directly apply
270
+ * the new `code` in the same block or attempt to schedule the upgrade.
271
+ *
272
+ * All origins are allowed.
273
+ *
274
+ * @param {BytesLike} code
275
+ **/
276
+ applyAuthorizedUpgrade: GenericTxCall<
277
+ Rv,
278
+ (code: BytesLike) => ChainSubmittableExtrinsic<
279
+ Rv,
280
+ {
281
+ pallet: 'System';
282
+ palletCall: {
283
+ name: 'ApplyAuthorizedUpgrade';
284
+ params: { code: BytesLike };
285
+ };
286
+ }
287
+ >
288
+ >;
289
+
290
+ /**
291
+ * Generic pallet tx call
292
+ **/
293
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
294
+ };
295
+ /**
296
+ * Pallet `ParachainSystem`'s transaction calls
297
+ **/
298
+ parachainSystem: {
299
+ /**
300
+ * Set the current validation data.
301
+ *
302
+ * This should be invoked exactly once per block. It will panic at the finalization
303
+ * phase if the call was not invoked.
304
+ *
305
+ * The dispatch origin for this call must be `Inherent`
306
+ *
307
+ * As a side effect, this function upgrades the current validation function
308
+ * if the appropriate time has come.
309
+ *
310
+ * @param {CumulusPrimitivesParachainInherentParachainInherentData} data
311
+ **/
312
+ setValidationData: GenericTxCall<
313
+ Rv,
314
+ (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic<
315
+ Rv,
316
+ {
317
+ pallet: 'ParachainSystem';
318
+ palletCall: {
319
+ name: 'SetValidationData';
320
+ params: { data: CumulusPrimitivesParachainInherentParachainInherentData };
321
+ };
322
+ }
323
+ >
324
+ >;
325
+
326
+ /**
327
+ *
328
+ * @param {BytesLike} message
329
+ **/
330
+ sudoSendUpwardMessage: GenericTxCall<
331
+ Rv,
332
+ (message: BytesLike) => ChainSubmittableExtrinsic<
333
+ Rv,
334
+ {
335
+ pallet: 'ParachainSystem';
336
+ palletCall: {
337
+ name: 'SudoSendUpwardMessage';
338
+ params: { message: BytesLike };
339
+ };
340
+ }
341
+ >
342
+ >;
343
+
344
+ /**
345
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
346
+ * later.
347
+ *
348
+ * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
349
+ * version and name should be verified on upgrade. Since the authorization only has a hash,
350
+ * it cannot actually perform the verification.
351
+ *
352
+ * This call requires Root origin.
353
+ *
354
+ * @param {H256} codeHash
355
+ * @param {boolean} checkVersion
356
+ **/
357
+ authorizeUpgrade: GenericTxCall<
358
+ Rv,
359
+ (
360
+ codeHash: H256,
361
+ checkVersion: boolean,
362
+ ) => ChainSubmittableExtrinsic<
363
+ Rv,
364
+ {
365
+ pallet: 'ParachainSystem';
366
+ palletCall: {
367
+ name: 'AuthorizeUpgrade';
368
+ params: { codeHash: H256; checkVersion: boolean };
369
+ };
370
+ }
371
+ >
372
+ >;
373
+
374
+ /**
375
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
376
+ *
377
+ * If the authorization required a version check, this call will ensure the spec name
378
+ * remains unchanged and that the spec version has increased.
379
+ *
380
+ * Note that this function will not apply the new `code`, but only attempt to schedule the
381
+ * upgrade with the Relay Chain.
382
+ *
383
+ * All origins are allowed.
384
+ *
385
+ * @param {BytesLike} code
386
+ **/
387
+ enactAuthorizedUpgrade: GenericTxCall<
388
+ Rv,
389
+ (code: BytesLike) => ChainSubmittableExtrinsic<
390
+ Rv,
391
+ {
392
+ pallet: 'ParachainSystem';
393
+ palletCall: {
394
+ name: 'EnactAuthorizedUpgrade';
395
+ params: { code: BytesLike };
396
+ };
397
+ }
398
+ >
399
+ >;
400
+
401
+ /**
402
+ * Generic pallet tx call
403
+ **/
404
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
405
+ };
406
+ /**
407
+ * Pallet `Timestamp`'s transaction calls
408
+ **/
409
+ timestamp: {
410
+ /**
411
+ * Set the current time.
412
+ *
413
+ * This call should be invoked exactly once per block. It will panic at the finalization
414
+ * phase, if this call hasn't been invoked by that time.
415
+ *
416
+ * The timestamp should be greater than the previous one by the amount specified by
417
+ * [`Config::MinimumPeriod`].
418
+ *
419
+ * The dispatch origin for this call must be _None_.
420
+ *
421
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
422
+ * that changing the complexity of this call could result exhausting the resources in a
423
+ * block to execute any other calls.
424
+ *
425
+ * ## Complexity
426
+ * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
427
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
428
+ * `on_finalize`)
429
+ * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
430
+ *
431
+ * @param {bigint} now
432
+ **/
433
+ set: GenericTxCall<
434
+ Rv,
435
+ (now: bigint) => ChainSubmittableExtrinsic<
436
+ Rv,
437
+ {
438
+ pallet: 'Timestamp';
439
+ palletCall: {
440
+ name: 'Set';
441
+ params: { now: bigint };
442
+ };
443
+ }
444
+ >
445
+ >;
446
+
447
+ /**
448
+ * Generic pallet tx call
449
+ **/
450
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
451
+ };
452
+ /**
453
+ * Pallet `ParachainInfo`'s transaction calls
454
+ **/
455
+ parachainInfo: {
456
+ /**
457
+ * Generic pallet tx call
458
+ **/
459
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
460
+ };
461
+ /**
462
+ * Pallet `Balances`'s transaction calls
463
+ **/
464
+ balances: {
465
+ /**
466
+ * Transfer some liquid free balance to another account.
467
+ *
468
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
469
+ * If the sender's account is below the existential deposit as a result
470
+ * of the transfer, the account will be reaped.
471
+ *
472
+ * The dispatch origin for this call must be `Signed` by the transactor.
473
+ *
474
+ * @param {MultiAddressLike} dest
475
+ * @param {bigint} value
476
+ **/
477
+ transferAllowDeath: GenericTxCall<
478
+ Rv,
479
+ (
480
+ dest: MultiAddressLike,
481
+ value: bigint,
482
+ ) => ChainSubmittableExtrinsic<
483
+ Rv,
484
+ {
485
+ pallet: 'Balances';
486
+ palletCall: {
487
+ name: 'TransferAllowDeath';
488
+ params: { dest: MultiAddressLike; value: bigint };
489
+ };
490
+ }
491
+ >
492
+ >;
493
+
494
+ /**
495
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
496
+ * may be specified.
497
+ *
498
+ * @param {MultiAddressLike} source
499
+ * @param {MultiAddressLike} dest
500
+ * @param {bigint} value
501
+ **/
502
+ forceTransfer: GenericTxCall<
503
+ Rv,
504
+ (
505
+ source: MultiAddressLike,
506
+ dest: MultiAddressLike,
507
+ value: bigint,
508
+ ) => ChainSubmittableExtrinsic<
509
+ Rv,
510
+ {
511
+ pallet: 'Balances';
512
+ palletCall: {
513
+ name: 'ForceTransfer';
514
+ params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint };
515
+ };
516
+ }
517
+ >
518
+ >;
519
+
520
+ /**
521
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
522
+ * kill the origin account.
523
+ *
524
+ * 99% of the time you want [`transfer_allow_death`] instead.
525
+ *
526
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
527
+ *
528
+ * @param {MultiAddressLike} dest
529
+ * @param {bigint} value
530
+ **/
531
+ transferKeepAlive: GenericTxCall<
532
+ Rv,
533
+ (
534
+ dest: MultiAddressLike,
535
+ value: bigint,
536
+ ) => ChainSubmittableExtrinsic<
537
+ Rv,
538
+ {
539
+ pallet: 'Balances';
540
+ palletCall: {
541
+ name: 'TransferKeepAlive';
542
+ params: { dest: MultiAddressLike; value: bigint };
543
+ };
544
+ }
545
+ >
546
+ >;
547
+
548
+ /**
549
+ * Transfer the entire transferable balance from the caller account.
550
+ *
551
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
552
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
553
+ * transferred by this function. To ensure that this function results in a killed account,
554
+ * you might need to prepare the account by removing any reference counters, storage
555
+ * deposits, etc...
556
+ *
557
+ * The dispatch origin of this call must be Signed.
558
+ *
559
+ * - `dest`: The recipient of the transfer.
560
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
561
+ * of the funds the account has, causing the sender account to be killed (false), or
562
+ * transfer everything except at least the existential deposit, which will guarantee to
563
+ * keep the sender account alive (true).
564
+ *
565
+ * @param {MultiAddressLike} dest
566
+ * @param {boolean} keepAlive
567
+ **/
568
+ transferAll: GenericTxCall<
569
+ Rv,
570
+ (
571
+ dest: MultiAddressLike,
572
+ keepAlive: boolean,
573
+ ) => ChainSubmittableExtrinsic<
574
+ Rv,
575
+ {
576
+ pallet: 'Balances';
577
+ palletCall: {
578
+ name: 'TransferAll';
579
+ params: { dest: MultiAddressLike; keepAlive: boolean };
580
+ };
581
+ }
582
+ >
583
+ >;
584
+
585
+ /**
586
+ * Unreserve some balance from a user by force.
587
+ *
588
+ * Can only be called by ROOT.
589
+ *
590
+ * @param {MultiAddressLike} who
591
+ * @param {bigint} amount
592
+ **/
593
+ forceUnreserve: GenericTxCall<
594
+ Rv,
595
+ (
596
+ who: MultiAddressLike,
597
+ amount: bigint,
598
+ ) => ChainSubmittableExtrinsic<
599
+ Rv,
600
+ {
601
+ pallet: 'Balances';
602
+ palletCall: {
603
+ name: 'ForceUnreserve';
604
+ params: { who: MultiAddressLike; amount: bigint };
605
+ };
606
+ }
607
+ >
608
+ >;
609
+
610
+ /**
611
+ * Upgrade a specified account.
612
+ *
613
+ * - `origin`: Must be `Signed`.
614
+ * - `who`: The account to be upgraded.
615
+ *
616
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
617
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
618
+ * possibility of churn).
619
+ *
620
+ * @param {Array<AccountId32Like>} who
621
+ **/
622
+ upgradeAccounts: GenericTxCall<
623
+ Rv,
624
+ (who: Array<AccountId32Like>) => ChainSubmittableExtrinsic<
625
+ Rv,
626
+ {
627
+ pallet: 'Balances';
628
+ palletCall: {
629
+ name: 'UpgradeAccounts';
630
+ params: { who: Array<AccountId32Like> };
631
+ };
632
+ }
633
+ >
634
+ >;
635
+
636
+ /**
637
+ * Set the regular balance of a given account.
638
+ *
639
+ * The dispatch origin for this call is `root`.
640
+ *
641
+ * @param {MultiAddressLike} who
642
+ * @param {bigint} newFree
643
+ **/
644
+ forceSetBalance: GenericTxCall<
645
+ Rv,
646
+ (
647
+ who: MultiAddressLike,
648
+ newFree: bigint,
649
+ ) => ChainSubmittableExtrinsic<
650
+ Rv,
651
+ {
652
+ pallet: 'Balances';
653
+ palletCall: {
654
+ name: 'ForceSetBalance';
655
+ params: { who: MultiAddressLike; newFree: bigint };
656
+ };
657
+ }
658
+ >
659
+ >;
660
+
661
+ /**
662
+ * Adjust the total issuance in a saturating way.
663
+ *
664
+ * Can only be called by root and always needs a positive `delta`.
665
+ *
666
+ * # Example
667
+ *
668
+ * @param {PalletBalancesAdjustmentDirection} direction
669
+ * @param {bigint} delta
670
+ **/
671
+ forceAdjustTotalIssuance: GenericTxCall<
672
+ Rv,
673
+ (
674
+ direction: PalletBalancesAdjustmentDirection,
675
+ delta: bigint,
676
+ ) => ChainSubmittableExtrinsic<
677
+ Rv,
678
+ {
679
+ pallet: 'Balances';
680
+ palletCall: {
681
+ name: 'ForceAdjustTotalIssuance';
682
+ params: { direction: PalletBalancesAdjustmentDirection; delta: bigint };
683
+ };
684
+ }
685
+ >
686
+ >;
687
+
688
+ /**
689
+ * Burn the specified liquid free balance from the origin account.
690
+ *
691
+ * If the origin's account ends up below the existential deposit as a result
692
+ * of the burn and `keep_alive` is false, the account will be reaped.
693
+ *
694
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
695
+ * this `burn` operation will reduce total issuance by the amount _burned_.
696
+ *
697
+ * @param {bigint} value
698
+ * @param {boolean} keepAlive
699
+ **/
700
+ burn: GenericTxCall<
701
+ Rv,
702
+ (
703
+ value: bigint,
704
+ keepAlive: boolean,
705
+ ) => ChainSubmittableExtrinsic<
706
+ Rv,
707
+ {
708
+ pallet: 'Balances';
709
+ palletCall: {
710
+ name: 'Burn';
711
+ params: { value: bigint; keepAlive: boolean };
712
+ };
713
+ }
714
+ >
715
+ >;
716
+
717
+ /**
718
+ * Generic pallet tx call
719
+ **/
720
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
721
+ };
722
+ /**
723
+ * Pallet `CollatorSelection`'s transaction calls
724
+ **/
725
+ collatorSelection: {
726
+ /**
727
+ * Set the list of invulnerable (fixed) collators. These collators must do some
728
+ * preparation, namely to have registered session keys.
729
+ *
730
+ * The call will remove any accounts that have not registered keys from the set. That is,
731
+ * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as
732
+ * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables.
733
+ *
734
+ * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It
735
+ * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A
736
+ * `batch_all` can also be used to enforce atomicity. If any candidates are included in
737
+ * `new`, they should be removed with `remove_invulnerable_candidate` after execution.
738
+ *
739
+ * Must be called by the `UpdateOrigin`.
740
+ *
741
+ * @param {Array<AccountId32Like>} new_
742
+ **/
743
+ setInvulnerables: GenericTxCall<
744
+ Rv,
745
+ (new_: Array<AccountId32Like>) => ChainSubmittableExtrinsic<
746
+ Rv,
747
+ {
748
+ pallet: 'CollatorSelection';
749
+ palletCall: {
750
+ name: 'SetInvulnerables';
751
+ params: { new: Array<AccountId32Like> };
752
+ };
753
+ }
754
+ >
755
+ >;
756
+
757
+ /**
758
+ * Set the ideal number of non-invulnerable collators. If lowering this number, then the
759
+ * number of running collators could be higher than this figure. Aside from that edge case,
760
+ * there should be no other way to have more candidates than the desired number.
761
+ *
762
+ * The origin for this call must be the `UpdateOrigin`.
763
+ *
764
+ * @param {number} max
765
+ **/
766
+ setDesiredCandidates: GenericTxCall<
767
+ Rv,
768
+ (max: number) => ChainSubmittableExtrinsic<
769
+ Rv,
770
+ {
771
+ pallet: 'CollatorSelection';
772
+ palletCall: {
773
+ name: 'SetDesiredCandidates';
774
+ params: { max: number };
775
+ };
776
+ }
777
+ >
778
+ >;
779
+
780
+ /**
781
+ * Set the candidacy bond amount.
782
+ *
783
+ * If the candidacy bond is increased by this call, all current candidates which have a
784
+ * deposit lower than the new bond will be kicked from the list and get their deposits
785
+ * back.
786
+ *
787
+ * The origin for this call must be the `UpdateOrigin`.
788
+ *
789
+ * @param {bigint} bond
790
+ **/
791
+ setCandidacyBond: GenericTxCall<
792
+ Rv,
793
+ (bond: bigint) => ChainSubmittableExtrinsic<
794
+ Rv,
795
+ {
796
+ pallet: 'CollatorSelection';
797
+ palletCall: {
798
+ name: 'SetCandidacyBond';
799
+ params: { bond: bigint };
800
+ };
801
+ }
802
+ >
803
+ >;
804
+
805
+ /**
806
+ * Register this account as a collator candidate. The account must (a) already have
807
+ * registered session keys and (b) be able to reserve the `CandidacyBond`.
808
+ *
809
+ * This call is not available to `Invulnerable` collators.
810
+ *
811
+ **/
812
+ registerAsCandidate: GenericTxCall<
813
+ Rv,
814
+ () => ChainSubmittableExtrinsic<
815
+ Rv,
816
+ {
817
+ pallet: 'CollatorSelection';
818
+ palletCall: {
819
+ name: 'RegisterAsCandidate';
820
+ };
821
+ }
822
+ >
823
+ >;
824
+
825
+ /**
826
+ * Deregister `origin` as a collator candidate. Note that the collator can only leave on
827
+ * session change. The `CandidacyBond` will be unreserved immediately.
828
+ *
829
+ * This call will fail if the total number of candidates would drop below
830
+ * `MinEligibleCollators`.
831
+ *
832
+ **/
833
+ leaveIntent: GenericTxCall<
834
+ Rv,
835
+ () => ChainSubmittableExtrinsic<
836
+ Rv,
837
+ {
838
+ pallet: 'CollatorSelection';
839
+ palletCall: {
840
+ name: 'LeaveIntent';
841
+ };
842
+ }
843
+ >
844
+ >;
845
+
846
+ /**
847
+ * Add a new account `who` to the list of `Invulnerables` collators. `who` must have
848
+ * registered session keys. If `who` is a candidate, they will be removed.
849
+ *
850
+ * The origin for this call must be the `UpdateOrigin`.
851
+ *
852
+ * @param {AccountId32Like} who
853
+ **/
854
+ addInvulnerable: GenericTxCall<
855
+ Rv,
856
+ (who: AccountId32Like) => ChainSubmittableExtrinsic<
857
+ Rv,
858
+ {
859
+ pallet: 'CollatorSelection';
860
+ palletCall: {
861
+ name: 'AddInvulnerable';
862
+ params: { who: AccountId32Like };
863
+ };
864
+ }
865
+ >
866
+ >;
867
+
868
+ /**
869
+ * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must
870
+ * be sorted.
871
+ *
872
+ * The origin for this call must be the `UpdateOrigin`.
873
+ *
874
+ * @param {AccountId32Like} who
875
+ **/
876
+ removeInvulnerable: GenericTxCall<
877
+ Rv,
878
+ (who: AccountId32Like) => ChainSubmittableExtrinsic<
879
+ Rv,
880
+ {
881
+ pallet: 'CollatorSelection';
882
+ palletCall: {
883
+ name: 'RemoveInvulnerable';
884
+ params: { who: AccountId32Like };
885
+ };
886
+ }
887
+ >
888
+ >;
889
+
890
+ /**
891
+ * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`.
892
+ *
893
+ * Setting a `new_deposit` that is lower than the current deposit while `origin` is
894
+ * occupying a top-`DesiredCandidates` slot is not allowed.
895
+ *
896
+ * This call will fail if `origin` is not a collator candidate, the updated bond is lower
897
+ * than the minimum candidacy bond, and/or the amount cannot be reserved.
898
+ *
899
+ * @param {bigint} newDeposit
900
+ **/
901
+ updateBond: GenericTxCall<
902
+ Rv,
903
+ (newDeposit: bigint) => ChainSubmittableExtrinsic<
904
+ Rv,
905
+ {
906
+ pallet: 'CollatorSelection';
907
+ palletCall: {
908
+ name: 'UpdateBond';
909
+ params: { newDeposit: bigint };
910
+ };
911
+ }
912
+ >
913
+ >;
914
+
915
+ /**
916
+ * The caller `origin` replaces a candidate `target` in the collator candidate list by
917
+ * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than
918
+ * the existing bond of the target it is trying to replace.
919
+ *
920
+ * This call will fail if the caller is already a collator candidate or invulnerable, the
921
+ * caller does not have registered session keys, the target is not a collator candidate,
922
+ * and/or the `deposit` amount cannot be reserved.
923
+ *
924
+ * @param {bigint} deposit
925
+ * @param {AccountId32Like} target
926
+ **/
927
+ takeCandidateSlot: GenericTxCall<
928
+ Rv,
929
+ (
930
+ deposit: bigint,
931
+ target: AccountId32Like,
932
+ ) => ChainSubmittableExtrinsic<
933
+ Rv,
934
+ {
935
+ pallet: 'CollatorSelection';
936
+ palletCall: {
937
+ name: 'TakeCandidateSlot';
938
+ params: { deposit: bigint; target: AccountId32Like };
939
+ };
940
+ }
941
+ >
942
+ >;
943
+
944
+ /**
945
+ * Generic pallet tx call
946
+ **/
947
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
948
+ };
949
+ /**
950
+ * Pallet `Session`'s transaction calls
951
+ **/
952
+ session: {
953
+ /**
954
+ * Sets the session key(s) of the function caller to `keys`.
955
+ * Allows an account to set its session key prior to becoming a validator.
956
+ * This doesn't take effect until the next session.
957
+ *
958
+ * The dispatch origin of this function must be signed.
959
+ *
960
+ * ## Complexity
961
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
962
+ * fixed.
963
+ *
964
+ * @param {PeopleWestendRuntimeSessionKeys} keys
965
+ * @param {BytesLike} proof
966
+ **/
967
+ setKeys: GenericTxCall<
968
+ Rv,
969
+ (
970
+ keys: PeopleWestendRuntimeSessionKeys,
971
+ proof: BytesLike,
972
+ ) => ChainSubmittableExtrinsic<
973
+ Rv,
974
+ {
975
+ pallet: 'Session';
976
+ palletCall: {
977
+ name: 'SetKeys';
978
+ params: { keys: PeopleWestendRuntimeSessionKeys; proof: BytesLike };
979
+ };
980
+ }
981
+ >
982
+ >;
983
+
984
+ /**
985
+ * Removes any session key(s) of the function caller.
986
+ *
987
+ * This doesn't take effect until the next session.
988
+ *
989
+ * The dispatch origin of this function must be Signed and the account must be either be
990
+ * convertible to a validator ID using the chain's typical addressing system (this usually
991
+ * means being a controller account) or directly convertible into a validator ID (which
992
+ * usually means being a stash account).
993
+ *
994
+ * ## Complexity
995
+ * - `O(1)` in number of key types. Actual cost depends on the number of length of
996
+ * `T::Keys::key_ids()` which is fixed.
997
+ *
998
+ **/
999
+ purgeKeys: GenericTxCall<
1000
+ Rv,
1001
+ () => ChainSubmittableExtrinsic<
1002
+ Rv,
1003
+ {
1004
+ pallet: 'Session';
1005
+ palletCall: {
1006
+ name: 'PurgeKeys';
1007
+ };
1008
+ }
1009
+ >
1010
+ >;
1011
+
1012
+ /**
1013
+ * Generic pallet tx call
1014
+ **/
1015
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
1016
+ };
1017
+ /**
1018
+ * Pallet `XcmpQueue`'s transaction calls
1019
+ **/
1020
+ xcmpQueue: {
1021
+ /**
1022
+ * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.
1023
+ *
1024
+ * - `origin`: Must pass `ControllerOrigin`.
1025
+ *
1026
+ **/
1027
+ suspendXcmExecution: GenericTxCall<
1028
+ Rv,
1029
+ () => ChainSubmittableExtrinsic<
1030
+ Rv,
1031
+ {
1032
+ pallet: 'XcmpQueue';
1033
+ palletCall: {
1034
+ name: 'SuspendXcmExecution';
1035
+ };
1036
+ }
1037
+ >
1038
+ >;
1039
+
1040
+ /**
1041
+ * Resumes all XCM executions for the XCMP queue.
1042
+ *
1043
+ * Note that this function doesn't change the status of the in/out bound channels.
1044
+ *
1045
+ * - `origin`: Must pass `ControllerOrigin`.
1046
+ *
1047
+ **/
1048
+ resumeXcmExecution: GenericTxCall<
1049
+ Rv,
1050
+ () => ChainSubmittableExtrinsic<
1051
+ Rv,
1052
+ {
1053
+ pallet: 'XcmpQueue';
1054
+ palletCall: {
1055
+ name: 'ResumeXcmExecution';
1056
+ };
1057
+ }
1058
+ >
1059
+ >;
1060
+
1061
+ /**
1062
+ * Overwrites the number of pages which must be in the queue for the other side to be
1063
+ * told to suspend their sending.
1064
+ *
1065
+ * - `origin`: Must pass `Root`.
1066
+ * - `new`: Desired value for `QueueConfigData.suspend_value`
1067
+ *
1068
+ * @param {number} new_
1069
+ **/
1070
+ updateSuspendThreshold: GenericTxCall<
1071
+ Rv,
1072
+ (new_: number) => ChainSubmittableExtrinsic<
1073
+ Rv,
1074
+ {
1075
+ pallet: 'XcmpQueue';
1076
+ palletCall: {
1077
+ name: 'UpdateSuspendThreshold';
1078
+ params: { new: number };
1079
+ };
1080
+ }
1081
+ >
1082
+ >;
1083
+
1084
+ /**
1085
+ * Overwrites the number of pages which must be in the queue after which we drop any
1086
+ * further messages from the channel.
1087
+ *
1088
+ * - `origin`: Must pass `Root`.
1089
+ * - `new`: Desired value for `QueueConfigData.drop_threshold`
1090
+ *
1091
+ * @param {number} new_
1092
+ **/
1093
+ updateDropThreshold: GenericTxCall<
1094
+ Rv,
1095
+ (new_: number) => ChainSubmittableExtrinsic<
1096
+ Rv,
1097
+ {
1098
+ pallet: 'XcmpQueue';
1099
+ palletCall: {
1100
+ name: 'UpdateDropThreshold';
1101
+ params: { new: number };
1102
+ };
1103
+ }
1104
+ >
1105
+ >;
1106
+
1107
+ /**
1108
+ * Overwrites the number of pages which the queue must be reduced to before it signals
1109
+ * that message sending may recommence after it has been suspended.
1110
+ *
1111
+ * - `origin`: Must pass `Root`.
1112
+ * - `new`: Desired value for `QueueConfigData.resume_threshold`
1113
+ *
1114
+ * @param {number} new_
1115
+ **/
1116
+ updateResumeThreshold: GenericTxCall<
1117
+ Rv,
1118
+ (new_: number) => ChainSubmittableExtrinsic<
1119
+ Rv,
1120
+ {
1121
+ pallet: 'XcmpQueue';
1122
+ palletCall: {
1123
+ name: 'UpdateResumeThreshold';
1124
+ params: { new: number };
1125
+ };
1126
+ }
1127
+ >
1128
+ >;
1129
+
1130
+ /**
1131
+ * Generic pallet tx call
1132
+ **/
1133
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
1134
+ };
1135
+ /**
1136
+ * Pallet `PolkadotXcm`'s transaction calls
1137
+ **/
1138
+ polkadotXcm: {
1139
+ /**
1140
+ *
1141
+ * @param {XcmVersionedLocation} dest
1142
+ * @param {XcmVersionedXcm} message
1143
+ **/
1144
+ send: GenericTxCall<
1145
+ Rv,
1146
+ (
1147
+ dest: XcmVersionedLocation,
1148
+ message: XcmVersionedXcm,
1149
+ ) => ChainSubmittableExtrinsic<
1150
+ Rv,
1151
+ {
1152
+ pallet: 'PolkadotXcm';
1153
+ palletCall: {
1154
+ name: 'Send';
1155
+ params: { dest: XcmVersionedLocation; message: XcmVersionedXcm };
1156
+ };
1157
+ }
1158
+ >
1159
+ >;
1160
+
1161
+ /**
1162
+ * Teleport some assets from the local chain to some destination chain.
1163
+ *
1164
+ * **This function is deprecated: Use `limited_teleport_assets` instead.**
1165
+ *
1166
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
1167
+ * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
1168
+ * with all fees taken as needed from the asset.
1169
+ *
1170
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
1171
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
1172
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
1173
+ * relay to parachain.
1174
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
1175
+ * generally be an `AccountId32` value.
1176
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
1177
+ * fee on the `dest` chain.
1178
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
1179
+ * fees.
1180
+ *
1181
+ * @param {XcmVersionedLocation} dest
1182
+ * @param {XcmVersionedLocation} beneficiary
1183
+ * @param {XcmVersionedAssets} assets
1184
+ * @param {number} feeAssetItem
1185
+ **/
1186
+ teleportAssets: GenericTxCall<
1187
+ Rv,
1188
+ (
1189
+ dest: XcmVersionedLocation,
1190
+ beneficiary: XcmVersionedLocation,
1191
+ assets: XcmVersionedAssets,
1192
+ feeAssetItem: number,
1193
+ ) => ChainSubmittableExtrinsic<
1194
+ Rv,
1195
+ {
1196
+ pallet: 'PolkadotXcm';
1197
+ palletCall: {
1198
+ name: 'TeleportAssets';
1199
+ params: {
1200
+ dest: XcmVersionedLocation;
1201
+ beneficiary: XcmVersionedLocation;
1202
+ assets: XcmVersionedAssets;
1203
+ feeAssetItem: number;
1204
+ };
1205
+ };
1206
+ }
1207
+ >
1208
+ >;
1209
+
1210
+ /**
1211
+ * Transfer some assets from the local chain to the destination chain through their local,
1212
+ * destination or remote reserve.
1213
+ *
1214
+ * `assets` must have same reserve location and may not be teleportable to `dest`.
1215
+ * - `assets` have local reserve: transfer assets to sovereign account of destination
1216
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
1217
+ * assets to `beneficiary`.
1218
+ * - `assets` have destination reserve: burn local assets and forward a notification to
1219
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
1220
+ * deposit them to `beneficiary`.
1221
+ * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
1222
+ * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
1223
+ * to mint and deposit reserve-based assets to `beneficiary`.
1224
+ *
1225
+ * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.**
1226
+ *
1227
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
1228
+ * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
1229
+ * with all fees taken as needed from the asset.
1230
+ *
1231
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
1232
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
1233
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
1234
+ * relay to parachain.
1235
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
1236
+ * generally be an `AccountId32` value.
1237
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
1238
+ * fee on the `dest` (and possibly reserve) chains.
1239
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
1240
+ * fees.
1241
+ *
1242
+ * @param {XcmVersionedLocation} dest
1243
+ * @param {XcmVersionedLocation} beneficiary
1244
+ * @param {XcmVersionedAssets} assets
1245
+ * @param {number} feeAssetItem
1246
+ **/
1247
+ reserveTransferAssets: GenericTxCall<
1248
+ Rv,
1249
+ (
1250
+ dest: XcmVersionedLocation,
1251
+ beneficiary: XcmVersionedLocation,
1252
+ assets: XcmVersionedAssets,
1253
+ feeAssetItem: number,
1254
+ ) => ChainSubmittableExtrinsic<
1255
+ Rv,
1256
+ {
1257
+ pallet: 'PolkadotXcm';
1258
+ palletCall: {
1259
+ name: 'ReserveTransferAssets';
1260
+ params: {
1261
+ dest: XcmVersionedLocation;
1262
+ beneficiary: XcmVersionedLocation;
1263
+ assets: XcmVersionedAssets;
1264
+ feeAssetItem: number;
1265
+ };
1266
+ };
1267
+ }
1268
+ >
1269
+ >;
1270
+
1271
+ /**
1272
+ * Execute an XCM message from a local, signed, origin.
1273
+ *
1274
+ * An event is deposited indicating whether `msg` could be executed completely or only
1275
+ * partially.
1276
+ *
1277
+ * No more than `max_weight` will be used in its attempted execution. If this is less than
1278
+ * the maximum amount of weight that the message could take to be executed, then no
1279
+ * execution attempt will be made.
1280
+ *
1281
+ * @param {XcmVersionedXcm} message
1282
+ * @param {SpWeightsWeightV2Weight} maxWeight
1283
+ **/
1284
+ execute: GenericTxCall<
1285
+ Rv,
1286
+ (
1287
+ message: XcmVersionedXcm,
1288
+ maxWeight: SpWeightsWeightV2Weight,
1289
+ ) => ChainSubmittableExtrinsic<
1290
+ Rv,
1291
+ {
1292
+ pallet: 'PolkadotXcm';
1293
+ palletCall: {
1294
+ name: 'Execute';
1295
+ params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight };
1296
+ };
1297
+ }
1298
+ >
1299
+ >;
1300
+
1301
+ /**
1302
+ * Extoll that a particular destination can be communicated with through a particular
1303
+ * version of XCM.
1304
+ *
1305
+ * - `origin`: Must be an origin specified by AdminOrigin.
1306
+ * - `location`: The destination that is being described.
1307
+ * - `xcm_version`: The latest version of XCM that `location` supports.
1308
+ *
1309
+ * @param {StagingXcmV4Location} location
1310
+ * @param {number} version
1311
+ **/
1312
+ forceXcmVersion: GenericTxCall<
1313
+ Rv,
1314
+ (
1315
+ location: StagingXcmV4Location,
1316
+ version: number,
1317
+ ) => ChainSubmittableExtrinsic<
1318
+ Rv,
1319
+ {
1320
+ pallet: 'PolkadotXcm';
1321
+ palletCall: {
1322
+ name: 'ForceXcmVersion';
1323
+ params: { location: StagingXcmV4Location; version: number };
1324
+ };
1325
+ }
1326
+ >
1327
+ >;
1328
+
1329
+ /**
1330
+ * Set a safe XCM version (the version that XCM should be encoded with if the most recent
1331
+ * version a destination can accept is unknown).
1332
+ *
1333
+ * - `origin`: Must be an origin specified by AdminOrigin.
1334
+ * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
1335
+ *
1336
+ * @param {number | undefined} maybeXcmVersion
1337
+ **/
1338
+ forceDefaultXcmVersion: GenericTxCall<
1339
+ Rv,
1340
+ (maybeXcmVersion: number | undefined) => ChainSubmittableExtrinsic<
1341
+ Rv,
1342
+ {
1343
+ pallet: 'PolkadotXcm';
1344
+ palletCall: {
1345
+ name: 'ForceDefaultXcmVersion';
1346
+ params: { maybeXcmVersion: number | undefined };
1347
+ };
1348
+ }
1349
+ >
1350
+ >;
1351
+
1352
+ /**
1353
+ * Ask a location to notify us regarding their XCM version and any changes to it.
1354
+ *
1355
+ * - `origin`: Must be an origin specified by AdminOrigin.
1356
+ * - `location`: The location to which we should subscribe for XCM version notifications.
1357
+ *
1358
+ * @param {XcmVersionedLocation} location
1359
+ **/
1360
+ forceSubscribeVersionNotify: GenericTxCall<
1361
+ Rv,
1362
+ (location: XcmVersionedLocation) => ChainSubmittableExtrinsic<
1363
+ Rv,
1364
+ {
1365
+ pallet: 'PolkadotXcm';
1366
+ palletCall: {
1367
+ name: 'ForceSubscribeVersionNotify';
1368
+ params: { location: XcmVersionedLocation };
1369
+ };
1370
+ }
1371
+ >
1372
+ >;
1373
+
1374
+ /**
1375
+ * Require that a particular destination should no longer notify us regarding any XCM
1376
+ * version changes.
1377
+ *
1378
+ * - `origin`: Must be an origin specified by AdminOrigin.
1379
+ * - `location`: The location to which we are currently subscribed for XCM version
1380
+ * notifications which we no longer desire.
1381
+ *
1382
+ * @param {XcmVersionedLocation} location
1383
+ **/
1384
+ forceUnsubscribeVersionNotify: GenericTxCall<
1385
+ Rv,
1386
+ (location: XcmVersionedLocation) => ChainSubmittableExtrinsic<
1387
+ Rv,
1388
+ {
1389
+ pallet: 'PolkadotXcm';
1390
+ palletCall: {
1391
+ name: 'ForceUnsubscribeVersionNotify';
1392
+ params: { location: XcmVersionedLocation };
1393
+ };
1394
+ }
1395
+ >
1396
+ >;
1397
+
1398
+ /**
1399
+ * Transfer some assets from the local chain to the destination chain through their local,
1400
+ * destination or remote reserve.
1401
+ *
1402
+ * `assets` must have same reserve location and may not be teleportable to `dest`.
1403
+ * - `assets` have local reserve: transfer assets to sovereign account of destination
1404
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
1405
+ * assets to `beneficiary`.
1406
+ * - `assets` have destination reserve: burn local assets and forward a notification to
1407
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
1408
+ * deposit them to `beneficiary`.
1409
+ * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
1410
+ * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
1411
+ * to mint and deposit reserve-based assets to `beneficiary`.
1412
+ *
1413
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
1414
+ * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
1415
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
1416
+ * at risk.
1417
+ *
1418
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
1419
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
1420
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
1421
+ * relay to parachain.
1422
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
1423
+ * generally be an `AccountId32` value.
1424
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
1425
+ * fee on the `dest` (and possibly reserve) chains.
1426
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
1427
+ * fees.
1428
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
1429
+ *
1430
+ * @param {XcmVersionedLocation} dest
1431
+ * @param {XcmVersionedLocation} beneficiary
1432
+ * @param {XcmVersionedAssets} assets
1433
+ * @param {number} feeAssetItem
1434
+ * @param {XcmV3WeightLimit} weightLimit
1435
+ **/
1436
+ limitedReserveTransferAssets: GenericTxCall<
1437
+ Rv,
1438
+ (
1439
+ dest: XcmVersionedLocation,
1440
+ beneficiary: XcmVersionedLocation,
1441
+ assets: XcmVersionedAssets,
1442
+ feeAssetItem: number,
1443
+ weightLimit: XcmV3WeightLimit,
1444
+ ) => ChainSubmittableExtrinsic<
1445
+ Rv,
1446
+ {
1447
+ pallet: 'PolkadotXcm';
1448
+ palletCall: {
1449
+ name: 'LimitedReserveTransferAssets';
1450
+ params: {
1451
+ dest: XcmVersionedLocation;
1452
+ beneficiary: XcmVersionedLocation;
1453
+ assets: XcmVersionedAssets;
1454
+ feeAssetItem: number;
1455
+ weightLimit: XcmV3WeightLimit;
1456
+ };
1457
+ };
1458
+ }
1459
+ >
1460
+ >;
1461
+
1462
+ /**
1463
+ * Teleport some assets from the local chain to some destination chain.
1464
+ *
1465
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
1466
+ * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
1467
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
1468
+ * at risk.
1469
+ *
1470
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
1471
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
1472
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
1473
+ * relay to parachain.
1474
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
1475
+ * generally be an `AccountId32` value.
1476
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
1477
+ * fee on the `dest` chain.
1478
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
1479
+ * fees.
1480
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
1481
+ *
1482
+ * @param {XcmVersionedLocation} dest
1483
+ * @param {XcmVersionedLocation} beneficiary
1484
+ * @param {XcmVersionedAssets} assets
1485
+ * @param {number} feeAssetItem
1486
+ * @param {XcmV3WeightLimit} weightLimit
1487
+ **/
1488
+ limitedTeleportAssets: GenericTxCall<
1489
+ Rv,
1490
+ (
1491
+ dest: XcmVersionedLocation,
1492
+ beneficiary: XcmVersionedLocation,
1493
+ assets: XcmVersionedAssets,
1494
+ feeAssetItem: number,
1495
+ weightLimit: XcmV3WeightLimit,
1496
+ ) => ChainSubmittableExtrinsic<
1497
+ Rv,
1498
+ {
1499
+ pallet: 'PolkadotXcm';
1500
+ palletCall: {
1501
+ name: 'LimitedTeleportAssets';
1502
+ params: {
1503
+ dest: XcmVersionedLocation;
1504
+ beneficiary: XcmVersionedLocation;
1505
+ assets: XcmVersionedAssets;
1506
+ feeAssetItem: number;
1507
+ weightLimit: XcmV3WeightLimit;
1508
+ };
1509
+ };
1510
+ }
1511
+ >
1512
+ >;
1513
+
1514
+ /**
1515
+ * Set or unset the global suspension state of the XCM executor.
1516
+ *
1517
+ * - `origin`: Must be an origin specified by AdminOrigin.
1518
+ * - `suspended`: `true` to suspend, `false` to resume.
1519
+ *
1520
+ * @param {boolean} suspended
1521
+ **/
1522
+ forceSuspension: GenericTxCall<
1523
+ Rv,
1524
+ (suspended: boolean) => ChainSubmittableExtrinsic<
1525
+ Rv,
1526
+ {
1527
+ pallet: 'PolkadotXcm';
1528
+ palletCall: {
1529
+ name: 'ForceSuspension';
1530
+ params: { suspended: boolean };
1531
+ };
1532
+ }
1533
+ >
1534
+ >;
1535
+
1536
+ /**
1537
+ * Transfer some assets from the local chain to the destination chain through their local,
1538
+ * destination or remote reserve, or through teleports.
1539
+ *
1540
+ * Fee payment on the destination side is made from the asset in the `assets` vector of
1541
+ * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
1542
+ * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
1543
+ * operation will fail and the sent assets may be at risk.
1544
+ *
1545
+ * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
1546
+ * to `dest`, no limitations imposed on `fees`.
1547
+ * - for local reserve: transfer assets to sovereign account of destination chain and
1548
+ * forward a notification XCM to `dest` to mint and deposit reserve-based assets to
1549
+ * `beneficiary`.
1550
+ * - for destination reserve: burn local assets and forward a notification to `dest` chain
1551
+ * to withdraw the reserve assets from this chain's sovereign account and deposit them
1552
+ * to `beneficiary`.
1553
+ * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves
1554
+ * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint
1555
+ * and deposit reserve-based assets to `beneficiary`.
1556
+ * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport
1557
+ * assets and deposit them to `beneficiary`.
1558
+ *
1559
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
1560
+ * - `dest`: Destination context for the assets. Will typically be `X2(Parent,
1561
+ * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send
1562
+ * from relay to parachain.
1563
+ * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
1564
+ * generally be an `AccountId32` value.
1565
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
1566
+ * fee on the `dest` (and possibly reserve) chains.
1567
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
1568
+ * fees.
1569
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
1570
+ *
1571
+ * @param {XcmVersionedLocation} dest
1572
+ * @param {XcmVersionedLocation} beneficiary
1573
+ * @param {XcmVersionedAssets} assets
1574
+ * @param {number} feeAssetItem
1575
+ * @param {XcmV3WeightLimit} weightLimit
1576
+ **/
1577
+ transferAssets: GenericTxCall<
1578
+ Rv,
1579
+ (
1580
+ dest: XcmVersionedLocation,
1581
+ beneficiary: XcmVersionedLocation,
1582
+ assets: XcmVersionedAssets,
1583
+ feeAssetItem: number,
1584
+ weightLimit: XcmV3WeightLimit,
1585
+ ) => ChainSubmittableExtrinsic<
1586
+ Rv,
1587
+ {
1588
+ pallet: 'PolkadotXcm';
1589
+ palletCall: {
1590
+ name: 'TransferAssets';
1591
+ params: {
1592
+ dest: XcmVersionedLocation;
1593
+ beneficiary: XcmVersionedLocation;
1594
+ assets: XcmVersionedAssets;
1595
+ feeAssetItem: number;
1596
+ weightLimit: XcmV3WeightLimit;
1597
+ };
1598
+ };
1599
+ }
1600
+ >
1601
+ >;
1602
+
1603
+ /**
1604
+ * Claims assets trapped on this pallet because of leftover assets during XCM execution.
1605
+ *
1606
+ * - `origin`: Anyone can call this extrinsic.
1607
+ * - `assets`: The exact assets that were trapped. Use the version to specify what version
1608
+ * was the latest when they were trapped.
1609
+ * - `beneficiary`: The location/account where the claimed assets will be deposited.
1610
+ *
1611
+ * @param {XcmVersionedAssets} assets
1612
+ * @param {XcmVersionedLocation} beneficiary
1613
+ **/
1614
+ claimAssets: GenericTxCall<
1615
+ Rv,
1616
+ (
1617
+ assets: XcmVersionedAssets,
1618
+ beneficiary: XcmVersionedLocation,
1619
+ ) => ChainSubmittableExtrinsic<
1620
+ Rv,
1621
+ {
1622
+ pallet: 'PolkadotXcm';
1623
+ palletCall: {
1624
+ name: 'ClaimAssets';
1625
+ params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation };
1626
+ };
1627
+ }
1628
+ >
1629
+ >;
1630
+
1631
+ /**
1632
+ * Transfer assets from the local chain to the destination chain using explicit transfer
1633
+ * types for assets and fees.
1634
+ *
1635
+ * `assets` must have same reserve location or may be teleportable to `dest`. Caller must
1636
+ * provide the `assets_transfer_type` to be used for `assets`:
1637
+ * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination
1638
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
1639
+ * assets to `beneficiary`.
1640
+ * - `TransferType::DestinationReserve`: burn local assets and forward a notification to
1641
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
1642
+ * deposit them to `beneficiary`.
1643
+ * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`
1644
+ * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another
1645
+ * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically
1646
+ * the remote `reserve` is Asset Hub.
1647
+ * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to
1648
+ * mint/teleport assets and deposit them to `beneficiary`.
1649
+ *
1650
+ * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to
1651
+ * buy execution using transferred `assets` identified by `remote_fees_id`.
1652
+ * Make sure enough of the specified `remote_fees_id` asset is included in the given list
1653
+ * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight
1654
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
1655
+ * at risk.
1656
+ *
1657
+ * `remote_fees_id` may use different transfer type than rest of `assets` and can be
1658
+ * specified through `fees_transfer_type`.
1659
+ *
1660
+ * The caller needs to specify what should happen to the transferred assets once they reach
1661
+ * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which
1662
+ * contains the instructions to execute on `dest` as a final step.
1663
+ * This is usually as simple as:
1664
+ * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,
1665
+ * but could be something more exotic like sending the `assets` even further.
1666
+ *
1667
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
1668
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
1669
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
1670
+ * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from
1671
+ * parachain across a bridge to another ecosystem destination.
1672
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
1673
+ * fee on the `dest` (and possibly reserve) chains.
1674
+ * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
1675
+ * - `remote_fees_id`: One of the included `assets` to be used to pay fees.
1676
+ * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
1677
+ * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
1678
+ * transfer, which also determines what happens to the assets on the destination chain.
1679
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
1680
+ *
1681
+ * @param {XcmVersionedLocation} dest
1682
+ * @param {XcmVersionedAssets} assets
1683
+ * @param {StagingXcmExecutorAssetTransferTransferType} assetsTransferType
1684
+ * @param {XcmVersionedAssetId} remoteFeesId
1685
+ * @param {StagingXcmExecutorAssetTransferTransferType} feesTransferType
1686
+ * @param {XcmVersionedXcm} customXcmOnDest
1687
+ * @param {XcmV3WeightLimit} weightLimit
1688
+ **/
1689
+ transferAssetsUsingTypeAndThen: GenericTxCall<
1690
+ Rv,
1691
+ (
1692
+ dest: XcmVersionedLocation,
1693
+ assets: XcmVersionedAssets,
1694
+ assetsTransferType: StagingXcmExecutorAssetTransferTransferType,
1695
+ remoteFeesId: XcmVersionedAssetId,
1696
+ feesTransferType: StagingXcmExecutorAssetTransferTransferType,
1697
+ customXcmOnDest: XcmVersionedXcm,
1698
+ weightLimit: XcmV3WeightLimit,
1699
+ ) => ChainSubmittableExtrinsic<
1700
+ Rv,
1701
+ {
1702
+ pallet: 'PolkadotXcm';
1703
+ palletCall: {
1704
+ name: 'TransferAssetsUsingTypeAndThen';
1705
+ params: {
1706
+ dest: XcmVersionedLocation;
1707
+ assets: XcmVersionedAssets;
1708
+ assetsTransferType: StagingXcmExecutorAssetTransferTransferType;
1709
+ remoteFeesId: XcmVersionedAssetId;
1710
+ feesTransferType: StagingXcmExecutorAssetTransferTransferType;
1711
+ customXcmOnDest: XcmVersionedXcm;
1712
+ weightLimit: XcmV3WeightLimit;
1713
+ };
1714
+ };
1715
+ }
1716
+ >
1717
+ >;
1718
+
1719
+ /**
1720
+ * Generic pallet tx call
1721
+ **/
1722
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
1723
+ };
1724
+ /**
1725
+ * Pallet `CumulusXcm`'s transaction calls
1726
+ **/
1727
+ cumulusXcm: {
1728
+ /**
1729
+ * Generic pallet tx call
1730
+ **/
1731
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
1732
+ };
1733
+ /**
1734
+ * Pallet `MessageQueue`'s transaction calls
1735
+ **/
1736
+ messageQueue: {
1737
+ /**
1738
+ * Remove a page which has no more messages remaining to be processed or is stale.
1739
+ *
1740
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin
1741
+ * @param {number} pageIndex
1742
+ **/
1743
+ reapPage: GenericTxCall<
1744
+ Rv,
1745
+ (
1746
+ messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin,
1747
+ pageIndex: number,
1748
+ ) => ChainSubmittableExtrinsic<
1749
+ Rv,
1750
+ {
1751
+ pallet: 'MessageQueue';
1752
+ palletCall: {
1753
+ name: 'ReapPage';
1754
+ params: { messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; pageIndex: number };
1755
+ };
1756
+ }
1757
+ >
1758
+ >;
1759
+
1760
+ /**
1761
+ * Execute an overweight message.
1762
+ *
1763
+ * Temporary processing errors will be propagated whereas permanent errors are treated
1764
+ * as success condition.
1765
+ *
1766
+ * - `origin`: Must be `Signed`.
1767
+ * - `message_origin`: The origin from which the message to be executed arrived.
1768
+ * - `page`: The page in the queue in which the message to be executed is sitting.
1769
+ * - `index`: The index into the queue of the message to be executed.
1770
+ * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution
1771
+ * of the message.
1772
+ *
1773
+ * Benchmark complexity considerations: O(index + weight_limit).
1774
+ *
1775
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} messageOrigin
1776
+ * @param {number} page
1777
+ * @param {number} index
1778
+ * @param {SpWeightsWeightV2Weight} weightLimit
1779
+ **/
1780
+ executeOverweight: GenericTxCall<
1781
+ Rv,
1782
+ (
1783
+ messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin,
1784
+ page: number,
1785
+ index: number,
1786
+ weightLimit: SpWeightsWeightV2Weight,
1787
+ ) => ChainSubmittableExtrinsic<
1788
+ Rv,
1789
+ {
1790
+ pallet: 'MessageQueue';
1791
+ palletCall: {
1792
+ name: 'ExecuteOverweight';
1793
+ params: {
1794
+ messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin;
1795
+ page: number;
1796
+ index: number;
1797
+ weightLimit: SpWeightsWeightV2Weight;
1798
+ };
1799
+ };
1800
+ }
1801
+ >
1802
+ >;
1803
+
1804
+ /**
1805
+ * Generic pallet tx call
1806
+ **/
1807
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
1808
+ };
1809
+ /**
1810
+ * Pallet `Utility`'s transaction calls
1811
+ **/
1812
+ utility: {
1813
+ /**
1814
+ * Send a batch of dispatch calls.
1815
+ *
1816
+ * May be called from any origin except `None`.
1817
+ *
1818
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
1819
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
1820
+ *
1821
+ * If origin is root then the calls are dispatched without checking origin filter. (This
1822
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
1823
+ *
1824
+ * ## Complexity
1825
+ * - O(C) where C is the number of calls to be batched.
1826
+ *
1827
+ * This will return `Ok` in all circumstances. To determine the success of the batch, an
1828
+ * event is deposited. If a call failed and the batch was interrupted, then the
1829
+ * `BatchInterrupted` event is deposited, along with the number of successful calls made
1830
+ * and the error of the failed call. If all were successful, then the `BatchCompleted`
1831
+ * event is deposited.
1832
+ *
1833
+ * @param {Array<PeopleWestendRuntimeRuntimeCallLike>} calls
1834
+ **/
1835
+ batch: GenericTxCall<
1836
+ Rv,
1837
+ (calls: Array<PeopleWestendRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<
1838
+ Rv,
1839
+ {
1840
+ pallet: 'Utility';
1841
+ palletCall: {
1842
+ name: 'Batch';
1843
+ params: { calls: Array<PeopleWestendRuntimeRuntimeCallLike> };
1844
+ };
1845
+ }
1846
+ >
1847
+ >;
1848
+
1849
+ /**
1850
+ * Send a call through an indexed pseudonym of the sender.
1851
+ *
1852
+ * Filter from origin are passed along. The call will be dispatched with an origin which
1853
+ * use the same filter as the origin of this call.
1854
+ *
1855
+ * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
1856
+ * because you expect `proxy` to have been used prior in the call stack and you do not want
1857
+ * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
1858
+ * in the Multisig pallet instead.
1859
+ *
1860
+ * NOTE: Prior to version *12, this was called `as_limited_sub`.
1861
+ *
1862
+ * The dispatch origin for this call must be _Signed_.
1863
+ *
1864
+ * @param {number} index
1865
+ * @param {PeopleWestendRuntimeRuntimeCallLike} call
1866
+ **/
1867
+ asDerivative: GenericTxCall<
1868
+ Rv,
1869
+ (
1870
+ index: number,
1871
+ call: PeopleWestendRuntimeRuntimeCallLike,
1872
+ ) => ChainSubmittableExtrinsic<
1873
+ Rv,
1874
+ {
1875
+ pallet: 'Utility';
1876
+ palletCall: {
1877
+ name: 'AsDerivative';
1878
+ params: { index: number; call: PeopleWestendRuntimeRuntimeCallLike };
1879
+ };
1880
+ }
1881
+ >
1882
+ >;
1883
+
1884
+ /**
1885
+ * Send a batch of dispatch calls and atomically execute them.
1886
+ * The whole transaction will rollback and fail if any of the calls failed.
1887
+ *
1888
+ * May be called from any origin except `None`.
1889
+ *
1890
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
1891
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
1892
+ *
1893
+ * If origin is root then the calls are dispatched without checking origin filter. (This
1894
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
1895
+ *
1896
+ * ## Complexity
1897
+ * - O(C) where C is the number of calls to be batched.
1898
+ *
1899
+ * @param {Array<PeopleWestendRuntimeRuntimeCallLike>} calls
1900
+ **/
1901
+ batchAll: GenericTxCall<
1902
+ Rv,
1903
+ (calls: Array<PeopleWestendRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<
1904
+ Rv,
1905
+ {
1906
+ pallet: 'Utility';
1907
+ palletCall: {
1908
+ name: 'BatchAll';
1909
+ params: { calls: Array<PeopleWestendRuntimeRuntimeCallLike> };
1910
+ };
1911
+ }
1912
+ >
1913
+ >;
1914
+
1915
+ /**
1916
+ * Dispatches a function call with a provided origin.
1917
+ *
1918
+ * The dispatch origin for this call must be _Root_.
1919
+ *
1920
+ * ## Complexity
1921
+ * - O(1).
1922
+ *
1923
+ * @param {PeopleWestendRuntimeOriginCaller} asOrigin
1924
+ * @param {PeopleWestendRuntimeRuntimeCallLike} call
1925
+ **/
1926
+ dispatchAs: GenericTxCall<
1927
+ Rv,
1928
+ (
1929
+ asOrigin: PeopleWestendRuntimeOriginCaller,
1930
+ call: PeopleWestendRuntimeRuntimeCallLike,
1931
+ ) => ChainSubmittableExtrinsic<
1932
+ Rv,
1933
+ {
1934
+ pallet: 'Utility';
1935
+ palletCall: {
1936
+ name: 'DispatchAs';
1937
+ params: { asOrigin: PeopleWestendRuntimeOriginCaller; call: PeopleWestendRuntimeRuntimeCallLike };
1938
+ };
1939
+ }
1940
+ >
1941
+ >;
1942
+
1943
+ /**
1944
+ * Send a batch of dispatch calls.
1945
+ * Unlike `batch`, it allows errors and won't interrupt.
1946
+ *
1947
+ * May be called from any origin except `None`.
1948
+ *
1949
+ * - `calls`: The calls to be dispatched from the same origin. The number of call must not
1950
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
1951
+ *
1952
+ * If origin is root then the calls are dispatch without checking origin filter. (This
1953
+ * includes bypassing `frame_system::Config::BaseCallFilter`).
1954
+ *
1955
+ * ## Complexity
1956
+ * - O(C) where C is the number of calls to be batched.
1957
+ *
1958
+ * @param {Array<PeopleWestendRuntimeRuntimeCallLike>} calls
1959
+ **/
1960
+ forceBatch: GenericTxCall<
1961
+ Rv,
1962
+ (calls: Array<PeopleWestendRuntimeRuntimeCallLike>) => ChainSubmittableExtrinsic<
1963
+ Rv,
1964
+ {
1965
+ pallet: 'Utility';
1966
+ palletCall: {
1967
+ name: 'ForceBatch';
1968
+ params: { calls: Array<PeopleWestendRuntimeRuntimeCallLike> };
1969
+ };
1970
+ }
1971
+ >
1972
+ >;
1973
+
1974
+ /**
1975
+ * Dispatch a function call with a specified weight.
1976
+ *
1977
+ * This function does not check the weight of the call, and instead allows the
1978
+ * Root origin to specify the weight of the call.
1979
+ *
1980
+ * The dispatch origin for this call must be _Root_.
1981
+ *
1982
+ * @param {PeopleWestendRuntimeRuntimeCallLike} call
1983
+ * @param {SpWeightsWeightV2Weight} weight
1984
+ **/
1985
+ withWeight: GenericTxCall<
1986
+ Rv,
1987
+ (
1988
+ call: PeopleWestendRuntimeRuntimeCallLike,
1989
+ weight: SpWeightsWeightV2Weight,
1990
+ ) => ChainSubmittableExtrinsic<
1991
+ Rv,
1992
+ {
1993
+ pallet: 'Utility';
1994
+ palletCall: {
1995
+ name: 'WithWeight';
1996
+ params: { call: PeopleWestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight };
1997
+ };
1998
+ }
1999
+ >
2000
+ >;
2001
+
2002
+ /**
2003
+ * Generic pallet tx call
2004
+ **/
2005
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2006
+ };
2007
+ /**
2008
+ * Pallet `Multisig`'s transaction calls
2009
+ **/
2010
+ multisig: {
2011
+ /**
2012
+ * Immediately dispatch a multi-signature call using a single approval from the caller.
2013
+ *
2014
+ * The dispatch origin for this call must be _Signed_.
2015
+ *
2016
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
2017
+ * multi-signature, but do not participate in the approval process.
2018
+ * - `call`: The call to be executed.
2019
+ *
2020
+ * Result is equivalent to the dispatched result.
2021
+ *
2022
+ * ## Complexity
2023
+ * O(Z + C) where Z is the length of the call and C its execution weight.
2024
+ *
2025
+ * @param {Array<AccountId32Like>} otherSignatories
2026
+ * @param {PeopleWestendRuntimeRuntimeCallLike} call
2027
+ **/
2028
+ asMultiThreshold1: GenericTxCall<
2029
+ Rv,
2030
+ (
2031
+ otherSignatories: Array<AccountId32Like>,
2032
+ call: PeopleWestendRuntimeRuntimeCallLike,
2033
+ ) => ChainSubmittableExtrinsic<
2034
+ Rv,
2035
+ {
2036
+ pallet: 'Multisig';
2037
+ palletCall: {
2038
+ name: 'AsMultiThreshold1';
2039
+ params: { otherSignatories: Array<AccountId32Like>; call: PeopleWestendRuntimeRuntimeCallLike };
2040
+ };
2041
+ }
2042
+ >
2043
+ >;
2044
+
2045
+ /**
2046
+ * Register approval for a dispatch to be made from a deterministic composite account if
2047
+ * approved by a total of `threshold - 1` of `other_signatories`.
2048
+ *
2049
+ * If there are enough, then dispatch the call.
2050
+ *
2051
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
2052
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
2053
+ * is cancelled.
2054
+ *
2055
+ * The dispatch origin for this call must be _Signed_.
2056
+ *
2057
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
2058
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
2059
+ * dispatch. May not be empty.
2060
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
2061
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
2062
+ * transaction index) of the first approval transaction.
2063
+ * - `call`: The call to be executed.
2064
+ *
2065
+ * NOTE: Unless this is the final approval, you will generally want to use
2066
+ * `approve_as_multi` instead, since it only requires a hash of the call.
2067
+ *
2068
+ * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
2069
+ * on success, result is `Ok` and the result from the interior call, if it was executed,
2070
+ * may be found in the deposited `MultisigExecuted` event.
2071
+ *
2072
+ * ## Complexity
2073
+ * - `O(S + Z + Call)`.
2074
+ * - Up to one balance-reserve or unreserve operation.
2075
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
2076
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
2077
+ * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
2078
+ * - One encode & hash, both of complexity `O(S)`.
2079
+ * - Up to one binary search and insert (`O(logS + S)`).
2080
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
2081
+ * - One event.
2082
+ * - The weight of the `call`.
2083
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2084
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2085
+ *
2086
+ * @param {number} threshold
2087
+ * @param {Array<AccountId32Like>} otherSignatories
2088
+ * @param {PalletMultisigTimepoint | undefined} maybeTimepoint
2089
+ * @param {PeopleWestendRuntimeRuntimeCallLike} call
2090
+ * @param {SpWeightsWeightV2Weight} maxWeight
2091
+ **/
2092
+ asMulti: GenericTxCall<
2093
+ Rv,
2094
+ (
2095
+ threshold: number,
2096
+ otherSignatories: Array<AccountId32Like>,
2097
+ maybeTimepoint: PalletMultisigTimepoint | undefined,
2098
+ call: PeopleWestendRuntimeRuntimeCallLike,
2099
+ maxWeight: SpWeightsWeightV2Weight,
2100
+ ) => ChainSubmittableExtrinsic<
2101
+ Rv,
2102
+ {
2103
+ pallet: 'Multisig';
2104
+ palletCall: {
2105
+ name: 'AsMulti';
2106
+ params: {
2107
+ threshold: number;
2108
+ otherSignatories: Array<AccountId32Like>;
2109
+ maybeTimepoint: PalletMultisigTimepoint | undefined;
2110
+ call: PeopleWestendRuntimeRuntimeCallLike;
2111
+ maxWeight: SpWeightsWeightV2Weight;
2112
+ };
2113
+ };
2114
+ }
2115
+ >
2116
+ >;
2117
+
2118
+ /**
2119
+ * Register approval for a dispatch to be made from a deterministic composite account if
2120
+ * approved by a total of `threshold - 1` of `other_signatories`.
2121
+ *
2122
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
2123
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
2124
+ * is cancelled.
2125
+ *
2126
+ * The dispatch origin for this call must be _Signed_.
2127
+ *
2128
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
2129
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
2130
+ * dispatch. May not be empty.
2131
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
2132
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
2133
+ * transaction index) of the first approval transaction.
2134
+ * - `call_hash`: The hash of the call to be executed.
2135
+ *
2136
+ * NOTE: If this is the final approval, you will want to use `as_multi` instead.
2137
+ *
2138
+ * ## Complexity
2139
+ * - `O(S)`.
2140
+ * - Up to one balance-reserve or unreserve operation.
2141
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
2142
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
2143
+ * - One encode & hash, both of complexity `O(S)`.
2144
+ * - Up to one binary search and insert (`O(logS + S)`).
2145
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
2146
+ * - One event.
2147
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2148
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2149
+ *
2150
+ * @param {number} threshold
2151
+ * @param {Array<AccountId32Like>} otherSignatories
2152
+ * @param {PalletMultisigTimepoint | undefined} maybeTimepoint
2153
+ * @param {FixedBytes<32>} callHash
2154
+ * @param {SpWeightsWeightV2Weight} maxWeight
2155
+ **/
2156
+ approveAsMulti: GenericTxCall<
2157
+ Rv,
2158
+ (
2159
+ threshold: number,
2160
+ otherSignatories: Array<AccountId32Like>,
2161
+ maybeTimepoint: PalletMultisigTimepoint | undefined,
2162
+ callHash: FixedBytes<32>,
2163
+ maxWeight: SpWeightsWeightV2Weight,
2164
+ ) => ChainSubmittableExtrinsic<
2165
+ Rv,
2166
+ {
2167
+ pallet: 'Multisig';
2168
+ palletCall: {
2169
+ name: 'ApproveAsMulti';
2170
+ params: {
2171
+ threshold: number;
2172
+ otherSignatories: Array<AccountId32Like>;
2173
+ maybeTimepoint: PalletMultisigTimepoint | undefined;
2174
+ callHash: FixedBytes<32>;
2175
+ maxWeight: SpWeightsWeightV2Weight;
2176
+ };
2177
+ };
2178
+ }
2179
+ >
2180
+ >;
2181
+
2182
+ /**
2183
+ * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
2184
+ * for this operation will be unreserved on success.
2185
+ *
2186
+ * The dispatch origin for this call must be _Signed_.
2187
+ *
2188
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
2189
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
2190
+ * dispatch. May not be empty.
2191
+ * - `timepoint`: The timepoint (block number and transaction index) of the first approval
2192
+ * transaction for this dispatch.
2193
+ * - `call_hash`: The hash of the call to be executed.
2194
+ *
2195
+ * ## Complexity
2196
+ * - `O(S)`.
2197
+ * - Up to one balance-reserve or unreserve operation.
2198
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
2199
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
2200
+ * - One encode & hash, both of complexity `O(S)`.
2201
+ * - One event.
2202
+ * - I/O: 1 read `O(S)`, one remove.
2203
+ * - Storage: removes one item.
2204
+ *
2205
+ * @param {number} threshold
2206
+ * @param {Array<AccountId32Like>} otherSignatories
2207
+ * @param {PalletMultisigTimepoint} timepoint
2208
+ * @param {FixedBytes<32>} callHash
2209
+ **/
2210
+ cancelAsMulti: GenericTxCall<
2211
+ Rv,
2212
+ (
2213
+ threshold: number,
2214
+ otherSignatories: Array<AccountId32Like>,
2215
+ timepoint: PalletMultisigTimepoint,
2216
+ callHash: FixedBytes<32>,
2217
+ ) => ChainSubmittableExtrinsic<
2218
+ Rv,
2219
+ {
2220
+ pallet: 'Multisig';
2221
+ palletCall: {
2222
+ name: 'CancelAsMulti';
2223
+ params: {
2224
+ threshold: number;
2225
+ otherSignatories: Array<AccountId32Like>;
2226
+ timepoint: PalletMultisigTimepoint;
2227
+ callHash: FixedBytes<32>;
2228
+ };
2229
+ };
2230
+ }
2231
+ >
2232
+ >;
2233
+
2234
+ /**
2235
+ * Generic pallet tx call
2236
+ **/
2237
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2238
+ };
2239
+ /**
2240
+ * Pallet `Identity`'s transaction calls
2241
+ **/
2242
+ identity: {
2243
+ /**
2244
+ * Add a registrar to the system.
2245
+ *
2246
+ * The dispatch origin for this call must be `T::RegistrarOrigin`.
2247
+ *
2248
+ * - `account`: the account of the registrar.
2249
+ *
2250
+ * Emits `RegistrarAdded` if successful.
2251
+ *
2252
+ * @param {MultiAddressLike} account
2253
+ **/
2254
+ addRegistrar: GenericTxCall<
2255
+ Rv,
2256
+ (account: MultiAddressLike) => ChainSubmittableExtrinsic<
2257
+ Rv,
2258
+ {
2259
+ pallet: 'Identity';
2260
+ palletCall: {
2261
+ name: 'AddRegistrar';
2262
+ params: { account: MultiAddressLike };
2263
+ };
2264
+ }
2265
+ >
2266
+ >;
2267
+
2268
+ /**
2269
+ * Set an account's identity information and reserve the appropriate deposit.
2270
+ *
2271
+ * If the account already has identity information, the deposit is taken as part payment
2272
+ * for the new deposit.
2273
+ *
2274
+ * The dispatch origin for this call must be _Signed_.
2275
+ *
2276
+ * - `info`: The identity information.
2277
+ *
2278
+ * Emits `IdentitySet` if successful.
2279
+ *
2280
+ * @param {PeopleWestendRuntimePeopleIdentityInfo} info
2281
+ **/
2282
+ setIdentity: GenericTxCall<
2283
+ Rv,
2284
+ (info: PeopleWestendRuntimePeopleIdentityInfo) => ChainSubmittableExtrinsic<
2285
+ Rv,
2286
+ {
2287
+ pallet: 'Identity';
2288
+ palletCall: {
2289
+ name: 'SetIdentity';
2290
+ params: { info: PeopleWestendRuntimePeopleIdentityInfo };
2291
+ };
2292
+ }
2293
+ >
2294
+ >;
2295
+
2296
+ /**
2297
+ * Set the sub-accounts of the sender.
2298
+ *
2299
+ * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned
2300
+ * and an amount `SubAccountDeposit` will be reserved for each item in `subs`.
2301
+ *
2302
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
2303
+ * identity.
2304
+ *
2305
+ * - `subs`: The identity's (new) sub-accounts.
2306
+ *
2307
+ * @param {Array<[AccountId32Like, Data]>} subs
2308
+ **/
2309
+ setSubs: GenericTxCall<
2310
+ Rv,
2311
+ (subs: Array<[AccountId32Like, Data]>) => ChainSubmittableExtrinsic<
2312
+ Rv,
2313
+ {
2314
+ pallet: 'Identity';
2315
+ palletCall: {
2316
+ name: 'SetSubs';
2317
+ params: { subs: Array<[AccountId32Like, Data]> };
2318
+ };
2319
+ }
2320
+ >
2321
+ >;
2322
+
2323
+ /**
2324
+ * Clear an account's identity info and all sub-accounts and return all deposits.
2325
+ *
2326
+ * Payment: All reserved balances on the account are returned.
2327
+ *
2328
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
2329
+ * identity.
2330
+ *
2331
+ * Emits `IdentityCleared` if successful.
2332
+ *
2333
+ **/
2334
+ clearIdentity: GenericTxCall<
2335
+ Rv,
2336
+ () => ChainSubmittableExtrinsic<
2337
+ Rv,
2338
+ {
2339
+ pallet: 'Identity';
2340
+ palletCall: {
2341
+ name: 'ClearIdentity';
2342
+ };
2343
+ }
2344
+ >
2345
+ >;
2346
+
2347
+ /**
2348
+ * Request a judgement from a registrar.
2349
+ *
2350
+ * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement
2351
+ * given.
2352
+ *
2353
+ * The dispatch origin for this call must be _Signed_ and the sender must have a
2354
+ * registered identity.
2355
+ *
2356
+ * - `reg_index`: The index of the registrar whose judgement is requested.
2357
+ * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
2358
+ *
2359
+ * ```nocompile
2360
+ * Self::registrars().get(reg_index).unwrap().fee
2361
+ * ```
2362
+ *
2363
+ * Emits `JudgementRequested` if successful.
2364
+ *
2365
+ * @param {number} regIndex
2366
+ * @param {bigint} maxFee
2367
+ **/
2368
+ requestJudgement: GenericTxCall<
2369
+ Rv,
2370
+ (
2371
+ regIndex: number,
2372
+ maxFee: bigint,
2373
+ ) => ChainSubmittableExtrinsic<
2374
+ Rv,
2375
+ {
2376
+ pallet: 'Identity';
2377
+ palletCall: {
2378
+ name: 'RequestJudgement';
2379
+ params: { regIndex: number; maxFee: bigint };
2380
+ };
2381
+ }
2382
+ >
2383
+ >;
2384
+
2385
+ /**
2386
+ * Cancel a previous request.
2387
+ *
2388
+ * Payment: A previously reserved deposit is returned on success.
2389
+ *
2390
+ * The dispatch origin for this call must be _Signed_ and the sender must have a
2391
+ * registered identity.
2392
+ *
2393
+ * - `reg_index`: The index of the registrar whose judgement is no longer requested.
2394
+ *
2395
+ * Emits `JudgementUnrequested` if successful.
2396
+ *
2397
+ * @param {number} regIndex
2398
+ **/
2399
+ cancelRequest: GenericTxCall<
2400
+ Rv,
2401
+ (regIndex: number) => ChainSubmittableExtrinsic<
2402
+ Rv,
2403
+ {
2404
+ pallet: 'Identity';
2405
+ palletCall: {
2406
+ name: 'CancelRequest';
2407
+ params: { regIndex: number };
2408
+ };
2409
+ }
2410
+ >
2411
+ >;
2412
+
2413
+ /**
2414
+ * Set the fee required for a judgement to be requested from a registrar.
2415
+ *
2416
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
2417
+ * of the registrar whose index is `index`.
2418
+ *
2419
+ * - `index`: the index of the registrar whose fee is to be set.
2420
+ * - `fee`: the new fee.
2421
+ *
2422
+ * @param {number} index
2423
+ * @param {bigint} fee
2424
+ **/
2425
+ setFee: GenericTxCall<
2426
+ Rv,
2427
+ (
2428
+ index: number,
2429
+ fee: bigint,
2430
+ ) => ChainSubmittableExtrinsic<
2431
+ Rv,
2432
+ {
2433
+ pallet: 'Identity';
2434
+ palletCall: {
2435
+ name: 'SetFee';
2436
+ params: { index: number; fee: bigint };
2437
+ };
2438
+ }
2439
+ >
2440
+ >;
2441
+
2442
+ /**
2443
+ * Change the account associated with a registrar.
2444
+ *
2445
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
2446
+ * of the registrar whose index is `index`.
2447
+ *
2448
+ * - `index`: the index of the registrar whose fee is to be set.
2449
+ * - `new`: the new account ID.
2450
+ *
2451
+ * @param {number} index
2452
+ * @param {MultiAddressLike} new_
2453
+ **/
2454
+ setAccountId: GenericTxCall<
2455
+ Rv,
2456
+ (
2457
+ index: number,
2458
+ new_: MultiAddressLike,
2459
+ ) => ChainSubmittableExtrinsic<
2460
+ Rv,
2461
+ {
2462
+ pallet: 'Identity';
2463
+ palletCall: {
2464
+ name: 'SetAccountId';
2465
+ params: { index: number; new: MultiAddressLike };
2466
+ };
2467
+ }
2468
+ >
2469
+ >;
2470
+
2471
+ /**
2472
+ * Set the field information for a registrar.
2473
+ *
2474
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
2475
+ * of the registrar whose index is `index`.
2476
+ *
2477
+ * - `index`: the index of the registrar whose fee is to be set.
2478
+ * - `fields`: the fields that the registrar concerns themselves with.
2479
+ *
2480
+ * @param {number} index
2481
+ * @param {bigint} fields
2482
+ **/
2483
+ setFields: GenericTxCall<
2484
+ Rv,
2485
+ (
2486
+ index: number,
2487
+ fields: bigint,
2488
+ ) => ChainSubmittableExtrinsic<
2489
+ Rv,
2490
+ {
2491
+ pallet: 'Identity';
2492
+ palletCall: {
2493
+ name: 'SetFields';
2494
+ params: { index: number; fields: bigint };
2495
+ };
2496
+ }
2497
+ >
2498
+ >;
2499
+
2500
+ /**
2501
+ * Provide a judgement for an account's identity.
2502
+ *
2503
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
2504
+ * of the registrar whose index is `reg_index`.
2505
+ *
2506
+ * - `reg_index`: the index of the registrar whose judgement is being made.
2507
+ * - `target`: the account whose identity the judgement is upon. This must be an account
2508
+ * with a registered identity.
2509
+ * - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
2510
+ * - `identity`: The hash of the [`IdentityInformationProvider`] for that the judgement is
2511
+ * provided.
2512
+ *
2513
+ * Note: Judgements do not apply to a username.
2514
+ *
2515
+ * Emits `JudgementGiven` if successful.
2516
+ *
2517
+ * @param {number} regIndex
2518
+ * @param {MultiAddressLike} target
2519
+ * @param {PalletIdentityJudgement} judgement
2520
+ * @param {H256} identity
2521
+ **/
2522
+ provideJudgement: GenericTxCall<
2523
+ Rv,
2524
+ (
2525
+ regIndex: number,
2526
+ target: MultiAddressLike,
2527
+ judgement: PalletIdentityJudgement,
2528
+ identity: H256,
2529
+ ) => ChainSubmittableExtrinsic<
2530
+ Rv,
2531
+ {
2532
+ pallet: 'Identity';
2533
+ palletCall: {
2534
+ name: 'ProvideJudgement';
2535
+ params: { regIndex: number; target: MultiAddressLike; judgement: PalletIdentityJudgement; identity: H256 };
2536
+ };
2537
+ }
2538
+ >
2539
+ >;
2540
+
2541
+ /**
2542
+ * Remove an account's identity and sub-account information and slash the deposits.
2543
+ *
2544
+ * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by
2545
+ * `Slash`. Verification request deposits are not returned; they should be cancelled
2546
+ * manually using `cancel_request`.
2547
+ *
2548
+ * The dispatch origin for this call must match `T::ForceOrigin`.
2549
+ *
2550
+ * - `target`: the account whose identity the judgement is upon. This must be an account
2551
+ * with a registered identity.
2552
+ *
2553
+ * Emits `IdentityKilled` if successful.
2554
+ *
2555
+ * @param {MultiAddressLike} target
2556
+ **/
2557
+ killIdentity: GenericTxCall<
2558
+ Rv,
2559
+ (target: MultiAddressLike) => ChainSubmittableExtrinsic<
2560
+ Rv,
2561
+ {
2562
+ pallet: 'Identity';
2563
+ palletCall: {
2564
+ name: 'KillIdentity';
2565
+ params: { target: MultiAddressLike };
2566
+ };
2567
+ }
2568
+ >
2569
+ >;
2570
+
2571
+ /**
2572
+ * Add the given account to the sender's subs.
2573
+ *
2574
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
2575
+ * to the sender.
2576
+ *
2577
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
2578
+ * sub identity of `sub`.
2579
+ *
2580
+ * @param {MultiAddressLike} sub
2581
+ * @param {Data} data
2582
+ **/
2583
+ addSub: GenericTxCall<
2584
+ Rv,
2585
+ (
2586
+ sub: MultiAddressLike,
2587
+ data: Data,
2588
+ ) => ChainSubmittableExtrinsic<
2589
+ Rv,
2590
+ {
2591
+ pallet: 'Identity';
2592
+ palletCall: {
2593
+ name: 'AddSub';
2594
+ params: { sub: MultiAddressLike; data: Data };
2595
+ };
2596
+ }
2597
+ >
2598
+ >;
2599
+
2600
+ /**
2601
+ * Alter the associated name of the given sub-account.
2602
+ *
2603
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
2604
+ * sub identity of `sub`.
2605
+ *
2606
+ * @param {MultiAddressLike} sub
2607
+ * @param {Data} data
2608
+ **/
2609
+ renameSub: GenericTxCall<
2610
+ Rv,
2611
+ (
2612
+ sub: MultiAddressLike,
2613
+ data: Data,
2614
+ ) => ChainSubmittableExtrinsic<
2615
+ Rv,
2616
+ {
2617
+ pallet: 'Identity';
2618
+ palletCall: {
2619
+ name: 'RenameSub';
2620
+ params: { sub: MultiAddressLike; data: Data };
2621
+ };
2622
+ }
2623
+ >
2624
+ >;
2625
+
2626
+ /**
2627
+ * Remove the given account from the sender's subs.
2628
+ *
2629
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
2630
+ * to the sender.
2631
+ *
2632
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
2633
+ * sub identity of `sub`.
2634
+ *
2635
+ * @param {MultiAddressLike} sub
2636
+ **/
2637
+ removeSub: GenericTxCall<
2638
+ Rv,
2639
+ (sub: MultiAddressLike) => ChainSubmittableExtrinsic<
2640
+ Rv,
2641
+ {
2642
+ pallet: 'Identity';
2643
+ palletCall: {
2644
+ name: 'RemoveSub';
2645
+ params: { sub: MultiAddressLike };
2646
+ };
2647
+ }
2648
+ >
2649
+ >;
2650
+
2651
+ /**
2652
+ * Remove the sender as a sub-account.
2653
+ *
2654
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
2655
+ * to the sender (*not* the original depositor).
2656
+ *
2657
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
2658
+ * super-identity.
2659
+ *
2660
+ * NOTE: This should not normally be used, but is provided in the case that the non-
2661
+ * controller of an account is maliciously registered as a sub-account.
2662
+ *
2663
+ **/
2664
+ quitSub: GenericTxCall<
2665
+ Rv,
2666
+ () => ChainSubmittableExtrinsic<
2667
+ Rv,
2668
+ {
2669
+ pallet: 'Identity';
2670
+ palletCall: {
2671
+ name: 'QuitSub';
2672
+ };
2673
+ }
2674
+ >
2675
+ >;
2676
+
2677
+ /**
2678
+ * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
2679
+ *
2680
+ * The authority can grant up to `allocation` usernames. To top up their allocation, they
2681
+ * should just issue (or request via governance) a new `add_username_authority` call.
2682
+ *
2683
+ * @param {MultiAddressLike} authority
2684
+ * @param {BytesLike} suffix
2685
+ * @param {number} allocation
2686
+ **/
2687
+ addUsernameAuthority: GenericTxCall<
2688
+ Rv,
2689
+ (
2690
+ authority: MultiAddressLike,
2691
+ suffix: BytesLike,
2692
+ allocation: number,
2693
+ ) => ChainSubmittableExtrinsic<
2694
+ Rv,
2695
+ {
2696
+ pallet: 'Identity';
2697
+ palletCall: {
2698
+ name: 'AddUsernameAuthority';
2699
+ params: { authority: MultiAddressLike; suffix: BytesLike; allocation: number };
2700
+ };
2701
+ }
2702
+ >
2703
+ >;
2704
+
2705
+ /**
2706
+ * Remove `authority` from the username authorities.
2707
+ *
2708
+ * @param {MultiAddressLike} authority
2709
+ **/
2710
+ removeUsernameAuthority: GenericTxCall<
2711
+ Rv,
2712
+ (authority: MultiAddressLike) => ChainSubmittableExtrinsic<
2713
+ Rv,
2714
+ {
2715
+ pallet: 'Identity';
2716
+ palletCall: {
2717
+ name: 'RemoveUsernameAuthority';
2718
+ params: { authority: MultiAddressLike };
2719
+ };
2720
+ }
2721
+ >
2722
+ >;
2723
+
2724
+ /**
2725
+ * Set the username for `who`. Must be called by a username authority.
2726
+ *
2727
+ * The authority must have an `allocation`. Users can either pre-sign their usernames or
2728
+ * accept them later.
2729
+ *
2730
+ * Usernames must:
2731
+ * - Only contain lowercase ASCII characters or digits.
2732
+ * - When combined with the suffix of the issuing authority be _less than_ the
2733
+ * `MaxUsernameLength`.
2734
+ *
2735
+ * @param {MultiAddressLike} who
2736
+ * @param {BytesLike} username
2737
+ * @param {SpRuntimeMultiSignature | undefined} signature
2738
+ **/
2739
+ setUsernameFor: GenericTxCall<
2740
+ Rv,
2741
+ (
2742
+ who: MultiAddressLike,
2743
+ username: BytesLike,
2744
+ signature: SpRuntimeMultiSignature | undefined,
2745
+ ) => ChainSubmittableExtrinsic<
2746
+ Rv,
2747
+ {
2748
+ pallet: 'Identity';
2749
+ palletCall: {
2750
+ name: 'SetUsernameFor';
2751
+ params: { who: MultiAddressLike; username: BytesLike; signature: SpRuntimeMultiSignature | undefined };
2752
+ };
2753
+ }
2754
+ >
2755
+ >;
2756
+
2757
+ /**
2758
+ * Accept a given username that an `authority` granted. The call must include the full
2759
+ * username, as in `username.suffix`.
2760
+ *
2761
+ * @param {BytesLike} username
2762
+ **/
2763
+ acceptUsername: GenericTxCall<
2764
+ Rv,
2765
+ (username: BytesLike) => ChainSubmittableExtrinsic<
2766
+ Rv,
2767
+ {
2768
+ pallet: 'Identity';
2769
+ palletCall: {
2770
+ name: 'AcceptUsername';
2771
+ params: { username: BytesLike };
2772
+ };
2773
+ }
2774
+ >
2775
+ >;
2776
+
2777
+ /**
2778
+ * Remove an expired username approval. The username was approved by an authority but never
2779
+ * accepted by the user and must now be beyond its expiration. The call must include the
2780
+ * full username, as in `username.suffix`.
2781
+ *
2782
+ * @param {BytesLike} username
2783
+ **/
2784
+ removeExpiredApproval: GenericTxCall<
2785
+ Rv,
2786
+ (username: BytesLike) => ChainSubmittableExtrinsic<
2787
+ Rv,
2788
+ {
2789
+ pallet: 'Identity';
2790
+ palletCall: {
2791
+ name: 'RemoveExpiredApproval';
2792
+ params: { username: BytesLike };
2793
+ };
2794
+ }
2795
+ >
2796
+ >;
2797
+
2798
+ /**
2799
+ * Set a given username as the primary. The username should include the suffix.
2800
+ *
2801
+ * @param {BytesLike} username
2802
+ **/
2803
+ setPrimaryUsername: GenericTxCall<
2804
+ Rv,
2805
+ (username: BytesLike) => ChainSubmittableExtrinsic<
2806
+ Rv,
2807
+ {
2808
+ pallet: 'Identity';
2809
+ palletCall: {
2810
+ name: 'SetPrimaryUsername';
2811
+ params: { username: BytesLike };
2812
+ };
2813
+ }
2814
+ >
2815
+ >;
2816
+
2817
+ /**
2818
+ * Remove a username that corresponds to an account with no identity. Exists when a user
2819
+ * gets a username but then calls `clear_identity`.
2820
+ *
2821
+ * @param {BytesLike} username
2822
+ **/
2823
+ removeDanglingUsername: GenericTxCall<
2824
+ Rv,
2825
+ (username: BytesLike) => ChainSubmittableExtrinsic<
2826
+ Rv,
2827
+ {
2828
+ pallet: 'Identity';
2829
+ palletCall: {
2830
+ name: 'RemoveDanglingUsername';
2831
+ params: { username: BytesLike };
2832
+ };
2833
+ }
2834
+ >
2835
+ >;
2836
+
2837
+ /**
2838
+ * Generic pallet tx call
2839
+ **/
2840
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2841
+ };
2842
+ /**
2843
+ * Pallet `IdentityMigrator`'s transaction calls
2844
+ **/
2845
+ identityMigrator: {
2846
+ /**
2847
+ * Reap the `IdentityInfo` of `who` from the Identity pallet of `T`, unreserving any
2848
+ * deposits held and removing storage items associated with `who`.
2849
+ *
2850
+ * @param {AccountId32Like} who
2851
+ **/
2852
+ reapIdentity: GenericTxCall<
2853
+ Rv,
2854
+ (who: AccountId32Like) => ChainSubmittableExtrinsic<
2855
+ Rv,
2856
+ {
2857
+ pallet: 'IdentityMigrator';
2858
+ palletCall: {
2859
+ name: 'ReapIdentity';
2860
+ params: { who: AccountId32Like };
2861
+ };
2862
+ }
2863
+ >
2864
+ >;
2865
+
2866
+ /**
2867
+ * Update the deposit of `who`. Meant to be called by the system with an XCM `Transact`
2868
+ * Instruction.
2869
+ *
2870
+ * @param {AccountId32Like} who
2871
+ **/
2872
+ pokeDeposit: GenericTxCall<
2873
+ Rv,
2874
+ (who: AccountId32Like) => ChainSubmittableExtrinsic<
2875
+ Rv,
2876
+ {
2877
+ pallet: 'IdentityMigrator';
2878
+ palletCall: {
2879
+ name: 'PokeDeposit';
2880
+ params: { who: AccountId32Like };
2881
+ };
2882
+ }
2883
+ >
2884
+ >;
2885
+
2886
+ /**
2887
+ * Generic pallet tx call
2888
+ **/
2889
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2890
+ };
2891
+ }