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 518 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Play | 20696091 | 30 days ago | IN | 0.01 ETH | 0.0002882 | ||||
Play | 20661150 | 35 days ago | IN | 0.01 ETH | 0.00003618 | ||||
Play | 20655693 | 36 days ago | IN | 0.01 ETH | 0.00004798 | ||||
Play | 20648353 | 37 days ago | IN | 0.01 ETH | 0.0000883 | ||||
Get Balance | 18919091 | 279 days ago | IN | 0 ETH | 0.00053168 | ||||
Draw Now | 18919082 | 279 days ago | IN | 0 ETH | 0.004252 | ||||
Play | 18553677 | 330 days ago | IN | 0.01 ETH | 0.00096502 | ||||
Play | 18546616 | 331 days ago | IN | 0.01 ETH | 0.00146711 | ||||
Play | 18525034 | 334 days ago | IN | 0.01 ETH | 0.00462236 | ||||
Play | 18504886 | 337 days ago | IN | 0.01 ETH | 0.00092296 | ||||
Play | 18498052 | 338 days ago | IN | 0.01 ETH | 0.00415387 | ||||
Play | 18491670 | 339 days ago | IN | 0.01 ETH | 0.00137171 | ||||
Play | 18489435 | 339 days ago | IN | 0.01 ETH | 0.00293454 | ||||
Play | 18482982 | 340 days ago | IN | 0.01 ETH | 0.00094264 | ||||
Play | 18482922 | 340 days ago | IN | 0.01 ETH | 0.00093187 | ||||
Play | 18476753 | 341 days ago | IN | 0.01 ETH | 0.00440638 | ||||
Play | 18469499 | 342 days ago | IN | 0.01 ETH | 0.00093003 | ||||
Play | 18469485 | 342 days ago | IN | 0.01 ETH | 0.00482941 | ||||
Play | 18455935 | 344 days ago | IN | 0.01 ETH | 0.00080279 | ||||
Play | 18453689 | 344 days ago | IN | 0.01 ETH | 0.00278442 | ||||
Play | 18447713 | 345 days ago | IN | 0.01 ETH | 0.00096154 | ||||
Play | 18446248 | 345 days ago | IN | 0.01 ETH | 0.00060477 | ||||
Play | 18427013 | 348 days ago | IN | 0.01 ETH | 0.00308989 | ||||
Play | 18418822 | 349 days ago | IN | 0.01 ETH | 0.00091387 | ||||
Play | 18418817 | 349 days ago | IN | 0.01 ETH | 0.00408023 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20696091 | 30 days ago | 0.027 ETH | ||||
20696091 | 30 days ago | 0.00402542 ETH | ||||
18919091 | 279 days ago | 0.02405917 ETH | ||||
18919082 | 279 days ago | 0.027 ETH | ||||
18919082 | 279 days ago | 0.00402542 ETH | ||||
18525034 | 334 days ago | 0.018 ETH | ||||
18525034 | 334 days ago | 0.00402542 ETH | ||||
18498052 | 338 days ago | 0.018 ETH | ||||
18498052 | 338 days ago | 0.00402542 ETH | ||||
18489435 | 339 days ago | 0.027 ETH | ||||
18489435 | 339 days ago | 0.00402542 ETH | ||||
18476753 | 341 days ago | 0.018 ETH | ||||
18476753 | 341 days ago | 0.00402542 ETH | ||||
18469485 | 342 days ago | 0.018 ETH | ||||
18469485 | 342 days ago | 0.00402542 ETH | ||||
18453689 | 344 days ago | 0.027 ETH | ||||
18453689 | 344 days ago | 0.00402542 ETH | ||||
18427013 | 348 days ago | 0.018 ETH | ||||
18427013 | 348 days ago | 0.00402542 ETH | ||||
18418817 | 349 days ago | 0.027 ETH | ||||
18418817 | 349 days ago | 0.00402542 ETH | ||||
18404772 | 351 days ago | 0.045 ETH | ||||
18404772 | 351 days ago | 0.00402542 ETH | ||||
18397487 | 352 days ago | 0.027 ETH | ||||
18397487 | 352 days ago | 0.00402542 ETH |
Loading...
Loading
Contract Name:
VfSE_Lottery_3
Compiler Version
v0.4.26+commit.4563c3fc
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-07 */ pragma solidity ^0.4.26; // <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.1 < 0.5;// Incompatible compiler version... please select one stated within pragma solidity or use different oraclizeAPI version 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); } /* Begin solidity-cborutils https://github.com/smartcontractkit/solidity-cborutils MIT License Copyright (c) 2018 SmartContract ChainLink, 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. */ library Buffer { struct buffer { bytes buf; uint capacity; } function init(buffer memory buf, uint _capacity) internal constant { uint capacity = _capacity; if(capacity % 32 != 0) capacity += 32 - (capacity % 32); // Allocate space for the buffer data buf.capacity = capacity; assembly { let ptr := mload(0x40) mstore(buf, ptr) mstore(ptr, 0) mstore(0x40, add(ptr, capacity)) } } function resize(buffer memory buf, uint capacity) private constant { bytes memory oldbuf = buf.buf; init(buf, capacity); append(buf, oldbuf); } function max(uint a, uint b) private constant returns(uint) { if(a > b) { return a; } return b; } /** * @dev Appends a byte array to the end of the buffer. Resizes if doing so * would exceed the capacity of the buffer. * @param buf The buffer to append to. * @param data The data to append. * @return The original buffer. */ function append(buffer memory buf, bytes data) internal constant returns(buffer memory) { if(data.length + buf.buf.length > buf.capacity) { resize(buf, max(buf.capacity, data.length) * 2); } uint dest; uint src; uint len = data.length; assembly { // Memory address of the buffer data let bufptr := mload(buf) // Length of existing buffer data let buflen := mload(bufptr) // Start address = buffer address + buffer length + sizeof(buffer length) dest := add(add(bufptr, buflen), 32) // Update buffer length mstore(bufptr, add(buflen, mload(data))) src := add(data, 32) } // Copy word-length chunks while possible for(; len >= 32; len -= 32) { assembly { mstore(dest, mload(src)) } dest += 32; src += 32; } // Copy remaining bytes uint mask = 256 ** (32 - len) - 1; assembly { let srcpart := and(mload(src), not(mask)) let destpart := and(mload(dest), mask) mstore(dest, or(destpart, srcpart)) } return buf; } /** * @dev Appends a byte to the end of the buffer. Resizes if doing so would * exceed the capacity of the buffer. * @param buf The buffer to append to. * @param data The data to append. * @return The original buffer. */ function append(buffer memory buf, uint8 data) internal constant { if(buf.buf.length + 1 > buf.capacity) { resize(buf, buf.capacity * 2); } assembly { // Memory address of the buffer data let bufptr := mload(buf) // Length of existing buffer data let buflen := mload(bufptr) // Address = buffer address + buffer length + sizeof(buffer length) let dest := add(add(bufptr, buflen), 32) mstore8(dest, data) // Update buffer length mstore(bufptr, add(buflen, 1)) } } /** * @dev Appends a byte to the end of the buffer. Resizes if doing so would * exceed the capacity of the buffer. * @param buf The buffer to append to. * @param data The data to append. * @return The original buffer. */ function appendInt(buffer memory buf, uint data, uint len) internal constant returns(buffer memory) { if(len + buf.buf.length > buf.capacity) { resize(buf, max(buf.capacity, len) * 2); } uint mask = 256 ** len - 1; assembly { // Memory address of the buffer data let bufptr := mload(buf) // Length of existing buffer data let buflen := mload(bufptr) // Address = buffer address + buffer length + sizeof(buffer length) + len let dest := add(add(bufptr, buflen), len) mstore(dest, or(and(mload(dest), not(mask)), data)) // Update buffer length mstore(bufptr, add(buflen, len)) } return buf; } } library CBOR { using Buffer for Buffer.buffer; uint8 private constant MAJOR_TYPE_INT = 0; uint8 private constant MAJOR_TYPE_NEGATIVE_INT = 1; uint8 private constant MAJOR_TYPE_BYTES = 2; uint8 private constant MAJOR_TYPE_STRING = 3; uint8 private constant MAJOR_TYPE_ARRAY = 4; uint8 private constant MAJOR_TYPE_MAP = 5; uint8 private constant MAJOR_TYPE_CONTENT_FREE = 7; function shl8(uint8 x, uint8 y) private constant returns (uint8) { return x * (2 ** y); } function encodeType(Buffer.buffer memory buf, uint8 major, uint value) private constant { if(value <= 23) { buf.append(uint8(shl8(major, 5) | value)); } else if(value <= 0xFF) { buf.append(uint8(shl8(major, 5) | 24)); buf.appendInt(value, 1); } else if(value <= 0xFFFF) { buf.append(uint8(shl8(major, 5) | 25)); buf.appendInt(value, 2); } else if(value <= 0xFFFFFFFF) { buf.append(uint8(shl8(major, 5) | 26)); buf.appendInt(value, 4); } else if(value <= 0xFFFFFFFFFFFFFFFF) { buf.append(uint8(shl8(major, 5) | 27)); buf.appendInt(value, 8); } } function encodeIndefiniteLengthType(Buffer.buffer memory buf, uint8 major) private constant { buf.append(uint8(shl8(major, 5) | 31)); } function encodeUInt(Buffer.buffer memory buf, uint value) internal constant { encodeType(buf, MAJOR_TYPE_INT, value); } function encodeInt(Buffer.buffer memory buf, int value) internal constant { if(value >= 0) { encodeType(buf, MAJOR_TYPE_INT, uint(value)); } else { encodeType(buf, MAJOR_TYPE_NEGATIVE_INT, uint(-1 - value)); } } function encodeBytes(Buffer.buffer memory buf, bytes value) internal constant { encodeType(buf, MAJOR_TYPE_BYTES, value.length); buf.append(value); } function encodeString(Buffer.buffer memory buf, string value) internal constant { encodeType(buf, MAJOR_TYPE_STRING, bytes(value).length); buf.append(bytes(value)); } function startArray(Buffer.buffer memory buf) internal constant { encodeIndefiniteLengthType(buf, MAJOR_TYPE_ARRAY); } function startMap(Buffer.buffer memory buf) internal constant { encodeIndefiniteLengthType(buf, MAJOR_TYPE_MAP); } function endSequence(Buffer.buffer memory buf) internal constant { encodeIndefiniteLengthType(buf, MAJOR_TYPE_CONTENT_FREE); } } /* End solidity-cborutils */ 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_Ledger = 0x30; byte constant proofType_Android = 0x40; 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(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41)>0){ //goerli testnet OAR = OraclizeAddrResolverI(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41); oraclize_setNetworkName("eth_goerli"); 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, "", "", ""); } // 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); } using CBOR for Buffer.buffer; function stra2cbor(string[] arr) internal constant returns (bytes) { safeMemoryCleaner(); Buffer.buffer memory buf; Buffer.init(buf, 1024); buf.startArray(); for (uint i = 0; i < arr.length; i++) { buf.encodeString(arr[i]); } buf.endSequence(); return buf.buf; } function ba2cbor(bytes[] arr) internal constant returns (bytes) { safeMemoryCleaner(); Buffer.buffer memory buf; Buffer.init(buf, 1024); buf.startArray(); for (uint i = 0; i < arr.length; i++) { buf.encodeBytes(arr[i]); } buf.endSequence(); return buf.buf; } 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; // Convert from seconds to ledger timer ticks _delay *= 10; 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) // the following variables can be relaxed // check relaxed random contract under ethereum-examples repo // for an idea on how to override and replace comit hash vars mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp))) mstore(sessionKeyHash, 0x20) mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32) } bytes memory delay = new bytes(32); assembly { mstore(add(delay, 0x20), _delay) } bytes memory delay_bytes8 = new bytes(8); copyBytes(delay, 24, 8, delay_bytes8, 0); bytes[4] memory args = [unonce, nbytes, sessionKeyHash, delay]; bytes32 queryId = oraclize_query("random", args, _customGasLimit); bytes memory delay_bytes8_left = new bytes(8); assembly { let x := mload(add(delay_bytes8, 0x20)) mstore8(add(delay_bytes8_left, 0x27), div(x, 0x100000000000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x26), div(x, 0x1000000000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x25), div(x, 0x10000000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x24), div(x, 0x100000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x23), div(x, 0x1000000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x22), div(x, 0x10000000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x21), div(x, 0x100000000000000000000000000000000000000000000000000)) mstore8(add(delay_bytes8_left, 0x20), div(x, 0x1000000000000000000000000000000000000000000000000)) } oraclize_randomDS_setCommitment(queryId, sha3(delay_bytes8_left, 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, uint n_random_bytes) internal returns (bool){ bool match_ = true; if (prefix.length != n_random_bytes) throw; for (uint256 i=0; i< n_random_bytes; 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){ // 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); if (!(sha3(keyhash) == sha3(sha256(context_name, queryId)))) 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) if (!matchBytes32Prefix(sha256(sig1), result, uint(proof[ledgerProofLength+32+8]))) 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); if (!verifySig(sha256(tosign1), sig1, sessionPubkey)) 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); } function safeMemoryCleaner() internal constant { assembly { let fmem := mload(0x40) codecopy(fmem, codesize, sub(msize, fmem)) } } } // </ORACLIZE_API> library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } } contract VfSE_Lottery_3 is Ownable, usingOraclize { using SafeMath for uint256; address[] private players; address[] public winners; uint256[] public payments; uint256 private feeValue; address public lastWinner; address public authorizedToDraw; address[] private last10Winners = [0,0,0,0,0,0,0,0,0,0]; uint256 public lastPayOut; uint256 public amountRised; address public house; uint256 public round; uint256 public playValue; uint256 public roundEnds; uint256 public roundDuration = 1 days; bool public stopped; mapping (address => uint256) public payOuts; uint256 private _seed; function bitSlice(uint256 n, uint256 bits, uint256 slot) private pure returns(uint256) { uint256 offset = slot * bits; uint256 mask = uint256((2**bits) - 1) << offset; return uint256((n & mask) >> offset); } function maxRandom() private returns (uint256 randomNumber) { bytes32 myrng = oraclize_query("WolframAlpha", "random number between 1 and 2^64"); _seed = uint256(keccak256(_seed, myrng)); return _seed; } function random(uint256 upper) private returns (uint256 randomNumber) { return maxRandom() % upper; } function setHouseAddress(address _house) onlyOwner public { house = _house; } function setAuthorizedToDraw(address _authorized) onlyOwner public { authorizedToDraw = _authorized; } function setFee(uint256 _fee) onlyOwner public { feeValue = _fee; } function setPlayValue(uint256 _amount) onlyOwner public { playValue = _amount; } function stopLottery(bool _stop) onlyOwner public { stopped = _stop; } function produceRandom(uint256 upper) private returns (uint256) { uint256 rand = random(upper); //output = rand; return rand; } function getPayOutAmount() private view returns (uint256) { //uint256 balance = address(this).balance; uint256 fee = amountRised.mul(feeValue).div(100); return (amountRised - fee); } function draw() private { require(now > roundEnds); uint256 howMuchBets = players.length; uint256 k; lastWinner = players[produceRandom(howMuchBets)]; lastPayOut = getPayOutAmount(); winners.push(lastWinner); if (winners.length > 9) { for (uint256 i = (winners.length - 10); i < winners.length; i++) { last10Winners[k] = winners[i]; k += 1; } } payments.push(lastPayOut); payOuts[lastWinner] += lastPayOut; lastWinner.transfer(lastPayOut); players.length = 0; round += 1; amountRised = 0; roundEnds = now + roundDuration; emit NewWinner(lastWinner, lastPayOut); } function drawNow() public { require(authorizedToDraw == msg.sender); draw(); } function play() payable public { require (msg.value == playValue); require (!stopped); if (now > roundEnds) { if (players.length < 2) { roundEnds = now + roundDuration; } else { draw(); } } players.push(msg.sender); amountRised = amountRised.add(msg.value); } function() payable public { play(); } constructor() public { house = msg.sender; authorizedToDraw = msg.sender; feeValue = 10; playValue = 1000 finney; } function getBalance() onlyOwner public { uint256 thisBalance = address(this).balance; house.transfer(thisBalance - amountRised); } function getPlayersCount() public view returns (uint256) { return players.length; } function getWinnerCount() public view returns (uint256) { return winners.length; } function getPlayers() public view returns (address[]) { return players; } function last10() public view returns (address[]) { if (winners.length < 11) { return winners; } else { return last10Winners; } } event NewWinner(address _winner, uint256 _amount); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"lastPayOut","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"round","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"last10","outputs":[{"name":"","type":"address[]"}],"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":"myid","type":"bytes32"},{"name":"result","type":"string"},{"name":"proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"playValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_stop","type":"bool"}],"name":"stopLottery","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"payments","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getPlayers","outputs":[{"name":"","type":"address[]"}],"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":"play","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"payOuts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"setPlayValue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"winners","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getWinnerCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_authorized","type":"address"}],"name":"setAuthorizedToDraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPlayersCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"roundEnds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"amountRised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"drawNow","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_house","type":"address"}],"name":"setHouseAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"roundDuration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"authorizedToDraw","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastWinner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"house","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_winner","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"NewWinner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
6101c06040526000608081815260a082905260c082905260e08290526101008290526101208290526101408290526101608290526101808290526101a0919091526200005090600c90600a620000a9565b50620151806013553480156200006557600080fd5b506000805433600160a060020a03199182168117909255600f8054821683179055600b80549091169091179055600a600955670de0b6b3a764000060115562000137565b828054828255906000526020600020908101928215620000fb579160200282015b82811115620000fb5782518254600160a060020a03191660ff909116178255602090920191600190910190620000ca565b50620001099291506200010d565b5090565b6200013491905b8082111562000109578054600160a060020a031916815560010162000114565b90565b61161c80620001476000396000f30060806040526004361061015b5763ffffffff60e060020a6000350416630c6cbf92811461016557806312065fe01461018c578063146ca531146101a157806315bf2b51146101b657806327dc297e1461021b57806338bbfa5014610279578063479e840f1461031557806362ba16491461032a57806369fe0e2d1461034457806375f12b211461035c57806387d81789146103855780638b5b9ccc1461039d5780638da5cb5b146103b257806393e84cd91461015b578063952319de146103e35780639ad5be7b14610404578063a2fb11751461041c578063a46c363714610434578063a58daf7614610449578063a76594bf1461046a578063afa12a8a1461047f578063c892cfdf14610494578063eba60632146104a9578063ef3aaf54146104be578063f2fde38b146104df578063f7cb789a14610500578063f7ec221e14610515578063fe1881841461052a578063ff9b3acf1461053f575b610163610554565b005b34801561017157600080fd5b5061017a6105f6565b60408051918252519081900360200190f35b34801561019857600080fd5b506101636105fc565b3480156101ad57600080fd5b5061017a610657565b3480156101c257600080fd5b506101cb61065d565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102075781810151838201526020016101ef565b505050509050019250505060405180910390f35b34801561022757600080fd5b5060408051602060046024803582810135601f810185900485028601850190965285855261016395833595369560449491939091019190819084018382808284375094975061072c9650505050505050565b34801561028557600080fd5b5060408051602060046024803582810135601f810185900485028601850190965285855261016395833595369560449491939091019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506107449650505050505050565b34801561032157600080fd5b5061017a610749565b34801561033657600080fd5b50610163600435151561074f565b34801561035057600080fd5b50610163600435610779565b34801561036857600080fd5b50610371610795565b604080519115158252519081900360200190f35b34801561039157600080fd5b5061017a60043561079e565b3480156103a957600080fd5b506101cb6107bd565b3480156103be57600080fd5b506103c761081f565b60408051600160a060020a039092168252519081900360200190f35b3480156103ef57600080fd5b5061017a600160a060020a036004351661082e565b34801561041057600080fd5b50610163600435610840565b34801561042857600080fd5b506103c760043561085c565b34801561044057600080fd5b5061017a610884565b34801561045557600080fd5b50610163600160a060020a036004351661088a565b34801561047657600080fd5b5061017a6108c3565b34801561048b57600080fd5b5061017a6108c9565b3480156104a057600080fd5b5061017a6108cf565b3480156104b557600080fd5b506101636108d5565b3480156104ca57600080fd5b50610163600160a060020a03600435166108f6565b3480156104eb57600080fd5b50610163600160a060020a036004351661092f565b34801561050c57600080fd5b5061017a6109b6565b34801561052157600080fd5b506103c76109bc565b34801561053657600080fd5b506103c76109cb565b34801561054b57600080fd5b506103c76109da565b601154341461056257600080fd5b60145460ff161561057257600080fd5b60125442111561059c576006546002111561059457601354420160125561059c565b61059c6109e9565b600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f018054600160a060020a03191633179055600e546105f1903463ffffffff610c2116565b600e55565b600d5481565b60008054600160a060020a0316331461061457600080fd5b50600f54600e54604051303192600160a060020a031691830380156108fc02916000818181858888f19350505050158015610653573d6000803e3d6000fd5b5050565b60105481565b600754606090600b11156106cd5760078054806020026020016040519081016040528092919081815260200182805480156106c157602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116106a3575b50505050509050610729565b600c8054806020026020016040519081016040528092919081815260200182805480156106c157602002820191906000526020600020908154600160a060020a031681526001909101906020018083116106a357505050505090505b90565b60408051600081526020810190915261065390839083905b505050565b60115481565b600054600160a060020a0316331461076657600080fd5b6014805460ff1916911515919091179055565b600054600160a060020a0316331461079057600080fd5b600955565b60145460ff1681565b60088054829081106107ac57fe5b600091825260209091200154905081565b6060600680548060200260200160405190810160405280929190818152602001828054801561081557602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116107f7575b5050505050905090565b600054600160a060020a031681565b60156020526000908152604090205481565b600054600160a060020a0316331461085757600080fd5b601155565b600780548290811061086a57fe5b600091825260209091200154600160a060020a0316905081565b60075490565b600054600160a060020a031633146108a157600080fd5b600b8054600160a060020a031916600160a060020a0392909216919091179055565b60065490565b60125481565b600e5481565b600b54600160a060020a031633146108ec57600080fd5b6108f46109e9565b565b600054600160a060020a0316331461090d57600080fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a0316331461094657600080fd5b600160a060020a038116151561095b57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b60135481565b600b54600160a060020a031681565b600a54600160a060020a031681565b600f54600160a060020a031681565b6000806000601254421115156109fe57600080fd5b600680549350610a0d84610c3b565b81548110610a1757fe5b600091825260209091200154600a8054600160a060020a031916600160a060020a03909216919091179055610a4a610c4e565b600d55600a546007805460018101825560008290527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688018054600160a060020a031916600160a060020a03909316929092179091555460091015610b245750600754600919015b600754811015610b24576007805482908110610ac957fe5b600091825260209091200154600c8054600160a060020a039092169184908110610aef57fe5b60009182526020909120018054600160a060020a031916600160a060020a039290921691909117905560019182019101610ab1565b600d805460088054600181019091557ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee301819055600a8054600160a060020a03908116600090815260156020526040808220805490950190945591549354925193169282156108fc029291818181858888f19350505050158015610bac573d6000803e3d6000fd5b506000610bba60068261153c565b506010805460010190556000600e556013544201601255600a54600d5460408051600160a060020a039093168352602083019190915280517fe6b9e1659282e93b3a484308db69e5d1cac21051d45ee0fcb6f72399541cec869281900390910190a1505050565b600082820183811015610c3057fe5b8091505b5092915050565b600080610c4783610c87565b9392505050565b600080610c796064610c6d600954600e54610ca490919063ffffffff16565b9063ffffffff610ccf16565b905080600e540391505b5090565b600081610c92610ce6565b811515610c9b57fe5b0690505b919050565b600080831515610cb75760009150610c34565b50828202828482811515610cc757fe5b0414610c3057fe5b6000808284811515610cdd57fe5b04949350505050565b600080610d5d6040805190810160405280600c81526020017f576f6c6672616d416c70686100000000000000000000000000000000000000008152506040805190810160405280602081526020017f72616e646f6d206e756d626572206265747765656e203120616e6420325e3634815250610d84565b60168054604080519182526020820184905280519182900301902090819055925090505090565b6001546000908190600160a060020a03161580610db35750600154610db190600160a060020a0316611179565b155b15610dc457610dc2600061117d565b505b600160009054906101000a9004600160a060020a0316600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610e1757600080fd5b505af1158015610e2b573d6000803e3d6000fd5b505050506040513d6020811015610e4157600080fd5b5051600254600160a060020a03908116911614610ef757600160009054906101000a9004600160a060020a0316600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b505050506040513d6020811015610ed557600080fd5b505160028054600160a060020a031916600160a060020a039092169190911790555b6002546040517f524f3889000000000000000000000000000000000000000000000000000000008152602060048201818152875160248401528751600160a060020a039094169363524f388993899383926044909201919085019080838360005b83811015610f70578181015183820152602001610f58565b50505050905090810190601f168015610f9d5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610fbc57600080fd5b505af1158015610fd0573d6000803e3d6000fd5b505050506040513d6020811015610fe657600080fd5b50519050670de0b6b3a764000062030d403a020181111561100a5760009150610c34565b6002546040517fadf59f99000000000000000000000000000000000000000000000000000000008152600060048201818152606060248401908152885160648501528851600160a060020a039095169463adf59f99948794938b938b939192909160448201916084019060208701908083838b5b8381101561109657818101518382015260200161107e565b50505050905090810190601f1680156110c35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156110f65781810151838201526020016110de565b50505050905090810190601f1680156111235780820380516001836020036101000a031916815260200191505b50955050505050506020604051808303818588803b15801561114457600080fd5b505af1158015611158573d6000803e3d6000fd5b50505050506040513d602081101561116f57600080fd5b5051949350505050565b3b90565b60008061119d731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611179565b111561120e5760018054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e6574000000000000000000000000000000000000000000602082015261120690611529565b506001610c9f565b600061122d73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611179565b11156112965760018054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015261120690611529565b60006112b573b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611179565b111561131e5760018054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e0000000000000000000000000000000000000000000000602082015261120690611529565b600061133d73146500cfd35b22e4a392fe0adc06de1a1368ed48611179565b11156113a65760018054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b656279000000000000000000000000000000000000000000602082015261120690611529565b60006113c573a2998efd205fb9d4b4963afb70778d6354ad3a41611179565b111561142e5760018054600160a060020a03191673a2998efd205fb9d4b4963afb70778d6354ad3a4117905560408051808201909152600a81527f6574685f676f65726c6900000000000000000000000000000000000000000000602082015261120690611529565b600061144d736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611179565b111561147f575060018054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475178155610c9f565b600061149e7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611179565b11156114d0575060018054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf178155610c9f565b60006114ef7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611179565b1115611521575060018054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa178155610c9f565b506000919050565b8051610653906003906020840190611560565b815481835581811115610744576000838152602090206107449181019083016115d6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115a157805160ff19168380011785556115ce565b828001600101855582156115ce579182015b828111156115ce5782518255916020019190600101906115b3565b50610c839291505b61072991905b80821115610c8357600081556001016115dc5600a165627a7a7230582006ba973e715708b83e5670e55abcab2c03b337306a19816615605b5bc34796fc0029
Deployed Bytecode
0x60806040526004361061015b5763ffffffff60e060020a6000350416630c6cbf92811461016557806312065fe01461018c578063146ca531146101a157806315bf2b51146101b657806327dc297e1461021b57806338bbfa5014610279578063479e840f1461031557806362ba16491461032a57806369fe0e2d1461034457806375f12b211461035c57806387d81789146103855780638b5b9ccc1461039d5780638da5cb5b146103b257806393e84cd91461015b578063952319de146103e35780639ad5be7b14610404578063a2fb11751461041c578063a46c363714610434578063a58daf7614610449578063a76594bf1461046a578063afa12a8a1461047f578063c892cfdf14610494578063eba60632146104a9578063ef3aaf54146104be578063f2fde38b146104df578063f7cb789a14610500578063f7ec221e14610515578063fe1881841461052a578063ff9b3acf1461053f575b610163610554565b005b34801561017157600080fd5b5061017a6105f6565b60408051918252519081900360200190f35b34801561019857600080fd5b506101636105fc565b3480156101ad57600080fd5b5061017a610657565b3480156101c257600080fd5b506101cb61065d565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102075781810151838201526020016101ef565b505050509050019250505060405180910390f35b34801561022757600080fd5b5060408051602060046024803582810135601f810185900485028601850190965285855261016395833595369560449491939091019190819084018382808284375094975061072c9650505050505050565b34801561028557600080fd5b5060408051602060046024803582810135601f810185900485028601850190965285855261016395833595369560449491939091019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506107449650505050505050565b34801561032157600080fd5b5061017a610749565b34801561033657600080fd5b50610163600435151561074f565b34801561035057600080fd5b50610163600435610779565b34801561036857600080fd5b50610371610795565b604080519115158252519081900360200190f35b34801561039157600080fd5b5061017a60043561079e565b3480156103a957600080fd5b506101cb6107bd565b3480156103be57600080fd5b506103c761081f565b60408051600160a060020a039092168252519081900360200190f35b3480156103ef57600080fd5b5061017a600160a060020a036004351661082e565b34801561041057600080fd5b50610163600435610840565b34801561042857600080fd5b506103c760043561085c565b34801561044057600080fd5b5061017a610884565b34801561045557600080fd5b50610163600160a060020a036004351661088a565b34801561047657600080fd5b5061017a6108c3565b34801561048b57600080fd5b5061017a6108c9565b3480156104a057600080fd5b5061017a6108cf565b3480156104b557600080fd5b506101636108d5565b3480156104ca57600080fd5b50610163600160a060020a03600435166108f6565b3480156104eb57600080fd5b50610163600160a060020a036004351661092f565b34801561050c57600080fd5b5061017a6109b6565b34801561052157600080fd5b506103c76109bc565b34801561053657600080fd5b506103c76109cb565b34801561054b57600080fd5b506103c76109da565b601154341461056257600080fd5b60145460ff161561057257600080fd5b60125442111561059c576006546002111561059457601354420160125561059c565b61059c6109e9565b600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f018054600160a060020a03191633179055600e546105f1903463ffffffff610c2116565b600e55565b600d5481565b60008054600160a060020a0316331461061457600080fd5b50600f54600e54604051303192600160a060020a031691830380156108fc02916000818181858888f19350505050158015610653573d6000803e3d6000fd5b5050565b60105481565b600754606090600b11156106cd5760078054806020026020016040519081016040528092919081815260200182805480156106c157602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116106a3575b50505050509050610729565b600c8054806020026020016040519081016040528092919081815260200182805480156106c157602002820191906000526020600020908154600160a060020a031681526001909101906020018083116106a357505050505090505b90565b60408051600081526020810190915261065390839083905b505050565b60115481565b600054600160a060020a0316331461076657600080fd5b6014805460ff1916911515919091179055565b600054600160a060020a0316331461079057600080fd5b600955565b60145460ff1681565b60088054829081106107ac57fe5b600091825260209091200154905081565b6060600680548060200260200160405190810160405280929190818152602001828054801561081557602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116107f7575b5050505050905090565b600054600160a060020a031681565b60156020526000908152604090205481565b600054600160a060020a0316331461085757600080fd5b601155565b600780548290811061086a57fe5b600091825260209091200154600160a060020a0316905081565b60075490565b600054600160a060020a031633146108a157600080fd5b600b8054600160a060020a031916600160a060020a0392909216919091179055565b60065490565b60125481565b600e5481565b600b54600160a060020a031633146108ec57600080fd5b6108f46109e9565b565b600054600160a060020a0316331461090d57600080fd5b600f8054600160a060020a031916600160a060020a0392909216919091179055565b600054600160a060020a0316331461094657600080fd5b600160a060020a038116151561095b57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b60135481565b600b54600160a060020a031681565b600a54600160a060020a031681565b600f54600160a060020a031681565b6000806000601254421115156109fe57600080fd5b600680549350610a0d84610c3b565b81548110610a1757fe5b600091825260209091200154600a8054600160a060020a031916600160a060020a03909216919091179055610a4a610c4e565b600d55600a546007805460018101825560008290527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688018054600160a060020a031916600160a060020a03909316929092179091555460091015610b245750600754600919015b600754811015610b24576007805482908110610ac957fe5b600091825260209091200154600c8054600160a060020a039092169184908110610aef57fe5b60009182526020909120018054600160a060020a031916600160a060020a039290921691909117905560019182019101610ab1565b600d805460088054600181019091557ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee301819055600a8054600160a060020a03908116600090815260156020526040808220805490950190945591549354925193169282156108fc029291818181858888f19350505050158015610bac573d6000803e3d6000fd5b506000610bba60068261153c565b506010805460010190556000600e556013544201601255600a54600d5460408051600160a060020a039093168352602083019190915280517fe6b9e1659282e93b3a484308db69e5d1cac21051d45ee0fcb6f72399541cec869281900390910190a1505050565b600082820183811015610c3057fe5b8091505b5092915050565b600080610c4783610c87565b9392505050565b600080610c796064610c6d600954600e54610ca490919063ffffffff16565b9063ffffffff610ccf16565b905080600e540391505b5090565b600081610c92610ce6565b811515610c9b57fe5b0690505b919050565b600080831515610cb75760009150610c34565b50828202828482811515610cc757fe5b0414610c3057fe5b6000808284811515610cdd57fe5b04949350505050565b600080610d5d6040805190810160405280600c81526020017f576f6c6672616d416c70686100000000000000000000000000000000000000008152506040805190810160405280602081526020017f72616e646f6d206e756d626572206265747765656e203120616e6420325e3634815250610d84565b60168054604080519182526020820184905280519182900301902090819055925090505090565b6001546000908190600160a060020a03161580610db35750600154610db190600160a060020a0316611179565b155b15610dc457610dc2600061117d565b505b600160009054906101000a9004600160a060020a0316600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610e1757600080fd5b505af1158015610e2b573d6000803e3d6000fd5b505050506040513d6020811015610e4157600080fd5b5051600254600160a060020a03908116911614610ef757600160009054906101000a9004600160a060020a0316600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b505050506040513d6020811015610ed557600080fd5b505160028054600160a060020a031916600160a060020a039092169190911790555b6002546040517f524f3889000000000000000000000000000000000000000000000000000000008152602060048201818152875160248401528751600160a060020a039094169363524f388993899383926044909201919085019080838360005b83811015610f70578181015183820152602001610f58565b50505050905090810190601f168015610f9d5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610fbc57600080fd5b505af1158015610fd0573d6000803e3d6000fd5b505050506040513d6020811015610fe657600080fd5b50519050670de0b6b3a764000062030d403a020181111561100a5760009150610c34565b6002546040517fadf59f99000000000000000000000000000000000000000000000000000000008152600060048201818152606060248401908152885160648501528851600160a060020a039095169463adf59f99948794938b938b939192909160448201916084019060208701908083838b5b8381101561109657818101518382015260200161107e565b50505050905090810190601f1680156110c35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156110f65781810151838201526020016110de565b50505050905090810190601f1680156111235780820380516001836020036101000a031916815260200191505b50955050505050506020604051808303818588803b15801561114457600080fd5b505af1158015611158573d6000803e3d6000fd5b50505050506040513d602081101561116f57600080fd5b5051949350505050565b3b90565b60008061119d731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611179565b111561120e5760018054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e6574000000000000000000000000000000000000000000602082015261120690611529565b506001610c9f565b600061122d73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611179565b11156112965760018054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015261120690611529565b60006112b573b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611179565b111561131e5760018054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e0000000000000000000000000000000000000000000000602082015261120690611529565b600061133d73146500cfd35b22e4a392fe0adc06de1a1368ed48611179565b11156113a65760018054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b656279000000000000000000000000000000000000000000602082015261120690611529565b60006113c573a2998efd205fb9d4b4963afb70778d6354ad3a41611179565b111561142e5760018054600160a060020a03191673a2998efd205fb9d4b4963afb70778d6354ad3a4117905560408051808201909152600a81527f6574685f676f65726c6900000000000000000000000000000000000000000000602082015261120690611529565b600061144d736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611179565b111561147f575060018054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475178155610c9f565b600061149e7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611179565b11156114d0575060018054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf178155610c9f565b60006114ef7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611179565b1115611521575060018054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa178155610c9f565b506000919050565b8051610653906003906020840190611560565b815481835581811115610744576000838152602090206107449181019083016115d6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115a157805160ff19168380011785556115ce565b828001600101855582156115ce579182015b828111156115ce5782518255916020019190600101906115b3565b50610c839291505b61072991905b80821115610c8357600081556001016115dc5600a165627a7a7230582006ba973e715708b83e5670e55abcab2c03b337306a19816615605b5bc34796fc0029
Deployed Bytecode Sourcemap
54835:4050:0:-;;;;;;;;;-1:-1:-1;;;54835:4050:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58068:6;:4;:6::i;:::-;54835:4050;55167:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55167:25:0;;;;;;;;;;;;;;;;;;;;58234:143;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58234:143:0;;;;55253:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55253:20:0;;;;58667:161;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58667:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;58667:161:0;;;;;;;;;;;;;;;;;14011:106;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;14011:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14011:106:0;;-1:-1:-1;14011:106:0;;-1:-1:-1;;;;;;;14011:106:0;14123:70;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;14123:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14123:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14123:70:0;;;;-1:-1:-1;14123:70:0;-1:-1:-1;14123:70:0;;-1:-1:-1;14123:70:0;;;;;;;;-1:-1:-1;14123:70:0;;-1:-1:-1;14123:70:0;;-1:-1:-1;;;;;;;14123:70:0;55278:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55278:24:0;;;;56449:78;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56449:78:0;;;;;;;56272:75;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56272:75:0;;;;;55378:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55378:19:0;;;;;;;;;;;;;;;;;;;;;;54980:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54980:25:0;;;;;58579:81;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58579:81:0;;;;54397:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54397:20:0;;;;;;;;-1:-1:-1;;;;;54397:20:0;;;;;;;;;;;;;;55402:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;55402:43:0;-1:-1:-1;;;;;55402:43:0;;;;;56354:88;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56354:88:0;;;;;54951:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54951:24:0;;;;;58482:90;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58482:90:0;;;;56155:110;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56155:110:0;-1:-1:-1;;;;;56155:110:0;;;;;58384:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58384:91:0;;;;55307:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55307:24:0;;;;55197:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55197:26:0;;;;57596:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57596:91:0;;;;56063:85;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;56063:85:0;-1:-1:-1;;;;;56063:85:0;;;;;54646:178;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54646:178:0;-1:-1:-1;;;;;54646:178:0;;;;;55336:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55336:37:0;;;;55069:31;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55069:31:0;;;;55039:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55039:25:0;;;;55228:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55228:20:0;;;;57694:334;57754:9;;57741;:22;57732:32;;;;;;57781:7;;;;57780:8;57771:18;;;;;;57809:9;;57803:3;:15;57799:146;;;57833:7;:14;57850:1;-1:-1:-1;57829:109:0;;;57882:13;;57876:3;:19;57864:9;:31;57829:109;;;57922:6;:4;:6::i;:::-;57951:7;27:10:-1;;39:1;23:18;;45:23;;-1:-1;57951:24:0;;;;;;;;-1:-1:-1;;;;;;57951:24:0;57964:10;57951:24;;;57996:11;;:26;;58012:9;57996:26;:15;:26;:::i;:::-;57982:11;:40;57694:334::o;55167:25::-;;;;:::o;58234:143::-;58280:19;54622:5;;-1:-1:-1;;;;;54622:5:0;54608:10;:19;54600:28;;;;;;-1:-1:-1;58330:5:0;;58359:11;;58330:41;;58310:4;58302:21;;-1:-1:-1;;;;;58330:5:0;;58345:25;;58330:41;;;;;:5;:41;:5;:41;58345:25;58330:5;:41;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;58330:41:0;58234:143;:::o;55253:20::-;;;;:::o;58667:161::-;58728:7;:14;58706:9;;58745:2;-1:-1:-1;58724:99:0;;;58765:7;58758:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58758:14:0;;;;;;;;;;;;;;;;;;;;;;;;;58724:99;58802:13;58795:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58795:20:0;;;;;;;;;;;;;;;;;;;;;;58724:99;58667:161;:::o;14011:106::-;14096:12;;;14106:1;14096:12;;;;;;;;14071:38;;14082:4;;14088:6;;14123:70;;;;:::o;55278:24::-;;;;:::o;56449:78::-;54622:5;;-1:-1:-1;;;;;54622:5:0;54608:10;:19;54600:28;;;;;;56506:7;:15;;-1:-1:-1;;56506:15:0;;;;;;;;;;56449:78::o;56272:75::-;54622:5;;-1:-1:-1;;;;;54622:5:0;54608:10;:19;54600:28;;;;;;56326:8;:15;56272:75::o;55378:19::-;;;;;;:::o;54980:25::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54980:25:0;:::o;58579:81::-;58622:9;58647:7;58640:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58640:14:0;;;;;;;;;;;;;;;;;;;;;;;58579:81;:::o;54397:20::-;;;-1:-1:-1;;;;;54397:20:0;;:::o;55402:43::-;;;;;;;;;;;;;:::o;56354:88::-;54622:5;;-1:-1:-1;;;;;54622:5:0;54608:10;:19;54600:28;;;;;;56417:9;:19;56354:88::o;54951:24::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54951:24:0;;-1:-1:-1;54951:24:0;:::o;58482:90::-;58552:7;:14;58482:90;:::o;56155:110::-;54622:5;;-1:-1:-1;;;;;54622:5:0;54608:10;:19;54600:28;;;;;;56229:16;:30;;-1:-1:-1;;;;;;56229:30:0;-1:-1:-1;;;;;56229:30:0;;;;;;;;;;56155:110::o;58384:91::-;58455:7;:14;58384:91;:::o;55307:24::-;;;;:::o;55197:26::-;;;;:::o;57596:91::-;57637:16;;-1:-1:-1;;;;;57637:16:0;57657:10;57637:30;57629:39;;;;;;57675:6;:4;:6::i;:::-;57596:91::o;56063:85::-;54622:5;;-1:-1:-1;;;;;54622:5:0;54608:10;:19;54600:28;;;;;;56128:5;:14;;-1:-1:-1;;;;;;56128:14:0;-1:-1:-1;;;;;56128:14:0;;;;;;;;;;56063:85::o;54646:178::-;54622:5;;-1:-1:-1;;;;;54622:5:0;54608:10;:19;54600:28;;;;;;-1:-1:-1;;;;;54723:22:0;;;;54715:31;;;;;;54779:5;;;54758:37;;-1:-1:-1;;;;;54758:37:0;;;;54779:5;;;54758:37;;;54802:5;:16;;-1:-1:-1;;;;;;54802:16:0;-1:-1:-1;;;;;54802:16:0;;;;;;;;;;54646:178::o;55336:37::-;;;;:::o;55069:31::-;;;-1:-1:-1;;;;;55069:31:0;;:::o;55039:25::-;;;-1:-1:-1;;;;;55039:25:0;;:::o;55228:20::-;;;-1:-1:-1;;;;;55228:20:0;;:::o;56893:696::-;56955:19;56998:9;57180;56938;;56932:3;:15;56924:24;;;;;;;;56977:7;:14;;;-1:-1:-1;57035:26:0;56977:14;57035:13;:26::i;:::-;57027:35;;;;;;;;;;;;;;;;;;57014:10;:48;;-1:-1:-1;;;;;;57014:48:0;-1:-1:-1;;;;;57027:35:0;;;57014:48;;;;;;57082:17;:15;:17::i;:::-;57069:10;:30;57124:10;;57111:7;27:10:-1;;57124::0;23:18:-1;;45:23;;57124:10:0;57111:24;;;;;;;-1:-1:-1;;;;;;57111:24:0;-1:-1:-1;;;;;57124:10:0;;;57111:24;;;;;;;57146:14;57163:1;-1:-1:-1;57142:172:0;;;-1:-1:-1;57193:7:0;:14;-1:-1:-1;;57193:19:0;57175:132;57219:7;:14;57215:18;;57175:132;;;57270:7;:10;;57278:1;;57270:10;;;;;;;;;;;;;;;;57251:13;:16;;-1:-1:-1;;;;;57270:10:0;;;;57265:1;;57251:16;;;;;;;;;;;;;;;:29;;-1:-1:-1;;;;;;57251:29:0;-1:-1:-1;;;;;57251:29:0;;;;;;;;;;-1:-1:-1;57291:6:0;;;;57235:3;57175:132;;;57337:10;;;57323:8;27:10:-1;;39:1;23:18;;45:23;;;57323:25:0;;;;;57363:10;;;-1:-1:-1;;;;;57363:10:0;;;-1:-1:-1;57355:19:0;;;:7;57323:25;57355:19;;;;;:33;;;;;;;;57395:10;;57415;;57395:31;;:10;;;:31;;;;;57415:10;57395:31;-1:-1:-1;57395:31:0;57415:10;57395;:31;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;57455:1:0;57438:18;:7;57455:1;57438:18;:::i;:::-;-1:-1:-1;57463:5:0;:10;;57472:1;57463:10;;;:5;57480:11;:15;57520:13;;57514:3;:19;57502:9;:31;57560:10;;57572;;57550:33;;;-1:-1:-1;;;;;57560:10:0;;;57550:33;;;;;;;;;;;;;;;;;;;;;56893:696;;;:::o;54234:133::-;54292:7;54320:5;;;54339:6;;;;54332:14;;;;54360:1;54353:8;;54234:133;;;;;;:::o;56534:145::-;56589:7;56605:12;56620:13;56627:5;56620:6;:13::i;:::-;56605:28;56534:145;-1:-1:-1;;;56534:145:0:o;56686:200::-;56735:7;56799:11;56813:34;56843:3;56813:25;56829:8;;56813:11;;:15;;:25;;;;:::i;:::-;:29;:34;:29;:34;:::i;:::-;56799:48;;56876:3;56862:11;;:17;56854:26;;56686:200;;;:::o;55945:109::-;55993:20;56043:5;56029:11;:9;:11::i;:::-;:19;;;;;;;;56022:26;;55945:109;;;;:::o;53667:180::-;53725:7;;53745:6;;53741:37;;;53769:1;53762:8;;;;53741:37;-1:-1:-1;53796:5:0;;;53800:1;53796;:5;53815;;;;;;;;:10;53808:18;;;53851:262;53909:7;53996:9;54012:1;54008;:5;;;;;;;;;53851:262;-1:-1:-1;;;;53851:262:0:o;55714:221::-;55752:20;55781:13;55797:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:14;:66::i;:::-;55896:5;;;55886:23;;;;;;;;;;;;;;;;;;;;;55870:40;;;;55886:23;-1:-1:-1;55781:82:0;-1:-1:-1;55714:221:0;;:::o;14627:310::-;11576:3;;14712:10;;;;-1:-1:-1;;;;;11576:3:0;11568:15;;11567:49;;-1:-1:-1;11607:3:0;;11587:25;;-1:-1:-1;;;;;11607:3:0;11587:11;:25::i;:::-;:28;11567:49;11564:102;;;11631:35;11288:1;11631:19;:35::i;:::-;;11564:102;11703:3;;;;;;;;;-1:-1:-1;;;;;11703:3:0;-1:-1:-1;;;;;11703:14:0;;:16;;;;;-1:-1:-1;;;11703:16:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11703:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11703:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11703:16:0;11690:8;;-1:-1:-1;;;;;11690:8:0;;;11682:37;;;11679:93;;11755:3;;;;;;;;;-1:-1:-1;;;;;11755:3:0;-1:-1:-1;;;;;11755:14:0;;:16;;;;;-1:-1:-1;;;11755:16:0;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11755:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11755:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11755:16:0;11734:8;:38;;-1:-1:-1;;;;;;11734:38:0;-1:-1:-1;;;;;11734:38:0;;;;;;;;;11679:93;14747:8;;:29;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14747:8:0;;;;:17;;14765:10;;14747:29;;;;;;;;;;;;;;:8;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;14747:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14747:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14747:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14747:29:0;;-1:-1:-1;14799:7:0;14821:6;14809:11;:18;14799:28;14791:36;;14787:50;;;14836:1;;-1:-1:-1;14829:8:0;;14787:50;14882:8;;:47;;;;;:8;:47;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14882:8:0;;;;:14;;14903:5;;14882:8;14913:10;;14925:3;;14882:47;;;;;;;;;;;;;;;;;;:8;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;14882:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14882:47:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;14882:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14882:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14882:47:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14882:47:0;;14627:310;-1:-1:-1;;;;14627:310:0:o;34938:154::-;35056:18;;35032:53::o;11940:2063::-;12003:4;12079:1;12023:55;12035:42;12023:11;:55::i;:::-;:57;12019:249;;;12106:3;:71;;-1:-1:-1;;;;;;12106:71:0;12134:42;12106:71;;;12192:38;;;;;;;;;;;;;;;;;;;:23;:38::i;:::-;-1:-1:-1;12252:4:0;12245:11;;12019:249;12338:1;12282:55;12294:42;12282:11;:55::i;:::-;:57;12278:258;;;12373:3;:71;;-1:-1:-1;;;;;;12373:71:0;12401:42;12373:71;;;12459:39;;;;;;;;;;;;;;;;;;;:23;:39::i;12278:258::-;12606:1;12550:55;12562:42;12550:11;:55::i;:::-;:57;12546:253;;;12639:3;:71;;-1:-1:-1;;;;;;12639:71:0;12667:42;12639:71;;;12725:36;;;;;;;;;;;;;;;;;;;:23;:36::i;12546:253::-;12869:1;12813:55;12825:42;12813:11;:55::i;:::-;:57;12809:257;;;12904:3;:71;;-1:-1:-1;;;;;;12904:71:0;12932:42;12904:71;;;12990:38;;;;;;;;;;;;;;;;;;;:23;:38::i;12809:257::-;13136:1;13080:55;13092:42;13080:11;:55::i;:::-;:57;13076:255;;;13170:3;:71;;-1:-1:-1;;;;;;13170:71:0;13198:42;13170:71;;;13256:37;;;;;;;;;;;;;;;;;;;:23;:37::i;13076:255::-;13401:1;13345:55;13357:42;13345:11;:55::i;:::-;:57;13341:204;;;-1:-1:-1;13436:3:0;:71;;-1:-1:-1;;;;;;13436:71:0;13464:42;13436:71;;;13522:11;;13341:204;13615:1;13559:55;13571:42;13559:11;:55::i;:::-;:57;13555:203;;;-1:-1:-1;13649:3:0;:71;;-1:-1:-1;;;;;;13649:71:0;13677:42;13649:71;;;13735:11;;13555:203;13828:1;13772:55;13784:42;13772:11;:55::i;:::-;:57;13768:205;;;-1:-1:-1;13864:3:0;:71;;-1:-1:-1;;;;;;13864:71:0;13892:42;13864:71;;;13950:11;;13768:205;-1:-1:-1;13990:5:0;11940:2063;;;:::o;40528:120::-;40603:37;;;;:21;;:37;;;;;:::i;54835:4050::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54835:4050:0;;;-1:-1:-1;54835:4050:0;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://06ba973e715708b83e5670e55abcab2c03b337306a19816615605b5bc34796fc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,455.73 | 0.00897457 | $22.04 |
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.