ETH Price: $1,491.51 (-16.67%)

Contract

0xCb32569caC906e4eE13ca413E058a7178fA1fC27
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Burn103614962020-06-29 15:19:281742 days ago1593443968IN
Enegra: EGX Token
0 ETH0.0008911648
Burn103614942020-06-29 15:19:061742 days ago1593443946IN
Enegra: EGX Token
0 ETH0.0010629148
Burn103614912020-06-29 15:18:181742 days ago1593443898IN
Enegra: EGX Token
0 ETH0.0010617648
Burn103614882020-06-29 15:17:371742 days ago1593443857IN
Enegra: EGX Token
0 ETH0.0010634848
Burn103614872020-06-29 15:17:171742 days ago1593443837IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614832020-06-29 15:16:541742 days ago1593443814IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614812020-06-29 15:16:091742 days ago1593443769IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614762020-06-29 15:15:401742 days ago1593443740IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614752020-06-29 15:15:271742 days ago1593443727IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614732020-06-29 15:15:091742 days ago1593443709IN
Enegra: EGX Token
0 ETH0.0010629148
Burn103614722020-06-29 15:15:061742 days ago1593443706IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614692020-06-29 15:14:011742 days ago1593443641IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614672020-06-29 15:13:371742 days ago1593443617IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614662020-06-29 15:13:301742 days ago1593443610IN
Enegra: EGX Token
0 ETH0.0010629148
Burn103614592020-06-29 15:11:321742 days ago1593443492IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614572020-06-29 15:10:591742 days ago1593443459IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614562020-06-29 15:10:491742 days ago1593443449IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614552020-06-29 15:10:241742 days ago1593443424IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614532020-06-29 15:10:131742 days ago1593443413IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614482020-06-29 15:09:171742 days ago1593443357IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614472020-06-29 15:09:081742 days ago1593443348IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614452020-06-29 15:08:501742 days ago1593443330IN
Enegra: EGX Token
0 ETH0.0010617648
Burn103614412020-06-29 15:07:451742 days ago1593443265IN
Enegra: EGX Token
0 ETH0.0010623348
Burn103614372020-06-29 15:07:251742 days ago1593443245IN
Enegra: EGX Token
0 ETH0.0010629148
Burn103614342020-06-29 15:06:541742 days ago1593443214IN
Enegra: EGX Token
0 ETH0.0010629148
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.5.12+commit.7709ece9

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 25: Token.sol
pragma solidity ^0.5.10;

import "./MintableAndBurnable.sol";
import "./IToken.sol";

contract Token is IToken, MintableAndBurnable {
    string public name = "ENEGRA";
    string public symbol = "EGX";
    string public version = "1.2";
    address public onchainID = 0x0000000000000000000000000000000000000000;

    constructor(
        address _identityRegistry,
        address _compliance
		)
        public
		TransferManager(_identityRegistry, _compliance)
    {}

    /**
    * Owner can update token information here
    */
    function setTokenInformation(
		string calldata _name,
		string calldata _symbol,
		uint8 _decimals,
		string calldata _version,
		address _onchainID,
		uint256 _maxTokenSupply
		) external onlyOwner {

        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        version = _version;
		onchainID = _onchainID;
		maxTokenSupply = _maxTokenSupply * (10 ** uint256(decimals));

        emit UpdatedTokenInformation(name, symbol, decimals, version, onchainID, _maxTokenSupply);
    }
}

File 2 of 25: AgentRole.sol
pragma solidity ^0.5.0;

import "./Roles.sol";
import "./Ownable.sol";

contract AgentRole is Ownable {
    using Roles for Roles.Role;

    event AgentAdded(address indexed account);
    event AgentRemoved(address indexed account);

    Roles.Role private _agents;

    modifier onlyAgent() {
        require(isAgent(msg.sender), "AgentRole: caller does not have the Agent role");
        _;
    }

    function isAgent(address account) public view returns (bool) {
        return _agents.has(account);
    }

    function addAgent(address account) public onlyOwner {
        _addAgent(account);
    }

    function removeAgent(address account) public onlyOwner {
        _removeAgent(account);
    }

    function _addAgent(address account) internal {
        _agents.add(account);
        emit AgentAdded(account);
    }

    function _removeAgent(address account) internal {
        _agents.remove(account);
        emit AgentRemoved(account);
    }
}

File 3 of 25: ClaimIssuer.sol
pragma solidity ^0.5.10;

import "./IClaimIssuer.sol";
import "./Identity.sol";

contract ClaimIssuer is IClaimIssuer, Identity {
    function revokeClaim(bytes32 _claimId, address _identity) public returns(bool) {
        uint256 foundClaimTopic;
        uint256 scheme;
        address issuer;
        bytes memory  sig;
        bytes  memory data;
        ( foundClaimTopic, scheme, issuer, sig, data, ) = Identity(_identity).getClaim(_claimId);
        // require(sig != 0, "Claim does not exist");

        revokedClaims[sig] = true;
        identityAddresses[_claimId] = _identity;
        return true;
    }

    function isClaimRevoked(bytes memory _sig) public view returns (bool) {
        if(revokedClaims[_sig]) {
            return true;
        }

        return false;
    }

    function isClaimValid(Identity _identity, bytes32 _claimId, uint256 claimTopic, bytes memory sig, bytes memory data)
    public
    view
    returns (bool claimValid)
    {
        bytes32 dataHash = keccak256(abi.encode(_identity, claimTopic, data));
        // Use abi.encodePacked to concatenate the messahe prefix and the message to sign.
        bytes32 prefixedHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", dataHash));

        // Recover address of data signer
        address recovered = getRecoveredAddress(sig, prefixedHash);

        // Take hash of recovered address
        bytes32 hashedAddr = keccak256(abi.encode(recovered));

        // Does the trusted identifier have they key which signed the user's claim?
        //  && (isClaimRevoked(_claimId) == false)
        if (keyHasPurpose(hashedAddr, 3) && (isClaimRevoked(sig) == false)) {
            return true;
        }

        return false;
    }

    function getRecoveredAddress(bytes memory sig, bytes32 dataHash)
        public
        pure
        returns (address addr)
    {
        bytes32 ra;
        bytes32 sa;
        uint8 va;

        // Check the signature length
        if (sig.length != 65) {
            return address(0);
        }

        // Divide the signature in r, s and v variables
        assembly {
          ra := mload(add(sig, 32))
          sa := mload(add(sig, 64))
          va := byte(0, mload(add(sig, 96)))
        }

        if (va < 27) {
            va += 27;
        }

        address recoveredAddress = ecrecover(dataHash, va, ra, sa);

        return (recoveredAddress);
    }
}

File 4 of 25: ClaimTopicsRegistry.sol
pragma solidity ^0.5.10;

import "./IClaimTopicsRegistry.sol";
import "./Ownable.sol";

contract ClaimTopicsRegistry is IClaimTopicsRegistry, Ownable {
    uint256[] claimTopics;

    /**
    * @notice Add a trusted claim topic (For example: KYC=1, AML=2).
    * Only owner can call.
    *
    * @param claimTopic The claim topic index
    */
    function addClaimTopic(uint256 claimTopic) public onlyOwner {
        uint length = claimTopics.length;
        for(uint i = 0; i<length; i++){
            require(claimTopics[i]!=claimTopic, "claimTopic already exists");
        }
        claimTopics.push(claimTopic);
        emit ClaimTopicAdded(claimTopic);
    }

    /**
    * @notice Remove a trusted claim topic (For example: KYC=1, AML=2).
    * Only owner can call.
    *
    * @param claimTopic The claim topic index
    */
    function removeClaimTopic(uint256 claimTopic) public onlyOwner {
        uint length = claimTopics.length;
        for (uint i = 0; i<length; i++) {
            if(claimTopics[i] == claimTopic) {
                delete claimTopics[i];
                claimTopics[i] = claimTopics[length-1];
                delete claimTopics[length-1];
                claimTopics.length--;
                emit ClaimTopicRemoved(claimTopic);
                return;
            }
        }
    }

    /**
    * @notice Get the trusted claim topics for the security token
    *
    * @return Array of trusted claim topics
    */
    function getClaimTopics() public view returns (uint256[] memory) {
        return claimTopics;
    }
}

File 5 of 25: Context.sol
pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 25: ERC20.sol
pragma solidity ^0.5.0;

import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }
}

File 7 of 25: ERC734.sol
pragma solidity ^0.5.10;

import "./IERC734.sol";

/**
 * @dev Implementation of the `IERC734` "KeyHolder" interface.
 */
contract ERC734 is IERC734 {
    uint256 public constant MANAGEMENT_KEY = 1;
    uint256 public constant ACTION_KEY = 2;
    uint256 public constant CLAIM_SIGNER_KEY = 3;
    uint256 public constant ENCRYPTION_KEY = 4;

    uint256 private executionNonce;

    struct Execution {
        address to;
        uint256 value;
        bytes data;
        bool approved;
        bool executed;
    }

    mapping (bytes32 => Key) private keys;
    mapping (uint256 => bytes32[]) private keysByPurpose;
    mapping (uint256 => Execution) private executions;

    event ExecutionFailed(uint256 indexed executionId, address indexed to, uint256 indexed value, bytes data);

    constructor() public {
        bytes32 _key = keccak256(abi.encode(msg.sender));

        keys[_key].key = _key;
        keys[_key].purposes = [1];
        keys[_key].keyType = 1;

        keysByPurpose[1].push(_key);

        emit KeyAdded(_key, 1, 1);
    }

    /**
       * @notice Implementation of the getKey function from the ERC-734 standard
       *
       * @param _key The public key.  for non-hex and long keys, its the Keccak256 hash of the key
       *
       * @return Returns the full key data, if present in the identity.
       */
    function getKey(bytes32 _key)
    public
    view
    returns(uint256[] memory purposes, uint256 keyType, bytes32 key)
    {
        return (keys[_key].purposes, keys[_key].keyType, keys[_key].key);
    }

    /**
    * @notice gets the purposes of a key
    *
    * @param _key The public key.  for non-hex and long keys, its the Keccak256 hash of the key
    *
    * @return Returns the purposes of the specified key
    */
    function getKeyPurposes(bytes32 _key)
    public
    view
    returns(uint256[] memory _purposes)
    {
        return (keys[_key].purposes);
    }

    /**
        * @notice gets all the keys with a specific purpose from an identity
        *
        * @param _purpose a uint256[] Array of the key types, like 1 = MANAGEMENT, 2 = ACTION, 3 = CLAIM, 4 = ENCRYPTION
        *
        * @return Returns an array of public key bytes32 hold by this identity and having the specified purpose
        */
    function getKeysByPurpose(uint256 _purpose)
    public
    view
    returns(bytes32[] memory _keys)
    {
        return keysByPurpose[_purpose];
    }

    /**
        * @notice implementation of the addKey function of the ERC-734 standard
        * Adds a _key to the identity. The _purpose specifies the purpose of key. Initially we propose four purposes:
        * 1: MANAGEMENT keys, which can manage the identity
        * 2: ACTION keys, which perform actions in this identities name (signing, logins, transactions, etc.)
        * 3: CLAIM signer keys, used to sign claims on other identities which need to be revokable.
        * 4: ENCRYPTION keys, used to encrypt data e.g. hold in claims.
        * MUST only be done by keys of purpose 1, or the identity itself.
        * If its the identity itself, the approval process will determine its approval.
        *
        * @param _key keccak256 representation of an ethereum address
        * @param _type type of key used, which would be a uint256 for different key types. e.g. 1 = ECDSA, 2 = RSA, etc.
        * @param _purpose a uint256[] Array of the key types, like 1 = MANAGEMENT, 2 = ACTION, 3 = CLAIM, 4 = ENCRYPTION
        *
        * @return Returns TRUE if the addition was successful and FALSE if not
        */

    function addKey(bytes32 _key, uint256 _purpose, uint256 _type)
    public
    returns (bool success)
    {
        if (msg.sender != address(this)) {
            require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have management key");
        }

        if (keys[_key].key == _key) {
            for (uint keyPurposeIndex = 0; keyPurposeIndex < keys[_key].purposes.length; keyPurposeIndex++) {
                uint256 purpose = keys[_key].purposes[keyPurposeIndex];

                if (purpose == _purpose) {
                    revert("Conflict: Key already has purpose");
                }
            }

            keys[_key].purposes.push(_purpose);
        } else {
            keys[_key].key = _key;
            keys[_key].purposes = [_purpose];
            keys[_key].keyType = _type;
        }

        keysByPurpose[_purpose].push(_key);

        emit KeyAdded(_key, _purpose, _type);

        return true;
    }

    function approve(uint256 _id, bool _approve)
    public
    returns (bool success)
    {
        require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 2), "Sender does not have action key");

        emit Approved(_id, _approve);

        if (_approve == true) {
            executions[_id].approved = true;

            (success,) = executions[_id].to.call.value(executions[_id].value)(abi.encode(executions[_id].data, 0));

            if (success) {
                executions[_id].executed = true;

                emit Executed(
                    _id,
                    executions[_id].to,
                    executions[_id].value,
                    executions[_id].data
                );

                return true;
            } else {
                emit ExecutionFailed(
                    _id,
                    executions[_id].to,
                    executions[_id].value,
                    executions[_id].data
                );

                return false;
            }
        } else {
            executions[_id].approved = false;
        }
        return true;
    }

    function execute(address _to, uint256 _value, bytes memory _data)
    public
    payable
    returns (uint256 executionId)
    {
        require(!executions[executionNonce].executed, "Already executed");
        executions[executionNonce].to = _to;
        executions[executionNonce].value = _value;
        executions[executionNonce].data = _data;

        emit ExecutionRequested(executionNonce, _to, _value, _data);

        if (keyHasPurpose(keccak256(abi.encode(msg.sender)), 2)) {
            approve(executionNonce, true);
        }

        executionNonce++;
        return executionNonce-1;
    }

    function removeKey(bytes32 _key, uint256 _purpose)
    public
    returns (bool success)
    {
        require(keys[_key].key == _key, "NonExisting: Key isn't registered");

        if (msg.sender != address(this)) {
            require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have management key"); // Sender has MANAGEMENT_KEY
        }

        require(keys[_key].purposes.length > 0, "NonExisting: Key doesn't have such purpose");

        uint purposeIndex = 0;
        while (keys[_key].purposes[purposeIndex] != _purpose) {
            purposeIndex++;

            if (purposeIndex >= keys[_key].purposes.length) {
                break;
            }
        }

        require(purposeIndex < keys[_key].purposes.length, "NonExisting: Key doesn't have such purpose");

        keys[_key].purposes[purposeIndex] = keys[_key].purposes[keys[_key].purposes.length - 1];
        keys[_key].purposes.pop();

        uint keyIndex = 0;

        while (keysByPurpose[_purpose][keyIndex] != _key) {
            keyIndex++;
        }

        keysByPurpose[_purpose][keyIndex] = keysByPurpose[_purpose][keysByPurpose[_purpose].length - 1];
        keysByPurpose[_purpose].pop();

        uint keyType = keys[_key].keyType;

        if (keys[_key].purposes.length == 0) {
            delete keys[_key];
        }

        emit KeyRemoved(_key, _purpose, keyType);

        return true;
    }

    /**
    * @notice implementation of the changeKeysRequired from ERC-734 standard
    */
    function changeKeysRequired(uint256 purpose, uint256 number) external
    {
        revert();
    }

    /**
    * @notice implementation of the getKeysRequired from ERC-734 standard
    */
    function getKeysRequired(uint256 purpose) external view returns(uint256 number)
    {
        revert();
    }

    /**
    * @notice Returns true if the key has MANAGEMENT purpose or the specified purpose.
    */
    function keyHasPurpose(bytes32 _key, uint256 _purpose)
    public
    view
    returns(bool result)
    {
        Key memory key = keys[_key];
        if (key.key == 0) return false;

        for (uint keyPurposeIndex = 0; keyPurposeIndex < key.purposes.length; keyPurposeIndex++) {
            uint256 purpose = key.purposes[keyPurposeIndex];

            if (purpose == MANAGEMENT_KEY || purpose == _purpose) return true;
        }

        return false;
    }
}

