ETH Price: $1,613.98 (-0.17%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Lock161841132022-12-14 16:25:23851 days ago1671035123IN
0x99f9043B...05154A595
0 ETH0.0010097122.09935744
Set DNA Bucket161790602022-12-13 23:29:11852 days ago1670974151IN
0x99f9043B...05154A595
0 ETH0.0025511316.83051907
Set DNA Bucket161790592022-12-13 23:28:59852 days ago1670974139IN
0x99f9043B...05154A595
0 ETH0.0319690117.33396602
Set DNA Bucket161790582022-12-13 23:28:47852 days ago1670974127IN
0x99f9043B...05154A595
0 ETH0.0323487317.53597302
Set DNA Bucket161790572022-12-13 23:28:35852 days ago1670974115IN
0x99f9043B...05154A595
0 ETH0.0328786117.82681327
Set DNA Bucket161790562022-12-13 23:28:23852 days ago1670974103IN
0x99f9043B...05154A595
0 ETH0.0331853917.99057192
Set DNA Bucket161790552022-12-13 23:28:11852 days ago1670974091IN
0x99f9043B...05154A595
0 ETH0.0339454118.39984607
Set DNA Bucket161790542022-12-13 23:27:59852 days ago1670974079IN
0x99f9043B...05154A595
0 ETH0.033772618.31129558
Set DNA Bucket161790532022-12-13 23:27:47852 days ago1670974067IN
0x99f9043B...05154A595
0 ETH0.0335179418.17192044
Set DNA Bucket161790522022-12-13 23:27:35852 days ago1670974055IN
0x99f9043B...05154A595
0 ETH0.0329677917.87400181
Set DNA Bucket161790512022-12-13 23:27:23852 days ago1670974043IN
0x99f9043B...05154A595
0 ETH0.033116417.95247215
Set DNA Bucket161790502022-12-13 23:27:11852 days ago1670974031IN
0x99f9043B...05154A595
0 ETH0.0335115118.16559777
Set DNA Bucket161790492022-12-13 23:26:59852 days ago1670974019IN
0x99f9043B...05154A595
0 ETH0.0341991918.53993608
Set DNA Bucket161790482022-12-13 23:26:47852 days ago1670974007IN
0x99f9043B...05154A595
0 ETH0.0336467618.24354007
Set DNA Bucket161790472022-12-13 23:26:35852 days ago1670973995IN
0x99f9043B...05154A595
0 ETH0.0307526916.67034309
Set DNA Bucket161790462022-12-13 23:26:23852 days ago1670973983IN
0x99f9043B...05154A595
0 ETH0.0292240315.84220405
Set DNA Bucket161790452022-12-13 23:26:11852 days ago1670973971IN
0x99f9043B...05154A595
0 ETH0.0299063216.21428524
Set DNA Bucket161790442022-12-13 23:25:59852 days ago1670973959IN
0x99f9043B...05154A595
0 ETH0.0297271116.11733269
Set DNA Bucket161790432022-12-13 23:25:47852 days ago1670973947IN
0x99f9043B...05154A595
0 ETH0.0287271715.57498511
Set DNA Bucket161790422022-12-13 23:25:35852 days ago1670973935IN
0x99f9043B...05154A595
0 ETH0.028099615.23295384
Set DNA Bucket161790412022-12-13 23:25:23852 days ago1670973923IN
0x99f9043B...05154A595
0 ETH0.0272737514.78391118
Set DNA Bucket161790402022-12-13 23:25:11852 days ago1670973911IN
0x99f9043B...05154A595
0 ETH0.0270874614.43586187

Latest 21 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x63000000161790602022-12-13 23:29:11852 days ago1670974151
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790592022-12-13 23:28:59852 days ago1670974139
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790582022-12-13 23:28:47852 days ago1670974127
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790572022-12-13 23:28:35852 days ago1670974115
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790562022-12-13 23:28:23852 days ago1670974103
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790552022-12-13 23:28:11852 days ago1670974091
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790542022-12-13 23:27:59852 days ago1670974079
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790532022-12-13 23:27:47852 days ago1670974067
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790522022-12-13 23:27:35852 days ago1670974055
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790512022-12-13 23:27:23852 days ago1670974043
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790502022-12-13 23:27:11852 days ago1670974031
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790492022-12-13 23:26:59852 days ago1670974019
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790482022-12-13 23:26:47852 days ago1670974007
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790472022-12-13 23:26:35852 days ago1670973995
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790462022-12-13 23:26:23852 days ago1670973983
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790452022-12-13 23:26:11852 days ago1670973971
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790442022-12-13 23:25:59852 days ago1670973959
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790432022-12-13 23:25:47852 days ago1670973947
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790422022-12-13 23:25:35852 days ago1670973935
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790412022-12-13 23:25:23852 days ago1670973923
0x99f9043B...05154A595
 Contract Creation0 ETH
0x6300001f161790402022-12-13 23:25:11852 days ago1670973911
0x99f9043B...05154A595
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenDNAStorage

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 100000000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 6 : TokenDNAStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@0xsequence/sstore2/contracts/SSTORE2.sol";
import "./ITokenDNAStorage.sol";

contract TokenDNAStorage is Ownable, ITokenDNAStorage {
	event DNAResolved(uint256 indexed fromTokenId, uint256 indexed toTokenId);

	// DNA for a token is 16 bytes of data.
	uint8 constant TOKEN_DNA_LENGTH = 16;

	uint256 constant MAX_DNA_PER_BUCKET = 500; // must be at most 1536

	uint256 public MAX_SUPPLY;

	struct DNABucket {
		address pointer; // An address can at most reference ~24kB (1536 * 16 bytes), which is why we need to split DNA into buckets.
		uint256 pieces;
	}

	DNABucket[] public _DNABuckets;

	uint256 public resolved;
	mapping(uint16 => uint16) private tokenIdToDNAPosition;

	bool public locked;

	function lock() external onlyOwner {
		locked = true;
	}

	function getDNABucket(
		uint256 idx,
		uint256 dnaPosition
	)
		external
		view
		onlyOwner
		returns (
			uint256 total_buckets,
			DNABucket memory bucket,
			bytes memory dna
		)
	{
		if (!locked) {
			total_buckets = _DNABuckets.length;
			bucket = _DNABuckets[idx];
			dna = SSTORE2.read(bucket.pointer, dnaPosition * TOKEN_DNA_LENGTH);
		}
	}

	// idx = -1 for append.
	function setDNABucket(int idx, bytes calldata newDNA) external onlyOwner {
		require(!locked, "DNA is finalized."); // If the lock isn't on we can still modify the DNA.
		require(idx < int(_DNABuckets.length), "IDX out of bounds");
		require(
			idx >= 0 ||
				_DNABuckets.length == 0 ||
				_DNABuckets[_DNABuckets.length - 1].pieces ==
				MAX_DNA_PER_BUCKET,
			"can't append new bucket after unfilled previous one"
		);

		uint256 pieces = newDNA.length / 16;

		require(pieces <= MAX_DNA_PER_BUCKET, "exceeded bucket width");
		require(newDNA.length % 16 == 0, "dna length not multiple of 16");

		if (idx < 0) {
			_DNABuckets.push(DNABucket(SSTORE2.write(newDNA), pieces));
		} else {
			delete _DNABuckets[uint(idx)].pointer;
			MAX_SUPPLY -= _DNABuckets[uint(idx)].pieces;
			_DNABuckets[uint(idx)].pointer = SSTORE2.write(newDNA);
			_DNABuckets[uint(idx)].pieces = pieces;
		}

		MAX_SUPPLY += pieces;
	}

	function getTokenDNA(
		uint256 tokenId,
		uint256 entropy
	) external view returns (bytes16) {
		// This is just a permutation function that works as long as tokenId < 10007 (10007 is the closest prime after 10000).
		// note to self: need >= 10007 supplied DNA pieces.
		uint256 DNAPosition = (entropy + tokenId * 131) % 10007;
		uint256 bucketIdx = DNAPosition / MAX_DNA_PER_BUCKET;
		if (bucketIdx >= _DNABuckets.length)
			return bytes16(uint128(DNAPosition * entropy));
		uint256 DNAIdx = DNAPosition % MAX_DNA_PER_BUCKET;
		return
			bytes16(
				SSTORE2.read(
					_DNABuckets[bucketIdx].pointer,
					DNAIdx * TOKEN_DNA_LENGTH
				)
			);
	}
}

File 2 of 6 : SSTORE2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./utils/Bytecode.sol";

/**
  @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost.
  @author Agustin Aguilar <[email protected]>

  Readme: https://github.com/0xsequence/sstore2#readme
*/
library SSTORE2 {
  error WriteError();

  /**
    @notice Stores `_data` and returns `pointer` as key for later retrieval
    @dev The pointer is a contract address with `_data` as code
    @param _data to be written
    @return pointer Pointer to the written `_data`
  */
  function write(bytes memory _data) internal returns (address pointer) {
    // Append 00 to _data so contract can't be called
    // Build init code
    bytes memory code = Bytecode.creationCodeFor(
      abi.encodePacked(
        hex'00',
        _data
      )
    );

    // Deploy contract using create
    assembly { pointer := create(0, add(code, 32), mload(code)) }

    // Address MUST be non-zero
    if (pointer == address(0)) revert WriteError();
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @return data read from `_pointer` contract
  */
  function read(address _pointer) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @param _end index before which to end extraction
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, _end + 1);
  }
}

