[
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "const",
          "type": "address"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "owner",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "callerIp",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "cpuModel",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "cpuNum",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "cpuCores",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "gpuModel",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "gpuNum",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "uint64",
          "name": "memNum",
          "type": "uint64"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "os",
          "type": "string"
        }
      ],
      "name": "AddCreateVMInfoEvent",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "creater",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "snatcher",
          "type": "address"
        }
      ],
      "name": "SnatchTaskEvent",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "_const",
      "outputs": [
        {
          "internalType": "contract ICloudConstant",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_admin",
          "type": "address"
        }
      ],
      "name": "addAdmin",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "callerIp",
          "type": "string"
        },
        {
          "internalType": "string",
          "name": "cpuModel",
          "type": "string"
        },
        {
          "internalType": "uint64",
          "name": "cpuNum",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "cpuCores",
          "type": "uint64"
        },
        {
          "internalType": "string",
          "name": "gpuModel",
          "type": "string"
        },
        {
          "internalType": "uint64",
          "name": "gpuNum",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "memNum",
          "type": "uint64"
        },
        {
          "internalType": "string",
          "name": "os",
          "type": "string"
        }
      ],
      "name": "addVirtualMachine",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_admin",
          "type": "address"
        }
      ],
      "name": "delAdmin",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getTaskId",
      "outputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        }
      ],
      "name": "getVmCreateProgress",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_addr",
          "type": "address"
        }
      ],
      "name": "isAdmin",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "renounceOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "const",
          "type": "address"
        }
      ],
      "name": "setConstant",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        },
        {
          "internalType": "address",
          "name": "creater",
          "type": "address"
        }
      ],
      "name": "snatchTask",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        },
        {
          "internalType": "uint8",
          "name": "",
          "type": "uint8"
        }
      ],
      "name": "taskProgress",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "taskId",
          "type": "string"
        },
        {
          "internalType": "uint256",
          "name": "createStage",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "createProgress",
          "type": "uint256"
        }
      ],
      "name": "updateVmCreateProgress",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ]