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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classHashIDPreimageContractID's original definition in the XDR file is:static classHashIDPreimageOperationID's original definition in the XDR file is:static classHashIDPreimageRevokeID's original definition in the XDR file is:static classHashIDPreimageSorobanAuthorization's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionHashIDPreimage(EnvelopeType discriminant, HashIDPreimage.HashIDPreimageOperationID operationID, HashIDPreimage.HashIDPreimageRevokeID revokeID, HashIDPreimage.HashIDPreimageContractID contractID, HashIDPreimage.HashIDPreimageSorobanAuthorization sorobanAuthorization) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static HashIDPreimagedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic HashIDPreimagefromXdrBase64(String xdr) static HashIDPreimagefromXdrByteArray(byte[] xdr) inthashCode()voidsetContractID(HashIDPreimage.HashIDPreimageContractID contractID) voidsetDiscriminant(EnvelopeType discriminant) voidsetOperationID(HashIDPreimage.HashIDPreimageOperationID operationID) voidvoidsetSorobanAuthorization(HashIDPreimage.HashIDPreimageSorobanAuthorization sorobanAuthorization) toString()default Stringdefault 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
-