-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
111 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
rskj-core/src/main/java/co/rsk/rpc/modules/debug/trace/call/LogInfoResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package co.rsk.rpc.modules.debug.trace.call; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
public record LogInfoResult(@JsonProperty int index, @JsonProperty String address, @JsonProperty List<String> topics, | ||
@JsonProperty String data) { | ||
|
||
public static Builder builder() { | ||
return new Builder(); | ||
} | ||
|
||
public static class Builder { | ||
private int index; | ||
private String address; | ||
private List<String> topics; | ||
private String data; | ||
|
||
public Builder index(int index) { | ||
this.index = index; | ||
return this; | ||
} | ||
|
||
public Builder address(String address) { | ||
this.address = address; | ||
return this; | ||
} | ||
|
||
public Builder topics(List<String> topics) { | ||
this.topics = topics; | ||
return this; | ||
} | ||
|
||
public Builder data(String data) { | ||
this.data = data; | ||
return this; | ||
} | ||
|
||
public LogInfoResult build() { | ||
return new LogInfoResult(index, address, topics, data); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters