-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: remove Ganache for integration tests
The integration tests do not need an Ethereum node anymore (and never will in future). Therefore all parts that refer to the Ganache client can be removed.
- Loading branch information
Showing
3 changed files
with
11 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,3 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
declare module 'ganache-cli' { | ||
import 'jest-extended'; | ||
import type { Http2Server } from 'http2'; | ||
import type { ExternalProvider } from '@ethersproject/providers'; | ||
|
||
export interface GanacheServerOptions { | ||
accounts?: { balance: string; secretKey?: string }[]; | ||
debug?: boolean; | ||
blockTime?: number; | ||
logger?: { log: (...args: any[]) => void }; | ||
mnemonic?: string; | ||
port?: number; | ||
seed?: string; | ||
default_balance_ether?: number; | ||
total_accounts?: number; | ||
fork?: string; | ||
fork_block_number?: string | number; | ||
network_id?: number; | ||
_chainIdRpc?: number; | ||
_chainId?: number; | ||
time?: Date; | ||
locked?: boolean; | ||
unlocked_accounts?: string[]; | ||
db_path?: string; | ||
db?: any; | ||
ws?: boolean; | ||
account_keys_path?: string; | ||
vmErrorsOnRPCResponse?: boolean; | ||
hdPath?: string; | ||
hardfork?: string; | ||
allowUnlimitedContractSize?: boolean; | ||
gasPrice?: string; | ||
gasLimit?: string; | ||
keepAliveTimeout?: number; | ||
} | ||
|
||
export interface Ganache { | ||
provider(options?: GanacheServerOptions): ExternalProvider; | ||
server(options?: GanacheServerOptions): Http2Server; | ||
} | ||
|
||
const ganache: Ganache; | ||
export default ganache; | ||
} | ||
import 'jest-extended'; | ||
|
||
declare module 'pouchdb-debug'; |
Oops, something went wrong.