pretty clawback
This commit is contained in:
parent
f7d5a4dd34
commit
2f8f98f9eb
1 changed files with 4 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ instance Pretty OperationBody where
|
||||||
pretty (OperationBody'BEGIN_SPONSORING_FUTURE_RESERVES (BeginSponsoringFutureReservesOp account)) = T.concat ["Sponsoring reserves for ", pretty account]
|
pretty (OperationBody'BEGIN_SPONSORING_FUTURE_RESERVES (BeginSponsoringFutureReservesOp account)) = T.concat ["Sponsoring reserves for ", pretty account]
|
||||||
pretty OperationBody'END_SPONSORING_FUTURE_RESERVES = "No longer sponsored reserves"
|
pretty OperationBody'END_SPONSORING_FUTURE_RESERVES = "No longer sponsored reserves"
|
||||||
-- pretty (OperationBody'REVOKE_SPONSORSHIP x) = pretty x
|
-- pretty (OperationBody'REVOKE_SPONSORSHIP x) = pretty x
|
||||||
-- pretty (OperationBody'CLAWBACK x) = pretty x
|
pretty (OperationBody'CLAWBACK x) = pretty x
|
||||||
-- pretty (OperationBody'CLAWBACK_CLAIMABLE_BALANCE x) = pretty x
|
-- pretty (OperationBody'CLAWBACK_CLAIMABLE_BALANCE x) = pretty x
|
||||||
pretty (OperationBody'SET_TRUST_LINE_FLAGS x) = pretty x
|
pretty (OperationBody'SET_TRUST_LINE_FLAGS x) = pretty x
|
||||||
-- pretty (OperationBody'LIQUIDITY_POOL_DEPOSIT x) = pretty x
|
-- pretty (OperationBody'LIQUIDITY_POOL_DEPOSIT x) = pretty x
|
||||||
|
|
@ -142,6 +142,9 @@ instance Pretty ManageDataOp where
|
||||||
pretty (ManageDataOp name Nothing) = T.concat ["Data ", utf8s name, " cleared"]
|
pretty (ManageDataOp name Nothing) = T.concat ["Data ", utf8s name, " cleared"]
|
||||||
pretty (ManageDataOp name (Just value)) = T.concat ["Data ", utf8s name, " = ", utf8s value]
|
pretty (ManageDataOp name (Just value)) = T.concat ["Data ", utf8s name, " = ", utf8s value]
|
||||||
|
|
||||||
|
instance Pretty ClawbackOp where
|
||||||
|
pretty (ClawbackOp ass acc amount) = T.concat ["Clawback ", prettyAmount amount, " ", pretty ass, " from ", pretty acc]
|
||||||
|
|
||||||
instance Pretty MuxedAccount where
|
instance Pretty MuxedAccount where
|
||||||
pretty (MuxedAccount'KEY_TYPE_ED25519 x) = prettyKey x
|
pretty (MuxedAccount'KEY_TYPE_ED25519 x) = prettyKey x
|
||||||
pretty (MuxedAccount'KEY_TYPE_MUXED_ED25519 id key) = T.concat [b32 key, " (", T.show id, ")"]
|
pretty (MuxedAccount'KEY_TYPE_MUXED_ED25519 id key) = T.concat [b32 key, " (", T.show id, ")"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue