| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Wallet.Graph
Description
Support for visualisation of a blockchain as a graph.
Documentation
txnFlows :: [PubKey] -> Blockchain -> [FlowLink] Source #
Compute the FlowLinks for a Blockchain given a set of known PubKeys.
Instances
| Show FlowGraph Source # | |
| Generic FlowGraph Source # | |
| ToJSON FlowGraph Source # | |
| type Rep FlowGraph Source # | |
Defined in Wallet.Graph type Rep FlowGraph = D1 ('MetaData "FlowGraph" "Wallet.Graph" "plutus-contract-1.1.0.0-KZTRXOViW1GCXNPMdYqx30" 'False) (C1 ('MetaCons "FlowGraph" 'PrefixI 'True) (S1 ('MetaSel ('Just "flowGraphLinks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FlowLink]) :*: S1 ('MetaSel ('Just "flowGraphNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxRef]))) | |
A link in the flow graph.
Instances
| Show FlowLink Source # | |
| Generic FlowLink Source # | |
| ToJSON FlowLink Source # | |
| type Rep FlowLink Source # | |
Defined in Wallet.Graph type Rep FlowLink = D1 ('MetaData "FlowLink" "Wallet.Graph" "plutus-contract-1.1.0.0-KZTRXOViW1GCXNPMdYqx30" 'False) (C1 ('MetaCons "FlowLink" 'PrefixI 'True) ((S1 ('MetaSel ('Just "flowLinkSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxRef) :*: (S1 ('MetaSel ('Just "flowLinkTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxRef) :*: S1 ('MetaSel ('Just "flowLinkValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer))) :*: (S1 ('MetaSel ('Just "flowLinkOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UtxOwner) :*: (S1 ('MetaSel ('Just "flowLinkSourceLoc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UtxoLocation) :*: S1 ('MetaSel ('Just "flowLinkTargetLoc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UtxoLocation)))))) | |
A wrapper around the first 8 digits of a TxId.
The owner of an unspent transaction output.
Instances
| Eq UtxOwner Source # | |
| Ord UtxOwner Source # | |
Defined in Wallet.Graph | |
| Show UtxOwner Source # | |
| Generic UtxOwner Source # | |
| ToJSON UtxOwner Source # | |
| type Rep UtxOwner Source # | |
Defined in Wallet.Graph type Rep UtxOwner = D1 ('MetaData "UtxOwner" "Wallet.Graph" "plutus-contract-1.1.0.0-KZTRXOViW1GCXNPMdYqx30" 'False) (C1 ('MetaCons "PubKeyOwner" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKey)) :+: (C1 ('MetaCons "ScriptOwner" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OtherOwner" 'PrefixI 'False) (U1 :: Type -> Type))) | |
data UtxoLocation Source #
The location of a transaction in a blockchain specified by two indices: the index of the containing block in the chain, and the index of the transaction within the block.