Package zephyr.wallet.model
Class ZephyrOutputWallet
java.lang.Object
zephyr.daemon.model.ZephyrOutput
zephyr.wallet.model.ZephyrOutputWallet
- Direct Known Subclasses:
ZephyrOutputQuery
Models a Zephyr output with wallet extensions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanReturns the asset of this output.getTx()inthashCode()isFrozen()Indicates if this output has been deemed 'malicious' and will therefore not be spent by the wallet.isLocked()Convenience method to indicate if this output's tx is locked.isSpent()merge(ZephyrOutput output) merge(ZephyrOutputWallet output) setAccountIndex(Integer accountIndex) setAmount(BigInteger amount) setAssetType(String assetType) Sets the asset of this output.setIsFrozen(Boolean isFrozen) setIsSpent(Boolean isSpent) setKeyImage(ZephyrKeyImage keyImage) setRingOutputIndices(List<Long> ringOutputIndices) setStealthPublicKey(String stealthPublicKey) setSubaddressIndex(Integer subaddressIndex) setTx(ZephyrTxWallet tx) toString(int indent) Methods inherited from class zephyr.daemon.model.ZephyrOutput
getAmount, getIndex, getKeyImage, getRingOutputIndices, getStealthPublicKey, toString
-
Constructor Details
-
ZephyrOutputWallet
public ZephyrOutputWallet() -
ZephyrOutputWallet
Deep copy constructor.- Parameters:
output- is the output to initialize from
-
-
Method Details
-
copy
- Overrides:
copyin classZephyrOutput
-
getTx
- Overrides:
getTxin classZephyrOutput
-
setTx
- Overrides:
setTxin classZephyrOutput
-
setTx
-
getAccountIndex
-
setAccountIndex
-
getSubaddressIndex
-
setSubaddressIndex
-
isSpent
-
setIsSpent
-
isFrozen
Indicates if this output has been deemed 'malicious' and will therefore not be spent by the wallet.- Returns:
- Boolean is whether or not this output is frozen
-
setIsFrozen
-
isLocked
Convenience method to indicate if this output's tx is locked.- Returns:
- a boolean indicating the locked state of this output's tx
-
merge
- Overrides:
mergein classZephyrOutput
-
merge
-
toString
- Overrides:
toStringin classZephyrOutput
-
hashCode
public int hashCode()- Overrides:
hashCodein classZephyrOutput
-
equals
- Overrides:
equalsin classZephyrOutput
-
setKeyImage
- Overrides:
setKeyImagein classZephyrOutput
-
setAmount
- Overrides:
setAmountin classZephyrOutput
-
setIndex
- Overrides:
setIndexin classZephyrOutput
-
setRingOutputIndices
- Overrides:
setRingOutputIndicesin classZephyrOutput
-
setStealthPublicKey
- Overrides:
setStealthPublicKeyin classZephyrOutput
-
getAssetType
Returns the asset of this output.Zephyr:
nullfor the outputs thatgetOutputs()returns in the full wallet (ZephyrWalletFull): the core keeps an output's asset but does not serialize it. ThroughZephyrWalletRpcit isnullas well for now (the RPC client does not read the asset yet). The wallet'sgetOutputAssetType(output)takes the asset from the output's transaction. The outputs of the listener callbacks carry the asset, except for an output seen in the pool (""). See the user guide,docs/guide/08-known-limitations.md, section "getOutputs() reports no asset".- Overrides:
getAssetTypein classZephyrOutput- Returns:
- the asset name (see
ZephyrAssets), null if not known
-
setAssetType
Description copied from class:ZephyrOutputSets the asset of this output.- Overrides:
setAssetTypein classZephyrOutput- Parameters:
assetType- is the asset name- Returns:
- this output for chaining
-