@@ -87,6 +87,15 @@ spring.hiero.accountId=0.0.3447271
8787spring.hiero.privateKey =2130020100312346052b8104400304220420c236508c429395a8180b1230f436d389adc5afaa9145456783b57b2045c6cc37
8888```
8989
90+ The module supports a ` .env ` file in the root of the module to define the account information.
91+ The file is added to the ` .gitignore ` file and is not committed to the repository.
92+ By doing that you can define the account information in the ` .env ` file without the risk of committing it to the repository.
93+ The ` .env ` file should look like this:
94+ ``` properties
95+ spring.hiero.accountId =0.0.3447271
96+ spring.hiero.privateKey =2130020100312346052b8104400304220420c236508c429395a8180b1230f436d389adc5afaa9145456783b57b2045c6cc37
97+ ```
98+
9099Alternatively, you can provide the account information as environment variables:
91100``` shell
92101export HEDERA_ACCOUNT_ID=0.0.3447271
@@ -95,19 +104,37 @@ export HEDERA_PRIVATE_KEY=2130020100312346052b8104400304220420c236508c429395a818
95104
96105## Microservice support
97106
98- The support for Microprofile is still in development and can not be used yet.
107+ To use this module, you need to add the following dependency to your project:
108+
109+ ``` xml
110+ <dependency >
111+ <groupId >com.open-elements.hiero</groupId >
112+ <artifactId >hiero-enterprise-microprofile</artifactId >
113+ <version >VERSION</version >
114+ </dependency >
115+ ```
116+
117+ The ` hiero-enterprise-microprofile-sample ` module contains a sample application that uses the Hiero Microprofile module.
118+ The sample application is a simple Quarkus application that reads has a REST endpoint at ` localhost:8080/ ` and shows
119+ the hbar balance of the account ` 0.0.100 ` on the Hedera testnet.
120+ For most of the part, the sample application is the same as the Spring Boot sample application.
99121
100122## Managed services
101123
102124The module provides a set of managed services that can be used to interact with a Hiero network.
103125The following services are available in spring and microprofile:
104126
127+ - ` com.openelements.hiero.base.HieroContext ` : component that provides the information about the Hiero network and the operator account
105128- ` com.openelements.hiero.base.AccountClient ` : to interact with accounts
106129- ` com.openelements.hiero.base.FileClient ` : to interact with files
107- - ` com.openelements.hiero.base.SmartContractClient ` : to interact with smart contracts
108- - ` com.openelements.hiero.base.ContractVerificationClient ` : to verify smart contracts
130+ - ` com.openelements.hiero.base.FungibleTokenClient ` : to interact with fungible tokens
109131- ` com.openelements.hiero.base.NftClient ` : to interact with NFTs
110- - ` com.openelements.hiero.base.NftRepository ` : to query NFTs
132+ - ` com.openelements.hiero.base.SmartContractClient ` : to interact with smart contracts
133+ - ` com.openelements.hiero.base.verifcation.ContractVerificationClient ` : to verify smart contracts
134+ - ` com.openelements.hiero.base.mirrornode.AccountRepository ` : to query accounts
135+ - ` com.openelements.hiero.base.mirrornode.NetworkRepository ` : to query network information
136+ - ` com.openelements.hiero.base.mirrornode.NftRepository ` : to query NFTs
137+ - ` com.openelements.hiero.base.mirrornode.TransactionRepository ` : to query transaction information
111138
112139Next to that the following low-level services are available:
113140
@@ -137,6 +164,7 @@ export HEDERA_NETWORK=testnet
137164```
138165
139166As an alternative you can define the information in a ` .env ` file in each sub-module that contains tests.
167+ The files are added to the ` .gitignore ` file and will not be committed to the repository.
140168The file should look like this:
141169
142170```
@@ -163,6 +191,7 @@ How that environment variables are defined can be found in the
163191[ this blog post] ( https://foojay.io/today/how-to-release-a-java-module-with-jreleaser-to-maven-central-with-github-actions/ ) .
164192
165193On a unix based system the environment variables can be defined in the ` .env ` file in the root of the project.
194+ The file is added to the ` .gitignore ` file and is not committed to the repository.
166195
167196Once that is done you can use the ` release.sh ` script in the root folder of the repos to create a release:
168197
0 commit comments