More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,967 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
__callback | 4404199 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404198 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404197 | 2612 days ago | IN | 0 ETH | 0.00183622 | ||||
__callback | 4404195 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404194 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404193 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404187 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404187 | 2612 days ago | IN | 0 ETH | 0.0017463 | ||||
__callback | 4404185 | 2612 days ago | IN | 0 ETH | 0.00183484 | ||||
__callback | 4404183 | 2612 days ago | IN | 0 ETH | 0.00183622 | ||||
__callback | 4404183 | 2612 days ago | IN | 0 ETH | 0.00183342 | ||||
__callback | 4404179 | 2612 days ago | IN | 0 ETH | 0.00183356 | ||||
__callback | 4404174 | 2612 days ago | IN | 0 ETH | 0.00174492 | ||||
__callback | 4404173 | 2612 days ago | IN | 0 ETH | 0.00183622 | ||||
__callback | 4404173 | 2612 days ago | IN | 0 ETH | 0.0017463 | ||||
__callback | 4404173 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404173 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404171 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404169 | 2612 days ago | IN | 0 ETH | 0.00174502 | ||||
__callback | 4404169 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404166 | 2612 days ago | IN | 0 ETH | 0.0017463 | ||||
__callback | 4404163 | 2612 days ago | IN | 0 ETH | 0.00174118 | ||||
__callback | 4404161 | 2612 days ago | IN | 0 ETH | 0.004 | ||||
__callback | 4404160 | 2612 days ago | IN | 0 ETH | 0.00183622 | ||||
__callback | 4404160 | 2612 days ago | IN | 0 ETH | 0.00183494 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
4404197 | 2612 days ago | 0.01 ETH | ||||
4404187 | 2612 days ago | 0.01 ETH | ||||
4404185 | 2612 days ago | 0.01 ETH | ||||
4404183 | 2612 days ago | 0.01 ETH | ||||
4404183 | 2612 days ago | 0.01 ETH | ||||
4404179 | 2612 days ago | 0.01 ETH | ||||
4404174 | 2612 days ago | 0.01 ETH | ||||
4404173 | 2612 days ago | 0.01 ETH | ||||
4404173 | 2612 days ago | 0.01 ETH | ||||
4404169 | 2612 days ago | 0.01 ETH | ||||
4404166 | 2612 days ago | 0.01 ETH | ||||
4404163 | 2612 days ago | 0.01 ETH | ||||
4404160 | 2612 days ago | 0.01 ETH | ||||
4404160 | 2612 days ago | 0.01 ETH | ||||
4404157 | 2612 days ago | 0.01 ETH | ||||
4404156 | 2612 days ago | 0.01 ETH | ||||
4404152 | 2612 days ago | 0.00416635 ETH | ||||
4404152 | 2612 days ago | 0.00416635 ETH | ||||
4404151 | 2612 days ago | 0.00416635 ETH | ||||
4404151 | 2612 days ago | 0.00416635 ETH | ||||
4404151 | 2612 days ago | 0.00416635 ETH | ||||
4404151 | 2612 days ago | 0.00416635 ETH | ||||
4404151 | 2612 days ago | 0.00416635 ETH | ||||
4404151 | 2612 days ago | 0.00416635 ETH | ||||
4404151 | 2612 days ago | 0.00416635 ETH |
Loading...
Loading
Contract Name:
EtherFlip
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-08-13 */ /* Oraclize random-datasource example This contract uses the random-datasource to securely generate off-chain N random bytes */ // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ pragma solidity ^0.4.11; //please import oraclizeAPI_pre0.4.sol when solidity < 0.4.0 contract OraclizeI { address public cbAddress; function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id); function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) payable returns (bytes32 _id); function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) payable returns (bytes32 _id); function query2_withGasLimit(uint _timestamp, string _datasource, string _arg1, string _arg2, uint _gaslimit) payable returns (bytes32 _id); function queryN(uint _timestamp, string _datasource, bytes _argN) payable returns (bytes32 _id); function queryN_withGasLimit(uint _timestamp, string _datasource, bytes _argN, uint _gaslimit) payable returns (bytes32 _id); function getPrice(string _datasource) returns (uint _dsprice); function getPrice(string _datasource, uint gaslimit) returns (uint _dsprice); function useCoupon(string _coupon); function setProofType(byte _proofType); function setConfig(bytes32 _config); function setCustomGasPrice(uint _gasPrice); function randomDS_getSessionPubKeyHash() returns(bytes32); } contract OraclizeAddrResolverI { function getAddress() returns (address _addr); } contract usingOraclize { uint constant day = 60*60*24; uint constant week = 60*60*24*7; uint constant month = 60*60*24*30; byte constant proofType_NONE = 0x00; byte constant proofType_TLSNotary = 0x10; byte constant proofType_Android = 0x20; byte constant proofType_Ledger = 0x30; byte constant proofType_Native = 0xF0; byte constant proofStorage_IPFS = 0x01; uint8 constant networkID_auto = 0; uint8 constant networkID_mainnet = 1; uint8 constant networkID_testnet = 2; uint8 constant networkID_morden = 2; uint8 constant networkID_consensys = 161; OraclizeAddrResolverI OAR; OraclizeI oraclize; modifier oraclizeAPI { if((address(OAR)==0)||(getCodeSize(address(OAR))==0)) oraclize_setNetwork(networkID_auto); oraclize = OraclizeI(OAR.getAddress()); _; } modifier coupon(string code){ oraclize = OraclizeI(OAR.getAddress()); oraclize.useCoupon(code); _; } function oraclize_setNetwork(uint8 networkID) internal returns(bool) { networkID; if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed); oraclize_setNetworkName("eth_mainnet"); return true; } if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1)>0){ //ropsten testnet OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1); oraclize_setNetworkName("eth_ropsten3"); return true; } if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e)>0){ //kovan testnet OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e); oraclize_setNetworkName("eth_kovan"); return true; } if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48)>0){ //rinkeby testnet OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48); oraclize_setNetworkName("eth_rinkeby"); return true; } if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475); return true; } if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF)>0){ //ether.camp ide OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF); return true; } if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA)>0){ //browser-solidity OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA); return true; } return false; } function __callback(bytes32 myid, string result) { __callback(myid, result, new bytes(0)); } function __callback(bytes32 myid, string result, bytes proof) { myid; result; proof; } function oraclize_useCoupon(string code) oraclizeAPI internal { oraclize.useCoupon(code); } function oraclize_getPrice(string datasource) oraclizeAPI internal returns (uint){ return oraclize.getPrice(datasource); } function oraclize_getPrice(string datasource, uint gaslimit) oraclizeAPI internal returns (uint){ return oraclize.getPrice(datasource, gaslimit); } function oraclize_query(string datasource, string arg) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price return oraclize.query.value(price)(0, datasource, arg); } function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price return oraclize.query.value(price)(timestamp, datasource, arg); } function oraclize_query(uint timestamp, string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price return oraclize.query_withGasLimit.value(price)(timestamp, datasource, arg, gaslimit); } function oraclize_query(string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price return oraclize.query_withGasLimit.value(price)(0, datasource, arg, gaslimit); } function oraclize_query(string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price return oraclize.query2.value(price)(0, datasource, arg1, arg2); } function oraclize_query(uint timestamp, string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price return oraclize.query2.value(price)(timestamp, datasource, arg1, arg2); } function oraclize_query(uint timestamp, string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price return oraclize.query2_withGasLimit.value(price)(timestamp, datasource, arg1, arg2, gaslimit); } function oraclize_query(string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price return oraclize.query2_withGasLimit.value(price)(0, datasource, arg1, arg2, gaslimit); } function oraclize_query(string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price bytes memory args = stra2cbor(argN); return oraclize.queryN.value(price)(0, datasource, args); } function oraclize_query(uint timestamp, string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price bytes memory args = stra2cbor(argN); return oraclize.queryN.value(price)(timestamp, datasource, args); } function oraclize_query(uint timestamp, string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price bytes memory args = stra2cbor(argN); return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit); } function oraclize_query(string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price bytes memory args = stra2cbor(argN); return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit); } function oraclize_query(string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](1); dynargs[0] = args[0]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](1); dynargs[0] = args[0]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](1); dynargs[0] = args[0]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](1); dynargs[0] = args[0]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { string[] memory dynargs = new string[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price bytes memory args = ba2cbor(argN); return oraclize.queryN.value(price)(0, datasource, args); } function oraclize_query(uint timestamp, string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource); if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price bytes memory args = ba2cbor(argN); return oraclize.queryN.value(price)(timestamp, datasource, args); } function oraclize_query(uint timestamp, string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price bytes memory args = ba2cbor(argN); return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit); } function oraclize_query(string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){ uint price = oraclize.getPrice(datasource, gaslimit); if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price bytes memory args = ba2cbor(argN); return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit); } function oraclize_query(string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = args[0]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = args[0]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = args[0]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](1); dynargs[0] = args[0]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](2); dynargs[0] = args[0]; dynargs[1] = args[1]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](3); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](4); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(timestamp, datasource, dynargs); } function oraclize_query(uint timestamp, string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(timestamp, datasource, dynargs, gaslimit); } function oraclize_query(string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) { bytes[] memory dynargs = new bytes[](5); dynargs[0] = args[0]; dynargs[1] = args[1]; dynargs[2] = args[2]; dynargs[3] = args[3]; dynargs[4] = args[4]; return oraclize_query(datasource, dynargs, gaslimit); } function oraclize_cbAddress() oraclizeAPI internal returns (address){ return oraclize.cbAddress(); } function oraclize_setProof(byte proofP) oraclizeAPI internal { return oraclize.setProofType(proofP); } function oraclize_setCustomGasPrice(uint gasPrice) oraclizeAPI internal { return oraclize.setCustomGasPrice(gasPrice); } function oraclize_setConfig(bytes32 config) oraclizeAPI internal { return oraclize.setConfig(config); } function oraclize_randomDS_getSessionPubKeyHash() oraclizeAPI internal returns (bytes32){ return oraclize.randomDS_getSessionPubKeyHash(); } function getCodeSize(address _addr) constant internal returns(uint _size) { _addr; _size; assembly { _size := extcodesize(_addr) } } function parseAddr(string _a) internal returns (address){ bytes memory tmp = bytes(_a); uint160 iaddr = 0; uint160 b1; uint160 b2; for (uint i=2; i<2+2*20; i+=2){ iaddr *= 256; b1 = uint160(tmp[i]); b2 = uint160(tmp[i+1]); if ((b1 >= 97)&&(b1 <= 102)) b1 -= 87; else if ((b1 >= 65)&&(b1 <= 70)) b1 -= 55; else if ((b1 >= 48)&&(b1 <= 57)) b1 -= 48; if ((b2 >= 97)&&(b2 <= 102)) b2 -= 87; else if ((b2 >= 65)&&(b2 <= 70)) b2 -= 55; else if ((b2 >= 48)&&(b2 <= 57)) b2 -= 48; iaddr += (b1*16+b2); } return address(iaddr); } function strCompare(string _a, string _b) internal returns (int) { bytes memory a = bytes(_a); bytes memory b = bytes(_b); uint minLength = a.length; if (b.length < minLength) minLength = b.length; for (uint i = 0; i < minLength; i ++) if (a[i] < b[i]) return -1; else if (a[i] > b[i]) return 1; if (a.length < b.length) return -1; else if (a.length > b.length) return 1; else return 0; } function indexOf(string _haystack, string _needle) internal returns (int) { bytes memory h = bytes(_haystack); bytes memory n = bytes(_needle); if(h.length < 1 || n.length < 1 || (n.length > h.length)) return -1; else if(h.length > (2**128 -1)) return -1; else { uint subindex = 0; for (uint i = 0; i < h.length; i ++) { if (h[i] == n[0]) { subindex = 1; while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex]) { subindex++; } if(subindex == n.length) return int(i); } } return -1; } } function strConcat(string _a, string _b, string _c, string _d, string _e) internal returns (string) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory _bd = bytes(_d); bytes memory _be = bytes(_e); string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length); bytes memory babcde = bytes(abcde); uint k = 0; for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i]; for (i = 0; i < _bb.length; i++) babcde[k++] = _bb[i]; for (i = 0; i < _bc.length; i++) babcde[k++] = _bc[i]; for (i = 0; i < _bd.length; i++) babcde[k++] = _bd[i]; for (i = 0; i < _be.length; i++) babcde[k++] = _be[i]; return string(babcde); } function strConcat(string _a, string _b, string _c, string _d) internal returns (string) { return strConcat(_a, _b, _c, _d, ""); } function strConcat(string _a, string _b, string _c) internal returns (string) { return strConcat(_a, _b, _c, "", ""); } function strConcat(string _a, string _b) internal returns (string) { return strConcat(_a, _b, "", "", ""); } // parseInt function parseInt(string _a) internal returns (uint) { return parseInt(_a, 0); } // parseInt(parseFloat*10^_b) function parseInt(string _a, uint _b) internal returns (uint) { bytes memory bresult = bytes(_a); uint mint = 0; bool decimals = false; for (uint i=0; i<bresult.length; i++){ if ((bresult[i] >= 48)&&(bresult[i] <= 57)){ if (decimals){ if (_b == 0) break; else _b--; } mint *= 10; mint += uint(bresult[i]) - 48; } else if (bresult[i] == 46) decimals = true; } if (_b > 0) mint *= 10**_b; return mint; } function uint2str(uint i) internal returns (string){ if (i == 0) return "0"; uint j = i; uint len; while (j != 0){ len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len - 1; while (i != 0){ bstr[k--] = byte(48 + i % 10); i /= 10; } return string(bstr); } function stra2cbor(string[] arr) internal returns (bytes) { uint arrlen = arr.length; // get correct cbor output length uint outputlen = 0; bytes[] memory elemArray = new bytes[](arrlen); for (uint i = 0; i < arrlen; i++) { elemArray[i] = (bytes(arr[i])); outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types } uint ctr = 0; uint cborlen = arrlen + 0x80; outputlen += byte(cborlen).length; bytes memory res = new bytes(outputlen); while (byte(cborlen).length > ctr) { res[ctr] = byte(cborlen)[ctr]; ctr++; } for (i = 0; i < arrlen; i++) { res[ctr] = 0x5F; ctr++; for (uint x = 0; x < elemArray[i].length; x++) { // if there's a bug with larger strings, this may be the culprit if (x % 23 == 0) { uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x; elemcborlen += 0x40; uint lctr = ctr; while (byte(elemcborlen).length > ctr - lctr) { res[ctr] = byte(elemcborlen)[ctr - lctr]; ctr++; } } res[ctr] = elemArray[i][x]; ctr++; } res[ctr] = 0xFF; ctr++; } return res; } function ba2cbor(bytes[] arr) internal returns (bytes) { uint arrlen = arr.length; // get correct cbor output length uint outputlen = 0; bytes[] memory elemArray = new bytes[](arrlen); for (uint i = 0; i < arrlen; i++) { elemArray[i] = (bytes(arr[i])); outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types } uint ctr = 0; uint cborlen = arrlen + 0x80; outputlen += byte(cborlen).length; bytes memory res = new bytes(outputlen); while (byte(cborlen).length > ctr) { res[ctr] = byte(cborlen)[ctr]; ctr++; } for (i = 0; i < arrlen; i++) { res[ctr] = 0x5F; ctr++; for (uint x = 0; x < elemArray[i].length; x++) { // if there's a bug with larger strings, this may be the culprit if (x % 23 == 0) { uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x; elemcborlen += 0x40; uint lctr = ctr; while (byte(elemcborlen).length > ctr - lctr) { res[ctr] = byte(elemcborlen)[ctr - lctr]; ctr++; } } res[ctr] = elemArray[i][x]; ctr++; } res[ctr] = 0xFF; ctr++; } return res; } string oraclize_network_name; function oraclize_setNetworkName(string _network_name) internal { oraclize_network_name = _network_name; } function oraclize_getNetworkName() internal returns (string) { return oraclize_network_name; } function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32){ if ((_nbytes == 0)||(_nbytes > 32)) throw; bytes memory nbytes = new bytes(1); nbytes[0] = byte(_nbytes); bytes memory unonce = new bytes(32); bytes memory sessionKeyHash = new bytes(32); bytes32 sessionKeyHash_bytes32 = oraclize_randomDS_getSessionPubKeyHash(); sessionKeyHash_bytes32; assembly { mstore(unonce, 0x20) mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp))) mstore(sessionKeyHash, 0x20) mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32) } bytes[3] memory args = [unonce, nbytes, sessionKeyHash]; bytes32 queryId = oraclize_query(_delay, "random", args, _customGasLimit); oraclize_randomDS_setCommitment(queryId, sha3(bytes8(_delay), args[1], sha256(args[0]), args[2])); return queryId; } function oraclize_randomDS_setCommitment(bytes32 queryId, bytes32 commitment) internal { oraclize_randomDS_args[queryId] = commitment; } mapping(bytes32=>bytes32) oraclize_randomDS_args; mapping(bytes32=>bool) oraclize_randomDS_sessionKeysHashVerified; function verifySig(bytes32 tosignh, bytes dersig, bytes pubkey) internal returns (bool){ bool sigok; address signer; bytes32 sigr; bytes32 sigs; bytes memory sigr_ = new bytes(32); uint offset = 4+(uint(dersig[3]) - 0x20); sigr_ = copyBytes(dersig, offset, 32, sigr_, 0); bytes memory sigs_ = new bytes(32); offset += 32 + 2; sigs_ = copyBytes(dersig, offset+(uint(dersig[offset-1]) - 0x20), 32, sigs_, 0); assembly { sigr := mload(add(sigr_, 32)) sigs := mload(add(sigs_, 32)) } (sigok, signer) = safer_ecrecover(tosignh, 27, sigr, sigs); if (address(sha3(pubkey)) == signer) return true; else { (sigok, signer) = safer_ecrecover(tosignh, 28, sigr, sigs); return (address(sha3(pubkey)) == signer); } } function oraclize_randomDS_proofVerify__sessionKeyValidity(bytes proof, uint sig2offset) internal returns (bool) { bool sigok; // Step 6: verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH) bytes memory sig2 = new bytes(uint(proof[sig2offset+1])+2); copyBytes(proof, sig2offset, sig2.length, sig2, 0); bytes memory appkey1_pubkey = new bytes(64); copyBytes(proof, 3+1, 64, appkey1_pubkey, 0); bytes memory tosign2 = new bytes(1+65+32); tosign2[0] = 1; //role copyBytes(proof, sig2offset-65, 65, tosign2, 1); bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c"; copyBytes(CODEHASH, 0, 32, tosign2, 1+65); sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey); if (sigok == false) return false; // Step 7: verify the APPKEY1 provenance (must be signed by Ledger) bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4"; bytes memory tosign3 = new bytes(1+65); tosign3[0] = 0xFE; copyBytes(proof, 3, 65, tosign3, 1); bytes memory sig3 = new bytes(uint(proof[3+65+1])+2); copyBytes(proof, 3+65, sig3.length, sig3, 0); sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY); return sigok; } modifier oraclize_randomDS_proofVerify(bytes32 _queryId, string _result, bytes _proof) { // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1) if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) throw; bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName()); if (proofVerified == false) throw; _; } function matchBytes32Prefix(bytes32 content, bytes prefix) internal returns (bool){ bool match_ = true; for (var i=0; i<prefix.length; i++){ if (content[i] != prefix[i]) match_ = false; } return match_; } function oraclize_randomDS_proofVerify__main(bytes proof, bytes32 queryId, bytes result, string context_name) internal returns (bool){ bool checkok; // Step 2: the unique keyhash has to match with the sha256 of (context name + queryId) uint ledgerProofLength = 3+65+(uint(proof[3+65+1])+2)+32; bytes memory keyhash = new bytes(32); copyBytes(proof, ledgerProofLength, 32, keyhash, 0); checkok = (sha3(keyhash) == sha3(sha256(context_name, queryId))); if (checkok == false) return false; bytes memory sig1 = new bytes(uint(proof[ledgerProofLength+(32+8+1+32)+1])+2); copyBytes(proof, ledgerProofLength+(32+8+1+32), sig1.length, sig1, 0); // Step 3: we assume sig1 is valid (it will be verified during step 5) and we verify if 'result' is the prefix of sha256(sig1) checkok = matchBytes32Prefix(sha256(sig1), result); if (checkok == false) return false; // Step 4: commitment match verification, sha3(delay, nbytes, unonce, sessionKeyHash) == commitment in storage. // This is to verify that the computed args match with the ones specified in the query. bytes memory commitmentSlice1 = new bytes(8+1+32); copyBytes(proof, ledgerProofLength+32, 8+1+32, commitmentSlice1, 0); bytes memory sessionPubkey = new bytes(64); uint sig2offset = ledgerProofLength+32+(8+1+32)+sig1.length+65; copyBytes(proof, sig2offset-64, 64, sessionPubkey, 0); bytes32 sessionPubkeyHash = sha256(sessionPubkey); if (oraclize_randomDS_args[queryId] == sha3(commitmentSlice1, sessionPubkeyHash)){ //unonce, nbytes and sessionKeyHash match delete oraclize_randomDS_args[queryId]; } else return false; // Step 5: validity verification for sig1 (keyhash and args signed with the sessionKey) bytes memory tosign1 = new bytes(32+8+1+32); copyBytes(proof, ledgerProofLength, 32+8+1+32, tosign1, 0); checkok = verifySig(sha256(tosign1), sig1, sessionPubkey); if (checkok == false) return false; // verify if sessionPubkeyHash was verified already, if not.. let's do it! if (oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] == false){ oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = oraclize_randomDS_proofVerify__sessionKeyValidity(proof, sig2offset); } return oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash]; } // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license function copyBytes(bytes from, uint fromOffset, uint length, bytes to, uint toOffset) internal returns (bytes) { from; uint minLength = length + toOffset; if (to.length < minLength) { // Buffer too small throw; // Should be a better way? } // NOTE: the offset 32 is added to skip the `size` field of both bytes variables uint i = 32 + fromOffset; uint j = 32 + toOffset; while (i < (32 + fromOffset + length)) { assembly { let tmp := mload(add(from, i)) mstore(add(to, j), tmp) } i += 32; j += 32; } return to; } // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license // Duplicate Solidity's ecrecover, but catching the CALL return value function safer_ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address) { // We do our own memory management here. Solidity uses memory offset // 0x40 to store the current end of memory. We write past it (as // writes are memory extensions), but don't update the offset so // Solidity will reuse it. The memory used here is only needed for // this context. hash; v; r; s; // FIXME: inline assembly can't access return values bool ret; address addr; assembly { let size := mload(0x40) mstore(size, hash) mstore(add(size, 32), v) mstore(add(size, 64), r) mstore(add(size, 96), s) // NOTE: we can reuse the request memory because we deal with // the return code ret := call(3000, 1, 0, size, 128, size, 32) addr := mload(size) } return (ret, addr); } // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license function ecrecovery(bytes32 hash, bytes sig) internal returns (bool, address) { bytes32 r; bytes32 s; uint8 v; if (sig.length != 65) return (false, 0); // The signature format is a compact form of: // {bytes32 r}{bytes32 s}{uint8 v} // Compact means, uint8 is not padded to 32 bytes. assembly { r := mload(add(sig, 32)) s := mload(add(sig, 64)) // Here we are loading the last 32 bytes. We exploit the fact that // 'mload' will pad with zeroes if we overread. // There is no 'mload8' to do this, but that would be nicer. v := byte(0, mload(add(sig, 96))) // Alternative solution: // 'byte' is not working due to the Solidity parser, so lets // use the second best option, 'and' // v := and(mload(add(sig, 65)), 255) } // albeit non-transactional signatures are not specified by the YP, one would expect it // to match the YP range of [27, 28] // // geth uses [0, 1] and some clients have followed. This might change, see: // https://github.com/ethereum/go-ethereum/issues/2053 if (v < 27) v += 27; if (v != 27 && v != 28) return (false, 0); return safer_ecrecover(hash, v, r, s); } } // </ORACLIZE_API> // EtherFlip contract token { function transfer(address receiver, uint amount){ receiver; amount; } } contract EtherFlip is usingOraclize { modifier ownerAction { if (msg.sender != owner) throw; _; } modifier oraclizeAction { if (msg.sender != oraclize_cbAddress()) throw; _; } //~ Events event newRandomByte(bytes); //~ Public Properties token public flipTokenReward; token public millionDollarTokenReward; int public generatedByte; //~ Base setup address public owner; //~ EtherFlip Properties uint public maxBet = (100000000000000000 * 1 wei); uint public minBet = (10000000000000000 * 1 wei); uint public singleTransGasCost = 4000000000000000; //API cost of Oraclize int public baseComparable = 133; uint public flipRewardAmount = 100; uint public mdtRewardAmount = 1; //~ Address & Amount hashes to accurately send transactions/winnings mapping (bytes32 => address) playerAddress; mapping (bytes32 => uint) playerAmount; function EtherFlip(token addressOfFlipToken, token addressOfMillionDollarToken) { owner = msg.sender; flipTokenReward = token(addressOfFlipToken); millionDollarTokenReward = token(addressOfMillionDollarToken); oraclize_setProof(proofType_Ledger); } function () payable { if (msg.sender != owner) { if (msg.value > maxBet) throw; if (msg.value < minBet) throw; } oraclize_setProof(proofType_Ledger); uint numberOfBytes = 1; uint delay = 0; uint callbackGas = 200000; bytes32 queryId = oraclize_newRandomDSQuery(delay, numberOfBytes, callbackGas); playerAddress[queryId] = msg.sender; playerAmount[queryId] = msg.value; } function __callback(bytes32 _queryId, string _result, bytes _proof) oraclize_randomDS_proofVerify(_queryId, _result, _proof) oraclizeAction { if (msg.sender != oraclize_cbAddress()) throw; //Random byte result newRandomByte(bytes(_result)); generatedByte = int(bytes(_result)[0]); uint amount = playerAmount[_queryId]; if (generatedByte > baseComparable) { playerAddress[_queryId].transfer(amount + amount - singleTransGasCost - singleTransGasCost); } if (generatedByte <= baseComparable) { if (flipRewardAmount > 0) { flipTokenReward.transfer(playerAddress[_queryId], flipRewardAmount); } } if (generatedByte == baseComparable) { if (mdtRewardAmount > 0) { millionDollarTokenReward.transfer(playerAddress[_queryId], mdtRewardAmount); } } delete playerAddress[_queryId]; delete playerAmount[_queryId]; } function updateMaxBet(uint updatedMaxBet) public ownerAction { maxBet = updatedMaxBet * 1 wei; } function updateMinBet(uint updatedMinBet) public ownerAction { minBet = updatedMinBet * 1 wei; } function updateTotalGasCost(uint updatedGasCost) public ownerAction { singleTransGasCost = updatedGasCost; } function updateBaseComparable(int updatedBaseComparable) public ownerAction { baseComparable = updatedBaseComparable; } function updateOwner(address updatedOwner) public ownerAction { owner = updatedOwner; } function updateFlipTokenRewardAmount(uint updatedRewardAmount) public ownerAction { flipRewardAmount = updatedRewardAmount; } function updateMDTRewardAmount(uint updatedRewardAmount) public ownerAction { mdtRewardAmount = updatedRewardAmount; } function ownerTransferEther(address outboundAddress, uint amount) public ownerAction { if(!outboundAddress.send(amount)) throw; } function refundTransfer(address outboundAddress, uint amount) public ownerAction { outboundAddress.transfer(amount); } function changeBonusTokenAddress(token updatedBonusToken) public ownerAction { millionDollarTokenReward = updatedBonusToken; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"generatedByte","outputs":[{"name":"","type":"int256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maxBet","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"singleTransGasCost","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"baseComparable","outputs":[{"name":"","type":"int256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedRewardAmount","type":"uint256"}],"name":"updateMDTRewardAmount","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedGasCost","type":"uint256"}],"name":"updateTotalGasCost","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"flipTokenReward","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"flipRewardAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"outboundAddress","type":"address"},{"name":"amount","type":"uint256"}],"name":"ownerTransferEther","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedOwner","type":"address"}],"name":"updateOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"minBet","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedMaxBet","type":"uint256"}],"name":"updateMaxBet","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedBaseComparable","type":"int256"}],"name":"updateBaseComparable","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"millionDollarTokenReward","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"outboundAddress","type":"address"},{"name":"amount","type":"uint256"}],"name":"refundTransfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"mdtRewardAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedBonusToken","type":"address"}],"name":"changeBonusTokenAddress","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedRewardAmount","type":"uint256"}],"name":"updateFlipTokenRewardAmount","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedMinBet","type":"uint256"}],"name":"updateMinBet","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"addressOfFlipToken","type":"address"},{"name":"addressOfMillionDollarToken","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"","type":"bytes"}],"name":"newRandomByte","type":"event"}]
Contract Creation Code
606060405267016345785d8a0000600955662386f26fc10000600a55660e35fa931a0000600b556085600c556064600d556001600e5534156200003e57fe5b6040516040806200347c8339810160405280516020909101515b60088054600160a060020a03338116600160a060020a031992831617909255600580548584169083161790556006805492841692909116919091179055620000ce7f30000000000000000000000000000000000000000000000000000000000000006401000000006200052e620000d782021704565b5b505062000736565b600054600160a060020a031615806200011257506000546200011090600160a060020a0316640100000000620010356200026982021704565b155b1562000134576200013260006401000000006200103d6200027182021704565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401809050602060405180830381600087803b1515620001a957fe5b6102c65a03f11515620001b857fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190557f688dcfd70000000000000000000000000000000000000000000000000000000083527fff000000000000000000000000000000000000000000000000000000000000008616600484015292519216925063688dcfd791602480830192600092919082900301818387803b15156200025257fe5b6102c65a03f115156200026157fe5b5050505b5b50565b803b5b919050565b600080620002a1731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed640100000000620010356200026982021704565b1115620003245760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e657400000000000000000000000000000000000000000060208201526200031b9064010000000062001db36200067282021704565b5060016200026c565b60006200035373c03a2615d5efaf5f49f60b7bb6583eaec212fdf1640100000000620010356200026982021704565b1115620003d65760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e33000000000000000000000000000000000000000060208201526200031b9064010000000062001db36200067282021704565b5060016200026c565b60006200040573b7a07bcf2ba2f2703b24c0691b5278999c59ac7e640100000000620010356200026982021704565b1115620004885760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e000000000000000000000000000000000000000000000060208201526200031b9064010000000062001db36200067282021704565b5060016200026c565b6000620004b773146500cfd35b22e4a392fe0adc06de1a1368ed48640100000000620010356200026982021704565b11156200053a5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b65627900000000000000000000000000000000000000000060208201526200031b9064010000000062001db36200067282021704565b5060016200026c565b600062000569736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475640100000000620010356200026982021704565b11156200059f575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47517905560016200026c565b6000620005ce7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf640100000000620010356200026982021704565b111562000604575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf17905560016200026c565b6000620006337351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa640100000000620010356200026982021704565b111562000669575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa17905560016200026c565b5060005b919050565b8051620006879060029060208401906200068c565b505b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620006cf57805160ff1916838001178555620006ff565b82800160010185558215620006ff579182015b82811115620006ff578251825591602001919060010190620006e2565b5b506200070e92915062000712565b5090565b6200073391905b808211156200070e576000815560010162000719565b5090565b90565b612d3680620007466000396000f3006060604052361561010c5763ffffffff60e060020a60003504166327dc297e81146101d1578063284b1e8e1461022a5780632e5b21681461024c5780633406e3fb1461026e57806338bbfa50146102905780633b5e5376146103265780635478f06f146103485780635cfa353a1461035d57806366476fcc146103725780637a8bd93e1461039e5780637ac37d58146103c0578063880cdc31146103e15780638da5cb5b146103ff5780639619367d1461042b578063a55cd51c1461044d578063b20f41ab14610462578063bd22b1cb14610477578063c8d52ee3146104a3578063d08d6753146104c4578063dee2596b146104e6578063f76c0f4e14610504578063f7cf0aa114610519575b6101cf5b60085460009081908190819033600160a060020a0390811691161461014f5760095434111561013f5760006000fd5b600a5434101561014f5760006000fd5b5b6101797f300000000000000000000000000000000000000000000000000000000000000061052e565b600193506000925062030d409150610192838584610681565b6000818152600f602090815260408083208054600160a060020a03191633600160a060020a03161790556010909152902034905590505b50505050565b005b34156101d957fe5b60408051602060046024803582810135601f81018590048502860185019096528585526101cf958335959394604494939290920191819084018382808284375094965061099295505050505050565b005b341561023257fe5b61023a6109c2565b60408051918252519081900360200190f35b341561025457fe5b61023a6109c8565b60408051918252519081900360200190f35b341561027657fe5b61023a6109ce565b60408051918252519081900360200190f35b341561029857fe5b60408051602060046024803582810135601f81018590048502860185019096528585526101cf958335959394604494939290920191819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979998810197919650918201945092508291508401838280828437509496506109d495505050505050565b005b341561032e57fe5b61023a610df2565b60408051918252519081900360200190f35b341561035057fe5b6101cf600435610df8565b005b341561036557fe5b6101cf600435610e1e565b005b341561037a57fe5b610382610e44565b60408051600160a060020a039092168252519081900360200190f35b34156103a657fe5b61023a610e53565b60408051918252519081900360200190f35b34156103c857fe5b6101cf600160a060020a0360043516602435610e59565b005b34156103e957fe5b6101cf600160a060020a0360043516610eac565b005b341561040757fe5b610382610ee8565b60408051600160a060020a039092168252519081900360200190f35b341561043357fe5b61023a610ef7565b60408051918252519081900360200190f35b341561045557fe5b6101cf600435610efd565b005b341561046a57fe5b6101cf600435610f23565b005b341561047f57fe5b610382610f49565b60408051600160a060020a039092168252519081900360200190f35b34156104ab57fe5b6101cf600160a060020a0360043516602435610f58565b005b34156104cc57fe5b61023a610fa7565b60408051918252519081900360200190f35b34156104ee57fe5b6101cf600160a060020a0360043516610fad565b005b341561050c57fe5b6101cf600435610fe9565b005b341561052157fe5b6101cf60043561100f565b005b600054600160a060020a03161580610558575060005461055690600160a060020a0316611035565b155b1561056957610567600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156105c457fe5b6102c65a03f115156105d257fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190557f688dcfd70000000000000000000000000000000000000000000000000000000083527fff000000000000000000000000000000000000000000000000000000000000008616600484015292519216925063688dcfd791602480830192600092919082900301818387803b151561066b57fe5b6102c65a03f115156101c957fe5b5050505b5b50565b600061068b612bf4565b610693612bf4565b61069b612bf4565b60006106a5612c06565b60008815806106b45750602089115b156106bf5760006000fd5b60016040518059106106ce5750595b908082528060200260200182016040525b5095508860f860020a028660008151811015156106f857fe5b906020010190600160f860020a031916908160001a905350602060405180591061071f5750595b908082528060200260200182016040525b50945060206040518059106107425750595b908082528060200260200182016040525b50935061075e611381565b9250602085524241186001430340186020860152602084528260208501526060604051908101604052808681526020018781526020018581525091506107dc8a604060405190810160405280600681526020017f72616e646f6d0000000000000000000000000000000000000000000000000000815250848b6114bf565b90506109818178010000000000000000000000000000000000000000000000008c028460015b602002015160028660005b60200201516000604051602001526040518082805190602001908083835b6020831061084a5780518252601f19909201916020918201910161082b565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561088657fe5b5050604051518660025b6020020151604051808577ffffffffffffffffffffffffffffffffffffffffffffffff191677ffffffffffffffffffffffffffffffffffffffffffffffff1916815260080184805190602001908083835b602083106109005780518252601f1990920191602091820191016108e1565b51815160209384036101000a60001901801990921691161790529201858152845190830192850191508083835b6020831061094c5780518252601f19909201916020918201910161092d565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040518091039020611659565b8096505b5050505050509392505050565b6109bd828260006040518059106109a65750595b908082528060200260200182016040525b506109d4565b5b5050565b60075481565b60095481565b600b5481565b600083838360008160008151811015156109ea57fe5b90602001015160f860020a900460f860020a02600160f860020a0319167f4c00000000000000000000000000000000000000000000000000000000000000141580610a805750816001815181101515610a3f57fe5b90602001015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b80610aca5750816002815181101515610a9557fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b15610ad55760006000fd5b610ae8828585610ae361166f565b611705565b9050801515610af75760006000fd5b610aff611c75565b600160a060020a031633600160a060020a0316141515610b1f5760006000fd5b610b27611c75565b600160a060020a031633600160a060020a0316141515610b475760006000fd5b7f81e8a1f76d29cefa3945213b11390ebe1ff7e42cb026acf2bec5a38f1c8c0d26876040518080602001828103825283818151815260200191508051906020019080838360008314610bb4575b805182526020831115610bb457601f199092019160209182019101610b94565b505050905090810190601f168015610be05780820380516001836020036101000a031916815260200191505b509250505060405180910390a1866000815181101515610bfc57fe5b0160209081015160f860020a90819004810204600781905560008a81526010909252604090912054600c54909650901315610c7a576000888152600f602052604080822054600b549151600160a060020a03909116928880018390039290920380156108fc0292909190818181858888f193505050501515610c7a57fe5b5b600c5460075413610d1b576000600d541115610d1b576005546000898152600f602052604080822054600d5482517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b1515610d0957fe5b6102c65a03f11515610d1757fe5b5050505b5b600c546007541415610dbd576000600e541115610dbd576006546000898152600f602052604080822054600e5482517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b1515610dab57fe5b6102c65a03f11515610db957fe5b5050505b5b6000888152600f602090815260408083208054600160a060020a031916905560109091528120555b5b5b5050505050505050565b600c5481565b60085433600160a060020a03908116911614610e145760006000fd5b600e8190555b5b50565b60085433600160a060020a03908116911614610e3a5760006000fd5b600b8190555b5b50565b600554600160a060020a031681565b600d5481565b60085433600160a060020a03908116911614610e755760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f1935050505015156109bd5760006000fd5b5b5b5050565b60085433600160a060020a03908116911614610ec85760006000fd5b60088054600160a060020a031916600160a060020a0383161790555b5b50565b600854600160a060020a031681565b600a5481565b60085433600160a060020a03908116911614610f195760006000fd5b60098190555b5b50565b60085433600160a060020a03908116911614610f3f5760006000fd5b600c8190555b5b50565b600654600160a060020a031681565b60085433600160a060020a03908116911614610f745760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f1935050505015156109bd57fe5b5b5b5050565b600e5481565b60085433600160a060020a03908116911614610fc95760006000fd5b60068054600160a060020a031916600160a060020a0383161790555b5b50565b60085433600160a060020a039081169116146110055760006000fd5b600d8190555b5b50565b60085433600160a060020a0390811691161461102b5760006000fd5b600a8190555b5b50565b803b5b919050565b6000600061105e731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611035565b11156110cf5760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e657400000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b60006110ee73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611035565b111561115f5760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e33000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b600061117e73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611035565b11156111ef5760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e000000000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b600061120e73146500cfd35b22e4a392fe0adc06de1a1368ed48611035565b111561127f5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b65627900000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b600061129e736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611035565b11156112d2575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001611038565b60006112f17320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611035565b1115611325575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001611038565b60006113447351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611035565b1115611378575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001611038565b5060005b919050565b60008054600160a060020a031615806113ac57506000546113aa90600160a060020a0316611035565b155b156113bd576113bb600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561141857fe5b6102c65a03f1151561142657fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840181905284517fabaa5f3e000000000000000000000000000000000000000000000000000000008152945191909216945063abaa5f3e9360048082019493918390030190829087803b15156114a357fe5b6102c65a03f115156114b157fe5b5050604051519150505b5b90565b60006114c9612bf4565b600054600160a060020a031615806114f357506000546114f190600160a060020a0316611035565b155b1561150457611502600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561155f57fe5b6102c65a03f1151561156d57fe5b5050604051805160018054600160a060020a031916600160a060020a03909216919091179055600391508059106115a15750595b9080825280602002602001820160405280156115d757816020015b6115c4612bf4565b8152602001906001900390816115bc5790505b5090508360005b60200201518160008151811015156115f257fe5b602090810290910101528360015b602002015181600181518110151561161457fe5b602090810290910101528360025b602002015181600281518110151561163657fe5b6020908102909101015261164c86868386611dcb565b91505b5b50949350505050565b60008281526003602052604090208190555b5050565b611677612bf4565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156116fa5780601f106116cf576101008083540402835291602001916116fa565b820191906000526020600020905b8154815290600101906020018083116116dd57829003601f168201915b505050505090505b90565b600060006000611713612bf4565b61171b612bf4565b611723612bf4565b61172b612bf4565b60006000611737612bf4565b8d604581518110151561174657fe5b90602001015160f860020a900460f860020a0260f860020a90046002016044016020019750602060405180591061177a5750595b908082528060200260200182016040525b50965061179d8e8960208a6000612129565b5060028b8e6000604051602001526040518083805190602001908083835b602083106117da5780518252601f1990920191602091820191016117bb565b51815160209384036101000a60001901801990921691161790529201938452506040518382019450909290915081900382018160008661646e5a03f1151561181e57fe5b50506040516020808220895190928a92909182918401908083835b602083106118585780518252601f199092019160209182019101611839565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120939093149b508b925061189a9150505760009950611c64565b8d518e90604a8a019081106118ab57fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106118d55750595b908082528060200260200182016040525b5095506118fb8e896049018851896000612129565b506119826002876000604051602001526040518082805190602001908083835b6020831061193a5780518252601f19909201916020918201910161191b565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561197657fe5b5050604051518d612187565b98508815156119945760009950611c64565b60296040518059106119a35750595b908082528060200260200182016040525b5094506119c98e896020016029886000612129565b5060406040518059106119d95750595b908082528060200260200182016040525b509350855188602001602901016041019250611a0e8e604085036040876000612129565b506002846000604051602001526040518082805190602001908083835b60208310611a4a5780518252601f199092019160209182019101611a2b565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f11515611a8657fe5b50506040518051865190935086918491819060208501908083835b60208310611ac05780518252601f199092019160209182019101611aa1565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902060001916600360008f6000191660001916815260200190815260200160002054600019161415611b3a5760008d815260036020526040812055611b43565b60009950611c64565b6049604051805910611b525750595b908082528060200260200182016040525b509050611b758e896049846000612129565b50611bfd6002826000604051602001526040518082805190602001908083835b60208310611bb45780518252601f199092019160209182019101611b95565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f11515611bf057fe5b505060405151878661220a565b9850881515611c0f5760009950611c64565b60008281526004602052604090205460ff161515611c4f57611c318e84612436565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1699505b505050505050505050949350505050565b60008054600160a060020a03161580611ca05750600054611c9e90600160a060020a0316611035565b155b15611cb157611caf600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611d0c57fe5b6102c65a03f11515611d1a57fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840181905284517fc281d19e000000000000000000000000000000000000000000000000000000008152945191909216945063c281d19e9360048082019493918390030190829087803b15156114a357fe5b6102c65a03f115156114b157fe5b5050604051519150505b5b90565b80516109bd906002906020840190612c6a565b505b50565b60006000611dd7612bf4565b600054600160a060020a03161580611e015750600054611dff90600160a060020a0316611035565b155b15611e1257611e10600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611e6d57fe5b6102c65a03f11515611e7b57fe5b505060408051805160018054600160a060020a031916600160a060020a039283161790819055600060209384015283517f2ef3accc000000000000000000000000000000000000000000000000000000008152602481018a9052600481019485528b5160448201528b51919092169450632ef3accc938b938a9391928392606401918601908083838215611f2a575b805182526020831115611f2a57601f199092019160209182019101611f0a565b505050905090810190601f168015611f565780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515611f7257fe5b6102c65a03f11515611f8057fe5b505060405151925050670de0b6b3a76400003a850201821115611fa6576000925061211e565b611faf85612808565b9050600160009054906101000a9004600160a060020a0316600160a060020a031663c55c1cb683898985896000604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360008314612050575b80518252602083111561205057601f199092019160209182019101612030565b505050905090810190601f16801561207c5780820380516001836020036101000a031916815260200191505b50838103825285518152855160209182019187019080838382156120bb575b8051825260208311156120bb57601f19909201916020918201910161209b565b505050905090810190601f1680156120e75780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561210557fe5b6125ee5a03f1151561211357fe5b505060405151945050505b5b5050949350505050565b612131612bf4565b6000600060008487019250828651101561214b5760006000fd5b505060208087019084015b86886020010182101561217757888201518682015260209182019101612156565b8593505b50505095945050505050565b60006001815b83518160ff1610156121fe57838160ff168151811015156121aa57fe5b90602001015160f860020a900460f860020a02600160f860020a031916858260ff166020811015156121d857fe5b1a60f860020a02600160f860020a0319161415156121f557600091505b5b60010161218d565b8192505b505092915050565b6000600060006000600061221c612bf4565b6000612226612bf4565b60206040518059106122355750595b908082528060200260200182016040525b50925060208a600381518110151561225a57fe5b90602001015160f860020a900460f860020a0260f860020a90040360040191506122898a836020866000612129565b9250602060405180591061229a5750595b908082528060200260200182016040525b5090506022820191506122f28a60208c600186038151811015156122cb57fe5b90602001015160f860020a900460f860020a0260f860020a90040384016020846000612129565b9050602083015194506020810151935061230f8b601b8787612bad565b809750819850505085600160a060020a0316896040518082805190602001908083835b602083106123515780518252601f199092019160209182019101612332565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004600160a060020a0316141561239a5760019750612427565b6123a78b601c8787612bad565b809750819850505085600160a060020a0316896040518082805190602001908083835b602083106123e95780518252601f1990920191602091820191016123ca565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004600160a060020a03161497505b5b505050505050509392505050565b60006000612442612bf4565b61244a612bf4565b612452612bf4565b61245a612bf4565b612462612bf4565b61246a612bf4565b612472612bf4565b8a8a60010181518110151561248357fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106124ad5750595b908082528060200260200182016040525b5096506124d08b8b89518a6000612129565b5060406040518059106124e05750595b908082528060200260200182016040525b5095506125048b60046040896000612129565b5060626040518059106125145750595b908082528060200260200182016040525b509450600160f860020a0285600081518110151561253f57fe5b906020010190600160f860020a031916908160001a9053506125698b60418c036041886001612129565b50604060405190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c81525093506125b38460006020886042612129565b5061263b6002866000604051602001526040518082805190602001908083835b602083106125f25780518252601f1990920191602091820191016125d3565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561262e57fe5b505060405151888861220a565b975087151561264d57600098506127fa565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106126bb5750595b908082528060200260200182016040525b50915060fe60f860020a028260008151811015156126e657fe5b906020010190600160f860020a031916908160001a90535061270e8b60036041856001612129565b508a604581518110151561271e57fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106127485750595b908082528060200260200182016040525b50905061276c8b60448351846000612129565b506127f46002836000604051602001526040518082805190602001908083835b602083106127ab5780518252601f19909201916020918201910161278c565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f115156127e757fe5b505060405151828561220a565b97508798505b505050505050505092915050565b612810612bf4565b6000600061281c612bf4565b60006000600061282a612bf4565b6000600060008b51995060009850896040518059106128465750595b90808252806020026020018201604052801561287c57816020015b612869612bf4565b8152602001906001900390816128615790505b509750600096505b89871015612914578b8781518110151561289a57fe5b9060200190602002015188888151811015156128b257fe5b906020019060200201819052506017600189898151811015156128d157fe5b9060200190602002015151038115156128e657fe5b0488888151811015156128f557fe5b906020019060200201515101600301890198505b600190960195612884565b60009550896080019450600160ff1689019850886040518059106129355750595b908082528060200260200182016040525b5093505b60018690111561299e5760f860020a8502866001811061296657fe5b1a60f860020a02848781518110151561297b57fe5b906020010190600160f860020a031916908160001a90535060019095019461294a565b600096505b89871015612b9a5783517f5f00000000000000000000000000000000000000000000000000000000000000908590889081106129db57fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b8787815181101515612a0c57fe5b9060200190602002015151831015612b40576017835b061515612acf576018838989815181101515612a3a57fe5b9060200190602002015151031015612a6c57828888815181101515612a5b57fe5b906020019060200201515103612a6f565b60175b60400191508590505b80860360011115612acf5760f860020a820281870360018110612a9757fe5b1a60f860020a028487815181101515612aac57fe5b906020010190600160f860020a031916908160001a905350600190950194612a78565b5b8787815181101515612ade57fe5b9060200190602002015183815181101515612af557fe5b90602001015160f860020a900460f860020a028487815181101515612b1657fe5b906020010190600160f860020a031916908160001a9053506001909501945b6001909201916129fe565b83517fff0000000000000000000000000000000000000000000000000000000000000090859088908110612b7057fe5b906020010190600160f860020a031916908160001a9053506001909501945b6001909601956129a3565b839a505b50505050505050505050919050565b600060006000600060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519150508181935093505b505094509492505050565b60408051602081019091526000815290565b6060604051908101604052806003905b612c1e612bf4565b815260200190600190039081612c165790505090565b60408051602081019091526000815290565b60408051602081019091526000815290565b60408051602081019091526000815290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612cab57805160ff1916838001178555612cd8565b82800160010185558215612cd8579182015b82811115612cd8578251825591602001919060010190612cbd565b5b50612ce5929150612ce9565b5090565b6114bb91905b80821115612ce55760008155600101612cef565b5090565b905600a165627a7a72305820ee57a12f5b42ff76560a19df7862e427a10e5341fcb9d5b4e5615c4e86e22f930029000000000000000000000000c997d07b0bc607b6d1bcb6fb9d4a5579c466c3e500000000000000000000000037f014c64d186eaf879c0033846b51924ce42584
Deployed Bytecode
0x6060604052361561010c5763ffffffff60e060020a60003504166327dc297e81146101d1578063284b1e8e1461022a5780632e5b21681461024c5780633406e3fb1461026e57806338bbfa50146102905780633b5e5376146103265780635478f06f146103485780635cfa353a1461035d57806366476fcc146103725780637a8bd93e1461039e5780637ac37d58146103c0578063880cdc31146103e15780638da5cb5b146103ff5780639619367d1461042b578063a55cd51c1461044d578063b20f41ab14610462578063bd22b1cb14610477578063c8d52ee3146104a3578063d08d6753146104c4578063dee2596b146104e6578063f76c0f4e14610504578063f7cf0aa114610519575b6101cf5b60085460009081908190819033600160a060020a0390811691161461014f5760095434111561013f5760006000fd5b600a5434101561014f5760006000fd5b5b6101797f300000000000000000000000000000000000000000000000000000000000000061052e565b600193506000925062030d409150610192838584610681565b6000818152600f602090815260408083208054600160a060020a03191633600160a060020a03161790556010909152902034905590505b50505050565b005b34156101d957fe5b60408051602060046024803582810135601f81018590048502860185019096528585526101cf958335959394604494939290920191819084018382808284375094965061099295505050505050565b005b341561023257fe5b61023a6109c2565b60408051918252519081900360200190f35b341561025457fe5b61023a6109c8565b60408051918252519081900360200190f35b341561027657fe5b61023a6109ce565b60408051918252519081900360200190f35b341561029857fe5b60408051602060046024803582810135601f81018590048502860185019096528585526101cf958335959394604494939290920191819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979998810197919650918201945092508291508401838280828437509496506109d495505050505050565b005b341561032e57fe5b61023a610df2565b60408051918252519081900360200190f35b341561035057fe5b6101cf600435610df8565b005b341561036557fe5b6101cf600435610e1e565b005b341561037a57fe5b610382610e44565b60408051600160a060020a039092168252519081900360200190f35b34156103a657fe5b61023a610e53565b60408051918252519081900360200190f35b34156103c857fe5b6101cf600160a060020a0360043516602435610e59565b005b34156103e957fe5b6101cf600160a060020a0360043516610eac565b005b341561040757fe5b610382610ee8565b60408051600160a060020a039092168252519081900360200190f35b341561043357fe5b61023a610ef7565b60408051918252519081900360200190f35b341561045557fe5b6101cf600435610efd565b005b341561046a57fe5b6101cf600435610f23565b005b341561047f57fe5b610382610f49565b60408051600160a060020a039092168252519081900360200190f35b34156104ab57fe5b6101cf600160a060020a0360043516602435610f58565b005b34156104cc57fe5b61023a610fa7565b60408051918252519081900360200190f35b34156104ee57fe5b6101cf600160a060020a0360043516610fad565b005b341561050c57fe5b6101cf600435610fe9565b005b341561052157fe5b6101cf60043561100f565b005b600054600160a060020a03161580610558575060005461055690600160a060020a0316611035565b155b1561056957610567600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156105c457fe5b6102c65a03f115156105d257fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190557f688dcfd70000000000000000000000000000000000000000000000000000000083527fff000000000000000000000000000000000000000000000000000000000000008616600484015292519216925063688dcfd791602480830192600092919082900301818387803b151561066b57fe5b6102c65a03f115156101c957fe5b5050505b5b50565b600061068b612bf4565b610693612bf4565b61069b612bf4565b60006106a5612c06565b60008815806106b45750602089115b156106bf5760006000fd5b60016040518059106106ce5750595b908082528060200260200182016040525b5095508860f860020a028660008151811015156106f857fe5b906020010190600160f860020a031916908160001a905350602060405180591061071f5750595b908082528060200260200182016040525b50945060206040518059106107425750595b908082528060200260200182016040525b50935061075e611381565b9250602085524241186001430340186020860152602084528260208501526060604051908101604052808681526020018781526020018581525091506107dc8a604060405190810160405280600681526020017f72616e646f6d0000000000000000000000000000000000000000000000000000815250848b6114bf565b90506109818178010000000000000000000000000000000000000000000000008c028460015b602002015160028660005b60200201516000604051602001526040518082805190602001908083835b6020831061084a5780518252601f19909201916020918201910161082b565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561088657fe5b5050604051518660025b6020020151604051808577ffffffffffffffffffffffffffffffffffffffffffffffff191677ffffffffffffffffffffffffffffffffffffffffffffffff1916815260080184805190602001908083835b602083106109005780518252601f1990920191602091820191016108e1565b51815160209384036101000a60001901801990921691161790529201858152845190830192850191508083835b6020831061094c5780518252601f19909201916020918201910161092d565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040518091039020611659565b8096505b5050505050509392505050565b6109bd828260006040518059106109a65750595b908082528060200260200182016040525b506109d4565b5b5050565b60075481565b60095481565b600b5481565b600083838360008160008151811015156109ea57fe5b90602001015160f860020a900460f860020a02600160f860020a0319167f4c00000000000000000000000000000000000000000000000000000000000000141580610a805750816001815181101515610a3f57fe5b90602001015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b80610aca5750816002815181101515610a9557fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b15610ad55760006000fd5b610ae8828585610ae361166f565b611705565b9050801515610af75760006000fd5b610aff611c75565b600160a060020a031633600160a060020a0316141515610b1f5760006000fd5b610b27611c75565b600160a060020a031633600160a060020a0316141515610b475760006000fd5b7f81e8a1f76d29cefa3945213b11390ebe1ff7e42cb026acf2bec5a38f1c8c0d26876040518080602001828103825283818151815260200191508051906020019080838360008314610bb4575b805182526020831115610bb457601f199092019160209182019101610b94565b505050905090810190601f168015610be05780820380516001836020036101000a031916815260200191505b509250505060405180910390a1866000815181101515610bfc57fe5b0160209081015160f860020a90819004810204600781905560008a81526010909252604090912054600c54909650901315610c7a576000888152600f602052604080822054600b549151600160a060020a03909116928880018390039290920380156108fc0292909190818181858888f193505050501515610c7a57fe5b5b600c5460075413610d1b576000600d541115610d1b576005546000898152600f602052604080822054600d5482517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b1515610d0957fe5b6102c65a03f11515610d1757fe5b5050505b5b600c546007541415610dbd576000600e541115610dbd576006546000898152600f602052604080822054600e5482517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b1515610dab57fe5b6102c65a03f11515610db957fe5b5050505b5b6000888152600f602090815260408083208054600160a060020a031916905560109091528120555b5b5b5050505050505050565b600c5481565b60085433600160a060020a03908116911614610e145760006000fd5b600e8190555b5b50565b60085433600160a060020a03908116911614610e3a5760006000fd5b600b8190555b5b50565b600554600160a060020a031681565b600d5481565b60085433600160a060020a03908116911614610e755760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f1935050505015156109bd5760006000fd5b5b5b5050565b60085433600160a060020a03908116911614610ec85760006000fd5b60088054600160a060020a031916600160a060020a0383161790555b5b50565b600854600160a060020a031681565b600a5481565b60085433600160a060020a03908116911614610f195760006000fd5b60098190555b5b50565b60085433600160a060020a03908116911614610f3f5760006000fd5b600c8190555b5b50565b600654600160a060020a031681565b60085433600160a060020a03908116911614610f745760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f1935050505015156109bd57fe5b5b5b5050565b600e5481565b60085433600160a060020a03908116911614610fc95760006000fd5b60068054600160a060020a031916600160a060020a0383161790555b5b50565b60085433600160a060020a039081169116146110055760006000fd5b600d8190555b5b50565b60085433600160a060020a0390811691161461102b5760006000fd5b600a8190555b5b50565b803b5b919050565b6000600061105e731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611035565b11156110cf5760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e657400000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b60006110ee73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611035565b111561115f5760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e33000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b600061117e73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611035565b11156111ef5760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e000000000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b600061120e73146500cfd35b22e4a392fe0adc06de1a1368ed48611035565b111561127f5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b65627900000000000000000000000000000000000000000060208201526110c790611db3565b506001611038565b600061129e736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611035565b11156112d2575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001611038565b60006112f17320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611035565b1115611325575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001611038565b60006113447351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611035565b1115611378575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001611038565b5060005b919050565b60008054600160a060020a031615806113ac57506000546113aa90600160a060020a0316611035565b155b156113bd576113bb600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561141857fe5b6102c65a03f1151561142657fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840181905284517fabaa5f3e000000000000000000000000000000000000000000000000000000008152945191909216945063abaa5f3e9360048082019493918390030190829087803b15156114a357fe5b6102c65a03f115156114b157fe5b5050604051519150505b5b90565b60006114c9612bf4565b600054600160a060020a031615806114f357506000546114f190600160a060020a0316611035565b155b1561150457611502600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561155f57fe5b6102c65a03f1151561156d57fe5b5050604051805160018054600160a060020a031916600160a060020a03909216919091179055600391508059106115a15750595b9080825280602002602001820160405280156115d757816020015b6115c4612bf4565b8152602001906001900390816115bc5790505b5090508360005b60200201518160008151811015156115f257fe5b602090810290910101528360015b602002015181600181518110151561161457fe5b602090810290910101528360025b602002015181600281518110151561163657fe5b6020908102909101015261164c86868386611dcb565b91505b5b50949350505050565b60008281526003602052604090208190555b5050565b611677612bf4565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156116fa5780601f106116cf576101008083540402835291602001916116fa565b820191906000526020600020905b8154815290600101906020018083116116dd57829003601f168201915b505050505090505b90565b600060006000611713612bf4565b61171b612bf4565b611723612bf4565b61172b612bf4565b60006000611737612bf4565b8d604581518110151561174657fe5b90602001015160f860020a900460f860020a0260f860020a90046002016044016020019750602060405180591061177a5750595b908082528060200260200182016040525b50965061179d8e8960208a6000612129565b5060028b8e6000604051602001526040518083805190602001908083835b602083106117da5780518252601f1990920191602091820191016117bb565b51815160209384036101000a60001901801990921691161790529201938452506040518382019450909290915081900382018160008661646e5a03f1151561181e57fe5b50506040516020808220895190928a92909182918401908083835b602083106118585780518252601f199092019160209182019101611839565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120939093149b508b925061189a9150505760009950611c64565b8d518e90604a8a019081106118ab57fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106118d55750595b908082528060200260200182016040525b5095506118fb8e896049018851896000612129565b506119826002876000604051602001526040518082805190602001908083835b6020831061193a5780518252601f19909201916020918201910161191b565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561197657fe5b5050604051518d612187565b98508815156119945760009950611c64565b60296040518059106119a35750595b908082528060200260200182016040525b5094506119c98e896020016029886000612129565b5060406040518059106119d95750595b908082528060200260200182016040525b509350855188602001602901016041019250611a0e8e604085036040876000612129565b506002846000604051602001526040518082805190602001908083835b60208310611a4a5780518252601f199092019160209182019101611a2b565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f11515611a8657fe5b50506040518051865190935086918491819060208501908083835b60208310611ac05780518252601f199092019160209182019101611aa1565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902060001916600360008f6000191660001916815260200190815260200160002054600019161415611b3a5760008d815260036020526040812055611b43565b60009950611c64565b6049604051805910611b525750595b908082528060200260200182016040525b509050611b758e896049846000612129565b50611bfd6002826000604051602001526040518082805190602001908083835b60208310611bb45780518252601f199092019160209182019101611b95565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f11515611bf057fe5b505060405151878661220a565b9850881515611c0f5760009950611c64565b60008281526004602052604090205460ff161515611c4f57611c318e84612436565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1699505b505050505050505050949350505050565b60008054600160a060020a03161580611ca05750600054611c9e90600160a060020a0316611035565b155b15611cb157611caf600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611d0c57fe5b6102c65a03f11515611d1a57fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840181905284517fc281d19e000000000000000000000000000000000000000000000000000000008152945191909216945063c281d19e9360048082019493918390030190829087803b15156114a357fe5b6102c65a03f115156114b157fe5b5050604051519150505b5b90565b80516109bd906002906020840190612c6a565b505b50565b60006000611dd7612bf4565b600054600160a060020a03161580611e015750600054611dff90600160a060020a0316611035565b155b15611e1257611e10600061103d565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611e6d57fe5b6102c65a03f11515611e7b57fe5b505060408051805160018054600160a060020a031916600160a060020a039283161790819055600060209384015283517f2ef3accc000000000000000000000000000000000000000000000000000000008152602481018a9052600481019485528b5160448201528b51919092169450632ef3accc938b938a9391928392606401918601908083838215611f2a575b805182526020831115611f2a57601f199092019160209182019101611f0a565b505050905090810190601f168015611f565780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515611f7257fe5b6102c65a03f11515611f8057fe5b505060405151925050670de0b6b3a76400003a850201821115611fa6576000925061211e565b611faf85612808565b9050600160009054906101000a9004600160a060020a0316600160a060020a031663c55c1cb683898985896000604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360008314612050575b80518252602083111561205057601f199092019160209182019101612030565b505050905090810190601f16801561207c5780820380516001836020036101000a031916815260200191505b50838103825285518152855160209182019187019080838382156120bb575b8051825260208311156120bb57601f19909201916020918201910161209b565b505050905090810190601f1680156120e75780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561210557fe5b6125ee5a03f1151561211357fe5b505060405151945050505b5b5050949350505050565b612131612bf4565b6000600060008487019250828651101561214b5760006000fd5b505060208087019084015b86886020010182101561217757888201518682015260209182019101612156565b8593505b50505095945050505050565b60006001815b83518160ff1610156121fe57838160ff168151811015156121aa57fe5b90602001015160f860020a900460f860020a02600160f860020a031916858260ff166020811015156121d857fe5b1a60f860020a02600160f860020a0319161415156121f557600091505b5b60010161218d565b8192505b505092915050565b6000600060006000600061221c612bf4565b6000612226612bf4565b60206040518059106122355750595b908082528060200260200182016040525b50925060208a600381518110151561225a57fe5b90602001015160f860020a900460f860020a0260f860020a90040360040191506122898a836020866000612129565b9250602060405180591061229a5750595b908082528060200260200182016040525b5090506022820191506122f28a60208c600186038151811015156122cb57fe5b90602001015160f860020a900460f860020a0260f860020a90040384016020846000612129565b9050602083015194506020810151935061230f8b601b8787612bad565b809750819850505085600160a060020a0316896040518082805190602001908083835b602083106123515780518252601f199092019160209182019101612332565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004600160a060020a0316141561239a5760019750612427565b6123a78b601c8787612bad565b809750819850505085600160a060020a0316896040518082805190602001908083835b602083106123e95780518252601f1990920191602091820191016123ca565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004600160a060020a03161497505b5b505050505050509392505050565b60006000612442612bf4565b61244a612bf4565b612452612bf4565b61245a612bf4565b612462612bf4565b61246a612bf4565b612472612bf4565b8a8a60010181518110151561248357fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106124ad5750595b908082528060200260200182016040525b5096506124d08b8b89518a6000612129565b5060406040518059106124e05750595b908082528060200260200182016040525b5095506125048b60046040896000612129565b5060626040518059106125145750595b908082528060200260200182016040525b509450600160f860020a0285600081518110151561253f57fe5b906020010190600160f860020a031916908160001a9053506125698b60418c036041886001612129565b50604060405190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c81525093506125b38460006020886042612129565b5061263b6002866000604051602001526040518082805190602001908083835b602083106125f25780518252601f1990920191602091820191016125d3565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561262e57fe5b505060405151888861220a565b975087151561264d57600098506127fa565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106126bb5750595b908082528060200260200182016040525b50915060fe60f860020a028260008151811015156126e657fe5b906020010190600160f860020a031916908160001a90535061270e8b60036041856001612129565b508a604581518110151561271e57fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106127485750595b908082528060200260200182016040525b50905061276c8b60448351846000612129565b506127f46002836000604051602001526040518082805190602001908083835b602083106127ab5780518252601f19909201916020918201910161278c565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f115156127e757fe5b505060405151828561220a565b97508798505b505050505050505092915050565b612810612bf4565b6000600061281c612bf4565b60006000600061282a612bf4565b6000600060008b51995060009850896040518059106128465750595b90808252806020026020018201604052801561287c57816020015b612869612bf4565b8152602001906001900390816128615790505b509750600096505b89871015612914578b8781518110151561289a57fe5b9060200190602002015188888151811015156128b257fe5b906020019060200201819052506017600189898151811015156128d157fe5b9060200190602002015151038115156128e657fe5b0488888151811015156128f557fe5b906020019060200201515101600301890198505b600190960195612884565b60009550896080019450600160ff1689019850886040518059106129355750595b908082528060200260200182016040525b5093505b60018690111561299e5760f860020a8502866001811061296657fe5b1a60f860020a02848781518110151561297b57fe5b906020010190600160f860020a031916908160001a90535060019095019461294a565b600096505b89871015612b9a5783517f5f00000000000000000000000000000000000000000000000000000000000000908590889081106129db57fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b8787815181101515612a0c57fe5b9060200190602002015151831015612b40576017835b061515612acf576018838989815181101515612a3a57fe5b9060200190602002015151031015612a6c57828888815181101515612a5b57fe5b906020019060200201515103612a6f565b60175b60400191508590505b80860360011115612acf5760f860020a820281870360018110612a9757fe5b1a60f860020a028487815181101515612aac57fe5b906020010190600160f860020a031916908160001a905350600190950194612a78565b5b8787815181101515612ade57fe5b9060200190602002015183815181101515612af557fe5b90602001015160f860020a900460f860020a028487815181101515612b1657fe5b906020010190600160f860020a031916908160001a9053506001909501945b6001909201916129fe565b83517fff0000000000000000000000000000000000000000000000000000000000000090859088908110612b7057fe5b906020010190600160f860020a031916908160001a9053506001909501945b6001909601956129a3565b839a505b50505050505050505050919050565b600060006000600060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519150508181935093505b505094509492505050565b60408051602081019091526000815290565b6060604051908101604052806003905b612c1e612bf4565b815260200190600190039081612c165790505090565b60408051602081019091526000815290565b60408051602081019091526000815290565b60408051602081019091526000815290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612cab57805160ff1916838001178555612cd8565b82800160010185558215612cd8579182015b82811115612cd8578251825591602001919060010190612cbd565b5b50612ce5929150612ce9565b5090565b6114bb91905b80821115612ce55760008155600101612cef565b5090565b905600a165627a7a72305820ee57a12f5b42ff76560a19df7862e427a10e5341fcb9d5b4e5615c4e86e22f930029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c997d07b0bc607b6d1bcb6fb9d4a5579c466c3e500000000000000000000000037f014c64d186eaf879c0033846b51924ce42584
-----Decoded View---------------
Arg [0] : addressOfFlipToken (address): 0xC997d07b0bC607b6D1bCb6fB9D4a5579c466c3E5
Arg [1] : addressOfMillionDollarToken (address): 0x37f014c64d186EAf879C0033846B51924cE42584
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c997d07b0bc607b6d1bcb6fb9d4a5579c466c3e5
Arg [1] : 00000000000000000000000037f014c64d186eaf879c0033846b51924ce42584
Swarm Source
bzzr://ee57a12f5b42ff76560a19df7862e427a10e5341fcb9d5b4e5615c4e86e22f93
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,945.13 | 0.0242 | $95.4 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.