public class PreconditionsV2 extends java.lang.Object implements XdrElement
struct PreconditionsV2 { TimeBounds* timeBounds; // Transaction only valid for ledger numbers n such that // minLedger <= n < maxLedger (if maxLedger == 0, then // only minLedger is checked) LedgerBounds* ledgerBounds; // If NULL, only valid when sourceAccount's sequence number // is seqNum - 1. Otherwise, valid when sourceAccount's // sequence number n satisfies minSeqNum <= n < tx.seqNum. // Note that after execution the account's sequence number // is always raised to tx.seqNum, and a transaction is not // valid if tx.seqNum is too high to ensure replay protection. SequenceNumber* minSeqNum; // For the transaction to be valid, the current ledger time must // be at least minSeqAge greater than sourceAccount's seqTime. Duration minSeqAge; // For the transaction to be valid, the current ledger number // must be at least minSeqLedgerGap greater than sourceAccount's // seqLedger. uint32 minSeqLedgerGap; // For the transaction to be valid, there must be a signature // corresponding to every Signer in this array, even if the // signature is not otherwise required by the sourceAccount or // operations. SignerKey extraSigners<2>; };
Modifier and Type | Class and Description |
---|---|
static class |
PreconditionsV2.PreconditionsV2Builder |
Constructor and Description |
---|
PreconditionsV2() |
PreconditionsV2(TimeBounds timeBounds,
LedgerBounds ledgerBounds,
SequenceNumber minSeqNum,
Duration minSeqAge,
Uint32 minSeqLedgerGap,
SignerKey[] extraSigners) |
Modifier and Type | Method and Description |
---|---|
static PreconditionsV2.PreconditionsV2Builder |
builder() |
static PreconditionsV2 |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static PreconditionsV2 |
fromXdrBase64(java.lang.String xdr) |
static PreconditionsV2 |
fromXdrByteArray(byte[] xdr) |
SignerKey[] |
getExtraSigners() |
LedgerBounds |
getLedgerBounds() |
Duration |
getMinSeqAge() |
Uint32 |
getMinSeqLedgerGap() |
SequenceNumber |
getMinSeqNum() |
TimeBounds |
getTimeBounds() |
int |
hashCode() |
void |
setExtraSigners(SignerKey[] extraSigners) |
void |
setLedgerBounds(LedgerBounds ledgerBounds) |
void |
setMinSeqAge(Duration minSeqAge) |
void |
setMinSeqLedgerGap(Uint32 minSeqLedgerGap) |
void |
setMinSeqNum(SequenceNumber minSeqNum) |
void |
setTimeBounds(TimeBounds timeBounds) |
PreconditionsV2.PreconditionsV2Builder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public PreconditionsV2()
public PreconditionsV2(TimeBounds timeBounds, LedgerBounds ledgerBounds, SequenceNumber minSeqNum, Duration minSeqAge, Uint32 minSeqLedgerGap, SignerKey[] extraSigners)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static PreconditionsV2 decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static PreconditionsV2 fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static PreconditionsV2 fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static PreconditionsV2.PreconditionsV2Builder builder()
public PreconditionsV2.PreconditionsV2Builder toBuilder()
public TimeBounds getTimeBounds()
public LedgerBounds getLedgerBounds()
public SequenceNumber getMinSeqNum()
public Duration getMinSeqAge()
public Uint32 getMinSeqLedgerGap()
public SignerKey[] getExtraSigners()
public void setTimeBounds(TimeBounds timeBounds)
public void setLedgerBounds(LedgerBounds ledgerBounds)
public void setMinSeqNum(SequenceNumber minSeqNum)
public void setMinSeqAge(Duration minSeqAge)
public void setMinSeqLedgerGap(Uint32 minSeqLedgerGap)
public void setExtraSigners(SignerKey[] extraSigners)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object