Package nxt.tools

Class ContractManager

java.lang.Object
nxt.tools.ContractManager

public class ContractManager extends Object
  • Constructor Details

    • ContractManager

      public ContractManager()
  • Method Details

    • main

      public static void main(String[] args)
    • init

      public void init(String contractName)
    • init

      public void init(String contractName, String cmdPrivateKey)
    • list

      public void list(String account, String name)
    • listImpl

      public JO listImpl(String account, String name)
    • upload

      public ContractManager.ContractData upload(String contractName, String packageName)
    • uploadImpl

      public ContractManager.ContractData uploadImpl(String contractName, String packageName)
    • reference

      public void reference(ContractManager.ContractData contractData, byte[] contractFullHash)
    • reference

      public JO reference(ContractManager.ContractData contractData, byte[] fullHash, JO uploaderParams)
    • delete

      public void delete(String contractName)
    • verify

      public boolean verify(String hash, String sourceFile)
      We assume that the contract is composed of a single source file which is deployed to the blockchain either as a single class file or as a Jar file containing all its inner classes. This compiled contract is identified by the provided transaction hash on the Ignis chain.
      Parameters:
      hash - hash of the cloud data transaction which stores the contract file
      sourceFile - path to the source file to compile
      Returns:
      true if the compiled source code is identical to the code deployed to the blockchain, false otherwise