Tokencore 2.0.1, monolith Docker/CI, external signing, DB token catalog#29
Merged
GalaxySciTech merged 1 commit intomasterfrom May 3, 2026
Merged
Conversation
…ken catalog - Upgrade GalaxySciTech tokencore to 2.0.1; fix broken SysConfigKey enum - Add root Dockerfile, compose uses ./Dockerfile; align GitHub/GitLab CI to bootJar - application.yml: datasource, JPA batch hints, actuator/prometheus, wallet.* props - HsmXService: EOS/DOGE/FIL import paths; configurable ETH/BTC sign chain ids - ChainSigningService + wallet_chain_config.signing_backend for EXTERNAL HTTP signer - RpcClient: configurable ETH gas fallback URL; bitcoinStyleRpc for UTXO getUtxos - Remove TokenKey enum; TokenCatalogService reads token table; rename webapi package to api - Migration SQL for signing_backend column; remove duplicate top-level wallet-webapi/ Co-authored-by: Galaxy <GalaxySciTech@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change completes the agreed plan for a single-module wallet service under
src/, tokencore 2.0.1, operational Docker/CI alignment, and clearer extension points for multi-chain signing and configuration.What changed
com.github.galaxyscitech:tokencore2.0.0 → 2.0.1 inbuild.gradle.Dockerfile(multi-stagebootJar),docker-compose.ymluses./Dockerfile, GitHub Actions and GitLab CI build./gradlew bootJarand artifactbuild/libs/*.jar. Removed the duplicate top-levelwallet-webapi/tree.src/main/resources/application.ymlnow wires MySQL (DB_URL/DB_USERNAME/DB_PASSWORD), JPA (ddl-auto: none, batch hints), Caffeine cache, keystore env alignment, Actuator + Prometheus (spring-boot-starter-actuator,micrometer-registry-prometheus).ETH_GAS_FALLBACK_URL(optional HTTP JSON fallback when the node cannot serveeth_gasPrice).ChainSigningServiceroutes BTC/ETH USDT signing through tokencore or an optional HTTP external signer whenwallet_chain_config.signing_backendisEXTERNAL. New column documented indb/wallet_db.sqland optional migrationdb/002_wallet_chain_signing_backend.sql.WalletPropertiesbindswallet.signing,wallet.tokencore(ETH_SIGN_CHAIN_ID,BTC_SIGN_CHAIN_ID), andwallet.external-signer.HsmXServiceImplsupports EOS, DOGECOIN, FILECOIN import paths from tokencore 2.0.1; Bitcoin/ETH/USDT signing uses configurable chain id strings instead of hard-coded mainnet constants.RpcClient.getGasPriceno longer calls the defunct ethgasstation endpoint by default;RpcClient.bitcoinStyleRpccentralizes UTXO RPC selection;WalletXServiceImpl.getUtxosuses it.TokenKey;TokenCatalogServicereads distinct chains/symbols from thetokentable;BlockChainController.get_support_tokenuses it;CacheServiceImplno longer auto-inserts rows from the removed enum.com.wallet.webapi→com.wallet.api(directorysrc/main/kotlin/com/wallet/api/)..env.example/build.sh/start.shupdated for the monolith layout.Verification
./gradlew testand./gradlew bootJarsucceed locally.dockerCLI is unavailable; the Dockerfile follows the same Gradle stages as CI.Follow-ups (optional)
db/002_wallet_chain_signing_backend.sqlon existing databases that were created before this PR.{baseUrl}/v1/signif teams want EXTERNAL signing without writing their own adapter.