Skip to content

Commit

Permalink
feat: Enhance debug_traceTransaction to work with Opcode Logger
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
  • Loading branch information
victor-yanev committed May 13, 2024
1 parent cf8dea1 commit 1063b4c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relay/src/lib/clients/mirrorNodeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class MirrorNodeClient {
pathLabel: string,
requestIdPrefix?: string,
retries?: number,
): Promise<any> {
): Promise<T | null> {
if (!data) data = {};
return this.request<T>(path, pathLabel, 'POST', data, requestIdPrefix, retries);
}
Expand Down
20 changes: 20 additions & 0 deletions packages/relay/src/lib/clients/models/IOpcode.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/* -
*
* Hedera JSON RPC Relay
*
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

export interface IOpcode {
pc?: number;
op?: string;
Expand Down
20 changes: 20 additions & 0 deletions packages/relay/src/lib/clients/models/IOpcodesResponse.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/* -
*
* Hedera JSON RPC Relay
*
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

import { IOpcode } from './IOpcode';

export interface IOpcodesResponse {
Expand Down

0 comments on commit 1063b4c

Please sign in to comment.