-
Notifications
You must be signed in to change notification settings - Fork 119
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
feat: solution to query the mirror node for the account balance, account info, and contract info data #1698
feat: solution to query the mirror node for the account balance, account info, and contract info data #1698
Conversation
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
sdk/src/main/java/com/hedera/hashgraph/sdk/AccountBalanceQuery.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Nikita Lebedev <[email protected]>
… for AccountBalanceQuery Signed-off-by: Nikita Lebedev <[email protected]>
…ta from Mirror Node Signed-off-by: Nikita Lebedev <[email protected]>
…elper` to new mirror node related classes Signed-off-by: Nikita Lebedev <[email protected]>
…fo-mirror-node-queries # Conflicts: # sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfoQuery.java # sdk/src/main/java/com/hedera/hashgraph/sdk/ContractInfoQuery.java
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
…SyncTimeout() work as intended (not depend on local node) Signed-off-by: Nikita Lebedev <[email protected]>
…fo-mirror-node-queries
…est#testExecuteSyncTimeout() Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
…iewnet Signed-off-by: Nikita Lebedev <[email protected]>
…iewnet Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
…fo-mirror-node-queries
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
sdk/src/main/java/com/hedera/hashgraph/sdk/MirrorNodeGateway.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Nikita Lebedev <[email protected]>
Signed-off-by: Nikita Lebedev <[email protected]>
…mirror-node-queries
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
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.
LGTM
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.
LGTM
…ce, account info, and contract info data (#1698)" (leave some useful chores which not really related to the feat) This reverts commit 8243cf6 Signed-off-by: Nikita Lebedev <[email protected]>
Description:
This PR adds a solution to query the mirror node for the account balance, account info, and contract info data.
Related issue(s):
Fixes #1697
Notes for reviewer:
MirrorNodeRouter
,MirrorNodeGateway
andMirrorNodeService
to interact with the Mirror Node via REST API.AccountBalanceQuery
,AccountInfoQuery
andContractInfoQuery
to fetch some data from the mirror node (per HIP-367).wiremock
dependency for unit tests.MockingTest
relies on updated queries, so there is a need to mock the REST API as well.Thread#sleep()
to integration tests and examples (to wait until the mirror node updates with the new data). This will increase the time for CI checks.ClientTest
to make it work as intended (not rely on the local node).LOCAL_NODE_PORT
static variable to theMirrorNodeRouter
specifically forMockingTest
. Since we now have interaction with the mirror node via the REST API (previously we only had interactions via gRPC), there is a need to add an SDK API to configure it to step over this temporary solution.Checklist