POL Price: $0.620897 (+4.49%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KinoraAccessControl

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : KinoraAccessControl.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;

import "./KinoraErrors.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

contract KinoraAccessControl {
  string public symbol;
  string public name;
  address private _kinoraEscrow;
  address private _kinoraQuestData;
  address private _kinoraMetrics;
  address private _kinoraNFTCreator;
  address private _coreEnvoker;
  address public kinoraOpenAction;

  mapping(address => bool) private _envokers;

  event EnvokerAdded(address indexed envoker);
  event EnvokerRemoved(address indexed envoker);
  event CoreEnvokerChanged(address indexed newEnvoker);

  modifier onlyCoreEnvoker() {
    if (msg.sender != _coreEnvoker) {
      revert KinoraErrors.OnlyCoreEnvoker();
    }
    _;
  }

  function initialize(
    address _coreEnvokerAddress,
    address _kinoraOpenActionAddress
  ) external {
    if (kinoraOpenAction != address(0)) {
      revert KinoraErrors.AlreadyInitialized();
    }
    symbol = "KAC";
    name = "KinoraAccessControl";
    kinoraOpenAction = _kinoraOpenActionAddress;
    _envokers[_coreEnvokerAddress] = true;
    _coreEnvoker = _coreEnvokerAddress;
  }

  function setRelatedContract(
    address _kinoraEscrowAddress,
    address _kinoraQuestDataAddress,
    address _kinoraMetricsAddress,
    address _kinoraNFTCreatorAddress
  ) external {
    if (msg.sender != kinoraOpenAction) {
      revert KinoraErrors.InvalidAddress();
    }

    _kinoraEscrow = _kinoraEscrowAddress;
    _kinoraQuestData = _kinoraQuestDataAddress;
    _kinoraMetrics = _kinoraMetricsAddress;
    _kinoraNFTCreator = _kinoraNFTCreatorAddress;
  }

  function addEnvoker(address _envoker) external onlyCoreEnvoker {
    if (_envoker == msg.sender || _envokers[_envoker]) {
      revert KinoraErrors.InvalidAddress();
    }

    _envokers[_envoker] = true;
    emit EnvokerAdded(_envoker);
  }

  function removeEnvoker(address _envoker) external onlyCoreEnvoker {
    if (_envoker == msg.sender || !_envokers[_envoker]) {
      revert KinoraErrors.InvalidAddress();
    }
    delete _envokers[_envoker];
    emit EnvokerRemoved(_envoker);
  }

  function changeCoreEnvoker(address _newEnvoker) external onlyCoreEnvoker {
    _envokers[_coreEnvoker] = false;
    _coreEnvoker = _newEnvoker;
    _envokers[_newEnvoker] = true;
    emit CoreEnvokerChanged(_newEnvoker);
  }

  function isEnvoker(address _address) public view returns (bool) {
    return _envokers[_address];
  }

  function isCoreEnvoker() public view returns (address) {
    return _coreEnvoker;
  }

  function getKinoraEscrow() public view returns (address) {
    return _kinoraEscrow;
  }

  function getKinoraMetrics() public view returns (address) {
    return _kinoraMetrics;
  }

  function getKinoraQuestData() public view returns (address) {
    return _kinoraQuestData;
  }

  function getKinoraNFTCreator() public view returns (address) {
    return _kinoraNFTCreator;
  }
}

File 2 of 4 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 3 of 4 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 4 of 4 : KinoraErrors.sol
// SPDX-License-Identifier: UNLICENSE

pragma solidity ^0.8.19;

contract KinoraErrors {
  error OnlyAdmin();
  error InvalidLength();
  error InvalidAddress();
  error InvalidContract();
  error AlreadyInitialized();
  error OnlyCoreEnvoker();
  error UserNotMaintainer();
  error QuestClosed();
  error QuestDoesntExist();
  error InsufficientBalance();
  error PlayerNotEligible();
  error MaxPlayerCountReached();
  error MilestoneInvalid();
  error CurrencyNotWhitelisted();
  error InvalidRewardAmount();
}

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":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"OnlyCoreEnvoker","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newEnvoker","type":"address"}],"name":"CoreEnvokerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"envoker","type":"address"}],"name":"EnvokerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"envoker","type":"address"}],"name":"EnvokerRemoved","type":"event"},{"inputs":[{"internalType":"address","name":"_envoker","type":"address"}],"name":"addEnvoker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newEnvoker","type":"address"}],"name":"changeCoreEnvoker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getKinoraEscrow","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKinoraMetrics","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKinoraNFTCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKinoraQuestData","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_coreEnvokerAddress","type":"address"},{"internalType":"address","name":"_kinoraOpenActionAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isCoreEnvoker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isEnvoker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kinoraOpenAction","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_envoker","type":"address"}],"name":"removeEnvoker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_kinoraEscrowAddress","type":"address"},{"internalType":"address","name":"_kinoraQuestDataAddress","type":"address"},{"internalType":"address","name":"_kinoraMetricsAddress","type":"address"},{"internalType":"address","name":"_kinoraNFTCreatorAddress","type":"address"}],"name":"setRelatedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506108e1806100206000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806391fbd02b1161008c578063cffde29111610066578063cffde291146101e2578063dd8465a6146101f5578063edb2cbd714610206578063efa17e821461021957600080fd5b806391fbd02b146101b657806395d89b41146101c7578063a1d2f568146101cf57600080fd5b806331238d45116100c857806331238d451461016a5780633edbd28e1461017f578063485cc9551461019057806372a862fe146101a357600080fd5b806305046778146100ef57806306fdde03146101305780630e96162414610145575b600080fd5b61011b6100fd366004610655565b6001600160a01b031660009081526008602052604090205460ff1690565b60405190151581526020015b60405180910390f35b61013861022a565b6040516101279190610677565b6006546001600160a01b03165b6040516001600160a01b039091168152602001610127565b61017d610178366004610655565b6102b8565b005b6002546001600160a01b0316610152565b61017d61019e3660046106c5565b61035c565b61017d6101b1366004610655565b61042b565b6003546001600160a01b0316610152565b6101386104ef565b600754610152906001600160a01b031681565b61017d6101f0366004610655565b6104fc565b6005546001600160a01b0316610152565b61017d6102143660046106f8565b6105be565b6004546001600160a01b0316610152565b600180546102379061074c565b80601f01602080910402602001604051908101604052809291908181526020018280546102639061074c565b80156102b05780601f10610285576101008083540402835291602001916102b0565b820191906000526020600020905b81548152906001019060200180831161029357829003601f168201915b505050505081565b6006546001600160a01b031633146102e3576040516331a2693f60e21b815260040160405180910390fd5b600680546001600160a01b03908116600090815260086020526040808220805460ff1990811690915584546001600160a01b0319169386169384179094558282528082208054909416600117909355915190917fdaeacd203bcec8d3b2e6a56d32e051cfc50eb9590aafe427cf42940532251d1391a250565b6007546001600160a01b0316156103855760405162dc149f60e41b815260040160405180910390fd5b6040805180820190915260038152624b414360e81b60208201526000906103ac90826107eb565b5060408051808201909152601381527212da5b9bdc985058d8d95cdcd0dbdb9d1c9bdb606a1b60208201526001906103e490826107eb565b50600780546001600160a01b039283166001600160a01b03199182161790915591166000818152600860205260409020805460ff1916600117905560068054909216179055565b6006546001600160a01b03163314610456576040516331a2693f60e21b815260040160405180910390fd5b6001600160a01b03811633148061048557506001600160a01b03811660009081526008602052604090205460ff165b156104a35760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038116600081815260086020526040808220805460ff19166001179055517f704a4e56447ac6f7cc6a5d828a02acd490faa77d2cf0a2df715785d9335143f99190a250565b600080546102379061074c565b6006546001600160a01b03163314610527576040516331a2693f60e21b815260040160405180910390fd5b6001600160a01b03811633148061055757506001600160a01b03811660009081526008602052604090205460ff16155b156105755760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038116600081815260086020526040808220805460ff19169055517f98992a5616170aac767769bf44f381e51162b18adb250d1eebb68c1ee2f185ef9190a250565b6007546001600160a01b031633146105e95760405163e6c4247b60e01b815260040160405180910390fd5b600280546001600160a01b039586166001600160a01b0319918216179091556003805494861694821694909417909355600480549285169284169290921790915560058054919093169116179055565b80356001600160a01b038116811461065057600080fd5b919050565b60006020828403121561066757600080fd5b61067082610639565b9392505050565b600060208083528351808285015260005b818110156106a457858101830151858201604001528201610688565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156106d857600080fd5b6106e183610639565b91506106ef60208401610639565b90509250929050565b6000806000806080858703121561070e57600080fd5b61071785610639565b935061072560208601610639565b925061073360408601610639565b915061074160608601610639565b905092959194509250565b600181811c9082168061076057607f821691505b60208210810361078057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b601f8211156107e657600081815260208120601f850160051c810160208610156107c35750805b601f850160051c820191505b818110156107e2578281556001016107cf565b5050505b505050565b815167ffffffffffffffff81111561080557610805610786565b61081981610813845461074c565b8461079c565b602080601f83116001811461084e57600084156108365750858301515b600019600386901b1c1916600185901b1785556107e2565b600085815260208120601f198616915b8281101561087d5788860151825594840194600190910190840161085e565b508582101561089b5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea26469706673582212206ea45c1fc1f1bdb1ae76b17df32dc41b8606679658b1dceec33442774172001f64736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806391fbd02b1161008c578063cffde29111610066578063cffde291146101e2578063dd8465a6146101f5578063edb2cbd714610206578063efa17e821461021957600080fd5b806391fbd02b146101b657806395d89b41146101c7578063a1d2f568146101cf57600080fd5b806331238d45116100c857806331238d451461016a5780633edbd28e1461017f578063485cc9551461019057806372a862fe146101a357600080fd5b806305046778146100ef57806306fdde03146101305780630e96162414610145575b600080fd5b61011b6100fd366004610655565b6001600160a01b031660009081526008602052604090205460ff1690565b60405190151581526020015b60405180910390f35b61013861022a565b6040516101279190610677565b6006546001600160a01b03165b6040516001600160a01b039091168152602001610127565b61017d610178366004610655565b6102b8565b005b6002546001600160a01b0316610152565b61017d61019e3660046106c5565b61035c565b61017d6101b1366004610655565b61042b565b6003546001600160a01b0316610152565b6101386104ef565b600754610152906001600160a01b031681565b61017d6101f0366004610655565b6104fc565b6005546001600160a01b0316610152565b61017d6102143660046106f8565b6105be565b6004546001600160a01b0316610152565b600180546102379061074c565b80601f01602080910402602001604051908101604052809291908181526020018280546102639061074c565b80156102b05780601f10610285576101008083540402835291602001916102b0565b820191906000526020600020905b81548152906001019060200180831161029357829003601f168201915b505050505081565b6006546001600160a01b031633146102e3576040516331a2693f60e21b815260040160405180910390fd5b600680546001600160a01b03908116600090815260086020526040808220805460ff1990811690915584546001600160a01b0319169386169384179094558282528082208054909416600117909355915190917fdaeacd203bcec8d3b2e6a56d32e051cfc50eb9590aafe427cf42940532251d1391a250565b6007546001600160a01b0316156103855760405162dc149f60e41b815260040160405180910390fd5b6040805180820190915260038152624b414360e81b60208201526000906103ac90826107eb565b5060408051808201909152601381527212da5b9bdc985058d8d95cdcd0dbdb9d1c9bdb606a1b60208201526001906103e490826107eb565b50600780546001600160a01b039283166001600160a01b03199182161790915591166000818152600860205260409020805460ff1916600117905560068054909216179055565b6006546001600160a01b03163314610456576040516331a2693f60e21b815260040160405180910390fd5b6001600160a01b03811633148061048557506001600160a01b03811660009081526008602052604090205460ff165b156104a35760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038116600081815260086020526040808220805460ff19166001179055517f704a4e56447ac6f7cc6a5d828a02acd490faa77d2cf0a2df715785d9335143f99190a250565b600080546102379061074c565b6006546001600160a01b03163314610527576040516331a2693f60e21b815260040160405180910390fd5b6001600160a01b03811633148061055757506001600160a01b03811660009081526008602052604090205460ff16155b156105755760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038116600081815260086020526040808220805460ff19169055517f98992a5616170aac767769bf44f381e51162b18adb250d1eebb68c1ee2f185ef9190a250565b6007546001600160a01b031633146105e95760405163e6c4247b60e01b815260040160405180910390fd5b600280546001600160a01b039586166001600160a01b0319918216179091556003805494861694821694909417909355600480549285169284169290921790915560058054919093169116179055565b80356001600160a01b038116811461065057600080fd5b919050565b60006020828403121561066757600080fd5b61067082610639565b9392505050565b600060208083528351808285015260005b818110156106a457858101830151858201604001528201610688565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156106d857600080fd5b6106e183610639565b91506106ef60208401610639565b90509250929050565b6000806000806080858703121561070e57600080fd5b61071785610639565b935061072560208601610639565b925061073360408601610639565b915061074160608601610639565b905092959194509250565b600181811c9082168061076057607f821691505b60208210810361078057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b601f8211156107e657600081815260208120601f850160051c810160208610156107c35750805b601f850160051c820191505b818110156107e2578281556001016107cf565b5050505b505050565b815167ffffffffffffffff81111561080557610805610786565b61081981610813845461074c565b8461079c565b602080601f83116001811461084e57600084156108365750858301515b600019600386901b1c1916600185901b1785556107e2565b600085815260208120601f198616915b8281101561087d5788860151825594840194600190910190840161085e565b508582101561089b5787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fea26469706673582212206ea45c1fc1f1bdb1ae76b17df32dc41b8606679658b1dceec33442774172001f64736f6c63430008130033

Block Transaction 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

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.