"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const swapToken_1 = require("./web3/skills/swapToken");
async function runTest() {
    console.log("=== Testing Native Routers ===");
    try {
        // 1. Test Uniswap V2
        console.log("\\n[Test 1] Testing Uniswap V2 route (ETH to USDC on Base)...");
        const resV2 = await (0, swapToken_1.prepareSwapToken)("base", // chain
        "0x0000000000000000000000000000000000000000", // ETH native
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
        "0.001", // amount
        "manual", // mode
        "uniswap_v2" // providerName
        );
        console.log("Result Uniswap V2:", resV2);
        // 2. Test CowSwap
        console.log("\\n[Test 2] Testing CowSwap route (ETH to USDC on Base)...");
        const resCow = await (0, swapToken_1.prepareSwapToken)("base", // chain
        "0x0000000000000000000000000000000000000000", // ETH native
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
        "0.001", // amount
        "manual", // mode
        "cowswap" // providerName
        );
        console.log("Result CowSwap:", resCow);
        // 3. Test Auto
        console.log("\\n[Test 3] Testing Auto route...");
        const resAuto = await (0, swapToken_1.prepareSwapToken)("base", "0x0000000000000000000000000000000000000000", "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "0.001", "auto");
        console.log("Result Auto:", resAuto);
        console.log("\\nAll tests completed!");
    }
    catch (error) {
        console.error("\\nTEST FAILED:", error.message);
    }
}
runTest();
