Closed lealobanov closed 1 month ago
A series of minor formatting changes and the introduction of a new GetCollectionAccessAPIConnector
class have been implemented across several Java and Kotlin files in the project. These changes include the removal of blank lines for improved code consistency and readability, as well as the addition of new tests for the collection access functionality within the Flow blockchain framework.
Files | Change Summary |
---|---|
java-example/src/main/java/org/onflow/examples/java/getAccount/GetAccountAccessAPIConnector.java java-example/src/main/java/org/onflow/examples/java/getBlock/GetBlockAccessAPIConnector.java java-example/src/main/java/org/onflow/examples/java/getNetworkParams/GetNetworkParametersAccessAPIConnector.java java-example/src/main/java/org/onflow/examples/java/getTransaction/GetTransactionAccessAPIConnector.java |
Minor formatting changes with blank lines removed, no functional changes. |
java-example/src/main/java/org/onflow/examples/java/getCollection/GetCollectionAccessAPIConnector.java |
New class introduced to connect with Flow Access API for retrieving collections by ID. |
java-example/src/test/java/org/onflow/examples/java/AccessAPIConnectorTest.java |
Removed declarations for serviceAccount and accessAPI , indicating refactoring. |
java-example/src/test/java/org/onflow/examples/java/getAccount/GetAccountAccessAPIConnectorTest.java java-example/src/test/java/org/onflow/examples/java/getBlock/GetBlockAccessAPIConnectorTest.java java-example/src/test/java/org/onflow/examples/java/getCollection/GetCollectionAccessAPIConnectorTest.java java-example/src/test/java/org/onflow/examples/java/getEvent/GetEventAccessAPIConnectorTest.java java-example/src/test/java/org/onflow/examples/java/getNetworkParams/GetNetworkParametersAccessAPIConnectorTest.java java-example/src/test/java/org/onflow/examples/java/getTransaction/GetTransactionAccessAPIConnectorTest.java |
Minor whitespace adjustments for improved readability, with no functional changes. |
kotlin-example/src/main/kotlin/org/onflow/examples/kotlin/getCollection/GetCollectionAccessAPIConnector.kt |
New class introduced to connect with Flow Access API for retrieving collections by ID. |
kotlin-example/src/test/kotlin/org/onflow/examples/kotlin/getBlock/GetBlockAccessAPIConnectorTest.kt |
Added imports and a new serviceAccount property for managing service account credentials in tests. |
kotlin-example/src/test/kotlin/org/onflow/examples/kotlin/getCollection/GetCollectionAccessAPIConnectorTest.kt |
New test class created to validate functionality of GetCollectionAccessAPIConnector . |
sequenceDiagram
participant ServiceAccount
participant FlowAccessApi
participant GetCollectionAccessAPIConnector
ServiceAccount->>+GetCollectionAccessAPIConnector: Initiate GetCollectionById
GetCollectionAccessAPIConnector->>FlowAccessApi: Get collection data by ID
FlowAccessApi-->>-GetCollectionAccessAPIConnector: Return collection data
GetCollectionAccessAPIConnector-->>ServiceAccount: Return collection
π "In fields of code where rabbits tread,
Whitespace gone, new paths we've spread.
A connector for collections now shines bright,
With tests to ensure everything's right.
Hop along, let's celebrate this feat,
In the world of Flow, our work is sweet!" π
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β +ββ53ββββ53 suitesβ +53βββ23s :stopwatch: +23s 310 tests +310ββ310 :heavy_check_mark: +310ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit 514d9459.βΒ± Comparison against base commit 0bc8410d.
:recycle: This comment has been updated with latest results.
14 filesββ14 suitesβββ3m 2s :stopwatch: 35 testsβ35 :heavy_check_mark:β0 :zzz:β0 :x:
Results for commit 514d9459.
: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 514d9459.
:recycle: This comment has been updated with latest results.
ββ5 filesβ +ββ5ββββ5 suitesβ +5βββ2m 29s :stopwatch: + 2m 29s 29 tests +29ββ29 :heavy_check_mark: +29ββ0 :zzz: Β±0ββ0 :x: Β±0β
Results for commit 514d9459.βΒ± Comparison against base commit 0bc8410d.
:recycle: This comment has been updated with latest results.
Description
Get collection :
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
GetCollectionAccessAPIConnector
to access collections in the Flow blockchain.GetCollectionAccessAPIConnectorTest
to validate functionality of the new connector.Bug Fixes
Documentation
GetBlockAccessAPIConnectorTest
.Chores