Package org.stellar.sdk.xdr
Class SorobanAuthorizedFunction
java.lang.Object
org.stellar.sdk.xdr.SorobanAuthorizedFunction
SorobanAuthorizedFunction's original definition in the XDR file is:
union SorobanAuthorizedFunction switch (SorobanAuthorizedFunctionType type)
{
case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CONTRACT_FN:
InvokeContractArgs contractFn;
case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN:
CreateContractArgs createContractHostFn;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionSorobanAuthorizedFunction(SorobanAuthorizedFunctionType discriminant, InvokeContractArgs contractFn, CreateContractArgs createContractHostFn) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanAuthorizedFunctiondecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SorobanAuthorizedFunctionfromXdrBase64(String xdr) static SorobanAuthorizedFunctionfromXdrByteArray(byte[] xdr) inthashCode()voidsetContractFn(InvokeContractArgs contractFn) voidsetCreateContractHostFn(CreateContractArgs createContractHostFn) voidsetDiscriminant(SorobanAuthorizedFunctionType discriminant) toString()default Stringdefault byte[]
-
Constructor Details
-
SorobanAuthorizedFunction
public SorobanAuthorizedFunction() -
SorobanAuthorizedFunction
public SorobanAuthorizedFunction(SorobanAuthorizedFunctionType discriminant, InvokeContractArgs contractFn, CreateContractArgs createContractHostFn)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getContractFn
-
getCreateContractHostFn
-
setDiscriminant
-
setContractFn
-
setCreateContractHostFn
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-