File 8 of 25: IClaimIssuer.sol
pragma solidity ^0.5.10;

import "./Identity.sol";

//interface
contract IClaimIssuer{
    uint public issuedClaimCount;

    mapping (bytes => bool) revokedClaims;
    mapping (bytes32 => address) identityAddresses;

    event ClaimValid(Identity _identity, uint256 claimTopic);
    event ClaimInvalid(Identity _identity, uint256 claimTopic);

    function revokeClaim(bytes32 _claimId, address _identity) public returns(bool);
    // function revokeClaim(bytes memory _sig, address _identity) public returns(bool);
    // function isClaimRevoked(bytes32 _claimId) public view returns(bool);
    function isClaimRevoked(bytes memory _sig) public view returns(bool result);
    function isClaimValid(Identity _identity, bytes32 _claimId, uint256 claimTopic, bytes memory sig, bytes memory data)
    public
    view
    returns (bool claimValid);

}

File 9 of 25: IClaimTopicsRegistry.sol
pragma solidity ^0.5.10;

interface IClaimTopicsRegistry{
    // EVENTS
    event ClaimTopicAdded(uint256 indexed claimTopic);
    event ClaimTopicRemoved(uint256 indexed claimTopic);

    // OPERATIONS
    function addClaimTopic(uint256 claimTopic) external;
    function removeClaimTopic(uint256 claimTopic) external;

    // GETTERS
    function getClaimTopics() external view returns (uint256[] memory);
}

File 10 of 25: ICompliance.sol
pragma solidity ^0.5.10;

interface ICompliance {
    function canTransfer(address _from, address _to, uint256 value) external returns (bool);
}

File 11 of 25: Identity.sol
pragma solidity ^0.5.10;

import "./ERC734.sol";
import "./IERC735.sol";

/**
 * @dev Implementation of the `IERC734` "KeyHolder" and the `IERC735` "ClaimHolder" interfaces into a common Identity Contract.
 */
contract Identity is ERC734, IERC735 {

    mapping (bytes32 => Claim) private claims;
    mapping (uint256 => bytes32[]) private claimsByTopic;

    /**
       * @notice Implementation of the addClaim function from the ERC-735 standard
       *  Require that the msg.sender has claim signer key.
       *
       * @param _topic The type of claim
       * @param _scheme The scheme with which this claim SHOULD be verified or how it should be processed.
       * @param _issuer The issuers identity contract address, or the address used to sign the above signature.
       * @param _signature Signature which is the proof that the claim issuer issued a claim of topic for this identity.
       * it MUST be a signed message of the following structure: keccak256(address identityHolder_address, uint256 _ topic, bytes data)
       * or keccak256(abi.encode(identityHolder_address, topic, data))
       * @param _data The hash of the claim data, sitting in another location, a bit-mask, call data, or actual data based on the claim scheme.
       * @param _uri The location of the claim, this can be HTTP links, swarm hashes, IPFS hashes, and such.
       *
       * @return Returns claimRequestId: COULD be send to the approve function, to approve or reject this claim.
       * triggers ClaimAdded event.
       */

    function addClaim(
        uint256 _topic,
        uint256 _scheme,
        address _issuer,
        bytes memory _signature,
        bytes memory _data,
        string memory _uri
    )
    public
    returns (bytes32 claimRequestId)
    {
        bytes32 claimId = keccak256(abi.encode(_issuer, _topic));

        if (msg.sender != address(this)) {
            require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 3), "Permissions: Sender does not have claim signer key");
        }

        if (claims[claimId].issuer != _issuer) {
            claimsByTopic[_topic].push(claimId);
            claims[claimId].topic = _topic;
            claims[claimId].scheme = _scheme;
            claims[claimId].issuer = _issuer;
            claims[claimId].signature = _signature;
            claims[claimId].data = _data;
            claims[claimId].uri = _uri;

            emit ClaimAdded(
                claimId,
                _topic,
                _scheme,
                _issuer,
                _signature,
                _data,
                _uri
            );
        } else {
            claims[claimId].topic = _topic;
            claims[claimId].scheme = _scheme;
            claims[claimId].issuer = _issuer;
            claims[claimId].signature = _signature;
            claims[claimId].data = _data;
            claims[claimId].uri = _uri;

            emit ClaimChanged(
                claimId,
                _topic,
                _scheme,
                _issuer,
                _signature,
                _data,
                _uri
            );
        }

        return claimId;
    }

    /**
       * @notice Implementation of the removeClaim function from the ERC-735 standard
       * Require that the msg.sender has management key.
       * Can only be removed by the claim issuer, or the claim holder itself.
       *
       * @param _claimId The identity of the claim i.e. keccak256(address issuer_address + uint256 topic)
       *
       * @return Returns TRUE when the claim was removed.
       * triggers ClaimRemoved event
       */

    function removeClaim(bytes32 _claimId) public returns (bool success) {
        if (msg.sender != address(this)) {
            require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have CLAIM key");
        }

        if (claims[_claimId].topic == 0) {
            revert("NonExisting: There is no claim with this ID");
        }

        uint claimIndex = 0;
        while (claimsByTopic[claims[_claimId].topic][claimIndex] != _claimId) {
            claimIndex++;
        }

        claimsByTopic[claims[_claimId].topic][claimIndex] = claimsByTopic[claims[_claimId].topic][claimsByTopic[claims[_claimId].topic].length - 1];
        claimsByTopic[claims[_claimId].topic].pop();

        emit ClaimRemoved(
            _claimId,
            claims[_claimId].topic,
            claims[_claimId].scheme,
            claims[_claimId].issuer,
            claims[_claimId].signature,
            claims[_claimId].data,
            claims[_claimId].uri
        );

        delete claims[_claimId];

        return true;
    }

    /**
        * @notice Implementation of the getClaim function from the ERC-735 standard.
        *
        * @param _claimId The identity of the claim i.e. keccak256(address issuer_address + uint256 topic)
        *
        * @return Returns all the parameters of the claim for the specified _claimId (topic, scheme, signature, issuer, data, uri) .
        */

    function getClaim(bytes32 _claimId)
    public
    view
    returns(
        uint256 topic,
        uint256 scheme,
        address issuer,
        bytes memory signature,
        bytes memory data,
        string memory uri
    )
    {
        return (
            claims[_claimId].topic,
            claims[_claimId].scheme,
            claims[_claimId].issuer,
            claims[_claimId].signature,
            claims[_claimId].data,
            claims[_claimId].uri
        );
    }

    /**
        * @notice Implementation of the getClaimIdsByTopic function from the ERC-735 standard.
        * used to get all the claims from the specified topic
        *
        * @param _topic The identity of the claim i.e. keccak256(address issuer_address + uint256 topic)
        *
        * @return Returns an array of claim IDs by topic.
        */

    function getClaimIdsByTopic(uint256 _topic)
    public
    view
    returns(bytes32[] memory claimIds)
    {
        return claimsByTopic[_topic];
    }
}

File 12 of 25: IdentityRegistry.sol
pragma solidity ^0.5.10;


import "./ClaimIssuer.sol";
import "./IClaimTopicsRegistry.sol";
import "./ITrustedIssuersRegistry.sol";
import "./IIdentityRegistry.sol";
import "./AgentRole.sol";

import "./Ownable.sol";
import "./Identity.sol";

contract IdentityRegistry is IIdentityRegistry, AgentRole {
    // mapping between a user address and the corresponding identity contract
    mapping (address => Identity) public identity;

    mapping (address => uint16) public investorCountry;

    IClaimTopicsRegistry public topicsRegistry;
    ITrustedIssuersRegistry public issuersRegistry;

    constructor (
        address _trustedIssuersRegistry,
        address _claimTopicsRegistry
    ) public {
        topicsRegistry = IClaimTopicsRegistry(_claimTopicsRegistry);
        issuersRegistry = ITrustedIssuersRegistry(_trustedIssuersRegistry);

        emit ClaimTopicsRegistrySet(_claimTopicsRegistry);
        emit TrustedIssuersRegistrySet(_trustedIssuersRegistry);
    }

    /**
    * @notice Register an identity contract corresponding to a user address.
    * Requires that the user address should be the owner of the identity contract.
    * Requires that the user doesn't have an identity contract already deployed.
    * Only owner can call.
    *
    * @param _user The address of the user
    * @param _identity The address of the user's identity contract
    * @param _country The country of the investor
    */
    function registerIdentity(address _user, Identity _identity, uint16 _country) public onlyAgent {
        require(address(_identity) != address(0), "contract address can't be a zero address");
        require(address(identity[_user]) == address(0), "identity contract already exists, please use update");
        identity[_user] = _identity;
        investorCountry[_user] = _country;

        emit IdentityRegistered(_user, _identity);
    }

    /**
    * @notice Updates an identity contract corresponding to a user address.
    * Requires that the user address should be the owner of the identity contract.
    * Requires that the user should have an identity contract already deployed that will be replaced.
    * Only owner can call.
    *
    * @param _user The address of the user
    * @param _identity The address of the user's new identity contract
    */
    function updateIdentity(address _user, Identity _identity) public onlyAgent {
        require(address(identity[_user]) != address(0));
        require(address(_identity) != address(0), "contract address can't be a zero address");
        identity[_user] = _identity;

        emit IdentityUpdated(identity[_user], _identity);
    }


    /**
    * @notice Updates the country corresponding to a user address.
    * Requires that the user should have an identity contract already deployed that will be replaced.
    * Only owner can call.
    *
    * @param _user The address of the user
    * @param _country The new country of the user
    */

    function updateCountry(address _user, uint16 _country) public onlyAgent {
        require(address(identity[_user])!= address(0));
        investorCountry[_user] = _country;

        emit CountryUpdated(_user, _country);
    }

    /**
    * @notice Removes an user from the identity registry.
    * Requires that the user have an identity contract already deployed that will be deleted.
    * Only owner can call.
    *
    * @param _user The address of the user to be removed
    */
    function deleteIdentity(address _user) public onlyAgent {
        require(address(identity[_user]) != address(0), "you haven't registered an identity yet");
        delete identity[_user];

        emit IdentityRemoved(_user, identity[_user]);
    }

    /**
    * @notice This functions checks whether an identity contract
    * corresponding to the provided user address has the required claims or not based
    * on the security token.
    *
    * @param _userAddress The address of the user to be verified.
    *
    * @return 'True' if the address is verified, 'false' if not.
    */

    function isVerified(address _userAddress) public view returns (bool) {
        if (address(identity[_userAddress]) == address(0)){
            return false;
        }

        uint256[] memory claimTopics = topicsRegistry.getClaimTopics();
        uint length = claimTopics.length;
        if (length == 0) {
            return true;
        }

        uint256 foundClaimTopic;
        uint256 scheme;
        address issuer;
        bytes memory sig;
        bytes memory data;
        uint256 claimTopic;
        for (claimTopic = 0; claimTopic < length; claimTopic++) {
            bytes32[] memory claimIds = identity[_userAddress].getClaimIdsByTopic(claimTopics[claimTopic]);
            if (claimIds.length == 0) {
                return false;
            }
            for (uint j = 0; j < claimIds.length; j++) {
                // Fetch claim from user
                ( foundClaimTopic, scheme, issuer, sig, data, ) = identity[_userAddress].getClaim(claimIds[j]);
                if (!issuersRegistry.isTrustedIssuer(issuer)) {
                    return false;
                }
                if (!issuersRegistry.hasClaimTopic(issuer, claimTopics[claimTopic])) {
                    return false;
                }
                if (!ClaimIssuer(issuer).isClaimValid(identity[_userAddress], claimIds[j], claimTopics[claimTopic], sig, data)) {
                    return false;
                }
            }
        }
    
        return true;
    }

    // Registry setters
    function setClaimTopicsRegistry(address _claimTopicsRegistry) public onlyOwner {
        topicsRegistry = IClaimTopicsRegistry(_claimTopicsRegistry);

        emit ClaimTopicsRegistrySet(_claimTopicsRegistry);
    }

    function setTrustedIssuersRegistry(address _trustedIssuersRegistry) public onlyOwner {
        issuersRegistry = ITrustedIssuersRegistry(_trustedIssuersRegistry);

        emit TrustedIssuersRegistrySet(_trustedIssuersRegistry);
    }

    function contains(address _wallet) public view returns (bool){
        if(address(identity[_wallet]) == address(0)){
            return false;
        }

        return true;
    }
}

File 13 of 25: IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 14 of 25: IERC734.sol
pragma solidity ^0.5.10;

/**
 * @dev Interface of the ERC734 (Key Holder) standard as defined in the EIP.
 */
interface IERC734 {
    /**
     * @dev Definition of the structure of a Key.
     *
     * Specification: Keys are cryptographic public keys, or contract addresses associated with this identity.
     * The structure should be as follows:
     *   - key: A public key owned by this identity
     *      - purposes: uint256[] Array of the key purposes, like 1 = MANAGEMENT, 2 = EXECUTION
     *      - keyType: The type of key used, which would be a uint256 for different key types. e.g. 1 = ECDSA, 2 = RSA, etc.
     *      - key: bytes32 The public key. // Its the Keccak256 hash of the key
     */
    struct Key {
        uint256[] purposes;
        uint256 keyType;
        bytes32 key;
    }

    /**
     * @dev Emitted when an execution request was approved.
     *
     * Specification: MUST be triggered when approve was successfully called.
     */
    event Approved(uint256 indexed executionId, bool approved);

    /**
     * @dev Emitted when an execute operation was approved and successfully performed.
     *
     * Specification: MUST be triggered when approve was called and the execution was successfully approved.
     */
    event Executed(uint256 indexed executionId, address indexed to, uint256 indexed value, bytes data);

    /**
     * @dev Emitted when an execution request was performed via `execute`.
     *
     * Specification: MUST be triggered when execute was successfully called.
     */
    event ExecutionRequested(uint256 indexed executionId, address indexed to, uint256 indexed value, bytes data);

    /**
     * @dev Emitted when a key was added to the Identity.
     *
     * Specification: MUST be triggered when addKey was successfully called.
     */
    event KeyAdded(bytes32 indexed key, uint256 indexed purpose, uint256 indexed keyType);

    /**
     * @dev Emitted when a key was removed from the Identity.
     *
     * Specification: MUST be triggered when removeKey was successfully called.
     */
    event KeyRemoved(bytes32 indexed key, uint256 indexed purpose, uint256 indexed keyType);

    /**
     * @dev Emitted when the list of required keys to perform an action was updated.
     *
     * Specification: MUST be triggered when changeKeysRequired was successfully called.
     */
    event KeysRequiredChanged(uint256 purpose, uint256 number);


    /**
     * @dev Adds a _key to the identity. The _purpose specifies the purpose of the key.
     *
     * Triggers Event: `KeyAdded`
     *
     * Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.
     */
    function addKey(bytes32 _key, uint256 _purpose, uint256 _keyType) external returns (bool success);

    /**
    * @dev Approves an execution or claim addition.
    *
    * Triggers Event: `Approved`, `Executed`
    *
    * Specification:
    * This SHOULD require n of m approvals of keys purpose 1, if the _to of the execution is the identity contract itself, to successfully approve an execution.
    * And COULD require n of m approvals of keys purpose 2, if the _to of the execution is another contract, to successfully approve an execution.
    */
    function approve(uint256 _id, bool _approve) external returns (bool success);

