Skip to content

Commit

Permalink
add teleport transfers (for system chains tests) (#108)
Browse files Browse the repository at this point in the history
* add teleport transfers (for system chains tests)

* rename to match extrnsic

* lint fixes
  • Loading branch information
samelamin authored Sep 11, 2023
1 parent 24cd89e commit fcc31be
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions helpers/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,35 @@ export const xcmPallet = {
},
},
}),
limitedTeleportAssets:
(token: any, amount: any, dest: any) =>
({ api }: { api: ApiPromise }, acc: any) =>
(api.tx.xcmPallet || api.tx.polkadotXcm).limitedTeleportAssets(
dest,
{
V3: {
parents: 0,
interior: {
X1: {
AccountId32: {
// network: 'Any',
id: acc,
},
},
},
},
},
{
V3: [
{
id: token,
fun: { Fungible: amount },
},
],
},
0,
'Unlimited'
),
limitedReserveTransferAssetsV2:
(token: any, amount: any, dest: any) =>
({ api }: { api: ApiPromise }, acc: any) =>
Expand Down

0 comments on commit fcc31be

Please sign in to comment.