ETH Price: $2,643.82 (+1.73%)

Contract

0x9972368B49C05152B79F2eEE394b78b8F2AEdB46
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

Transaction Hash
Method
Block
From
To
0x60806040157856812022-10-20 0:18:23729 days ago1666225103IN
 Contract Creation
0 ETH0.0528525220

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

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

Contract Name:
TokenWrapper

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-09
*/

// File: @aragon/os/contracts/common/UnstructuredStorage.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


library UnstructuredStorage {
    function getStorageBool(bytes32 position) internal view returns (bool data) {
        assembly { data := sload(position) }
    }

    function getStorageAddress(bytes32 position) internal view returns (address data) {
        assembly { data := sload(position) }
    }

    function getStorageBytes32(bytes32 position) internal view returns (bytes32 data) {
        assembly { data := sload(position) }
    }

    function getStorageUint256(bytes32 position) internal view returns (uint256 data) {
        assembly { data := sload(position) }
    }

    function setStorageBool(bytes32 position, bool data) internal {
        assembly { sstore(position, data) }
    }

    function setStorageAddress(bytes32 position, address data) internal {
        assembly { sstore(position, data) }
    }

    function setStorageBytes32(bytes32 position, bytes32 data) internal {
        assembly { sstore(position, data) }
    }

    function setStorageUint256(bytes32 position, uint256 data) internal {
        assembly { sstore(position, data) }
    }
}

// File: @aragon/os/contracts/acl/IACL.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


interface IACL {
    function initialize(address permissionsCreator) external;

    // TODO: this should be external
    // See https://github.com/ethereum/solidity/issues/4832
    function hasPermission(address who, address where, bytes32 what, bytes how) public view returns (bool);
}

// File: @aragon/os/contracts/common/IVaultRecoverable.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


interface IVaultRecoverable {
    event RecoverToVault(address indexed vault, address indexed token, uint256 amount);

    function transferToVault(address token) external;

    function allowRecoverability(address token) external view returns (bool);
    function getRecoveryVault() external view returns (address);
}

// File: @aragon/os/contracts/kernel/IKernel.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


interface IKernelEvents {
    event SetApp(bytes32 indexed namespace, bytes32 indexed appId, address app);
}


// This should be an interface, but interfaces can't inherit yet :(
contract IKernel is IKernelEvents, IVaultRecoverable {
    function acl() public view returns (IACL);
    function hasPermission(address who, address where, bytes32 what, bytes how) public view returns (bool);

    function setApp(bytes32 namespace, bytes32 appId, address app) public;
    function getApp(bytes32 namespace, bytes32 appId) public view returns (address);
}

// File: @aragon/os/contracts/apps/AppStorage.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


contract AppStorage {
    using UnstructuredStorage for bytes32;

    /* Hardcoded constants to save gas
    bytes32 internal constant KERNEL_POSITION = keccak256("aragonOS.appStorage.kernel");
    bytes32 internal constant APP_ID_POSITION = keccak256("aragonOS.appStorage.appId");
    */
    bytes32 internal constant KERNEL_POSITION = 0x4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b;
    bytes32 internal constant APP_ID_POSITION = 0xd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b;

    function kernel() public view returns (IKernel) {
        return IKernel(KERNEL_POSITION.getStorageAddress());
    }

    function appId() public view returns (bytes32) {
        return APP_ID_POSITION.getStorageBytes32();
    }

    function setKernel(IKernel _kernel) internal {
        KERNEL_POSITION.setStorageAddress(address(_kernel));
    }

    function setAppId(bytes32 _appId) internal {
        APP_ID_POSITION.setStorageBytes32(_appId);
    }
}

// File: @aragon/os/contracts/acl/ACLSyntaxSugar.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


contract ACLSyntaxSugar {
    function arr() internal pure returns (uint256[]) {
        return new uint256[](0);
    }

    function arr(bytes32 _a) internal pure returns (uint256[] r) {
        return arr(uint256(_a));
    }

    function arr(bytes32 _a, bytes32 _b) internal pure returns (uint256[] r) {
        return arr(uint256(_a), uint256(_b));
    }

    function arr(address _a) internal pure returns (uint256[] r) {
        return arr(uint256(_a));
    }

    function arr(address _a, address _b) internal pure returns (uint256[] r) {
        return arr(uint256(_a), uint256(_b));
    }

    function arr(address _a, uint256 _b, uint256 _c) internal pure returns (uint256[] r) {
        return arr(uint256(_a), _b, _c);
    }

    function arr(address _a, uint256 _b, uint256 _c, uint256 _d) internal pure returns (uint256[] r) {
        return arr(uint256(_a), _b, _c, _d);
    }

    function arr(address _a, uint256 _b) internal pure returns (uint256[] r) {
        return arr(uint256(_a), uint256(_b));
    }

    function arr(address _a, address _b, uint256 _c, uint256 _d, uint256 _e) internal pure returns (uint256[] r) {
        return arr(uint256(_a), uint256(_b), _c, _d, _e);
    }

    function arr(address _a, address _b, address _c) internal pure returns (uint256[] r) {
        return arr(uint256(_a), uint256(_b), uint256(_c));
    }

    function arr(address _a, address _b, uint256 _c) internal pure returns (uint256[] r) {
        return arr(uint256(_a), uint256(_b), uint256(_c));
    }

    function arr(uint256 _a) internal pure returns (uint256[] r) {
        r = new uint256[](1);
        r[0] = _a;
    }

    function arr(uint256 _a, uint256 _b) internal pure returns (uint256[] r) {
        r = new uint256[](2);
        r[0] = _a;
        r[1] = _b;
    }

    function arr(uint256 _a, uint256 _b, uint256 _c) internal pure returns (uint256[] r) {
        r = new uint256[](3);
        r[0] = _a;
        r[1] = _b;
        r[2] = _c;
    }

    function arr(uint256 _a, uint256 _b, uint256 _c, uint256 _d) internal pure returns (uint256[] r) {
        r = new uint256[](4);
        r[0] = _a;
        r[1] = _b;
        r[2] = _c;
        r[3] = _d;
    }

    function arr(uint256 _a, uint256 _b, uint256 _c, uint256 _d, uint256 _e) internal pure returns (uint256[] r) {
        r = new uint256[](5);
        r[0] = _a;
        r[1] = _b;
        r[2] = _c;
        r[3] = _d;
        r[4] = _e;
    }
}


contract ACLHelpers {
    function decodeParamOp(uint256 _x) internal pure returns (uint8 b) {
        return uint8(_x >> (8 * 30));
    }

    function decodeParamId(uint256 _x) internal pure returns (uint8 b) {
        return uint8(_x >> (8 * 31));
    }

    function decodeParamsList(uint256 _x) internal pure returns (uint32 a, uint32 b, uint32 c) {
        a = uint32(_x);
        b = uint32(_x >> (8 * 4));
        c = uint32(_x >> (8 * 8));
    }
}

// File: @aragon/os/contracts/common/Uint256Helpers.sol

pragma solidity ^0.4.24;


library Uint256Helpers {
    uint256 private constant MAX_UINT64 = uint64(-1);

    string private constant ERROR_NUMBER_TOO_BIG = "UINT64_NUMBER_TOO_BIG";

    function toUint64(uint256 a) internal pure returns (uint64) {
        require(a <= MAX_UINT64, ERROR_NUMBER_TOO_BIG);
        return uint64(a);
    }
}

// File: @aragon/os/contracts/common/TimeHelpers.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;

contract TimeHelpers {
    using Uint256Helpers for uint256;

    /**
    * @dev Returns the current block number.
    *      Using a function rather than `block.number` allows us to easily mock the block number in
    *      tests.
    */
    function getBlockNumber() internal view returns (uint256) {
        return block.number;
    }

    /**
    * @dev Returns the current block number, converted to uint64.
    *      Using a function rather than `block.number` allows us to easily mock the block number in
    *      tests.
    */
    function getBlockNumber64() internal view returns (uint64) {
        return getBlockNumber().toUint64();
    }

    /**
    * @dev Returns the current timestamp.
    *      Using a function rather than `block.timestamp` allows us to easily mock it in
    *      tests.
    */
    function getTimestamp() internal view returns (uint256) {
        return block.timestamp; // solium-disable-line security/no-block-members
    }

    /**
    * @dev Returns the current timestamp, converted to uint64.
    *      Using a function rather than `block.timestamp` allows us to easily mock it in
    *      tests.
    */
    function getTimestamp64() internal view returns (uint64) {
        return getTimestamp().toUint64();
    }
}

// File: @aragon/os/contracts/common/Initializable.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


contract Initializable is TimeHelpers {
    using UnstructuredStorage for bytes32;

    // keccak256("aragonOS.initializable.initializationBlock")
    bytes32 internal constant INITIALIZATION_BLOCK_POSITION = 0xebb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e;

    string private constant ERROR_ALREADY_INITIALIZED = "INIT_ALREADY_INITIALIZED";
    string private constant ERROR_NOT_INITIALIZED = "INIT_NOT_INITIALIZED";

    modifier onlyInit {
        require(getInitializationBlock() == 0, ERROR_ALREADY_INITIALIZED);
        _;
    }

    modifier isInitialized {
        require(hasInitialized(), ERROR_NOT_INITIALIZED);
        _;
    }

    /**
    * @return Block number in which the contract was initialized
    */
    function getInitializationBlock() public view returns (uint256) {
        return INITIALIZATION_BLOCK_POSITION.getStorageUint256();
    }

    /**
    * @return Whether the contract has been initialized by the time of the current block
    */
    function hasInitialized() public view returns (bool) {
        uint256 initializationBlock = getInitializationBlock();
        return initializationBlock != 0 && getBlockNumber() >= initializationBlock;
    }

    /**
    * @dev Function to be called by top level contract after initialization has finished.
    */
    function initialized() internal onlyInit {
        INITIALIZATION_BLOCK_POSITION.setStorageUint256(getBlockNumber());
    }

    /**
    * @dev Function to be called by top level contract after initialization to enable the contract
    *      at a future block number rather than immediately.
    */
    function initializedAt(uint256 _blockNumber) internal onlyInit {
        INITIALIZATION_BLOCK_POSITION.setStorageUint256(_blockNumber);
    }
}

// File: @aragon/os/contracts/common/Petrifiable.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;

contract Petrifiable is Initializable {
    // Use block UINT256_MAX (which should be never) as the initializable date
    uint256 internal constant PETRIFIED_BLOCK = uint256(-1);

    function isPetrified() public view returns (bool) {
        return getInitializationBlock() == PETRIFIED_BLOCK;
    }

    /**
    * @dev Function to be called by top level contract to prevent being initialized.
    *      Useful for freezing base contracts when they're used behind proxies.
    */
    function petrify() internal onlyInit {
        initializedAt(PETRIFIED_BLOCK);
    }
}

