import { DebuggerClient } from "../debugger-client" import request from 'sync-request'; import { InitArguments } from "../types"; import { Debugger } from "../debugger"; jest.setTimeout(500000); describe('simple trace', () => { let client: DebuggerClient; beforeAll(async () => { client = new DebuggerClient(); const resp = request('GET', "https://test.sentio.xyz/api/v1/solidity/fetch_and_compile?txHash=0x5aff2a1179c29ccf1d95f91ea216e44c74d1f7da3f506dc0ae88303e8a319a59", {json: true}) const body = JSON.parse(resp.body as string); const shimmedCompilations = []; for (var key in body.result) { var value = body.result[key]; // @ts-ignore shimmedCompilations.push(value); } const init_args: InitArguments = { providerURL: 'https://test.sentio.xyz/api/v1/solidity', txnHash: "0x5aff2a1179c29ccf1d95f91ea216e44c74d1f7da3f506dc0ae88303e8a319a59", shimmedCompilations: shimmedCompilations, chainId: "0x1", storageLookup: false, disableOptimizer: false, } await client.initialize(init_args); }) afterEach(async () => { await client.reset(); }) it('call trace', async () => { const res = await client.getCallTrace() console.log(JSON.stringify(res, null, 2)) }) })