-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathglobals.d.ts
More file actions
28 lines (26 loc) · 872 Bytes
/
globals.d.ts
File metadata and controls
28 lines (26 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
declare module '*.json' {
const json: any;
/* tslint:disable */
export default json;
/* tslint:enable */
}
declare module 'web3-eth-abi' {
import { AbiInput, AbiItem } from 'web3-utils';
export class AbiCoder {
encodeFunctionSignature(functionName: string | AbiItem): string;
encodeEventSignature(functionName: string | AbiItem): string;
encodeParameter(type: string | {}, parameter: any): string;
encodeParameters(types: Array<string | {}>, paramaters: any[]): string;
encodeFunctionCall(abiItem: AbiItem, params: string[]): string;
decodeParameter(type: string | {}, hex: string): { [key: string]: any };
decodeParameters(
types: Array<string | {}>,
hex: string
): { [key: string]: any };
decodeLog(
inputs: AbiInput[],
hex: string,
topics: string[]
): { [key: string]: string };
}
}