// File: @aragon/os/contracts/common/Autopetrified.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;

contract Autopetrified is Petrifiable {
    constructor() public {
        // Immediately petrify base (non-proxy) instances of inherited contracts on deploy.
        // This renders them uninitializable (and unusable without a proxy).
        petrify();
    }
}

// File: @aragon/os/contracts/common/ConversionHelpers.sol

pragma solidity ^0.4.24;


library ConversionHelpers {
    string private constant ERROR_IMPROPER_LENGTH = "CONVERSION_IMPROPER_LENGTH";

    function dangerouslyCastUintArrayToBytes(uint256[] memory _input) internal pure returns (bytes memory output) {
        // Force cast the uint256[] into a bytes array, by overwriting its length
        // Note that the bytes array doesn't need to be initialized as we immediately overwrite it
        // with the input and a new length. The input becomes invalid from this point forward.
        uint256 byteLength = _input.length * 32;
        assembly {
            output := _input
            mstore(output, byteLength)
        }
    }

    function dangerouslyCastBytesToUintArray(bytes memory _input) internal pure returns (uint256[] memory output) {
        // Force cast the bytes array into a uint256[], by overwriting its length
        // Note that the uint256[] doesn't need to be initialized as we immediately overwrite it
        // with the input and a new length. The input becomes invalid from this point forward.
        uint256 intsLength = _input.length / 32;
        require(_input.length == intsLength * 32, ERROR_IMPROPER_LENGTH);

        assembly {
            output := _input
            mstore(output, intsLength)
        }
    }
}

// File: @aragon/os/contracts/common/ReentrancyGuard.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;

contract ReentrancyGuard {
    using UnstructuredStorage for bytes32;

    /* Hardcoded constants to save gas
    bytes32 internal constant REENTRANCY_MUTEX_POSITION = keccak256("aragonOS.reentrancyGuard.mutex");
    */
    bytes32 private constant REENTRANCY_MUTEX_POSITION = 0xe855346402235fdd185c890e68d2c4ecad599b88587635ee285bce2fda58dacb;

    string private constant ERROR_REENTRANT = "REENTRANCY_REENTRANT_CALL";

    modifier nonReentrant() {
        // Ensure mutex is unlocked
        require(!REENTRANCY_MUTEX_POSITION.getStorageBool(), ERROR_REENTRANT);

        // Lock mutex before function call
        REENTRANCY_MUTEX_POSITION.setStorageBool(true);

        // Perform function call
        _;

        // Unlock mutex after function call
        REENTRANCY_MUTEX_POSITION.setStorageBool(false);
    }
}

// File: @aragon/os/contracts/lib/token/ERC20.sol

// See https://github.com/OpenZeppelin/openzeppelin-solidity/blob/a9f910d34f0ab33a1ae5e714f69f9596a02b4d91/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.4.24;


/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 {
    function totalSupply() public view returns (uint256);

    function balanceOf(address _who) public view returns (uint256);

    function allowance(address _owner, address _spender)
        public view returns (uint256);

    function transfer(address _to, uint256 _value) public returns (bool);

    function approve(address _spender, uint256 _value)
        public returns (bool);

    function transferFrom(address _from, address _to, uint256 _value)
        public returns (bool);

    event Transfer(
        address indexed from,
        address indexed to,
        uint256 value
    );

    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
}

// File: @aragon/os/contracts/common/EtherTokenConstant.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


// aragonOS and aragon-apps rely on address(0) to denote native ETH, in
// contracts where both tokens and ETH are accepted
contract EtherTokenConstant {
    address internal constant ETH = address(0);
}

// File: @aragon/os/contracts/common/IsContract.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


contract IsContract {
    /*
    * NOTE: this should NEVER be used for authentication
    * (see pitfalls: https://github.com/fergarrui/ethereum-security/tree/master/contracts/extcodesize).
    *
    * This is only intended to be used as a sanity check that an address is actually a contract,
    * RATHER THAN an address not being a contract.
    */
    function isContract(address _target) internal view returns (bool) {
        if (_target == address(0)) {
            return false;
        }

        uint256 size;
        assembly { size := extcodesize(_target) }
        return size > 0;
    }
}

// File: @aragon/os/contracts/common/SafeERC20.sol

// Inspired by AdEx (https://github.com/AdExNetwork/adex-protocol-eth/blob/b9df617829661a7518ee10f4cb6c4108659dd6d5/contracts/libs/SafeERC20.sol)
// and 0x (https://github.com/0xProject/0x-monorepo/blob/737d1dc54d72872e24abce5a1dbe1b66d35fa21a/contracts/protocol/contracts/protocol/AssetProxy/ERC20Proxy.sol#L143)

pragma solidity ^0.4.24;

library SafeERC20 {
    // Before 0.5, solidity has a mismatch between `address.transfer()` and `token.transfer()`:
    // https://github.com/ethereum/solidity/issues/3544
    bytes4 private constant TRANSFER_SELECTOR = 0xa9059cbb;

    string private constant ERROR_TOKEN_BALANCE_REVERTED = "SAFE_ERC_20_BALANCE_REVERTED";
    string private constant ERROR_TOKEN_ALLOWANCE_REVERTED = "SAFE_ERC_20_ALLOWANCE_REVERTED";

    function invokeAndCheckSuccess(address _addr, bytes memory _calldata)
        private
        returns (bool)
    {
        bool ret;
        assembly {
            let ptr := mload(0x40)    // free memory pointer

            let success := call(
                gas,                  // forward all gas
                _addr,                // address
                0,                    // no value
                add(_calldata, 0x20), // calldata start
                mload(_calldata),     // calldata length
                ptr,                  // write output over free memory
                0x20                  // uint256 return
            )

            if gt(success, 0) {
                // Check number of bytes returned from last function call
                switch returndatasize

                // No bytes returned: assume success
                case 0 {
                    ret := 1
                }

                // 32 bytes returned: check if non-zero
                case 0x20 {
                    // Only return success if returned data was true
                    // Already have output in ptr
                    ret := eq(mload(ptr), 1)
                }

                // Not sure what was returned: don't mark as success
                default { }
            }
        }
        return ret;
    }

    function staticInvoke(address _addr, bytes memory _calldata)
        private
        view
        returns (bool, uint256)
    {
        bool success;
        uint256 ret;
        assembly {
            let ptr := mload(0x40)    // free memory pointer

            success := staticcall(
                gas,                  // forward all gas
                _addr,                // address
                add(_calldata, 0x20), // calldata start
                mload(_calldata),     // calldata length
                ptr,                  // write output over free memory
                0x20                  // uint256 return
            )

            if gt(success, 0) {
                ret := mload(ptr)
            }
        }
        return (success, ret);
    }

    /**
    * @dev Same as a standards-compliant ERC20.transfer() that never reverts (returns false).
    *      Note that this makes an external call to the token.
    */
    function safeTransfer(ERC20 _token, address _to, uint256 _amount) internal returns (bool) {
        bytes memory transferCallData = abi.encodeWithSelector(
            TRANSFER_SELECTOR,
            _to,
            _amount
        );
        return invokeAndCheckSuccess(_token, transferCallData);
    }

    /**
    * @dev Same as a standards-compliant ERC20.transferFrom() that never reverts (returns false).
    *      Note that this makes an external call to the token.
    */
    function safeTransferFrom(ERC20 _token, address _from, address _to, uint256 _amount) internal returns (bool) {
        bytes memory transferFromCallData = abi.encodeWithSelector(
            _token.transferFrom.selector,
            _from,
            _to,
            _amount
        );
        return invokeAndCheckSuccess(_token, transferFromCallData);
    }

    /**
    * @dev Same as a standards-compliant ERC20.approve() that never reverts (returns false).
    *      Note that this makes an external call to the token.
    */
    function safeApprove(ERC20 _token, address _spender, uint256 _amount) internal returns (bool) {
        bytes memory approveCallData = abi.encodeWithSelector(
            _token.approve.selector,
            _spender,
            _amount
        );
        return invokeAndCheckSuccess(_token, approveCallData);
    }

    /**
    * @dev Static call into ERC20.balanceOf().
    * Reverts if the call fails for some reason (should never fail).
    */
    function staticBalanceOf(ERC20 _token, address _owner) internal view returns (uint256) {
        bytes memory balanceOfCallData = abi.encodeWithSelector(
            _token.balanceOf.selector,
            _owner
        );

        (bool success, uint256 tokenBalance) = staticInvoke(_token, balanceOfCallData);
        require(success, ERROR_TOKEN_BALANCE_REVERTED);

        return tokenBalance;
    }

    /**
    * @dev Static call into ERC20.allowance().
    * Reverts if the call fails for some reason (should never fail).
    */
    function staticAllowance(ERC20 _token, address _owner, address _spender) internal view returns (uint256) {
        bytes memory allowanceCallData = abi.encodeWithSelector(
            _token.allowance.selector,
            _owner,
            _spender
        );

        (bool success, uint256 allowance) = staticInvoke(_token, allowanceCallData);
        require(success, ERROR_TOKEN_ALLOWANCE_REVERTED);

        return allowance;
    }

    /**
    * @dev Static call into ERC20.totalSupply().
    * Reverts if the call fails for some reason (should never fail).
    */
    function staticTotalSupply(ERC20 _token) internal view returns (uint256) {
        bytes memory totalSupplyCallData = abi.encodeWithSelector(_token.totalSupply.selector);

        (bool success, uint256 totalSupply) = staticInvoke(_token, totalSupplyCallData);
        require(success, ERROR_TOKEN_ALLOWANCE_REVERTED);

        return totalSupply;
    }
}

// File: @aragon/os/contracts/common/VaultRecoverable.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;





contract VaultRecoverable is IVaultRecoverable, EtherTokenConstant, IsContract {
    using SafeERC20 for ERC20;

    string private constant ERROR_DISALLOWED = "RECOVER_DISALLOWED";
    string private constant ERROR_VAULT_NOT_CONTRACT = "RECOVER_VAULT_NOT_CONTRACT";
    string private constant ERROR_TOKEN_TRANSFER_FAILED = "RECOVER_TOKEN_TRANSFER_FAILED";

    /**
     * @notice Send funds to recovery Vault. This contract should never receive funds,
     *         but in case it does, this function allows one to recover them.
     * @param _token Token balance to be sent to recovery vault.
     */
    function transferToVault(address _token) external {
        require(allowRecoverability(_token), ERROR_DISALLOWED);
        address vault = getRecoveryVault();
        require(isContract(vault), ERROR_VAULT_NOT_CONTRACT);

        uint256 balance;
        if (_token == ETH) {
            balance = address(this).balance;
            vault.transfer(balance);
        } else {
            ERC20 token = ERC20(_token);
            balance = token.staticBalanceOf(this);
            require(token.safeTransfer(vault, balance), ERROR_TOKEN_TRANSFER_FAILED);
        }

        emit RecoverToVault(vault, _token, balance);
    }

    /**
    * @dev By default deriving from AragonApp makes it recoverable
    * @param token Token address that would be recovered
    * @return bool whether the app allows the recovery
    */
    function allowRecoverability(address token) public view returns (bool) {
        return true;
    }

    // Cast non-implemented interface to be public so we can use it internally
    function getRecoveryVault() public view returns (address);
}

