ETH Price: $3,785.21 (+2.68%)

Contract

0xD3ccfFa5887225042886518f438754a16C971aF1
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value

There are no matching entries

Please try again later

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
93172282022-05-30 13:38:31722 days ago1653917911  Contract Creation0 ETH

Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x7aca85D7...eD9a62538
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
CouncilToken

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : CouncilToken.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@synthetixio/core-contracts/contracts/proxy/UUPSImplementation.sol";
import "@synthetixio/core-contracts/contracts/ownership/Ownable.sol";
import "@synthetixio/core-contracts/contracts/token/ERC721.sol";

contract CouncilToken is Ownable, UUPSImplementation, ERC721 {
    error TokenIsNotTransferable();

    function initialize(string memory tokenName, string memory tokenSymbol) public onlyOwner {
        _initialize(tokenName, tokenSymbol, "");
    }

    function upgradeTo(address newImplementation) public override onlyOwner {
        _upgradeTo(newImplementation);
    }

    function mint(address to, uint256 tokenId) public virtual onlyOwner {
        _mint(to, tokenId);
    }

    function burn(uint256 tokenId) public virtual onlyOwner {
        _burn(tokenId);
    }

    function transferFrom(
        address,
        address,
        uint256
    ) public virtual override {
        revert TokenIsNotTransferable();
    }

    function safeTransferFrom(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override {
        revert TokenIsNotTransferable();
    }
}

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

import "../interfaces/IUUPSImplementation.sol";
import "../errors/AddressError.sol";
import "../errors/ChangeError.sol";
import "../utils/AddressUtil.sol";
import "./ProxyStorage.sol";

abstract contract UUPSImplementation is IUUPSImplementation, ProxyStorage {
    event Upgraded(address implementation);

    error ImplementationIsSterile(address implementation);
    error UpgradeSimulationFailed();

    function _upgradeTo(address newImplementation) internal virtual {
        if (newImplementation == address(0)) {
            revert AddressError.ZeroAddress();
        }

        if (!AddressUtil.isContract(newImplementation)) {
            revert AddressError.NotAContract(newImplementation);
        }

        ProxyStore storage store = _proxyStore();

        if (newImplementation == store.implementation) {
            revert ChangeError.NoChange();
        }

        if (!store.simulatingUpgrade && _implementationIsSterile(newImplementation)) {
            revert ImplementationIsSterile(newImplementation);
        }

        store.implementation = newImplementation;

        emit Upgraded(newImplementation);
    }

    function _implementationIsSterile(address candidateImplementation) internal virtual returns (bool) {
        (bool simulationReverted, bytes memory simulationResponse) = address(this).delegatecall(
            abi.encodeCall(this.simulateUpgradeTo, (candidateImplementation))
        );

        return
            !simulationReverted &&
            keccak256(abi.encodePacked(simulationResponse)) == keccak256(abi.encodePacked(UpgradeSimulationFailed.selector));
    }

    function simulateUpgradeTo(address newImplementation) public override {
        ProxyStore storage store = _proxyStore();

        store.simulatingUpgrade = true;

        address currentImplementation = store.implementation;
        store.implementation = newImplementation;

        (bool rollbackSuccessful, ) = newImplementation.delegatecall(
            abi.encodeCall(this.upgradeTo, (currentImplementation))
        );

        if (!rollbackSuccessful || _proxyStore().implementation != currentImplementation) {
            revert UpgradeSimulationFailed();
        }

        store.simulatingUpgrade = false;

        // solhint-disable-next-line reason-string
        revert();
    }

    function getImplementation() external view override returns (address) {
        return _proxyStore().implementation;
    }
}

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

import "./OwnableMixin.sol";
import "../interfaces/IOwnable.sol";
import "../errors/AddressError.sol";
import "../errors/ChangeError.sol";

contract Ownable is IOwnable, OwnableMixin {
    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);

    error NotNominated(address addr);

    function acceptOwnership() public override {
        OwnableStore storage store = _ownableStore();

        address currentNominatedOwner = store.nominatedOwner;
        if (msg.sender != currentNominatedOwner) {
            revert NotNominated(msg.sender);
        }

        emit OwnerChanged(store.owner, currentNominatedOwner);
        store.owner = currentNominatedOwner;

        store.nominatedOwner = address(0);
    }

    function nominateNewOwner(address newNominatedOwner) public override onlyOwnerIfSet {
        OwnableStore storage store = _ownableStore();

        if (newNominatedOwner == address(0)) {
            revert AddressError.ZeroAddress();
        }

        if (newNominatedOwner == store.nominatedOwner) {
            revert ChangeError.NoChange();
        }

        store.nominatedOwner = newNominatedOwner;
        emit OwnerNominated(newNominatedOwner);
    }

    function renounceNomination() external override {
        OwnableStore storage store = _ownableStore();

        if (store.nominatedOwner != msg.sender) {
            revert NotNominated(msg.sender);
        }

        store.nominatedOwner = address(0);
    }

    function owner() external view override returns (address) {
        return _ownableStore().owner;
    }

    function nominatedOwner() external view override returns (address) {
        return _ownableStore().nominatedOwner;
    }
}

