ETH Price: $2,075.01 (-2.50%)

Contract

0xFa7e9A35C670BF075faeE9505267626AB1900Eee
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Remove Restricti...97795712020-03-31 12:45:522174 days ago1585658752IN
0xFa7e9A35...AB1900Eee
0 ETH0.000222739
Remove Restricti...97795562020-03-31 12:43:402174 days ago1585658620IN
0xFa7e9A35...AB1900Eee
0 ETH0.0002338410
Remove Restricti...97795552020-03-31 12:43:292174 days ago1585658609IN
0xFa7e9A35...AB1900Eee
0 ETH0.0002894810
Add Restrictions95071662020-02-18 12:37:162216 days ago1582029436IN
0xFa7e9A35...AB1900Eee
0 ETH0.000214413
Add Restrictions95071622020-02-18 12:35:572216 days ago1582029357IN
0xFa7e9A35...AB1900Eee
0 ETH0.00043235
Restrict Countri...95071002020-02-18 12:21:362216 days ago1582028496IN
0xFa7e9A35...AB1900Eee
0 ETH0.002011925

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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

Contract Name:
TransferRestrictions

Compiler Version
v0.5.10+commit.5a6ea5b1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-03-31
*/

// File: contracts/compliance/ICompliance.sol

pragma solidity ^0.5.10;

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

// File: openzeppelin-solidity/contracts/access/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: openzeppelin-solidity/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @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 aplied to your functions to restrict their use to
 * the owner.
 */