// File: @aragon/os/contracts/evmscript/IEVMScriptExecutor.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


interface IEVMScriptExecutor {
    function execScript(bytes script, bytes input, address[] blacklist) external returns (bytes);
    function executorType() external pure returns (bytes32);
}

// File: @aragon/os/contracts/evmscript/IEVMScriptRegistry.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;

contract EVMScriptRegistryConstants {
    /* Hardcoded constants to save gas
    bytes32 internal constant EVMSCRIPT_REGISTRY_APP_ID = apmNamehash("evmreg");
    */
    bytes32 internal constant EVMSCRIPT_REGISTRY_APP_ID = 0xddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd61;
}


interface IEVMScriptRegistry {
    function addScriptExecutor(IEVMScriptExecutor executor) external returns (uint id);
    function disableScriptExecutor(uint256 executorId) external;

    // TODO: this should be external
    // See https://github.com/ethereum/solidity/issues/4832
    function getScriptExecutor(bytes script) public view returns (IEVMScriptExecutor);
}

// File: @aragon/os/contracts/kernel/KernelConstants.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


contract KernelAppIds {
    /* Hardcoded constants to save gas
    bytes32 internal constant KERNEL_CORE_APP_ID = apmNamehash("kernel");
    bytes32 internal constant KERNEL_DEFAULT_ACL_APP_ID = apmNamehash("acl");
    bytes32 internal constant KERNEL_DEFAULT_VAULT_APP_ID = apmNamehash("vault");
    */
    bytes32 internal constant KERNEL_CORE_APP_ID = 0x3b4bf6bf3ad5000ecf0f989d5befde585c6860fea3e574a4fab4c49d1c177d9c;
    bytes32 internal constant KERNEL_DEFAULT_ACL_APP_ID = 0xe3262375f45a6e2026b7e7b18c2b807434f2508fe1a2a3dfb493c7df8f4aad6a;
    bytes32 internal constant KERNEL_DEFAULT_VAULT_APP_ID = 0x7e852e0fcfce6551c13800f1e7476f982525c2b5277ba14b24339c68416336d1;
}


contract KernelNamespaceConstants {
    /* Hardcoded constants to save gas
    bytes32 internal constant KERNEL_CORE_NAMESPACE = keccak256("core");
    bytes32 internal constant KERNEL_APP_BASES_NAMESPACE = keccak256("base");
    bytes32 internal constant KERNEL_APP_ADDR_NAMESPACE = keccak256("app");
    */
    bytes32 internal constant KERNEL_CORE_NAMESPACE = 0xc681a85306374a5ab27f0bbc385296a54bcd314a1948b6cf61c4ea1bc44bb9f8;
    bytes32 internal constant KERNEL_APP_BASES_NAMESPACE = 0xf1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f;
    bytes32 internal constant KERNEL_APP_ADDR_NAMESPACE = 0xd6f028ca0e8edb4a8c9757ca4fdccab25fa1e0317da1188108f7d2dee14902fb;
}

// File: @aragon/os/contracts/evmscript/EVMScriptRunner.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;




contract EVMScriptRunner is AppStorage, Initializable, EVMScriptRegistryConstants, KernelNamespaceConstants {
    string private constant ERROR_EXECUTOR_UNAVAILABLE = "EVMRUN_EXECUTOR_UNAVAILABLE";
    string private constant ERROR_PROTECTED_STATE_MODIFIED = "EVMRUN_PROTECTED_STATE_MODIFIED";

    /* This is manually crafted in assembly
    string private constant ERROR_EXECUTOR_INVALID_RETURN = "EVMRUN_EXECUTOR_INVALID_RETURN";
    */

    event ScriptResult(address indexed executor, bytes script, bytes input, bytes returnData);

    function getEVMScriptExecutor(bytes _script) public view returns (IEVMScriptExecutor) {
        return IEVMScriptExecutor(getEVMScriptRegistry().getScriptExecutor(_script));
    }

    function getEVMScriptRegistry() public view returns (IEVMScriptRegistry) {
        address registryAddr = kernel().getApp(KERNEL_APP_ADDR_NAMESPACE, EVMSCRIPT_REGISTRY_APP_ID);
        return IEVMScriptRegistry(registryAddr);
    }

    function runScript(bytes _script, bytes _input, address[] _blacklist)
        internal
        isInitialized
        protectState
        returns (bytes)
    {
        IEVMScriptExecutor executor = getEVMScriptExecutor(_script);
        require(address(executor) != address(0), ERROR_EXECUTOR_UNAVAILABLE);

        bytes4 sig = executor.execScript.selector;
        bytes memory data = abi.encodeWithSelector(sig, _script, _input, _blacklist);

        bytes memory output;
        assembly {
            let success := delegatecall(
                gas,                // forward all gas
                executor,           // address
                add(data, 0x20),    // calldata start
                mload(data),        // calldata length
                0,                  // don't write output (we'll handle this ourselves)
                0                   // don't write output
            )

            output := mload(0x40) // free mem ptr get

            switch success
            case 0 {
                // If the call errored, forward its full error data
                returndatacopy(output, 0, returndatasize)
                revert(output, returndatasize)
            }
            default {
                switch gt(returndatasize, 0x3f)
                case 0 {
                    // Need at least 0x40 bytes returned for properly ABI-encoded bytes values,
                    // revert with "EVMRUN_EXECUTOR_INVALID_RETURN"
                    // See remix: doing a `revert("EVMRUN_EXECUTOR_INVALID_RETURN")` always results in
                    // this memory layout
                    mstore(output, 0x08c379a000000000000000000000000000000000000000000000000000000000)         // error identifier
                    mstore(add(output, 0x04), 0x0000000000000000000000000000000000000000000000000000000000000020) // starting offset
                    mstore(add(output, 0x24), 0x000000000000000000000000000000000000000000000000000000000000001e) // reason length
                    mstore(add(output, 0x44), 0x45564d52554e5f4558454355544f525f494e56414c49445f52455455524e0000) // reason

                    revert(output, 100) // 100 = 4 + 3 * 32 (error identifier + 3 words for the ABI encoded error)
                }
                default {
                    // Copy result
                    //
                    // Needs to perform an ABI decode for the expected `bytes` return type of
                    // `executor.execScript()` as solidity will automatically ABI encode the returned bytes as:
                    //    [ position of the first dynamic length return value = 0x20 (32 bytes) ]
                    //    [ output length (32 bytes) ]
                    //    [ output content (N bytes) ]
                    //
                    // Perform the ABI decode by ignoring the first 32 bytes of the return data
                    let copysize := sub(returndatasize, 0x20)
                    returndatacopy(output, 0x20, copysize)

                    mstore(0x40, add(output, copysize)) // free mem ptr set
                }
            }
        }

        emit ScriptResult(address(executor), _script, _input, output);

        return output;
    }

    modifier protectState {
        address preKernel = address(kernel());
        bytes32 preAppId = appId();
        _; // exec
        require(address(kernel()) == preKernel, ERROR_PROTECTED_STATE_MODIFIED);
        require(appId() == preAppId, ERROR_PROTECTED_STATE_MODIFIED);
    }
}

// File: @aragon/os/contracts/apps/AragonApp.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;







// Contracts inheriting from AragonApp are, by default, immediately petrified upon deployment so
// that they can never be initialized.
// Unless overriden, this behaviour enforces those contracts to be usable only behind an AppProxy.
// ReentrancyGuard, EVMScriptRunner, and ACLSyntaxSugar are not directly used by this contract, but
// are included so that they are automatically usable by subclassing contracts
contract AragonApp is AppStorage, Autopetrified, VaultRecoverable, ReentrancyGuard, EVMScriptRunner, ACLSyntaxSugar {
    string private constant ERROR_AUTH_FAILED = "APP_AUTH_FAILED";

    modifier auth(bytes32 _role) {
        require(canPerform(msg.sender, _role, new uint256[](0)), ERROR_AUTH_FAILED);
        _;
    }

    modifier authP(bytes32 _role, uint256[] _params) {
        require(canPerform(msg.sender, _role, _params), ERROR_AUTH_FAILED);
        _;
    }

    /**
    * @dev Check whether an action can be performed by a sender for a particular role on this app
    * @param _sender Sender of the call
    * @param _role Role on this app
    * @param _params Permission params for the role
    * @return Boolean indicating whether the sender has the permissions to perform the action.
    *         Always returns false if the app hasn't been initialized yet.
    */
    function canPerform(address _sender, bytes32 _role, uint256[] _params) public view returns (bool) {
        if (!hasInitialized()) {
            return false;
        }

        IKernel linkedKernel = kernel();
        if (address(linkedKernel) == address(0)) {
            return false;
        }

        return linkedKernel.hasPermission(
            _sender,
            address(this),
            _role,
            ConversionHelpers.dangerouslyCastUintArrayToBytes(_params)
        );
    }

    /**
    * @dev Get the recovery vault for the app
    * @return Recovery vault address for the app
    */
    function getRecoveryVault() public view returns (address) {
        // Funds recovery via a vault is only available when used with a kernel
        return kernel().getRecoveryVault(); // if kernel is not set, it will revert
    }
}

// File: @aragon/os/contracts/common/IForwarder.sol

/*
 * SPDX-License-Identitifer:    MIT
 */

pragma solidity ^0.4.24;


interface IForwarder {
    function isForwarder() external pure returns (bool);

    // TODO: this should be external
    // See https://github.com/ethereum/solidity/issues/4832
    function canForward(address sender, bytes evmCallScript) public view returns (bool);

    // TODO: this should be external
    // See https://github.com/ethereum/solidity/issues/4832
    function forward(bytes evmCallScript) public;
}

// File: @aragon/os/contracts/lib/math/SafeMath.sol

// See https://github.com/OpenZeppelin/openzeppelin-solidity/blob/d51e38758e1d985661534534d5c61e27bece5042/contracts/math/SafeMath.sol
// Adapted to use pragma ^0.4.24 and satisfy our linter rules

