Class ContractTemplate

java.lang.Object
com.algorand.algosdk.templates.ContractTemplate

@Deprecated
public class ContractTemplate
extends java.lang.Object
Deprecated.
  • Field Details

    • address

      public Address address
      Deprecated.
    • program

      public byte[] program
      Deprecated.
  • Constructor Details

    • ContractTemplate

      public ContractTemplate​(java.lang.String prog) throws java.security.NoSuchAlgorithmException
      Deprecated.
      Initialize a contract template.
      Parameters:
      prog - base64 encoded program.
      Throws:
      java.security.NoSuchAlgorithmException
    • ContractTemplate

      public ContractTemplate​(byte[] prog) throws java.security.NoSuchAlgorithmException
      Deprecated.
      Initialize a contract template.
      Parameters:
      prog - bytes of program.
      Throws:
      java.security.NoSuchAlgorithmException
    • ContractTemplate

      public ContractTemplate​(LogicsigSignature lsig) throws java.security.NoSuchAlgorithmException
      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.NoSuchAlgorithmException
      Deprecated.
      Parameters:
      program - is compiled TEAL program
      values - 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.