Sepolia Testnet

Contract

0xE452027cdEF746c7Cd3DB31CB700428b16cD8E51

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Transfer61355932024-06-18 19:16:245 hrs ago1718738184IN
0xE452027c...b16cD8E51
0 ETH0.000011970.10776103
Transfer60926412024-06-12 13:27:126 days ago1718198832IN
0xE452027c...b16cD8E51
0 ETH0.0052126653.19369548
Transfer60926202024-06-12 13:22:246 days ago1718198544IN
0xE452027c...b16cD8E51
0 ETH0.0029562753.5325073
Transfer60926202024-06-12 13:22:246 days ago1718198544IN
0xE452027c...b16cD8E51
0 ETH0.0053529253.5325073
Transfer60869252024-06-11 17:20:367 days ago1718126436IN
0xE452027c...b16cD8E51
0 ETH0.00070967.09478234
Approve And Call60846452024-06-11 9:14:487 days ago1718097288IN
0xE452027c...b16cD8E51
0 ETH0.001080743.33852937
Transfer60801132024-06-10 17:56:248 days ago1718042184IN
0xE452027c...b16cD8E51
0 ETH0.000545087.92316045
Approve And Call60509982024-06-06 11:57:2412 days ago1717675044IN
0xE452027c...b16cD8E51
0 ETH0.0058734821.19926306
Approve And Call60439582024-06-05 11:09:2413 days ago1717585764IN
0xE452027c...b16cD8E51
0 ETH0.04167101117.17618323
Transfer60406242024-06-04 23:05:2414 days ago1717542324IN
0xE452027c...b16cD8E51
0 ETH0.000054130.55243147
Transfer60406182024-06-04 23:04:1214 days ago1717542252IN
0xE452027c...b16cD8E51
0 ETH0.000061360.55246811
Approve And Call60390132024-06-04 16:59:1214 days ago1717520352IN
0xE452027c...b16cD8E51
0 ETH0.0040993811.5276007
Approve And Call60377772024-06-04 12:15:2414 days ago1717503324IN
0xE452027c...b16cD8E51
0 ETH0.008571924.10362848
Approve And Call60375812024-06-04 11:31:2414 days ago1717500684IN
0xE452027c...b16cD8E51
0 ETH0.0141301439.73304534
Approve And Call60076002024-05-30 16:39:4819 days ago1717087188IN
0xE452027c...b16cD8E51
0 ETH0.000705651.9842429
Approve And Call60047552024-05-30 5:26:4819 days ago1717046808IN
0xE452027c...b16cD8E51
0 ETH0.000355621
Approve And Call60011092024-05-29 15:46:4820 days ago1716997608IN
0xE452027c...b16cD8E51
0 ETH0.0092989526.14805947
Approve And Call60011082024-05-29 15:46:3620 days ago1716997596IN
0xE452027c...b16cD8E51
0 ETH0.0083052723.35389323
Approve And Call59995392024-05-29 9:40:1220 days ago1716975612IN
0xE452027c...b16cD8E51
0 ETH0.0135320138.26634997
Transfer59995202024-05-29 9:36:1220 days ago1716975372IN
0xE452027c...b16cD8E51
0 ETH0.005052550.52199092
Transfer59938852024-05-28 11:51:1221 days ago1716897072IN
0xE452027c...b16cD8E51
0 ETH0.0037551533.81313855
Transfer59934192024-05-28 9:56:0021 days ago1716890160IN
0xE452027c...b16cD8E51
0 ETH0.0068866568.87065627
Transfer59934152024-05-28 9:55:1221 days ago1716890112IN
0xE452027c...b16cD8E51
0 ETH0.008155273.42533859
Transfer59932372024-05-28 9:13:2421 days ago1716887604IN
0xE452027c...b16cD8E51
0 ETH0.0064784859.39860587
Transfer59931682024-05-28 8:56:4821 days ago1716886608IN
0xE452027c...b16cD8E51
0 ETH0.0042408179.7145369
View all transactions

Advanced mode:
Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SNTV2

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : SNTV2.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19;

import { MiniMeToken } from "@vacp2p/minime/contracts/MiniMeToken.sol";

contract SNTV2 is MiniMeToken {
    constructor(
        string memory _tokenName,
        uint8 _decimalUnits,
        string memory _tokenSymbol,
        bool _transferable
    )
        MiniMeToken(MiniMeToken(payable(address(0))), 0, _tokenName, _decimalUnits, _tokenSymbol, _transferable)
    { }
}

File 2 of 17 : MiniMeToken.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

import { MiniMeBase } from "./MiniMeBase.sol";

contract MiniMeToken is MiniMeBase {
    ////////////////
    // Constructor
    ////////////////

    /// @notice Constructor to create a MiniMeToken
    /// @param _parentToken Address of the parent token, set to 0x0 if it is a
    ///  new token
    /// @param _parentSnapShotBlock Block of the parent token that will
    ///  determine the initial distribution of the clone token, set to 0 if it
    ///  is a new token
    /// @param _tokenName Name of the new token
    /// @param _decimalUnits Number of decimals of the new token
    /// @param _tokenSymbol Token Symbol for the new token
    /// @param _transfersEnabled If true, tokens will be able to be transferred
    constructor(
        MiniMeToken _parentToken,
        uint256 _parentSnapShotBlock,
        string memory _tokenName,
        uint8 _decimalUnits,
        string memory _tokenSymbol,
        bool _transfersEnabled
    )
        MiniMeBase(_parentToken, _parentSnapShotBlock, _tokenName, _decimalUnits, _tokenSymbol, _transfersEnabled)
    { }

    ////////////////
    // Generate and destroy tokens
    ////////////////

    /// @notice Generates `_amount` tokens that are assigned to `_owner`
    /// @param _owner The address that will be assigned the new tokens
    /// @param _amount The quantity of tokens generated
    /// @return True if the tokens are generated correctly
    function generateTokens(address _owner, uint256 _amount) public onlyController returns (bool) {
        return _mint(_owner, _amount);
    }

    /// @notice Burns `_amount` tokens from `_owner`
    /// @param _owner The address that will lose the tokens
    /// @param _amount The quantity of tokens to burn
    /// @return True if the tokens are burned correctly
    function destroyTokens(address _owner, uint256 _amount) public onlyController returns (bool) {
        return _burn(_owner, _amount);
    }
}

File 3 of 17 : MiniMeBase.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

