From aeaf41557da0f6ab880d80767341abb32e1c024e Mon Sep 17 00:00:00 2001 From: sourabhxyz Date: Mon, 5 Aug 2024 13:07:55 +0530 Subject: [PATCH 1/2] fix(79): update json/yaml config parser, `acc_ix` & `addr_ix` to `accIx` & `addrIx` respectively Clsoes #79. --- geniusyield-server-lib/src/GeniusYield/Server/Config.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geniusyield-server-lib/src/GeniusYield/Server/Config.hs b/geniusyield-server-lib/src/GeniusYield/Server/Config.hs index 6b7e049..e7b693c 100644 --- a/geniusyield-server-lib/src/GeniusYield/Server/Config.hs +++ b/geniusyield-server-lib/src/GeniusYield/Server/Config.hs @@ -46,7 +46,7 @@ data MnemonicWalletDetails = MnemonicWalletDetails addrIx ∷ !(Maybe Word32) } deriving stock (Generic) - deriving (FromJSON, ToJSON) via CustomJSON '[FieldLabelModifier '[CamelToSnake]] MnemonicWalletDetails + deriving anyclass (FromJSON, ToJSON) data ServerConfig = ServerConfig { scCoreProvider ∷ !GYCoreProviderInfo, From 0afc0b6fda474f4c3f97aadd56b9615cd0c1470b Mon Sep 17 00:00:00 2001 From: sourabhxyz Date: Mon, 5 Aug 2024 13:13:38 +0530 Subject: [PATCH 2/2] chore(#79): update changelog and versioning for #79 fix Related to #79. --- geniusyield-server-lib/CHANGELOG.md | 4 ++++ geniusyield-server-lib/geniusyield-server-lib.cabal | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/geniusyield-server-lib/CHANGELOG.md b/geniusyield-server-lib/CHANGELOG.md index b901e8f..de6cca8 100644 --- a/geniusyield-server-lib/CHANGELOG.md +++ b/geniusyield-server-lib/CHANGELOG.md @@ -1,5 +1,9 @@ # Revision history for geniusyield-server-lib +## 0.10.0 -- 2024-08-05 + +* Fix the JSON/YAML configuration parser to require `addrIx`, `accIx` instead of `addr_ix`, `acc_ix` respectively. + ## 0.9.0 -- 2024-07-16 * Updates to latest commit of Atlas. Note that this update now requires GHC version to be 9.6.5. diff --git a/geniusyield-server-lib/geniusyield-server-lib.cabal b/geniusyield-server-lib/geniusyield-server-lib.cabal index a522595..77cd56c 100644 --- a/geniusyield-server-lib/geniusyield-server-lib.cabal +++ b/geniusyield-server-lib/geniusyield-server-lib.cabal @@ -1,6 +1,6 @@ cabal-version: 3.6 name: geniusyield-server-lib -version: 0.9.0 +version: 0.10.0 synopsis: GeniusYield server library description: Library for GeniusYield server. license: Apache-2.0