-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hendrik Ebbers <[email protected]>
- Loading branch information
1 parent
72c4974
commit 442dbf3
Showing
21 changed files
with
151 additions
and
30 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
hiero-enterprise-base/src/main/java/com/openelements/hiero/base/config/NetworkSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...fig/provider/NetworkSettingsProvider.java → .../base/config/NetworkSettingsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...config/provider/HederMainnetSettings.java → ...e/config/hedera/HederMainnetSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...config/provider/HederTestnetSettings.java → ...e/config/hedera/HederTestnetSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...tation/HederaNetworkSettingsProvider.java → ...hedera/HederaNetworkSettingsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tation/NetworkSettingsProviderLoader.java → ...tation/NetworkSettingsProviderLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
hiero-enterprise-spring/src/test/resources/application-solo.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
spring.hiero.network.name:solo |
10 changes: 0 additions & 10 deletions
10
hiero-enterprise-spring/src/test/resources/application-solo.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.open-elements.hiero</groupId> | ||
<artifactId>hiero-enterprise</artifactId> | ||
<version>0.17.0-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>hiero-enterprise-test</artifactId> | ||
|
||
<name>Hiero Enterprise Test</name> | ||
<description>Base Library that makes it easier to create tests for Hiero</description> | ||
<url>https://github.com/OpenElements/hiero-enterprise-java</url> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>hiero-enterprise-base</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.jreleaser</groupId> | ||
<artifactId>jreleaser-maven-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...-enterprise-test/src/main/java/com/openelements/hiero/test/SoloActionNetworkSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.openelements.hiero.test; | ||
|
||
import com.openelements.hiero.base.config.ConsensusNode; | ||
import com.openelements.hiero.base.config.NetworkSettings; | ||
import java.util.Optional; | ||
import java.util.Set; | ||
import org.jspecify.annotations.NonNull; | ||
|
||
|
||
public class SoloActionNetworkSettings implements NetworkSettings { | ||
|
||
@Override | ||
public @NonNull String getNetworkIdentifier() { | ||
return "hiero-solo-action"; | ||
} | ||
|
||
@Override | ||
public @NonNull Optional<String> getNetworkName() { | ||
return Optional.of("Hiero Solo Action"); | ||
} | ||
|
||
@Override | ||
public @NonNull Set<String> getMirrorNodeAddresses() { | ||
return Set.of("http://localhost:8080"); | ||
} | ||
|
||
@Override | ||
public @NonNull Set<ConsensusNode> getConsensusNodes() { | ||
return Set.of(new ConsensusNode("127.0.0.1", "50211", "0.0.3")); | ||
} | ||
|
||
@Override | ||
public @NonNull Optional<Long> chainId() { | ||
return Optional.empty(); | ||
} | ||
|
||
@Override | ||
public @NonNull Optional<String> relayUrl() { | ||
return Optional.empty(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...in/java/com/openelements/hiero/test/implementation/SoloActionNetworkSettingsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.openelements.hiero.test.implementation; | ||
|
||
import com.google.auto.service.AutoService; | ||
import com.openelements.hiero.base.config.NetworkSettings; | ||
import com.openelements.hiero.base.config.NetworkSettingsProvider; | ||
import com.openelements.hiero.test.SoloActionNetworkSettings; | ||
import java.util.Set; | ||
|
||
@AutoService(NetworkSettingsProvider.class) | ||
public class SoloActionNetworkSettingsProvider implements NetworkSettingsProvider { | ||
|
||
@Override | ||
public String getName() { | ||
return "Provider for Hiero Solo Action"; | ||
} | ||
|
||
@Override | ||
public Set<NetworkSettings> createNetworkSettings() { | ||
return Set.of(new SoloActionNetworkSettings()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
open module com.openelements.hiero.test { | ||
exports com.openelements.hiero.test; | ||
|
||
provides com.openelements.hiero.base.config.NetworkSettingsProvider with com.openelements.hiero.test.implementation.SoloActionNetworkSettingsProvider; | ||
|
||
requires transitive com.openelements.hiero.base; | ||
requires org.jspecify; | ||
requires com.google.auto.service; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters