Skip to content

Commit

Permalink
Merge pull request #80 from geniusyield/79-fix-config-json-parser
Browse files Browse the repository at this point in the history
fix(#79): update json/yaml config parser, `acc_ix` & `addr_ix` to `accIx` & `addrIx` resp.
  • Loading branch information
4TT1L4 authored Aug 6, 2024
2 parents 9b1bae0 + 0afc0b6 commit 341c18a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions geniusyield-server-lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion geniusyield-server-lib/geniusyield-server-lib.cabal
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion geniusyield-server-lib/src/GeniusYield/Server/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 341c18a

Please sign in to comment.