Mumbai Testnet

Contract

0x3c3D901Acb5f7746dCf06B26fCe881d21970d2B6

Overview

MATIC Balance

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Deploy Instance261949892022-05-04 4:36:01748 days ago1651638961IN
0x3c3D901A...21970d2B6
0 MATIC0.002619272.91000001
Deploy Instance261949102022-05-04 4:25:35748 days ago1651638335IN
0x3c3D901A...21970d2B6
0 MATIC0.0174615919.4
Deploy Instance261947392022-05-04 4:11:13748 days ago1651637473IN
0x3c3D901A...21970d2B6
0 MATIC0.0174618219.4
Deploy Instance261889902022-05-03 18:42:51748 days ago1651603371IN
0x3c3D901A...21970d2B6
0 MATIC0.0291613118.818
Deploy Instance261887592022-05-03 18:18:18748 days ago1651601898IN
0x3c3D901A...21970d2B6
0 MATIC0.0296112318.81799999
Deploy Instance261873182022-05-03 16:06:50748 days ago1651594010IN
0x3c3D901A...21970d2B6
0 MATIC0.002092692.28168251
Deploy Instance261668282022-05-02 4:02:38750 days ago1651464158IN
0x3c3D901A...21970d2B6
0 MATIC0.0033551.94
Deploy Instance261667092022-05-02 3:51:43750 days ago1651463503IN
0x3c3D901A...21970d2B6
0 MATIC0.003354981.94
Deploy Instance261666572022-05-02 3:43:03750 days ago1651462983IN
0x3c3D901A...21970d2B6
0 MATIC0.003354981.94
Deploy Instance261616582022-05-01 18:35:15750 days ago1651430115IN
0x3c3D901A...21970d2B6
0 MATIC0.0902512219.4
Deploy Instance261611062022-05-01 17:32:55750 days ago1651426375IN
0x3c3D901A...21970d2B6
0 MATIC0.013878248.02513333
Deploy Instance261442322022-04-30 8:36:59752 days ago1651307819IN
0x3c3D901A...21970d2B6
0 MATIC0.0608410412.74263468
Deploy Instance261377962022-04-29 22:00:28752 days ago1651269628IN
0x3c3D901A...21970d2B6
0 MATIC0.0111398115.85313917
Deploy Instance261370592022-04-29 20:52:44752 days ago1651265564IN
0x3c3D901A...21970d2B6
0 MATIC0.0275714118.25345999
Deploy Instance261335242022-04-29 15:29:18752 days ago1651246158IN
0x3c3D901A...21970d2B6
0 MATIC0.0306733519.4
Deploy Instance261334712022-04-29 15:24:48752 days ago1651245888IN
0x3c3D901A...21970d2B6
0 MATIC0.01185387.76
Deploy Instance261331322022-04-29 14:52:01752 days ago1651243921IN
0x3c3D901A...21970d2B6
0 MATIC0.004263892.82270001
Deploy Instance261331082022-04-29 14:48:55752 days ago1651243735IN
0x3c3D901A...21970d2B6
0 MATIC0.005416993.49200001
Deploy Instance261227772022-04-28 20:38:10753 days ago1651178290IN
0x3c3D901A...21970d2B6
0 MATIC0.004395312.91
Deploy Instance261224072022-04-28 19:54:22753 days ago1651175662IN
0x3c3D901A...21970d2B6
0 MATIC0.014993469.51706519
Deploy Instance261219262022-04-28 18:59:53753 days ago1651172393IN
0x3c3D901A...21970d2B6
0 MATIC0.003689172.35225001
Deploy Instance261200292022-04-28 15:22:14753 days ago1651159334IN
0x3c3D901A...21970d2B6
0 MATIC0.004959545.36322053
Deploy Instance261099342022-04-27 20:04:10754 days ago1651089850IN
0x3c3D901A...21970d2B6
0 MATIC0.063511520.87484384
Deploy Instance261094102022-04-27 19:07:17754 days ago1651086437IN
0x3c3D901A...21970d2B6
0 MATIC0.0541537517.8883908
Deploy Instance261069462022-04-27 14:23:47754 days ago1651069427IN
0x3c3D901A...21970d2B6
0 MATIC0.006774482.214162
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To Value
261949892022-05-04 4:36:01748 days ago1651638961
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261949102022-05-04 4:25:35748 days ago1651638335
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261947392022-05-04 4:11:13748 days ago1651637473
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261889902022-05-03 18:42:51748 days ago1651603371
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261887592022-05-03 18:18:18748 days ago1651601898
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261873182022-05-03 16:06:50748 days ago1651594010
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261668282022-05-02 4:02:38750 days ago1651464158
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261667092022-05-02 3:51:43750 days ago1651463503
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261666572022-05-02 3:43:03750 days ago1651462983
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261616582022-05-01 18:35:15750 days ago1651430115
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261611062022-05-01 17:32:55750 days ago1651426375
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261442322022-04-30 8:36:59752 days ago1651307819
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261377962022-04-29 22:00:28752 days ago1651269628
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261370592022-04-29 20:52:44752 days ago1651265564
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261335242022-04-29 15:29:18752 days ago1651246158
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261334712022-04-29 15:24:48752 days ago1651245888
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261331322022-04-29 14:52:01752 days ago1651243921
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261331082022-04-29 14:48:55752 days ago1651243735
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261227772022-04-28 20:38:10753 days ago1651178290
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261224072022-04-28 19:54:22753 days ago1651175662
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261219262022-04-28 18:59:53753 days ago1651172393
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261200292022-04-28 15:22:14753 days ago1651159334
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261099342022-04-27 20:04:10754 days ago1651089850
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261094102022-04-27 19:07:17754 days ago1651086437
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
261069462022-04-27 14:23:47754 days ago1651069427
0x3c3D901A...21970d2B6
 Contract Creation0 MATIC
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ByocFactory

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 19 : ByocFactory.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

