ETH Price: $2,262.44 (+7.31%)

Contract

0xD9C9F079F7dbb3C3cc3EDd22E61EE8B3eb49eA4e
 

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
Create Custom To...128638402021-07-20 14:03:371699 days ago1626789817IN
0xD9C9F079...3eb49eA4e
0 ETH0.1153089228
Create Custom To...120166722021-03-11 10:13:381830 days ago1615457618IN
0xD9C9F079...3eb49eA4e
0 ETH0.348523384
Create Custom To...116543612021-01-14 16:45:411886 days ago1610642741IN
0xD9C9F079...3eb49eA4e
0 ETH0.2588128263

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-128638402021-07-20 14:03:371699 days ago1626789817
0xD9C9F079...3eb49eA4e
 Contract Creation0 ETH
-120166722021-03-11 10:13:381830 days ago1615457618
0xD9C9F079...3eb49eA4e
 Contract Creation0 ETH
-116543612021-01-14 16:45:411886 days ago1610642741
0xD9C9F079...3eb49eA4e
 Contract Creation0 ETH
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

Contract Source Code Verified (Exact Match)

Contract Name:
NokuCustomERC721Service

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-04-27
*/

pragma solidity ^0.4.24;

// File: node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


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


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    owner = address(0);
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function transferOwnership(address _newOwner) public onlyOwner {
    _transferOwnership(_newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address _newOwner) internal {
    require(_newOwner != address(0));
    emit OwnershipTransferred(owner, _newOwner);
    owner = _newOwner;
  }
}

// File: node_modules/openzeppelin-solidity/contracts/ownership/rbac/Roles.sol

/**
 * @title Roles
 * @author Francisco Giordano (@frangio)
 * @dev Library for managing addresses assigned to a Role.
 *      See RBAC.sol for example usage.
 */
library Roles {
  struct Role {
    mapping (address => bool) bearer;
  }

  /**
   * @dev give an address access to this role
   */
  function add(Role storage role, address addr)
    internal
  {
    role.bearer[addr] = true;
  }

  /**
   * @dev remove an address' access to this role
   */
  function remove(Role storage role, address addr)
    internal
  {
    role.bearer[addr] = false;
  }

  /**
   * @dev check if an address has this role
   * // reverts
   */
  function check(Role storage role, address addr)
    view
    internal
  {
    require(has(role, addr));
  }

  /**
   * @dev check if an address has this role
   * @return bool
   */
  function has(Role storage role, address addr)
    view
    internal
    returns (bool)
  {
    return role.bearer[addr];
  }
}

// File: node_modules/openzeppelin-solidity/contracts/ownership/rbac/RBAC.sol

/**
 * @title RBAC (Role-Based Access Control)
 * @author Matt Condon (@Shrugs)
 * @dev Stores and provides setters and getters for roles and addresses.
 * @dev Supports unlimited numbers of roles and addresses.
 * @dev See //contracts/mocks/RBACMock.sol for an example of usage.
 * This RBAC method uses strings to key roles. It may be beneficial
 *  for you to write your own implementation of this interface using Enums or similar.
 * It's also recommended that you define constants in the contract, like ROLE_ADMIN below,
 *  to avoid typos.
 */
contract RBAC {
  using Roles for Roles.Role;

  mapping (string => Roles.Role) private roles;

  event RoleAdded(address addr, string roleName);
  event RoleRemoved(address addr, string roleName);

  /**
   * @dev reverts if addr does not have role
   * @param addr address
   * @param roleName the name of the role
   * // reverts
   */
  function checkRole(address addr, string roleName)
    view
    public
  {
    roles[roleName].check(addr);
  }

  /**
   * @dev determine if addr has role
   * @param addr address
   * @param roleName the name of the role
   * @return bool
   */
  function hasRole(address addr, string roleName)
    view
    public
    returns (bool)
  {
    return roles[roleName].has(addr);
  }

  /**
   * @dev add a role to an address
   * @param addr address
   * @param roleName the name of the role
   */
  function addRole(address addr, string roleName)
    internal
  {
    roles[roleName].add(addr);
    emit RoleAdded(addr, roleName);
  }

  /**
   * @dev remove a role from an address
   * @param addr address
   * @param roleName the name of the role
   */
  function removeRole(address addr, string roleName)
    internal
  {
    roles[roleName].remove(addr);
    emit RoleRemoved(addr, roleName);
  }

  /**
   * @dev modifier to scope access to a single role (uses msg.sender as addr)
   * @param roleName the name of the role
   * // reverts
   */
  modifier onlyRole(string roleName)
  {
    checkRole(msg.sender, roleName);
    _;
  }

  /**
   * @dev modifier to scope access to a set of roles (uses msg.sender as addr)
   * @param roleNames the names of the roles to scope access to
   * // reverts
   *
   * @TODO - when solidity supports dynamic arrays as arguments to modifiers, provide this
   *  see: https://github.com/ethereum/solidity/issues/2467
   */
  // modifier onlyRoles(string[] roleNames) {
  //     bool hasAnyRole = false;
  //     for (uint8 i = 0; i < roleNames.length; i++) {
  //         if (hasRole(msg.sender, roleNames[i])) {
  //             hasAnyRole = true;
  //             break;
  //         }
  //     }

  //     require(hasAnyRole);

  //     _;
  // }
}

// File: contracts/ERC2980/Issuable.sol

/**
 * @title Issuable
 * @dev The Issuable contract defines the issuer role who can perform certain kind of actions
 * even if he is not the owner.
 * An issuer can transfer his role to a new address.
 */
contract Issuable is Ownable, RBAC {
  string public constant ROLE_ISSUER = "issuer";

  /**
   * @dev Throws if called by any account that's not a issuer.
   */
  modifier onlyIssuer() {
    require(isIssuer(msg.sender), 'Issuable: caller is not the issuer');
    _;
  }

  modifier onlyOwnerOrIssuer() {
    require(msg.sender == owner || isIssuer(msg.sender), 'Issuable: caller is not the issuer or the owner');
    _;
  }

  /**
   * @dev getter to determine if address has issuer role
   */
  function isIssuer(address _addr) public view returns (bool) {
    return hasRole(_addr, ROLE_ISSUER);
  }

  /**
   * @dev add a new issuer address
   * @param _operator address
   * @return true if the address was not an issuer, false if the address was already an issuer
   */
  function addIssuer(address _operator) public onlyOwner {
    addRole(_operator, ROLE_ISSUER);
  }

    /**
   * @dev remove an address from issuers
   * @param _operator address
   * @return true if the address has been removed from issuers,
   * false if the address wasn't in the issuer list in the first place
   */
  function removeIssuer(address _operator) public onlyOwner {
    removeRole(_operator, ROLE_ISSUER);
  }

  /**
   * @dev Allows the current issuer to transfer his role to a newIssuer.
   * @param _newIssuer The address to transfer the issuer role to.
   */
  function transferIssuer(address _newIssuer) public onlyIssuer {
    require(_newIssuer != address(0));
    removeRole(msg.sender, ROLE_ISSUER);
    addRole(_newIssuer, ROLE_ISSUER);
  }

}

// File: contracts/ERC2980/Frozenlist.sol

/**
 * @title Frozenlist
 * @dev The Frozenlist contract has a frozen list of addresses, and provides basic authorization control functions.
 * This simplifies the implementation of "user permissions".
 */
contract Frozenlist is Issuable {

  event FundsFrozen(address target);

  string public constant ROLE_FROZENLIST = "frozenlist";

  /**
   * @dev Throws if operator is frozen.
   * @param _operator address
   */
  modifier onlyIfNotFrozen(address _operator) {
    require(!hasRole(_operator, ROLE_FROZENLIST), "Account frozen");
    _;
  }

  /**
   * @dev add an address to the frozenlist
   * @param _operator address
   * @return true if the address was added to the frozenlist, false if the address was already in the frozenlist
   */
  function addAddressToFrozenlist(address _operator) public onlyIssuer {
    addRole(_operator, ROLE_FROZENLIST);
    emit FundsFrozen(_operator);
  }

  /**
   * @dev getter to determine if address is in frozenlist
   */
  function frozenlist(address _operator) public view returns (bool) {
    return hasRole(_operator, ROLE_FROZENLIST);
  }

  /**
   * @dev add addresses to the frozenlist
   * @param _operators addresses
   * @return true if at least one address was added to the frozenlist,
   * false if all addresses were already in the frozenlist
   */
  function addAddressesToFrozenlist(address[] _operators) public onlyIssuer {
    for (uint256 i = 0; i < _operators.length; i++) {
      addAddressToFrozenlist(_operators[i]);
    }
  }

  /**
   * @dev remove an address from the frozenlist
   * @param _operator address
   * @return true if the address was removed from the frozenlist,
   * false if the address wasn't in the frozenlist in the first place
   */
  function removeAddressFromFrozenlist(address _operator) public onlyIssuer {
    removeRole(_operator, ROLE_FROZENLIST);
  }

  /**
   * @dev remove addresses from the frozenlist
   * @param _operators addresses
   * @return true if at least one address was removed from the frozenlist,
   * false if all addresses weren't in the frozenlist in the first place
   */
  function removeAddressesFromFrozenlist(address[] _operators) public onlyIssuer {
    for (uint256 i = 0; i < _operators.length; i++) {
      removeAddressFromFrozenlist(_operators[i]);
    }
  }

}

// File: contracts/ERC2980/Whitelist.sol

/**
 * @title Whitelist
 * @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions.
 * This simplifies the implementation of "user permissions".
    By default whitelist in not enabled.
 */
contract Whitelist is Issuable {
  string public constant ROLE_WHITELISTED = "whitelist";
  bool public whitelistEnabled;

  constructor(bool enableWhitelist)
    public {
      whitelistEnabled = enableWhitelist;
  }

  /**
   * @dev Throws if operator is not whitelisted and whitelist is enabled.
   * @param _operator address
   */
  modifier onlyIfWhitelisted(address _operator) {
    if(whitelistEnabled) {
      checkRole(_operator, ROLE_WHITELISTED);
    }
    _;
  }

  function enableWhitelist() public onlyOwner {
    whitelistEnabled = true;
  }

  function disableWhitelist() public onlyOwner {
    whitelistEnabled = false;
  }

  /**
   * @dev add an address to the whitelist
   * @param _operator address
   * @return true if the address was added to the whitelist, false if the address was already in the whitelist
   */
  function addAddressToWhitelist(address _operator) public onlyIssuer {
    addRole(_operator, ROLE_WHITELISTED);
  }

  /**
   * @dev getter to determine if address is in whitelist
   */
  function whitelist(address _operator) public view returns (bool) {
    return hasRole(_operator, ROLE_WHITELISTED);
  }

  /**
   * @dev add addresses to the whitelist
   * @param _operators addresses
   * @return true if at least one address was added to the whitelist,
   * false if all addresses were already in the whitelist
   */
  function addAddressesToWhitelist(address[] _operators) public onlyIssuer {
    for (uint256 i = 0; i < _operators.length; i++) {
      addAddressToWhitelist(_operators[i]);
    }
  }

  /**
   * @dev remove an address from the whitelist
   * @param _operator address
   * @return true if the address was removed from the whitelist,
   * false if the address wasn't in the whitelist in the first place
   */
  function removeAddressFromWhitelist(address _operator) public onlyIssuer {
    removeRole(_operator, ROLE_WHITELISTED);
  }

  /**
   * @dev remove addresses from the whitelist
   * @param _operators addresses
   * @return true if at least one address was removed from the whitelist,
   * false if all addresses weren't in the whitelist in the first place
   */
  function removeAddressesFromWhitelist(address[] _operators) public onlyIssuer {
    for (uint256 i = 0; i < _operators.length; i++) {
      removeAddressFromWhitelist(_operators[i]);
    }
  }

}

// File: contracts/NokuPricingPlan.sol

/**
* @dev The NokuPricingPlan contract defines the responsibilities of a Noku pricing plan.
*/
contract NokuPricingPlan {
    /**
    * @dev Pay the fee for the service identified by the specified name.
    * The fee amount shall already be approved by the client.
    * @param serviceName The name of the target service.
    * @param multiplier The multiplier of the base service fee to apply.
    * @param client The client of the target service.
    * @return true if fee has been paid.
    */
    function payFee(bytes32 serviceName, uint256 multiplier, address client) public returns(bool paid);

    /**
    * @dev Get the usage fee for the service identified by the specified name.
    * The returned fee amount shall be approved before using #payFee method.
    * @param serviceName The name of the target service.
    * @param multiplier The multiplier of the base service fee to apply.
    * @return The amount to approve before really paying such fee.
    */
    function usageFee(bytes32 serviceName, uint256 multiplier) public constant returns(uint fee);
}

// File: contracts/NokuCustomToken.sol

contract NokuCustomToken is Ownable {

    event LogBurnFinished();
    event LogPricingPlanChanged(address indexed caller, address indexed pricingPlan);

    // The pricing plan determining the fee to be paid in NOKU tokens by customers for using Noku services
    NokuPricingPlan public pricingPlan;

    // The entity acting as Custom Token service provider i.e. Noku
    address public serviceProvider;

    // Flag indicating if Custom Token burning has been permanently finished or not.
    bool public burningFinished;

    /**
    * @dev Modifier to make a function callable only by service provider i.e. Noku.
    */
    modifier onlyServiceProvider() {
        require(msg.sender == serviceProvider, "caller is not service provider");
        _;
    }

    modifier canBurn() {
        require(!burningFinished, "burning finished");
        _;
    }

    constructor(address _pricingPlan, address _serviceProvider) internal {
        require(_pricingPlan != 0, "_pricingPlan is zero");
        require(_serviceProvider != 0, "_serviceProvider is zero");

        pricingPlan = NokuPricingPlan(_pricingPlan);
        serviceProvider = _serviceProvider;
    }

    /**
    * @dev Presence of this function indicates the contract is a Custom Token.
    */
    function isCustomToken() public pure returns(bool isCustom) {
        return true;
    }

    /**
    * @dev Stop burning new tokens.
    * @return true if the operation was successful.
    */
    function finishBurning() public onlyOwner canBurn returns(bool finished) {
        burningFinished = true;

        emit LogBurnFinished();

        return true;
    }

    /**
    * @dev Change the pricing plan of service fee to be paid in NOKU tokens.
    * @param _pricingPlan The pricing plan of NOKU token to be paid, zero means flat subscription.
    */
    function setPricingPlan(address _pricingPlan) public onlyServiceProvider {
        require(_pricingPlan != 0, "_pricingPlan is 0");
        require(_pricingPlan != address(pricingPlan), "_pricingPlan == pricingPlan");

        pricingPlan = NokuPricingPlan(_pricingPlan);

        emit LogPricingPlanChanged(msg.sender, _pricingPlan);
    }
}

// File: contracts/openzeppelin-origin/introspection/ERC165.sol

/**
 * @title ERC165
 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
 */
interface ERC165 {

  /**
   * @notice Query if a contract implements an interface
   * @param _interfaceId The interface identifier, as specified in ERC-165
   * @dev Interface identification is specified in ERC-165. This function
   * uses less than 30,000 gas.
   */
  function supportsInterface(bytes4 _interfaceId)
    external
    view
    returns (bool);
}

// File: contracts/openzeppelin-origin/introspection/SupportsInterfaceWithLookup.sol

/**
 * @title SupportsInterfaceWithLookup
 * @author Matt Condon (@shrugs)
 * @dev Implements ERC165 using a lookup table.
 */
contract SupportsInterfaceWithLookup is ERC165 {

  bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7;
  /**
   * 0x01ffc9a7 ===
   *   bytes4(keccak256('supportsInterface(bytes4)'))
   */

  /**
   * @dev a mapping of interface id to whether or not it's supported
   */
  mapping(bytes4 => bool) internal supportedInterfaces;

  /**
   * @dev A contract implementing SupportsInterfaceWithLookup
   * implement ERC165 itself
   */
  constructor()
    public
  {
    _registerInterface(InterfaceId_ERC165);
  }

  /**
   * @dev implement supportsInterface(bytes4) using a lookup table
   */
  function supportsInterface(bytes4 _interfaceId)
    external
    view
    returns (bool)
  {
    return supportedInterfaces[_interfaceId];
  }

  /**
   * @dev private method for registering an interface
   */
  function _registerInterface(bytes4 _interfaceId)
    internal
  {
    require(_interfaceId != 0xffffffff);
    supportedInterfaces[_interfaceId] = true;
  }
}

