Package org.stellar.sdk.xdr
Class CreateContractArgsV2
java.lang.Object
org.stellar.sdk.xdr.CreateContractArgsV2
- All Implemented Interfaces:
XdrElement
CreateContractArgsV2's original definition in the XDR file is:
struct CreateContractArgsV2
{
ContractIDPreimage contractIDPreimage;
ContractExecutable executable;
// Arguments of the contract's constructor.
SCVal constructorArgs<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionCreateContractArgsV2(ContractIDPreimage contractIDPreimage, ContractExecutable executable, SCVal[] constructorArgs) Creates a newCreateContractArgsV2instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static CreateContractArgsV2decode(XdrDataInputStream stream) static CreateContractArgsV2decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic CreateContractArgsV2static CreateContractArgsV2fromXdrBase64(String xdr) static CreateContractArgsV2fromXdrByteArray(byte[] xdr) SCVal[]Value of theconstructorArgsfield.Value of thecontractIDPreimagefield.Value of theexecutablefield.inthashCode()voidsetConstructorArgs(SCVal[] constructorArgs) Value of theconstructorArgsfield.voidsetContractIDPreimage(ContractIDPreimage contractIDPreimage) Value of thecontractIDPreimagefield.voidsetExecutable(ContractExecutable executable) Value of theexecutablefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
CreateContractArgsV2
public CreateContractArgsV2() -
CreateContractArgsV2
public CreateContractArgsV2(ContractIDPreimage contractIDPreimage, ContractExecutable executable, SCVal[] constructorArgs) Creates a newCreateContractArgsV2instance.- Parameters:
contractIDPreimage- thecontractIDPreimagefield valueexecutable- theexecutablefield valueconstructorArgs- theconstructorArgsfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static CreateContractArgsV2 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getContractIDPreimage
Value of thecontractIDPreimagefield.- Returns:
- the
contractIDPreimagefield value
-
getExecutable
Value of theexecutablefield.- Returns:
- the
executablefield value
-
getConstructorArgs
Value of theconstructorArgsfield.- Returns:
- the
constructorArgsfield value
-
setContractIDPreimage
Value of thecontractIDPreimagefield.- Parameters:
contractIDPreimage- thecontractIDPreimagefield value
-
setExecutable
Value of theexecutablefield.- Parameters:
executable- theexecutablefield value
-
setConstructorArgs
Value of theconstructorArgsfield.- Parameters:
constructorArgs- theconstructorArgsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-