diff --git a/src/utils/transactionRouter/index.ts b/src/utils/transactionRouter/index.ts index f4be613..5378796 100644 --- a/src/utils/transactionRouter/index.ts +++ b/src/utils/transactionRouter/index.ts @@ -1,13 +1,13 @@ import { ApiPromise, WsProvider } from "@polkadot/api"; import ReserveTransfer from "./reserveTransfer"; +import { TeleportableRoute, teleportableRoutes } from "./teleportableRoutes"; import TeleportTransfer from "./teleportTransfer"; import TransferAsset from "./transferAsset"; import { Fungible, Receiver, Sender } from "./types"; +import { getParaId } from ".."; import IdentityContract from "../../../types/contracts/identity"; import { AccountType } from "../../../types/types-arguments/identity"; -import { TeleportableRoute, teleportableRoutes } from "./teleportableRoutes"; -import { getParaId } from ".."; // Responsible for handling all the transfer logic. // diff --git a/src/utils/transactionRouter/reserveTransfer.test.ts b/src/utils/transactionRouter/reserveTransfer.test.ts index 4db39b4..0734a67 100644 --- a/src/utils/transactionRouter/reserveTransfer.test.ts +++ b/src/utils/transactionRouter/reserveTransfer.test.ts @@ -5,10 +5,10 @@ import { Keyring } from "@polkadot/api"; import { cryptoWaitReady } from "@polkadot/util-crypto"; +import { getDestination, getMultiAsset, getTransferBeneficiary } from "."; import ReserveTransfer from "./reserveTransfer"; import { Fungible, Receiver } from "./types"; import { AccountType } from "../../../types/types-arguments/identity"; -import { getDestination, getMultiAsset, getTransferBeneficiary } from "."; const sr25519Keyring = new Keyring({ type: "sr25519" }); const ecdsaKeyring = new Keyring({ type: "ecdsa" }); diff --git a/src/utils/transactionRouter/reserveTransfer.ts b/src/utils/transactionRouter/reserveTransfer.ts index 1d875ec..593a5c0 100644 --- a/src/utils/transactionRouter/reserveTransfer.ts +++ b/src/utils/transactionRouter/reserveTransfer.ts @@ -1,9 +1,8 @@ import { ApiPromise } from "@polkadot/api"; import { KeyringPair } from "@polkadot/keyring/types"; -import { Fungible, Receiver } from "./types"; -import { getParaId } from ".."; import { getDestination, getMultiAsset, getReceiverAccount, getTransferBeneficiary } from "."; +import { Fungible, Receiver } from "./types"; class ReserveTransfer { // Transfers assets from the sender to the receiver. diff --git a/src/utils/transactionRouter/teleportTransfer.ts b/src/utils/transactionRouter/teleportTransfer.ts index fbc0d9c..d15a41d 100644 --- a/src/utils/transactionRouter/teleportTransfer.ts +++ b/src/utils/transactionRouter/teleportTransfer.ts @@ -1,8 +1,9 @@ import { ApiPromise } from "@polkadot/api"; import { KeyringPair } from "@polkadot/keyring/types"; + +import { getDestination, getMultiAsset, getTransferBeneficiary } from "."; import { Fungible, Receiver } from "./types"; import { getParaId } from ".."; -import { getDestination, getMultiAsset, getTransferBeneficiary } from "."; class TeleportTransfer { public static async send(