// File: contracts/openzeppelin-origin/token/ERC721/ERC721Basic.sol

/**
 * @title ERC721 Non-Fungible Token Standard basic interface
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Basic is ERC165 {

  bytes4 internal constant InterfaceId_ERC721 = 0x80ac58cd;
  /*
   * 0x80ac58cd ===
   *   bytes4(keccak256('balanceOf(address)')) ^
   *   bytes4(keccak256('ownerOf(uint256)')) ^
   *   bytes4(keccak256('approve(address,uint256)')) ^
   *   bytes4(keccak256('getApproved(uint256)')) ^
   *   bytes4(keccak256('setApprovalForAll(address,bool)')) ^
   *   bytes4(keccak256('isApprovedForAll(address,address)')) ^
   *   bytes4(keccak256('transferFrom(address,address,uint256)')) ^
   *   bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
   *   bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
   */

  bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79;
  /*
   * 0x4f558e79 ===
   *   bytes4(keccak256('exists(uint256)'))
   */

  bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63;
  /**
   * 0x780e9d63 ===
   *   bytes4(keccak256('totalSupply()')) ^
   *   bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
   *   bytes4(keccak256('tokenByIndex(uint256)'))
   */

  bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f;
  /**
   * 0x5b5e139f ===
   *   bytes4(keccak256('name()')) ^
   *   bytes4(keccak256('symbol()')) ^
   *   bytes4(keccak256('tokenURI(uint256)'))
   */

  event Transfer(
    address indexed _from,
    address indexed _to,
    uint256 indexed _tokenId
  );
  event Approval(
    address indexed _owner,
    address indexed _approved,
    uint256 indexed _tokenId
  );
  event ApprovalForAll(
    address indexed _owner,
    address indexed _operator,
    bool _approved
  );

  function balanceOf(address _owner) public view returns (uint256 _balance);
  function ownerOf(uint256 _tokenId) public view returns (address _owner);
  function exists(uint256 _tokenId) public view returns (bool _exists);

  function approve(address _to, uint256 _tokenId) public;
  function getApproved(uint256 _tokenId)
    public view returns (address _operator);

  function setApprovalForAll(address _operator, bool _approved) public;
  function isApprovedForAll(address _owner, address _operator)
    public view returns (bool);

  function transferFrom(address _from, address _to, uint256 _tokenId) public;
  function safeTransferFrom(address _from, address _to, uint256 _tokenId)
    public;

  function safeTransferFrom(
    address _from,
    address _to,
    uint256 _tokenId,
    bytes _data
  )
    public;
}

// File: contracts/openzeppelin-origin/token/ERC721/ERC721.sol

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Enumerable is ERC721Basic {
  function totalSupply() public view returns (uint256);
  function tokenOfOwnerByIndex(
    address _owner,
    uint256 _index
  )
    public
    view
    returns (uint256 _tokenId);

  function tokenByIndex(uint256 _index) public view returns (uint256);
}


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Metadata is ERC721Basic {
  function name() external view returns (string _name);
  function symbol() external view returns (string _symbol);
  function tokenURI(uint256 _tokenId) public view returns (string);
}


/**
 * @title ERC-721 Non-Fungible Token Standard, full implementation interface
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata {
}

// File: node_modules/openzeppelin-solidity/contracts/AddressUtils.sol

/**
 * Utility library of inline functions on addresses
 */
library AddressUtils {

  /**
   * Returns whether the target address is a contract
   * @dev This function will return false if invoked during the constructor of a contract,
   *  as the code is not actually created until after the constructor finishes.
   * @param addr address to check
   * @return whether the target address is a contract
   */
  function isContract(address addr) internal view returns (bool) {
    uint256 size;
    // XXX Currently there is no better way to check if there is a contract in an address
    // than to check the size of the code at that address.
    // See https://ethereum.stackexchange.com/a/14016/36603
    // for more details about how this works.
    // TODO Check this again before the Serenity release, because all addresses will be
    // contracts then.
    // solium-disable-next-line security/no-inline-assembly
    assembly { size := extcodesize(addr) }
    return size > 0;
  }

}

// File: node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

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

    c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    // uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return a / b;
  }

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
    c = a + b;
    assert(c >= a);
    return c;
  }
}

// File: contracts/openzeppelin-origin/token/ERC721/ERC721Receiver.sol

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
contract ERC721Receiver {
  /**
   * @dev Magic value to be returned upon successful reception of an NFT
   *  Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`,
   *  which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
   */
  bytes4 internal constant ERC721_RECEIVED = 0x150b7a02;

  /**
   * @notice Handle the receipt of an NFT
   * @dev The ERC721 smart contract calls this function on the recipient
   * after a `safetransfer`. This function MAY throw to revert and reject the
   * transfer. Return of other than the magic value MUST result in the
   * transaction being reverted.
   * Note: the contract address is always the message sender.
   * @param _operator The address which called `safeTransferFrom` function
   * @param _from The address which previously owned the token
   * @param _tokenId The NFT identifier which is being transferred
   * @param _data Additional data with no specified format
   * @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
   */
  function onERC721Received(
    address _operator,
    address _from,
    uint256 _tokenId,
    bytes _data
  )
    public
    returns(bytes4);
}

// File: contracts/openzeppelin-origin/token/ERC721/ERC721BasicToken.sol

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {

  using SafeMath for uint256;
  using AddressUtils for address;

  // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
  // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
  bytes4 private constant ERC721_RECEIVED = 0x150b7a02;

  // Mapping from token ID to owner
  mapping (uint256 => address) internal tokenOwner;

  // Mapping from token ID to approved address
  mapping (uint256 => address) internal tokenApprovals;

  // Mapping from owner to number of owned token
  mapping (address => uint256) internal ownedTokensCount;

  // Mapping from owner to operator approvals
  mapping (address => mapping (address => bool)) internal operatorApprovals;

  constructor()
    public
  {
    // register the supported interfaces to conform to ERC721 via ERC165
    _registerInterface(InterfaceId_ERC721);
    _registerInterface(InterfaceId_ERC721Exists);
  }

  /**
   * @dev Gets the balance of the specified address
   * @param _owner address to query the balance of
   * @return uint256 representing the amount owned by the passed address
   */
  function balanceOf(address _owner) public view returns (uint256) {
    require(_owner != address(0));
    return ownedTokensCount[_owner];
  }

  /**
   * @dev Gets the owner of the specified token ID
   * @param _tokenId uint256 ID of the token to query the owner of
   * @return owner address currently marked as the owner of the given token ID
   */
  function ownerOf(uint256 _tokenId) public view returns (address) {
    address owner = tokenOwner[_tokenId];
    require(owner != address(0));
    return owner;
  }

  /**
   * @dev Returns whether the specified token exists
   * @param _tokenId uint256 ID of the token to query the existence of
   * @return whether the token exists
   */
  function exists(uint256 _tokenId) public view returns (bool) {
    address owner = tokenOwner[_tokenId];
    return owner != address(0);
  }

  /**
   * @dev Approves another address to transfer the given token ID
   * The zero address indicates there is no approved address.
   * There can only be one approved address per token at a given time.
   * Can only be called by the token owner or an approved operator.
   * @param _to address to be approved for the given token ID
   * @param _tokenId uint256 ID of the token to be approved
   */
  function approve(address _to, uint256 _tokenId) public {
    address owner = ownerOf(_tokenId);
    require(_to != owner);
    require(msg.sender == owner || isApprovedForAll(owner, msg.sender));

    tokenApprovals[_tokenId] = _to;
    emit Approval(owner, _to, _tokenId);
  }

  /**
   * @dev Gets the approved address for a token ID, or zero if no address set
   * @param _tokenId uint256 ID of the token to query the approval of
   * @return address currently approved for the given token ID
   */
  function getApproved(uint256 _tokenId) public view returns (address) {
    return tokenApprovals[_tokenId];
  }

  /**
   * @dev Sets or unsets the approval of a given operator
   * An operator is allowed to transfer all tokens of the sender on their behalf
   * @param _to operator address to set the approval
   * @param _approved representing the status of the approval to be set
   */
  function setApprovalForAll(address _to, bool _approved) public {
    require(_to != msg.sender);
    operatorApprovals[msg.sender][_to] = _approved;
    emit ApprovalForAll(msg.sender, _to, _approved);
  }

  /**
   * @dev Tells whether an operator is approved by a given owner
   * @param _owner owner address which you want to query the approval of
   * @param _operator operator address which you want to query the approval of
   * @return bool whether the given operator is approved by the given owner
   */
  function isApprovedForAll(
    address _owner,
    address _operator
  )
    public
    view
    returns (bool)
  {
    return operatorApprovals[_owner][_operator];
  }

  /**
   * @dev Transfers the ownership of a given token ID to another address
   * Usage of this method is discouraged, use `safeTransferFrom` whenever possible
   * Requires the msg sender to be the owner, approved, or operator
   * @param _from current owner of the token
   * @param _to address to receive the ownership of the given token ID
   * @param _tokenId uint256 ID of the token to be transferred
  */
  function transferFrom(
    address _from,
    address _to,
    uint256 _tokenId
  )
    public
  {
    require(isApprovedOrOwner(msg.sender, _tokenId));
    require(_from != address(0));
    require(_to != address(0));

    clearApproval(_from, _tokenId);
    removeTokenFrom(_from, _tokenId);
    addTokenTo(_to, _tokenId);

    emit Transfer(_from, _to, _tokenId);
  }

  /**
   * @dev Safely transfers the ownership of a given token ID to another address
   * If the target address is a contract, it must implement `onERC721Received`,
   * which is called upon a safe transfer, and return the magic value
   * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
   * the transfer is reverted.
   *
   * Requires the msg sender to be the owner, approved, or operator
   * @param _from current owner of the token
   * @param _to address to receive the ownership of the given token ID
   * @param _tokenId uint256 ID of the token to be transferred
  */
  function safeTransferFrom(
    address _from,
    address _to,
    uint256 _tokenId
  )
    public
  {
    // solium-disable-next-line arg-overflow
    safeTransferFrom(_from, _to, _tokenId, "");
  }

  /**
   * @dev Safely transfers the ownership of a given token ID to another address
   * If the target address is a contract, it must implement `onERC721Received`,
   * which is called upon a safe transfer, and return the magic value
   * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
   * the transfer is reverted.
   * Requires the msg sender to be the owner, approved, or operator
   * @param _from current owner of the token
   * @param _to address to receive the ownership of the given token ID
   * @param _tokenId uint256 ID of the token to be transferred
   * @param _data bytes data to send along with a safe transfer check
   */
  function safeTransferFrom(
    address _from,
    address _to,
    uint256 _tokenId,
    bytes _data
  )
    public
  {
    transferFrom(_from, _to, _tokenId);
    // solium-disable-next-line arg-overflow
    require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data));
  }

  /**
   * @dev Returns whether the given spender can transfer a given token ID
   * @param _spender address of the spender to query
   * @param _tokenId uint256 ID of the token to be transferred
   * @return bool whether the msg.sender is approved for the given token ID,
   *  is an operator of the owner, or is the owner of the token
   */
  function isApprovedOrOwner(
    address _spender,
    uint256 _tokenId
  )
    internal
    view
    returns (bool)
  {
    address owner = ownerOf(_tokenId);
    // Disable solium check because of
    // https://github.com/duaraghav8/Solium/issues/175
    // solium-disable-next-line operator-whitespace
    return (
      _spender == owner ||
      getApproved(_tokenId) == _spender ||
      isApprovedForAll(owner, _spender)
    );
  }

  /**
   * @dev Internal function to mint a new token
   * Reverts if the given token ID already exists
   * @param _to The address that will own the minted token
   * @param _tokenId uint256 ID of the token to be minted by the msg.sender
   */
  function _mint(address _to, uint256 _tokenId) internal {
    require(_to != address(0));
    addTokenTo(_to, _tokenId);
    emit Transfer(address(0), _to, _tokenId);
  }

  /**
   * @dev Internal function to burn a specific token
   * Reverts if the token does not exist
   * @param _tokenId uint256 ID of the token being burned by the msg.sender
   */
  function _burn(address _owner, uint256 _tokenId) internal {
    clearApproval(_owner, _tokenId);
    removeTokenFrom(_owner, _tokenId);
    emit Transfer(_owner, address(0), _tokenId);
  }

  /**
   * @dev Internal function to clear current approval of a given token ID
   * Reverts if the given address is not indeed the owner of the token
   * @param _owner owner of the token
   * @param _tokenId uint256 ID of the token to be transferred
   */
  function clearApproval(address _owner, uint256 _tokenId) internal {
    require(ownerOf(_tokenId) == _owner);
    if (tokenApprovals[_tokenId] != address(0)) {
      tokenApprovals[_tokenId] = address(0);
    }
  }

  /**
   * @dev Internal function to add a token ID to the list of a given address
   * @param _to address representing the new owner of the given token ID
   * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address
   */
  function addTokenTo(address _to, uint256 _tokenId) internal {
    require(tokenOwner[_tokenId] == address(0));
    tokenOwner[_tokenId] = _to;
    ownedTokensCount[_to] = ownedTokensCount[_to].add(1);
  }

  /**
   * @dev Internal function to remove a token ID from the list of a given address
   * @param _from address representing the previous owner of the given token ID
   * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address
   */
  function removeTokenFrom(address _from, uint256 _tokenId) internal {
    require(ownerOf(_tokenId) == _from);
    ownedTokensCount[_from] = ownedTokensCount[_from].sub(1);
    tokenOwner[_tokenId] = address(0);
  }

  /**
   * @dev Internal function to invoke `onERC721Received` on a target address
   * The call is not executed if the target address is not a contract
   * @param _from address representing the previous owner of the given token ID
   * @param _to target address that will receive the tokens
   * @param _tokenId uint256 ID of the token to be transferred
   * @param _data bytes optional data to send along with the call
   * @return whether the call correctly returned the expected magic value
   */
  function checkAndCallSafeTransfer(
    address _from,
    address _to,
    uint256 _tokenId,
    bytes _data
  )
    internal
    returns (bool)
  {
    if (!_to.isContract()) {
      return true;
    }
    bytes4 retval = ERC721Receiver(_to).onERC721Received(
      msg.sender, _from, _tokenId, _data);
    return (retval == ERC721_RECEIVED);
  }
}

// File: contracts/openzeppelin-origin/token/ERC721/ERC721Token.sol