error TransfersDisabled();
error ParentSnapshotNotReached();
error NotEnoughBalance();
error NotEnoughAllowance();
error InvalidDestination();
error ControllerRejected();
error Overflow();
error AllowanceAlreadySet();
error ControllerNotSet();
error ERC2612ExpiredSignature(uint256 deadline);
error ERC2612InvalidSigner(address signer, address owner);
/*
    Copyright 2016, Jordi Baylina

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import { Controlled } from "./Controlled.sol";
import { TokenController } from "./TokenController.sol";
import { ApproveAndCallFallBack } from "./ApproveAndCallFallBack.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import { Nonces } from "./Nonces.sol";

/// @title MiniMeBase Contract
/// @author Jordi Baylina
/// @dev This token contract's goal is to make it easy for anyone to clone this
///  token using the token distribution at a given block, this will allow DAO's
///  and DApps to upgrade their features in a decentralized manner without
///  affecting the original token
abstract contract MiniMeBase is Controlled, IERC20, IERC20Permit, EIP712, Nonces {
    string public name; //The Token's name: e.g. DigixDAO Tokens
    uint8 public immutable decimals; //Number of decimals of the smallest unit
    string public symbol; //An identifier: e.g. REP
    string public constant TOKEN_VERSION = "MMT_0.2"; //An arbitrary versioning scheme
    bytes32 private constant PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /// @dev `Checkpoint` is the structure that attaches a block number to a
    ///  given value, the block number attached is the one that last changed the
    ///  value
    struct Checkpoint {
        // `fromBlock` is the block number that the value was generated from
        uint128 fromBlock;
        // `value` is the amount of tokens at a specific block number
        uint128 value;
    }

    // `parentToken` is the Token address that was cloned to produce this token;
    //  it will be 0x0 for a token that was not cloned
    MiniMeBase public immutable parentToken;

    // `parentSnapShotBlock` is the block number from the Parent Token that was
    //  used to determine the initial distribution of the Clone Token
    uint256 public immutable parentSnapShotBlock;

    // `creationBlock` is the block number that the Clone Token was created
    uint256 public immutable creationBlock;

    // `balances` is the map that tracks the balance of each address, in this
    //  contract when the balance changes the block number that the change
    //  occurred is also included in the map
    mapping(address account => Checkpoint[] history) private balances;

    // `allowed` tracks any extra transfer rights as in all ERC20 tokens
    mapping(address account => mapping(address authorized => uint256 amount) allowance) private allowed;

    // Tracks the history of the `totalSupply` of the token
    Checkpoint[] private totalSupplyHistory;

    // Flag that determines if the token is transferable or not.
    bool public transfersEnabled;

    /// @notice Constructor to create a MiniMeBase
    /// @param _parentToken Address of the parent token, set to 0x0 if it is a
    ///  new token
    /// @param _parentSnapShotBlock Block of the parent token that will
    ///  determine the initial distribution of the clone token, set to 0 if it
    ///  is a new token
    /// @param _tokenName Name of the new token
    /// @param _decimalUnits Number of decimals of the new token
    /// @param _tokenSymbol Token Symbol for the new token
    /// @param _transfersEnabled If true, tokens will be able to be transferred
    constructor(
        MiniMeBase _parentToken,
        uint256 _parentSnapShotBlock,
        string memory _tokenName,
        uint8 _decimalUnits,
        string memory _tokenSymbol,
        bool _transfersEnabled
    )
        EIP712(_tokenName, TOKEN_VERSION)
    {
        name = _tokenName; // Set the name
        decimals = _decimalUnits; // Set the decimals
        symbol = _tokenSymbol; // Set the symbol
        parentToken = _parentToken;
        parentSnapShotBlock = _parentSnapShotBlock;
        transfersEnabled = _transfersEnabled;
        creationBlock = block.number;
    }

    ///////////////////
    // ERC20 Methods
    ///////////////////

    /// @notice Send `_amount` tokens to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _amount The amount of tokens to be transferred
    /// @return success Whether the transfer was successful or not
    function transfer(address _to, uint256 _amount) public returns (bool success) {
        if (!transfersEnabled) revert TransfersDisabled();
        doTransfer(msg.sender, _to, _amount);
        return true;
    }

    /// @notice Send `_amount` tokens to `_to` from `_from` on the condition it
    ///  is approved by `_from`
    /// @param _from The address holding the tokens being transferred
    /// @param _to The address of the recipient
    /// @param _amount The amount of tokens to be transferred
    /// @return success True if the transfer was successful
    function transferFrom(address _from, address _to, uint256 _amount) public returns (bool success) {
        // The controller of this contract can move tokens around at will,
        //  this is important to recognize! Confirm that you trust the
        //  controller of this contract, which in most situations should be
        //  another open source smart contract or 0x0
        if (msg.sender != controller) {
            if (!transfersEnabled) revert TransfersDisabled();

            // The standard ERC 20 transferFrom functionality
            if (allowed[_from][msg.sender] < _amount) revert NotEnoughAllowance();
            allowed[_from][msg.sender] -= _amount;
        }
        doTransfer(_from, _to, _amount);
        return true;
    }

    /// @dev This is the actual transfer function in the token contract, it can
    ///  only be called by other functions in this contract.
    /// @param _from The address holding the tokens being transferred
    /// @param _to The address of the recipient
    /// @param _amount The amount of tokens to be transferred
    function doTransfer(address _from, address _to, uint256 _amount) internal {
        if (_amount == 0) {
            emit Transfer(_from, _to, _amount); // Follow the spec to louch the event when transfer 0
            return;
        }

        if (parentSnapShotBlock >= block.number) revert ParentSnapshotNotReached();

        // Do not allow transfer to 0x0 or the token contract itself
        if ((_to == address(0)) || (_to == address(this))) revert InvalidDestination();

        // If the amount being transfered is more than the balance of the
        //  account the transfer throws
        uint256 previousBalanceFrom = balanceOfAt(_from, block.number);

        if (previousBalanceFrom < _amount) revert NotEnoughBalance();

        // First update the balance array with the new value for the address
        //  sending the tokens
        updateValueAtNow(balances[_from], previousBalanceFrom - _amount);

        // Then update the balance array with the new value for the address
        //  receiving the tokens
        uint256 previousBalanceTo = balanceOfAt(_to, block.number);
        updateValueAtNow(balances[_to], previousBalanceTo + _amount);

        // Alerts the token controller of the transfer
        if (isContract(controller)) {
            if (!TokenController(controller).onTransfer(_from, _to, _amount)) {
                revert ControllerRejected();
            }
        }

        // An event to make the transfer easy to find on the blockchain
        emit Transfer(_from, _to, _amount);
    }

    /// @param _owner The address that's balance is being requested
    /// @return balance The balance of `_owner` at the current block
    function balanceOf(address _owner) public view returns (uint256 balance) {
        return balanceOfAt(_owner, block.number);
    }

    /// @notice `msg.sender` approves `_spender` to spend `_amount` tokens on
    ///  its behalf. This is a modified version of the ERC20 approve function
    ///  to be a little bit safer
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _amount The amount of tokens to be approved for transfer
    /// @return success True if the approval was successful
    function approve(address _spender, uint256 _amount) public returns (bool success) {
        return doApprove(msg.sender, _spender, _amount);
    }

    /**
     * @inheritdoc IERC20Permit
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        public
        virtual
    {
        if (block.timestamp > deadline) {
            revert ERC2612ExpiredSignature(deadline);
        }

        bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        if (signer != owner) {
            revert ERC2612InvalidSigner(signer, owner);
        }

        doApprove(owner, spender, value);
    }

    function doApprove(address _owner, address _spender, uint256 _amount) internal returns (bool) {
        if (!transfersEnabled) revert TransfersDisabled();

        // To change the approve amount you first have to reduce the addresses`
        //  allowance to zero by calling `approve(_spender,0)` if it is not
        //  already 0 to mitigate the race condition described here:
        //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
        if ((_amount != 0) && (allowed[_owner][_spender] != 0)) revert AllowanceAlreadySet();

        // Alerts the token controller of the approve function call
        if (isContract(controller)) {
            if (!TokenController(controller).onApprove(_owner, _spender, _amount)) {
                revert ControllerRejected();
            }
        }

        allowed[_owner][_spender] = _amount;
        emit Approval(_owner, _spender, _amount);
        return true;
    }

    /// @dev This function makes it easy to read the `allowed[]` map
    /// @param _owner The address of the account that owns the token
    /// @param _spender The address of the account able to transfer the tokens
    /// @return remaining Amount of remaining tokens of _owner that _spender is allowed
    ///  to spend
    function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    /// @notice `msg.sender` approves `_spender` to send `_amount` tokens on
    ///  its behalf, and then a function is triggered in the contract that is
    ///  being approved, `_spender`. This allows users to use their tokens to
    ///  interact with contracts in one function call instead of two
    /// @param _spender The address of the contract able to transfer the tokens
    /// @param _amount The amount of tokens to be approved for transfer
    /// @return success True if the function call was successful
    function approveAndCall(address _spender, uint256 _amount, bytes memory _extraData) public returns (bool success) {
        approve(_spender, _amount);

        ApproveAndCallFallBack(_spender).receiveApproval(msg.sender, _amount, address(this), _extraData);

        return true;
    }

    /// @dev This function makes it easy to get the total number of tokens
    /// @return The total number of tokens
    function totalSupply() public view returns (uint256) {
        return totalSupplyAt(block.number);
    }

    ////////////////
    // Query balance and totalSupply in History
    ////////////////

    /// @dev Queries the balance of `_owner` at a specific `_blockNumber`
    /// @param _owner The address from which the balance will be retrieved
    /// @param _blockNumber The block number when the balance is queried
    /// @return The balance at `_blockNumber`
    function balanceOfAt(address _owner, uint256 _blockNumber) public view returns (uint256) {
        // These next few lines are used when the balance of the token is
        //  requested before a check point was ever created for this token, it
        //  requires that the `parentToken.balanceOfAt` be queried at the
        //  genesis block for that token as this contains initial balance of
        //  this token
        if ((balances[_owner].length == 0) || (balances[_owner][0].fromBlock > _blockNumber)) {
            if (address(parentToken) != address(0)) {
                return parentToken.balanceOfAt(_owner, min(_blockNumber, parentSnapShotBlock));
            } else {
                // Has no parent
                return 0;
            }

            // This will return the expected balance during normal situations
        } else {
            return getValueAt(balances[_owner], _blockNumber);
        }
    }

    /// @notice Total amount of tokens at a specific `_blockNumber`.
    /// @param _blockNumber The block number when the totalSupply is queried
    /// @return The total amount of tokens at `_blockNumber`
    function totalSupplyAt(uint256 _blockNumber) public view returns (uint256) {
        // These next few lines are used when the totalSupply of the token is
        //  requested before a check point was ever created for this token, it
        //  requires that the `parentToken.totalSupplyAt` be queried at the
        //  genesis block for this token as that contains totalSupply of this
        //  token at this block number.
        if ((totalSupplyHistory.length == 0) || (totalSupplyHistory[0].fromBlock > _blockNumber)) {
            if (address(parentToken) != address(0)) {
                return parentToken.totalSupplyAt(min(_blockNumber, parentSnapShotBlock));
            } else {
                return 0;
            }

            // This will return the expected totalSupply during normal situations
        } else {
            return getValueAt(totalSupplyHistory, _blockNumber);
        }
    }

    ///
    /// @inheritdoc IERC20Permit
    ///
    function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) {
        return super.nonces(owner);
    }

    ///
    /// @inheritdoc IERC20Permit
    ///
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view virtual returns (bytes32) {
        return _domainSeparatorV4();
    }

    ////////////////
    // Generate and destroy tokens
    ////////////////

    /// @notice Generates `_amount` tokens that are assigned to `_owner`
    /// @param _owner The address that will be assigned the new tokens
    /// @param _amount The quantity of tokens generated
    /// @return True if the tokens are generated correctly
    function _mint(address _owner, uint256 _amount) internal virtual returns (bool) {
        uint256 curTotalSupply = totalSupply();
        if (uint128(curTotalSupply + _amount) < curTotalSupply) revert Overflow(); // Check for overflow
        uint256 previousBalanceTo = balanceOf(_owner);
        updateValueAtNow(totalSupplyHistory, curTotalSupply + _amount);
        updateValueAtNow(balances[_owner], previousBalanceTo + _amount);
        emit Transfer(address(0), _owner, _amount);
        return true;
    }

    /// @notice Burns `_amount` tokens from `_owner`
    /// @param _owner The address that will lose the tokens
    /// @param _amount The quantity of tokens to burn
    /// @return True if the tokens are burned correctly
    function _burn(address _owner, uint256 _amount) internal virtual returns (bool) {
        uint256 curTotalSupply = totalSupply();
        uint256 previousBalanceFrom = balanceOf(_owner);
        if (previousBalanceFrom < _amount) revert NotEnoughBalance();
        updateValueAtNow(totalSupplyHistory, curTotalSupply - _amount);
        updateValueAtNow(balances[_owner], previousBalanceFrom - _amount);
        emit Transfer(_owner, address(0), _amount);
        return true;
    }

    ////////////////
    // Enable tokens transfers
    ////////////////

    /// @notice Enables token holders to transfer their tokens freely if true
    /// @param _transfersEnabled True if transfers are allowed in the clone
    function enableTransfers(bool _transfersEnabled) public onlyController {
        transfersEnabled = _transfersEnabled;
    }

    ////////////////
    // Internal helper functions to query and set a value in a snapshot array
    ////////////////

    /// @dev `getValueAt` retrieves the number of tokens at a given block number
    /// @param checkpoints The history of values being queried
    /// @param _block The block number to retrieve the value at
    /// @return The number of tokens being queried
    function getValueAt(Checkpoint[] storage checkpoints, uint256 _block) internal view returns (uint256) {
        uint256 len = checkpoints.length;
        if (len == 0) return 0;

        // Shortcut for the actual value
        if (_block >= checkpoints[len - 1].fromBlock) {
            return checkpoints[len - 1].value;
        }
        if (_block < checkpoints[0].fromBlock) return 0;

        // Binary search of the value in the array
        uint256 sMin = 0;
        uint256 max = len - 1;
        while (max > sMin) {
            uint256 mid = (max + sMin + 1) / 2;
            if (checkpoints[mid].fromBlock <= _block) {
                sMin = mid;
            } else {
                max = mid - 1;
            }
        }
        return checkpoints[sMin].value;
    }

    /// @dev `updateValueAtNow` used to update the `balances` map and the
    ///  `totalSupplyHistory`
    /// @param checkpoints The history of data being updated
    /// @param _value The new number of tokens
    function updateValueAtNow(Checkpoint[] storage checkpoints, uint256 _value) internal {
        uint256 len = checkpoints.length;
        if (len > 0) {
            Checkpoint storage checkpoint = checkpoints[len - 1];
            if (checkpoint.fromBlock < block.number) {
                checkpoint = checkpoints.push();
                checkpoint.fromBlock = uint128(block.number);
            }
            checkpoint.value = uint128(_value);
        } else {
            Checkpoint storage checkpoint = checkpoints.push();
            checkpoint.fromBlock = uint128(block.number);
            checkpoint.value = uint128(_value);
        }
    }

    /// @dev Internal function to determine if an address is a contract
    /// @param _addr The address being queried
    /// @return True if `_addr` is a contract
    function isContract(address _addr) internal view returns (bool) {
        uint256 size;
        if (_addr == address(0)) return false;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(_addr)
        }
        return size > 0;
    }

    /// @dev Helper function to return a min betwen the two uints
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /// @notice The fallback function: If the contract's controller has not been
    ///  set to 0, then the `proxyPayment` method is called which relays the
    ///  ether and creates tokens as described in the token controller contract
    receive() external payable {
        if (!isContract(controller)) revert ControllerNotSet();
        if (!TokenController(controller).proxyPayment{ value: msg.value }(msg.sender)) {
            revert ControllerRejected();
        }
    }

    //////////
    // Safety Methods
    //////////

    /// @notice This method can be used by the controller to extract mistakenly
    ///  sent tokens to this contract.
    /// @param _token The address of the token contract that you want to recover
    ///  set to 0 in case you want to extract ether.
    function claimTokens(IERC20 _token) public onlyController {
        uint256 balance;
        if (address(_token) == address(0)) {
            balance = address(this).balance;
            controller.transfer(balance);
        } else {
            balance = _token.balanceOf(address(this));
            _token.transfer(controller, balance);
        }
        emit ClaimedTokens(address(_token), controller, balance);
    }

    ////////////////
    // Events
    ////////////////
    event ClaimedTokens(address indexed _token, address indexed _controller, uint256 _amount);
}

File 4 of 17 : Controlled.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

error NotAuthorized();

contract Controlled {
    /// @notice The address of the controller is the only address that can call
    ///  a function with this modifier
    modifier onlyController() {
        if (msg.sender != controller) revert NotAuthorized();
        _;
    }

    address payable public controller;

    constructor() {
        controller = payable(msg.sender);
    }

    /// @notice Changes the controller of the contract
    /// @param _newController The new controller of the contract
    function changeController(address payable _newController) public onlyController {
        controller = _newController;
    }
}

File 5 of 17 : TokenController.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

/// @dev The token controller contract must implement these functions
abstract contract TokenController {
    /// @notice Called when `_owner` sends ether to the MiniMe Token contract
    /// @param _owner The address that sent the ether to create tokens
    /// @return True if the ether is accepted, false if it throws
    function proxyPayment(address _owner) public payable virtual returns (bool);

    /// @notice Notifies the controller about a token transfer allowing the
    ///  controller to react if desired
    /// @param _from The origin of the transfer
    /// @param _to The destination of the transfer
    /// @param _amount The amount of the transfer
    /// @return False if the controller does not authorize the transfer
    function onTransfer(address _from, address _to, uint256 _amount) public virtual returns (bool);

    /// @notice Notifies the controller about an approval allowing the
    ///  controller to react if desired
    /// @param _owner The address that calls `approve()`
    /// @param _spender The spender in the `approve()` call
    /// @param _amount The amount in the `approve()` call
    /// @return False if the controller does not authorize the approval
    function onApprove(address _owner, address _spender, uint256 _amount) public virtual returns (bool);
}

File 6 of 17 : ApproveAndCallFallBack.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

/// @title Approve And Call Fallback Token Interface
/// @dev This interface must be implemented by other contracts
/// wishing to accept approve and call from MiniMe token contracts.
abstract contract ApproveAndCallFallBack {
    function receiveApproval(address from, uint256 _amount, address _token, bytes memory _data) public virtual;
}

File 7 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

File 8 of 17 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 9 of 17 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.8;

import "./ECDSA.sol";
import "../ShortStrings.sol";
import "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * _Available since v3.4._
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant _TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {EIP-5267}.
     *
     * _Available since v4.9._
     */
    function eip712Domain()
        public
        view
        virtual
        override
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _name.toStringWithFallback(_nameFallback),
            _version.toStringWithFallback(_versionFallback),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }
}

