Skip to content

Commit

Permalink
cleanup typechain
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Oct 12, 2023
1 parent 72c7974 commit b4f2db1
Show file tree
Hide file tree
Showing 54 changed files with 10 additions and 3,330 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ playwright/.cache/
# IDE
.vscode
.swp

# Typechain
typechain
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Contract, Interface, type ContractRunner } from "ethers";
import type {
WethContractAbi,
WethContractAbiInterface,
} from "../WethContractAbi";
} from "./WethContractAbi";

const _abi = [
{
Expand Down
2 changes: 1 addition & 1 deletion examples/with-ethers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { TurnkeyClient } from "@turnkey/http";
import { ApiKeyStamper } from "@turnkey/api-key-stamper";
import { createNewEthereumPrivateKey } from "./createNewEthereumPrivateKey";
import { print, assertEqual } from "./util";
import { WethContractAbi__factory as WethContractFactory } from "./typechain";
import { WethContractAbi__factory as WethContractFactory } from "./contracts/WethContractFactory";

const WETH_TOKEN_ADDRESS_GOERLI = "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6";

Expand Down
4 changes: 0 additions & 4 deletions examples/with-ethers/src/typechain/factories/index.ts

This file was deleted.

6 changes: 0 additions & 6 deletions examples/with-ethers/src/typechain/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"prepublishOnly": "pnpm -w run clean-all && pnpm -w run build-all",
"build": "tsc",
"clean": "rimraf ./dist ./.cache",
"compile:clean": "hardhat clean",
"compile:contracts": "hardhat compile",
"test": "jest",
"typechain": "typechain --target ethers-v6 --out-dir ./src/__tests__/typechain './src/weth-contract-abi.json'",
"typecheck": "tsc -p tsconfig.typecheck.json"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type {
TypedLogDescription,
TypedListener,
TypedContractMethod,
} from "../../../../common";
} from "./common";

export interface Test721Interface extends Interface {
getFunction(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import {
Interface,
} from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../../../common";
import type { NonPayableOverrides } from "./common";
import type {
Test721,
Test721Interface,
} from "../../../../../src/__tests__/contracts/source/Test721";
} from "./Test721";

const _abi = [
{
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/ethers/src/__tests__/index-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { test, expect, beforeEach, describe } from "@jest/globals";
import { TurnkeySigner, TurnkeyActivityError } from "../";
import { TurnkeyClient } from "@turnkey/http";
import { ApiKeyStamper } from "@turnkey/api-key-stamper";
import { Test721__factory as Test721Factory } from "./typechain/factories/src/__tests__/contracts/source/Test721__factory";
import { Test721__factory as Test721Factory } from "./Test721Factory";

// @ts-expect-error
const testCase: typeof test = (...argList) => {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b4f2db1

Please sign in to comment.