Package zephyr.wallet.model
Class ZephyrTxWallet
java.lang.Object
zephyr.daemon.model.ZephyrTx
zephyr.wallet.model.ZephyrTxWallet
- Direct Known Subclasses:
ZephyrTxQuery
Models a Zephyr transaction with wallet extensions.
-
Field Summary
Fields inherited from class zephyr.daemon.model.ZephyrTx
DEFAULT_PAYMENT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanReturns a copy of this model's inputs as a list of type ZephyrOutputWallet.getInputsWallet(ZephyrOutputQuery query) getNote()Returns a copy of this model's outputs as a list of type ZephyrOutputWallet.getTransfers(ZephyrTransferQuery query) getTxSet()inthashCode()isLocked()merge(ZephyrTxWallet tx) Updates this transaction by merging the latest information from the given transaction.setBlock(ZephyrBlock block) setChangeAddress(String changeAddress) setChangeAmount(BigInteger changeAmount) setExtra(int[] extra) setExtraHex(String extraHex) setFee(BigInteger fee) setFullHex(String hex) setIncomingTransfers(List<ZephyrIncomingTransfer> incomingTransfers) setInputs(List<ZephyrOutput> inputs) Set the tx's inputs (ZephyrOutputWallet) which contain information relative to a wallet.setInputSum(BigInteger inputSum) setInputsWallet(List<ZephyrOutputWallet> inputs) Set inputs with compile-time binding to ZephyrOutputWallet for deserialization.setInTxPool(Boolean inTxPool) setIsConfirmed(Boolean isConfirmed) setIsDoubleSpendSeen(Boolean isDoubleSpend) setIsFailed(Boolean isFailed) setIsIncoming(Boolean isIncoming) setIsKeptByBlock(Boolean isKeptByBlock) setIsLocked(Boolean isLocked) setIsMinerTx(Boolean isMinerTx) setIsOutgoing(Boolean isOutgoing) setIsRelayed(Boolean isRelayed) setLastFailedHash(String lastFailedId) setLastFailedHeight(Long lastFailedHeight) setLastRelayedTimestamp(Long lastRelayedTimestamp) setMaxUsedBlockHash(String maxUsedBlockId) setMaxUsedBlockHeight(Long maxUsedBlockHeight) setMetadata(String metadata) setNumConfirmations(Long numConfirmations) setNumDummyOutputs(Integer numDummyOutputs) setOutgoingTransfer(ZephyrOutgoingTransfer outgoingTransfer) setOutputIndices(List<Long> outputIndices) setOutputs(List<ZephyrOutput> outputs) Set the tx's outputs (ZephyrOutputWallet) which contain information relative to a wallet.setOutputSum(BigInteger outputSum) setOutputsWallet(List<ZephyrOutputWallet> outputs) Set outputs with compile-time binding to ZephyrOutputWallet for deserialization.setPaymentId(String paymentId) setPrunableHash(String prunableHash) setPrunableHex(String prunableHex) setPrunedHex(String prunedHex) setRctSignatures(Object rctSignatures) setRctSigPrunable(Object rctSigPrunable) setReceivedTimestamp(Long receivedTimestamp) setRingSize(Integer ringSize) setSignatures(List<String> signatures) setTxSet(ZephyrTxSet txSet) setUnlockHeight(Long unlockHeight) setVersion(Integer version) toString()toString(int indent) toString(int indent, boolean oneLine) Methods inherited from class zephyr.daemon.model.ZephyrTx
getBlock, getExtra, getFee, getFullHex, getHash, getHeight, getInputs, getKey, getLastFailedHash, getLastFailedHeight, getLastRelayedTimestamp, getMaxUsedBlockHash, getMaxUsedBlockHeight, getMetadata, getNumConfirmations, getOutputIndices, getOutputs, getPaymentId, getPrunableHash, getPrunableHex, getPrunedHex, getRctSignatures, getRctSigPrunable, getReceivedTimestamp, getRelay, getRingSize, getSignatures, getSize, getUnlockHeight, getVersion, getWeight, inTxPool, isConfirmed, isDoubleSpendSeen, isFailed, isKeptByBlock, isMinerTx, isRelayed
-
Constructor Details
-
ZephyrTxWallet
public ZephyrTxWallet() -
ZephyrTxWallet
-
-
Method Details
-
copy
-
getTxSet
-
setTxSet
-
isIncoming
-
setIsIncoming
-
isOutgoing
-
setIsOutgoing
-
getIncomingAmount
-
getOutgoingAmount
-
getTransfers
-
getTransfers
-
filterTransfers
-
getIncomingTransfers
-
setIncomingTransfers
-
getOutgoingTransfer
-
setOutgoingTransfer
-
setInputs
Set the tx's inputs (ZephyrOutputWallet) which contain information relative to a wallet. Callers must cast to extended type (ZephyrOutput) because Java paramaterized types do not recognize inheritance. -
setInputsWallet
Set inputs with compile-time binding to ZephyrOutputWallet for deserialization.- Parameters:
inputs- are the tx's inputs- Returns:
- ZephyrTxWallet is a reference to this tx for chaining
-
getInputsWallet
Returns a copy of this model's inputs as a list of type ZephyrOutputWallet.- Returns:
- inputs of type ZephyrOutputWallet
-
getInputsWallet
-
setOutputs
Set the tx's outputs (ZephyrOutputWallet) which contain information relative to a wallet. Callers must cast to extended type (ZephyrOutput) because Java paramaterized types do not recognize inheritance.- Overrides:
setOutputsin classZephyrTx- Parameters:
outputs- are ZephyrOutputWallets to set for the wallet tx- Returns:
- ZephyrTxWallet is a reference to this tx for chaining
-
setOutputsWallet
Set outputs with compile-time binding to ZephyrOutputWallet for deserialization.- Parameters:
outputs- are the tx's outputs- Returns:
- ZephyrTxWallet is a reference to this tx for chaining
-
getOutputsWallet
Returns a copy of this model's outputs as a list of type ZephyrOutputWallet.- Returns:
- outputs of type ZephyrOutputWallet
-
getOutputsWallet
-
filterOutputsWallet
-
getNote
-
setNote
-
isLocked
-
setIsLocked
-
getInputSum
-
setInputSum
-
getOutputSum
-
setOutputSum
-
getChangeAddress
-
setChangeAddress
-
getChangeAmount
-
setChangeAmount
-
getNumDummyOutputs
-
setNumDummyOutputs
-
getExtraHex
-
setExtraHex
-
merge
-
merge
Updates this transaction by merging the latest information from the given transaction. Merging can modify or build references to the transaction given so it should not be re-used or it should be copied before calling this method.- Parameters:
tx- is the transaction to merge into this transaction- Returns:
- this tx for chaining
-
toString
-
toString
-
toString
-
hashCode
public int hashCode() -
equals
-
setBlock
-
setHash
-
setVersion
- Overrides:
setVersionin classZephyrTx
-
setIsMinerTx
- Overrides:
setIsMinerTxin classZephyrTx
-
setPaymentId
- Overrides:
setPaymentIdin classZephyrTx
-
setFee
-
setRingSize
- Overrides:
setRingSizein classZephyrTx
-
setRelay
-
setIsRelayed
- Overrides:
setIsRelayedin classZephyrTx
-
setIsConfirmed
- Overrides:
setIsConfirmedin classZephyrTx
-
setInTxPool
- Overrides:
setInTxPoolin classZephyrTx
-
setNumConfirmations
- Overrides:
setNumConfirmationsin classZephyrTx
-
setUnlockHeight
- Overrides:
setUnlockHeightin classZephyrTx
-
setLastRelayedTimestamp
- Overrides:
setLastRelayedTimestampin classZephyrTx
-
setReceivedTimestamp
- Overrides:
setReceivedTimestampin classZephyrTx
-
setIsDoubleSpendSeen
- Overrides:
setIsDoubleSpendSeenin classZephyrTx
-
setKey
-
setFullHex
- Overrides:
setFullHexin classZephyrTx
-
setPrunedHex
- Overrides:
setPrunedHexin classZephyrTx
-
setPrunableHex
- Overrides:
setPrunableHexin classZephyrTx
-
setPrunableHash
- Overrides:
setPrunableHashin classZephyrTx
-
setSize
-
setWeight
-
setOutputIndices
- Overrides:
setOutputIndicesin classZephyrTx
-
setMetadata
- Overrides:
setMetadatain classZephyrTx
-
setExtra
-
setRctSignatures
- Overrides:
setRctSignaturesin classZephyrTx
-
setRctSigPrunable
- Overrides:
setRctSigPrunablein classZephyrTx
-
setIsKeptByBlock
- Overrides:
setIsKeptByBlockin classZephyrTx
-
setIsFailed
- Overrides:
setIsFailedin classZephyrTx
-
setLastFailedHeight
- Overrides:
setLastFailedHeightin classZephyrTx
-
setLastFailedHash
- Overrides:
setLastFailedHashin classZephyrTx
-
setMaxUsedBlockHeight
- Overrides:
setMaxUsedBlockHeightin classZephyrTx
-
setMaxUsedBlockHash
- Overrides:
setMaxUsedBlockHashin classZephyrTx
-
setSignatures
- Overrides:
setSignaturesin classZephyrTx
-