ETH Price: $3,389.27 (-1.55%)
Gas: 1 Gwei

Contract

0x9f3b9198911054B122fDb865f8A5Ac516201c339
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x6080604094282672020-02-06 9:26:031605 days ago1580981163IN
 Create: ACL
0 ETH0.007343353

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ACL

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 2020-02-06
*/

// File: 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: 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: contracts/common/IVaultRecoverable.sol

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

pragma solidity ^0.4.24;


interface IVaultRecoverable {
    function transferToVault(address token) external;

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

// File: contracts/kernel/IKernel.sol

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

pragma solidity ^0.4.24;




// This should be an interface, but interfaces can't inherit yet :(
contract IKernel is IVaultRecoverable {
    event SetApp(bytes32 indexed namespace, bytes32 indexed appId, address app);

    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: 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: 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: 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: 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: 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: 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: 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: 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: 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: contracts/common/VaultRecoverable.sol

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

pragma solidity ^0.4.24;






contract VaultRecoverable is IVaultRecoverable, EtherTokenConstant, IsContract {
    string private constant ERROR_DISALLOWED = "RECOVER_DISALLOWED";
    string private constant ERROR_VAULT_NOT_CONTRACT = "RECOVER_VAULT_NOT_CONTRACT";

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

        if (_token == ETH) {
            vault.transfer(address(this).balance);
        } else {
            uint256 amount = ERC20(_token).balanceOf(this);
            ERC20(_token).transfer(vault, amount);
        }
    }

    /**
    * @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: 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: 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: 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: 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_EXECUTION_REVERTED = "EVMRUN_EXECUTION_REVERTED";
    string private constant ERROR_PROTECTED_STATE_MODIFIED = "EVMRUN_PROTECTED_STATE_MODIFIED";

    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)
    {
        // TODO: Too much data flying around, maybe extracting spec id here is cheaper
        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);
        require(address(executor).delegatecall(data), ERROR_EXECUTION_REVERTED);

        bytes memory output = returnedDataDecoded();

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

        return output;
    }

    /**
    * @dev copies and returns last's call data. Needs to ABI decode first
    */
    function returnedDataDecoded() internal pure returns (bytes ret) {
        assembly {
            let size := returndatasize
            switch size
            case 0 {}
            default {
                ret := mload(0x40) // free mem ptr get
                mstore(0x40, add(ret, add(size, 0x20))) // free mem ptr set
                returndatacopy(ret, 0x20, sub(size, 0x20)) // copy return data
            }
        }
        return ret;
    }

    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: contracts/acl/ACLSyntaxSugar.sol

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

pragma solidity ^0.4.24;


contract ACLSyntaxSugar {
    function arr() internal pure returns (uint256[]) {}

    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: 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.
// ACLSyntaxSugar and EVMScriptRunner 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, 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;
        }

        // 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 _params and a new length, and _params becomes invalid from this point forward
        bytes memory how;
        uint256 byteLength = _params.length * 32;
        assembly {
            how := _params
            mstore(how, byteLength)
        }
        return linkedKernel.hasPermission(_sender, address(this), _role, how);
    }