File 3 of 6 : Bytecode.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


library Bytecode {
  error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end);

  /**
    @notice Generate a creation code that results on a contract with `_code` as bytecode
    @param _code The returning value of the resulting `creationCode`
    @return creationCode (constructor) for new contract
  */
  function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) {
    /*
      0x00    0x63         0x63XXXXXX  PUSH4 _code.length  size
      0x01    0x80         0x80        DUP1                size size
      0x02    0x60         0x600e      PUSH1 14            14 size size
      0x03    0x60         0x6000      PUSH1 00            0 14 size size
      0x04    0x39         0x39        CODECOPY            size
      0x05    0x60         0x6000      PUSH1 00            0 size
      0x06    0xf3         0xf3        RETURN
      <CODE>
    */

    return abi.encodePacked(
      hex"63",
      uint32(_code.length),
      hex"80_60_0E_60_00_39_60_00_F3",
      _code
    );
  }

  /**
    @notice Returns the size of the code on a given address
    @param _addr Address that may or may not contain code
    @return size of the code on the given `_addr`
  */
  function codeSize(address _addr) internal view returns (uint256 size) {
    assembly { size := extcodesize(_addr) }
  }

  /**
    @notice Returns the code of a given address
    @dev It will fail if `_end < _start`
    @param _addr Address that may or may not contain code
    @param _start number of bytes of code to skip on read
    @param _end index before which to end extraction
    @return oCode read from `_addr` deployed bytecode

    Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd
  */
  function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) {
    uint256 csize = codeSize(_addr);
    if (csize == 0) return bytes("");

    if (_start > csize) return bytes("");
    if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); 

    unchecked {
      uint256 reqSize = _end - _start;
      uint256 maxSize = csize - _start;

      uint256 size = maxSize < reqSize ? maxSize : reqSize;

      assembly {
        // allocate output byte array - this could also be done without assembly
        // by using o_code = new bytes(size)
        oCode := mload(0x40)
        // new "memory end" including padding
        mstore(0x40, add(oCode, and(add(add(size, 0x20), 0x1f), not(0x1f))))
        // store length in memory
        mstore(oCode, size)
        // actually retrieve the code, this needs assembly
        extcodecopy(_addr, add(oCode, 0x20), _start, size)
      }
    }
  }
}