//  ==========  External imports    ==========
import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "./openzeppelin-presets/metatx/ERC2771Context.sol";

//  ==========  Internal imports    ==========
import { IByocFactory } from "./interfaces/IByocFactory.sol";
import { TWRegistry } from "./TWRegistry.sol";
import { ThirdwebContract } from "./ThirdwebContract.sol";

contract ByocFactory is IByocFactory, ERC2771Context, AccessControlEnumerable {
    /*///////////////////////////////////////////////////////////////
                            State variables
    //////////////////////////////////////////////////////////////*/

    /// @dev The main thirdweb registry.
    TWRegistry private immutable registry;

    /// @dev Whether the registry is paused.
    bool public isPaused;

    /*///////////////////////////////////////////////////////////////
                    Constructor + modifiers
    //////////////////////////////////////////////////////////////*/

    /// @dev Checks whether contract is unpaused or the caller is a contract admin.
    modifier onlyUnpausedOrAdmin() {
        require(!isPaused || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "registry paused");

        _;
    }

    constructor(address _twRegistry, address[] memory _trustedForwarders) ERC2771Context(_trustedForwarders) {
        registry = TWRegistry(_twRegistry);
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /*///////////////////////////////////////////////////////////////
                            Deploy logic
    //////////////////////////////////////////////////////////////*/

    /// @notice Deploys an instance of a published contract directly.
    function deployInstance(
        address _publisher,
        bytes memory _contractBytecode,
        bytes memory _constructorArgs,
        bytes32 _salt,
        uint256 _value,
        ThirdwebContract.ThirdwebInfo memory _thirdwebInfo
    ) external onlyUnpausedOrAdmin returns (address deployedAddress) {
        require(bytes(_thirdwebInfo.publishMetadataUri).length > 0, "No publish metadata");

        bytes memory contractBytecode = abi.encodePacked(_contractBytecode, _constructorArgs);
        bytes32 salt = keccak256(abi.encodePacked(_msgSender(), _salt, block.number));
        deployedAddress = Create2.deploy(_value, salt, contractBytecode);

        ThirdwebContract(deployedAddress).setThirdwebInfo(_thirdwebInfo);
        require(
            keccak256(bytes(ThirdwebContract(deployedAddress).getPublishMetadataUri())) ==
                keccak256(bytes(_thirdwebInfo.publishMetadataUri)),
            "Not a thirdweb contract"
        );

        registry.add(_publisher, deployedAddress);

        emit ContractDeployed(_msgSender(), _publisher, deployedAddress);
    }

    /// @notice Deploys a clone pointing to an implementation of a published contract.
    function deployInstanceProxy(
        address _publisher,
        address _implementation,
        bytes memory _initializeData,
        bytes32 _salt,
        uint256 _value,
        ThirdwebContract.ThirdwebInfo memory _thirdwebInfo
    ) external onlyUnpausedOrAdmin returns (address deployedAddress) {
        deployedAddress = Clones.cloneDeterministic(_implementation, keccak256(abi.encodePacked(_msgSender(), _salt, block.number)));

        ThirdwebContract(deployedAddress).setThirdwebInfo(_thirdwebInfo);
        require(
            keccak256(bytes(ThirdwebContract(deployedAddress).getPublishMetadataUri())) ==
                keccak256(bytes(_thirdwebInfo.publishMetadataUri)),
            "Not a thirdweb contract"
        );

        registry.add(_publisher, deployedAddress);

        if (_initializeData.length > 0) {
            // slither-disable-next-line unused-return
            Address.functionCallWithValue(deployedAddress, _initializeData, _value);
        }

        emit ContractDeployed(_msgSender(), _publisher, deployedAddress);
    }

    /*///////////////////////////////////////////////////////////////
                        Miscellaneous 
    //////////////////////////////////////////////////////////////*/

    /// @dev Lets a contract admin pause the registry.
    function setPause(bool _pause) external {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "unapproved caller");
        isPaused = _pause;
        emit Paused(_pause);
    }

    function _msgSender() internal view virtual override(Context, ERC2771Context) returns (address sender) {
        return ERC2771Context._msgSender();
    }

    function _msgData() internal view virtual override(Context, ERC2771Context) returns (bytes calldata) {
        return ERC2771Context._msgData();
    }
}

File 2 of 19 : Create2.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Create2.sol)

pragma solidity ^0.8.0;

/**
 * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
 * `CREATE2` can be used to compute in advance the address where a smart
 * contract will be deployed, which allows for interesting new mechanisms known
 * as 'counterfactual interactions'.
 *
 * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
 * information.
 */