File 10 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 11 of 17 : Nonces.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @dev Provides tracking nonces for addresses. Nonces will only increment.
 */
abstract contract Nonces {
    /**
     * @dev The nonce used for an `account` is not the expected current nonce.
     */
    error InvalidAccountNonce(address account, uint256 currentNonce);

    mapping(address account => uint256) private _nonces;

    /**
     * @dev Returns the next unused nonce for an address.
     */
    function nonces(address owner) public view virtual returns (uint256) {
        return _nonces[owner];
    }

    /**
     * @dev Consumes a nonce.
     *
     * Returns the current value and increments nonce.
     */
    function _useNonce(address owner) internal virtual returns (uint256) {
        // For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be
        // decremented or reset. This guarantees that the nonce never overflows.
        unchecked {
            // It is important to do x++ and not ++x here.
            return _nonces[owner]++;
        }
    }
}

File 12 of 17 : ShortStrings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.8;

import "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(_FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 13 of 17 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.0;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 14 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 15 of 17 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

File 16 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 17 of 17 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "@vacp2p/minime/contracts/=lib/minime/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "minime/=lib/minime/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": false
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"uint8","name":"_decimalUnits","type":"uint8"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"bool","name":"_transferable","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowanceAlreadySet","type":"error"},{"inputs":[],"name":"ControllerNotSet","type":"error"},{"inputs":[],"name":"ControllerRejected","type":"error"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"ERC2612ExpiredSignature","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC2612InvalidSigner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"currentNonce","type":"uint256"}],"name":"InvalidAccountNonce","type":"error"},{"inputs":[],"name":"InvalidDestination","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[],"name":"NotEnoughAllowance","type":"error"},{"inputs":[],"name":"NotEnoughBalance","type":"error"},{"inputs":[],"name":"Overflow","type":"error"},{"inputs":[],"name":"ParentSnapshotNotReached","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TransfersDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_controller","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ClaimedTokens","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newController","type":"address"}],"name":"changeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creationBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"destroyTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"generateTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parentSnapShotBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parentToken","outputs":[{"internalType":"contract MiniMeBase","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101e06040523480156200001257600080fd5b5060405162002ceb38038062002ceb8339810160408190526200003591620002e9565b60408051808201909152600781526626a6aa2f98171960c91b6020820152600080546001600160a01b03191633178155908190869086908690869085908190869086908690869084906200008b82600162000197565b610120526200009c81600262000197565b61014052815160208084019190912060e052815190820120610100524660a0526200012a60e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c052600462000141858262000415565b5060ff831661016052600562000158838262000415565b506001600160a01b0395909516610180525050506101a0526009805460ff19169115159190911790555050436101c052506200053b9650505050505050565b6000602083511015620001b757620001af83620001d0565b9050620001ca565b81620001c4848262000415565b5060ff90505b92915050565b600080829050601f8151111562000207578260405163305a27a960e01b8152600401620001fe9190620004e1565b60405180910390fd5b8051620002148262000516565b179392505050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200024f57818101518382015260200162000235565b50506000910152565b600082601f8301126200026a57600080fd5b81516001600160401b03808211156200028757620002876200021c565b604051601f8301601f19908116603f01168101908282118183101715620002b257620002b26200021c565b81604052838152866020858801011115620002cc57600080fd5b620002df84602083016020890162000232565b9695505050505050565b600080600080608085870312156200030057600080fd5b84516001600160401b03808211156200031857600080fd5b620003268883890162000258565b95506020870151915060ff821682146200033f57600080fd5b6040870151919450808211156200035557600080fd5b50620003648782880162000258565b925050606085015180151581146200037b57600080fd5b939692955090935050565b600181811c908216806200039b57607f821691505b602082108103620003bc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200041057600081815260208120601f850160051c81016020861015620003eb5750805b601f850160051c820191505b818110156200040c57828155600101620003f7565b5050505b505050565b81516001600160401b038111156200043157620004316200021c565b620004498162000442845462000386565b84620003c2565b602080601f831160018114620004815760008415620004685750858301515b600019600386901b1c1916600185901b1785556200040c565b600085815260208120601f198616915b82811015620004b25788860151825594840194600190910190840162000491565b5085821015620004d15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208152600082518060208401526200050281604085016020870162000232565b601f01601f19169190910160400192915050565b80516020808301519190811015620003bc5760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516126f8620005f360003960006103330152600081816105d101528181610a2401528181610cd401526114cf0152600081816104ce015281816109c1015281816109f001528181610c720152610ca1015260006103aa01526000610bb001526000610b8501526000611838015260006118100152600061176b01526000611795015260006117bf01526126f86000f3fe6080604052600436106101b05760003560e01c8063827f32c0116100ec578063cae9ca511161008a578063dd62ed3e11610064578063dd62ed3e14610653578063df8de3e714610699578063f41e60c5146106b9578063f77c4791146106d957600080fd5b8063cae9ca51146105f3578063d3ce77fe14610613578063d505accf1461063357600080fd5b8063981b24d0116100c6578063981b24d014610565578063a9059cbb14610585578063bef97c87146105a5578063c5bcc4f1146105bf57600080fd5b8063827f32c01461050857806384b0196e1461052857806395d89b411461055057600080fd5b806332892177116101595780634ee2cd7e116101335780634ee2cd7e1461045c57806370a082311461047c5780637ecebe001461049c57806380a54001146104bc57600080fd5b806332892177146103de5780633644e515146104275780633cebb8231461043c57600080fd5b806318160ddd1161018a57806318160ddd1461036357806323b872dd14610378578063313ce5671461039857600080fd5b806306fdde03146102c6578063095ea7b3146102f1578063176345141461032157600080fd5b366102c1576000546101ca906001600160a01b03166106f9565b610200576040517f2110f99100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546040517ff48c30540000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063f48c305490349060240160206040518083038185885af1158015610264573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906102899190612176565b6102bf576040517fef18515800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b3480156102d257600080fd5b506102db61071b565b6040516102e891906121fe565b60405180910390f35b3480156102fd57600080fd5b5061031161030c366004612226565b6107a9565b60405190151581526020016102e8565b34801561032d57600080fd5b506103557f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016102e8565b34801561036f57600080fd5b506103556107bf565b34801561038457600080fd5b50610311610393366004612252565b6107cf565b3480156103a457600080fd5b506103cc7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016102e8565b3480156103ea57600080fd5b506102db6040518060400160405280600781526020017f4d4d545f302e320000000000000000000000000000000000000000000000000081525081565b34801561043357600080fd5b506103556108c9565b34801561044857600080fd5b506102bf610457366004612293565b6108d3565b34801561046857600080fd5b50610355610477366004612226565b610951565b34801561048857600080fd5b50610355610497366004612293565b610afe565b3480156104a857600080fd5b506103556104b7366004612293565b610b0a565b3480156104c857600080fd5b506104f07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102e8565b34801561051457600080fd5b50610311610523366004612226565b610b28565b34801561053457600080fd5b5061053d610b77565b6040516102e897969594939291906122b0565b34801561055c57600080fd5b506102db610c1c565b34801561057157600080fd5b50610355610580366004612362565b610c29565b34801561059157600080fd5b506103116105a0366004612226565b610d6a565b3480156105b157600080fd5b506009546103119060ff1681565b3480156105cb57600080fd5b506103557f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ff57600080fd5b5061031161060e3660046123aa565b610dbd565b34801561061f57600080fd5b5061031161062e366004612226565b610e51565b34801561063f57600080fd5b506102bf61064e366004612495565b610ea0565b34801561065f57600080fd5b5061035561066e36600461250c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b3480156106a557600080fd5b506102bf6106b4366004612293565b611012565b3480156106c557600080fd5b506102bf6106d4366004612545565b611206565b3480156106e557600080fd5b506000546104f0906001600160a01b031681565b6000806001600160a01b0383166107135750600092915050565b50503b151590565b6004805461072890612562565b80601f016020809104026020016040519081016040528092919081815260200182805461075490612562565b80156107a15780601f10610776576101008083540402835291602001916107a1565b820191906000526020600020905b81548152906001019060200180831161078457829003601f168201915b505050505081565b60006107b633848461127b565b90505b92915050565b60006107ca43610c29565b905090565b600080546001600160a01b031633146108b45760095460ff1661081e576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600090815260076020908152604080832033845290915290205482111561087b576040517f4fd3af0700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166000908152600760209081526040808320338452909152812080548492906108ae9084906125e4565b90915550505b6108bf848484611472565b5060019392505050565b60006107ca61175e565b6000546001600160a01b03163314610917576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03821660009081526006602052604081205415806109ba57506001600160a01b0383166000908152600660205260408120805484929061099a5761099a6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff16115b15610adc577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615610ad4577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634ee2cd7e84610a48857f0000000000000000000000000000000000000000000000000000000000000000611889565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd9190612626565b90506107b9565b5060006107b9565b6001600160a01b0383166000908152600660205260409020610acd908361189f565b60006107b98243610951565b6001600160a01b0381166000908152600360205260408120546107b9565b600080546001600160a01b03163314610b6d576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107b68383611a6c565b600060608082808083610bab7f00000000000000000000000000000000000000000000000000000000000000006001611b5d565b610bd67f00000000000000000000000000000000000000000000000000000000000000006002611b5d565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b6005805461072890612562565b6008546000901580610c6b5750816008600081548110610c4b57610c4b6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff16115b15610d5f577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615610d57577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663981b24d0610cf8847f0000000000000000000000000000000000000000000000000000000000000000611889565b6040518263ffffffff1660e01b8152600401610d1691815260200190565b602060405180830381865afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b99190612626565b506000919050565b6107b960088361189f565b60095460009060ff16610da9576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610db4338484611472565b50600192915050565b6000610dc984846107a9565b506040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081526001600160a01b03851690638f4ffcb190610e1590339087903090889060040161263f565b600060405180830381600087803b158015610e2f57600080fd5b505af1158015610e43573d6000803e3d6000fd5b506001979650505050505050565b600080546001600160a01b03163314610e96576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107b68383611c01565b83421115610ee2576040517f62791302000000000000000000000000000000000000000000000000000000008152600481018590526024015b60405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610f2f8c6001600160a01b0316600090815260036020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610f8a82611cc8565b90506000610f9a82878787611d10565b9050896001600160a01b0316816001600160a01b031614610ffa576040517f4b800e460000000000000000000000000000000000000000000000000000000081526001600160a01b0380831660048301528b166024820152604401610ed9565b6110058a8a8a61127b565b5050505050505050505050565b6000546001600160a01b03163314611056576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001600160a01b0382166110a857506000805460405147926001600160a01b039092169183156108fc02918491818181858888f193505050501580156110a2573d6000803e3d6000fd5b506111bd565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611105573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111299190612626565b6000546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af1158015611197573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bb9190612176565b505b6000546040518281526001600160a01b03918216918416907ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c9060200160405180910390a35050565b6000546001600160a01b0316331461124a576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60095460009060ff166112ba576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81158015906112ed57506001600160a01b0380851660009081526007602090815260408083209387168352929052205415155b15611324576040517fba793a6c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600054611339906001600160a01b03166106f9565b1561140c576000546040517fda682aeb0000000000000000000000000000000000000000000000000000000081526001600160a01b0386811660048301528581166024830152604482018590529091169063da682aeb906064016020604051808303816000875af11580156113b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d69190612176565b61140c576040517fef18515800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384811660008181526007602090815260408083209488168084529482529182902086905590518581527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b806000036114cc57816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114bf91815260200190565b60405180910390a3505050565b437f000000000000000000000000000000000000000000000000000000000000000010611525576040517f9c7fec5b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038216158061154357506001600160a01b03821630145b1561157a576040517fac6b05f500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115868443610951565b9050818110156115c2576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841660009081526006602052604090206115ed906115e884846125e4565b611d38565b60006115f98443610951565b6001600160a01b0385166000908152600660205260409020909150611622906115e8858461267b565b600054611637906001600160a01b03166106f9565b1561170a576000546040517f4a3931490000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015286811660248301526044820186905290911690634a393149906064016020604051808303816000875af11580156116b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d49190612176565b61170a576040517fef18515800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161174f91815260200190565b60405180910390a35050505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156117b757507f000000000000000000000000000000000000000000000000000000000000000046145b156117e157507f000000000000000000000000000000000000000000000000000000000000000090565b6107ca604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600081831061189857816107b6565b5090919050565b81546000908082036118b55760009150506107b9565b836118c16001836125e4565b815481106118d1576118d16125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff16831061194c57836119016001836125e4565b81548110611911576119116125f7565b60009182526020909120015470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1691506107b99050565b8360008154811061195f5761195f6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff1683101561198e5760009150506107b9565b60008061199c6001846125e4565b90505b81811115611a1e57600060026119b5848461267b565b6119c090600161267b565b6119ca919061268e565b9050858782815481106119df576119df6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff1611611a0a57809250611a18565b611a156001826125e4565b91505b5061199f565b858281548110611a3057611a306125f7565b60009182526020909120015470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff169695505050505050565b600080611a776107bf565b905080611a84848261267b565b6fffffffffffffffffffffffffffffffff161015611ace576040517f35278d1200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ad985610afe565b9050611aea60086115e8868561267b565b6001600160a01b0385166000908152600660205260409020611b10906115e8868461267b565b6040518481526001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3506001949350505050565b606060ff8314611b7057610acd83611e50565b818054611b7c90612562565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba890612562565b8015611bf55780601f10611bca57610100808354040283529160200191611bf5565b820191906000526020600020905b815481529060010190602001808311611bd857829003601f168201915b505050505090506107b9565b600080611c0c6107bf565b90506000611c1985610afe565b905083811015611c55576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c6460086115e886856125e4565b6001600160a01b0385166000908152600660205260409020611c8a906115e886846125e4565b6040518481526000906001600160a01b038716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611b4a565b60006107b9611cd561175e565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000806000611d2187878787611e8f565b91509150611d2e81611f71565b5095945050505050565b81548015611e0a57600083611d4e6001846125e4565b81548110611d5e57611d5e6125f7565b60009182526020909120018054909150436fffffffffffffffffffffffffffffffff9091161015611dd7575082546001810184556000848152602090200180547fffffffffffffffffffffffffffffffff0000000000000000000000000000000016436fffffffffffffffffffffffffffffffff161781555b80546fffffffffffffffffffffffffffffffff808516700100000000000000000000000000000000029116179055505050565b82546001810184556000848152602090206fffffffffffffffffffffffffffffffff84811670010000000000000000000000000000000002439190911617910155505050565b60606000611e5d83612127565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611ec65750600090506003611f68565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611f1a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116611f6157600060019250925050611f68565b9150600090505b94509492505050565b6000816004811115611f8557611f856126c9565b03611f8d5750565b6001816004811115611fa157611fa16126c9565b03612008576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ed9565b600281600481111561201c5761201c6126c9565b03612083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ed9565b6003816004811115612097576120976126c9565b03612124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610ed9565b50565b600060ff8216601f8111156107b9576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801515811461212457600080fd5b60006020828403121561218857600080fd5b815161219381612168565b9392505050565b6000815180845260005b818110156121c0576020818501810151868301820152016121a4565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006107b6602083018461219a565b6001600160a01b038116811461212457600080fd5b6000806040838503121561223957600080fd5b823561224481612211565b946020939093013593505050565b60008060006060848603121561226757600080fd5b833561227281612211565b9250602084013561228281612211565b929592945050506040919091013590565b6000602082840312156122a557600080fd5b813561219381612211565b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e0818401526122ec60e084018a61219a565b83810360408501526122fe818a61219a565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561235057835183529284019291840191600101612334565b50909c9b505050505050505050505050565b60006020828403121561237457600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000606084860312156123bf57600080fd5b83356123ca81612211565b925060208401359150604084013567ffffffffffffffff808211156123ee57600080fd5b818601915086601f83011261240257600080fd5b8135818111156124145761241461237b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561245a5761245a61237b565b8160405282815289602084870101111561247357600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080600080600080600060e0888a0312156124b057600080fd5b87356124bb81612211565b965060208801356124cb81612211565b95506040880135945060608801359350608088013560ff811681146124ef57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561251f57600080fd5b823561252a81612211565b9150602083013561253a81612211565b809150509250929050565b60006020828403121561255757600080fd5b813561219381612168565b600181811c9082168061257657607f821691505b6020821081036125af577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156107b9576107b96125b5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561263857600080fd5b5051919050565b60006001600160a01b03808716835285602084015280851660408401525060806060830152612671608083018461219a565b9695505050505050565b808201808211156107b9576107b96125b5565b6000826126c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000011537461747573205465737420546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035354540000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101b05760003560e01c8063827f32c0116100ec578063cae9ca511161008a578063dd62ed3e11610064578063dd62ed3e14610653578063df8de3e714610699578063f41e60c5146106b9578063f77c4791146106d957600080fd5b8063cae9ca51146105f3578063d3ce77fe14610613578063d505accf1461063357600080fd5b8063981b24d0116100c6578063981b24d014610565578063a9059cbb14610585578063bef97c87146105a5578063c5bcc4f1146105bf57600080fd5b8063827f32c01461050857806384b0196e1461052857806395d89b411461055057600080fd5b806332892177116101595780634ee2cd7e116101335780634ee2cd7e1461045c57806370a082311461047c5780637ecebe001461049c57806380a54001146104bc57600080fd5b806332892177146103de5780633644e515146104275780633cebb8231461043c57600080fd5b806318160ddd1161018a57806318160ddd1461036357806323b872dd14610378578063313ce5671461039857600080fd5b806306fdde03146102c6578063095ea7b3146102f1578063176345141461032157600080fd5b366102c1576000546101ca906001600160a01b03166106f9565b610200576040517f2110f99100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546040517ff48c30540000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063f48c305490349060240160206040518083038185885af1158015610264573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906102899190612176565b6102bf576040517fef18515800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b3480156102d257600080fd5b506102db61071b565b6040516102e891906121fe565b60405180910390f35b3480156102fd57600080fd5b5061031161030c366004612226565b6107a9565b60405190151581526020016102e8565b34801561032d57600080fd5b506103557f000000000000000000000000000000000000000000000000000000000049428781565b6040519081526020016102e8565b34801561036f57600080fd5b506103556107bf565b34801561038457600080fd5b50610311610393366004612252565b6107cf565b3480156103a457600080fd5b506103cc7f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016102e8565b3480156103ea57600080fd5b506102db6040518060400160405280600781526020017f4d4d545f302e320000000000000000000000000000000000000000000000000081525081565b34801561043357600080fd5b506103556108c9565b34801561044857600080fd5b506102bf610457366004612293565b6108d3565b34801561046857600080fd5b50610355610477366004612226565b610951565b34801561048857600080fd5b50610355610497366004612293565b610afe565b3480156104a857600080fd5b506103556104b7366004612293565b610b0a565b3480156104c857600080fd5b506104f07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102e8565b34801561051457600080fd5b50610311610523366004612226565b610b28565b34801561053457600080fd5b5061053d610b77565b6040516102e897969594939291906122b0565b34801561055c57600080fd5b506102db610c1c565b34801561057157600080fd5b50610355610580366004612362565b610c29565b34801561059157600080fd5b506103116105a0366004612226565b610d6a565b3480156105b157600080fd5b506009546103119060ff1681565b3480156105cb57600080fd5b506103557f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ff57600080fd5b5061031161060e3660046123aa565b610dbd565b34801561061f57600080fd5b5061031161062e366004612226565b610e51565b34801561063f57600080fd5b506102bf61064e366004612495565b610ea0565b34801561065f57600080fd5b5061035561066e36600461250c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b3480156106a557600080fd5b506102bf6106b4366004612293565b611012565b3480156106c557600080fd5b506102bf6106d4366004612545565b611206565b3480156106e557600080fd5b506000546104f0906001600160a01b031681565b6000806001600160a01b0383166107135750600092915050565b50503b151590565b6004805461072890612562565b80601f016020809104026020016040519081016040528092919081815260200182805461075490612562565b80156107a15780601f10610776576101008083540402835291602001916107a1565b820191906000526020600020905b81548152906001019060200180831161078457829003601f168201915b505050505081565b60006107b633848461127b565b90505b92915050565b60006107ca43610c29565b905090565b600080546001600160a01b031633146108b45760095460ff1661081e576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600090815260076020908152604080832033845290915290205482111561087b576040517f4fd3af0700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166000908152600760209081526040808320338452909152812080548492906108ae9084906125e4565b90915550505b6108bf848484611472565b5060019392505050565b60006107ca61175e565b6000546001600160a01b03163314610917576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03821660009081526006602052604081205415806109ba57506001600160a01b0383166000908152600660205260408120805484929061099a5761099a6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff16115b15610adc577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615610ad4577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634ee2cd7e84610a48857f0000000000000000000000000000000000000000000000000000000000000000611889565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd9190612626565b90506107b9565b5060006107b9565b6001600160a01b0383166000908152600660205260409020610acd908361189f565b60006107b98243610951565b6001600160a01b0381166000908152600360205260408120546107b9565b600080546001600160a01b03163314610b6d576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107b68383611a6c565b600060608082808083610bab7f537461747573205465737420546f6b656e0000000000000000000000000000116001611b5d565b610bd67f4d4d545f302e32000000000000000000000000000000000000000000000000076002611b5d565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b6005805461072890612562565b6008546000901580610c6b5750816008600081548110610c4b57610c4b6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff16115b15610d5f577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031615610d57577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663981b24d0610cf8847f0000000000000000000000000000000000000000000000000000000000000000611889565b6040518263ffffffff1660e01b8152600401610d1691815260200190565b602060405180830381865afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b99190612626565b506000919050565b6107b960088361189f565b60095460009060ff16610da9576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610db4338484611472565b50600192915050565b6000610dc984846107a9565b506040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081526001600160a01b03851690638f4ffcb190610e1590339087903090889060040161263f565b600060405180830381600087803b158015610e2f57600080fd5b505af1158015610e43573d6000803e3d6000fd5b506001979650505050505050565b600080546001600160a01b03163314610e96576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107b68383611c01565b83421115610ee2576040517f62791302000000000000000000000000000000000000000000000000000000008152600481018590526024015b60405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610f2f8c6001600160a01b0316600090815260036020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610f8a82611cc8565b90506000610f9a82878787611d10565b9050896001600160a01b0316816001600160a01b031614610ffa576040517f4b800e460000000000000000000000000000000000000000000000000000000081526001600160a01b0380831660048301528b166024820152604401610ed9565b6110058a8a8a61127b565b5050505050505050505050565b6000546001600160a01b03163314611056576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001600160a01b0382166110a857506000805460405147926001600160a01b039092169183156108fc02918491818181858888f193505050501580156110a2573d6000803e3d6000fd5b506111bd565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611105573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111299190612626565b6000546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af1158015611197573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bb9190612176565b505b6000546040518281526001600160a01b03918216918416907ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c9060200160405180910390a35050565b6000546001600160a01b0316331461124a576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60095460009060ff166112ba576040517f8574adcf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81158015906112ed57506001600160a01b0380851660009081526007602090815260408083209387168352929052205415155b15611324576040517fba793a6c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600054611339906001600160a01b03166106f9565b1561140c576000546040517fda682aeb0000000000000000000000000000000000000000000000000000000081526001600160a01b0386811660048301528581166024830152604482018590529091169063da682aeb906064016020604051808303816000875af11580156113b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d69190612176565b61140c576040517fef18515800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384811660008181526007602090815260408083209488168084529482529182902086905590518581527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b806000036114cc57816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114bf91815260200190565b60405180910390a3505050565b437f000000000000000000000000000000000000000000000000000000000000000010611525576040517f9c7fec5b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038216158061154357506001600160a01b03821630145b1561157a576040517fac6b05f500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115868443610951565b9050818110156115c2576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841660009081526006602052604090206115ed906115e884846125e4565b611d38565b60006115f98443610951565b6001600160a01b0385166000908152600660205260409020909150611622906115e8858461267b565b600054611637906001600160a01b03166106f9565b1561170a576000546040517f4a3931490000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015286811660248301526044820186905290911690634a393149906064016020604051808303816000875af11580156116b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d49190612176565b61170a576040517fef18515800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161174f91815260200190565b60405180910390a35050505050565b6000306001600160a01b037f000000000000000000000000e452027cdef746c7cd3db31cb700428b16cd8e51161480156117b757507f0000000000000000000000000000000000000000000000000000000000aa36a746145b156117e157507fa7ce11951d1bb446b917e77fe87422ce06568f3c8af615352211852ca7957ed490565b6107ca604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f5a291116098670653f89f98d047e853903b5b27d24c51af52d759584bd0f8465918101919091527fd12b0de940888e83c2c48451dcc7ab143b1a5b7d620f8fc5b7335d9bbd9d15c660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600081831061189857816107b6565b5090919050565b81546000908082036118b55760009150506107b9565b836118c16001836125e4565b815481106118d1576118d16125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff16831061194c57836119016001836125e4565b81548110611911576119116125f7565b60009182526020909120015470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1691506107b99050565b8360008154811061195f5761195f6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff1683101561198e5760009150506107b9565b60008061199c6001846125e4565b90505b81811115611a1e57600060026119b5848461267b565b6119c090600161267b565b6119ca919061268e565b9050858782815481106119df576119df6125f7565b6000918252602090912001546fffffffffffffffffffffffffffffffff1611611a0a57809250611a18565b611a156001826125e4565b91505b5061199f565b858281548110611a3057611a306125f7565b60009182526020909120015470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff169695505050505050565b600080611a776107bf565b905080611a84848261267b565b6fffffffffffffffffffffffffffffffff161015611ace576040517f35278d1200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ad985610afe565b9050611aea60086115e8868561267b565b6001600160a01b0385166000908152600660205260409020611b10906115e8868461267b565b6040518481526001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3506001949350505050565b606060ff8314611b7057610acd83611e50565b818054611b7c90612562565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba890612562565b8015611bf55780601f10611bca57610100808354040283529160200191611bf5565b820191906000526020600020905b815481529060010190602001808311611bd857829003601f168201915b505050505090506107b9565b600080611c0c6107bf565b90506000611c1985610afe565b905083811015611c55576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c6460086115e886856125e4565b6001600160a01b0385166000908152600660205260409020611c8a906115e886846125e4565b6040518481526000906001600160a01b038716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611b4a565b60006107b9611cd561175e565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000806000611d2187878787611e8f565b91509150611d2e81611f71565b5095945050505050565b81548015611e0a57600083611d4e6001846125e4565b81548110611d5e57611d5e6125f7565b60009182526020909120018054909150436fffffffffffffffffffffffffffffffff9091161015611dd7575082546001810184556000848152602090200180547fffffffffffffffffffffffffffffffff0000000000000000000000000000000016436fffffffffffffffffffffffffffffffff161781555b80546fffffffffffffffffffffffffffffffff808516700100000000000000000000000000000000029116179055505050565b82546001810184556000848152602090206fffffffffffffffffffffffffffffffff84811670010000000000000000000000000000000002439190911617910155505050565b60606000611e5d83612127565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611ec65750600090506003611f68565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611f1a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116611f6157600060019250925050611f68565b9150600090505b94509492505050565b6000816004811115611f8557611f856126c9565b03611f8d5750565b6001816004811115611fa157611fa16126c9565b03612008576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ed9565b600281600481111561201c5761201c6126c9565b03612083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ed9565b6003816004811115612097576120976126c9565b03612124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610ed9565b50565b600060ff8216601f8111156107b9576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801515811461212457600080fd5b60006020828403121561218857600080fd5b815161219381612168565b9392505050565b6000815180845260005b818110156121c0576020818501810151868301820152016121a4565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006107b6602083018461219a565b6001600160a01b038116811461212457600080fd5b6000806040838503121561223957600080fd5b823561224481612211565b946020939093013593505050565b60008060006060848603121561226757600080fd5b833561227281612211565b9250602084013561228281612211565b929592945050506040919091013590565b6000602082840312156122a557600080fd5b813561219381612211565b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e0818401526122ec60e084018a61219a565b83810360408501526122fe818a61219a565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561235057835183529284019291840191600101612334565b50909c9b505050505050505050505050565b60006020828403121561237457600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000606084860312156123bf57600080fd5b83356123ca81612211565b925060208401359150604084013567ffffffffffffffff808211156123ee57600080fd5b818601915086601f83011261240257600080fd5b8135818111156124145761241461237b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561245a5761245a61237b565b8160405282815289602084870101111561247357600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080600080600080600060e0888a0312156124b057600080fd5b87356124bb81612211565b965060208801356124cb81612211565b95506040880135945060608801359350608088013560ff811681146124ef57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561251f57600080fd5b823561252a81612211565b9150602083013561253a81612211565b809150509250929050565b60006020828403121561255757600080fd5b813561219381612168565b600181811c9082168061257657607f821691505b6020821081036125af577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156107b9576107b96125b5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561263857600080fd5b5051919050565b60006001600160a01b03808716835285602084015280851660408401525060806060830152612671608083018461219a565b9695505050505050565b808201808211156107b9576107b96125b5565b6000826126c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000011537461747573205465737420546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035354540000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): Status Test Token
Arg [1] : _decimalUnits (uint8): 18
Arg [2] : _tokenSymbol (string): STT
Arg [3] : _transferable (bool): True

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 537461747573205465737420546f6b656e000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 5354540000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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