/**
 * @title Full ERC721 Token
 * This implementation includes all the required and some optional functionality of the ERC721 standard
 * Moreover, it includes approve all functionality using operator terminology
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 {

  // Token name
  string internal name_;

  // Token symbol
  string internal symbol_;

  // Mapping from owner to list of owned token IDs
  mapping(address => uint256[]) internal ownedTokens;

  // Mapping from token ID to index of the owner tokens list
  mapping(uint256 => uint256) internal ownedTokensIndex;

  // Array with all token ids, used for enumeration
  uint256[] internal allTokens;

  // Mapping from token id to position in the allTokens array
  mapping(uint256 => uint256) internal allTokensIndex;

  // Optional mapping for token URIs
  mapping(uint256 => string) internal tokenURIs;

  /**
   * @dev Constructor function
   */
  constructor(string _name, string _symbol) public {
    name_ = _name;
    symbol_ = _symbol;

    // register the supported interfaces to conform to ERC721 via ERC165
    _registerInterface(InterfaceId_ERC721Enumerable);
    _registerInterface(InterfaceId_ERC721Metadata);
  }

  /**
   * @dev Gets the token name
   * @return string representing the token name
   */
  function name() external view returns (string) {
    return name_;
  }

  /**
   * @dev Gets the token symbol
   * @return string representing the token symbol
   */
  function symbol() external view returns (string) {
    return symbol_;
  }

  /**
   * @dev Returns an URI for a given token ID
   * Throws if the token ID does not exist. May return an empty string.
   * @param _tokenId uint256 ID of the token to query
   */
  function tokenURI(uint256 _tokenId) public view returns (string) {
    require(exists(_tokenId));
    return tokenURIs[_tokenId];
  }

  /**
   * @dev Gets the token ID at a given index of the tokens list of the requested owner
   * @param _owner address owning the tokens list to be accessed
   * @param _index uint256 representing the index to be accessed of the requested tokens list
   * @return uint256 token ID at the given index of the tokens list owned by the requested address
   */
  function tokenOfOwnerByIndex(
    address _owner,
    uint256 _index
  )
    public
    view
    returns (uint256)
  {
    require(_index < balanceOf(_owner));
    return ownedTokens[_owner][_index];
  }

  /**
   * @dev Gets the total amount of tokens stored by the contract
   * @return uint256 representing the total amount of tokens
   */
  function totalSupply() public view returns (uint256) {
    return allTokens.length;
  }

  /**
   * @dev Gets the token ID at a given index of all the tokens in this contract
   * Reverts if the index is greater or equal to the total number of tokens
   * @param _index uint256 representing the index to be accessed of the tokens list
   * @return uint256 token ID at the given index of the tokens list
   */
  function tokenByIndex(uint256 _index) public view returns (uint256) {
    require(_index < totalSupply());
    return allTokens[_index];
  }

  /**
   * @dev Internal function to set the token URI for a given token
   * Reverts if the token ID does not exist
   * @param _tokenId uint256 ID of the token to set its URI
   * @param _uri string URI to assign
   */
  function _setTokenURI(uint256 _tokenId, string _uri) internal {
    require(exists(_tokenId));
    tokenURIs[_tokenId] = _uri;
  }

  /**
   * @dev Internal function to add a token ID to the list of a given address
   * @param _to address representing the new owner of the given token ID
   * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address
   */
  function addTokenTo(address _to, uint256 _tokenId) internal {
    super.addTokenTo(_to, _tokenId);
    uint256 length = ownedTokens[_to].length;
    ownedTokens[_to].push(_tokenId);
    ownedTokensIndex[_tokenId] = length;
  }

  /**
   * @dev Internal function to remove a token ID from the list of a given address
   * @param _from address representing the previous owner of the given token ID
   * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address
   */
  function removeTokenFrom(address _from, uint256 _tokenId) internal {
    super.removeTokenFrom(_from, _tokenId);

    // To prevent a gap in the array, we store the last token in the index of the token to delete, and
    // then delete the last slot.
    uint256 tokenIndex = ownedTokensIndex[_tokenId];
    uint256 lastTokenIndex = ownedTokens[_from].length.sub(1);
    uint256 lastToken = ownedTokens[_from][lastTokenIndex];

    ownedTokens[_from][tokenIndex] = lastToken;
    // This also deletes the contents at the last position of the array
    ownedTokens[_from].length--;

    // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to
    // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping
    // the lastToken to the first position, and then dropping the element placed in the last position of the list

    ownedTokensIndex[_tokenId] = 0;
    ownedTokensIndex[lastToken] = tokenIndex;
  }

  /**
   * @dev Internal function to mint a new token
   * Reverts if the given token ID already exists
   * @param _to address the beneficiary that will own the minted token
   * @param _tokenId uint256 ID of the token to be minted by the msg.sender
   */
  function _mint(address _to, uint256 _tokenId) internal {
    super._mint(_to, _tokenId);

    allTokensIndex[_tokenId] = allTokens.length;
    allTokens.push(_tokenId);
  }

  /**
   * @dev Internal function to burn a specific token
   * Reverts if the token does not exist
   * @param _owner owner of the token to burn
   * @param _tokenId uint256 ID of the token being burned by the msg.sender
   */
  function _burn(address _owner, uint256 _tokenId) internal {
    super._burn(_owner, _tokenId);

    // Clear metadata (if any)
    if (bytes(tokenURIs[_tokenId]).length != 0) {
      delete tokenURIs[_tokenId];
    }

    // Reorg all tokens array
    uint256 tokenIndex = allTokensIndex[_tokenId];
    uint256 lastTokenIndex = allTokens.length.sub(1);
    uint256 lastToken = allTokens[lastTokenIndex];

    allTokens[tokenIndex] = lastToken;
    allTokens[lastTokenIndex] = 0;

    allTokens.length--;
    allTokensIndex[_tokenId] = 0;
    allTokensIndex[lastToken] = tokenIndex;
  }

}

// File: contracts/NokuCustomERC721.sol

/**
* @dev The NokuCustomERC721Token contract is a custom ERC721-compliant token available in the Noku Service Platform (NSP).
* The Noku customer is able to choose the token name, symbol, decimals, initial supply and to administer its lifecycle
* by minting or burning tokens in order to increase or decrease the token supply.
*/
contract NokuCustomERC721 is NokuCustomToken, ERC721Token, Issuable, Frozenlist, Whitelist {
    using SafeMath for uint256;
    enum StorageTypes { None, IPFS, NOKU }

    bool public isAdvanced = false;
    bool public mintingFinished = false;

    StorageTypes private storageType;
    string private tokenBaseURIValue = "";
    mapping (uint256 => string) private metadataURIs;

    event LogNokuCustomERC721Created(
        address indexed caller,
        string indexed name,
        string indexed symbol,
        address pricingPlan,
        address serviceProvider,
        string baseURI,
        StorageTypes _storageType
    );

    // event LogInformationChanged(
    //     address indexed caller, 
    //     string name, 
    //     string symbol
    // );

    event MintFinished();

    event FundsReassigned(address _from, address _to, uint256 _tokenId);
    event FundsRevoked(address _from, uint256 _tokenId);

    bytes32 public constant BURN_SERVICE_NAME = "NokuCustomERC721.burn";
    bytes32 public constant MINT_SERVICE_NAME = "NokuCustomERC721.mint";
    bytes32 public constant TRANSFERFROM_SERVICE_NAME = "NokuCustomERC721.transferFrom";

    bytes4 internal constant InterfaceId_ERC721Advanced = 0xdb1e569f;
    /**
    * 0xdb1e569f ===
    *   bytes4(keccak256('isERC721Advanced()'))
    */

    modifier canBurnToken(uint256 _tokenId) {
        require(isApprovedOrOwner(msg.sender, _tokenId));
        _;
    }

    modifier canTransfer(uint256 _tokenId) {
        require(isApprovedOrOwner(msg.sender, _tokenId));
        _;
    }

    modifier canMint() {
        require(!mintingFinished, 'Mint finished');
        _;
    }

    modifier isERC721Advanced() {
        require(isAdvanced, 'ERC721 Advanced functions not available');
        _;
    }

    modifier onlyIfNotFrozen(address _operator) {
        if (isAdvanced) {
            require(!hasRole(_operator, ROLE_FROZENLIST), "Account frozen");
        }
        _;
    }
    
    constructor (
        string _name,
        string _symbol,
        string _tokenBaseURI,
        bool _enableWhitelist,
        bool _isAdvanced,
        StorageTypes _storageType,
        address _pricingPlan,
        address _serviceProvider
    )
    NokuCustomToken(_pricingPlan, _serviceProvider)
    ERC721Token(_name, _symbol)
    Whitelist(_enableWhitelist)
    public
    {
        _registerInterface(InterfaceId_ERC721Advanced);
        isAdvanced = _isAdvanced;

        addIssuer(owner);
        if(_enableWhitelist) {
            addAddressToWhitelist(owner);
        }

        require(bytes(_name).length > 0, "_name is empty");
        require(bytes(_symbol).length > 0, "_symbol is empty");

        if(bytes(_tokenBaseURI).length > 0){
            tokenBaseURIValue = _tokenBaseURI;
        }


        storageType = _storageType;

        emit LogNokuCustomERC721Created(
            msg.sender,
            _name,
            _symbol,
            _pricingPlan,
            _serviceProvider,
            _tokenBaseURI,
            _storageType
        );
    }

    // function setInformation(string _name, string _symbol) public onlyOwner returns(bool successful) {
    //     require(bytes(_name).length > 0, "_name is empty");
    //     require(bytes(_symbol).length > 0, "_symbol is empty");

    //     name_ = _name;
    //     symbol_ = _symbol;

        // emit LogInformationChanged(msg.sender, _name, _symbol);

    //     return true;
    // }

    function getStorageType() public view returns(StorageTypes) {
        return storageType;
    }

    function tokenURI(uint256 _tokenId) public view returns (string memory) {
        require(exists(_tokenId), "tokenId does not exist");
        if(getStorageType() == StorageTypes.IPFS) {
            return tokenMetadataURI(_tokenId);
        } else if(getStorageType() == StorageTypes.NOKU) {
            string memory partialPath = string(abi.encodePacked(tokenBaseURIValue, toString(this)));
            return string(abi.encodePacked(string(abi.encodePacked(partialPath, "/")), uint2str(_tokenId)));
        } else {
            return string(abi.encodePacked(tokenBaseURIValue, uint2str(_tokenId)));
        }
    }

    function tokenBaseURI() public view returns (string) {
        return tokenBaseURIValue;
    }

    function updateTokenBaseURI(string memory _newBaseURI) public onlyOwner {
        tokenBaseURIValue = _newBaseURI;
    }

    function updateTokenMetadataURI(uint256 _tokenId, string _tokenMetadataURI) public onlyOwner {
        require(exists(_tokenId), "tokenId does not exist");
        _setTokenMetadataURI(_tokenId, _tokenMetadataURI);
    }

    function tokenMetadataURI(uint256 _tokenId) public view returns (string) {
        return metadataURIs[_tokenId];
    }

    function mint(uint256 _tokenId, address _to) public onlyOwner {
        _mint(_tokenId, _to, "");
    }

    function mint(uint256 _tokenId, address _to, string _tokenMetadataURI) public onlyOwner {
        _mint(_tokenId, _to, _tokenMetadataURI);
    }

    function multipleMint(uint256[] _tokensIds, address _to) public onlyOwner {
        _multipleMint(_tokensIds, _to, "");
    }

    function multipleMint(uint256[] _tokensIds, address _to, string _tokenMetadataURI) public onlyOwner {
        _multipleMint(_tokensIds, _to, _tokenMetadataURI);
    }

    function safeMint(uint256 _tokenId, address _to) public onlyOwner {
        _safeMint(_tokenId, _to, "", "");
    }

    function safeMint(uint256 _tokenId, address _to, bytes memory _data) public onlyOwner {
        _safeMint(_tokenId, _to, "", _data);
    }

    function safeMint(uint256 _tokenId, address _to, string _tokenMetadataURI) public onlyOwner {
        _safeMint(_tokenId, _to, _tokenMetadataURI, "");
    }

    function safeMint(uint256 _tokenId, address _to, string _tokenMetadataURI, bytes memory _data) public onlyOwner {
        _safeMint(_tokenId, _to, _tokenMetadataURI, _data);
    }

    function multipleSafeMint(uint256[] _tokensIds, address _to) public onlyOwner {
        _multipleSafeMint(_tokensIds, _to, "", "");
    }

    function multipleSafeMint(uint256[] _tokensIds, address _to, bytes memory _data) public onlyOwner {
        _multipleSafeMint(_tokensIds, _to, "", _data);
    }

    function multipleSafeMint(uint256[] _tokensIds, address _to, string _tokenMetadataURI) public onlyOwner {
        _multipleSafeMint(_tokensIds, _to, _tokenMetadataURI, "");
    }

    function multipleSafeMint(uint256[] _tokensIds, address _to, string _tokenMetadataURI, bytes memory _data) public onlyOwner {
        _multipleSafeMint(_tokensIds, _to, _tokenMetadataURI, _data);
    }

    function burn(uint256 _tokenId) public canBurn canBurnToken(_tokenId) onlyIfNotFrozen(msg.sender) {
        if (bytes(metadataURIs[_tokenId]).length != 0) {
            delete metadataURIs[_tokenId];
        }
        super._burn(ownerOf(_tokenId), _tokenId);
        require(pricingPlan.payFee(BURN_SERVICE_NAME, 1 * 10**18, msg.sender), "burn fee payment failed");
    }

    function transferFrom(address _from, address _to, uint256 _tokenId) public onlyIfNotFrozen(_from) onlyIfNotFrozen(_to) onlyIfWhitelisted(_to) canTransfer(_tokenId) {
        super.transferFrom(_from, _to, _tokenId);
        require(pricingPlan.payFee(TRANSFERFROM_SERVICE_NAME, 1 * 10**18, msg.sender), "transferFrom fee payment failed");
    }

    function finishMinting() onlyOwner canMint public returns (bool) {
        mintingFinished = true;
        emit MintFinished();
        return true;
    }

    function reassign(address _from, address _to, uint256 _tokenId) public onlyIssuer isERC721Advanced {
        clearApproval(_from, _tokenId);
        removeTokenFrom(_from, _tokenId);
        addTokenTo(_to, _tokenId);

        emit Transfer(_from, _to, _tokenId);
        emit FundsReassigned(_from, _to, _tokenId);
    }

    function revoke(address _from, uint256 _tokenId) public onlyIssuer isERC721Advanced {
        clearApproval(_from, _tokenId);
        removeTokenFrom(_from, _tokenId);
        addTokenTo(msg.sender, _tokenId);

        emit Transfer(_from, msg.sender, _tokenId);
        emit FundsRevoked(_from, _tokenId);
    }

    function transferOwnership(address _newOwner) public onlyOwner {
        if(isIssuer(owner)) {
            if(whitelistEnabled) {
                removeAddressFromWhitelist(owner);
                addAddressToWhitelist(_newOwner);
            }
            transferIssuer(_newOwner);
        }
        super.transferOwnership(_newOwner);
    }

    function renounceOwnership() public onlyOwner {
        if(whitelistEnabled) {
            removeAddressFromWhitelist(owner);
        }
        removeIssuer(owner);
        super.renounceOwnership();
    }

    function addAddressToFrozenlist(address _operator) public isERC721Advanced {
        super.addAddressToFrozenlist(_operator);
    }

    function removeAddressFromFrozenlist(address _operator) public isERC721Advanced {
        super.removeAddressFromFrozenlist(_operator);
    }

    //Internal functions

    function _mint(uint256 _tokenId, address _to, string _tokenMetadataURI) canMint onlyIfNotFrozen(_to) onlyIfWhitelisted(_to) internal returns (uint256) {
        require(!exists(_tokenId), 'tokenId already exists');

        if (storageType == StorageTypes.IPFS) {
            require(bytes(_tokenMetadataURI).length > 0, "missing IPFS uri");
        } else if (storageType == StorageTypes.NOKU) {
            require(bytes(_tokenMetadataURI).length > 0, "missing Noku uri");
        }

        super._mint(_to, _tokenId);
        _setTokenMetadataURI(_tokenId, _tokenMetadataURI);

        require(pricingPlan.payFee(MINT_SERVICE_NAME, 1 * 10**18, msg.sender), "mint fee payment failed");

        return _tokenId;
    }

    function _multipleMint(uint256[] _tokensIds, address _to, string _tokenMetadataURI) internal {
        for(uint256 i = 0; i < _tokensIds.length; i++) {
            _mint(_tokensIds[i], _to, _tokenMetadataURI);
        }
    }

    function _safeMint(uint256 _tokenId, address _to, string _tokenMetadataURI, bytes memory _data) internal returns (uint256) {
        _mint(_tokenId, _to, _tokenMetadataURI);
        require(checkAndCallSafeTransfer(address(0), _to, _tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
        return _tokenId;
    }

    function _multipleSafeMint(uint256[] _tokensIds, address _to, string _tokenMetadataURI, bytes memory _data) internal {
        for(uint256 i = 0; i < _tokensIds.length; i++) {
            _safeMint(_tokensIds[i], _to, _tokenMetadataURI, _data);
        }
    }

    function _setTokenMetadataURI(uint256 _tokenId, string _tokenMetadataURI) internal {
        if (storageType != StorageTypes.None) {
            metadataURIs[_tokenId] = _tokenMetadataURI;
        }
    }

    function uint2str(uint i) internal pure returns (string) {
        if (i == 0) return "0";
        uint j = i;
        uint length;
        while (j != 0){
            length++;
            j /= 10;
        }
        bytes memory bstr = new bytes(length);
        uint k = length - 1;
        while (i != 0){
            bstr[k--] = byte(48 + i % 10);
            i /= 10;
        }
        return string(bstr);
    }

    function toString(address _addr) internal pure returns (string) {
        bytes32 value = bytes32(uint256(_addr));
        bytes memory alphabet = "0123456789abcdef";

        bytes memory str = new bytes(42);
        str[0] = "0";
        str[1] = "x";
        for (uint i = 0; i < 20; i++) {
            str[2+i*2] = alphabet[uint(uint8(value[i + 12] >> 4))];
            str[3+i*2] = alphabet[uint(uint8(value[i + 12] & 0x0f))];
        }
        return string(str);
    }

    //Private functions

}

// File: node_modules/openzeppelin-solidity/contracts/lifecycle/Pausable.sol

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


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

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

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    emit Unpause();
  }
}

