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 -
Constructor Summary
ConstructorsConstructorDescriptionCreateContractArgsV2
(ContractIDPreimage contractIDPreimage, ContractExecutable executable, SCVal[] constructorArgs) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static CreateContractArgsV2
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static CreateContractArgsV2
fromXdrBase64
(String xdr) static CreateContractArgsV2
fromXdrByteArray
(byte[] xdr) SCVal[]
int
hashCode()
void
setConstructorArgs
(SCVal[] constructorArgs) void
setContractIDPreimage
(ContractIDPreimage contractIDPreimage) void
setExecutable
(ContractExecutable executable) 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)
-
-
Method Details
-
encode
- Specified by:
encode
in interfaceXdrElement
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getContractIDPreimage
-
getExecutable
-
getConstructorArgs
-
setContractIDPreimage
-
setExecutable
-
setConstructorArgs
-
equals
-
hashCode
public int hashCode() -
toString
-