false
true
0

Contract Address Details

0x06968dE1434dAde57bc6CCcC98Dc095303405C41

Contract Name
ParentChild
Creator
0x97d009–beb267 at 0xe1a998–2cfcc7
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
25853513
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
ParentChild




Optimization enabled
false
Compiler version
v0.8.29+commit.ab55807c




EVM Version
shanghai




Verified at
2026-02-08T05:56:46.104325Z

Constructor Arguments

000000000000000000000000280c53ac06651486a5d9f597e853c02568d6df4f00000000000000000000000097d009484ab48b5a65e0d4b8503fcea9f5beb267

Arg [0] (address) : 0x280c53ac06651486a5d9f597e853c02568d6df4f
Arg [1] (address) : 0x97d009484ab48b5a65e0d4b8503fcea9f5beb267

              

contracts/parentchild.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

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

interface IMintableERC20 {
    function mint(address to, uint256 amount) external;
    function burnFrom(address account, uint256 amount) external;
}

interface IERC20Parent {
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

contract ParentChild is Ownable, ReentrancyGuard {
    IERC20Parent public parentToken;
    address public parentWallet;

    mapping(address => bool) public isChild;
    address[] public childList;

    event SwapParentToChild(address indexed user, address indexed childToken, uint256 amount);
    event SwapChildToChild(address indexed user, address indexed fromChild, address indexed toChild, uint256 amount);
    event ChildAdded(address indexed childToken);
    event ChildRemoved(address indexed childToken);

    constructor(
        address _parentToken,
        address _parentWallet
    )
        Ownable(msg.sender)   // 🔴 THIS IS THE FIX
    {
        parentToken = IERC20Parent(_parentToken);
        parentWallet = _parentWallet;
    }

    // ====== PARENT → CHILD ======
    function swapParentToChild(address childToken, uint256 amount)
        external
        nonReentrant
    {
        require(isChild[childToken], "Not a valid child token");
        require(amount > 0, "Amount must be > 0");

        require(
            parentToken.transferFrom(msg.sender, parentWallet, amount),
            "Parent transfer failed"
        );

        IMintableERC20(childToken).mint(msg.sender, amount);

        emit SwapParentToChild(msg.sender, childToken, amount);
    }

    // ====== CHILD → CHILD ======
    function swapChildToChild(address fromChild, address toChild, uint256 amount)
        external
        nonReentrant
    {
        require(isChild[fromChild] && isChild[toChild], "Invalid child tokens");
        require(fromChild != toChild, "Same token");
        require(amount > 0, "Amount must be > 0");

        IMintableERC20(fromChild).burnFrom(msg.sender, amount);
        IMintableERC20(toChild).mint(msg.sender, amount);

        emit SwapChildToChild(msg.sender, fromChild, toChild, amount);
    }

    // ====== ADMIN ======
    function addChild(address childToken) external onlyOwner {
        require(!isChild[childToken], "Already a child");
        isChild[childToken] = true;
        childList.push(childToken);
        emit ChildAdded(childToken);
    }

    function removeChild(address childToken) external onlyOwner {
        require(isChild[childToken], "Not a child");
        isChild[childToken] = false;
        emit ChildRemoved(childToken);
    }

    function setParentWallet(address _wallet) external onlyOwner {
        parentWallet = _wallet;
    }

    function getAllChildren() external view returns (address[] memory) {
        return childList;
    }
}
        

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}
          

Compiler Settings

{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"shanghai","compilationTarget":{"contracts/parentchild.sol":"ParentChild"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_parentToken","internalType":"address"},{"type":"address","name":"_parentWallet","internalType":"address"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"event","name":"ChildAdded","inputs":[{"type":"address","name":"childToken","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ChildRemoved","inputs":[{"type":"address","name":"childToken","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SwapChildToChild","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"fromChild","internalType":"address","indexed":true},{"type":"address","name":"toChild","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SwapParentToChild","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"childToken","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addChild","inputs":[{"type":"address","name":"childToken","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"childList","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getAllChildren","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isChild","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20Parent"}],"name":"parentToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"parentWallet","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeChild","inputs":[{"type":"address","name":"childToken","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setParentWallet","inputs":[{"type":"address","name":"_wallet","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapChildToChild","inputs":[{"type":"address","name":"fromChild","internalType":"address"},{"type":"address","name":"toChild","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapParentToChild","inputs":[{"type":"address","name":"childToken","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