library Create2 {
    /**
     * @dev Deploys a contract using `CREATE2`. The address where the contract
     * will be deployed can be known in advance via {computeAddress}.
     *
     * The bytecode for a contract can be obtained from Solidity with
     * `type(contractName).creationCode`.
     *
     * Requirements:
     *
     * - `bytecode` must not be empty.
     * - `salt` must have not been used for `bytecode` already.
     * - the factory must have a balance of at least `amount`.
     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
     */
    function deploy(
        uint256 amount,
        bytes32 salt,
        bytes memory bytecode
    ) internal returns (address) {
        address addr;
        require(address(this).balance >= amount, "Create2: insufficient balance");
        require(bytecode.length != 0, "Create2: bytecode length is zero");
        assembly {
            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
        }
        require(addr != address(0), "Create2: Failed on deploy");
        return addr;
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
     * `bytecodeHash` or `salt` will result in a new destination address.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
        return computeAddress(salt, bytecodeHash, address(this));
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
     */
    function computeAddress(
        bytes32 salt,
        bytes32 bytecodeHash,
        address deployer
    ) internal pure returns (address) {
        bytes32 _data = keccak256(abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash));
        return address(uint160(uint256(_data)));
    }
}

File 2 of 19 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

File 2 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 2 of 19 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 2 of 19 : ERC2771Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (metatx/ERC2771Context.sol)

pragma solidity ^0.8.11;

import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @dev Context variant with ERC2771 support.
 */
abstract contract ERC2771Context is Context {
    mapping(address => bool) private _trustedForwarder;

    constructor(address[] memory trustedForwarder) {
        for (uint256 i = 0; i < trustedForwarder.length; i++) {
            _trustedForwarder[trustedForwarder[i]] = true;
        }
    }

    function isTrustedForwarder(address forwarder) public view virtual returns (bool) {
        return _trustedForwarder[forwarder];
    }

    function _msgSender() internal view virtual override returns (address sender) {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData() internal view virtual override returns (bytes calldata) {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }
}

File 2 of 19 : IByocFactory.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

import "../ThirdwebContract.sol";

interface IByocFactory {
    /// @dev Emitted when the registry is paused.
    event Paused(bool isPaused);

    /// @dev Emitted when a contract is deployed.
    event ContractDeployed(address indexed deployer, address indexed publisher, address deployedContract);

    /**
     *  @notice Deploys an instance of a published contract directly.
     *
     *  @param publisher The address of the publisher.
     *  @param contractBytecode The bytecode of the contract to deploy.
     *  @param constructorArgs The encoded constructor args to deploy the contract with.
     *  @param salt The salt to use in the CREATE2 contract deployment.
     *  @param value The native token value to pass to the contract on deployment.
     *  @param thirdwebInfo The publish metadata URI and contract URI for the contract to deploy.
     *
     *  @return deployedAddress The address of the contract deployed.
     */
    function deployInstance(
        address publisher,
        bytes memory contractBytecode,
        bytes memory constructorArgs,
        bytes32 salt,
        uint256 value,
        ThirdwebContract.ThirdwebInfo memory thirdwebInfo
    ) external returns (address deployedAddress);

    /**
     *  @notice Deploys a clone pointing to an implementation of a published contract.
     *
     *  @param publisher The address of the publisher.
     *  @param implementation The contract implementation for the clone to point to.
     *  @param initializeData The encoded function call to initialize the contract with.
     *  @param salt The salt to use in the CREATE2 contract deployment.
     *  @param value The native token value to pass to the contract on deployment.
     *  @param thirdwebInfo The publish metadata URI and contract URI for the contract to deploy.
     *
     *  @return deployedAddress The address of the contract deployed.
     */
    function deployInstanceProxy(
        address publisher,
        address implementation,
        bytes memory initializeData,
        bytes32 salt,
        uint256 value,
        ThirdwebContract.ThirdwebInfo memory thirdwebInfo
    ) external returns (address deployedAddress);
}

File 2 of 19 : TWRegistry.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Multicall.sol";
import "@openzeppelin/contracts/metatx/ERC2771Context.sol";

contract TWRegistry is Multicall, ERC2771Context, AccessControlEnumerable {
    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");

    using EnumerableSet for EnumerableSet.AddressSet;

    /// @dev wallet address => [contract addresses]
    mapping(address => EnumerableSet.AddressSet) private deployments;

    event Added(address indexed deployer, address indexed deployment);
    event Deleted(address indexed deployer, address indexed deployment);

    constructor(address _trustedForwarder) ERC2771Context(_trustedForwarder) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    // slither-disable-next-line similar-names
    function add(address _deployer, address _deployment) external {
        require(hasRole(OPERATOR_ROLE, _msgSender()) || _deployer == _msgSender(), "not operator or deployer.");

        bool added = deployments[_deployer].add(_deployment);
        require(added, "failed to add");

        emit Added(_deployer, _deployment);
    }

    // slither-disable-next-line similar-names
    function remove(address _deployer, address _deployment) external {
        require(hasRole(OPERATOR_ROLE, _msgSender()) || _deployer == _msgSender(), "not operator or deployer.");

        bool removed = deployments[_deployer].remove(_deployment);
        require(removed, "failed to remove");

        emit Deleted(_deployer, _deployment);
    }

    function getAll(address _deployer) external view returns (address[] memory) {
        return deployments[_deployer].values();
    }

    function count(address _deployer) external view returns (uint256) {
        return deployments[_deployer].length();
    }

    function _msgSender() internal view virtual override(Context, ERC2771Context) returns (address sender) {
        return ERC2771Context._msgSender();
    }

    function _msgData() internal view virtual override(Context, ERC2771Context) returns (bytes calldata) {
        return ERC2771Context._msgData();
    }
}

File 2 of 19 : ThirdwebContract.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

contract ThirdwebContract {
    /// @dev The publish metadata of the contract of which this contract is an instance.
    string private publishMetadataUri;
    /// @dev The metadata for this contract.
    string public contractURI;

    struct ThirdwebInfo {
        string publishMetadataUri;
        string contractURI;
    }

    /// @dev Returns the publish metadata for this contract.
    function getPublishMetadataUri() external view returns (string memory) {
        return publishMetadataUri;
    }

    /// @dev Initializes the publish metadata and contract metadata at deploy time.
    function setThirdwebInfo(ThirdwebInfo memory _thirdwebInfo) external {
        require(bytes(publishMetadataUri).length == 0, "Already initialized");

        publishMetadataUri = _thirdwebInfo.publishMetadataUri;
        contractURI = _thirdwebInfo.contractURI;
    }
}

File 2 of 19 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 2 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 2 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 2 of 19 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

File 2 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 2 of 19 : 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 2 of 19 : 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 2 of 19 : Multicall.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Multicall.sol)