pragma solidity ^0.4.24;


/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {
    string private constant ERROR_ADD_OVERFLOW = "MATH_ADD_OVERFLOW";
    string private constant ERROR_SUB_UNDERFLOW = "MATH_SUB_UNDERFLOW";
    string private constant ERROR_MUL_OVERFLOW = "MATH_MUL_OVERFLOW";
    string private constant ERROR_DIV_ZERO = "MATH_DIV_ZERO";

    /**
    * @dev Multiplies two numbers, reverts on overflow.
    */
    function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (_a == 0) {
            return 0;
        }

        uint256 c = _a * _b;
        require(c / _a == _b, ERROR_MUL_OVERFLOW);

        return c;
    }

    /**
    * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
    */
    function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
        require(_b > 0, ERROR_DIV_ZERO); // Solidity only automatically asserts when dividing by 0
        uint256 c = _a / _b;
        // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold

        return c;
    }

    /**
    * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {
        require(_b <= _a, ERROR_SUB_UNDERFLOW);
        uint256 c = _a - _b;

        return c;
    }

    /**
    * @dev Adds two numbers, reverts on overflow.
    */
    function add(uint256 _a, uint256 _b) internal pure returns (uint256) {
        uint256 c = _a + _b;
        require(c >= _a, ERROR_ADD_OVERFLOW);

        return c;
    }

    /**
    * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
    * reverts when dividing by zero.
    */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0, ERROR_DIV_ZERO);
        return a % b;
    }
}

// File: @aragonone/voting-connectors-contract-utils/contracts/Checkpointing.sol

/*
 * SPDX-License-Identitifer:    GPL-3.0-or-later
 */

pragma solidity ^0.4.24;


/**
 * @title Checkpointing
 * @notice Checkpointing library for keeping track of historical values based on an arbitrary time
 *         unit (e.g. seconds or block numbers).
 * @dev Inspired by:
 *   - MiniMe token (https://github.com/aragon/minime/blob/master/contracts/MiniMeToken.sol)
 *   - Staking (https://github.com/aragon/staking/blob/master/contracts/Checkpointing.sol)
 */
library Checkpointing {
    string private constant ERROR_PAST_CHECKPOINT = "CHECKPOINT_PAST_CHECKPOINT";

    struct Checkpoint {
        uint64 time;
        uint192 value;
    }

    struct History {
        Checkpoint[] history;
    }

    function addCheckpoint(History storage _self, uint64 _time, uint192 _value) internal {
        uint256 length = _self.history.length;
        if (length == 0) {
            _self.history.push(Checkpoint(_time, _value));
        } else {
            Checkpoint storage currentCheckpoint = _self.history[length - 1];
            uint256 currentCheckpointTime = uint256(currentCheckpoint.time);

            if (_time > currentCheckpointTime) {
                _self.history.push(Checkpoint(_time, _value));
            } else if (_time == currentCheckpointTime) {
                currentCheckpoint.value = _value;
            } else { // ensure list ordering
                revert(ERROR_PAST_CHECKPOINT);
            }
        }
    }

    function getValueAt(History storage _self, uint64 _time) internal view returns (uint256) {
        return _getValueAt(_self, _time);
    }

    function lastUpdated(History storage _self) internal view returns (uint256) {
        uint256 length = _self.history.length;
        if (length > 0) {
            return uint256(_self.history[length - 1].time);
        }

        return 0;
    }

    function latestValue(History storage _self) internal view returns (uint256) {
        uint256 length = _self.history.length;
        if (length > 0) {
            return uint256(_self.history[length - 1].value);
        }

        return 0;
    }

    function _getValueAt(History storage _self, uint64 _time) private view returns (uint256) {
        uint256 length = _self.history.length;

        // Short circuit if there's no checkpoints yet
        // Note that this also lets us avoid using SafeMath later on, as we've established that
        // there must be at least one checkpoint
        if (length == 0) {
            return 0;
        }

        // Check last checkpoint
        uint256 lastIndex = length - 1;
        Checkpoint storage lastCheckpoint = _self.history[lastIndex];
        if (_time >= lastCheckpoint.time) {
            return uint256(lastCheckpoint.value);
        }

        // Check first checkpoint (if not already checked with the above check on last)
        if (length == 1 || _time < _self.history[0].time) {
            return 0;
        }

        // Do binary search
        // As we've already checked both ends, we don't need to check the last checkpoint again
        uint256 low = 0;
        uint256 high = lastIndex - 1;

        while (high > low) {
            uint256 mid = (high + low + 1) / 2; // average, ceil round
            Checkpoint storage checkpoint = _self.history[mid];
            uint64 midTime = checkpoint.time;

            if (_time > midTime) {
                low = mid;
            } else if (_time < midTime) {
                // Note that we don't need SafeMath here because mid must always be greater than 0
                // from the while condition
                high = mid - 1;
            } else {
                // _time == midTime
                return uint256(checkpoint.value);
            }
        }

        return uint256(_self.history[low].value);
    }
}

// File: @aragonone/voting-connectors-contract-utils/contracts/CheckpointingHelpers.sol

pragma solidity ^0.4.24;


library CheckpointingHelpers {
    uint256 private constant MAX_UINT64 = uint64(-1);
    uint256 private constant MAX_UINT192 = uint192(-1);

    string private constant ERROR_UINT64_TOO_BIG = "UINT64_NUMBER_TOO_BIG";
    string private constant ERROR_UINT192_TOO_BIG = "UINT192_NUMBER_TOO_BIG";

    function toUint64Time(uint256 _a) internal pure returns (uint64) {
        require(_a <= MAX_UINT64, ERROR_UINT64_TOO_BIG);
        return uint64(_a);
    }

    function toUint192Value(uint256 _a) internal pure returns (uint192) {
        require(_a <= MAX_UINT192, ERROR_UINT192_TOO_BIG);
        return uint192(_a);
    }
}

// File: @aragonone/voting-connectors-contract-utils/contracts/ERC20ViewOnly.sol

/*
 * SPDX-License-Identitifer:    GPL-3.0-or-later
 */

pragma solidity ^0.4.24;

/**
 * @title ERC20ViewOnly
 * @notice Abstract ERC20 interface that is "view-only" by disallowing transfers and allowances. Implementations must track account balances via another mechanism.
 * @dev Implemented functions at this level **NEVER** revert
 */
contract ERC20ViewOnly is ERC20 {
    string private constant ERROR_ERC20_VIEW_ONLY = "ERC20_VIEW_ONLY";

    function approve(address, uint256) public returns (bool) {
        revert(ERROR_ERC20_VIEW_ONLY);
    }

    function transfer(address, uint256) public returns (bool) {
        revert(ERROR_ERC20_VIEW_ONLY);
    }

    function transferFrom(address, address, uint256) public returns (bool) {
        revert(ERROR_ERC20_VIEW_ONLY);
    }

    function allowance(address, address) public view returns (uint256) {
        return 0;
    }
}

// File: @aragonone/voting-connectors-contract-utils/contracts/interfaces/IERC20WithCheckpointing.sol

/*
 * SPDX-License-Identitifer:    GPL-3.0-or-later
 */

pragma solidity 0.4.24;

contract IERC20WithCheckpointing is ERC20 {
    function balanceOfAt(address _owner, uint256 _blockNumber) public view returns (uint256);
    function totalSupplyAt(uint256 _blockNumber) public view returns (uint256);
}

// File: @aragonone/voting-connectors-contract-utils/contracts/interfaces/IERC20WithDecimals.sol

/*
 * SPDX-License-Identitifer:    GPL-3.0-or-later
 */

pragma solidity 0.4.24;

contract IERC20WithDecimals is ERC20 {
    function decimals() public view returns (uint8);
}

// File: contracts/TokenWrapper.sol

/*
 * SPDX-License-Identitifer:    GPL-3.0-or-later
 */

pragma solidity 0.4.24;









/**
 * @title TokenWrapper
 * @notice Wrapper around a normal ERC20 token that provides a "view-only" checkpointed ERC20
 *         implementation for use with Voting apps.
 *         It only supports up to 2^192 - 1 tokens being deposited (not taking into account decimals).
 * @dev Inspired by:
 *   - MiniMe token
 *   - https://github.com/MyBitFoundation/MyBit-DAO.tech/blob/master/apps/MyTokens/contracts/MyTokens.sol
 */
