import { describe, expectTypeOf, it } from "vitest"; import { Hex } from "viem"; import { StaticAbiTypeToPrimitiveType } from "./staticAbiTypes"; describe("StaticAbiTypeToPrimitiveType", () => { it("maps uint8 to number", () => { expectTypeOf>().toBeNumber(); }); it("maps uint32 to number", () => { expectTypeOf>().toBeNumber(); }); it("maps uint48 to number", () => { expectTypeOf>().toBeNumber(); }); it("maps uint56 to number", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps uint256 to number", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps int8 to number", () => { expectTypeOf>().toBeNumber(); }); it("maps int32 to number", () => { expectTypeOf>().toBeNumber(); }); it("maps int48 to number", () => { expectTypeOf>().toBeNumber(); }); it("maps int56 to number", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps int256 to number", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps bytes1 to hex", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps bytes2 to hex", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps bytes8 to hex", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps bytes32 to hex", () => { expectTypeOf>().toMatchTypeOf(); }); it("maps bool to boolean", () => { expectTypeOf>().toBeBoolean(); }); it("maps address to hex", () => { expectTypeOf>().toMatchTypeOf(); }); });