-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tx submitter with initial FRED API3 - Reports Support.
- Loading branch information
1 parent
b0ac608
commit 3e8aa5b
Showing
39 changed files
with
1,349 additions
and
0 deletions.
There are no files selected for viewing
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,3 @@ | ||
ORGANISER_MNEMONIC_PHRASE="test test test test test test test test test test test test test test test test test test test test test test test sauce" | ||
BLOCKFOST_URL=https://cardano-mainnet.blockfrost.io/api/v1/ | ||
BLOCKFROST_PASSWORD= |
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-shell.log |
20 changes: 20 additions & 0 deletions
20
_backend-services/cf-lob-tx-submitter/.run/CFLOBTxSubmitter (PRE-PROD).run.xml
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,20 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="CFLOBTxSubmitter (PRE-PROD)" type="Application" factoryName="Application"> | ||
<option name="MAIN_CLASS_NAME" value="org.cardano.foundation.lob.CFLOBTxSubmitter" /> | ||
<module name="voting-admin-app.main" /> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="org.cardano.foundation.lob.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<extension name="software.aws.toolkits.jetbrains.core.execution.JavaAwsConnectionExtension"> | ||
<option name="credential" /> | ||
<option name="region" /> | ||
<option name="useCurrentConnection" value="false" /> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
23 changes: 23 additions & 0 deletions
23
_backend-services/cf-lob-tx-submitter/.run/CFLOBTxSubmitter (PROD).run.xml
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,23 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="CFLOBTxSubmitter (PROD)" type="Application" factoryName="Application"> | ||
<envs> | ||
<env name="SPRING_CONFIG_LOCATION" value="classpath:/application.properties,classpath:/application-prod.properties" /> | ||
<env name="SPRING_PROFILES_ACTIVE" value="prod" /> | ||
</envs> | ||
<option name="MAIN_CLASS_NAME" value="org.cardano.foundation.lob.CFLOBTxSubmitter" /> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="org.cardano.foundation.lob.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<extension name="software.aws.toolkits.jetbrains.core.execution.JavaAwsConnectionExtension"> | ||
<option name="credential" /> | ||
<option name="region" /> | ||
<option name="useCurrentConnection" value="false" /> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
26 changes: 26 additions & 0 deletions
26
_backend-services/cf-lob-tx-submitter/.run/VotingAppAdminService (YACI_DEV_NET).run.xml
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,26 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="VotingAppAdminService (YACI_DEV_NET)" type="Application" factoryName="Application"> | ||
<option name="ALTERNATIVE_JRE_PATH" value="corretto-21 (2)" /> | ||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" /> | ||
<envs> | ||
<env name="SPRING_CONFIG_LOCATION" value="classpath:/application.properties,classpath:/application-dev--yaci-dev-kit.properties" /> | ||
<env name="SPRING_PROFILES_ACTIVE" value="dev--yaci-dev-kit" /> | ||
</envs> | ||
<option name="MAIN_CLASS_NAME" value="org.cardano.foundation.lob.CFLOBTxSubmitter" /> | ||
<module name="cf-lob-tx-submitter.main" /> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="org.cardano.foundation.lob.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<extension name="software.aws.toolkits.jetbrains.core.execution.JavaAwsConnectionExtension"> | ||
<option name="credential" /> | ||
<option name="region" /> | ||
<option name="useCurrentConnection" value="false" /> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
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 @@ | ||
FROM openjdk:20-jdk-slim AS build | ||
WORKDIR /app | ||
COPY . /app | ||
RUN ./gradlew clean build | ||
|
||
FROM openjdk:20-jdk-slim AS runtime | ||
WORKDIR /app | ||
COPY --from=build /app/build/libs/*SNAPSHOT.jar /app/app.jar | ||
ENTRYPOINT ["java", "-jar", "app.jar"] |
Empty file.
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,55 @@ | ||
plugins { | ||
java | ||
id("io.spring.dependency-management") version "1.1.3" | ||
id("org.graalvm.buildtools.native") version "0.9.27" | ||
id("com.github.ben-manes.versions") version "0.48.0" | ||
id("org.springframework.boot") version "3.1.2" | ||
} | ||
|
||
group = "org.cardano.foundation" | ||
version = "1.0.0-SNAPSHOT" | ||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
|
||
configurations { | ||
compileOnly { | ||
extendsFrom(configurations.annotationProcessor.get()) | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url = uri("https://repo.spring.io/milestone") } | ||
} | ||
|
||
extra["springShellVersion"] = "3.1.2" | ||
|
||
dependencies { | ||
implementation("org.springframework.shell:spring-shell-starter") | ||
testImplementation("org.springframework.boot:spring-boot-starter-test") | ||
|
||
compileOnly("org.projectlombok:lombok:1.18.34") | ||
annotationProcessor("org.projectlombok:lombok:1.18.34") | ||
|
||
testCompileOnly("org.projectlombok:lombok:1.18.34") | ||
testAnnotationProcessor("org.projectlombok:lombok:1.18.34") | ||
|
||
implementation("com.bloxbean.cardano:cardano-client-crypto:0.6.2") // 0.6.2 | ||
implementation("com.bloxbean.cardano:cardano-client-address:0.6.2") | ||
implementation("com.bloxbean.cardano:cardano-client-metadata:0.6.2") | ||
implementation("com.bloxbean.cardano:cardano-client-quicktx:0.6.2") | ||
implementation("com.bloxbean.cardano:cardano-client-backend-blockfrost:0.6.2") | ||
|
||
implementation("io.blockfrost:blockfrost-java:0.1.3") | ||
|
||
implementation("me.paulschwarz:spring-dotenv:4.0.0") | ||
} | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom("org.springframework.shell:spring-shell-dependencies:${property("springShellVersion")}") | ||
} | ||
} | ||
|
||
tasks.withType<Test> { | ||
useJUnitPlatform() | ||
} |
Binary file added
BIN
+42.4 KB
_backend-services/cf-lob-tx-submitter/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
_backend-services/cf-lob-tx-submitter/gradle/wrapper/gradle-wrapper.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,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.