ETH Price: $3,153.68 (+2.42%)
Gas: 7 Gwei

Contract

0x9C1B7A7D6b6EE04a465bD4B0F52b21807c49E36e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60c06040129925592021-08-09 18:23:11985 days ago1628533391IN
 Create: ProxyPaymentAddressManager
0 ETH0.0606541550

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
130102612021-08-12 12:09:00982 days ago1628770140
0x9C1B7A7D...07c49E36e
 Contract Creation0 ETH
130101172021-08-12 11:37:43982 days ago1628768263
0x9C1B7A7D...07c49E36e
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProxyPaymentAddressManager

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 16 : ProxyPaymentAddressManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./interfaces/ITicketBooth.sol";
import "./interfaces/ITerminalDirectory.sol";
import "./interfaces/IProxyPaymentAddress.sol";
import "./interfaces/IProxyPaymentAddressManager.sol";

import "./ProxyPaymentAddress.sol";

/** 
  @notice
  Manages deploying proxy payment addresses for Juicebox projects.
*/
contract ProxyPaymentAddressManager is IProxyPaymentAddressManager {
    // --- private stored properties --- //

    // A mapping from project id to proxy payment addresses.
    mapping(uint256 => IProxyPaymentAddress[]) private _addressesOf;

    // --- public immutable stored properties --- //

    /// @notice The directory that will be injected into proxy payment addresses.
    ITerminalDirectory public immutable override terminalDirectory;

    /// @notice The ticket boot that will be injected into proxy payment addresses.
    ITicketBooth public immutable override ticketBooth;

    constructor(
        ITerminalDirectory _terminalDirectory,
        ITicketBooth _ticketBooth
    ) {
        terminalDirectory = _terminalDirectory;
        ticketBooth = _ticketBooth;
    }

    /** 
      @notice 
      A list of all proxy payment addresses for the specified project ID.

      @param _projectId The ID of the project to get proxy payment addresses for.

      @return A list of proxy payment addresses for the specified project ID.
    */
    function addressesOf(uint256 _projectId)
        external
        view
        override
        returns (IProxyPaymentAddress[] memory)
    {
        return _addressesOf[_projectId];
    }    

    /** 
      @notice Deploys a proxy payment address.
      @param _projectId ID of the project funds will be fowarded to.
      @param _memo Memo that will be attached withdrawal transactions.
    */
    function deploy(uint256 _projectId, string memory _memo) external override returns(address) {
        require(
            _projectId > 0,
            "ProxyPaymentAddressManager::deploy: ZERO_PROJECT"
        );

        // Create the proxy payment address contract.
        ProxyPaymentAddress proxyPaymentAddress = new ProxyPaymentAddress(
            terminalDirectory,
            ticketBooth,
            _projectId,
            _memo
        );

        // Transfer ownership to the caller of this tx.
        proxyPaymentAddress.transferOwnership(msg.sender);

        // Push it to the list for the corresponding project.
        _addressesOf[_projectId].push(proxyPaymentAddress);

        emit Deploy(_projectId, _memo, msg.sender);

        // Return the address of the proxy payment address.
        return address(proxyPaymentAddress);
    }

}

File 3 of 16 : ITicketBooth.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./IProjects.sol";
import "./IOperatorStore.sol";
import "./ITickets.sol";

interface ITicketBooth {
    event Issue(
        uint256 indexed projectId,
        string name,
        string symbol,
        address caller
    );
    event Print(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        bool convertedTickets,
        bool preferUnstakedTickets,
        address controller
    );

    event Redeem(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        uint256 stakedTickets,
        bool preferUnstaked,
        address controller
    );

