FTM Testnet

Contract

0x99a482fbaA433FA068Ac36aC8f7F472805de0908

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Create106110412022-09-15 18:41:06559 days ago1663267266IN
0x99a482fb...805de0908
0 FTM0.001700531.025439
0x60806040106097972022-09-15 17:10:08560 days ago1663261808IN
 Contract Creation
0 FTM0.005025742.5

Latest 2 internal transactions

Parent Txn Hash Block From To Value
106110412022-09-15 18:41:06559 days ago1663267266
0x99a482fb...805de0908
 Contract Creation0 FTM
106097972022-09-15 17:10:08560 days ago1663261808  Contract Creation0 FTM
Loading...
Loading

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

Contract Name:
TradableCollectionFactory

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : TradableCollectionFactory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

import "./TradableCollection.sol";


contract TradableCollectionFactory {

    event Created(address creator, address collection, uint uuid);

    function create(
        string memory name,
        string memory symbol,
        uint howManyTokens,
        uint supplyPerToken,
        string memory baseURI,
        uint24 royaltiesBasispoints,
        uint uuid
    ) public returns (address) {
        TradableCollection instance = new TradableCollection(
            name,
            symbol,
            howManyTokens,
            supplyPerToken,
            baseURI,
            msg.sender,
            royaltiesBasispoints
        );
        emit Created(msg.sender, address(instance), uuid);
        return address(instance);
    }
}

File 2 of 15 : TradableCollection.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

import "../utils/HasAuthorization.sol";
import "./ERC1155/extensions/ERC1155PreMintedCollection.sol";
import "./ERC2981/ERC2981.sol";