File 4 of 20 : ERC721.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../interfaces/IERC721.sol";
import "../interfaces/IERC721Metadata.sol";
import "../interfaces/IERC721Receiver.sol";
import "../errors/AddressError.sol";
import "../errors/AccessError.sol";
import "../errors/InitError.sol";
import "./ERC721Storage.sol";
import "../utils/AddressUtil.sol";
import "../utils/StringUtil.sol";

/*
    Reference implementations:
    * OpenZeppelin - https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol
*/

contract ERC721 is IERC721, IERC721Metadata, ERC721Storage {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    error CannotSelfApprove(address);
    error InvalidTransferRecipient(address);
    error TokenDoesNotExist(uint256);
    error TokenAlreadyMinted(uint256);

    function _initialize(
        string memory tokenName,
        string memory tokenSymbol,
        string memory baseTokenURI
    ) internal virtual {
        ERC721Store storage store = _erc721Store();
        if (bytes(store.name).length > 0 || bytes(store.symbol).length > 0 || bytes(store.baseTokenURI).length > 0) {
            revert InitError.AlreadyInitialized();
        }

        store.name = tokenName;
        store.symbol = tokenSymbol;
        store.baseTokenURI = baseTokenURI;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return
            interfaceId == this.supportsInterface.selector || // ERC165
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId;
    }

    function balanceOf(address holder) public view virtual override returns (uint) {
        if (holder == address(0)) {
            revert AddressError.ZeroAddress();
        }

        return _erc721Store().balanceOf[holder];
    }

    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) {
            revert TokenDoesNotExist(tokenId);
        }

        return _erc721Store().ownerOf[tokenId];
    }

    function name() external view virtual override returns (string memory) {
        return _erc721Store().name;
    }

    function symbol() external view virtual override returns (string memory) {
        return _erc721Store().symbol;
    }

    function tokenURI(uint256 tokenId) external view virtual override returns (string memory) {
        if (!_exists(tokenId)) {
            revert TokenDoesNotExist(tokenId);
        }

        string memory baseURI = _erc721Store().baseTokenURI;

        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, StringUtil.uintToString(tokenId))) : "";
    }

    function approve(address to, uint256 tokenId) public virtual override {
        ERC721Store storage store = _erc721Store();
        address holder = store.ownerOf[tokenId];

        if (to == holder) {
            revert CannotSelfApprove(to);
        }

        if (msg.sender != holder && !isApprovedForAll(holder, msg.sender)) {
            revert AccessError.Unauthorized(msg.sender);
        }

        _approve(to, tokenId);
    }

    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) {
            revert TokenDoesNotExist(tokenId);
        }

        return _erc721Store().tokenApprovals[tokenId];
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (msg.sender == operator) {
            revert CannotSelfApprove(operator);
        }

        _erc721Store().operatorApprovals[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function isApprovedForAll(address holder, address operator) public view virtual override returns (bool) {
        return _erc721Store().operatorApprovals[holder][operator];
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        if (!_isApprovedOrOwner(msg.sender, tokenId)) {
            revert AccessError.Unauthorized(msg.sender);
        }

        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        if (!_isApprovedOrOwner(msg.sender, tokenId)) {
            revert AccessError.Unauthorized(msg.sender);
        }

        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, data)) {
            revert InvalidTransferRecipient(to);
        }
    }

    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _erc721Store().ownerOf[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address holder = ownerOf(tokenId);

        // Not checking tokenId existence since it is checked in ownerOf() and getApproved()

        return (spender == holder || getApproved(tokenId) == spender || isApprovedForAll(holder, spender));
    }

    function _mint(address to, uint256 tokenId) internal virtual {
        ERC721Store storage store = _erc721Store();
        if (to == address(0)) {
            revert AddressError.ZeroAddress();
        }

        if (_exists(tokenId)) {
            revert TokenAlreadyMinted(tokenId);
        }

        store.balanceOf[to] += 1;
        store.ownerOf[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    function _burn(uint256 tokenId) internal virtual {
        ERC721Store storage store = _erc721Store();
        address holder = store.ownerOf[tokenId];

        _approve(address(0), tokenId);

        store.balanceOf[holder] -= 1;
        delete store.ownerOf[tokenId];

        emit Transfer(holder, address(0), tokenId);
    }

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        ERC721Store storage store = _erc721Store();

        if (ownerOf(tokenId) != from) {
            revert AccessError.Unauthorized(from);
        }

        if (to == address(0)) {
            revert AddressError.ZeroAddress();
        }

        // Clear approvals from the previous holder
        _approve(address(0), tokenId);

        store.balanceOf[from] -= 1;
        store.balanceOf[to] += 1;
        store.ownerOf[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    function _approve(address to, uint256 tokenId) internal virtual {
        _erc721Store().tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (AddressUtil.isContract(to)) {
            try IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch {
                return false;
            }
        } else {
            return true;
        }
    }
}

File 5 of 20 : IUUPSImplementation.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IUUPSImplementation {
    function upgradeTo(address newImplementation) external;

    function simulateUpgradeTo(address newImplementation) external;

    function getImplementation() external view returns (address);
}

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

library AddressError {
    error ZeroAddress();
    error NotAContract(address contr);
}

File 7 of 20 : ChangeError.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library ChangeError {
    error NoChange();
}

File 8 of 20 : AddressUtil.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library AddressUtil {
    function isContract(address account) internal view returns (bool) {
        uint256 size;

        assembly {
            size := extcodesize(account)
        }

        return size > 0;
    }
}

File 9 of 20 : ProxyStorage.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract ProxyStorage {
    struct ProxyStore {
        address implementation;
        bool simulatingUpgrade;
    }

    function _proxyStore() internal pure returns (ProxyStore storage store) {
        assembly {
            // bytes32(uint(keccak256("io.synthetix.v3.proxy")) - 1)
            store.slot := 0x32402780481dd8149e50baad867f01da72e2f7d02639a6fe378dbd80b6bb446e
        }
    }
}

File 10 of 20 : OwnableMixin.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./OwnableStorage.sol";
import "../errors/AccessError.sol";

contract OwnableMixin is OwnableStorage {
    modifier onlyOwner() {
        _onlyOwner();

        _;
    }

    modifier onlyOwnerIfSet() {
        address owner = _getOwner();

        // if owner is set then check if msg.sender is the owner
        if (owner != address(0)) {
            _onlyOwner();
        }

        _;
    }

    function _onlyOwner() internal view {
        if (msg.sender != _getOwner()) {
            revert AccessError.Unauthorized(msg.sender);
        }
    }

    function _getOwner() internal view returns (address) {
        return _ownableStore().owner;
    }
}

File 11 of 20 : IOwnable.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IOwnable {
    function acceptOwnership() external;

    function nominateNewOwner(address newNominatedOwner) external;

    function renounceNomination() external;

    function owner() external view returns (address);

    function nominatedOwner() external view returns (address);
}

File 12 of 20 : OwnableStorage.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract OwnableStorage {
    struct OwnableStore {
        bool initialized;
        address owner;
        address nominatedOwner;
    }

    function _ownableStore() internal pure returns (OwnableStore storage store) {
        assembly {
            // bytes32(uint(keccak256("io.synthetix.ownable")) - 1)
            store.slot := 0x66d20a9eef910d2df763b9de0d390f3cc67f7d52c6475118cd57fa98be8cf6cb
        }
    }
}

File 13 of 20 : AccessError.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library AccessError {
    error Unauthorized(address addr);
}

File 14 of 20 : IERC721.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC165.sol";

interface IERC721 is IERC165 {
    function balanceOf(address owner) external view returns (uint256);

    function ownerOf(uint256 tokenId) external view returns (address);

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function approve(address approved, uint256 tokenId) external;

    function setApprovalForAll(address operator, bool approved) external;

    function getApproved(uint256 tokenId) external view returns (address);

    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 15 of 20 : IERC721Metadata.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC165.sol";

interface IERC721Metadata is IERC165 {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 16 of 20 : IERC721Receiver.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes memory data
    ) external returns (bytes4);
}

File 17 of 20 : InitError.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library InitError {
    error AlreadyInitialized();
    error NotInitialized();
}

File 18 of 20 : ERC721Storage.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract ERC721Storage {
    struct ERC721Store {
        string name;
        string symbol;
        string baseTokenURI;
        mapping(uint256 => address) ownerOf;
        mapping(address => uint256) balanceOf;
        mapping(uint256 => address) tokenApprovals;
        mapping(address => mapping(address => bool)) operatorApprovals;
    }

    function _erc721Store() internal pure returns (ERC721Store storage store) {
        assembly {
            // bytes32(uint(keccak256("io.synthetix.ERC721")) - 1)
            store.slot := 0xcff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bcf
        }
    }
}

File 19 of 20 : StringUtil.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/*
    Reference implementations:
    * OpenZeppelin - https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol
*/

library StringUtil {
    function uintToString(uint value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }

        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }

        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }

        return string(buffer);
    }
}