    /**
     * @dev Changes the keys required to perform an action for a specific purpose. (This is the n in an n of m multisig approval process.)
     *
     * Triggers Event: `KeysRequiredChanged`
     *
     * Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.
     */
    function changeKeysRequired(uint256 purpose, uint256 number) external;

    /**
     * @dev Passes an execution instruction to an ERC725 identity.
     *
     * Triggers Event: `ExecutionRequested`, `Executed`
     *
     * Specification:
     * SHOULD require approve to be called with one or more keys of purpose 1 or 2 to approve this execution.
     * Execute COULD be used as the only accessor for `addKey` and `removeKey`.
     */
    function execute(address _to, uint256 _value, bytes calldata _data) external payable returns (uint256 executionId);

    /**
     * @dev Returns the full key data, if present in the identity.
     */
    function getKey(bytes32 _key) external view returns (uint256[] memory purposes, uint256 keyType, bytes32 key);

    /**
     * @dev Returns the list of purposes associated with a key.
     */
    function getKeyPurposes(bytes32 _key) external view returns(uint256[] memory _purposes);

    /**
     * @dev Returns an array of public key bytes32 held by this identity.
     */
    function getKeysByPurpose(uint256 _purpose) external view returns (bytes32[] memory keys);

    /**
     * @dev Returns number of keys required for purpose.
     */
    function getKeysRequired(uint256 purpose) external view returns (uint256);

    /**
     * @dev Returns TRUE if a key is present and has the given purpose. If the key is not present it returns FALSE.
     */
    function keyHasPurpose(bytes32 _key, uint256 _purpose) external view returns (bool exists);

    /**
     * @dev Removes _purpose for _key from the identity.
     *
     * Triggers Event: `KeyRemoved`
     *
     * Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.
     */
    function removeKey(bytes32 _key, uint256 _purpose) external returns (bool success);
}

File 15 of 25: IERC735.sol
pragma solidity ^0.5.10;

/**
 * @dev Interface of the ERC735 (Claim Holder) standard as defined in the EIP.
 */
interface IERC735 {