contract Ownable {
    address private _owner;

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

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

    /**
     * @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 msg.sender == _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: contracts/roles/AgentRole.sol

pragma solidity ^0.5.0;



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: @onchain-id/solidity/contracts/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: @onchain-id/solidity/contracts/ERC734.sol

pragma solidity ^0.5.10;


/**
 * @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: @onchain-id/solidity/contracts/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: @onchain-id/solidity/contracts/Identity.sol

pragma solidity ^0.5.10;



/**
 * @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(abi.encode(address identityHolder_address, uint256 _ topic, bytes 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(abi.encode(_issuer, _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(abi.encode(_issuer, _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(abi.encode(_issuer, _topic))
        *
        * @return Returns an array of claim IDs by topic.
        */

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

// File: @onchain-id/solidity/contracts/IClaimIssuer.sol

pragma solidity ^0.5.10;


//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: @onchain-id/solidity/contracts/ClaimIssuer.sol

pragma solidity ^0.5.10;



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;

		if (msg.sender != address(this)) {
            require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have management key");
        }
		
        ( 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: contracts/registry/ITrustedIssuersRegistry.sol

pragma solidity ^0.5.10;


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: contracts/registry/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: contracts/registry/IIdentityRegistry.sol

pragma solidity ^0.5.10;





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: contracts/compliance/TransferRestrictions.sol

pragma solidity ^0.5.10;





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;
	}
}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"_country","type":"uint16[]"}],"name":"unrestrictCountriesInBulk","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"identityRegistry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_country","type":"uint16[]"}],"name":"restrictCountriesInBulk","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint16"}],"name":"restricted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"timespan","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"limit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_country","type":"uint16"}],"name":"unrestrictCountry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_country","type":"uint16"}],"name":"restrictCountry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_index","type":"uint256"}],"name":"removeRestrictions","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_limit","type":"uint256"},{"name":"_timespan","type":"uint256"},{"name":"_index","type":"uint256"}],"name":"updateRestrictions","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_limit","type":"uint256"},{"name":"_timespan","type":"uint256"}],"name":"addRestrictions","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"},{"name":"_index","type":"uint256"}],"name":"getStartTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"},{"name":"_index","type":"uint256"}],"name":"getCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"counters","outputs":[{"name":"exists","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"canTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_to","type":"address"}],"name":"isFromUnresrictedCountry","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_identityRegistry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_country","type":"uint16"}],"name":"Restricted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_country","type":"uint16"}],"name":"Unrestricted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_limit","type":"uint256"},{"indexed":false,"name":"_timespan","type":"uint256"}],"name":"RestrictionAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_limit","type":"uint256"},{"indexed":false,"name":"_timespan","type":"uint256"},{"indexed":false,"name":"_index","type":"uint256"}],"name":"RestrictionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_index","type":"uint256"}],"name":"RestrictionRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

0x6080604052600060065534801561001557600080fd5b5060405161123e38038061123e8339818101604052602081101561003857600080fd5b5051600080546001600160a01b03191633178082556040516001600160a01b039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600180546001600160a01b0319166001600160a01b039290921691909117905561118c806100b26000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063779e00f0116100ad578063a1e57ba211610071578063a1e57ba21461040d578063be65ab8c14610439578063e46638e61461045f578063f2818c0714610495578063f2fde38b146104bb5761012c565b8063779e00f014610385578063877c49d6146103ae5780638da5cb5b146103d15780638f32d59b146103d957806397ad8c37146103e15761012c565b8063243bcfcb116100f4578063243bcfcb146103015780634670dffe1461031e578063594b49a81461033f578063715018a614610360578063777e7905146103685761012c565b80630e76f7ee14610131578063134e18f4146101d657806315ad4483146101fa5780631ca1b5ed1461029d5780632205146d146102d2575b600080fd5b6101d46004803603602081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184602083028401116401000000008311171561019657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506104e1945050505050565b005b6101de6105d9565b604080516001600160a01b039092168252519081900360200190f35b6101d46004803603602081101561021057600080fd5b81019060208101813564010000000081111561022b57600080fd5b82018360208201111561023d57600080fd5b8035906020019184602083028401116401000000008311171561025f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506105e8945050505050565b6102be600480360360208110156102b357600080fd5b503561ffff166106dc565b604080519115158252519081900360200190f35b6102ef600480360360208110156102e857600080fd5b50356106f1565b60408051918252519081900360200190f35b6102ef6004803603602081101561031757600080fd5b5035610703565b6101d46004803603602081101561033457600080fd5b503561ffff16610715565b6101d46004803603602081101561035557600080fd5b503561ffff166107af565b6101d461084c565b6101d46004803603602081101561037e57600080fd5b50356108dd565b6101d46004803603606081101561039b57600080fd5b5080359060208101359060400135610a35565b6101d4600480360360408110156103c457600080fd5b5080359060200135610b2a565b6101de610c28565b6102be610c37565b6102ef600480360360408110156103f757600080fd5b506001600160a01b038135169060200135610c48565b6102ef6004803603604081101561042357600080fd5b506001600160a01b038135169060200135610c76565b6102be6004803603602081101561044f57600080fd5b50356001600160a01b0316610cbc565b6102be6004803603606081101561047557600080fd5b506001600160a01b03813581169160208101359091169060400135610cd4565b6102be600480360360208110156104ab57600080fd5b50356001600160a01b0316610eae565b6101d4600480360360208110156104d157600080fd5b50356001600160a01b0316610f5c565b6104e9610c37565b610528576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60005b81518110156105d55760006002600084848151811061054657fe5b602002602001015161ffff1661ffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f960bcd0db52c778e3f41b83f0597f5a1acba017ef02b2a7cabea6d889a009b9e8282815181106105a857fe5b6020026020010151604051808261ffff1661ffff16815260200191505060405180910390a160010161052b565b5050565b6001546001600160a01b031681565b6105f0610c37565b61062f576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60005b81518110156105d55760016002600084848151811061064d57fe5b602002602001015161ffff1661ffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f70370983428795c9a50282cf03fe3e86cbf93a7ea184360449a863ad8327d61d8282815181106106af57fe5b6020026020010151604051808261ffff1661ffff16815260200191505060405180910390a1600101610632565b60026020526000908152604090205460ff1681565b60056020526000908152604090205481565b60046020526000908152604090205481565b61071d610c37565b61075c576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b61ffff8116600081815260026020908152604091829020805460ff19169055815192835290517f960bcd0db52c778e3f41b83f0597f5a1acba017ef02b2a7cabea6d889a009b9e9281900390910190a150565b6107b7610c37565b6107f6576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b61ffff8116600081815260026020908152604091829020805460ff19166001179055815192835290517f70370983428795c9a50282cf03fe3e86cbf93a7ea184360449a863ad8327d61d9281900390910190a150565b610854610c37565b610893576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6108e5610c37565b610924576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b6000818152600460205260409020541580159061094e575060008181526005602052604090205415155b610996576040805162461bcd60e51b8152602060048201526014602482015273139bc81c995cdd1c9a58dd1a5bdb88195e1a5cdd60621b604482015290519081900360640190fd5b6000818152600460208181526040808420848155600580845282862086815560068054600019908101895287875285892054909455805484018852828652848820549091558054830187529484528286208690558454820186528352818520949094558254909301909155815183815291517fa674bf7226b76693fec4a015d777e85a90678e055240c1e88025ce7bcdde91b89281900390910190a150565b610a3d610c37565b610a7c576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60008211610ac9576040805162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081d1a5b59481a5b9d195c9d985b605a1b604482015290519081900360640190fd5b60008181526004602090815260408083208690556005825291829020849055815185815290810184905280820183905290517f02873a00b3983e9edd973d4535abd4c3eb9c3503fd3ee1eed57917274cdfe17c9181900360600190a1505050565b610b32610c37565b610b71576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60008111610bbe576040805162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081d1a5b59481a5b9d195c9d985b605a1b604482015290519081900360640190fd5b6006805460009081526004602090815260408083208690558354835260058252918290208490558254600101909255805184815291820183905280517fdbdf37f74386c85c4f8f94f00018d5987f70a073871f7ca427549e1a947a1f1b9281900390910190a15050565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001600160a01b03821660009081526003602090815260408083208484526001019091529020545b92915050565b6001600160a01b0382166000908152600360205260408120600281015460ff1615610cb257600083815260209190915260409020549050610c70565b5060009392505050565b60036020526000908152604090206002015460ff1681565b6001600160a01b0383166000908152600360205260408120610cf584610eae565b610d3e576040805162461bcd60e51b815260206004820152601560248201527410dbdd5b9d1c9e481a5cc814995cdd1c9a58dd1959605a1b604482015290519081900360640190fd5b60065460005b600654811015610e8557600283015460ff16610d8257610d65878242610faf565b600160065403811415610d825760028301805460ff191660011790555b6000818152600560205260409020544290610d9d8984610c48565b011015610e2c57600081815260046020526040902054851115610e07576040805162461bcd60e51b815260206004820152601760248201527f5472616e73666572206c696d6974206578636565646564000000000000000000604482015290519081900360640190fd5b610e118782610fd9565b60008181526020849052604081205560001990910190610e7d565b6000818152600560205260409020544290610e478984610c48565b0110158015610e7057506000818152600460209081526040808320549186905290912054860111155b15610e7d57600019909101905b600101610d44565b5080610ea057610e958685611031565b600192505050610ea7565b6000925050505b9392505050565b60015460408051637e42683b60e01b81526001600160a01b038481166004830152915160009384931691637e42683b916024808301926020929190829003018186803b158015610efd57600080fd5b505afa158015610f11573d6000803e3d6000fd5b505050506040513d6020811015610f2757600080fd5b505161ffff811660009081526002602052604090205490915060ff16610f51576001915050610f57565b60009150505b919050565b610f64610c37565b610fa3576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b610fac81611071565b50565b6001600160a01b039092166000908152600360209081526040808320938352600190930190522055565b600081815260056020526040812054610ff28484610c48565b420381610ffb57fe5b60008481526005602052604081205492909104925090820261101d8585610c48565b01905061102b848483610faf565b50505050565b6001600160a01b0382166000908152600360205260408120905b60065481101561102b57600081815260208390526040902080548401905560010161104b565b6001600160a01b0381166110b65760405162461bcd60e51b81526004018080602001828103825260268152602001806111126026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a7230582008f059789c882867ce8287a2d3bb242bef5348beec7dca9d3799d97416e1fc7064736f6c634300050a0032000000000000000000000000d30d9674a93c13e5d7027182b12bd00a0c4f0b69

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063779e00f0116100ad578063a1e57ba211610071578063a1e57ba21461040d578063be65ab8c14610439578063e46638e61461045f578063f2818c0714610495578063f2fde38b146104bb5761012c565b8063779e00f014610385578063877c49d6146103ae5780638da5cb5b146103d15780638f32d59b146103d957806397ad8c37146103e15761012c565b8063243bcfcb116100f4578063243bcfcb146103015780634670dffe1461031e578063594b49a81461033f578063715018a614610360578063777e7905146103685761012c565b80630e76f7ee14610131578063134e18f4146101d657806315ad4483146101fa5780631ca1b5ed1461029d5780632205146d146102d2575b600080fd5b6101d46004803603602081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184602083028401116401000000008311171561019657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506104e1945050505050565b005b6101de6105d9565b604080516001600160a01b039092168252519081900360200190f35b6101d46004803603602081101561021057600080fd5b81019060208101813564010000000081111561022b57600080fd5b82018360208201111561023d57600080fd5b8035906020019184602083028401116401000000008311171561025f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506105e8945050505050565b6102be600480360360208110156102b357600080fd5b503561ffff166106dc565b604080519115158252519081900360200190f35b6102ef600480360360208110156102e857600080fd5b50356106f1565b60408051918252519081900360200190f35b6102ef6004803603602081101561031757600080fd5b5035610703565b6101d46004803603602081101561033457600080fd5b503561ffff16610715565b6101d46004803603602081101561035557600080fd5b503561ffff166107af565b6101d461084c565b6101d46004803603602081101561037e57600080fd5b50356108dd565b6101d46004803603606081101561039b57600080fd5b5080359060208101359060400135610a35565b6101d4600480360360408110156103c457600080fd5b5080359060200135610b2a565b6101de610c28565b6102be610c37565b6102ef600480360360408110156103f757600080fd5b506001600160a01b038135169060200135610c48565b6102ef6004803603604081101561042357600080fd5b506001600160a01b038135169060200135610c76565b6102be6004803603602081101561044f57600080fd5b50356001600160a01b0316610cbc565b6102be6004803603606081101561047557600080fd5b506001600160a01b03813581169160208101359091169060400135610cd4565b6102be600480360360208110156104ab57600080fd5b50356001600160a01b0316610eae565b6101d4600480360360208110156104d157600080fd5b50356001600160a01b0316610f5c565b6104e9610c37565b610528576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60005b81518110156105d55760006002600084848151811061054657fe5b602002602001015161ffff1661ffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f960bcd0db52c778e3f41b83f0597f5a1acba017ef02b2a7cabea6d889a009b9e8282815181106105a857fe5b6020026020010151604051808261ffff1661ffff16815260200191505060405180910390a160010161052b565b5050565b6001546001600160a01b031681565b6105f0610c37565b61062f576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60005b81518110156105d55760016002600084848151811061064d57fe5b602002602001015161ffff1661ffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f70370983428795c9a50282cf03fe3e86cbf93a7ea184360449a863ad8327d61d8282815181106106af57fe5b6020026020010151604051808261ffff1661ffff16815260200191505060405180910390a1600101610632565b60026020526000908152604090205460ff1681565b60056020526000908152604090205481565b60046020526000908152604090205481565b61071d610c37565b61075c576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b61ffff8116600081815260026020908152604091829020805460ff19169055815192835290517f960bcd0db52c778e3f41b83f0597f5a1acba017ef02b2a7cabea6d889a009b9e9281900390910190a150565b6107b7610c37565b6107f6576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b61ffff8116600081815260026020908152604091829020805460ff19166001179055815192835290517f70370983428795c9a50282cf03fe3e86cbf93a7ea184360449a863ad8327d61d9281900390910190a150565b610854610c37565b610893576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6108e5610c37565b610924576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b6000818152600460205260409020541580159061094e575060008181526005602052604090205415155b610996576040805162461bcd60e51b8152602060048201526014602482015273139bc81c995cdd1c9a58dd1a5bdb88195e1a5cdd60621b604482015290519081900360640190fd5b6000818152600460208181526040808420848155600580845282862086815560068054600019908101895287875285892054909455805484018852828652848820549091558054830187529484528286208690558454820186528352818520949094558254909301909155815183815291517fa674bf7226b76693fec4a015d777e85a90678e055240c1e88025ce7bcdde91b89281900390910190a150565b610a3d610c37565b610a7c576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60008211610ac9576040805162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081d1a5b59481a5b9d195c9d985b605a1b604482015290519081900360640190fd5b60008181526004602090815260408083208690556005825291829020849055815185815290810184905280820183905290517f02873a00b3983e9edd973d4535abd4c3eb9c3503fd3ee1eed57917274cdfe17c9181900360600190a1505050565b610b32610c37565b610b71576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b60008111610bbe576040805162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081d1a5b59481a5b9d195c9d985b605a1b604482015290519081900360640190fd5b6006805460009081526004602090815260408083208690558354835260058252918290208490558254600101909255805184815291820183905280517fdbdf37f74386c85c4f8f94f00018d5987f70a073871f7ca427549e1a947a1f1b9281900390910190a15050565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001600160a01b03821660009081526003602090815260408083208484526001019091529020545b92915050565b6001600160a01b0382166000908152600360205260408120600281015460ff1615610cb257600083815260209190915260409020549050610c70565b5060009392505050565b60036020526000908152604090206002015460ff1681565b6001600160a01b0383166000908152600360205260408120610cf584610eae565b610d3e576040805162461bcd60e51b815260206004820152601560248201527410dbdd5b9d1c9e481a5cc814995cdd1c9a58dd1959605a1b604482015290519081900360640190fd5b60065460005b600654811015610e8557600283015460ff16610d8257610d65878242610faf565b600160065403811415610d825760028301805460ff191660011790555b6000818152600560205260409020544290610d9d8984610c48565b011015610e2c57600081815260046020526040902054851115610e07576040805162461bcd60e51b815260206004820152601760248201527f5472616e73666572206c696d6974206578636565646564000000000000000000604482015290519081900360640190fd5b610e118782610fd9565b60008181526020849052604081205560001990910190610e7d565b6000818152600560205260409020544290610e478984610c48565b0110158015610e7057506000818152600460209081526040808320549186905290912054860111155b15610e7d57600019909101905b600101610d44565b5080610ea057610e958685611031565b600192505050610ea7565b6000925050505b9392505050565b60015460408051637e42683b60e01b81526001600160a01b038481166004830152915160009384931691637e42683b916024808301926020929190829003018186803b158015610efd57600080fd5b505afa158015610f11573d6000803e3d6000fd5b505050506040513d6020811015610f2757600080fd5b505161ffff811660009081526002602052604090205490915060ff16610f51576001915050610f57565b60009150505b919050565b610f64610c37565b610fa3576040805162461bcd60e51b81526020600482018190526024820152600080516020611138833981519152604482015290519081900360640190fd5b610fac81611071565b50565b6001600160a01b039092166000908152600360209081526040808320938352600190930190522055565b600081815260056020526040812054610ff28484610c48565b420381610ffb57fe5b60008481526005602052604081205492909104925090820261101d8585610c48565b01905061102b848483610faf565b50505050565b6001600160a01b0382166000908152600360205260408120905b60065481101561102b57600081815260208390526040902080548401905560010161104b565b6001600160a01b0381166110b65760405162461bcd60e51b81526004018080602001828103825260268152602001806111126026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a7230582008f059789c882867ce8287a2d3bb242bef5348beec7dca9d3799d97416e1fc7064736f6c634300050a0032

Deployed Bytecode Sourcemap

37747:4574:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37747:4574:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39043:211;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39043:211:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;39043:211:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;39043:211:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;39043:211:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;39043:211:0;;-1:-1:-1;39043:211:0;;-1:-1:-1;;;;;39043:211:0:i;:::-;;37930:41;;;:::i;:::-;;;;-1:-1:-1;;;;;37930:41:0;;;;;;;;;;;;;;38832:206;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38832:206:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;38832:206:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;38832:206:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;38832:206:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;38832:206:0;;-1:-1:-1;38832:206:0;;-1:-1:-1;;;;;38832:206:0:i;37975:42::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37975:42:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;38114:44;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38114:44:0;;:::i;:::-;;;;;;;;;;;;;;;;38069:41;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38069:41:0;;:::i;38695:132::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38695:132:0;;;;:::i;38564:126::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38564:126:0;;;;:::i;3000:140::-;;;:::i;40813:423::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40813:423:0;;:::i;40540:268::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40540:268:0;;;;;;;;;;;;:::i;40286:249::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40286:249:0;;;;;;;:::i;2189:79::-;;;:::i;2555:92::-;;;:::i;39471:170::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;39471:170:0;;;;;;;;:::i;39817:241::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;39817:241:0;;;;;;;;:::i;38021:44::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38021:44:0;-1:-1:-1;;;;;38021:44:0;;:::i;41512:806::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;41512:806:0;;;;;;;;;;;;;;;;;:::i;39259:207::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39259:207:0;-1:-1:-1;;;;;39259:207:0;;:::i;3295:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3295:109:0;-1:-1:-1;;;;;3295:109:0;;:::i;39043:211::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;39130:6;39126:124;39147:8;:15;39143:1;:19;39126:124;;;39203:5;39177:10;:23;39188:8;39197:1;39188:11;;;;;;;;;;;;;;39177:23;;;;;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;39219:25;39232:8;39241:1;39232:11;;;;;;;;;;;;;;39219:25;;;;;;;;;;;;;;;;;;;;;;39165:3;;39126:124;;;;39043:211;:::o;37930:41::-;;;-1:-1:-1;;;;;37930:41:0;;:::o;38832:206::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;38917:6;38913:121;38934:8;:15;38930:1;:19;38913:121;;;38990:4;38964:10;:23;38975:8;38984:1;38975:11;;;;;;;;;;;;;;38964:23;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;39005:23;39016:8;39025:1;39016:11;;;;;;;;;;;;;;39005:23;;;;;;;;;;;;;;;;;;;;;;38952:3;;38913:121;;37975:42;;;;;;;;;;;;;;;:::o;38114:44::-;;;;;;;;;;;;;:::o;38069:41::-;;;;;;;;;;;;;:::o;38695:132::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;38762:20;;;38785:5;38762:20;;;:10;:20;;;;;;;;;:28;;-1:-1:-1;;38762:28:0;;;38800:22;;;;;;;;;;;;;;;;;38695:132;:::o;38564:126::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;38628:20;;;;;;;:10;:20;;;;;;;;;:27;;-1:-1:-1;;38628:27:0;38651:4;38628:27;;;38665:20;;;;;;;;;;;;;;;;;38564:126;:::o;3000:140::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;3099:1;3083:6;;3062:40;;-1:-1:-1;;;;;3083:6:0;;;;3062:40;;3099:1;;3062:40;3130:1;3113:19;;-1:-1:-1;;;;;;3113:19:0;;;3000:140::o;40813:423::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;40929:13;;;;:5;:13;;;;;;:18;;;;:43;;-1:-1:-1;40951:16:0;;;;:8;:16;;;;;;:21;;40929:43;40921:76;;;;;-1:-1:-1;;;40921:76:0;;;;;;;;;;;;-1:-1:-1;;;40921:76:0;;;;;;;;;;;;;;;41011:13;;;;:5;:13;;;;;;;;41004:20;;;41036:8;:16;;;;;;41029:23;;;41079:5;;;-1:-1:-1;;41079:7:0;;;41073:14;;;;;;;;;41057:30;;;41120:5;;:7;;41111:17;;;;;;;;;41092:36;;;41146:5;;:7;;41140:14;;;;;;;;41133:21;;;41175:5;;:7;;41166:17;;;;;;;41159:24;;;;41188:7;;;;;;;;41205:26;;;;;;;;;;;;;;;;;40813:423;:::o;40540:268::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;40661:1;40649:9;:13;40641:47;;;;;-1:-1:-1;;;40641:47:0;;;;;;;;;;;;-1:-1:-1;;;40641:47:0;;;;;;;;;;;;;;;40693:13;;;;:5;:13;;;;;;;;:22;;;40720:8;:16;;;;;;:28;;;40758:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;40540:268;;;:::o;40286:249::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;40388:1;40376:9;:13;40368:47;;;;;-1:-1:-1;;;40368:47:0;;;;;;;;;;;;-1:-1:-1;;;40368:47:0;;;;;;;;;;;;;;;40426:5;;;40420:12;;;;:5;:12;;;;;;;;:21;;;40455:5;;40446:15;;:8;:15;;;;;;:27;;;40478:7;;;;;;;40495:35;;;;;;;;;;;;;;;;;;;;;;;40286:249;;:::o;2189:79::-;2227:7;2254:6;-1:-1:-1;;;;;2254:6:0;2189:79;:::o;2555:92::-;2595:4;2633:6;-1:-1:-1;;;;;2633:6:0;2619:10;:20;;2555:92::o;39471:170::-;-1:-1:-1;;;;;39584:15:0;;39544:7;39584:15;;;:8;:15;;;;;;;;39611:25;;;:17;;:25;;;;;;39471:170;;;;;:::o;39817:241::-;-1:-1:-1;;;;;39932:15:0;;39886:7;39932:15;;;:8;:15;;;;;39961:14;;;;;;39958:74;;;39999:13;:21;;;;;;;;;;;;;-1:-1:-1;39992:28:0;;39958:74;-1:-1:-1;40049:1:0;;39817:241;-1:-1:-1;;;39817:241:0:o;38021:44::-;;;;;;;;;;;;;;;;;:::o;41512:806::-;-1:-1:-1;;;;;41630:15:0;;41593:4;41630:15;;;:8;:15;;;;;41658:29;41683:3;41658:24;:29::i;:::-;41650:62;;;;;-1:-1:-1;;;41650:62:0;;;;;;;;;;;;-1:-1:-1;;;41650:62:0;;;;;;;;;;;;;;;41732:5;;41717:12;41742:484;41765:5;;41761:1;:9;41742:484;;;41787:14;;;;;;41783:128;;41813:27;41826:5;41833:1;41836:3;41813:12;:27::i;:::-;41863:1;41855:5;;:9;41850:1;:14;41847:58;;;41876:14;;;:21;;-1:-1:-1;;41876:21:0;41893:4;41876:21;;;41847:58;41944:11;;;;:8;:11;;;;;;41958:3;;41919:22;41932:5;41953:1;41919:12;:22::i;:::-;:36;:42;41916:305;;;41988:8;;;;:5;:8;;;;;;41978:18;;;41970:54;;;;;-1:-1:-1;;;41970:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;42031:24;42046:5;42053:1;42031:14;:24::i;:::-;42081:1;42062:16;;;;;;;;;;:20;-1:-1:-1;;42089:6:0;;;;41916:305;;;42140:11;;;;:8;:11;;;;;;42155:3;;42115:22;42128:5;42149:1;42115:12;:22::i;:::-;:36;:43;;:84;;;;-1:-1:-1;42191:8:0;;;;:5;:8;;;;;;;;;42162:16;;;;;;;;:25;;:37;;42115:84;42112:109;;;-1:-1:-1;;42208:6:0;;;;42112:109;41772:3;;41742:484;;;-1:-1:-1;42234:9:0;42230:67;;42251:23;42260:5;42267:6;42251:8;:23::i;:::-;42287:4;42280:11;;;;;;42230:67;42308:5;42301:12;;;;41512:806;;;;;;:::o;39259:207::-;39355:16;;:37;;;-1:-1:-1;;;39355:37:0;;-1:-1:-1;;;;;39355:37:0;;;;;;;;;39327:4;;;;39355:16;;:32;;:37;;;;;;;;;;;;;;:16;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;39355:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39355:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39355:37:0;39401:19;;;;;;;:10;39355:37;39401:19;;;;;39355:37;;-1:-1:-1;39401:19:0;;39397:48;;39435:4;39428:11;;;;;39397:48;39456:5;39449:12;;;39259:207;;;;:::o;3295:109::-;2401:9;:7;:9::i;:::-;2393:54;;;;;-1:-1:-1;;;2393:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2393:54:0;;;;;;;;;;;;;;;3368:28;3387:8;3368:18;:28::i;:::-;3295:109;:::o;39646:166::-;-1:-1:-1;;;;;39754:15:0;;;39728:23;39754:15;;;:8;:15;;;;;;;;39774:25;;;:17;;;;:25;;;:33;39646:166::o;41241:266::-;41307:14;41373:16;;;:8;:16;;;;;;41343:26;41356:5;41382:6;41343:12;:26::i;:::-;41325:15;:44;41324:65;;;;;41394:12;41448:16;;;:8;:16;;;;;;41324:65;;;;;-1:-1:-1;41394:12:0;41439:25;;41409:27;41422:5;41457:6;41409:12;:27::i;:::-;:55;41394:70;;41469:33;41482:5;41489:6;41497:4;41469:12;:33::i;:::-;41241:266;;;;:::o;40066:215::-;-1:-1:-1;;;;;40161:15:0;;40135:23;40161:15;;;:8;:15;;;;;;40181:93;40214:5;;40205:6;:14;40181:93;;;40237:13;:21;;;;;;;;;;:31;;;;;;-1:-1:-1;40221:8:0;40181:93;;3510:229;-1:-1:-1;;;;;3584:22:0;;3576:73;;;;-1:-1:-1;;;3576:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3686:6;;;3665:38;;-1:-1:-1;;;;;3665:38:0;;;;3686:6;;;3665:38;;;3714:6;:17;;-1:-1:-1;;;;;;3714:17:0;-1:-1:-1;;;;;3714:17:0;;;;;;;;;;3510:229::o

Swarm Source

bzzr://08f059789c882867ce8287a2d3bb242bef5348beec7dca9d3799d97416e1fc70

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.