import { DebuggerClient } from "../debugger-client" import request from 'sync-request'; import { InitArguments } from "../types"; import { Debugger } from "../debugger"; jest.setTimeout(500000); describe('Blur debugger', () => { let client: DebuggerClient; const debug = Debugger.Instance beforeAll(async () => { client = new DebuggerClient(); const resp = request('GET', "https://test.sentio.xyz/api/v1/solidity/fetch_and_compile?txHash=0x9da0c2284049126f53921841c38604c074f3f224e71172a66d6d283db3ae09f6", {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: "0x9da0c2284049126f53921841c38604c074f3f224e71172a66d6d283db3ae09f6", 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(res) }) })