[{"constant":false,"inputs":[{"name":"sig","type":"uint256[2]"}],"name":"updateRandomness","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"mode","type":"uint8"},{"name":"userSeed","type":"uint256"}],"name":"requestRandom","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"idx","type":"uint256"}],"name":"getWhitelistAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"whitelistInitialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"x1","type":"uint256"},{"name":"x2","type":"uint256"},{"name":"y1","type":"uint256"},{"name":"y2","type":"uint256"}],"name":"setPublicKey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"idx","type":"uint256"}],"name":"getGroupPubKey","outputs":[{"name":"","type":"uint256[4]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"resetContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"timeout","type":"uint256"},{"name":"dataSource","type":"string"},{"name":"selector","type":"string"}],"name":"query","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"requestId","type":"uint256"},{"name":"trafficType","type":"uint8"},{"name":"result","type":"bytes"},{"name":"sig","type":"uint256[2]"},{"name":"version","type":"uint8"}],"name":"triggerCallback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"fireRandom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"size","type":"uint256"}],"name":"grouping","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addresses","type":"address[21]"}],"name":"initWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastRandomness","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newWhitelistedAddr","type":"address"}],"name":"transferWhitelistAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"uint256"}],"name":"uploadNodeId","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdatedBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"handleTimeout","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"queryId","type":"uint256"},{"indexed":false,"name":"timeout","type":"uint256"},{"indexed":false,"name":"dataSource","type":"string"},{"indexed":false,"name":"selector","type":"string"},{"indexed":false,"name":"randomness","type":"uint256"},{"indexed":false,"name":"dispatchedGroup","type":"uint256[4]"}],"name":"LogUrl","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"requestId","type":"uint256"},{"indexed":false,"name":"lastSystemRandomness","type":"uint256"},{"indexed":false,"name":"userSeed","type":"uint256"},{"indexed":false,"name":"dispatchedGroup","type":"uint256[4]"}],"name":"LogRequestUserRandom","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"invalidSelector","type":"string"}],"name":"LogNonSupportedType","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"}],"name":"LogNonContractCall","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"callbackAddr","type":"address"}],"name":"LogCallbackTriggeredFor","type":"event"},{"anonymous":false,"inputs":[],"name":"LogRequestFromNonExistentUC","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"lastRandomness","type":"uint256"},{"indexed":false,"name":"dispatchedGroup","type":"uint256[4]"}],"name":"LogUpdateRandom","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"trafficType","type":"uint8"},{"indexed":false,"name":"trafficId","type":"uint256"},{"indexed":false,"name":"message","type":"bytes"},{"indexed":false,"name":"signature","type":"uint256[2]"},{"indexed":false,"name":"pubKey","type":"uint256[4]"},{"indexed":false,"name":"pass","type":"bool"},{"indexed":false,"name":"version","type":"uint8"}],"name":"LogValidationResult","type":"event"},{"anonymous":false,"inputs":[],"name":"LogInsufficientGroupNumber","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"NodeId","type":"uint256[]"}],"name":"LogGrouping","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"x1","type":"uint256"},{"indexed":false,"name":"x2","type":"uint256"},{"indexed":false,"name":"y1","type":"uint256"},{"indexed":false,"name":"y2","type":"uint256"}],"name":"LogPublicKeyAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"previous","type":"address"},{"indexed":false,"name":"curr","type":"address"}],"name":"WhitelistAddressTransferred","type":"event"}]