    /**
    * @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: contracts/acl/IACLOracle.sol

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

pragma solidity ^0.4.24;


interface IACLOracle {
    function canPerform(address who, address where, bytes32 what, uint256[] how) external view returns (bool);
}

// File: contracts/acl/ACL.sol

pragma solidity 0.4.24;







/* solium-disable function-order */
// Allow public initialize() to be first
contract ACL is IACL, TimeHelpers, AragonApp, ACLHelpers {
    /* Hardcoded constants to save gas
    bytes32 public constant CREATE_PERMISSIONS_ROLE = keccak256("CREATE_PERMISSIONS_ROLE");
    */
    bytes32 public constant CREATE_PERMISSIONS_ROLE = 0x0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a;

    enum Op { NONE, EQ, NEQ, GT, LT, GTE, LTE, RET, NOT, AND, OR, XOR, IF_ELSE } // op types

    struct Param {
        uint8 id;
        uint8 op;
        uint240 value; // even though value is an uint240 it can store addresses
        // in the case of 32 byte hashes losing 2 bytes precision isn't a huge deal
        // op and id take less than 1 byte each so it can be kept in 1 sstore
    }

    uint8 internal constant BLOCK_NUMBER_PARAM_ID = 200;
    uint8 internal constant TIMESTAMP_PARAM_ID    = 201;
    // 202 is unused
    uint8 internal constant ORACLE_PARAM_ID       = 203;
    uint8 internal constant LOGIC_OP_PARAM_ID     = 204;
    uint8 internal constant PARAM_VALUE_PARAM_ID  = 205;
    // TODO: Add execution times param type?

    /* Hardcoded constant to save gas
    bytes32 public constant EMPTY_PARAM_HASH = keccak256(uint256(0));
    */
    bytes32 public constant EMPTY_PARAM_HASH = 0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563;
    bytes32 public constant NO_PERMISSION = bytes32(0);
    address public constant ANY_ENTITY = address(-1);
    address public constant BURN_ENTITY = address(1); // address(0) is already used as "no permission manager"

    string private constant ERROR_AUTH_INIT_KERNEL = "ACL_AUTH_INIT_KERNEL";
    string private constant ERROR_AUTH_NO_MANAGER = "ACL_AUTH_NO_MANAGER";
    string private constant ERROR_EXISTENT_MANAGER = "ACL_EXISTENT_MANAGER";

    // Whether someone has a permission
    mapping (bytes32 => bytes32) internal permissions; // permissions hash => params hash
    mapping (bytes32 => Param[]) internal permissionParams; // params hash => params

    // Who is the manager of a permission
    mapping (bytes32 => address) internal permissionManager;

    event SetPermission(address indexed entity, address indexed app, bytes32 indexed role, bool allowed);
    event SetPermissionParams(address indexed entity, address indexed app, bytes32 indexed role, bytes32 paramsHash);
    event ChangePermissionManager(address indexed app, bytes32 indexed role, address indexed manager);

    modifier onlyPermissionManager(address _app, bytes32 _role) {
        require(msg.sender == getPermissionManager(_app, _role), ERROR_AUTH_NO_MANAGER);
        _;
    }

    modifier noPermissionManager(address _app, bytes32 _role) {
        // only allow permission creation (or re-creation) when there is no manager
        require(getPermissionManager(_app, _role) == address(0), ERROR_EXISTENT_MANAGER);
        _;
    }

    /**
    * @dev Initialize can only be called once. It saves the block number in which it was initialized.
    * @notice Initialize an ACL instance and set `_permissionsCreator` as the entity that can create other permissions
    * @param _permissionsCreator Entity that will be given permission over createPermission
    */
    function initialize(address _permissionsCreator) public onlyInit {
        initialized();
        require(msg.sender == address(kernel()), ERROR_AUTH_INIT_KERNEL);

        _createPermission(_permissionsCreator, this, CREATE_PERMISSIONS_ROLE, _permissionsCreator);
    }

    /**
    * @dev Creates a permission that wasn't previously set and managed.
    *      If a created permission is removed it is possible to reset it with createPermission.
    *      This is the **ONLY** way to create permissions and set managers to permissions that don't
    *      have a manager.
    *      In terms of the ACL being initialized, this function implicitly protects all the other
    *      state-changing external functions, as they all require the sender to be a manager.
    * @notice Create a new permission granting `_entity` the ability to perform actions requiring `_role` on `_app`, setting `_manager` as the permission's manager
    * @param _entity Address of the whitelisted entity that will be able to perform the role
    * @param _app Address of the app in which the role will be allowed (requires app to depend on kernel for ACL)
    * @param _role Identifier for the group of actions in app given access to perform
    * @param _manager Address of the entity that will be able to grant and revoke the permission further.
    */
    function createPermission(address _entity, address _app, bytes32 _role, address _manager)
        external
        auth(CREATE_PERMISSIONS_ROLE)
        noPermissionManager(_app, _role)
    {
        _createPermission(_entity, _app, _role, _manager);
    }

    /**
    * @dev Grants permission if allowed. This requires `msg.sender` to be the permission manager
    * @notice Grant `_entity` the ability to perform actions requiring `_role` on `_app`
    * @param _entity Address of the whitelisted entity that will be able to perform the role
    * @param _app Address of the app in which the role will be allowed (requires app to depend on kernel for ACL)
    * @param _role Identifier for the group of actions in app given access to perform
    */
    function grantPermission(address _entity, address _app, bytes32 _role)
        external
    {
        grantPermissionP(_entity, _app, _role, new uint256[](0));
    }

    /**
    * @dev Grants a permission with parameters if allowed. This requires `msg.sender` to be the permission manager
    * @notice Grant `_entity` the ability to perform actions requiring `_role` on `_app`
    * @param _entity Address of the whitelisted entity that will be able to perform the role
    * @param _app Address of the app in which the role will be allowed (requires app to depend on kernel for ACL)
    * @param _role Identifier for the group of actions in app given access to perform
    * @param _params Permission parameters
    */
    function grantPermissionP(address _entity, address _app, bytes32 _role, uint256[] _params)
        public
        onlyPermissionManager(_app, _role)
    {
        bytes32 paramsHash = _params.length > 0 ? _saveParams(_params) : EMPTY_PARAM_HASH;
        _setPermission(_entity, _app, _role, paramsHash);
    }

    /**
    * @dev Revokes permission if allowed. This requires `msg.sender` to be the the permission manager
    * @notice Revoke from `_entity` the ability to perform actions requiring `_role` on `_app`
    * @param _entity Address of the whitelisted entity to revoke access from
    * @param _app Address of the app in which the role will be revoked
    * @param _role Identifier for the group of actions in app being revoked
    */
    function revokePermission(address _entity, address _app, bytes32 _role)
        external
        onlyPermissionManager(_app, _role)
    {
        _setPermission(_entity, _app, _role, NO_PERMISSION);
    }

    /**
    * @notice Set `_newManager` as the manager of `_role` in `_app`
    * @param _newManager Address for the new manager
    * @param _app Address of the app in which the permission management is being transferred
    * @param _role Identifier for the group of actions being transferred
    */
    function setPermissionManager(address _newManager, address _app, bytes32 _role)
        external
        onlyPermissionManager(_app, _role)
    {
        _setPermissionManager(_newManager, _app, _role);
    }

    /**
    * @notice Remove the manager of `_role` in `_app`
    * @param _app Address of the app in which the permission is being unmanaged
    * @param _role Identifier for the group of actions being unmanaged
    */
    function removePermissionManager(address _app, bytes32 _role)
        external
        onlyPermissionManager(_app, _role)
    {
        _setPermissionManager(address(0), _app, _role);
    }

    /**
    * @notice Burn non-existent `_role` in `_app`, so no modification can be made to it (grant, revoke, permission manager)
    * @param _app Address of the app in which the permission is being burned
    * @param _role Identifier for the group of actions being burned
    */
    function createBurnedPermission(address _app, bytes32 _role)
        external
        auth(CREATE_PERMISSIONS_ROLE)
        noPermissionManager(_app, _role)
    {
        _setPermissionManager(BURN_ENTITY, _app, _role);
    }

    /**
    * @notice Burn `_role` in `_app`, so no modification can be made to it (grant, revoke, permission manager)
    * @param _app Address of the app in which the permission is being burned
    * @param _role Identifier for the group of actions being burned
    */
    function burnPermissionManager(address _app, bytes32 _role)
        external
        onlyPermissionManager(_app, _role)
    {
        _setPermissionManager(BURN_ENTITY, _app, _role);
    }

    /**
     * @notice Get parameters for permission array length
     * @param _entity Address of the whitelisted entity that will be able to perform the role
     * @param _app Address of the app
     * @param _role Identifier for a group of actions in app
     * @return Length of the array
     */
    function getPermissionParamsLength(address _entity, address _app, bytes32 _role) external view returns (uint) {
        return permissionParams[permissions[permissionHash(_entity, _app, _role)]].length;
    }

    /**
    * @notice Get parameter for permission
    * @param _entity Address of the whitelisted entity that will be able to perform the role
    * @param _app Address of the app
    * @param _role Identifier for a group of actions in app
    * @param _index Index of parameter in the array
    * @return Parameter (id, op, value)
    */
    function getPermissionParam(address _entity, address _app, bytes32 _role, uint _index)
        external
        view
        returns (uint8, uint8, uint240)
    {
        Param storage param = permissionParams[permissions[permissionHash(_entity, _app, _role)]][_index];
        return (param.id, param.op, param.value);
    }

    /**
    * @dev Get manager for permission
    * @param _app Address of the app
    * @param _role Identifier for a group of actions in app
    * @return address of the manager for the permission
    */
    function getPermissionManager(address _app, bytes32 _role) public view returns (address) {
        return permissionManager[roleHash(_app, _role)];
    }

    /**
    * @dev Function called by apps to check ACL on kernel or to check permission statu
    * @param _who Sender of the original call
    * @param _where Address of the app
    * @param _where Identifier for a group of actions in app
    * @param _how Permission parameters
    * @return boolean indicating whether the ACL allows the role or not
    */
    function hasPermission(address _who, address _where, bytes32 _what, bytes memory _how) public view returns (bool) {
        // 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 _how and a new length, and _how becomes invalid from this point forward
        uint256[] memory how;
        uint256 intsLength = _how.length / 32;
        assembly {
            how := _how
            mstore(how, intsLength)
        }

        return hasPermission(_who, _where, _what, how);
    }

    function hasPermission(address _who, address _where, bytes32 _what, uint256[] memory _how) public view returns (bool) {
        bytes32 whoParams = permissions[permissionHash(_who, _where, _what)];
        if (whoParams != NO_PERMISSION && evalParams(whoParams, _who, _where, _what, _how)) {
            return true;
        }

        bytes32 anyParams = permissions[permissionHash(ANY_ENTITY, _where, _what)];
        if (anyParams != NO_PERMISSION && evalParams(anyParams, ANY_ENTITY, _where, _what, _how)) {
            return true;
        }

        return false;
    }

    function hasPermission(address _who, address _where, bytes32 _what) public view returns (bool) {
        uint256[] memory empty = new uint256[](0);
        return hasPermission(_who, _where, _what, empty);
    }

    function evalParams(
        bytes32 _paramsHash,
        address _who,
        address _where,
        bytes32 _what,
        uint256[] _how
    ) public view returns (bool)
    {
        if (_paramsHash == EMPTY_PARAM_HASH) {
            return true;
        }

        return _evalParam(_paramsHash, 0, _who, _where, _what, _how);
    }

    /**
    * @dev Internal createPermission for access inside the kernel (on instantiation)
    */
    function _createPermission(address _entity, address _app, bytes32 _role, address _manager) internal {
        _setPermission(_entity, _app, _role, EMPTY_PARAM_HASH);
        _setPermissionManager(_manager, _app, _role);
    }

    /**
    * @dev Internal function called to actually save the permission
    */
    function _setPermission(address _entity, address _app, bytes32 _role, bytes32 _paramsHash) internal {
        permissions[permissionHash(_entity, _app, _role)] = _paramsHash;
        bool entityHasPermission = _paramsHash != NO_PERMISSION;
        bool permissionHasParams = entityHasPermission && _paramsHash != EMPTY_PARAM_HASH;

        emit SetPermission(_entity, _app, _role, entityHasPermission);
        if (permissionHasParams) {
            emit SetPermissionParams(_entity, _app, _role, _paramsHash);
        }
    }

    function _saveParams(uint256[] _encodedParams) internal returns (bytes32) {
        bytes32 paramHash = keccak256(abi.encodePacked(_encodedParams));
        Param[] storage params = permissionParams[paramHash];

        if (params.length == 0) { // params not saved before
            for (uint256 i = 0; i < _encodedParams.length; i++) {
                uint256 encodedParam = _encodedParams[i];
                Param memory param = Param(decodeParamId(encodedParam), decodeParamOp(encodedParam), uint240(encodedParam));
                params.push(param);
            }
        }

        return paramHash;
    }

    function _evalParam(
        bytes32 _paramsHash,
        uint32 _paramId,
        address _who,
        address _where,
        bytes32 _what,
        uint256[] _how
    ) internal view returns (bool)
    {
        if (_paramId >= permissionParams[_paramsHash].length) {
            return false; // out of bounds
        }

        Param memory param = permissionParams[_paramsHash][_paramId];

        if (param.id == LOGIC_OP_PARAM_ID) {
            return _evalLogic(param, _paramsHash, _who, _where, _what, _how);
        }

        uint256 value;
        uint256 comparedTo = uint256(param.value);

        // get value
        if (param.id == ORACLE_PARAM_ID) {
            value = checkOracle(IACLOracle(param.value), _who, _where, _what, _how) ? 1 : 0;
            comparedTo = 1;
        } else if (param.id == BLOCK_NUMBER_PARAM_ID) {
            value = getBlockNumber();
        } else if (param.id == TIMESTAMP_PARAM_ID) {
            value = getTimestamp();
        } else if (param.id == PARAM_VALUE_PARAM_ID) {
            value = uint256(param.value);
        } else {
            if (param.id >= _how.length) {
                return false;
            }
            value = uint256(uint240(_how[param.id])); // force lost precision
        }

        if (Op(param.op) == Op.RET) {
            return uint256(value) > 0;
        }

        return compare(value, Op(param.op), comparedTo);
    }

    function _evalLogic(Param _param, bytes32 _paramsHash, address _who, address _where, bytes32 _what, uint256[] _how)
        internal
        view
        returns (bool)
    {
        if (Op(_param.op) == Op.IF_ELSE) {
            uint32 conditionParam;
            uint32 successParam;
            uint32 failureParam;

            (conditionParam, successParam, failureParam) = decodeParamsList(uint256(_param.value));
            bool result = _evalParam(_paramsHash, conditionParam, _who, _where, _what, _how);

            return _evalParam(_paramsHash, result ? successParam : failureParam, _who, _where, _what, _how);
        }

        uint32 param1;
        uint32 param2;

        (param1, param2,) = decodeParamsList(uint256(_param.value));
        bool r1 = _evalParam(_paramsHash, param1, _who, _where, _what, _how);

        if (Op(_param.op) == Op.NOT) {
            return !r1;
        }

        if (r1 && Op(_param.op) == Op.OR) {
            return true;
        }

        if (!r1 && Op(_param.op) == Op.AND) {
            return false;
        }

        bool r2 = _evalParam(_paramsHash, param2, _who, _where, _what, _how);

        if (Op(_param.op) == Op.XOR) {
            return r1 != r2;
        }

        return r2; // both or and and depend on result of r2 after checks
    }

    function compare(uint256 _a, Op _op, uint256 _b) internal pure returns (bool) {
        if (_op == Op.EQ)  return _a == _b;                              // solium-disable-line lbrace
        if (_op == Op.NEQ) return _a != _b;                              // solium-disable-line lbrace
        if (_op == Op.GT)  return _a > _b;                               // solium-disable-line lbrace
        if (_op == Op.LT)  return _a < _b;                               // solium-disable-line lbrace
        if (_op == Op.GTE) return _a >= _b;                              // solium-disable-line lbrace
        if (_op == Op.LTE) return _a <= _b;                              // solium-disable-line lbrace
        return false;
    }

    function checkOracle(IACLOracle _oracleAddr, address _who, address _where, bytes32 _what, uint256[] _how) internal view returns (bool) {
        bytes4 sig = _oracleAddr.canPerform.selector;

        // a raw call is required so we can return false if the call reverts, rather than reverting
        bytes memory checkCalldata = abi.encodeWithSelector(sig, _who, _where, _what, _how);

        bool ok;
        assembly {
            // send all available gas; if the oracle eats up all the gas, we will eventually revert
            // note that we are currently guaranteed to still have some gas after the call from
            // EIP-150's 63/64 gas forward rule
            ok := staticcall(gas, _oracleAddr, add(checkCalldata, 0x20), mload(checkCalldata), 0, 0)
        }

        if (!ok) {
            return false;
        }

        uint256 size;
        assembly { size := returndatasize }
        if (size != 32) {
            return false;
        }

        bool result;
        assembly {
            let ptr := mload(0x40)       // get next free memory ptr
            returndatacopy(ptr, 0, size) // copy return from above `staticcall`
            result := mload(ptr)         // read data at ptr and set it to result
            mstore(ptr, 0)               // set pointer memory to 0 so it still is the next free ptr
        }

        return result;
    }

    /**
    * @dev Internal function that sets management
    */
    function _setPermissionManager(address _newManager, address _app, bytes32 _role) internal {
        permissionManager[roleHash(_app, _role)] = _newManager;
        emit ChangePermissionManager(_app, _role, _newManager);
    }

    function roleHash(address _where, bytes32 _what) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("ROLE", _where, _what));
    }

    function permissionHash(address _who, address _where, bytes32 _what) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("PERMISSION", _who, _where, _what));
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"hasInitialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"createBurnedPermission","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"burnPermissionManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_entity","type":"address"},{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"grantPermission","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_entity","type":"address"},{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"getPermissionParamsLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_paramsHash","type":"bytes32"},{"name":"_who","type":"address"},{"name":"_where","type":"address"},{"name":"_what","type":"bytes32"},{"name":"_how","type":"uint256[]"}],"name":"evalParams","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"NO_PERMISSION","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_script","type":"bytes"}],"name":"getEVMScriptExecutor","outputs":[{"name":"","type":"address"}],"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":"CREATE_PERMISSIONS_ROLE","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_entity","type":"address"},{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"},{"name":"_params","type":"uint256[]"}],"name":"grantPermissionP","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_who","type":"address"},{"name":"_where","type":"address"},{"name":"_what","type":"bytes32"}],"name":"hasPermission","outputs":[{"name":"","type":"bool"}],"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":"_entity","type":"address"},{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"revokePermission","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_entity","type":"address"},{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"},{"name":"_index","type":"uint256"}],"name":"getPermissionParam","outputs":[{"name":"","type":"uint8"},{"name":"","type":"uint8"},{"name":"","type":"uint240"}],"payable":false,"stateMutability":"view","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":true,"inputs":[],"name":"ANY_ENTITY","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"removePermissionManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newManager","type":"address"},{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"setPermissionManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"}],"name":"getPermissionManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_entity","type":"address"},{"name":"_app","type":"address"},{"name":"_role","type":"bytes32"},{"name":"_manager","type":"address"}],"name":"createPermission","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_permissionsCreator","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"EMPTY_PARAM_HASH","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"kernel","outputs":[{"name":"","type":"address"}],"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":"BURN_ENTITY","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_who","type":"address"},{"name":"_where","type":"address"},{"name":"_what","type":"bytes32"},{"name":"_how","type":"uint256[]"}],"name":"hasPermission","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_who","type":"address"},{"name":"_where","type":"address"},{"name":"_what","type":"bytes32"},{"name":"_how","type":"bytes"}],"name":"hasPermission","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"entity","type":"address"},{"indexed":true,"name":"app","type":"address"},{"indexed":true,"name":"role","type":"bytes32"},{"indexed":false,"name":"allowed","type":"bool"}],"name":"SetPermission","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"entity","type":"address"},{"indexed":true,"name":"app","type":"address"},{"indexed":true,"name":"role","type":"bytes32"},{"indexed":false,"name":"paramsHash","type":"bytes32"}],"name":"SetPermissionParams","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"app","type":"address"},{"indexed":true,"name":"role","type":"bytes32"},{"indexed":true,"name":"manager","type":"address"}],"name":"ChangePermissionManager","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"}]