contract TradableCollection is ERC1155PreMintedCollection, ERC2981, HasAuthorization {

    event BaseUriUpdate(string uri);
    event RoyaltyInfoUpdate(address recipient, uint24 amount);

    constructor(
        string memory name,
        string memory symbol,
        uint howManyTokens,
        uint supplyPerToken,
        string memory baseURI,
        address royaltiesRecipient,
        uint24 royaltiesBasispoints
    )
        ERC1155PreMintedCollection(name, symbol, howManyTokens, supplyPerToken, baseURI)
        ERC2981(royaltiesRecipient, royaltiesBasispoints) {
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155PreMintedCollection, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function transferRoyaltiesRecipient(address recipient) only(royalties.recipient) external {
        setRoyalties(recipient, royalties.amount);
        emit RoyaltyInfoUpdate(recipient, royalties.amount);
    }

    function reduceRoyalties(uint24 basispoints) only(royalties.recipient) external {
        require(basispoints < royalties.amount, "ERC2981: reduced royalty basispoints must be smaller");
        setRoyalties(royalties.recipient, basispoints);
        emit RoyaltyInfoUpdate(royalties.recipient, basispoints);
    }

    function updateBaseURI(string memory _baseURI) only(royalties.recipient) external {
        baseURI = _baseURI;
        emit BaseUriUpdate(_baseURI);
    }
}

File 3 of 15 : HasAuthorization.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;


abstract contract HasAuthorization {

    /// sender is not authorized for this action
    error Unauthorized();

    modifier only(address authorized) { if (msg.sender != authorized) revert Unauthorized(); _; }
}

File 4 of 15 : ERC1155PreMintedCollection.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "../ERC1155.sol";
import "../../../utils/structs/Bits.sol";


/**
 * @dev an ERC1155 that has a fixed supply for all its tokens.
 * it is created with an implicit finite set of 256 tokens, as the token id range is [1-256].
 * minting happens implicitly when only a portion of fixed supply is transferred.
 */
contract ERC1155PreMintedCollection is ERC1155, IERC1155MetadataURI {
    using Address for address payable;
    using Address for address;
    using Bits for Bits.Bitmap;

    address public creator;
    string public name;
    string public symbol;
    string public baseURI; // used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    uint public howManyTokens;
    uint public supplyPerToken;
    Bits.Bitmap private notOwnedByCreator; // in the beginning, creator owns it all (using reverse logic: 0 indicates ownership)

    constructor(
        string memory _name,
        string memory _symbol,
        uint _howManyTokens,
        uint _supplyPerToken,
        string memory _baseURI
    ) {
        creator = tx.origin;
        name = _name;
        symbol = _symbol;
        baseURI = _baseURI;
        supplyPerToken = _supplyPerToken;
        howManyTokens = _howManyTokens;
    }

    function isOwnedByCreator(uint id) public view returns (bool) { return !notOwnedByCreator.get(id); }

    /// @dev for tracing
    function creatorOwnershipBitMap() external view returns (uint[] memory) {
        return notOwnedByCreator.toArray(howManyTokens);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC1155) returns (bool) {
        return
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function exists(uint id) public view virtual returns (bool) { return 1 <= id && id <= howManyTokens; }

    function totalSupply(uint id) public view virtual returns (uint) { return exists(id) ? supplyPerToken : 0; }

    /**
     * This implementation relies on the token type ID substitution mechanism.
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the actual token type ID.
     */
    function uri(uint tokenId) public view virtual override returns (string memory) {
        require(exists(tokenId), "IERC1155MetadataURI: uri query for nonexistent token");
        return baseURI;
    }

    function balanceOf(address account, uint id) public view override(IERC1155, ERC1155) virtual returns (uint) {
        uint balance = super.balanceOf(account, id);
        return balance > 0 ?
            balance :
            account == creator && isOwnedByCreator(id) ?
                supplyPerToken :
                0;
    }

    function _safeTransferFrom(address from, address to, uint id, uint amount, bytes memory data) internal virtual override {
        if (from == creator && isOwnedByCreator(id)) {
            notOwnedByCreator.set(id);
            balances[id][creator] += supplyPerToken;
        }
        super._safeTransferFrom(from, to, id, amount, data);
    }
}

File 5 of 15 : ERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./IERC2981.sol";

/// @dev a contract adding ERC2981 support to ERC721 and ERC1155
contract ERC2981 is ERC165, IERC2981 {

    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    RoyaltyInfo public royalties;

    constructor(address recipient, uint24 basispoints) {
        setRoyalties(recipient, basispoints);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    function setRoyalties(address recipient, uint24 basispoints) internal {
        require(basispoints <= 10000, "ERC2981: royalty basispoints too high");
        royalties.recipient = recipient;
        royalties.amount = basispoints;
    }

    function royaltyInfo(uint, uint salePrice) external view override returns (address receiver, uint royaltyAmount) {
        receiver = royalties.recipient;
        royaltyAmount = (salePrice * royalties.amount) / 10000;
    }
}

File 6 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 7 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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 8 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";


/**
 * @dev Implementation of the basic standard multi-token.
 * see https://eips.ethereum.org/EIPS/eip-1155
 * based on https://docs.openzeppelin.com/contracts/4.x/api/token/erc1155#ERC1155
 */
contract ERC1155 is ERC165, IERC1155, ReentrancyGuard {
    using Address for address;

    /// cannot use the zero address
    error InvalidAddress();

    /// owner `owner` does not have sufficient amount of token `id`; requested `requested`, but has only `owned` is owned
    error InsufficientTokens(uint id, address owner, uint owned, uint requested);

    /// sender `operator` is not owner nor approved to transfer
    error UnauthorizedTransfer(address operator);

    /// receiver `receiver` has rejected token(s) transfer`
    error ERC1155ReceiverRejectedTokens(address receiver);

    mapping(uint => mapping(address => uint)) internal balances; // tokenId => account => balance
    mapping(address => mapping(address => bool)) internal operatorApprovals; // account => operator => approval

    modifier valid(address account) { if (account == address(0)) revert InvalidAddress(); _; }

    modifier canTransfer(address from) { if (from != msg.sender && !isApprovedForAll(from, msg.sender)) revert UnauthorizedTransfer(msg.sender); _; }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function balanceOf(address account, uint id) public view virtual override valid(account) returns (uint) {
        return balances[id][account];
    }

    function balanceOfBatch(address[] memory accounts, uint[] memory ids) external view virtual override returns (uint[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");
        uint[] memory batchBalances = new uint[](accounts.length);
        for (uint i = 0; i < accounts.length; ++i) batchBalances[i] = balanceOf(accounts[i], ids[i]);
        return batchBalances;
    }

    function setApprovalForAll(address operator, bool approved) external {
        _setApprovalForAll(msg.sender, operator, approved);
    }

    /// @dev Approve `operator` to operate on all of `owner` tokens
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

    /**
     * @dev transfer `amount` tokens of token type `id` from `from` to `to`.
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received}
     *   and return the acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint id, uint amount, bytes memory data) external virtual override nonReentrant canTransfer(from) valid(to) {
        _safeTransferFrom(from, to, id, amount, data);
        emit TransferSingle(msg.sender, from, to, id, amount);
        _doSafeTransferAcceptanceCheck(msg.sender, from, to, id, amount, data);
    }

    function _safeTransferFrom(address from, address to, uint id, uint amount, bytes memory) internal virtual {
        uint balance = balances[id][from];
        if (balance < amount) revert InsufficientTokens(id, from, balance, amount);
        balances[id][from] = balance - amount;
        balances[id][to] += amount;
    }

    function safeBatchTransferFrom(address from, address to, uint[] memory ids, uint[] memory amounts, bytes memory data) external virtual override nonReentrant canTransfer(from) valid(to) {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        for (uint i = 0; i < ids.length; ++i) _safeTransferFrom(from, to, ids[i], amounts[i], data);
        emit TransferBatch(msg.sender, from, to, ids, amounts);
        _doSafeBatchTransferAcceptanceCheck(msg.sender, from, to, ids, amounts, data);
    }

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint id,
        uint amount,
        bytes memory data
    ) internal {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) revert ERC1155ReceiverRejectedTokens(to);
            } catch Error(string memory reason) {
                revert(reason);
            } // otherwise do nothing
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint[] memory ids,
        uint[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) revert ERC1155ReceiverRejectedTokens(to);
            } catch Error(string memory reason) {
                revert(reason);
            } // otherwise do nothing
        }
    }
}

File 9 of 15 : Bits.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;


/**
 * @dev Library for managing uint to bool mapping in a compact and efficient way, providing the keys are sequential.
 * based on https://docs.openzeppelin.com/contracts/4.x/api/utils#BitMaps
 */
library Bits {

    struct Bitmap {
        mapping(uint => uint) data;
    }

    uint constant internal ONES = ~uint(0);

    function get(Bitmap storage self, uint index) internal view returns (bool) {
        uint bucket = index >> 8;
        uint mask = 1 << (index & 0xff);
        return self.data[bucket] & mask != 0;
    }

    function set(Bitmap storage self, uint index) internal {
        uint bucket = index >> 8;
        uint mask = 1 << (index & 0xff);
        self.data[bucket] |= mask;
    }

    function setAll(Bitmap storage self, uint size) internal {
        uint fullBuckets = size >> 8;
        if (fullBuckets > 0) for (uint i = 0; i < fullBuckets; i++) self.data[i] = ONES;
        uint remaining = size & 0xff;
        if(remaining == 0 ) return ;
        self.data[fullBuckets] = ONES >> (256 - remaining);
    }

    function unset(Bitmap storage self, uint index) internal {
        uint bucket = index >> 8;
        uint mask = 1 << (index & 0xff);
        self.data[bucket] &= ~mask;
    }

    function toggle(Bitmap storage self, uint index) internal {
        setTo(self, index, !get(self, index));
    }

    function setTo(Bitmap storage self, uint index, bool value) private {
        value ? set(self, index) : unset(self, index);
    }

    /// @dev for tracing
    function toArray(Bitmap storage self, uint size) internal view returns (uint[] memory result) {
        result = new uint[]((size >> 8) + ((size & 0xff) > 0 ? 1 : 0));
        for (uint i = 0; i < result.length; i++) result[i] = self.data[i];
    }
}

File 10 of 15 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

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 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 11 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 12 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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 13 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 15 of 15 : IERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;


///
/// @dev Interface for the NFT Royalty Standard
///
interface IERC2981 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint,uint)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty is owed and to whom.
    /// @param id - the NFT asset queried for royalty information
    /// @param salePrice - the sale price of the NFT asset specified by id
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for salePrice
    function royaltyInfo(uint id, uint salePrice) external view returns (address receiver, uint royaltyAmount);
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"uuid","type":"uint256"}],"name":"Created","type":"event"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"howManyTokens","type":"uint256"},{"internalType":"uint256","name":"supplyPerToken","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"uint24","name":"royaltiesBasispoints","type":"uint24"},{"internalType":"uint256","name":"uuid","type":"uint256"}],"name":"create","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063ecd69c6b14610030575b600080fd5b61004361003e3660046101aa565b61005f565b6040516001600160a01b03909116815260200160405180910390f35b60008088888888883389604051610075906100fa565b61008597969594939291906102b9565b604051809103906000f0801580156100a1573d6000803e3d6000fd5b50604080513381526001600160a01b03831660208201529081018590529091507f822b3073be62c5c7f143c2dcd71ee266434ee935d90a1eec3be34710ac8ec1a29060600160405180910390a198975050505050505050565b61200c8061032983390190565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261012e57600080fd5b813567ffffffffffffffff8082111561014957610149610107565b604051601f8301601f19908116603f0116810190828211818310171561017157610171610107565b8160405283815286602085880101111561018a57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060e0888a0312156101c557600080fd5b873567ffffffffffffffff808211156101dd57600080fd5b6101e98b838c0161011d565b985060208a01359150808211156101ff57600080fd5b61020b8b838c0161011d565b975060408a0135965060608a0135955060808a013591508082111561022f57600080fd5b5061023c8a828b0161011d565b93505060a088013562ffffff8116811461025557600080fd5b8092505060c0880135905092959891949750929550565b6000815180845260005b8181101561029257602081850181015186830182015201610276565b818111156102a4576000602083870101525b50601f01601f19169290920160200192915050565b60e0815260006102cc60e083018a61026c565b82810360208401526102de818a61026c565b905087604084015286606084015282810360808401526102fe818761026c565b6001600160a01b039590951660a0840152505062ffffff9190911660c0909101529594505050505056fe60806040523480156200001157600080fd5b506040516200200c3803806200200c8339810160408190526200003491620002e7565b6001600055600380546001600160a01b03191632179055865182908290899089908990899089906200006e9060049060208801906200015b565b508351620000849060059060208701906200015b565b5080516200009a9060069060208401906200015b565b505060085560075550620000b190508282620000c0565b505050505050505050620003fd565b6127108162ffffff1611156200012a5760405162461bcd60e51b815260206004820152602560248201527f455243323938313a20726f79616c7479206261736973706f696e747320746f6f604482015264040d0d2ced60db1b606482015260840160405180910390fd5b600a805462ffffff909216600160a01b026001600160b81b03199092166001600160a01b0390931692909217179055565b8280546200016990620003c0565b90600052602060002090601f0160209004810192826200018d5760008555620001d8565b82601f10620001a857805160ff1916838001178555620001d8565b82800160010185558215620001d8579182015b82811115620001d8578251825591602001919060010190620001bb565b50620001e6929150620001ea565b5090565b5b80821115620001e65760008155600101620001eb565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200022957600080fd5b81516001600160401b038082111562000246576200024662000201565b604051601f8301601f19908116603f0116810190828211818310171562000271576200027162000201565b816040528381526020925086838588010111156200028e57600080fd5b600091505b83821015620002b2578582018301518183018401529082019062000293565b83821115620002c45760008385830101525b9695505050505050565b805162ffffff81168114620002e257600080fd5b919050565b600080600080600080600060e0888a0312156200030357600080fd5b87516001600160401b03808211156200031b57600080fd5b620003298b838c0162000217565b985060208a01519150808211156200034057600080fd5b6200034e8b838c0162000217565b975060408a0151965060608a0151955060808a01519150808211156200037357600080fd5b50620003828a828b0162000217565b60a08a015190945090506001600160a01b0381168114620003a257600080fd5b9150620003b260c08901620002ce565b905092959891949750929550565b600181811c90821680620003d557607f821691505b60208210811415620003f757634e487b7160e01b600052602260045260246000fd5b50919050565b611bff806200040d6000396000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c80636c0360eb116100c3578063a22cb4651161007c578063a22cb465146102f3578063b789308414610306578063bd85b0391461030f578063e985e9c514610322578063f053dc5c14610335578063f242432a1461037957600080fd5b80636c0360eb1461028257806378dfc4e81461028a5780637dbd127e146102bc5780637f3aa0c4146102c5578063931688cb146102d857806395d89b41146102eb57600080fd5b80630e89341c116101155780630e89341c146101ef5780632a55205a146102025780632eb2c2d61461023457806343a65f85146102475780634e1273f41461025c5780634f558e791461026f57600080fd5b8062fdd58e1461015157806301ffc9a71461017757806302d05d3f1461019a57806306fdde03146101c557806308cc197c146101da575b600080fd5b61016461015f3660046113d4565b61038c565b6040519081526020015b60405180910390f35b61018a610185366004611417565b6103f6565b604051901515815260200161016e565b6003546101ad906001600160a01b031681565b6040516001600160a01b03909116815260200161016e565b6101cd610407565b60405161016e9190611481565b6101ed6101e836600461149b565b610495565b005b6101cd6101fd3660046114b6565b61052f565b6102156102103660046114cf565b61063a565b604080516001600160a01b03909316835260208301919091520161016e565b6101ed610242366004611647565b610678565b61024f61086a565b60405161016e919061172c565b61024f61026a36600461173f565b610887565b61018a61027d3660046114b6565b6109b1565b6101cd6109c8565b61018a6102983660046114b6565b600881901c600090815260096020526040902054600160ff9092169190911b161590565b61016460075481565b6101ed6102d336600461180a565b6109d5565b6101ed6102e636600461182f565b610adb565b6101cd610b49565b6101ed610301366004611878565b610b56565b61016460085481565b61016461031d3660046114b6565b610b65565b61018a6103303660046118b4565b610b83565b600a54610356906001600160a01b03811690600160a01b900462ffffff1682565b604080516001600160a01b03909316835262ffffff90911660208301520161016e565b6101ed6103873660046118de565b610bb1565b6000806103998484610cd8565b9050600081116103ec576003546001600160a01b0385811691161480156103d95750600883901c600090815260096020526040902054600160ff85161b16155b6103e45760006103ee565b6008546103ee565b805b949350505050565b600061040182610d2f565b92915050565b6004805461041490611943565b80601f016020809104026020016040519081016040528092919081815260200182805461044090611943565b801561048d5780601f106104625761010080835404028352916020019161048d565b820191906000526020600020905b81548152906001019060200180831161047057829003601f168201915b505050505081565b600a546001600160a01b03163381146104c0576040516282b42960e81b815260040160405180910390fd5b600a546104da908390600160a01b900462ffffff16610d54565b600a54604080516001600160a01b0385168152600160a01b90920462ffffff1660208301527f578e3eb2d4c9089ff58a6f307429a8aa35c32a32693f6a480b217fe7e6c8035091015b60405180910390a15050565b606061053a826109b1565b6105a85760405162461bcd60e51b815260206004820152603460248201527f49455243313135354d657461646174615552493a20757269207175657279206660448201527337b9103737b732bc34b9ba32b73a103a37b5b2b760611b60648201526084015b60405180910390fd5b600680546105b590611943565b80601f01602080910402602001604051908101604052809291908181526020018280546105e190611943565b801561062e5780601f106106035761010080835404028352916020019161062e565b820191906000526020600020905b81548152906001019060200180831161061157829003601f168201915b50505050509050919050565b600a546001600160a01b038116906000906127109061066590600160a01b900462ffffff1685611994565b61066f91906119b3565b90509250929050565b600260005414156106cb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161059f565b6002600055846001600160a01b03811633148015906106f157506106ef8133610b83565b155b1561071157604051639a2983a360e01b815233600482015260240161059f565b846001600160a01b0381166107395760405163e6c4247b60e01b815260040160405180910390fd5b835185511461079b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161059f565b60005b85518110156107f6576107e688888884815181106107be576107be6119d5565b60200260200101518885815181106107d8576107d86119d5565b602002602001015188610dea565b6107ef816119eb565b905061079e565b50856001600160a01b0316876001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8888604051610846929190611a06565b60405180910390a461085c338888888888610e95565b505060016000555050505050565b60606108826007546009610fac90919063ffffffff16565b905090565b606081518351146108ec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161059f565b6000835167ffffffffffffffff811115610908576109086114f1565b604051908082528060200260200182016040528015610931578160200160208202803683370190505b50905060005b84518110156109a95761097c858281518110610955576109556119d5565b602002602001015185838151811061096f5761096f6119d5565b602002602001015161038c565b82828151811061098e5761098e6119d5565b60209081029190910101526109a2816119eb565b9050610937565b509392505050565b600081600111158015610401575050600754101590565b6006805461041490611943565b600a546001600160a01b0316338114610a00576040516282b42960e81b815260040160405180910390fd5b600a5462ffffff600160a01b909104811690831610610a7e5760405162461bcd60e51b815260206004820152603460248201527f455243323938313a207265647563656420726f79616c7479206261736973706f60448201527334b73a399036bab9ba1031329039b6b0b63632b960611b606482015260840161059f565b600a54610a94906001600160a01b031683610d54565b600a54604080516001600160a01b03909216825262ffffff841660208301527f578e3eb2d4c9089ff58a6f307429a8aa35c32a32693f6a480b217fe7e6c803509101610523565b600a546001600160a01b0316338114610b06576040516282b42960e81b815260040160405180910390fd5b8151610b1990600690602085019061131f565b507fc35611e34b3940869a5132c8bc8ec4854192b0bfea25d0b9b38bcdeec2c09a7f826040516105239190611481565b6005805461041490611943565b610b61338383611064565b5050565b6000610b70826109b1565b610b7b576000610401565b505060085490565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b60026000541415610c045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161059f565b6002600055846001600160a01b0381163314801590610c2a5750610c288133610b83565b155b15610c4a57604051639a2983a360e01b815233600482015260240161059f565b846001600160a01b038116610c725760405163e6c4247b60e01b815260040160405180910390fd5b610c7f8787878787610dea565b60408051868152602081018690526001600160a01b0380891692908a169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461085c338888888888611145565b6000826001600160a01b038116610d025760405163e6c4247b60e01b815260040160405180910390fd5b60008381526001602090815260408083206001600160a01b038816845290915290205491505b5092915050565b60006001600160e01b0319821663152a902d60e11b148061040157506104018261120c565b6127108162ffffff161115610db95760405162461bcd60e51b815260206004820152602560248201527f455243323938313a20726f79616c7479206261736973706f696e747320746f6f604482015264040d0d2ced60db1b606482015260840161059f565b600a805462ffffff909216600160a01b026001600160b81b03199092166001600160a01b0390931692909217179055565b6003546001600160a01b038681169116148015610e205750600883901c600090815260096020526040902054600160ff85161b16155b15610e8157600883901c60009081526009602052604090208054600160ff86161b17905560085460008481526001602090815260408083206003546001600160a01b0316845290915281208054909190610e7b908490611a34565b90915550505b610e8e8585858585611231565b5050505050565b6001600160a01b0384163b15610fa45760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610ed99089908990889088908890600401611a4c565b6020604051808303816000875af1925050508015610f14575060408051601f3d908101601f19168201909252610f1191810190611aaa565b60015b610f6657610f20611ac7565b806308c379a01415610f5a5750610f35611ae3565b80610f405750610f5c565b8060405162461bcd60e51b815260040161059f9190611481565b505b3d6000803e3d6000fd5b6001600160e01b0319811663bc197c8160e01b14610fa2576040516305e02e2d60e41b81526001600160a01b038616600482015260240161059f565b505b505050505050565b606060008260ff1611610fc0576000610fc3565b60015b610fd49060ff16600884901c611a34565b67ffffffffffffffff811115610fec57610fec6114f1565b604051908082528060200260200182016040528015611015578160200160208202803683370190505b50905060005b8151811015610d28576000818152602085905260409020548251839083908110611047576110476119d5565b60209081029190910101528061105c816119eb565b91505061101b565b816001600160a01b0316836001600160a01b031614156110d85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161059f565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384163b15610fa45760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906111899089908990889088908890600401611b6d565b6020604051808303816000875af19250505080156111c4575060408051601f3d908101601f191682019092526111c191810190611aaa565b60015b6111d057610f20611ac7565b6001600160e01b0319811663f23a6e6160e01b14610fa2576040516305e02e2d60e41b81526001600160a01b038616600482015260240161059f565b60006001600160e01b031982166303a24d0760e21b14806104015750610401826112ea565b60008381526001602090815260408083206001600160a01b0389168452909152902054828110156112955760405163376c5de960e01b8152600481018590526001600160a01b0387166024820152604481018290526064810184905260840161059f565b61129f8382611bb2565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815290812080548592906112dd908490611a34565b9091555050505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061040157506301ffc9a760e01b6001600160e01b0319831614610401565b82805461132b90611943565b90600052602060002090601f01602090048101928261134d5760008555611393565b82601f1061136657805160ff1916838001178555611393565b82800160010185558215611393579182015b82811115611393578251825591602001919060010190611378565b5061139f9291506113a3565b5090565b5b8082111561139f57600081556001016113a4565b80356001600160a01b03811681146113cf57600080fd5b919050565b600080604083850312156113e757600080fd5b6113f0836113b8565b946020939093013593505050565b6001600160e01b03198116811461141457600080fd5b50565b60006020828403121561142957600080fd5b81356103ec816113fe565b6000815180845260005b8181101561145a5760208185018101518683018201520161143e565b8181111561146c576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006114946020830184611434565b9392505050565b6000602082840312156114ad57600080fd5b611494826113b8565b6000602082840312156114c857600080fd5b5035919050565b600080604083850312156114e257600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561152d5761152d6114f1565b6040525050565b600067ffffffffffffffff82111561154e5761154e6114f1565b5060051b60200190565b600082601f83011261156957600080fd5b8135602061157682611534565b6040516115838282611507565b83815260059390931b85018201928281019150868411156115a357600080fd5b8286015b848110156115be57803583529183019183016115a7565b509695505050505050565b600067ffffffffffffffff8311156115e3576115e36114f1565b6040516115fa601f8501601f191660200182611507565b80915083815284848401111561160f57600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261163857600080fd5b611494838335602085016115c9565b600080600080600060a0868803121561165f57600080fd5b611668866113b8565b9450611676602087016113b8565b9350604086013567ffffffffffffffff8082111561169357600080fd5b61169f89838a01611558565b945060608801359150808211156116b557600080fd5b6116c189838a01611558565b935060808801359150808211156116d757600080fd5b506116e488828901611627565b9150509295509295909350565b600081518084526020808501945080840160005b8381101561172157815187529582019590820190600101611705565b509495945050505050565b60208152600061149460208301846116f1565b6000806040838503121561175257600080fd5b823567ffffffffffffffff8082111561176a57600080fd5b818501915085601f83011261177e57600080fd5b8135602061178b82611534565b6040516117988282611507565b83815260059390931b85018201928281019150898411156117b857600080fd5b948201945b838610156117dd576117ce866113b8565b825294820194908201906117bd565b965050860135925050808211156117f357600080fd5b5061180085828601611558565b9150509250929050565b60006020828403121561181c57600080fd5b813562ffffff811681146103ec57600080fd5b60006020828403121561184157600080fd5b813567ffffffffffffffff81111561185857600080fd5b8201601f8101841361186957600080fd5b6103ee848235602084016115c9565b6000806040838503121561188b57600080fd5b611894836113b8565b9150602083013580151581146118a957600080fd5b809150509250929050565b600080604083850312156118c757600080fd5b6118d0836113b8565b915061066f602084016113b8565b600080600080600060a086880312156118f657600080fd5b6118ff866113b8565b945061190d602087016113b8565b93506040860135925060608601359150608086013567ffffffffffffffff81111561193757600080fd5b6116e488828901611627565b600181811c9082168061195757607f821691505b6020821081141561197857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156119ae576119ae61197e565b500290565b6000826119d057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006000198214156119ff576119ff61197e565b5060010190565b604081526000611a1960408301856116f1565b8281036020840152611a2b81856116f1565b95945050505050565b60008219821115611a4757611a4761197e565b500190565b6001600160a01b0386811682528516602082015260a060408201819052600090611a78908301866116f1565b8281036060840152611a8a81866116f1565b90508281036080840152611a9e8185611434565b98975050505050505050565b600060208284031215611abc57600080fd5b81516103ec816113fe565b600060033d1115611ae05760046000803e5060005160e01c5b90565b600060443d1015611af15790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611b2157505050505090565b8285019150815181811115611b395750505050505090565b843d8701016020828501011115611b535750505050505090565b611b6260208286010187611507565b509095945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611ba790830184611434565b979650505050505050565b600082821015611bc457611bc461197e565b50039056fea26469706673582212203d2f59f25afd1db15c13bcef1626653f41c58ff440caa363d09f23a28364f7e664736f6c634300080c0033a26469706673582212208e971b9a4ba57370aca2f4f6882585b7ddcc0e964bd8e9dd32e0a113f40d5ae464736f6c634300080c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.