RPC Server #103

Merged
pitmutt merged 129 commits from rav001 into milestone3 2024-11-21 15:30:22 +00:00
Showing only changes of commit e02551c9ff - Show all commits

View file

@ -135,6 +135,8 @@ data Name
| PrivacyFullField | PrivacyFullField
| ShieldField | ShieldField
| DeshieldField | DeshieldField
| TotalTranspField
| TotalShieldedField
deriving (Eq, Show, Ord) deriving (Eq, Show, Ord)
data DialogInput = DialogInput data DialogInput = DialogInput
@ -160,7 +162,9 @@ data AdrBookEntry = AdrBookEntry
makeLenses ''AdrBookEntry makeLenses ''AdrBookEntry
data ShDshEntry = ShDshEntry data ShDshEntry = ShDshEntry
{ _shieldOp :: !ShieldDeshieldOp { _totalTransparent :: !Float
, _totalShielded :: !Float
, _shieldOp :: !ShieldDeshieldOp
, _shAmt :: !Float , _shAmt :: !Float
} deriving (Show) } deriving (Show)
@ -668,7 +672,11 @@ mkSendForm bal =
mkshieldDeshieldForm :: Integer -> ShDshEntry -> Form ShDshEntry e Name mkshieldDeshieldForm :: Integer -> ShDshEntry -> Form ShDshEntry e Name
mkshieldDeshieldForm bal = mkshieldDeshieldForm bal =
newForm newForm
[ label "Select :" @@= [ label "Total Transp. : " @@=
editShowableFieldWithValidate totalTransparent TotalTranspField (isAmountValid bal)
, label "Total Shielded : " @@=
editShowableFieldWithValidate totalShielded TotalShieldedField (isAmountValid bal)
, label "Select :" @@=
radioField radioField
shieldOp shieldOp
[ (Shield, ShieldField, "Shield") [ (Shield, ShieldField, "Shield")
@ -1537,7 +1545,7 @@ runZenithTUI config = do
"" ""
Nothing Nothing
uBal uBal
(mkshieldDeshieldForm 0 (ShDshEntry Shield 0.0 )) (mkshieldDeshieldForm 0 (ShDshEntry 0 0 Shield 0.0 ))
Left _e -> do Left _e -> do
print $ print $
"No Zebra node available on port " <> "No Zebra node available on port " <>