Class Moka

java.lang.Object
io.hotmoka.cli.internal.AbstractCLIImpl
io.hotmoka.cli.AbstractCLI
io.hotmoka.moka.Moka

public class Moka extends io.hotmoka.cli.AbstractCLI
A command-line interface for Hotmoka. This class is meant to be run from the parent directory, after building the project, with this command-line: java --module-path modules/explicit:modules/automatic --class-path "modules/unnamed/*" --module io.hotmoka.moka/io.hotmoka.moka.Moka
  • Method Details

    • main

      public static void main(String[] args)
      Entry point from the shell. At its end, the status message returned from the tool is returned to the shell.
      Parameters:
      args - the command-line arguments provided to this tool
    • accountsCreate

      public static String accountsCreate(String args) throws IOException
      Runs the moka accounts create command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • accountsRotate

      public static String accountsRotate(String args) throws IOException
      Runs the moka accounts rotate command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • accountsSend

      public static String accountsSend(String args) throws IOException
      Runs the moka accounts send command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • accountsShow

      public static String accountsShow(String args) throws IOException
      Runs the moka accounts show command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • keysBind

      public static String keysBind(String args) throws IOException
      Runs the moka keys bind command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • keysCreate

      public static String keysCreate(String args) throws IOException
      Runs the moka keys create command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • keysExport

      public static String keysExport(String args) throws IOException
      Runs the moka keys export command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • keysImport

      public static String keysImport(String args) throws IOException
      Runs the moka keys import command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • keysShow

      public static String keysShow(String args) throws IOException
      Runs the moka keys show command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • jarsVerify

      public static String jarsVerify(String args) throws IOException
      Runs the moka jars verify command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • jarsInstrument

      public static String jarsInstrument(String args) throws IOException
      Runs the moka jars instrument command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • jarsInstall

      public static String jarsInstall(String args) throws IOException
      Runs the moka jars install command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesFaucet

      public static String nodesFaucet(String args) throws IOException
      Runs the moka nodes faucet command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesTakamakaAddress

      public static String nodesTakamakaAddress(String args) throws IOException
      Runs the moka nodes takamaka address command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesManifestAddress

      public static String nodesManifestAddress(String args) throws IOException
      Runs the moka nodes manifest address command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesManifestShow

      public static String nodesManifestShow(String args) throws IOException
      Runs the moka nodes manifest show command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesTendermintValidatorsCreate

      public static String nodesTendermintValidatorsCreate(String args) throws IOException
      Runs the moka nodes tendermint validators create command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesTendermintValidatorsKey

      public static String nodesTendermintValidatorsKey(String args) throws IOException
      Runs the moka nodes tendermint validators key command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesTendermintValidatorsBuy

      public static String nodesTendermintValidatorsBuy(String args) throws IOException
      Runs the moka nodes tendermint validators buy command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • nodesTendermintValidatorsSell

      public static String nodesTendermintValidatorsSell(String args) throws IOException
      Runs the moka nodes tendermint validators sell command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • objectsCall

      public static String objectsCall(String args) throws IOException
      Runs the moka objects call command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • objectsCreate

      public static String objectsCreate(String args) throws IOException
      Runs the moka objects create command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • objectsShow

      public static String objectsShow(String args) throws IOException
      Runs the moka objects show command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed
    • transactionsShow

      public static String transactionsShow(String args) throws IOException
      Runs the moka transactions show command with the given arguments.
      Parameters:
      args - the arguments
      Returns:
      what the moka tool has written into the standard output
      Throws:
      IOException - if the construction of the return value failed