Package org.stellar.sdk.xdr
Class InvokeContractArgs
java.lang.Object
org.stellar.sdk.xdr.InvokeContractArgs
- All Implemented Interfaces:
XdrElement
InvokeContractArgs's original definition in the XDR file is:
struct InvokeContractArgs {
SCAddress contractAddress;
SCSymbol functionName;
SCVal args<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionInvokeContractArgs(SCAddress contractAddress, SCSymbol functionName, SCVal[] args) Creates a newInvokeContractArgsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static InvokeContractArgsdecode(XdrDataInputStream stream) static InvokeContractArgsdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic InvokeContractArgsstatic InvokeContractArgsfromXdrBase64(String xdr) static InvokeContractArgsfromXdrByteArray(byte[] xdr) SCVal[]getArgs()Value of theargsfield.Value of thecontractAddressfield.Value of thefunctionNamefield.inthashCode()voidValue of theargsfield.voidsetContractAddress(SCAddress contractAddress) Value of thecontractAddressfield.voidsetFunctionName(SCSymbol functionName) Value of thefunctionNamefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
InvokeContractArgs
public InvokeContractArgs() -
InvokeContractArgs
Creates a newInvokeContractArgsinstance.- Parameters:
contractAddress- thecontractAddressfield valuefunctionName- thefunctionNamefield valueargs- theargsfield 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
- 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
-
getContractAddress
Value of thecontractAddressfield.- Returns:
- the
contractAddressfield value
-
getFunctionName
Value of thefunctionNamefield.- Returns:
- the
functionNamefield value
-
getArgs
Value of theargsfield.- Returns:
- the
argsfield value
-
setContractAddress
Value of thecontractAddressfield.- Parameters:
contractAddress- thecontractAddressfield value
-
setFunctionName
Value of thefunctionNamefield.- Parameters:
functionName- thefunctionNamefield value
-
setArgs
Value of theargsfield.- Parameters:
args- theargsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-