File 4 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 6 : ITokenDNAStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface ITokenDNAStorage {
	function getTokenDNA(
		uint256 tokenId,
		uint256 entropy
	) external view returns (bytes16);
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 100000000
  },
  "remappings": [],
  "viaIR": true,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"InvalidCodeAtRange","type":"error"},{"inputs":[],"name":"WriteError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toTokenId","type":"uint256"}],"name":"DNAResolved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_DNABuckets","outputs":[{"internalType":"address","name":"pointer","type":"address"},{"internalType":"uint256","name":"pieces","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"},{"internalType":"uint256","name":"dnaPosition","type":"uint256"}],"name":"getDNABucket","outputs":[{"internalType":"uint256","name":"total_buckets","type":"uint256"},{"components":[{"internalType":"address","name":"pointer","type":"address"},{"internalType":"uint256","name":"pieces","type":"uint256"}],"internalType":"struct TokenDNAStorage.DNABucket","name":"bucket","type":"tuple"},{"internalType":"bytes","name":"dna","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"entropy","type":"uint256"}],"name":"getTokenDNA","outputs":[{"internalType":"bytes16","name":"","type":"bytes16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resolved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"idx","type":"int256"},{"internalType":"bytes","name":"newDNA","type":"bytes"}],"name":"setDNABucket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080806040523461005b5760008054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361123590816100618239f35b600080fdfe60806040526004361015610013575b600080fd5b60003560e01c806316799e3f146100ef57806332cb6b0c146100e65780633f6fa655146100dd578063715018a6146100d45780638b3be051146100cb5780638da5cb5b146100c2578063ccf9f8da146100b9578063cf309012146100b0578063d30e3098146100a7578063f2fde38b1461009e5763f83d08ba1461009657600080fd5b61000e6108b6565b5061000e6107cb565b5061000e610761565b5061000e61071f565b5061000e61064b565b5061000e61055e565b5061000e6104ac565b5061000e610393565b5061000e610356565b5061000e610319565b503461000e5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760243567ffffffffffffffff60043581831161000e573660238401121561000e57826004013591821161000e576024830192602483369201011161000e576102339261022e9261016d61091b565b61018861018361017f60055460ff1690565b1590565b610bf7565b600254610196818512610c5c565b6101b4600085128092811591610310575b81156102f3575b50610cfb565b8160041c9384916101c96101f4841115610d86565b6101d6600f851615610deb565b156102355750506101ef610226926101f4923691610e50565b610fb3565b61021b6101ff610abd565b73ffffffffffffffffffffffffffffffffffffffff9092168252565b826020820152610ec3565b600154610b1a565b600155565b005b6102e661029c6101ef6102eb949660019661027b61025287610464565b507fffffffffffffffffffffffff00000000000000000000000000000000000000008154169055565b61029561022e8961028b89610464565b5001548a54610cee565b3691610e50565b6102a583610464565b509073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b610464565b500155610226565b6101f491506103066102e6600192610cc1565b50015414386101ae565b801591506101a7565b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576020600154604051908152f35b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576020600354604051908152f35b503461000e576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610431576103cc61091b565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60025481101561049f575b600260005260011b7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0190600090565b6104a7610434565b61046f565b503461000e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760043560025481101561000e57604090600260005260011b7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf73ffffffffffffffffffffffffffffffffffffffff827f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01541691015482519182526020820152f35b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e57602073ffffffffffffffffffffffffffffffffffffffff60005416604051908152f35b60005b8381106105c45750506000910152565b81810151838201526020016105b4565b9160a0936020601f927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe094865273ffffffffffffffffffffffffffffffffffffffff81511682870152015160408501526080606085015261064481518092816080880152602088880191016105b1565b0116010190565b503461000e5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760405161068781610a37565b600080825280602083015261069a61091b565b606060ff60055416156106bc575b6106b890604051938493846105d4565b0390f35b5050506002546106cd600435610464565b50906106b86107186040516106e181610a37565b600173ffffffffffffffffffffffffffffffffffffffff865416958683520154602082015293610712602435610afc565b90610b27565b90506106a8565b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e57602060ff600554166040519015158152f35b503461000e5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760206107a1602435600435611125565b7fffffffffffffffffffffffffffffffff0000000000000000000000000000000060405191168152f35b503461000e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760043573ffffffffffffffffffffffffffffffffffffffff811680820361000e5761082461091b565b15610832576102339061099a565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576108ee61091b565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055005b73ffffffffffffffffffffffffffffffffffffffff60005416330361093c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6000549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff821117610a5357604052565b610a5b610a07565b604052565b6020810190811067ffffffffffffffff821117610a5357604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610a5357604052565b60405190610aca82610a37565b565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b908160041b9180830460101490151715610b1257565b610aca610acc565b91908201809211610b1257565b90610b3c9160018201809211610b3f57610b47565b90565b610b47610acc565b9190823b8015610bc157808211610baa57819003811980821015610ba25750905b604051937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f840116850160405282855260208501903c565b905090610b68565b50509050604051610bba81610a60565b6000815290565b505090506040516020810181811067ffffffffffffffff821117610bea575b6040526000815290565b610bf2610a07565b610be0565b15610bfe57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f444e412069732066696e616c697a65642e0000000000000000000000000000006044820152fd5b15610c6357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f494458206f7574206f6620626f756e64730000000000000000000000000000006044820152fd5b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211610b1257565b91908203918211610b1257565b15610d0257565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f63616e277420617070656e64206e6577206275636b657420616674657220756e60448201527f66696c6c65642070726576696f7573206f6e65000000000000000000000000006064820152fd5b15610d8d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f6578636565646564206275636b657420776964746800000000000000000000006044820152fd5b15610df257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f646e61206c656e677468206e6f74206d756c7469706c65206f662031360000006044820152fd5b92919267ffffffffffffffff8211610eb6575b60405191610e9960207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610a7c565b82948184528183011161000e578281602093846000960137010152565b610ebe610a07565b610e63565b7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf602060025468010000000000000000811015610fa6575b6001810180600255811015610f99575b600260005260011b92610f9273ffffffffffffffffffffffffffffffffffffffff825116857f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace019073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b0151910155565b610fa1610434565b610f0b565b610fae610a07565b610efb565b61107d61108d602e604051610ff0602182602081019760008952610fe081518092602086860191016105b1565b8101036001810184520182610a7c565b8051946040519485927fffffffff0000000000000000000000000000000000000000000000000000000060208501987f63000000000000000000000000000000000000000000000000000000000000008a5260e01b1660218501527f80600e6000396000f300000000000000000000000000000000000000000000006025850152518092858501906105b1565b810103600e810184520182610a7c565b51906000f09073ffffffffffffffffffffffffffffffffffffffff8216156110b157565b60046040517f08d4abb6000000000000000000000000000000000000000000000000000000008152fd5b90602082519201517fffffffffffffffffffffffffffffffff0000000000000000000000000000000090818116936010811061111657505050565b60100360031b82901b16169150565b612717906083810290808204608314901517156111f2575b82018083116111e5575b06906101f4908183049060025482101561119a5750916107126111959261118e611173610b3c96610464565b505473ffffffffffffffffffffffffffffffffffffffff1690565b9206610afc565b6110db565b809250837fffffffffffffffffffffffffffffffff00000000000000000000000000000000949250029181830414901517156111d8575b60801b1690565b6111e0610acc565b6111d1565b6111ed610acc565b611147565b6111fa610acc565b61113d56fea264697066735822122079091b397bc43106fc087f394bf003fda7b7fb0d6d3c7ebbc02bb54bb1f1fd3b64736f6c63430008110033

