Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
remove old abort controller shim
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Aug 5, 2023
1 parent 9d4c43a commit ebd739e
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 43 deletions.
33 changes: 0 additions & 33 deletions packages/ethereum/ethereum/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/ethereum/ethereum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"@ganache/rlp": "0.9.0",
"@ganache/secp256k1": "0.5.0",
"@ganache/utils": "0.9.0",
"abort-controller": "3.0.0",
"bip39": "3.0.4",
"chalk": "4.1.2",
"emittery": "0.10.0",
Expand Down
1 change: 0 additions & 1 deletion packages/ethereum/ethereum/src/forking/fork.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { EthereumInternalOptions } from "@ganache/ethereum-options";
import { Data, Quantity, KNOWN_CHAINIDS } from "@ganache/utils";
import AbortController from "abort-controller";
import { Common } from "@ethereumjs/common";
import { HttpHandler } from "./handlers/http-handler";
import { WsHandler } from "./handlers/ws-handler";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { EthereumInternalOptions } from "@ganache/ethereum-options";
import { hasOwn, JsonRpcError } from "@ganache/utils";
import { AbortSignal } from "abort-controller";
import { OutgoingHttpHeaders } from "http";
import RateLimiter from "../rate-limiter/rate-limiter";
import LRU from "lru-cache";
Expand Down Expand Up @@ -164,9 +163,7 @@ export class BaseHandler {
method: string,
params: any[],
key: string,
send: (
...args: unknown[]
) => Promise<{
send: (...args: unknown[]) => Promise<{
response: { result: any } | { error: { message: string; code: number } };
raw: string | Buffer;
}>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { AbortError } from "@ganache/ethereum-utils";
// Issue: https://github.com/trufflesuite/ganache/issues/3474
import http, { RequestOptions, Agent as HttpAgent } from "http";
import https, { Agent as HttpsAgent } from "https";
import { AbortSignal } from "abort-controller";
import { BaseHandler } from "./base-handler";
import { Handler } from "../types";
import Deferred from "../deferred";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { EthereumInternalOptions } from "@ganache/ethereum-options";
import { BaseHandler } from "./base-handler";
import { Handler } from "../types";
import { AbortSignal } from "abort-controller";

import { JsonRpcError, JsonRpcResponse } from "@ganache/utils";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { EthereumInternalOptions } from "@ganache/ethereum-options";
import { AbortError } from "@ganache/ethereum-utils";
import { AbortSignal } from "abort-controller";
import WebSocket from "ws";
import { Handler } from "../types";
import { BaseHandler } from "./base-handler";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AbortError } from "@ganache/ethereum-utils";
import { JsonRpcError, JsonRpcErrorCode, hasOwn } from "@ganache/utils";
import { AbortSignal } from "abort-controller";
import Semaphore from "semaphore";
import { LimitCounter } from "./limit-counter";

Expand Down

0 comments on commit ebd739e

Please sign in to comment.