[
{
"constant": false,
"inputs": [
{
"internalType": "bytes3",
"name": "colour",
"type": "bytes3"
},
{
"internalType": "uint8",
"name": "doors",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "distance",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "lat",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "lon",
"type": "uint16"
}
],
"name": "addCar",
"outputs": [
{
"internalType": "uint256",
"name": "carId",
"type": "uint256"
}
],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "fromCar",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "atCar",
"type": "uint256"
}
],
"name": "CarHonk",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "carId",
"type": "uint256"
}
],
"name": "driveCar",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "carId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "otherCarId",
"type": "uint256"
}
],
"name": "honkCar",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "carId",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "lat",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "lon",
"type": "uint16"
}
],
"name": "parkCar",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "cars",
"outputs": [
{
"internalType": "bytes3",
"name": "colour",
"type": "bytes3"
},
{
"internalType": "uint8",
"name": "doors",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "distance",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "lat",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "lon",
"type": "uint16"
},
{
"internalType": "enum Cars.CarStatus",
"name": "status",
"type": "uint8"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "numCars",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]