// File: contracts/NokuCustomService.sol

contract NokuCustomService is Pausable {
    using AddressUtils for address;

    event LogPricingPlanChanged(address indexed caller, address indexed pricingPlan);

    // The pricing plan determining the fee to be paid in NOKU tokens by customers
    NokuPricingPlan public pricingPlan;

    constructor(address _pricingPlan) internal {
        require(_pricingPlan.isContract(), "_pricingPlan is not contract");

        pricingPlan = NokuPricingPlan(_pricingPlan);
    }

    function setPricingPlan(address _pricingPlan) public onlyOwner {
        require(_pricingPlan.isContract(), "_pricingPlan is not contract");
        require(NokuPricingPlan(_pricingPlan) != pricingPlan, "_pricingPlan equal to current");
        
        pricingPlan = NokuPricingPlan(_pricingPlan);

        emit LogPricingPlanChanged(msg.sender, _pricingPlan);
    }
}

// File: contracts/NokuCustomERC721Service.sol

/**
* @dev The NokuCustomERC721Service contract .
*/
contract NokuCustomERC721Service is NokuCustomService {
    event LogNokuCustomERC721ServiceCreated(address caller, address indexed _pricingPlan);

    uint256 public constant CREATE_AMOUNT = 1 * 10**18;

    bytes32 public constant CREATE_SERVICE_NAME = "NokuCustomERC721.create";

    constructor(address _pricingPlan) NokuCustomService(_pricingPlan) public {
        emit LogNokuCustomERC721ServiceCreated(msg.sender, _pricingPlan);
    }

    function createCustomToken(string _name, string _symbol, string _tokenBaseURI, bool _enableWhitelist, bool _isAdvanced, NokuCustomERC721.StorageTypes _storageType, NokuPricingPlan _pricingPlan) public returns(NokuCustomERC721 customToken) {
        customToken = new NokuCustomERC721(
            _name,
            _symbol,
            _tokenBaseURI,
            _enableWhitelist,
            _isAdvanced,
            _storageType,
            _pricingPlan,
            owner
        );

        // Transfer NokuCustomERC721 ownership to the client
        customToken.transferOwnership(msg.sender);

        require(_pricingPlan.payFee(CREATE_SERVICE_NAME, CREATE_AMOUNT, msg.sender), "fee payment failed");
    }

}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_pricingPlan","type":"address"}],"name":"setPricingPlan","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"CREATE_SERVICE_NAME","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"pricingPlan","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_tokenBaseURI","type":"string"},{"name":"_enableWhitelist","type":"bool"},{"name":"_isAdvanced","type":"bool"},{"name":"_storageType","type":"uint8"},{"name":"_pricingPlan","type":"address"}],"name":"createCustomToken","outputs":[{"name":"customToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"CREATE_AMOUNT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_pricingPlan","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"caller","type":"address"},{"indexed":true,"name":"_pricingPlan","type":"address"}],"name":"LogNokuCustomERC721ServiceCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"caller","type":"address"},{"indexed":true,"name":"pricingPlan","type":"address"}],"name":"LogPricingPlanChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60806040526000805460a060020a60ff021916905534801561002057600080fd5b50604051602080615fa6833981016040525160008054600160a060020a0319163317905580610064600160a060020a038216640100000000610a3b61012b82021704565b15156100d157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5f70726963696e67506c616e206973206e6f7420636f6e747261637400000000604482015290519081900360640190fd5b60018054600160a060020a031916600160a060020a03928316179055604080513381529051918316917f32304fbee785573fc60b9ef2b733d474257f4d947528143f3ace13e3380d6288916020908290030190a250610133565b6000903b1190565b615e64806101426000396000f300608060405260043610620000ba5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a8114620000bf57806345fc916c14620000d95780635c975abb14620000fd578063649643fc1462000129578063715018a614620001535780638456cb59146200016b5780638da5cb5b1462000183578063d6c12f8814620001b7578063d8b4a2e414620001cf578063f2fde38b14620002c8578063f97944e014620002ec575b600080fd5b348015620000cc57600080fd5b50620000d762000304565b005b348015620000e657600080fd5b50620000d7600160a060020a03600435166200038d565b3480156200010a57600080fd5b5062000115620004fe565b604080519115158252519081900360200190f35b3480156200013657600080fd5b50620001416200051f565b60408051918252519081900360200190f35b3480156200016057600080fd5b50620000d762000543565b3480156200017857600080fd5b50620000d7620005b0565b3480156200019057600080fd5b506200019b6200064f565b60408051600160a060020a039092168252519081900360200190f35b348015620001c457600080fd5b506200019b6200065e565b348015620001dc57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526200019b94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375094975050505082351515935050506020810135151590604081013560ff169060600135600160a060020a03166200066d565b348015620002d557600080fd5b50620000d7600160a060020a036004351662000a09565b348015620002f957600080fd5b506200014162000a2f565b600054600160a060020a031633146200031c57600080fd5b60005474010000000000000000000000000000000000000000900460ff1615156200034657600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b600054600160a060020a03163314620003a557600080fd5b620003b981600160a060020a031662000a3b565b15156200042757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5f70726963696e67506c616e206973206e6f7420636f6e747261637400000000604482015290519081900360640190fd5b600154600160a060020a0382811691161415620004a557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5f70726963696e67506c616e20657175616c20746f2063757272656e74000000604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03831690811790915560405133907f9c9a71911f32ca6a40ea2146f75e1c43335f2862b3c1c9696d22cd10e86311c290600090a350565b60005474010000000000000000000000000000000000000000900460ff1681565b7f4e6f6b75437573746f6d4552433732312e63726561746500000000000000000081565b600054600160a060020a031633146200055b57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a03163314620005c857600080fd5b60005474010000000000000000000000000000000000000000900460ff1615620005f157600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600154600160a060020a031681565b6000878787878787876000809054906101000a9004600160a060020a03166200069562000ac1565b8515156060820152841515608082015280602081016040820160a08301876002811115620006bf57fe5b60ff16815260200186600160a060020a0316600160a060020a0316815260200185600160a060020a0316600160a060020a0316815260200184810384528c818151815260200191508051906020019080838360005b838110156200072e57818101518382015260200162000714565b50505050905090810190601f1680156200075c5780820380516001836020036101000a031916815260200191505b5084810383528b5181528b516020918201918d019080838360005b838110156200079157818101518382015260200162000777565b50505050905090810190601f168015620007bf5780820380516001836020036101000a031916815260200191505b5084810382528a5181528a516020918201918c019080838360005b83811015620007f4578181015183820152602001620007da565b50505050905090810190601f168015620008225780820380516001836020036101000a031916815260200191505b509b505050505050505050505050604051809103906000f0801580156200084d573d6000803e3d6000fd5b50604080517ff2fde38b0000000000000000000000000000000000000000000000000000000081523360048201529051919250600160a060020a0383169163f2fde38b9160248082019260009290919082900301818387803b158015620008b357600080fd5b505af1158015620008c8573d6000803e3d6000fd5b5050604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e6372656174650000000000000000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a038616935063d30b5386925060648083019260209291908290030181600087803b1580156200096257600080fd5b505af115801562000977573d6000803e3d6000fd5b505050506040513d60208110156200098e57600080fd5b50511515620009fe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f666565207061796d656e74206661696c65640000000000000000000000000000604482015290519081900360640190fd5b979650505050505050565b600054600160a060020a0316331462000a2157600080fd5b62000a2c8162000a43565b50565b670de0b6b3a764000081565b6000903b1190565b600160a060020a038116151562000a5957600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6040516153668062000ad38339019056006010805462ffff001916905560a0604081905260006080819052620000279160119162000a72565b503480156200003557600080fd5b50604051620053663803806200536683398101604090815281516020830151918301516060840151608085015160a086015160c087015160e088015160008054600160a060020a0319163317905595880197968701969490940194929391929091908488888484600160a060020a03821615156200011457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5f70726963696e67506c616e206973207a65726f000000000000000000000000604482015290519081900360640190fd5b600160a060020a03811615156200018c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f5f7365727669636550726f7669646572206973207a65726f0000000000000000604482015290519081900360640190fd5b60018054600160a060020a03938416600160a060020a03199182161790915560028054929093169116179055620001ec7f01ffc9a7000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b620002207f80ac58cd000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b620002547f4f558e79000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b81516200026990600890602085019062000a72565b5080516200027f90600990602084019062000a72565b50620002b47f780e9d63000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b620002e87f5b5e139f000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b50506010805460ff19169115159190911790556200032f7fdb1e569f000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b6010805461ff001916610100861515021790556000546200036290600160a060020a0316640100000000620006b8810204565b841562000389576000546200038990600160a060020a031664010000000062000723810204565b8751600010620003fa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5f6e616d6520697320656d707479000000000000000000000000000000000000604482015290519081900360640190fd5b86516000106200046b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5f73796d626f6c20697320656d70747900000000000000000000000000000000604482015290519081900360640190fd5b6000865111156200048d5785516200048b90601190602089019062000a72565b505b6010805484919063ff00000019166301000000836002811115620004ad57fe5b0217905550866040518082805190602001908083835b60208310620004e45780518252601f199092019160209182019101620004c3565b51815160209384036101000a60001901801990921691161790526040519190930181900381208d519095508d945090928392508401908083835b602083106200053f5780518252601f1990920191602091820191016200051e565b51815160209384036101000a600019018019909216911617905260408051929094018290038220600160a060020a038a8116845289169183019190915294503393507f9bd51abec30bc7dd974b1b90f6c3a5538db76039f201c7c6b908d0bd30c1a3e19288925087918d918b9190810160608201836002811115620005c057fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b83811015620005ff578181015183820152602001620005e5565b50505050905090810190601f1680156200062d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4505050505050505062000b17565b7fffffffff0000000000000000000000000000000000000000000000000000000080821614156200067b57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152600360205260409020805460ff19166001179055565b600054600160a060020a03163314620006d057600080fd5b62000720816040805190810160405280600681526020017f69737375657200000000000000000000000000000000000000000000000000008152506200081b640100000000026401000000009004565b50565b620007373364010000000062000951810204565b1515620007cb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4973737561626c653a2063616c6c6572206973206e6f7420746865206973737560448201527f6572000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b62000720816040805190810160405280600981526020017f77686974656c69737400000000000000000000000000000000000000000000008152506200081b640100000000026401000000009004565b6200089782600f836040518082805190602001908083835b60208310620008545780518252601f19909201916020918201910162000833565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050640100000000620009a98102620043561704565b7fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b70048982826040518083600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101562000911578181015183820152602001620008f7565b50505050905090810190601f1680156200093f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000620009a3826040805190810160405280600681526020017f6973737565720000000000000000000000000000000000000000000000000000815250620009ce640100000000026401000000009004565b92915050565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600062000a4c83600f846040518082805190602001908083835b6020831062000a095780518252601f199092019160209182019101620009e8565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209291505064010000000062000a538102620035301704565b9392505050565b600160a060020a03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000ab557805160ff191683800117855562000ae5565b8280016001018555821562000ae5579182015b8281111562000ae557825182559160200191906001019062000ac8565b5062000af392915062000af7565b5090565b62000b1491905b8082111562000af3576000815560010162000afe565b90565b61483f8062000b276000396000f30060806040526004361061036e5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461037357806305d1a946146103a957806305d2035b146103be57806306fdde03146103d3578063081812fc1461045d57806308a59b9414610491578063095ea7b3146105355780630988ca8c146105595780630f02307b146105c0578063157c3df91461062957806318160ddd1461064157806318b919e91461066857806319fa8f501461067d5780631afe839c146106af57806320391f06146106d057806320694db014610730578063217fe6c6146107515780632295ee5b146107b857806323b872dd1461081157806324953eaa1461083b57806327f8237d14610890578063286dd3f5146108c95780632f745c59146108ea57806342842e0e1461090e57806342966c6814610938578063459f659a1461095057806345fc916c1461097157806347bc7093146109925780634e99b800146109b35780634f558e79146109c85780634f6ccce7146109e057806351fb012d146109f85780635294412314610a0d57806362bdfceb14610a375780636352211e14610a5b578063664944dc14610a735780636849cb9d14610a9457806370a0823114610ab5578063715018a614610ad657806375682e7914610aeb578063794d385014610b495780637b9417c814610b5e5780637d64bcb414610b7f5780637def32f114610b9457806382b30d0614610c3657806384646af114610cd8578063877b9a6714610d385780638b4dd22914610d595780638d69e95e14610dae5780638da5cb5b14610dc35780638f0fe82a14610dd85780639100c56014610e7f57806394bf804d14610e94578063951530f714610eb857806395d89b4114610ecd5780639b19251a14610ee2578063a22cb46514610f03578063a372b26f14610f29578063a40ac7f914610f7e578063b025b3fa14610f93578063b038693114610fa8578063b88d4fde14611088578063c1688c3e146110f7578063c87b56dd1461110c578063cdfb2b4e14611124578063d6b0f48414611139578063d6c12f881461114e578063d8bf0ef814611163578063e2ec6ec314611178578063e67e402c146111cd578063e6f1a18914611236578063e985e9c51461124b578063eac449d914611272578063f2fde38b14611296578063f626cf2c146112b7575b600080fd5b34801561037f57600080fd5b50610395600160e060020a031960043516611320565b604080519115158252519081900360200190f35b3480156103b557600080fd5b5061039561133f565b3480156103ca57600080fd5b50610395611360565b3480156103df57600080fd5b506103e861136f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561042257818101518382015260200161040a565b50505050905090810190601f16801561044f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046957600080fd5b50610475600435611406565b60408051600160a060020a039092168252519081900360200190f35b34801561049d57600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a9099940197509195509182019350915081908401838280828437509497506114219650505050505050565b005b34801561054157600080fd5b50610533600160a060020a0360043516602435611459565b34801561056557600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610533958335600160a060020a03169536956044949193909101919081908401838280828437509497506115029650505050505050565b3480156105cc57600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a0316953695946064949201919081908401838280828437509497506115709650505050505050565b34801561063557600080fd5b506103e86004356115a9565b34801561064d57600080fd5b5061065661164a565b60408051918252519081900360200190f35b34801561067457600080fd5b506103e8611650565b34801561068957600080fd5b50610692611675565b60408051600160e060020a03199092168252519081900360200190f35b3480156106bb57600080fd5b50610533600160a060020a0360043516611699565b3480156106dc57600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375094975050509235600160a060020a0316935061170892505050565b34801561073c57600080fd5b50610533600160a060020a036004351661174b565b34801561075d57600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610395958335600160a060020a031695369560449491939091019190819084018382808284375094975061178f9650505050505050565b3480156107c457600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526105339436949293602493928401919081908401838280828437509497506118029650505050505050565b34801561081d57600080fd5b50610533600160a060020a036004358116906024351660443561182c565b34801561084757600080fd5b506040805160206004803580820135838102808601850190965280855261053395369593946024949385019291829185019084908082843750949750611ab09650505050505050565b34801561089c57600080fd5b506108a5611b42565b604051808260028111156108b557fe5b60ff16815260200191505060405180910390f35b3480156108d557600080fd5b50610533600160a060020a0360043516611b52565b3480156108f657600080fd5b50610656600160a060020a0360043516602435611bda565b34801561091a57600080fd5b50610533600160a060020a0360043581169060243516604435611c27565b34801561094457600080fd5b50610533600435611c43565b34801561095c57600080fd5b50610533600160a060020a0360043516611eba565b34801561097d57600080fd5b50610533600160a060020a0360043516611f26565b34801561099e57600080fd5b50610533600160a060020a036004351661209a565b3480156109bf57600080fd5b506103e86120de565b3480156109d457600080fd5b5061039560043561213f565b3480156109ec57600080fd5b50610656600435612162565b348015610a0457600080fd5b50610395612197565b348015610a1957600080fd5b50610533600160a060020a03600435811690602435166044356121a0565b348015610a4357600080fd5b50610533600435600160a060020a03602435166122fa565b348015610a6757600080fd5b5061047560043561233d565b348015610a7f57600080fd5b50610395600160a060020a0360043516612367565b348015610aa057600080fd5b50610533600160a060020a0360043516612396565b348015610ac157600080fd5b50610656600160a060020a0360043516612433565b348015610ae257600080fd5b50610533612466565b348015610af757600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526105339583359536956044949193909101919081908401838280828437509497506124bc9650505050505050565b348015610b5557600080fd5b506103e861253c565b348015610b6a57600080fd5b50610533600160a060020a0360043516612561565b348015610b8b57600080fd5b506103956125e9565b348015610ba057600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a9099940197509195509182019350915081908401838280828437509497506126a29650505050505050565b348015610c4257600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a9099940197509195509182019350915081908401838280828437509497506126d59650505050505050565b348015610ce457600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375094975050509235600160a060020a031693506126f792505050565b348015610d4457600080fd5b50610395600160a060020a0360043516612729565b348015610d6557600080fd5b5060408051602060048035808201358381028086018501909652808552610533953695939460249493850192918291850190849080828437509497506127589650505050505050565b348015610dba57600080fd5b506104756127ea565b348015610dcf57600080fd5b506104756127f9565b348015610de457600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a03169536959460649492019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506128089650505050505050565b348015610e8b57600080fd5b50610395612832565b348015610ea057600080fd5b50610533600435600160a060020a0360243516612840565b348015610ec457600080fd5b506103e8612872565b348015610ed957600080fd5b506103e8612897565b348015610eee57600080fd5b50610395600160a060020a03600435166128f8565b348015610f0f57600080fd5b50610533600160a060020a03600435166024351515612927565b348015610f3557600080fd5b5060408051602060048035808201358381028086018501909652808552610533953695939460249493850192918291850190849080828437509497506129ab9650505050505050565b348015610f8a57600080fd5b50610656612a3d565b348015610f9f57600080fd5b50610656612a61565b348015610fb457600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a90999401975091955091820193509150819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a999881019791965091820194509250829150840183828082843750949750612a859650505050505050565b34801561109457600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261053394600160a060020a038135811695602480359092169560443595369560849401918190840183828082843750949750612aa89650505050505050565b34801561110357600080fd5b50610656612aca565b34801561111857600080fd5b506103e8600435612aee565b34801561113057600080fd5b50610533612e44565b34801561114557600080fd5b50610533612e6a565b34801561115a57600080fd5b50610475612e8d565b34801561116f57600080fd5b50610395612e9c565b34801561118457600080fd5b506040805160206004803580820135838102808601850190965280855261053395369593946024949385019291829185019084908082843750949750612f8b9650505050505050565b3480156111d957600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a03169536959460649492019190819084018382808284375094975061301d9650505050505050565b34801561124257600080fd5b5061039561303f565b34801561125757600080fd5b50610395600160a060020a0360043581169060243516613044565b34801561127e57600080fd5b50610533600160a060020a0360043516602435613072565b3480156112a257600080fd5b50610533600160a060020a03600435166131bc565b3480156112c357600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a0316953695946064949201919081908401838280828437509497506132289650505050505050565b600160e060020a03191660009081526003602052604090205460ff1690565b60025474010000000000000000000000000000000000000000900460ff1681565b60105462010000900460ff1681565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113fb5780601f106113d0576101008083540402835291602001916113fb565b820191906000526020600020905b8154815290600101906020018083116113de57829003601f168201915b505050505090505b90565b600090815260056020526040902054600160a060020a031690565b600054600160a060020a0316331461143857600080fd5b611454838360206040519081016040528060008152508461325b565b505050565b60006114648261233d565b9050600160a060020a03838116908216141561147f57600080fd5b33600160a060020a038216148061149b575061149b8133613044565b15156114a657600080fd5b6000828152600560205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61156c82600f836040518082805190602001908083835b602083106115385780518252601f199092019160209182019101611519565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050613293565b5050565b600054600160a060020a0316331461158757600080fd5b6115a383836020604051908101604052806000815250846132a8565b50505050565b60008181526012602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561163e5780601f106116135761010080835404028352916020019161163e565b820191906000526020600020905b81548152906001019060200180831161162157829003601f168201915b50505050509050919050565b600c5490565b6040805180820190915260098152600080516020614714833981519152602082015281565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b601054610100900460ff1615156116fc576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b61170581613348565b50565b600054600160a060020a0316331461171f57600080fd5b61156c82826020604051908101604052806000815250602060405190810160405280600081525061325b565b600054600160a060020a0316331461176257600080fd5b6117058160408051908101604052806006815260200160008051602061477483398151915281525061340f565b60006117fb83600f846040518082805190602001908083835b602083106117c75780518252601f1990920191602091820191016117a8565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050613530565b9392505050565b600054600160a060020a0316331461181957600080fd5b805161156c906011906020840190614617565b6010548390610100900460ff16156118ae5761186b816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b156118ae576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b6010548390610100900460ff1615611930576118ed816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b15611930576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b601054849060ff161561196a5761196a81604080519081016040528060098152602001600080516020614714833981519152815250611502565b83611975338261354f565b151561198057600080fd5b61198b8787876135ae565b600154604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e7472616e7366657246726f6d0000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a039092169163d30b5386916064808201926020929091908290030181600087803b158015611a2557600080fd5b505af1158015611a39573d6000803e3d6000fd5b505050506040513d6020811015611a4f57600080fd5b50511515611aa7576040805160e560020a62461bcd02815260206004820152601f60248201527f7472616e7366657246726f6d20666565207061796d656e74206661696c656400604482015290519081900360640190fd5b50505050505050565b6000611abb33612729565b1515611b0d576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c57611b3a8282815181101515611b2b57fe5b90602001906020020151611b52565b600101611b11565b6010546301000000900460ff1690565b611b5b33612729565b1515611bad576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b6117058160408051908101604052806009815260200160008051602061471483398151915281525061363f565b6000611be583612433565b8210611bf057600080fd5b600160a060020a0383166000908152600a60205260409020805483908110611c1457fe5b9060005260206000200154905092915050565b6114548383836020604051908101604052806000815250612aa8565b60025474010000000000000000000000000000000000000000900460ff1615611cb6576040805160e560020a62461bcd02815260206004820152601060248201527f6275726e696e672066696e697368656400000000000000000000000000000000604482015290519081900360640190fd5b80611cc1338261354f565b1515611ccc57600080fd5b6010543390610100900460ff1615611d4e57611d0b816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b15611d4e576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b6000838152601260205260409020546002600019610100600184161502019091160415611d8c576000838152601260205260408120611d8c91614695565b611d9e611d988461233d565b84613720565b600154604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e6275726e00000000000000000000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a039092169163d30b5386916064808201926020929091908290030181600087803b158015611e3857600080fd5b505af1158015611e4c573d6000803e3d6000fd5b505050506040513d6020811015611e6257600080fd5b50511515611454576040805160e560020a62461bcd02815260206004820152601760248201527f6275726e20666565207061796d656e74206661696c6564000000000000000000604482015290519081900360640190fd5b601054610100900460ff161515611f1d576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b6117058161381a565b600254600160a060020a03163314611f88576040805160e560020a62461bcd02815260206004820152601e60248201527f63616c6c6572206973206e6f7420736572766963652070726f76696465720000604482015290519081900360640190fd5b600160a060020a0381161515611fe8576040805160e560020a62461bcd02815260206004820152601160248201527f5f70726963696e67506c616e2069732030000000000000000000000000000000604482015290519081900360640190fd5b600154600160a060020a038281169116141561204e576040805160e560020a62461bcd02815260206004820152601b60248201527f5f70726963696e67506c616e203d3d2070726963696e67506c616e0000000000604482015290519081900360640190fd5b60018054600160a060020a031916600160a060020a03831690811790915560405133907f9c9a71911f32ca6a40ea2146f75e1c43335f2862b3c1c9696d22cd10e86311c290600090a350565b600054600160a060020a031633146120b157600080fd5b6117058160408051908101604052806006815260200160008051602061477483398151915281525061363f565b60118054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113fb5780601f106113d0576101008083540402835291602001916113fb565b600081815260046020526040902054600160a060020a0316801515905b50919050565b600061216c61164a565b821061217757600080fd5b600c80548390811061218557fe5b90600052602060002001549050919050565b60105460ff1681565b6121a933612729565b15156121fb576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b601054610100900460ff16151561225e576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b61226883826138a2565b6122728382613904565b61227c8282613a0b565b8082600160a060020a031684600160a060020a03166000805160206147d483398151915260405160405180910390a460408051600160a060020a0380861682528416602082015280820183905290517f95791f1c4aac383dc757e59da6599f6317ec2579228e1a9eeeafb80d7418c5349181900360600190a1505050565b600054600160a060020a0316331461231157600080fd5b6114548282602060405190810160405280600081525060206040519081016040528060008152506132a8565b600081815260046020526040812054600160a060020a031680151561236157600080fd5b92915050565b6000612361826040805190810160405280600a815260200160008051602061473483398151915281525061178f565b61239f33612729565b15156123f1576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b600160a060020a038116151561240657600080fd5b6117623360408051908101604052806006815260200160008051602061477483398151915281525061363f565b6000600160a060020a038216151561244a57600080fd5b50600160a060020a031660009081526006602052604090205490565b600054600160a060020a0316331461247d57600080fd5b60105460ff161561249d5760005461249d90600160a060020a0316611b52565b6000546124b290600160a060020a031661209a565b6124ba613a54565b565b600054600160a060020a031633146124d357600080fd5b6124dc8261213f565b1515612532576040805160e560020a62461bcd02815260206004820152601660248201527f746f6b656e496420646f6573206e6f7420657869737400000000000000000000604482015290519081900360640190fd5b61156c8282613ab3565b6040805180820190915260068152600080516020614774833981519152602082015281565b61256a33612729565b15156125bc576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b6117058160408051908101604052806009815260200160008051602061471483398151915281525061340f565b60008054600160a060020a0316331461260157600080fd5b60105462010000900460ff1615612662576040805160e560020a62461bcd02815260206004820152600d60248201527f4d696e742066696e697368656400000000000000000000000000000000000000604482015290519081900360640190fd5b6010805462ff00001916620100001790556040517fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0890600090a150600190565b600054600160a060020a031633146126b957600080fd5b611454838383602060405190810160405280600081525061325b565b600054600160a060020a031633146126ec57600080fd5b611454838383613af1565b600054600160a060020a0316331461270e57600080fd5b61156c82826020604051908101604052806000815250613af1565b60006123618260408051908101604052806006815260200160008051602061477483398151915281525061178f565b600061276333612729565b15156127b5576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c576127e282828151811015156127d357fe5b90602001906020020151611eba565b6001016127b9565b600254600160a060020a031681565b600054600160a060020a031681565b600054600160a060020a0316331461281f57600080fd5b61282b848484846132a8565b5050505050565b601054610100900460ff1681565b600054600160a060020a0316331461285757600080fd5b61145482826020604051908101604052806000815250613b28565b60408051808201909152600a8152600080516020614734833981519152602082015281565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113fb5780601f106113d0576101008083540402835291602001916113fb565b60006123618260408051908101604052806009815260200160008051602061471483398151915281525061178f565b600160a060020a03821633141561293d57600080fd5b336000818152600760209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60006129b633612729565b1515612a08576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c57612a358282815181101515612a2657fe5b90602001906020020151611699565b600101612a0c565b7f4e6f6b75437573746f6d4552433732312e6d696e74000000000000000000000081565b7f4e6f6b75437573746f6d4552433732312e7472616e7366657246726f6d00000081565b600054600160a060020a03163314612a9c57600080fd5b6115a38484848461325b565b612ab384848461182c565b612abf84848484613ed7565b15156115a357600080fd5b7f4e6f6b75437573746f6d4552433732312e6275726e000000000000000000000081565b606080612afa8361213f565b1515612b50576040805160e560020a62461bcd02815260206004820152601660248201527f746f6b656e496420646f6573206e6f7420657869737400000000000000000000604482015290519081900360640190fd5b6001612b5a611b42565b6002811115612b6557fe5b1415612b7b57612b74836115a9565b915061215c565b6002612b85611b42565b6002811115612b9057fe5b1415612db0576011612ba130614044565b6040516020018083805460018160011615610100020316600290048015612bff5780601f10612bdd576101008083540402835291820191612bff565b820191906000526020600020905b815481529060010190602001808311612beb575b5050825160208401908083835b60208310612c2b5780518252601f199092019160209182019101612c0c565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529050806040516020018082805190602001908083835b60208310612c955780518252601f199092019160209182019101612c76565b6001836020036101000a038019825116818451168082178552505050505050905001807f2f00000000000000000000000000000000000000000000000000000000000000815250600101915050604051602081830303815290604052612cfa84614250565b6040516020018083805190602001908083835b60208310612d2c5780518252601f199092019160209182019101612d0d565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310612d745780518252601f199092019160209182019101612d55565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915061215c565b6011612dbb84614250565b6040516020018083805460018160011615610100020316600290048015612e195780601f10612df7576101008083540402835291820191612e19565b820191906000526020600020905b815481529060010190602001808311612e05575b50508251602084019080838360208310612d745780518252601f199092019160209182019101612d55565b600054600160a060020a03163314612e5b57600080fd5b6010805460ff19166001179055565b600054600160a060020a03163314612e8157600080fd5b6010805460ff19169055565b600154600160a060020a031681565b60008054600160a060020a03163314612eb457600080fd5b60025474010000000000000000000000000000000000000000900460ff1615612f27576040805160e560020a62461bcd02815260206004820152601060248201527f6275726e696e672066696e697368656400000000000000000000000000000000604482015290519081900360640190fd5b6002805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790556040517f568cefe030b2537eb3dba37e9ebf22cfc3e51ae8aca52125c6053a0c16ca730a90600090a150600190565b6000612f9633612729565b1515612fe8576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c57613015828281518110151561300657fe5b90602001906020020151612561565b600101612fec565b600054600160a060020a0316331461303457600080fd5b6115a3838383613b28565b600190565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61307b33612729565b15156130cd576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b601054610100900460ff161515613130576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b61313a82826138a2565b6131448282613904565b61314e3382613a0b565b60405181903390600160a060020a038516906000805160206147d483398151915290600090a460408051600160a060020a03841681526020810183905281517fc2a82dd1d41e6a3fbca08bb53dc147df1241ab3942b5a540e1e2630dd05cf393929181900390910190a15050565b600054600160a060020a031633146131d357600080fd5b6000546131e890600160a060020a0316612729565b1561321f5760105460ff16156132165760005461320d90600160a060020a0316611b52565b61321681612561565b61321f81612396565b61170581614336565b600054600160a060020a0316331461323f57600080fd5b6115a383838360206040519081016040528060008152506132a8565b60005b845181101561282b5761328a858281518110151561327857fe5b906020019060200201518585856132a8565b5060010161325e565b61329d8282613530565b151561156c57600080fd5b60006132b5858585613b28565b506132c36000858785613ed7565b151561333f576040805160e560020a62461bcd02815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015290519081900360840190fd5b50929392505050565b61335133612729565b15156133a3576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b6133d0816040805190810160405280600a815260200160008051602061473483398151915281525061340f565b60408051600160a060020a038316815290517f1b994db1a6d945cc30132de7ed4aa052f750744469da7327b463cc0f94df87c09181900360200190a150565b61347982600f836040518082805190602001908083835b602083106134455780518252601f199092019160209182019101613426565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050614356565b7fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b70048982826040518083600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156134f15781810151838201526020016134d9565b50505050905090810190601f16801561351e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600160a060020a03166000908152602091909152604090205460ff1690565b60008061355b8361233d565b905080600160a060020a031684600160a060020a03161480613596575083600160a060020a031661358b84611406565b600160a060020a0316145b806135a657506135a68185613044565b949350505050565b6135b8338261354f565b15156135c357600080fd5b600160a060020a03831615156135d857600080fd5b600160a060020a03821615156135ed57600080fd5b6135f783826138a2565b6136018382613904565b61360b8282613a0b565b8082600160a060020a031684600160a060020a03166000805160206147d483398151915260405160405180910390a4505050565b6136a982600f836040518082805190602001908083835b602083106136755780518252601f199092019160209182019101613656565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209291505061437b565b7fd211483f91fc6eff862467f8de606587a30c8fc9981056f051b897a418df803a82826040518083600160a060020a0316600160a060020a031681526020018060200182810382528381815181526020019150805190602001908083836000838110156134f15781810151838201526020016134d9565b600080600061372f858561439d565b6000848152600e6020526040902054600260001961010060018416150201909116041561376d576000848152600e6020526040812061376d91614695565b6000848152600d6020526040902054600c5490935061379390600163ffffffff6143db16565b9150600c828154811015156137a457fe5b9060005260206000200154905080600c848154811015156137c157fe5b6000918252602082200191909155600c8054849081106137dd57fe5b600091825260209091200155600c8054906137fc9060001983016146d9565b506000938452600d6020526040808520859055908452909220555050565b61382333612729565b1515613875576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b611705816040805190810160405280600a815260200160008051602061473483398151915281525061363f565b81600160a060020a03166138b58261233d565b600160a060020a0316146138c857600080fd5b600081815260056020526040902054600160a060020a03161561156c5760009081526005602052604090208054600160a060020a031916905550565b600080600061391385856143ed565b6000848152600b6020908152604080832054600160a060020a0389168452600a9092529091205490935061394e90600163ffffffff6143db16565b600160a060020a0386166000908152600a602052604090208054919350908390811061397657fe5b9060005260206000200154905080600a600087600160a060020a0316600160a060020a03168152602001908152602001600020848154811015156139b657fe5b6000918252602080832090910192909255600160a060020a0387168152600a909152604090208054906139ed9060001983016146d9565b506000938452600b6020526040808520859055908452909220555050565b6000613a178383614476565b50600160a060020a039091166000908152600a6020908152604080832080546001810182559084528284208101859055938352600b909152902055565b600054600160a060020a03163314613a6b57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a260008054600160a060020a0319169055565b60006010546301000000900460ff166002811115613acd57fe5b1461156c576000828152601260209081526040909120825161145492840190614617565b60005b83518110156115a357613b1f8482815181101515613b0e57fe5b906020019060200201518484613b28565b50600101613af4565b60105460009062010000900460ff1615613b8c576040805160e560020a62461bcd02815260206004820152600d60248201527f4d696e742066696e697368656400000000000000000000000000000000000000604482015290519081900360640190fd5b6010548390610100900460ff1615613c0e57613bcb816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b15613c0e576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b601054849060ff1615613c4857613c4881604080519081016040528060098152602001600080516020614714833981519152815250611502565b613c518661213f565b15613ca6576040805160e560020a62461bcd02815260206004820152601660248201527f746f6b656e496420616c72656164792065786973747300000000000000000000604482015290519081900360640190fd5b60016010546301000000900460ff166002811115613cc057fe5b1415613d24578351600010613d1f576040805160e560020a62461bcd02815260206004820152601060248201527f6d697373696e6720495046532075726900000000000000000000000000000000604482015290519081900360640190fd5b613d9d565b60026010546301000000900460ff166002811115613d3e57fe5b1415613d9d578351600010613d9d576040805160e560020a62461bcd02815260206004820152601060248201527f6d697373696e67204e6f6b752075726900000000000000000000000000000000604482015290519081900360640190fd5b613da785876144fa565b613db18685613ab3565b600154604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e6d696e7400000000000000000000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a039092169163d30b5386916064808201926020929091908290030181600087803b158015613e4b57600080fd5b505af1158015613e5f573d6000803e3d6000fd5b505050506040513d6020811015613e7557600080fd5b50511515613ecd576040805160e560020a62461bcd02815260206004820152601760248201527f6d696e7420666565207061796d656e74206661696c6564000000000000000000604482015290519081900360640190fd5b5093949350505050565b600080613eec85600160a060020a0316614549565b1515613efb576001915061403b565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b83811015613f8e578181015183820152602001613f76565b50505050905090810190601f168015613fbb5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015613fdd57600080fd5b505af1158015613ff1573d6000803e3d6000fd5b505050506040513d602081101561400757600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b604080518082018252601081527f303132333435363738396162636465660000000000000000000000000000000060208201528151602a8082526060828101909452600160a060020a03851692918491600091908160200160208202803883390190505091507f30000000000000000000000000000000000000000000000000000000000000008260008151811015156140da57fe5b906020010190600160f860020a031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000082600181518110151561412257fe5b906020010190600160f860020a031916908160001a905350600090505b60148110156142435782600485600c84016020811061415a57fe5b1a60f860020a02600160f860020a0319169060020a900460f860020a900460ff1681518110151561418757fe5b90602001015160f860020a900460f860020a0282826002026002018151811015156141ae57fe5b906020010190600160f860020a031916908160001a9053508284600c8301602081106141d657fe5b1a60f860020a02600f60f860020a021660f860020a900460ff168151811015156141fc57fe5b90602001015160f860020a900460f860020a02828260020260030181518110151561422357fe5b906020010190600160f860020a031916908160001a90535060010161413f565b8194505b50505050919050565b606060008082818515156142995760408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201529450614247565b8593505b83156142b457600190920191600a8404935061429d565b826040519080825280601f01601f1916602001820160405280156142e2578160200160208202803883390190505b5091505060001982015b851561424357815160001982019160f860020a6030600a8a06010291849190811061431357fe5b906020010190600160f860020a031916908160001a905350600a860495506142ec565b600054600160a060020a0316331461434d57600080fd5b61170581614551565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600160a060020a0316600090815260209190915260409020805460ff19169055565b6143a782826138a2565b6143b18282613904565b6040518190600090600160a060020a038516906000805160206147d4833981519152908390a45050565b6000828211156143e757fe5b50900390565b81600160a060020a03166144008261233d565b600160a060020a03161461441357600080fd5b600160a060020a03821660009081526006602052604090205461443d90600163ffffffff6143db16565b600160a060020a039092166000908152600660209081526040808320949094559181526004909152208054600160a060020a0319169055565b600081815260046020526040902054600160a060020a03161561449857600080fd5b60008181526004602090815260408083208054600160a060020a031916600160a060020a038716908117909155835260069091529020546144da9060016145c1565b600160a060020a0390921660009081526006602052604090209190915550565b61450482826145ce565b600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7015550565b6000903b1190565b600160a060020a038116151561456657600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b8181018281101561236157fe5b600160a060020a03821615156145e357600080fd5b6145ed8282613a0b565b6040518190600160a060020a038416906000906000805160206147d4833981519152908290a45050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061465857805160ff1916838001178555614685565b82800160010185558215614685579182015b8281111561468557825182559160200191906001019061466a565b506146919291506146f9565b5090565b50805460018160011615610100020316600290046000825580601f106146bb5750611705565b601f01602090049060005260206000209081019061170591906146f9565b815481835581811115611454576000838152602090206114549181019083015b61140391905b8082111561469157600081556001016146ff560077686974656c697374000000000000000000000000000000000000000000000066726f7a656e6c6973740000000000000000000000000000000000000000000045524337323120416476616e6365642066756e6374696f6e73206e6f7420617669737375657200000000000000000000000000000000000000000000000000004973737561626c653a2063616c6c6572206973206e6f7420746865206973737561696c61626c6500000000000000000000000000000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4163636f756e742066726f7a656e000000000000000000000000000000000000a165627a7a7230582009a06a5eaf37d9e075bc082bba13c17d9d4ec5e53fe6f55164bcf61e762b3a240029a165627a7a723058200577ead95f52086ea9d04751f24e8897fe4547238a847e3736ad6ffd2d1627ca0029000000000000000000000000749aba9e082ccb185d1ef88fa514339e3c3368d3

