Closed lealobanov closed 1 day ago
The changes in this pull request introduce new methods for retrieving system transactions and their results in both the Java and Kotlin SDKs. Additionally, the README files for both examples have been updated to reflect these new functionalities. The modifications include the addition of methods in the respective API connectors and interfaces, ensuring consistent error handling and response processing. Furthermore, corresponding tests have been added to validate the new functionalities, enhancing the overall coverage of the SDK.
File | Change Summary |
---|---|
java-example/README.md | Added descriptions for "Get system transaction" and "Get system transaction result" in "Examples summary". |
kotlin-example/README.md | Added descriptions for "Get system transaction" and "Get system transaction result" in "Get Transactions". |
java-example/src/main/java/org/onflow/examples/java/getTransaction/GetTransactionAccessAPIConnector.java | Added methods: getSystemTransaction(FlowId blockId) and getSystemTransactionResult(FlowId blockId) . |
kotlin-example/src/main/kotlin/org/onflow/examples/kotlin/getTransaction/GetTransactionAccessAPIConnector.kt | Added methods: getSystemTransaction(blockId: FlowId): FlowTransaction and getSystemTransactionResult(blockId: FlowId): FlowTransactionResult . |
sdk/src/main/kotlin/org/onflow/flow/sdk/AsyncFlowAccessApi.kt | Added methods: fun getSystemTransaction(blockId: FlowId) and fun getSystemTransactionResult(blockId: FlowId) . |
sdk/src/main/kotlin/org/onflow/flow/sdk/FlowAccessApi.kt | Added methods: fun getSystemTransaction(blockId: FlowId) and fun getSystemTransactionResult(blockId: FlowId) . Marked getAccountByAddress as deprecated. |
sdk/src/main/kotlin/org/onflow/flow/sdk/impl/AsyncFlowAccessApiImpl.kt | Added methods: override fun getSystemTransaction(blockId: FlowId) and override fun getSystemTransactionResult(blockId: FlowId) . |
sdk/src/main/kotlin/org/onflow/flow/sdk/impl/FlowAccessApiImpl.kt | Added methods: override fun getSystemTransaction(blockId: FlowId) and override fun getSystemTransactionResult(blockId: FlowId) . Marked getAccountByAddress as deprecated. |
sdk/src/test/kotlin/org/onflow/flow/sdk/FlowAccessApiTest.kt | Added tests for getSystemTransaction and getSystemTransactionResult methods. |
sdk/src/test/kotlin/org/onflow/flow/sdk/impl/AsyncFlowAccessApiImplTest.kt | Added tests for getSystemTransaction and getSystemTransactionResult methods. |
sdk/src/test/kotlin/org/onflow/flow/sdk/impl/FlowAccessApiImplTest.kt | Added tests for getSystemTransaction and getSystemTransactionResult methods. |
Objective | Addressed | Explanation |
---|---|---|
Add GetSystemTransaction and GetSystemTransactionResult endpoints (124) | ✅ |
FlowTransactionResult
type may require corresponding documentation updates.🐰 "In the code where the transactions flow,
New methods sprout, like carrots grow.
From Java to Kotlin, the changes are clear,
With examples now shining, let’s give a cheer!
For every transaction, we’ll fetch with delight,
In our SDK garden, everything feels right!" 🌱
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?
62 files ±0 62 suites ±0 25s :stopwatch: ±0s 397 tests ±0 397 :heavy_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit 4b6ff145. ± Comparison against base commit 4b6ff145.
:recycle: This comment has been updated with latest results.
6 files ±0 6 suites ±0 3m 30s :stopwatch: ±0s 41 tests ±0 41 :heavy_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit 4b6ff145. ± Comparison against base commit 4b6ff145.
:recycle: This comment has been updated with latest results.
20 files 20 suites 3m 55s :stopwatch: 46 tests 45 :heavy_check_mark: 0 :zzz: 1 :x:
For more details on these failures, see this check.
Results for commit e6975527.
:recycle: This comment has been updated with latest results.
0 files 0 suites 0s :stopwatch: 0 tests 0 :heavy_check_mark: 0 :zzz: 0 :x:
Results for commit e6975527.
:recycle: This comment has been updated with latest results.
Closes: #124
Description
getSystemTransaction
andgetSystemTransactionResult
Access API methods are not currently exposed by the Flow emulatorFor contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
Release Notes
New Features
Bug Fixes
getAccountByAddress
method as deprecated, suggesting the use ofgetAccountAtLatestBlock
instead.Tests
getSystemTransaction
andgetSystemTransactionResult
methods to ensure proper functionality and response handling.