File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1- import type { TDestination , TNodeDotKsmWithRelayChains , TPapiTransaction } from "@paraspell/sdk" ;
1+ import type { TDestination , TNodeDotKsmWithRelayChains , TPapiTransaction } from "@paraspell/sdk"
22import { Builder } from "@paraspell/sdk"
33import type { KnownChainId } from "@polkadot-agent-kit/common"
44import { getAllSupportedChains , getChainById } from "@polkadot-agent-kit/common"
55
6-
76/**
87 * Builds an XCM transaction to transfer a native asset from one chain to another.
98 *
Original file line number Diff line number Diff line change 11import { tool } from "@langchain/core/tools"
22import type { KnownChainId } from "@polkadot-agent-kit/common"
33import { getDecimalsByChainId , parseUnits } from "@polkadot-agent-kit/common"
4- import {
5- submitTxWithPolkadotSigner ,
6- xcmTransferNativeAsset
7- } from "@polkadot-agent-kit/core"
4+ import { submitTxWithPolkadotSigner , xcmTransferNativeAsset } from "@polkadot-agent-kit/core"
85import type { PolkadotSigner } from "polkadot-api/signer"
96import type { z } from "zod"
107
Original file line number Diff line number Diff line change @@ -295,7 +295,10 @@ describe("PolkadotApi", () => {
295295 } )
296296
297297 it ( "should return the XCM transfer tool and call it with correct params" , async ( ) => {
298- const tool = mockAgentPolkadotApi . xcmTransferNativeTool ( mockSigner , "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" )
298+ const tool = mockAgentPolkadotApi . xcmTransferNativeTool (
299+ mockSigner ,
300+ "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
301+ )
299302 expect ( tool ) . toBeDefined ( )
300303 expect ( tool ) . toBe ( mockXcmTool )
301304 } )
You can’t perform that action at this time.
0 commit comments