ETH Price: $2,487.07 (-3.31%)

Contract

0xD0c36e77c823595Edd96CF9607d07c98d7703e50
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim178181802023-08-01 5:52:11459 days ago1690869131IN
0xD0c36e77...8d7703e50
0 ETH0.0022255518.52747933
Claim170357412023-04-13 1:53:47569 days ago1681350827IN
0xD0c36e77...8d7703e50
0 ETH0.0037429631.16590559
Claim167038972023-02-25 7:43:35616 days ago1677311015IN
0xD0c36e77...8d7703e50
0 ETH0.0028273823.54229619
Claim164748722023-01-24 6:26:47648 days ago1674541607IN
0xD0c36e77...8d7703e50
0 ETH0.0018158715.11690835
Claim164707462023-01-23 16:37:35648 days ago1674491855IN
0xD0c36e77...8d7703e50
0 ETH0.0061507351.20916416
Claim164391752023-01-19 6:50:35653 days ago1674111035IN
0xD0c36e77...8d7703e50
0 ETH0.0018657815.5355126
Claim164391702023-01-19 6:49:35653 days ago1674110975IN
0xD0c36e77...8d7703e50
0 ETH0.0019747616.43962464
Claim164391682023-01-19 6:49:11653 days ago1674110951IN
0xD0c36e77...8d7703e50
0 ETH0.0020571617.12908216
Claim164391552023-01-19 6:46:35653 days ago1674110795IN
0xD0c36e77...8d7703e50
0 ETH0.0020844917.35663323
Claim164391422023-01-19 6:43:59653 days ago1674110639IN
0xD0c36e77...8d7703e50
0 ETH0.0019314216.08206183
Claim159577682022-11-13 1:17:59720 days ago1668302279IN
0xD0c36e77...8d7703e50
0 ETH0.001781714.83842694
Claim159577622022-11-13 1:16:47720 days ago1668302207IN
0xD0c36e77...8d7703e50
0 ETH0.0022437718.68282911
Claim159577572022-11-13 1:15:47720 days ago1668302147IN
0xD0c36e77...8d7703e50
0 ETH0.0016794613.98408906
Claim159577532022-11-13 1:14:59720 days ago1668302099IN
0xD0c36e77...8d7703e50
0 ETH0.0016261513.54019388
Claim159577492022-11-13 1:14:11720 days ago1668302051IN
0xD0c36e77...8d7703e50
0 ETH0.0015324812.76030943
Claim159577392022-11-13 1:12:11720 days ago1668301931IN
0xD0c36e77...8d7703e50
0 ETH0.0016933514.10122522
Claim159577332022-11-13 1:10:59720 days ago1668301859IN
0xD0c36e77...8d7703e50
0 ETH0.0016131713.43480441
Claim159577282022-11-13 1:09:59720 days ago1668301799IN
0xD0c36e77...8d7703e50
0 ETH0.0016953214.11896873
Claim159574002022-11-13 0:04:11720 days ago1668297851IN
0xD0c36e77...8d7703e50
0 ETH0.0015745113.11021942
Claim159573962022-11-13 0:03:23720 days ago1668297803IN
0xD0c36e77...8d7703e50
0 ETH0.0015036412.52017455
Claim159573912022-11-13 0:02:23720 days ago1668297743IN
0xD0c36e77...8d7703e50
0 ETH0.0014908912.41151961
Claim159573492022-11-12 23:53:59720 days ago1668297239IN
0xD0c36e77...8d7703e50
0 ETH0.0015599312.98755827
Claim159573462022-11-12 23:53:23720 days ago1668297203IN
0xD0c36e77...8d7703e50
0 ETH0.0015469412.87814059
Claim159573322022-11-12 23:50:35720 days ago1668297035IN
0xD0c36e77...8d7703e50
0 ETH0.0015700913.07212861
Claim159573272022-11-12 23:49:35720 days ago1668296975IN
0xD0c36e77...8d7703e50
0 ETH0.0015358812.78607371
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoMonksBridge

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 10 : CryptoMonksBridge.sol
//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.4;

