Package com.algorand.algosdk.templates
Class ContractTemplate
java.lang.Object
com.algorand.algosdk.templates.ContractTemplate
@Deprecated
public class ContractTemplate
extends java.lang.Object
Deprecated.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContractTemplate.AddressParameterValue
Deprecated.static class
ContractTemplate.BytesParameterValue
Deprecated.static class
ContractTemplate.IntParameterValue
Deprecated. -
Field Summary
-
Constructor Summary
Constructors Constructor Description ContractTemplate(byte[] prog)
Deprecated.Initialize a contract template.ContractTemplate(LogicsigSignature lsig)
Deprecated.Initialize a contract template.ContractTemplate(java.lang.String prog)
Deprecated.Initialize a contract template. -
Method Summary
Modifier and Type Method Description protected static ContractTemplate
inject(byte[] program, java.util.List<com.algorand.algosdk.templates.ContractTemplate.ParameterValue> values)
Deprecated.protected static Logic.ProgramData
readAndVerifyContract(byte[] program, int numInts, int numByteArrays)
Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
address
Deprecated. -
program
public byte[] programDeprecated.
-
-
Constructor Details
-
ContractTemplate
public ContractTemplate(java.lang.String prog) throws java.security.NoSuchAlgorithmExceptionDeprecated.Initialize a contract template.- Parameters:
prog
- base64 encoded program.- Throws:
java.security.NoSuchAlgorithmException
-
ContractTemplate
public ContractTemplate(byte[] prog) throws java.security.NoSuchAlgorithmExceptionDeprecated.Initialize a contract template.- Parameters:
prog
- bytes of program.- Throws:
java.security.NoSuchAlgorithmException
-
ContractTemplate
Deprecated.Initialize a contract template.- Parameters:
lsig
- the contract's LogicsigSignature.- Throws:
java.security.NoSuchAlgorithmException
-
-
Method Details
-
inject
protected static ContractTemplate inject(byte[] program, java.util.List<com.algorand.algosdk.templates.ContractTemplate.ParameterValue> values) throws java.security.NoSuchAlgorithmExceptionDeprecated.- Parameters:
program
- is compiled TEAL programvalues
- of the program parameters to inject to the program bytecode- Returns:
- ContractTemplate with the address and the program with the given parameter values
- Throws:
java.security.NoSuchAlgorithmException
-
readAndVerifyContract
protected static Logic.ProgramData readAndVerifyContract(byte[] program, int numInts, int numByteArrays)Deprecated.
-