Package org.stellar.sdk.xdr
Class HashIDPreimage
java.lang.Object
org.stellar.sdk.xdr.HashIDPreimage
HashIDPreimage's original definition in the XDR file is:
union HashIDPreimage switch (EnvelopeType type) { case ENVELOPE_TYPE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; } operationID; case ENVELOPE_TYPE_POOL_REVOKE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; PoolID liquidityPoolID; Asset asset; } revokeID; case ENVELOPE_TYPE_CONTRACT_ID: struct { Hash networkID; ContractIDPreimage contractIDPreimage; } contractID; case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION: struct { Hash networkID; int64 nonce; uint32 signatureExpirationLedger; SorobanAuthorizedInvocation invocation; } sorobanAuthorization; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
HashIDPreimageContractID's original definition in the XDR file is:static class
HashIDPreimageOperationID's original definition in the XDR file is:static class
HashIDPreimageRevokeID's original definition in the XDR file is:static class
HashIDPreimageSorobanAuthorization's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionHashIDPreimage
(EnvelopeType discriminant, HashIDPreimage.HashIDPreimageOperationID operationID, HashIDPreimage.HashIDPreimageRevokeID revokeID, HashIDPreimage.HashIDPreimageContractID contractID, HashIDPreimage.HashIDPreimageSorobanAuthorization sorobanAuthorization) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static HashIDPreimage
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static HashIDPreimage
fromXdrBase64
(String xdr) static HashIDPreimage
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setContractID
(HashIDPreimage.HashIDPreimageContractID contractID) void
setDiscriminant
(EnvelopeType discriminant) void
setOperationID
(HashIDPreimage.HashIDPreimageOperationID operationID) void
void
setSorobanAuthorization
(HashIDPreimage.HashIDPreimageSorobanAuthorization sorobanAuthorization) toString()
default String
default byte[]
-
Constructor Details
-
HashIDPreimage
public HashIDPreimage() -
HashIDPreimage
public HashIDPreimage(EnvelopeType discriminant, HashIDPreimage.HashIDPreimageOperationID operationID, HashIDPreimage.HashIDPreimageRevokeID revokeID, HashIDPreimage.HashIDPreimageContractID contractID, HashIDPreimage.HashIDPreimageSorobanAuthorization sorobanAuthorization)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getOperationID
-
getRevokeID
-
getContractID
-
getSorobanAuthorization
-
setDiscriminant
-
setOperationID
-
setRevokeID
-
setContractID
-
setSorobanAuthorization
public void setSorobanAuthorization(HashIDPreimage.HashIDPreimageSorobanAuthorization sorobanAuthorization) -
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-