@dedot/chaintypes 0.151.0 → 0.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/aleph/index.d.ts +32 -1
  2. package/astar/index.d.ts +32 -1
  3. package/astar/json-rpc.d.ts +0 -1
  4. package/basilisk/index.d.ts +30 -1
  5. package/hydration/index.d.ts +38 -1
  6. package/kusama/index.d.ts +34 -1
  7. package/kusama/json-rpc.d.ts +0 -1
  8. package/kusama-asset-hub/index.d.ts +34 -1
  9. package/kusama-asset-hub/json-rpc.d.ts +0 -1
  10. package/kusama-people/index.d.ts +34 -1
  11. package/kusama-people/json-rpc.d.ts +0 -1
  12. package/moonbeam/index.d.ts +38 -1
  13. package/moonbeam/json-rpc.d.ts +0 -1
  14. package/package.json +3 -3
  15. package/paseo/index.d.ts +36 -1
  16. package/paseo/json-rpc.d.ts +0 -1
  17. package/paseo-asset-hub/index.d.ts +34 -1
  18. package/paseo-asset-hub/json-rpc.d.ts +0 -1
  19. package/paseo-hydration/index.d.ts +38 -1
  20. package/paseo-people/index.d.ts +34 -1
  21. package/paseo-people/json-rpc.d.ts +0 -1
  22. package/polkadot/index.d.ts +36 -1
  23. package/polkadot/json-rpc.d.ts +0 -1
  24. package/polkadot-asset-hub/index.d.ts +34 -1
  25. package/polkadot-asset-hub/json-rpc.d.ts +0 -1
  26. package/polkadot-people/index.d.ts +34 -1
  27. package/polkadot-people/json-rpc.d.ts +0 -1
  28. package/substrate/index.d.ts +36 -1
  29. package/vara/index.d.ts +36 -1
  30. package/westend/events.d.ts +79 -5
  31. package/westend/index.d.ts +39 -2
  32. package/westend/json-rpc.d.ts +0 -1
  33. package/westend/types.d.ts +70 -23
  34. package/westend-asset-hub/consts.d.ts +14 -0
  35. package/westend-asset-hub/errors.d.ts +29 -9
  36. package/westend-asset-hub/events.d.ts +95 -12
  37. package/westend-asset-hub/index.d.ts +38 -2
  38. package/westend-asset-hub/json-rpc.d.ts +0 -1
  39. package/westend-asset-hub/query.d.ts +27 -4
  40. package/westend-asset-hub/runtime.d.ts +17 -0
  41. package/westend-asset-hub/tx.d.ts +110 -26
  42. package/westend-asset-hub/types.d.ts +281 -102
  43. package/westend-people/consts.d.ts +27 -0
  44. package/westend-people/errors.d.ts +26 -12
  45. package/westend-people/events.d.ts +181 -3
  46. package/westend-people/index.d.ts +36 -2
  47. package/westend-people/json-rpc.d.ts +0 -1
  48. package/westend-people/query.d.ts +40 -2
  49. package/westend-people/runtime.d.ts +131 -31
  50. package/westend-people/tx.d.ts +156 -12
  51. package/westend-people/types.d.ts +1153 -783
  52. package/westend-people/view-functions.d.ts +34 -1
@@ -41,11 +41,18 @@ import type {
41
41
  PeopleWestendRuntimeOriginCaller,
42
42
  XcmRuntimeApisDryRunXcmDryRunEffects,
43
43
  XcmRuntimeApisConversionsError,
44
+ XcmRuntimeApisTrustedQueryError,
45
+ XcmVersionedAsset,
46
+ XcmRuntimeApisAuthorizedAliasesOriginAliaser,
47
+ XcmRuntimeApisAuthorizedAliasesError,
44
48
  CumulusPrimitivesCoreCollationInfo,
45
49
  PolkadotPrimitivesVstagingCoreSelector,
46
50
  PolkadotPrimitivesVstagingClaimQueueOffset,
47
- XcmRuntimeApisTrustedQueryError,
48
- XcmVersionedAsset,
51
+ PolkadotParachainPrimitivesPrimitivesId,
52
+ SpStatementStoreRuntimeApiValidStatement,
53
+ SpStatementStoreRuntimeApiInvalidStatement,
54
+ SpStatementStoreRuntimeApiStatementSource,
55
+ SpStatementStoreStatement,
49
56
  } from './types.js';
