Skip to content

Commit

Permalink
Merge pull request #13 from cardano-foundation/account_balance
Browse files Browse the repository at this point in the history
chore: Enable yaci store account balance aggregation
  • Loading branch information
satran004 authored Sep 14, 2023
2 parents 1a36421 + dddd2bf commit 4be8d9f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ dependencies {
implementation project(':components:consumer-common')

implementation(libs.yaci.store.starter)
implementation(libs.yaci.store.utxo.starter)
implementation(libs.yaci.store.account.starter)

implementation(libs.cardano.client.lib)

implementation(libs.snakeyaml)
Expand Down
6 changes: 5 additions & 1 deletion application/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ spring.jpa.properties.jakarta.persistence.validation.mode=none
#management.metrics.export.prometheus.enabled=true
management.endpoints.web.exposure.include=prometheus

store.enable-block-event-listener=true
#Yaci Store settings
apiPrefix=/api/v1
store.account.enabled=true
store.account.balance-aggregation-enabled=true
store.account.history-cleanup-enabled=false
5 changes: 5 additions & 0 deletions application/src/main/resources/config/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ genesis:
shelley: ${SHELLEY_GENESIS_URL:classpath:networks/${NETWORK}/shelley-genesis.json}
alonzo: ${ALONZO_GENESIS_URL:classpath:networks/${NETWORK}/alonzo-genesis.json}
conway: ${CONWAY_GENESIS_URL:classpath:networks/${NETWORK}/conway-genesis.json}

store:
cardano:
byron-genesis-file: classpath:networks/${NETWORK}/byron-genesis.json
shelley-genesis-file: classpath:networks/${NETWORK}/shelley-genesis.json
5 changes: 4 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[libraries]
yaci-store-starter="com.bloxbean.cardano:yaci-store-spring-boot-starter:0.0.12-beta4.1-SNAPSHOT"
yaci-store-starter="com.bloxbean.cardano:yaci-store-spring-boot-starter:0.0.12-beta4.4-SNAPSHOT"
yaci-store-utxo-starter="com.bloxbean.cardano:yaci-store-utxo-spring-boot-starter:0.0.12-beta4.4-SNAPSHOT"
yaci-store-account-starter="com.bloxbean.cardano:yaci-store-account-spring-boot-starter:0.0.12-beta4.4-SNAPSHOT"

cardano-client-lib="com.bloxbean.cardano:cardano-client-lib:0.5.0-beta3"
snakeyaml="org.yaml:snakeyaml:2.0"
guava="com.google.guava:guava:32.1.2-jre"
Expand Down

0 comments on commit 4be8d9f

Please sign in to comment.