interface IMigration  {
    function mintMachine(address _owner, uint256 _tokenId)  external returns (uint256);
    function exists(uint256 _tokenId) external view returns (bool);
}

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


/// @title Opensea Migration Bridge
/// @author hwonder | puzlworld
/// @notice Allows migration from opensea ERC-1155 shared contract to own ERC-1155 contract using ERC1155Holder because it does not inherit AccessControl
contract CryptoMonksBridge is ERC1155Holder, Ownable, ReentrancyGuard {
    /**
    * @dev Shared 1155 Contract
    **/
    address public Shared_Contract;

    /**
    * @dev Migration 721 Contract
    **/
    address public Migrate_Contract;

    /**
    * @dev Security to prevent resizing collection
    **/
    uint8 public lockedSeedEncodings = 0;
   
    /**
     * @dev total bridged NFTs
     */
    uint32 public totalMigrated;

    /**
     * @dev keeps all the ids that are sent, claimed and the owners of them
     */
    mapping(uint256 => address) public idsAndSenders;
    mapping(address => uint256[]) public sendersAndIds;
    mapping(uint256 => address) public migrated;

    /**
    * @dev Opensea Encoding Map manging converted OS hash to standard tokenId
      seed is used to catch errors in IDs and present in human readable format
      0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000000FFFFFFFFFFF
        |------------- MAKER ADDRESS ----------|--- NFT ID --|-- AID --|
    **/

    constructor() {}


    /**
    * @dev Seed (FROM Contract, TO contract) Allow this to be one time call for security purposes
    **/
    function seed(address[] calldata _contracts) external onlyOwner {
        Migrate_Contract = _contracts[1];
        Shared_Contract = _contracts[0];
        lockedSeedEncodings = 1;
    }

    /**
     * @dev get the ids already transferred by a collector
     */
    function getTransferredByCollector(address _collector) external view returns (uint256[] memory) {
        require(_collector != address(0), "_collector is address 0");
        return sendersAndIds[_collector];
    }

    /**
     * @dev keep inventory of received 1155s and claims
     *  sender can not be address(0) and encoded tokenId needs to be allowed
     */
    function triggerReceived1155(address _sender, uint256 _tokenId) internal {
        require(_sender != address(0), "Update from address 0");
        idsAndSenders[_tokenId] = _sender;
        sendersAndIds[_sender].push(_tokenId);
    }

    event ReceivedFromOS(address indexed _sender, address indexed _receiver, uint256 indexed _tokenId, uint256 _amount);
    event Minted721(address indexed _sender, uint256 indexed _tokenId); 

    /**
     * @dev triggered when 1155 of opensea shared collection token is received 
     */
    function onERC1155Received(
        address _sender,
        address _receiver,
        uint256 _tokenId,
        uint256 _amount,
        bytes memory _data
    ) public override nonReentrant returns (bytes4) {
        require(msg.sender == address(Shared_Contract), "Forbidden T");
        triggerReceived1155(_sender, _tokenId);
        emit ReceivedFromOS(_sender, _receiver, _tokenId, _amount);
        return super.onERC1155Received(_sender, _receiver, _tokenId, _amount, _data);
    }

    /***********External**************/
    /**
     * @dev claim using hash if signed by owner
     */
    function claim(
        bytes32 _hashedMessage, uint8 _v, bytes32 _r, bytes32 _s,
        uint256 _oldId, uint256 hashmq
    ) external {
        require(idsAndSenders[hashmq] == msg.sender, "Not owner");
        require(migrated[_oldId] == address(0), "Migrated");
        bytes memory prefix = "\x19Ethereum Signed Message:\n32";
        bytes32 prefixedHashMessage = keccak256(abi.encodePacked(prefix, _hashedMessage));
        address signer = ecrecover(prefixedHashMessage, _v, _r, _s);
        address admin = owner();
        require(signer == admin, "Invalid");
        totalMigrated++;
        migrated[_oldId] = msg.sender;
        mintClaim(msg.sender, _oldId);
    }

    function mintClaim(address _sender, uint256 _tokenId) internal returns (bool) {
        IMigration(Migrate_Contract).mintMachine(_sender, _tokenId);
        emit Minted721(_sender, _tokenId);
        return true;
    }


}