Deployed Bytecode

0x60806040526004361015610013575b600080fd5b60003560e01c806316799e3f146100ef57806332cb6b0c146100e65780633f6fa655146100dd578063715018a6146100d45780638b3be051146100cb5780638da5cb5b146100c2578063ccf9f8da146100b9578063cf309012146100b0578063d30e3098146100a7578063f2fde38b1461009e5763f83d08ba1461009657600080fd5b61000e6108b6565b5061000e6107cb565b5061000e610761565b5061000e61071f565b5061000e61064b565b5061000e61055e565b5061000e6104ac565b5061000e610393565b5061000e610356565b5061000e610319565b503461000e5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760243567ffffffffffffffff60043581831161000e573660238401121561000e57826004013591821161000e576024830192602483369201011161000e576102339261022e9261016d61091b565b61018861018361017f60055460ff1690565b1590565b610bf7565b600254610196818512610c5c565b6101b4600085128092811591610310575b81156102f3575b50610cfb565b8160041c9384916101c96101f4841115610d86565b6101d6600f851615610deb565b156102355750506101ef610226926101f4923691610e50565b610fb3565b61021b6101ff610abd565b73ffffffffffffffffffffffffffffffffffffffff9092168252565b826020820152610ec3565b600154610b1a565b600155565b005b6102e661029c6101ef6102eb949660019661027b61025287610464565b507fffffffffffffffffffffffff00000000000000000000000000000000000000008154169055565b61029561022e8961028b89610464565b5001548a54610cee565b3691610e50565b6102a583610464565b509073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b610464565b500155610226565b6101f491506103066102e6600192610cc1565b50015414386101ae565b801591506101a7565b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576020600154604051908152f35b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576020600354604051908152f35b503461000e576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610431576103cc61091b565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60025481101561049f575b600260005260011b7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0190600090565b6104a7610434565b61046f565b503461000e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760043560025481101561000e57604090600260005260011b7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf73ffffffffffffffffffffffffffffffffffffffff827f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01541691015482519182526020820152f35b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e57602073ffffffffffffffffffffffffffffffffffffffff60005416604051908152f35b60005b8381106105c45750506000910152565b81810151838201526020016105b4565b9160a0936020601f927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe094865273ffffffffffffffffffffffffffffffffffffffff81511682870152015160408501526080606085015261064481518092816080880152602088880191016105b1565b0116010190565b503461000e5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760405161068781610a37565b600080825280602083015261069a61091b565b606060ff60055416156106bc575b6106b890604051938493846105d4565b0390f35b5050506002546106cd600435610464565b50906106b86107186040516106e181610a37565b600173ffffffffffffffffffffffffffffffffffffffff865416958683520154602082015293610712602435610afc565b90610b27565b90506106a8565b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e57602060ff600554166040519015158152f35b503461000e5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760206107a1602435600435611125565b7fffffffffffffffffffffffffffffffff0000000000000000000000000000000060405191168152f35b503461000e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5760043573ffffffffffffffffffffffffffffffffffffffff811680820361000e5761082461091b565b15610832576102339061099a565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576108ee61091b565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055005b73ffffffffffffffffffffffffffffffffffffffff60005416330361093c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6000549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff821117610a5357604052565b610a5b610a07565b604052565b6020810190811067ffffffffffffffff821117610a5357604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610a5357604052565b60405190610aca82610a37565b565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b908160041b9180830460101490151715610b1257565b610aca610acc565b91908201809211610b1257565b90610b3c9160018201809211610b3f57610b47565b90565b610b47610acc565b9190823b8015610bc157808211610baa57819003811980821015610ba25750905b604051937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f840116850160405282855260208501903c565b905090610b68565b50509050604051610bba81610a60565b6000815290565b505090506040516020810181811067ffffffffffffffff821117610bea575b6040526000815290565b610bf2610a07565b610be0565b15610bfe57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f444e412069732066696e616c697a65642e0000000000000000000000000000006044820152fd5b15610c6357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f494458206f7574206f6620626f756e64730000000000000000000000000000006044820152fd5b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211610b1257565b91908203918211610b1257565b15610d0257565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f63616e277420617070656e64206e6577206275636b657420616674657220756e60448201527f66696c6c65642070726576696f7573206f6e65000000000000000000000000006064820152fd5b15610d8d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f6578636565646564206275636b657420776964746800000000000000000000006044820152fd5b15610df257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f646e61206c656e677468206e6f74206d756c7469706c65206f662031360000006044820152fd5b92919267ffffffffffffffff8211610eb6575b60405191610e9960207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610a7c565b82948184528183011161000e578281602093846000960137010152565b610ebe610a07565b610e63565b7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf602060025468010000000000000000811015610fa6575b6001810180600255811015610f99575b600260005260011b92610f9273ffffffffffffffffffffffffffffffffffffffff825116857f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace019073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b0151910155565b610fa1610434565b610f0b565b610fae610a07565b610efb565b61107d61108d602e604051610ff0602182602081019760008952610fe081518092602086860191016105b1565b8101036001810184520182610a7c565b8051946040519485927fffffffff0000000000000000000000000000000000000000000000000000000060208501987f63000000000000000000000000000000000000000000000000000000000000008a5260e01b1660218501527f80600e6000396000f300000000000000000000000000000000000000000000006025850152518092858501906105b1565b810103600e810184520182610a7c565b51906000f09073ffffffffffffffffffffffffffffffffffffffff8216156110b157565b60046040517f08d4abb6000000000000000000000000000000000000000000000000000000008152fd5b90602082519201517fffffffffffffffffffffffffffffffff0000000000000000000000000000000090818116936010811061111657505050565b60100360031b82901b16169150565b612717906083810290808204608314901517156111f2575b82018083116111e5575b06906101f4908183049060025482101561119a5750916107126111959261118e611173610b3c96610464565b505473ffffffffffffffffffffffffffffffffffffffff1690565b9206610afc565b6110db565b809250837fffffffffffffffffffffffffffffffff00000000000000000000000000000000949250029181830414901517156111d8575b60801b1690565b6111e0610acc565b6111d1565b6111ed610acc565b611147565b6111fa610acc565b61113d56fea264697066735822122079091b397bc43106fc087f394bf003fda7b7fb0d6d3c7ebbc02bb54bb1f1fd3b64736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.