Constructor and Description |
---|
LedgerTracer(AssetScanner scanner) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Asset> |
get(java.lang.String assetId)
Retrieves the latest
Asset entry (an asset entry with the largest age) from the ledger
with the specified asset ID. |
javax.json.JsonObject |
getOutput(java.lang.String assetId) |
java.util.Map<java.lang.String,java.lang.String> |
getOutputs() |
void |
put(java.lang.String assetId,
javax.json.JsonObject data)
Creates/Appends an
Asset entry to the ledger. |
java.util.List<Asset> |
scan(AssetFilter filter)
Retrieves a list of
Asset entries from the ledger with the specified AssetFilter . |
void |
setInput(javax.json.JsonObject input) |
void |
setInput(java.lang.String assetId,
com.scalar.dl.ledger.statemachine.InternalAsset asset) |
public LedgerTracer(AssetScanner scanner)
public void setInput(javax.json.JsonObject input)
public void setInput(java.lang.String assetId, com.scalar.dl.ledger.statemachine.InternalAsset asset)
public javax.json.JsonObject getOutput(java.lang.String assetId)
public java.util.Map<java.lang.String,java.lang.String> getOutputs()
public java.util.Optional<Asset> get(java.lang.String assetId)
Ledger
Asset
entry (an asset entry with the largest age) from the ledger
with the specified asset ID.public java.util.List<Asset> scan(AssetFilter filter)
Ledger
Asset
entries from the ledger with the specified AssetFilter
.