@paraspell/pallets 8.9.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.
@@ -0,0 +1,36 @@
1
+ import { TNodeDotKsmWithRelayChains } from '@paraspell/sdk-common';
2
+
3
+ /**
4
+ * Supported XCM pallets.
5
+ */
6
+ declare const SUPPORTED_PALLETS: readonly ["XTokens", "OrmlXTokens", "PolkadotXcm", "RelayerXcm", "XTransfer", "XcmPallet"];
7
+
8
+ type TPallet = (typeof SUPPORTED_PALLETS)[number];
9
+ type TPalletDetails = {
10
+ name: TPallet;
11
+ index: number;
12
+ };
13
+ interface TPalletMap {
14
+ defaultPallet: TPallet;
15
+ supportedPallets: TPalletDetails[];
16
+ }
17
+ type TPalletJsonMap = Record<TNodeDotKsmWithRelayChains, TPalletMap>;
18
+
19
+ /**
20
+ * Retrieves the default pallet for a specified node.
21
+ *
22
+ * @param node - The node for which to get the default pallet.
23
+ * @returns The default pallet associated with the node.
24
+ */
25
+ declare const getDefaultPallet: (node: TNodeDotKsmWithRelayChains) => TPallet;
26
+ /**
27
+ * Retrieves the list of supported pallets for a specified node.
28
+ *
29
+ * @param node - The node for which to get supported pallets.
30
+ * @returns An array of pallets supported by the node.
31
+ */
32
+ declare const getSupportedPallets: (node: TNodeDotKsmWithRelayChains) => TPallet[];
33
+ declare const getSupportedPalletsDetails: (node: TNodeDotKsmWithRelayChains) => TPalletDetails[];
34
+ declare const getPalletIndex: (node: TNodeDotKsmWithRelayChains, pallet: TPallet) => number | undefined;
35
+
36
+ export { SUPPORTED_PALLETS, type TPallet, type TPalletDetails, type TPalletJsonMap, type TPalletMap, getDefaultPallet, getPalletIndex, getSupportedPallets, getSupportedPalletsDetails };