Package org.stellar.sdk.xdr
Class ContractIDPreimage
java.lang.Object
org.stellar.sdk.xdr.ContractIDPreimage
ContractIDPreimage's original definition in the XDR file is:
union ContractIDPreimage switch (ContractIDPreimageType type) { case CONTRACT_ID_PREIMAGE_FROM_ADDRESS: struct { SCAddress address; uint256 salt; } fromAddress; case CONTRACT_ID_PREIMAGE_FROM_ASSET: Asset fromAsset; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
ContractIDPreimageFromAddress's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionContractIDPreimage
(ContractIDPreimageType discriminant, ContractIDPreimage.ContractIDPreimageFromAddress fromAddress, Asset fromAsset) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ContractIDPreimage
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ContractIDPreimage
fromXdrBase64
(String xdr) static ContractIDPreimage
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(ContractIDPreimageType discriminant) void
void
setFromAsset
(Asset fromAsset) toString()
default String
default byte[]
-
Constructor Details
-
ContractIDPreimage
public ContractIDPreimage() -
ContractIDPreimage
public ContractIDPreimage(ContractIDPreimageType discriminant, ContractIDPreimage.ContractIDPreimageFromAddress fromAddress, Asset fromAsset)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getFromAddress
-
getFromAsset
-
setDiscriminant
-
setFromAddress
-
setFromAsset
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-