6080604052620000176401000000006200001d810204565b6200023b565b6200003064010000000062000125810204565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a45440000000000000000602082015290156200010c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620000d0578181015183820152602001620000b6565b50505050905090810190601f168015620000fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506200012360001964010000000062000154810204565b565b60006200014f60008051602062002d42833981519152640100000000620023fa6200023382021704565b905090565b6200016764010000000062000125810204565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a454400000000000000006020820152901562000206576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252838181518152602001915080519060200190808383600083811015620000d0578181015183820152602001620000b6565b506200023060008051602062002d428339815191528264010000000062002a8e6200023782021704565b50565b5490565b9055565b612af7806200024b6000396000f3006080604052600436106101955763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630803fac0811461019a5780630808343e146101c357806309699ff5146101f65780630a8ed3db1461022757806315949ed71461025e5780631b5e75be146102a75780631d63ff2b146103295780632914b9bd1461033e57806332f0a3b5146103c05780633d6ab68f146103d55780636815c992146103ea5780636d6712d81461046b5780637e7db6e1146104a257806380afdea8146104d05780638b3dd749146104e55780639d0effdb146104fa5780639d4941d814610531578063a03c58321461055f578063a1658fad146105dd578063a479e50814610651578063a5ed8bf814610666578063a885508a1461067b578063afd925df146106ac578063b1905727146106e3578063be03847814610714578063c4d66de814610752578063c513f66e14610780578063d4aae0c414610795578063de4796ed146107aa578063f516bc0e146107bf578063f520b58d146107d4578063fdef910614610855575b600080fd5b3480156101a657600080fd5b506101af6108d1565b604080519115158252519081900360200190f35b3480156101cf57600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff600435166024356108fa565b005b34801561020257600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043516602435610aee565b34801561023357600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610bc0565b34801561026a57600080fd5b5061029573ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610bfc565b60408051918252519081900360200190f35b3480156102b357600080fd5b5060408051602060046084358181013583810280860185019096528085526101af958335956024803573ffffffffffffffffffffffffffffffffffffffff9081169760443590911696606435963696919560a495949091019282919085019084908082843750949750610c3e9650505050505050565b34801561033557600080fd5b50610295610c8b565b34801561034a57600080fd5b506040805160206004803580820135601f8101849004840285018401909552848452610397943694929360249392840191908190840183828082843750949750610c909650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156103cc57600080fd5b50610397610d9c565b3480156103e157600080fd5b50610295610e3a565b3480156103f657600080fd5b5060408051606435600481810135602081810285810182019096528185526101f49573ffffffffffffffffffffffffffffffffffffffff84358116966024803590921696604435963696909560849593949290920192909182919085019084908082843750949750610e5e9650505050505050565b34801561047757600080fd5b506101af73ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610f6f565b3480156104ae57600080fd5b506101af73ffffffffffffffffffffffffffffffffffffffff60043516610f8b565b3480156104dc57600080fd5b50610295610f91565b3480156104f157600080fd5b50610295610fc1565b34801561050657600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610fec565b34801561053d57600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff600435166110b9565b34801561056b57600080fd5b5061059973ffffffffffffffffffffffffffffffffffffffff600435811690602435166044356064356113ba565b6040805160ff94851681529290931660208301527dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168183015290519081900360600190f35b3480156105e957600080fd5b5060408051602060046044358181013583810280860185019096528085526101af95833573ffffffffffffffffffffffffffffffffffffffff1695602480359636969560649593949201929182918501908490808284375094975061144f9650505050505050565b34801561065d57600080fd5b506103976115d5565b34801561067257600080fd5b50610397611697565b34801561068757600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff6004351660243561169d565b3480156106b857600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435611769565b3480156106ef57600080fd5b5061039773ffffffffffffffffffffffffffffffffffffffff60043516602435611834565b34801561072057600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff6004358116906024358116906044359060643516611872565b34801561075e57600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043516611a21565b34801561078c57600080fd5b50610295611bb9565b3480156107a157600080fd5b50610397611bdd565b3480156107b657600080fd5b506101af611c08565b3480156107cb57600080fd5b50610397611c1b565b3480156107e057600080fd5b5060408051606435600481810135602081810285810182019096528185526101af9573ffffffffffffffffffffffffffffffffffffffff84358116966024803590921696604435963696909560849593949290920192909182919085019084908082843750949750611c209650505050505050565b34801561086157600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526101af9473ffffffffffffffffffffffffffffffffffffffff8135811695602480359092169560443595369560849401918190840183828082843750949750611cc49650505050505050565b6000806108dc610fc1565b905080158015906108f45750806108f1611cf7565b10155b91505090565b604080516000808252602082019092527f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a9161093c9133918491905b5061144f565b60408051808201909152600f81527f4150505f415554485f4641494c454400000000000000000000000000000000006020820152901515610a15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109da5781810151838201526020016109c2565b50505050905090810190601f168015610a075780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082826000610a248383611834565b73ffffffffffffffffffffffffffffffffffffffff16146040805190810160405280601481526020017f41434c5f4558495354454e545f4d414e41474552000000000000000000000000815250901515610ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610ae760018686611cfb565b5050505050565b8181610afa8282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314610bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610bba60018585611cfb565b50505050565b610bf78383836000604051908082528060200260200182016040528015610bf1578160200160208202803883390190505b50610e5e565b505050565b600060016000806000610c10888888611d92565b81526020808201929092526040908101600090812054845291830193909352910190205490505b9392505050565b60007f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563861415610c7057506001610c82565b610c7f86600087878787611e91565b90505b95945050505050565b600081565b6000610c9a6115d5565b73ffffffffffffffffffffffffffffffffffffffff166304bf2a7f836040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d1e578181015183820152602001610d06565b50505050905090810190601f168015610d4b5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610d6a57600080fd5b505af1158015610d7e573d6000803e3d6000fd5b505050506040513d6020811015610d9457600080fd5b505192915050565b6000610da6611bdd565b73ffffffffffffffffffffffffffffffffffffffff166332f0a3b56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610e0957600080fd5b505af1158015610e1d573d6000803e3d6000fd5b505050506040513d6020811015610e3357600080fd5b5051905090565b7f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a81565b60008383610e6c8282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b506000845111610f4f577f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563610f58565b610f58846120da565b9250610f66878787866122ec565b50505050505050565b60408051600080825260208201909252610c8285858584611c20565b50600190565b6000610fbc7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6123fa565b905090565b6000610fbc7febb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e6123fa565b8181610ff88282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff1633146110ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610ae785858560006122ec565b6000806110c583610f8b565b60408051808201909152601281527f5245434f5645525f444953414c4c4f57454400000000000000000000000000006020820152901515611162576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b5061116b610d9c565b915061117682612402565b60408051808201909152601a81527f5245434f5645525f5641554c545f4e4f545f434f4e54524143540000000000006020820152901515611213576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b5073ffffffffffffffffffffffffffffffffffffffff8316151561127a5760405173ffffffffffffffffffffffffffffffffffffffff831690303180156108fc02916000818181858888f19350505050158015611274573d6000803e3d6000fd5b50610bf7565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8516916370a082319160248083019260209291908290030181600087803b1580156112e857600080fd5b505af11580156112fc573d6000803e3d6000fd5b505050506040513d602081101561131257600080fd5b5051604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301526024820184905291519293509085169163a9059cbb916044808201926020929091908290030181600087803b15801561139057600080fd5b505af11580156113a4573d6000803e3d6000fd5b505050506040513d6020811015610ae757600080fd5b600080600080600160008060006113d28c8c8c611d92565b815260208082019290925260409081016000908120548452918301939093529101902080548690811061140157fe5b60009182526020909120015460ff8082169a61010083049091169950620100009091047dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16975095505050505050565b6000806060600061145e6108d1565b151561146d57600093506115cb565b611475611bdd565b925073ffffffffffffffffffffffffffffffffffffffff8316151561149d57600093506115cb565b5050825160209081028085526040517ffdef910600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483019081523060248401819052604484018a90526080606485019081528951608486015289518a979489169563fdef9106958e958e948b949193909260a4909101919085019080838360005b8381101561154d578181015183820152602001611535565b50505050905090810190601f16801561157a5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561159c57600080fd5b505af11580156115b0573d6000803e3d6000fd5b505050506040513d60208110156115c657600080fd5b505193505b5050509392505050565b6000806115e0611bdd565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527fd6f028ca0e8edb4a8c9757ca4fdccab25fa1e0317da1188108f7d2dee14902fb60048201527fddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd616024820152905173ffffffffffffffffffffffffffffffffffffffff929092169163be00bbd8916044808201926020929091908290030181600087803b158015610d6a57600080fd5b60001981565b81816116a98282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff16331461175c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610bba60008585611cfb565b81816117758282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314611828576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610ae7858585611cfb565b600060026000611844858561243c565b815260208101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff169392505050565b604080516000808252602082019092527f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a916118b2913391849190610936565b60408051808201909152600f81527f4150505f415554485f4641494c45440000000000000000000000000000000000602082015290151561194f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b508383600061195e8383611834565b73ffffffffffffffffffffffffffffffffffffffff16146040805190810160405280601481526020017f41434c5f4558495354454e545f4d414e41474552000000000000000000000000815250901515611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610f6687878787612530565b611a29610fc1565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a4544000000000000000060208201529015611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50611ace612567565b611ad6611bdd565b60408051808201909152601481527f41434c5f415554485f494e49545f4b45524e454c00000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314611b89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50611bb681307f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a82612530565b50565b7f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56381565b6000610fbc7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b6123fa565b6000600019611c15610fc1565b14905090565b600181565b6000806000806000611c33898989611d92565b815260208101919091526040016000205491508115801590611c5d5750611c5d8288888888610c3e565b15611c6b5760019250611cba565b600080611c7b6000198989611d92565b815260208101919091526040016000205490508015801590611ca75750611ca781600019888888610c3e565b15611cb55760019250611cba565b600092505b5050949350505050565b60006060600060208451811515611cd757fe5b049050839150808252611cec87878785611c20565b979650505050505050565b4390565b8260026000611d0a858561243c565b815260208101919091526040908101600090812080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559051858316928492908616917ff3addc8b8e25ee11528a61b0e65092cae0666ef0ec0c64cb303993c88d689b4d9190a4505050565b604080517f5045524d495353494f4e000000000000000000000000000000000000000000006020808301919091526c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff8088168202602a850152861602603e8301526052808301859052835180840390910181526072909201928390528151600093918291908401908083835b60208310611e5d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611e20565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120979650505050505050565b6000611e9b612aab565b600088815260016020526040812054819063ffffffff8a1610611ec157600093506120cd565b60008a8152600160205260409020805463ffffffff8b16908110611ee157fe5b600091825260209182902060408051606081018252929091015460ff8082168085526101008304909116948401949094526201000090047dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690820152935060cc1415611f5b57611f54838b8a8a8a8a612646565b93506120cd565b50604082015182517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091169060ff1660cb1415611fbe57611fa2836040015189898989612819565b611fad576000611fb0565b60015b60ff1691506001905061207c565b825160ff1660c81415611fda57611fd3611cf7565b915061207c565b825160ff1660c91415611fef57611fd3612982565b825160ff1660cd14156120285782604001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16915061207c565b8451835160ff161061203d57600093506120cd565b82518551869160ff1690811061204f57fe5b906020019060200201517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1691505b6007836020015160ff16600c81111561209157fe5b600c81111561209c57fe5b14156120ad576000821193506120cd565b6120ca82846020015160ff16600c8111156120c457fe5b83612986565b93505b5050509695505050505050565b60008060008060006120ea612aab565b8660405160200180828051906020019060200280838360005b8381101561211b578181015183820152602001612103565b505050509050019150506040516020818303038152906040526040518082805190602001908083835b6020831061218157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612144565b51815160209384036101000a60001901801990921691161790526040805192909401829003909120600081815260019092529290208054929950975050151591506122e1905057600092505b86518310156122e15786838151811015156121e457fe5b90602001906020020151915060606040519081016040528061220584612a43565b60ff16815260200161221684612a69565b60ff90811682527dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff858116602093840152875460018082018a5560008a81528590208651920180549587015160408801517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909716938616939093177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1661010093909516929092029390931761ffff1662010000949092169390930217909155939093019290506121cd565b509295945050505050565b600080826000806122fe898989611d92565b8152602081019190915260400160002055821580159250829061234157507f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5638314155b6040805184151581529051919250859173ffffffffffffffffffffffffffffffffffffffff80891692908a16917f759b9a74d5354b5801710a0c1b283cc9f0d32b607ac8ced10c83ac8e75c77d529181900360200190a480156123f257604080518481529051859173ffffffffffffffffffffffffffffffffffffffff80891692908a16917f8dfee25d92d73b8c9b868f9fa3e215cc1981033f426e53803e3da4f09a2cfc30919081900360200190a45b505050505050565b5490565b5490565b60008073ffffffffffffffffffffffffffffffffffffffff8316151561242b5760009150612436565b823b90506000811191505b50919050565b604080517f524f4c45000000000000000000000000000000000000000000000000000000006020808301919091526c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff86160260248301526038808301859052835180840390910181526058909201928390528151600093918291908401908083835b602083106124fd57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016124c0565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091209695505050505050565b61255c8484847f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5636122ec565b610bba818484611cfb565b61256f610fc1565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a454400000000000000006020820152901561260b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50612644612617611cf7565b7febb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e9063ffffffff612a8e16565b565b60008080808080808080600c8f6020015160ff16600c81111561266557fe5b600c81111561267057fe5b14156126db576126a38f604001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612a92565b919950975095506126b88e898f8f8f8f611e91565b94506126d48e866126c957876126cb565b885b8f8f8f8f611e91565b9850612807565b6127088f604001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612a92565b50909450925061271c8e858f8f8f8f611e91565b915060088f6020015160ff16600c81111561273357fe5b600c81111561273e57fe5b141561274d5781159850612807565b8180156127775750600a8f6020015160ff16600c81111561276a57fe5b600c81111561277557fe5b145b156127855760019850612807565b811580156127b0575060098f6020015160ff16600c8111156127a357fe5b600c8111156127ae57fe5b145b156127be5760009850612807565b6127cc8e848f8f8f8f611e91565b9050600b8f6020015160ff16600c8111156127e357fe5b600c8111156127ee57fe5b14156128035780151582151514159850612807565b8098505b50505050505050509695505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff85811660248301908152908516604483015260648201849052608060848301908152835160a484015283516000937f2a151090000000000000000000000000000000000000000000000000000000009360609386938493849388938e938e938e938e939092909160c40190602080860191028083838d5b838110156128c05781810151838201526020016128a8565b5050505090500195505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505093506000808551602087018e5afa925082151561294b5760009550612974565b3d91506020821461295f5760009550612974565b604051826000823e8051915060008152508095505b505050505095945050505050565b4290565b6000600183600c81111561299657fe5b14156129a55750828114610c37565b600283600c8111156129b357fe5b14156129c3575082811415610c37565b600383600c8111156129d157fe5b14156129e05750808311610c37565b600483600c8111156129ee57fe5b14156129fd5750808310610c37565b600583600c811115612a0b57fe5b1415612a1b575080831015610c37565b600683600c811115612a2957fe5b1415612a39575080831115610c37565b5060009392505050565b7f0100000000000000000000000000000000000000000000000000000000000000900490565b7e01000000000000000000000000000000000000000000000000000000000000900490565b9055565b9064010000000082049068010000000000000000830490565b6040805160608101825260008082526020820181905291810191909152905600a165627a7a723058206412024817e0c96c4d51751f657dd8d3f184d95a90605096d0395eb3a79f07050029ebb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e

