diff --git a/CHANGELOG.md b/CHANGELOG.md index 02ad0be..0e7ba72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## vNext +### Internal improvements + +- Cleanup imports ([#88](https://github.com/gnidan/abi-to-sol/pull/88) by + [@gnidan](https://github.com/gnidan)) + ## v0.6.5 See [release notes](https://github.com/gnidan/abi-to-sol/releases/tag/v0.6.5). diff --git a/packages/abi-to-sol/src/abi-features.ts b/packages/abi-to-sol/src/abi-features.ts index 744a6e4..7710453 100644 --- a/packages/abi-to-sol/src/abi-features.ts +++ b/packages/abi-to-sol/src/abi-features.ts @@ -1,6 +1,5 @@ -import { Abi as SchemaAbi } from "@truffle/contract-schema/spec"; -import * as Codec from "@truffle/codec"; -import * as Abi from "@truffle/abi-utils"; +import type { Abi as SchemaAbi } from "@truffle/contract-schema/spec"; +import type * as Abi from "@truffle/abi-utils"; import { Visitor, VisitOptions, dispatch, Node } from "./visitor"; diff --git a/packages/abi-to-sol/src/declarations.ts b/packages/abi-to-sol/src/declarations.ts index 9cd228d..687ffda 100644 --- a/packages/abi-to-sol/src/declarations.ts +++ b/packages/abi-to-sol/src/declarations.ts @@ -1,6 +1,6 @@ -import {Abi as SchemaAbi} from "@truffle/contract-schema/spec"; +import type {Abi as SchemaAbi} from "@truffle/contract-schema/spec"; import * as Codec from "@truffle/codec"; -import * as Abi from "@truffle/abi-utils"; +import type * as Abi from "@truffle/abi-utils"; import {Visitor, VisitOptions, dispatch, Node} from "./visitor"; diff --git a/packages/abi-to-sol/src/solidity.ts b/packages/abi-to-sol/src/solidity.ts index 855d2f7..c37698f 100644 --- a/packages/abi-to-sol/src/solidity.ts +++ b/packages/abi-to-sol/src/solidity.ts @@ -1,7 +1,7 @@ import type Prettier from "prettier"; import * as Codec from "@truffle/codec"; -import * as Abi from "@truffle/abi-utils"; -import {Abi as SchemaAbi} from "@truffle/contract-schema/spec"; +import type * as Abi from "@truffle/abi-utils"; +import type {Abi as SchemaAbi} from "@truffle/contract-schema/spec"; import { version } from "../package.json"; import {Visitor, VisitOptions, dispatch, Node} from "./visitor"; diff --git a/packages/abi-to-sol/src/visitor.ts b/packages/abi-to-sol/src/visitor.ts index 9bad589..a3bc07c 100644 --- a/packages/abi-to-sol/src/visitor.ts +++ b/packages/abi-to-sol/src/visitor.ts @@ -1,4 +1,4 @@ -import {Abi as SchemaAbi} from "@truffle/contract-schema/spec"; +import type {Abi as SchemaAbi} from "@truffle/contract-schema/spec"; import * as Abi from "@truffle/abi-utils"; export interface VisitOptions {