File 2 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 3 of 10 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 4 of 10 : Context.sol
// SPDX-License-Identifier: MIT

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 5 of 10 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 6 of 10 : ERC1155Holder.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 7 of 10 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 10 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 9 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 10 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Minted721","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"address","name":"_receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ReceivedFromOS","type":"event"},{"inputs":[],"name":"Migrate_Contract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Shared_Contract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hashedMessage","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"},{"internalType":"uint256","name":"_oldId","type":"uint256"},{"internalType":"uint256","name":"hashmq","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collector","type":"address"}],"name":"getTransferredByCollector","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"idsAndSenders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedSeedEncodings","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"migrated","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_contracts","type":"address[]"}],"name":"seed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"sendersAndIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMigrated","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526003805460ff60a01b1916905534801561001d57600080fd5b5061002733610030565b60018055610080565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61111c8061008f6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063715018a611610097578063f23a6e6111610066578063f23a6e6114610299578063f2fde38b146102ac578063f8d72680146102bf578063ff0c3557146102e857600080fd5b8063715018a6146102035780638da5cb5b1461020b57806395a0f5eb1461021c578063bc197c811461024857600080fd5b80633fda4fb5116100d35780633fda4fb5146101a757806346892a07146101ba578063492e423b146101cf578063516ec57f146101f057600080fd5b806301ffc9a7146101055780630e359f161461012d5780631501f9011461016e5780631d1f0d6d14610181575b600080fd5b610118610113366004610f94565b610308565b60405190151581526020015b60405180910390f35b61015661013b366004610fbc565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610124565b600354610156906001600160a01b031681565b60035461019590600160a01b900460ff1681565b60405160ff9091168152602001610124565b600254610156906001600160a01b031681565b6101cd6101c8366004610ed0565b610371565b005b6101e26101dd366004610ea7565b6104ae565b604051908152602001610124565b6101cd6101fe366004610f40565b6104df565b6101cd61075c565b6000546001600160a01b0316610156565b60035461023390600160a81b900463ffffffff1681565b60405163ffffffff9091168152602001610124565b610280610256366004610d9e565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b6040516001600160e01b03199091168152602001610124565b6102806102a7366004610e44565b6107c2565b6101cd6102ba366004610d7d565b6108fd565b6101566102cd366004610fbc565b6004602052600090815260409020546001600160a01b031681565b6102fb6102f6366004610d7d565b6109df565b604051610124919061102b565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061036b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000546001600160a01b031633146103d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b818160018181106103f157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906104069190610d7d565b600380546001600160a01b0319166001600160a01b0392909216919091179055818160008161044557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061045a9190610d7d565b600280546001600160a01b03929092166001600160a01b03199092169190911790555050600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b600560205281600052604060002081815481106104ca57600080fd5b90600052602060002001600091509150505481565b6000818152600460205260409020546001600160a01b031633146105455760405162461bcd60e51b815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103c7565b6000828152600660205260409020546001600160a01b0316156105aa5760405162461bcd60e51b815260206004820152600860248201527f4d6967726174656400000000000000000000000000000000000000000000000060448201526064016103c7565b60006040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152509050600081886040516020016105f9929190610fec565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015610664573d6000803e3d6000fd5b50505060206040510351905060006106846000546001600160a01b031690565b9050806001600160a01b0316826001600160a01b0316146106e75760405162461bcd60e51b815260206004820152600760248201527f496e76616c69640000000000000000000000000000000000000000000000000060448201526064016103c7565b60038054600160a81b900463ffffffff16906015610704836110a0565b825463ffffffff9182166101009390930a928302919092021990911617905550600086815260066020526040902080546001600160a01b0319163390811790915561074f9087610aa1565b5050505050505050505050565b6000546001600160a01b031633146107b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c7565b6107c06000610b81565b565b6000600260015414156108175760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c7565b60026001819055546001600160a01b031633146108765760405162461bcd60e51b815260206004820152600b60248201527f466f7262696464656e205400000000000000000000000000000000000000000060448201526064016103c7565b6108808685610bd1565b83856001600160a01b0316876001600160a01b03167f3f4eede38e30700d02330e67f8b231a342d300cf02faf190f9704ab43078a96d866040516108c691815260200190565b60405180910390a47ff23a6e6100000000000000000000000000000000000000000000000000000000600180559695505050505050565b6000546001600160a01b031633146109575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c7565b6001600160a01b0381166109d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c7565b6109dc81610b81565b50565b60606001600160a01b038216610a375760405162461bcd60e51b815260206004820152601760248201527f5f636f6c6c6563746f722069732061646472657373203000000000000000000060448201526064016103c7565b6001600160a01b03821660009081526005602090815260409182902080548351818402810184019094528084529091830182828015610a9557602002820191906000526020600020905b815481526020019060010190808311610a81575b50505050509050919050565b6003546040517f51232a510000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905260009216906351232a5190604401602060405180830381600087803b158015610b0957600080fd5b505af1158015610b1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b419190610fd4565b5060405182906001600160a01b038516907fff915c59d6b9d1c5eeb3d0a75163df9669794c791c89c8025a5e2914a75eed6a90600090a350600192915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216610c275760405162461bcd60e51b815260206004820152601560248201527f5570646174652066726f6d20616464726573732030000000000000000000000060448201526064016103c7565b600081815260046020908152604080832080546001600160a01b039096166001600160a01b03199096168617905593825260058152928120805460018101825590825292902090910155565b80356001600160a01b0381168114610c8a57600080fd5b919050565b600082601f830112610c9f578081fd5b8135602067ffffffffffffffff821115610cbb57610cbb6110d0565b8160051b610cca82820161106f565b838152828101908684018388018501891015610ce4578687fd5b8693505b85841015610d06578035835260019390930192918401918401610ce8565b50979650505050505050565b600082601f830112610d22578081fd5b813567ffffffffffffffff811115610d3c57610d3c6110d0565b610d4f601f8201601f191660200161106f565b818152846020838601011115610d63578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215610d8e578081fd5b610d9782610c73565b9392505050565b600080600080600060a08688031215610db5578081fd5b610dbe86610c73565b9450610dcc60208701610c73565b9350604086013567ffffffffffffffff80821115610de8578283fd5b610df489838a01610c8f565b94506060880135915080821115610e09578283fd5b610e1589838a01610c8f565b93506080880135915080821115610e2a578283fd5b50610e3788828901610d12565b9150509295509295909350565b600080600080600060a08688031215610e5b578081fd5b610e6486610c73565b9450610e7260208701610c73565b93506040860135925060608601359150608086013567ffffffffffffffff811115610e9b578182fd5b610e3788828901610d12565b60008060408385031215610eb9578182fd5b610ec283610c73565b946020939093013593505050565b60008060208385031215610ee2578182fd5b823567ffffffffffffffff80821115610ef9578384fd5b818501915085601f830112610f0c578384fd5b813581811115610f1a578485fd5b8660208260051b8501011115610f2e578485fd5b60209290920196919550909350505050565b60008060008060008060c08789031215610f58578081fd5b86359550602087013560ff81168114610f6f578182fd5b95989597505050506040840135936060810135936080820135935060a0909101359150565b600060208284031215610fa5578081fd5b81356001600160e01b031981168114610d97578182fd5b600060208284031215610fcd578081fd5b5035919050565b600060208284031215610fe5578081fd5b5051919050565b60008351815b8181101561100c5760208187018101518583015201610ff2565b8181111561101a5782828501525b509190910191825250602001919050565b6020808252825182820181905260009190848201906040850190845b8181101561106357835183529284019291840191600101611047565b50909695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611098576110986110d0565b604052919050565b600063ffffffff808316818114156110c657634e487b7160e01b83526011600452602483fd5b6001019392505050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212202f3427ba2673b99b06c01f15525ffbb9b9ef0816190a7f1aef5abf22c1c6c46464736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063715018a611610097578063f23a6e6111610066578063f23a6e6114610299578063f2fde38b146102ac578063f8d72680146102bf578063ff0c3557146102e857600080fd5b8063715018a6146102035780638da5cb5b1461020b57806395a0f5eb1461021c578063bc197c811461024857600080fd5b80633fda4fb5116100d35780633fda4fb5146101a757806346892a07146101ba578063492e423b146101cf578063516ec57f146101f057600080fd5b806301ffc9a7146101055780630e359f161461012d5780631501f9011461016e5780631d1f0d6d14610181575b600080fd5b610118610113366004610f94565b610308565b60405190151581526020015b60405180910390f35b61015661013b366004610fbc565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610124565b600354610156906001600160a01b031681565b60035461019590600160a01b900460ff1681565b60405160ff9091168152602001610124565b600254610156906001600160a01b031681565b6101cd6101c8366004610ed0565b610371565b005b6101e26101dd366004610ea7565b6104ae565b604051908152602001610124565b6101cd6101fe366004610f40565b6104df565b6101cd61075c565b6000546001600160a01b0316610156565b60035461023390600160a81b900463ffffffff1681565b60405163ffffffff9091168152602001610124565b610280610256366004610d9e565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b6040516001600160e01b03199091168152602001610124565b6102806102a7366004610e44565b6107c2565b6101cd6102ba366004610d7d565b6108fd565b6101566102cd366004610fbc565b6004602052600090815260409020546001600160a01b031681565b6102fb6102f6366004610d7d565b6109df565b604051610124919061102b565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061036b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000546001600160a01b031633146103d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b818160018181106103f157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906104069190610d7d565b600380546001600160a01b0319166001600160a01b0392909216919091179055818160008161044557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061045a9190610d7d565b600280546001600160a01b03929092166001600160a01b03199092169190911790555050600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b600560205281600052604060002081815481106104ca57600080fd5b90600052602060002001600091509150505481565b6000818152600460205260409020546001600160a01b031633146105455760405162461bcd60e51b815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103c7565b6000828152600660205260409020546001600160a01b0316156105aa5760405162461bcd60e51b815260206004820152600860248201527f4d6967726174656400000000000000000000000000000000000000000000000060448201526064016103c7565b60006040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152509050600081886040516020016105f9929190610fec565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015610664573d6000803e3d6000fd5b50505060206040510351905060006106846000546001600160a01b031690565b9050806001600160a01b0316826001600160a01b0316146106e75760405162461bcd60e51b815260206004820152600760248201527f496e76616c69640000000000000000000000000000000000000000000000000060448201526064016103c7565b60038054600160a81b900463ffffffff16906015610704836110a0565b825463ffffffff9182166101009390930a928302919092021990911617905550600086815260066020526040902080546001600160a01b0319163390811790915561074f9087610aa1565b5050505050505050505050565b6000546001600160a01b031633146107b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c7565b6107c06000610b81565b565b6000600260015414156108175760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c7565b60026001819055546001600160a01b031633146108765760405162461bcd60e51b815260206004820152600b60248201527f466f7262696464656e205400000000000000000000000000000000000000000060448201526064016103c7565b6108808685610bd1565b83856001600160a01b0316876001600160a01b03167f3f4eede38e30700d02330e67f8b231a342d300cf02faf190f9704ab43078a96d866040516108c691815260200190565b60405180910390a47ff23a6e6100000000000000000000000000000000000000000000000000000000600180559695505050505050565b6000546001600160a01b031633146109575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c7565b6001600160a01b0381166109d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c7565b6109dc81610b81565b50565b60606001600160a01b038216610a375760405162461bcd60e51b815260206004820152601760248201527f5f636f6c6c6563746f722069732061646472657373203000000000000000000060448201526064016103c7565b6001600160a01b03821660009081526005602090815260409182902080548351818402810184019094528084529091830182828015610a9557602002820191906000526020600020905b815481526020019060010190808311610a81575b50505050509050919050565b6003546040517f51232a510000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905260009216906351232a5190604401602060405180830381600087803b158015610b0957600080fd5b505af1158015610b1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b419190610fd4565b5060405182906001600160a01b038516907fff915c59d6b9d1c5eeb3d0a75163df9669794c791c89c8025a5e2914a75eed6a90600090a350600192915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216610c275760405162461bcd60e51b815260206004820152601560248201527f5570646174652066726f6d20616464726573732030000000000000000000000060448201526064016103c7565b600081815260046020908152604080832080546001600160a01b039096166001600160a01b03199096168617905593825260058152928120805460018101825590825292902090910155565b80356001600160a01b0381168114610c8a57600080fd5b919050565b600082601f830112610c9f578081fd5b8135602067ffffffffffffffff821115610cbb57610cbb6110d0565b8160051b610cca82820161106f565b838152828101908684018388018501891015610ce4578687fd5b8693505b85841015610d06578035835260019390930192918401918401610ce8565b50979650505050505050565b600082601f830112610d22578081fd5b813567ffffffffffffffff811115610d3c57610d3c6110d0565b610d4f601f8201601f191660200161106f565b818152846020838601011115610d63578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215610d8e578081fd5b610d9782610c73565b9392505050565b600080600080600060a08688031215610db5578081fd5b610dbe86610c73565b9450610dcc60208701610c73565b9350604086013567ffffffffffffffff80821115610de8578283fd5b610df489838a01610c8f565b94506060880135915080821115610e09578283fd5b610e1589838a01610c8f565b93506080880135915080821115610e2a578283fd5b50610e3788828901610d12565b9150509295509295909350565b600080600080600060a08688031215610e5b578081fd5b610e6486610c73565b9450610e7260208701610c73565b93506040860135925060608601359150608086013567ffffffffffffffff811115610e9b578182fd5b610e3788828901610d12565b60008060408385031215610eb9578182fd5b610ec283610c73565b946020939093013593505050565b60008060208385031215610ee2578182fd5b823567ffffffffffffffff80821115610ef9578384fd5b818501915085601f830112610f0c578384fd5b813581811115610f1a578485fd5b8660208260051b8501011115610f2e578485fd5b60209290920196919550909350505050565b60008060008060008060c08789031215610f58578081fd5b86359550602087013560ff81168114610f6f578182fd5b95989597505050506040840135936060810135936080820135935060a0909101359150565b600060208284031215610fa5578081fd5b81356001600160e01b031981168114610d97578182fd5b600060208284031215610fcd578081fd5b5035919050565b600060208284031215610fe5578081fd5b5051919050565b60008351815b8181101561100c5760208187018101518583015201610ff2565b8181111561101a5782828501525b509190910191825250602001919050565b6020808252825182820181905260009190848201906040850190845b8181101561106357835183529284019291840191600101611047565b50909695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611098576110986110d0565b604052919050565b600063ffffffff808316818114156110c657634e487b7160e01b83526011600452602483fd5b6001019392505050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212202f3427ba2673b99b06c01f15525ffbb9b9ef0816190a7f1aef5abf22c1c6c46464736f6c63430008040033

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  ]

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.