    /**
     * @dev Emitted when a claim request was performed.
     *
     * Specification: Is not clear
     */
    event ClaimRequested(uint256 indexed claimRequestId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

    /**
     * @dev Emitted when a claim was added.
     *
     * Specification: MUST be triggered when a claim was successfully added.
     */
    event ClaimAdded(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

    /**
     * @dev Emitted when a claim was removed.
     *
     * Specification: MUST be triggered when removeClaim was successfully called.
     */
    event ClaimRemoved(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

    /**
     * @dev Emitted when a claim was changed.
     *
     * Specification: MUST be triggered when changeClaim was successfully called.
     */
    event ClaimChanged(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

    /**
     * @dev Definition of the structure of a Claim.
     *
     * Specification: Claims are information an issuer has about the identity holder.
     * The structure should be as follows:
     *   - claim: A claim published for the Identity.
     *      - topic: A uint256 number which represents the topic of the claim. (e.g. 1 biometric, 2 residence (ToBeDefined: number schemes, sub topics based on number ranges??))
     *      - scheme : The scheme with which this claim SHOULD be verified or how it should be processed. Its a uint256 for different schemes. E.g. could 3 mean contract verification, where the data will be call data, and the issuer a contract address to call (ToBeDefined). Those can also mean different key types e.g. 1 = ECDSA, 2 = RSA, etc. (ToBeDefined)
     *      - issuer: The issuers identity contract address, or the address used to sign the above signature. If an identity contract, it should hold the key with which the above message was signed, if the key is not present anymore, the claim SHOULD be treated as invalid. The issuer can also be a contract address itself, at which the claim can be verified using the call data.
     *      - signature: Signature which is the proof that the claim issuer issued a claim of topic for this identity. it MUST be a signed message of the following structure: `keccak256(abi.encode(identityHolder_address, topic, data))`
     *      - data: The hash of the claim data, sitting in another location, a bit-mask, call data, or actual data based on the claim scheme.
     *      - uri: The location of the claim, this can be HTTP links, swarm hashes, IPFS hashes, and such.
     */
    struct Claim {
        uint256 topic;
        uint256 scheme;
        address issuer;
        bytes signature;
        bytes data;
        string uri;
    }

    /**
     * @dev Get a claim by its ID.
     *
     * Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`.
     */
    function getClaim(bytes32 _claimId) external view returns(uint256 topic, uint256 scheme, address issuer, bytes memory signature, bytes memory data, string memory uri);

    /**
     * @dev Returns an array of claim IDs by topic.
     */
    function getClaimIdsByTopic(uint256 _topic) external view returns(bytes32[] memory claimIds);

    /**
     * @dev Add or update a claim.
     *
     * Triggers Event: `ClaimRequested`, `ClaimAdded`, `ClaimChanged`
     *
     * Specification: Requests the ADDITION or the CHANGE of a claim from an issuer.
     * Claims can requested to be added by anybody, including the claim holder itself (self issued).
     *
     * _signature is a signed message of the following structure: `keccak256(abi.encode(address identityHolder_address, uint256 topic, bytes data))`.
     * Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`.
     *
     * This COULD implement an approval process for pending claims, or add them right away.
     * MUST return a claimRequestId (use claim ID) that COULD be sent to the approve function.
     */
    function addClaim(uint256 _topic, uint256 _scheme, address issuer, bytes calldata _signature, bytes calldata _data, string calldata _uri) external returns (bytes32 claimRequestId);

    /**
     * @dev Removes a claim.
     *
     * Triggers Event: `ClaimRemoved`
     *
     * Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`.
     */
    function removeClaim(bytes32 _claimId) external returns (bool success);
}

File 16 of 25: IIdentityRegistry.sol
pragma solidity ^0.5.10;

import "./ITrustedIssuersRegistry.sol";
import "./IClaimTopicsRegistry.sol";

import "./ClaimIssuer.sol";
import "./Identity.sol";

interface IIdentityRegistry {
    // EVENTS
    event ClaimTopicsRegistrySet(address indexed _claimTopicsRegistry);
    event CountryUpdated(address indexed investorAddress, uint16 indexed country);
    event IdentityRegistered(address indexed investorAddress, Identity indexed identity);
    event IdentityRemoved(address indexed investorAddress, Identity indexed identity);
    event IdentityUpdated(Identity indexed old_identity, Identity indexed new_identity);
    event TrustedIssuersRegistrySet(address indexed _trustedIssuersRegistry);

    // WRITE OPERATIONS
    function deleteIdentity(address _user) external;
    function registerIdentity(address _user, Identity _identity, uint16 _country) external;
    function setClaimTopicsRegistry(address _claimTopicsRegistry) external;
    function setTrustedIssuersRegistry(address _trustedIssuersRegistry) external;
    function updateCountry(address _user, uint16 _country) external;
    function updateIdentity(address _user, Identity _identity) external;

    // READ OPERATIONS
    function contains(address _wallet) external view returns (bool);
    function isVerified(address _userAddress) external view returns (bool);

    // GETTERS
    function identity(address _wallet) external view returns (Identity);
    function investorCountry(address _wallet) external view returns (uint16);
    function issuersRegistry() external view returns (ITrustedIssuersRegistry);
    function topicsRegistry() external view returns (IClaimTopicsRegistry);
}

File 17 of 25: IToken.sol
pragma solidity ^0.5.10;

//interface
interface IToken {
    event UpdatedTokenInformation(
		string newName,
		string newSymbol,
		uint8 newDecimals,
		string newVersion,
		address newOnchainID,
		uint256 _maxTokenSupply
	);

    // getters
    function decimals() external view returns (uint8);
    function name() external view returns (string memory);
    function onchainID() external view returns (address);
    function symbol() external view returns (string memory);
    function version() external view returns (string memory);

    // setters
    function setTokenInformation(
		string calldata _name,
		string calldata _symbol,
		uint8 _decimals,
		string calldata _version,
		address _onchainID,
		uint256 _maxTokenSupply
	) external;
}

File 18 of 25: ITrustedIssuersRegistry.sol
pragma solidity ^0.5.10;

import "./ClaimIssuer.sol";

interface ITrustedIssuersRegistry {
    // EVENTS
    event TrustedIssuerAdded(uint indexed index, ClaimIssuer indexed trustedIssuer, uint[] claimTopics);
    event TrustedIssuerRemoved(uint indexed index, ClaimIssuer indexed trustedIssuer);
    event TrustedIssuerUpdated(uint indexed index, ClaimIssuer indexed oldTrustedIssuer, ClaimIssuer indexed newTrustedIssuer, uint[] claimTopics);

    // READ OPERATIONS
    function getTrustedIssuer(uint index) external view returns (ClaimIssuer);
    function getTrustedIssuerClaimTopics(uint index) external view returns(uint[] memory);
    function getTrustedIssuers() external view returns (uint[] memory);
    function hasClaimTopic(address issuer, uint claimTopic) external view returns(bool);
    function isTrustedIssuer(address issuer) external view returns(bool);

    // WRITE OPERATIONS
    function addTrustedIssuer(ClaimIssuer _trustedIssuer, uint index, uint[] calldata claimTopics) external;
    function removeTrustedIssuer(uint index) external;
    function updateIssuerContract(uint index, ClaimIssuer _newTrustedIssuer, uint[] calldata claimTopics) external;
}

File 19 of 25: MintableAndBurnable.sol
pragma solidity ^0.5.10;

import "./TransferManager.sol";


contract MintableAndBurnable is TransferManager {

	modifier checkMaxSupply(uint256 _amount) {
        require(maxTokenSupply >= totalSupply().add(_amount), "Exceeding max supply");
        _;
    }

    /**
     * @notice Improved version of default mint method. Tokens can be minted
     * to an address if only it is a verified address as per the security token.
     * This check will be useful for a complaint crowdsale.
     * Only owner can call.
     *
     * @param _to Address to mint the tokens to.
     * @param _amount Amount of tokens to mint.
     *
     * @return 'True' if minting succesful, 'False' if fails.
     */
    function mint(address _to, uint256 _amount)
        external
        onlyAgent
		checkMaxSupply(_amount) {
        require(identityRegistry.isVerified(_to), "Identity is not verified.");
        _mint(_to, _amount);
        updateShareholders(_to);
    }

    function burn(address account, uint256 value)
        external
        onlyAgent {
        _burn(account, value);
    }
}

File 20 of 25: Ownable.sol
pragma solidity ^0.5.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 21 of 25: Roles.sol
pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

File 22 of 25: SafeMath.sol
pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 23 of 25: TransferManager.sol
pragma solidity ^0.5.10;

import "./Identity.sol";
import "./IClaimTopicsRegistry.sol";
import "./IIdentityRegistry.sol";
import "./ICompliance.sol";
// import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "./ERC20.sol";
import "./AgentRole.sol";

import "./Roles.sol";

contract Pausable is AgentRole, ERC20 {
    /**
     * @dev Emitted when the pause is triggered by a pauser (`account`).
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by a pauser (`account`).
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state. Assigns the Pauser role
     * to the deployer.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Called by a pauser to pause, triggers stopped state.
     */
    function pause() public onlyAgent whenNotPaused {
        _paused = true;
        emit Paused(msg.sender);
    }

    /**
     * @dev Called by a pauser to unpause, returns to normal state.
     */
    function unpause() public onlyAgent whenPaused {
        _paused = false;
        emit Unpaused(msg.sender);
    }
}


contract TransferManager is Pausable {

    mapping(address => uint256) private holderIndices;
    mapping(address => address) private cancellations;
    mapping (address => bool) frozen;
    mapping (address => Identity)  _identity;
    mapping (address => uint256) public freezedTokens;

    mapping(uint16 => uint256) countryShareHolders;

	uint8 public decimals = 6;
	uint256 public maxTokenSupply = 100000000 * (10 ** uint256(decimals));
	
    address[] private shareholders;
    bytes32[] public claimsNotInNewAddress;

    IIdentityRegistry public identityRegistry;

    ICompliance public compliance;

    event IdentityRegistryAdded(address indexed _identityRegistry);

    event ComplianceAdded(address indexed _compliance);

    event VerifiedAddressSuperseded(
        address indexed original,
        address indexed replacement,
        address indexed sender
    );

    event AddressFrozen(
        address indexed addr,
        bool indexed isFrozen,
        address indexed owner
    );

    event recoverySuccess(
        address wallet_lostAddress,
        address wallet_newAddress,
        address onchainID
    );

    event recoveryFails(
        address wallet_lostAddress,
        address wallet_newAddress,
        address onchainID
    );

    event TokensFreezed(address indexed addr, uint256 amount);
    
    event TokensUnfreezed(address indexed addr, uint256 amount);
    
    constructor (
        address _identityRegistry,
        address _compliance
    ) public {
        identityRegistry = IIdentityRegistry(_identityRegistry);
        emit IdentityRegistryAdded(_identityRegistry);
        compliance = ICompliance(_compliance);
        emit ComplianceAdded(_compliance);
    }

    /**
    * @notice ERC-20 overridden function that include logic to check for trade validity.
    *  Require that the msg.sender and to addresses are not frozen.
    *  Require that the value should not exceed available balance .
    *  Require that the to address is a verified address,
    *  If the `to` address is not currently a shareholder then it MUST become one.
    *  If the transfer will reduce `msg.sender`'s balance to 0 then that address
    *  MUST be removed from the list of shareholders.
    *
    * @param _to The address of the receiver
    * @param _value The number of tokens to transfer
    *
    * @return `true` if successful and revert if unsuccessful
    */
    function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
        require(!frozen[_to] && !frozen[msg.sender]);
        require(_value <=  balanceOf(msg.sender).sub(freezedTokens[msg.sender]), "Insufficient Balance" );
        if(identityRegistry.isVerified(_to) && compliance.canTransfer(msg.sender, _to, _value)){
            updateShareholders(_to);
            pruneShareholders(msg.sender, _value);
            return super.transfer(_to, _value);
        }

        revert("Transfer not possible");
    }

    /**
    * @notice ERC-20 overridden function that include logic to check for trade validity.
    *  Require that the from and to addresses are not frozen.
    *  Require that the value should not exceed available balance .
    *  Require that the to address is a verified address,
    *  If the `to` address is not currently a shareholder then it MUST become one.
    *  If the transfer will reduce `from`'s balance to 0 then that address
    *  MUST be removed from the list of shareholders.
    *
    * @param _from The address of the sender
    * @param _to The address of the receiver
    * @param _value The number of tokens to transfer
    *
    * @return `true` if successful and revert if unsuccessful
    */
    function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
        require(!frozen[_to] && !frozen[_from]);
        require(_value <=  balanceOf(_from).sub(freezedTokens[_from]), "Insufficient Balance" );
        if(identityRegistry.isVerified(_to) && compliance.canTransfer(_from, _to, _value)){
            updateShareholders(_to);
            pruneShareholders(_from, _value);
            return super.transferFrom(_from, _to, _value);
        }

        revert("Transfer not possible");
    }

    /**
     * Holder count simply returns the total number of token holder addresses.
     */
    function holderCount()
        public
        view
        returns (uint)
    {
        return shareholders.length;
    }

    /**
     *  By counting the number of token holders using `holderCount`
     *  you can retrieve the complete list of token holders, one at a time.
     *  It MUST throw if `index >= holderCount()`.
     *  @param index The zero-based index of the holder.
     *  @return the address of the token holder with the given index.
     */
    function holderAt(uint256 index)
        public
        onlyOwner
        view
        returns (address)
    {
        require(index < shareholders.length);
        return shareholders[index];
    }


    /**
     *  If the address is not in the `shareholders` array then push it
     *  and update the `holderIndices` mapping.
     *  @param addr The address to add as a shareholder if it's not already.
     */
    function updateShareholders(address addr)
        internal
    {
        if (holderIndices[addr] == 0) {
            holderIndices[addr] = shareholders.push(addr);
            uint16 country = identityRegistry.investorCountry(addr);
            countryShareHolders[country]++;
        }
    }

    /**
     *  If the address is in the `shareholders` array and the forthcoming
     *  transfer or transferFrom will reduce their balance to 0, then
     *  we need to remove them from the shareholders array.
     *  @param addr The address to prune if their balance will be reduced to 0.
     @  @dev see https://ethereum.stackexchange.com/a/39311
     */
    function pruneShareholders(address addr, uint256 value)
        internal
    {
        uint256 balance = balanceOf(addr) - value;
        // uint256 balance = balanceOf(addr)
        if (balance > 0) {
            return;
        }
        uint256 holderIndex = holderIndices[addr] - 1;
        uint256 lastIndex = shareholders.length - 1;
        address lastHolder = shareholders[lastIndex];
        // overwrite the addr's slot with the last shareholder
        shareholders[holderIndex] = lastHolder;
        // also copy over the index
        holderIndices[lastHolder] = holderIndices[addr];
        // trim the shareholders array (which drops the last entry)
        shareholders.length--;
        // and zero out the index for addr
        holderIndices[addr] = 0;
        //Decrease the country count
        uint16 country = identityRegistry.investorCountry(addr);
        countryShareHolders[country]--;
    }

    function getShareholderCountByCountry(uint16 index) public view returns (uint) {
        return countryShareHolders[index];
    }

    /**
     *  Checks to see if the supplied address was superseded.
     *  @param addr The address to check
     *  @return true if the supplied address was superseded by another address.
     */
    function isSuperseded(address addr)
        public
        view
        onlyOwner
        returns (bool)
    {
        return cancellations[addr] != address(0);
    }

    /**
     *  Gets the most recent address, given a superseded one.
     *  Addresses may be superseded multiple times, so this function needs to
     *  follow the chain of addresses until it reaches the final, verified address.
     *  @param addr The superseded address.
     *  @return the verified address that ultimately holds the share.
     */
    function getCurrentFor(address addr)
        public
        view
        onlyOwner
        returns (address)
    {
        return findCurrentFor(addr);
    }

    /**
     *  Recursively find the most recent address given a superseded one.
     *  @param addr The superseded address.
     *  @return the verified address that ultimately holds the share.
     */
    function findCurrentFor(address addr)
        internal
        view
        returns (address)
    {
        address candidate = cancellations[addr];
        if (candidate == address(0)) {
            return addr;
        }
        return findCurrentFor(candidate);
    }

    /**
     *  Sets an address frozen status for this token.
     *  @param addr The address for which to update frozen status
     *  @param freeze Frozen status of the address
     */
    function setAddressFrozen(address addr, bool freeze)
    external
    onlyAgent {
        frozen[addr] = freeze;

        emit AddressFrozen(addr, freeze, msg.sender);
    }

    /**
     *  Freezes token amount specified for given address.
     *  @param addr The address for which to update freezed tokens
     *  @param amount Amount of Tokens to be freezed
     */
    function freezePartialTokens(address addr, uint256 amount)
        onlyAgent
        external
    {
        uint256 balance = balanceOf(addr);
        require(balance >= freezedTokens[addr]+amount, 'Amount exceeds available balance');
        freezedTokens[addr] += amount;
        emit TokensFreezed(addr, amount);
    }
    
    /**
     *  Unfreezes token amount specified for given address
     *  @param addr The address for which to update freezed tokens
     *  @param amount Amount of Tokens to be unfreezed
     */
    function unfreezePartialTokens(address addr, uint256 amount)
        onlyAgent
        external
    {
        require(freezedTokens[addr] >= amount, 'Amount should be less than or equal to freezed tokens');
        freezedTokens[addr] -= amount;
        emit TokensUnfreezed(addr, amount);
    }

    //Identity registry setter.
    function setIdentityRegistry(address _identityRegistry) public onlyOwner {
        identityRegistry = IIdentityRegistry(_identityRegistry);
        emit IdentityRegistryAdded(_identityRegistry);
    }

    function setCompliance(address _compliance) public onlyOwner {
        compliance = ICompliance(_compliance);
        emit ComplianceAdded(_compliance);
    }

    uint256[]  claimTopics;
    bytes32[]  lostAddressClaimIds;
    bytes32[]  newAddressClaimIds;
    uint256 foundClaimTopic;
    uint256 scheme;
    address issuer;
    bytes  sig;
    bytes  data;

    function recoveryAddress(address wallet_lostAddress, address wallet_newAddress, address onchainID) public onlyAgent {
        require(holderIndices[wallet_lostAddress] != 0 && holderIndices[wallet_newAddress] == 0);
        require(identityRegistry.contains(wallet_lostAddress), "wallet should be in the registry");

        Identity _onchainID = Identity(onchainID);

        // Check if the token issuer/Tokeny has the management key to the onchainID
        bytes32 _key = keccak256(abi.encode(msg.sender));

        if(_onchainID.keyHasPurpose(_key, 1)) {
            // Burn tokens on the lost wallet
            uint investorTokens = balanceOf(wallet_lostAddress);
            _burn(wallet_lostAddress, investorTokens);

            // Remove lost wallet management key from the onchainID
            bytes32 lostWalletkey = keccak256(abi.encode(wallet_lostAddress));
            if (_onchainID.keyHasPurpose(lostWalletkey, 1)) {
                uint256[] memory purposes = _onchainID.getKeyPurposes(lostWalletkey);
                for(uint _purpose = 0; _purpose <= purposes.length; _purpose++){
                    if(_purpose != 0)
                        _onchainID.removeKey(lostWalletkey, _purpose);
                }
                // _onchainID.removeKey(lostWalletkey);
            }

            // Add new wallet to the identity registry and link it with the onchainID
            identityRegistry.registerIdentity(wallet_newAddress, _onchainID, identityRegistry.investorCountry(wallet_lostAddress));

            // Remove lost wallet from the identity registry
            identityRegistry.deleteIdentity(wallet_lostAddress);

            cancellations[wallet_lostAddress] = wallet_newAddress;
        	uint256 holderIndex = holderIndices[wallet_lostAddress] - 1;
        	shareholders[holderIndex] = wallet_newAddress;
        	holderIndices[wallet_newAddress] = holderIndices[wallet_lostAddress];
        	holderIndices[wallet_lostAddress] = 0;

            // Mint equivalent token amount on the new wallet
            _mint(wallet_newAddress, investorTokens);

            emit recoverySuccess(wallet_lostAddress, wallet_newAddress, onchainID);

        }
        else {
            emit recoveryFails(wallet_lostAddress, wallet_newAddress, onchainID);
        }
    }
}

File 24 of 25: TransferRestrictions.sol
pragma solidity ^0.5.10;

import "./ICompliance.sol";
import "./AgentRole.sol";
import "./IIdentityRegistry.sol";
import "./Ownable.sol";

contract TransferRestrictions is ICompliance, Ownable {

	struct Counter {
		mapping (uint256 => uint256) count;
		mapping (uint256 => uint256) startTime;
		bool exists;
	}

	IIdentityRegistry public identityRegistry;
	mapping (uint16 => bool) public restricted;
	mapping (address => Counter) public counters;
	mapping (uint256 => uint256) public limit;
	mapping (uint256 => uint256) public timespan;
	uint256 index = 0;

	event Restricted(uint16 _country);
	event Unrestricted(uint16 _country);
	event RestrictionAdded(uint256 _limit, uint256 _timespan);
	event RestrictionUpdated(uint256 _limit, uint256 _timespan, uint _index);
	event RestrictionRemoved(uint256 _index);

	constructor (address _identityRegistry) public {
		identityRegistry = IIdentityRegistry(_identityRegistry);
	}

    function restrictCountry(uint16 _country) public onlyOwner {
		restricted[_country] = true;
		emit Restricted(_country);
	}

	function unrestrictCountry(uint16  _country) public onlyOwner {
		restricted[_country] = false;
		emit Unrestricted(_country);
	}

	function restrictCountriesInBulk(uint16[] memory _country) public onlyOwner {
		for(uint i = 0 ; i < _country.length ; i++ ) {
			restricted[_country[i]] = true;
			emit Restricted(_country[i]);
		}
	}

	function unrestrictCountriesInBulk(uint16[] memory _country) public onlyOwner {
		for(uint i = 0 ; i < _country.length ; i++ ) {
			restricted[_country[i]] = false;
			emit Unrestricted(_country[i]);
		}
	}

	function isFromUnresrictedCountry(address _to) public view returns (bool) {
		uint16 country = identityRegistry.investorCountry(_to);
		if(!restricted[country]) {
			return true;
		}
		return false;
	}

	function getStartTime(address _user, uint256 _index) public view returns(uint256) {
		Counter storage counter = counters[_user];
		return counter.startTime[_index];
	}

	function setStartTime(address _user, uint256 _index, uint256 _time) internal {
		Counter storage counter = counters[_user];
		counter.startTime[_index] = _time;
	}

	function getCount(address _user, uint256 _index) public view returns(uint256) {
        Counter storage counter = counters[_user];
        if(counter.exists) {
            return counter.count[_index];
        }
        return 0;
    }

    function setCount(address _user, uint256 _count) internal {
        Counter storage counter = counters[_user];
		for(uint256 _index = 0; _index < index; _index++) {
			counter.count[_index] += _count;
		}
    }

	function addRestrictions(uint256 _limit, uint256 _timespan) public onlyOwner {
		require(_timespan > 0, "Invalid time interval");
		limit[index] = _limit;
		timespan[index] = _timespan;
		index++;
		emit RestrictionAdded(_limit, _timespan);
	}

	function updateRestrictions(uint256 _limit, uint256 _timespan, uint256 _index) public onlyOwner {
		require(_timespan > 0, "Invalid time interval");
		limit[_index] = _limit;
		timespan[_index] = _timespan;
		emit RestrictionUpdated(_limit, _timespan, _index);
	}

	function removeRestrictions(uint256 _index) public onlyOwner {
		require(_index >= 0, "Invalid index");
		require(limit[_index] != 0 && timespan[_index] != 0, "No restriction exist");

		delete limit[_index];
		delete timespan[_index];
		limit[_index] = limit[index-1];
		timespan[_index] = timespan[index-1];
		delete limit[index-1];
		delete timespan[index-1];
		index--;
		emit RestrictionRemoved(_index);
	}

	function resetStartTime(address _user, uint _index) internal {
		uint256 period = (block.timestamp - getStartTime(_user,_index)) / timespan[_index];
		uint256 time = getStartTime(_user, _index) + period * timespan[_index];
		setStartTime(_user, _index, time);
	}

	function canTransfer(address _from, address _to, uint256 _value) public returns (bool) {
		Counter storage counter = counters[_from];
		require(isFromUnresrictedCountry(_to),"Country is Restricted");
		uint256 flag = index;
		for(uint256 i = 0; i < index; i++) {
			if(!counter.exists) {
			    setStartTime(_from, i, now);
				if(i == index - 1){
				    counter.exists = true;
				}
			}
			if(getStartTime(_from, i) + timespan[i] < now) {
				require(_value <= limit[i], "Transfer limit exceeded");
				resetStartTime(_from, i);
				counter.count[i] = 0;
				flag--;
			}
			else if(getStartTime(_from, i) + timespan[i] >= now && counter.count[i] + _value <= limit[i]) {
				flag--;
			}
		}
		if( flag == 0) {
			setCount(_from, _value);
			return true;
		}
		return false;
	}
}

File 25 of 25: TrustedIssuersRegistry.sol
pragma solidity ^0.5.10;


import "./ITrustedIssuersRegistry.sol";
import "./ClaimIssuer.sol";
import "./Ownable.sol";

contract TrustedIssuersRegistry is ITrustedIssuersRegistry, Ownable {
    // Mapping between a trusted issuer index and its corresponding identity contract address.
    mapping (uint => ClaimIssuer) trustedIssuers;
    mapping (uint => mapping (uint => uint)) trustedIssuerClaimTopics;
    mapping (uint => uint) trustedIssuerClaimCount;
    mapping (address => bool) trustedIssuer;
    // Array stores the trusted issuer indexes
    uint[] indexes;

   /**
    * @notice Adds the identity contract of a trusted claim issuer corresponding
    * to the index provided.
    * Requires the index to be greater than zero.
    * Requires that an identity contract doesnt already exist corresponding to the index.
    * Only owner can
    *
    * @param _trustedIssuer The identity contract address of the trusted claim issuer.
    * @param index The desired index of the claim issuer
    * @param claimTopics list of authorized claim topics for each trusted claim issuer
    */
    function addTrustedIssuer(ClaimIssuer _trustedIssuer, uint index, uint[] memory claimTopics) onlyOwner public {
        require(index > 0);
        uint claimTopicsLength = claimTopics.length;
        require(claimTopicsLength > 0);
        require(address(trustedIssuers[index])==address(0), "A trustedIssuer already exists by this name");
        require(address(_trustedIssuer) != address(0));
        uint length = indexes.length;
        for (uint i = 0; i<length; i++) {
            require(_trustedIssuer != trustedIssuers[indexes[i]], "Issuer address already exists in another index");
        }
        trustedIssuers[index] = _trustedIssuer;
        indexes.push(index);
        uint i;
        for(i = 0; i < claimTopicsLength; i++) {
            trustedIssuerClaimTopics[index][i] = claimTopics[i];
        }
        trustedIssuerClaimCount[index] = i;
        trustedIssuer[address(trustedIssuers[index])] = true;

        emit TrustedIssuerAdded(index, _trustedIssuer, claimTopics);
    }



   /**
    * @notice Removes the identity contract of a trusted claim issuer corresponding
    * to the index provided.
    * Requires the index to be greater than zero.
    * Requires that an identity contract exists corresponding to the index.
    * Only owner can call.
    *
    * @param index The desired index of the claim issuer to be removed.
    */
    function removeTrustedIssuer(uint index) public onlyOwner {
        require(index > 0);
        require(address(trustedIssuers[index])!=address(0), "No such issuer exists");
        delete trustedIssuer[address(trustedIssuers[index])];
        delete trustedIssuers[index];

        uint length = indexes.length;
        for (uint i = 0; i<length; i++) {
            if(indexes[i] == index) {
                delete indexes[i];
                indexes[i] = indexes[length-1];
                delete indexes[length-1];
                indexes.length--;
                break;
            }
        }
        uint claimTopicCount = trustedIssuerClaimCount[index];
        for(uint i = 0; i < claimTopicCount; i++){
            if(trustedIssuerClaimTopics[index][i] != 0){
                delete trustedIssuerClaimTopics[index][i];
            }
        }
        delete trustedIssuerClaimCount[index];

        emit TrustedIssuerRemoved(index, trustedIssuers[index]);
    }

   /**
    * @notice Function for getting all the trusted claim issuer indexes stored.
    *
    * @return array of indexes of all the trusted claim issuer indexes stored.
    */
    function getTrustedIssuers() public view returns (uint[] memory) {
        return indexes;
    }

    function isTrustedIssuer(address issuer) public view returns(bool) {
        return trustedIssuer[issuer];
    }
   /**
    * @notice Function for getting the trusted claim issuer's
    * identity contract address corresponding to the index provided.
    * Requires the provided index to have an identity contract stored.
    * Only owner can call.
    *
    * @param index The index corresponding to which identity contract address is required.
    *
    * @return Address of the identity contract address of the trusted claim issuer.
    */
    function getTrustedIssuer(uint index) public view returns (ClaimIssuer) {
        require(index > 0);
        require(address(trustedIssuers[index])!=address(0), "No such issuer exists");

        return trustedIssuers[index];
    }

    /**
    * @notice Function for getting all the claim topic of trusted claim issuer
    * Requires the provided index to have an identity contract stored and claim topic.
    * Only owner can call.
    *
    * @param index The index corresponding to which identity contract address is required.
    *
    * @return The claim topics corresponding to the trusted issuers.
    */
    function getTrustedIssuerClaimTopics(uint index) public view returns(uint[] memory) {
        require(index > 0);
        require(address(trustedIssuers[index])!=address(0), "No such issuer exists");
        uint length = trustedIssuerClaimCount[index];
        uint[] memory claimTopics = new uint[](length);
        for(uint i = 0; i < length; i++) {
            claimTopics[i] = trustedIssuerClaimTopics[index][i];
        }

        return claimTopics;
    }

    /**
    * @notice Function for checking the trusted claim issuer's
    * has corresponding claim topic
    *
    * @return true if the issuer is trusted for this claim topic.
    */
    function hasClaimTopic(address issuer, uint claimTopic) public view returns(bool) {
        require(claimTopic > 0);

        for( uint i=0;i < indexes.length; i++) {
            if(address(trustedIssuers[indexes[i]])==issuer) {
                uint claimTopicCount = trustedIssuerClaimCount[indexes[i]];
                for(uint j = 0; j < claimTopicCount; j++){
                    if(trustedIssuerClaimTopics[indexes[i]][j] == claimTopic){
                        return true;
                    }
                }
            }
        }

        return false;
    }

   /**
    * @notice Updates the identity contract of a trusted claim issuer corresponding
    * to the index provided.
    * Requires the index to be greater than zero.
    * Requires that an identity contract already exists corresponding to the provided index.
    * Only owner can call.
    *
    * @param index The desired index of the claim issuer to be updated.
    * @param _newTrustedIssuer The new identity contract address of the trusted claim issuer.
    * @param claimTopics list of authorized claim topics for each trusted claim issuer
    */
    function updateIssuerContract(uint index, ClaimIssuer _newTrustedIssuer, uint[] memory claimTopics) public onlyOwner {
        require(index > 0);
        require(address(trustedIssuers[index])!=address(0), "No such issuer exists");
        uint length = indexes.length;
        uint claimTopicsLength = claimTopics.length;
        require(claimTopicsLength > 0);
        for (uint i = 0; i<length; i++) {
            require(trustedIssuers[indexes[i]]!=_newTrustedIssuer,"Address already exists");
        }
        uint i;
        for(i = 0; i < claimTopicsLength; i++) {
            trustedIssuerClaimTopics[index][i] = claimTopics[i];
        }
        trustedIssuerClaimCount[index] = i;
        trustedIssuers[index] = _newTrustedIssuer;

        emit TrustedIssuerUpdated(index, trustedIssuers[index], _newTrustedIssuer, claimTopics);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address"},{"internalType":"address","name":"_compliance","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"bool","name":"isFrozen","type":"bool"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"AddressFrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AgentAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AgentRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_compliance","type":"address"}],"name":"ComplianceAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_identityRegistry","type":"address"}],"name":"IdentityRegistryAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensFreezed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensUnfreezed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newName","type":"string"},{"indexed":false,"internalType":"string","name":"newSymbol","type":"string"},{"indexed":false,"internalType":"uint8","name":"newDecimals","type":"uint8"},{"indexed":false,"internalType":"string","name":"newVersion","type":"string"},{"indexed":false,"internalType":"address","name":"newOnchainID","type":"address"},{"indexed":false,"internalType":"uint256","name":"_maxTokenSupply","type":"uint256"}],"name":"UpdatedTokenInformation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"original","type":"address"},{"indexed":true,"internalType":"address","name":"replacement","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"VerifiedAddressSuperseded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet_lostAddress","type":"address"},{"indexed":false,"internalType":"address","name":"wallet_newAddress","type":"address"},{"indexed":false,"internalType":"address","name":"onchainID","type":"address"}],"name":"recoveryFails","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet_lostAddress","type":"address"},{"indexed":false,"internalType":"address","name":"wallet_newAddress","type":"address"},{"indexed":false,"internalType":"address","name":"onchainID","type":"address"}],"name":"recoverySuccess","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addAgent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimsNotInNewAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"compliance","outputs":[{"internalType":"contract ICompliance","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"freezePartialTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freezedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getCurrentFor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint16","name":"index","type":"uint16"}],"name":"getShareholderCountByCountry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"holderAt","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"holderCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"identityRegistry","outputs":[{"internalType":"contract IIdentityRegistry","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isAgent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isSuperseded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onchainID","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"wallet_lostAddress","type":"address"},{"internalType":"address","name":"wallet_newAddress","type":"address"},{"internalType":"address","name":"onchainID","type":"address"}],"name":"recoveryAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeAgent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"freeze","type":"bool"}],"name":"setAddressFrozen","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_compliance","type":"address"}],"name":"setCompliance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_identityRegistry","type":"address"}],"name":"setIdentityRegistry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"string","name":"_version","type":"string"},{"internalType":"address","name":"_onchainID","type":"address"},{"internalType":"uint256","name":"_maxTokenSupply","type":"uint256"}],"name":"setTokenInformation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unfreezePartialTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040526006600c60006101000a81548160ff021916908360ff160217905550600c60009054906101000a900460ff1660ff16600a0a6305f5e10002600d556040518060400160405280600681526020017f454e454752410000000000000000000000000000000000000000000000000000815250601a90805190602001906200008c929190620003a0565b506040518060400160405280600381526020017f4547580000000000000000000000000000000000000000000000000000000000815250601b9080519060200190620000da929190620003a0565b506040518060400160405280600381526020017f312e320000000000000000000000000000000000000000000000000000000000815250601c908051906020019062000128929190620003a0565b506000601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200017857600080fd5b5060405162005c9038038062005c90833981810160405260408110156200019e57600080fd5b81019080805190602001909291908051906020019092919050505081816000620001cd6200039860201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506000600560006101000a81548160ff02191690831515021790555081601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167fd2be862d755bca7e0d39772b2cab3a5578da9c285f69199f4c063c2294a7f36c60405160405180910390a280601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f7f3a888862559648ec01d97deb7b5012bff86dc91e654a1de397170db40e35b660405160405180910390a2505050506200044f565b600033905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003e357805160ff191683800117855562000414565b8280016001018555821562000414579182015b8281111562000413578251825591602001919060010190620003f6565b5b50905062000423919062000427565b5090565b6200044c91905b80821115620004485760008160009055506001016200042e565b5090565b90565b615831806200045f6000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c80638117c18b116101465780639dc29fac116100c3578063c69c09cf11610087578063c69c09cf14610e0e578063cbf3f86114610e5e578063cc397ed314610ea2578063dd62ed3e14610f26578063f2fde38b14610f9e578063f898178914610fe25761025e565b80639dc29fac14610c52578063a457c2d714610ca0578063a9059cbb14610d06578063aaaac99014610d6c578063aba6370514610dc45761025e565b80638f32d59b1161010a5780638f32d59b14610a9f5780639285948a14610ac1578063951f17ae14610b4557806395d89b4114610b8b57806397a6278e14610c0e5761025e565b80638117c18b1461086b5780638456cb59146108ad57806384e79842146108b75780638993f18b146108fb5780638da5cb5b14610a555761025e565b80632da7293e116101df57806350f7c204116101a357806350f7c204146106fc57806354fd4d501461071a5780635c975abb1461079d5780636290865d146107bf57806370a0823114610809578063715018a6146108615761025e565b80632da7293e146105be578063313ce5671461061a578063395093511461063e5780633f4ba83a146106a457806340c10f19146106ae5761025e565b8063197bc33611610226578063197bc336146104025780631aab9a9f146104705780631fe56f7d1461048e5780631ffbb064146104dc57806323b872dd146105385761025e565b806306fdde0314610263578063095ea7b3146102e6578063125c4a331461034c578063134e18f41461039a57806318160ddd146103e4575b600080fd5b61026b611026565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102ab578082015181840152602081019050610290565b50505050905090810190601f1680156102d85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610332600480360360408110156102fc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506110c4565b604051808215151515815260200191505060405180910390f35b6103986004803603604081101561036257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506110e2565b005b6103a26112a4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103ec6112ca565b6040518082815260200191505060405180910390f35b61042e6004803603602081101561041857600080fd5b81019080803590602001909291905050506112d4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104786113a0565b6040518082815260200191505060405180910390f35b6104da600480360360408110156104a457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113ad565b005b61051e600480360360208110156104f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611542565b604051808215151515815260200191505060405180910390f35b6105a46004803603606081101561054e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061155f565b604051808215151515815260200191505060405180910390f35b610600600480360360208110156105d457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119f9565b604051808215151515815260200191505060405180910390f35b610622611b0c565b604051808260ff1660ff16815260200191505060405180910390f35b61068a6004803603604081101561065457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b1f565b604051808215151515815260200191505060405180910390f35b6106ac611bd2565b005b6106fa600480360360408110156106c457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611d32565b005b610704611f86565b6040518082815260200191505060405180910390f35b610722611f8c565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610762578082015181840152602081019050610747565b50505050905090810190601f16801561078f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107a561202a565b604051808215151515815260200191505060405180910390f35b6107c7612041565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61084b6004803603602081101561081f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612067565b6040518082815260200191505060405180910390f35b6108696120b0565b005b6108976004803603602081101561088157600080fd5b81019080803590602001909291905050506121e9565b6040518082815260200191505060405180910390f35b6108b561220a565b005b6108f9600480360360208110156108cd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061236b565b005b610a53600480360360c081101561091157600080fd5b810190808035906020019064010000000081111561092e57600080fd5b82018360208201111561094057600080fd5b8035906020019184600183028401116401000000008311171561096257600080fd5b90919293919293908035906020019064010000000081111561098357600080fd5b82018360208201111561099557600080fd5b803590602001918460018302840111640100000000831117156109b757600080fd5b9091929391929390803560ff169060200190929190803590602001906401000000008111156109e557600080fd5b8201836020820111156109f757600080fd5b80359060200191846001830284011164010000000083111715610a1957600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506123f1565b005b610a5d612771565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610aa761279a565b604051808215151515815260200191505060405180910390f35b610b4360048036036060811015610ad757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506127f8565b005b610b7560048036036020811015610b5b57600080fd5b81019080803561ffff169060200190929190505050613442565b6040518082815260200191505060405180910390f35b610b93613467565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610bd3578082015181840152602081019050610bb8565b50505050905090810190601f168015610c005780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610c5060048036036020811015610c2457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613505565b005b610c9e60048036036040811015610c6857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061358b565b005b610cec60048036036040811015610cb657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506135f7565b604051808215151515815260200191505060405180910390f35b610d5260048036036040811015610d1c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506136c4565b604051808215151515815260200191505060405180910390f35b610dae60048036036020811015610d8257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613b5c565b6040518082815260200191505060405180910390f35b610dcc613b74565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610e5c60048036036040811015610e2457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050613b9a565b005b610ea060048036036020811015610e7457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613cb0565b005b610ee460048036036020811015610eb857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613db1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610f8860048036036040811015610f3c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613e3d565b6040518082815260200191505060405180910390f35b610fe060048036036020811015610fb457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ec4565b005b61102460048036036020811015610ff857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613f4a565b005b601a8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110bc5780601f10611091576101008083540402835291602001916110bc565b820191906000526020600020905b81548152906001019060200180831161109f57829003601f168201915b505050505081565b60006110d86110d161404b565b8484614053565b6001905092915050565b6110eb33611542565b611140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b600061114b83612067565b905081600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401811015611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f416d6f756e74206578636565647320617661696c61626c652062616c616e636581525060200191505060405180910390fd5b81600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff167f0a42a821e01a74c241f4217e9c9e9ece85b2480c8e141fa7a9ff4471276fd2cf836040518082815260200191505060405180910390a2505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600454905090565b60006112de61279a565b611350576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600e80549050821061136157600080fd5b600e828154811061136e57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600e80549050905090565b6113b633611542565b61140b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156114a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001806156a06035913960400191505060405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055508173ffffffffffffffffffffffffffffffffffffffff167f5747065fbed76c7a5cc9162688be231799d40128f5d9816d7a56c748b9fab6e2826040518082815260200191505060405180910390a25050565b600061155882600161424a90919063ffffffff16565b9050919050565b6000600560009054906101000a900460ff16156115e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156116885750600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b61169157600080fd5b6116eb600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116dd86612067565b61432890919063ffffffff16565b821115611760576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f496e73756666696369656e742042616c616e636500000000000000000000000081525060200191505060405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9209e33846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156117ff57600080fd5b505afa158015611813573d6000803e3d6000fd5b505050506040513d602081101561182957600080fd5b8101908080519060200190929190505050801561195a5750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e46638e68585856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561191e57600080fd5b505af1158015611932573d6000803e3d6000fd5b505050506040513d602081101561194857600080fd5b81019080805190602001909291905050505b156119845761196883614372565b6119728483614570565b61197d848484614866565b90506119f2565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5472616e73666572206e6f7420706f737369626c65000000000000000000000081525060200191505060405180910390fd5b9392505050565b6000611a0361279a565b611a75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600c60009054906101000a900460ff1681565b6000611bc8611b2c61404b565b84611bc38560036000611b3d61404b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461493f90919063ffffffff16565b614053565b6001905092915050565b611bdb33611542565b611c30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b600560009054906101000a900460ff16611cb2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b611d3b33611542565b611d90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b80611dab81611d9d6112ca565b61493f90919063ffffffff16565b600d541015611e22576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f457863656564696e67206d617820737570706c7900000000000000000000000081525060200191505060405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9209e33846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611ec157600080fd5b505afa158015611ed5573d6000803e3d6000fd5b505050506040513d6020811015611eeb57600080fd5b8101908080519060200190929190505050611f6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4964656e74697479206973206e6f742076657269666965642e0000000000000081525060200191505060405180910390fd5b611f7883836149c7565b611f8183614372565b505050565b600d5481565b601c8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156120225780601f10611ff757610100808354040283529160200191612022565b820191906000526020600020905b81548152906001019060200180831161200557829003601f168201915b505050505081565b6000600560009054906101000a900460ff16905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6120b861279a565b61212a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600f81815481106121f657fe5b906000526020600020016000915090505481565b61221333611542565b612268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b600560009054906101000a900460ff16156122eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b61237361279a565b6123e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6123ee81614b84565b50565b6123f961279a565b61246b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8888601a919061247c92919061551b565b508686601b919061248e92919061551b565b5084600c60006101000a81548160ff021916908360ff1602179055508383601c91906124bb92919061551b565b5081601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c60009054906101000a900460ff1660ff16600a0a8102600d819055507fa54d36e64940b8a5e360931f8ce80c93d27821ab4f751071f4881d0f74127cd4601a601b600c60009054906101000a900460ff16601c601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518080602001806020018760ff1660ff168152602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184810384528a81815460018160011615610100020316600290048152602001915080546001816001161561010002031660029004801561264b5780601f106126205761010080835404028352916020019161264b565b820191906000526020600020905b81548152906001019060200180831161262e57829003601f168201915b50508481038352898181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156126ce5780601f106126a3576101008083540402835291602001916126ce565b820191906000526020600020905b8154815290600101906020018083116126b157829003601f168201915b50508481038252878181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156127515780601f1061272657610100808354040283529160200191612751565b820191906000526020600020905b81548152906001019060200180831161273457829003601f168201915b5050995050505050505050505060405180910390a1505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166127dc61404b565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b61280133611542565b612856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141580156128e557506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b6128ee57600080fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635dbe47e8846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561298d57600080fd5b505afa1580156129a1573d6000803e3d6000fd5b505050506040513d60208110156129b757600080fd5b8101908080519060200190929190505050612a3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f77616c6c65742073686f756c6420626520696e2074686520726567697374727981525060200191505060405180910390fd5b6000819050600033604051602001808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506040516020818303038152906040528051906020012090508173ffffffffffffffffffffffffffffffffffffffff1663d202158d8260016040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015612af057600080fd5b505afa158015612b04573d6000803e3d6000fd5b505050506040513d6020811015612b1a57600080fd5b81019080805190602001909291905050501561336f576000612b3b86612067565b9050612b478682614bde565b600086604051602001808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506040516020818303038152906040528051906020012090508373ffffffffffffffffffffffffffffffffffffffff1663d202158d8260016040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015612bf857600080fd5b505afa158015612c0c573d6000803e3d6000fd5b505050506040513d6020811015612c2257600080fd5b810190808051906020019092919050505015612e205760608473ffffffffffffffffffffffffffffffffffffffff1663fb307b34836040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b158015612c8b57600080fd5b505afa158015612c9f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015612cc957600080fd5b8101908080516040519392919084640100000000821115612ce957600080fd5b83820191506020820185811115612cff57600080fd5b8251866020820283011164010000000082111715612d1c57600080fd5b8083526020830192505050908051906020019060200280838360005b83811015612d53578082015181840152602081019050612d38565b50505050905001604052505050905060008090505b81518111612e1d5760008114612e10578573ffffffffffffffffffffffffffffffffffffffff166353d413c584836040518363ffffffff1660e01b81526004018083815260200182815260200192505050602060405180830381600087803b158015612dd357600080fd5b505af1158015612de7573d6000803e3d6000fd5b505050506040513d6020811015612dfd57600080fd5b8101908080519060200190929190505050505b8080600101915050612d68565b50505b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663454a03e08786601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e42683b8c6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612eff57600080fd5b505afa158015612f13573d6000803e3d6000fd5b505050506040513d6020811015612f2957600080fd5b81019080805190602001909291905050506040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018261ffff1661ffff1681526020019350505050600060405180830381600087803b158015612fde57600080fd5b505af1158015612ff2573d6000803e3d6000fd5b50505050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8d29d1d886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561309757600080fd5b505af11580156130ab573d6000803e3d6000fd5b5050505085600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006001600660008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403905086600e828154811061318257fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600660008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061329c87846149c7565b7f89d3682fc860be1a58e96a6f408d362eeac3f7fbcd0aa6b92f7c84a99ada5708888888604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a150505061343b565b7fc2a7c9d8db58e0dc94ef83cdcdb079b07a7312d9ce3ebbd999354bce88de0396858585604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a15b5050505050565b6000600b60008361ffff1661ffff168152602001908152602001600020549050919050565b601b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156134fd5780601f106134d2576101008083540402835291602001916134fd565b820191906000526020600020905b8154815290600101906020018083116134e057829003601f168201915b505050505081565b61350d61279a565b61357f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61358881614d98565b50565b61359433611542565b6135e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b6135f38282614bde565b5050565b60006136ba61360461404b565b846136b5856040518060600160405280602581526020016157d8602591396003600061362e61404b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b614053565b6001905092915050565b6000600560009054906101000a900460ff1615613749576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156137ed5750600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b6137f657600080fd5b613850600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461384233612067565b61432890919063ffffffff16565b8211156138c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f496e73756666696369656e742042616c616e636500000000000000000000000081525060200191505060405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9209e33846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561396457600080fd5b505afa158015613978573d6000803e3d6000fd5b505050506040513d602081101561398e57600080fd5b81019080805190602001909291905050508015613abf5750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e46638e63385856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015613a8357600080fd5b505af1158015613a97573d6000803e3d6000fd5b505050506040513d6020811015613aad57600080fd5b81019080805190602001909291905050505b15613ae857613acd83614372565b613ad73383614570565b613ae18383614eb2565b9050613b56565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5472616e73666572206e6f7420706f737369626c65000000000000000000000081525060200191505060405180910390fd5b92915050565b600a6020528060005260406000206000915090505481565b601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b613ba333611542565b613bf8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff168115158373ffffffffffffffffffffffffffffffffffffffff167f7fa523c84ab8d7fc5b72f08b9e46dbbf10c39e119a075b3e317002d14bc9f43660405160405180910390a45050565b613cb861279a565b613d2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fd2be862d755bca7e0d39772b2cab3a5578da9c285f69199f4c063c2294a7f36c60405160405180910390a250565b6000613dbb61279a565b613e2d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613e3682614ed0565b9050919050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b613ecc61279a565b613f3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613f4781614f85565b50565b613f5261279a565b613fc4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f7f3a888862559648ec01d97deb7b5012bff86dc91e654a1de397170db40e35b660405160405180910390a250565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156140d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806157b46024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561415f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806156586022913960400191505060405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156142d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061574c6022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061436a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614df2565b905092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561456d57600e8190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e42683b836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561450357600080fd5b505afa158015614517573d6000803e3d6000fd5b505050506040513d602081101561452d57600080fd5b81019080805190602001909291905050509050600b60008261ffff1661ffff16815260200190815260200160002060008154809291906001019190505550505b50565b60008161457c84612067565b039050600081111561458e5750614862565b60006001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403905060006001600e805490500390506000600e82815481106145f157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905080600e848154811061462c57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600e80548091906001900361470c919061559b565b506000600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e42683b886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156147f357600080fd5b505afa158015614807573d6000803e3d6000fd5b505050506040513d602081101561481d57600080fd5b81019080805190602001909291905050509050600b60008261ffff1661ffff168152602001908152602001600020600081548092919060019003919050555050505050505b5050565b60006148738484846150c9565b6149348461487f61404b565b61492f8560405180606001604052806028815260200161572460289139600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006148e561404b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b614053565b600190509392505050565b6000808284019050838110156149bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b614a7f8160045461493f90919063ffffffff16565b600481905550614ad781600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461493f90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b614b9881600161538390919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167ff68e73cec97f2d70aa641fb26e87a4383686e2efacb648f2165aeb02ac562ec560405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614c64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061576e6021913960400191505060405180910390fd5b614cd08160405180606001604052806022815260200161561060229139600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614d288160045461432890919063ffffffff16565b600481905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b614dac81600161545e90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fed9c8ad8d5a0a66898ea49d2956929c93ae2e8bd50281b2ed897c5d1a6737e0b60405160405180910390a250565b6000838311158290614e9f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614e64578082015181840152602081019050614e49565b50505050905090810190601f168015614e915780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000614ec6614ebf61404b565b84846150c9565b6001905092915050565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614f735782915050614f80565b614f7c81614ed0565b9150505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561500b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806156326026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561514f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061578f6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156151d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806155ed6023913960400191505060405180910390fd5b6152418160405180606001604052806026815260200161567a60269139600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506152d681600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461493f90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b61538d828261424a565b15615400576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b615468828261424a565b6154bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806157036021913960400191505060405180910390fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061555c57803560ff191683800117855561558a565b8280016001018555821561558a579182015b8281111561558957823582559160200191906001019061556e565b5b50905061559791906155c7565b5090565b8154818355818111156155c2578183600052602060002091820191016155c191906155c7565b5b505050565b6155e991905b808211156155e55760008160009055506001016155cd565b5090565b9056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416d6f756e742073686f756c64206265206c657373207468616e206f7220657175616c20746f20667265657a656420746f6b656e734167656e74526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204167656e7420726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582009bcf69899c7a8f47ce264851547b52a6e66840cd83dd9fe6f7312842f78d7f464736f6c634300050c0032000000000000000000000000b00ffa0896ff80bf3b74cd7dd29b66f2cf61f16e000000000000000000000000169faf88a3af332f6d4ad21f51cacc576e3da633

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025e5760003560e01c80638117c18b116101465780639dc29fac116100c3578063c69c09cf11610087578063c69c09cf14610e0e578063cbf3f86114610e5e578063cc397ed314610ea2578063dd62ed3e14610f26578063f2fde38b14610f9e578063f898178914610fe25761025e565b80639dc29fac14610c52578063a457c2d714610ca0578063a9059cbb14610d06578063aaaac99014610d6c578063aba6370514610dc45761025e565b80638f32d59b1161010a5780638f32d59b14610a9f5780639285948a14610ac1578063951f17ae14610b4557806395d89b4114610b8b57806397a6278e14610c0e5761025e565b80638117c18b1461086b5780638456cb59146108ad57806384e79842146108b75780638993f18b146108fb5780638da5cb5b14610a555761025e565b80632da7293e116101df57806350f7c204116101a357806350f7c204146106fc57806354fd4d501461071a5780635c975abb1461079d5780636290865d146107bf57806370a0823114610809578063715018a6146108615761025e565b80632da7293e146105be578063313ce5671461061a578063395093511461063e5780633f4ba83a146106a457806340c10f19146106ae5761025e565b8063197bc33611610226578063197bc336146104025780631aab9a9f146104705780631fe56f7d1461048e5780631ffbb064146104dc57806323b872dd146105385761025e565b806306fdde0314610263578063095ea7b3146102e6578063125c4a331461034c578063134e18f41461039a57806318160ddd146103e4575b600080fd5b61026b611026565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102ab578082015181840152602081019050610290565b50505050905090810190601f1680156102d85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610332600480360360408110156102fc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506110c4565b604051808215151515815260200191505060405180910390f35b6103986004803603604081101561036257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506110e2565b005b6103a26112a4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103ec6112ca565b6040518082815260200191505060405180910390f35b61042e6004803603602081101561041857600080fd5b81019080803590602001909291905050506112d4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104786113a0565b6040518082815260200191505060405180910390f35b6104da600480360360408110156104a457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113ad565b005b61051e600480360360208110156104f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611542565b604051808215151515815260200191505060405180910390f35b6105a46004803603606081101561054e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061155f565b604051808215151515815260200191505060405180910390f35b610600600480360360208110156105d457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119f9565b604051808215151515815260200191505060405180910390f35b610622611b0c565b604051808260ff1660ff16815260200191505060405180910390f35b61068a6004803603604081101561065457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b1f565b604051808215151515815260200191505060405180910390f35b6106ac611bd2565b005b6106fa600480360360408110156106c457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611d32565b005b610704611f86565b6040518082815260200191505060405180910390f35b610722611f8c565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610762578082015181840152602081019050610747565b50505050905090810190601f16801561078f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107a561202a565b604051808215151515815260200191505060405180910390f35b6107c7612041565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61084b6004803603602081101561081f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612067565b6040518082815260200191505060405180910390f35b6108696120b0565b005b6108976004803603602081101561088157600080fd5b81019080803590602001909291905050506121e9565b6040518082815260200191505060405180910390f35b6108b561220a565b005b6108f9600480360360208110156108cd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061236b565b005b610a53600480360360c081101561091157600080fd5b810190808035906020019064010000000081111561092e57600080fd5b82018360208201111561094057600080fd5b8035906020019184600183028401116401000000008311171561096257600080fd5b90919293919293908035906020019064010000000081111561098357600080fd5b82018360208201111561099557600080fd5b803590602001918460018302840111640100000000831117156109b757600080fd5b9091929391929390803560ff169060200190929190803590602001906401000000008111156109e557600080fd5b8201836020820111156109f757600080fd5b80359060200191846001830284011164010000000083111715610a1957600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506123f1565b005b610a5d612771565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610aa761279a565b604051808215151515815260200191505060405180910390f35b610b4360048036036060811015610ad757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506127f8565b005b610b7560048036036020811015610b5b57600080fd5b81019080803561ffff169060200190929190505050613442565b6040518082815260200191505060405180910390f35b610b93613467565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610bd3578082015181840152602081019050610bb8565b50505050905090810190601f168015610c005780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610c5060048036036020811015610c2457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613505565b005b610c9e60048036036040811015610c6857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061358b565b005b610cec60048036036040811015610cb657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506135f7565b604051808215151515815260200191505060405180910390f35b610d5260048036036040811015610d1c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506136c4565b604051808215151515815260200191505060405180910390f35b610dae60048036036020811015610d8257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613b5c565b6040518082815260200191505060405180910390f35b610dcc613b74565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610e5c60048036036040811015610e2457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050613b9a565b005b610ea060048036036020811015610e7457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613cb0565b005b610ee460048036036020811015610eb857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613db1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610f8860048036036040811015610f3c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613e3d565b6040518082815260200191505060405180910390f35b610fe060048036036020811015610fb457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ec4565b005b61102460048036036020811015610ff857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613f4a565b005b601a8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110bc5780601f10611091576101008083540402835291602001916110bc565b820191906000526020600020905b81548152906001019060200180831161109f57829003601f168201915b505050505081565b60006110d86110d161404b565b8484614053565b6001905092915050565b6110eb33611542565b611140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b600061114b83612067565b905081600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401811015611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f416d6f756e74206578636565647320617661696c61626c652062616c616e636581525060200191505060405180910390fd5b81600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff167f0a42a821e01a74c241f4217e9c9e9ece85b2480c8e141fa7a9ff4471276fd2cf836040518082815260200191505060405180910390a2505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600454905090565b60006112de61279a565b611350576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600e80549050821061136157600080fd5b600e828154811061136e57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600e80549050905090565b6113b633611542565b61140b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156114a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001806156a06035913960400191505060405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055508173ffffffffffffffffffffffffffffffffffffffff167f5747065fbed76c7a5cc9162688be231799d40128f5d9816d7a56c748b9fab6e2826040518082815260200191505060405180910390a25050565b600061155882600161424a90919063ffffffff16565b9050919050565b6000600560009054906101000a900460ff16156115e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156116885750600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b61169157600080fd5b6116eb600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116dd86612067565b61432890919063ffffffff16565b821115611760576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f496e73756666696369656e742042616c616e636500000000000000000000000081525060200191505060405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9209e33846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156117ff57600080fd5b505afa158015611813573d6000803e3d6000fd5b505050506040513d602081101561182957600080fd5b8101908080519060200190929190505050801561195a5750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e46638e68585856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561191e57600080fd5b505af1158015611932573d6000803e3d6000fd5b505050506040513d602081101561194857600080fd5b81019080805190602001909291905050505b156119845761196883614372565b6119728483614570565b61197d848484614866565b90506119f2565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5472616e73666572206e6f7420706f737369626c65000000000000000000000081525060200191505060405180910390fd5b9392505050565b6000611a0361279a565b611a75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600c60009054906101000a900460ff1681565b6000611bc8611b2c61404b565b84611bc38560036000611b3d61404b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461493f90919063ffffffff16565b614053565b6001905092915050565b611bdb33611542565b611c30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b600560009054906101000a900460ff16611cb2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b611d3b33611542565b611d90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b80611dab81611d9d6112ca565b61493f90919063ffffffff16565b600d541015611e22576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f457863656564696e67206d617820737570706c7900000000000000000000000081525060200191505060405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9209e33846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611ec157600080fd5b505afa158015611ed5573d6000803e3d6000fd5b505050506040513d6020811015611eeb57600080fd5b8101908080519060200190929190505050611f6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4964656e74697479206973206e6f742076657269666965642e0000000000000081525060200191505060405180910390fd5b611f7883836149c7565b611f8183614372565b505050565b600d5481565b601c8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156120225780601f10611ff757610100808354040283529160200191612022565b820191906000526020600020905b81548152906001019060200180831161200557829003601f168201915b505050505081565b6000600560009054906101000a900460ff16905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6120b861279a565b61212a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600f81815481106121f657fe5b906000526020600020016000915090505481565b61221333611542565b612268576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b600560009054906101000a900460ff16156122eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b61237361279a565b6123e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6123ee81614b84565b50565b6123f961279a565b61246b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8888601a919061247c92919061551b565b508686601b919061248e92919061551b565b5084600c60006101000a81548160ff021916908360ff1602179055508383601c91906124bb92919061551b565b5081601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c60009054906101000a900460ff1660ff16600a0a8102600d819055507fa54d36e64940b8a5e360931f8ce80c93d27821ab4f751071f4881d0f74127cd4601a601b600c60009054906101000a900460ff16601c601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518080602001806020018760ff1660ff168152602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184810384528a81815460018160011615610100020316600290048152602001915080546001816001161561010002031660029004801561264b5780601f106126205761010080835404028352916020019161264b565b820191906000526020600020905b81548152906001019060200180831161262e57829003601f168201915b50508481038352898181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156126ce5780601f106126a3576101008083540402835291602001916126ce565b820191906000526020600020905b8154815290600101906020018083116126b157829003601f168201915b50508481038252878181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156127515780601f1061272657610100808354040283529160200191612751565b820191906000526020600020905b81548152906001019060200180831161273457829003601f168201915b5050995050505050505050505060405180910390a1505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166127dc61404b565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b61280133611542565b612856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141580156128e557506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b6128ee57600080fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635dbe47e8846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561298d57600080fd5b505afa1580156129a1573d6000803e3d6000fd5b505050506040513d60208110156129b757600080fd5b8101908080519060200190929190505050612a3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f77616c6c65742073686f756c6420626520696e2074686520726567697374727981525060200191505060405180910390fd5b6000819050600033604051602001808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506040516020818303038152906040528051906020012090508173ffffffffffffffffffffffffffffffffffffffff1663d202158d8260016040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015612af057600080fd5b505afa158015612b04573d6000803e3d6000fd5b505050506040513d6020811015612b1a57600080fd5b81019080805190602001909291905050501561336f576000612b3b86612067565b9050612b478682614bde565b600086604051602001808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506040516020818303038152906040528051906020012090508373ffffffffffffffffffffffffffffffffffffffff1663d202158d8260016040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015612bf857600080fd5b505afa158015612c0c573d6000803e3d6000fd5b505050506040513d6020811015612c2257600080fd5b810190808051906020019092919050505015612e205760608473ffffffffffffffffffffffffffffffffffffffff1663fb307b34836040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b158015612c8b57600080fd5b505afa158015612c9f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015612cc957600080fd5b8101908080516040519392919084640100000000821115612ce957600080fd5b83820191506020820185811115612cff57600080fd5b8251866020820283011164010000000082111715612d1c57600080fd5b8083526020830192505050908051906020019060200280838360005b83811015612d53578082015181840152602081019050612d38565b50505050905001604052505050905060008090505b81518111612e1d5760008114612e10578573ffffffffffffffffffffffffffffffffffffffff166353d413c584836040518363ffffffff1660e01b81526004018083815260200182815260200192505050602060405180830381600087803b158015612dd357600080fd5b505af1158015612de7573d6000803e3d6000fd5b505050506040513d6020811015612dfd57600080fd5b8101908080519060200190929190505050505b8080600101915050612d68565b50505b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663454a03e08786601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e42683b8c6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612eff57600080fd5b505afa158015612f13573d6000803e3d6000fd5b505050506040513d6020811015612f2957600080fd5b81019080805190602001909291905050506040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018261ffff1661ffff1681526020019350505050600060405180830381600087803b158015612fde57600080fd5b505af1158015612ff2573d6000803e3d6000fd5b50505050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8d29d1d886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561309757600080fd5b505af11580156130ab573d6000803e3d6000fd5b5050505085600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006001600660008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403905086600e828154811061318257fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600660008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061329c87846149c7565b7f89d3682fc860be1a58e96a6f408d362eeac3f7fbcd0aa6b92f7c84a99ada5708888888604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a150505061343b565b7fc2a7c9d8db58e0dc94ef83cdcdb079b07a7312d9ce3ebbd999354bce88de0396858585604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a15b5050505050565b6000600b60008361ffff1661ffff168152602001908152602001600020549050919050565b601b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156134fd5780601f106134d2576101008083540402835291602001916134fd565b820191906000526020600020905b8154815290600101906020018083116134e057829003601f168201915b505050505081565b61350d61279a565b61357f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61358881614d98565b50565b61359433611542565b6135e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b6135f38282614bde565b5050565b60006136ba61360461404b565b846136b5856040518060600160405280602581526020016157d8602591396003600061362e61404b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b614053565b6001905092915050565b6000600560009054906101000a900460ff1615613749576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156137ed5750600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b6137f657600080fd5b613850600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461384233612067565b61432890919063ffffffff16565b8211156138c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f496e73756666696369656e742042616c616e636500000000000000000000000081525060200191505060405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9209e33846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561396457600080fd5b505afa158015613978573d6000803e3d6000fd5b505050506040513d602081101561398e57600080fd5b81019080805190602001909291905050508015613abf5750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e46638e63385856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015613a8357600080fd5b505af1158015613a97573d6000803e3d6000fd5b505050506040513d6020811015613aad57600080fd5b81019080805190602001909291905050505b15613ae857613acd83614372565b613ad73383614570565b613ae18383614eb2565b9050613b56565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f5472616e73666572206e6f7420706f737369626c65000000000000000000000081525060200191505060405180910390fd5b92915050565b600a6020528060005260406000206000915090505481565b601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b613ba333611542565b613bf8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806156d5602e913960400191505060405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff168115158373ffffffffffffffffffffffffffffffffffffffff167f7fa523c84ab8d7fc5b72f08b9e46dbbf10c39e119a075b3e317002d14bc9f43660405160405180910390a45050565b613cb861279a565b613d2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fd2be862d755bca7e0d39772b2cab3a5578da9c285f69199f4c063c2294a7f36c60405160405180910390a250565b6000613dbb61279a565b613e2d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613e3682614ed0565b9050919050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b613ecc61279a565b613f3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613f4781614f85565b50565b613f5261279a565b613fc4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f7f3a888862559648ec01d97deb7b5012bff86dc91e654a1de397170db40e35b660405160405180910390a250565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156140d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806157b46024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561415f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806156586022913960400191505060405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156142d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061574c6022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061436a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614df2565b905092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561456d57600e8190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e42683b836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561450357600080fd5b505afa158015614517573d6000803e3d6000fd5b505050506040513d602081101561452d57600080fd5b81019080805190602001909291905050509050600b60008261ffff1661ffff16815260200190815260200160002060008154809291906001019190505550505b50565b60008161457c84612067565b039050600081111561458e5750614862565b60006001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403905060006001600e805490500390506000600e82815481106145f157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905080600e848154811061462c57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600e80548091906001900361470c919061559b565b506000600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637e42683b886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156147f357600080fd5b505afa158015614807573d6000803e3d6000fd5b505050506040513d602081101561481d57600080fd5b81019080805190602001909291905050509050600b60008261ffff1661ffff168152602001908152602001600020600081548092919060019003919050555050505050505b5050565b60006148738484846150c9565b6149348461487f61404b565b61492f8560405180606001604052806028815260200161572460289139600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006148e561404b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b614053565b600190509392505050565b6000808284019050838110156149bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b614a7f8160045461493f90919063ffffffff16565b600481905550614ad781600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461493f90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b614b9881600161538390919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167ff68e73cec97f2d70aa641fb26e87a4383686e2efacb648f2165aeb02ac562ec560405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614c64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061576e6021913960400191505060405180910390fd5b614cd08160405180606001604052806022815260200161561060229139600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614d288160045461432890919063ffffffff16565b600481905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b614dac81600161545e90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fed9c8ad8d5a0a66898ea49d2956929c93ae2e8bd50281b2ed897c5d1a6737e0b60405160405180910390a250565b6000838311158290614e9f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614e64578082015181840152602081019050614e49565b50505050905090810190601f168015614e915780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000614ec6614ebf61404b565b84846150c9565b6001905092915050565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614f735782915050614f80565b614f7c81614ed0565b9150505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561500b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806156326026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561514f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061578f6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156151d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806155ed6023913960400191505060405180910390fd5b6152418160405180606001604052806026815260200161567a60269139600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614df29092919063ffffffff16565b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506152d681600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461493f90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b61538d828261424a565b15615400576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b615468828261424a565b6154bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806157036021913960400191505060405180910390fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061555c57803560ff191683800117855561558a565b8280016001018555821561558a579182015b8281111561558957823582559160200191906001019061556e565b5b50905061559791906155c7565b5090565b8154818355818111156155c2578183600052602060002091820191016155c191906155c7565b5b505050565b6155e991905b808211156155e55760008160009055506001016155cd565b5090565b9056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416d6f756e742073686f756c64206265206c657373207468616e206f7220657175616c20746f20667265657a656420746f6b656e734167656e74526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204167656e7420726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582009bcf69899c7a8f47ce264851547b52a6e66840cd83dd9fe6f7312842f78d7f464736f6c634300050c0032

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

