@decentro-dev/polkadot-sufficient-assets 0.0.1

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 (123) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +60 -0
  3. package/package.json +99 -0
  4. package/packages/client/README.md +333 -0
  5. package/packages/client/dist/chain-specs/ksmcc3/index.d.mts +1 -0
  6. package/packages/client/dist/chain-specs/ksmcc3/index.d.ts +1 -0
  7. package/packages/client/dist/chain-specs/ksmcc3/index.js +2 -0
  8. package/packages/client/dist/chain-specs/ksmcc3/index.mjs +2 -0
  9. package/packages/client/dist/chain-specs/ksmcc3_asset_hub/index.d.mts +1 -0
  10. package/packages/client/dist/chain-specs/ksmcc3_asset_hub/index.d.ts +1 -0
  11. package/packages/client/dist/chain-specs/ksmcc3_asset_hub/index.js +2 -0
  12. package/packages/client/dist/chain-specs/ksmcc3_asset_hub/index.mjs +2 -0
  13. package/packages/client/dist/chain-specs/paseo/index.d.mts +1 -0
  14. package/packages/client/dist/chain-specs/paseo/index.d.ts +1 -0
  15. package/packages/client/dist/chain-specs/paseo/index.js +2 -0
  16. package/packages/client/dist/chain-specs/paseo/index.mjs +2 -0
  17. package/packages/client/dist/chain-specs/paseo_asset_hub/index.d.mts +1 -0
  18. package/packages/client/dist/chain-specs/paseo_asset_hub/index.d.ts +1 -0
  19. package/packages/client/dist/chain-specs/paseo_asset_hub/index.js +2 -0
  20. package/packages/client/dist/chain-specs/paseo_asset_hub/index.mjs +2 -0
  21. package/packages/client/dist/chain-specs/polkadot/index.d.mts +1 -0
  22. package/packages/client/dist/chain-specs/polkadot/index.d.ts +1 -0
  23. package/packages/client/dist/chain-specs/polkadot/index.js +2 -0
  24. package/packages/client/dist/chain-specs/polkadot/index.mjs +2 -0
  25. package/packages/client/dist/chain-specs/polkadot_asset_hub/index.d.mts +1 -0
  26. package/packages/client/dist/chain-specs/polkadot_asset_hub/index.d.ts +1 -0
  27. package/packages/client/dist/chain-specs/polkadot_asset_hub/index.js +2 -0
  28. package/packages/client/dist/chain-specs/polkadot_asset_hub/index.mjs +2 -0
  29. package/packages/client/dist/chain-specs/rococo_v2_2/index.d.mts +1 -0
  30. package/packages/client/dist/chain-specs/rococo_v2_2/index.d.ts +1 -0
  31. package/packages/client/dist/chain-specs/rococo_v2_2/index.js +2 -0
  32. package/packages/client/dist/chain-specs/rococo_v2_2/index.mjs +2 -0
  33. package/packages/client/dist/chain-specs/rococo_v2_2_asset_hub/index.d.mts +1 -0
  34. package/packages/client/dist/chain-specs/rococo_v2_2_asset_hub/index.d.ts +1 -0
  35. package/packages/client/dist/chain-specs/rococo_v2_2_asset_hub/index.js +2 -0
  36. package/packages/client/dist/chain-specs/rococo_v2_2_asset_hub/index.mjs +2 -0
  37. package/packages/client/dist/chain-specs/westend2/index.d.mts +1 -0
  38. package/packages/client/dist/chain-specs/westend2/index.d.ts +1 -0
  39. package/packages/client/dist/chain-specs/westend2/index.js +2 -0
  40. package/packages/client/dist/chain-specs/westend2/index.mjs +2 -0
  41. package/packages/client/dist/chain-specs/westend2_asset_hub/index.d.mts +1 -0
  42. package/packages/client/dist/chain-specs/westend2_asset_hub/index.d.ts +1 -0
  43. package/packages/client/dist/chain-specs/westend2_asset_hub/index.js +2 -0
  44. package/packages/client/dist/chain-specs/westend2_asset_hub/index.mjs +2 -0
  45. package/packages/client/dist/index.d.mts +106 -0
  46. package/packages/client/dist/index.d.ts +106 -0
  47. package/packages/client/dist/index.js +2 -0
  48. package/packages/client/dist/index.mjs +2 -0
  49. package/packages/client/dist/smoldot/from-node-worker/index.d.mts +1 -0
  50. package/packages/client/dist/smoldot/from-node-worker/index.d.ts +1 -0
  51. package/packages/client/dist/smoldot/from-node-worker/index.js +2 -0
  52. package/packages/client/dist/smoldot/from-node-worker/index.mjs +2 -0
  53. package/packages/client/dist/smoldot/from-worker/index.d.mts +1 -0
  54. package/packages/client/dist/smoldot/from-worker/index.d.ts +1 -0
  55. package/packages/client/dist/smoldot/from-worker/index.js +2 -0
  56. package/packages/client/dist/smoldot/from-worker/index.mjs +2 -0
  57. package/packages/client/dist/smoldot/index.d.mts +14 -0
  58. package/packages/client/dist/smoldot/index.d.ts +14 -0
  59. package/packages/client/dist/smoldot/index.js +2 -0
  60. package/packages/client/dist/smoldot/index.mjs +2 -0
  61. package/packages/client/dist/smoldot/worker/index.d.mts +1 -0
  62. package/packages/client/dist/smoldot/worker/index.d.ts +1 -0
  63. package/packages/client/dist/smoldot/worker/index.js +2 -0
  64. package/packages/client/dist/smoldot/worker/index.mjs +2 -0
  65. package/packages/core/.papi/descriptors/dist/common-types.d.ts +21274 -0
  66. package/packages/core/.papi/descriptors/dist/descriptors-EQXQJ7SL.mjs +1 -0
  67. package/packages/core/.papi/descriptors/dist/descriptors.d.ts +11 -0
  68. package/packages/core/.papi/descriptors/dist/hdx.d.ts +366 -0
  69. package/packages/core/.papi/descriptors/dist/hdx_metadata-XH2Y6EGQ.mjs +1 -0
  70. package/packages/core/.papi/descriptors/dist/hdx_metadata.d.ts +2 -0
  71. package/packages/core/.papi/descriptors/dist/index.d.mts +24579 -0
  72. package/packages/core/.papi/descriptors/dist/index.d.ts +23 -0
  73. package/packages/core/.papi/descriptors/dist/index.js +1 -0
  74. package/packages/core/.papi/descriptors/dist/index.mjs +1 -0
  75. package/packages/core/.papi/descriptors/dist/kah.d.ts +434 -0
  76. package/packages/core/.papi/descriptors/dist/kah_metadata-OCBL5LAN.mjs +1 -0
  77. package/packages/core/.papi/descriptors/dist/kah_metadata.d.ts +2 -0
  78. package/packages/core/.papi/descriptors/dist/kusama.d.ts +291 -0
  79. package/packages/core/.papi/descriptors/dist/kusama_metadata-TGJ43LLG.mjs +1 -0
  80. package/packages/core/.papi/descriptors/dist/kusama_metadata.d.ts +2 -0
  81. package/packages/core/.papi/descriptors/dist/metadataTypes-MIM6CGSL.mjs +1 -0
  82. package/packages/core/.papi/descriptors/dist/metadataTypes.d.ts +2 -0
  83. package/packages/core/.papi/descriptors/dist/pah.d.ts +434 -0
  84. package/packages/core/.papi/descriptors/dist/pah_metadata-JG7F7QDO.mjs +1 -0
  85. package/packages/core/.papi/descriptors/dist/pah_metadata.d.ts +2 -0
  86. package/packages/core/.papi/descriptors/dist/paseo.d.ts +291 -0
  87. package/packages/core/.papi/descriptors/dist/paseo_metadata-5VVMOYKO.mjs +1 -0
  88. package/packages/core/.papi/descriptors/dist/paseo_metadata.d.ts +2 -0
  89. package/packages/core/.papi/descriptors/dist/paseoah.d.ts +242 -0
  90. package/packages/core/.papi/descriptors/dist/paseoah_metadata-KVQKFE5R.mjs +1 -0
  91. package/packages/core/.papi/descriptors/dist/paseoah_metadata.d.ts +2 -0
  92. package/packages/core/.papi/descriptors/dist/polkadot.d.ts +291 -0
  93. package/packages/core/.papi/descriptors/dist/polkadot_metadata-ASE5745E.mjs +1 -0
  94. package/packages/core/.papi/descriptors/dist/polkadot_metadata.d.ts +2 -0
  95. package/packages/core/.papi/descriptors/dist/rah.d.ts +434 -0
  96. package/packages/core/.papi/descriptors/dist/rah_metadata-FL7L2MWD.mjs +1 -0
  97. package/packages/core/.papi/descriptors/dist/rah_metadata.d.ts +2 -0
  98. package/packages/core/.papi/descriptors/dist/rococo.d.ts +291 -0
  99. package/packages/core/.papi/descriptors/dist/rococo_metadata-CHYQZIV5.mjs +1 -0
  100. package/packages/core/.papi/descriptors/dist/rococo_metadata.d.ts +2 -0
  101. package/packages/core/.papi/descriptors/dist/wah.d.ts +434 -0
  102. package/packages/core/.papi/descriptors/dist/wah_metadata-M2H6IX7C.mjs +1 -0
  103. package/packages/core/.papi/descriptors/dist/wah_metadata.d.ts +2 -0
  104. package/packages/core/.papi/descriptors/dist/westend.d.ts +291 -0
  105. package/packages/core/.papi/descriptors/dist/westend_metadata-IAM3KHRQ.mjs +1 -0
  106. package/packages/core/.papi/descriptors/dist/westend_metadata.d.ts +2 -0
  107. package/packages/core/.papi/descriptors/package.json +24 -0
  108. package/packages/core/.papi/metadata/hdx.scale +0 -0
  109. package/packages/core/.papi/metadata/kah.scale +0 -0
  110. package/packages/core/.papi/metadata/kusama.scale +0 -0
  111. package/packages/core/.papi/metadata/pah.scale +0 -0
  112. package/packages/core/.papi/metadata/paseo.scale +0 -0
  113. package/packages/core/.papi/metadata/paseoah.scale +0 -0
  114. package/packages/core/.papi/metadata/polkadot.scale +0 -0
  115. package/packages/core/.papi/metadata/rah.scale +0 -0
  116. package/packages/core/.papi/metadata/rococo.scale +0 -0
  117. package/packages/core/.papi/metadata/wah.scale +0 -0
  118. package/packages/core/.papi/metadata/westend.scale +0 -0
  119. package/packages/core/.papi/polkadot-api.json +50 -0
  120. package/packages/core/dist/index.d.mts +676 -0
  121. package/packages/core/dist/index.d.ts +676 -0
  122. package/packages/core/dist/index.js +1 -0
  123. package/packages/core/dist/index.mjs +1 -0
