Skip to content

Commit

Permalink
fix typechain imports
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee committed Sep 21, 2023
1 parent bc7dd9f commit 6315f98
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
8 changes: 4 additions & 4 deletions packages/sdk-core/src/ConstantInflowNFT.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
ConstantInflowNFT__factory,
IConstantInflowNFT,
} from "@superfluid-finance/ethereum-contracts/build/typechain";
import { ethers } from "ethers";

import FlowNFTBase from "./FlowNFTBase";
import {
ConstantInflowNFT__factory,
IConstantInflowNFT,
} from "./typechain-types";

export default class ConstantInflowNFT extends FlowNFTBase {
override readonly contract: IConstantInflowNFT;
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-core/src/ConstantOutflowNFT.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
ConstantOutflowNFT__factory,
IConstantOutflowNFT,
} from "@superfluid-finance/ethereum-contracts/build/typechain";
import { ethers } from "ethers";

import FlowNFTBase from "./FlowNFTBase";
import {
ConstantOutflowNFT__factory,
IConstantOutflowNFT,
} from "./typechain-types";

export default class ConstantOutflowNFT extends FlowNFTBase {
override readonly contract: IConstantOutflowNFT;
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk-core/src/ERC721Token.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import {
IERC721Metadata,
IERC721Metadata__factory,
IFlowNFTBase,
} from "@superfluid-finance/ethereum-contracts/build/typechain";
import { ethers } from "ethers";

import Operation from "./Operation";
Expand All @@ -20,6 +15,11 @@ import {
NFTFlowData,
ProviderOrSigner,
} from "./interfaces";
import {
IERC721Metadata,
IERC721Metadata__factory,
IFlowNFTBase,
} from "./typechain-types";
import { getSanitizedTimestamp, normalizeAddress } from "./utils";

export default class ERC721MetadataToken {
Expand Down
5 changes: 1 addition & 4 deletions packages/sdk-core/src/FlowNFTBase.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import {
FlowNFTBase__factory,
IFlowNFTBase,
} from "@superfluid-finance/ethereum-contracts/build/typechain";
import { ethers } from "ethers";

import ERC721MetadataToken from "./ERC721Token";
import { SFError } from "./SFError";
import { NFTFlowData } from "./interfaces";
import { FlowNFTBase__factory, IFlowNFTBase } from "./typechain-types";
import { normalizeAddress } from "./utils";

export default class FlowNFTBase extends ERC721MetadataToken {
Expand Down

0 comments on commit 6315f98

Please sign in to comment.