Closed lealobanov closed 1 month ago
A new Java class GetNodeVersionInfoAccessAPIConnector
and a corresponding Kotlin class have been introduced to interact with the Flow Access API for retrieving node version information. Both classes include methods to fetch this information and handle responses appropriately. Additionally, new test classes for both Java and Kotlin implementations have been created to ensure the functionality works as expected. The SDK has also been updated to include new methods in the FlowAccessApi
and AsyncFlowAccessApi
interfaces, along with associated data classes for handling node version details.
File | Change Summary |
---|---|
java-example/src/main/java/org/onflow/examples/java/getNodeVersionInfo/GetNodeVersionInfoAccessAPIConnector.java |
Added GetNodeVersionInfoAccessAPIConnector class with method getNodeVersionInfo() . |
java-example/src/test/java/org/onflow/examples/java/getNodeVersionInfo/GetNodeVersionInfoAccessAPIConnectorTest.java |
Created test class for GetNodeVersionInfoAccessAPIConnector with method canFetchNodeVersionInfo . |
kotlin-example/src/main/kotlin/org/onflow/examples/kotlin/getNodeVersionInfo/GetNodeVersionInfoAccessAPIConnector.kt |
Added GetNodeVersionInfoAccessAPIConnector class with method getNodeVersionInfo() . |
kotlin-example/src/test/kotlin/org/onflow/examples/kotlin/getNodeVersionInfo/GetNodeVersionInfoAccessAPIConnectorTest.kt |
Created test class for Kotlin implementation with method Can fetch node version info . |
sdk/build.gradle.kts |
Updated org.onflow:flow dependency version from 1.0.0 to 1.1.0 . |
sdk/src/main/kotlin/org/onflow/flow/sdk/AsyncFlowAccessApi.kt |
Added getNodeVersionInfo() method to AsyncFlowAccessApi interface. |
sdk/src/main/kotlin/org/onflow/flow/sdk/FlowAccessApi.kt |
Added getNodeVersionInfo() method to FlowAccessApi interface. |
sdk/src/main/kotlin/org/onflow/flow/sdk/impl/AsyncFlowAccessApiImpl.kt |
Implemented getNodeVersionInfo() method in AsyncFlowAccessApiImpl . |
sdk/src/main/kotlin/org/onflow/flow/sdk/impl/FlowAccessApiImpl.kt |
Implemented getNodeVersionInfo() method in FlowAccessApiImpl . |
sdk/src/main/kotlin/org/onflow/flow/sdk/models.kt |
Added FlowCompatibleRange and FlowNodeVersionInfo data classes. |
sdk/src/test/kotlin/org/onflow/flow/sdk/impl/AsyncFlowAccessApiImplTest.kt |
Added test method for getNodeVersionInfo() in AsyncFlowAccessApiImplTest . |
sdk/src/test/kotlin/org/onflow/flow/sdk/impl/FlowAccessApiImplTest.kt |
Added test method for getNodeVersionInfo() in FlowAccessApiImplTest . |
sdk/src/test/kotlin/org/onflow/flow/sdk/models/FlowNodeVersionInfoTest.kt |
Created tests for FlowNodeVersionInfo and FlowCompatibleRange classes. |
Objective | Addressed | Explanation |
---|---|---|
Update GetNodeVersionInfo response object (#107) | ✅ |
GetNodeVersionInfoAccessAPIConnector
class, which is relevant to the main PR's new class for retrieving node version information.FlowAccessApi
interface, including getNodeVersionInfo()
, which is directly related to the functionality implemented in the main PR.GetCollectionAccessAPIConnector
, which, like the main PR, adds functionality for accessing specific data from the Flow blockchain, indicating a similar purpose in enhancing API interactions.GetExecutionDataAccessAPIConnector
, which also aligns with the main PR's focus on enhancing access to specific data types within the Flow SDK.FlowTransactionResult
class to include additional fields, which may relate to the data structures being handled in the main PR.🐰 In the meadow, I hop and play,
New classes bloom in a bright array.
Fetching versions, swift and neat,
With tests in place, our work's complete!
Hooray for code, so fresh and new,
A joyful leap, just for you! 🌼
60 files ±0 60 suites ±0 24s :stopwatch: ±0s 340 tests ±0 339 :heavy_check_mark: ±0 0 :zzz: ±0 1 :x: ±0
For more details on these failures, see this check.
Results for commit db9e3d1e. ± Comparison against base commit db9e3d1e.
:recycle: This comment has been updated with latest results.
0 files ±0 0 suites ±0 0s :stopwatch: ±0s 0 tests ±0 0 :heavy_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit db9e3d1e. ± Comparison against base commit db9e3d1e.
:recycle: This comment has been updated with latest results.
37 files 37 suites 6m 18s :stopwatch: 70 tests 70 :heavy_check_mark: 0 :zzz: 0 :x:
Results for commit fc88f836.
:recycle: This comment has been updated with latest results.
1 files 1 suites 7s :stopwatch: 1 tests 1 :heavy_check_mark: 0 :zzz: 0 :x:
Results for commit fc88f836.
:recycle: This comment has been updated with latest results.
Closes: #107
Description
Setup classes to model protobuf objects:
FlowNodeVersionInfo
FlowCompatibleRange
The JVM SDK currently does not support the Access API endpoint:
PR to update protobuf files: https://github.com/onflow/flow/pull/1516
To-do:
org.onflow:flow:1.0.0"
as protobuf fields have changed since then: https://mvnrepository.com/artifact/org.onflow/flowgetNodeVersionInfo
+ update docsFor contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
Release Notes
New Features
Tests
Chores
.gitignore
file to exclude specific error files.