Deployed Bytecode

0x608060405260043610620000ba5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a8114620000bf57806345fc916c14620000d95780635c975abb14620000fd578063649643fc1462000129578063715018a614620001535780638456cb59146200016b5780638da5cb5b1462000183578063d6c12f8814620001b7578063d8b4a2e414620001cf578063f2fde38b14620002c8578063f97944e014620002ec575b600080fd5b348015620000cc57600080fd5b50620000d762000304565b005b348015620000e657600080fd5b50620000d7600160a060020a03600435166200038d565b3480156200010a57600080fd5b5062000115620004fe565b604080519115158252519081900360200190f35b3480156200013657600080fd5b50620001416200051f565b60408051918252519081900360200190f35b3480156200016057600080fd5b50620000d762000543565b3480156200017857600080fd5b50620000d7620005b0565b3480156200019057600080fd5b506200019b6200064f565b60408051600160a060020a039092168252519081900360200190f35b348015620001c457600080fd5b506200019b6200065e565b348015620001dc57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526200019b94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375094975050505082351515935050506020810135151590604081013560ff169060600135600160a060020a03166200066d565b348015620002d557600080fd5b50620000d7600160a060020a036004351662000a09565b348015620002f957600080fd5b506200014162000a2f565b600054600160a060020a031633146200031c57600080fd5b60005474010000000000000000000000000000000000000000900460ff1615156200034657600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b600054600160a060020a03163314620003a557600080fd5b620003b981600160a060020a031662000a3b565b15156200042757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5f70726963696e67506c616e206973206e6f7420636f6e747261637400000000604482015290519081900360640190fd5b600154600160a060020a0382811691161415620004a557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5f70726963696e67506c616e20657175616c20746f2063757272656e74000000604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03831690811790915560405133907f9c9a71911f32ca6a40ea2146f75e1c43335f2862b3c1c9696d22cd10e86311c290600090a350565b60005474010000000000000000000000000000000000000000900460ff1681565b7f4e6f6b75437573746f6d4552433732312e63726561746500000000000000000081565b600054600160a060020a031633146200055b57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a03163314620005c857600080fd5b60005474010000000000000000000000000000000000000000900460ff1615620005f157600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600154600160a060020a031681565b6000878787878787876000809054906101000a9004600160a060020a03166200069562000ac1565b8515156060820152841515608082015280602081016040820160a08301876002811115620006bf57fe5b60ff16815260200186600160a060020a0316600160a060020a0316815260200185600160a060020a0316600160a060020a0316815260200184810384528c818151815260200191508051906020019080838360005b838110156200072e57818101518382015260200162000714565b50505050905090810190601f1680156200075c5780820380516001836020036101000a031916815260200191505b5084810383528b5181528b516020918201918d019080838360005b838110156200079157818101518382015260200162000777565b50505050905090810190601f168015620007bf5780820380516001836020036101000a031916815260200191505b5084810382528a5181528a516020918201918c019080838360005b83811015620007f4578181015183820152602001620007da565b50505050905090810190601f168015620008225780820380516001836020036101000a031916815260200191505b509b505050505050505050505050604051809103906000f0801580156200084d573d6000803e3d6000fd5b50604080517ff2fde38b0000000000000000000000000000000000000000000000000000000081523360048201529051919250600160a060020a0383169163f2fde38b9160248082019260009290919082900301818387803b158015620008b357600080fd5b505af1158015620008c8573d6000803e3d6000fd5b5050604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e6372656174650000000000000000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a038616935063d30b5386925060648083019260209291908290030181600087803b1580156200096257600080fd5b505af115801562000977573d6000803e3d6000fd5b505050506040513d60208110156200098e57600080fd5b50511515620009fe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f666565207061796d656e74206661696c65640000000000000000000000000000604482015290519081900360640190fd5b979650505050505050565b600054600160a060020a0316331462000a2157600080fd5b62000a2c8162000a43565b50565b670de0b6b3a764000081565b6000903b1190565b600160a060020a038116151562000a5957600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6040516153668062000ad38339019056006010805462ffff001916905560a0604081905260006080819052620000279160119162000a72565b503480156200003557600080fd5b50604051620053663803806200536683398101604090815281516020830151918301516060840151608085015160a086015160c087015160e088015160008054600160a060020a0319163317905595880197968701969490940194929391929091908488888484600160a060020a03821615156200011457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5f70726963696e67506c616e206973207a65726f000000000000000000000000604482015290519081900360640190fd5b600160a060020a03811615156200018c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f5f7365727669636550726f7669646572206973207a65726f0000000000000000604482015290519081900360640190fd5b60018054600160a060020a03938416600160a060020a03199182161790915560028054929093169116179055620001ec7f01ffc9a7000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b620002207f80ac58cd000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b620002547f4f558e79000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b81516200026990600890602085019062000a72565b5080516200027f90600990602084019062000a72565b50620002b47f780e9d63000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b620002e87f5b5e139f000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b50506010805460ff19169115159190911790556200032f7fdb1e569f000000000000000000000000000000000000000000000000000000006401000000006200064b810204565b6010805461ff001916610100861515021790556000546200036290600160a060020a0316640100000000620006b8810204565b841562000389576000546200038990600160a060020a031664010000000062000723810204565b8751600010620003fa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5f6e616d6520697320656d707479000000000000000000000000000000000000604482015290519081900360640190fd5b86516000106200046b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5f73796d626f6c20697320656d70747900000000000000000000000000000000604482015290519081900360640190fd5b6000865111156200048d5785516200048b90601190602089019062000a72565b505b6010805484919063ff00000019166301000000836002811115620004ad57fe5b0217905550866040518082805190602001908083835b60208310620004e45780518252601f199092019160209182019101620004c3565b51815160209384036101000a60001901801990921691161790526040519190930181900381208d519095508d945090928392508401908083835b602083106200053f5780518252601f1990920191602091820191016200051e565b51815160209384036101000a600019018019909216911617905260408051929094018290038220600160a060020a038a8116845289169183019190915294503393507f9bd51abec30bc7dd974b1b90f6c3a5538db76039f201c7c6b908d0bd30c1a3e19288925087918d918b9190810160608201836002811115620005c057fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b83811015620005ff578181015183820152602001620005e5565b50505050905090810190601f1680156200062d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4505050505050505062000b17565b7fffffffff0000000000000000000000000000000000000000000000000000000080821614156200067b57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152600360205260409020805460ff19166001179055565b600054600160a060020a03163314620006d057600080fd5b62000720816040805190810160405280600681526020017f69737375657200000000000000000000000000000000000000000000000000008152506200081b640100000000026401000000009004565b50565b620007373364010000000062000951810204565b1515620007cb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4973737561626c653a2063616c6c6572206973206e6f7420746865206973737560448201527f6572000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b62000720816040805190810160405280600981526020017f77686974656c69737400000000000000000000000000000000000000000000008152506200081b640100000000026401000000009004565b6200089782600f836040518082805190602001908083835b60208310620008545780518252601f19909201916020918201910162000833565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050640100000000620009a98102620043561704565b7fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b70048982826040518083600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101562000911578181015183820152602001620008f7565b50505050905090810190601f1680156200093f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000620009a3826040805190810160405280600681526020017f6973737565720000000000000000000000000000000000000000000000000000815250620009ce640100000000026401000000009004565b92915050565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600062000a4c83600f846040518082805190602001908083835b6020831062000a095780518252601f199092019160209182019101620009e8565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209291505064010000000062000a538102620035301704565b9392505050565b600160a060020a03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000ab557805160ff191683800117855562000ae5565b8280016001018555821562000ae5579182015b8281111562000ae557825182559160200191906001019062000ac8565b5062000af392915062000af7565b5090565b62000b1491905b8082111562000af3576000815560010162000afe565b90565b61483f8062000b276000396000f30060806040526004361061036e5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461037357806305d1a946146103a957806305d2035b146103be57806306fdde03146103d3578063081812fc1461045d57806308a59b9414610491578063095ea7b3146105355780630988ca8c146105595780630f02307b146105c0578063157c3df91461062957806318160ddd1461064157806318b919e91461066857806319fa8f501461067d5780631afe839c146106af57806320391f06146106d057806320694db014610730578063217fe6c6146107515780632295ee5b146107b857806323b872dd1461081157806324953eaa1461083b57806327f8237d14610890578063286dd3f5146108c95780632f745c59146108ea57806342842e0e1461090e57806342966c6814610938578063459f659a1461095057806345fc916c1461097157806347bc7093146109925780634e99b800146109b35780634f558e79146109c85780634f6ccce7146109e057806351fb012d146109f85780635294412314610a0d57806362bdfceb14610a375780636352211e14610a5b578063664944dc14610a735780636849cb9d14610a9457806370a0823114610ab5578063715018a614610ad657806375682e7914610aeb578063794d385014610b495780637b9417c814610b5e5780637d64bcb414610b7f5780637def32f114610b9457806382b30d0614610c3657806384646af114610cd8578063877b9a6714610d385780638b4dd22914610d595780638d69e95e14610dae5780638da5cb5b14610dc35780638f0fe82a14610dd85780639100c56014610e7f57806394bf804d14610e94578063951530f714610eb857806395d89b4114610ecd5780639b19251a14610ee2578063a22cb46514610f03578063a372b26f14610f29578063a40ac7f914610f7e578063b025b3fa14610f93578063b038693114610fa8578063b88d4fde14611088578063c1688c3e146110f7578063c87b56dd1461110c578063cdfb2b4e14611124578063d6b0f48414611139578063d6c12f881461114e578063d8bf0ef814611163578063e2ec6ec314611178578063e67e402c146111cd578063e6f1a18914611236578063e985e9c51461124b578063eac449d914611272578063f2fde38b14611296578063f626cf2c146112b7575b600080fd5b34801561037f57600080fd5b50610395600160e060020a031960043516611320565b604080519115158252519081900360200190f35b3480156103b557600080fd5b5061039561133f565b3480156103ca57600080fd5b50610395611360565b3480156103df57600080fd5b506103e861136f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561042257818101518382015260200161040a565b50505050905090810190601f16801561044f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046957600080fd5b50610475600435611406565b60408051600160a060020a039092168252519081900360200190f35b34801561049d57600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a9099940197509195509182019350915081908401838280828437509497506114219650505050505050565b005b34801561054157600080fd5b50610533600160a060020a0360043516602435611459565b34801561056557600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610533958335600160a060020a03169536956044949193909101919081908401838280828437509497506115029650505050505050565b3480156105cc57600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a0316953695946064949201919081908401838280828437509497506115709650505050505050565b34801561063557600080fd5b506103e86004356115a9565b34801561064d57600080fd5b5061065661164a565b60408051918252519081900360200190f35b34801561067457600080fd5b506103e8611650565b34801561068957600080fd5b50610692611675565b60408051600160e060020a03199092168252519081900360200190f35b3480156106bb57600080fd5b50610533600160a060020a0360043516611699565b3480156106dc57600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375094975050509235600160a060020a0316935061170892505050565b34801561073c57600080fd5b50610533600160a060020a036004351661174b565b34801561075d57600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610395958335600160a060020a031695369560449491939091019190819084018382808284375094975061178f9650505050505050565b3480156107c457600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526105339436949293602493928401919081908401838280828437509497506118029650505050505050565b34801561081d57600080fd5b50610533600160a060020a036004358116906024351660443561182c565b34801561084757600080fd5b506040805160206004803580820135838102808601850190965280855261053395369593946024949385019291829185019084908082843750949750611ab09650505050505050565b34801561089c57600080fd5b506108a5611b42565b604051808260028111156108b557fe5b60ff16815260200191505060405180910390f35b3480156108d557600080fd5b50610533600160a060020a0360043516611b52565b3480156108f657600080fd5b50610656600160a060020a0360043516602435611bda565b34801561091a57600080fd5b50610533600160a060020a0360043581169060243516604435611c27565b34801561094457600080fd5b50610533600435611c43565b34801561095c57600080fd5b50610533600160a060020a0360043516611eba565b34801561097d57600080fd5b50610533600160a060020a0360043516611f26565b34801561099e57600080fd5b50610533600160a060020a036004351661209a565b3480156109bf57600080fd5b506103e86120de565b3480156109d457600080fd5b5061039560043561213f565b3480156109ec57600080fd5b50610656600435612162565b348015610a0457600080fd5b50610395612197565b348015610a1957600080fd5b50610533600160a060020a03600435811690602435166044356121a0565b348015610a4357600080fd5b50610533600435600160a060020a03602435166122fa565b348015610a6757600080fd5b5061047560043561233d565b348015610a7f57600080fd5b50610395600160a060020a0360043516612367565b348015610aa057600080fd5b50610533600160a060020a0360043516612396565b348015610ac157600080fd5b50610656600160a060020a0360043516612433565b348015610ae257600080fd5b50610533612466565b348015610af757600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526105339583359536956044949193909101919081908401838280828437509497506124bc9650505050505050565b348015610b5557600080fd5b506103e861253c565b348015610b6a57600080fd5b50610533600160a060020a0360043516612561565b348015610b8b57600080fd5b506103956125e9565b348015610ba057600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a9099940197509195509182019350915081908401838280828437509497506126a29650505050505050565b348015610c4257600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a9099940197509195509182019350915081908401838280828437509497506126d59650505050505050565b348015610ce457600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375094975050509235600160a060020a031693506126f792505050565b348015610d4457600080fd5b50610395600160a060020a0360043516612729565b348015610d6557600080fd5b5060408051602060048035808201358381028086018501909652808552610533953695939460249493850192918291850190849080828437509497506127589650505050505050565b348015610dba57600080fd5b506104756127ea565b348015610dcf57600080fd5b506104756127f9565b348015610de457600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a03169536959460649492019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506128089650505050505050565b348015610e8b57600080fd5b50610395612832565b348015610ea057600080fd5b50610533600435600160a060020a0360243516612840565b348015610ec457600080fd5b506103e8612872565b348015610ed957600080fd5b506103e8612897565b348015610eee57600080fd5b50610395600160a060020a03600435166128f8565b348015610f0f57600080fd5b50610533600160a060020a03600435166024351515612927565b348015610f3557600080fd5b5060408051602060048035808201358381028086018501909652808552610533953695939460249493850192918291850190849080828437509497506129ab9650505050505050565b348015610f8a57600080fd5b50610656612a3d565b348015610f9f57600080fd5b50610656612a61565b348015610fb457600080fd5b50604080516020600480358082013583810280860185019096528085526105339536959394602494938501929182918501908490808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989b600160a060020a038b35169b909a90999401975091955091820193509150819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a999881019791965091820194509250829150840183828082843750949750612a859650505050505050565b34801561109457600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261053394600160a060020a038135811695602480359092169560443595369560849401918190840183828082843750949750612aa89650505050505050565b34801561110357600080fd5b50610656612aca565b34801561111857600080fd5b506103e8600435612aee565b34801561113057600080fd5b50610533612e44565b34801561114557600080fd5b50610533612e6a565b34801561115a57600080fd5b50610475612e8d565b34801561116f57600080fd5b50610395612e9c565b34801561118457600080fd5b506040805160206004803580820135838102808601850190965280855261053395369593946024949385019291829185019084908082843750949750612f8b9650505050505050565b3480156111d957600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a03169536959460649492019190819084018382808284375094975061301d9650505050505050565b34801561124257600080fd5b5061039561303f565b34801561125757600080fd5b50610395600160a060020a0360043581169060243516613044565b34801561127e57600080fd5b50610533600160a060020a0360043516602435613072565b3480156112a257600080fd5b50610533600160a060020a03600435166131bc565b3480156112c357600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526105339482359460248035600160a060020a0316953695946064949201919081908401838280828437509497506132289650505050505050565b600160e060020a03191660009081526003602052604090205460ff1690565b60025474010000000000000000000000000000000000000000900460ff1681565b60105462010000900460ff1681565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113fb5780601f106113d0576101008083540402835291602001916113fb565b820191906000526020600020905b8154815290600101906020018083116113de57829003601f168201915b505050505090505b90565b600090815260056020526040902054600160a060020a031690565b600054600160a060020a0316331461143857600080fd5b611454838360206040519081016040528060008152508461325b565b505050565b60006114648261233d565b9050600160a060020a03838116908216141561147f57600080fd5b33600160a060020a038216148061149b575061149b8133613044565b15156114a657600080fd5b6000828152600560205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61156c82600f836040518082805190602001908083835b602083106115385780518252601f199092019160209182019101611519565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050613293565b5050565b600054600160a060020a0316331461158757600080fd5b6115a383836020604051908101604052806000815250846132a8565b50505050565b60008181526012602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561163e5780601f106116135761010080835404028352916020019161163e565b820191906000526020600020905b81548152906001019060200180831161162157829003601f168201915b50505050509050919050565b600c5490565b6040805180820190915260098152600080516020614714833981519152602082015281565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b601054610100900460ff1615156116fc576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b61170581613348565b50565b600054600160a060020a0316331461171f57600080fd5b61156c82826020604051908101604052806000815250602060405190810160405280600081525061325b565b600054600160a060020a0316331461176257600080fd5b6117058160408051908101604052806006815260200160008051602061477483398151915281525061340f565b60006117fb83600f846040518082805190602001908083835b602083106117c75780518252601f1990920191602091820191016117a8565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050613530565b9392505050565b600054600160a060020a0316331461181957600080fd5b805161156c906011906020840190614617565b6010548390610100900460ff16156118ae5761186b816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b156118ae576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b6010548390610100900460ff1615611930576118ed816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b15611930576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b601054849060ff161561196a5761196a81604080519081016040528060098152602001600080516020614714833981519152815250611502565b83611975338261354f565b151561198057600080fd5b61198b8787876135ae565b600154604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e7472616e7366657246726f6d0000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a039092169163d30b5386916064808201926020929091908290030181600087803b158015611a2557600080fd5b505af1158015611a39573d6000803e3d6000fd5b505050506040513d6020811015611a4f57600080fd5b50511515611aa7576040805160e560020a62461bcd02815260206004820152601f60248201527f7472616e7366657246726f6d20666565207061796d656e74206661696c656400604482015290519081900360640190fd5b50505050505050565b6000611abb33612729565b1515611b0d576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c57611b3a8282815181101515611b2b57fe5b90602001906020020151611b52565b600101611b11565b6010546301000000900460ff1690565b611b5b33612729565b1515611bad576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b6117058160408051908101604052806009815260200160008051602061471483398151915281525061363f565b6000611be583612433565b8210611bf057600080fd5b600160a060020a0383166000908152600a60205260409020805483908110611c1457fe5b9060005260206000200154905092915050565b6114548383836020604051908101604052806000815250612aa8565b60025474010000000000000000000000000000000000000000900460ff1615611cb6576040805160e560020a62461bcd02815260206004820152601060248201527f6275726e696e672066696e697368656400000000000000000000000000000000604482015290519081900360640190fd5b80611cc1338261354f565b1515611ccc57600080fd5b6010543390610100900460ff1615611d4e57611d0b816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b15611d4e576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b6000838152601260205260409020546002600019610100600184161502019091160415611d8c576000838152601260205260408120611d8c91614695565b611d9e611d988461233d565b84613720565b600154604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e6275726e00000000000000000000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a039092169163d30b5386916064808201926020929091908290030181600087803b158015611e3857600080fd5b505af1158015611e4c573d6000803e3d6000fd5b505050506040513d6020811015611e6257600080fd5b50511515611454576040805160e560020a62461bcd02815260206004820152601760248201527f6275726e20666565207061796d656e74206661696c6564000000000000000000604482015290519081900360640190fd5b601054610100900460ff161515611f1d576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b6117058161381a565b600254600160a060020a03163314611f88576040805160e560020a62461bcd02815260206004820152601e60248201527f63616c6c6572206973206e6f7420736572766963652070726f76696465720000604482015290519081900360640190fd5b600160a060020a0381161515611fe8576040805160e560020a62461bcd02815260206004820152601160248201527f5f70726963696e67506c616e2069732030000000000000000000000000000000604482015290519081900360640190fd5b600154600160a060020a038281169116141561204e576040805160e560020a62461bcd02815260206004820152601b60248201527f5f70726963696e67506c616e203d3d2070726963696e67506c616e0000000000604482015290519081900360640190fd5b60018054600160a060020a031916600160a060020a03831690811790915560405133907f9c9a71911f32ca6a40ea2146f75e1c43335f2862b3c1c9696d22cd10e86311c290600090a350565b600054600160a060020a031633146120b157600080fd5b6117058160408051908101604052806006815260200160008051602061477483398151915281525061363f565b60118054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113fb5780601f106113d0576101008083540402835291602001916113fb565b600081815260046020526040902054600160a060020a0316801515905b50919050565b600061216c61164a565b821061217757600080fd5b600c80548390811061218557fe5b90600052602060002001549050919050565b60105460ff1681565b6121a933612729565b15156121fb576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b601054610100900460ff16151561225e576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b61226883826138a2565b6122728382613904565b61227c8282613a0b565b8082600160a060020a031684600160a060020a03166000805160206147d483398151915260405160405180910390a460408051600160a060020a0380861682528416602082015280820183905290517f95791f1c4aac383dc757e59da6599f6317ec2579228e1a9eeeafb80d7418c5349181900360600190a1505050565b600054600160a060020a0316331461231157600080fd5b6114548282602060405190810160405280600081525060206040519081016040528060008152506132a8565b600081815260046020526040812054600160a060020a031680151561236157600080fd5b92915050565b6000612361826040805190810160405280600a815260200160008051602061473483398151915281525061178f565b61239f33612729565b15156123f1576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b600160a060020a038116151561240657600080fd5b6117623360408051908101604052806006815260200160008051602061477483398151915281525061363f565b6000600160a060020a038216151561244a57600080fd5b50600160a060020a031660009081526006602052604090205490565b600054600160a060020a0316331461247d57600080fd5b60105460ff161561249d5760005461249d90600160a060020a0316611b52565b6000546124b290600160a060020a031661209a565b6124ba613a54565b565b600054600160a060020a031633146124d357600080fd5b6124dc8261213f565b1515612532576040805160e560020a62461bcd02815260206004820152601660248201527f746f6b656e496420646f6573206e6f7420657869737400000000000000000000604482015290519081900360640190fd5b61156c8282613ab3565b6040805180820190915260068152600080516020614774833981519152602082015281565b61256a33612729565b15156125bc576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b6117058160408051908101604052806009815260200160008051602061471483398151915281525061340f565b60008054600160a060020a0316331461260157600080fd5b60105462010000900460ff1615612662576040805160e560020a62461bcd02815260206004820152600d60248201527f4d696e742066696e697368656400000000000000000000000000000000000000604482015290519081900360640190fd5b6010805462ff00001916620100001790556040517fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0890600090a150600190565b600054600160a060020a031633146126b957600080fd5b611454838383602060405190810160405280600081525061325b565b600054600160a060020a031633146126ec57600080fd5b611454838383613af1565b600054600160a060020a0316331461270e57600080fd5b61156c82826020604051908101604052806000815250613af1565b60006123618260408051908101604052806006815260200160008051602061477483398151915281525061178f565b600061276333612729565b15156127b5576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c576127e282828151811015156127d357fe5b90602001906020020151611eba565b6001016127b9565b600254600160a060020a031681565b600054600160a060020a031681565b600054600160a060020a0316331461281f57600080fd5b61282b848484846132a8565b5050505050565b601054610100900460ff1681565b600054600160a060020a0316331461285757600080fd5b61145482826020604051908101604052806000815250613b28565b60408051808201909152600a8152600080516020614734833981519152602082015281565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113fb5780601f106113d0576101008083540402835291602001916113fb565b60006123618260408051908101604052806009815260200160008051602061471483398151915281525061178f565b600160a060020a03821633141561293d57600080fd5b336000818152600760209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60006129b633612729565b1515612a08576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c57612a358282815181101515612a2657fe5b90602001906020020151611699565b600101612a0c565b7f4e6f6b75437573746f6d4552433732312e6d696e74000000000000000000000081565b7f4e6f6b75437573746f6d4552433732312e7472616e7366657246726f6d00000081565b600054600160a060020a03163314612a9c57600080fd5b6115a38484848461325b565b612ab384848461182c565b612abf84848484613ed7565b15156115a357600080fd5b7f4e6f6b75437573746f6d4552433732312e6275726e000000000000000000000081565b606080612afa8361213f565b1515612b50576040805160e560020a62461bcd02815260206004820152601660248201527f746f6b656e496420646f6573206e6f7420657869737400000000000000000000604482015290519081900360640190fd5b6001612b5a611b42565b6002811115612b6557fe5b1415612b7b57612b74836115a9565b915061215c565b6002612b85611b42565b6002811115612b9057fe5b1415612db0576011612ba130614044565b6040516020018083805460018160011615610100020316600290048015612bff5780601f10612bdd576101008083540402835291820191612bff565b820191906000526020600020905b815481529060010190602001808311612beb575b5050825160208401908083835b60208310612c2b5780518252601f199092019160209182019101612c0c565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529050806040516020018082805190602001908083835b60208310612c955780518252601f199092019160209182019101612c76565b6001836020036101000a038019825116818451168082178552505050505050905001807f2f00000000000000000000000000000000000000000000000000000000000000815250600101915050604051602081830303815290604052612cfa84614250565b6040516020018083805190602001908083835b60208310612d2c5780518252601f199092019160209182019101612d0d565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310612d745780518252601f199092019160209182019101612d55565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915061215c565b6011612dbb84614250565b6040516020018083805460018160011615610100020316600290048015612e195780601f10612df7576101008083540402835291820191612e19565b820191906000526020600020905b815481529060010190602001808311612e05575b50508251602084019080838360208310612d745780518252601f199092019160209182019101612d55565b600054600160a060020a03163314612e5b57600080fd5b6010805460ff19166001179055565b600054600160a060020a03163314612e8157600080fd5b6010805460ff19169055565b600154600160a060020a031681565b60008054600160a060020a03163314612eb457600080fd5b60025474010000000000000000000000000000000000000000900460ff1615612f27576040805160e560020a62461bcd02815260206004820152601060248201527f6275726e696e672066696e697368656400000000000000000000000000000000604482015290519081900360640190fd5b6002805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790556040517f568cefe030b2537eb3dba37e9ebf22cfc3e51ae8aca52125c6053a0c16ca730a90600090a150600190565b6000612f9633612729565b1515612fe8576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b5060005b815181101561156c57613015828281518110151561300657fe5b90602001906020020151612561565b600101612fec565b600054600160a060020a0316331461303457600080fd5b6115a3838383613b28565b600190565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61307b33612729565b15156130cd576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b601054610100900460ff161515613130576040805160e560020a62461bcd028152602060048201526027602482015260008051602061475483398151915260448201526000805160206147b4833981519152606482015290519081900360840190fd5b61313a82826138a2565b6131448282613904565b61314e3382613a0b565b60405181903390600160a060020a038516906000805160206147d483398151915290600090a460408051600160a060020a03841681526020810183905281517fc2a82dd1d41e6a3fbca08bb53dc147df1241ab3942b5a540e1e2630dd05cf393929181900390910190a15050565b600054600160a060020a031633146131d357600080fd5b6000546131e890600160a060020a0316612729565b1561321f5760105460ff16156132165760005461320d90600160a060020a0316611b52565b61321681612561565b61321f81612396565b61170581614336565b600054600160a060020a0316331461323f57600080fd5b6115a383838360206040519081016040528060008152506132a8565b60005b845181101561282b5761328a858281518110151561327857fe5b906020019060200201518585856132a8565b5060010161325e565b61329d8282613530565b151561156c57600080fd5b60006132b5858585613b28565b506132c36000858785613ed7565b151561333f576040805160e560020a62461bcd02815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015290519081900360840190fd5b50929392505050565b61335133612729565b15156133a3576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b6133d0816040805190810160405280600a815260200160008051602061473483398151915281525061340f565b60408051600160a060020a038316815290517f1b994db1a6d945cc30132de7ed4aa052f750744469da7327b463cc0f94df87c09181900360200190a150565b61347982600f836040518082805190602001908083835b602083106134455780518252601f199092019160209182019101613426565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050614356565b7fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b70048982826040518083600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156134f15781810151838201526020016134d9565b50505050905090810190601f16801561351e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600160a060020a03166000908152602091909152604090205460ff1690565b60008061355b8361233d565b905080600160a060020a031684600160a060020a03161480613596575083600160a060020a031661358b84611406565b600160a060020a0316145b806135a657506135a68185613044565b949350505050565b6135b8338261354f565b15156135c357600080fd5b600160a060020a03831615156135d857600080fd5b600160a060020a03821615156135ed57600080fd5b6135f783826138a2565b6136018382613904565b61360b8282613a0b565b8082600160a060020a031684600160a060020a03166000805160206147d483398151915260405160405180910390a4505050565b6136a982600f836040518082805190602001908083835b602083106136755780518252601f199092019160209182019101613656565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209291505061437b565b7fd211483f91fc6eff862467f8de606587a30c8fc9981056f051b897a418df803a82826040518083600160a060020a0316600160a060020a031681526020018060200182810382528381815181526020019150805190602001908083836000838110156134f15781810151838201526020016134d9565b600080600061372f858561439d565b6000848152600e6020526040902054600260001961010060018416150201909116041561376d576000848152600e6020526040812061376d91614695565b6000848152600d6020526040902054600c5490935061379390600163ffffffff6143db16565b9150600c828154811015156137a457fe5b9060005260206000200154905080600c848154811015156137c157fe5b6000918252602082200191909155600c8054849081106137dd57fe5b600091825260209091200155600c8054906137fc9060001983016146d9565b506000938452600d6020526040808520859055908452909220555050565b61382333612729565b1515613875576040805160e560020a62461bcd0281526020600482015260226024820152600080516020614794833981519152604482015260f160020a6132b902606482015290519081900360840190fd5b611705816040805190810160405280600a815260200160008051602061473483398151915281525061363f565b81600160a060020a03166138b58261233d565b600160a060020a0316146138c857600080fd5b600081815260056020526040902054600160a060020a03161561156c5760009081526005602052604090208054600160a060020a031916905550565b600080600061391385856143ed565b6000848152600b6020908152604080832054600160a060020a0389168452600a9092529091205490935061394e90600163ffffffff6143db16565b600160a060020a0386166000908152600a602052604090208054919350908390811061397657fe5b9060005260206000200154905080600a600087600160a060020a0316600160a060020a03168152602001908152602001600020848154811015156139b657fe5b6000918252602080832090910192909255600160a060020a0387168152600a909152604090208054906139ed9060001983016146d9565b506000938452600b6020526040808520859055908452909220555050565b6000613a178383614476565b50600160a060020a039091166000908152600a6020908152604080832080546001810182559084528284208101859055938352600b909152902055565b600054600160a060020a03163314613a6b57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a260008054600160a060020a0319169055565b60006010546301000000900460ff166002811115613acd57fe5b1461156c576000828152601260209081526040909120825161145492840190614617565b60005b83518110156115a357613b1f8482815181101515613b0e57fe5b906020019060200201518484613b28565b50600101613af4565b60105460009062010000900460ff1615613b8c576040805160e560020a62461bcd02815260206004820152600d60248201527f4d696e742066696e697368656400000000000000000000000000000000000000604482015290519081900360640190fd5b6010548390610100900460ff1615613c0e57613bcb816040805190810160405280600a815260200160008051602061473483398151915281525061178f565b15613c0e576040805160e560020a62461bcd02815260206004820152600e60248201526000805160206147f4833981519152604482015290519081900360640190fd5b601054849060ff1615613c4857613c4881604080519081016040528060098152602001600080516020614714833981519152815250611502565b613c518661213f565b15613ca6576040805160e560020a62461bcd02815260206004820152601660248201527f746f6b656e496420616c72656164792065786973747300000000000000000000604482015290519081900360640190fd5b60016010546301000000900460ff166002811115613cc057fe5b1415613d24578351600010613d1f576040805160e560020a62461bcd02815260206004820152601060248201527f6d697373696e6720495046532075726900000000000000000000000000000000604482015290519081900360640190fd5b613d9d565b60026010546301000000900460ff166002811115613d3e57fe5b1415613d9d578351600010613d9d576040805160e560020a62461bcd02815260206004820152601060248201527f6d697373696e67204e6f6b752075726900000000000000000000000000000000604482015290519081900360640190fd5b613da785876144fa565b613db18685613ab3565b600154604080517fd30b53860000000000000000000000000000000000000000000000000000000081527f4e6f6b75437573746f6d4552433732312e6d696e7400000000000000000000006004820152670de0b6b3a764000060248201523360448201529051600160a060020a039092169163d30b5386916064808201926020929091908290030181600087803b158015613e4b57600080fd5b505af1158015613e5f573d6000803e3d6000fd5b505050506040513d6020811015613e7557600080fd5b50511515613ecd576040805160e560020a62461bcd02815260206004820152601760248201527f6d696e7420666565207061796d656e74206661696c6564000000000000000000604482015290519081900360640190fd5b5093949350505050565b600080613eec85600160a060020a0316614549565b1515613efb576001915061403b565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b83811015613f8e578181015183820152602001613f76565b50505050905090810190601f168015613fbb5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015613fdd57600080fd5b505af1158015613ff1573d6000803e3d6000fd5b505050506040513d602081101561400757600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b604080518082018252601081527f303132333435363738396162636465660000000000000000000000000000000060208201528151602a8082526060828101909452600160a060020a03851692918491600091908160200160208202803883390190505091507f30000000000000000000000000000000000000000000000000000000000000008260008151811015156140da57fe5b906020010190600160f860020a031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000082600181518110151561412257fe5b906020010190600160f860020a031916908160001a905350600090505b60148110156142435782600485600c84016020811061415a57fe5b1a60f860020a02600160f860020a0319169060020a900460f860020a900460ff1681518110151561418757fe5b90602001015160f860020a900460f860020a0282826002026002018151811015156141ae57fe5b906020010190600160f860020a031916908160001a9053508284600c8301602081106141d657fe5b1a60f860020a02600f60f860020a021660f860020a900460ff168151811015156141fc57fe5b90602001015160f860020a900460f860020a02828260020260030181518110151561422357fe5b906020010190600160f860020a031916908160001a90535060010161413f565b8194505b50505050919050565b606060008082818515156142995760408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201529450614247565b8593505b83156142b457600190920191600a8404935061429d565b826040519080825280601f01601f1916602001820160405280156142e2578160200160208202803883390190505b5091505060001982015b851561424357815160001982019160f860020a6030600a8a06010291849190811061431357fe5b906020010190600160f860020a031916908160001a905350600a860495506142ec565b600054600160a060020a0316331461434d57600080fd5b61170581614551565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600160a060020a0316600090815260209190915260409020805460ff19169055565b6143a782826138a2565b6143b18282613904565b6040518190600090600160a060020a038516906000805160206147d4833981519152908390a45050565b6000828211156143e757fe5b50900390565b81600160a060020a03166144008261233d565b600160a060020a03161461441357600080fd5b600160a060020a03821660009081526006602052604090205461443d90600163ffffffff6143db16565b600160a060020a039092166000908152600660209081526040808320949094559181526004909152208054600160a060020a0319169055565b600081815260046020526040902054600160a060020a03161561449857600080fd5b60008181526004602090815260408083208054600160a060020a031916600160a060020a038716908117909155835260069091529020546144da9060016145c1565b600160a060020a0390921660009081526006602052604090209190915550565b61450482826145ce565b600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7015550565b6000903b1190565b600160a060020a038116151561456657600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b8181018281101561236157fe5b600160a060020a03821615156145e357600080fd5b6145ed8282613a0b565b6040518190600160a060020a038416906000906000805160206147d4833981519152908290a45050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061465857805160ff1916838001178555614685565b82800160010185558215614685579182015b8281111561468557825182559160200191906001019061466a565b506146919291506146f9565b5090565b50805460018160011615610100020316600290046000825580601f106146bb5750611705565b601f01602090049060005260206000209081019061170591906146f9565b815481835581811115611454576000838152602090206114549181019083015b61140391905b8082111561469157600081556001016146ff560077686974656c697374000000000000000000000000000000000000000000000066726f7a656e6c6973740000000000000000000000000000000000000000000045524337323120416476616e6365642066756e6374696f6e73206e6f7420617669737375657200000000000000000000000000000000000000000000000000004973737561626c653a2063616c6c6572206973206e6f7420746865206973737561696c61626c6500000000000000000000000000000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4163636f756e742066726f7a656e000000000000000000000000000000000000a165627a7a7230582009a06a5eaf37d9e075bc082bba13c17d9d4ec5e53fe6f55164bcf61e762b3a240029a165627a7a723058200577ead95f52086ea9d04751f24e8897fe4547238a847e3736ad6ffd2d1627ca0029

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

