ethers.js/packages/testcases/thirdparty.d.ts

37 lines
1010 B
TypeScript
Raw Normal View History

2019-05-15 01:25:46 +03:00
declare module "browserify-zlib" {
export interface ZlibOptions {
flush?: number;
finishFlush?: number;
chunkSize?: number;
windowBits?: number;
level?: number;
memLevel?: number;
strategy?: number;
dictionary?: any;
}
type InputType = string | Buffer | DataView | ArrayBuffer;
export function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
export function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
}
declare module "*.json" {
const value: any;
export default value;
}
declare module "ethereumjs-util" {
export function privateToAddress(privateKey: Buffer | Uint8Array): Buffer | Uint8Array;
export function toChecksumAddress(address: string): string;
export function keccak256(data: string): Buffer;
class BN {
constructor(value: string, radix: number);
toString(): string;
}
}
declare module "solc" {
function compile(input: string): string;
}