Deployed Bytecode

0x6080604052600436106101955763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630803fac0811461019a5780630808343e146101c357806309699ff5146101f65780630a8ed3db1461022757806315949ed71461025e5780631b5e75be146102a75780631d63ff2b146103295780632914b9bd1461033e57806332f0a3b5146103c05780633d6ab68f146103d55780636815c992146103ea5780636d6712d81461046b5780637e7db6e1146104a257806380afdea8146104d05780638b3dd749146104e55780639d0effdb146104fa5780639d4941d814610531578063a03c58321461055f578063a1658fad146105dd578063a479e50814610651578063a5ed8bf814610666578063a885508a1461067b578063afd925df146106ac578063b1905727146106e3578063be03847814610714578063c4d66de814610752578063c513f66e14610780578063d4aae0c414610795578063de4796ed146107aa578063f516bc0e146107bf578063f520b58d146107d4578063fdef910614610855575b600080fd5b3480156101a657600080fd5b506101af6108d1565b604080519115158252519081900360200190f35b3480156101cf57600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff600435166024356108fa565b005b34801561020257600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043516602435610aee565b34801561023357600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610bc0565b34801561026a57600080fd5b5061029573ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610bfc565b60408051918252519081900360200190f35b3480156102b357600080fd5b5060408051602060046084358181013583810280860185019096528085526101af958335956024803573ffffffffffffffffffffffffffffffffffffffff9081169760443590911696606435963696919560a495949091019282919085019084908082843750949750610c3e9650505050505050565b34801561033557600080fd5b50610295610c8b565b34801561034a57600080fd5b506040805160206004803580820135601f8101849004840285018401909552848452610397943694929360249392840191908190840183828082843750949750610c909650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156103cc57600080fd5b50610397610d9c565b3480156103e157600080fd5b50610295610e3a565b3480156103f657600080fd5b5060408051606435600481810135602081810285810182019096528185526101f49573ffffffffffffffffffffffffffffffffffffffff84358116966024803590921696604435963696909560849593949290920192909182919085019084908082843750949750610e5e9650505050505050565b34801561047757600080fd5b506101af73ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610f6f565b3480156104ae57600080fd5b506101af73ffffffffffffffffffffffffffffffffffffffff60043516610f8b565b3480156104dc57600080fd5b50610295610f91565b3480156104f157600080fd5b50610295610fc1565b34801561050657600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610fec565b34801561053d57600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff600435166110b9565b34801561056b57600080fd5b5061059973ffffffffffffffffffffffffffffffffffffffff600435811690602435166044356064356113ba565b6040805160ff94851681529290931660208301527dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168183015290519081900360600190f35b3480156105e957600080fd5b5060408051602060046044358181013583810280860185019096528085526101af95833573ffffffffffffffffffffffffffffffffffffffff1695602480359636969560649593949201929182918501908490808284375094975061144f9650505050505050565b34801561065d57600080fd5b506103976115d5565b34801561067257600080fd5b50610397611697565b34801561068757600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff6004351660243561169d565b3480156106b857600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435611769565b3480156106ef57600080fd5b5061039773ffffffffffffffffffffffffffffffffffffffff60043516602435611834565b34801561072057600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff6004358116906024358116906044359060643516611872565b34801561075e57600080fd5b506101f473ffffffffffffffffffffffffffffffffffffffff60043516611a21565b34801561078c57600080fd5b50610295611bb9565b3480156107a157600080fd5b50610397611bdd565b3480156107b657600080fd5b506101af611c08565b3480156107cb57600080fd5b50610397611c1b565b3480156107e057600080fd5b5060408051606435600481810135602081810285810182019096528185526101af9573ffffffffffffffffffffffffffffffffffffffff84358116966024803590921696604435963696909560849593949290920192909182919085019084908082843750949750611c209650505050505050565b34801561086157600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526101af9473ffffffffffffffffffffffffffffffffffffffff8135811695602480359092169560443595369560849401918190840183828082843750949750611cc49650505050505050565b6000806108dc610fc1565b905080158015906108f45750806108f1611cf7565b10155b91505090565b604080516000808252602082019092527f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a9161093c9133918491905b5061144f565b60408051808201909152600f81527f4150505f415554485f4641494c454400000000000000000000000000000000006020820152901515610a15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109da5781810151838201526020016109c2565b50505050905090810190601f168015610a075780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082826000610a248383611834565b73ffffffffffffffffffffffffffffffffffffffff16146040805190810160405280601481526020017f41434c5f4558495354454e545f4d414e41474552000000000000000000000000815250901515610ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610ae760018686611cfb565b5050505050565b8181610afa8282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314610bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610bba60018585611cfb565b50505050565b610bf78383836000604051908082528060200260200182016040528015610bf1578160200160208202803883390190505b50610e5e565b505050565b600060016000806000610c10888888611d92565b81526020808201929092526040908101600090812054845291830193909352910190205490505b9392505050565b60007f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563861415610c7057506001610c82565b610c7f86600087878787611e91565b90505b95945050505050565b600081565b6000610c9a6115d5565b73ffffffffffffffffffffffffffffffffffffffff166304bf2a7f836040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d1e578181015183820152602001610d06565b50505050905090810190601f168015610d4b5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610d6a57600080fd5b505af1158015610d7e573d6000803e3d6000fd5b505050506040513d6020811015610d9457600080fd5b505192915050565b6000610da6611bdd565b73ffffffffffffffffffffffffffffffffffffffff166332f0a3b56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610e0957600080fd5b505af1158015610e1d573d6000803e3d6000fd5b505050506040513d6020811015610e3357600080fd5b5051905090565b7f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a81565b60008383610e6c8282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b506000845111610f4f577f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563610f58565b610f58846120da565b9250610f66878787866122ec565b50505050505050565b60408051600080825260208201909252610c8285858584611c20565b50600190565b6000610fbc7fd625496217aa6a3453eecb9c3489dc5a53e6c67b444329ea2b2cbc9ff547639b6123fa565b905090565b6000610fbc7febb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e6123fa565b8181610ff88282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff1633146110ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610ae785858560006122ec565b6000806110c583610f8b565b60408051808201909152601281527f5245434f5645525f444953414c4c4f57454400000000000000000000000000006020820152901515611162576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b5061116b610d9c565b915061117682612402565b60408051808201909152601a81527f5245434f5645525f5641554c545f4e4f545f434f4e54524143540000000000006020820152901515611213576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b5073ffffffffffffffffffffffffffffffffffffffff8316151561127a5760405173ffffffffffffffffffffffffffffffffffffffff831690303180156108fc02916000818181858888f19350505050158015611274573d6000803e3d6000fd5b50610bf7565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8516916370a082319160248083019260209291908290030181600087803b1580156112e857600080fd5b505af11580156112fc573d6000803e3d6000fd5b505050506040513d602081101561131257600080fd5b5051604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301526024820184905291519293509085169163a9059cbb916044808201926020929091908290030181600087803b15801561139057600080fd5b505af11580156113a4573d6000803e3d6000fd5b505050506040513d6020811015610ae757600080fd5b600080600080600160008060006113d28c8c8c611d92565b815260208082019290925260409081016000908120548452918301939093529101902080548690811061140157fe5b60009182526020909120015460ff8082169a61010083049091169950620100009091047dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16975095505050505050565b6000806060600061145e6108d1565b151561146d57600093506115cb565b611475611bdd565b925073ffffffffffffffffffffffffffffffffffffffff8316151561149d57600093506115cb565b5050825160209081028085526040517ffdef910600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483019081523060248401819052604484018a90526080606485019081528951608486015289518a979489169563fdef9106958e958e948b949193909260a4909101919085019080838360005b8381101561154d578181015183820152602001611535565b50505050905090810190601f16801561157a5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561159c57600080fd5b505af11580156115b0573d6000803e3d6000fd5b505050506040513d60208110156115c657600080fd5b505193505b5050509392505050565b6000806115e0611bdd565b604080517fbe00bbd80000000000000000000000000000000000000000000000000000000081527fd6f028ca0e8edb4a8c9757ca4fdccab25fa1e0317da1188108f7d2dee14902fb60048201527fddbcfd564f642ab5627cf68b9b7d374fb4f8a36e941a75d89c87998cef03bd616024820152905173ffffffffffffffffffffffffffffffffffffffff929092169163be00bbd8916044808201926020929091908290030181600087803b158015610d6a57600080fd5b60001981565b81816116a98282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff16331461175c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610bba60008585611cfb565b81816117758282611834565b60408051808201909152601381527f41434c5f415554485f4e4f5f4d414e414745520000000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314611828576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610ae7858585611cfb565b600060026000611844858561243c565b815260208101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff169392505050565b604080516000808252602082019092527f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a916118b2913391849190610936565b60408051808201909152600f81527f4150505f415554485f4641494c45440000000000000000000000000000000000602082015290151561194f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b508383600061195e8383611834565b73ffffffffffffffffffffffffffffffffffffffff16146040805190810160405280601481526020017f41434c5f4558495354454e545f4d414e41474552000000000000000000000000815250901515611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50610f6687878787612530565b611a29610fc1565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a4544000000000000000060208201529015611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50611ace612567565b611ad6611bdd565b60408051808201909152601481527f41434c5f415554485f494e49545f4b45524e454c00000000000000000000000060208201529073ffffffffffffffffffffffffffffffffffffffff163314611b89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50611bb681307f0b719b33c83b8e5d300c521cb8b54ae9bd933996a14bef8c2f4e0285d2d2400a82612530565b50565b7f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56381565b6000610fbc7f4172f0f7d2289153072b0a6ca36959e0cbe2efc3afe50fc81636caa96338137b6123fa565b6000600019611c15610fc1565b14905090565b600181565b6000806000806000611c33898989611d92565b815260208101919091526040016000205491508115801590611c5d5750611c5d8288888888610c3e565b15611c6b5760019250611cba565b600080611c7b6000198989611d92565b815260208101919091526040016000205490508015801590611ca75750611ca781600019888888610c3e565b15611cb55760019250611cba565b600092505b5050949350505050565b60006060600060208451811515611cd757fe5b049050839150808252611cec87878785611c20565b979650505050505050565b4390565b8260026000611d0a858561243c565b815260208101919091526040908101600090812080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559051858316928492908616917ff3addc8b8e25ee11528a61b0e65092cae0666ef0ec0c64cb303993c88d689b4d9190a4505050565b604080517f5045524d495353494f4e000000000000000000000000000000000000000000006020808301919091526c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff8088168202602a850152861602603e8301526052808301859052835180840390910181526072909201928390528151600093918291908401908083835b60208310611e5d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611e20565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120979650505050505050565b6000611e9b612aab565b600088815260016020526040812054819063ffffffff8a1610611ec157600093506120cd565b60008a8152600160205260409020805463ffffffff8b16908110611ee157fe5b600091825260209182902060408051606081018252929091015460ff8082168085526101008304909116948401949094526201000090047dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690820152935060cc1415611f5b57611f54838b8a8a8a8a612646565b93506120cd565b50604082015182517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091169060ff1660cb1415611fbe57611fa2836040015189898989612819565b611fad576000611fb0565b60015b60ff1691506001905061207c565b825160ff1660c81415611fda57611fd3611cf7565b915061207c565b825160ff1660c91415611fef57611fd3612982565b825160ff1660cd14156120285782604001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16915061207c565b8451835160ff161061203d57600093506120cd565b82518551869160ff1690811061204f57fe5b906020019060200201517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1691505b6007836020015160ff16600c81111561209157fe5b600c81111561209c57fe5b14156120ad576000821193506120cd565b6120ca82846020015160ff16600c8111156120c457fe5b83612986565b93505b5050509695505050505050565b60008060008060006120ea612aab565b8660405160200180828051906020019060200280838360005b8381101561211b578181015183820152602001612103565b505050509050019150506040516020818303038152906040526040518082805190602001908083835b6020831061218157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612144565b51815160209384036101000a60001901801990921691161790526040805192909401829003909120600081815260019092529290208054929950975050151591506122e1905057600092505b86518310156122e15786838151811015156121e457fe5b90602001906020020151915060606040519081016040528061220584612a43565b60ff16815260200161221684612a69565b60ff90811682527dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff858116602093840152875460018082018a5560008a81528590208651920180549587015160408801517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909716938616939093177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1661010093909516929092029390931761ffff1662010000949092169390930217909155939093019290506121cd565b509295945050505050565b600080826000806122fe898989611d92565b8152602081019190915260400160002055821580159250829061234157507f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5638314155b6040805184151581529051919250859173ffffffffffffffffffffffffffffffffffffffff80891692908a16917f759b9a74d5354b5801710a0c1b283cc9f0d32b607ac8ced10c83ac8e75c77d529181900360200190a480156123f257604080518481529051859173ffffffffffffffffffffffffffffffffffffffff80891692908a16917f8dfee25d92d73b8c9b868f9fa3e215cc1981033f426e53803e3da4f09a2cfc30919081900360200190a45b505050505050565b5490565b5490565b60008073ffffffffffffffffffffffffffffffffffffffff8316151561242b5760009150612436565b823b90506000811191505b50919050565b604080517f524f4c45000000000000000000000000000000000000000000000000000000006020808301919091526c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff86160260248301526038808301859052835180840390910181526058909201928390528151600093918291908401908083835b602083106124fd57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016124c0565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091209695505050505050565b61255c8484847f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5636122ec565b610bba818484611cfb565b61256f610fc1565b60408051808201909152601881527f494e49545f414c52454144595f494e495449414c495a454400000000000000006020820152901561260b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382528381815181526020019150805190602001908083836000838110156109da5781810151838201526020016109c2565b50612644612617611cf7565b7febb05b386a8d34882b8711d156f463690983dc47815980fb82aeeff1aa43579e9063ffffffff612a8e16565b565b60008080808080808080600c8f6020015160ff16600c81111561266557fe5b600c81111561267057fe5b14156126db576126a38f604001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612a92565b919950975095506126b88e898f8f8f8f611e91565b94506126d48e866126c957876126cb565b885b8f8f8f8f611e91565b9850612807565b6127088f604001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612a92565b50909450925061271c8e858f8f8f8f611e91565b915060088f6020015160ff16600c81111561273357fe5b600c81111561273e57fe5b141561274d5781159850612807565b8180156127775750600a8f6020015160ff16600c81111561276a57fe5b600c81111561277557fe5b145b156127855760019850612807565b811580156127b0575060098f6020015160ff16600c8111156127a357fe5b600c8111156127ae57fe5b145b156127be5760009850612807565b6127cc8e848f8f8f8f611e91565b9050600b8f6020015160ff16600c8111156127e357fe5b600c8111156127ee57fe5b14156128035780151582151514159850612807565b8098505b50505050505050509695505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff85811660248301908152908516604483015260648201849052608060848301908152835160a484015283516000937f2a151090000000000000000000000000000000000000000000000000000000009360609386938493849388938e938e938e938e939092909160c40190602080860191028083838d5b838110156128c05781810151838201526020016128a8565b5050505090500195505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505093506000808551602087018e5afa925082151561294b5760009550612974565b3d91506020821461295f5760009550612974565b604051826000823e8051915060008152508095505b505050505095945050505050565b4290565b6000600183600c81111561299657fe5b14156129a55750828114610c37565b600283600c8111156129b357fe5b14156129c3575082811415610c37565b600383600c8111156129d157fe5b14156129e05750808311610c37565b600483600c8111156129ee57fe5b14156129fd5750808310610c37565b600583600c811115612a0b57fe5b1415612a1b575080831015610c37565b600683600c811115612a2957fe5b1415612a39575080831115610c37565b5060009392505050565b7f0100000000000000000000000000000000000000000000000000000000000000900490565b7e01000000000000000000000000000000000000000000000000000000000000900490565b9055565b9064010000000082049068010000000000000000830490565b6040805160608101825260008082526020820181905291810191909152905600a165627a7a723058206412024817e0c96c4d51751f657dd8d3f184d95a90605096d0395eb3a79f07050029