000000000000000000000000749aba9e082ccb185d1ef88fa514339e3c3368d3

-----Decoded View---------------
Arg [0] : _pricingPlan (address): 0x749aBA9E082ccb185D1EF88Fa514339e3c3368D3

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000749aba9e082ccb185d1ef88fa514339e3c3368d3


Deployed Bytecode Sourcemap

58014:1194:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56888:95;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56888:95:0;;;;;;57527:374;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;57527:374:0;-1:-1:-1;;;;;57527:374:0;;;;;56267:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56267:26:0;;;;;;;;;;;;;;;;;;;;;;58228:71;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58228:71:0;;;;;;;;;;;;;;;;;;;;942:114;;8:9:-1;5:2;;;30:1;27;20:12;5:2;942:114:0;;;;56708:93;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56708:93:0;;;;324:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;324:20:0;;;;;;;;-1:-1:-1;;;;;324:20:0;;;;;;;;;;;;;;57292:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57292:34:0;;;;58472:731;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;58472:731:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;58472:731:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58472:731:0;;;;-1:-1:-1;58472:731:0;-1:-1:-1;58472:731:0;;-1:-1:-1;58472:731:0;;;;;;;;-1:-1:-1;;58472:731:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58472:731:0;;;;-1:-1:-1;58472:731:0;-1:-1:-1;58472:731:0;;-1:-1:-1;58472:731:0;;;;;;;;-1:-1:-1;58472:731:0;;-1:-1:-1;;;;58472:731:0;;;;;-1:-1:-1;;;58472:731:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58472:731:0;;;1224:105;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1224:105:0;-1:-1:-1;;;;;1224:105:0;;;;;58169:50;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58169:50:0;;;;56888:95;827:5;;-1:-1:-1;;;;;827:5:0;813:10;:19;805:28;;;;;;56603:6;;;;;;;56595:15;;;;;;;;56951:5;56942:14;;-1:-1:-1;;56942:14:0;;;56968:9;;;;56951:5;56968:9;56888:95::o;57527:374::-;827:5;;-1:-1:-1;;;;;827:5:0;813:10;:19;805:28;;;;;;57609:25;:12;-1:-1:-1;;;;;57609:23:0;;:25::i;:::-;57601:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57719:11;;-1:-1:-1;;;;;57686:44:0;;;57719:11;;57686:44;;57678:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57785:11;:43;;-1:-1:-1;;57785:43:0;-1:-1:-1;;;;;57785:43:0;;;;;;;;57846:47;;57868:10;;57846:47;;-1:-1:-1;;57846:47:0;57527:374;:::o;56267:26::-;;;;;;;;;:::o;58228:71::-;;;:::o;942:114::-;827:5;;-1:-1:-1;;;;;827:5:0;813:10;:19;805:28;;;;;;1019:5;;;1000:25;;-1:-1:-1;;;;;1019:5:0;;;;1000:25;;;1048:1;1032:18;;-1:-1:-1;;1032:18:0;;;942:114::o;56708:93::-;827:5;;-1:-1:-1;;;;;827:5:0;813:10;:19;805:28;;;;;;56443:6;;;;;;;56442:7;56434:16;;;;;;56763:6;:13;;-1:-1:-1;;56763:13:0;;;;;56788:7;;;;56763:6;56788:7;56708:93::o;324:20::-;;;-1:-1:-1;;;;;324:20:0;;:::o;57292:34::-;;;-1:-1:-1;;;;;57292:34:0;;:::o;58472:731::-;58681:28;58771:5;58791:7;58813:13;58841:16;58872:11;58898:12;58925;58952:5;;;;;;;;;-1:-1:-1;;;;;58952:5:0;58736:232;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58736:232:0;-1:-1:-1;;;;;58736:232:0;;;;;;-1:-1:-1;;;;;58736:232:0;-1:-1:-1;;;;;58736:232:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;58736:232:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58736:232:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;58736:232:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58736:232:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;58736:232:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;59043:41:0;;;;;;59073:10;59043:41;;;;;;58722:246;;-1:-1:-1;;;;;;59043:29:0;;;;;:41;;;;;-1:-1:-1;;59043:41:0;;;;;;;;-1:-1:-1;59043:29:0;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;59043:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;59105:67:0;;;;;;59125:19;59105:67;;;;58209:10;59105:67;;;;59161:10;59105:67;;;;;;-1:-1:-1;;;;;59105:19:0;;;-1:-1:-1;59105:19:0;;-1:-1:-1;59105:67:0;;;;;;;;;;;;;;;:19;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;59105:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59105:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59105:67:0;59097:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58472:731;;;;;;;;;:::o;1224:105::-;827:5;;-1:-1:-1;;;;;827:5:0;813:10;:19;805:28;;;;;;1294:29;1313:9;1294:18;:29::i;:::-;1224:105;:::o;58169:50::-;58209:10;58169:50;:::o;22195:587::-;22252:4;22736:17;;22768:8;;22195:587::o;1470:175::-;-1:-1:-1;;;;;1541:23:0;;;;1533:32;;;;;;1598:5;;;1577:38;;-1:-1:-1;;;;;1577:38:0;;;;1598:5;;;1577:38;;;1622:5;:17;;-1:-1:-1;;1622:17:0;-1:-1:-1;;;;;1622:17:0;;;;;;;;;;1470:175::o;58014:1194::-;;;;;;;;;;:::o

Swarm Source

bzzr://0577ead95f52086ea9d04751f24e8897fe4547238a847e3736ad6ffd2d1627ca

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.