Overview
ETH Balance
0.003704035847429332 ETH
Eth Value
$8.72 (@ $2,353.40/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 177 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 10336766 | 1540 days ago | IN | 0 ETH | 0.00079171 | ||||
Transfer | 10330424 | 1541 days ago | IN | 0 ETH | 0.00090482 | ||||
Transfer | 10330264 | 1541 days ago | IN | 0 ETH | 0.00090482 | ||||
__callback | 7793879 | 1942 days ago | IN | 0 ETH | 0.00112498 | ||||
__callback | 7791557 | 1943 days ago | IN | 0 ETH | 0.00112498 | ||||
__callback | 7791557 | 1943 days ago | IN | 0 ETH | 0.00112498 | ||||
__callback | 7791366 | 1943 days ago | IN | 0 ETH | 0.00112498 | ||||
__callback | 7790656 | 1943 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7788368 | 1943 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7788368 | 1943 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7788195 | 1943 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7787496 | 1943 days ago | IN | 0 ETH | 0.00180142 | ||||
__callback | 7785175 | 1944 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7785175 | 1944 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7784993 | 1944 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7784308 | 1944 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7781999 | 1944 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7781996 | 1944 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7781098 | 1944 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7778797 | 1945 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7778793 | 1945 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7777897 | 1945 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7775581 | 1945 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7775578 | 1945 days ago | IN | 0 ETH | 0.0018027 | ||||
__callback | 7774686 | 1945 days ago | IN | 0 ETH | 0.0018027 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
7790656 | 1943 days ago | 0.00420745 ETH | ||||
7788368 | 1943 days ago | 0.00420745 ETH | ||||
7788368 | 1943 days ago | 0.00420745 ETH | ||||
7788195 | 1943 days ago | 0.00420745 ETH | ||||
7787496 | 1943 days ago | 0.00420745 ETH | ||||
7785175 | 1944 days ago | 0.00420745 ETH | ||||
7785175 | 1944 days ago | 0.00420745 ETH | ||||
7784993 | 1944 days ago | 0.00420745 ETH | ||||
7784308 | 1944 days ago | 0.00420745 ETH | ||||
7781999 | 1944 days ago | 0.00420745 ETH | ||||
7781996 | 1944 days ago | 0.00420745 ETH | ||||
7781098 | 1944 days ago | 0.00420745 ETH | ||||
7778797 | 1945 days ago | 0.00420745 ETH | ||||
7778793 | 1945 days ago | 0.00420745 ETH | ||||
7777897 | 1945 days ago | 0.00420745 ETH | ||||
7775581 | 1945 days ago | 0.00420745 ETH | ||||
7775578 | 1945 days ago | 0.00420745 ETH | ||||
7774686 | 1945 days ago | 0.00420745 ETH | ||||
7772330 | 1946 days ago | 0.00420745 ETH | ||||
7772328 | 1946 days ago | 0.00420745 ETH | ||||
7771435 | 1946 days ago | 0.00420745 ETH | ||||
7769152 | 1946 days ago | 0.00420745 ETH | ||||
7768256 | 1946 days ago | 0.00420745 ETH | ||||
7765020 | 1947 days ago | 0.0042984 ETH | ||||
7761801 | 1947 days ago | 0.0042984 ETH |
Loading...
Loading
Contract Name:
Mitoshi
Compiler Version
v0.5.5+commit.47a71e8f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-03-29 */ /* 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.5.0; // Incompatible compiler version - please select a compiler within the stated pragma range, or use a different version of the oraclizeAPI! // Dummy contract only used to emit to end-user they are using wrong solc contract solcChecker { /* INCOMPATIBLE SOLC: import the following instead: "github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol" */ function f(bytes calldata x) external; } contract OraclizeI { address public cbAddress; function setProofType(byte _proofType) external; function setCustomGasPrice(uint _gasPrice) external; function getPrice(string memory _datasource) public returns (uint _dsprice); function randomDS_getSessionPubKeyHash() external view returns (bytes32 _sessionKeyHash); function getPrice(string memory _datasource, uint _gasLimit) public returns (uint _dsprice); function queryN(uint _timestamp, string memory _datasource, bytes memory _argN) public payable returns (bytes32 _id); function query(uint _timestamp, string calldata _datasource, string calldata _arg) external payable returns (bytes32 _id); function query2(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2) public payable returns (bytes32 _id); function query_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg, uint _gasLimit) external payable returns (bytes32 _id); function queryN_withGasLimit(uint _timestamp, string calldata _datasource, bytes calldata _argN, uint _gasLimit) external payable returns (bytes32 _id); function query2_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg1, string calldata _arg2, uint _gasLimit) external payable returns (bytes32 _id); } contract OraclizeAddrResolverI { function getAddress() public returns (address _address); } /* 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 pure { uint capacity = _capacity; if (capacity % 32 != 0) { capacity += 32 - (capacity % 32); } _buf.capacity = capacity; // Allocate space for the buffer data assembly { let ptr := mload(0x40) mstore(_buf, ptr) mstore(ptr, 0) mstore(0x40, add(ptr, capacity)) } } function resize(buffer memory _buf, uint _capacity) private pure { bytes memory oldbuf = _buf.buf; init(_buf, _capacity); append(_buf, oldbuf); } function max(uint _a, uint _b) private pure returns (uint _max) { 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 memory _data) internal pure returns (buffer memory _buffer) { 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 { let bufptr := mload(_buf) // Memory address of the buffer data let buflen := mload(bufptr) // Length of existing buffer data dest := add(add(bufptr, buflen), 32) // Start address = buffer address + buffer length + sizeof(buffer length) mstore(bufptr, add(buflen, mload(_data))) // Update buffer length src := add(_data, 32) } for(; len >= 32; len -= 32) { // Copy word-length chunks while possible assembly { mstore(dest, mload(src)) } dest += 32; src += 32; } uint mask = 256 ** (32 - len) - 1; // Copy remaining bytes 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 pure { if (_buf.buf.length + 1 > _buf.capacity) { resize(_buf, _buf.capacity * 2); } assembly { let bufptr := mload(_buf) // Memory address of the buffer data let buflen := mload(bufptr) // Length of existing buffer data let dest := add(add(bufptr, buflen), 32) // Address = buffer address + buffer length + sizeof(buffer length) mstore8(dest, _data) mstore(bufptr, add(buflen, 1)) // Update buffer length } } /** * * @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 pure returns (buffer memory _buffer) { if (_len + _buf.buf.length > _buf.capacity) { resize(_buf, max(_buf.capacity, _len) * 2); } uint mask = 256 ** _len - 1; assembly { let bufptr := mload(_buf) // Memory address of the buffer data let buflen := mload(bufptr) // Length of existing buffer data let dest := add(add(bufptr, buflen), _len) // Address = buffer address + buffer length + sizeof(buffer length) + len mstore(dest, or(and(mload(dest), not(mask)), _data)) mstore(bufptr, add(buflen, _len)) // Update buffer length } return _buf; } } library CBOR { using Buffer for Buffer.buffer; uint8 private constant MAJOR_TYPE_INT = 0; uint8 private constant MAJOR_TYPE_MAP = 5; uint8 private constant MAJOR_TYPE_BYTES = 2; uint8 private constant MAJOR_TYPE_ARRAY = 4; uint8 private constant MAJOR_TYPE_STRING = 3; uint8 private constant MAJOR_TYPE_NEGATIVE_INT = 1; uint8 private constant MAJOR_TYPE_CONTENT_FREE = 7; function encodeType(Buffer.buffer memory _buf, uint8 _major, uint _value) private pure { if (_value <= 23) { _buf.append(uint8((_major << 5) | _value)); } else if (_value <= 0xFF) { _buf.append(uint8((_major << 5) | 24)); _buf.appendInt(_value, 1); } else if (_value <= 0xFFFF) { _buf.append(uint8((_major << 5) | 25)); _buf.appendInt(_value, 2); } else if (_value <= 0xFFFFFFFF) { _buf.append(uint8((_major << 5) | 26)); _buf.appendInt(_value, 4); } else if (_value <= 0xFFFFFFFFFFFFFFFF) { _buf.append(uint8((_major << 5) | 27)); _buf.appendInt(_value, 8); } } function encodeIndefiniteLengthType(Buffer.buffer memory _buf, uint8 _major) private pure { _buf.append(uint8((_major << 5) | 31)); } function encodeUInt(Buffer.buffer memory _buf, uint _value) internal pure { encodeType(_buf, MAJOR_TYPE_INT, _value); } function encodeInt(Buffer.buffer memory _buf, int _value) internal pure { 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 memory _value) internal pure { encodeType(_buf, MAJOR_TYPE_BYTES, _value.length); _buf.append(_value); } function encodeString(Buffer.buffer memory _buf, string memory _value) internal pure { encodeType(_buf, MAJOR_TYPE_STRING, bytes(_value).length); _buf.append(bytes(_value)); } function startArray(Buffer.buffer memory _buf) internal pure { encodeIndefiniteLengthType(_buf, MAJOR_TYPE_ARRAY); } function startMap(Buffer.buffer memory _buf) internal pure { encodeIndefiniteLengthType(_buf, MAJOR_TYPE_MAP); } function endSequence(Buffer.buffer memory _buf) internal pure { encodeIndefiniteLengthType(_buf, MAJOR_TYPE_CONTENT_FREE); } } /* End solidity-cborutils */ contract usingOraclize { using CBOR for Buffer.buffer; OraclizeI oraclize; OraclizeAddrResolverI OAR; 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_Ledger = 0x30; byte constant proofType_Native = 0xF0; byte constant proofStorage_IPFS = 0x01; byte constant proofType_Android = 0x40; byte constant proofType_TLSNotary = 0x10; string oraclize_network_name; uint8 constant networkID_auto = 0; uint8 constant networkID_morden = 2; uint8 constant networkID_mainnet = 1; uint8 constant networkID_testnet = 2; uint8 constant networkID_consensys = 161; mapping(bytes32 => bytes32) oraclize_randomDS_args; mapping(bytes32 => bool) oraclize_randomDS_sessionKeysHashVerified; modifier oraclizeAPI { if ((address(OAR) == address(0)) || (getCodeSize(address(OAR)) == 0)) { oraclize_setNetwork(networkID_auto); } if (address(oraclize) != OAR.getAddress()) { oraclize = OraclizeI(OAR.getAddress()); } _; } modifier oraclize_randomDS_proofVerify(bytes32 _queryId, string memory _result, bytes memory _proof) { // RandomDS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1) require((_proof[0] == "L") && (_proof[1] == "P") && (uint8(_proof[2]) == uint8(1))); bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName()); require(proofVerified); _; } function oraclize_setNetwork(uint8 _networkID) internal returns (bool _networkSet) { return oraclize_setNetwork(); _networkID; // silence the warning and remain backwards compatible } function oraclize_setNetworkName(string memory _network_name) internal { oraclize_network_name = _network_name; } function oraclize_getNetworkName() internal view returns (string memory _networkName) { return oraclize_network_name; } function oraclize_setNetwork() internal returns (bool _networkSet) { if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed) > 0) { //mainnet OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed); oraclize_setNetworkName("eth_mainnet"); return true; } if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1) > 0) { //ropsten testnet OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1); oraclize_setNetworkName("eth_ropsten3"); return true; } if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e) > 0) { //kovan testnet OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e); oraclize_setNetworkName("eth_kovan"); return true; } if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48) > 0) { //rinkeby testnet OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48); oraclize_setNetworkName("eth_rinkeby"); return true; } if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475) > 0) { //ethereum-bridge OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475); return true; } if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF) > 0) { //ether.camp ide OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF); return true; } if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA) > 0) { //browser-solidity OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA); return true; } return false; } function __callback(bytes32 _myid, string memory _result) public { __callback(_myid, _result, new bytes(0)); } function __callback(bytes32 _myid, string memory _result, bytes memory _proof) public { return; _myid; _result; _proof; // Silence compiler warnings } function oraclize_getPrice(string memory _datasource) oraclizeAPI internal returns (uint _queryPrice) { return oraclize.getPrice(_datasource); } function oraclize_getPrice(string memory _datasource, uint _gasLimit) oraclizeAPI internal returns (uint _queryPrice) { return oraclize.getPrice(_datasource, _gasLimit); } function oraclize_query(string memory _datasource, string memory _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 memory _datasource, string memory _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 memory _datasource, string memory _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 memory _datasource, string memory _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 memory _datasource, string memory _arg1, string memory _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 memory _datasource, string memory _arg1, string memory _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 memory _datasource, string memory _arg1, string memory _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 memory _datasource, string memory _arg1, string memory _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 memory _datasource, string[] memory _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 memory _datasource, string[] memory _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 memory _datasource, string[] memory _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 memory _datasource, string[] memory _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 memory _datasource, string[1] memory _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 memory _datasource, string[1] memory _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 memory _datasource, string[1] memory _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 memory _datasource, string[1] memory _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 memory _datasource, string[2] memory _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 memory _datasource, string[2] memory _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 memory _datasource, string[2] memory _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 memory _datasource, string[2] memory _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 memory _datasource, string[3] memory _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 memory _datasource, string[3] memory _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 memory _datasource, string[3] memory _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 memory _datasource, string[3] memory _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 memory _datasource, string[4] memory _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 memory _datasource, string[4] memory _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 memory _datasource, string[4] memory _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 memory _datasource, string[4] memory _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 memory _datasource, string[5] memory _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 memory _datasource, string[5] memory _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 memory _datasource, string[5] memory _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 memory _datasource, string[5] memory _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 memory _datasource, bytes[] memory _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 memory _datasource, bytes[] memory _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 memory _datasource, bytes[] memory _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 memory _datasource, bytes[] memory _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 memory _datasource, bytes[1] memory _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 memory _datasource, bytes[1] memory _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 memory _datasource, bytes[1] memory _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 memory _datasource, bytes[1] memory _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 memory _datasource, bytes[2] memory _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 memory _datasource, bytes[2] memory _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 memory _datasource, bytes[2] memory _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 memory _datasource, bytes[2] memory _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 memory _datasource, bytes[3] memory _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 memory _datasource, bytes[3] memory _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 memory _datasource, bytes[3] memory _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 memory _datasource, bytes[3] memory _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 memory _datasource, bytes[4] memory _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 memory _datasource, bytes[4] memory _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 memory _datasource, bytes[4] memory _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 memory _datasource, bytes[4] memory _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 memory _datasource, bytes[5] memory _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 memory _datasource, bytes[5] memory _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 memory _datasource, bytes[5] memory _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 memory _datasource, bytes[5] memory _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_setProof(byte _proofP) oraclizeAPI internal { return oraclize.setProofType(_proofP); } function oraclize_cbAddress() oraclizeAPI internal returns (address _callbackAddress) { return oraclize.cbAddress(); } function getCodeSize(address _addr) view internal returns (uint _size) { assembly { _size := extcodesize(_addr) } } function oraclize_setCustomGasPrice(uint _gasPrice) oraclizeAPI internal { return oraclize.setCustomGasPrice(_gasPrice); } function oraclize_randomDS_getSessionPubKeyHash() oraclizeAPI internal returns (bytes32 _sessionKeyHash) { return oraclize.randomDS_getSessionPubKeyHash(); } function parseAddr(string memory _a) internal pure returns (address _parsedAddress) { 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(uint8(tmp[i])); b2 = uint160(uint8(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 memory _a, string memory _b) internal pure returns (int _returnCode) { 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 memory _haystack, string memory _needle) internal pure returns (int _returnCode) { 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 memory _a, string memory _b) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, "", "", ""); } function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, _c, "", ""); } function strConcat(string memory _a, string memory _b, string memory _c, string memory _d) internal pure returns (string memory _concatenatedString) { return strConcat(_a, _b, _c, _d, ""); } function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory _concatenatedString) { 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; uint i = 0; for (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 safeParseInt(string memory _a) internal pure returns (uint _parsedInt) { return safeParseInt(_a, 0); } function safeParseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) { bytes memory bresult = bytes(_a); uint mint = 0; bool decimals = false; for (uint i = 0; i < bresult.length; i++) { if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) { if (decimals) { if (_b == 0) break; else _b--; } mint *= 10; mint += uint(uint8(bresult[i])) - 48; } else if (uint(uint8(bresult[i])) == 46) { require(!decimals, 'More than one decimal encountered in string!'); decimals = true; } else { revert("Non-numeral character encountered in string!"); } } if (_b > 0) { mint *= 10 ** _b; } return mint; } function parseInt(string memory _a) internal pure returns (uint _parsedInt) { return parseInt(_a, 0); } function parseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) { bytes memory bresult = bytes(_a); uint mint = 0; bool decimals = false; for (uint i = 0; i < bresult.length; i++) { if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) { if (decimals) { if (_b == 0) { break; } else { _b--; } } mint *= 10; mint += uint(uint8(bresult[i])) - 48; } else if (uint(uint8(bresult[i])) == 46) { decimals = true; } } if (_b > 0) { mint *= 10 ** _b; } return mint; } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { 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(uint8(48 + _i % 10)); _i /= 10; } return string(bstr); } function stra2cbor(string[] memory _arr) internal pure returns (bytes memory _cborEncoding) { 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[] memory _arr) internal pure returns (bytes memory _cborEncoding) { 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; } function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32 _queryId) { require((_nbytes > 0) && (_nbytes <= 32)); _delay *= 10; // Convert from seconds to ledger timer ticks bytes memory nbytes = new bytes(1); nbytes[0] = byte(uint8(_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 the relaxed random contract at https://github.com/oraclize/ethereum-examples for an idea on how to override and replace commit hash variables. */ 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, keccak256(abi.encodePacked(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; } function verifySig(bytes32 _tosignh, bytes memory _dersig, bytes memory _pubkey) internal returns (bool _sigVerified) { bool sigok; address signer; bytes32 sigr; bytes32 sigs; bytes memory sigr_ = new bytes(32); uint offset = 4 + (uint(uint8(_dersig[3])) - 0x20); sigr_ = copyBytes(_dersig, offset, 32, sigr_, 0); bytes memory sigs_ = new bytes(32); offset += 32 + 2; sigs_ = copyBytes(_dersig, offset + (uint(uint8(_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(uint160(uint256(keccak256(_pubkey)))) == signer) { return true; } else { (sigok, signer) = safer_ecrecover(_tosignh, 28, sigr, sigs); return (address(uint160(uint256(keccak256(_pubkey)))) == signer); } } function oraclize_randomDS_proofVerify__sessionKeyValidity(bytes memory _proof, uint _sig2offset) internal returns (bool _proofVerified) { bool sigok; // Random DS Proof Step 6: Verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH) bytes memory sig2 = new bytes(uint(uint8(_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] = byte(uint8(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) { return false; } // Random DS Proof 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(uint8(_proof[3 + 65 + 1])) + 2); copyBytes(_proof, 3 + 65, sig3.length, sig3, 0); sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY); return sigok; } function oraclize_randomDS_proofVerify__returnCode(bytes32 _queryId, string memory _result, bytes memory _proof) internal returns (uint8 _returnCode) { // Random DS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1) if ((_proof[0] != "L") || (_proof[1] != "P") || (uint8(_proof[2]) != uint8(1))) { return 1; } bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName()); if (!proofVerified) { return 2; } return 0; } function matchBytes32Prefix(bytes32 _content, bytes memory _prefix, uint _nRandomBytes) internal pure returns (bool _matchesPrefix) { bool match_ = true; require(_prefix.length == _nRandomBytes); for (uint256 i = 0; i< _nRandomBytes; i++) { if (_content[i] != _prefix[i]) { match_ = false; } } return match_; } function oraclize_randomDS_proofVerify__main(bytes memory _proof, bytes32 _queryId, bytes memory _result, string memory _contextName) internal returns (bool _proofVerified) { // Random DS Proof Step 2: The unique keyhash has to match with the sha256 of (context name + _queryId) uint ledgerProofLength = 3 + 65 + (uint(uint8(_proof[3 + 65 + 1])) + 2) + 32; bytes memory keyhash = new bytes(32); copyBytes(_proof, ledgerProofLength, 32, keyhash, 0); if (!(keccak256(keyhash) == keccak256(abi.encodePacked(sha256(abi.encodePacked(_contextName, _queryId)))))) { return false; } bytes memory sig1 = new bytes(uint(uint8(_proof[ledgerProofLength + (32 + 8 + 1 + 32) + 1])) + 2); copyBytes(_proof, ledgerProofLength + (32 + 8 + 1 + 32), sig1.length, sig1, 0); // Random DS Proof 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(uint8(_proof[ledgerProofLength + 32 + 8])))) { return false; } // Random DS Proof Step 4: Commitment match verification, keccak256(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] == keccak256(abi.encodePacked(commitmentSlice1, sessionPubkeyHash))) { //unonce, nbytes and sessionKeyHash match delete oraclize_randomDS_args[_queryId]; } else return false; // Random DS Proof 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]) { 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 memory _from, uint _fromOffset, uint _length, bytes memory _to, uint _toOffset) internal pure returns (bytes memory _copiedBytes) { uint minLength = _length + _toOffset; require(_to.length >= minLength); // Buffer too small. Should be a better way? uint i = 32 + _fromOffset; // NOTE: the offset 32 is added to skip the `size` field of both bytes variables 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 _success, address _recoveredAddress) { /* 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) ret := call(3000, 1, 0, size, 128, size, 32) // NOTE: we can reuse the request memory because we deal with the return code. 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 memory _sig) internal returns (bool _success, address _recoveredAddress) { bytes32 r; bytes32 s; uint8 v; if (_sig.length != 65) { return (false, address(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, address(0)); } return safer_ecrecover(_hash, v, r, s); } function safeMemoryCleaner() internal pure { assembly { let fmem := mload(0x40) codecopy(fmem, codesize, sub(msize, fmem)) } } } /* END ORACLIZE_API */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } 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 c) { c = a + b; assert(c >= a); return c; } } contract Ownable { address payable owner; //for tokens mapping(address => bool) owners; event OwnerAdded(address indexed newOwner); event OwnerDeleted(address indexed owner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owners[msg.sender] = true; owner = msg.sender; } modifier onlyOwner() { require(isOwner(msg.sender)); _; } function addOwner(address _newOwner) external onlyOwner { require(_newOwner != address(0)); owners[_newOwner] = true; emit OwnerAdded(_newOwner); } function delOwner(address _owner) external onlyOwner { require(owners[_owner]); owners[_owner] = false; emit OwnerDeleted(_owner); } function isOwner(address _owner) public view returns (bool) { return owners[_owner]; } function changeMainOwner(address payable _owner) public { require(_owner != address(0)); owner = _owner; } } interface tokenRecipient { function receiveApproval( address _from, uint256 _value, address _token, bytes calldata _extraData ) external; } contract Mitoshi is Ownable, usingOraclize { using SafeMath for uint256; string public name = "Mitoshi"; string public symbol = "MCL"; uint8 public decimals = 18; uint256 DEC = 10 ** uint256(decimals); uint256 public totalSupply = 1000000000 * DEC; uint256 public tokensForSale = 680000000 * DEC; uint256 minPurchase = 25 ether; uint256 public curs = 140; uint256 public oraclizeBalance; uint256 public goal = 10000000 ether; uint256 public cap = 50000000 ether; uint256 public USDRaised; mapping(address => uint256) deposited; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); event Burn(address indexed from, uint256 value); event RefundsEnabled(); event Closed(); event Refunded(address indexed beneficiary, uint256 weiAmount); event LogPriceUpdated(string price); event LogNewOraclizeQuery(string description); enum State {Active, Refunding, Closed} State public state; modifier transferredIsOn { require(state == State.Closed); _; } modifier sellIsOn { require(state == State.Active); _; } constructor() public { oraclize_setProof(proofType_TLSNotary | proofStorage_IPFS); balanceOf[msg.sender] = totalSupply; state = State.Active; } function() external payable { buyTokens(msg.sender); } function __callback(bytes32 myid, string memory result, bytes memory proof) public { myid; proof; if (msg.sender != oraclize_cbAddress()) revert(); curs = parseInt(result); emit LogPriceUpdated(result); updatePrice(); } function transfer(address _to, uint256 _value) transferredIsOn public { _transfer(msg.sender, _to, _value); } function transferFrom(address _from, address _to, uint256 _value) transferredIsOn public returns (bool success) { require(_value <= allowance[_from][msg.sender]); allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value); _transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { require((_value == 0) || (allowance[msg.sender][_spender] == 0)); allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function approveAndCall(address _spender, uint256 _value, bytes memory _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, address(this), _extraData); return true; } } function transferOwner(address _to, uint256 _value) onlyOwner public { _transfer(msg.sender, _to, _value); } function _transfer(address _from, address _to, uint _value) internal { require(_to != address(0)); require(balanceOf[_from] >= _value); require(balanceOf[_to].add(_value) >= balanceOf[_to]); balanceOf[_from] = balanceOf[_from].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); emit Transfer(_from, _to, _value); } function buyTokens(address beneficiary) sellIsOn payable public { uint cost; uint bonus; (cost, bonus) = getCostAndBonus(); uint rate = 1 ether * curs / cost; uint amount = rate.mul(msg.value); require(amount >= minPurchase && amount <= tokensForSale); amount = amount.add(amount.mul(bonus).div(100)); _transfer(owner, beneficiary, amount); tokensForSale = tokensForSale.sub(amount); USDRaised = USDRaised.add(msg.value.mul(curs)); deposited[beneficiary] = deposited[beneficiary].add(msg.value); } function manualSale(address beneficiary, uint amount, uint ethValue) onlyOwner public { _transfer(owner, beneficiary, amount); tokensForSale = tokensForSale.sub(amount); USDRaised = USDRaised.add(ethValue.mul(curs)); deposited[beneficiary] = deposited[beneficiary].add(ethValue); } function enableRefunds() onlyOwner sellIsOn public { require(USDRaised < goal); state = State.Refunding; emit RefundsEnabled(); } function close() onlyOwner public { require(USDRaised >= goal); state = State.Closed; emit Closed(); } function refund(address payable investor) public { require(state == State.Refunding); require(deposited[investor] > 0); uint256 depositedValue = deposited[investor]; investor.transfer(depositedValue); emit Refunded(investor, depositedValue); deposited[investor] = 0; } function withdrawBalance() onlyOwner external { require(state == State.Closed); require(address(this).balance > 0); owner.transfer(address(this).balance); } function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); emit Burn(msg.sender, _value); return true; } function updateCurs(uint256 _value) onlyOwner public { curs = _value; } //15 March 2019 to 14 April 2019 1552597200 1555275600 //15 April 2019 to 14 May 2019 1555275600 1557867600 //15 May 2019 to 14 June 2019 1557867600 1560546000 //15 June 2019 to 14 July 2019 1560546000 1563138000 //15 July 2019 to 14 August 2019 1563138000 1565816400 //15 August 2019 to 14 September 2019 1565816400 1568494800 //15 September 2019 to 14 October 2019 1568494800 1571086800 //15 October 2019 to 14 November 2019 1571086800 1573765200 //15 November 2019 1573765200 function getCostAndBonus() internal view returns(uint, uint) { uint cost; if (block.timestamp >= 1552597200 && block.timestamp < 1555275600) { cost = 10 * DEC / 100; return (cost, 30); } else if (block.timestamp >= 1555275600 && block.timestamp < 1557867600) { cost = 14 * DEC / 100; return (cost, 30); } else if (block.timestamp >= 1557867600 && block.timestamp < 1560546000) { cost = 15 * DEC / 100; return (cost, 25); } else if (block.timestamp >= 1560546000 && block.timestamp < 1563138000) { cost = 16 * DEC / 100; return (cost, 20); } else if (block.timestamp >= 1563138000 && block.timestamp < 1565816400) { cost = 17 * DEC / 100; return (cost, 15); } else if (block.timestamp >= 1565816400 && block.timestamp < 1568494800) { cost = 18 * DEC / 100; return (cost, 10); } else if (block.timestamp >= 1568494800 && block.timestamp < 1571086800) { cost = 19 * DEC / 100; return (cost, 5); } else if (block.timestamp >= 1571086800 && block.timestamp < 1573765200) { cost = 20 * DEC / 100; return (cost, 0); } else if (block.timestamp >= 1573765200) { cost = 20 * DEC / 100; return (cost, 0); } else return (0,0); } function updatePrice() sellIsOn payable public { if (oraclize_getPrice("URL") > address(this).balance) { emit LogNewOraclizeQuery("Oraclize query was NOT sent, please add some ETH to cover for the query fee"); } else { emit LogNewOraclizeQuery("Oraclize query was sent, standing by for the answer.."); //43200 = 12 hour oraclize_query(43200, "URL", "json(https://api.gdax.com/products/ETH-USD/ticker).price"); } } function setGasPrice(uint _newPrice) onlyOwner public { oraclize_setCustomGasPrice(_newPrice * 1 wei); } function addBalanceForOraclize() payable external { oraclizeBalance = oraclizeBalance.add(msg.value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"updateCurs","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokensForSale","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"addBalanceForOraclize","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_myid","type":"bytes32"},{"name":"_result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"goal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"close","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"updatePrice","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"addOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"delOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"enableRefunds","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"amount","type":"uint256"},{"name":"ethValue","type":"uint256"}],"name":"manualSale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"curs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"USDRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newPrice","type":"uint256"}],"name":"setGasPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"state","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oraclizeBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"investor","type":"address"}],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"changeMainOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[],"name":"RefundsEnabled","type":"event"},{"anonymous":false,"inputs":[],"name":"Closed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"weiAmount","type":"uint256"}],"name":"Refunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"price","type":"string"}],"name":"LogPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"description","type":"string"}],"name":"LogNewOraclizeQuery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"OwnerDeleted","type":"event"}]
Contract Creation Code
60c0604052600760808190527f4d69746f7368690000000000000000000000000000000000000000000000000060a09081526200003e91908162000767565b506040805180820190915260038082527f4d434c00000000000000000000000000000000000000000000000000000000006020909201918252620000859160089162000767565b506009805460ff19166012179081905560ff16600a90810a90819055633b9aca008102600b55632887fa0002600c5568015af1d78b58c40000600d55608c600e556a084595161401484a0000006010556a295be96e64066972000000601155348015620000f157600080fd5b503360008181526001602081815260408320805460ff191690921790915581546001600160a01b031916909217905562000151907f11000000000000000000000000000000000000000000000000000000000000009062000174811b901c565b600b54336000908152601460205260409020556016805460ff1916905562000809565b6003546001600160a01b03161580620001a85750600354620001a6906001600160a01b03166200039a602090811b901c565b155b15620001c257620001c060006200039e60201b60201c565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156200021357600080fd5b505af115801562000228573d6000803e3d6000fd5b505050506040513d60208110156200023f57600080fd5b50516002546001600160a01b03908116911614620002f657600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015620002a857600080fd5b505af1158015620002bd573d6000803e3d6000fd5b505050506040513d6020811015620002d457600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b600254604080517f688dcfd70000000000000000000000000000000000000000000000000000000081527fff000000000000000000000000000000000000000000000000000000000000008416600482015290516001600160a01b039092169163688dcfd79160248082019260009290919082900301818387803b1580156200037e57600080fd5b505af115801562000393573d6000803e3d6000fd5b5050505050565b3b90565b6000620003b0620003b660201b60201c565b92915050565b600080620003de731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6200039a60201b60201c565b11156200045c57600380546001600160a01b031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020808301919091526200045391906200074e811b901c565b5060016200074b565b60006200048373c03a2615d5efaf5f49f60b7bb6583eaec212fdf16200039a60201b60201c565b1115620004f857600380546001600160a01b03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020808301919091526200045391906200074e811b901c565b60006200051f73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6200039a60201b60201c565b11156200059457600380546001600160a01b03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020808301919091526200045391906200074e811b901c565b6000620005bb73146500cfd35b22e4a392fe0adc06de1a1368ed486200039a60201b60201c565b11156200063057600380546001600160a01b03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020808301919091526200045391906200074e811b901c565b600062000657736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756200039a60201b60201c565b11156200068d5750600380546001600160a01b031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47517905560016200074b565b6000620006b47320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6200039a60201b60201c565b1115620006ea5750600380546001600160a01b0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf17905560016200074b565b6000620007117351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6200039a60201b60201c565b1115620007475750600380546001600160a01b0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa17905560016200074b565b5060005b90565b80516200076390600490602084019062000767565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620007aa57805160ff1916838001178555620007da565b82800160010185558215620007da579182015b82811115620007da578251825591602001919060010190620007bd565b50620007e8929150620007ec565b5090565b6200074b91905b80821115620007e85760008155600101620007f3565b61292780620008196000396000f3fe6080604052600436106102045760003560e01c80637065cb4811610118578063bf1fe420116100a0578063dd62ed3e1161006f578063dd62ed3e14610913578063e53c45481461094e578063ec8ac4d814610987578063fa89401a146109ad578063fe093621146109e057610204565b8063bf1fe420146107d5578063c19d93fb146107ff578063c4218d3314610838578063cae9ca511461084d57610204565b80639283da3c116100e75780639283da3c1461071e57806395d89b411461075d578063a23f41e214610772578063a9059cbb14610787578063b2812faa146107c057610204565b80637065cb481461067057806370a08231146106a357806373984188146106d65780638c52dc411461070957610204565b80632f54bf6e1161019b578063401938831161016a57806340193883146105ff57806342966c681461061457806343d726d61461063e5780635fd8c71014610653578063673a7e281461066857610204565b80632f54bf6e1461044f578063313ce56714610482578063355274ea146104ad57806338bbfa50146104c257610204565b80631767da08116101d75780631767da081461033757806318160ddd1461033f57806323b872dd1461035457806327dc297e1461039757610204565b806306fdde031461020f578063095ea7b3146102995780630bab718f146102e657806312aef8c314610310575b61020d33610a13565b005b34801561021b57600080fd5b50610224610b68565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025e578181015183820152602001610246565b50505050905090810190601f16801561028b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102a557600080fd5b506102d2600480360360408110156102bc57600080fd5b506001600160a01b038135169060200135610bf6565b604080519115158252519081900360200190f35b3480156102f257600080fd5b5061020d6004803603602081101561030957600080fd5b5035610c99565b34801561031c57600080fd5b50610325610cb2565b60408051918252519081900360200190f35b61020d610cb8565b34801561034b57600080fd5b50610325610cd0565b34801561036057600080fd5b506102d26004803603606081101561037757600080fd5b506001600160a01b03813581169160208101359091169060400135610cd6565b3480156103a357600080fd5b5061020d600480360360408110156103ba57600080fd5b81359190810190604081016020820135600160201b8111156103db57600080fd5b8201836020820111156103ed57600080fd5b803590602001918460018302840111600160201b8311171561040e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d93945050505050565b34801561045b57600080fd5b506102d26004803603602081101561047257600080fd5b50356001600160a01b0316610db3565b34801561048e57600080fd5b50610497610dd1565b6040805160ff9092168252519081900360200190f35b3480156104b957600080fd5b50610325610dda565b3480156104ce57600080fd5b5061020d600480360360608110156104e557600080fd5b81359190810190604081016020820135600160201b81111561050657600080fd5b82018360208201111561051857600080fd5b803590602001918460018302840111600160201b8311171561053957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561058b57600080fd5b82018360208201111561059d57600080fd5b803590602001918460018302840111600160201b831117156105be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610de0945050505050565b34801561060b57600080fd5b50610325610ead565b34801561062057600080fd5b506102d26004803603602081101561063757600080fd5b5035610eb3565b34801561064a57600080fd5b5061020d610f40565b34801561065f57600080fd5b5061020d610f9d565b61020d611019565b34801561067c57600080fd5b5061020d6004803603602081101561069357600080fd5b50356001600160a01b031661114e565b3480156106af57600080fd5b50610325600480360360208110156106c657600080fd5b50356001600160a01b03166111c6565b3480156106e257600080fd5b5061020d600480360360208110156106f957600080fd5b50356001600160a01b03166111d8565b34801561071557600080fd5b5061020d61125c565b34801561072a57600080fd5b5061020d6004803603606081101561074157600080fd5b506001600160a01b0381351690602081013590604001356112d5565b34801561076957600080fd5b5061022461137b565b34801561077e57600080fd5b506103256113d6565b34801561079357600080fd5b5061020d600480360360408110156107aa57600080fd5b506001600160a01b0381351690602001356113dc565b3480156107cc57600080fd5b50610325611404565b3480156107e157600080fd5b5061020d600480360360208110156107f857600080fd5b503561140a565b34801561080b57600080fd5b50610814611427565b6040518082600281111561082457fe5b60ff16815260200191505060405180910390f35b34801561084457600080fd5b50610325611430565b34801561085957600080fd5b506102d26004803603606081101561087057600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561089f57600080fd5b8201836020820111156108b157600080fd5b803590602001918460018302840111600160201b831117156108d257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611436945050505050565b34801561091f57600080fd5b506103256004803603604081101561093657600080fd5b506001600160a01b038135811691602001351661153e565b34801561095a57600080fd5b5061020d6004803603604081101561097157600080fd5b506001600160a01b03813516906020013561155b565b61020d6004803603602081101561099d57600080fd5b50356001600160a01b0316610a13565b3480156109b957600080fd5b5061020d600480360360208110156109d057600080fd5b50356001600160a01b031661156f565b3480156109ec57600080fd5b5061020d60048036036020811015610a0357600080fd5b50356001600160a01b0316611650565b600060165460ff166002811115610a2657fe5b14610a3057600080fd5b600080610a3b611687565b600e5491935091506000908390670de0b6b3a764000002811515610a5b57fe5b0490506000610a70823463ffffffff61183c16565b9050600d548110158015610a865750600c548111155b1515610a9157600080fd5b610ac2610ab56064610aa9848763ffffffff61183c16565b9063ffffffff61186516565b829063ffffffff61187a16565b600054909150610adc906001600160a01b03168683611887565b600c54610aef908263ffffffff6119af16565b600c55600e54610b1990610b0a90349063ffffffff61183c16565b6012549063ffffffff61187a16565b6012556001600160a01b038516600090815260136020526040902054610b45903463ffffffff61187a16565b6001600160a01b0390951660009081526013602052604090209490945550505050565b6007805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bee5780601f10610bc357610100808354040283529160200191610bee565b820191906000526020600020905b815481529060010190602001808311610bd157829003601f168201915b505050505081565b6000811580610c2657503360009081526015602090815260408083206001600160a01b0387168452909152902054155b1515610c3157600080fd5b3360008181526015602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b610ca233610db3565b1515610cad57600080fd5b600e55565b600c5481565b600f54610ccb903463ffffffff61187a16565b600f55565b600b5481565b6000600260165460ff166002811115610ceb57fe5b14610cf557600080fd5b6001600160a01b0384166000908152601560209081526040808320338452909152902054821115610d2557600080fd5b6001600160a01b0384166000908152601560209081526040808320338452909152902054610d59908363ffffffff6119af16565b6001600160a01b0385166000908152601560209081526040808320338452909152902055610d88848484611887565b5060015b9392505050565b604080516000815260208101909152610daf9083908390610de0565b5050565b6001600160a01b031660009081526001602052604090205460ff1690565b60095460ff1681565b60115481565b610de86119c1565b6001600160a01b03163314610dfc57600080fd5b610e0582611bac565b600e5560408051602080825284518183015284517f71f1a5645e51a2da828ffcf79cc17da88eb25e1bca8b9dced23210847a4769c1938693928392918301919085019080838360005b83811015610e66578181015183820152602001610e4e565b50505050905090810190601f168015610e935780820380516001836020036101000a031916815260200191505b509250505060405180910390a1610ea8611019565b505050565b60105481565b33600090815260146020526040812054821115610ecf57600080fd5b33600090815260146020526040902054610eef908363ffffffff6119af16565b33600081815260146020908152604091829020939093558051858152905191927fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca592918290030190a2506001919050565b610f4933610db3565b1515610f5457600080fd5b6010546012541015610f6557600080fd5b6016805460ff191660021790556040517f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a90600090a1565b610fa633610db3565b1515610fb157600080fd5b600260165460ff166002811115610fc457fe5b14610fce57600080fd5b30311515610fdb57600080fd5b600080546040516001600160a01b0390911691303180156108fc02929091818181858888f19350505050158015611016573d6000803e3d6000fd5b50565b600060165460ff16600281111561102c57fe5b1461103657600080fd5b306001600160a01b031631611068604051806040016040528060038152602001600160ea1b6215549302815250611bb9565b11156110be577f621c2856e3b87f81235f8ac8a22bbb40a0142961960710d00b2b6c380902b57e60405180806020018281038252604b8152602001806128b1604b913960600191505060405180910390a161114c565b7f621c2856e3b87f81235f8ac8a22bbb40a0142961960710d00b2b6c380902b57e6040518080602001828103825260358152602001806128446035913960400191505060405180910390a161101661a8c0604051806040016040528060038152602001600160ea1b621554930281525060405180606001604052806038815260200161287960389139611e05565b565b61115733610db3565b151561116257600080fd5b6001600160a01b038116151561117757600080fd5b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c39190a250565b60146020526000908152604090205481565b6111e133610db3565b15156111ec57600080fd5b6001600160a01b03811660009081526001602052604090205460ff16151561121357600080fd5b6001600160a01b038116600081815260016020526040808220805460ff19169055517febfcf264b2104087f09153632448fc6624ccfe2984ade6a26248f2b9c28e436a9190a250565b61126533610db3565b151561127057600080fd5b600060165460ff16600281111561128357fe5b1461128d57600080fd5b6010546012541061129d57600080fd5b6016805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6112de33610db3565b15156112e957600080fd5b600054611300906001600160a01b03168484611887565b600c54611313908363ffffffff6119af16565b600c55600e5461132e90610b0a90839063ffffffff61183c16565b6012556001600160a01b03831660009081526013602052604090205461135a908263ffffffff61187a16565b6001600160a01b039093166000908152601360205260409020929092555050565b6008805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bee5780601f10610bc357610100808354040283529160200191610bee565b600e5481565b600260165460ff1660028111156113ef57fe5b146113f957600080fd5b610daf338383611887565b60125481565b61141333610db3565b151561141e57600080fd5b611016816121c4565b60165460ff1681565b600f5481565b6000836114438185610bf6565b1561153657604051600160e01b638f4ffcb102815233600482018181526024830187905230604484018190526080606485019081528751608486015287516001600160a01b03871695638f4ffcb195948b94938b939192909160a490910190602085019080838360005b838110156114c55781810151838201526020016114ad565b50505050905090810190601f1680156114f25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561151457600080fd5b505af1158015611528573d6000803e3d6000fd5b505050506001915050610d8c565b509392505050565b601560209081526000928352604080842090915290825290205481565b61156433610db3565b15156113f957600080fd5b600160165460ff16600281111561158257fe5b1461158c57600080fd5b6001600160a01b03811660009081526013602052604090205415156115b057600080fd5b6001600160a01b03811660008181526013602052604080822054905190929183156108fc02918491818181858888f193505050501580156115f5573d6000803e3d6000fd5b506040805182815290516001600160a01b038416917fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d0651919081900360200190a2506001600160a01b0316600090815260136020526040812055565b6001600160a01b038116151561166557600080fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000635c8ac0d042101580156116a35750635cb39f5042105b156116bf57600a8054606491025b049250601e91506118389050565b635cb39f5042101580156116d65750635cdb2c5042105b156116e957600a54606490600e026116b1565b635cdb2c5042101580156117005750635d040ad042105b1561171b575050600a546064600f9091020490506019611838565b635d040ad042101580156117325750635d2b97d042105b1561174d575050600a54606460109091020490506014611838565b635d2b97d042101580156117645750635d54765042105b1561177f575050600a5460646011909102049050600f611838565b635d54765042101580156117965750635d7d54d042105b156117b0575050600a805460646012909102049150611838565b635d7d54d042101580156117c75750635da4e1d042105b156117e2575050600a54606460139091020490506005611838565b635da4e1d042101580156117f95750635dcdc05042105b1561181657600a546064906014025b049250600091506118389050565b635dcdc050421061182f57600a54606490601402611808565b50600091508190505b9091565b600082151561184d57506000610c93565b5081810281838281151561185d57fe5b0414610c9357fe5b6000818381151561187257fe5b049392505050565b81810182811015610c9357fe5b6001600160a01b038216151561189c57600080fd5b6001600160a01b0383166000908152601460205260409020548111156118c157600080fd5b6001600160a01b0382166000908152601460205260409020546118ea818363ffffffff61187a16565b10156118f557600080fd5b6001600160a01b03831660009081526014602052604090205461191e908263ffffffff6119af16565b6001600160a01b038085166000908152601460205260408082209390935590841681522054611953908263ffffffff61187a16565b6001600160a01b0380841660008181526014602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828211156119bb57fe5b50900390565b6003546000906001600160a01b031615806119ee57506003546119ec906001600160a01b0316612397565b155b156119ff576119fd600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b505050506040513d6020811015611a7957600080fd5b50516002546001600160a01b03908116911614611b2c57600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611ae057600080fd5b505af1158015611af4573d6000803e3d6000fd5b505050506040513d6020811015611b0a57600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b600260009054906101000a90046001600160a01b03166001600160a01b031663c281d19e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b7a57600080fd5b505afa158015611b8e573d6000803e3d6000fd5b505050506040513d6020811015611ba457600080fd5b505190505b90565b6000610c938260006123a5565b6003546000906001600160a01b03161580611be65750600354611be4906001600160a01b0316612397565b155b15611bf757611bf5600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611c4757600080fd5b505af1158015611c5b573d6000803e3d6000fd5b505050506040513d6020811015611c7157600080fd5b50516002546001600160a01b03908116911614611d2457600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611cd857600080fd5b505af1158015611cec573d6000803e3d6000fd5b505050506040513d6020811015611d0257600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b600254604051600160e01b63524f38890281526020600482018181528551602484015285516001600160a01b039094169363524f388993879383926044909201919085019080838360005b83811015611d87578181015183820152602001611d6f565b50505050905090810190601f168015611db45780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015611dd357600080fd5b505af1158015611de7573d6000803e3d6000fd5b505050506040513d6020811015611dfd57600080fd5b505192915050565b6003546000906001600160a01b03161580611e325750600354611e30906001600160a01b0316612397565b155b15611e4357611e41600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611e9357600080fd5b505af1158015611ea7573d6000803e3d6000fd5b505050506040513d6020811015611ebd57600080fd5b50516002546001600160a01b03908116911614611f7057600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611f2457600080fd5b505af1158015611f38573d6000803e3d6000fd5b505050506040513d6020811015611f4e57600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b600254604051600160e01b63524f38890281526020600482018181528651602484015286516000946001600160a01b03169363524f3889938993928392604401918501908083838b5b83811015611fd1578181015183820152602001611fb9565b50505050905090810190601f168015611ffe5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561201d57600080fd5b505af1158015612031573d6000803e3d6000fd5b505050506040513d602081101561204757600080fd5b50519050670de0b6b3a764000062030d403a020181111561206c575060009050610d8c565b600254604051600160e01b63adf59f99028152600481018781526060602483019081528751606484015287516001600160a01b039094169363adf59f999386938b938b938b936044810191608490910190602087019080838360005b838110156120e05781810151838201526020016120c8565b50505050905090810190601f16801561210d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015612140578181015183820152602001612128565b50505050905090810190601f16801561216d5780820380516001836020036101000a031916815260200191505b50955050505050506020604051808303818588803b15801561218e57600080fd5b505af11580156121a2573d6000803e3d6000fd5b50505050506040513d60208110156121b957600080fd5b505195945050505050565b6003546001600160a01b031615806121ee57506003546121ec906001600160a01b0316612397565b155b156121ff576121fd600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561224f57600080fd5b505af1158015612263573d6000803e3d6000fd5b505050506040513d602081101561227957600080fd5b50516002546001600160a01b0390811691161461232c57600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156122e057600080fd5b505af11580156122f4573d6000803e3d6000fd5b505050506040513d602081101561230a57600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b60025460408051600160e21b63329ab4790281526004810184905290516001600160a01b039092169163ca6ad1e49160248082019260009290919082900301818387803b15801561237c57600080fd5b505af1158015612390573d6000803e3d6000fd5b5050505050565b3b90565b6000610c936124a4565b6000828180805b835181101561248b57603084828151811015156123c557fe5b90602001015160f81c60f81b60f81c60ff16101580156124055750603984828151811015156123f057fe5b90602001015160f81c60f81b60f81c60ff1611155b156124565781156124245785151561241c5761248b565b600019909501945b600a830292506030848281518110151561243a57fe5b90602001015160f81c60f81b60f81c60ff160383019250612483565b838181518110151561246457fe5b90602001015160f81c60f81b60f81c60ff16602e141561248357600191505b6001016123ac565b50841561249b5784600a0a820291505b50949350505050565b6000806124c4731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed612397565b111561252657600380546001600160a01b031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b8152600160aa1b6a195d1a17db585a5b9b995d02602082015261251e9061279d565b506001611ba9565b600061254573c03a2615d5efaf5f49f60b7bb6583eaec212fdf1612397565b11156125ae57600380546001600160a01b03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015261251e9061279d565b60006125cd73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e612397565b111561262557600380546001600160a01b03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e1790556040805180820190915260098152600160b91b6832ba342fb5b7bb30b702602082015261251e9061279d565b600061264473146500cfd35b22e4a392fe0adc06de1a1368ed48612397565b111561269e57600380546001600160a01b03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b8152600160a81b6a6574685f72696e6b65627902602082015261251e9061279d565b60006126bd736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475612397565b11156126f15750600380546001600160a01b031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001611ba9565b60006127107320e12a1f859b3feae5fb2a0a32c18f5a65555bbf612397565b11156127445750600380546001600160a01b0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001611ba9565b60006127637351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa612397565b11156127975750600380546001600160a01b0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001611ba9565b50600090565b8051610daf906004906020840190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106127ec57805160ff1916838001178555612819565b82800160010185558215612819579182015b828111156128195782518255916020019190600101906127fe565b50612825929150612829565b5090565b611ba991905b80821115612825576000815560010161282f56fe4f7261636c697a65207175657279207761732073656e742c207374616e64696e6720627920666f722074686520616e737765722e2e6a736f6e2868747470733a2f2f6170692e676461782e636f6d2f70726f64756374732f4554482d5553442f7469636b6572292e70726963654f7261636c697a6520717565727920776173204e4f542073656e742c20706c656173652061646420736f6d652045544820746f20636f76657220666f722074686520717565727920666565a165627a7a7230582060f33203450afed33402de923f3b2449952ffbdfef7c66cd01d03e755a0258270029
Deployed Bytecode
0x6080604052600436106102045760003560e01c80637065cb4811610118578063bf1fe420116100a0578063dd62ed3e1161006f578063dd62ed3e14610913578063e53c45481461094e578063ec8ac4d814610987578063fa89401a146109ad578063fe093621146109e057610204565b8063bf1fe420146107d5578063c19d93fb146107ff578063c4218d3314610838578063cae9ca511461084d57610204565b80639283da3c116100e75780639283da3c1461071e57806395d89b411461075d578063a23f41e214610772578063a9059cbb14610787578063b2812faa146107c057610204565b80637065cb481461067057806370a08231146106a357806373984188146106d65780638c52dc411461070957610204565b80632f54bf6e1161019b578063401938831161016a57806340193883146105ff57806342966c681461061457806343d726d61461063e5780635fd8c71014610653578063673a7e281461066857610204565b80632f54bf6e1461044f578063313ce56714610482578063355274ea146104ad57806338bbfa50146104c257610204565b80631767da08116101d75780631767da081461033757806318160ddd1461033f57806323b872dd1461035457806327dc297e1461039757610204565b806306fdde031461020f578063095ea7b3146102995780630bab718f146102e657806312aef8c314610310575b61020d33610a13565b005b34801561021b57600080fd5b50610224610b68565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025e578181015183820152602001610246565b50505050905090810190601f16801561028b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102a557600080fd5b506102d2600480360360408110156102bc57600080fd5b506001600160a01b038135169060200135610bf6565b604080519115158252519081900360200190f35b3480156102f257600080fd5b5061020d6004803603602081101561030957600080fd5b5035610c99565b34801561031c57600080fd5b50610325610cb2565b60408051918252519081900360200190f35b61020d610cb8565b34801561034b57600080fd5b50610325610cd0565b34801561036057600080fd5b506102d26004803603606081101561037757600080fd5b506001600160a01b03813581169160208101359091169060400135610cd6565b3480156103a357600080fd5b5061020d600480360360408110156103ba57600080fd5b81359190810190604081016020820135600160201b8111156103db57600080fd5b8201836020820111156103ed57600080fd5b803590602001918460018302840111600160201b8311171561040e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d93945050505050565b34801561045b57600080fd5b506102d26004803603602081101561047257600080fd5b50356001600160a01b0316610db3565b34801561048e57600080fd5b50610497610dd1565b6040805160ff9092168252519081900360200190f35b3480156104b957600080fd5b50610325610dda565b3480156104ce57600080fd5b5061020d600480360360608110156104e557600080fd5b81359190810190604081016020820135600160201b81111561050657600080fd5b82018360208201111561051857600080fd5b803590602001918460018302840111600160201b8311171561053957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561058b57600080fd5b82018360208201111561059d57600080fd5b803590602001918460018302840111600160201b831117156105be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610de0945050505050565b34801561060b57600080fd5b50610325610ead565b34801561062057600080fd5b506102d26004803603602081101561063757600080fd5b5035610eb3565b34801561064a57600080fd5b5061020d610f40565b34801561065f57600080fd5b5061020d610f9d565b61020d611019565b34801561067c57600080fd5b5061020d6004803603602081101561069357600080fd5b50356001600160a01b031661114e565b3480156106af57600080fd5b50610325600480360360208110156106c657600080fd5b50356001600160a01b03166111c6565b3480156106e257600080fd5b5061020d600480360360208110156106f957600080fd5b50356001600160a01b03166111d8565b34801561071557600080fd5b5061020d61125c565b34801561072a57600080fd5b5061020d6004803603606081101561074157600080fd5b506001600160a01b0381351690602081013590604001356112d5565b34801561076957600080fd5b5061022461137b565b34801561077e57600080fd5b506103256113d6565b34801561079357600080fd5b5061020d600480360360408110156107aa57600080fd5b506001600160a01b0381351690602001356113dc565b3480156107cc57600080fd5b50610325611404565b3480156107e157600080fd5b5061020d600480360360208110156107f857600080fd5b503561140a565b34801561080b57600080fd5b50610814611427565b6040518082600281111561082457fe5b60ff16815260200191505060405180910390f35b34801561084457600080fd5b50610325611430565b34801561085957600080fd5b506102d26004803603606081101561087057600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561089f57600080fd5b8201836020820111156108b157600080fd5b803590602001918460018302840111600160201b831117156108d257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611436945050505050565b34801561091f57600080fd5b506103256004803603604081101561093657600080fd5b506001600160a01b038135811691602001351661153e565b34801561095a57600080fd5b5061020d6004803603604081101561097157600080fd5b506001600160a01b03813516906020013561155b565b61020d6004803603602081101561099d57600080fd5b50356001600160a01b0316610a13565b3480156109b957600080fd5b5061020d600480360360208110156109d057600080fd5b50356001600160a01b031661156f565b3480156109ec57600080fd5b5061020d60048036036020811015610a0357600080fd5b50356001600160a01b0316611650565b600060165460ff166002811115610a2657fe5b14610a3057600080fd5b600080610a3b611687565b600e5491935091506000908390670de0b6b3a764000002811515610a5b57fe5b0490506000610a70823463ffffffff61183c16565b9050600d548110158015610a865750600c548111155b1515610a9157600080fd5b610ac2610ab56064610aa9848763ffffffff61183c16565b9063ffffffff61186516565b829063ffffffff61187a16565b600054909150610adc906001600160a01b03168683611887565b600c54610aef908263ffffffff6119af16565b600c55600e54610b1990610b0a90349063ffffffff61183c16565b6012549063ffffffff61187a16565b6012556001600160a01b038516600090815260136020526040902054610b45903463ffffffff61187a16565b6001600160a01b0390951660009081526013602052604090209490945550505050565b6007805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bee5780601f10610bc357610100808354040283529160200191610bee565b820191906000526020600020905b815481529060010190602001808311610bd157829003601f168201915b505050505081565b6000811580610c2657503360009081526015602090815260408083206001600160a01b0387168452909152902054155b1515610c3157600080fd5b3360008181526015602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b610ca233610db3565b1515610cad57600080fd5b600e55565b600c5481565b600f54610ccb903463ffffffff61187a16565b600f55565b600b5481565b6000600260165460ff166002811115610ceb57fe5b14610cf557600080fd5b6001600160a01b0384166000908152601560209081526040808320338452909152902054821115610d2557600080fd5b6001600160a01b0384166000908152601560209081526040808320338452909152902054610d59908363ffffffff6119af16565b6001600160a01b0385166000908152601560209081526040808320338452909152902055610d88848484611887565b5060015b9392505050565b604080516000815260208101909152610daf9083908390610de0565b5050565b6001600160a01b031660009081526001602052604090205460ff1690565b60095460ff1681565b60115481565b610de86119c1565b6001600160a01b03163314610dfc57600080fd5b610e0582611bac565b600e5560408051602080825284518183015284517f71f1a5645e51a2da828ffcf79cc17da88eb25e1bca8b9dced23210847a4769c1938693928392918301919085019080838360005b83811015610e66578181015183820152602001610e4e565b50505050905090810190601f168015610e935780820380516001836020036101000a031916815260200191505b509250505060405180910390a1610ea8611019565b505050565b60105481565b33600090815260146020526040812054821115610ecf57600080fd5b33600090815260146020526040902054610eef908363ffffffff6119af16565b33600081815260146020908152604091829020939093558051858152905191927fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca592918290030190a2506001919050565b610f4933610db3565b1515610f5457600080fd5b6010546012541015610f6557600080fd5b6016805460ff191660021790556040517f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a90600090a1565b610fa633610db3565b1515610fb157600080fd5b600260165460ff166002811115610fc457fe5b14610fce57600080fd5b30311515610fdb57600080fd5b600080546040516001600160a01b0390911691303180156108fc02929091818181858888f19350505050158015611016573d6000803e3d6000fd5b50565b600060165460ff16600281111561102c57fe5b1461103657600080fd5b306001600160a01b031631611068604051806040016040528060038152602001600160ea1b6215549302815250611bb9565b11156110be577f621c2856e3b87f81235f8ac8a22bbb40a0142961960710d00b2b6c380902b57e60405180806020018281038252604b8152602001806128b1604b913960600191505060405180910390a161114c565b7f621c2856e3b87f81235f8ac8a22bbb40a0142961960710d00b2b6c380902b57e6040518080602001828103825260358152602001806128446035913960400191505060405180910390a161101661a8c0604051806040016040528060038152602001600160ea1b621554930281525060405180606001604052806038815260200161287960389139611e05565b565b61115733610db3565b151561116257600080fd5b6001600160a01b038116151561117757600080fd5b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c39190a250565b60146020526000908152604090205481565b6111e133610db3565b15156111ec57600080fd5b6001600160a01b03811660009081526001602052604090205460ff16151561121357600080fd5b6001600160a01b038116600081815260016020526040808220805460ff19169055517febfcf264b2104087f09153632448fc6624ccfe2984ade6a26248f2b9c28e436a9190a250565b61126533610db3565b151561127057600080fd5b600060165460ff16600281111561128357fe5b1461128d57600080fd5b6010546012541061129d57600080fd5b6016805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6112de33610db3565b15156112e957600080fd5b600054611300906001600160a01b03168484611887565b600c54611313908363ffffffff6119af16565b600c55600e5461132e90610b0a90839063ffffffff61183c16565b6012556001600160a01b03831660009081526013602052604090205461135a908263ffffffff61187a16565b6001600160a01b039093166000908152601360205260409020929092555050565b6008805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610bee5780601f10610bc357610100808354040283529160200191610bee565b600e5481565b600260165460ff1660028111156113ef57fe5b146113f957600080fd5b610daf338383611887565b60125481565b61141333610db3565b151561141e57600080fd5b611016816121c4565b60165460ff1681565b600f5481565b6000836114438185610bf6565b1561153657604051600160e01b638f4ffcb102815233600482018181526024830187905230604484018190526080606485019081528751608486015287516001600160a01b03871695638f4ffcb195948b94938b939192909160a490910190602085019080838360005b838110156114c55781810151838201526020016114ad565b50505050905090810190601f1680156114f25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561151457600080fd5b505af1158015611528573d6000803e3d6000fd5b505050506001915050610d8c565b509392505050565b601560209081526000928352604080842090915290825290205481565b61156433610db3565b15156113f957600080fd5b600160165460ff16600281111561158257fe5b1461158c57600080fd5b6001600160a01b03811660009081526013602052604090205415156115b057600080fd5b6001600160a01b03811660008181526013602052604080822054905190929183156108fc02918491818181858888f193505050501580156115f5573d6000803e3d6000fd5b506040805182815290516001600160a01b038416917fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d0651919081900360200190a2506001600160a01b0316600090815260136020526040812055565b6001600160a01b038116151561166557600080fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000635c8ac0d042101580156116a35750635cb39f5042105b156116bf57600a8054606491025b049250601e91506118389050565b635cb39f5042101580156116d65750635cdb2c5042105b156116e957600a54606490600e026116b1565b635cdb2c5042101580156117005750635d040ad042105b1561171b575050600a546064600f9091020490506019611838565b635d040ad042101580156117325750635d2b97d042105b1561174d575050600a54606460109091020490506014611838565b635d2b97d042101580156117645750635d54765042105b1561177f575050600a5460646011909102049050600f611838565b635d54765042101580156117965750635d7d54d042105b156117b0575050600a805460646012909102049150611838565b635d7d54d042101580156117c75750635da4e1d042105b156117e2575050600a54606460139091020490506005611838565b635da4e1d042101580156117f95750635dcdc05042105b1561181657600a546064906014025b049250600091506118389050565b635dcdc050421061182f57600a54606490601402611808565b50600091508190505b9091565b600082151561184d57506000610c93565b5081810281838281151561185d57fe5b0414610c9357fe5b6000818381151561187257fe5b049392505050565b81810182811015610c9357fe5b6001600160a01b038216151561189c57600080fd5b6001600160a01b0383166000908152601460205260409020548111156118c157600080fd5b6001600160a01b0382166000908152601460205260409020546118ea818363ffffffff61187a16565b10156118f557600080fd5b6001600160a01b03831660009081526014602052604090205461191e908263ffffffff6119af16565b6001600160a01b038085166000908152601460205260408082209390935590841681522054611953908263ffffffff61187a16565b6001600160a01b0380841660008181526014602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828211156119bb57fe5b50900390565b6003546000906001600160a01b031615806119ee57506003546119ec906001600160a01b0316612397565b155b156119ff576119fd600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b505050506040513d6020811015611a7957600080fd5b50516002546001600160a01b03908116911614611b2c57600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611ae057600080fd5b505af1158015611af4573d6000803e3d6000fd5b505050506040513d6020811015611b0a57600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b600260009054906101000a90046001600160a01b03166001600160a01b031663c281d19e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b7a57600080fd5b505afa158015611b8e573d6000803e3d6000fd5b505050506040513d6020811015611ba457600080fd5b505190505b90565b6000610c938260006123a5565b6003546000906001600160a01b03161580611be65750600354611be4906001600160a01b0316612397565b155b15611bf757611bf5600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611c4757600080fd5b505af1158015611c5b573d6000803e3d6000fd5b505050506040513d6020811015611c7157600080fd5b50516002546001600160a01b03908116911614611d2457600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611cd857600080fd5b505af1158015611cec573d6000803e3d6000fd5b505050506040513d6020811015611d0257600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b600254604051600160e01b63524f38890281526020600482018181528551602484015285516001600160a01b039094169363524f388993879383926044909201919085019080838360005b83811015611d87578181015183820152602001611d6f565b50505050905090810190601f168015611db45780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015611dd357600080fd5b505af1158015611de7573d6000803e3d6000fd5b505050506040513d6020811015611dfd57600080fd5b505192915050565b6003546000906001600160a01b03161580611e325750600354611e30906001600160a01b0316612397565b155b15611e4357611e41600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611e9357600080fd5b505af1158015611ea7573d6000803e3d6000fd5b505050506040513d6020811015611ebd57600080fd5b50516002546001600160a01b03908116911614611f7057600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611f2457600080fd5b505af1158015611f38573d6000803e3d6000fd5b505050506040513d6020811015611f4e57600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b600254604051600160e01b63524f38890281526020600482018181528651602484015286516000946001600160a01b03169363524f3889938993928392604401918501908083838b5b83811015611fd1578181015183820152602001611fb9565b50505050905090810190601f168015611ffe5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561201d57600080fd5b505af1158015612031573d6000803e3d6000fd5b505050506040513d602081101561204757600080fd5b50519050670de0b6b3a764000062030d403a020181111561206c575060009050610d8c565b600254604051600160e01b63adf59f99028152600481018781526060602483019081528751606484015287516001600160a01b039094169363adf59f999386938b938b938b936044810191608490910190602087019080838360005b838110156120e05781810151838201526020016120c8565b50505050905090810190601f16801561210d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015612140578181015183820152602001612128565b50505050905090810190601f16801561216d5780820380516001836020036101000a031916815260200191505b50955050505050506020604051808303818588803b15801561218e57600080fd5b505af11580156121a2573d6000803e3d6000fd5b50505050506040513d60208110156121b957600080fd5b505195945050505050565b6003546001600160a01b031615806121ee57506003546121ec906001600160a01b0316612397565b155b156121ff576121fd600061239b565b505b600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561224f57600080fd5b505af1158015612263573d6000803e3d6000fd5b505050506040513d602081101561227957600080fd5b50516002546001600160a01b0390811691161461232c57600360009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156122e057600080fd5b505af11580156122f4573d6000803e3d6000fd5b505050506040513d602081101561230a57600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b60025460408051600160e21b63329ab4790281526004810184905290516001600160a01b039092169163ca6ad1e49160248082019260009290919082900301818387803b15801561237c57600080fd5b505af1158015612390573d6000803e3d6000fd5b5050505050565b3b90565b6000610c936124a4565b6000828180805b835181101561248b57603084828151811015156123c557fe5b90602001015160f81c60f81b60f81c60ff16101580156124055750603984828151811015156123f057fe5b90602001015160f81c60f81b60f81c60ff1611155b156124565781156124245785151561241c5761248b565b600019909501945b600a830292506030848281518110151561243a57fe5b90602001015160f81c60f81b60f81c60ff160383019250612483565b838181518110151561246457fe5b90602001015160f81c60f81b60f81c60ff16602e141561248357600191505b6001016123ac565b50841561249b5784600a0a820291505b50949350505050565b6000806124c4731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed612397565b111561252657600380546001600160a01b031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b8152600160aa1b6a195d1a17db585a5b9b995d02602082015261251e9061279d565b506001611ba9565b600061254573c03a2615d5efaf5f49f60b7bb6583eaec212fdf1612397565b11156125ae57600380546001600160a01b03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015261251e9061279d565b60006125cd73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e612397565b111561262557600380546001600160a01b03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e1790556040805180820190915260098152600160b91b6832ba342fb5b7bb30b702602082015261251e9061279d565b600061264473146500cfd35b22e4a392fe0adc06de1a1368ed48612397565b111561269e57600380546001600160a01b03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b8152600160a81b6a6574685f72696e6b65627902602082015261251e9061279d565b60006126bd736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475612397565b11156126f15750600380546001600160a01b031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001611ba9565b60006127107320e12a1f859b3feae5fb2a0a32c18f5a65555bbf612397565b11156127445750600380546001600160a01b0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001611ba9565b60006127637351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa612397565b11156127975750600380546001600160a01b0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001611ba9565b50600090565b8051610daf906004906020840190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106127ec57805160ff1916838001178555612819565b82800160010185558215612819579182015b828111156128195782518255916020019190600101906127fe565b50612825929150612829565b5090565b611ba991905b80821115612825576000815560010161282f56fe4f7261636c697a65207175657279207761732073656e742c207374616e64696e6720627920666f722074686520616e737765722e2e6a736f6e2868747470733a2f2f6170692e676461782e636f6d2f70726f64756374732f4554482d5553442f7469636b6572292e70726963654f7261636c697a6520717565727920776173204e4f542073656e742c20706c656173652061646420736f6d652045544820746f20636f76657220666f722074686520717565727920666565a165627a7a7230582060f33203450afed33402de923f3b2449952ffbdfef7c66cd01d03e755a0258270029
Swarm Source
bzzr://60f33203450afed33402de923f3b2449952ffbdfef7c66cd01d03e755a025827
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,352.96 | 0.00370404 | $8.72 |
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.