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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classContractIDPreimageFromAddress's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionContractIDPreimage(ContractIDPreimageType discriminant, ContractIDPreimage.ContractIDPreimageFromAddress fromAddress, Asset fromAsset) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ContractIDPreimagedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ContractIDPreimagefromXdrBase64(String xdr) static ContractIDPreimagefromXdrByteArray(byte[] xdr) inthashCode()voidsetDiscriminant(ContractIDPreimageType discriminant) voidvoidsetFromAsset(Asset fromAsset) toString()default Stringdefault 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
-