Deployed Bytecode Sourcemap

23897:20047:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6785:211;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6785:211:0;;;;;;;;;;;;;;;;;;;;;;32223:231;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;32223:231:0;;;;;;;;;;;32738:193;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;32738:193:0;;;;;;;;;29255:169;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;29255:169:0;;;;;;;;;;;;;;33248:210;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;33248:210:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36345:352;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;36345:352:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36345:352:0;;-1:-1:-1;36345:352:0;;-1:-1:-1;;;;;;;36345:352:0;25230:50;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25230:50:0;;;;15685:181;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;15685:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15685:181:0;;-1:-1:-1;15685:181:0;;-1:-1:-1;;;;;;;15685:181:0;;;;;;;;;;;;;;;;;;;;23246:232;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23246:232:0;;;;24102:116;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24102:116:0;;;;29995:315;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;29995:315:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29995:315:0;;-1:-1:-1;29995:315:0;;-1:-1:-1;;;;;;;29995:315:0;36123:214;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;36123:214:0;;;;;;;;;;;;;;12137:101;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;12137:101:0;;;;;;;3450:108;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3450:108:0;;;;6531:139;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6531:139:0;;;;30761:209;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;30761:209:0;;;;;;;;;;;;;;11473:457;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;11473:457:0;;;;;;;33814:332;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;33814:332:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22278:846;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;22278:846:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22278:846:0;;-1:-1:-1;22278:846:0;;-1:-1:-1;;;;;;;22278:846:0;15874:234;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15874:234:0;;;;25287:48;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25287:48:0;;;;31732:194;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;31732:194:0;;;;;;;;;31286:213;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;31286:213:0;;;;;;;;;;;;;;34366:155;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;34366:155:0;;;;;;;;;28484:262;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;28484:262:0;;;;;;;;;;;;;;;;;;;;27122:275;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;27122:275:0;;;;;;;25114:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25114:109:0;;;;3324:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3324:118:0;;;;7888:119;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7888:119:0;;;;25342:48;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25342:48:0;;;;35528:587;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;35528:587:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35528:587:0;;-1:-1:-1;35528:587:0;;-1:-1:-1;;;;;;;35528:587:0;34897:623;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;34897:623:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34897:623:0;;-1:-1:-1;34897:623:0;;-1:-1:-1;;;;;;;34897:623:0;6785:211;6832:4;6849:27;6879:24;:22;:24::i;:::-;6849:54;-1:-1:-1;6921:24:0;;;;;:67;;;6969:19;6949:16;:14;:16::i;:::-;:39;;6921:67;6914:74;;6785:211;;:::o;32223:231::-;21640:16;;;21654:1;21640:16;;;;;;;;;24152:66;;21610:47;;21621:10;;24152:66;;21640:16;;;21610:10;:47::i;:::-;21659:17;;;;;;;;;;;;;;;;;;21602:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;21602:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32370:4:0;32376:5;26734:1;26689:33;32370:4;32376:5;26689:20;:33::i;:::-;:47;;;26738:22;;;;;;;;;;;;;;;;;;26681:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;26681:80:0;;32399:47;25388:1;32434:4;32440:5;32399:21;:47::i;:::-;21688:1;;32223:231;;;:::o;32738:193::-;32847:4;32853:5;26442:33;26463:4;26469:5;26442:20;:33::i;:::-;26477:21;;;;;;;;;;;;;;;;;;26428:47;;:10;:47;26420:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;26420:79:0;;32876:47;25388:1;32911:4;32917:5;32876:21;:47::i;:::-;32738:193;;;;:::o;29255:169::-;29360:56;29377:7;29386:4;29392:5;29413:1;29399:16;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;29399:16:0;;29360;:56::i;:::-;29255:169;;;:::o;33248:210::-;33352:4;33376:16;:67;33393:11;:49;33405:36;33420:7;33429:4;33435:5;33405:14;:36::i;:::-;33393:49;;;;;;;;;;;;;;;;;;;33376:67;;;;;;;;;;;;;:74;;-1:-1:-1;33248:210:0;;;;;;:::o;36345:352::-;36520:4;25157:66;36546:31;;36542:75;;;-1:-1:-1;36601:4:0;36594:11;;36542:75;36636:53;36647:11;36660:1;36663:4;36669:6;36677:5;36684:4;36636:10;:53::i;:::-;36629:60;;36345:352;;;;;;;;:::o;25230:50::-;25278:1;25230:50;:::o;15685:181::-;15751:18;15808:22;:20;:22::i;:::-;:40;;;15849:7;15808: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;15808:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15808:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15808:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15808:49:0;;15685:181;-1:-1:-1;;15685:181:0:o;23246:232::-;23295:7;23403:8;:6;:8::i;:::-;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23403:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23403:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23403:27:0;;-1:-1:-1;23246:232:0;:::o;24102:116::-;24152:66;24102:116;:::o;29995:315::-;30162:18;30133:4;30139:5;26442:33;26463:4;26469:5;26442:20;:33::i;:::-;26477:21;;;;;;;;;;;;;;;;;;26428:47;;:10;:47;26420:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;26420:79:0;;30200:1;30183:7;:14;:18;:60;;25157:66;30183:60;;;30204:20;30216:7;30204:11;:20::i;:::-;30162:81;;30254:48;30269:7;30278:4;30284:5;30291:10;30254:14;:48::i;:::-;29995:315;;;;;;;:::o;36123:214::-;36254:16;;;36212:4;36254:16;;;;;;;;;36288:41;36302:4;36308:6;36316:5;36323;36288:13;:41::i;12137:101::-;-1:-1:-1;12226:4:0;;12137:101::o;3450:108::-;3488:7;3515:35;3249:66;3515:33;:35::i;:::-;3508:42;;3450:108;:::o;6531:139::-;6586:7;6613:49;5977:66;6613:47;:49::i;30761:209::-;30882:4;30888:5;26442:33;26463:4;26469:5;26442:20;:33::i;:::-;26477:21;;;;;;;;;;;;;;;;;;26428:47;;:10;:47;26420:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;26420:79:0;-1:-1:-1;30911:51:0;30926:7;30935:4;30941:5;25278:1;30911:14;:51::i;11473:457::-;11599:13;11813:14;11542:27;11562:6;11542:19;:27::i;:::-;11571:16;;;;;;;;;;;;;;;;;;11534: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;;11534:54:0;;11615:18;:16;:18::i;:::-;11599:34;;11652:17;11663:5;11652:10;:17::i;:::-;11671:24;;;;;;;;;;;;;;;;;;11644: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;;11644:52:0;-1:-1:-1;11713:13:0;;;;11709:214;;;11743:37;;:14;;;;11766:4;11758:21;11743:37;;;;;;;;;11758:21;11743:14;:37;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11743:37:0;11709:214;;;11830:29;;;;;;11854:4;11830:29;;;;;;:23;;;;;;:29;;;;;;;;;;;;;;-1:-1:-1;11830:23:0;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;11830:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11830:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11830:29:0;11874:37;;;;;;:22;:37;;;;;;;;;;;;;;;11830:29;;-1:-1:-1;11874:22:0;;;;;;:37;;;;;11830:29;;11874:37;;;;;;;;-1:-1:-1;11874:22:0;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;11874:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11874:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;33814:332:0;33951:5;33958;33965:7;33990:19;34012:16;:67;34029:11;:49;34041:36;34056:7;34065:4;34071:5;34041:14;:36::i;:::-;34029:49;;;;;;;;;;;;;;;;;;;34012:67;;;;;;;;;;;;;:75;;34080:6;;34012:75;;;;;;;;;;;;;;;34106:8;;;;;;;34116;;;;;;-1:-1:-1;34126:11:0;;;;;;;-1:-1:-1;33814:332:0;-1:-1:-1;;;;;;33814:332:0:o;22278:846::-;22370:4;22461:20;22873:16;22900:18;22392:16;:14;:16::i;:::-;22391:17;22387:62;;;22432:5;22425:12;;;;22387:62;22484:8;:6;:8::i;:::-;22461:31;-1:-1:-1;22507:35:0;;;;22503:80;;;22566:5;22559:12;;;;22503:80;-1:-1:-1;;22921:14:0;;22938:2;22921:19;;;23003:23;;;23054:62;;;;;:26;:62;;;;;;;;;23098:4;23054:62;;;;;;;;;;;;;;;;;;;;;;;;;;;22921:7;;23054:26;;;;;;23081:7;;23105:5;;22921:7;;23054:62;;;;;;;;;;;;;;;;-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;23054:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23054:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23054:62:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23054:62:0;;-1:-1:-1;22278:846:0;;;;;;;;;:::o;15874:234::-;15927:18;15958:20;15981:8;:6;:8::i;:::-;:69;;;;;;14985:66;15981:69;;;;13084:66;15981:69;;;;;;:15;;;;;;;;:69;;;;;;;;;;;;;;;;:15;:69;;;5:2:-1;;;;30:1;27;20:12;25287:48:0;-1:-1:-1;;25287:48:0;:::o;31732:194::-;31843:4;31849:5;26442:33;26463:4;26469:5;26442:20;:33::i;:::-;26477:21;;;;;;;;;;;;;;;;;;26428:47;;:10;:47;26420:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;26420:79:0;;31872:46;31902:1;31906:4;31912:5;31872:21;:46::i;31286:213::-;31415:4;31421:5;26442:33;26463:4;26469:5;26442:20;:33::i;:::-;26477:21;;;;;;;;;;;;;;;;;;26428:47;;:10;:47;26420:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;26420:79:0;;31444:47;31466:11;31479:4;31485:5;31444:21;:47::i;34366:155::-;34446:7;34473:17;:40;34491:21;34500:4;34506:5;34491:8;:21::i;:::-;34473:40;;;;;;;;;;;-1:-1:-1;34473:40:0;;;;;34366:155;-1:-1:-1;;;34366:155:0:o;28484:262::-;21640:16;;;21654:1;21640:16;;;;;;;;;24152:66;;21610:47;;21621:10;;24152:66;;21640:16;;;21610:47;21659:17;;;;;;;;;;;;;;;;;;21602:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;21602:75:0;-1:-1:-1;28660:4:0;28666:5;26734:1;26689:33;28660:4;28666:5;26689:20;:33::i;:::-;:47;;;26738:22;;;;;;;;;;;;;;;;;;26681:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;26681:80:0;;28689:49;28707:7;28716:4;28722:5;28729:8;28689:17;:49::i;27122:275::-;6253:24;:22;:24::i;:::-;6284:25;;;;;;;;;;;;;;;;;;6253:29;6245: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;;6245:65:0;;27198:13;:11;:13::i;:::-;27252:8;:6;:8::i;:::-;27263:22;;;;;;;;;;;;;;;;;;27230:31;;:10;:31;27222:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;27222:64:0;-1:-1:-1;27299:90:0;27317:19;27338:4;24152:66;27317:19;27299:17;:90::i;:::-;27122:275;:::o;25114:109::-;25157:66;25114:109;:::o;3324:118::-;3363:7;3398:35;3132:66;3398:33;:35::i;7888:119::-;7932:4;-1:-1:-1;;7956:24:0;:22;:24::i;:::-;:43;7949:50;;7888:119;:::o;25342:48::-;25388:1;25342:48;:::o;35528:587::-;35640:4;35657:17;35870;35677:11;:48;35689:35;35704:4;35710:6;35718:5;35689:14;:35::i;:::-;35677:48;;;;;;;;;;;;;;;-1:-1:-1;35740:26:0;;;;;:78;;;35770:48;35781:9;35792:4;35798:6;35806:5;35813:4;35770:10;:48::i;:::-;35736:122;;;35842:4;35835:11;;;;35736:122;35890:11;:54;35902:41;-1:-1:-1;;35929:6:0;35937:5;35902:14;:41::i;:::-;35890:54;;;;;;;;;;;;;;;-1:-1:-1;35959:26:0;;;;;:84;;;35989:54;36000:9;-1:-1:-1;;36023:6:0;36031:5;36038:4;35989:10;:54::i;:::-;35955:128;;;36067:4;36060:11;;;;35955:128;36102:5;36095:12;;35528:587;;;;;;;;;:::o;34897:623::-;35005:4;35292:20;35323:18;35358:2;35344:4;:11;:16;;;;;;;;35323:37;;35402:4;35395:11;;35432:10;35427:3;35420:23;35473:39;35487:4;35493:6;35501:5;35508:3;35473:13;:39::i;:::-;35466:46;34897:623;-1:-1:-1;;;;;;;34897:623:0:o;4579:96::-;4655:12;4579:96;:::o;43351:228::-;43495:11;43452:17;:40;43470:21;43479:4;43485:5;43470:8;:21::i;:::-;43452:40;;;;;;;;;;;;;-1:-1:-1;43452:40:0;;;:54;;;;;;;;;;;43522:49;;;;;;43552:5;;43522:49;;;;;;-1:-1:-1;43522:49:0;43351:228;;;:::o;43752:189::-;43881:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;43881:51:0;;;;;;;;43871:62;;43844:7;;43881:51;;;43871:62;;;;;43881:51;43871:62;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;139:12;;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;;;;365:33;;43871:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;43752:189:0:o;38308:1458::-;38511:4;38655:18;;:::i;:::-;38866:13;38549:29;;;:16;:29;;;;;:36;38866:13;;38537:48;;;;38533:110;;38609:5;38602:12;;;;38533:110;38676:29;;;;:16;:29;;;;;:39;;;;;;;;;;;;;;;;;;;;;38655:60;;;;;;;;38676:39;;;;38655:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24880:3:0;38732:29;38728:126;;;38785:57;38796:5;38803:11;38816:4;38822:6;38830:5;38837:4;38785:10;:57::i;:::-;38778:64;;;;38728:126;-1:-1:-1;38919:11:0;;;;38970:8;;38911:20;;;;;38970:27;;24822:3;38970:27;38966:641;;;39022:63;39045:5;:11;;;39059:4;39065:6;39073:5;39080:4;39022:11;:63::i;:::-;:71;;39092:1;39022:71;;;39088:1;39022:71;39014:79;;;;39121:1;39108:14;;38966:641;;;39144:8;;:33;;24684:3;39144:33;39140:467;;;39202:16;:14;:16::i;:::-;39194:24;;39140:467;;;39240:8;;:30;;24742:3;39240:30;39236:371;;;39295:14;:12;:14::i;39236:371::-;39331:8;;:32;;24938:3;39331:32;39327:280;;;39396:5;:11;;;39388:20;;39380:28;;39327:280;;;39457:11;;39445:8;;:23;;;39441:76;;39496:5;39489:12;;;;39441:76;39560:8;;39555:14;;:4;;:14;;;;;;;;;;;;;;;;;39539:32;;39531:40;;39327:280;39639:6;39626:5;:8;;;39623:12;;;;;;;;;;:22;;;;;;;;;39619:80;;;39686:1;39677:5;39669:18;39662:25;;;;39619:80;39718:40;39726:5;39736;:8;;;39733:12;;;;;;;;;;39747:10;39718:7;:40::i;:::-;39711:47;;38308:1458;;;;;;;;;;;;:::o;37673:627::-;37738:7;37758:17;37832:22;37968:9;38034:20;38093:18;;:::i;:::-;37805:14;37788:32;;;;;;;;;;;;;;;;;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;37788:32:0;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;37788:32:0;;;37778:43;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;139:12;;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;37778:43:0;;;;;;;;;;;;;-1:-1:-1;37857:27:0;;;274:1:-1;37857:27:0;;;;;;37901:13;;37778:43;;-1:-1:-1;37857:27:0;-1:-1:-1;;37901:18:0;37897:367;;-1:-1:-1;37897:367:0;;-1:-1:-1;37897:367:0;37980:1;37968:13;;37963:290;37987:14;:21;37983:1;:25;37963:290;;;38057:14;38072:1;38057:17;;;;;;;;;;;;;;;;;;38034:40;;38114:86;;;;;;;;;38120:27;38134:12;38120:13;:27::i;:::-;38114:86;;;;;;38149:27;38163:12;38149:13;:27::i;:::-;38114:86;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;-1:-1;38219:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38010:3;;;;;38219:18;-1:-1:-1;37963:290:0;;;-1:-1:-1;38283:9:0;;37673:627;-1:-1:-1;;;;;37673:627:0:o;37130:535::-;37315:24;37381;37293:11;37241;:49;37253:36;37268:7;37277:4;37283:5;37253:14;:36::i;:::-;37241:49;;;;;;;;;;;;;:63;37342:28;;;;;-1:-1:-1;37342:28:0;;37408:54;;-1:-1:-1;25157:66:0;37431:31;;;37408:54;37480:56;;;;;;;;;;37381:81;;-1:-1:-1;37509:5:0;;37480:56;;;;;;;;;;;;;;;;;;37551:19;37547:111;;;37592:54;;;;;;;;37627:5;;37592:54;;;;;;;;;;;;;;;;;;;37547:111;37130:535;;;;;;:::o;448:136::-;560:15;;550:27::o;592:136::-;704:15;;694:27::o;10583:252::-;10643:4;;10664:21;;;;10660:66;;;10709:5;10702:12;;;;10660:66;10792:7;10780:20;10772:28;;10826:1;10819:4;:8;10812:15;;10583:252;;;;;:::o;43587:157::-;43696:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;43696:39:0;;;;;;;;43686:50;;43659:7;;43696:39;;;43686:50;;;;;43696:39;43686:50;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;139:12;;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;;;;365:33;;43686:50:0;;;;;;;;;;;;-1:-1:-1;;;;;;43587:157:0:o;36808:228::-;36919:54;36934:7;36943:4;36949:5;25157:66;36919:14;:54::i;:::-;36984:44;37006:8;37016:4;37022:5;36984:21;:44::i;7112:125::-;6253:24;:22;:24::i;:::-;6284:25;;;;;;;;;;;;;;;;;;6253:29;6245: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;;6245:65:0;;7164;7212:16;:14;:16::i;:::-;5977:66;;7164:65;:47;:65;:::i;:::-;7112:125::o;39774:1345::-;39940:4;;;;;;;;;39983:10;39969:6;:9;;;39966:13;;;;;;;;;;:27;;;;;;;;;39962:459;;;40163:39;40188:6;:12;;;40180:21;;40163:16;:39::i;:::-;40116:86;;-1:-1:-1;40116:86:0;-1:-1:-1;40116:86:0;-1:-1:-1;40231:66:0;40242:11;40116:86;40271:4;40277:6;40285:5;40292:4;40231:10;:66::i;:::-;40217:80;;40321:88;40332:11;40345:6;:36;;40369:12;40345:36;;;40354:12;40345:36;40383:4;40389:6;40397:5;40404:4;40321:10;:88::i;:::-;40314:95;;;;39962:459;40503:39;40528:6;:12;;;40520:21;;40503:16;:39::i;:::-;-1:-1:-1;40483:59:0;;-1:-1:-1;40483:59:0;-1:-1:-1;40563:58:0;40574:11;40483:59;40595:4;40601:6;40609:5;40616:4;40563:10;:58::i;:::-;40553:68;-1:-1:-1;40655:6:0;40641;:9;;;40638:13;;;;;;;;;;:23;;;;;;;;;40634:66;;;40686:2;40685:3;40678:10;;;;40634:66;40716:2;:28;;;;-1:-1:-1;40739:5:0;40725:6;:9;;;40722:13;;;;;;;;;;:22;;;;;;;;;40716:28;40712:72;;;40768:4;40761:11;;;;40712:72;40801:2;40800:3;:30;;;;-1:-1:-1;40824:6:0;40810;:9;;;40807:13;;;;;;;;;;:23;;;;;;;;;40800:30;40796:75;;;40854:5;40847:12;;;;40796:75;40893:58;40904:11;40917:6;40925:4;40931:6;40939:5;40946:4;40893:10;:58::i;:::-;40883:68;-1:-1:-1;40985:6:0;40971;:9;;;40968:13;;;;;;;;;;:23;;;;;;;;;40964:71;;;41021:2;41015:8;;:2;:8;;;;41008:15;;;;40964:71;41054:2;41047:9;;39774:1345;;;;;;;;;;;;;;;;;:::o;41868:1407::-;42201:54;;42027:22;42201:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41997:4;;42027:31;;42172:26;;41997:4;;;;;;42027:31;;42229:4;;42235:6;;42243:5;;42250:4;;42201:54;;;;;;;;;;;;;;;;41997: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;42201:54:0;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;42201:54: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;;;42201:54:0;42172:83;;42643:1;42640;42624:13;42618:20;42611:4;42596:13;42592:24;42579:11;42574:3;42563:82;42557:88;;42673:2;42672:3;42668:48;;;42699:5;42692:12;;;;42668:48;42770:14;;-1:-1:-1;42808:2:0;42800:10;;42796:55;;42834:5;42827:12;;;;42796:55;42926:4;42920:11;43002:4;42999:1;42994:3;42979:28;43076:3;43070:10;43060:20;;43155:1;43150:3;43143:14;42894:348;43261:6;43254:13;;41868:1407;;;;;;;;;;;;;:::o;5176:146::-;5250:15;5176:146;:::o;41127:733::-;41199:4;41227:5;41220:3;:12;;;;;;;;;41216:34;;;-1:-1:-1;41242:8:0;;;41235:15;;41216:34;41331:6;41324:3;:13;;;;;;;;;41320:34;;;-1:-1:-1;41346:8:0;;;;41339:15;;41320:34;41435:5;41428:3;:12;;;;;;;;;41424:33;;;-1:-1:-1;41450:7:0;;;41443:14;;41424:33;41539:5;41532:3;:12;;;;;;;;;41528:33;;;-1:-1:-1;41554:7:0;;;41547:14;;41528:33;41643:6;41636:3;:13;;;;;;;;;41632:34;;;-1:-1:-1;41658:8:0;;;;41651:15;;41632:34;41747:6;41740:3;:13;;;;;;;;;41736:34;;;-1:-1:-1;41762:8:0;;;;41755:15;;41736:34;-1:-1:-1;41847:5:0;41127:733;;;;;:::o;20531:114::-;20622:14;;;;20531:114::o;20409:::-;20500:14;;;;20409:114::o;1117:121::-;1207:22;;1205:26::o;20653:196::-;20766:2;20791:13;;;;20827;;;;20653:196::o;23897:20047::-;;;;;;;;;-1:-1:-1;23897:20047:0;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://6412024817e0c96c4d51751f657dd8d3f184d95a90605096d0395eb3a79f0705

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.