-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: RA-43 Refactoring and testing /block endpoint [no final asserts] (
#88) * feat: RA-43 added h2 config and maven profile, implement BlockApi * feat: RA-43 refactored findBlock method, added to pom assertj and modelmapper * feat: RA-43 pull main * feat: RA-43 add exception and test * feat: RA-43 rename and reformat * feat: RA-43 add tests * feat: RA-43 add tests * feat: RA-43 extract bean to h2 configuration * feat: RA-43 merge with master * feat: RA-43 reformat * feat: RA-43 pull main with merge errors in BlockToBlockResponse.java OperationDataMapper.java PoolRegistration.java * feat: RA-43 fix merger with main * feat: RA-43 h2 run OK * feat: RA-43 rm @slf4j from configuration bean
- Loading branch information
Showing
63 changed files
with
2,634 additions
and
1,255 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,45 @@ | ||
#Use envfile plugin for IDEA | ||
#https://plugins.jetbrains.com/plugin/7861-envfile | ||
|
||
API_SPRING_PROFILES_ACTIVE=devh2 | ||
|
||
NETWORK=devkit # devkit, mainnet, testnet, preprod | ||
PROTOCOL_MAGIC=42 | ||
|
||
#common env | ||
DB_ADMIN_USER_NAME=rosetta_db_admin | ||
DB_ADMIN_USER_SECRET=weakpwd#123_d | ||
|
||
DB_IMAGE_NAME=h2 | ||
DB_IMAGE_TAG=14.11-bullseye | ||
DB_NAME=rosetta-java-preprod | ||
DB_HOST=db # Service name in docker-compose or local db | ||
DB_PORT=5432 | ||
DB_SCHEMA=${NETWORK} | ||
MAXIMUM_POOL_SIZE=80 | ||
JDBC_BATCH_SIZE=1000 | ||
SCHEMA=${NETWORK} | ||
CARDANO_NODE_HOST=localhost # Service name in docker-compose or local cardano node | ||
CARDANO_NODE_PORT=3001 # Uncomment if you are using local cardano node | ||
CARDANO_NODE_VERSION=8.1.2 | ||
LOG=INFO | ||
|
||
#api env | ||
API_SPRING_PROFILES_ACTIVE_API=dev | ||
API_EXPOSED_PORT=8081 | ||
API_BIND_PORT=8081 | ||
TRANSACTION_TTL=3000 | ||
|
||
DB_CONNECTION_PARAMS_PROVIDER_TYPE=ENVIRONMENT | ||
DB_DRIVER_CLASS_NAME=org.h2.Driver | ||
|
||
ROSETTA_VERSION=1.4.13 | ||
TOPOLOGY_FILEPATH=config/${NETWORK}/topology.json | ||
GENESIS_SHELLEY_PATH=config/${NETWORK}/shelley-genesis.json | ||
GENESIS_BYRON_PATH=config/${NETWORK}/byron-genesis.json | ||
|
||
PRINT_EXCEPTION=true | ||
|
||
#api env | ||
API_SPRING_PROFILES_ACTIVE_YACI_INDEXER=postgres # database profiles: h2, postgres | ||
INDEXER_NODE_PORT=3001 |
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
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
55 changes: 0 additions & 55 deletions
55
api/src/main/java/org/cardanofoundation/rosetta/api/block/controller/BlockApiDelegate.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.