    event Stake(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Unstake(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Lock(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Unlock(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Transfer(
        address indexed holder,
        uint256 indexed projectId,
        address indexed recipient,
        uint256 amount,
        address caller
    );

    function ticketsOf(uint256 _projectId) external view returns (ITickets);

    function projects() external view returns (IProjects);

    function lockedBalanceOf(address _holder, uint256 _projectId)
        external
        view
        returns (uint256);

    function lockedBalanceBy(
        address _operator,
        address _holder,
        uint256 _projectId
    ) external view returns (uint256);

    function stakedBalanceOf(address _holder, uint256 _projectId)
        external
        view
        returns (uint256);

    function stakedTotalSupplyOf(uint256 _projectId)
        external
        view
        returns (uint256);

    function totalSupplyOf(uint256 _projectId) external view returns (uint256);

    function balanceOf(address _holder, uint256 _projectId)
        external
        view
        returns (uint256 _result);

    function issue(
        uint256 _projectId,
        string calldata _name,
        string calldata _symbol
    ) external;

    function print(
        address _holder,
        uint256 _projectId,
        uint256 _amount,
        bool _preferUnstakedTickets
    ) external;

    function redeem(
        address _holder,
        uint256 _projectId,
        uint256 _amount,
        bool _preferUnstaked
    ) external;

    function stake(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function unstake(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function lock(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function unlock(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function transfer(
        address _holder,
        uint256 _projectId,
        uint256 _amount,
        address _recipient
    ) external;
}

File 4 of 16 : ITerminalDirectory.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./IDirectPaymentAddress.sol";
import "./ITerminal.sol";
import "./IProjects.sol";
import "./IProjects.sol";

interface ITerminalDirectory {
    event DeployAddress(
        uint256 indexed projectId,
        string memo,
        address indexed caller
    );

    event SetTerminal(
        uint256 indexed projectId,
        ITerminal indexed terminal,
        address caller
    );

    event SetPayerPreferences(
        address indexed account,
        address beneficiary,
        bool preferUnstakedTickets
    );

    function projects() external view returns (IProjects);

    function terminalOf(uint256 _projectId) external view returns (ITerminal);

    function beneficiaryOf(address _account) external returns (address);

    function unstakedTicketsPreferenceOf(address _account)
        external
        returns (bool);

    function addressesOf(uint256 _projectId)
        external
        view
        returns (IDirectPaymentAddress[] memory);

    function deployAddress(uint256 _projectId, string calldata _memo) external;

    function setTerminal(uint256 _projectId, ITerminal _terminal) external;

    function setPayerPreferences(
        address _beneficiary,
        bool _preferUnstakedTickets
    ) external;
}

File 5 of 16 : IProxyPaymentAddress.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./ITerminalDirectory.sol";
import "./ITicketBooth.sol";

interface IProxyPaymentAddress {

    event Receive(
        address indexed caller,
        uint256 value
    );

    event Tap(
        address indexed caller,
        uint256 value
    );

    event TransferTickets(
        address indexed caller,
        address indexed beneficiary,
        uint256 indexed projectId,
        uint256 amount
    );

    function terminalDirectory() external returns (ITerminalDirectory);

    function ticketBooth() external returns (ITicketBooth);

    function projectId() external returns (uint256);

    function memo() external returns (string memory);

    function tap() external;

    function transferTickets(address _beneficiary, uint256 _amount) external;

}

File 6 of 16 : IProxyPaymentAddressManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./ITerminalDirectory.sol";
import "./ITicketBooth.sol";
import "./IProxyPaymentAddress.sol";

interface IProxyPaymentAddressManager {

    event Deploy(
        uint256 indexed projectId,
        string memo,
        address indexed caller
    );       

    function terminalDirectory() external returns (ITerminalDirectory);

    function ticketBooth() external returns (ITicketBooth);

    function addressesOf(uint256 _projectId)
        external
        view
        returns (IProxyPaymentAddress[] memory);    

    function deploy(uint256 _projectId, string memory _memo) external returns(address);

}

File 7 of 16 : ProxyPaymentAddress.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "@openzeppelin/contracts/access/Ownable.sol";

import "./interfaces/IProxyPaymentAddress.sol";
import "./interfaces/ITerminalDirectory.sol";
import "./interfaces/ITicketBooth.sol";

/** 
  @notice
  A contract that can receive and hold funds for a given project.
  Once funds are tapped, tickets are printed and can be transferred out of the contract at a later date.

  Particularly useful for routing funds from third-party platforms (e.g., Open Sea).
*/
contract ProxyPaymentAddress is IProxyPaymentAddress, Ownable {
    // --- public immutable stored properties --- //

    /// @notice The directory to use when resolving which terminal to send the payment to.
    ITerminalDirectory public immutable override terminalDirectory;

    /// @notice The ticket booth to use when transferring tickets held by this contract to a beneficiary.
    ITicketBooth public immutable override ticketBooth;

    /// @notice The ID of the project tickets should be redeemed for.
    uint256 public immutable override projectId;

    /// @notice The memo to use when this contract forwards a payment to a terminal.
    string public override memo;

    constructor(
        ITerminalDirectory _terminalDirectory,
        ITicketBooth _ticketBooth,
        uint256 _projectId,
        string memory _memo
    ) {
        terminalDirectory = _terminalDirectory;
        ticketBooth = _ticketBooth;
        projectId = _projectId;
        memo = _memo;
    }

    // Receive funds and hold them in the contract until they are ready to be transferred.
    receive() external payable { 
        emit Receive(
            msg.sender,
            msg.value
        );
    }

    // Transfers all funds held in the contract to the terminal of the corresponding project.
    function tap() external override {
        uint256 amount = address(this).balance;

        terminalDirectory.terminalOf(projectId).pay{value: amount}(
            projectId,
            /*_beneficiary=*/address(this),
            memo,
            /*_preferUnstakedTickets=*/false
        );

        emit Tap(
            msg.sender,
            amount
        ); 
    }

    /** 
      @notice Transfers tickets held by this contract to a beneficiary.
      @param _beneficiary Address of the beneficiary tickets will be transferred to.
    */
    function transferTickets(address _beneficiary, uint256 _amount) external override onlyOwner {
        ticketBooth.transfer(
            address(this),
            projectId,
            _amount,
            _beneficiary
        );

        emit TransferTickets(
            msg.sender,
            _beneficiary,
            projectId,
            _amount
        );            
    }

}

File 8 of 16 : IProjects.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import "./ITerminal.sol";
import "./IOperatorStore.sol";

interface IProjects is IERC721 {
    event Create(
        uint256 indexed projectId,
        address indexed owner,
        bytes32 indexed handle,
        string uri,
        ITerminal terminal,
        address caller
    );

    event SetHandle(
        uint256 indexed projectId,
        bytes32 indexed handle,
        address caller
    );

    event SetUri(uint256 indexed projectId, string uri, address caller);

    event TransferHandle(
        uint256 indexed projectId,
        address indexed to,
        bytes32 indexed handle,
        bytes32 newHandle,
        address caller
    );

    event ClaimHandle(
        address indexed account,
        uint256 indexed projectId,
        bytes32 indexed handle,
        address caller
    );

    event ChallengeHandle(
        bytes32 indexed handle,
        uint256 challengeExpiry,
        address caller
    );

    event RenewHandle(
        bytes32 indexed handle,
        uint256 indexed projectId,
        address caller
    );

    function count() external view returns (uint256);

    function uriOf(uint256 _projectId) external view returns (string memory);

    function handleOf(uint256 _projectId) external returns (bytes32 handle);

    function projectFor(bytes32 _handle) external returns (uint256 projectId);

    function transferAddressFor(bytes32 _handle)
        external
        returns (address receiver);

    function challengeExpiryOf(bytes32 _handle) external returns (uint256);

    function exists(uint256 _projectId) external view returns (bool);

    function create(
        address _owner,
        bytes32 _handle,
        string calldata _uri,
        ITerminal _terminal
    ) external returns (uint256 id);

    function setHandle(uint256 _projectId, bytes32 _handle) external;

    function setUri(uint256 _projectId, string calldata _uri) external;

    function transferHandle(
        uint256 _projectId,
        address _to,
        bytes32 _newHandle
    ) external returns (bytes32 _handle);

    function claimHandle(
        bytes32 _handle,
        address _for,
        uint256 _projectId
    ) external;
}

File 9 of 16 : IOperatorStore.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

interface IOperatorStore {
    event SetOperator(
        address indexed operator,
        address indexed account,
        uint256 indexed domain,
        uint256[] permissionIndexes,
        uint256 packed
    );

    function permissionsOf(
        address _operator,
        address _account,
        uint256 _domain
    ) external view returns (uint256);

    function hasPermission(
        address _operator,
        address _account,
        uint256 _domain,
        uint256 _permissionIndex
    ) external view returns (bool);

    function hasPermissions(
        address _operator,
        address _account,
        uint256 _domain,
        uint256[] calldata _permissionIndexes
    ) external view returns (bool);

    function setOperator(
        address _operator,
        uint256 _domain,
        uint256[] calldata _permissionIndexes
    ) external;

    function setOperators(
        address[] calldata _operators,
        uint256[] calldata _domains,
        uint256[][] calldata _permissionIndexes
    ) external;
}

File 10 of 16 : ITickets.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface ITickets is IERC20 {
    function print(address _account, uint256 _amount) external;

    function redeem(address _account, uint256 _amount) external;
}

File 11 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 12 of 16 : ITerminal.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./ITerminalDirectory.sol";

interface ITerminal {
    event Pay(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        address indexed beneficiary,
        uint256 amount,
        string note,
        address caller
    );

    event AddToBalance(
        uint256 indexed projectId,
        uint256 value,
        address caller
    );

    event AllowMigration(ITerminal allowed);

    event Migrate(
        uint256 indexed projectId,
        ITerminal indexed to,
        uint256 _amount,
        address caller
    );

    function terminalDirectory() external view returns (ITerminalDirectory);

    function migrationIsAllowed(ITerminal _terminal)
        external
        view
        returns (bool);

    function pay(
        uint256 _projectId,
        address _beneficiary,
        string calldata _memo,
        bool _preferUnstakedTickets
    ) external payable returns (uint256 fundingCycleId);

    function addToBalance(uint256 _projectId) external payable;

    function allowMigration(ITerminal _contract) external;

    function migrate(uint256 _projectId, ITerminal _to) external;
}

File 13 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 14 of 16 : IDirectPaymentAddress.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./ITerminalDirectory.sol";
import "./ITerminal.sol";

interface IDirectPaymentAddress {
    event Forward(
        address indexed payer,
        uint256 indexed projectId,
        address beneficiary,
        uint256 value,
        string memo,
        bool preferUnstakedTickets
    );

    function terminalDirectory() external returns (ITerminalDirectory);

    function projectId() external returns (uint256);

    function memo() external returns (string memory);
}

File 15 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

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

File 17 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ITerminalDirectory","name":"_terminalDirectory","type":"address"},{"internalType":"contract ITicketBooth","name":"_ticketBooth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"projectId","type":"uint256"},{"indexed":false,"internalType":"string","name":"memo","type":"string"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"Deploy","type":"event"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"addressesOf","outputs":[{"internalType":"contract IProxyPaymentAddress[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_memo","type":"string"}],"name":"deploy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"terminalDirectory","outputs":[{"internalType":"contract ITerminalDirectory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ticketBooth","outputs":[{"internalType":"contract ITicketBooth","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b506040516115ef3803806115ef83398101604081905261002f9161004d565b6001600160601b0319606092831b8116608052911b1660a05261009f565b6000806040838503121561006057600080fd5b825161006b81610087565b602084015190925061007c81610087565b809150509250929050565b6001600160a01b038116811461009c57600080fd5b50565b60805160601c60a05160601c6115196100d66000396000818160cb0152610231015260008181607f015261021001526115196000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634cbcdc23146100515780636abcf8e31461007a5780639b602d60146100c6578063ffbf2bd8146100ed575b600080fd5b61006461005f3660046103b5565b610100565b6040516100719190610512565b60405180910390f35b6100a17f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610071565b6100a17f000000000000000000000000000000000000000000000000000000000000000081565b6100a16100fb3660046103ce565b610177565b6000818152602081815260409182902080548351818402810184019094528084526060939283018282801561016b57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610140575b50505050509050919050565b600080831161020c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f50726f78795061796d656e74416464726573734d616e616765723a3a6465706c60448201527f6f793a205a45524f5f50524f4a45435400000000000000000000000000000000606482015260840160405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000858560405161025e906103a8565b61026b949392919061056c565b604051809103906000f080158015610287573d6000803e3d6000fd5b506040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015290915073ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b1580156102f257600080fd5b505af1158015610306573d6000803e3d6000fd5b5050506000858152602081815260408083208054600181018255908452919092200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555133915085907fb24384e68b59e576d1779bfdf48410e953d8c8064ed33288f28b16c7c6f78cf8906103999087906105b5565b60405180910390a39392505050565b610ee5806105ff83390190565b6000602082840312156103c757600080fd5b5035919050565b600080604083850312156103e157600080fd5b82359150602083013567ffffffffffffffff8082111561040057600080fd5b818501915085601f83011261041457600080fd5b813581811115610426576104266105cf565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561046c5761046c6105cf565b8160405282815288602084870101111561048557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000815180845260005b818110156104cd576020818501810151868301820152016104b1565b818111156104df576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020808252825182820181905260009190848201906040850190845b8181101561056057835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161052e565b50909695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526105ab60808301846104a7565b9695505050505050565b6020815260006105c860208301846104a7565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfe60e06040523480156200001157600080fd5b5060405162000ee538038062000ee5833981016040819052620000349162000174565b6200003f336200007e565b6001600160601b0319606085811b821660805284901b1660a05260c0829052805162000073906001906020840190620000ce565b5050505050620002f2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000dc9062000286565b90600052602060002090601f0160209004810192826200010057600085556200014b565b82601f106200011b57805160ff19168380011785556200014b565b828001600101855582156200014b579182015b828111156200014b5782518255916020019190600101906200012e565b50620001599291506200015d565b5090565b5b808211156200015957600081556001016200015e565b600080600080608085870312156200018b57600080fd5b84516200019881620002d9565b80945050602080860151620001ad81620002d9565b6040870151606088015191955093506001600160401b0380821115620001d257600080fd5b818801915088601f830112620001e757600080fd5b815181811115620001fc57620001fc620002c3565b604051601f8201601f19908116603f01168101908382118183101715620002275762000227620002c3565b816040528281528b868487010111156200024057600080fd5b600093505b8284101562000264578484018601518185018701529285019262000245565b82841115620002765760008684830101525b989b979a50959850505050505050565b600181811c908216806200029b57607f821691505b60208210811415620002bd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620002ef57600080fd5b50565b60805160601c60a05160601c60c051610b93620003526000396000818161010f0152818161031c015281816103c4015281816106c10152610796015260008181610211015261036601526000818161017801526106e90152610b936000f3fe60806040526004361061009a5760003560e01c8063715018a6116100695780639b602d601161004e5780639b602d60146101ff578063f2fde38b14610233578063fd2210311461025357600080fd5b8063715018a6146101bf5780638da5cb5b146101d457600080fd5b8063323a9beb146100db5780633fafa127146100fd57806358c3b870146101445780636abcf8e31461016657600080fd5b366100d65760405134815233907fd6717f327e0cb88b4a97a7f67a453e9258252c34937ccbdd86de7cb840e7def39060200160405180910390a2005b600080fd5b3480156100e757600080fd5b506100fb6100f63660046108fd565b610268565b005b34801561010957600080fd5b506101317f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561015057600080fd5b5061015961044e565b60405161013b919061095f565b34801561017257600080fd5b5061019a7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161013b565b3480156101cb57600080fd5b506100fb6104dc565b3480156101e057600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661019a565b34801561020b57600080fd5b5061019a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561023f57600080fd5b506100fb61024e3660046108d9565b610569565b34801561025f57600080fd5b506100fb610699565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6040517f33681fb10000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000060248201526044810182905273ffffffffffffffffffffffffffffffffffffffff83811660648301527f000000000000000000000000000000000000000000000000000000000000000016906333681fb190608401600060405180830381600087803b1580156103aa57600080fd5b505af11580156103be573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fb160bbc4aa5a748ded771f39724cf08e31503f67d71efcb891aea516c01e16138460405161044291815260200190565b60405180910390a45050565b6001805461045b90610ae7565b80601f016020809104026020016040519081016040528092919081815260200182805461048790610ae7565b80156104d45780601f106104a9576101008083540402835291602001916104d4565b820191906000526020600020905b8154815290600101906020018083116104b757829003601f168201915b505050505081565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e5565b6105676000610864565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e5565b73ffffffffffffffffffffffffffffffffffffffff811661068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102e5565b61069681610864565b50565b6040517f4fe0eced0000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015247907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690634fe0eced9060240160206040518083038186803b15801561074057600080fd5b505afa158015610754573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107789190610929565b73ffffffffffffffffffffffffffffffffffffffff166302c8986f827f000000000000000000000000000000000000000000000000000000000000000030600160006040518663ffffffff1660e01b81526004016107d994939291906109d2565b6020604051808303818588803b1580156107f257600080fd5b505af1158015610806573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061082b9190610946565b5060405181815233907ffc3b98e76f4840b19b2829249e3a6ec2bbac1fb30a799c637102913eb3928a069060200160405180910390a250565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156108eb57600080fd5b81356108f681610b3b565b9392505050565b6000806040838503121561091057600080fd5b823561091b81610b3b565b946020939093013593505050565b60006020828403121561093b57600080fd5b81516108f681610b3b565b60006020828403121561095857600080fd5b5051919050565b600060208083528351808285015260005b8181101561098c57858101830151858201604001528201610970565b8181111561099e576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b8481526000602073ffffffffffffffffffffffffffffffffffffffff861681840152608060408401526000855481600182811c915080831680610a1657607f831692505b858310811415610a4d577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b6080880183905260a08801818015610a6c5760018114610a9b57610ac6565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861682528782019650610ac6565b60008c81526020902060005b86811015610ac057815484820152908501908901610aa7565b83019750505b50505050861515606087015250909250610ade915050565b95945050505050565b600181811c90821680610afb57607f821691505b60208210811415610b35577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461069657600080fdfea26469706673582212207893c19e610820b89cfa42c5c614961e4033eaefeaa33f91d81e698b3201312b64736f6c63430008060033a2646970667358221220e26b5bfd40cbf62085344bc8f5eb1af9401b72110e10c1acd9cc121441acdc8464736f6c6343000806003300000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba46000000000000000000000000ee2ebccb7cdb34a8a822b589f9e8427c24351bfc

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634cbcdc23146100515780636abcf8e31461007a5780639b602d60146100c6578063ffbf2bd8146100ed575b600080fd5b61006461005f3660046103b5565b610100565b6040516100719190610512565b60405180910390f35b6100a17f00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba4681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610071565b6100a17f000000000000000000000000ee2ebccb7cdb34a8a822b589f9e8427c24351bfc81565b6100a16100fb3660046103ce565b610177565b6000818152602081815260409182902080548351818402810184019094528084526060939283018282801561016b57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610140575b50505050509050919050565b600080831161020c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f50726f78795061796d656e74416464726573734d616e616765723a3a6465706c60448201527f6f793a205a45524f5f50524f4a45435400000000000000000000000000000000606482015260840160405180910390fd5b60007f00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba467f000000000000000000000000ee2ebccb7cdb34a8a822b589f9e8427c24351bfc858560405161025e906103a8565b61026b949392919061056c565b604051809103906000f080158015610287573d6000803e3d6000fd5b506040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015290915073ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b1580156102f257600080fd5b505af1158015610306573d6000803e3d6000fd5b5050506000858152602081815260408083208054600181018255908452919092200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555133915085907fb24384e68b59e576d1779bfdf48410e953d8c8064ed33288f28b16c7c6f78cf8906103999087906105b5565b60405180910390a39392505050565b610ee5806105ff83390190565b6000602082840312156103c757600080fd5b5035919050565b600080604083850312156103e157600080fd5b82359150602083013567ffffffffffffffff8082111561040057600080fd5b818501915085601f83011261041457600080fd5b813581811115610426576104266105cf565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561046c5761046c6105cf565b8160405282815288602084870101111561048557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000815180845260005b818110156104cd576020818501810151868301820152016104b1565b818111156104df576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020808252825182820181905260009190848201906040850190845b8181101561056057835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161052e565b50909695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526105ab60808301846104a7565b9695505050505050565b6020815260006105c860208301846104a7565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfe60e06040523480156200001157600080fd5b5060405162000ee538038062000ee5833981016040819052620000349162000174565b6200003f336200007e565b6001600160601b0319606085811b821660805284901b1660a05260c0829052805162000073906001906020840190620000ce565b5050505050620002f2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000dc9062000286565b90600052602060002090601f0160209004810192826200010057600085556200014b565b82601f106200011b57805160ff19168380011785556200014b565b828001600101855582156200014b579182015b828111156200014b5782518255916020019190600101906200012e565b50620001599291506200015d565b5090565b5b808211156200015957600081556001016200015e565b600080600080608085870312156200018b57600080fd5b84516200019881620002d9565b80945050602080860151620001ad81620002d9565b6040870151606088015191955093506001600160401b0380821115620001d257600080fd5b818801915088601f830112620001e757600080fd5b815181811115620001fc57620001fc620002c3565b604051601f8201601f19908116603f01168101908382118183101715620002275762000227620002c3565b816040528281528b868487010111156200024057600080fd5b600093505b8284101562000264578484018601518185018701529285019262000245565b82841115620002765760008684830101525b989b979a50959850505050505050565b600181811c908216806200029b57607f821691505b60208210811415620002bd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620002ef57600080fd5b50565b60805160601c60a05160601c60c051610b93620003526000396000818161010f0152818161031c015281816103c4015281816106c10152610796015260008181610211015261036601526000818161017801526106e90152610b936000f3fe60806040526004361061009a5760003560e01c8063715018a6116100695780639b602d601161004e5780639b602d60146101ff578063f2fde38b14610233578063fd2210311461025357600080fd5b8063715018a6146101bf5780638da5cb5b146101d457600080fd5b8063323a9beb146100db5780633fafa127146100fd57806358c3b870146101445780636abcf8e31461016657600080fd5b366100d65760405134815233907fd6717f327e0cb88b4a97a7f67a453e9258252c34937ccbdd86de7cb840e7def39060200160405180910390a2005b600080fd5b3480156100e757600080fd5b506100fb6100f63660046108fd565b610268565b005b34801561010957600080fd5b506101317f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561015057600080fd5b5061015961044e565b60405161013b919061095f565b34801561017257600080fd5b5061019a7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161013b565b3480156101cb57600080fd5b506100fb6104dc565b3480156101e057600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661019a565b34801561020b57600080fd5b5061019a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561023f57600080fd5b506100fb61024e3660046108d9565b610569565b34801561025f57600080fd5b506100fb610699565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6040517f33681fb10000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000060248201526044810182905273ffffffffffffffffffffffffffffffffffffffff83811660648301527f000000000000000000000000000000000000000000000000000000000000000016906333681fb190608401600060405180830381600087803b1580156103aa57600080fd5b505af11580156103be573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fb160bbc4aa5a748ded771f39724cf08e31503f67d71efcb891aea516c01e16138460405161044291815260200190565b60405180910390a45050565b6001805461045b90610ae7565b80601f016020809104026020016040519081016040528092919081815260200182805461048790610ae7565b80156104d45780601f106104a9576101008083540402835291602001916104d4565b820191906000526020600020905b8154815290600101906020018083116104b757829003601f168201915b505050505081565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e5565b6105676000610864565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e5565b73ffffffffffffffffffffffffffffffffffffffff811661068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102e5565b61069681610864565b50565b6040517f4fe0eced0000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015247907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690634fe0eced9060240160206040518083038186803b15801561074057600080fd5b505afa158015610754573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107789190610929565b73ffffffffffffffffffffffffffffffffffffffff166302c8986f827f000000000000000000000000000000000000000000000000000000000000000030600160006040518663ffffffff1660e01b81526004016107d994939291906109d2565b6020604051808303818588803b1580156107f257600080fd5b505af1158015610806573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061082b9190610946565b5060405181815233907ffc3b98e76f4840b19b2829249e3a6ec2bbac1fb30a799c637102913eb3928a069060200160405180910390a250565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156108eb57600080fd5b81356108f681610b3b565b9392505050565b6000806040838503121561091057600080fd5b823561091b81610b3b565b946020939093013593505050565b60006020828403121561093b57600080fd5b81516108f681610b3b565b60006020828403121561095857600080fd5b5051919050565b600060208083528351808285015260005b8181101561098c57858101830151858201604001528201610970565b8181111561099e576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b8481526000602073ffffffffffffffffffffffffffffffffffffffff861681840152608060408401526000855481600182811c915080831680610a1657607f831692505b858310811415610a4d577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b6080880183905260a08801818015610a6c5760018114610a9b57610ac6565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861682528782019650610ac6565b60008c81526020902060005b86811015610ac057815484820152908501908901610aa7565b83019750505b50505050861515606087015250909250610ade915050565b95945050505050565b600181811c90821680610afb57607f821691505b60208210811415610b35577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461069657600080fdfea26469706673582212207893c19e610820b89cfa42c5c614961e4033eaefeaa33f91d81e698b3201312b64736f6c63430008060033a2646970667358221220e26b5bfd40cbf62085344bc8f5eb1af9401b72110e10c1acd9cc121441acdc8464736f6c63430008060033

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

00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba46000000000000000000000000ee2ebccb7cdb34a8a822b589f9e8427c24351bfc

-----Decoded View---------------
Arg [0] : _terminalDirectory (address): 0x46C9999A2EDCD5aA177ed7E8af90c68b7d75Ba46
Arg [1] : _ticketBooth (address): 0xee2eBCcB7CDb34a8A822b589F9E8427C24351bfc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba46
Arg [1] : 000000000000000000000000ee2ebccb7cdb34a8a822b589f9e8427c24351bfc


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.