"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const AddressTool_1 = require("../../src/tools/goatTools/AddressTool");
const tokenAddresses_json_1 = __importDefault(require("../data/tokenAddresses.json"));
const tokenAddresses = tokenAddresses_json_1.default;
describe("AddressTool", () => {
    const addressTool = new AddressTool_1.TokenAddressTool();
    for (const chainIdStr of Object.keys(tokenAddresses)) {
        const chainId = parseInt(chainIdStr);
        for (const symbol of Object.keys(tokenAddresses[chainIdStr])) {
            const expectedAddress = tokenAddresses[chainIdStr][symbol];
            it(`should return the address for ${symbol} on chain ${chainId}`, async () => {
                const result = await addressTool.tool.execute({ symbol, chainId });
                expect(result).toBe(expectedAddress);
            });
        }
    }
});