0x608060405234801561000f575f5ffd5b506040516118d23803806118d28339818101604052810190610031919061025f565b335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161009991906102ac565b60405180910390fd5b6100b18161014060201b60201c565b50600180819055508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506102c5565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61022e82610205565b9050919050565b61023e81610224565b8114610248575f5ffd5b50565b5f8151905061025981610235565b92915050565b5f5f6040838503121561027557610274610201565b5b5f6102828582860161024b565b92505060206102938582860161024b565b9150509250929050565b6102a681610224565b82525050565b5f6020820190506102bf5f83018461029d565b92915050565b611600806102d25f395ff3fe608060405234801561000f575f5ffd5b50600436106100cd575f3560e01c8063890b00d91161008a578063b92ddeb011610064578063b92ddeb0146101d5578063ec52a081146101f3578063f2fde38b1461020f578063fc91a8971461022b576100cd565b8063890b00d9146101695780638da5cb5b14610199578063ab76f7d8146101b7576100cd565b806301fbabcd146100d157806312a39db2146100ed5780631eee993a14610109578063590232a914610125578063715018a61461014157806380a540011461014b575b5f5ffd5b6100eb60048036038101906100e69190610ee4565b61025b565b005b61010760048036038101906101029190610ee4565b6102a6565b005b610123600480360381019061011e9190610ee4565b6103d1565b005b61013f600480360381019061013a9190610f42565b61055e565b005b61014961084a565b005b61015361085d565b6040516101609190610fed565b60405180910390f35b610183600480360381019061017e9190611006565b610882565b6040516101909190611040565b60405180910390f35b6101a16108bd565b6040516101ae9190611040565b60405180910390f35b6101bf6108e4565b6040516101cc9190611040565b60405180910390f35b6101dd610909565b6040516101ea9190611110565b60405180910390f35b61020d60048036038101906102089190611130565b610994565b005b61022960048036038101906102249190610ee4565b610c3e565b005b61024560048036038101906102409190610ee4565b610cc2565b6040516102529190611188565b60405180910390f35b610263610cdf565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6102ae610cdf565b60045f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032e906111fb565b60405180910390fd5b5f60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f09a87dff11d3d583e22d029f0e40d7d53ad310a87624607edddc58093b9de8ec60405160405180910390a250565b6103d9610cdf565b60045f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045a90611263565b60405180910390fd5b600160045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600581908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fa016866023d98d9af30c4dd99810d92915ae7897f25baa30c8c826bf077f486b60405160405180910390a250565b610566610d66565b60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015610602575060045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b610641576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610638906112cb565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a690611333565b60405180910390fd5b5f81116106f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e89061139b565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166379cc679033836040518363ffffffff1660e01b815260040161072c9291906113c8565b5f604051808303815f87803b158015610743575f5ffd5b505af1158015610755573d5f5f3e3d5ffd5b505050508173ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016107949291906113c8565b5f604051808303815f87803b1580156107ab575f5ffd5b505af11580156107bd573d5f5f3e3d5ffd5b505050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff2b7274e1ec1987378b85f71cad88921dbb650b145270ea5d9ff049dccae33978460405161083591906113ef565b60405180910390a4610845610db5565b505050565b610852610cdf565b61085b5f610dbe565b565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60058181548110610891575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600580548060200260200160405190810160405280929190818152602001828054801561098a57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610941575b5050505050905090565b61099c610d66565b60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1c90611452565b60405180910390fd5b5f8111610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e9061139b565b60405180910390fd5b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b8152600401610ae693929190611470565b6020604051808303815f875af1158015610b02573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b2691906114cf565b610b65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5c90611544565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401610ba09291906113c8565b5f604051808303815f87803b158015610bb7575f5ffd5b505af1158015610bc9573d5f5f3e3d5ffd5b505050508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f7a82183f3b91e875b3326f3eb44dc36fd0fc774453e18ef3d2cdeb420ca361c483604051610c2a91906113ef565b60405180910390a3610c3a610db5565b5050565b610c46610cdf565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610cb6575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610cad9190611040565b60405180910390fd5b610cbf81610dbe565b50565b6004602052805f5260405f205f915054906101000a900460ff1681565b610ce7610e7f565b73ffffffffffffffffffffffffffffffffffffffff16610d056108bd565b73ffffffffffffffffffffffffffffffffffffffff1614610d6457610d28610e7f565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610d5b9190611040565b60405180910390fd5b565b600260015403610dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da2906115ac565b60405180910390fd5b6002600181905550565b60018081905550565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610eb382610e8a565b9050919050565b610ec381610ea9565b8114610ecd575f5ffd5b50565b5f81359050610ede81610eba565b92915050565b5f60208284031215610ef957610ef8610e86565b5b5f610f0684828501610ed0565b91505092915050565b5f819050919050565b610f2181610f0f565b8114610f2b575f5ffd5b50565b5f81359050610f3c81610f18565b92915050565b5f5f5f60608486031215610f5957610f58610e86565b5b5f610f6686828701610ed0565b9350506020610f7786828701610ed0565b9250506040610f8886828701610f2e565b9150509250925092565b5f819050919050565b5f610fb5610fb0610fab84610e8a565b610f92565b610e8a565b9050919050565b5f610fc682610f9b565b9050919050565b5f610fd782610fbc565b9050919050565b610fe781610fcd565b82525050565b5f6020820190506110005f830184610fde565b92915050565b5f6020828403121561101b5761101a610e86565b5b5f61102884828501610f2e565b91505092915050565b61103a81610ea9565b82525050565b5f6020820190506110535f830184611031565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61108b81610ea9565b82525050565b5f61109c8383611082565b60208301905092915050565b5f602082019050919050565b5f6110be82611059565b6110c88185611063565b93506110d383611073565b805f5b838110156111035781516110ea8882611091565b97506110f5836110a8565b9250506001810190506110d6565b5085935050505092915050565b5f6020820190508181035f83015261112881846110b4565b905092915050565b5f5f6040838503121561114657611145610e86565b5b5f61115385828601610ed0565b925050602061116485828601610f2e565b9150509250929050565b5f8115159050919050565b6111828161116e565b82525050565b5f60208201905061119b5f830184611179565b92915050565b5f82825260208201905092915050565b7f4e6f742061206368696c640000000000000000000000000000000000000000005f82015250565b5f6111e5600b836111a1565b91506111f0826111b1565b602082019050919050565b5f6020820190508181035f830152611212816111d9565b9050919050565b7f416c72656164792061206368696c6400000000000000000000000000000000005f82015250565b5f61124d600f836111a1565b915061125882611219565b602082019050919050565b5f6020820190508181035f83015261127a81611241565b9050919050565b7f496e76616c6964206368696c6420746f6b656e730000000000000000000000005f82015250565b5f6112b56014836111a1565b91506112c082611281565b602082019050919050565b5f6020820190508181035f8301526112e2816112a9565b9050919050565b7f53616d6520746f6b656e000000000000000000000000000000000000000000005f82015250565b5f61131d600a836111a1565b9150611328826112e9565b602082019050919050565b5f6020820190508181035f83015261134a81611311565b9050919050565b7f416d6f756e74206d757374206265203e203000000000000000000000000000005f82015250565b5f6113856012836111a1565b915061139082611351565b602082019050919050565b5f6020820190508181035f8301526113b281611379565b9050919050565b6113c281610f0f565b82525050565b5f6040820190506113db5f830185611031565b6113e860208301846113b9565b9392505050565b5f6020820190506114025f8301846113b9565b92915050565b7f4e6f7420612076616c6964206368696c6420746f6b656e0000000000000000005f82015250565b5f61143c6017836111a1565b915061144782611408565b602082019050919050565b5f6020820190508181035f83015261146981611430565b9050919050565b5f6060820190506114835f830186611031565b6114906020830185611031565b61149d60408301846113b9565b949350505050565b6114ae8161116e565b81146114b8575f5ffd5b50565b5f815190506114c9816114a5565b92915050565b5f602082840312156114e4576114e3610e86565b5b5f6114f1848285016114bb565b91505092915050565b7f506172656e74207472616e73666572206661696c6564000000000000000000005f82015250565b5f61152e6016836111a1565b9150611539826114fa565b602082019050919050565b5f6020820190508181035f83015261155b81611522565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f611596601f836111a1565b91506115a182611562565b602082019050919050565b5f6020820190508181035f8301526115c38161158a565b905091905056fea2646970667358221220b6ef12cf7ef38e08b18e0c02f79e4a4fbcef2d90a24c0259b545288bd8b2c07e64736f6c634300081d0033000000000000000000000000280c53ac06651486a5d9f597e853c02568d6df4f00000000000000000000000097d009484ab48b5a65e0d4b8503fcea9f5beb267