50
57
 
51
58
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -74,6 +81,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
74
81
  **/
75
82
  [method: string]: GenericRuntimeApiMethod<Rv>;
76
83
  };
84
+ /**
85
+ * @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
86
+ **/
87
+ relayParentOffsetApi: {
88
+ /**
89
+ * Fetch the slot offset that is expected from the relay chain.
90
+ *
91
+ * @callname: RelayParentOffsetApi_relay_parent_offset
92
+ **/
93
+ relayParentOffset: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
94
+
95
+ /**
96
+ * Generic runtime api call
97
+ **/
98
+ [method: string]: GenericRuntimeApiMethod<Rv>;
99
+ };
77
100
  /**
78
101
  * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
79
102
  **/
@@ -563,6 +586,90 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
563
586
  **/
564
587
  [method: string]: GenericRuntimeApiMethod<Rv>;
565
588
  };
589
+ /**
590
+ * @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
591
+ **/
592
+ trustedQueryApi: {
593
+ /**
594
+ * Returns if the location is a trusted reserve for the asset.
595
+ *
596
+ * # Arguments
597
+ * * `asset`: `VersionedAsset`.
598
+ * * `location`: `VersionedLocation`.
599
+ *
600
+ * @callname: TrustedQueryApi_is_trusted_reserve
601
+ * @param {XcmVersionedAsset} asset
602
+ * @param {XcmVersionedLocation} location
603
+ **/
604
+ isTrustedReserve: GenericRuntimeApiMethod<
605
+ Rv,
606
+ (
607
+ asset: XcmVersionedAsset,
608
+ location: XcmVersionedLocation,
609
+ ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
610
+ >;
611
+
612
+ /**
613
+ * Returns if the asset can be teleported to the location.
614
+ *
615
+ * # Arguments
616
+ * * `asset`: `VersionedAsset`.
617
+ * * `location`: `VersionedLocation`.
618
+ *
619
+ * @callname: TrustedQueryApi_is_trusted_teleporter
620
+ * @param {XcmVersionedAsset} asset
621
+ * @param {XcmVersionedLocation} location
622
+ **/
623
+ isTrustedTeleporter: GenericRuntimeApiMethod<
624
+ Rv,
625
+ (
626
+ asset: XcmVersionedAsset,
627
+ location: XcmVersionedLocation,
628
+ ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
629
+ >;
630
+
631
+ /**
632
+ * Generic runtime api call
633
+ **/
634
+ [method: string]: GenericRuntimeApiMethod<Rv>;
635
+ };
636
+ /**
637
+ * @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
638
+ **/
639
+ authorizedAliasersApi: {
640
+ /**
641
+ * Returns locations allowed to alias into and act as `target`.
642
+ *
643
+ * @callname: AuthorizedAliasersApi_authorized_aliasers
644
+ * @param {XcmVersionedLocation} target
645
+ **/
646
+ authorizedAliasers: GenericRuntimeApiMethod<
647
+ Rv,
648
+ (
649
+ target: XcmVersionedLocation,
650
+ ) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
651
+ >;
652
+
653
+ /**
654
+ * Returns whether `origin` is allowed to alias into and act as `target`.
655
+ *
656
+ * @callname: AuthorizedAliasersApi_is_authorized_alias
657
+ * @param {XcmVersionedLocation} origin
658
+ * @param {XcmVersionedLocation} target
659
+ **/
660
+ isAuthorizedAlias: GenericRuntimeApiMethod<
661
+ Rv,
662
+ (
663
+ origin: XcmVersionedLocation,
664
+ target: XcmVersionedLocation,
665
+ ) => Promise<Result<boolean, XcmRuntimeApisAuthorizedAliasesError>>
666
+ >;
667
+
668
+ /**
669
+ * Generic runtime api call
670
+ **/
671
+ [method: string]: GenericRuntimeApiMethod<Rv>;
672
+ };
566
673
  /**
567
674
  * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
568
675
  **/
@@ -660,45 +767,38 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
660
767
  [method: string]: GenericRuntimeApiMethod<Rv>;
661
768
  };
662
769
  /**
663
- * @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
770
+ * @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
664
771
  **/
665
- trustedQueryApi: {
772
+ getParachainInfo: {
666
773
  /**
667
- * Returns if the location is a trusted reserve for the asset.
668
- *
669
- * # Arguments
670
- * * `asset`: `VersionedAsset`.
671
- * * `location`: `VersionedLocation`.
774
+ * Retrieve the parachain id used for runtime.
672
775
  *
673
- * @callname: TrustedQueryApi_is_trusted_reserve
674
- * @param {XcmVersionedAsset} asset
675
- * @param {XcmVersionedLocation} location
776
+ * @callname: GetParachainInfo_parachain_id
676
777
  **/
677
- isTrustedReserve: GenericRuntimeApiMethod<
678
- Rv,
679
- (
680
- asset: XcmVersionedAsset,
681
- location: XcmVersionedLocation,
682
- ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
683
- >;
778
+ parachainId: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
684
779
 
685
780
  /**
686
- * Returns if the asset can be teleported to the location.
687
- *
688
- * # Arguments
689
- * * `asset`: `VersionedAsset`.
690
- * * `location`: `VersionedLocation`.
781
+ * Generic runtime api call
782
+ **/
783
+ [method: string]: GenericRuntimeApiMethod<Rv>;
784
+ };
785
+ /**
786
+ * @runtimeapi: ValidateStatement - 0xbe9fb0c91a8046cf
787
+ **/
788
+ validateStatement: {
789
+ /**
790
+ * Validate the statement.
691
791
  *
692
- * @callname: TrustedQueryApi_is_trusted_teleporter
693
- * @param {XcmVersionedAsset} asset
694
- * @param {XcmVersionedLocation} location
792
+ * @callname: ValidateStatement_validate_statement
793
+ * @param {SpStatementStoreRuntimeApiStatementSource} source
794
+ * @param {SpStatementStoreStatement} statement
695
795
  **/
696
- isTrustedTeleporter: GenericRuntimeApiMethod<
796
+ validateStatement: GenericRuntimeApiMethod<
697
797
  Rv,
698
798
  (
699
- asset: XcmVersionedAsset,
700
- location: XcmVersionedLocation,
701
- ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
799
+ source: SpStatementStoreRuntimeApiStatementSource,
800
+ statement: SpStatementStoreStatement,
801
+ ) => Promise<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>
702
802
  >;
703
803
 
704
804
  /**
@@ -15,7 +15,8 @@ import type {
15
15
  PeopleWestendRuntimeRuntimeCallLike,
16
16
  SpRuntimeMultiSignature,
17
17
  FrameSystemEventRecord,
18
- CumulusPrimitivesParachainInherentParachainInherentData,
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 {CumulusPrimitivesParachainInherentParachainInherentData} data
314
+ * @param {CumulusPalletParachainSystemParachainInherentBasicParachainInherentData} data
315
+ * @param {CumulusPalletParachainSystemParachainInherentInboundMessagesData} inboundMessagesData
314
316
  **/
315
317
  setValidationData: GenericTxCall<
316
318
  Rv,
317
- (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic<
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: { data: CumulusPrimitivesParachainInherentParachainInherentData };
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 `pure`, however if done, then
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
- * `pure` with corresponding parameters.
2553
+ * `create_pure` with corresponding parameters.
2434
2554
  *
2435
- * - `spawner`: The account that originally called `pure` to create this account.
2436
- * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
2437
- * - `proxy_type`: The proxy type originally passed to `pure`.
2438
- * - `height`: The height of the chain when the call to `pure` was processed.
2439
- * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
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 `pure` call has corresponding parameters.
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
  **/