aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-typescript-typings/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web3-typescript-typings/index.d.ts')
-rw-r--r--packages/web3-typescript-typings/index.d.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index 6155d10f0..cbe067b37 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -151,6 +151,25 @@ declare module 'web3' {
jsonrpc: string;
}
+ export type OpCode = string;
+
+ export interface StructLog {
+ depth: number;
+ error: string;
+ gas: number;
+ gasCost: number;
+ memory: string[];
+ op: OpCode;
+ pc: number;
+ stack: string[];
+ storage: { [location: string]: string };
+ }
+ export interface TransactionTrace {
+ gas: number;
+ returnValue: any;
+ structLogs: StructLog[];
+ }
+
interface Provider {
sendAsync(
payload: JSONRPCRequestPayload,