Deployed ByteCode

0x608060405234801561000f575f5ffd5b50600436106100cd575f3560e01c8063890b00d91161008a578063b92ddeb011610064578063b92ddeb0146101d5578063ec52a081146101f3578063f2fde38b1461020f578063fc91a8971461022b576100cd565b8063890b00d9146101695780638da5cb5b14610199578063ab76f7d8146101b7576100cd565b806301fbabcd146100d157806312a39db2146100ed5780631eee993a14610109578063590232a914610125578063715018a61461014157806380a540011461014b575b5f5ffd5b6100eb60048036038101906100e69190610ee4565b61025b565b005b61010760048036038101906101029190610ee4565b6102a6565b005b610123600480360381019061011e9190610ee4565b6103d1565b005b61013f600480360381019061013a9190610f42565b61055e565b005b61014961084a565b005b61015361085d565b6040516101609190610fed565b60405180910390f35b610183600480360381019061017e9190611006565b610882565b6040516101909190611040565b60405180910390f35b6101a16108bd565b6040516101ae9190611040565b60405180910390f35b6101bf6108e4565b6040516101cc9190611040565b60405180910390f35b6101dd610909565b6040516101ea9190611110565b60405180910390f35b61020d60048036038101906102089190611130565b610994565b005b61022960048036038101906102249190610ee4565b610c3e565b005b61024560048036038101906102409190610ee4565b610cc2565b6040516102529190611188565b60405180910390f35b610263610cdf565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6102ae610cdf565b60045f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032e906111fb565b60405180910390fd5b5f60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f09a87dff11d3d583e22d029f0e40d7d53ad310a87624607edddc58093b9de8ec60405160405180910390a250565b6103d9610cdf565b60045f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045a90611263565b60405180910390fd5b600160045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600581908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fa016866023d98d9af30c4dd99810d92915ae7897f25baa30c8c826bf077f486b60405160405180910390a250565b610566610d66565b60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015610602575060045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b610641576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610638906112cb565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a690611333565b60405180910390fd5b5f81116106f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e89061139b565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166379cc679033836040518363ffffffff1660e01b815260040161072c9291906113c8565b5f604051808303815f87803b158015610743575f5ffd5b505af1158015610755573d5f5f3e3d5ffd5b505050508173ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016107949291906113c8565b5f604051808303815f87803b1580156107ab575f5ffd5b505af11580156107bd573d5f5f3e3d5ffd5b505050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff2b7274e1ec1987378b85f71cad88921dbb650b145270ea5d9ff049dccae33978460405161083591906113ef565b60405180910390a4610845610db5565b505050565b610852610cdf565b61085b5f610dbe565b565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60058181548110610891575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600580548060200260200160405190810160405280929190818152602001828054801561098a57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610941575b5050505050905090565b61099c610d66565b60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1c90611452565b60405180910390fd5b5f8111610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e9061139b565b60405180910390fd5b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b8152600401610ae693929190611470565b6020604051808303815f875af1158015610b02573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b2691906114cf565b610b65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5c90611544565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401610ba09291906113c8565b5f604051808303815f87803b158015610bb7575f5ffd5b505af1158015610bc9573d5f5f3e3d5ffd5b505050508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f7a82183f3b91e875b3326f3eb44dc36fd0fc774453e18ef3d2cdeb420ca361c483604051610c2a91906113ef565b60405180910390a3610c3a610db5565b5050565b610c46610cdf565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610cb6575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610cad9190611040565b60405180910390fd5b610cbf81610dbe565b50565b6004602052805f5260405f205f915054906101000a900460ff1681565b610ce7610e7f565b73ffffffffffffffffffffffffffffffffffffffff16610d056108bd565b73ffffffffffffffffffffffffffffffffffffffff1614610d6457610d28610e7f565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610d5b9190611040565b60405180910390fd5b565b600260015403610dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da2906115ac565b60405180910390fd5b6002600181905550565b60018081905550565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610eb382610e8a565b9050919050565b610ec381610ea9565b8114610ecd575f5ffd5b50565b5f81359050610ede81610eba565b92915050565b5f60208284031215610ef957610ef8610e86565b5b5f610f0684828501610ed0565b91505092915050565b5f819050919050565b610f2181610f0f565b8114610f2b575f5ffd5b50565b5f81359050610f3c81610f18565b92915050565b5f5f5f60608486031215610f5957610f58610e86565b5b5f610f6686828701610ed0565b9350506020610f7786828701610ed0565b9250506040610f8886828701610f2e565b9150509250925092565b5f819050919050565b5f610fb5610fb0610fab84610e8a565b610f92565b610e8a565b9050919050565b5f610fc682610f9b565b9050919050565b5f610fd782610fbc565b9050919050565b610fe781610fcd565b82525050565b5f6020820190506110005f830184610fde565b92915050565b5f6020828403121561101b5761101a610e86565b5b5f61102884828501610f2e565b91505092915050565b61103a81610ea9565b82525050565b5f6020820190506110535f830184611031565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61108b81610ea9565b82525050565b5f61109c8383611082565b60208301905092915050565b5f602082019050919050565b5f6110be82611059565b6110c88185611063565b93506110d383611073565b805f5b838110156111035781516110ea8882611091565b97506110f5836110a8565b9250506001810190506110d6565b5085935050505092915050565b5f6020820190508181035f83015261112881846110b4565b905092915050565b5f5f6040838503121561114657611145610e86565b5b5f61115385828601610ed0565b925050602061116485828601610f2e565b9150509250929050565b5f8115159050919050565b6111828161116e565b82525050565b5f60208201905061119b5f830184611179565b92915050565b5f82825260208201905092915050565b7f4e6f742061206368696c640000000000000000000000000000000000000000005f82015250565b5f6111e5600b836111a1565b91506111f0826111b1565b602082019050919050565b5f6020820190508181035f830152611212816111d9565b9050919050565b7f416c72656164792061206368696c6400000000000000000000000000000000005f82015250565b5f61124d600f836111a1565b915061125882611219565b602082019050919050565b5f6020820190508181035f83015261127a81611241565b9050919050565b7f496e76616c6964206368696c6420746f6b656e730000000000000000000000005f82015250565b5f6112b56014836111a1565b91506112c082611281565b602082019050919050565b5f6020820190508181035f8301526112e2816112a9565b9050919050565b7f53616d6520746f6b656e000000000000000000000000000000000000000000005f82015250565b5f61131d600a836111a1565b9150611328826112e9565b602082019050919050565b5f6020820190508181035f83015261134a81611311565b9050919050565b7f416d6f756e74206d757374206265203e203000000000000000000000000000005f82015250565b5f6113856012836111a1565b915061139082611351565b602082019050919050565b5f6020820190508181035f8301526113b281611379565b9050919050565b6113c281610f0f565b82525050565b5f6040820190506113db5f830185611031565b6113e860208301846113b9565b9392505050565b5f6020820190506114025f8301846113b9565b92915050565b7f4e6f7420612076616c6964206368696c6420746f6b656e0000000000000000005f82015250565b5f61143c6017836111a1565b915061144782611408565b602082019050919050565b5f6020820190508181035f83015261146981611430565b9050919050565b5f6060820190506114835f830186611031565b6114906020830185611031565b61149d60408301846113b9565b949350505050565b6114ae8161116e565b81146114b8575f5ffd5b50565b5f815190506114c9816114a5565b92915050565b5f602082840312156114e4576114e3610e86565b5b5f6114f1848285016114bb565b91505092915050565b7f506172656e74207472616e73666572206661696c6564000000000000000000005f82015250565b5f61152e6016836111a1565b9150611539826114fa565b602082019050919050565b5f6020820190508181035f83015261155b81611522565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f611596601f836111a1565b91506115a182611562565b602082019050919050565b5f6020820190508181035f8301526115c38161158a565b905091905056fea2646970667358221220b6ef12cf7ef38e08b18e0c02f79e4a4fbcef2d90a24c0259b545288bd8b2c07e64736f6c634300081d0033