Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,480 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
__callback | 4939237 | 2418 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4939171 | 2418 days ago | IN | 0 ETH | 0.00919819 | ||||
__callback | 4938973 | 2418 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4938956 | 2418 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4938677 | 2418 days ago | IN | 0 ETH | 0.00919819 | ||||
__callback | 4938423 | 2418 days ago | IN | 0 ETH | 0.00919819 | ||||
__callback | 4938422 | 2418 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4938422 | 2418 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4938422 | 2418 days ago | IN | 0 ETH | 0.00602904 | ||||
__callback | 4937924 | 2418 days ago | IN | 0 ETH | 0.00919819 | ||||
__callback | 4935367 | 2418 days ago | IN | 0 ETH | 0.00602904 | ||||
__callback | 4933500 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4932875 | 2419 days ago | IN | 0 ETH | 0.00593128 | ||||
__callback | 4932683 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4932602 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4932580 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4932446 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4931962 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4931899 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4931711 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4929007 | 2419 days ago | IN | 0 ETH | 0.00580476 | ||||
__callback | 4928998 | 2419 days ago | IN | 0 ETH | 0.00602648 | ||||
__callback | 4928916 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4928886 | 2419 days ago | IN | 0 ETH | 0.0060316 | ||||
__callback | 4928732 | 2419 days ago | IN | 0 ETH | 0.0060316 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
6127341 | 2214 days ago | 0.00035262 ETH | ||||
4939232 | 2418 days ago | 0.000246 ETH | ||||
4939035 | 2418 days ago | 0.000246 ETH | ||||
4938968 | 2418 days ago | 0.000246 ETH | ||||
4938954 | 2418 days ago | 0.000246 ETH | ||||
4938579 | 2418 days ago | 0.000246 ETH | ||||
4938411 | 2418 days ago | 0.000246 ETH | ||||
4938411 | 2418 days ago | 0.000246 ETH | ||||
4938411 | 2418 days ago | 0.000246 ETH | ||||
4937839 | 2418 days ago | 0.000246 ETH | ||||
4935365 | 2418 days ago | 0.000246 ETH | ||||
4933498 | 2419 days ago | 0.000246 ETH | ||||
4932870 | 2419 days ago | 0.000246 ETH | ||||
4932681 | 2419 days ago | 0.000246 ETH | ||||
4932600 | 2419 days ago | 0.000246 ETH | ||||
4932576 | 2419 days ago | 0.000246 ETH | ||||
4932442 | 2419 days ago | 0.000246 ETH | ||||
4931958 | 2419 days ago | 0.000246 ETH | ||||
4931893 | 2419 days ago | 0.000246 ETH | ||||
4931706 | 2419 days ago | 0.000246 ETH | ||||
4931270 | 2419 days ago | 0.000246 ETH | ||||
4928995 | 2419 days ago | 0.000246 ETH | ||||
4928913 | 2419 days ago | 0.000246 ETH | ||||
4928883 | 2419 days ago | 0.000246 ETH | ||||
4928729 | 2419 days ago | 0.000246 ETH |
Loading...
Loading
Contract Name:
BTHCrossFork
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-10 */ // <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.16; 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); if(address(oraclize) != OAR.getAddress()) oraclize = OraclizeI(OAR.getAddress()); _; } modifier coupon(string code){ oraclize = OraclizeI(OAR.getAddress()); oraclize.useCoupon(code); _; } function oraclize_setNetwork(uint8 networkID) internal returns(bool){ 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) { } 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) { 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, "", "", ""); } function strConcat(string _a, string _b, string _c, string _d, string _e, string _f, string _g) internal returns (string){ return strConcat(strConcat(_a, _b), strConcat(_c, _d, _e, _f, _g)); } // 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(); 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 oraclize_randomDS_proofVerify__returnCode(bytes32 _queryId, string _result, bytes _proof) internal returns (uint8){ // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1) if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) return 1; bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName()); if (proofVerified == false) return 2; return 0; } 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) { 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. // 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> // copyright [email protected] contract BasicUtility { function stringToUint(string s) constant internal returns (uint result) { bytes memory b = bytes(s); uint i; result = 0; for (i = 0; i < b.length; i++) { uint c = uint(b[i]); if (c >= 48 && c <= 57) { result = result * 10 + (c - 48); } } } function checkValidBitcoinAddress(string bitcoinAddress) constant internal returns (bool) { bytes memory bitcoinAddressBytes = bytes(bitcoinAddress); if (bitcoinAddressBytes.length < 20) return false; for(uint i = 0; i < bitcoinAddressBytes.length; i++) { if (bitcoinAddressBytes[i] < 48 || (bitcoinAddressBytes[i] > 57 && bitcoinAddressBytes[i] < 65) || (bitcoinAddressBytes[i] > 90 && bitcoinAddressBytes[i] < 97) || bitcoinAddressBytes[i] > 122) return false; } return true; } function checkValidBase64(string sig) constant internal returns (bool) { bytes memory sigBytes = bytes(sig); for(uint i = 0; i < sigBytes.length; i++) { if (sigBytes[i] == 43) continue; if (sigBytes[i] == 47) continue; if (sigBytes[i] == 61) continue; if (sigBytes[i] >= 48 && sigBytes[i] <= 57) continue; if (sigBytes[i] >= 65 && sigBytes[i] <= 90) continue; if (sigBytes[i] >= 97 && sigBytes[i] <= 122) continue; return false; } return true; } function addressToString(address x) constant internal returns (string) { bytes memory s = new bytes(40); for (uint i = 0; i < 20; i++) { byte b = byte(uint8(uint(x) / (2**(8*(19 - i))))); byte hi = byte(uint8(b) / 16); byte lo = byte(uint8(b) - 16 * uint8(hi)); s[2*i] = getChar(hi); s[2*i+1] = getChar(lo); } return string(s); } function getChar(byte b) constant internal returns (byte c) { if (b < 10) return byte(uint8(b) + 0x30); else return byte(uint8(b) + 0x57); } } contract BasicAccessControl { address public owner; address[] public moderators; function BasicAccessControl() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } modifier onlyModerators() { if (msg.sender != owner) { bool found = false; for (uint index = 0; index < moderators.length; index++) { if (moderators[index] == msg.sender) { found = true; break; } } require(found); } _; } function ChangeOwner(address _newOwner) onlyOwner public { if (_newOwner != address(0)) { owner = _newOwner; } } function Kill() onlyOwner public { selfdestruct(owner); } function AddModerator(address _newModerator) onlyOwner public { if (_newModerator != address(0)) { for (uint index = 0; index < moderators.length; index++) { if (moderators[index] == _newModerator) { return; } } moderators.push(_newModerator); } } function RemoveModerator(address _oldModerator) onlyOwner public { uint foundIndex = 0; for (; foundIndex < moderators.length; foundIndex++) { if (moderators[foundIndex] == _oldModerator) { break; } } if (foundIndex < moderators.length) { moderators[foundIndex] = moderators[moderators.length-1]; delete moderators[moderators.length-1]; moderators.length--; } } } interface CrossForkDistribution { function getDistributedAmount(uint64 _requestId, string _btcAddress, address _receiver) public; } interface CrossForkCallback { function callbackCrossFork(uint64 _requestId, uint256 _amount, bytes32 _referCodeHash) public; } interface BytetherOVI { function GetOwnership(string _btcAddress) constant public returns(address, bytes32); } contract BTHCrossFork is usingOraclize, BasicUtility, BasicAccessControl, CrossForkDistribution { enum QueryResultCode { SUCCESS, NOT_ENOUGH_BALANCE, INVALID_QUERY, INVALID_OV_VERIFY, INVALID_BITCOIN_ADDRESS } struct QueryInfo { uint64 requestId; address sender; } mapping(bytes32=>QueryInfo) queries; string public verifyUrl = ""; uint64 public crossForkBlockNumber = 478558; uint public gasLimit = 200000; uint public gasPrice = 20000000000 wei; event LogReceiveQuery(bytes32 indexed queryId, uint64 requestId, uint256 amount, QueryResultCode resultCode); event LogTriggerQuery(bytes32 indexed btcAddressHash, uint64 requestId, address receiver, QueryResultCode resultCode); function BTHCrossFork(string _verifyUrl, uint64 _crossForkBlockNumber) public { verifyUrl = _verifyUrl; crossForkBlockNumber = _crossForkBlockNumber; oraclize_setProof(proofType_TLSNotary | proofStorage_IPFS); } function () payable public {} function setOraclizeGasPrice(uint _gasPrice) onlyModerators public { gasPrice = _gasPrice; oraclize_setCustomGasPrice(gasPrice); } function setOraclizeGasLimit(uint _gasLimit) onlyModerators public { gasLimit = _gasLimit; } // moderator function function setVerifyUrl(string _verifyUrl) onlyModerators public { verifyUrl = _verifyUrl; } function setCrossForkBlockNumber(uint64 _blockNumber) onlyModerators public { crossForkBlockNumber = _blockNumber; } // public function extractBTHAmount(string result) constant public returns(uint256, bytes32) { // result format v=xxxx&r=0x uint256 value = 0; bytes memory b = bytes(result); uint referCodeHash = 0; // verify correct format if (b[0] != 118 || b[1] != 61) return (value, bytes32(referCodeHash)); uint i = 2; for (i = 2; i < b.length; i++) { if (b[i] < 48 || b[i] > 57) break; value = value * 10 + (uint256(b[i]) - 48); } if (i+5>b.length || b[i] != 38 || b[i+1] != 114 || b[i+2] != 61 || b[i+3]!=48 || b[i+4]!=120) return (value, bytes32(referCodeHash)); for (i=i+5; i < b.length; i++) { uint c = uint(b[i]); if (c >= 48 && c <= 57) { referCodeHash = referCodeHash * 16 + (c - 48); } if(c >= 65 && c<= 90) { referCodeHash = referCodeHash * 16 + (c - 55); } if(c >= 97 && c<= 122) { referCodeHash = referCodeHash * 16 + (c - 87); } } return (value, bytes32(referCodeHash)); } function __callback(bytes32 _queryId, string _result, bytes proof) public { if (msg.sender != oraclize_cbAddress()) { LogReceiveQuery(_queryId, 0, 0, QueryResultCode.INVALID_QUERY); return; } QueryInfo storage info = queries[_queryId]; if (info.sender == 0x0) { LogReceiveQuery(_queryId, info.requestId, 0, QueryResultCode.INVALID_QUERY); return; } uint256 amount = 0; bytes32 referCodeHash = 0; (amount, referCodeHash) = extractBTHAmount(_result); CrossForkCallback crossfork = CrossForkCallback(info.sender); crossfork.callbackCrossFork(info.requestId, amount, referCodeHash); LogReceiveQuery(_queryId, info.requestId, amount, QueryResultCode.SUCCESS); } function getDistributedAmount(uint64 _requestId, string _btcAddress, address _receiver) public { // get refercode & basic verify bytes32 btcAddressHash = keccak256(_btcAddress); if (!checkValidBitcoinAddress(_btcAddress)) { LogTriggerQuery(btcAddressHash, _requestId, _receiver, QueryResultCode.INVALID_BITCOIN_ADDRESS); return; } // query external api to check bitcoin txn & balance by btcAddress & verifyCode if (oraclize_getPrice("URL") > this.balance) { LogTriggerQuery(btcAddressHash, _requestId, _receiver, QueryResultCode.NOT_ENOUGH_BALANCE); return; } bytes32 queryId = oraclize_query( "URL", verifyUrl, strConcat( '{"btc_address":"', _btcAddress, '","eth_address":"', addressToString(_receiver), '","block_number":"', uint2str(crossForkBlockNumber), '"}'), gasLimit ); QueryInfo storage info = queries[queryId]; info.requestId = _requestId; info.sender = msg.sender; LogTriggerQuery(btcAddressHash, _requestId, _receiver, QueryResultCode.SUCCESS); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"result","type":"string"}],"name":"extractBTHAmount","outputs":[{"name":"","type":"uint256"},{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"verifyUrl","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_verifyUrl","type":"string"}],"name":"setVerifyUrl","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newModerator","type":"address"}],"name":"AddModerator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_gasPrice","type":"uint256"}],"name":"setOraclizeGasPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"crossForkBlockNumber","outputs":[{"name":"","type":"uint64"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_gasLimit","type":"uint256"}],"name":"setOraclizeGasLimit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_requestId","type":"uint64"},{"name":"_btcAddress","type":"string"},{"name":"_receiver","type":"address"}],"name":"getDistributedAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_oldModerator","type":"address"}],"name":"RemoveModerator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"moderators","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"Kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_blockNumber","type":"uint64"}],"name":"setCrossForkBlockNumber","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"ChangeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gasLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gasPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_verifyUrl","type":"string"},{"name":"_crossForkBlockNumber","type":"uint64"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"queryId","type":"bytes32"},{"indexed":false,"name":"requestId","type":"uint64"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"resultCode","type":"uint8"}],"name":"LogReceiveQuery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"btcAddressHash","type":"bytes32"},{"indexed":false,"name":"requestId","type":"uint64"},{"indexed":false,"name":"receiver","type":"address"},{"indexed":false,"name":"resultCode","type":"uint8"}],"name":"LogTriggerQuery","type":"event"}]
Contract Creation Code
60606040526020604051908101604052806000815250600890805190602001906200002c92919062000ad0565b5062074d5e600960006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555062030d40600a556404a817c800600b5534156200007557600080fd5b60405162005343380380620053438339810160405280805182019190602001805190602001909190505033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160089080519060200190620000f892919062000ad0565b5080600960006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506200018960017f01000000000000000000000000000000000000000000000000000000000000000260107f01000000000000000000000000000000000000000000000000000000000000000217620001916401000000000262004436176401000000009004565b505062000b7f565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806200021757506000620002156000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166200051864010000000002620038e6176401000000009004565b145b156200023f576200023d60006200052364010000000002620038f1176401000000009004565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515620002cd57600080fd5b6102c65a03f11515620002df57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156200042b576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515620003ce57600080fd5b6102c65a03f11515620003e057600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b15156200050057600080fd5b6102c65a03f115156200051257600080fd5b50505050565b6000813b9050919050565b60008062000559731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6200051864010000000002620038e6176401000000009004565b11156200061257731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620006086040805190810160405280600b81526020017f6574685f6d61696e6e657400000000000000000000000000000000000000000081525062000ab464010000000002620042f7176401000000009004565b6001905062000aaf565b60006200064773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16200051864010000000002620038e6176401000000009004565b1115620007005773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620006f66040805190810160405280600c81526020017f6574685f726f707374656e33000000000000000000000000000000000000000081525062000ab464010000000002620042f7176401000000009004565b6001905062000aaf565b60006200073573b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6200051864010000000002620038e6176401000000009004565b1115620007ee5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620007e46040805190810160405280600981526020017f6574685f6b6f76616e000000000000000000000000000000000000000000000081525062000ab464010000000002620042f7176401000000009004565b6001905062000aaf565b60006200082373146500cfd35b22e4a392fe0adc06de1a1368ed486200051864010000000002620038e6176401000000009004565b1115620008dc5773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620008d26040805190810160405280600b81526020017f6574685f72696e6b65627900000000000000000000000000000000000000000081525062000ab464010000000002620042f7176401000000009004565b6001905062000aaf565b600062000911736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756200051864010000000002620038e6176401000000009004565b11156200097657736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905062000aaf565b6000620009ab7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6200051864010000000002620038e6176401000000009004565b111562000a10577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905062000aaf565b600062000a457351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6200051864010000000002620038e6176401000000009004565b111562000aaa577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905062000aaf565b600090505b919050565b806002908051906020019062000acc92919062000ad0565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000b1357805160ff191683800117855562000b44565b8280016001018555821562000b44579182015b8281111562000b4357825182559160200191906001019062000b26565b5b50905062000b53919062000b57565b5090565b62000b7c91905b8082111562000b7857600081600090555060010162000b5e565b5090565b90565b6147b48062000b8f6000396000f3006060604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630951877e146100fe57806323b6fc8b1461017e57806327dc297e1461020c57806338bbfa50146102765780635c31d69d146103235780636c81fd6d1461038057806371c82c14146103b95780637c132f2c146103dc5780638da5cb5b146104195780638ddf792b1461046e57806397be2f4a14610491578063b85d627514610520578063bd842a1114610559578063be26733c146105bc578063cfff1232146105d1578063f2853292146105fe578063f68016b714610637578063fe173b9714610660575b005b341561010957600080fd5b610159600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610689565b6040518083815260200182600019166000191681526020019250505060405180910390f35b341561018957600080fd5b610191610e7f565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101d15780820151818401526020810190506101b6565b50505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021757600080fd5b61027460048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610f1d565b005b341561028157600080fd5b61032160048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610f4f565b005b341561032e57600080fd5b61037e600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050611283565b005b341561038b57600080fd5b6103b7600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506113a0565b005b34156103c457600080fd5b6103da600480803590602001909190505061152f565b005b34156103e757600080fd5b6103ef611647565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b341561042457600080fd5b61042c611661565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561047957600080fd5b61048f6004808035906020019091905050611687565b005b341561049c57600080fd5b61051e600480803567ffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611794565b005b341561052b57600080fd5b610557600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611cc9565b005b341561056457600080fd5b61057a6004808035906020019091905050611ec1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105c757600080fd5b6105cf611f00565b005b34156105dc57600080fd5b6105fc600480803567ffffffffffffffff16906020019091905050611f97565b005b341561060957600080fd5b610635600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506120c6565b005b341561064257600080fd5b61064a61219d565b6040518082815260200191505060405180910390f35b341561066b57600080fd5b6106736121a3565b6040518082815260200191505060405180910390f35b6000806000610696614311565b60008060008094508793506000925060767f0100000000000000000000000000000000000000000000000000000000000000028460008151811015156106d857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415806107f05750603d7f01000000000000000000000000000000000000000000000000000000000000000284600181518110151561078057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b1561080357848360010296509650610e75565b60029150600291505b83518210156109f95760307f010000000000000000000000000000000000000000000000000000000000000002848381518110151561084757fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916108061095c575060397f01000000000000000000000000000000000000000000000000000000000000000284838151811015156108ed57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916115b15610966576109f9565b6030848381518110151561097657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900403600a8602019450818060010192505061080c565b8351600583011180610aa8575060267f0100000000000000000000000000000000000000000000000000000000000000028483815181101515610a3857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610b53575060727f0100000000000000000000000000000000000000000000000000000000000000028460018401815181101515610ae357fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610bfe5750603d7f0100000000000000000000000000000000000000000000000000000000000000028460028401815181101515610b8e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610ca9575060307f0100000000000000000000000000000000000000000000000000000000000000028460038401815181101515610c3957fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610d54575060787f0100000000000000000000000000000000000000000000000000000000000000028460048401815181101515610ce457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15610d6757848360010296509650610e75565b6005820191505b8351821015610e6b578382815181101515610d8557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004905060308110158015610e07575060398111155b15610e185760308103601084020192505b60418110158015610e2a5750605a8111155b15610e3b5760378103601084020192505b60618110158015610e4d5750607a8111155b15610e5e5760578103601084020192505b8180600101925050610d6e565b8483600102965096505b5050505050915091565b60088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f155780601f10610eea57610100808354040283529160200191610f15565b820191906000526020600020905b815481529060010190602001808311610ef857829003601f168201915b505050505081565b610f4b82826000604051805910610f315750595b9080825280601f01601f1916602001820160405250610f4f565b5050565b600080600080610f5d6121a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ffc5786600019167f6e9ddeafba3c6efb137aad14ec0322ed970574b4e4ac66efd2894859ee96abfe6000806002604051808467ffffffffffffffff168152602001838152602001826004811115610fe257fe5b60ff168152602001935050505060405180910390a261127a565b600760008860001916600019168152602001908152602001600020935060008460000160089054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156110e95786600019167f6e9ddeafba3c6efb137aad14ec0322ed970574b4e4ac66efd2894859ee96abfe8560000160009054906101000a900467ffffffffffffffff1660006002604051808467ffffffffffffffff1667ffffffffffffffff1681526020018381526020018260048111156110cf57fe5b60ff168152602001935050505060405180910390a261127a565b60009250600060010291506110fd86610689565b80935081945050508360000160089054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663629615df8560000160009054906101000a900467ffffffffffffffff1685856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808467ffffffffffffffff1667ffffffffffffffff16815260200183815260200182600019166000191681526020019350505050600060405180830381600087803b15156111de57600080fd5b6102c65a03f115156111ef57600080fd5b50505086600019167f6e9ddeafba3c6efb137aad14ec0322ed970574b4e4ac66efd2894859ee96abfe8560000160009054906101000a900467ffffffffffffffff16856000604051808467ffffffffffffffff1667ffffffffffffffff16815260200183815260200182600481111561126457fe5b60ff168152602001935050505060405180910390a25b50505050505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113845760009150600090505b600680549050811015611377573373ffffffffffffffffffffffffffffffffffffffff1660068281548110151561131957fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561136a5760019150611377565b80806001019150506112e6565b81151561138357600080fd5b5b826008908051906020019061139a929190614325565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113fe57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151561152a57600090505b6006805490508110156114c6578173ffffffffffffffffffffffffffffffffffffffff1660068281548110151561146c57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156114b95761152b565b8080600101915050611439565b600680548060010182816114da91906143a5565b9160005260206000209001600084909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b5b5050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156116305760009150600090505b600680549050811015611623573373ffffffffffffffffffffffffffffffffffffffff166006828154811015156115c557fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156116165760019150611623565b8080600101915050611592565b81151561162f57600080fd5b5b82600b81905550611642600b546124bf565b505050565b600960009054906101000a900467ffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156117885760009150600090505b60068054905081101561177b573373ffffffffffffffffffffffffffffffffffffffff1660068281548110151561171d57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561176e576001915061177b565b80806001019150506116ea565b81151561178757600080fd5b5b82600a81905550505050565b6000806000846040518082805190602001908083835b6020831015156117cf57805182526020820191506020810190506020830392506117aa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209250611807856127cd565b15156118ad5782600019167f01dbbc21fc03b74eb4e677446bd2e8ce395db326e4ede0688356819caebaca0987866004604051808467ffffffffffffffff1667ffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182600481111561189357fe5b60ff168152602001935050505060405180910390a2611cc1565b3073ffffffffffffffffffffffffffffffffffffffff16316119036040805190810160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250612c09565b11156119a95782600019167f01dbbc21fc03b74eb4e677446bd2e8ce395db326e4ede0688356819caebaca0987866001604051808467ffffffffffffffff1667ffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182600481111561198f57fe5b60ff168152602001935050505060405180910390a2611cc1565b611b986040805190810160405280600381526020017f55524c000000000000000000000000000000000000000000000000000000000081525060088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a785780601f10611a4d57610100808354040283529160200191611a78565b820191906000526020600020905b815481529060010190602001808311611a5b57829003601f168201915b5050505050611b906040805190810160405280601081526020017f7b226274635f61646472657373223a2200000000000000000000000000000000815250896040805190810160405280601181526020017f222c226574685f61646472657373223a22000000000000000000000000000000815250611af68b612f91565b6040805190810160405280601281526020017f222c22626c6f636b5f6e756d626572223a220000000000000000000000000000815250611b55600960009054906101000a900467ffffffffffffffff1667ffffffffffffffff166131a2565b6040805190810160405280600281526020017f227d0000000000000000000000000000000000000000000000000000000000008152506132f4565b600a54613328565b91506007600083600019166000191681526020019081526020016000209050858160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550338160000160086101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600019167f01dbbc21fc03b74eb4e677446bd2e8ce395db326e4ede0688356819caebaca0987866000604051808467ffffffffffffffff1667ffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001826004811115611cab57fe5b60ff168152602001935050505060405180910390a25b505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611d2757600080fd5b600090505b600680549050811015611db9578173ffffffffffffffffffffffffffffffffffffffff16600682815481101515611d5f57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611dac57611db9565b8080600101915050611d2c565b600680549050811015611ebd576006600160068054905003815481101515611ddd57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600682815481101515611e1857fe5b906000526020600020900160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506006600160068054905003815481101515611e7857fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556006805480919060019003611ebb91906143d1565b505b5050565b600681815481101515611ed057fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611f5c57600080fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156120985760009150600090505b60068054905081101561208b573373ffffffffffffffffffffffffffffffffffffffff1660068281548110151561202d57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561207e576001915061208b565b8080600101915050611ffa565b81151561209757600080fd5b5b82600960006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561212257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561219a5780600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b600a5481565b600b5481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612219575060006122176000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b1561222a5761222860006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156122b757600080fd5b6102c65a03f115156122c857600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612411576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156123b557600080fd5b6102c65a03f115156123c657600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561249f57600080fd5b6102c65a03f115156124b057600080fd5b50505060405180519050905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061252e5750600061252c6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b1561253f5761253d60006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156125cc57600080fd5b6102c65a03f115156125dd57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612726576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156126ca57600080fd5b6102c65a03f115156126db57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca6ad1e4826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15156127b657600080fd5b6102c65a03f115156127c757600080fd5b50505050565b60006127d7614311565b60008391506014825110156127ef5760009250612c02565b600090505b8151811015612bfd5760307f010000000000000000000000000000000000000000000000000000000000000002828281518110151561282f57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610806129ec575060397f01000000000000000000000000000000000000000000000000000000000000000282828151811015156128d557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161180156129eb575060417f010000000000000000000000000000000000000000000000000000000000000002828281518110151561297c57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916105b5b80612b3b5750605a7f0100000000000000000000000000000000000000000000000000000000000000028282815181101515612a2457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916118015612b3a575060617f0100000000000000000000000000000000000000000000000000000000000000028282815181101515612acb57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916105b5b80612be25750607a7f0100000000000000000000000000000000000000000000000000000000000000028282815181101515612b7357fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916115b15612bf05760009250612c02565b80806001019150506127f4565b600192505b5050919050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612c7957506000612c776000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b15612c8a57612c8860006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612d1757600080fd5b6102c65a03f11515612d2857600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612e71576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612e1557600080fd5b6102c65a03f11515612e2657600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663524f3889836000604051602001526040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f24578082015181840152602081019050612f09565b50505050905090810190601f168015612f515780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b1515612f6f57600080fd5b6102c65a03f11515612f8057600080fd5b505050604051805190509050919050565b612f996143fd565b612fa1614311565b6000806000806028604051805910612fb65750595b9080825280601f01601f19166020018201604052509450600093505b6014841015613195578360130360080260020a8773ffffffffffffffffffffffffffffffffffffffff1681151561300557fe5b047f01000000000000000000000000000000000000000000000000000000000000000292506010837f0100000000000000000000000000000000000000000000000000000000000000900460ff1681151561305c57fe5b047f0100000000000000000000000000000000000000000000000000000000000000029150817f01000000000000000000000000000000000000000000000000000000000000009004601002837f01000000000000000000000000000000000000000000000000000000000000009004037f01000000000000000000000000000000000000000000000000000000000000000290506130fa82613d82565b858560020281518110151561310b57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061314481613d82565b856001866002020181518110151561315857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508380600101945050612fd2565b8495505050505050919050565b6131aa6143fd565b6000806131b5614311565b6000808614156131fc576040805190810160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525094506132eb565b8593505b600084141515613226578280600101935050600a8481151561321e57fe5b049350613200565b826040518059106132345750595b9080825280601f01601f191660200182016040525091506001830390505b6000861415156132e757600a8681151561326857fe5b066030017f0100000000000000000000000000000000000000000000000000000000000000028282806001900393508151811015156132a357fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868115156132df57fe5b049550613252565b8194505b50505050919050565b6132fc6143fd565b61331b6133098989613e72565b6133168888888888613ebf565b613e72565b9050979650505050505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061339a575060006133986000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b156133ab576133a960006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561343857600080fd5b6102c65a03f1151561344957600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613592576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561353657600080fd5b6102c65a03f1151561354757600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc87856000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561364c578082015181840152602081019050613631565b50505050905090810190601f1680156136795780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561369857600080fd5b6102c65a03f115156136a957600080fd5b505050604051805190509050823a02670de0b6b3a7640000018111156136d557600060010291506138dd565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166385dee34c826000898989896000604051602001526040518763ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180868152602001806020018060200180602001858152602001848103845288818151815260200191508051906020019080838360005b838110156137a2578082015181840152602081019050613787565b50505050905090810190601f1680156137cf5780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b838110156138085780820151818401526020810190506137ed565b50505050905090810190601f1680156138355780820380516001836020036101000a031916815260200191505b50848103825286818151815260200191508051906020019080838360005b8381101561386e578082015181840152602081019050613853565b50505050905090810190601f16801561389b5780820380516001836020036101000a031916815260200191505b50985050505050505050506020604051808303818588803b15156138be57600080fd5b6125ee5a03f115156138cf57600080fd5b505050506040518051905091505b50949350505050565b6000813b9050919050565b600080613911731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6138e6565b11156139b257731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506139a96040805190810160405280600b81526020017f6574685f6d61696e6e65740000000000000000000000000000000000000000008152506142f7565b60019050613d7d565b60006139d173c03a2615d5efaf5f49f60b7bb6583eaec212fdf16138e6565b1115613a725773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613a696040805190810160405280600c81526020017f6574685f726f707374656e3300000000000000000000000000000000000000008152506142f7565b60019050613d7d565b6000613a9173b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6138e6565b1115613b325773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613b296040805190810160405280600981526020017f6574685f6b6f76616e00000000000000000000000000000000000000000000008152506142f7565b60019050613d7d565b6000613b5173146500cfd35b22e4a392fe0adc06de1a1368ed486138e6565b1115613bf25773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613be96040805190810160405280600b81526020017f6574685f72696e6b6562790000000000000000000000000000000000000000008152506142f7565b60019050613d7d565b6000613c11736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756138e6565b1115613c7457736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050613d7d565b6000613c937320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6138e6565b1115613cf6577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050613d7d565b6000613d157351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6138e6565b1115613d78577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050613d7d565b600090505b919050565b6000600a7f010000000000000000000000000000000000000000000000000000000000000002827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161015613e21576030827f01000000000000000000000000000000000000000000000000000000000000009004017f0100000000000000000000000000000000000000000000000000000000000000029050613e6d565b6057827f01000000000000000000000000000000000000000000000000000000000000009004017f01000000000000000000000000000000000000000000000000000000000000000290505b919050565b613e7a6143fd565b613eb78383602060405190810160405280600081525060206040519081016040528060008152506020604051908101604052806000815250613ebf565b905092915050565b613ec76143fd565b613ecf614311565b613ed7614311565b613edf614311565b613ee7614311565b613eef614311565b613ef76143fd565b613eff614311565b6000808e98508d97508c96508b95508a94508451865188518a518c5101010101604051805910613f2c5750595b9080825280601f01601f1916602001820160405250935083925060009150600090505b8851811015614002578881815181101515613f6657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515613fc557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050613f4f565b600090505b87518110156140ba57878181518110151561401e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561407d57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614007565b600090505b86518110156141725786818151811015156140d657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561413557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506140bf565b600090505b855181101561422a57858181518110151561418e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156141ed57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614177565b600090505b84518110156142e257848181518110151561424657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156142a557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061422f565b82995050505050505050505095945050505050565b806002908051906020019061430d929190614325565b5050565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061436657805160ff1916838001178555614394565b82800160010185558215614394579182015b82811115614393578251825591602001919060010190614378565b5b5090506143a19190614411565b5090565b8154818355818115116143cc578183600052602060002091820191016143cb9190614411565b5b505050565b8154818355818115116143f8578183600052602060002091820191016143f79190614411565b5b505050565b602060405190810160405280600081525090565b61443391905b8082111561442f576000816000905550600101614417565b5090565b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806144a5575060006144a36000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b156144b6576144b460006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561454357600080fd5b6102c65a03f1151561455457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561469d576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561464157600080fd5b6102c65a03f1151561465257600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b151561477157600080fd5b6102c65a03f1151561478257600080fd5b505050505600a165627a7a72305820bd061c65e9f20718e00dcfb8f9a1556e295ea97a42472ba8dc6c982520e60f96002900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000074d5e000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f7777772e62797465746865722e636f6d2f6f7261636c697a652f6765745f6274685f76616c75650000000000000000000000000000000000
Deployed Bytecode
0x6060604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630951877e146100fe57806323b6fc8b1461017e57806327dc297e1461020c57806338bbfa50146102765780635c31d69d146103235780636c81fd6d1461038057806371c82c14146103b95780637c132f2c146103dc5780638da5cb5b146104195780638ddf792b1461046e57806397be2f4a14610491578063b85d627514610520578063bd842a1114610559578063be26733c146105bc578063cfff1232146105d1578063f2853292146105fe578063f68016b714610637578063fe173b9714610660575b005b341561010957600080fd5b610159600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610689565b6040518083815260200182600019166000191681526020019250505060405180910390f35b341561018957600080fd5b610191610e7f565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101d15780820151818401526020810190506101b6565b50505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021757600080fd5b61027460048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610f1d565b005b341561028157600080fd5b61032160048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610f4f565b005b341561032e57600080fd5b61037e600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050611283565b005b341561038b57600080fd5b6103b7600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506113a0565b005b34156103c457600080fd5b6103da600480803590602001909190505061152f565b005b34156103e757600080fd5b6103ef611647565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b341561042457600080fd5b61042c611661565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561047957600080fd5b61048f6004808035906020019091905050611687565b005b341561049c57600080fd5b61051e600480803567ffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611794565b005b341561052b57600080fd5b610557600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611cc9565b005b341561056457600080fd5b61057a6004808035906020019091905050611ec1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105c757600080fd5b6105cf611f00565b005b34156105dc57600080fd5b6105fc600480803567ffffffffffffffff16906020019091905050611f97565b005b341561060957600080fd5b610635600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506120c6565b005b341561064257600080fd5b61064a61219d565b6040518082815260200191505060405180910390f35b341561066b57600080fd5b6106736121a3565b6040518082815260200191505060405180910390f35b6000806000610696614311565b60008060008094508793506000925060767f0100000000000000000000000000000000000000000000000000000000000000028460008151811015156106d857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415806107f05750603d7f01000000000000000000000000000000000000000000000000000000000000000284600181518110151561078057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b1561080357848360010296509650610e75565b60029150600291505b83518210156109f95760307f010000000000000000000000000000000000000000000000000000000000000002848381518110151561084757fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916108061095c575060397f01000000000000000000000000000000000000000000000000000000000000000284838151811015156108ed57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916115b15610966576109f9565b6030848381518110151561097657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900403600a8602019450818060010192505061080c565b8351600583011180610aa8575060267f0100000000000000000000000000000000000000000000000000000000000000028483815181101515610a3857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610b53575060727f0100000000000000000000000000000000000000000000000000000000000000028460018401815181101515610ae357fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610bfe5750603d7f0100000000000000000000000000000000000000000000000000000000000000028460028401815181101515610b8e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610ca9575060307f0100000000000000000000000000000000000000000000000000000000000000028460038401815181101515610c3957fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80610d54575060787f0100000000000000000000000000000000000000000000000000000000000000028460048401815181101515610ce457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15610d6757848360010296509650610e75565b6005820191505b8351821015610e6b578382815181101515610d8557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004905060308110158015610e07575060398111155b15610e185760308103601084020192505b60418110158015610e2a5750605a8111155b15610e3b5760378103601084020192505b60618110158015610e4d5750607a8111155b15610e5e5760578103601084020192505b8180600101925050610d6e565b8483600102965096505b5050505050915091565b60088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f155780601f10610eea57610100808354040283529160200191610f15565b820191906000526020600020905b815481529060010190602001808311610ef857829003601f168201915b505050505081565b610f4b82826000604051805910610f315750595b9080825280601f01601f1916602001820160405250610f4f565b5050565b600080600080610f5d6121a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ffc5786600019167f6e9ddeafba3c6efb137aad14ec0322ed970574b4e4ac66efd2894859ee96abfe6000806002604051808467ffffffffffffffff168152602001838152602001826004811115610fe257fe5b60ff168152602001935050505060405180910390a261127a565b600760008860001916600019168152602001908152602001600020935060008460000160089054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156110e95786600019167f6e9ddeafba3c6efb137aad14ec0322ed970574b4e4ac66efd2894859ee96abfe8560000160009054906101000a900467ffffffffffffffff1660006002604051808467ffffffffffffffff1667ffffffffffffffff1681526020018381526020018260048111156110cf57fe5b60ff168152602001935050505060405180910390a261127a565b60009250600060010291506110fd86610689565b80935081945050508360000160089054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663629615df8560000160009054906101000a900467ffffffffffffffff1685856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808467ffffffffffffffff1667ffffffffffffffff16815260200183815260200182600019166000191681526020019350505050600060405180830381600087803b15156111de57600080fd5b6102c65a03f115156111ef57600080fd5b50505086600019167f6e9ddeafba3c6efb137aad14ec0322ed970574b4e4ac66efd2894859ee96abfe8560000160009054906101000a900467ffffffffffffffff16856000604051808467ffffffffffffffff1667ffffffffffffffff16815260200183815260200182600481111561126457fe5b60ff168152602001935050505060405180910390a25b50505050505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113845760009150600090505b600680549050811015611377573373ffffffffffffffffffffffffffffffffffffffff1660068281548110151561131957fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561136a5760019150611377565b80806001019150506112e6565b81151561138357600080fd5b5b826008908051906020019061139a929190614325565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113fe57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151561152a57600090505b6006805490508110156114c6578173ffffffffffffffffffffffffffffffffffffffff1660068281548110151561146c57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156114b95761152b565b8080600101915050611439565b600680548060010182816114da91906143a5565b9160005260206000209001600084909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b5b5050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156116305760009150600090505b600680549050811015611623573373ffffffffffffffffffffffffffffffffffffffff166006828154811015156115c557fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156116165760019150611623565b8080600101915050611592565b81151561162f57600080fd5b5b82600b81905550611642600b546124bf565b505050565b600960009054906101000a900467ffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156117885760009150600090505b60068054905081101561177b573373ffffffffffffffffffffffffffffffffffffffff1660068281548110151561171d57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561176e576001915061177b565b80806001019150506116ea565b81151561178757600080fd5b5b82600a81905550505050565b6000806000846040518082805190602001908083835b6020831015156117cf57805182526020820191506020810190506020830392506117aa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209250611807856127cd565b15156118ad5782600019167f01dbbc21fc03b74eb4e677446bd2e8ce395db326e4ede0688356819caebaca0987866004604051808467ffffffffffffffff1667ffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182600481111561189357fe5b60ff168152602001935050505060405180910390a2611cc1565b3073ffffffffffffffffffffffffffffffffffffffff16316119036040805190810160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250612c09565b11156119a95782600019167f01dbbc21fc03b74eb4e677446bd2e8ce395db326e4ede0688356819caebaca0987866001604051808467ffffffffffffffff1667ffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182600481111561198f57fe5b60ff168152602001935050505060405180910390a2611cc1565b611b986040805190810160405280600381526020017f55524c000000000000000000000000000000000000000000000000000000000081525060088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a785780601f10611a4d57610100808354040283529160200191611a78565b820191906000526020600020905b815481529060010190602001808311611a5b57829003601f168201915b5050505050611b906040805190810160405280601081526020017f7b226274635f61646472657373223a2200000000000000000000000000000000815250896040805190810160405280601181526020017f222c226574685f61646472657373223a22000000000000000000000000000000815250611af68b612f91565b6040805190810160405280601281526020017f222c22626c6f636b5f6e756d626572223a220000000000000000000000000000815250611b55600960009054906101000a900467ffffffffffffffff1667ffffffffffffffff166131a2565b6040805190810160405280600281526020017f227d0000000000000000000000000000000000000000000000000000000000008152506132f4565b600a54613328565b91506007600083600019166000191681526020019081526020016000209050858160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550338160000160086101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600019167f01dbbc21fc03b74eb4e677446bd2e8ce395db326e4ede0688356819caebaca0987866000604051808467ffffffffffffffff1667ffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001826004811115611cab57fe5b60ff168152602001935050505060405180910390a25b505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611d2757600080fd5b600090505b600680549050811015611db9578173ffffffffffffffffffffffffffffffffffffffff16600682815481101515611d5f57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611dac57611db9565b8080600101915050611d2c565b600680549050811015611ebd576006600160068054905003815481101515611ddd57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600682815481101515611e1857fe5b906000526020600020900160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506006600160068054905003815481101515611e7857fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556006805480919060019003611ebb91906143d1565b505b5050565b600681815481101515611ed057fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611f5c57600080fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156120985760009150600090505b60068054905081101561208b573373ffffffffffffffffffffffffffffffffffffffff1660068281548110151561202d57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561207e576001915061208b565b8080600101915050611ffa565b81151561209757600080fd5b5b82600960006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561212257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561219a5780600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b600a5481565b600b5481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612219575060006122176000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b1561222a5761222860006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156122b757600080fd5b6102c65a03f115156122c857600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612411576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156123b557600080fd5b6102c65a03f115156123c657600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561249f57600080fd5b6102c65a03f115156124b057600080fd5b50505060405180519050905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061252e5750600061252c6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b1561253f5761253d60006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156125cc57600080fd5b6102c65a03f115156125dd57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612726576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156126ca57600080fd5b6102c65a03f115156126db57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca6ad1e4826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15156127b657600080fd5b6102c65a03f115156127c757600080fd5b50505050565b60006127d7614311565b60008391506014825110156127ef5760009250612c02565b600090505b8151811015612bfd5760307f010000000000000000000000000000000000000000000000000000000000000002828281518110151561282f57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610806129ec575060397f01000000000000000000000000000000000000000000000000000000000000000282828151811015156128d557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161180156129eb575060417f010000000000000000000000000000000000000000000000000000000000000002828281518110151561297c57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916105b5b80612b3b5750605a7f0100000000000000000000000000000000000000000000000000000000000000028282815181101515612a2457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916118015612b3a575060617f0100000000000000000000000000000000000000000000000000000000000000028282815181101515612acb57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916105b5b80612be25750607a7f0100000000000000000000000000000000000000000000000000000000000000028282815181101515612b7357fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916115b15612bf05760009250612c02565b80806001019150506127f4565b600192505b5050919050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612c7957506000612c776000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b15612c8a57612c8860006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612d1757600080fd5b6102c65a03f11515612d2857600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612e71576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612e1557600080fd5b6102c65a03f11515612e2657600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663524f3889836000604051602001526040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f24578082015181840152602081019050612f09565b50505050905090810190601f168015612f515780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b1515612f6f57600080fd5b6102c65a03f11515612f8057600080fd5b505050604051805190509050919050565b612f996143fd565b612fa1614311565b6000806000806028604051805910612fb65750595b9080825280601f01601f19166020018201604052509450600093505b6014841015613195578360130360080260020a8773ffffffffffffffffffffffffffffffffffffffff1681151561300557fe5b047f01000000000000000000000000000000000000000000000000000000000000000292506010837f0100000000000000000000000000000000000000000000000000000000000000900460ff1681151561305c57fe5b047f0100000000000000000000000000000000000000000000000000000000000000029150817f01000000000000000000000000000000000000000000000000000000000000009004601002837f01000000000000000000000000000000000000000000000000000000000000009004037f01000000000000000000000000000000000000000000000000000000000000000290506130fa82613d82565b858560020281518110151561310b57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061314481613d82565b856001866002020181518110151561315857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508380600101945050612fd2565b8495505050505050919050565b6131aa6143fd565b6000806131b5614311565b6000808614156131fc576040805190810160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525094506132eb565b8593505b600084141515613226578280600101935050600a8481151561321e57fe5b049350613200565b826040518059106132345750595b9080825280601f01601f191660200182016040525091506001830390505b6000861415156132e757600a8681151561326857fe5b066030017f0100000000000000000000000000000000000000000000000000000000000000028282806001900393508151811015156132a357fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868115156132df57fe5b049550613252565b8194505b50505050919050565b6132fc6143fd565b61331b6133098989613e72565b6133168888888888613ebf565b613e72565b9050979650505050505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061339a575060006133986000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b156133ab576133a960006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561343857600080fd5b6102c65a03f1151561344957600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613592576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561353657600080fd5b6102c65a03f1151561354757600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc87856000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561364c578082015181840152602081019050613631565b50505050905090810190601f1680156136795780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561369857600080fd5b6102c65a03f115156136a957600080fd5b505050604051805190509050823a02670de0b6b3a7640000018111156136d557600060010291506138dd565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166385dee34c826000898989896000604051602001526040518763ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180868152602001806020018060200180602001858152602001848103845288818151815260200191508051906020019080838360005b838110156137a2578082015181840152602081019050613787565b50505050905090810190601f1680156137cf5780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b838110156138085780820151818401526020810190506137ed565b50505050905090810190601f1680156138355780820380516001836020036101000a031916815260200191505b50848103825286818151815260200191508051906020019080838360005b8381101561386e578082015181840152602081019050613853565b50505050905090810190601f16801561389b5780820380516001836020036101000a031916815260200191505b50985050505050505050506020604051808303818588803b15156138be57600080fd5b6125ee5a03f115156138cf57600080fd5b505050506040518051905091505b50949350505050565b6000813b9050919050565b600080613911731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6138e6565b11156139b257731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506139a96040805190810160405280600b81526020017f6574685f6d61696e6e65740000000000000000000000000000000000000000008152506142f7565b60019050613d7d565b60006139d173c03a2615d5efaf5f49f60b7bb6583eaec212fdf16138e6565b1115613a725773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613a696040805190810160405280600c81526020017f6574685f726f707374656e3300000000000000000000000000000000000000008152506142f7565b60019050613d7d565b6000613a9173b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6138e6565b1115613b325773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613b296040805190810160405280600981526020017f6574685f6b6f76616e00000000000000000000000000000000000000000000008152506142f7565b60019050613d7d565b6000613b5173146500cfd35b22e4a392fe0adc06de1a1368ed486138e6565b1115613bf25773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613be96040805190810160405280600b81526020017f6574685f72696e6b6562790000000000000000000000000000000000000000008152506142f7565b60019050613d7d565b6000613c11736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756138e6565b1115613c7457736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050613d7d565b6000613c937320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6138e6565b1115613cf6577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050613d7d565b6000613d157351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6138e6565b1115613d78577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050613d7d565b600090505b919050565b6000600a7f010000000000000000000000000000000000000000000000000000000000000002827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161015613e21576030827f01000000000000000000000000000000000000000000000000000000000000009004017f0100000000000000000000000000000000000000000000000000000000000000029050613e6d565b6057827f01000000000000000000000000000000000000000000000000000000000000009004017f01000000000000000000000000000000000000000000000000000000000000000290505b919050565b613e7a6143fd565b613eb78383602060405190810160405280600081525060206040519081016040528060008152506020604051908101604052806000815250613ebf565b905092915050565b613ec76143fd565b613ecf614311565b613ed7614311565b613edf614311565b613ee7614311565b613eef614311565b613ef76143fd565b613eff614311565b6000808e98508d97508c96508b95508a94508451865188518a518c5101010101604051805910613f2c5750595b9080825280601f01601f1916602001820160405250935083925060009150600090505b8851811015614002578881815181101515613f6657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515613fc557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050613f4f565b600090505b87518110156140ba57878181518110151561401e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561407d57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614007565b600090505b86518110156141725786818151811015156140d657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561413557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506140bf565b600090505b855181101561422a57858181518110151561418e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156141ed57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614177565b600090505b84518110156142e257848181518110151561424657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156142a557fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061422f565b82995050505050505050505095945050505050565b806002908051906020019061430d929190614325565b5050565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061436657805160ff1916838001178555614394565b82800160010185558215614394579182015b82811115614393578251825591602001919060010190614378565b5b5090506143a19190614411565b5090565b8154818355818115116143cc578183600052602060002091820191016143cb9190614411565b5b505050565b8154818355818115116143f8578183600052602060002091820191016143f79190614411565b5b505050565b602060405190810160405280600081525090565b61443391905b8082111561442f576000816000905550600101614417565b5090565b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806144a5575060006144a36000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff166138e6565b145b156144b6576144b460006138f1565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561454357600080fd5b6102c65a03f1151561455457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561469d576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561464157600080fd5b6102c65a03f1151561465257600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b151561477157600080fd5b6102c65a03f1151561478257600080fd5b505050505600a165627a7a72305820bd061c65e9f20718e00dcfb8f9a1556e295ea97a42472ba8dc6c982520e60f960029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000074d5e000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f7777772e62797465746865722e636f6d2f6f7261636c697a652f6765745f6274685f76616c75650000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _verifyUrl (string): https://www.bytether.com/oraclize/get_bth_value
Arg [1] : _crossForkBlockNumber (uint64): 478558
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000074d5e
Arg [2] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [3] : 68747470733a2f2f7777772e62797465746865722e636f6d2f6f7261636c697a
Arg [4] : 652f6765745f6274685f76616c75650000000000000000000000000000000000
Swarm Source
bzzr://bd061c65e9f20718e00dcfb8f9a1556e295ea97a42472ba8dc6c982520e60f96
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,521.7 | 0.0143 | $36.1 |
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.