Closed lealobanov closed 3 months ago
The recent updates significantly enhance the Flow SDK, focusing on asynchronous programming and improved data access. Key changes include the introduction of new subscription methods for execution data and events based on block ID and height. The integration of Kotlin coroutines streamlines concurrent processing, boosting the SDK's efficiency and usability while enabling real-time data handling.
Files | Change Summary |
---|---|
sdk/build.gradle.kts |
Added dependencies for Kotlin coroutines (1.5.2 ), enhancing asynchronous capabilities. |
sdk/src/main/kotlin/org/onflow/flow/sdk/Flow.kt |
Updated newAccessApi to handle an additional ExecutionDataAPIGrpc parameter for enhanced functionality. |
sdk/src/main/kotlin/org/onflow/flow/sdk/FlowAccessApi.kt , sdk/src/main/kotlin/org/onflow/flow/sdk/impl/FlowAccessApiImpl.kt |
Introduced methods for subscribing to execution data and events based on block ID and height, improving real-time data access. |
sdk/src/test/kotlin/org/onflow/flow/sdk/FlowAccessApiTest.kt , sdk/src/test/kotlin/org/onflow/flow/sdk/impl/FlowAccessApiImplTest.kt |
Expanded test suites, adding tests for new subscription functionalities in both access APIs. |
A Rabbit's Poem:
π In fields of code where bunnies hop,
New methods bloom, we never stop.
With coroutines swift, our tasks delight,
As transactions dance in the moonlight.
Hooray for changes, bright and clear,
The Flow SDK shines, letβs give a cheer! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
ββ53 filesβ Β±ββ0ββββ53 suitesβ Β±0βββ23s :stopwatch: Β±0s 310 tests +12ββ310 :heavy_check_mark: +12ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit 10f1de86.βΒ± Comparison against base commit 2feb1f72.
:recycle: This comment has been updated with latest results.
2 filesβ β-βββ3ββ2 suitesβ β-β3βββ12s :stopwatch: - 1m 39s 2 tests β-β29ββ2 :heavy_check_mark: β-β29ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit 10f1de86.βΒ± Comparison against base commit 2feb1f72.
:recycle: This comment has been updated with latest results.
2 filesββ2 suitesβββ34s :stopwatch: 6 testsβ6 :heavy_check_mark:β0 :zzz:β0 :x:
Results for commit 10f1de86.
:recycle: This comment has been updated with latest results.
Thank you, will follow up on these shortly!
Description
Access api subscription endpoints
ExecutionData fields: https://github.com/onflow/flow/blob/3d7cfcfd52ac2532ebe244f9f66ecc8d76bd9fed/protobuf/flow/entities/block_execution_data.proto
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Bug Fixes
Tests