Skip to content

Instantly share code, notes, and snippets.

@simon-jentzsch
Last active May 2, 2017 12:50
Show Gist options
  • Save simon-jentzsch/ec2d3214b91d8cb3ba1ee6df9f733338 to your computer and use it in GitHub Desktop.
Save simon-jentzsch/ec2d3214b91d8cb3ba1ee6df9f733338 to your computer and use it in GitHub Desktop.
S&C ABI
[
{ "type": "function", "name": "setBlocked", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_blocked","type":"uint256"}],"outputs":[],"payable":false},
{ "type": "function", "name": "getPricePerHour", "constant": true, "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_user","type":"address"}],"outputs":[{"name":"price","type":"uint256"}],"payable":false},
{ "type": "function", "name": "poleOwner", "constant": true, "inputs":[{"name":"_poleID","type":"bytes32"}],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "hasPermission", "constant": true, "inputs":[{"name":"_deviceID","type":"bytes32"},{"name":"_controller","type":"address"},{"name":"action","type":"uint256"}],"outputs":[{"name":"permission","type":"bool"}],"payable":false},
{ "type": "function", "name": "setMeterProvider", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_meterProvider","type":"address"}],"outputs":[],"payable":false},
{ "type": "function", "name": "setPriceProvider", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_priceProvider","type":"uint16"}],"outputs":[],"payable":false},
{ "type": "function", "name": "getPricePerKW", "constant": true, "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_user","type":"address"}],"outputs":[{"name":"price","type":"uint256"}],"payable":false},
{ "type": "function", "name": "db", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "getContractType", "constant": true, "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_user","type":"address"}],"outputs":[{"name":"ctype","type":"uint8"}],"payable":false},
{ "type": "function", "name": "libManager", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "isBlockedRange", "constant": true, "inputs":[{"name":"_id","type":"bytes32"},{"name":"_time","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"payable":false},
{ "type": "function", "name": "stop", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_measuredWatt","type":"uint32"}],"outputs":[],"payable":false},
{ "type": "function", "name": "costTimebased", "constant": true, "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_user","type":"address"},{"name":"_wattPower","type":"uint256"},{"name":"_secondsToRent","type":"uint256"}],"outputs":[{"name":"chargingCost","type":"uint256"}],"payable":false},
{ "type": "function", "name": "start", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_wattPower","type":"uint32"},{"name":"_secondsToRent","type":"uint32"}],"outputs":[],"payable":true},
{ "type": "function", "name": "changeDeviceOwner", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_owner","type":"address"}],"outputs":[],"payable":false},
{ "type": "function", "name": "setMaxRentingTime", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_maxRentingTime","type":"uint32"}],"outputs":[],"payable":false},
{ "type": "function", "name": "isBlocked", "constant": true, "inputs":[{"name":"_id","type":"bytes32"},{"name":"_day","type":"uint8"},{"name":"_hour","type":"uint8"}],"outputs":[{"name":"blocked","type":"bool"}],"payable":false},
{ "type": "function", "name": "setMaxWattPower", "inputs":[{"name":"_poleID","type":"bytes32"},{"name":"_maxWattPower","type":"uint32"}],"outputs":[],"payable":false},
{ "type": "event", "name": "LogClosingTimeUpdated", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"_blocked","type":"uint256"}]},
{ "type": "event", "name": "LogOwnerUpdated", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"newOwner","type":"address"}]},
{ "type": "event", "name": "LogMeterProviderUpdated", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"newMeterProvider","type":"address"}]},
{ "type": "event", "name": "LogPriceProviderUpdated", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"newPriceProvider","type":"uint256"}]},
{ "type": "event", "name": "LogMaxWattPowerUpdated", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"newMaxWattPower","type":"uint256"}]},
{ "type": "event", "name": "LogMaxRentingTimeUpdated", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"newMaxRentingTime","type":"uint256"}]},
{ "type": "event", "name": "LogPoleSetUp", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"}]},
{ "type": "event", "name": "LogRented", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"controller","type":"address"},{"indexed":false,"name":"wattPower","type":"uint256"},{"indexed":false,"name":"hoursToRent","type":"uint256"}]},
{ "type": "event", "name": "LogReturned", "anonymous":false,"inputs":[{"indexed":true,"name":"poleID","type":"bytes32"},{"indexed":false,"name":"chargeAmount","type":"uint256"},{"indexed":false,"name":"elapsedSeconds","type":"uint256"},{"indexed":false,"name":"watt","type":"uint256"},{"indexed":false,"name":"contractType","type":"uint8"}]}
]
[
{ "type": "function", "name": "mobilityTokenLib", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "feeManagementLib", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "priceProviderLibs", "constant": true, "inputs":[{"name":"","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "genLibs", "constant": true, "inputs":[{"name":"","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "chargingPolesLib", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "dateTimeLib", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "admin", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "event", "name": "LogUpdateAdmin", "anonymous":false,"inputs":[{"indexed":false,"name":"newAdmin","type":"address"}]},
{ "type": "event", "name": "LogUpdateLib", "anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"newAddress","type":"address"}]},
{ "type": "event", "name": "LogUpdateGenLib", "anonymous":false,"inputs":[{"indexed":false,"name":"index","type":"uint256"},{"indexed":false,"name":"","type":"address"}]},
{ "type": "event", "name": "LogEmergenyHalt", "anonymous":false,"inputs":[{"indexed":false,"name":"time","type":"uint256"}]}
]
[
{ "type": "function", "name": "approve", "inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[{"name":"success","type":"bool"}],"payable":false},
{ "type": "function", "name": "totalSupply", "constant": true, "inputs":[],"outputs":[{"name":"","type":"uint256"}],"payable":false},
{ "type": "function", "name": "increaseTokens", "inputs":[{"name":"_target","type":"address"},{"name":"_amount","type":"uint128"}],"outputs":[],"payable":false},
{ "type": "function", "name": "transferFrom", "inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"payable":false},
{ "type": "function", "name": "getWhitelist", "constant": true, "inputs":[{"name":"_user","type":"address"}],"outputs":[{"name":"","type":"bool"}],"payable":false},
{ "type": "function", "name": "db", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "libManager", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "getSuperUser", "constant": true, "inputs":[],"outputs":[{"name":"","type":"address"}],"payable":false},
{ "type": "function", "name": "balanceOf", "constant": true, "inputs":[{"name":"_owner","type":"address"}],"outputs":[{"name":"balance","type":"uint256"}],"payable":false},
{ "type": "function", "name": "decreaseTokens", "inputs":[{"name":"_target","type":"address"},{"name":"_amount","type":"uint128"}],"outputs":[],"payable":false},
{ "type": "function", "name": "transfer", "inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"payable":false},
{ "type": "function", "name": "allowance", "constant": true, "inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"outputs":[{"name":"remaining","type":"uint256"}],"payable":false},
{ "type": "event", "name": "LogTokenUpdate", "anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"amount","type":"int256"},{"indexed":false,"name":"newBalance","type":"uint256"},{"indexed":false,"name":"totalSupply","type":"uint256"}]},
{ "type": "event", "name": "LogKeyUpdate", "anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"newKey","type":"address"}]},
{ "type": "event", "name": "LogWhitelistUpdate", "anonymous":false,"inputs":[{"indexed":false,"name":"newAddress","type":"address"},{"indexed":false,"name":"allowance","type":"bool"}]},
{ "type": "event", "name": "LogSecurityParameterUpdate", "anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"newValue","type":"uint256"}]},
{ "type": "event", "name": "Transfer", "anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}]},
{ "type": "event", "name": "Approval", "anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}]}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment