-
Notifications
You must be signed in to change notification settings - Fork 75
ETS integration RPC endpoints #966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 15 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7e06e1b
ETCM-657 move config files to resources to enable usage during develo…
d276b87
fix test API for retesteth WIP
922b205
ETCM-697: Added initial import raw block test method
9c52217
ETCM-697: Fixed issue related to genesis data loading
00cb050
ETCM-697: Added TestEthBlockServiceWrapper to accommodate response ac…
34b3ac5
ETCM-697: Fixed code hash parsing bug. Added debug account range meth…
cf5e5f4
add some logging, wait for importBlock before continuing, don't omit …
f779c60
ETCM-697: Added initial account range implementation
28e9342
ETCM-697: Added separate transaction response class that includes sig…
f395370
ETCM-697: Fixed state root calculation when block mining in ets. Adde…
7625b42
ETCM-697: Transaction get log hash implemented
c9c2b14
ETCM-697: Added zero fork blocks to testmode config
ebaab0c
ETCM-697: Fixed failing tests
5a34ad1
ETCM-697: Fixed scalastyle issues
9dcde25
fix import
5532229
[ETCM-697] Cleanup TestJsonMethodsImplicits
dzajkowski a8141a1
[ETCM-697] Cleanup EthBlockResponse usage
dzajkowski 53b53ff
[ETCM-697] Capture tech debt in 'handleTestRequest'
dzajkowski addfc2f
[ETCM-697] Cleanup EthTransactionResponse usage
dzajkowski bc3b779
[ETCM-697] Align responses in TestService
dzajkowski 78687e2
[ETCM-697] Reorganise BlockPreparator testmode condition
dzajkowski f39864b
[ETCM-697] Cleanup TestEthBlockServiceWrapper
dzajkowski 7998259
[ETCM-697] Cleanup TestService
dzajkowski 85b04a2
[ETCM-697] Apply scalafmt
dzajkowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
10 changes: 9 additions & 1 deletion
10
src/main/scala/io/iohk/ethereum/jsonrpc/JsonRpcResponse.scala
This file contains hidden or 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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
package io.iohk.ethereum.jsonrpc | ||
|
||
import org.json4s.native.Serialization.write | ||
import org.json4s.JsonAST.JValue | ||
import org.json4s.DefaultFormats | ||
import org.json4s.Formats | ||
|
||
case class JsonRpcResponse(jsonrpc: String, result: Option[JValue], error: Option[JsonRpcError], id: JValue) | ||
case class JsonRpcResponse(jsonrpc: String, result: Option[JValue], error: Option[JsonRpcError], id: JValue) { | ||
def inspect: String = { | ||
implicit val formats: Formats = DefaultFormats | ||
"JsonRpcResponse" + (jsonrpc, result.map(write(_)), error.map(write(_))).toString | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting seems off here