File 20 of 20 : IERC165.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC165 {
    function supportsInterface(bytes4 interfaceID) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"CannotSelfApprove","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ImplementationIsSterile","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"InvalidTransferRecipient","type":"error"},{"inputs":[],"name":"NoChange","type":"error"},{"inputs":[{"internalType":"address","name":"contr","type":"address"}],"name":"NotAContract","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"NotNominated","type":"error"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenAlreadyMinted","type":"error"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TokenIsNotTransferable","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UpgradeSimulationFailed","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newNominatedOwner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceNomination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"simulateUpgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c80636352211e116100c3578063a22cb4651161007c578063a22cb465146102e3578063aaf10f42146102f6578063b88d4fde14610314578063c7f62cda14610322578063c87b56dd14610335578063e985e9c51461034857600080fd5b80636352211e1461028f57806370a08231146102a2578063718fe928146102c357806379ba5097146102cb5780638da5cb5b146102d357806395d89b41146102db57600080fd5b80633659cfe6116101155780633659cfe61461020057806340c10f191461021357806342842e0e1461022657806342966c68146102395780634cd88b761461024c57806353a47bb71461025f57600080fd5b806301ffc9a71461015d57806306fdde0314610185578063081812fc1461019a578063095ea7b3146101c55780631627540c146101da57806323b872dd146101ed575b600080fd5b61017061016b36600461138f565b61035b565b60405190151581526020015b60405180910390f35b61018d6103ad565b60405161017c91906113e5565b6101ad6101a8366004611418565b61044c565b6040516001600160a01b03909116815260200161017c565b6101d86101d336600461144d565b6104b7565b005b6101d86101e8366004611477565b61056c565b6101d86101fb366004611492565b61064e565b6101d861020e366004611477565b610667565b6101d861022136600461144d565b61067b565b6101d8610234366004611492565b610691565b6101d8610247366004611418565b6106b1565b6101d861025a36600461157a565b6106c2565b7f66d20a9eef910d2df763b9de0d390f3cc67f7d52c6475118cd57fa98be8cf6cc546001600160a01b03166101ad565b6101ad61029d366004611418565b6106e4565b6102b56102b0366004611477565b610738565b60405190815260200161017c565b6101d861079c565b6101d861080b565b6101ad6108e7565b61018d610908565b6101d86102f13660046115de565b610927565b600080516020611864833981519152546001600160a01b03166101ad565b6101d86101fb36600461161a565b6101d8610330366004611477565b6109e7565b61018d610343366004611418565b610b01565b610170610356366004611696565b610c1b565b60006001600160e01b031982166301ffc9a760e01b148061038c57506001600160e01b031982166380ac58cd60e01b145b806103a757506001600160e01b03198216635b5e139f60e01b145b92915050565b606060008051602061184483398151915280546103c9906116c9565b80601f01602080910402602001604051908101604052809291908181526020018280546103f5906116c9565b80156104425780601f1061041757610100808354040283529160200191610442565b820191906000526020600020905b81548152906001019060200180831161042557829003601f168201915b5050505050905090565b600061045782610c68565b61047c5760405163c927e5bf60e01b8152600481018390526024015b60405180910390fd5b5060009081527fcff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bd460205260409020546001600160a01b031690565b60008181526000805160206118048339815191526020526040902054600080516020611844833981519152906001600160a01b0390811690841681141561051c5760405163132d05df60e31b81526001600160a01b0385166004820152602401610473565b336001600160a01b0382161480159061053c575061053a8133610c1b565b155b1561055c5760405163472511eb60e11b8152336004820152602401610473565b6105668484610c92565b50505050565b60006105766108e7565b90506001600160a01b0381161561058f5761058f610d1f565b6000805160206118248339815191526001600160a01b0383166105c55760405163d92e233d60e01b815260040160405180910390fd5b60018101546001600160a01b03848116911614156105f65760405163a88ee57760e01b815260040160405180910390fd5b6001810180546001600160a01b0319166001600160a01b0385169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a1505050565b60405163801b94cb60e01b815260040160405180910390fd5b61066f610d1f565b61067881610d5c565b50565b610683610d1f565b61068d8282610e82565b5050565b6106ac8383836040518060200160405280600081525061064e565b505050565b6106b9610d1f565b61067881610f6e565b6106ca610d1f565b61068d828260405180602001604052806000815250611038565b60006106ef82610c68565b61070f5760405163c927e5bf60e01b815260048101839052602401610473565b50600090815260008051602061180483398151915260205260409020546001600160a01b031690565b60006001600160a01b0382166107615760405163d92e233d60e01b815260040160405180910390fd5b506001600160a01b031660009081527fcff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bd3602052604090205490565b7f66d20a9eef910d2df763b9de0d390f3cc67f7d52c6475118cd57fa98be8cf6cc54600080516020611824833981519152906001600160a01b031633146107f85760405163a0e5a0d760e01b8152336004820152602401610473565b60010180546001600160a01b0319169055565b7f66d20a9eef910d2df763b9de0d390f3cc67f7d52c6475118cd57fa98be8cf6cc54600080516020611824833981519152906001600160a01b03163381146108685760405163a0e5a0d760e01b8152336004820152602401610473565b8154604080516101009092046001600160a01b039081168352831660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a181546001600160a01b0390911661010002610100600160a81b031990911617815560010180546001600160a01b0319169055565b6000805160206118248339815191525461010090046001600160a01b031690565b606060008051602061184483398151915260010180546103c9906116c9565b336001600160a01b038316141561095c5760405163132d05df60e31b81526001600160a01b0383166004820152602401610473565b3360008181527fcff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bd5602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008051602061186483398151915280546001600160a01b038381166001600160a81b031983168117600160a01b1784556040805192909316602480840182905284518085039091018152604490930184526020830180516001600160e01b0316631b2ce7f360e11b1790529251600092610a6191611704565b600060405180830381855af49150503d8060008114610a9c576040519150601f19603f3d011682016040523d82523d6000602084013e610aa1565b606091505b50509050801580610ad357506001600160a01b038216600080516020611864833981519152546001600160a01b031614155b15610af157604051631439f4b560e31b815260040160405180910390fd5b825460ff60a01b19168355600080fd5b6060610b0c82610c68565b610b2c5760405163c927e5bf60e01b815260048101839052602401610473565b60006000805160206118448339815191526002018054610b4b906116c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b77906116c9565b8015610bc45780601f10610b9957610100808354040283529160200191610bc4565b820191906000526020600020905b815481529060010190602001808311610ba757829003601f168201915b505050505090506000815111610be95760405180602001604052806000815250610c14565b80610bf3846110f2565b604051602001610c04929190611720565b6040516020818303038152906040525b9392505050565b6001600160a01b0391821660009081527fcff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bd56020908152604080832093909416825291909152205460ff1690565b600090815260008051602061180483398151915260205260409020546001600160a01b0316151590565b60008181527fcff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bd46020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ce6826106e4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610d276108e7565b6001600160a01b0316336001600160a01b031614610d5a5760405163472511eb60e11b8152336004820152602401610473565b565b6001600160a01b038116610d835760405163d92e233d60e01b815260040160405180910390fd5b803b610dad576040516322a2d07b60e21b81526001600160a01b0382166004820152602401610473565b60008051602061186483398151915280546001600160a01b0383811691161415610dea5760405163a88ee57760e01b815260040160405180910390fd5b8054600160a01b900460ff16158015610e075750610e07826111f8565b15610e3057604051631550430160e01b81526001600160a01b0383166004820152602401610473565b80546001600160a01b0319166001600160a01b03831690811782556040519081527fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b9060200160405180910390a15050565b6000805160206118448339815191526001600160a01b038316610eb85760405163d92e233d60e01b815260040160405180910390fd5b610ec182610c68565b15610ee2576040516322d1d39560e21b815260048101839052602401610473565b6001600160a01b03831660009081526004820160205260408120805460019290610f0d908490611765565b9091555050600082815260038201602052604080822080546001600160a01b0319166001600160a01b03871690811790915590518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b60008181526000805160206118048339815191526020526040812054600080516020611844833981519152916001600160a01b0390911690610fb09084610c92565b6001600160a01b03811660009081526004830160205260408120805460019290610fdb90849061177d565b9091555050600083815260038301602052604080822080546001600160a01b0319169055518491906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b60008051602061184483398151915280546000908290611057906116c9565b9050118061107557506000816001018054611071906116c9565b9050115b806110905750600081600201805461108c906116c9565b9050115b156110ad5760405162dc149f60e41b815260040160405180910390fd5b83516110bf90829060208701906112f6565b5082516110d590600183019060208601906112f6565b5081516110eb90600283019060208501906112f6565b5050505050565b6060816111165750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611140578061112a81611794565b91506111399050600a836117c5565b915061111a565b60008167ffffffffffffffff81111561115b5761115b6114ce565b6040519080825280601f01601f191660200182016040528015611185576020820181803683370190505b5090505b84156111f05761119a60018361177d565b91506111a7600a866117d9565b6111b2906030611765565b60f81b8183815181106111c7576111c76117ed565b60200101906001600160f81b031916908160001a9053506111e9600a866117c5565b9450611189565b949350505050565b604080516001600160a01b03831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166363fb166d60e11b179052905160009182918291309161124f9190611704565b600060405180830381855af49150503d806000811461128a576040519150601f19603f3d011682016040523d82523d6000602084013e61128f565b606091505b5091509150811580156111f05750604051631439f4b560e31b602082015260240160405160208183030381529060405280519060200120816040516020016112d79190611704565b6040516020818303038152906040528051906020012014949350505050565b828054611302906116c9565b90600052602060002090601f016020900481019282611324576000855561136a565b82601f1061133d57805160ff191683800117855561136a565b8280016001018555821561136a579182015b8281111561136a57825182559160200191906001019061134f565b5061137692915061137a565b5090565b5b80821115611376576000815560010161137b565b6000602082840312156113a157600080fd5b81356001600160e01b031981168114610c1457600080fd5b60005b838110156113d45781810151838201526020016113bc565b838111156105665750506000910152565b60208152600082518060208401526114048160408501602087016113b9565b601f01601f19169190910160400192915050565b60006020828403121561142a57600080fd5b5035919050565b80356001600160a01b038116811461144857600080fd5b919050565b6000806040838503121561146057600080fd5b61146983611431565b946020939093013593505050565b60006020828403121561148957600080fd5b610c1482611431565b6000806000606084860312156114a757600080fd5b6114b084611431565b92506114be60208501611431565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114ff576114ff6114ce565b604051601f8501601f19908116603f01168101908282118183101715611527576115276114ce565b8160405280935085815286868601111561154057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261156b57600080fd5b610c14838335602085016114e4565b6000806040838503121561158d57600080fd5b823567ffffffffffffffff808211156115a557600080fd5b6115b18683870161155a565b935060208501359150808211156115c757600080fd5b506115d48582860161155a565b9150509250929050565b600080604083850312156115f157600080fd5b6115fa83611431565b91506020830135801515811461160f57600080fd5b809150509250929050565b6000806000806080858703121561163057600080fd5b61163985611431565b935061164760208601611431565b925060408501359150606085013567ffffffffffffffff81111561166a57600080fd5b8501601f8101871361167b57600080fd5b61168a878235602084016114e4565b91505092959194509250565b600080604083850312156116a957600080fd5b6116b283611431565b91506116c060208401611431565b90509250929050565b600181811c908216806116dd57607f821691505b602082108114156116fe57634e487b7160e01b600052602260045260246000fd5b50919050565b600082516117168184602087016113b9565b9190910192915050565b600083516117328184602088016113b9565b8351908301906117468183602088016113b9565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156117785761177861174f565b500190565b60008282101561178f5761178f61174f565b500390565b60006000198214156117a8576117a861174f565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826117d4576117d46117af565b500490565b6000826117e8576117e86117af565b500690565b634e487b7160e01b600052603260045260246000fdfecff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bd266d20a9eef910d2df763b9de0d390f3cc67f7d52c6475118cd57fa98be8cf6cbcff586616dbfd8fcbd4d6ec876c80f6e96179ad989cea8424b590d1e270e5bcf32402780481dd8149e50baad867f01da72e2f7d02639a6fe378dbd80b6bb446ea26469706673582212203d964d90f545746db249737ec7275064262b87e63f3a25808e6304df0b07e40964736f6c634300080b0033

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
[ 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.