contract TokenWrapper is IERC20WithCheckpointing, IForwarder, IsContract, ERC20ViewOnly, AragonApp {
    using SafeMath for uint256;
    using SafeERC20 for ERC20;
    using Checkpointing for Checkpointing.History;
    using CheckpointingHelpers for uint256;

    string private constant ERROR_TOKEN_NOT_CONTRACT = "TW_TOKEN_NOT_CONTRACT";
    string private constant ERROR_DEPOSIT_AMOUNT_ZERO = "TW_DEPOSIT_AMOUNT_ZERO";
    string private constant ERROR_TOKEN_TRANSFER_FROM_FAILED = "TW_TOKEN_TRANSFER_FROM_FAILED";
    string private constant ERROR_WITHDRAW_AMOUNT_ZERO = "TW_WITHDRAW_AMOUNT_ZERO";
    string private constant ERROR_INVALID_WITHDRAW_AMOUNT = "TW_INVALID_WITHDRAW_AMOUNT";
    string private constant ERROR_TOKEN_TRANSFER_FAILED = "TW_TOKEN_TRANSFER_FAILED";
    string private constant ERROR_CAN_NOT_FORWARD = "TW_CAN_NOT_FORWARD";

    ERC20 public depositedToken;
    string public name;
    string public symbol;

    // Checkpointed balances of the deposited token by block number
    mapping (address => Checkpointing.History) internal balancesHistory;

    // Checkpointed total supply of the deposited token
    Checkpointing.History internal totalSupplyHistory;

    event Deposit(address indexed entity, uint256 amount);
    event Withdrawal(address indexed entity, uint256 amount);

    /**
     * @notice Create a new "wrapped" checkpointed token that is convertible from a normal ERC20 token
     * @param _depositedToken The ERC20 token to be wrapped
     * @param _name The wrapped token's name
     * @param _symbol The wrapped token's symbol
     */
    function initialize(ERC20 _depositedToken, string _name, string _symbol) external onlyInit {
        initialized();

        require(isContract(_depositedToken), ERROR_TOKEN_NOT_CONTRACT);

        depositedToken = _depositedToken;
        name = _name;
        symbol = _symbol;
    }

    /**
     * @notice Wrap `@tokenAmount(self.depositedToken(): address, _amount)`
     * @dev Only up to 2^192 - 1 tokens are ever allowed to be deposited, due to the underlying
     *      storage format.
     * @param _amount Amount to wrap
     */
    function deposit(uint256 _amount) external isInitialized {
        require(_amount > 0, ERROR_DEPOSIT_AMOUNT_ZERO);

        // Fetch the outside ERC20 tokens
        require(depositedToken.safeTransferFrom(msg.sender, address(this), _amount), ERROR_TOKEN_TRANSFER_FROM_FAILED);

        // Then increase our wrapped token accounting
        uint256 currentBalance = balanceOf(msg.sender);
        uint256 newBalance = currentBalance.add(_amount);

        uint256 currentTotalSupply = totalSupply();
        uint256 newTotalSupply = currentTotalSupply.add(_amount);

        uint64 currentBlock = getBlockNumber64();
        balancesHistory[msg.sender].addCheckpoint(currentBlock, newBalance.toUint192Value());
        totalSupplyHistory.addCheckpoint(currentBlock, newTotalSupply.toUint192Value());

        emit Deposit(msg.sender, _amount);
    }

    /**
     * @notice Unwrap `@tokenAmount(self.depositedToken(): address, _amount)`
     * @param _amount Amount to unwrap
     */
    function withdraw(uint256 _amount) external isInitialized {
        require(_amount > 0, ERROR_WITHDRAW_AMOUNT_ZERO);

        uint256 currentBalance = balanceOf(msg.sender);
        require(_amount <= currentBalance, ERROR_INVALID_WITHDRAW_AMOUNT);

        // Decrease our wrapped token accounting
        uint256 newBalance = currentBalance.sub(_amount);

        uint256 currentTotalSupply = totalSupply();
        uint256 newTotalSupply = currentTotalSupply.sub(_amount);

        uint64 currentBlock = getBlockNumber64();
        balancesHistory[msg.sender].addCheckpoint(currentBlock, newBalance.toUint192Value());
        totalSupplyHistory.addCheckpoint(currentBlock, newTotalSupply.toUint192Value());

        // Then return ERC20 tokens
        require(depositedToken.safeTransfer(msg.sender, _amount), ERROR_TOKEN_TRANSFER_FAILED);

        emit Withdrawal(msg.sender, _amount);
    }

    // ERC20 fns - note that this token is a non-transferrable "view-only" implementation.
    // Users should only be changing balances by depositing and withdrawing tokens.
    // These functions do **NOT** revert if the app is uninitialized to stay compatible with normal ERC20s.

    function balanceOf(address _owner) public view returns (uint256) {
        return _balanceOfAt(_owner, getBlockNumber());
    }

    function decimals() public view returns (uint8) {
        // Decimals is optional; proxy to outside token
        return IERC20WithDecimals(depositedToken).decimals();
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupplyAt(getBlockNumber());
    }

    // Checkpointed fns
    // These functions do **NOT** revert if the app is uninitialized to stay compatible with normal ERC20s.

    function balanceOfAt(address _owner, uint256 _blockNumber) public view returns (uint256) {
        return _balanceOfAt(_owner, _blockNumber);
    }

    function totalSupplyAt(uint256 _blockNumber) public view returns (uint256) {
        return _totalSupplyAt(_blockNumber);
    }

    // Forwarding fns

    /**
    * @notice Tells whether the TokenWrapper app is a forwarder or not
    * @dev IForwarder interface conformance
    * @return Always true
    */
    function isForwarder() public pure returns (bool) {
        return true;
    }

    /**
     * @notice Execute desired action as a token holder
     * @dev IForwarder interface conformance. Forwards any token holder action.
     * @param _evmScript Script being executed
     */
    function forward(bytes _evmScript) public {
        require(canForward(msg.sender, _evmScript), ERROR_CAN_NOT_FORWARD);
        bytes memory input = new bytes(0);

        // Add the wrapped token to the blacklist to disallow a token holder from interacting with
        // the token on this contract's behalf (e.g. maliciously causing a transfer).
        address[] memory blacklist = new address[](1);
        blacklist[0] = address(depositedToken);

        runScript(_evmScript, input, blacklist);
    }

    /**
    * @notice Tells whether `_sender` can forward actions or not
    * @dev IForwarder interface conformance
    * @param _sender Address of the account intending to forward an action
    * @return True if the given address can forward actions, false otherwise
    */
    function canForward(address _sender, bytes) public view returns (bool) {
        return hasInitialized() && balanceOf(_sender) > 0;
    }

    // aragonOS fns

    /**
    * @dev Disable recovery escape hatch for deposited token
    */
    function allowRecoverability(address _token) public view returns (bool) {
        return _token != address(depositedToken);
    }

    // Internal fns

    function _balanceOfAt(address _owner, uint256 _blockNumber) internal view returns (uint256) {
        return balancesHistory[_owner].getValueAt(_blockNumber.toUint64Time());
    }

    function _totalSupplyAt(uint256 _blockNumber) internal view returns (uint256) {
        return totalSupplyHistory.getValueAt(_blockNumber.toUint64Time());
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"hasInitialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_script","type":"bytes"}],"name":"getEVMScriptExecutor","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getRecoveryVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_token","type":"address"}],"name":"allowRecoverability","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"appId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getInitializationBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_depositedToken","type":"address"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_sender","type":"address"},{"name":"_role","type":"bytes32"},{"name":"_params","type":"uint256[]"}],"name":"canPerform","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getEVMScriptRegistry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_sender","type":"address"},{"name":"","type":"bytes"}],"name":"canForward","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"kernel","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_evmScript","type":"bytes"}],"name":"forward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"depositedToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isPetrified","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isForwarder","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"entity","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"entity","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"executor","type":"address"},{"indexed":false,"name":"script","type":"bytes"},{"indexed":false,"name":"input","type":"bytes"},{"indexed":false,"name":"returnData","type":"bytes"}],"name":"ScriptResult","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"vault","type":"address"},{"indexed":true,"name":"token","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"RecoverToVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

Deployed Bytecode

0x6080604052600436106101745763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146101795780630803fac014610203578063095ea7b31461022c57806318160ddd1461025d57806323b872dd146102845780632914b9bd146102bb5780632e1a7d4d1461033d578063313ce5671461035757806332f0a3b5146103825780634ee2cd7e1461039757806370a08231146103c85780637e7db6e1146103f657806380afdea8146104245780638b3dd74914610439578063906571471461044e57806395d89b4114610494578063981b24d0146104a95780639d4941d8146104c1578063a1658fad146104ef578063a479e50814610563578063a9059cbb1461022c578063b6b55f2514610578578063c0774df314610590578063d4aae0c414610604578063d948d46814610619578063dad9b08614610672578063dd62ed3e14610687578063de4796ed146106bb578063fd64eccb146106d0575b600080fd5b34801561018557600080fd5b5061018e6106e5565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c85781810151838201526020016101b0565b50505050905090810190601f1680156101f55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020f57600080fd5b50610218610790565b604080519115158252519081900360200190f35b34801561023857600080fd5b5061021873ffffffffffffffffffffffffffffffffffffffff600435166024356107ba565b34801561026957600080fd5b50610272610887565b60408051918252519081900360200190f35b34801561029057600080fd5b5061021873ffffffffffffffffffffffffffffffffffffffff600435811690602435166044356107ba565b3480156102c757600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261031494369492936024939284019190819084018382808284375094975061089f9650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561034957600080fd5b506103556004356109ab565b005b34801561036357600080fd5b5061036c610d26565b6040805160ff9092168252519081900360200190f35b34801561038e57600080fd5b50610314610dde565b3480156103a357600080fd5b5061027273ffffffffffffffffffffffffffffffffffffffff60043516602435610e4b565b3480156103d457600080fd5b5061027273ffffffffffffffffffffffffffffffffffffffff60043516610e5e565b34801561040257600080fd5b5061021873ffffffffffffffffffffffffffffffffffffffff60043516610e77565b34801561043057600080fd5b50610272610e99565b34801561044557600080fd5b50610272610ec4565b34801561045a57600080fd5b506103556004803573ffffffffffffffffffffffffffffffffffffffff169060248035808201929081013591604435908101910135610eef565b3480156104a057600080fd5b5061018e6110a4565b3480156104b557600080fd5b5061027260043561111a565b3480156104cd57600080fd5b5061035573ffffffffffffffffffffffffffffffffffffffff60043516611125565b3480156104fb57600080fd5b50604080516020600460443581810135838102808601850190965280855261021895833573ffffffffffffffffffffffffffffffffffffffff169560248035963696956064959394920192918291850190849080828437509497506114479650505050505050565b34801561056f57600080fd5b506103146115d7565b34801561058457600080fd5b50610355600435611699565b34801561059c57600080fd5b5060408051602060046024803582810135601f810185900485028601850190965285855261021895833573ffffffffffffffffffffffffffffffffffffffff1695369560449491939091019190819084018382808284375094975061194a9650505050505050565b34801561061057600080fd5b5061031461196e565b34801561062557600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526103559436949293602493928401919081908401838280828437509497506119999650505050505050565b34801561067e57600080fd5b50610314611acd565b34801561069357600080fd5b5061027273ffffffffffffffffffffffffffffffffffffffff60043581169060243516611ae9565b3480156106c757600080fd5b50610218611af1565b3480156106dc57600080fd5b50610218611b22565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156107885780601f1061075d57610100808354040283529160200191610788565b820191906000526020600020905b81548152906001019060200180831161076b57829003601f168201915b505050505081565b60008061079b610ec4565b905080158015906107b35750806107b0611b27565b10155b91505b5090565b604080518082018252600f81527f45524332305f564945575f4f4e4c590000000000000000000000000000000000602080830191825292517f08c379a00000000000000000000000000000000000000000000000000000000081526004810193845282516024820152825160009492839260440191808383895b8381101561084c578181015183820152602001610834565b50505050905090810190601f1680156108795780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000610899610894611b27565b611b2b565b90505b90565b60006108a96115d7565b73ffffffffffffffffffffffffffffffffffffffff166304bf2a7f836040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561092d578181015183820152602001610915565b50505050905090810190601f16801561095a5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561097957600080fd5b505af115801561098d573d6000803e3d6000fd5b505050506040513d60208110156109a357600080fd5b505192915050565b60008060008060006109bb610790565b60408051808201909152601481527f494e49545f4e4f545f494e495449414c495a45440000000000000000000000006020820152901515610a58576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b5060408051808201909152601781527f54575f57495448445241575f414d4f554e545f5a45524f000000000000000000602082015260008711610af7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b50610b0133610e5e565b60408051808201909152601a81527f54575f494e56414c49445f57495448445241575f414d4f554e54000000000000602082015290955085871115610ba2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b50610bb3858763ffffffff611b4716565b9350610bbd610887565b9250610bcf838763ffffffff611b4716565b9150610bd9611bf2565b9050610c0481610be886611c04565b336000908152600360205260409020919063ffffffff611cc416565b610c2081610c1184611c04565b6004919063ffffffff611cc416565b600054610c4a9073ffffffffffffffffffffffffffffffffffffffff16338863ffffffff611f3916565b60408051808201909152601881527f54575f544f4b454e5f5452414e534645525f4641494c454400000000000000006020820152901515610ce7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b5060408051878152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a2505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610dad57600080fd5b505af1158015610dc1573d6000803e3d6000fd5b505050506040513d6020811015610dd757600080fd5b5051905090565b6000610de861196e565b73ffffffffffffffffffffffffffffffffffffffff166332f0a3b56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610dad57600080fd5b6000610e578383611fd1565b9392505050565b6000610e7182610e6c611b27565b611fd1565b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116141590565b60006108997fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b612010565b60006108997febb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e612010565b610ef7610ec4565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a4544000000000000000060208201529015610f93576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b50610f9c612018565b610fa5856120f7565b60408051808201909152601581527f54575f544f4b454e5f4e4f545f434f4e545241435400000000000000000000006020820152901515611042576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b50600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff871617905561108f60018585612db5565b5061109c60028383612db5565b505050505050565b600280546040805160206001841615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01909316849004601f810184900484028201840190925281815292918301828280156107885780601f1061075d57610100808354040283529160200191610788565b6000610e7182611b2b565b600080600061113384610e77565b60408051808201909152601281527f5245434f5645525f444953414c4c4f574544000000000000000000000000000060208201529015156111d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b506111d9610dde565b92506111e4836120f7565b60408051808201909152601a81527f5245434f5645525f5641554c545f4e4f545f434f4e54524143540000000000006020820152901515611281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b5073ffffffffffffffffffffffffffffffffffffffff841615156112ec576040513031925073ffffffffffffffffffffffffffffffffffffffff84169083156108fc029084906000818181858888f193505050501580156112e6573d6000803e3d6000fd5b506113dc565b508261131473ffffffffffffffffffffffffffffffffffffffff82163063ffffffff61213116565b915061133d73ffffffffffffffffffffffffffffffffffffffff8216848463ffffffff611f3916565b60408051808201909152601d81527f5245434f5645525f544f4b454e5f5452414e534645525f4641494c454400000060208201529015156113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b505b8373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f596caf56044b55fb8c4ca640089bbc2b63cae3e978b851f5745cbb7c5b288e02846040518082815260200191505060405180910390a350505050565b600080611452610790565b151561146157600091506115cf565b61146961196e565b905073ffffffffffffffffffffffffffffffffffffffff8116151561149157600091506115cf565b8073ffffffffffffffffffffffffffffffffffffffff1663fdef91068630876114b98861226a565b6040517c010000000000000000000000000000000000000000000000000000000063ffffffff871602815273ffffffffffffffffffffffffffffffffffffffff808616600483019081529085166024830152604482018490526080606483019081528351608484015283519192909160a490910190602085019080838360005b83811015611551578181015183820152602001611539565b50505050905090810190601f16801561157e5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156115a057600080fd5b505af11580156115b4573d6000803e3d6000fd5b505050506040513d60208110156115ca57600080fd5b505191505b509392505050565b6000806115e261196e565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527fd6f028ca0e8edb4a8c9757ca4fdccab25fa1e0317da1188108f7d2dee14902fb60048201527fddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd616024820152905173ffffffffffffffffffffffffffffffffffffffff929092169163be00bbd8916044808201926020929091908290030181600087803b15801561097957600080fd5b60008060008060006116a9610790565b60408051808201909152601481527f494e49545f4e4f545f494e495449414c495a45440000000000000000000000006020820152901515611746576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b5060408051808201909152601681527f54575f4445504f5349545f414d4f554e545f5a45524f000000000000000000006020820152600087116117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b506000546118119073ffffffffffffffffffffffffffffffffffffffff1633308963ffffffff61227416565b60408051808201909152601d81527f54575f544f4b454e5f5452414e534645525f46524f4d5f4641494c454400000060208201529015156118ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b506118b833610e5e565b94506118ca858763ffffffff61231516565b93506118d4610887565b92506118e6838763ffffffff61231516565b91506118f0611bf2565b90506118ff81610be886611c04565b61190c81610c1184611c04565b60408051878152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050505050565b6000611954610790565b8015610e575750600061196684610e5e565b119392505050565b60006108997f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b612010565b6060806119a6338461194a565b60408051808201909152601281527f54575f43414e5f4e4f545f464f525741524400000000000000000000000000006020820152901515611a43576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b50604080516000815260016020808301828152606084018552929550919290919085019080388339505060008054835193945073ffffffffffffffffffffffffffffffffffffffff16928492508110611a9857fe5b73ffffffffffffffffffffffffffffffffffffffff909216602092830290910190910152611ac78383836123ba565b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611b1c610ec4565b14905090565b600190565b4390565b6000610e71611b3983612a90565b60049063ffffffff612b3916565b60408051808201909152601281527f4d4154485f5355425f554e444552464c4f5700000000000000000000000000006020820152600090819084841115611bea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b505050900390565b6000610899611bff611b27565b612a90565b60408051808201909152601681527f55494e543139325f4e554d4245525f544f4f5f42494700000000000000000000602082015260009077ffffffffffffffffffffffffffffffffffffffffffffffff831115611cbd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b5090919050565b8254600080821515611d69576040805180820190915267ffffffffffffffff808716825277ffffffffffffffffffffffffffffffffffffffffffffffff80871660208085019182528a54600181018c5560008c815291909120945194018054915190921668010000000000000000029383167fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000009091161790911691909117905561109c565b855486907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8501908110611d9957fe5b6000918252602090912001805490925067ffffffffffffffff90811691508516811015611e59576040805180820190915267ffffffffffffffff808716825277ffffffffffffffffffffffffffffffffffffffffffffffff80871660208085019182528a54600181018c5560008c815291909120945194018054915190921668010000000000000000029383167fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000009091161790911691909117905561109c565b808567ffffffffffffffff161415611ea557815467ffffffffffffffff166801000000000000000077ffffffffffffffffffffffffffffffffffffffffffffffff86160217825561109c565b604080518082018252601a81527f434845434b504f494e545f504153545f434845434b504f494e54000000000000602080830191825292517f08c379a00000000000000000000000000000000000000000000000000000000081526004810193845282516024820152825192939283926044909201919080838360008381101561084c578181015183820152602001610834565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052600090611fc88582612b45565b95945050505050565b6000610e57611fdf83612a90565b73ffffffffffffffffffffffffffffffffffffffff851660009081526003602052604090209063ffffffff612b3916565b5490565b5490565b612020610ec4565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a45440000000000000000602082015290156120bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b506120f56120c8611b27565b7febb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e9063ffffffff612b9316565b565b60008073ffffffffffffffffffffffffffffffffffffffff83161515612120576000915061212b565b823b90506000811191505b50919050565b6040805173ffffffffffffffffffffffffffffffffffffffff83166024808301919091528251808303909101815260449091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f70a082310000000000000000000000000000000000000000000000000000000017905260009081806121be8684612b97565b60408051808201909152601c81527f534146455f4552435f32305f42414c414e43455f52455645525445440000000060208201529193509150821515612260576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b5095945050505050565b8051602002815290565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905260009061230b8682612b45565b9695505050505050565b60408051808201909152601181527f4d4154485f4144445f4f564552464c4f57000000000000000000000000000000602082015260009083830190848210156115cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b60606000806060806123ca610790565b60408051808201909152601481527f494e49545f4e4f545f494e495449414c495a45440000000000000000000000006020820152901515612467576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b5060008061247361196e565b915061247d610e99565b90506124888a61089f565b60408051808201909152601b81527f45564d52554e5f4558454355544f525f554e415641494c41424c450000000000602082015290965073ffffffffffffffffffffffffffffffffffffffff8716151561253e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b506040516060602482019081528b5160848301528b517f279cea3500000000000000000000000000000000000000000000000000000000975087928d928d928d9282916044820191606481019160a490910190602089019080838360005b838110156125b457818101518382015260200161259c565b50505050905090810190601f1680156125e15780820380516001836020036101000a031916815260200191505b50848103835286518152865160209182019188019080838360005b838110156126145781810151838201526020016125fc565b50505050905090810190601f1680156126415780820380516001836020036101000a031916815260200191505b508481038252855181528551602091820191808801910280838360005b8381101561267657818101518382015260200161265e565b505050509050019650505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509350600080855160208701895af4604051935080801561277b57603f3d1180156127195760203d03806020883e8601604052612775565b7f08c379a000000000000000000000000000000000000000000000000000000000865260206004870152601e60248701527f45564d52554e5f4558454355544f525f494e56414c49445f52455455524e00006044870152606486fd5b50612784565b3d6000863e3d85fd5b50508573ffffffffffffffffffffffffffffffffffffffff167f5229a5dba83a54ae8cb5b51bdd6de9474cacbe9dd332f5185f3a4f4f2e3f4ad98b8b8660405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b838110156128065781810151838201526020016127ee565b50505050905090810190601f1680156128335780820380516001836020036101000a031916815260200191505b50848103835286518152865160209182019188019080838360005b8381101561286657818101518382015260200161284e565b50505050905090810190601f1680156128935780820380516001836020036101000a031916815260200191505b50848103825285518152855160209182019187019080838360005b838110156128c65781810151838201526020016128ae565b50505050905090810190601f1680156128f35780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a28296508173ffffffffffffffffffffffffffffffffffffffff1661292661196e565b73ffffffffffffffffffffffffffffffffffffffff16146040805190810160405280601f81526020017f45564d52554e5f50524f5445435445445f53544154455f4d4f444946494544008152509015156129dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b50806129e6610e99565b60408051808201909152601f81527f45564d52554e5f50524f5445435445445f53544154455f4d4f4449464945440060208201529114612a82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b505050505050509392505050565b60408051808201909152601581527f55494e5436345f4e554d4245525f544f4f5f4249470000000000000000000000602082015260009067ffffffffffffffff831115611cbd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360008381101561084c578181015183820152602001610834565b6000610e578383612bc8565b6000806040516020818551602087016000895af16000811115612b89573d8015612b765760208114612b7f57612b87565b60019350612b87565b600183511493505b505b5090949350505050565b9055565b6000806000806040516020818751602089018a5afa92506000831115612bbc57805191505b50909590945092505050565b815460009081808080808080871515612be45760009850612da7565b8a547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff890197508b9088908110612c1757fe5b6000918252602090912001805490965067ffffffffffffffff908116908b1610612c6a57855468010000000000000000900477ffffffffffffffffffffffffffffffffffffffffffffffff169850612da7565b8760011480612ca057508a548b906000908110612c8357fe5b60009182526020909120015467ffffffffffffffff908116908b16105b15612cae5760009850612da7565b600094506001870393505b84841115612d64578a5460028686016001010493508b9084908110612cda57fe5b6000918252602090912001805490925067ffffffffffffffff90811691508a16811015612d0957829450612d5f565b8067ffffffffffffffff168a67ffffffffffffffff161015612d3057600183039350612d5f565b815468010000000000000000900477ffffffffffffffffffffffffffffffffffffffffffffffff169850612da7565b612cb9565b8a548b9086908110612d7257fe5b60009182526020909120015468010000000000000000900477ffffffffffffffffffffffffffffffffffffffffffffffff1698505b505050505050505092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612e14578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612e41565b82800160010185558215612e41579182015b82811115612e41578235825591602001919060010190612e26565b506107b69261089c9250905b808211156107b65760008155600101612e4d5600a165627a7a7230582034792e3ecf959d500e20e7b4ce0e0e318c09a9688ae9f879c81dcf56d7819d600029

Deployed Bytecode Sourcemap

44591:7328:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45496:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45496:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;45496:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10132:211;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10132:211:0;;;;;;;;;;;;;;;;;;;;;;42851:105;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;42851:105:0;;;;;;;;;49320:111;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49320:111:0;;;;;;;;;;;;;;;;;;;;43078:119;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;43078:119:0;;;;;;;;;;;;;;28114:181;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;28114:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28114:181:0;;-1:-1:-1;28114:181:0;;-1:-1:-1;;;;;;;28114:181:0;;;;;;;;;;;;;;;;;;;;47787:916;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;47787:916:0;;;;;;;49136:176;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49136:176:0;;;;;;;;;;;;;;;;;;;;;;;34228:232;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34228:232:0;;;;49575:149;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49575:149:0;;;;;;;;;48999:129;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;48999:129:0;;;;;;;51403:131;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;51403:131:0;;;;;;;3635:108;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3635:108:0;;;;9878:139;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9878:139:0;;;;46214:293;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;46214:293:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45521:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45521:20:0;;;;49732:129;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49732:129:0;;;;;23621:639;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;23621:639:0;;;;;;;33594:512;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;33594:512:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33594:512:0;;-1:-1:-1;33594:512:0;;-1:-1:-1;;;;;;;33594:512:0;28303:234;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28303:234:0;;;;46774:868;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;46774:868:0;;;;;51154:139;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;51154:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51154:139:0;;-1:-1:-1;51154:139:0;;-1:-1:-1;;;;;;;51154:139:0;3509:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3509:118:0;;;;50347:517;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;50347:517:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50347:517:0;;-1:-1:-1;50347:517:0;;-1:-1:-1;;;;;;;50347:517:0;45462:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45462:27:0;;;;43205:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;43205:94:0;;;;;;;;;;;;11242:119;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11242:119:0;;;;50055:80;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50055:80:0;;;;45496:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;10132:211::-;10179:4;10196:27;10226:24;:22;:24::i;:::-;10196:54;-1:-1:-1;10268:24:0;;;;;:67;;;10316:19;10296:16;:14;:16::i;:::-;:39;;10268:67;10261:74;;10132:211;;;:::o;42851:105::-;42926:21;;;;;;;;;;;;;;;;;;;42919:29;;;;;;;;;;;;;;;;;;;42902:4;;42919:29;;;;;;;;42926:21;42902:4;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;42919:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49320:111;49364:7;49391:32;49406:16;:14;:16::i;:::-;49391:14;:32::i;:::-;49384:39;;49320:111;;:::o;28114:181::-;28180:18;28237:22;:20;:22::i;:::-;:40;;;28278:7;28237:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;28237:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28237:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28237:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28237:49:0;;28114:181;-1:-1:-1;;28114:181:0:o;47787:916::-;47917:22;48102:18;48163:26;48216:22;48285:19;9727:16;:14;:16::i;:::-;9745:21;;;;;;;;;;;;;;;;;;9719:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9719:48:0;-1:-1:-1;47877:26:0;;;;;;;;;;;;;;;;;47874:1;47864:11;;47856:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;47856:48:0;;47942:21;47952:10;47942:9;:21::i;:::-;48009:29;;;;;;;;;;;;;;;;;47917:46;;-1:-1:-1;47982:25:0;;;;47974:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;47974:65:0;-1:-1:-1;48123:27:0;:14;48142:7;48123:27;:18;:27;:::i;:::-;48102:48;;48192:13;:11;:13::i;:::-;48163:42;-1:-1:-1;48241:31:0;48163:42;48264:7;48241:31;:22;:31;:::i;:::-;48216:56;;48307:18;:16;:18::i;:::-;48285:40;;48336:84;48378:12;48392:27;:10;:25;:27::i;:::-;48352:10;48336:27;;;;:15;:27;;;;;;:84;;:41;:84;:::i;:::-;48431:79;48464:12;48478:31;:14;:29;:31::i;:::-;48431:18;;:79;;:32;:79;:::i;:::-;48568:14;;:48;;:14;;48596:10;48608:7;48568:48;:27;:48;:::i;:::-;48618:27;;;;;;;;;;;;;;;;;;48560:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;48560:86:0;-1:-1:-1;48664:31:0;;;;;;;;48675:10;;48664:31;;;;;;;;;;47787:916;;;;;;:::o;49136:176::-;49177:5;49278:14;;;;;;;;;;;49259:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49259:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49259:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49259:45:0;;-1:-1:-1;49136:176:0;:::o;34228:232::-;34277:7;34385:8;:6;:8::i;:::-;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;49575:149:0;49655:7;49682:34;49695:6;49703:12;49682;:34::i;:::-;49675:41;49575:149;-1:-1:-1;;;49575:149:0:o;48999:129::-;49055:7;49082:38;49095:6;49103:16;:14;:16::i;:::-;49082:12;:38::i;:::-;49075:45;48999:129;-1:-1:-1;;48999:129:0:o;51403:131::-;51469:4;51511:14;;;;;51493:33;;;;;51403:131::o;3635:108::-;3673:7;3700:35;3434:66;3700:33;:35::i;9878:139::-;9933:7;9960:49;9324:66;9960:47;:49::i;46214:293::-;9600:24;:22;:24::i;:::-;9631:25;;;;;;;;;;;;;;;;;;9600:29;9592:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9592:65:0;;46316:13;:11;:13::i;:::-;46350:27;46361:15;46350:10;:27::i;:::-;46379:24;;;;;;;;;;;;;;;;;;46342:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;46342:62:0;-1:-1:-1;46417:14:0;:32;;;;;;;;;;46460:12;-1:-1:-1;46467:5:0;;46460:12;:::i;:::-;-1:-1:-1;46483:16:0;:6;46492:7;;46483:16;:::i;:::-;;46214:293;;;;;:::o;45521:20::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49732:129;49798:7;49825:28;49840:12;49825:14;:28::i;23621:639::-;23747:13;23857:15;24019:11;23690:27;23710:6;23690:19;:27::i;:::-;23719:16;;;;;;;;;;;;;;;;;;23682:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;23682:54:0;;23763:18;:16;:18::i;:::-;23747:34;;23800:17;23811:5;23800:10;:17::i;:::-;23819:24;;;;;;;;;;;;;;;;;;23792:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;23792:52:0;-1:-1:-1;23887:13:0;;;;23883:314;;;23963:23;;23935:4;23927:21;;-1:-1:-1;23927:21:0;23963:14;;;:23;;;;;23927:21;;23963:23;;;;23927:21;23963:14;:23;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23963:23:0;23883:314;;;-1:-1:-1;24039:6:0;24071:27;:21;;;24093:4;24071:27;:21;:27;:::i;:::-;24061:37;-1:-1:-1;24121:34:0;:18;;;24140:5;24061:37;24121:34;:18;:34;:::i;:::-;24157:27;;;;;;;;;;;;;;;;;;24113:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;24113:72:0;;23883:314;24236:6;24214:38;;24229:5;24214:38;;;24244:7;24214:38;;;;;;;;;;;;;;;;;;23621:639;;;;:::o;33594:512::-;33686:4;33777:20;33708:16;:14;:16::i;:::-;33707:17;33703:62;;;33748:5;33741:12;;;;33703:62;33800:8;:6;:8::i;:::-;33777:31;-1:-1:-1;33823:35:0;;;;33819:80;;;33882:5;33875:12;;;;33819:80;33918:12;:26;;;33959:7;33989:4;34009:5;34029:58;34079:7;34029:49;:58::i;:::-;33918:180;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;33918:180:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33918:180:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33918:180:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33918:180:0;;-1:-1:-1;33594:512:0;;;;;;;:::o;28303:234::-;28356:18;28387:20;28410:8;:6;:8::i;:::-;:69;;;;;;27344:66;28410:69;;;;25432:66;28410:69;;;;;;:15;;;;;;;;:69;;;;;;;;;;;;;;;;:15;:69;;;5:2:-1;;;;30:1;27;20:12;46774:868:0;47123:22;47180:18;47241:26;47294:22;47363:19;9727:16;:14;:16::i;:::-;9745:21;;;;;;;;;;;;;;;;;;9719:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9719:48:0;-1:-1:-1;46863:25:0;;;;;;;;;;;;;;;;;46860:1;46850:11;;46842:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;46842:47:0;-1:-1:-1;46953:14:0;;:67;;:14;;46985:10;47005:4;47012:7;46953:67;:31;:67;:::i;:::-;47022:32;;;;;;;;;;;;;;;;;;46945:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;46945:110:0;;47148:21;47158:10;47148:9;:21::i;:::-;47123:46;-1:-1:-1;47201:27:0;47123:46;47220:7;47201:27;:18;:27;:::i;:::-;47180:48;;47270:13;:11;:13::i;:::-;47241:42;-1:-1:-1;47319:31:0;47241:42;47342:7;47319:31;:22;:31;:::i;:::-;47294:56;;47385:18;:16;:18::i;:::-;47363:40;;47414:84;47456:12;47470:27;:10;:25;:27::i;47414:84::-;47509:79;47542:12;47556:31;:14;:29;:31::i;47509:79::-;47606:28;;;;;;;;47614:10;;47606:28;;;;;;;;;;46774:868;;;;;;:::o;51154:139::-;51219:4;51243:16;:14;:16::i;:::-;:42;;;;;51284:1;51263:18;51273:7;51263:9;:18::i;:::-;:22;;51154:139;-1:-1:-1;;;51154:139:0:o;3509:118::-;3548:7;3583:35;3317:66;3583:33;:35::i;50347:517::-;50477:18;50710:26;50408:34;50419:10;50431;50408;:34::i;:::-;50444:21;;;;;;;;;;;;;;;;;;50400:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;50400:66:0;-1:-1:-1;50498:12:0;;;50508:1;50498:12;;50753:1;50498:12;;;;50739:16;;;;;;;;50498:12;;-1:-1:-1;50498:12:0;;50753:1;;50739:16;;;;50498:12;105:10:-1;50739:16:0;88:34:-1;-1:-1;;50789:14:0;;;50766:12;;;;-1:-1:-1;50789:14:0;;;50766:12;;-1:-1:-1;50766:12:0;;;;;;:38;;;;:12;;;;;;;;;;:38;50817:39;50827:10;50839:5;50846:9;50817;:39::i;:::-;;50347:517;;;:::o;45462:27::-;;;;;;:::o;43205:94::-;43263:7;43205:94;;;;:::o;11242:119::-;11286:4;11230:2;11310:24;:22;:24::i;:::-;:43;11303:50;;11242:119;:::o;50055:80::-;50123:4;50055:80;:::o;7919:96::-;7995:12;7919:96;:::o;51754:162::-;51823:7;51850:58;51880:27;:12;:25;:27::i;:::-;51850:18;;:58;:29;:58;:::i;36817:177::-;36915:19;;;;;;;;;;;;;;;;;36877:7;;;;36905:8;;;;36897:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;36897:38:0;-1:-1:-1;;;36958:7:0;;;36817:177::o;8227:112::-;8278:6;8304:27;:16;:14;:16::i;:::-;:25;:27::i;42131:165::-;42237:21;;;;;;;;;;;;;;;;;42190:7;;42224:11;42218:17;;;42210:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;42210:49:0;-1:-1:-1;42285:2:0;;42131:165;-1:-1:-1;42131:165:0:o;38364:749::-;38477:20;;38460:14;;38512:11;;38508:598;;;38559:25;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;45:23;;38540:13:0;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38508:598;;;38657:25;;:5;;38671:10;;;;38657:25;;;;;;;;;;;;;;;38737:22;;38657:25;;-1:-1:-1;38737:22:0;;;;;-1:-1:-1;38781:29:0;;;-1:-1:-1;38777:318:0;;;38850:25;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;45:23;;38831:13:0;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38777:318;;;38911:21;38902:5;:30;;;38898:197;;;38953:32;;;;;;;;;;;;38898:197;;;39057:21;;;;;;;;;;;;;;;;;;;39050:29;;;;;;;;;;;;;;;;;;;39057:21;;39050:29;;;;;;;;39057:21;39050:29;;39057:21;-1:-1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;19819:311:0;19952:105;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19952:105:0;;;;;;;;25:18:-1;;61:17;;19952:105:0;182:15:-1;19989:17:0;179:29:-1;160:49;;19903:4:0;;20075:47;20097:6;19952:105;20075:21;:47::i;:::-;20068:54;19819:311;-1:-1:-1;;;;;19819:311:0:o;51565:181::-;51648:7;51675:63;51710:27;:12;:25;:27::i;:::-;51675:23;;;;;;;:15;:23;;;;;;:63;:34;:63;:::i;459:136::-;571:15;;561:27::o;603:136::-;715:15;;705:27::o;10459:125::-;9600:24;:22;:24::i;:::-;9631:25;;;;;;;;;;;;;;;;;;9600:29;9592:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9592:65:0;;10511;10559:16;:14;:16::i;:::-;9324:66;;10511:65;:47;:65;:::i;:::-;10459:125::o;16357:252::-;16417:4;;16438:21;;;;16434:66;;;16483:5;16476:12;;;;16434:66;16566:7;16554:20;16546:28;;16600:1;16593:4;:8;16586:15;;16357:252;;;;;:::o;21337:413::-;21468:94;;;21505:16;21468:94;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;21468:94:0;;;;;;;;25:18:-1;;61:17;;21468:94:0;182:15:-1;21505:25:0;179:29:-1;160:49;;21415:7:0;;;;21614:39;21505:6;21468:94;21614:12;:39::i;:::-;21681:28;;;;;;;;;;;;;;;;;21575:78;;-1:-1:-1;21575:78:0;-1:-1:-1;21664:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;21664:46:0;-1:-1:-1;21730:12:0;21337:413;-1:-1:-1;;;;;21337:413:0:o;12262:548::-;12683:13;;12699:2;12683:18;12766:26;;12683:6;12721:82::o;20318:369::-;20474:136;;;20511:19;20474:136;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;20474:136:0;;;;;;;;25:18:-1;;61:17;;20474:136:0;182:15:-1;20511:28:0;179:29:-1;160:49;;20421:4:0;;20628:51;20511:6;20474:136;20628:21;:51::i;:::-;20621:58;20318:369;-1:-1:-1;;;;;;20318:369:0:o;37070:175::-;37197:18;;;;;;;;;;;;;;;;;37130:7;;37162;;;;37188;;;;37180:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;28545:3278:0;28696:5;28719:27;28870:10;28922:17;29011:19;9727:16;:14;:16::i;:::-;9745:21;;;;;;;;;;;;;;;;;;9719:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9719:48:0;;31864:17;31912:16;31892:8;:6;:8::i;:::-;31864:37;;31931:7;:5;:7::i;:::-;31912:26;;28749:29;28770:7;28749:20;:29::i;:::-;28830:26;;;;;;;;;;;;;;;;;28719:59;;-1:-1:-1;28797:31:0;;;;;28789:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;28789:68:0;-1:-1:-1;28942:56:0;;;;;;;;;;;;;;;;;28883:28;;-1:-1:-1;28883:28:0;;28970:7;;28979:6;;28987:10;;28942:56;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;28942:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28942:56:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;28942:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28942:56:0;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;28942:56:0;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;28942:56:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;28942:56:0;28922:76;;29415:1;29326;29276:4;29270:11;29225:4;29219;29215:15;29167:8;29111:3;29080:391;29503:4;29497:11;;-1:-1:-1;29551:7:0;29572:199;;;;29838:4;29822:14;29819:24;29861:981;;;;31527:4;31511:14;31507:25;31583:8;31577:4;31569:6;31554:38;31629:21;;31623:4;31616:35;29812:1878;;29861:981;30219:66;30211:6;30204:82;30362:66;30355:4;30347:6;30343:17;30336:93;30496:66;30489:4;30481:6;30477:17;30470:93;30628:66;30621:4;30613:6;30609:17;30602:93;30744:3;30736:6;30729:19;29812:1878;;29544:2161;;29572:199;29693:14;29690:1;29682:6;29667:41;29741:14;29733:6;29726:30;29544:2161;;29050:2666;31754:8;31733:56;;;31765:7;31774:6;31782;31733:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;31733:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31733:56:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;31733:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31733:56:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;31733:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31809:6;31802:13;;31998:9;31977:30;;31985:8;:6;:8::i;:::-;31977:30;;;32009;;;;;;;;;;;;;;;;;;31969:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;31969:71:0;-1:-1:-1;32070:8:0;32059:7;:5;:7::i;:::-;32080:30;;;;;;;;;;;;;;;;;;32059:19;32051:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;32051:60:0;;9778:1;;28545:3278;;;;;;;;;:::o;41964:159::-;42066:20;;;;;;;;;;;;;;;;;42021:6;;42054:10;42048:16;;;42040:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;39121:140:0;39201:7;39228:25;39240:5;39247;39228:11;:25::i;17448:1381::-;17553:4;17575:8;17635:4;17629:11;18066:4;17994:3;17942:9;17936:16;17894:4;17883:9;17879:20;17828:1;17778:5;17720:3;17697:423;18151:1;18142:7;18139:14;18136:2;;;18255:14;18343:57;;;;18482:4;18477:197;;;;18248:527;;18343:57;18380:1;18373:8;;18343:57;;18477:197;18653:1;18647:3;18641:10;18638:17;18631:24;;18248:527;;18136:2;-1:-1:-1;18818:3:0;;17448:1381;-1:-1:-1;;;;17448:1381:0:o;1128:121::-;1218:22;;1216:26::o;18837:798::-;18947:4;18953:7;18978:12;19001:11;19064:4;19058:11;19446:4;19374:3;19322:9;19316:16;19274:4;19263:9;19259:20;19209:5;19151:3;19122:378;19111:389;;19531:1;19522:7;19519:14;19516:2;;;19566:3;19560:10;19553:17;;19516:2;-1:-1:-1;19614:7:0;;19623:3;;-1:-1:-1;18837:798:0;-1:-1:-1;;;18837:798:0:o;39790:1738::-;39907:20;;39870:7;;;;;;;;;40147:11;;40143:52;;;40182:1;40175:8;;;;40143:52;40318:24;;40261:10;;;;-1:-1:-1;40318:5:0;;40261:10;;40318:24;;;;;;;;;;;;;;;40366:19;;40318:24;;-1:-1:-1;40366:19:0;;;;40357:28;;;;40353:97;;40417:20;;;;;;;;-1:-1:-1;40402:36:0;;40353:97;40555:6;40565:1;40555:11;:44;;;-1:-1:-1;40578:16:0;;:5;;:13;;:16;;;;;;;;;;;;;;;:21;;;;;40570:29;;;;40555:44;40551:85;;;40623:1;40616:8;;;;40551:85;40788:1;40774:15;;40827:1;40815:9;:13;40800:28;;40841:627;40855:3;40848:4;:10;40841:627;;;40979:18;;40908:1;40890:10;;;40903:1;40890:14;40889:20;;-1:-1:-1;40979:5:0;;40889:20;;40979:18;;;;;;;;;;;;;;;41029:15;;40979:18;;-1:-1:-1;41029:15:0;;;;;-1:-1:-1;41065:15:0;;;-1:-1:-1;41061:396:0;;;41107:3;41101:9;;41061:396;;;41144:7;41136:15;;:5;:15;;;41132:325;;;41330:1;41324:3;:7;41317:14;;41132:325;;;41424:16;;;;;;;;-1:-1:-1;41409:32:0;;41132:325;40841:627;;;41495:18;;:5;;41509:3;;41495:18;;;;;;;;;;;;;;;:24;;;;;;;-1:-1:-1;39790:1738:0;;;;;;;;;;;;;:::o;44591:7328::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44591:7328:0;;;;-1:-1:-1;44591:7328:0;;;;;;;;;;;;;;

Swarm Source

bzzr://34792e3ecf959d500e20e7b4ce0e0e318c09a9688ae9f879c81dcf56d7819d60

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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