pragma solidity ^0.8.0;

import "./Address.sol";

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
abstract contract Multicall {
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     */
    function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            results[i] = Address.functionDelegateCall(address(this), data[i]);
        }
        return results;
    }
}

File 2 of 19 : ERC2771Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (metatx/ERC2771Context.sol)

pragma solidity ^0.8.9;

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

/**
 * @dev Context variant with ERC2771 support.
 */
abstract contract ERC2771Context is Context {
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable
    address private immutable _trustedForwarder;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor(address trustedForwarder) {
        _trustedForwarder = trustedForwarder;
    }

    function isTrustedForwarder(address forwarder) public view virtual returns (bool) {
        return forwarder == _trustedForwarder;
    }

    function _msgSender() internal view virtual override returns (address sender) {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData() internal view virtual override returns (bytes calldata) {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_twRegistry","type":"address"},{"internalType":"address[]","name":"_trustedForwarders","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"deployer","type":"address"},{"indexed":true,"internalType":"address","name":"publisher","type":"address"},{"indexed":false,"internalType":"address","name":"deployedContract","type":"address"}],"name":"ContractDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_publisher","type":"address"},{"internalType":"bytes","name":"_contractBytecode","type":"bytes"},{"internalType":"bytes","name":"_constructorArgs","type":"bytes"},{"internalType":"bytes32","name":"_salt","type":"bytes32"},{"internalType":"uint256","name":"_value","type":"uint256"},{"components":[{"internalType":"string","name":"publishMetadataUri","type":"string"},{"internalType":"string","name":"contractURI","type":"string"}],"internalType":"struct ThirdwebContract.ThirdwebInfo","name":"_thirdwebInfo","type":"tuple"}],"name":"deployInstance","outputs":[{"internalType":"address","name":"deployedAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_publisher","type":"address"},{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"bytes","name":"_initializeData","type":"bytes"},{"internalType":"bytes32","name":"_salt","type":"bytes32"},{"internalType":"uint256","name":"_value","type":"uint256"},{"components":[{"internalType":"string","name":"publishMetadataUri","type":"string"},{"internalType":"string","name":"contractURI","type":"string"}],"internalType":"struct ThirdwebContract.ThirdwebInfo","name":"_thirdwebInfo","type":"tuple"}],"name":"deployInstanceProxy","outputs":[{"internalType":"address","name":"deployedAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001dbc38038062001dbc8339810160408190526200003491620002ca565b8060005b8151811015620000a35760016000808484815181106200005c576200005c620003b3565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806200009a81620003c9565b91505062000038565b50506001600160a01b038216608052620000c86000620000c2620000d0565b620000ec565b5050620003f3565b6000620000e7620000fc60201b62000a751760201c565b905090565b620000f8828262000137565b5050565b3360009081526020819052604081205460ff161562000122575060131936013560601c90565b620000e76200017a60201b62000aa41760201c565b6200014e82826200017e60201b62000aa81760201c565b60008281526002602090815260409091206200017591839062000b4c62000225821b17901c565b505050565b3390565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620000f85760008281526001602081815260408084206001600160a01b0386168552909152909120805460ff19169091179055620001e1620000d0565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200023c836001600160a01b03841662000245565b90505b92915050565b60008181526001830160205260408120546200028e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200023f565b5060006200023f565b80516001600160a01b0381168114620002af57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620002de57600080fd5b620002e98362000297565b602084810151919350906001600160401b03808211156200030957600080fd5b818601915086601f8301126200031e57600080fd5b815181811115620003335762000333620002b4565b8060051b604051601f19603f830116810181811085821117156200035b576200035b620002b4565b6040529182528482019250838101850191898311156200037a57600080fd5b938501935b82851015620003a357620003938562000297565b845293850193928501926200037f565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620003ec57634e487b7160e01b600052601160045260246000fd5b5060010190565b6080516119a662000416600039600081816105ec01526108a501526119a66000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80639010d07c1161008c578063b187bd2611610066578063b187bd261461022f578063bedb86fb1461023c578063ca15c8731461024f578063d547741f1461026257600080fd5b80639010d07c146101db57806391d14854146101ee578063a217fddf1461022757600080fd5b806336568abe116100c857806336568abe1461015e578063572b6c05146101715780635f4c8b101461019d5780636ec7cb81146101c857600080fd5b806301ffc9a7146100ef578063248a9ca3146101175780632f2ff15d14610149575b600080fd5b6101026100fd3660046113ad565b610275565b60405190151581526020015b60405180910390f35b61013b6101253660046113d7565b6000908152600160208190526040909120015490565b60405190815260200161010e565b61015c61015736600461140c565b6102a0565b005b61015c61016c36600461140c565b6102d3565b61010261017f366004611438565b6001600160a01b031660009081526020819052604090205460ff1690565b6101b06101ab3660046115a2565b610374565b6040516001600160a01b03909116815260200161010e565b6101b06101d636600461164d565b6106a8565b6101b06101e936600461169a565b610976565b6101026101fc36600461140c565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61013b600081565b6003546101029060ff1681565b61015c61024a3660046116bc565b610995565b61013b61025d3660046113d7565b610a35565b61015c61027036600461140c565b610a4c565b60006001600160e01b03198216635a05180f60e01b148061029a575061029a82610b61565b92915050565b600082815260016020819052604090912001546102c4816102bf610b96565b610ba0565b6102ce8383610c20565b505050565b6102db610b96565b6001600160a01b0316816001600160a01b0316146103665760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6103708282610c42565b5050565b60035460009060ff161580610391575061039160006101fc610b96565b6103cf5760405162461bcd60e51b815260206004820152600f60248201526e1c9959da5cdd1c9e481c185d5cd959608a1b604482015260640161035d565b81515161041e5760405162461bcd60e51b815260206004820152601360248201527f4e6f207075626c697368206d6574616461746100000000000000000000000000604482015260640161035d565b6000868660405160200161043392919061170e565b6040516020818303038152906040529050600061044e610b96565b60405160609190911b6bffffffffffffffffffffffff191660208201526034810187905243605482015260740160405160208183030381529060405280519060200120905061049e858284610c64565b604051637f1a36ed60e01b81529093506001600160a01b03841690637f1a36ed906104cd908790600401611769565b600060405180830381600087803b1580156104e757600080fd5b505af11580156104fb573d6000803e3d6000fd5b50505050836000015180519060200120836001600160a01b031663d3684f406040518163ffffffff1660e01b8152600401600060405180830381865afa158015610549573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261057191908101906117ab565b80519060200120146105c55760405162461bcd60e51b815260206004820152601760248201527f4e6f74206120746869726477656220636f6e7472616374000000000000000000604482015260640161035d565b6040516352c28fab60e01b81526001600160a01b038a8116600483015284811660248301527f000000000000000000000000000000000000000000000000000000000000000016906352c28fab90604401600060405180830381600087803b15801561063057600080fd5b505af1158015610644573d6000803e3d6000fd5b50505050886001600160a01b031661065a610b96565b6040516001600160a01b03868116825291909116907f8a14d1d7200360982eafa429b53edf408f7f589e6da6558f3c116c7f708327b39060200160405180910390a350509695505050505050565b60035460009060ff1615806106c557506106c560006101fc610b96565b6107035760405162461bcd60e51b815260206004820152600f60248201526e1c9959da5cdd1c9e481c185d5cd959608a1b604482015260640161035d565b6107578661070f610b96565b60405160609190911b6bffffffffffffffffffffffff191660208201526034810187905243605482015260740160405160208183030381529060405280519060200120610d6e565b604051637f1a36ed60e01b81529091506001600160a01b03821690637f1a36ed90610786908590600401611769565b600060405180830381600087803b1580156107a057600080fd5b505af11580156107b4573d6000803e3d6000fd5b50505050816000015180519060200120816001600160a01b031663d3684f406040518163ffffffff1660e01b8152600401600060405180830381865afa158015610802573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261082a91908101906117ab565b805190602001201461087e5760405162461bcd60e51b815260206004820152601760248201527f4e6f74206120746869726477656220636f6e7472616374000000000000000000604482015260640161035d565b6040516352c28fab60e01b81526001600160a01b03888116600483015282811660248301527f000000000000000000000000000000000000000000000000000000000000000016906352c28fab90604401600060405180830381600087803b1580156108e957600080fd5b505af11580156108fd573d6000803e3d6000fd5b5050505060008551111561091857610916818685610e25565b505b866001600160a01b031661092a610b96565b6040516001600160a01b03848116825291909116907f8a14d1d7200360982eafa429b53edf408f7f589e6da6558f3c116c7f708327b39060200160405180910390a39695505050505050565b600082815260026020526040812061098e9083610e4b565b9392505050565b6109a260006101fc610b96565b6109ee5760405162461bcd60e51b815260206004820152601160248201527f756e617070726f7665642063616c6c6572000000000000000000000000000000604482015260640161035d565b6003805460ff19168215159081179091556040519081527f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd29060200160405180910390a150565b600081815260026020526040812061029a90610e57565b60008281526001602081905260409091200154610a6b816102bf610b96565b6102ce8383610c42565b3360009081526020819052604081205460ff1615610a9a575060131936013560601c90565b503390565b905090565b3390565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166103705760008281526001602081815260408084206001600160a01b0386168552909152909120805460ff19169091179055610b08610b96565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061098e836001600160a01b038416610e61565b60006001600160e01b03198216637965db0b60e01b148061029a57506301ffc9a760e01b6001600160e01b031983161461029a565b6000610a9f610a75565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1661037057610bde816001600160a01b03166014610eb0565b610be9836020610eb0565b604051602001610bfa929190611819565b60408051601f198184030181529082905262461bcd60e51b825261035d9160040161189a565b610c2a8282610aa8565b60008281526002602052604090206102ce9082610b4c565b610c4c8282611059565b60008281526002602052604090206102ce90826110fa565b60008084471015610cb75760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161035d565b8251610d055760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161035d565b8383516020850187f590506001600160a01b038116610d665760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161035d565b949350505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b03811661029a5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015260640161035d565b6060610d668484846040518060600160405280602981526020016119716029913961110f565b600061098e8383611257565b600061029a825490565b6000818152600183016020526040812054610ea85750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561029a565b50600061029a565b60606000610ebf8360026118c3565b610eca9060026118e2565b67ffffffffffffffff811115610ee257610ee2611453565b6040519080825280601f01601f191660200182016040528015610f0c576020820181803683370190505b509050600360fc1b81600081518110610f2757610f276118fa565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610f5657610f566118fa565b60200101906001600160f81b031916908160001a9053506000610f7a8460026118c3565b610f859060016118e2565b90505b600181111561100a577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610fc657610fc66118fa565b1a60f81b828281518110610fdc57610fdc6118fa565b60200101906001600160f81b031916908160001a90535060049490941c9361100381611910565b9050610f88565b50831561098e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161035d565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16156103705760008281526001602090815260408083206001600160a01b03851684529091529020805460ff191690556110b6610b96565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061098e836001600160a01b038416611281565b6060824710156111875760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161035d565b6001600160a01b0385163b6111de5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161035d565b600080866001600160a01b031685876040516111fa9190611927565b60006040518083038185875af1925050503d8060008114611237576040519150601f19603f3d011682016040523d82523d6000602084013e61123c565b606091505b509150915061124c828286611374565b979650505050505050565b600082600001828154811061126e5761126e6118fa565b9060005260206000200154905092915050565b6000818152600183016020526040812054801561136a5760006112a5600183611943565b85549091506000906112b990600190611943565b905081811461131e5760008660000182815481106112d9576112d96118fa565b90600052602060002001549050808760000184815481106112fc576112fc6118fa565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061132f5761132f61195a565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061029a565b600091505061029a565b6060831561138357508161098e565b8251156113935782518084602001fd5b8160405162461bcd60e51b815260040161035d919061189a565b6000602082840312156113bf57600080fd5b81356001600160e01b03198116811461098e57600080fd5b6000602082840312156113e957600080fd5b5035919050565b80356001600160a01b038116811461140757600080fd5b919050565b6000806040838503121561141f57600080fd5b8235915061142f602084016113f0565b90509250929050565b60006020828403121561144a57600080fd5b61098e826113f0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561149257611492611453565b604052919050565b600067ffffffffffffffff8211156114b4576114b4611453565b50601f01601f191660200190565b600082601f8301126114d357600080fd5b81356114e66114e18261149a565b611469565b8181528460208386010111156114fb57600080fd5b816020850160208301376000918101602001919091529392505050565b60006040828403121561152a57600080fd5b6040516040810167ffffffffffffffff828210818311171561154e5761154e611453565b81604052829350843591508082111561156657600080fd5b611572868387016114c2565b8352602085013591508082111561158857600080fd5b50611595858286016114c2565b6020830152505092915050565b60008060008060008060c087890312156115bb57600080fd5b6115c4876113f0565b9550602087013567ffffffffffffffff808211156115e157600080fd5b6115ed8a838b016114c2565b9650604089013591508082111561160357600080fd5b61160f8a838b016114c2565b9550606089013594506080890135935060a089013591508082111561163357600080fd5b5061164089828a01611518565b9150509295509295509295565b60008060008060008060c0878903121561166657600080fd5b61166f876113f0565b955061167d602088016113f0565b9450604087013567ffffffffffffffff8082111561160357600080fd5b600080604083850312156116ad57600080fd5b50508035926020909101359150565b6000602082840312156116ce57600080fd5b8135801515811461098e57600080fd5b60005b838110156116f95781810151838201526020016116e1565b83811115611708576000848401525b50505050565b600083516117208184602088016116de565b8351908301906117348183602088016116de565b01949350505050565b600081518084526117558160208601602086016116de565b601f01601f19169290920160200192915050565b602081526000825160406020840152611785606084018261173d565b90506020840151601f198483030160408501526117a2828261173d565b95945050505050565b6000602082840312156117bd57600080fd5b815167ffffffffffffffff8111156117d457600080fd5b8201601f810184136117e557600080fd5b80516117f36114e18261149a565b81815285602083850101111561180857600080fd5b6117a28260208301602086016116de565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516118518160178501602088016116de565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161188e8160288401602088016116de565b01602801949350505050565b60208152600061098e602083018461173d565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156118dd576118dd6118ad565b500290565b600082198211156118f5576118f56118ad565b500190565b634e487b7160e01b600052603260045260246000fd5b60008161191f5761191f6118ad565b506000190190565b600082516119398184602087016116de565b9190910192915050565b600082821015611955576119556118ad565b500390565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a164736f6c634300080c000a0000000000000000000000003f17972cb27506eb4a6a3d59659e0b57a43fd16c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c82bbe41f2cf04e3a8efa18f7032bdd7f6d98a81

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80639010d07c1161008c578063b187bd2611610066578063b187bd261461022f578063bedb86fb1461023c578063ca15c8731461024f578063d547741f1461026257600080fd5b80639010d07c146101db57806391d14854146101ee578063a217fddf1461022757600080fd5b806336568abe116100c857806336568abe1461015e578063572b6c05146101715780635f4c8b101461019d5780636ec7cb81146101c857600080fd5b806301ffc9a7146100ef578063248a9ca3146101175780632f2ff15d14610149575b600080fd5b6101026100fd3660046113ad565b610275565b60405190151581526020015b60405180910390f35b61013b6101253660046113d7565b6000908152600160208190526040909120015490565b60405190815260200161010e565b61015c61015736600461140c565b6102a0565b005b61015c61016c36600461140c565b6102d3565b61010261017f366004611438565b6001600160a01b031660009081526020819052604090205460ff1690565b6101b06101ab3660046115a2565b610374565b6040516001600160a01b03909116815260200161010e565b6101b06101d636600461164d565b6106a8565b6101b06101e936600461169a565b610976565b6101026101fc36600461140c565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61013b600081565b6003546101029060ff1681565b61015c61024a3660046116bc565b610995565b61013b61025d3660046113d7565b610a35565b61015c61027036600461140c565b610a4c565b60006001600160e01b03198216635a05180f60e01b148061029a575061029a82610b61565b92915050565b600082815260016020819052604090912001546102c4816102bf610b96565b610ba0565b6102ce8383610c20565b505050565b6102db610b96565b6001600160a01b0316816001600160a01b0316146103665760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6103708282610c42565b5050565b60035460009060ff161580610391575061039160006101fc610b96565b6103cf5760405162461bcd60e51b815260206004820152600f60248201526e1c9959da5cdd1c9e481c185d5cd959608a1b604482015260640161035d565b81515161041e5760405162461bcd60e51b815260206004820152601360248201527f4e6f207075626c697368206d6574616461746100000000000000000000000000604482015260640161035d565b6000868660405160200161043392919061170e565b6040516020818303038152906040529050600061044e610b96565b60405160609190911b6bffffffffffffffffffffffff191660208201526034810187905243605482015260740160405160208183030381529060405280519060200120905061049e858284610c64565b604051637f1a36ed60e01b81529093506001600160a01b03841690637f1a36ed906104cd908790600401611769565b600060405180830381600087803b1580156104e757600080fd5b505af11580156104fb573d6000803e3d6000fd5b50505050836000015180519060200120836001600160a01b031663d3684f406040518163ffffffff1660e01b8152600401600060405180830381865afa158015610549573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261057191908101906117ab565b80519060200120146105c55760405162461bcd60e51b815260206004820152601760248201527f4e6f74206120746869726477656220636f6e7472616374000000000000000000604482015260640161035d565b6040516352c28fab60e01b81526001600160a01b038a8116600483015284811660248301527f0000000000000000000000003f17972cb27506eb4a6a3d59659e0b57a43fd16c16906352c28fab90604401600060405180830381600087803b15801561063057600080fd5b505af1158015610644573d6000803e3d6000fd5b50505050886001600160a01b031661065a610b96565b6040516001600160a01b03868116825291909116907f8a14d1d7200360982eafa429b53edf408f7f589e6da6558f3c116c7f708327b39060200160405180910390a350509695505050505050565b60035460009060ff1615806106c557506106c560006101fc610b96565b6107035760405162461bcd60e51b815260206004820152600f60248201526e1c9959da5cdd1c9e481c185d5cd959608a1b604482015260640161035d565b6107578661070f610b96565b60405160609190911b6bffffffffffffffffffffffff191660208201526034810187905243605482015260740160405160208183030381529060405280519060200120610d6e565b604051637f1a36ed60e01b81529091506001600160a01b03821690637f1a36ed90610786908590600401611769565b600060405180830381600087803b1580156107a057600080fd5b505af11580156107b4573d6000803e3d6000fd5b50505050816000015180519060200120816001600160a01b031663d3684f406040518163ffffffff1660e01b8152600401600060405180830381865afa158015610802573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261082a91908101906117ab565b805190602001201461087e5760405162461bcd60e51b815260206004820152601760248201527f4e6f74206120746869726477656220636f6e7472616374000000000000000000604482015260640161035d565b6040516352c28fab60e01b81526001600160a01b03888116600483015282811660248301527f0000000000000000000000003f17972cb27506eb4a6a3d59659e0b57a43fd16c16906352c28fab90604401600060405180830381600087803b1580156108e957600080fd5b505af11580156108fd573d6000803e3d6000fd5b5050505060008551111561091857610916818685610e25565b505b866001600160a01b031661092a610b96565b6040516001600160a01b03848116825291909116907f8a14d1d7200360982eafa429b53edf408f7f589e6da6558f3c116c7f708327b39060200160405180910390a39695505050505050565b600082815260026020526040812061098e9083610e4b565b9392505050565b6109a260006101fc610b96565b6109ee5760405162461bcd60e51b815260206004820152601160248201527f756e617070726f7665642063616c6c6572000000000000000000000000000000604482015260640161035d565b6003805460ff19168215159081179091556040519081527f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd29060200160405180910390a150565b600081815260026020526040812061029a90610e57565b60008281526001602081905260409091200154610a6b816102bf610b96565b6102ce8383610c42565b3360009081526020819052604081205460ff1615610a9a575060131936013560601c90565b503390565b905090565b3390565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166103705760008281526001602081815260408084206001600160a01b0386168552909152909120805460ff19169091179055610b08610b96565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061098e836001600160a01b038416610e61565b60006001600160e01b03198216637965db0b60e01b148061029a57506301ffc9a760e01b6001600160e01b031983161461029a565b6000610a9f610a75565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1661037057610bde816001600160a01b03166014610eb0565b610be9836020610eb0565b604051602001610bfa929190611819565b60408051601f198184030181529082905262461bcd60e51b825261035d9160040161189a565b610c2a8282610aa8565b60008281526002602052604090206102ce9082610b4c565b610c4c8282611059565b60008281526002602052604090206102ce90826110fa565b60008084471015610cb75760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161035d565b8251610d055760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161035d565b8383516020850187f590506001600160a01b038116610d665760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161035d565b949350505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b03811661029a5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015260640161035d565b6060610d668484846040518060600160405280602981526020016119716029913961110f565b600061098e8383611257565b600061029a825490565b6000818152600183016020526040812054610ea85750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561029a565b50600061029a565b60606000610ebf8360026118c3565b610eca9060026118e2565b67ffffffffffffffff811115610ee257610ee2611453565b6040519080825280601f01601f191660200182016040528015610f0c576020820181803683370190505b509050600360fc1b81600081518110610f2757610f276118fa565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610f5657610f566118fa565b60200101906001600160f81b031916908160001a9053506000610f7a8460026118c3565b610f859060016118e2565b90505b600181111561100a577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610fc657610fc66118fa565b1a60f81b828281518110610fdc57610fdc6118fa565b60200101906001600160f81b031916908160001a90535060049490941c9361100381611910565b9050610f88565b50831561098e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161035d565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16156103705760008281526001602090815260408083206001600160a01b03851684529091529020805460ff191690556110b6610b96565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061098e836001600160a01b038416611281565b6060824710156111875760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161035d565b6001600160a01b0385163b6111de5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161035d565b600080866001600160a01b031685876040516111fa9190611927565b60006040518083038185875af1925050503d8060008114611237576040519150601f19603f3d011682016040523d82523d6000602084013e61123c565b606091505b509150915061124c828286611374565b979650505050505050565b600082600001828154811061126e5761126e6118fa565b9060005260206000200154905092915050565b6000818152600183016020526040812054801561136a5760006112a5600183611943565b85549091506000906112b990600190611943565b905081811461131e5760008660000182815481106112d9576112d96118fa565b90600052602060002001549050808760000184815481106112fc576112fc6118fa565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061132f5761132f61195a565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061029a565b600091505061029a565b6060831561138357508161098e565b8251156113935782518084602001fd5b8160405162461bcd60e51b815260040161035d919061189a565b6000602082840312156113bf57600080fd5b81356001600160e01b03198116811461098e57600080fd5b6000602082840312156113e957600080fd5b5035919050565b80356001600160a01b038116811461140757600080fd5b919050565b6000806040838503121561141f57600080fd5b8235915061142f602084016113f0565b90509250929050565b60006020828403121561144a57600080fd5b61098e826113f0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561149257611492611453565b604052919050565b600067ffffffffffffffff8211156114b4576114b4611453565b50601f01601f191660200190565b600082601f8301126114d357600080fd5b81356114e66114e18261149a565b611469565b8181528460208386010111156114fb57600080fd5b816020850160208301376000918101602001919091529392505050565b60006040828403121561152a57600080fd5b6040516040810167ffffffffffffffff828210818311171561154e5761154e611453565b81604052829350843591508082111561156657600080fd5b611572868387016114c2565b8352602085013591508082111561158857600080fd5b50611595858286016114c2565b6020830152505092915050565b60008060008060008060c087890312156115bb57600080fd5b6115c4876113f0565b9550602087013567ffffffffffffffff808211156115e157600080fd5b6115ed8a838b016114c2565b9650604089013591508082111561160357600080fd5b61160f8a838b016114c2565b9550606089013594506080890135935060a089013591508082111561163357600080fd5b5061164089828a01611518565b9150509295509295509295565b60008060008060008060c0878903121561166657600080fd5b61166f876113f0565b955061167d602088016113f0565b9450604087013567ffffffffffffffff8082111561160357600080fd5b600080604083850312156116ad57600080fd5b50508035926020909101359150565b6000602082840312156116ce57600080fd5b8135801515811461098e57600080fd5b60005b838110156116f95781810151838201526020016116e1565b83811115611708576000848401525b50505050565b600083516117208184602088016116de565b8351908301906117348183602088016116de565b01949350505050565b600081518084526117558160208601602086016116de565b601f01601f19169290920160200192915050565b602081526000825160406020840152611785606084018261173d565b90506020840151601f198483030160408501526117a2828261173d565b95945050505050565b6000602082840312156117bd57600080fd5b815167ffffffffffffffff8111156117d457600080fd5b8201601f810184136117e557600080fd5b80516117f36114e18261149a565b81815285602083850101111561180857600080fd5b6117a28260208301602086016116de565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516118518160178501602088016116de565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161188e8160288401602088016116de565b01602801949350505050565b60208152600061098e602083018461173d565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156118dd576118dd6118ad565b500290565b600082198211156118f5576118f56118ad565b500190565b634e487b7160e01b600052603260045260246000fd5b60008161191f5761191f6118ad565b506000190190565b600082516119398184602087016116de565b9190910192915050565b600082821015611955576119556118ad565b500390565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a164736f6c634300080c000a

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000003f17972cb27506eb4a6a3d59659e0b57a43fd16c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c82bbe41f2cf04e3a8efa18f7032bdd7f6d98a81

-----Decoded View---------------
Arg [0] : _twRegistry (address): 0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C
Arg [1] : _trustedForwarders (address[]): 0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000003f17972cb27506eb4a6a3d59659e0b57a43fd16c
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 000000000000000000000000c82bbe41f2cf04e3a8efa18f7032bdd7f6d98a81


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

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.