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