@@ -0,0 +1 @@
1
+ var[i,p,m]=JSON.parse('[{"kah":{"13":{"1":0,"3":1,"4":2,"5":2,"8":3,"9":4,"10":5,"12":6},"22":{"1":2,"3":7,"4":8,"5":{"20":6},"8":9,"9":10,"10":2,"12":2},"23":{"1":2,"3":2,"4":2,"5":2,"8":2,"9":2,"10":2,"12":2},"26":{"1":2,"3":11,"4":2,"5":2,"8":2,"9":2,"10":2,"12":12},"31":{"30":13}},"pah":{"13":{"1":0,"3":1,"4":2,"5":2,"8":3,"9":4,"10":5,"12":6},"22":{"1":2,"3":7,"4":8,"5":{"20":19},"8":9,"9":10,"10":2,"12":2},"23":{"1":2,"3":2,"4":2,"5":2,"8":2,"9":2,"10":2,"12":2},"26":{"1":2,"3":11,"4":2,"5":2,"8":2,"9":2,"10":2,"12":12},"31":{"30":13}},"wah":{"13":{"1":0,"3":1,"4":2,"5":2,"8":3,"9":4,"10":5,"12":6},"22":{"1":2,"3":7,"4":8,"5":{"20":20},"8":9,"9":10,"10":2,"12":2},"23":{"1":2,"3":2,"4":2,"5":2,"8":2,"9":2,"10":2,"12":2},"26":{"1":2,"3":11,"4":2,"5":2,"8":2,"9":2,"10":2,"12":12},"31":{"30":13}},"rah":{"13":{"1":0,"3":1,"4":2,"5":2,"8":3,"9":4,"10":5,"12":6},"22":{"1":2,"3":7,"4":8,"5":{"20":21},"8":9,"9":10,"10":2,"12":2},"23":{"1":2,"3":2,"4":2,"5":2,"8":2,"9":2,"10":2,"12":2},"26":{"1":2,"3":11,"4":2,"5":2,"8":2,"9":2,"10":2,"12":12},"31":{"30":13}},"polkadot":{"13":{"1":0,"3":1,"5":2,"32":2},"22":{"1":2,"3":7,"5":{"20":22},"32":8},"23":{"1":2,"3":2,"5":2,"32":2},"26":{"1":2,"3":11,"5":2,"32":2},"31":{}},"kusama":{"13":{"1":0,"3":1,"5":2,"32":2},"22":{"1":2,"3":7,"5":{"20":23},"32":8},"23":{"1":2,"3":2,"5":2,"32":2},"26":{"1":2,"3":11,"5":2,"32":2},"31":{}},"rococo":{"13":{"1":0,"3":1,"5":2,"32":2},"22":{"1":2,"3":7,"5":{"20":24},"32":8},"23":{"1":2,"3":2,"5":2,"32":2},"26":{"1":2,"3":11,"5":2,"32":2},"31":{}},"westend":{"13":{"1":0,"3":1,"5":2,"32":2},"22":{"1":2,"3":7,"5":{"20":25},"32":8},"23":{"1":2,"3":2,"5":2,"32":2},"26":{"1":2,"3":11,"5":2,"32":2},"31":{}},"paseo":{"13":{"1":0,"3":1,"5":2,"32":2},"22":{"1":2,"3":7,"5":{"20":26},"32":8},"23":{"1":2,"3":2,"5":2,"32":2},"26":{"1":2,"3":11,"5":2,"32":2},"31":{}},"paseoah":{"13":{"1":0,"3":1,"4":2,"5":2,"8":3,"9":4,"10":5,"12":6},"22":{"1":2,"3":7,"4":8,"5":{"20":27},"8":9,"9":10,"10":2,"12":2},"23":{"1":2,"3":2,"4":2,"5":2,"8":2,"9":2,"10":2,"12":2},"26":{"1":2,"3":11,"4":2,"5":2,"8":2,"9":2,"10":2,"12":12},"31":{"30":13}},"hdx":{"13":{"1":0,"3":1,"4":2,"5":2,"33":{"Accounts":30},"34":2},"22":{"1":2,"3":{"14":28},"4":8,"5":{"20":29},"33":{"14":31,"21":31},"34":{"21":32,"transfer_multiasset":33}},"23":{"1":2,"3":2,"4":2,"5":2,"33":2,"34":2},"26":{"1":2,"3":11,"4":2,"5":2,"33":2,"34":2},"31":{}}},[{"0":0},{"0":2,"2":1},{},{"0":8,"6":7,"7":9},{"0":12,"6":11,"7":13},{"0":8,"6":7},{"11":15},{"14":3},{"15":4,"16":4,"17":5,"18":5,"19":5},{"14":10,"21":10},{"21":14},{"24":1},{"25":16},{"27":17,"28":17,"29":18}],["Account","System","TotalIssuance","Balances","PolkadotXcm","Utility","Asset","Metadata","Assets","ForeignAssets","PoolAssets","Pools","AssetConversion","storage","transfer_keep_alive","teleport_assets","reserve_transfer_assets","limited_reserve_transfer_assets","limited_teleport_assets","transfer_assets","batch_all","transfer","tx","events","ExistentialDeposit","LPFee","constants","quote_price_tokens_for_exact_tokens","quote_price_exact_tokens_for_tokens","get_reserves","AssetConversionApi","apis","XcmPallet","Tokens","XTokens"]]'),n=s=>Object.fromEntries(Object.entries(s).map(([o,r])=>{let t=typeof r=="object"?n(r):r,a=Number(o);return Number.isNaN(a)?[o,t]:[m[a],t]})),_=p.map(n),c=(s,o)=>o===0?s:Object.fromEntries(Object.entries(s).map(([r,t])=>[r,c(typeof t=="object"?t:_[t],o-1)])),e=s=>c(n(i[s]),2),d=e("kah"),h=e("pah"),l=e("wah"),x=e("rah"),k=e("polkadot"),u=e("kusama"),b=e("rococo"),f=e("westend"),g=e("paseo"),T=e("paseoah"),A=e("hdx");export{A as Hdx,d as Kah,u as Kusama,h as Pah,g as Paseo,T as Paseoah,k as Polkadot,x as Rah,b as Rococo,l as Wah,f as Westend};
@@ -0,0 +1,11 @@
1
+ export declare const Kah: Record<string, object>;
2
+ export declare const Pah: Record<string, object>;
3
+ export declare const Wah: Record<string, object>;
4
+ export declare const Rah: Record<string, object>;
5
+ export declare const Polkadot: Record<string, object>;
6
+ export declare const Kusama: Record<string, object>;
7
+ export declare const Rococo: Record<string, object>;
8
+ export declare const Westend: Record<string, object>;
9
+ export declare const Paseo: Record<string, object>;
10
+ export declare const Paseoah: Record<string, object>;
11
+ export declare const Hdx: Record<string, object>;
@@ -0,0 +1,366 @@
1
+ import { StorageDescriptor, PlainDescriptor, TxDescriptor, Enum, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, SS58String, Binary, FixedSizeBinary, FixedSizeArray } from "polkadot-api";
2
+ import { I5sesotjlssv2d, I1q8tnt1cluu5j, Ic02kut0350gb0, I6ouflveob4eli, I1o12ibtjm10ot, Ibigm6ledjsnu7, Ibbvcet1pv1l61, Iakevv83i18n4r, I5gi8h3e5lkbeq, I6t8mv3ij8f6jn, Idu1ujel33jksu, I28a0mu9onfo5 } from "./common-types";
3
+ type AnonymousEnum<T extends {}> = T & {
4
+ __anonymous: true;
5
+ };
6
+ type MyTuple<T> = [T, ...T[]];
7
+ type SeparateUndefined<T> = undefined extends T ? undefined | Exclude<T, undefined> : T;
8
+ type Anonymize<T> = SeparateUndefined<T extends FixedSizeBinary<infer L> ? number extends L ? Binary : FixedSizeBinary<L> : T extends string | number | bigint | boolean | void | undefined | null | symbol | Uint8Array | Enum<any> ? T : T extends AnonymousEnum<infer V> ? Enum<V> : T extends MyTuple<any> ? {
9
+ [K in keyof T]: T[K];
10
+ } : T extends [] ? [] : T extends FixedSizeArray<infer L, infer T> ? number extends L ? Array<T> : FixedSizeArray<L, T> : {
11
+ [K in keyof T & string]: T[K];
12
+ }>;
13
+ type IStorage = {
14
+ System: {
15
+ /**
16
+ * The full account information for a particular account ID.
17
+ */
18
+ Account: StorageDescriptor<[Key: SS58String], Anonymize<I5sesotjlssv2d>, false, never>;
19
+ };
20
+ Balances: {
21
+ /**
22
+ * The total units issued in the system.
23
+ */
24
+ TotalIssuance: StorageDescriptor<[], bigint, false, never>;
25
+ /**
26
+ * The Balances pallet example of storing the balance of an account.
27
+ *
28
+ * # Example
29
+ *
30
+ * ```nocompile
31
+ * impl pallet_balances::Config for Runtime {
32
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
33
+ * }
34
+ * ```
35
+ *
36
+ * You can also store the balance of an account in the `System` pallet.
37
+ *
38
+ * # Example
39
+ *
40
+ * ```nocompile
41
+ * impl pallet_balances::Config for Runtime {
42
+ * type AccountStore = System
43
+ * }
44
+ * ```
45
+ *
46
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
47
+ * `frame_system` data alongside the account data contrary to storing account balances in the
48
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
49
+ * NOTE: This is only used in the case that this pallet is used to store balances.
50
+ */
51
+ Account: StorageDescriptor<[Key: SS58String], Anonymize<I1q8tnt1cluu5j>, false, never>;
52
+ };
53
+ Tokens: {
54
+ /**
55
+ * The balance of a token type under an account.
56
+ *
57
+ * NOTE: If the total is ever zero, decrease account ref account.
58
+ *
59
+ * NOTE: This is only used in the case that this module is used to store
60
+ * balances.
61
+ */
62
+ Accounts: StorageDescriptor<Anonymize<I6ouflveob4eli>, Anonymize<Ic02kut0350gb0>, false, never>;
63
+ };
64
+ };
65
+ type ICalls = {
66
+ Balances: {
67
+ /**
68
+ *Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
69
+ *kill the origin account.
70
+ *
71
+ *99% of the time you want [`transfer_allow_death`] instead.
72
+ *
73
+ *[`transfer_allow_death`]: struct.Pallet.html#method.transfer
74
+ */
75
+ transfer_keep_alive: TxDescriptor<Anonymize<I1o12ibtjm10ot>>;
76
+ };
77
+ Utility: {
78
+ /**
79
+ *Send a batch of dispatch calls and atomically execute them.
80
+ *The whole transaction will rollback and fail if any of the calls failed.
81
+ *
82
+ *May be called from any origin except `None`.
83
+ *
84
+ *- `calls`: The calls to be dispatched from the same origin. The number of call must not
85
+ * exceed the constant: `batched_calls_limit` (available in constant metadata).
86
+ *
87
+ *If origin is root then the calls are dispatched without checking origin filter. (This
88
+ *includes bypassing `frame_system::Config::BaseCallFilter`).
89
+ *
90
+ *## Complexity
91
+ *- O(C) where C is the number of calls to be batched.
92
+ */
93
+ batch_all: TxDescriptor<Anonymize<Ibigm6ledjsnu7>>;
94
+ };
95
+ Tokens: {
96
+ /**
97
+ *Transfer some liquid free balance to another account.
98
+ *
99
+ *`transfer` will set the `FreeBalance` of the sender and receiver.
100
+ *It will decrease the total issuance of the system by the
101
+ *`TransferFee`. If the sender's account is below the existential
102
+ *deposit as a result of the transfer, the account will be reaped.
103
+ *
104
+ *The dispatch origin for this call must be `Signed` by the
105
+ *transactor.
106
+ *
107
+ *- `dest`: The recipient of the transfer.
108
+ *- `currency_id`: currency type.
109
+ *- `amount`: free balance amount to tranfer.
110
+ */
111
+ transfer: TxDescriptor<Anonymize<Ibbvcet1pv1l61>>;
112
+ /**
113
+ *Same as the [`transfer`] call, but with a check that the transfer
114
+ *will not kill the origin account.
115
+ *
116
+ *99% of the time you want [`transfer`] instead.
117
+ *
118
+ *The dispatch origin for this call must be `Signed` by the
119
+ *transactor.
120
+ *
121
+ *- `dest`: The recipient of the transfer.
122
+ *- `currency_id`: currency type.
123
+ *- `amount`: free balance amount to tranfer.
124
+ */
125
+ transfer_keep_alive: TxDescriptor<Anonymize<Ibbvcet1pv1l61>>;
126
+ };
127
+ PolkadotXcm: {
128
+ /**
129
+ *Teleport some assets from the local chain to some destination chain.
130
+ *
131
+ ***This function is deprecated: Use `limited_teleport_assets` instead.**
132
+ *
133
+ *Fee payment on the destination side is made from the asset in the `assets` vector of
134
+ *index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
135
+ *with all fees taken as needed from the asset.
136
+ *
137
+ *- `origin`: Must be capable of withdrawing the `assets` and executing XCM.
138
+ *- `dest`: Destination context for the assets. Will typically be `[Parent,
139
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
140
+ * relay to parachain.
141
+ *- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
142
+ * generally be an `AccountId32` value.
143
+ *- `assets`: The assets to be withdrawn. This should include the assets used to pay the
144
+ * fee on the `dest` chain.
145
+ *- `fee_asset_item`: The index into `assets` of the item which should be used to pay
146
+ * fees.
147
+ */
148
+ teleport_assets: TxDescriptor<Anonymize<Iakevv83i18n4r>>;
149
+ /**
150
+ *Transfer some assets from the local chain to the destination chain through their local,
151
+ *destination or remote reserve.
152
+ *
153
+ *`assets` must have same reserve location and may not be teleportable to `dest`.
154
+ * - `assets` have local reserve: transfer assets to sovereign account of destination
155
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
156
+ * assets to `beneficiary`.
157
+ * - `assets` have destination reserve: burn local assets and forward a notification to
158
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
159
+ * deposit them to `beneficiary`.
160
+ * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
161
+ * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
162
+ * to mint and deposit reserve-based assets to `beneficiary`.
163
+ *
164
+ ***This function is deprecated: Use `limited_reserve_transfer_assets` instead.**
165
+ *
166
+ *Fee payment on the destination side is made from the asset in the `assets` vector of
167
+ *index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
168
+ *with all fees taken as needed from the asset.
169
+ *
170
+ *- `origin`: Must be capable of withdrawing the `assets` and executing XCM.
171
+ *- `dest`: Destination context for the assets. Will typically be `[Parent,
172
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
173
+ * relay to parachain.
174
+ *- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
175
+ * generally be an `AccountId32` value.
176
+ *- `assets`: The assets to be withdrawn. This should include the assets used to pay the
177
+ * fee on the `dest` (and possibly reserve) chains.
178
+ *- `fee_asset_item`: The index into `assets` of the item which should be used to pay
179
+ * fees.
180
+ */
181
+ reserve_transfer_assets: TxDescriptor<Anonymize<Iakevv83i18n4r>>;
182
+ /**
183
+ *Transfer some assets from the local chain to the destination chain through their local,
184
+ *destination or remote reserve.
185
+ *
186
+ *`assets` must have same reserve location and may not be teleportable to `dest`.
187
+ * - `assets` have local reserve: transfer assets to sovereign account of destination
188
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
189
+ * assets to `beneficiary`.
190
+ * - `assets` have destination reserve: burn local assets and forward a notification to
191
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
192
+ * deposit them to `beneficiary`.
193
+ * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
194
+ * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
195
+ * to mint and deposit reserve-based assets to `beneficiary`.
196
+ *
197
+ *Fee payment on the destination side is made from the asset in the `assets` vector of
198
+ *index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
199
+ *is needed than `weight_limit`, then the operation will fail and the sent assets may be
200
+ *at risk.
201
+ *
202
+ *- `origin`: Must be capable of withdrawing the `assets` and executing XCM.
203
+ *- `dest`: Destination context for the assets. Will typically be `[Parent,
204
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
205
+ * relay to parachain.
206
+ *- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
207
+ * generally be an `AccountId32` value.
208
+ *- `assets`: The assets to be withdrawn. This should include the assets used to pay the
209
+ * fee on the `dest` (and possibly reserve) chains.
210
+ *- `fee_asset_item`: The index into `assets` of the item which should be used to pay
211
+ * fees.
212
+ *- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
213
+ */
214
+ limited_reserve_transfer_assets: TxDescriptor<Anonymize<I5gi8h3e5lkbeq>>;
215
+ /**
216
+ *Teleport some assets from the local chain to some destination chain.
217
+ *
218
+ *Fee payment on the destination side is made from the asset in the `assets` vector of
219
+ *index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
220
+ *is needed than `weight_limit`, then the operation will fail and the sent assets may be
221
+ *at risk.
222
+ *
223
+ *- `origin`: Must be capable of withdrawing the `assets` and executing XCM.
224
+ *- `dest`: Destination context for the assets. Will typically be `[Parent,
225
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
226
+ * relay to parachain.
227
+ *- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
228
+ * generally be an `AccountId32` value.
229
+ *- `assets`: The assets to be withdrawn. This should include the assets used to pay the
230
+ * fee on the `dest` chain.
231
+ *- `fee_asset_item`: The index into `assets` of the item which should be used to pay
232
+ * fees.
233
+ *- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
234
+ */
235
+ limited_teleport_assets: TxDescriptor<Anonymize<I5gi8h3e5lkbeq>>;
236
+ /**
237
+ *Transfer some assets from the local chain to the destination chain through their local,
238
+ *destination or remote reserve, or through teleports.
239
+ *
240
+ *Fee payment on the destination side is made from the asset in the `assets` vector of
241
+ *index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
242
+ *`weight_limit` of weight. If more weight is needed than `weight_limit`, then the
243
+ *operation will fail and the sent assets may be at risk.
244
+ *
245
+ *`assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
246
+ *to `dest`, no limitations imposed on `fees`.
247
+ * - for local reserve: transfer assets to sovereign account of destination chain and
248
+ * forward a notification XCM to `dest` to mint and deposit reserve-based assets to
249
+ * `beneficiary`.
250
+ * - for destination reserve: burn local assets and forward a notification to `dest` chain
251
+ * to withdraw the reserve assets from this chain's sovereign account and deposit them
252
+ * to `beneficiary`.
253
+ * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves
254
+ * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint
255
+ * and deposit reserve-based assets to `beneficiary`.
256
+ * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport
257
+ * assets and deposit them to `beneficiary`.
258
+ *
259
+ *- `origin`: Must be capable of withdrawing the `assets` and executing XCM.
260
+ *- `dest`: Destination context for the assets. Will typically be `X2(Parent,
261
+ * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send
262
+ * from relay to parachain.
263
+ *- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
264
+ * generally be an `AccountId32` value.
265
+ *- `assets`: The assets to be withdrawn. This should include the assets used to pay the
266
+ * fee on the `dest` (and possibly reserve) chains.
267
+ *- `fee_asset_item`: The index into `assets` of the item which should be used to pay
268
+ * fees.
269
+ *- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
270
+ */
271
+ transfer_assets: TxDescriptor<Anonymize<I5gi8h3e5lkbeq>>;
272
+ };
273
+ XTokens: {
274
+ /**
275
+ *Transfer native currencies.
276
+ *
277
+ *`dest_weight_limit` is the weight for XCM execution on the dest
278
+ *chain, and it would be charged from the transferred assets. If set
279
+ *below requirements, the execution may fail and assets wouldn't be
280
+ *received.
281
+ *
282
+ *It's a no-op if any error on local XCM execution or message sending.
283
+ *Note sending assets out per se doesn't guarantee they would be
284
+ *received. Receiving depends on if the XCM message could be delivered
285
+ *by the network, and if the receiving chain would handle
286
+ *messages correctly.
287
+ */
288
+ transfer: TxDescriptor<Anonymize<I6t8mv3ij8f6jn>>;
289
+ /**
290
+ *Transfer `Asset`.
291
+ *
292
+ *`dest_weight_limit` is the weight for XCM execution on the dest
293
+ *chain, and it would be charged from the transferred assets. If set
294
+ *below requirements, the execution may fail and assets wouldn't be
295
+ *received.
296
+ *
297
+ *It's a no-op if any error on local XCM execution or message sending.
298
+ *Note sending assets out per se doesn't guarantee they would be
299
+ *received. Receiving depends on if the XCM message could be delivered
300
+ *by the network, and if the receiving chain would handle
301
+ *messages correctly.
302
+ */
303
+ transfer_multiasset: TxDescriptor<Anonymize<Idu1ujel33jksu>>;
304
+ };
305
+ };
306
+ type IEvent = {};
307
+ type IError = {};
308
+ type IConstants = {
309
+ Balances: {
310
+ /**
311
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
312
+ *
313
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
314
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
315
+ * In case you have multiple sources of provider references, you may also get unexpected
316
+ * behaviour if you set this to zero.
317
+ *
318
+ * Bottom line: Do yourself a favour and make it at least one!
319
+ */
320
+ ExistentialDeposit: PlainDescriptor<bigint>;
321
+ };
322
+ };
323
+ type IRuntimeCalls = {};
324
+ type IAsset = PlainDescriptor<void>;
325
+ export type HdxDispatchError = unknown;
326
+ type PalletsTypedef = {
327
+ __storage: IStorage;
328
+ __tx: ICalls;
329
+ __event: IEvent;
330
+ __error: IError;
331
+ __const: IConstants;
332
+ };
333
+ type IDescriptors = {
334
+ descriptors: {
335
+ pallets: PalletsTypedef;
336
+ apis: IRuntimeCalls;
337
+ } & Promise<any>;
338
+ metadataTypes: Promise<Uint8Array>;
339
+ asset: IAsset;
340
+ getMetadata: () => Promise<Uint8Array>;
341
+ genesis: string | undefined;
342
+ };
343
+ declare const _allDescriptors: IDescriptors;
344
+ export default _allDescriptors;
345
+ export type HdxQueries = QueryFromPalletsDef<PalletsTypedef>;
346
+ export type HdxCalls = TxFromPalletsDef<PalletsTypedef>;
347
+ export type HdxEvents = EventsFromPalletsDef<PalletsTypedef>;
348
+ export type HdxErrors = ErrorsFromPalletsDef<PalletsTypedef>;
349
+ export type HdxConstants = ConstFromPalletsDef<PalletsTypedef>;
350
+ export type HdxCallData = Anonymize<I28a0mu9onfo5> & {
351
+ value: {
352
+ type: string;
353
+ };
354
+ };
355
+ export type HdxWhitelistEntry = PalletKey | ApiKey<IRuntimeCalls> | `query.${NestedKey<PalletsTypedef['__storage']>}` | `tx.${NestedKey<PalletsTypedef['__tx']>}` | `event.${NestedKey<PalletsTypedef['__event']>}` | `error.${NestedKey<PalletsTypedef['__error']>}` | `const.${NestedKey<PalletsTypedef['__const']>}`;
356
+ type PalletKey = `*.${keyof (IStorage & ICalls & IEvent & IError & IConstants & IRuntimeCalls)}`;
357
+ type NestedKey<D extends Record<string, Record<string, any>>> = "*" | {
358
+ [P in keyof D & string]: `${P}.*` | {
359
+ [N in keyof D[P] & string]: `${P}.${N}`;
360
+ }[keyof D[P] & string];
361
+ }[keyof D & string];
362
+ type ApiKey<D extends Record<string, Record<string, any>>> = "api.*" | {
363
+ [P in keyof D & string]: `api.${P}.*` | {
364
+ [N in keyof D[P] & string]: `api.${P}.${N}`;
365
+ }[keyof D[P] & string];
366
+ }[keyof D & string];