{"file_path":"/Users/pedrobergamini/Illuvium/illuvium-contracts/contracts/token/IlluviumERC20.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.1;\n\nimport \"../utils/AddressUtils.sol\";\nimport \"../utils/AccessControl.sol\";\nimport \"./ERC20Receiver.sol\";\n\n/**\n * @title Illuvium (ILV) ERC20 token\n *\n * @notice Illuvium is a core ERC20 token powering the game.\n *      It serves as an in-game currency, is tradable on exchanges,\n *      it powers up the governance protocol (Illuvium DAO) and participates in Yield Farming.\n *\n * @dev Token Summary:\n *      - Symbol: ILV\n *      - Name: Illuvium\n *      - Decimals: 18\n *      - Initial token supply: 7,000,000 ILV\n *      - Maximum final token supply: 10,000,000 ILV\n *          - Up to 3,000,000 ILV may get minted in 3 years period via yield farming\n *      - Mintable: total supply may increase\n *      - Burnable: total supply may decrease\n *\n * @dev Token balances and total supply are effectively 192 bits long, meaning that maximum\n *      possible total supply smart contract is able to track is 2^192 (close to 10^40 tokens)\n *\n * @dev Smart contract doesn't use safe math. All arithmetic operations are overflow/underflow safe.\n *      Additionally, Solidity 0.8.1 enforces overflow/underflow safety.\n *\n * @dev ERC20: reviewed according to https://eips.ethereum.org/EIPS/eip-20\n *\n * @dev ERC20: contract has passed OpenZeppelin ERC20 tests,\n *      see https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/test/token/ERC20/ERC20.behavior.js\n *      see https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/test/token/ERC20/ERC20.test.js\n *      see adopted copies of these tests in the `test` folder\n *\n * @dev ERC223/ERC777: not supported;\n *      send tokens via `safeTransferFrom` and implement `ERC20Receiver.onERC20Received` on the receiver instead\n *\n * @dev Multiple Withdrawal Attack on ERC20 Tokens (ISBN:978-1-7281-3027-9) - resolved\n *      Related events and functions are marked with \"ISBN:978-1-7281-3027-9\" tag:\n *        - event Transferred(address indexed _by, address indexed _from, address indexed _to, uint256 _value)\n *        - event Approved(address indexed _owner, address indexed _spender, uint256 _oldValue, uint256 _value)\n *        - function increaseAllowance(address _spender, uint256 _value) public returns (bool)\n *        - function decreaseAllowance(address _spender, uint256 _value) public returns (bool)\n *      See: https://ieeexplore.ieee.org/document/8802438\n *      See: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * @author Basil Gorin\n */\ncontract IlluviumERC20 is AccessControl {\n  /**\n   * @dev Smart contract unique identifier, a random number\n   * @dev Should be regenerated each time smart contact source code is changed\n   *      and changes smart contract itself is to be redeployed\n   * @dev Generated using https://www.random.org/bytes/\n   */\n  uint256 public constant TOKEN_UID = 0x83ecb176af7c4f35a45ff0018282e3a05a1018065da866182df12285866f5a2c;\n\n  /**\n   * @notice Name of the token: Illuvium\n   *\n   * @notice ERC20 name of the token (long name)\n   *\n   * @dev ERC20 `function name() public view returns (string)`\n   *\n   * @dev Field is declared public: getter name() is created when compiled,\n   *      it returns the name of the token.\n   */\n  string public constant name = \"Illuvium\";\n\n  /**\n   * @notice Symbol of the token: ILV\n   *\n   * @notice ERC20 symbol of that token (short name)\n   *\n   * @dev ERC20 `function symbol() public view returns (string)`\n   *\n   * @dev Field is declared public: getter symbol() is created when compiled,\n   *      it returns the symbol of the token\n   */\n  string public constant symbol = \"ILV\";\n\n  /**\n   * @notice Decimals of the token: 18\n   *\n   * @dev ERC20 `function decimals() public view returns (uint8)`\n   *\n   * @dev Field is declared public: getter decimals() is created when compiled,\n   *      it returns the number of decimals used to get its user representation.\n   *      For example, if `decimals` equals `6`, a balance of `1,500,000` tokens should\n   *      be displayed to a user as `1,5` (`1,500,000 / 10 ** 6`).\n   *\n   * @dev NOTE: This information is only used for _display_ purposes: it in\n   *      no way affects any of the arithmetic of the contract, including balanceOf() and transfer().\n   */\n  uint8 public constant decimals = 18;\n\n  /**\n   * @notice Total supply of the token: initially 7,000,000,\n   *      with the potential to grow up to 10,000,000 during yield farming period (3 years)\n   *\n   * @dev ERC20 `function totalSupply() public view returns (uint256)`\n   *\n   * @dev Field is declared public: getter totalSupply() is created when compiled,\n   *      it returns the amount of tokens in existence.\n   */\n  uint256 public totalSupply; // is set to 7 million * 10^18 in the constructor\n\n  /**\n   * @dev A record of all the token balances\n   * @dev This mapping keeps record of all token owners:\n   *      owner => balance\n   */\n  mapping(address => uint256) public tokenBalances;\n\n  /**\n   * @notice A record of each account's voting delegate\n   *\n   * @dev Auxiliary data structure used to sum up an account's voting power\n   *\n   * @dev This mapping keeps record of all voting power delegations:\n   *      voting delegator (token owner) => voting delegate\n   */\n  mapping(address => address) public votingDelegates;\n\n  /**\n   * @notice A voting power record binds voting power of a delegate to a particular\n   *      block when the voting power delegation change happened\n   */\n  struct VotingPowerRecord {\n    /*\n     * @dev block.number when delegation has changed; starting from\n     *      that block voting power value is in effect\n     */\n    uint64 blockNumber;\n\n    /*\n     * @dev cumulative voting power a delegate has obtained starting\n     *      from the block stored in blockNumber\n     */\n    uint192 votingPower;\n  }\n\n  /**\n   * @notice A record of each account's voting power\n   *\n   * @dev Primarily data structure to store voting power for each account.\n   *      Voting power sums up from the account's token balance and delegated\n   *      balances.\n   *\n   * @dev Stores current value and entire history of its changes.\n   *      The changes are stored as an array of checkpoints.\n   *      Checkpoint is an auxiliary data structure containing voting\n   *      power (number of votes) and block number when the checkpoint is saved\n   *\n   * @dev Maps voting delegate => voting power record\n   */\n  mapping(address => VotingPowerRecord[]) public votingPowerHistory;\n\n  /**\n   * @dev A record of nonces for signing/validating signatures in `delegateWithSig`\n   *      for every delegate, increases after successful validation\n   *\n   * @dev Maps delegate address => delegate nonce\n   */\n  mapping(address => uint256) public nonces;\n\n  /**\n   * @notice A record of all the allowances to spend tokens on behalf\n   * @dev Maps token owner address to an address approved to spend\n   *      some tokens on behalf, maps approved address to that amount\n   * @dev owner => spender => value\n   */\n  mapping(address => mapping(address => uint256)) public transferAllowances;\n\n  /**\n   * @notice Enables ERC20 transfers of the tokens\n   *      (transfer by the token owner himself)\n   * @dev Feature FEATURE_TRANSFERS must be enabled in order for\n   *      `transfer()` function to succeed\n   */\n  uint32 public constant FEATURE_TRANSFERS = 0x0000_0001;\n\n  /**\n   * @notice Enables ERC20 transfers on behalf\n   *      (transfer by someone else on behalf of token owner)\n   * @dev Feature FEATURE_TRANSFERS_ON_BEHALF must be enabled in order for\n   *      `transferFrom()` function to succeed\n   * @dev Token owner must call `approve()` first to authorize\n   *      the transfer on behalf\n   */\n  uint32 public constant FEATURE_TRANSFERS_ON_BEHALF = 0x0000_0002;\n\n  /**\n   * @dev Defines if the default behavior of `transfer` and `transferFrom`\n   *      checks if the receiver smart contract supports ERC20 tokens\n   * @dev When feature FEATURE_UNSAFE_TRANSFERS is enabled the transfers do not\n   *      check if the receiver smart contract supports ERC20 tokens,\n   *      i.e. `transfer` and `transferFrom` behave like `unsafeTransferFrom`\n   * @dev When feature FEATURE_UNSAFE_TRANSFERS is disabled (default) the transfers\n   *      check if the receiver smart contract supports ERC20 tokens,\n   *      i.e. `transfer` and `transferFrom` behave like `safeTransferFrom`\n   */\n  uint32 public constant FEATURE_UNSAFE_TRANSFERS = 0x0000_0004;\n\n  /**\n   * @notice Enables token owners to burn their own tokens,\n   *      including locked tokens which are burnt first\n   * @dev Feature FEATURE_OWN_BURNS must be enabled in order for\n   *      `burn()` function to succeed when called by token owner\n   */\n  uint32 public constant FEATURE_OWN_BURNS = 0x0000_0008;\n\n  /**\n   * @notice Enables approved operators to burn tokens on behalf of their owners,\n   *      including locked tokens which are burnt first\n   * @dev Feature FEATURE_OWN_BURNS must be enabled in order for\n   *      `burn()` function to succeed when called by approved operator\n   */\n  uint32 public constant FEATURE_BURNS_ON_BEHALF = 0x0000_0010;\n\n  /**\n   * @notice Enables delegators to elect delegates\n   * @dev Feature FEATURE_DELEGATIONS must be enabled in order for\n   *      `delegate()` function to succeed\n   */\n  uint32 public constant FEATURE_DELEGATIONS = 0x0000_0020;\n\n  /**\n   * @notice Enables delegators to elect delegates on behalf\n   *      (via an EIP712 signature)\n   * @dev Feature FEATURE_DELEGATIONS must be enabled in order for\n   *      `delegateWithSig()` function to succeed\n   */\n  uint32 public constant FEATURE_DELEGATIONS_ON_BEHALF = 0x0000_0040;\n\n  /**\n   * @notice Token creator is responsible for creating (minting)\n   *      tokens to an arbitrary address\n   * @dev Role ROLE_TOKEN_CREATOR allows minting tokens\n   *      (calling `mint` function)\n   */\n  uint32 public constant ROLE_TOKEN_CREATOR = 0x0001_0000;\n\n  /**\n   * @notice Token destroyer is responsible for destroying (burning)\n   *      tokens owned by an arbitrary address\n   * @dev Role ROLE_TOKEN_DESTROYER allows burning tokens\n   *      (calling `burn` function)\n   */\n  uint32 public constant ROLE_TOKEN_DESTROYER = 0x0002_0000;\n\n  /**\n   * @notice ERC20 receivers are allowed to receive tokens without ERC20 safety checks,\n   *      which may be useful to simplify tokens transfers into \"legacy\" smart contracts\n   * @dev When `FEATURE_UNSAFE_TRANSFERS` is not enabled addresses having\n   *      `ROLE_ERC20_RECEIVER` permission are allowed to receive tokens\n   *      via `transfer` and `transferFrom` functions in the same way they\n   *      would via `unsafeTransferFrom` function\n   * @dev When `FEATURE_UNSAFE_TRANSFERS` is enabled `ROLE_ERC20_RECEIVER` permission\n   *      doesn't affect the transfer behaviour since\n   *      `transfer` and `transferFrom` behave like `unsafeTransferFrom` for any receiver\n   * @dev ROLE_ERC20_RECEIVER is a shortening for ROLE_UNSAFE_ERC20_RECEIVER\n   */\n  uint32 public constant ROLE_ERC20_RECEIVER = 0x0004_0000;\n\n  /**\n   * @notice ERC20 senders are allowed to send tokens without ERC20 safety checks,\n   *      which may be useful to simplify tokens transfers into \"legacy\" smart contracts\n   * @dev When `FEATURE_UNSAFE_TRANSFERS` is not enabled senders having\n   *      `ROLE_ERC20_SENDER` permission are allowed to send tokens\n   *      via `transfer` and `transferFrom` functions in the same way they\n   *      would via `unsafeTransferFrom` function\n   * @dev When `FEATURE_UNSAFE_TRANSFERS` is enabled `ROLE_ERC20_SENDER` permission\n   *      doesn't affect the transfer behaviour since\n   *      `transfer` and `transferFrom` behave like `unsafeTransferFrom` for any receiver\n   * @dev ROLE_ERC20_SENDER is a shortening for ROLE_UNSAFE_ERC20_SENDER\n   */\n  uint32 public constant ROLE_ERC20_SENDER = 0x0008_0000;\n\n  /**\n   * @dev Magic value to be returned by ERC20Receiver upon successful reception of token(s)\n   * @dev Equal to `bytes4(keccak256(\"onERC20Received(address,address,uint256,bytes)\"))`,\n   *      which can be also obtained as `ERC20Receiver(address(0)).onERC20Received.selector`\n   */\n  bytes4 private constant ERC20_RECEIVED = 0x4fc35859;\n\n  /**\n   * @notice EIP-712 contract's domain typeHash, see https://eips.ethereum.org/EIPS/eip-712#rationale-for-typehash\n   */\n  bytes32 public constant DOMAIN_TYPEHASH = keccak256(\"EIP712Domain(string name,uint256 chainId,address verifyingContract)\");\n\n  /**\n   * @notice EIP-712 delegation struct typeHash, see https://eips.ethereum.org/EIPS/eip-712#rationale-for-typehash\n   */\n  bytes32 public constant DELEGATION_TYPEHASH = keccak256(\"Delegation(address delegate,uint256 nonce,uint256 expiry)\");\n\n  /**\n   * @dev Fired in transfer(), transferFrom() and some other (non-ERC20) functions\n   *\n   * @dev ERC20 `event Transfer(address indexed _from, address indexed _to, uint256 _value)`\n   *\n   * @param _from an address tokens were consumed from\n   * @param _to an address tokens were sent to\n   * @param _value number of tokens transferred\n   */\n  event Transfer(address indexed _from, address indexed _to, uint256 _value);\n\n  /**\n   * @dev Fired in approve() and approveAtomic() functions\n   *\n   * @dev ERC20 `event Approval(address indexed _owner, address indexed _spender, uint256 _value)`\n   *\n   * @param _owner an address which granted a permission to transfer\n   *      tokens on its behalf\n   * @param _spender an address which received a permission to transfer\n   *      tokens on behalf of the owner `_owner`\n   * @param _value amount of tokens granted to transfer on behalf\n   */\n  event Approval(address indexed _owner, address indexed _spender, uint256 _value);\n\n  /**\n   * @dev Fired in mint() function\n   *\n   * @param _by an address which minted some tokens (transaction sender)\n   * @param _to an address the tokens were minted to\n   * @param _value an amount of tokens minted\n   */\n  event Minted(address indexed _by, address indexed _to, uint256 _value);\n\n  /**\n   * @dev Fired in burn() function\n   *\n   * @param _by an address which burned some tokens (transaction sender)\n   * @param _from an address the tokens were burnt from\n   * @param _value an amount of tokens burnt\n   */\n  event Burnt(address indexed _by, address indexed _from, uint256 _value);\n\n  /**\n   * @dev Resolution for the Multiple Withdrawal Attack on ERC20 Tokens (ISBN:978-1-7281-3027-9)\n   *\n   * @dev Similar to ERC20 Transfer event, but also logs an address which executed transfer\n   *\n   * @dev Fired in transfer(), transferFrom() and some other (non-ERC20) functions\n   *\n   * @param _by an address which performed the transfer\n   * @param _from an address tokens were consumed from\n   * @param _to an address tokens were sent to\n   * @param _value number of tokens transferred\n   */\n  event Transferred(address indexed _by, address indexed _from, address indexed _to, uint256 _value);\n\n  /**\n   * @dev Resolution for the Multiple Withdrawal Attack on ERC20 Tokens (ISBN:978-1-7281-3027-9)\n   *\n   * @dev Similar to ERC20 Approve event, but also logs old approval value\n   *\n   * @dev Fired in approve() and approveAtomic() functions\n   *\n   * @param _owner an address which granted a permission to transfer\n   *      tokens on its behalf\n   * @param _spender an address which received a permission to transfer\n   *      tokens on behalf of the owner `_owner`\n   * @param _oldValue previously granted amount of tokens to transfer on behalf\n   * @param _value new granted amount of tokens to transfer on behalf\n   */\n  event Approved(address indexed _owner, address indexed _spender, uint256 _oldValue, uint256 _value);\n\n  /**\n   * @dev Notifies that a key-value pair in `votingDelegates` mapping has changed,\n   *      i.e. a delegator address has changed its delegate address\n   *\n   * @param _of delegator address, a token owner\n   * @param _from old delegate, an address which delegate right is revoked\n   * @param _to new delegate, an address which received the voting power\n   */\n  event DelegateChanged(address indexed _of, address indexed _from, address indexed _to);\n\n  /**\n   * @dev Notifies that a key-value pair in `votingPowerHistory` mapping has changed,\n   *      i.e. a delegate's voting power has changed.\n   *\n   * @param _of delegate whose voting power has changed\n   * @param _fromVal previous number of votes delegate had\n   * @param _toVal new number of votes delegate has\n   */\n  event VotingPowerChanged(address indexed _of, uint256 _fromVal, uint256 _toVal);\n\n  /**\n   * @dev Deploys the token smart contract,\n   *      assigns initial token supply to the address specified\n   *\n   * @param _initialHolder owner of the initial token supply\n   */\n  constructor(address _initialHolder) {\n    // verify initial holder address non-zero (is set)\n    require(_initialHolder != address(0), \"_initialHolder not set (zero address)\");\n\n    // mint initial supply\n    mint(_initialHolder, 7_000_000e18);\n  }\n\n  // ===== Start: ERC20/ERC223/ERC777 functions =====\n\n  /**\n   * @notice Gets the balance of a particular address\n   *\n   * @dev ERC20 `function balanceOf(address _owner) public view returns (uint256 balance)`\n   *\n   * @param _owner the address to query the the balance for\n   * @return balance an amount of tokens owned by the address specified\n   */\n  function balanceOf(address _owner) public view returns (uint256 balance) {\n    // read the balance and return\n    return tokenBalances[_owner];\n  }\n\n  /**\n   * @notice Transfers some tokens to an external address or a smart contract\n   *\n   * @dev ERC20 `function transfer(address _to, uint256 _value) public returns (bool success)`\n   *\n   * @dev Called by token owner (an address which has a\n   *      positive token balance tracked by this smart contract)\n   * @dev Throws on any error like\n   *      * insufficient token balance or\n   *      * incorrect `_to` address:\n   *          * zero address or\n   *          * self address or\n   *          * smart contract which doesn't support ERC20\n   *\n   * @param _to an address to transfer tokens to,\n   *      must be either an external address or a smart contract,\n   *      compliant with the ERC20 standard\n   * @param _value amount of tokens to be transferred, must\n   *      be greater than zero\n   * @return success true on success, throws otherwise\n   */\n  function transfer(address _to, uint256 _value) public returns (bool success) {\n    // just delegate call to `transferFrom`,\n    // `FEATURE_TRANSFERS` is verified inside it\n    return transferFrom(msg.sender, _to, _value);\n  }\n\n  /**\n   * @notice Transfers some tokens on behalf of address `_from' (token owner)\n   *      to some other address `_to`\n   *\n   * @dev ERC20 `function transferFrom(address _from, address _to, uint256 _value) public returns (bool success)`\n   *\n   * @dev Called by token owner on his own or approved address,\n   *      an address approved earlier by token owner to\n   *      transfer some amount of tokens on its behalf\n   * @dev Throws on any error like\n   *      * insufficient token balance or\n   *      * incorrect `_to` address:\n   *          * zero address or\n   *          * same as `_from` address (self transfer)\n   *          * smart contract which doesn't support ERC20\n   *\n   * @param _from token owner which approved caller (transaction sender)\n   *      to transfer `_value` of tokens on its behalf\n   * @param _to an address to transfer tokens to,\n   *      must be either an external address or a smart contract,\n   *      compliant with the ERC20 standard\n   * @param _value amount of tokens to be transferred, must\n   *      be greater than zero\n   * @return success true on success, throws otherwise\n   */\n  function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {\n    // depending on `FEATURE_UNSAFE_TRANSFERS` we execute either safe (default)\n    // or unsafe transfer\n    // if `FEATURE_UNSAFE_TRANSFERS` is enabled\n    // or receiver has `ROLE_ERC20_RECEIVER` permission\n    // or sender has `ROLE_ERC20_SENDER` permission\n    if(isFeatureEnabled(FEATURE_UNSAFE_TRANSFERS)\n      || isOperatorInRole(_to, ROLE_ERC20_RECEIVER)\n      || isSenderInRole(ROLE_ERC20_SENDER)) {\n      // we execute unsafe transfer - delegate call to `unsafeTransferFrom`,\n      // `FEATURE_TRANSFERS` is verified inside it\n      unsafeTransferFrom(_from, _to, _value);\n    }\n    // otherwise - if `FEATURE_UNSAFE_TRANSFERS` is disabled\n    // and receiver doesn't have `ROLE_ERC20_RECEIVER` permission\n    else {\n      // we execute safe transfer - delegate call to `safeTransferFrom`, passing empty `_data`,\n      // `FEATURE_TRANSFERS` is verified inside it\n      safeTransferFrom(_from, _to, _value, \"\");\n    }\n\n    // both `unsafeTransferFrom` and `safeTransferFrom` throw on any error, so\n    // if we're here - it means operation successful,\n    // just return true\n    return true;\n  }\n\n  /**\n   * @notice Transfers some tokens on behalf of address `_from' (token owner)\n   *      to some other address `_to`\n   *\n   * @dev Inspired by ERC721 safeTransferFrom, this function allows to\n   *      send arbitrary data to the receiver on successful token transfer\n   * @dev Called by token owner on his own or approved address,\n   *      an address approved earlier by token owner to\n   *      transfer some amount of tokens on its behalf\n   * @dev Throws on any error like\n   *      * insufficient token balance or\n   *      * incorrect `_to` address:\n   *          * zero address or\n   *          * same as `_from` address (self transfer)\n   *          * smart contract which doesn't support ERC20Receiver interface\n   * @dev Returns silently on success, throws otherwise\n   *\n   * @param _from token owner which approved caller (transaction sender)\n   *      to transfer `_value` of tokens on its behalf\n   * @param _to an address to transfer tokens to,\n   *      must be either an external address or a smart contract,\n   *      compliant with the ERC20 standard\n   * @param _value amount of tokens to be transferred, must\n   *      be greater than zero\n   * @param _data [optional] additional data with no specified format,\n   *      sent in onERC20Received call to `_to` in case if its a smart contract\n   */\n  function safeTransferFrom(address _from, address _to, uint256 _value, bytes memory _data) public {\n    // first delegate call to `unsafeTransferFrom`\n    // to perform the unsafe token(s) transfer\n    unsafeTransferFrom(_from, _to, _value);\n\n    // after the successful transfer - check if receiver supports\n    // ERC20Receiver and execute a callback handler `onERC20Received`,\n    // reverting whole transaction on any error:\n    // check if receiver `_to` supports ERC20Receiver interface\n    if(AddressUtils.isContract(_to)) {\n      // if `_to` is a contract - execute onERC20Received\n      bytes4 response = ERC20Receiver(_to).onERC20Received(msg.sender, _from, _value, _data);\n\n      // expected response is ERC20_RECEIVED\n      require(response == ERC20_RECEIVED, \"invalid onERC20Received response\");\n    }\n  }\n\n  /**\n   * @notice Transfers some tokens on behalf of address `_from' (token owner)\n   *      to some other address `_to`\n   *\n   * @dev In contrast to `safeTransferFrom` doesn't check recipient\n   *      smart contract to support ERC20 tokens (ERC20Receiver)\n   * @dev Designed to be used by developers when the receiver is known\n   *      to support ERC20 tokens but doesn't implement ERC20Receiver interface\n   * @dev Called by token owner on his own or approved address,\n   *      an address approved earlier by token owner to\n   *      transfer some amount of tokens on its behalf\n   * @dev Throws on any error like\n   *      * insufficient token balance or\n   *      * incorrect `_to` address:\n   *          * zero address or\n   *          * same as `_from` address (self transfer)\n   * @dev Returns silently on success, throws otherwise\n   *\n   * @param _from token owner which approved caller (transaction sender)\n   *      to transfer `_value` of tokens on its behalf\n   * @param _to an address to transfer tokens to,\n   *      must be either an external address or a smart contract,\n   *      compliant with the ERC20 standard\n   * @param _value amount of tokens to be transferred, must\n   *      be greater than zero\n   */\n  function unsafeTransferFrom(address _from, address _to, uint256 _value) public {\n    // if `_from` is equal to sender, require transfers feature to be enabled\n    // otherwise require transfers on behalf feature to be enabled\n    require(_from == msg.sender && isFeatureEnabled(FEATURE_TRANSFERS)\n         || _from != msg.sender && isFeatureEnabled(FEATURE_TRANSFERS_ON_BEHALF),\n            _from == msg.sender? \"transfers are disabled\": \"transfers on behalf are disabled\");\n\n    // non-zero source address check - Zeppelin\n    // obviously, zero source address is a client mistake\n    // it's not part of ERC20 standard but it's reasonable to fail fast\n    // since for zero value transfer transaction succeeds otherwise\n    require(_from != address(0), \"ERC20: transfer from the zero address\"); // Zeppelin msg\n\n    // non-zero recipient address check\n    require(_to != address(0), \"ERC20: transfer to the zero address\"); // Zeppelin msg\n\n    // sender and recipient cannot be the same\n    require(_from != _to, \"sender and recipient are the same (_from = _to)\");\n\n    // sending tokens to the token smart contract itself is a client mistake\n    require(_to != address(this), \"invalid recipient (transfer to the token smart contract itself)\");\n\n    // according to ERC-20 Token Standard, https://eips.ethereum.org/EIPS/eip-20\n    // \"Transfers of 0 values MUST be treated as normal transfers and fire the Transfer event.\"\n    if(_value == 0) {\n      // emit an ERC20 transfer event\n      emit Transfer(_from, _to, _value);\n\n      // don't forget to return - we're done\n      return;\n    }\n\n    // no need to make arithmetic overflow check on the _value - by design of mint()\n\n    // in case of transfer on behalf\n    if(_from != msg.sender) {\n      // read allowance value - the amount of tokens allowed to transfer - into the stack\n      uint256 _allowance = transferAllowances[_from][msg.sender];\n\n      // verify sender has an allowance to transfer amount of tokens requested\n      require(_allowance >= _value, \"ERC20: transfer amount exceeds allowance\"); // Zeppelin msg\n\n      // update allowance value on the stack\n      _allowance -= _value;\n\n      // update the allowance value in storage\n      transferAllowances[_from][msg.sender] = _allowance;\n\n      // emit an improved atomic approve event\n      emit Approved(_from, msg.sender, _allowance + _value, _allowance);\n\n      // emit an ERC20 approval event to reflect the decrease\n      emit Approval(_from, msg.sender, _allowance);\n    }\n\n    // verify sender has enough tokens to transfer on behalf\n    require(tokenBalances[_from] >= _value, \"ERC20: transfer amount exceeds balance\"); // Zeppelin msg\n\n    // perform the transfer:\n    // decrease token owner (sender) balance\n    tokenBalances[_from] -= _value;\n\n    // increase `_to` address (receiver) balance\n    tokenBalances[_to] += _value;\n\n    // move voting power associated with the tokens transferred\n    __moveVotingPower(votingDelegates[_from], votingDelegates[_to], _value);\n\n    // emit an improved transfer event\n    emit Transferred(msg.sender, _from, _to, _value);\n\n    // emit an ERC20 transfer event\n    emit Transfer(_from, _to, _value);\n  }\n\n  /**\n   * @notice Approves address called `_spender` to transfer some amount\n   *      of tokens on behalf of the owner\n   *\n   * @dev ERC20 `function approve(address _spender, uint256 _value) public returns (bool success)`\n   *\n   * @dev Caller must not necessarily own any tokens to grant the permission\n   *\n   * @param _spender an address approved by the caller (token owner)\n   *      to spend some tokens on its behalf\n   * @param _value an amount of tokens spender `_spender` is allowed to\n   *      transfer on behalf of the token owner\n   * @return success true on success, throws otherwise\n   */\n  function approve(address _spender, uint256 _value) public returns (bool success) {\n    // non-zero spender address check - Zeppelin\n    // obviously, zero spender address is a client mistake\n    // it's not part of ERC20 standard but it's reasonable to fail fast\n    require(_spender != address(0), \"ERC20: approve to the zero address\"); // Zeppelin msg\n\n    // read old approval value to emmit an improved event (ISBN:978-1-7281-3027-9)\n    uint256 _oldValue = transferAllowances[msg.sender][_spender];\n\n    // perform an operation: write value requested into the storage\n    transferAllowances[msg.sender][_spender] = _value;\n\n    // emit an improved atomic approve event (ISBN:978-1-7281-3027-9)\n    emit Approved(msg.sender, _spender, _oldValue, _value);\n\n    // emit an ERC20 approval event\n    emit Approval(msg.sender, _spender, _value);\n\n    // operation successful, return true\n    return true;\n  }\n\n  /**\n   * @notice Returns the amount which _spender is still allowed to withdraw from _owner.\n   *\n   * @dev ERC20 `function allowance(address _owner, address _spender) public view returns (uint256 remaining)`\n   *\n   * @dev A function to check an amount of tokens owner approved\n   *      to transfer on its behalf by some other address called \"spender\"\n   *\n   * @param _owner an address which approves transferring some tokens on its behalf\n   * @param _spender an address approved to transfer some tokens on behalf\n   * @return remaining an amount of tokens approved address `_spender` can transfer on behalf\n   *      of token owner `_owner`\n   */\n  function allowance(address _owner, address _spender) public view returns (uint256 remaining) {\n    // read the value from storage and return\n    return transferAllowances[_owner][_spender];\n  }\n\n  // ===== End: ERC20/ERC223/ERC777 functions =====\n\n  // ===== Start: Resolution for the Multiple Withdrawal Attack on ERC20 Tokens (ISBN:978-1-7281-3027-9) =====\n\n  /**\n   * @notice Increases the allowance granted to `spender` by the transaction sender\n   *\n   * @dev Resolution for the Multiple Withdrawal Attack on ERC20 Tokens (ISBN:978-1-7281-3027-9)\n   *\n   * @dev Throws if value to increase by is zero or too big and causes arithmetic overflow\n   *\n   * @param _spender an address approved by the caller (token owner)\n   *      to spend some tokens on its behalf\n   * @param _value an amount of tokens to increase by\n   * @return success true on success, throws otherwise\n   */\n  function increaseAllowance(address _spender, uint256 _value) public virtual returns (bool) {\n    // read current allowance value\n    uint256 currentVal = transferAllowances[msg.sender][_spender];\n\n    // non-zero _value and arithmetic overflow check on the allowance\n    require(currentVal + _value > currentVal, \"zero value approval increase or arithmetic overflow\");\n\n    // delegate call to `approve` with the new value\n    return approve(_spender, currentVal + _value);\n  }\n\n  /**\n   * @notice Decreases the allowance granted to `spender` by the caller.\n   *\n   * @dev Resolution for the Multiple Withdrawal Attack on ERC20 Tokens (ISBN:978-1-7281-3027-9)\n   *\n   * @dev Throws if value to decrease by is zero or is bigger than currently allowed value\n   *\n   * @param _spender an address approved by the caller (token owner)\n   *      to spend some tokens on its behalf\n   * @param _value an amount of tokens to decrease by\n   * @return success true on success, throws otherwise\n   */\n  function decreaseAllowance(address _spender, uint256 _value) public virtual returns (bool) {\n    // read current allowance value\n    uint256 currentVal = transferAllowances[msg.sender][_spender];\n\n    // non-zero _value check on the allowance\n    require(_value > 0, \"zero value approval decrease\");\n\n    // verify allowance decrease doesn't underflow\n    require(currentVal >= _value, \"ERC20: decreased allowance below zero\");\n\n    // delegate call to `approve` with the new value\n    return approve(_spender, currentVal - _value);\n  }\n\n  // ===== End: Resolution for the Multiple Withdrawal Attack on ERC20 Tokens (ISBN:978-1-7281-3027-9) =====\n\n  // ===== Start: Minting/burning extension =====\n\n  /**\n   * @dev Mints (creates) some tokens to address specified\n   * @dev The value specified is treated as is without taking\n   *      into account what `decimals` value is\n   * @dev Behaves effectively as `mintTo` function, allowing\n   *      to specify an address to mint tokens to\n   * @dev Requires sender to have `ROLE_TOKEN_CREATOR` permission\n   *\n   * @dev Throws on overflow, if totalSupply + _value doesn't fit into uint256\n   *\n   * @param _to an address to mint tokens to\n   * @param _value an amount of tokens to mint (create)\n   */\n  function mint(address _to, uint256 _value) public {\n    // check if caller has sufficient permissions to mint tokens\n    require(isSenderInRole(ROLE_TOKEN_CREATOR), \"insufficient privileges (ROLE_TOKEN_CREATOR required)\");\n\n    // non-zero recipient address check\n    require(_to != address(0), \"ERC20: mint to the zero address\"); // Zeppelin msg\n\n    // non-zero _value and arithmetic overflow check on the total supply\n    // this check automatically secures arithmetic overflow on the individual balance\n    require(totalSupply + _value > totalSupply, \"zero value mint or arithmetic overflow\");\n\n    // uint192 overflow check (required by voting delegation)\n    require(totalSupply + _value <= type(uint192).max, \"total supply overflow (uint192)\");\n\n    // perform mint:\n    // increase total amount of tokens value\n    totalSupply += _value;\n\n    // increase `_to` address balance\n    tokenBalances[_to] += _value;\n\n    // create voting power associated with the tokens minted\n    __moveVotingPower(address(0), votingDelegates[_to], _value);\n\n    // fire a minted event\n    emit Minted(msg.sender, _to, _value);\n\n    // emit an improved transfer event\n    emit Transferred(msg.sender, address(0), _to, _value);\n\n    // fire ERC20 compliant transfer event\n    emit Transfer(address(0), _to, _value);\n  }\n\n  /**\n   * @dev Burns (destroys) some tokens from the address specified\n   * @dev The value specified is treated as is without taking\n   *      into account what `decimals` value is\n   * @dev Behaves effectively as `burnFrom` function, allowing\n   *      to specify an address to burn tokens from\n   * @dev Requires sender to have `ROLE_TOKEN_DESTROYER` permission\n   *\n   * @param _from an address to burn some tokens from\n   * @param _value an amount of tokens to burn (destroy)\n   */\n  function burn(address _from, uint256 _value) public {\n    // check if caller has sufficient permissions to burn tokens\n    // and if not - check for possibility to burn own tokens or to burn on behalf\n    if(!isSenderInRole(ROLE_TOKEN_DESTROYER)) {\n      // if `_from` is equal to sender, require own burns feature to be enabled\n      // otherwise require burns on behalf feature to be enabled\n      require(_from == msg.sender && isFeatureEnabled(FEATURE_OWN_BURNS)\n           || _from != msg.sender && isFeatureEnabled(FEATURE_BURNS_ON_BEHALF),\n              _from == msg.sender? \"burns are disabled\": \"burns on behalf are disabled\");\n\n      // in case of burn on behalf\n      if(_from != msg.sender) {\n        // read allowance value - the amount of tokens allowed to be burnt - into the stack\n        uint256 _allowance = transferAllowances[_from][msg.sender];\n\n        // verify sender has an allowance to burn amount of tokens requested\n        require(_allowance >= _value, \"ERC20: burn amount exceeds allowance\"); // Zeppelin msg\n\n        // update allowance value on the stack\n        _allowance -= _value;\n\n        // update the allowance value in storage\n        transferAllowances[_from][msg.sender] = _allowance;\n\n        // emit an improved atomic approve event\n        emit Approved(msg.sender, _from, _allowance + _value, _allowance);\n\n        // emit an ERC20 approval event to reflect the decrease\n        emit Approval(_from, msg.sender, _allowance);\n      }\n    }\n\n    // at this point we know that either sender is ROLE_TOKEN_DESTROYER or\n    // we burn own tokens or on behalf (in latest case we already checked and updated allowances)\n    // we have left to execute balance checks and burning logic itself\n\n    // non-zero burn value check\n    require(_value != 0, \"zero value burn\");\n\n    // non-zero source address check - Zeppelin\n    require(_from != address(0), \"ERC20: burn from the zero address\"); // Zeppelin msg\n\n    // verify `_from` address has enough tokens to destroy\n    // (basically this is a arithmetic overflow check)\n    require(tokenBalances[_from] >= _value, \"ERC20: burn amount exceeds balance\"); // Zeppelin msg\n\n    // perform burn:\n    // decrease `_from` address balance\n    tokenBalances[_from] -= _value;\n\n    // decrease total amount of tokens value\n    totalSupply -= _value;\n\n    // destroy voting power associated with the tokens burnt\n    __moveVotingPower(votingDelegates[_from], address(0), _value);\n\n    // fire a burnt event\n    emit Burnt(msg.sender, _from, _value);\n\n    // emit an improved transfer event\n    emit Transferred(msg.sender, _from, address(0), _value);\n\n    // fire ERC20 compliant transfer event\n    emit Transfer(_from, address(0), _value);\n  }\n\n  // ===== End: Minting/burning extension =====\n\n  // ===== Start: DAO Support (Compound-like voting delegation) =====\n\n  /**\n   * @notice Gets current voting power of the account `_of`\n   * @param _of the address of account to get voting power of\n   * @return current cumulative voting power of the account,\n   *      sum of token balances of all its voting delegators\n   */\n  function getVotingPower(address _of) public view returns (uint256) {\n    // get a link to an array of voting power history records for an address specified\n    VotingPowerRecord[] storage history = votingPowerHistory[_of];\n\n    // lookup the history and return latest element\n    return history.length == 0? 0: history[history.length - 1].votingPower;\n  }\n\n  /**\n   * @notice Gets past voting power of the account `_of` at some block `_blockNum`\n   * @dev Throws if `_blockNum` is not in the past (not the finalized block)\n   * @param _of the address of account to get voting power of\n   * @param _blockNum block number to get the voting power at\n   * @return past cumulative voting power of the account,\n   *      sum of token balances of all its voting delegators at block number `_blockNum`\n   */\n  function getVotingPowerAt(address _of, uint256 _blockNum) public view returns (uint256) {\n    // make sure block number is not in the past (not the finalized block)\n    require(_blockNum < block.number, \"not yet determined\"); // Compound msg\n\n    // get a link to an array of voting power history records for an address specified\n    VotingPowerRecord[] storage history = votingPowerHistory[_of];\n\n    // if voting power history for the account provided is empty\n    if(history.length == 0) {\n      // than voting power is zero - return the result\n      return 0;\n    }\n\n    // check latest voting power history record block number:\n    // if history was not updated after the block of interest\n    if(history[history.length - 1].blockNumber <= _blockNum) {\n      // we're done - return last voting power record\n      return getVotingPower(_of);\n    }\n\n    // check first voting power history record block number:\n    // if history was never updated before the block of interest\n    if(history[0].blockNumber > _blockNum) {\n      // we're done - voting power at the block num of interest was zero\n      return 0;\n    }\n\n    // `votingPowerHistory[_of]` is an array ordered by `blockNumber`, ascending;\n    // apply binary search on `votingPowerHistory[_of]` to find such an entry number `i`, that\n    // `votingPowerHistory[_of][i].blockNumber <= _blockNum`, but in the same time\n    // `votingPowerHistory[_of][i + 1].blockNumber > _blockNum`\n    // return the result - voting power found at index `i`\n    return history[__binaryLookup(_of, _blockNum)].votingPower;\n  }\n\n  /**\n   * @dev Reads an entire voting power history array for the delegate specified\n   *\n   * @param _of delegate to query voting power history for\n   * @return voting power history array for the delegate of interest\n   */\n  function getVotingPowerHistory(address _of) public view returns(VotingPowerRecord[] memory) {\n    // return an entire array as memory\n    return votingPowerHistory[_of];\n  }\n\n  /**\n   * @dev Returns length of the voting power history array for the delegate specified;\n   *      useful since reading an entire array just to get its length is expensive (gas cost)\n   *\n   * @param _of delegate to query voting power history length for\n   * @return voting power history array length for the delegate of interest\n   */\n  function getVotingPowerHistoryLength(address _of) public view returns(uint256) {\n    // read array length and return\n    return votingPowerHistory[_of].length;\n  }\n\n  /**\n   * @notice Delegates voting power of the delegator `msg.sender` to the delegate `_to`\n   *\n   * @dev Accepts zero value address to delegate voting power to, effectively\n   *      removing the delegate in that case\n   *\n   * @param _to address to delegate voting power to\n   */\n  function delegate(address _to) public {\n    // verify delegations are enabled\n    require(isFeatureEnabled(FEATURE_DELEGATIONS), \"delegations are disabled\");\n    // delegate call to `__delegate`\n    __delegate(msg.sender, _to);\n  }\n\n  /**\n   * @notice Delegates voting power of the delegator (represented by its signature) to the delegate `_to`\n   *\n   * @dev Accepts zero value address to delegate voting power to, effectively\n   *      removing the delegate in that case\n   *\n   * @dev Compliant with EIP-712: Ethereum typed structured data hashing and signing,\n   *      see https://eips.ethereum.org/EIPS/eip-712\n   *\n   * @param _to address to delegate voting power to\n   * @param _nonce nonce used to construct the signature, and used to validate it;\n   *      nonce is increased by one after successful signature validation and vote delegation\n   * @param _exp signature expiration time\n   * @param v the recovery byte of the signature\n   * @param r half of the ECDSA signature pair\n   * @param s half of the ECDSA signature pair\n   */\n  function delegateWithSig(address _to, uint256 _nonce, uint256 _exp, uint8 v, bytes32 r, bytes32 s) public {\n    // verify delegations on behalf are enabled\n    require(isFeatureEnabled(FEATURE_DELEGATIONS_ON_BEHALF), \"delegations on behalf are disabled\");\n\n    // build the EIP-712 contract domain separator\n    bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), block.chainid, address(this)));\n\n    // build the EIP-712 hashStruct of the delegation message\n    bytes32 hashStruct = keccak256(abi.encode(DELEGATION_TYPEHASH, _to, _nonce, _exp));\n\n    // calculate the EIP-712 digest \"\\x19\\x01\" ‖ domainSeparator ‖ hashStruct(message)\n    bytes32 digest = keccak256(abi.encodePacked(\"\\x19\\x01\", domainSeparator, hashStruct));\n\n    // recover the address who signed the message with v, r, s\n    address signer = ecrecover(digest, v, r, s);\n\n    // perform message integrity and security validations\n    require(signer != address(0), \"invalid signature\"); // Compound msg\n    require(_nonce == nonces[signer], \"invalid nonce\"); // Compound msg\n    require(block.timestamp < _exp, \"signature expired\"); // Compound msg\n\n    // update the nonce for that particular signer to avoid replay attack\n    nonces[signer]++;\n\n    // delegate call to `__delegate` - execute the logic required\n    __delegate(signer, _to);\n  }\n\n  /**\n   * @dev Auxiliary function to delegate delegator's `_from` voting power to the delegate `_to`\n   * @dev Writes to `votingDelegates` and `votingPowerHistory` mappings\n   *\n   * @param _from delegator who delegates his voting power\n   * @param _to delegate who receives the voting power\n   */\n  function __delegate(address _from, address _to) private {\n    // read current delegate to be replaced by a new one\n    address _fromDelegate = votingDelegates[_from];\n\n    // read current voting power (it is equal to token balance)\n    uint256 _value = tokenBalances[_from];\n\n    // reassign voting delegate to `_to`\n    votingDelegates[_from] = _to;\n\n    // update voting power for `_fromDelegate` and `_to`\n    __moveVotingPower(_fromDelegate, _to, _value);\n\n    // emit an event\n    emit DelegateChanged(_from, _fromDelegate, _to);\n  }\n\n  /**\n   * @dev Auxiliary function to move voting power `_value`\n   *      from delegate `_from` to the delegate `_to`\n   *\n   * @dev Doesn't have any effect if `_from == _to`, or if `_value == 0`\n   *\n   * @param _from delegate to move voting power from\n   * @param _to delegate to move voting power to\n   * @param _value voting power to move from `_from` to `_to`\n   */\n  function __moveVotingPower(address _from, address _to, uint256 _value) private {\n    // if there is no move (`_from == _to`) or there is nothing to move (`_value == 0`)\n    if(_from == _to || _value == 0) {\n      // return silently with no action\n      return;\n    }\n\n    // if source address is not zero - decrease its voting power\n    if(_from != address(0)) {\n      // read current source address voting power\n      uint256 _fromVal = getVotingPower(_from);\n\n      // calculate decreased voting power\n      // underflow is not possible by design:\n      // voting power is limited by token balance which is checked by the callee\n      uint256 _toVal = _fromVal - _value;\n\n      // update source voting power from `_fromVal` to `_toVal`\n      __updateVotingPower(_from, _fromVal, _toVal);\n    }\n\n    // if destination address is not zero - increase its voting power\n    if(_to != address(0)) {\n      // read current destination address voting power\n      uint256 _fromVal = getVotingPower(_to);\n\n      // calculate increased voting power\n      // overflow is not possible by design:\n      // max token supply limits the cumulative voting power\n      uint256 _toVal = _fromVal + _value;\n\n      // update destination voting power from `_fromVal` to `_toVal`\n      __updateVotingPower(_to, _fromVal, _toVal);\n    }\n  }\n\n  /**\n   * @dev Auxiliary function to update voting power of the delegate `_of`\n   *      from value `_fromVal` to value `_toVal`\n   *\n   * @param _of delegate to update its voting power\n   * @param _fromVal old voting power of the delegate\n   * @param _toVal new voting power of the delegate\n   */\n  function __updateVotingPower(address _of, uint256 _fromVal, uint256 _toVal) private {\n    // get a link to an array of voting power history records for an address specified\n    VotingPowerRecord[] storage history = votingPowerHistory[_of];\n\n    // if there is an existing voting power value stored for current block\n    if(history.length != 0 && history[history.length - 1].blockNumber == block.number) {\n      // update voting power which is already stored in the current block\n      history[history.length - 1].votingPower = uint192(_toVal);\n    }\n    // otherwise - if there is no value stored for current block\n    else {\n      // add new element into array representing the value for current block\n      history.push(VotingPowerRecord(uint64(block.number), uint192(_toVal)));\n    }\n\n    // emit an event\n    emit VotingPowerChanged(_of, _fromVal, _toVal);\n  }\n\n  /**\n   * @dev Auxiliary function to lookup an element in a sorted (asc) array of elements\n   *\n   * @dev This function finds the closest element in an array to the value\n   *      of interest (not exceeding that value) and returns its index within an array\n   *\n   * @dev An array to search in is `votingPowerHistory[_to][i].blockNumber`,\n   *      it is sorted in ascending order (blockNumber increases)\n   *\n   * @param _to an address of the delegate to get an array for\n   * @param n value of interest to look for\n   * @return an index of the closest element in an array to the value\n   *      of interest (not exceeding that value)\n   */\n  function __binaryLookup(address _to, uint256 n) private view returns(uint256) {\n    // get a link to an array of voting power history records for an address specified\n    VotingPowerRecord[] storage history = votingPowerHistory[_to];\n\n    // left bound of the search interval, originally start of the array\n    uint256 i = 0;\n\n    // right bound of the search interval, originally end of the array\n    uint256 j = history.length - 1;\n\n    // the iteration process narrows down the bounds by\n    // splitting the interval in a half oce per each iteration\n    while(j > i) {\n      // get an index in the middle of the interval [i, j]\n      uint256 k = j - (j - i) / 2;\n\n      // read an element to compare it with the value of interest\n      VotingPowerRecord memory cp = history[k];\n\n      // if we've got a strict equal - we're lucky and done\n      if(cp.blockNumber == n) {\n        // just return the result - index `k`\n        return k;\n      }\n      // if the value of interest is bigger - move left bound to the middle\n      else if (cp.blockNumber < n) {\n        // move left bound `i` to the middle position `k`\n        i = k;\n      }\n      // otherwise, when the value of interest is smaller - move right bound to the middle\n      else {\n        // move right bound `j` to the middle position `k - 1`:\n        // element at position `k` is bigger and cannot be the result\n        j = k - 1;\n      }\n    }\n\n    // reaching that point means no exact match found\n    // since we're interested in the element which is not bigger than the\n    // element of interest, we return the lower bound `i`\n    return i;\n  }\n}\n\n// ===== End: DAO Support (Compound-like voting delegation) =====\n","deployed_bytecode":"0x608060405234801561001057600080fd5b50600436106102bb5760003560e01c806384b34a3111610182578063c0d6568d116100e9578063e62cac76116100a2578063eaeded5f1161007c578063eaeded5f146105ba578063f63c2f82146105cd578063f822d5aa146105d5578063fcc2c078146105e8576102bb565b8063e62cac76146105a2578063e7a324dc146105aa578063e98f5ba7146105b2576102bb565b8063c0d6568d14610539578063c5ff500c14610541578063c688d69314610549578063ce9517cf1461055c578063d5bb7f671461057c578063dd62ed3e1461058f576102bb565b8063a457c2d71161013b578063a457c2d7146104d2578063a9059cbb146104e5578063ae5b102e146104f8578063ae682e2e1461050b578063b88d4fde14610513578063bb4d443614610526576102bb565b806384b34a311461048c5780638a114e131461049f5780638d4e57e6146104a75780638f6fba8c146104af57806395d89b41146104b75780639dc29fac146104bf576102bb565b8063395093511161022657806363152a50116101df57806363152a501461040c57806370a082311461041f578063725f36261461043257806374d5e100146104455780637ecebe00146104585780637fd491b01461046b576102bb565b806339509351146103a55780633e9c5f7e146103b857806340c10f19146103c0578063523fba7f146103d357806359b961ef146103e65780635c19a95c146103f9576102bb565b80631e0fa234116102785780631e0fa2341461034557806320606b701461036557806323b872dd1461036d5780632b521416146103805780632d4c39ea14610388578063313ce56714610390576102bb565b806306fdde03146102c0578063095ea7b3146102de57806315d2c225146102fe57806318160ddd146103135780631993f554146103285780631a0b04ea1461033d575b600080fd5b6102c86105fb565b6040516102d591906122e4565b60405180910390f35b6102f16102ec366004612058565b61061f565b6040516102d5919061226a565b61031161030c3660046120b3565b61070f565b005b61031b610950565b6040516102d59190612275565b610330610956565b6040516102d5919061297e565b61033061095b565b610358610353366004611efc565b610960565b6040516102d591906121b7565b61031b61097b565b6102f161037b366004611f48565b61099f565b61031b610a0a565b610330610a37565b610398610a3c565b6040516102d591906129b2565b6102f16103b3366004612058565b610a41565b610330610aa3565b6103116103ce366004612058565b610aa8565b61031b6103e1366004611efc565b610c9d565b6103116103f4366004611f48565b610caf565b610311610407366004611efc565b6110e3565b61031b61041a366004611f16565b611116565b61031b61042d366004611efc565b611133565b6102f1610440366004612139565b611152565b61031b610453366004611efc565b611165565b61031b610466366004611efc565b611177565b61047e610479366004612058565b611189565b6040516102d592919061298f565b61031b61049a366004611efc565b6111d3565b61031b6111ee565b610330611212565b610330611219565b6102c861121e565b6103116104cd366004612058565b61123d565b6102f16104e0366004612058565b6115f6565b6102f16104f3366004612058565b611665565b610311610506366004612058565b611679565b61031b611717565b610311610521366004611f83565b61171f565b61031b610534366004611efc565b6117f9565b61033061187a565b61033061187f565b6102f1610557366004612058565b611886565b61056f61056a366004611efc565b6118a9565b6040516102d59190612208565b61031161058a366004612139565b61193c565b61031b61059d366004611f16565b611947565b610330611972565b61031b611979565b61033061199d565b61031b6105c8366004612058565b6119a4565b610330611ade565b61031b6105e3366004612081565b611ae3565b6102f16105f6366004612139565b611b0e565b60405180604001604052806008815260200167496c6c757669756d60c01b81525081565b60006001600160a01b0383166106505760405162461bcd60e51b8152600401610647906123de565b60405180910390fd5b3360008181526006602090815260408083206001600160a01b0388168085529252918290208054908690559151919290917f71594b34a69973da9bff6f72cc0aad2c51069b6b8e9c70c0648b58d10d7bd84b906106b09085908890612970565b60405180910390a3836001600160a01b0316336001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516106fb9190612275565b60405180910390a360019150505b92915050565b6107196040611152565b6107355760405162461bcd60e51b815260040161064790612420565b6040805180820182526008815267496c6c757669756d60c01b60209182015290516000916107ab917f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866917f084f3cb87ea0c76a68af7707db457f95657fddc1db6e742f190166dbdd3d5b849146913091016122a2565b60405160208183030381529060405280519060200120905060007fff41620983935eb4d4a3c7384a066ca8c1d10cef9a5eca9eb97ca735cd14a7558888886040516020016107fc949392919061227e565b6040516020818303038152906040528051906020012090506000828260405160200161082992919061219c565b60405160208183030381529060405280519060200120905060006001828888886040516000815260200160405260405161086694939291906122c6565b6020604051602081039080840390855afa158015610888573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108bb5760405162461bcd60e51b81526004016106479061233a565b6001600160a01b03811660009081526005602052604090205489146108f25760405162461bcd60e51b815260040161064790612531565b8742106109115760405162461bcd60e51b8152600401610647906128c9565b6001600160a01b038116600090815260056020526040812080549161093583612a0f565b9190505550610944818b611b1a565b50505050505050505050565b60015481565b600481565b600881565b6003602052600090815260409020546001600160a01b031681565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b60006109ab6004611152565b806109be57506109be8362040000611886565b806109d057506109d062080000611b0e565b156109e5576109e0848484610caf565b610a00565b610a008484846040518060200160405280600081525061171f565b5060019392505050565b60008080526020527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb55490565b604081565b601281565b3360009081526006602090815260408083206001600160a01b038616845290915281205480610a7084826129c0565b11610a8d5760405162461bcd60e51b8152600401610647906125d6565b610a9b846102ec85846129c0565b949350505050565b602081565b610ab462010000611b0e565b610ad05760405162461bcd60e51b815260040161064790612558565b6001600160a01b038216610af65760405162461bcd60e51b815260040161064790612939565b600154610b0382826129c0565b11610b205760405162461bcd60e51b8152600401610647906126a8565b6001546001600160c01b0390610b379083906129c0565b1115610b555760405162461bcd60e51b8152600401610647906123a7565b8060016000828254610b6791906129c0565b90915550506001600160a01b03821660009081526002602052604081208054839290610b949084906129c0565b90915550506001600160a01b03808316600090815260036020526040812054610bbe921683611bb5565b816001600160a01b0316336001600160a01b03167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f083604051610c019190612275565b60405180910390a3816001600160a01b031660006001600160a01b0316336001600160a01b03167f769254a71d2f67d8ac6cb44f2803c0d05cfbcf9effadb6a984f10ff9de3df6c384604051610c579190612275565b60405180910390a4816001600160a01b031660006001600160a01b0316600080516020612a5783398151915283604051610c919190612275565b60405180910390a35050565b60026020526000908152604090205481565b6001600160a01b03831633148015610ccc5750610ccc6001611152565b80610cf057506001600160a01b0383163314801590610cf05750610cf06002611152565b6001600160a01b0384163314610d3b576040518060400160405280602081526020017f7472616e7366657273206f6e20626568616c66206172652064697361626c6564815250610d6b565b604051806040016040528060168152602001751d1c985b9cd9995c9cc8185c9948191a5cd8589b195960521b8152505b90610d895760405162461bcd60e51b815260040161064791906122e4565b506001600160a01b038316610db05760405162461bcd60e51b815260040161064790612773565b6001600160a01b038216610dd65760405162461bcd60e51b8152600401610647906122f7565b816001600160a01b0316836001600160a01b03161415610e085760405162461bcd60e51b81526004016106479061287a565b6001600160a01b038216301415610e315760405162461bcd60e51b815260040161064790612462565b80610e7457816001600160a01b0316836001600160a01b0316600080516020612a5783398151915283604051610e679190612275565b60405180910390a36110de565b6001600160a01b0383163314610f8b576001600160a01b038316600090815260066020908152604080832033845290915290205481811015610ec85760405162461bcd60e51b815260040161064790612660565b610ed282826129f8565b6001600160a01b03851660008181526006602090815260408083203380855292529091208390559192507f71594b34a69973da9bff6f72cc0aad2c51069b6b8e9c70c0648b58d10d7bd84b610f2785856129c0565b84604051610f36929190612970565b60405180910390a3336001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610f819190612275565b60405180910390a3505b6001600160a01b038316600090815260026020526040902054811115610fc35760405162461bcd60e51b8152600401610647906124eb565b6001600160a01b03831660009081526002602052604081208054839290610feb9084906129f8565b90915550506001600160a01b038216600090815260026020526040812080548392906110189084906129c0565b90915550506001600160a01b0380841660009081526003602052604080822054858416835291205461104f92918216911683611bb5565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f769254a71d2f67d8ac6cb44f2803c0d05cfbcf9effadb6a984f10ff9de3df6c38460405161109c9190612275565b60405180910390a4816001600160a01b0316836001600160a01b0316600080516020612a57833981519152836040516110d59190612275565b60405180910390a35b505050565b6110ed6020611152565b6111095760405162461bcd60e51b815260040161064790612843565b6111133382611b1a565b50565b600660209081526000928352604080842090915290825290205481565b6001600160a01b0381166000908152600260205260409020545b919050565b600061070961115f610a0a565b83611c4a565b60006020819052908152604090205481565b60056020526000908152604090205481565b600460205281600052604060002081815481106111a557600080fd5b60009182526020909120015467ffffffffffffffff81169250600160401b90046001600160c01b0316905082565b6001600160a01b031660009081526004602052604090205490565b7f83ecb176af7c4f35a45ff0018282e3a05a1018065da866182df12285866f5a2c81565b6201000081565b600281565b6040518060400160405280600381526020016224a62b60e91b81525081565b61124962020000611b0e565b61143c576001600160a01b0382163314801561126a575061126a6008611152565b8061128e57506001600160a01b038216331480159061128e575061128e6010611152565b6001600160a01b03831633146112d9576040518060400160405280601c81526020017f6275726e73206f6e20626568616c66206172652064697361626c656400000000815250611305565b60405180604001604052806012815260200171189d5c9b9cc8185c9948191a5cd8589b195960721b8152505b906113235760405162461bcd60e51b815260040161064791906122e4565b506001600160a01b038216331461143c576001600160a01b0382166000908152600660209081526040808320338452909152902054818110156113785760405162461bcd60e51b8152600401610647906126ee565b61138282826129f8565b6001600160a01b0384166000818152600660209081526040808320338085529252909120839055919250907f71594b34a69973da9bff6f72cc0aad2c51069b6b8e9c70c0648b58d10d7bd84b6113d885856129c0565b846040516113e7929190612970565b60405180910390a3336001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516114329190612275565b60405180910390a3505b806114595760405162461bcd60e51b8152600401610647906125ad565b6001600160a01b03821661147f5760405162461bcd60e51b815260040161064790612732565b6001600160a01b0382166000908152600260205260409020548111156114b75760405162461bcd60e51b815260040161064790612365565b6001600160a01b038216600090815260026020526040812080548392906114df9084906129f8565b9250508190555080600160008282546114f891906129f8565b90915550506001600160a01b0380831660009081526003602052604081205461152392169083611bb5565b816001600160a01b0316336001600160a01b03167fe8a89cc6e5096f9d9f43de82c077c1f4cfe707c0e0c2032176c68813b9ae6a5c836040516115669190612275565b60405180910390a360006001600160a01b0316826001600160a01b0316336001600160a01b03167f769254a71d2f67d8ac6cb44f2803c0d05cfbcf9effadb6a984f10ff9de3df6c3846040516115bc9190612275565b60405180910390a460006001600160a01b0316826001600160a01b0316600080516020612a5783398151915283604051610c919190612275565b3360009081526006602090815260408083206001600160a01b0386168452909152812054826116375760405162461bcd60e51b815260040161064790612629565b828110156116575760405162461bcd60e51b8152600401610647906128f4565b610a9b846102ec85846129f8565b600061167233848461099f565b9392505050565b611686600160ff1b611b0e565b6116a25760405162461bcd60e51b8152600401610647906127b8565b6001600160a01b0382166000908152602081905260409020546116c790339083611ae3565b6001600160a01b0383166000818152602081905260409081902083905551909133917f5a10526456f5116c0b7b80582c217d666243fd51b6a2d92c8011e601c2462e5f91610c9191869190612970565b600160ff1b81565b61172a848484610caf565b61173383611c51565b156117f357604051634fc3585960e01b81526000906001600160a01b03851690634fc358599061176d9033908990889088906004016121cb565b602060405180830381600087803b15801561178757600080fd5b505af115801561179b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bf9190612111565b90506001600160e01b03198116634fc3585960e01b146117f15760405162461bcd60e51b81526004016106479061280e565b505b50505050565b6001600160a01b03811660009081526004602052604081208054156118675780548190611828906001906129f8565b8154811061184657634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160401b90046001600160c01b031661186a565b60005b6001600160c01b03169392505050565b600181565b6204000081565b6001600160a01b0382166000908152602081905260408120546116729083611c4a565b6001600160a01b0381166000908152600460209081526040808320805482518185028101850190935280835260609492939192909184015b82821015611931576000848152602090819020604080518082019091529084015467ffffffffffffffff81168252600160401b90046001600160c01b0316818301528252600190920191016118e1565b505050509050919050565b611113600082611679565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6202000081565b7fff41620983935eb4d4a3c7384a066ca8c1d10cef9a5eca9eb97ca735cd14a75581565b6208000081565b60004382106119c55760405162461bcd60e51b8152600401610647906124bf565b6001600160a01b038316600090815260046020526040902080546119ed576000915050610709565b8054839082906119ff906001906129f8565b81548110611a1d57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015467ffffffffffffffff1611611a4957611a41846117f9565b915050610709565b8281600081548110611a6b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015467ffffffffffffffff161115611a91576000915050610709565b80611a9c8585611c57565b81548110611aba57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160401b90046001600160c01b0316949350505050565b601081565b6001600160a01b03929092166000908152602081905260409020546000198084188216189216171690565b60006107093383611886565b6001600160a01b0380831660009081526003602081815260408084208054600284529190942054929091528484166001600160a01b0319821617909255911690611b65828483611bb5565b826001600160a01b0316826001600160a01b0316856001600160a01b03167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a450505050565b816001600160a01b0316836001600160a01b03161480611bd3575080155b15611bdd576110de565b6001600160a01b03831615611c15576000611bf7846117f9565b90506000611c0583836129f8565b9050611c12858383611d5e565b50505b6001600160a01b038216156110de576000611c2f836117f9565b90506000611c3d83836129c0565b90506117f1848383611d5e565b9081161490565b3b151590565b6001600160a01b0382166000908152600460205260408120805482908190611c81906001906129f8565b90505b81811115611d555760006002611c9a84846129f8565b611ca491906129d8565b611cae90836129f8565b90506000848281548110611cd257634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915291015467ffffffffffffffff8116808352600160401b9091046001600160c01b0316928201929092529150871415611d255750935061070992505050565b805167ffffffffffffffff16871115611d4057819350611d4e565b611d4b6001836129f8565b92505b5050611c84565b50949350505050565b6001600160a01b0383166000908152600460205260409020805415801590611dc95750805443908290611d93906001906129f8565b81548110611db157634e487b7160e01b600052603260045260246000fd5b60009182526020909120015467ffffffffffffffff16145b15611e3457805482908290611de0906001906129f8565b81548110611dfe57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160086101000a8154816001600160c01b0302191690836001600160c01b03160217905550611e9c565b6040805180820190915267ffffffffffffffff43811682526001600160c01b03808516602080850191825285546001810187556000878152919091209451940180549151909216600160401b0293831667ffffffffffffffff19909116179091169190911790555b836001600160a01b03167f53ed7954de66613e30dd29b46ab783aa594e6309d021d8854c76bb3325d03aa38484604051611ed7929190612970565b60405180910390a250505050565b80356001600160a01b038116811461114d57600080fd5b600060208284031215611f0d578081fd5b61167282611ee5565b60008060408385031215611f28578081fd5b611f3183611ee5565b9150611f3f60208401611ee5565b90509250929050565b600080600060608486031215611f5c578081fd5b611f6584611ee5565b9250611f7360208501611ee5565b9150604084013590509250925092565b60008060008060808587031215611f98578081fd5b611fa185611ee5565b9350611faf60208601611ee5565b925060408501359150606085013567ffffffffffffffff80821115611fd2578283fd5b818701915087601f830112611fe5578283fd5b813581811115611ff757611ff7612a40565b604051601f8201601f19908116603f0116810190838211818310171561201f5761201f612a40565b816040528281528a6020848701011115612037578586fd5b82602086016020830137918201602001949094529598949750929550505050565b6000806040838503121561206a578182fd5b61207383611ee5565b946020939093013593505050565b600080600060608486031215612095578283fd5b61209e84611ee5565b95602085013595506040909401359392505050565b60008060008060008060c087890312156120cb578182fd5b6120d487611ee5565b95506020870135945060408701359350606087013560ff811681146120f7578283fd5b9598949750929560808101359460a0909101359350915050565b600060208284031215612122578081fd5b81516001600160e01b031981168114611672578182fd5b60006020828403121561214a578081fd5b5035919050565b60008151808452815b818110156121765760208185018101518683018201520161215a565b818111156121875782602083870101525b50601f01601f19169290920160200192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121fe90830184612151565b9695505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561225d578151805167ffffffffffffffff1685528601516001600160c01b0316868501529284019290850190600101612225565b5091979650505050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526116726020830184612151565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b602080825260119082015270696e76616c6964207369676e617475726560781b604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b6020808252601f908201527f746f74616c20737570706c79206f766572666c6f77202875696e743139322900604082015260600190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526022908201527f64656c65676174696f6e73206f6e20626568616c66206172652064697361626c604082015261195960f21b606082015260800190565b6020808252603f908201527f696e76616c696420726563697069656e7420287472616e7366657220746f207460408201527f686520746f6b656e20736d61727420636f6e747261637420697473656c662900606082015260800190565b6020808252601290820152711b9bdd081e595d0819195d195c9b5a5b995960721b604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252600d908201526c696e76616c6964206e6f6e636560981b604082015260600190565b60208082526035908201527f696e73756666696369656e742070726976696c656765732028524f4c455f544f6040820152744b454e5f43524541544f522072657175697265642960581b606082015260800190565b6020808252600f908201526e3d32b937903b30b63ab290313ab93760891b604082015260600190565b60208082526033908201527f7a65726f2076616c756520617070726f76616c20696e637265617365206f722060408201527261726974686d65746963206f766572666c6f7760681b606082015260800190565b6020808252601c908201527f7a65726f2076616c756520617070726f76616c20646563726561736500000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b60208082526026908201527f7a65726f2076616c7565206d696e74206f722061726974686d65746963206f766040820152656572666c6f7760d01b606082015260800190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604082015263616e636560e01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526036908201527f696e73756666696369656e742070726976696c656765732028524f4c455f4143604082015275434553535f4d414e414745522072657175697265642960501b606082015260800190565b6020808252818101527f696e76616c6964206f6e4552433230526563656976656420726573706f6e7365604082015260600190565b60208082526018908201527f64656c65676174696f6e73206172652064697361626c65640000000000000000604082015260600190565b6020808252602f908201527f73656e64657220616e6420726563697069656e7420617265207468652073616d60408201526e6520285f66726f6d203d205f746f2960881b606082015260800190565b6020808252601190820152701cda59db985d1d5c9948195e1c1a5c9959607a1b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b918252602082015260400190565b63ffffffff91909116815260200190565b67ffffffffffffffff9290921682526001600160c01b0316602082015260400190565b60ff91909116815260200190565b600082198211156129d3576129d3612a2a565b500190565b6000826129f357634e487b7160e01b81526012600452602481fd5b500490565b600082821015612a0a57612a0a612a2a565b500390565b6000600019821415612a2357612a23612a2a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220701652e56e5ffab9394a937aa8c35ffe5fb8928e3ef71e105a5e99193547509d64736f6c63430008010033","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"istanbul","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"optimization_runs":200,"sourcify_repo_url":null,"decoded_constructor_args":[["0x0691f5804d4227925F19b031821b530b48FFf38f",{"internalType":"address","name":"_initialHolder","type":"address"}]],"compiler_version":"0.8.1+commit.df193b15","is_verified_via_verifier_alliance":true,"verified_at":"2025-05-15T13:17:04.493903Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x60806040523480156200001157600080fd5b506040516200326e3803806200326e8339810160408190526200003491620005d1565b33600090815260208190526040902060001990556001600160a01b0381166200007a5760405162461bcd60e51b8152600401620000719062000631565b60405180910390fd5b62000091816a05ca4ec2a79a7f6700000062000098565b50620007b2565b620000a662010000620002bd565b620000c55760405162461bcd60e51b8152600401620000719062000676565b6001600160a01b038216620000ee5760405162461bcd60e51b8152600401620000719062000719565b600154620000fd828262000767565b116200011d5760405162461bcd60e51b81526004016200007190620006d3565b6001546001600160c01b03906200013690839062000767565b1115620001575760405162461bcd60e51b81526004016200007190620005fa565b80600160008282546200016b919062000767565b90915550506001600160a01b038216600090815260026020526040812080548392906200019a90849062000767565b90915550506001600160a01b03808316600090815260036020526040812054620001c6921683620002d1565b816001600160a01b0316336001600160a01b03167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f0836040516200020b919062000750565b60405180910390a3816001600160a01b031660006001600160a01b0316336001600160a01b03167f769254a71d2f67d8ac6cb44f2803c0d05cfbcf9effadb6a984f10ff9de3df6c38460405162000263919062000750565b60405180910390a4816001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620002b1919062000750565b60405180910390a35050565b6000620002cb33836200037f565b92915050565b816001600160a01b0316836001600160a01b03161480620002f0575080155b15620002fc576200037a565b6001600160a01b038316156200033b5760006200031984620003ab565b9050600062000329838362000782565b90506200033885838362000436565b50505b6001600160a01b038216156200037a5760006200035883620003ab565b9050600062000368838362000767565b90506200037784838362000436565b50505b505050565b6001600160a01b038216600090815260208190526040812054620003a49083620005ca565b9392505050565b6001600160a01b0381166000908152600460205260408120805415620004235780548190620003dd9060019062000782565b81548110620003fc57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546801000000000000000090046001600160c01b031662000426565b60005b6001600160c01b03169392505050565b6001600160a01b0383166000908152600460205260409020805415801590620004a457508054439082906200046e9060019062000782565b815481106200048d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160401b0316145b156200051457805482908290620004be9060019062000782565b81548110620004dd57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160086101000a8154816001600160c01b0302191690836001600160c01b031602179055506200057f565b604080518082019091526001600160401b0343811682526001600160c01b0380851660208085019182528554600181018755600087815291909120945194018054915190921668010000000000000000029383166001600160401b0319909116179091169190911790555b836001600160a01b03167f53ed7954de66613e30dd29b46ab783aa594e6309d021d8854c76bb3325d03aa38484604051620005bc92919062000759565b60405180910390a250505050565b9081161490565b600060208284031215620005e3578081fd5b81516001600160a01b0381168114620003a4578182fd5b6020808252601f908201527f746f74616c20737570706c79206f766572666c6f77202875696e743139322900604082015260600190565b60208082526025908201527f5f696e697469616c486f6c646572206e6f742073657420287a65726f20616464604082015264726573732960d81b606082015260800190565b60208082526035908201527f696e73756666696369656e742070726976696c656765732028524f4c455f544f60408201527f4b454e5f43524541544f52207265717569726564290000000000000000000000606082015260800190565b60208082526026908201527f7a65726f2076616c7565206d696e74206f722061726974686d65746963206f766040820152656572666c6f7760d01b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b918252602082015260400190565b600082198211156200077d576200077d6200079c565b500190565b6000828210156200079757620007976200079c565b500390565b634e487b7160e01b600052601160045260246000fd5b612aac80620007c26000396000f3fe608060405234801561001057600080fd5b50600436106102bb5760003560e01c806384b34a3111610182578063c0d6568d116100e9578063e62cac76116100a2578063eaeded5f1161007c578063eaeded5f146105ba578063f63c2f82146105cd578063f822d5aa146105d5578063fcc2c078146105e8576102bb565b8063e62cac76146105a2578063e7a324dc146105aa578063e98f5ba7146105b2576102bb565b8063c0d6568d14610539578063c5ff500c14610541578063c688d69314610549578063ce9517cf1461055c578063d5bb7f671461057c578063dd62ed3e1461058f576102bb565b8063a457c2d71161013b578063a457c2d7146104d2578063a9059cbb146104e5578063ae5b102e146104f8578063ae682e2e1461050b578063b88d4fde14610513578063bb4d443614610526576102bb565b806384b34a311461048c5780638a114e131461049f5780638d4e57e6146104a75780638f6fba8c146104af57806395d89b41146104b75780639dc29fac146104bf576102bb565b8063395093511161022657806363152a50116101df57806363152a501461040c57806370a082311461041f578063725f36261461043257806374d5e100146104455780637ecebe00146104585780637fd491b01461046b576102bb565b806339509351146103a55780633e9c5f7e146103b857806340c10f19146103c0578063523fba7f146103d357806359b961ef146103e65780635c19a95c146103f9576102bb565b80631e0fa234116102785780631e0fa2341461034557806320606b701461036557806323b872dd1461036d5780632b521416146103805780632d4c39ea14610388578063313ce56714610390576102bb565b806306fdde03146102c0578063095ea7b3146102de57806315d2c225146102fe57806318160ddd146103135780631993f554146103285780631a0b04ea1461033d575b600080fd5b6102c86105fb565b6040516102d591906122e4565b60405180910390f35b6102f16102ec366004612058565b61061f565b6040516102d5919061226a565b61031161030c3660046120b3565b61070f565b005b61031b610950565b6040516102d59190612275565b610330610956565b6040516102d5919061297e565b61033061095b565b610358610353366004611efc565b610960565b6040516102d591906121b7565b61031b61097b565b6102f161037b366004611f48565b61099f565b61031b610a0a565b610330610a37565b610398610a3c565b6040516102d591906129b2565b6102f16103b3366004612058565b610a41565b610330610aa3565b6103116103ce366004612058565b610aa8565b61031b6103e1366004611efc565b610c9d565b6103116103f4366004611f48565b610caf565b610311610407366004611efc565b6110e3565b61031b61041a366004611f16565b611116565b61031b61042d366004611efc565b611133565b6102f1610440366004612139565b611152565b61031b610453366004611efc565b611165565b61031b610466366004611efc565b611177565b61047e610479366004612058565b611189565b6040516102d592919061298f565b61031b61049a366004611efc565b6111d3565b61031b6111ee565b610330611212565b610330611219565b6102c861121e565b6103116104cd366004612058565b61123d565b6102f16104e0366004612058565b6115f6565b6102f16104f3366004612058565b611665565b610311610506366004612058565b611679565b61031b611717565b610311610521366004611f83565b61171f565b61031b610534366004611efc565b6117f9565b61033061187a565b61033061187f565b6102f1610557366004612058565b611886565b61056f61056a366004611efc565b6118a9565b6040516102d59190612208565b61031161058a366004612139565b61193c565b61031b61059d366004611f16565b611947565b610330611972565b61031b611979565b61033061199d565b61031b6105c8366004612058565b6119a4565b610330611ade565b61031b6105e3366004612081565b611ae3565b6102f16105f6366004612139565b611b0e565b60405180604001604052806008815260200167496c6c757669756d60c01b81525081565b60006001600160a01b0383166106505760405162461bcd60e51b8152600401610647906123de565b60405180910390fd5b3360008181526006602090815260408083206001600160a01b0388168085529252918290208054908690559151919290917f71594b34a69973da9bff6f72cc0aad2c51069b6b8e9c70c0648b58d10d7bd84b906106b09085908890612970565b60405180910390a3836001600160a01b0316336001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516106fb9190612275565b60405180910390a360019150505b92915050565b6107196040611152565b6107355760405162461bcd60e51b815260040161064790612420565b6040805180820182526008815267496c6c757669756d60c01b60209182015290516000916107ab917f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866917f084f3cb87ea0c76a68af7707db457f95657fddc1db6e742f190166dbdd3d5b849146913091016122a2565b60405160208183030381529060405280519060200120905060007fff41620983935eb4d4a3c7384a066ca8c1d10cef9a5eca9eb97ca735cd14a7558888886040516020016107fc949392919061227e565b6040516020818303038152906040528051906020012090506000828260405160200161082992919061219c565b60405160208183030381529060405280519060200120905060006001828888886040516000815260200160405260405161086694939291906122c6565b6020604051602081039080840390855afa158015610888573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108bb5760405162461bcd60e51b81526004016106479061233a565b6001600160a01b03811660009081526005602052604090205489146108f25760405162461bcd60e51b815260040161064790612531565b8742106109115760405162461bcd60e51b8152600401610647906128c9565b6001600160a01b038116600090815260056020526040812080549161093583612a0f565b9190505550610944818b611b1a565b50505050505050505050565b60015481565b600481565b600881565b6003602052600090815260409020546001600160a01b031681565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b60006109ab6004611152565b806109be57506109be8362040000611886565b806109d057506109d062080000611b0e565b156109e5576109e0848484610caf565b610a00565b610a008484846040518060200160405280600081525061171f565b5060019392505050565b60008080526020527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb55490565b604081565b601281565b3360009081526006602090815260408083206001600160a01b038616845290915281205480610a7084826129c0565b11610a8d5760405162461bcd60e51b8152600401610647906125d6565b610a9b846102ec85846129c0565b949350505050565b602081565b610ab462010000611b0e565b610ad05760405162461bcd60e51b815260040161064790612558565b6001600160a01b038216610af65760405162461bcd60e51b815260040161064790612939565b600154610b0382826129c0565b11610b205760405162461bcd60e51b8152600401610647906126a8565b6001546001600160c01b0390610b379083906129c0565b1115610b555760405162461bcd60e51b8152600401610647906123a7565b8060016000828254610b6791906129c0565b90915550506001600160a01b03821660009081526002602052604081208054839290610b949084906129c0565b90915550506001600160a01b03808316600090815260036020526040812054610bbe921683611bb5565b816001600160a01b0316336001600160a01b03167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f083604051610c019190612275565b60405180910390a3816001600160a01b031660006001600160a01b0316336001600160a01b03167f769254a71d2f67d8ac6cb44f2803c0d05cfbcf9effadb6a984f10ff9de3df6c384604051610c579190612275565b60405180910390a4816001600160a01b031660006001600160a01b0316600080516020612a5783398151915283604051610c919190612275565b60405180910390a35050565b60026020526000908152604090205481565b6001600160a01b03831633148015610ccc5750610ccc6001611152565b80610cf057506001600160a01b0383163314801590610cf05750610cf06002611152565b6001600160a01b0384163314610d3b576040518060400160405280602081526020017f7472616e7366657273206f6e20626568616c66206172652064697361626c6564815250610d6b565b604051806040016040528060168152602001751d1c985b9cd9995c9cc8185c9948191a5cd8589b195960521b8152505b90610d895760405162461bcd60e51b815260040161064791906122e4565b506001600160a01b038316610db05760405162461bcd60e51b815260040161064790612773565b6001600160a01b038216610dd65760405162461bcd60e51b8152600401610647906122f7565b816001600160a01b0316836001600160a01b03161415610e085760405162461bcd60e51b81526004016106479061287a565b6001600160a01b038216301415610e315760405162461bcd60e51b815260040161064790612462565b80610e7457816001600160a01b0316836001600160a01b0316600080516020612a5783398151915283604051610e679190612275565b60405180910390a36110de565b6001600160a01b0383163314610f8b576001600160a01b038316600090815260066020908152604080832033845290915290205481811015610ec85760405162461bcd60e51b815260040161064790612660565b610ed282826129f8565b6001600160a01b03851660008181526006602090815260408083203380855292529091208390559192507f71594b34a69973da9bff6f72cc0aad2c51069b6b8e9c70c0648b58d10d7bd84b610f2785856129c0565b84604051610f36929190612970565b60405180910390a3336001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610f819190612275565b60405180910390a3505b6001600160a01b038316600090815260026020526040902054811115610fc35760405162461bcd60e51b8152600401610647906124eb565b6001600160a01b03831660009081526002602052604081208054839290610feb9084906129f8565b90915550506001600160a01b038216600090815260026020526040812080548392906110189084906129c0565b90915550506001600160a01b0380841660009081526003602052604080822054858416835291205461104f92918216911683611bb5565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f769254a71d2f67d8ac6cb44f2803c0d05cfbcf9effadb6a984f10ff9de3df6c38460405161109c9190612275565b60405180910390a4816001600160a01b0316836001600160a01b0316600080516020612a57833981519152836040516110d59190612275565b60405180910390a35b505050565b6110ed6020611152565b6111095760405162461bcd60e51b815260040161064790612843565b6111133382611b1a565b50565b600660209081526000928352604080842090915290825290205481565b6001600160a01b0381166000908152600260205260409020545b919050565b600061070961115f610a0a565b83611c4a565b60006020819052908152604090205481565b60056020526000908152604090205481565b600460205281600052604060002081815481106111a557600080fd5b60009182526020909120015467ffffffffffffffff81169250600160401b90046001600160c01b0316905082565b6001600160a01b031660009081526004602052604090205490565b7f83ecb176af7c4f35a45ff0018282e3a05a1018065da866182df12285866f5a2c81565b6201000081565b600281565b6040518060400160405280600381526020016224a62b60e91b81525081565b61124962020000611b0e565b61143c576001600160a01b0382163314801561126a575061126a6008611152565b8061128e57506001600160a01b038216331480159061128e575061128e6010611152565b6001600160a01b03831633146112d9576040518060400160405280601c81526020017f6275726e73206f6e20626568616c66206172652064697361626c656400000000815250611305565b60405180604001604052806012815260200171189d5c9b9cc8185c9948191a5cd8589b195960721b8152505b906113235760405162461bcd60e51b815260040161064791906122e4565b506001600160a01b038216331461143c576001600160a01b0382166000908152600660209081526040808320338452909152902054818110156113785760405162461bcd60e51b8152600401610647906126ee565b61138282826129f8565b6001600160a01b0384166000818152600660209081526040808320338085529252909120839055919250907f71594b34a69973da9bff6f72cc0aad2c51069b6b8e9c70c0648b58d10d7bd84b6113d885856129c0565b846040516113e7929190612970565b60405180910390a3336001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516114329190612275565b60405180910390a3505b806114595760405162461bcd60e51b8152600401610647906125ad565b6001600160a01b03821661147f5760405162461bcd60e51b815260040161064790612732565b6001600160a01b0382166000908152600260205260409020548111156114b75760405162461bcd60e51b815260040161064790612365565b6001600160a01b038216600090815260026020526040812080548392906114df9084906129f8565b9250508190555080600160008282546114f891906129f8565b90915550506001600160a01b0380831660009081526003602052604081205461152392169083611bb5565b816001600160a01b0316336001600160a01b03167fe8a89cc6e5096f9d9f43de82c077c1f4cfe707c0e0c2032176c68813b9ae6a5c836040516115669190612275565b60405180910390a360006001600160a01b0316826001600160a01b0316336001600160a01b03167f769254a71d2f67d8ac6cb44f2803c0d05cfbcf9effadb6a984f10ff9de3df6c3846040516115bc9190612275565b60405180910390a460006001600160a01b0316826001600160a01b0316600080516020612a5783398151915283604051610c919190612275565b3360009081526006602090815260408083206001600160a01b0386168452909152812054826116375760405162461bcd60e51b815260040161064790612629565b828110156116575760405162461bcd60e51b8152600401610647906128f4565b610a9b846102ec85846129f8565b600061167233848461099f565b9392505050565b611686600160ff1b611b0e565b6116a25760405162461bcd60e51b8152600401610647906127b8565b6001600160a01b0382166000908152602081905260409020546116c790339083611ae3565b6001600160a01b0383166000818152602081905260409081902083905551909133917f5a10526456f5116c0b7b80582c217d666243fd51b6a2d92c8011e601c2462e5f91610c9191869190612970565b600160ff1b81565b61172a848484610caf565b61173383611c51565b156117f357604051634fc3585960e01b81526000906001600160a01b03851690634fc358599061176d9033908990889088906004016121cb565b602060405180830381600087803b15801561178757600080fd5b505af115801561179b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bf9190612111565b90506001600160e01b03198116634fc3585960e01b146117f15760405162461bcd60e51b81526004016106479061280e565b505b50505050565b6001600160a01b03811660009081526004602052604081208054156118675780548190611828906001906129f8565b8154811061184657634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160401b90046001600160c01b031661186a565b60005b6001600160c01b03169392505050565b600181565b6204000081565b6001600160a01b0382166000908152602081905260408120546116729083611c4a565b6001600160a01b0381166000908152600460209081526040808320805482518185028101850190935280835260609492939192909184015b82821015611931576000848152602090819020604080518082019091529084015467ffffffffffffffff81168252600160401b90046001600160c01b0316818301528252600190920191016118e1565b505050509050919050565b611113600082611679565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6202000081565b7fff41620983935eb4d4a3c7384a066ca8c1d10cef9a5eca9eb97ca735cd14a75581565b6208000081565b60004382106119c55760405162461bcd60e51b8152600401610647906124bf565b6001600160a01b038316600090815260046020526040902080546119ed576000915050610709565b8054839082906119ff906001906129f8565b81548110611a1d57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015467ffffffffffffffff1611611a4957611a41846117f9565b915050610709565b8281600081548110611a6b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015467ffffffffffffffff161115611a91576000915050610709565b80611a9c8585611c57565b81548110611aba57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600160401b90046001600160c01b0316949350505050565b601081565b6001600160a01b03929092166000908152602081905260409020546000198084188216189216171690565b60006107093383611886565b6001600160a01b0380831660009081526003602081815260408084208054600284529190942054929091528484166001600160a01b0319821617909255911690611b65828483611bb5565b826001600160a01b0316826001600160a01b0316856001600160a01b03167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a450505050565b816001600160a01b0316836001600160a01b03161480611bd3575080155b15611bdd576110de565b6001600160a01b03831615611c15576000611bf7846117f9565b90506000611c0583836129f8565b9050611c12858383611d5e565b50505b6001600160a01b038216156110de576000611c2f836117f9565b90506000611c3d83836129c0565b90506117f1848383611d5e565b9081161490565b3b151590565b6001600160a01b0382166000908152600460205260408120805482908190611c81906001906129f8565b90505b81811115611d555760006002611c9a84846129f8565b611ca491906129d8565b611cae90836129f8565b90506000848281548110611cd257634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915291015467ffffffffffffffff8116808352600160401b9091046001600160c01b0316928201929092529150871415611d255750935061070992505050565b805167ffffffffffffffff16871115611d4057819350611d4e565b611d4b6001836129f8565b92505b5050611c84565b50949350505050565b6001600160a01b0383166000908152600460205260409020805415801590611dc95750805443908290611d93906001906129f8565b81548110611db157634e487b7160e01b600052603260045260246000fd5b60009182526020909120015467ffffffffffffffff16145b15611e3457805482908290611de0906001906129f8565b81548110611dfe57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160086101000a8154816001600160c01b0302191690836001600160c01b03160217905550611e9c565b6040805180820190915267ffffffffffffffff43811682526001600160c01b03808516602080850191825285546001810187556000878152919091209451940180549151909216600160401b0293831667ffffffffffffffff19909116179091169190911790555b836001600160a01b03167f53ed7954de66613e30dd29b46ab783aa594e6309d021d8854c76bb3325d03aa38484604051611ed7929190612970565b60405180910390a250505050565b80356001600160a01b038116811461114d57600080fd5b600060208284031215611f0d578081fd5b61167282611ee5565b60008060408385031215611f28578081fd5b611f3183611ee5565b9150611f3f60208401611ee5565b90509250929050565b600080600060608486031215611f5c578081fd5b611f6584611ee5565b9250611f7360208501611ee5565b9150604084013590509250925092565b60008060008060808587031215611f98578081fd5b611fa185611ee5565b9350611faf60208601611ee5565b925060408501359150606085013567ffffffffffffffff80821115611fd2578283fd5b818701915087601f830112611fe5578283fd5b813581811115611ff757611ff7612a40565b604051601f8201601f19908116603f0116810190838211818310171561201f5761201f612a40565b816040528281528a6020848701011115612037578586fd5b82602086016020830137918201602001949094529598949750929550505050565b6000806040838503121561206a578182fd5b61207383611ee5565b946020939093013593505050565b600080600060608486031215612095578283fd5b61209e84611ee5565b95602085013595506040909401359392505050565b60008060008060008060c087890312156120cb578182fd5b6120d487611ee5565b95506020870135945060408701359350606087013560ff811681146120f7578283fd5b9598949750929560808101359460a0909101359350915050565b600060208284031215612122578081fd5b81516001600160e01b031981168114611672578182fd5b60006020828403121561214a578081fd5b5035919050565b60008151808452815b818110156121765760208185018101518683018201520161215a565b818111156121875782602083870101525b50601f01601f19169290920160200192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121fe90830184612151565b9695505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561225d578151805167ffffffffffffffff1685528601516001600160c01b0316868501529284019290850190600101612225565b5091979650505050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526116726020830184612151565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b602080825260119082015270696e76616c6964207369676e617475726560781b604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b6020808252601f908201527f746f74616c20737570706c79206f766572666c6f77202875696e743139322900604082015260600190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526022908201527f64656c65676174696f6e73206f6e20626568616c66206172652064697361626c604082015261195960f21b606082015260800190565b6020808252603f908201527f696e76616c696420726563697069656e7420287472616e7366657220746f207460408201527f686520746f6b656e20736d61727420636f6e747261637420697473656c662900606082015260800190565b6020808252601290820152711b9bdd081e595d0819195d195c9b5a5b995960721b604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252600d908201526c696e76616c6964206e6f6e636560981b604082015260600190565b60208082526035908201527f696e73756666696369656e742070726976696c656765732028524f4c455f544f6040820152744b454e5f43524541544f522072657175697265642960581b606082015260800190565b6020808252600f908201526e3d32b937903b30b63ab290313ab93760891b604082015260600190565b60208082526033908201527f7a65726f2076616c756520617070726f76616c20696e637265617365206f722060408201527261726974686d65746963206f766572666c6f7760681b606082015260800190565b6020808252601c908201527f7a65726f2076616c756520617070726f76616c20646563726561736500000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b60208082526026908201527f7a65726f2076616c7565206d696e74206f722061726974686d65746963206f766040820152656572666c6f7760d01b606082015260800190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604082015263616e636560e01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526036908201527f696e73756666696369656e742070726976696c656765732028524f4c455f4143604082015275434553535f4d414e414745522072657175697265642960501b606082015260800190565b6020808252818101527f696e76616c6964206f6e4552433230526563656976656420726573706f6e7365604082015260600190565b60208082526018908201527f64656c65676174696f6e73206172652064697361626c65640000000000000000604082015260600190565b6020808252602f908201527f73656e64657220616e6420726563697069656e7420617265207468652073616d60408201526e6520285f66726f6d203d205f746f2960881b606082015260800190565b6020808252601190820152701cda59db985d1d5c9948195e1c1a5c9959607a1b604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b918252602082015260400190565b63ffffffff91909116815260200190565b67ffffffffffffffff9290921682526001600160c01b0316602082015260400190565b60ff91909116815260200190565b600082198211156129d3576129d3612a2a565b500190565b6000826129f357634e487b7160e01b81526012600452602481fd5b500490565b600082821015612a0a57612a0a612a2a565b500390565b6000600019821415612a2357612a23612a2a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220701652e56e5ffab9394a937aa8c35ffe5fb8928e3ef71e105a5e99193547509d64736f6c634300080100330000000000000000000000000691f5804d4227925f19b031821b530b48fff38f","name":"IlluviumERC20","is_blueprint":false,"license_type":"none","is_fully_verified":true,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"istanbul","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":false,"additional_sources":[{"file_path":"/Users/pedrobergamini/Illuvium/illuvium-contracts/contracts/token/ERC20Receiver.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.1;\n\n/**\n * @title ERC20 token receiver interface\n *\n * @dev Interface for any contract that wants to support safe transfers\n *      from ERC20 token smart contracts.\n * @dev Inspired by ERC721 and ERC223 token standards\n *\n * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md\n * @dev See https://github.com/ethereum/EIPs/issues/223\n *\n * @author Basil Gorin\n */\ninterface ERC20Receiver {\n  /**\n   * @notice Handle the receipt of a ERC20 token(s)\n   * @dev The ERC20 smart contract calls this function on the recipient\n   *      after a successful transfer (`safeTransferFrom`).\n   *      This function MAY throw to revert and reject the transfer.\n   *      Return of other than the magic value MUST result in the transaction being reverted.\n   * @notice The contract address is always the message sender.\n   *      A wallet/broker/auction application MUST implement the wallet interface\n   *      if it will accept safe transfers.\n   * @param _operator The address which called `safeTransferFrom` function\n   * @param _from The address which previously owned the token\n   * @param _value amount of tokens which is being transferred\n   * @param _data additional data with no specified format\n   * @return `bytes4(keccak256(\"onERC20Received(address,address,uint256,bytes)\"))` unless throwing\n   */\n  function onERC20Received(address _operator, address _from, uint256 _value, bytes calldata _data) external returns(bytes4);\n}\n"},{"file_path":"/Users/pedrobergamini/Illuvium/illuvium-contracts/contracts/utils/AccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.1;\n\n/**\n * @title Access Control List\n *\n * @notice Access control smart contract provides an API to check\n *      if specific operation is permitted globally and/or\n *      if particular user has a permission to execute it.\n *\n * @notice It deals with two main entities: features and roles.\n *\n * @notice Features are designed to be used to enable/disable specific\n *      functions (public functions) of the smart contract for everyone.\n * @notice User roles are designed to restrict access to specific\n *      functions (restricted functions) of the smart contract to some users.\n *\n * @notice Terms \"role\", \"permissions\" and \"set of permissions\" have equal meaning\n *      in the documentation text and may be used interchangeably.\n * @notice Terms \"permission\", \"single permission\" implies only one permission bit set.\n *\n * @dev This smart contract is designed to be inherited by other\n *      smart contracts which require access control management capabilities.\n *\n * @author Basil Gorin\n */\ncontract AccessControl {\n  /**\n   * @notice Access manager is responsible for assigning the roles to users,\n   *      enabling/disabling global features of the smart contract\n   * @notice Access manager can add, remove and update user roles,\n   *      remove and update global features\n   *\n   * @dev Role ROLE_ACCESS_MANAGER allows modifying user roles and global features\n   * @dev Role ROLE_ACCESS_MANAGER has single bit at position 255 enabled\n   */\n  uint256 public constant ROLE_ACCESS_MANAGER = 0x8000000000000000000000000000000000000000000000000000000000000000;\n\n  /**\n   * @dev Bitmask representing all the possible permissions (super admin role)\n   * @dev Has all the bits are enabled (2^256 - 1 value)\n   */\n  uint256 private constant FULL_PRIVILEGES_MASK = type(uint256).max; // before 0.8.0: uint256(-1) overflows to 0xFFFF...\n\n  /**\n   * @notice Privileged addresses with defined roles/permissions\n   * @notice In the context of ERC20/ERC721 tokens these can be permissions to\n   *      allow minting or burning tokens, transferring on behalf and so on\n   *\n   * @dev Maps user address to the permissions bitmask (role), where each bit\n   *      represents a permission\n   * @dev Bitmask 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n   *      represents all possible permissions\n   * @dev Zero address mapping represents global features of the smart contract\n   */\n  mapping(address => uint256) public userRoles;\n\n  /**\n   * @dev Fired in updateRole() and updateFeatures()\n   *\n   * @param _by operator which called the function\n   * @param _to address which was granted/revoked permissions\n   * @param _requested permissions requested\n   * @param _actual permissions effectively set\n   */\n  event RoleUpdated(address indexed _by, address indexed _to, uint256 _requested, uint256 _actual);\n\n  /**\n   * @notice Creates an access control instance,\n   *      setting contract creator to have full privileges\n   */\n  constructor() {\n    // contract creator has full privileges\n    userRoles[msg.sender] = FULL_PRIVILEGES_MASK;\n  }\n\n  /**\n   * @notice Retrieves globally set of features enabled\n   *\n   * @dev Auxiliary getter function to maintain compatibility with previous\n   *      versions of the Access Control List smart contract, where\n   *      features was a separate uint256 public field\n   *\n   * @return 256-bit bitmask of the features enabled\n   */\n  function features() public view returns(uint256) {\n    // according to new design features are stored in zero address\n    // mapping of `userRoles` structure\n    return userRoles[address(0)];\n  }\n\n  /**\n   * @notice Updates set of the globally enabled features (`features`),\n   *      taking into account sender's permissions\n   *\n   * @dev Requires transaction sender to have `ROLE_ACCESS_MANAGER` permission\n   * @dev Function is left for backward compatibility with older versions\n   *\n   * @param _mask bitmask representing a set of features to enable/disable\n   */\n  function updateFeatures(uint256 _mask) public {\n    // delegate call to `updateRole`\n    updateRole(address(0), _mask);\n  }\n\n  /**\n   * @notice Updates set of permissions (role) for a given user,\n   *      taking into account sender's permissions.\n   *\n   * @dev Setting role to zero is equivalent to removing an all permissions\n   * @dev Setting role to `FULL_PRIVILEGES_MASK` is equivalent to\n   *      copying senders' permissions (role) to the user\n   * @dev Requires transaction sender to have `ROLE_ACCESS_MANAGER` permission\n   *\n   * @param operator address of a user to alter permissions for or zero\n   *      to alter global features of the smart contract\n   * @param role bitmask representing a set of permissions to\n   *      enable/disable for a user specified\n   */\n  function updateRole(address operator, uint256 role) public {\n    // caller must have a permission to update user roles\n    require(isSenderInRole(ROLE_ACCESS_MANAGER), \"insufficient privileges (ROLE_ACCESS_MANAGER required)\");\n\n    // evaluate the role and reassign it\n    userRoles[operator] = evaluateBy(msg.sender, userRoles[operator], role);\n\n    // fire an event\n    emit RoleUpdated(msg.sender, operator, role, userRoles[operator]);\n  }\n\n  /**\n   * @notice Determines the permission bitmask an operator can set on the\n   *      target permission set\n   * @notice Used to calculate the permission bitmask to be set when requested\n   *     in `updateRole` and `updateFeatures` functions\n   *\n   * @dev Calculated based on:\n   *      1) operator's own permission set read from userRoles[operator]\n   *      2) target permission set - what is already set on the target\n   *      3) desired permission set - what do we want set target to\n   *\n   * @dev Corner cases:\n   *      1) Operator is super admin and its permission set is `FULL_PRIVILEGES_MASK`:\n   *        `desired` bitset is returned regardless of the `target` permission set value\n   *        (what operator sets is what they get)\n   *      2) Operator with no permissions (zero bitset):\n   *        `target` bitset is returned regardless of the `desired` value\n   *        (operator has no authority and cannot modify anything)\n   *\n   * @dev Example:\n   *      Consider an operator with the permissions bitmask     00001111\n   *      is about to modify the target permission set          01010101\n   *      Operator wants to set that permission set to          00110011\n   *      Based on their role, an operator has the permissions\n   *      to update only lowest 4 bits on the target, meaning that\n   *      high 4 bits of the target set in this example is left\n   *      unchanged and low 4 bits get changed as desired:      01010011\n   *\n   * @param operator address of the contract operator which is about to set the permissions\n   * @param target input set of permissions to operator is going to modify\n   * @param desired desired set of permissions operator would like to set\n   * @return resulting set of permissions given operator will set\n   */\n  function evaluateBy(address operator, uint256 target, uint256 desired) public view returns(uint256) {\n    // read operator's permissions\n    uint256 p = userRoles[operator];\n\n    // taking into account operator's permissions,\n    // 1) enable the permissions desired on the `target`\n    target |= p & desired;\n    // 2) disable the permissions desired on the `target`\n    target &= FULL_PRIVILEGES_MASK ^ (p & (FULL_PRIVILEGES_MASK ^ desired));\n\n    // return calculated result\n    return target;\n  }\n\n  /**\n   * @notice Checks if requested set of features is enabled globally on the contract\n   *\n   * @param required set of features to check against\n   * @return true if all the features requested are enabled, false otherwise\n   */\n  function isFeatureEnabled(uint256 required) public view returns(bool) {\n    // delegate call to `__hasRole`, passing `features` property\n    return __hasRole(features(), required);\n  }\n\n  /**\n   * @notice Checks if transaction sender `msg.sender` has all the permissions required\n   *\n   * @param required set of permissions (role) to check against\n   * @return true if all the permissions requested are enabled, false otherwise\n   */\n  function isSenderInRole(uint256 required) public view returns(bool) {\n    // delegate call to `isOperatorInRole`, passing transaction sender\n    return isOperatorInRole(msg.sender, required);\n  }\n\n  /**\n   * @notice Checks if operator has all the permissions (role) required\n   *\n   * @param operator address of the user to check role for\n   * @param required set of permissions (role) to check\n   * @return true if all the permissions requested are enabled, false otherwise\n   */\n  function isOperatorInRole(address operator, uint256 required) public view returns(bool) {\n    // delegate call to `__hasRole`, passing operator's permissions (role)\n    return __hasRole(userRoles[operator], required);\n  }\n\n  /**\n   * @dev Checks if role `actual` contains all the permissions required `required`\n   *\n   * @param actual existent role\n   * @param required required role\n   * @return true if actual has required role (all permissions), false otherwise\n   */\n  function __hasRole(uint256 actual, uint256 required) internal pure returns(bool) {\n    // check the bitmask for the role required and return the result\n    return actual & required == required;\n  }\n}\n"},{"file_path":"/Users/pedrobergamini/Illuvium/illuvium-contracts/contracts/utils/AddressUtils.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.1;\n\n/**\n * @title Address Utils\n *\n * @dev Utility library of inline functions on addresses\n *\n * @author Basil Gorin\n */\nlibrary AddressUtils {\n\n  /**\n   * @notice Checks if the target address is a contract\n   * @dev This function will return false if invoked during the constructor of a contract,\n   *      as the code is not actually created until after the constructor finishes.\n   * @param addr address to check\n   * @return whether the target address is a contract\n   */\n  function isContract(address addr) internal view returns (bool) {\n    // a variable to load `extcodesize` to\n    uint256 size = 0;\n\n    // XXX Currently there is no better way to check if there is a contract in an address\n    // than to check the size of the code at that address.\n    // See https://ethereum.stackexchange.com/a/14016/36603 for more details about how this works.\n    // TODO: Check this again before the Serenity release, because all addresses will be contracts.\n    // solium-disable-next-line security/no-inline-assembly\n    assembly {\n      // retrieve the size of the code at address `addr`\n      size := extcodesize(addr)\n    }\n\n    // positive size indicates a smart contract address\n    return size > 0;\n  }\n\n}\n"}],"certified":false,"conflicting_implementations":null,"abi":[{"inputs":[{"internalType":"address","name":"_initialHolder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Burnt","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_of","type":"address"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_requested","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_actual","type":"uint256"}],"name":"RoleUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_of","type":"address"},{"indexed":false,"internalType":"uint256","name":"_fromVal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toVal","type":"uint256"}],"name":"VotingPowerChanged","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_BURNS_ON_BEHALF","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_DELEGATIONS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_DELEGATIONS_ON_BEHALF","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_OWN_BURNS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_TRANSFERS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_TRANSFERS_ON_BEHALF","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEATURE_UNSAFE_TRANSFERS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_ACCESS_MANAGER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_ERC20_RECEIVER","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_ERC20_SENDER","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_TOKEN_CREATOR","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_TOKEN_DESTROYER","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_UID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"uint256","name":"_exp","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateWithSig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"desired","type":"uint256"}],"name":"evaluateBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"features","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getVotingPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"},{"internalType":"uint256","name":"_blockNum","type":"uint256"}],"name":"getVotingPowerAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getVotingPowerHistory","outputs":[{"components":[{"internalType":"uint64","name":"blockNumber","type":"uint64"},{"internalType":"uint192","name":"votingPower","type":"uint192"}],"internalType":"struct IlluviumERC20.VotingPowerRecord[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_of","type":"address"}],"name":"getVotingPowerHistoryLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"}],"name":"isFeatureEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"required","type":"uint256"}],"name":"isOperatorInRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"}],"name":"isSenderInRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"transferAllowances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"unsafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mask","type":"uint256"}],"name":"updateFeatures","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"role","type":"uint256"}],"name":"updateRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRoles","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"votingDelegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"votingPowerHistory","outputs":[{"internalType":"uint64","name":"blockNumber","type":"uint64"},{"internalType":"uint192","name":"votingPower","type":"uint192"}],"stateMutability":"view","type":"function"}],"is_changed_bytecode":false,"is_partially_verified":false,"constructor_args":"0x0000000000000000000000000691f5804d4227925f19b031821b530b48fff38f"}