@dedot/chaintypes 0.152.0 → 0.154.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/package.json +2 -2
- package/polkadot/index.d.ts +1 -1
- package/westend/events.d.ts +79 -5
- package/westend/index.d.ts +1 -1
- package/westend/types.d.ts +70 -23
- package/westend-asset-hub/consts.d.ts +14 -0
- package/westend-asset-hub/errors.d.ts +29 -9
- package/westend-asset-hub/events.d.ts +95 -12
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +27 -4
- package/westend-asset-hub/runtime.d.ts +17 -0
- package/westend-asset-hub/tx.d.ts +110 -26
- package/westend-asset-hub/types.d.ts +281 -102
- package/westend-people/consts.d.ts +27 -0
- package/westend-people/errors.d.ts +26 -12
- package/westend-people/events.d.ts +181 -3
- package/westend-people/index.d.ts +3 -1
- package/westend-people/query.d.ts +40 -2
- package/westend-people/runtime.d.ts +131 -31
- package/westend-people/tx.d.ts +156 -12
- package/westend-people/types.d.ts +1153 -783
- package/westend-people/view-functions.d.ts +34 -1
package/westend-people/tx.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ import type {
|
|
|
15
15
|
PeopleWestendRuntimeRuntimeCallLike,
|
|
16
16
|
SpRuntimeMultiSignature,
|
|
17
17
|
FrameSystemEventRecord,
|
|
18
|
-
|
|
18
|
+
CumulusPalletParachainSystemParachainInherentBasicParachainInherentData,
|
|
19
|
+
CumulusPalletParachainSystemParachainInherentInboundMessagesData,
|
|
19
20
|
PalletBalancesAdjustmentDirection,
|
|
20
21
|
PeopleWestendRuntimeSessionKeys,
|
|
21
22
|
XcmVersionedLocation,
|
|
@@ -310,17 +311,24 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
310
311
|
* As a side effect, this function upgrades the current validation function
|
|
311
312
|
* if the appropriate time has come.
|
|
312
313
|
*
|
|
313
|
-
* @param {
|
|
314
|
+
* @param {CumulusPalletParachainSystemParachainInherentBasicParachainInherentData} data
|
|
315
|
+
* @param {CumulusPalletParachainSystemParachainInherentInboundMessagesData} inboundMessagesData
|
|
314
316
|
**/
|
|
315
317
|
setValidationData: GenericTxCall<
|
|
316
318
|
Rv,
|
|
317
|
-
(
|
|
319
|
+
(
|
|
320
|
+
data: CumulusPalletParachainSystemParachainInherentBasicParachainInherentData,
|
|
321
|
+
inboundMessagesData: CumulusPalletParachainSystemParachainInherentInboundMessagesData,
|
|
322
|
+
) => ChainSubmittableExtrinsic<
|
|
318
323
|
Rv,
|
|
319
324
|
{
|
|
320
325
|
pallet: 'ParachainSystem';
|
|
321
326
|
palletCall: {
|
|
322
327
|
name: 'SetValidationData';
|
|
323
|
-
params: {
|
|
328
|
+
params: {
|
|
329
|
+
data: CumulusPalletParachainSystemParachainInherentBasicParachainInherentData;
|
|
330
|
+
inboundMessagesData: CumulusPalletParachainSystemParachainInherentInboundMessagesData;
|
|
331
|
+
};
|
|
324
332
|
};
|
|
325
333
|
}
|
|
326
334
|
>
|
|
@@ -1128,6 +1136,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1128
1136
|
* @param {XcmVersionedLocation} beneficiary
|
|
1129
1137
|
* @param {XcmVersionedAssets} assets
|
|
1130
1138
|
* @param {number} feeAssetItem
|
|
1139
|
+
*
|
|
1140
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
1131
1141
|
**/
|
|
1132
1142
|
teleportAssets: GenericTxCall<
|
|
1133
1143
|
Rv,
|
|
@@ -1189,6 +1199,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1189
1199
|
* @param {XcmVersionedLocation} beneficiary
|
|
1190
1200
|
* @param {XcmVersionedAssets} assets
|
|
1191
1201
|
* @param {number} feeAssetItem
|
|
1202
|
+
*
|
|
1203
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
1192
1204
|
**/
|
|
1193
1205
|
reserveTransferAssets: GenericTxCall<
|
|
1194
1206
|
Rv,
|
|
@@ -1662,6 +1674,77 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1662
1674
|
>
|
|
1663
1675
|
>;
|
|
1664
1676
|
|
|
1677
|
+
/**
|
|
1678
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
1679
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
1680
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
1681
|
+
* `expiry` block number.
|
|
1682
|
+
*
|
|
1683
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
1684
|
+
* also under your control (like your account on another chain).
|
|
1685
|
+
*
|
|
1686
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
1687
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
1688
|
+
* `origin` in XCM programs executed on the local chain.
|
|
1689
|
+
*
|
|
1690
|
+
* @param {XcmVersionedLocation} aliaser
|
|
1691
|
+
* @param {bigint | undefined} expires
|
|
1692
|
+
**/
|
|
1693
|
+
addAuthorizedAlias: GenericTxCall<
|
|
1694
|
+
Rv,
|
|
1695
|
+
(
|
|
1696
|
+
aliaser: XcmVersionedLocation,
|
|
1697
|
+
expires: bigint | undefined,
|
|
1698
|
+
) => ChainSubmittableExtrinsic<
|
|
1699
|
+
Rv,
|
|
1700
|
+
{
|
|
1701
|
+
pallet: 'PolkadotXcm';
|
|
1702
|
+
palletCall: {
|
|
1703
|
+
name: 'AddAuthorizedAlias';
|
|
1704
|
+
params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
>
|
|
1708
|
+
>;
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
1712
|
+
* the local `origin` making this call.
|
|
1713
|
+
*
|
|
1714
|
+
* @param {XcmVersionedLocation} aliaser
|
|
1715
|
+
**/
|
|
1716
|
+
removeAuthorizedAlias: GenericTxCall<
|
|
1717
|
+
Rv,
|
|
1718
|
+
(aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
|
|
1719
|
+
Rv,
|
|
1720
|
+
{
|
|
1721
|
+
pallet: 'PolkadotXcm';
|
|
1722
|
+
palletCall: {
|
|
1723
|
+
name: 'RemoveAuthorizedAlias';
|
|
1724
|
+
params: { aliaser: XcmVersionedLocation };
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
>
|
|
1728
|
+
>;
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
1732
|
+
* making this call.
|
|
1733
|
+
*
|
|
1734
|
+
**/
|
|
1735
|
+
removeAllAuthorizedAliases: GenericTxCall<
|
|
1736
|
+
Rv,
|
|
1737
|
+
() => ChainSubmittableExtrinsic<
|
|
1738
|
+
Rv,
|
|
1739
|
+
{
|
|
1740
|
+
pallet: 'PolkadotXcm';
|
|
1741
|
+
palletCall: {
|
|
1742
|
+
name: 'RemoveAllAuthorizedAliases';
|
|
1743
|
+
};
|
|
1744
|
+
}
|
|
1745
|
+
>
|
|
1746
|
+
>;
|
|
1747
|
+
|
|
1665
1748
|
/**
|
|
1666
1749
|
* Generic pallet tx call
|
|
1667
1750
|
**/
|
|
@@ -2249,6 +2332,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2249
2332
|
>
|
|
2250
2333
|
>;
|
|
2251
2334
|
|
|
2335
|
+
/**
|
|
2336
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
2337
|
+
*
|
|
2338
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
2339
|
+
* the multisig operation.
|
|
2340
|
+
*
|
|
2341
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
2342
|
+
*
|
|
2343
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
2344
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
2345
|
+
* multisig.
|
|
2346
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
2347
|
+
*
|
|
2348
|
+
* Emits `DepositPoked` if successful.
|
|
2349
|
+
*
|
|
2350
|
+
* @param {number} threshold
|
|
2351
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
2352
|
+
* @param {FixedBytes<32>} callHash
|
|
2353
|
+
**/
|
|
2354
|
+
pokeDeposit: GenericTxCall<
|
|
2355
|
+
Rv,
|
|
2356
|
+
(
|
|
2357
|
+
threshold: number,
|
|
2358
|
+
otherSignatories: Array<AccountId32Like>,
|
|
2359
|
+
callHash: FixedBytes<32>,
|
|
2360
|
+
) => ChainSubmittableExtrinsic<
|
|
2361
|
+
Rv,
|
|
2362
|
+
{
|
|
2363
|
+
pallet: 'Multisig';
|
|
2364
|
+
palletCall: {
|
|
2365
|
+
name: 'PokeDeposit';
|
|
2366
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
>
|
|
2370
|
+
>;
|
|
2371
|
+
|
|
2252
2372
|
/**
|
|
2253
2373
|
* Generic pallet tx call
|
|
2254
2374
|
**/
|
|
@@ -2364,7 +2484,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2364
2484
|
*
|
|
2365
2485
|
* The dispatch origin for this call must be _Signed_.
|
|
2366
2486
|
*
|
|
2367
|
-
* WARNING: This may be called on accounts created by `
|
|
2487
|
+
* WARNING: This may be called on accounts created by `create_pure`, however if done, then
|
|
2368
2488
|
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
2369
2489
|
*
|
|
2370
2490
|
**/
|
|
@@ -2430,16 +2550,16 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2430
2550
|
* inaccessible.
|
|
2431
2551
|
*
|
|
2432
2552
|
* Requires a `Signed` origin, and the sender account must have been created by a call to
|
|
2433
|
-
* `
|
|
2553
|
+
* `create_pure` with corresponding parameters.
|
|
2434
2554
|
*
|
|
2435
|
-
* - `spawner`: The account that originally called `
|
|
2436
|
-
* - `index`: The disambiguation index originally passed to `
|
|
2437
|
-
* - `proxy_type`: The proxy type originally passed to `
|
|
2438
|
-
* - `height`: The height of the chain when the call to `
|
|
2439
|
-
* - `ext_index`: The extrinsic index in which the call to `
|
|
2555
|
+
* - `spawner`: The account that originally called `create_pure` to create this account.
|
|
2556
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
2557
|
+
* - `proxy_type`: The proxy type originally passed to `create_pure`.
|
|
2558
|
+
* - `height`: The height of the chain when the call to `create_pure` was processed.
|
|
2559
|
+
* - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
|
|
2440
2560
|
*
|
|
2441
2561
|
* Fails with `NoPermission` in case the caller is not a previously created pure
|
|
2442
|
-
* account whose `
|
|
2562
|
+
* account whose `create_pure` call has corresponding parameters.
|
|
2443
2563
|
*
|
|
2444
2564
|
* @param {MultiAddressLike} spawner
|
|
2445
2565
|
* @param {PeopleWestendRuntimeProxyType} proxyType
|
|
@@ -2616,6 +2736,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2616
2736
|
>
|
|
2617
2737
|
>;
|
|
2618
2738
|
|
|
2739
|
+
/**
|
|
2740
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
2741
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
2742
|
+
*
|
|
2743
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2744
|
+
*
|
|
2745
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
2746
|
+
*
|
|
2747
|
+
* Emits `DepositPoked` if successful.
|
|
2748
|
+
*
|
|
2749
|
+
**/
|
|
2750
|
+
pokeDeposit: GenericTxCall<
|
|
2751
|
+
Rv,
|
|
2752
|
+
() => ChainSubmittableExtrinsic<
|
|
2753
|
+
Rv,
|
|
2754
|
+
{
|
|
2755
|
+
pallet: 'Proxy';
|
|
2756
|
+
palletCall: {
|
|
2757
|
+
name: 'PokeDeposit';
|
|
2758
|
+
};
|
|
2759
|
+
}
|
|
2760
|
+
>
|
|
2761
|
+
>;
|
|
2762
|
+
|
|
2619
2763
|
/**
|
|
2620
2764
|
* Generic pallet tx call
|
|
2621
2765
|
**/
|