UNPKG

qourier

Version:

Infrastructural protocol for combining data between WEB2 ⇠⇢ WEB3

366 lines (365 loc) 7.24 kB
[ { "inputs": [ { "internalType": "address", "name": "personal_", "type": "address" }, { "internalType": "uint256", "name": "price_", "type": "uint256" }, { "internalType": "bytes32[10]", "name": "modules_", "type": "bytes32[10]" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "task_id", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "result", "type": "bytes" }, { "indexed": false, "internalType": "address", "name": "qourier", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tasks", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "completedAt", "type": "uint256" } ], "name": "Completed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "task_id", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "module", "type": "bytes32" }, { "indexed": false, "internalType": "bytes[5]", "name": "params", "type": "bytes[5]" }, { "indexed": false, "internalType": "address", "name": "callback", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "tasks", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "createdAt", "type": "uint256" } ], "name": "Created", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "task_id_", "type": "uint256" }, { "internalType": "bytes", "name": "result_", "type": "bytes" } ], "name": "completeTask", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "module_", "type": "bytes32" } ], "name": "createTask0", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "module_", "type": "bytes32" }, { "internalType": "bytes[1]", "name": "params_", "type": "bytes[1]" } ], "name": "createTask1", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "module_", "type": "bytes32" }, { "internalType": "bytes[2]", "name": "params_", "type": "bytes[2]" } ], "name": "createTask2", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "module_", "type": "bytes32" }, { "internalType": "bytes[3]", "name": "params_", "type": "bytes[3]" } ], "name": "createTask3", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "module_", "type": "bytes32" }, { "internalType": "bytes[4]", "name": "params_", "type": "bytes[4]" } ], "name": "createTask4", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "module_", "type": "bytes32" }, { "internalType": "bytes[5]", "name": "params_", "type": "bytes[5]" } ], "name": "createTask5", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "qourier_", "type": "address" } ], "name": "getBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getHub", "outputs": [ { "internalType": "address", "name": "personal", "type": "address" }, { "internalType": "uint256", "name": "task_id", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "bytes32[10]", "name": "modules", "type": "bytes32[10]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "task_id_", "type": "uint256" } ], "name": "getTask", "outputs": [ { "components": [ { "internalType": "bytes32", "name": "module", "type": "bytes32" }, { "internalType": "bytes[5]", "name": "params", "type": "bytes[5]" }, { "internalType": "bytes", "name": "result", "type": "bytes" }, { "internalType": "address", "name": "callback", "type": "address" }, { "internalType": "address", "name": "qourier", "type": "address" }, { "internalType": "uint256", "name": "tasks", "type": "uint256" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "completedAt", "type": "uint256" } ], "internalType": "struct IHub.Task", "name": "task", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "numberOfTasks", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "task_id_", "type": "uint256" } ], "name": "topUpTask", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "withdraw", "outputs": [], "stateMutability": "payable", "type": "function" } ]