000000000000000000000000b00ffa0896ff80bf3b74cd7dd29b66f2cf61f16e000000000000000000000000169faf88a3af332f6d4ad21f51cacc576e3da633

-----Decoded View---------------
Arg [0] : _identityRegistry (address): 0xB00FFA0896fF80BF3b74Cd7Dd29B66F2Cf61f16E
Arg [1] : _compliance (address): 0x169Faf88a3aF332f6D4aD21f51CacC576e3da633

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b00ffa0896ff80bf3b74cd7dd29b66f2cf61f16e
Arg [1] : 000000000000000000000000169faf88a3af332f6d4ad21f51cacc576e3da633


Deployed Bytecode Sourcemap

91:991:21:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91:991:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;144:29:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2483:149:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2483:149:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;10936:329:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;10936:329:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2378:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1542:89:4;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6747:206:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;6747:206:22;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;6267:127;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11479:302;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;11479:302:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;422:107:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;422:107:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;5610:551:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;5610:551:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;9148:173;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;9148:173:22;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2186:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;3785:207:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3785:207:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1706:117:22;;;:::i;:::-;;722:261:17;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;722:261:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2215:69:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;215:29:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;215:29:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;916:78:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2428:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1689:108:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1689:108:4;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1679:137:18;;;:::i;:::-;;2331:38:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2331:38:22;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1496:115;;;:::i;:::-;;537:89:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;537:89:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;558:521:21;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;558:521:21;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;558:521:21;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;558:521:21;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;558:521:21;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;558:521:21;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;558:521:21;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;558:521:21;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;558:521:21;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;558:521:21;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;558:521:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;894:77:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1245:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;12413:2338:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12413:2338:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;8805:131;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8805:131:22;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;180:28:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;180:28:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;634:95:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;634:95:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;991:123:17;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;991:123:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4479:258:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4479:258:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;4320:546:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4320:546:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2076:49;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2076:49:22;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;251:69:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;10550:179:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;10550:179:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;11822:203;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;11822:203:22;;;;;;;;;;;;;;;;;;;:::i;:::-;;9690:164;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;9690:164:22;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2213:132:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2213:132:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1965:107:18;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1965:107:18;;;;;;;;;;;;;;;;;;;:::i;:::-;;12033:161:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12033:161:22;;;;;;;;;;;;;;;;;;;:::i;:::-;;144:29:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2483:149:4:-;2549:4;2565:39;2574:12;:10;:12::i;:::-;2588:7;2597:6;2565:8;:39::i;:::-;2621:4;2614:11;;2483:149;;;;:::o;10936:329:22:-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11048:15:22;11066;11076:4;11066:9;:15::i;:::-;11048:33;;11131:6;11111:13;:19;11125:4;11111:19;;;;;;;;;;;;;;;;:26;11100:7;:37;;11092:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11208:6;11185:13;:19;11199:4;11185:19;;;;;;;;;;;;;;;;:29;;;;;;;;;;;11244:4;11230:27;;;11250:6;11230:27;;;;;;;;;;;;;;;;;;405:1:0;10936:329:22;;:::o;2378:41::-;;;;;;;;;;;;;:::o;1542:89:4:-;1586:7;1612:12;;1605:19;;1542:89;:::o;6747:206:22:-;6847:7;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6888:12:22;:19;;;;6880:5;:27;6872:36;;;;;;6926:12;6939:5;6926:19;;;;;;;;;;;;;;;;;;;;;;;;;6919:26;;6747:206;;;:::o;6267:127::-;6338:4;6367:12;:19;;;;6360:26;;6267:127;:::o;11479:302::-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11624:6:22;11601:13;:19;11615:4;11601:19;;;;;;;;;;;;;;;;:29;;11593:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11722:6;11699:13;:19;11713:4;11699:19;;;;;;;;;;;;;;;;:29;;;;;;;;;;;11760:4;11744:29;;;11766:6;11744:29;;;;;;;;;;;;;;;;;;11479:302;;:::o;422:107:0:-;477:4;501:20;513:7;501;:11;;:20;;;;:::i;:::-;494:27;;422:107;;;:::o;5610:551:22:-;5706:4;1153:7;;;;;;;;;;;1152:8;1144:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5732:6;:11;5739:3;5732:11;;;;;;;;;;;;;;;;;;;;;;;;;5731:12;:30;;;;;5748:6;:13;5755:5;5748:13;;;;;;;;;;;;;;;;;;;;;;;;;5747:14;5731:30;5723:39;;;;;;5792:42;5813:13;:20;5827:5;5813:20;;;;;;;;;;;;;;;;5792:16;5802:5;5792:9;:16::i;:::-;:20;;:42;;;;:::i;:::-;5781:6;:53;;5773:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5874:16;;;;;;;;;;;:27;;;5902:3;5874:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5874:32:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5874:32:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;5874:32:22;;;;;;;;;;;;;;;;:78;;;;;5910:10;;;;;;;;;;;:22;;;5933:5;5940:3;5945:6;5910:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5910:42:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5910:42:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;5910:42:22;;;;;;;;;;;;;;;;5874:78;5871:239;;;5968:23;5987:3;5968:18;:23::i;:::-;6006:32;6024:5;6031:6;6006:17;:32::i;:::-;6060:38;6079:5;6086:3;6091:6;6060:18;:38::i;:::-;6053:45;;;;5871:239;6122:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1192:1;5610:551;;;;;:::o;9148:173::-;9251:4;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9311:1:22;9280:33;;:13;:19;9294:4;9280:19;;;;;;;;;;;;;;;;;;;;;;;;;:33;;;;9273:40;;9148:173;;;:::o;2186:25::-;;;;;;;;;;;;;:::o;3785:207:4:-;3865:4;3881:83;3890:12;:10;:12::i;:::-;3904:7;3913:50;3952:10;3913:11;:25;3925:12;:10;:12::i;:::-;3913:25;;;;;;;;;;;;;;;:34;3939:7;3913:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;3881:8;:83::i;:::-;3981:4;3974:11;;3785:207;;;;:::o;1706:117:22:-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1352:7:22;;;;;;;;;;;1344:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1774:5;1764:7;;:15;;;;;;;;;;;;;;;;;;1795:20;1804:10;1795:20;;;;;;;;;;;;;;;;;;;;;;1706:117::o;722:261:17:-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;821:7:17;197:26;215:7;197:13;:11;:13::i;:::-;:17;;:26;;;;:::i;:::-;179:14;;:44;;171:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;849:16;;;;;;;;;;;:27;;;877:3;849:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;849:32:17;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;849:32:17;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;849:32:17;;;;;;;;;;;;;;;;841:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;922:19;928:3;933:7;922:5;:19::i;:::-;952:23;971:3;952:18;:23::i;:::-;405:1:0;722:261:17;;:::o;2215:69:22:-;;;;:::o;215:29:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;916:78:22:-;955:4;979:7;;;;;;;;;;;972:14;;916:78;:::o;2428:29::-;;;;;;;;;;;;;:::o;1689:108:4:-;1746:7;1772:9;:18;1782:7;1772:18;;;;;;;;;;;;;;;;1765:25;;1689:108;;;:::o;1679:137:18:-;1098:9;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1777:1;1740:40;;1761:6;;;;;;;;;;;1740:40;;;;;;;;;;;;1807:1;1790:6;;:19;;;;;;;;;;;;;;;;;;1679:137::o;2331:38:22:-;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1496:115::-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1153:7:22;;;;;;;;;;;1152:8;1144:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1565:4;1555:7;;:14;;;;;;;;;;;;;;;;;;1585:18;1592:10;1585:18;;;;;;;;;;;;;;;;;;;;;;1496:115::o;537:89:0:-;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;600:18:0;610:7;600:9;:18::i;:::-;537:89;:::o;558:521:21:-;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;785:5:21;;778:4;:12;;;;;;;:::i;:::-;;810:7;;801:6;:16;;;;;;;:::i;:::-;;839:9;828:8;;:20;;;;;;;;;;;;;;;;;;869:8;;859:7;:18;;;;;;;:::i;:::-;;894:10;882:9;;:22;;;;;;;;;;;;;;;;;;959:8;;;;;;;;;;;951:17;;945:2;:23;926:15;:43;909:14;:60;;;;987:84;1011:4;1017:6;1025:8;;;;;;;;;;;1035:7;1044:9;;;;;;;;;;;1055:15;987:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;558:521;;;;;;;;;:::o;894:77:18:-;932:7;958:6;;;;;;;;;;;951:13;;894:77;:::o;1245:92::-;1285:4;1324:6;;;;;;;;;;;1308:22;;:12;:10;:12::i;:::-;:22;;;1301:29;;1245:92;:::o;12413:2338:22:-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12585:1:22;12548:13;:33;12562:18;12548:33;;;;;;;;;;;;;;;;:38;;:79;;;;;12626:1;12590:13;:32;12604:17;12590:32;;;;;;;;;;;;;;;;:37;12548:79;12540:88;;;;;;12647:16;;;;;;;;;;;:25;;;12673:18;12647:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12647:45:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12647:45:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12647:45:22;;;;;;;;;;;;;;;;12639:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12742:19;12773:9;12742:41;;12881:12;12917:10;12906:22;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;12906:22:22;;;12896:33;;;;;;12881:48;;12945:10;:24;;;12970:4;12976:1;12945:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12945:33:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12945:33:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12945:33:22;;;;;;;;;;;;;;;;12942:1802;;;13042:19;13064:29;13074:18;13064:9;:29::i;:::-;13042:51;;13108:41;13114:18;13134:14;13108:5;:41::i;:::-;13235:21;13280:18;13269:30;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;13269:30:22;;;13259:41;;;;;;13235:65;;13319:10;:24;;;13344:13;13359:1;13319:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13319:42:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13319:42:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13319:42:22;;;;;;;;;;;;;;;;13315:420;;;13382:25;13410:10;:25;;;13436:13;13410:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13410:40:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13410:40:22;;;;;;39:16:-1;36:1;17:17;2:54;13410:40:22;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;13:2;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13410:40:22;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;71:11;66:3;62:21;55:28;;123:4;118:3;114:14;159:9;141:16;138:31;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;261:11;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;385:12;380:3;373:25;421:4;416:3;412:14;405:21;;0:433;;13410:40:22;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;13410:40:22;;;;;;;;;;;13382:68;;13473:13;13489:1;13473:17;;13469:194;13504:8;:15;13492:8;:27;13469:194;;13570:1;13558:8;:13;13555:88;;13598:10;:20;;;13619:13;13634:8;13598:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13598:45:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13598:45:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13598:45:22;;;;;;;;;;;;;;;;;13555:88;13521:10;;;;;;;13469:194;;;;13315:420;;13838:16;;;;;;;;;;;:33;;;13872:17;13891:10;13903:16;;;;;;;;;;;:32;;;13936:18;13903:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13903:52:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13903:52:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13903:52:22;;;;;;;;;;;;;;;;13838:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13838:118:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13838:118:22;;;;14035:16;;;;;;;;;;;:31;;;14067:18;14035:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14035:51:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14035:51:22;;;;14139:17;14103:13;:33;14117:18;14103:33;;;;;;;;;;;;;;;;:53;;;;;;;;;;;;;;;;;;14168:19;14226:1;14190:13;:33;14204:18;14190:33;;;;;;;;;;;;;;;;:37;14168:59;;14267:17;14239:12;14252:11;14239:25;;;;;;;;;;;;;;;;:45;;;;;;;;;;;;;;;;;;14331:13;:33;14345:18;14331:33;;;;;;;;;;;;;;;;14296:13;:32;14310:17;14296:32;;;;;;;;;;;;;;;:68;;;;14412:1;14376:13;:33;14390:18;14376:33;;;;;;;;;;;;;;;:37;;;;14493:40;14499:17;14518:14;14493:5;:40::i;:::-;14555:65;14571:18;14591:17;14610:9;14555:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12942:1802;;;;;;14669:63;14683:18;14703:17;14722:9;14669:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12942:1802;405:1:0;;12413:2338:22;;;:::o;8805:131::-;8878:4;8902:19;:26;8922:5;8902:26;;;;;;;;;;;;;;;;8895:33;;8805:131;;;:::o;180:28:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;634:95:0:-;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;700:21:0;713:7;700:12;:21::i;:::-;634:95;:::o;991:123:17:-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1085:21:17;1091:7;1100:5;1085;:21::i;:::-;991:123;;:::o;4479:258:4:-;4564:4;4580:129;4589:12;:10;:12::i;:::-;4603:7;4612:96;4651:15;4612:96;;;;;;;;;;;;;;;;;:11;:25;4624:12;:10;:12::i;:::-;4612:25;;;;;;;;;;;;;;;:34;4638:7;4612:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;4580:8;:129::i;:::-;4726:4;4719:11;;4479:258;;;;:::o;4320:546:22:-;4397:4;1153:7;;;;;;;;;;;1152:8;1144:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4423:6;:11;4430:3;4423:11;;;;;;;;;;;;;;;;;;;;;;;;;4422:12;:35;;;;;4439:6;:18;4446:10;4439:18;;;;;;;;;;;;;;;;;;;;;;;;;4438:19;4422:35;4414:44;;;;;;4488:52;4514:13;:25;4528:10;4514:25;;;;;;;;;;;;;;;;4488:21;4498:10;4488:9;:21::i;:::-;:25;;:52;;;;:::i;:::-;4477:6;:63;;4469:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4580:16;;;;;;;;;;;:27;;;4608:3;4580:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4580:32:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4580:32:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4580:32:22;;;;;;;;;;;;;;;;:83;;;;;4616:10;;;;;;;;;;;:22;;;4639:10;4651:3;4656:6;4616:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4616:47:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4616:47:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4616:47:22;;;;;;;;;;;;;;;;4580:83;4577:238;;;4679:23;4698:3;4679:18;:23::i;:::-;4717:37;4735:10;4747:6;4717:17;:37::i;:::-;4776:27;4791:3;4796:6;4776:14;:27::i;:::-;4769:34;;;;4577:238;4827:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1192:1;4320:546;;;;:::o;2076:49::-;;;;;;;;;;;;;;;;;:::o;251:69:21:-;;;;;;;;;;;;;:::o;10550:179:22:-;324:19:0;332:10;324:7;:19::i;:::-;316:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10658:6:22;10643;:12;10650:4;10643:12;;;;;;;;;;;;;;;;:21;;;;;;;;;;;;;;;;;;10710:10;10682:39;;10702:6;10682:39;;10696:4;10682:39;;;;;;;;;;;;10550:179;;:::o;11822:203::-;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11943:17:22;11906:16;;:55;;;;;;;;;;;;;;;;;;11999:17;11977:40;;;;;;;;;;;;11822:203;:::o;9690:164::-;9794:7;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9826:20:22;9841:4;9826:14;:20::i;:::-;9819:27;;9690:164;;;:::o;2213:132:4:-;2285:7;2311:11;:18;2323:5;2311:18;;;;;;;;;;;;;;;:27;2330:7;2311:27;;;;;;;;;;;;;;;;2304:34;;2213:132;;;;:::o;1965:107:18:-;1098:9;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2037:28;2056:8;2037:18;:28::i;:::-;1965:107;:::o;12033:161:22:-;1098:9:18;:7;:9::i;:::-;1090:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12130:11:22;12105:10;;:37;;;;;;;;;;;;;;;;;;12174:11;12158:28;;;;;;;;;;;;12033:161;:::o;788:96:3:-;833:15;867:10;860:17;;788:96;:::o;7333:332:4:-;7443:1;7426:19;;:5;:19;;;;7418:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7523:1;7504:21;;:7;:21;;;;7496:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7605:6;7575:11;:18;7587:5;7575:18;;;;;;;;;;;;;;;:27;7594:7;7575:27;;;;;;;;;;;;;;;:36;;;;7642:7;7626:32;;7635:5;7626:32;;;7651:6;7626:32;;;;;;;;;;;;;;;;;;7333:332;;;:::o;779:200:19:-;851:4;894:1;875:21;;:7;:21;;;;867:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;952:4;:11;;:20;964:7;952:20;;;;;;;;;;;;;;;;;;;;;;;;;945:27;;779:200;;;;:::o;1274:134:20:-;1332:7;1358:43;1362:1;1365;1358:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1351:50;;1274:134;;;;:::o;7180:300:22:-;7283:1;7260:13;:19;7274:4;7260:19;;;;;;;;;;;;;;;;:24;7256:217;;;7323:12;7341:4;7323:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;7323:23:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7301:13;:19;7315:4;7301:19;;;;;;;;;;;;;;;:45;;;;7361:14;7378:16;;;;;;;;;;;:32;;;7411:4;7378:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7378:38:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7378:38:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;7378:38:22;;;;;;;;;;;;;;;;7361:55;;7431:19;:28;7451:7;7431:28;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;7256:217;;7180:300;:::o;7855:942::-;7945:15;7981:5;7963:15;7973:4;7963:9;:15::i;:::-;:23;7945:41;;8057:1;8047:7;:11;8043:50;;;8075:7;;;8043:50;8103:19;8147:1;8125:13;:19;8139:4;8125:19;;;;;;;;;;;;;;;;:23;8103:45;;8159:17;8201:1;8179:12;:19;;;;:23;8159:43;;8213:18;8234:12;8247:9;8234:23;;;;;;;;;;;;;;;;;;;;;;;;;8213:44;;8360:10;8332:12;8345:11;8332:25;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;8446:13;:19;8460:4;8446:19;;;;;;;;;;;;;;;;8418:13;:25;8432:10;8418:25;;;;;;;;;;;;;;;:47;;;;8545:12;:21;;;;;;;;;;;;:::i;:::-;;8643:1;8621:13;:19;8635:4;8621:19;;;;;;;;;;;;;;;:23;;;;8693:14;8710:16;;;;;;;;;;;:32;;;8743:4;8710:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8710:38:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;8710:38:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8710:38:22;;;;;;;;;;;;;;;;8693:55;;8759:19;:28;8779:7;8759:28;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;7855:942;;;;;;;;:::o;3090:300:4:-;3179:4;3195:36;3205:6;3213:9;3224:6;3195:9;:36::i;:::-;3241:121;3250:6;3258:12;:10;:12::i;:::-;3272:89;3310:6;3272:89;;;;;;;;;;;;;;;;;:11;:19;3284:6;3272:19;;;;;;;;;;;;;;;:33;3292:12;:10;:12::i;:::-;3272:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;3241:8;:121::i;:::-;3379:4;3372:11;;3090:300;;;;;:::o;834:176:20:-;892:7;911:9;927:1;923;:5;911:17;;951:1;946;:6;;938:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1002:1;995:8;;;834:176;;;;:::o;5945:302:4:-;6039:1;6020:21;;:7;:21;;;;6012:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6103:24;6120:6;6103:12;;:16;;:24;;;;:::i;:::-;6088:12;:39;;;;6158:30;6181:6;6158:9;:18;6168:7;6158:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;6137:9;:18;6147:7;6137:18;;;;;;;;;;;;;;;:51;;;;6224:7;6203:37;;6220:1;6203:37;;;6233:6;6203:37;;;;;;;;;;;;;;;;;;5945:302;;:::o;737:119:0:-;793:20;805:7;793;:11;;:20;;;;:::i;:::-;840:7;829:19;;;;;;;;;;;;737:119;:::o;6566:342:4:-;6660:1;6641:21;;:7;:21;;;;6633:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6732:68;6755:6;6732:68;;;;;;;;;;;;;;;;;:9;:18;6742:7;6732:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;6711:9;:18;6721:7;6711:18;;;;;;;;;;;;;;;:89;;;;6825:24;6842:6;6825:12;;:16;;:24;;;;:::i;:::-;6810:12;:39;;;;6890:1;6864:37;;6873:7;6864:37;;;6894:6;6864:37;;;;;;;;;;;;;;;;;;6566:342;;:::o;864:127:0:-;923:23;938:7;923;:14;;:23;;;;:::i;:::-;975:7;962:21;;;;;;;;;;;;864:127;:::o;1732:187:20:-;1818:7;1850:1;1845;:6;;1853:12;1837:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1837:29:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1876:9;1892:1;1888;:5;1876:17;;1911:1;1904:8;;;1732:187;;;;;:::o;2000:155:4:-;2069:4;2085:42;2095:12;:10;:12::i;:::-;2109:9;2120:6;2085:9;:42::i;:::-;2144:4;2137:11;;2000:155;;;;:::o;10070:280:22:-;10158:7;10183:17;10203:13;:19;10217:4;10203:19;;;;;;;;;;;;;;;;;;;;;;;;;10183:39;;10258:1;10237:23;;:9;:23;;;10233:67;;;10284:4;10277:11;;;;;10233:67;10317:25;10332:9;10317:14;:25::i;:::-;10310:32;;;10070:280;;;;:::o;2173:225:18:-;2266:1;2246:22;;:8;:22;;;;2238:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2355:8;2326:38;;2347:6;;;;;;;;;;;2326:38;;;;;;;;;;;;2383:8;2374:6;;:17;;;;;;;;;;;;;;;;;;2173:225;:::o;5211:464:4:-;5326:1;5308:20;;:6;:20;;;;5300:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5409:1;5388:23;;:9;:23;;;;5380:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5482;5504:6;5482:71;;;;;;;;;;;;;;;;;:9;:17;5492:6;5482:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;5462:9;:17;5472:6;5462:17;;;;;;;;;;;;;;;:91;;;;5586:32;5611:6;5586:9;:20;5596:9;5586:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;5563:9;:20;5573:9;5563:20;;;;;;;;;;;;;;;:55;;;;5650:9;5633:35;;5642:6;5633:35;;;5661:6;5633:35;;;;;;;;;;;;;;;;;;5211:464;;;:::o;260:175:19:-;337:18;341:4;347:7;337:3;:18::i;:::-;336:19;328:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;424:4;401;:11;;:20;413:7;401:20;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;260:175;;:::o;510:180::-;589:18;593:4;599:7;589:3;:18::i;:::-;581:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;678:5;655:4;:11;;:20;667:7;655:20;;;;;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;510:180;;:::o;91:991:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://09bcf69899c7a8f47ce264851547b52a6e66840cd83dd9fe6f7312842f78d7f4

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Enegra develops solutions to facilitate global trade and has have tokenized 100% of its equity via the EGX security token, with full voting and dividend rights granted to the holder.

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.