@keep-network/tbtc-v2 0.1.1-ropsten.2 → 0.1.1-ropsten.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "language": "Solidity",
3
3
  "sources": {
4
+ "contracts/bridge/Bridge.sol": {
5
+ "content": "pragma solidity 0.8.4;\n\n/// @title BTC Bridge\n/// @notice Bridge manages BTC deposit and redemption and is increasing and\n/// decreasing balances in the Bank as a result of BTC deposit and\n/// redemption operations.\n///\n/// Depositors send BTC funds to the most-recently-created-wallet of the\n/// bridge using pay-to-script-hash (P2SH) which contains hashed\n/// information about the depositor’s minting Ethereum address. Then,\n/// the depositor reveals their desired Ethereum minting address to the\n/// Ethereum chain. The Bridge listens for these sorts of messages and\n/// when it gets one, it checks the Bitcoin network to make sure the\n/// funds line up. If they do, the off-chain wallet may decide to pick\n/// this transaction for sweeping, and when the sweep operation is\n/// confirmed on the Bitcoin network, the wallet informs the Bridge\n/// about the sweep increasing appropriate balances in the Bank.\n/// @dev Bridge is an upgradeable component of the Bank.\ncontract Bridge {\n struct DepositInfo {\n uint64 amount;\n address vault;\n uint32 revealedAt;\n }\n\n /// @notice Collection of all unswept deposits indexed by\n /// keccak256(fundingTxHash | fundingOutputIndex | depositorAddress).\n /// This mapping may contain valid and invalid deposits and the\n /// wallet is responsible for validating them before attempting to\n /// execute a sweep.\n mapping(uint256 => DepositInfo) public unswept;\n\n event DepositRevealed(\n uint256 depositId,\n bytes32 fundingTxHash,\n uint8 fundingOutputIndex,\n address depositor,\n uint64 blindingFactor,\n bytes refundPubKey,\n uint64 amount,\n address vault\n );\n\n /// @notice Used by the depositor to reveal information about their P2SH\n /// Bitcoin deposit to the Bridge on Ethereum chain. The off-chain\n /// wallet listens for revealed deposit events and may decide to\n /// include the revealed deposit in the next executed sweep.\n /// Information about the Bitcoin deposit can be revealed before or\n /// after the Bitcoin transaction with P2SH deposit is mined on the\n /// Bitcoin chain.\n /// @param fundingTxHash The BTC transaction hash containing BTC P2SH\n /// deposit funding transaction\n /// @param fundingOutputIndex The index of the transaction output in the\n /// funding TX with P2SH deposit, max 256\n /// @param blindingFactor The blinding factor used in the BTC P2SH deposit,\n /// max 2^64\n /// @param refundPubKey The refund pub key used in the BTC P2SH deposit\n /// @param amount The amount locked in the BTC P2SH deposit\n /// @param vault Bank vault to which the swept deposit should be routed\n /// @dev Requirements:\n /// - `msg.sender` must be the Ethereum address used in the P2SH BTC deposit,\n /// - `blindingFactor` must be the blinding factor used in the P2SH BTC deposit,\n /// - `refundPubKey` must be the refund pub key used in the P2SH BTC deposit,\n /// - `amount` must be the same as locked in the P2SH BTC deposit,\n /// - BTC deposit for the given `fundingTxHash`, `fundingOutputIndex`\n /// can be revealed by `msg.sender` only one time.\n ///\n /// If any of these requirements is not met, the wallet _must_ refuse\n /// to sweep the deposit and the depositor has to wait until the\n /// deposit script unlocks to receive their BTC back.\n function revealDeposit(\n bytes32 fundingTxHash,\n uint8 fundingOutputIndex,\n uint64 blindingFactor,\n bytes calldata refundPubKey,\n uint64 amount,\n address vault\n ) external {\n uint256 depositId =\n uint256(\n keccak256(\n abi.encode(fundingTxHash, fundingOutputIndex, msg.sender)\n )\n );\n\n DepositInfo storage deposit = unswept[depositId];\n require(deposit.revealedAt == 0, \"Deposit already revealed\");\n\n deposit.amount = amount;\n deposit.vault = vault;\n /* solhint-disable-next-line not-rely-on-time */\n deposit.revealedAt = uint32(block.timestamp);\n\n emit DepositRevealed(\n depositId,\n fundingTxHash,\n fundingOutputIndex,\n msg.sender,\n blindingFactor,\n refundPubKey,\n amount,\n vault\n );\n }\n\n /// @notice Used by the wallet to prove the BTC deposit sweep transaction\n /// and to update Bank balances accordingly. Sweep is only accepted\n /// if it satisfies SPV proof.\n ///\n /// The function is performing Bank balance updates by first\n /// computing the Bitcoin fee for the sweep transaction. The fee is\n /// divided evenly between all swept deposits. Each depositor\n /// receives a balance in the bank equal to the amount they have\n /// declared during the reveal transaction, minus their fee share.\n ///\n /// It is possible to prove the given sweep only one time.\n /// @param txVersion Transaction version number (4-byte LE)\n /// @param txInputVector All transaction inputs prepended by the number of\n /// inputs encoded as a VarInt, max 0xFC(252) inputs\n /// @param txOutput Single sweep transaction output\n /// @param txLocktime Final 4 bytes of the transaction\n /// @param merkleProof The merkle proof of transaction inclusion in a block\n /// @param txIndexInBlock Transaction index in the block (0-indexed)\n /// @param bitcoinHeaders Single bytestring of 80-byte bitcoin headers,\n /// lowest height first\n function sweep(\n bytes4 txVersion,\n bytes memory txInputVector,\n bytes memory txOutput,\n bytes4 txLocktime,\n bytes memory merkleProof,\n uint256 txIndexInBlock,\n bytes memory bitcoinHeaders\n ) external {\n // TODO We need to read `fundingTxHash`, `fundingOutputIndex` and\n // P2SH script depositor address from `txInputVector`.\n // We then hash them to obtain deposit identifier and read\n // DepositInfo. From DepositInfo we know what amount was declared\n // by the depositor in their reveal transaction and we use that\n // amount to update their Bank balance, minus fee.\n //\n // TODO We need to validate if the sum in the output minus the\n // amount from the previous wallet balance input minus fees is\n // equal to the amount by which Bank balances were increased.\n //\n // TODO We need to validate txOutput to see if the balance was not\n // transferred away from the wallet before increasing balances in\n // the bank.\n //\n // TODO Delete deposit from unswept mapping or mark it as swept\n // depending on the gas costs. Alternativly, do not allow to\n // use the same TX input vector twice. Sweep should be provable\n // only one time.\n }\n\n // TODO It is possible a malicious wallet can sweep deposits that can not\n // be later proved on Ethereum. For example, a deposit with\n // an incorrect amount revealed. We need to provide a function for honest\n // depositors, next to sweep, to prove their swept balances on Ethereum\n // selectively, based on deposits they have earlier received.\n}\n"
6
+ },
4
7
  "contracts/bridge/VendingMachine.sol": {
5
8
  "content": "// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.4;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"@thesis/solidity-contracts/contracts/token/IReceiveApproval.sol\";\n\nimport \"../token/TBTC.sol\";\nimport \"../GovernanceUtils.sol\";\n\n/// @title TBTC v2 Vending Machine\n/// @notice The Vending Machine is the owner of TBTC v2 token and can mint\n/// TBTC v2 tokens in 1:1 ratio from TBTC v1 tokens with TBTC v1\n/// deposited in the contract as collateral. TBTC v2 can be\n/// unminted back to TBTC v1 with or without a fee - fee parameter is\n/// controlled by the Governance. This implementation acts as a bridge\n/// between TBTC v1 and TBTC v2 token, allowing to mint TBTC v2 before\n/// the system is ready and fully operational without sacrificing any\n/// security guarantees and decentralization of the project.\n/// Vending Machine can be upgraded in a two-step, governance-controlled\n/// process. The new version of the Vending Machine will receive the\n/// ownership of TBTC v2 token and entire TBTC v1 balance stored as\n/// collateral. It is expected that this process will be executed before\n/// the v2 system launch. There is an optional unmint fee with a value\n/// that can be updated in a two-step, governance-controlled process.\n/// All governable parameters are controlled by two roles: update\n/// initiator and finalizer. There is a separate initiator role for\n/// unmint fee update and vending machine upgrade. The initiator\n/// proposes the change by initiating the update and the finalizer\n/// (contract owner) may approve it by finalizing the change after the\n/// governance delay passes.\ncontract VendingMachine is Ownable, IReceiveApproval {\n using SafeERC20 for IERC20;\n using SafeERC20 for TBTC;\n\n /// @notice The time delay that needs to pass between initializing and\n /// finalizing update of any governable parameter in this contract.\n uint256 public constant GOVERNANCE_DELAY = 7 days;\n\n /// @notice Divisor for precision purposes. Used to represent fractions\n /// in parameter values.\n uint256 public constant FLOATING_POINT_DIVISOR = 1e18;\n\n IERC20 public immutable tbtcV1;\n TBTC public immutable tbtcV2;\n\n /// @notice The fee for unminting TBTC v2 back into TBTC v1 represented as\n /// 1e18 precision fraction. The fee is proportional to the amount\n /// being unminted and added on the top of the amount being unminted.\n /// To calculate the fee value, the amount being unminted needs\n /// to be multiplied by `unmintFee` and divided by 1e18.\n /// For example, `unmintFee` set to 1000000000000000\n /// means that 0.001 of the amount being unminted needs to be paid\n /// to the `VendingMachine` as an unminting fee on the top of the\n /// amount being unminted.\n uint256 public unmintFee;\n uint256 public newUnmintFee;\n uint256 public unmintFeeUpdateInitiatedTimestamp;\n address public unmintFeeUpdateInitiator;\n\n /// @notice The address of a new vending machine. Set only when the upgrade\n /// process is pending. Once the upgrade gets finalized, the new\n /// vending machine will become an owner of TBTC v2 token.\n address public newVendingMachine;\n uint256 public vendingMachineUpgradeInitiatedTimestamp;\n address public vendingMachineUpgradeInitiator;\n\n event UnmintFeeUpdateInitiated(uint256 newUnmintFee, uint256 timestamp);\n event UnmintFeeUpdated(uint256 newUnmintFee);\n\n event VendingMachineUpgradeInitiated(\n address newVendingMachine,\n uint256 timestamp\n );\n event VendingMachineUpgraded(address newVendingMachine);\n\n event Minted(address indexed recipient, uint256 amount);\n event Unminted(address indexed recipient, uint256 amount, uint256 fee);\n\n modifier only(address authorizedCaller) {\n require(msg.sender == authorizedCaller, \"Caller is not authorized\");\n _;\n }\n\n modifier onlyAfterGovernanceDelay(uint256 changeInitiatedTimestamp) {\n GovernanceUtils.onlyAfterGovernanceDelay(\n changeInitiatedTimestamp,\n GOVERNANCE_DELAY\n );\n _;\n }\n\n constructor(\n IERC20 _tbtcV1,\n TBTC _tbtcV2,\n uint256 _unmintFee\n ) {\n tbtcV1 = _tbtcV1;\n tbtcV2 = _tbtcV2;\n unmintFee = _unmintFee;\n\n unmintFeeUpdateInitiator = msg.sender;\n vendingMachineUpgradeInitiator = msg.sender;\n }\n\n /// @notice Mints TBTC v2 to the caller from TBTC v1 with 1:1 ratio.\n /// The caller needs to have at least `amount` of TBTC v1 balance\n /// approved for transfer to the `VendingMachine` before calling\n /// this function.\n /// @param amount The amount of TBTC v2 to mint from TBTC v1\n function mint(uint256 amount) external {\n _mint(msg.sender, amount);\n }\n\n /// @notice Mints TBTC v2 to `from` address from TBTC v1 with 1:1 ratio.\n /// `from` address needs to have at least `amount` of TBTC v1\n /// balance approved for transfer to the `VendingMachine` before\n /// calling this function.\n /// @dev This function is a shortcut for approve + mint. Only TBTC v1\n /// caller is allowed and only TBTC v1 is allowed as a token to\n /// transfer.\n /// @param from TBTC v1 token holder minting TBTC v2 tokens\n /// @param amount The amount of TBTC v2 to mint from TBTC v1\n /// @param token TBTC v1 token address\n function receiveApproval(\n address from,\n uint256 amount,\n address token,\n bytes calldata\n ) external override {\n require(token == address(tbtcV1), \"Token is not TBTC v1\");\n require(msg.sender == address(tbtcV1), \"Only TBTC v1 caller allowed\");\n _mint(from, amount);\n }\n\n /// @notice Unmints TBTC v2 from the caller into TBTC v1. Depending on\n /// `unmintFee` value, may require paying an additional unmint fee\n /// in TBTC v2 in addition to the amount being unminted. To see\n /// what is the value of the fee, please call `unmintFeeFor(amount)`\n /// function. The caller needs to have at least\n /// `amount + unmintFeeFor(amount)` of TBTC v2 balance approved for\n /// transfer to the `VendingMachine` before calling this function.\n /// @param amount The amount of TBTC v2 to unmint to TBTC v1\n function unmint(uint256 amount) external {\n uint256 fee = unmintFeeFor(amount);\n emit Unminted(msg.sender, amount, fee);\n\n require(\n tbtcV2.balanceOf(msg.sender) >= amount + fee,\n \"Amount + fee exceeds TBTC v2 balance\"\n );\n\n tbtcV2.safeTransferFrom(msg.sender, address(this), fee);\n tbtcV2.burnFrom(msg.sender, amount);\n tbtcV1.safeTransfer(msg.sender, amount);\n }\n\n /// @notice Allows the Governance to withdraw unmint fees accumulated by\n /// `VendingMachine`.\n /// @param recipient The address receiving the fees\n /// @param amount The amount of fees in TBTC v2 to withdraw\n function withdrawFees(address recipient, uint256 amount)\n external\n onlyOwner\n {\n tbtcV2.safeTransfer(recipient, amount);\n }\n\n /// @notice Initiates unmint fee update process. The update process needs to\n /// be finalized with a call to `finalizeUnmintFeeUpdate` function\n /// after the `GOVERNANCE_DELAY` passes. Only unmint fee update\n /// initiator role can initiate the update.\n /// @param _newUnmintFee The new unmint fee\n function initiateUnmintFeeUpdate(uint256 _newUnmintFee)\n external\n only(unmintFeeUpdateInitiator)\n {\n /* solhint-disable-next-line not-rely-on-time */\n emit UnmintFeeUpdateInitiated(_newUnmintFee, block.timestamp);\n newUnmintFee = _newUnmintFee;\n /* solhint-disable-next-line not-rely-on-time */\n unmintFeeUpdateInitiatedTimestamp = block.timestamp;\n }\n\n /// @notice Allows the contract owner to finalize unmint fee update process.\n /// The update process needs to be first initiated with a call to\n /// `initiateUnmintFeeUpdate` and the `GOVERNANCE_DELAY` needs to\n /// pass.\n function finalizeUnmintFeeUpdate()\n external\n onlyOwner\n onlyAfterGovernanceDelay(unmintFeeUpdateInitiatedTimestamp)\n {\n emit UnmintFeeUpdated(newUnmintFee);\n unmintFee = newUnmintFee;\n newUnmintFee = 0;\n unmintFeeUpdateInitiatedTimestamp = 0;\n }\n\n /// @notice Initiates vending machine upgrade process. The upgrade process\n /// needs to be finalized with a call to\n /// `finalizeVendingMachineUpgrade` function after the\n /// `GOVERNANCE_DELAY` passes. Only vending machine upgrade\n /// initiator role can initiate the upgrade.\n /// @param _newVendingMachine The new vending machine address\n function initiateVendingMachineUpgrade(address _newVendingMachine)\n external\n only(vendingMachineUpgradeInitiator)\n {\n require(\n _newVendingMachine != address(0),\n \"New VendingMachine cannot be zero address\"\n );\n\n emit VendingMachineUpgradeInitiated(\n _newVendingMachine,\n /* solhint-disable-next-line not-rely-on-time */\n block.timestamp\n );\n newVendingMachine = _newVendingMachine;\n /* solhint-disable-next-line not-rely-on-time */\n vendingMachineUpgradeInitiatedTimestamp = block.timestamp;\n }\n\n /// @notice Allows the contract owner to finalize vending machine upgrade\n /// process. The upgrade process needs to be first initiated with a\n /// call to `initiateVendingMachineUpgrade` and the `GOVERNANCE_DELAY`\n /// needs to pass. Once the upgrade is finalized, the new vending\n /// machine will become an owner of TBTC v2 token and all TBTC v1\n /// held by this contract will be transferred to the new vending\n /// machine.\n function finalizeVendingMachineUpgrade()\n external\n onlyOwner\n onlyAfterGovernanceDelay(vendingMachineUpgradeInitiatedTimestamp)\n {\n emit VendingMachineUpgraded(newVendingMachine);\n //slither-disable-next-line reentrancy-no-eth\n tbtcV2.transferOwnership(newVendingMachine);\n tbtcV1.safeTransfer(newVendingMachine, tbtcV1.balanceOf(address(this)));\n newVendingMachine = address(0);\n vendingMachineUpgradeInitiatedTimestamp = 0;\n }\n\n /// @notice Transfers unmint fee update initiator role to another address.\n /// Can be called only by the current unmint fee update initiator.\n /// @param newInitiator The new unmint fee update initiator\n function transferUnmintFeeUpdateInitiatorRole(address newInitiator)\n external\n only(unmintFeeUpdateInitiator)\n {\n require(\n newInitiator != address(0),\n \"New initiator must not be zero address\"\n );\n unmintFeeUpdateInitiator = newInitiator;\n }\n\n /// @notice Transfers vending machine upgrade initiator role to another\n /// address. Can be called only by the current vending machine\n /// upgrade initiator.\n /// @param newInitiator The new vending machine upgrade initator\n function transferVendingMachineUpgradeInitiatorRole(address newInitiator)\n external\n only(vendingMachineUpgradeInitiator)\n {\n require(\n newInitiator != address(0),\n \"New initiator must not be zero address\"\n );\n vendingMachineUpgradeInitiator = newInitiator;\n }\n\n /// @notice Get the remaining time that needs to pass until unmint fee\n /// update can be finalized by the Governance. If the update has\n /// not been initiated, the function reverts.\n function getRemainingUnmintFeeUpdateTime() external view returns (uint256) {\n return\n GovernanceUtils.getRemainingGovernanceDelay(\n unmintFeeUpdateInitiatedTimestamp,\n GOVERNANCE_DELAY\n );\n }\n\n /// @notice Get the remaining time that needs to pass until vending machine\n /// upgrade can be finalized by the Governance. If the upgrade has\n /// not been initiated, the function reverts.\n function getRemainingVendingMachineUpgradeTime()\n external\n view\n returns (uint256)\n {\n return\n GovernanceUtils.getRemainingGovernanceDelay(\n vendingMachineUpgradeInitiatedTimestamp,\n GOVERNANCE_DELAY\n );\n }\n\n /// @notice Calculates the fee that needs to be paid to the `VendingMachine`\n /// to unmint the given amount of TBTC v2 back into TBTC v1.\n function unmintFeeFor(uint256 amount) public view returns (uint256) {\n return (amount * unmintFee) / FLOATING_POINT_DIVISOR;\n }\n\n function _mint(address tokenOwner, uint256 amount) internal {\n emit Minted(tokenOwner, amount);\n tbtcV1.safeTransferFrom(tokenOwner, address(this), amount);\n tbtcV2.mint(tokenOwner, amount);\n }\n}\n"
6
9
  },
@@ -29,13 +32,13 @@
29
32
  "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize, which returns 0 for contracts in\n // construction, since the code is only stored at the end of the\n // constructor execution.\n\n uint256 size;\n assembly {\n size := extcodesize(account)\n }\n return size > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCall(target, data, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n require(isContract(target), \"Address: call to non-contract\");\n\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n require(isContract(target), \"Address: static call to non-contract\");\n\n (bool success, bytes memory returndata) = target.staticcall(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(isContract(target), \"Address: delegate call to non-contract\");\n\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n function _verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) private pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n }\n}\n"
30
33
  },
31
34
  "@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol": {
32
- "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.4;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport \"./IERC20WithPermit.sol\";\nimport \"./IReceiveApproval.sol\";\n\n/// @title ERC20WithPermit\n/// @notice Burnable ERC20 token with EIP2612 permit functionality. User can\n/// authorize a transfer of their token with a signature conforming\n/// EIP712 standard instead of an on-chain transaction from their\n/// address. Anyone can submit this signature on the user's behalf by\n/// calling the permit function, as specified in EIP2612 standard,\n/// paying gas fees, and possibly performing other actions in the same\n/// transaction.\ncontract ERC20WithPermit is IERC20WithPermit, Ownable {\n /// @notice The amount of tokens owned by the given account.\n mapping(address => uint256) public override balanceOf;\n\n /// @notice The remaining number of tokens that spender will be\n /// allowed to spend on behalf of owner through `transferFrom` and\n /// `burnFrom`. This is zero by default.\n mapping(address => mapping(address => uint256)) public override allowance;\n\n /// @notice Returns the current nonce for EIP2612 permission for the\n /// provided token owner for a replay protection. Used to construct\n /// EIP2612 signature provided to `permit` function.\n mapping(address => uint256) public override nonces;\n\n uint256 public immutable cachedChainId;\n bytes32 public immutable cachedDomainSeparator;\n\n /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612\n /// signature provided to `permit` function.\n bytes32 public constant override PERMIT_TYPEHASH =\n keccak256(\n \"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\"\n );\n\n /// @notice The amount of tokens in existence.\n uint256 public override totalSupply;\n\n /// @notice The name of the token.\n string public override name;\n\n /// @notice The symbol of the token.\n string public override symbol;\n\n /// @notice The decimals places of the token.\n uint8 public constant override decimals = 18;\n\n constructor(string memory _name, string memory _symbol) {\n name = _name;\n symbol = _symbol;\n\n cachedChainId = block.chainid;\n cachedDomainSeparator = buildDomainSeparator();\n }\n\n /// @notice Moves `amount` tokens from the caller's account to `recipient`.\n /// @return True if the operation succeeded, reverts otherwise.\n /// @dev Requirements:\n /// - `recipient` cannot be the zero address,\n /// - the caller must have a balance of at least `amount`.\n function transfer(address recipient, uint256 amount)\n external\n override\n returns (bool)\n {\n _transfer(msg.sender, recipient, amount);\n return true;\n }\n\n /// @notice Moves `amount` tokens from `sender` to `recipient` using the\n /// allowance mechanism. `amount` is then deducted from the caller's\n /// allowance unless the allowance was made for `type(uint256).max`.\n /// @return True if the operation succeeded, reverts otherwise.\n /// @dev Requirements:\n /// - `sender` and `recipient` cannot be the zero address,\n /// - `sender` must have a balance of at least `amount`,\n /// - the caller must have allowance for `sender`'s tokens of at least\n /// `amount`.\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external override returns (bool) {\n uint256 currentAllowance = allowance[sender][msg.sender];\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"Transfer amount exceeds allowance\"\n );\n _approve(sender, msg.sender, currentAllowance - amount);\n }\n _transfer(sender, recipient, amount);\n return true;\n }\n\n /// @notice EIP2612 approval made with secp256k1 signature.\n /// Users can authorize a transfer of their tokens with a signature\n /// conforming EIP712 standard, rather than an on-chain transaction\n /// from their address. Anyone can submit this signature on the\n /// user's behalf by calling the permit function, paying gas fees,\n /// and possibly performing other actions in the same transaction.\n /// @dev The deadline argument can be set to `type(uint256).max to create\n /// permits that effectively never expire. If the `amount` is set\n /// to `type(uint256).max` then `transferFrom` and `burnFrom` will\n /// not reduce an allowance.\n function permit(\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external override {\n /* solhint-disable-next-line not-rely-on-time */\n require(deadline >= block.timestamp, \"Permission expired\");\n\n // Validate `s` and `v` values for a malleability concern described in EIP2.\n // Only signatures with `s` value in the lower half of the secp256k1\n // curve's order and `v` value of 27 or 28 are considered valid.\n require(\n uint256(s) <=\n 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,\n \"Invalid signature 's' value\"\n );\n require(v == 27 || v == 28, \"Invalid signature 'v' value\");\n\n bytes32 digest = keccak256(\n abi.encodePacked(\n \"\\x19\\x01\",\n DOMAIN_SEPARATOR(),\n keccak256(\n abi.encode(\n PERMIT_TYPEHASH,\n owner,\n spender,\n amount,\n nonces[owner]++,\n deadline\n )\n )\n )\n );\n address recoveredAddress = ecrecover(digest, v, r, s);\n require(\n recoveredAddress != address(0) && recoveredAddress == owner,\n \"Invalid signature\"\n );\n _approve(owner, spender, amount);\n }\n\n /// @notice Creates `amount` tokens and assigns them to `account`,\n /// increasing the total supply.\n /// @dev Requirements:\n /// - `recipient` cannot be the zero address.\n function mint(address recipient, uint256 amount) external onlyOwner {\n require(recipient != address(0), \"Mint to the zero address\");\n\n beforeTokenTransfer(address(0), recipient, amount);\n\n totalSupply += amount;\n balanceOf[recipient] += amount;\n emit Transfer(address(0), recipient, amount);\n }\n\n /// @notice Destroys `amount` tokens from the caller.\n /// @dev Requirements:\n /// - the caller must have a balance of at least `amount`.\n function burn(uint256 amount) external override {\n _burn(msg.sender, amount);\n }\n\n /// @notice Destroys `amount` of tokens from `account` using the allowance\n /// mechanism. `amount` is then deducted from the caller's allowance\n /// unless the allowance was made for `type(uint256).max`.\n /// @dev Requirements:\n /// - `account` must have a balance of at least `amount`,\n /// - the caller must have allowance for `account`'s tokens of at least\n /// `amount`.\n function burnFrom(address account, uint256 amount) external override {\n uint256 currentAllowance = allowance[account][msg.sender];\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"Burn amount exceeds allowance\"\n );\n _approve(account, msg.sender, currentAllowance - amount);\n }\n _burn(account, amount);\n }\n\n /// @notice Calls `receiveApproval` function on spender previously approving\n /// the spender to withdraw from the caller multiple times, up to\n /// the `amount` amount. If this function is called again, it\n /// overwrites the current allowance with `amount`. Reverts if the\n /// approval reverted or if `receiveApproval` call on the spender\n /// reverted.\n /// @return True if both approval and `receiveApproval` calls succeeded.\n /// @dev If the `amount` is set to `type(uint256).max` then\n /// `transferFrom` and `burnFrom` will not reduce an allowance.\n function approveAndCall(\n address spender,\n uint256 amount,\n bytes memory extraData\n ) external override returns (bool) {\n if (approve(spender, amount)) {\n IReceiveApproval(spender).receiveApproval(\n msg.sender,\n amount,\n address(this),\n extraData\n );\n return true;\n }\n return false;\n }\n\n /// @notice Sets `amount` as the allowance of `spender` over the caller's\n /// tokens.\n /// @return True if the operation succeeded.\n /// @dev If the `amount` is set to `type(uint256).max` then\n /// `transferFrom` and `burnFrom` will not reduce an allowance.\n /// Beware that changing an allowance with this method brings the risk\n /// that someone may use both the old and the new allowance by\n /// unfortunate transaction ordering. One possible solution to mitigate\n /// this race condition is to first reduce the spender's allowance to 0\n /// and set the desired value afterwards:\n /// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n function approve(address spender, uint256 amount)\n public\n override\n returns (bool)\n {\n _approve(msg.sender, spender, amount);\n return true;\n }\n\n /// @notice Returns hash of EIP712 Domain struct with the token name as\n /// a signing domain and token contract as a verifying contract.\n /// Used to construct EIP2612 signature provided to `permit`\n /// function.\n /* solhint-disable-next-line func-name-mixedcase */\n function DOMAIN_SEPARATOR() public view override returns (bytes32) {\n // As explained in EIP-2612, if the DOMAIN_SEPARATOR contains the\n // chainId and is defined at contract deployment instead of\n // reconstructed for every signature, there is a risk of possible replay\n // attacks between chains in the event of a future chain split.\n // To address this issue, we check the cached chain ID against the\n // current one and in case they are different, we build domain separator\n // from scratch.\n if (block.chainid == cachedChainId) {\n return cachedDomainSeparator;\n } else {\n return buildDomainSeparator();\n }\n }\n\n /// @dev Hook that is called before any transfer of tokens. This includes\n /// minting and burning.\n ///\n /// Calling conditions:\n /// - when `from` and `to` are both non-zero, `amount` of `from`'s tokens\n /// will be to transferred to `to`.\n /// - when `from` is zero, `amount` tokens will be minted for `to`.\n /// - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n /// - `from` and `to` are never both zero.\n // slither-disable-next-line dead-code\n function beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _burn(address account, uint256 amount) internal {\n uint256 currentBalance = balanceOf[account];\n require(currentBalance >= amount, \"Burn amount exceeds balance\");\n\n beforeTokenTransfer(account, address(0), amount);\n\n balanceOf[account] = currentBalance - amount;\n totalSupply -= amount;\n emit Transfer(account, address(0), amount);\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) private {\n require(sender != address(0), \"Transfer from the zero address\");\n require(recipient != address(0), \"Transfer to the zero address\");\n require(recipient != address(this), \"Transfer to the token address\");\n\n beforeTokenTransfer(sender, recipient, amount);\n\n uint256 senderBalance = balanceOf[sender];\n require(senderBalance >= amount, \"Transfer amount exceeds balance\");\n balanceOf[sender] = senderBalance - amount;\n balanceOf[recipient] += amount;\n emit Transfer(sender, recipient, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) private {\n require(owner != address(0), \"Approve from the zero address\");\n require(spender != address(0), \"Approve to the zero address\");\n allowance[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function buildDomainSeparator() private view returns (bytes32) {\n return\n keccak256(\n abi.encode(\n keccak256(\n \"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\"\n ),\n keccak256(bytes(name)),\n keccak256(bytes(\"1\")),\n block.chainid,\n address(this)\n )\n );\n }\n}\n"
35
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.4;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport \"./IERC20WithPermit.sol\";\nimport \"./IReceiveApproval.sol\";\n\n/// @title ERC20WithPermit\n/// @notice Burnable ERC20 token with EIP2612 permit functionality. User can\n/// authorize a transfer of their token with a signature conforming\n/// EIP712 standard instead of an on-chain transaction from their\n/// address. Anyone can submit this signature on the user's behalf by\n/// calling the permit function, as specified in EIP2612 standard,\n/// paying gas fees, and possibly performing other actions in the same\n/// transaction.\ncontract ERC20WithPermit is IERC20WithPermit, Ownable {\n /// @notice The amount of tokens owned by the given account.\n mapping(address => uint256) public override balanceOf;\n\n /// @notice The remaining number of tokens that spender will be\n /// allowed to spend on behalf of owner through `transferFrom` and\n /// `burnFrom`. This is zero by default.\n mapping(address => mapping(address => uint256)) public override allowance;\n\n /// @notice Returns the current nonce for EIP2612 permission for the\n /// provided token owner for a replay protection. Used to construct\n /// EIP2612 signature provided to `permit` function.\n mapping(address => uint256) public override nonce;\n\n uint256 public immutable cachedChainId;\n bytes32 public immutable cachedDomainSeparator;\n\n /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612\n /// signature provided to `permit` function.\n bytes32 public constant override PERMIT_TYPEHASH =\n keccak256(\n \"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\"\n );\n\n /// @notice The amount of tokens in existence.\n uint256 public override totalSupply;\n\n /// @notice The name of the token.\n string public override name;\n\n /// @notice The symbol of the token.\n string public override symbol;\n\n /// @notice The decimals places of the token.\n uint8 public constant override decimals = 18;\n\n constructor(string memory _name, string memory _symbol) {\n name = _name;\n symbol = _symbol;\n\n cachedChainId = block.chainid;\n cachedDomainSeparator = buildDomainSeparator();\n }\n\n /// @notice Moves `amount` tokens from the caller's account to `recipient`.\n /// @return True if the operation succeeded, reverts otherwise.\n /// @dev Requirements:\n /// - `recipient` cannot be the zero address,\n /// - the caller must have a balance of at least `amount`.\n function transfer(address recipient, uint256 amount)\n external\n override\n returns (bool)\n {\n _transfer(msg.sender, recipient, amount);\n return true;\n }\n\n /// @notice Moves `amount` tokens from `spender` to `recipient` using the\n /// allowance mechanism. `amount` is then deducted from the caller's\n /// allowance unless the allowance was made for `type(uint256).max`.\n /// @return True if the operation succeeded, reverts otherwise.\n /// @dev Requirements:\n /// - `spender` and `recipient` cannot be the zero address,\n /// - `spender` must have a balance of at least `amount`,\n /// - the caller must have allowance for `spender`'s tokens of at least\n /// `amount`.\n function transferFrom(\n address spender,\n address recipient,\n uint256 amount\n ) external override returns (bool) {\n uint256 currentAllowance = allowance[spender][msg.sender];\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"Transfer amount exceeds allowance\"\n );\n _approve(spender, msg.sender, currentAllowance - amount);\n }\n _transfer(spender, recipient, amount);\n return true;\n }\n\n /// @notice EIP2612 approval made with secp256k1 signature.\n /// Users can authorize a transfer of their tokens with a signature\n /// conforming EIP712 standard, rather than an on-chain transaction\n /// from their address. Anyone can submit this signature on the\n /// user's behalf by calling the permit function, paying gas fees,\n /// and possibly performing other actions in the same transaction.\n /// @dev The deadline argument can be set to `type(uint256).max to create\n /// permits that effectively never expire. If the `amount` is set\n /// to `type(uint256).max` then `transferFrom` and `burnFrom` will\n /// not reduce an allowance.\n function permit(\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external override {\n /* solhint-disable-next-line not-rely-on-time */\n require(deadline >= block.timestamp, \"Permission expired\");\n\n // Validate `s` and `v` values for a malleability concern described in EIP2.\n // Only signatures with `s` value in the lower half of the secp256k1\n // curve's order and `v` value of 27 or 28 are considered valid.\n require(\n uint256(s) <=\n 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,\n \"Invalid signature 's' value\"\n );\n require(v == 27 || v == 28, \"Invalid signature 'v' value\");\n\n bytes32 digest = keccak256(\n abi.encodePacked(\n \"\\x19\\x01\",\n DOMAIN_SEPARATOR(),\n keccak256(\n abi.encode(\n PERMIT_TYPEHASH,\n owner,\n spender,\n amount,\n nonce[owner]++,\n deadline\n )\n )\n )\n );\n address recoveredAddress = ecrecover(digest, v, r, s);\n require(\n recoveredAddress != address(0) && recoveredAddress == owner,\n \"Invalid signature\"\n );\n _approve(owner, spender, amount);\n }\n\n /// @notice Creates `amount` tokens and assigns them to `account`,\n /// increasing the total supply.\n /// @dev Requirements:\n /// - `recipient` cannot be the zero address.\n function mint(address recipient, uint256 amount) external onlyOwner {\n require(recipient != address(0), \"Mint to the zero address\");\n\n beforeTokenTransfer(address(0), recipient, amount);\n\n totalSupply += amount;\n balanceOf[recipient] += amount;\n emit Transfer(address(0), recipient, amount);\n }\n\n /// @notice Destroys `amount` tokens from the caller.\n /// @dev Requirements:\n /// - the caller must have a balance of at least `amount`.\n function burn(uint256 amount) external override {\n _burn(msg.sender, amount);\n }\n\n /// @notice Destroys `amount` of tokens from `account` using the allowance\n /// mechanism. `amount` is then deducted from the caller's allowance\n /// unless the allowance was made for `type(uint256).max`.\n /// @dev Requirements:\n /// - `account` must have a balance of at least `amount`,\n /// - the caller must have allowance for `account`'s tokens of at least\n /// `amount`.\n function burnFrom(address account, uint256 amount) external override {\n uint256 currentAllowance = allowance[account][msg.sender];\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"Burn amount exceeds allowance\"\n );\n _approve(account, msg.sender, currentAllowance - amount);\n }\n _burn(account, amount);\n }\n\n /// @notice Calls `receiveApproval` function on spender previously approving\n /// the spender to withdraw from the caller multiple times, up to\n /// the `amount` amount. If this function is called again, it\n /// overwrites the current allowance with `amount`. Reverts if the\n /// approval reverted or if `receiveApproval` call on the spender\n /// reverted.\n /// @return True if both approval and `receiveApproval` calls succeeded.\n /// @dev If the `amount` is set to `type(uint256).max` then\n /// `transferFrom` and `burnFrom` will not reduce an allowance.\n function approveAndCall(\n address spender,\n uint256 amount,\n bytes memory extraData\n ) external override returns (bool) {\n if (approve(spender, amount)) {\n IReceiveApproval(spender).receiveApproval(\n msg.sender,\n amount,\n address(this),\n extraData\n );\n return true;\n }\n return false;\n }\n\n /// @notice Sets `amount` as the allowance of `spender` over the caller's\n /// tokens.\n /// @return True if the operation succeeded.\n /// @dev If the `amount` is set to `type(uint256).max` then\n /// `transferFrom` and `burnFrom` will not reduce an allowance.\n /// Beware that changing an allowance with this method brings the risk\n /// that someone may use both the old and the new allowance by\n /// unfortunate transaction ordering. One possible solution to mitigate\n /// this race condition is to first reduce the spender's allowance to 0\n /// and set the desired value afterwards:\n /// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n function approve(address spender, uint256 amount)\n public\n override\n returns (bool)\n {\n _approve(msg.sender, spender, amount);\n return true;\n }\n\n /// @notice Returns hash of EIP712 Domain struct with the token name as\n /// a signing domain and token contract as a verifying contract.\n /// Used to construct EIP2612 signature provided to `permit`\n /// function.\n /* solhint-disable-next-line func-name-mixedcase */\n function DOMAIN_SEPARATOR() public view override returns (bytes32) {\n // As explained in EIP-2612, if the DOMAIN_SEPARATOR contains the\n // chainId and is defined at contract deployment instead of\n // reconstructed for every signature, there is a risk of possible replay\n // attacks between chains in the event of a future chain split.\n // To address this issue, we check the cached chain ID against the\n // current one and in case they are different, we build domain separator\n // from scratch.\n if (block.chainid == cachedChainId) {\n return cachedDomainSeparator;\n } else {\n return buildDomainSeparator();\n }\n }\n\n /// @dev Hook that is called before any transfer of tokens. This includes\n /// minting and burning.\n ///\n /// Calling conditions:\n /// - when `from` and `to` are both non-zero, `amount` of `from`'s tokens\n /// will be to transferred to `to`.\n /// - when `from` is zero, `amount` tokens will be minted for `to`.\n /// - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n /// - `from` and `to` are never both zero.\n // slither-disable-next-line dead-code\n function beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _burn(address account, uint256 amount) internal {\n uint256 currentBalance = balanceOf[account];\n require(currentBalance >= amount, \"Burn amount exceeds balance\");\n\n beforeTokenTransfer(account, address(0), amount);\n\n balanceOf[account] = currentBalance - amount;\n totalSupply -= amount;\n emit Transfer(account, address(0), amount);\n }\n\n function _transfer(\n address spender,\n address recipient,\n uint256 amount\n ) private {\n require(spender != address(0), \"Transfer from the zero address\");\n require(recipient != address(0), \"Transfer to the zero address\");\n require(recipient != address(this), \"Transfer to the token address\");\n\n beforeTokenTransfer(spender, recipient, amount);\n\n uint256 spenderBalance = balanceOf[spender];\n require(spenderBalance >= amount, \"Transfer amount exceeds balance\");\n balanceOf[spender] = spenderBalance - amount;\n balanceOf[recipient] += amount;\n emit Transfer(spender, recipient, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) private {\n require(owner != address(0), \"Approve from the zero address\");\n require(spender != address(0), \"Approve to the zero address\");\n allowance[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function buildDomainSeparator() private view returns (bytes32) {\n return\n keccak256(\n abi.encode(\n keccak256(\n \"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\"\n ),\n keccak256(bytes(name)),\n keccak256(bytes(\"1\")),\n block.chainid,\n address(this)\n )\n );\n }\n}\n"
33
36
  },
34
37
  "@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol": {
35
38
  "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.4;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"@openzeppelin/contracts/token/ERC721/IERC721.sol\";\n\n/// @title MisfundRecovery\n/// @notice Allows the owner of the token contract extending MisfundRecovery\n/// to recover any ERC20 and ERC721 sent mistakenly to the token\n/// contract address.\ncontract MisfundRecovery is Ownable {\n using SafeERC20 for IERC20;\n\n function recoverERC20(\n IERC20 token,\n address recipient,\n uint256 amount\n ) external onlyOwner {\n token.safeTransfer(recipient, amount);\n }\n\n function recoverERC721(\n IERC721 token,\n address recipient,\n uint256 tokenId,\n bytes calldata data\n ) external onlyOwner {\n token.safeTransferFrom(address(this), recipient, tokenId, data);\n }\n}\n"
36
39
  },
37
40
  "@thesis/solidity-contracts/contracts/token/IERC20WithPermit.sol": {
38
- "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.4;\n\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\n\nimport \"./IApproveAndCall.sol\";\n\n/// @title IERC20WithPermit\n/// @notice Burnable ERC20 token with EIP2612 permit functionality. User can\n/// authorize a transfer of their token with a signature conforming\n/// EIP712 standard instead of an on-chain transaction from their\n/// address. Anyone can submit this signature on the user's behalf by\n/// calling the permit function, as specified in EIP2612 standard,\n/// paying gas fees, and possibly performing other actions in the same\n/// transaction.\ninterface IERC20WithPermit is IERC20, IERC20Metadata, IApproveAndCall {\n /// @notice EIP2612 approval made with secp256k1 signature.\n /// Users can authorize a transfer of their tokens with a signature\n /// conforming EIP712 standard, rather than an on-chain transaction\n /// from their address. Anyone can submit this signature on the\n /// user's behalf by calling the permit function, paying gas fees,\n /// and possibly performing other actions in the same transaction.\n /// @dev The deadline argument can be set to `type(uint256).max to create\n /// permits that effectively never expire.\n function permit(\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /// @notice Destroys `amount` tokens from the caller.\n function burn(uint256 amount) external;\n\n /// @notice Destroys `amount` of tokens from `account`, deducting the amount\n /// from caller's allowance.\n function burnFrom(address account, uint256 amount) external;\n\n /// @notice Returns hash of EIP712 Domain struct with the token name as\n /// a signing domain and token contract as a verifying contract.\n /// Used to construct EIP2612 signature provided to `permit`\n /// function.\n /* solhint-disable-next-line func-name-mixedcase */\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n\n /// @notice Returns the current nonce for EIP2612 permission for the\n /// provided token owner for a replay protection. Used to construct\n /// EIP2612 signature provided to `permit` function.\n function nonces(address owner) external view returns (uint256);\n\n /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612\n /// signature provided to `permit` function.\n /* solhint-disable-next-line func-name-mixedcase */\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n}\n"
41
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.4;\n\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\n\nimport \"./IApproveAndCall.sol\";\n\n/// @title IERC20WithPermit\n/// @notice Burnable ERC20 token with EIP2612 permit functionality. User can\n/// authorize a transfer of their token with a signature conforming\n/// EIP712 standard instead of an on-chain transaction from their\n/// address. Anyone can submit this signature on the user's behalf by\n/// calling the permit function, as specified in EIP2612 standard,\n/// paying gas fees, and possibly performing other actions in the same\n/// transaction.\ninterface IERC20WithPermit is IERC20, IERC20Metadata, IApproveAndCall {\n /// @notice EIP2612 approval made with secp256k1 signature.\n /// Users can authorize a transfer of their tokens with a signature\n /// conforming EIP712 standard, rather than an on-chain transaction\n /// from their address. Anyone can submit this signature on the\n /// user's behalf by calling the permit function, paying gas fees,\n /// and possibly performing other actions in the same transaction.\n /// @dev The deadline argument can be set to `type(uint256).max to create\n /// permits that effectively never expire.\n function permit(\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /// @notice Destroys `amount` tokens from the caller.\n function burn(uint256 amount) external;\n\n /// @notice Destroys `amount` of tokens from `account`, deducting the amount\n /// from caller's allowance.\n function burnFrom(address account, uint256 amount) external;\n\n /// @notice Returns hash of EIP712 Domain struct with the token name as\n /// a signing domain and token contract as a verifying contract.\n /// Used to construct EIP2612 signature provided to `permit`\n /// function.\n /* solhint-disable-next-line func-name-mixedcase */\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n\n /// @notice Returns the current nonce for EIP2612 permission for the\n /// provided token owner for a replay protection. Used to construct\n /// EIP2612 signature provided to `permit` function.\n function nonce(address owner) external view returns (uint256);\n\n /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612\n /// signature provided to `permit` function.\n /* solhint-disable-next-line func-name-mixedcase */\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n}\n"
39
42
  },
40
43
  "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": {
41
44
  "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n /**\n * @dev Returns the name of the token.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the symbol of the token.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the decimals places of the token.\n */\n function decimals() external view returns (uint8);\n}\n"
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../build-info/2c4248711b87bf88539b00b8fc80902e.json"
3
+ "buildInfo": "../../build-info/5dcb7090cfa3ef21a6b6fbb4b3b3e6b4.json"
4
4
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/5dcb7090cfa3ef21a6b6fbb4b3b3e6b4.json"
4
+ }
@@ -0,0 +1,176 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Bridge",
4
+ "sourceName": "contracts/bridge/Bridge.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "uint256",
12
+ "name": "depositId",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "bytes32",
18
+ "name": "fundingTxHash",
19
+ "type": "bytes32"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "uint8",
24
+ "name": "fundingOutputIndex",
25
+ "type": "uint8"
26
+ },
27
+ {
28
+ "indexed": false,
29
+ "internalType": "address",
30
+ "name": "depositor",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "indexed": false,
35
+ "internalType": "uint64",
36
+ "name": "blindingFactor",
37
+ "type": "uint64"
38
+ },
39
+ {
40
+ "indexed": false,
41
+ "internalType": "bytes",
42
+ "name": "refundPubKey",
43
+ "type": "bytes"
44
+ },
45
+ {
46
+ "indexed": false,
47
+ "internalType": "uint64",
48
+ "name": "amount",
49
+ "type": "uint64"
50
+ },
51
+ {
52
+ "indexed": false,
53
+ "internalType": "address",
54
+ "name": "vault",
55
+ "type": "address"
56
+ }
57
+ ],
58
+ "name": "DepositRevealed",
59
+ "type": "event"
60
+ },
61
+ {
62
+ "inputs": [
63
+ {
64
+ "internalType": "bytes32",
65
+ "name": "fundingTxHash",
66
+ "type": "bytes32"
67
+ },
68
+ {
69
+ "internalType": "uint8",
70
+ "name": "fundingOutputIndex",
71
+ "type": "uint8"
72
+ },
73
+ {
74
+ "internalType": "uint64",
75
+ "name": "blindingFactor",
76
+ "type": "uint64"
77
+ },
78
+ {
79
+ "internalType": "bytes",
80
+ "name": "refundPubKey",
81
+ "type": "bytes"
82
+ },
83
+ {
84
+ "internalType": "uint64",
85
+ "name": "amount",
86
+ "type": "uint64"
87
+ },
88
+ {
89
+ "internalType": "address",
90
+ "name": "vault",
91
+ "type": "address"
92
+ }
93
+ ],
94
+ "name": "revealDeposit",
95
+ "outputs": [],
96
+ "stateMutability": "nonpayable",
97
+ "type": "function"
98
+ },
99
+ {
100
+ "inputs": [
101
+ {
102
+ "internalType": "bytes4",
103
+ "name": "txVersion",
104
+ "type": "bytes4"
105
+ },
106
+ {
107
+ "internalType": "bytes",
108
+ "name": "txInputVector",
109
+ "type": "bytes"
110
+ },
111
+ {
112
+ "internalType": "bytes",
113
+ "name": "txOutput",
114
+ "type": "bytes"
115
+ },
116
+ {
117
+ "internalType": "bytes4",
118
+ "name": "txLocktime",
119
+ "type": "bytes4"
120
+ },
121
+ {
122
+ "internalType": "bytes",
123
+ "name": "merkleProof",
124
+ "type": "bytes"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "txIndexInBlock",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "internalType": "bytes",
133
+ "name": "bitcoinHeaders",
134
+ "type": "bytes"
135
+ }
136
+ ],
137
+ "name": "sweep",
138
+ "outputs": [],
139
+ "stateMutability": "nonpayable",
140
+ "type": "function"
141
+ },
142
+ {
143
+ "inputs": [
144
+ {
145
+ "internalType": "uint256",
146
+ "name": "",
147
+ "type": "uint256"
148
+ }
149
+ ],
150
+ "name": "unswept",
151
+ "outputs": [
152
+ {
153
+ "internalType": "uint64",
154
+ "name": "amount",
155
+ "type": "uint64"
156
+ },
157
+ {
158
+ "internalType": "address",
159
+ "name": "vault",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "internalType": "uint32",
164
+ "name": "revealedAt",
165
+ "type": "uint32"
166
+ }
167
+ ],
168
+ "stateMutability": "view",
169
+ "type": "function"
170
+ }
171
+ ],
172
+ "bytecode": "0x608060405234801561001057600080fd5b506109f0806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632c3e1d121461004657806342b1f1a41461006257806343c6de291461007e575b600080fd5b610060600480360381019061005b91906103df565b6100b0565b005b61007c60048036038101906100779190610486565b610238565b005b61009860048036038101906100939190610584565b610241565b6040516100a793929190610735565b60405180910390f35b60008787336040516020016100c793929190610657565b6040516020818303038152906040528051906020012060001c905060008060008381526020019081526020016000209050600081600001601c9054906101000a900463ffffffff1663ffffffff1614610155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014c9061068e565b60405180910390fd5b838160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550828160000160086101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504281600001601c6101000a81548163ffffffff021916908363ffffffff1602179055507fed7e2a3180a53ccf8540bf67f1679359557837b4c2350f3c7f1d1409eaac3739828a8a338b8b8b8b8b604051610225999897969594939291906106ae565b60405180910390a1505050505050505050565b50505050505050565b60006020528060005260406000206000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600001601c9054906101000a900463ffffffff16905083565b60006102c26102bd84610791565b61076c565b9050828152602081018484840111156102da57600080fd5b6102e5848285610887565b509392505050565b6000813590506102fc81610930565b92915050565b60008135905061031181610947565b92915050565b6000813590506103268161095e565b92915050565b60008083601f84011261033e57600080fd5b8235905067ffffffffffffffff81111561035757600080fd5b60208301915083600182028301111561036f57600080fd5b9250929050565b600082601f83011261038757600080fd5b81356103978482602086016102af565b91505092915050565b6000813590506103af81610975565b92915050565b6000813590506103c48161098c565b92915050565b6000813590506103d9816109a3565b92915050565b600080600080600080600060c0888a0312156103fa57600080fd5b60006104088a828b01610302565b97505060206104198a828b016103ca565b965050604061042a8a828b016103b5565b955050606088013567ffffffffffffffff81111561044757600080fd5b6104538a828b0161032c565b945094505060806104668a828b016103b5565b92505060a06104778a828b016102ed565b91505092959891949750929550565b600080600080600080600060e0888a0312156104a157600080fd5b60006104af8a828b01610317565b975050602088013567ffffffffffffffff8111156104cc57600080fd5b6104d88a828b01610376565b965050604088013567ffffffffffffffff8111156104f557600080fd5b6105018a828b01610376565b95505060606105128a828b01610317565b945050608088013567ffffffffffffffff81111561052f57600080fd5b61053b8a828b01610376565b93505060a061054c8a828b016103a0565b92505060c088013567ffffffffffffffff81111561056957600080fd5b6105758a828b01610376565b91505092959891949750929550565b60006020828403121561059657600080fd5b60006105a4848285016103a0565b91505092915050565b6105b6816107e4565b82525050565b6105c5816107f6565b82525050565b60006105d783856107c2565b93506105e4838584610887565b6105ed836108f6565b840190509392505050565b60006106056018836107d3565b915061061082610907565b602082019050919050565b6106248161084c565b82525050565b61063381610856565b82525050565b61064281610866565b82525050565b6106518161087a565b82525050565b600060608201905061066c60008301866105bc565b6106796020830185610648565b61068660408301846105ad565b949350505050565b600060208201905081810360008301526106a7816105f8565b9050919050565b6000610100820190506106c4600083018c61061b565b6106d1602083018b6105bc565b6106de604083018a610648565b6106eb60608301896105ad565b6106f86080830188610639565b81810360a083015261070b8186886105cb565b905061071a60c0830185610639565b61072760e08301846105ad565b9a9950505050505050505050565b600060608201905061074a6000830186610639565b61075760208301856105ad565b610764604083018461062a565b949350505050565b6000610776610787565b90506107828282610896565b919050565b6000604051905090565b600067ffffffffffffffff8211156107ac576107ab6108c7565b5b6107b5826108f6565b9050602081019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006107ef8261082c565b9050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b61089f826108f6565b810181811067ffffffffffffffff821117156108be576108bd6108c7565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4465706f73697420616c72656164792072657665616c65640000000000000000600082015250565b610939816107e4565b811461094457600080fd5b50565b610950816107f6565b811461095b57600080fd5b50565b61096781610800565b811461097257600080fd5b50565b61097e8161084c565b811461098957600080fd5b50565b61099581610866565b81146109a057600080fd5b50565b6109ac8161087a565b81146109b757600080fd5b5056fea2646970667358221220bca337d7cb05b6b689ca49ecdd85c75dc9cdde9d5b5a54318aba5449dda2e35064736f6c63430008040033",
173
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632c3e1d121461004657806342b1f1a41461006257806343c6de291461007e575b600080fd5b610060600480360381019061005b91906103df565b6100b0565b005b61007c60048036038101906100779190610486565b610238565b005b61009860048036038101906100939190610584565b610241565b6040516100a793929190610735565b60405180910390f35b60008787336040516020016100c793929190610657565b6040516020818303038152906040528051906020012060001c905060008060008381526020019081526020016000209050600081600001601c9054906101000a900463ffffffff1663ffffffff1614610155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014c9061068e565b60405180910390fd5b838160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550828160000160086101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504281600001601c6101000a81548163ffffffff021916908363ffffffff1602179055507fed7e2a3180a53ccf8540bf67f1679359557837b4c2350f3c7f1d1409eaac3739828a8a338b8b8b8b8b604051610225999897969594939291906106ae565b60405180910390a1505050505050505050565b50505050505050565b60006020528060005260406000206000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600001601c9054906101000a900463ffffffff16905083565b60006102c26102bd84610791565b61076c565b9050828152602081018484840111156102da57600080fd5b6102e5848285610887565b509392505050565b6000813590506102fc81610930565b92915050565b60008135905061031181610947565b92915050565b6000813590506103268161095e565b92915050565b60008083601f84011261033e57600080fd5b8235905067ffffffffffffffff81111561035757600080fd5b60208301915083600182028301111561036f57600080fd5b9250929050565b600082601f83011261038757600080fd5b81356103978482602086016102af565b91505092915050565b6000813590506103af81610975565b92915050565b6000813590506103c48161098c565b92915050565b6000813590506103d9816109a3565b92915050565b600080600080600080600060c0888a0312156103fa57600080fd5b60006104088a828b01610302565b97505060206104198a828b016103ca565b965050604061042a8a828b016103b5565b955050606088013567ffffffffffffffff81111561044757600080fd5b6104538a828b0161032c565b945094505060806104668a828b016103b5565b92505060a06104778a828b016102ed565b91505092959891949750929550565b600080600080600080600060e0888a0312156104a157600080fd5b60006104af8a828b01610317565b975050602088013567ffffffffffffffff8111156104cc57600080fd5b6104d88a828b01610376565b965050604088013567ffffffffffffffff8111156104f557600080fd5b6105018a828b01610376565b95505060606105128a828b01610317565b945050608088013567ffffffffffffffff81111561052f57600080fd5b61053b8a828b01610376565b93505060a061054c8a828b016103a0565b92505060c088013567ffffffffffffffff81111561056957600080fd5b6105758a828b01610376565b91505092959891949750929550565b60006020828403121561059657600080fd5b60006105a4848285016103a0565b91505092915050565b6105b6816107e4565b82525050565b6105c5816107f6565b82525050565b60006105d783856107c2565b93506105e4838584610887565b6105ed836108f6565b840190509392505050565b60006106056018836107d3565b915061061082610907565b602082019050919050565b6106248161084c565b82525050565b61063381610856565b82525050565b61064281610866565b82525050565b6106518161087a565b82525050565b600060608201905061066c60008301866105bc565b6106796020830185610648565b61068660408301846105ad565b949350505050565b600060208201905081810360008301526106a7816105f8565b9050919050565b6000610100820190506106c4600083018c61061b565b6106d1602083018b6105bc565b6106de604083018a610648565b6106eb60608301896105ad565b6106f86080830188610639565b81810360a083015261070b8186886105cb565b905061071a60c0830185610639565b61072760e08301846105ad565b9a9950505050505050505050565b600060608201905061074a6000830186610639565b61075760208301856105ad565b610764604083018461062a565b949350505050565b6000610776610787565b90506107828282610896565b919050565b6000604051905090565b600067ffffffffffffffff8211156107ac576107ab6108c7565b5b6107b5826108f6565b9050602081019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006107ef8261082c565b9050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b61089f826108f6565b810181811067ffffffffffffffff821117156108be576108bd6108c7565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4465706f73697420616c72656164792072657665616c65640000000000000000600082015250565b610939816107e4565b811461094457600080fd5b50565b610950816107f6565b811461095b57600080fd5b50565b61096781610800565b811461097257600080fd5b50565b61097e8161084c565b811461098957600080fd5b50565b61099581610866565b81146109a057600080fd5b50565b6109ac8161087a565b81146109b757600080fd5b5056fea2646970667358221220bca337d7cb05b6b689ca49ecdd85c75dc9cdde9d5b5a54318aba5449dda2e35064736f6c63430008040033",
174
+ "linkReferences": {},
175
+ "deployedLinkReferences": {}
176
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/2c4248711b87bf88539b00b8fc80902e.json"
3
+ "buildInfo": "../../../build-info/5dcb7090cfa3ef21a6b6fbb4b3b3e6b4.json"
4
4
  }
@@ -511,8 +511,8 @@
511
511
  "type": "function"
512
512
  }
513
513
  ],
514
- "bytecode": "0x60c06040523480156200001157600080fd5b5060405162002c6038038062002c60833981810160405281019062000037919062000268565b620000576200004b6200015760201b60201c565b6200015f60201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508060018190555033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000372565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620002348162000324565b92915050565b6000815190506200024b816200033e565b92915050565b600081519050620002628162000358565b92915050565b6000806000606084860312156200027e57600080fd5b60006200028e8682870162000223565b9350506020620002a1868287016200023a565b9250506040620002b48682870162000251565b9150509250925092565b6000620002cb82620002fa565b9050919050565b6000620002df82620002be565b9050919050565b6000620002f382620002be565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6200032f81620002d2565b81146200033b57600080fd5b50565b6200034981620002e6565b81146200035557600080fd5b50565b62000363816200031a565b81146200036f57600080fd5b50565b60805160601c60a05160601c61286e620003f260003960008181610a0e01528181610afe01528181610b4501528181610dff01528181610eb101528181611017015261184c01526000818161071301528181610bd701528181610cd201528181610d60015281816110ea015281816111930152611805015261286e6000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063b766bd8a11610097578063ea1a4e6811610071578063ea1a4e6814610428578063f257a1a014610446578063f2fde38b14610462578063fe7294a81461047e576101a9565b8063b766bd8a146103d0578063bb81268c14610400578063c2b4aa751461040a576101a9565b8063a0712d68116100d3578063a0712d681461035c578063ad3b1b4714610378578063b0b5489514610394578063b29b95ce146103b2576101a9565b80638da5cb5b146103045780638f4ffcb11461032257806395de5a411461033e576101a9565b80632d42067d116101665780635bf32f52116101405780635bf32f52146102a65780636386d0b1146102c257806364e779b1146102de578063715018a6146102fa576101a9565b80632d42067d1461024e5780633678252f1461026a57806351b83ebc14610288576101a9565b806305e448fc146101ae5780630bb037df146101cc5780630c05ab39146101ea5780630c505b7a1461020857806320ad25dc14610226578063240b57e814610230575b600080fd5b6101b661049c565b6040516101c3919061223d565b60405180910390f35b6101d46104a2565b6040516101e1919061223d565b60405180910390f35b6101f26104b8565b6040516101ff9190611fca565b60405180910390f35b6102106104de565b60405161021d919061223d565b60405180910390f35b61022e6104e4565b005b6102386105c5565b604051610245919061223d565b60405180910390f35b61026860048036038101906102639190611be6565b6105cb565b005b610272610711565b60405161027f9190612045565b60405180910390f35b610290610735565b60405161029d919061223d565b60405180910390f35b6102c060048036038101906102bb9190611cf4565b610741565b005b6102dc60048036038101906102d79190611be6565b61081d565b005b6102f860048036038101906102f39190611cf4565b6109a3565b005b610302610c1f565b005b61030c610ca7565b6040516103199190611fca565b60405180910390f35b61033c60048036038101906103379190611c4b565b610cd0565b005b610346610dfd565b6040516103539190612060565b60405180910390f35b61037660048036038101906103719190611cf4565b610e21565b005b610392600480360381019061038d9190611c0f565b610e2e565b005b61039c610ef9565b6040516103a9919061223d565b60405180910390f35b6103ba610f00565b6040516103c7919061223d565b60405180910390f35b6103ea60048036038101906103e59190611cf4565b610f06565b6040516103f7919061223d565b60405180910390f35b610408610f30565b005b610412611224565b60405161041f919061223d565b60405180910390f35b61043061123a565b60405161043d9190611fca565b60405180910390f35b610460600480360381019061045b9190611be6565b611260565b005b61047c60048036038101906104779190611be6565b6113a6565b005b61048661149e565b6040516104939190611fca565b60405180910390f35b60065481565b60006104b360065462093a806114c4565b905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6104ec61153f565b73ffffffffffffffffffffffffffffffffffffffff1661050a610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105579061213d565b60405180910390fd5b6003546105708162093a80611547565b7f3fd2a429fdc4324c186eb6c71dc1bf3accae43e10f21367f6d143635dd5ed33c6002546040516105a1919061223d565b60405180910390a16002546001819055506000600281905550600060038190555050565b60025481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461065c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106539061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156106cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c3906121bd565b60405180910390fd5b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b670de0b6b3a764000081565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c99061215d565b60405180910390fd5b7f0ddb39c814329b5da82b52fcacf65e4db6a1f64a0db4755282bee877cb97991a8242604051610803929190612258565b60405180910390a181600281905550426003819055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a59061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561091e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109159061217d565b60405180910390fd5b7f424e3c8894757dd6fd019d0d8065b19c7e49af137aeb89a275ed3d2435025a96824260405161094f92919061201c565b60405180910390a181600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006819055505050565b60006109ae82610f06565b90503373ffffffffffffffffffffffffffffffffffffffff167fe8a2f49c528033a686bb566d35ac82ca6fd93449bdd9f5d5b36c2f1aa68214b383836040516109f8929190612258565b60405180910390a28082610a0c91906122b3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610a659190611fca565b60206040518083038186803b158015610a7d57600080fd5b505afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190611d1d565b1015610af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aed9061209d565b60405180910390fd5b610b433330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc679033846040518363ffffffff1660e01b8152600401610b9e92919061201c565b600060405180830381600087803b158015610bb857600080fd5b505af1158015610bcc573d6000803e3d6000fd5b50505050610c1b33837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b610c2761153f565b73ffffffffffffffffffffffffffffffffffffffff16610c45610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c929061213d565b60405180910390fd5b610ca560006116eb565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d55906121fd565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de39061221d565b60405180910390fd5b610df685856117af565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610e2b33826117af565b50565b610e3661153f565b73ffffffffffffffffffffffffffffffffffffffff16610e54610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea19061213d565b60405180910390fd5b610ef582827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b62093a8081565b60035481565b6000670de0b6b3a764000060015483610f1f919061233a565b610f299190612309565b9050919050565b610f3861153f565b73ffffffffffffffffffffffffffffffffffffffff16610f56610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa39061213d565b60405180910390fd5b600654610fbc8162093a80611547565b7f99610bc40a14194a7a819ffeded94200b49e68ba00bc3a3ab89625c0972217ff600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161100d9190611fca565b60405180910390a17f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016110909190611fca565b600060405180830381600087803b1580156110aa57600080fd5b505af11580156110be573d6000803e3d6000fd5b505050506111d7600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111419190611fca565b60206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190611d1d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b6000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060068190555050565b600061123560035462093a806114c4565b905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e89061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611358906121bd565b60405180910390fd5b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6113ae61153f565b73ffffffffffffffffffffffffffffffffffffffff166113cc610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061213d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611492576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611489906120bd565b60405180910390fd5b61149b816116eb565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808311611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff906120fd565b60405180910390fd5b600083426115169190612394565b9050828110611529576000915050611539565b80836115359190612394565b9150505b92915050565b600033905090565b6000821161158a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611581906120fd565b60405180910390fd5b8082426115979190612394565b10156115d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cf9061211d565b60405180910390fd5b5050565b61165f846323b872dd60e01b8585856040516024016115fd93929190611fe5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b50505050565b6116e68363a9059cbb60e01b848460405160240161168492919061201c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe826040516117f5919061223d565b60405180910390a261184a8230837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b81526004016118a592919061201c565b600060405180830381600087803b1580156118bf57600080fd5b505af11580156118d3573d6000803e3d6000fd5b505050505050565b600061193d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119a29092919063ffffffff16565b905060008151111561199d578080602001905181019061195d9190611ccb565b61199c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611993906121dd565b60405180910390fd5b5b505050565b60606119b184846000856119ba565b90509392505050565b6060824710156119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f6906120dd565b60405180910390fd5b611a0885611ace565b611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061219d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611a709190611fb3565b60006040518083038185875af1925050503d8060008114611aad576040519150601f19603f3d011682016040523d82523d6000602084013e611ab2565b606091505b5091509150611ac2828286611ae1565b92505050949350505050565b600080823b905060008111915050919050565b60608315611af157829050611b41565b600083511115611b045782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b38919061207b565b60405180910390fd5b9392505050565b600081359050611b57816127f3565b92915050565b600081519050611b6c8161280a565b92915050565b60008083601f840112611b8457600080fd5b8235905067ffffffffffffffff811115611b9d57600080fd5b602083019150836001820283011115611bb557600080fd5b9250929050565b600081359050611bcb81612821565b92915050565b600081519050611be081612821565b92915050565b600060208284031215611bf857600080fd5b6000611c0684828501611b48565b91505092915050565b60008060408385031215611c2257600080fd5b6000611c3085828601611b48565b9250506020611c4185828601611bbc565b9150509250929050565b600080600080600060808688031215611c6357600080fd5b6000611c7188828901611b48565b9550506020611c8288828901611bbc565b9450506040611c9388828901611b48565b935050606086013567ffffffffffffffff811115611cb057600080fd5b611cbc88828901611b72565b92509250509295509295909350565b600060208284031215611cdd57600080fd5b6000611ceb84828501611b5d565b91505092915050565b600060208284031215611d0657600080fd5b6000611d1484828501611bbc565b91505092915050565b600060208284031215611d2f57600080fd5b6000611d3d84828501611bd1565b91505092915050565b611d4f816123c8565b82525050565b6000611d6082612281565b611d6a8185612297565b9350611d7a818560208601612458565b80840191505092915050565b611d8f81612410565b82525050565b611d9e81612434565b82525050565b6000611daf8261228c565b611db981856122a2565b9350611dc9818560208601612458565b611dd2816124e9565b840191505092915050565b6000611dea6024836122a2565b9150611df5826124fa565b604082019050919050565b6000611e0d6026836122a2565b9150611e1882612549565b604082019050919050565b6000611e306026836122a2565b9150611e3b82612598565b604082019050919050565b6000611e536014836122a2565b9150611e5e826125e7565b602082019050919050565b6000611e766020836122a2565b9150611e8182612610565b602082019050919050565b6000611e996020836122a2565b9150611ea482612639565b602082019050919050565b6000611ebc6018836122a2565b9150611ec782612662565b602082019050919050565b6000611edf6029836122a2565b9150611eea8261268b565b604082019050919050565b6000611f02601d836122a2565b9150611f0d826126da565b602082019050919050565b6000611f256026836122a2565b9150611f3082612703565b604082019050919050565b6000611f48602a836122a2565b9150611f5382612752565b604082019050919050565b6000611f6b6014836122a2565b9150611f76826127a1565b602082019050919050565b6000611f8e601b836122a2565b9150611f99826127ca565b602082019050919050565b611fad81612406565b82525050565b6000611fbf8284611d55565b915081905092915050565b6000602082019050611fdf6000830184611d46565b92915050565b6000606082019050611ffa6000830186611d46565b6120076020830185611d46565b6120146040830184611fa4565b949350505050565b60006040820190506120316000830185611d46565b61203e6020830184611fa4565b9392505050565b600060208201905061205a6000830184611d86565b92915050565b60006020820190506120756000830184611d95565b92915050565b600060208201905081810360008301526120958184611da4565b905092915050565b600060208201905081810360008301526120b681611ddd565b9050919050565b600060208201905081810360008301526120d681611e00565b9050919050565b600060208201905081810360008301526120f681611e23565b9050919050565b6000602082019050818103600083015261211681611e46565b9050919050565b6000602082019050818103600083015261213681611e69565b9050919050565b6000602082019050818103600083015261215681611e8c565b9050919050565b6000602082019050818103600083015261217681611eaf565b9050919050565b6000602082019050818103600083015261219681611ed2565b9050919050565b600060208201905081810360008301526121b681611ef5565b9050919050565b600060208201905081810360008301526121d681611f18565b9050919050565b600060208201905081810360008301526121f681611f3b565b9050919050565b6000602082019050818103600083015261221681611f5e565b9050919050565b6000602082019050818103600083015261223681611f81565b9050919050565b60006020820190506122526000830184611fa4565b92915050565b600060408201905061226d6000830185611fa4565b61227a6020830184611fa4565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006122be82612406565b91506122c983612406565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156122fe576122fd61248b565b5b828201905092915050565b600061231482612406565b915061231f83612406565b92508261232f5761232e6124ba565b5b828204905092915050565b600061234582612406565b915061235083612406565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156123895761238861248b565b5b828202905092915050565b600061239f82612406565b91506123aa83612406565b9250828210156123bd576123bc61248b565b5b828203905092915050565b60006123d3826123e6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061241b82612422565b9050919050565b600061242d826123e6565b9050919050565b600061243f82612446565b9050919050565b6000612451826123e6565b9050919050565b60005b8381101561247657808201518184015260208101905061245b565b83811115612485576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f416d6f756e74202b20666565206578636565647320544254432076322062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4368616e6765206e6f7420696e69746961746564000000000000000000000000600082015250565b7f476f7665726e616e63652064656c617920686173206e6f7420656c6170736564600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616c6c6572206973206e6f7420617574686f72697a65640000000000000000600082015250565b7f4e65772056656e64696e674d616368696e652063616e6e6f74206265207a657260008201527f6f20616464726573730000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f546f6b656e206973206e6f742054425443207631000000000000000000000000600082015250565b7f4f6e6c7920544254432076312063616c6c657220616c6c6f7765640000000000600082015250565b6127fc816123c8565b811461280757600080fd5b50565b612813816123da565b811461281e57600080fd5b50565b61282a81612406565b811461283557600080fd5b5056fea264697066735822122004db01c528b9b87ac36e1eb71ee034a1378362503cb3b35617819e9003a4c09064736f6c63430008040033",
515
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063b766bd8a11610097578063ea1a4e6811610071578063ea1a4e6814610428578063f257a1a014610446578063f2fde38b14610462578063fe7294a81461047e576101a9565b8063b766bd8a146103d0578063bb81268c14610400578063c2b4aa751461040a576101a9565b8063a0712d68116100d3578063a0712d681461035c578063ad3b1b4714610378578063b0b5489514610394578063b29b95ce146103b2576101a9565b80638da5cb5b146103045780638f4ffcb11461032257806395de5a411461033e576101a9565b80632d42067d116101665780635bf32f52116101405780635bf32f52146102a65780636386d0b1146102c257806364e779b1146102de578063715018a6146102fa576101a9565b80632d42067d1461024e5780633678252f1461026a57806351b83ebc14610288576101a9565b806305e448fc146101ae5780630bb037df146101cc5780630c05ab39146101ea5780630c505b7a1461020857806320ad25dc14610226578063240b57e814610230575b600080fd5b6101b661049c565b6040516101c3919061223d565b60405180910390f35b6101d46104a2565b6040516101e1919061223d565b60405180910390f35b6101f26104b8565b6040516101ff9190611fca565b60405180910390f35b6102106104de565b60405161021d919061223d565b60405180910390f35b61022e6104e4565b005b6102386105c5565b604051610245919061223d565b60405180910390f35b61026860048036038101906102639190611be6565b6105cb565b005b610272610711565b60405161027f9190612045565b60405180910390f35b610290610735565b60405161029d919061223d565b60405180910390f35b6102c060048036038101906102bb9190611cf4565b610741565b005b6102dc60048036038101906102d79190611be6565b61081d565b005b6102f860048036038101906102f39190611cf4565b6109a3565b005b610302610c1f565b005b61030c610ca7565b6040516103199190611fca565b60405180910390f35b61033c60048036038101906103379190611c4b565b610cd0565b005b610346610dfd565b6040516103539190612060565b60405180910390f35b61037660048036038101906103719190611cf4565b610e21565b005b610392600480360381019061038d9190611c0f565b610e2e565b005b61039c610ef9565b6040516103a9919061223d565b60405180910390f35b6103ba610f00565b6040516103c7919061223d565b60405180910390f35b6103ea60048036038101906103e59190611cf4565b610f06565b6040516103f7919061223d565b60405180910390f35b610408610f30565b005b610412611224565b60405161041f919061223d565b60405180910390f35b61043061123a565b60405161043d9190611fca565b60405180910390f35b610460600480360381019061045b9190611be6565b611260565b005b61047c60048036038101906104779190611be6565b6113a6565b005b61048661149e565b6040516104939190611fca565b60405180910390f35b60065481565b60006104b360065462093a806114c4565b905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6104ec61153f565b73ffffffffffffffffffffffffffffffffffffffff1661050a610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105579061213d565b60405180910390fd5b6003546105708162093a80611547565b7f3fd2a429fdc4324c186eb6c71dc1bf3accae43e10f21367f6d143635dd5ed33c6002546040516105a1919061223d565b60405180910390a16002546001819055506000600281905550600060038190555050565b60025481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461065c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106539061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156106cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c3906121bd565b60405180910390fd5b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b670de0b6b3a764000081565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c99061215d565b60405180910390fd5b7f0ddb39c814329b5da82b52fcacf65e4db6a1f64a0db4755282bee877cb97991a8242604051610803929190612258565b60405180910390a181600281905550426003819055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a59061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561091e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109159061217d565b60405180910390fd5b7f424e3c8894757dd6fd019d0d8065b19c7e49af137aeb89a275ed3d2435025a96824260405161094f92919061201c565b60405180910390a181600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006819055505050565b60006109ae82610f06565b90503373ffffffffffffffffffffffffffffffffffffffff167fe8a2f49c528033a686bb566d35ac82ca6fd93449bdd9f5d5b36c2f1aa68214b383836040516109f8929190612258565b60405180910390a28082610a0c91906122b3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610a659190611fca565b60206040518083038186803b158015610a7d57600080fd5b505afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190611d1d565b1015610af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aed9061209d565b60405180910390fd5b610b433330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc679033846040518363ffffffff1660e01b8152600401610b9e92919061201c565b600060405180830381600087803b158015610bb857600080fd5b505af1158015610bcc573d6000803e3d6000fd5b50505050610c1b33837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b610c2761153f565b73ffffffffffffffffffffffffffffffffffffffff16610c45610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c929061213d565b60405180910390fd5b610ca560006116eb565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d55906121fd565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de39061221d565b60405180910390fd5b610df685856117af565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610e2b33826117af565b50565b610e3661153f565b73ffffffffffffffffffffffffffffffffffffffff16610e54610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea19061213d565b60405180910390fd5b610ef582827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b62093a8081565b60035481565b6000670de0b6b3a764000060015483610f1f919061233a565b610f299190612309565b9050919050565b610f3861153f565b73ffffffffffffffffffffffffffffffffffffffff16610f56610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa39061213d565b60405180910390fd5b600654610fbc8162093a80611547565b7f99610bc40a14194a7a819ffeded94200b49e68ba00bc3a3ab89625c0972217ff600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161100d9190611fca565b60405180910390a17f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016110909190611fca565b600060405180830381600087803b1580156110aa57600080fd5b505af11580156110be573d6000803e3d6000fd5b505050506111d7600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111419190611fca565b60206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190611d1d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b6000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060068190555050565b600061123560035462093a806114c4565b905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e89061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611358906121bd565b60405180910390fd5b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6113ae61153f565b73ffffffffffffffffffffffffffffffffffffffff166113cc610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061213d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611492576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611489906120bd565b60405180910390fd5b61149b816116eb565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808311611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff906120fd565b60405180910390fd5b600083426115169190612394565b9050828110611529576000915050611539565b80836115359190612394565b9150505b92915050565b600033905090565b6000821161158a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611581906120fd565b60405180910390fd5b8082426115979190612394565b10156115d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cf9061211d565b60405180910390fd5b5050565b61165f846323b872dd60e01b8585856040516024016115fd93929190611fe5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b50505050565b6116e68363a9059cbb60e01b848460405160240161168492919061201c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe826040516117f5919061223d565b60405180910390a261184a8230837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b81526004016118a592919061201c565b600060405180830381600087803b1580156118bf57600080fd5b505af11580156118d3573d6000803e3d6000fd5b505050505050565b600061193d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119a29092919063ffffffff16565b905060008151111561199d578080602001905181019061195d9190611ccb565b61199c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611993906121dd565b60405180910390fd5b5b505050565b60606119b184846000856119ba565b90509392505050565b6060824710156119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f6906120dd565b60405180910390fd5b611a0885611ace565b611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061219d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611a709190611fb3565b60006040518083038185875af1925050503d8060008114611aad576040519150601f19603f3d011682016040523d82523d6000602084013e611ab2565b606091505b5091509150611ac2828286611ae1565b92505050949350505050565b600080823b905060008111915050919050565b60608315611af157829050611b41565b600083511115611b045782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b38919061207b565b60405180910390fd5b9392505050565b600081359050611b57816127f3565b92915050565b600081519050611b6c8161280a565b92915050565b60008083601f840112611b8457600080fd5b8235905067ffffffffffffffff811115611b9d57600080fd5b602083019150836001820283011115611bb557600080fd5b9250929050565b600081359050611bcb81612821565b92915050565b600081519050611be081612821565b92915050565b600060208284031215611bf857600080fd5b6000611c0684828501611b48565b91505092915050565b60008060408385031215611c2257600080fd5b6000611c3085828601611b48565b9250506020611c4185828601611bbc565b9150509250929050565b600080600080600060808688031215611c6357600080fd5b6000611c7188828901611b48565b9550506020611c8288828901611bbc565b9450506040611c9388828901611b48565b935050606086013567ffffffffffffffff811115611cb057600080fd5b611cbc88828901611b72565b92509250509295509295909350565b600060208284031215611cdd57600080fd5b6000611ceb84828501611b5d565b91505092915050565b600060208284031215611d0657600080fd5b6000611d1484828501611bbc565b91505092915050565b600060208284031215611d2f57600080fd5b6000611d3d84828501611bd1565b91505092915050565b611d4f816123c8565b82525050565b6000611d6082612281565b611d6a8185612297565b9350611d7a818560208601612458565b80840191505092915050565b611d8f81612410565b82525050565b611d9e81612434565b82525050565b6000611daf8261228c565b611db981856122a2565b9350611dc9818560208601612458565b611dd2816124e9565b840191505092915050565b6000611dea6024836122a2565b9150611df5826124fa565b604082019050919050565b6000611e0d6026836122a2565b9150611e1882612549565b604082019050919050565b6000611e306026836122a2565b9150611e3b82612598565b604082019050919050565b6000611e536014836122a2565b9150611e5e826125e7565b602082019050919050565b6000611e766020836122a2565b9150611e8182612610565b602082019050919050565b6000611e996020836122a2565b9150611ea482612639565b602082019050919050565b6000611ebc6018836122a2565b9150611ec782612662565b602082019050919050565b6000611edf6029836122a2565b9150611eea8261268b565b604082019050919050565b6000611f02601d836122a2565b9150611f0d826126da565b602082019050919050565b6000611f256026836122a2565b9150611f3082612703565b604082019050919050565b6000611f48602a836122a2565b9150611f5382612752565b604082019050919050565b6000611f6b6014836122a2565b9150611f76826127a1565b602082019050919050565b6000611f8e601b836122a2565b9150611f99826127ca565b602082019050919050565b611fad81612406565b82525050565b6000611fbf8284611d55565b915081905092915050565b6000602082019050611fdf6000830184611d46565b92915050565b6000606082019050611ffa6000830186611d46565b6120076020830185611d46565b6120146040830184611fa4565b949350505050565b60006040820190506120316000830185611d46565b61203e6020830184611fa4565b9392505050565b600060208201905061205a6000830184611d86565b92915050565b60006020820190506120756000830184611d95565b92915050565b600060208201905081810360008301526120958184611da4565b905092915050565b600060208201905081810360008301526120b681611ddd565b9050919050565b600060208201905081810360008301526120d681611e00565b9050919050565b600060208201905081810360008301526120f681611e23565b9050919050565b6000602082019050818103600083015261211681611e46565b9050919050565b6000602082019050818103600083015261213681611e69565b9050919050565b6000602082019050818103600083015261215681611e8c565b9050919050565b6000602082019050818103600083015261217681611eaf565b9050919050565b6000602082019050818103600083015261219681611ed2565b9050919050565b600060208201905081810360008301526121b681611ef5565b9050919050565b600060208201905081810360008301526121d681611f18565b9050919050565b600060208201905081810360008301526121f681611f3b565b9050919050565b6000602082019050818103600083015261221681611f5e565b9050919050565b6000602082019050818103600083015261223681611f81565b9050919050565b60006020820190506122526000830184611fa4565b92915050565b600060408201905061226d6000830185611fa4565b61227a6020830184611fa4565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006122be82612406565b91506122c983612406565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156122fe576122fd61248b565b5b828201905092915050565b600061231482612406565b915061231f83612406565b92508261232f5761232e6124ba565b5b828204905092915050565b600061234582612406565b915061235083612406565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156123895761238861248b565b5b828202905092915050565b600061239f82612406565b91506123aa83612406565b9250828210156123bd576123bc61248b565b5b828203905092915050565b60006123d3826123e6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061241b82612422565b9050919050565b600061242d826123e6565b9050919050565b600061243f82612446565b9050919050565b6000612451826123e6565b9050919050565b60005b8381101561247657808201518184015260208101905061245b565b83811115612485576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f416d6f756e74202b20666565206578636565647320544254432076322062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4368616e6765206e6f7420696e69746961746564000000000000000000000000600082015250565b7f476f7665726e616e63652064656c617920686173206e6f7420656c6170736564600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616c6c6572206973206e6f7420617574686f72697a65640000000000000000600082015250565b7f4e65772056656e64696e674d616368696e652063616e6e6f74206265207a657260008201527f6f20616464726573730000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f546f6b656e206973206e6f742054425443207631000000000000000000000000600082015250565b7f4f6e6c7920544254432076312063616c6c657220616c6c6f7765640000000000600082015250565b6127fc816123c8565b811461280757600080fd5b50565b612813816123da565b811461281e57600080fd5b50565b61282a81612406565b811461283557600080fd5b5056fea264697066735822122004db01c528b9b87ac36e1eb71ee034a1378362503cb3b35617819e9003a4c09064736f6c63430008040033",
514
+ "bytecode": "0x60c06040523480156200001157600080fd5b5060405162002c6038038062002c60833981810160405281019062000037919062000268565b620000576200004b6200015760201b60201c565b6200015f60201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508060018190555033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000372565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620002348162000324565b92915050565b6000815190506200024b816200033e565b92915050565b600081519050620002628162000358565b92915050565b6000806000606084860312156200027e57600080fd5b60006200028e8682870162000223565b9350506020620002a1868287016200023a565b9250506040620002b48682870162000251565b9150509250925092565b6000620002cb82620002fa565b9050919050565b6000620002df82620002be565b9050919050565b6000620002f382620002be565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6200032f81620002d2565b81146200033b57600080fd5b50565b6200034981620002e6565b81146200035557600080fd5b50565b62000363816200031a565b81146200036f57600080fd5b50565b60805160601c60a05160601c61286e620003f260003960008181610a0e01528181610afe01528181610b4501528181610dff01528181610eb101528181611017015261184c01526000818161071301528181610bd701528181610cd201528181610d60015281816110ea015281816111930152611805015261286e6000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063b766bd8a11610097578063ea1a4e6811610071578063ea1a4e6814610428578063f257a1a014610446578063f2fde38b14610462578063fe7294a81461047e576101a9565b8063b766bd8a146103d0578063bb81268c14610400578063c2b4aa751461040a576101a9565b8063a0712d68116100d3578063a0712d681461035c578063ad3b1b4714610378578063b0b5489514610394578063b29b95ce146103b2576101a9565b80638da5cb5b146103045780638f4ffcb11461032257806395de5a411461033e576101a9565b80632d42067d116101665780635bf32f52116101405780635bf32f52146102a65780636386d0b1146102c257806364e779b1146102de578063715018a6146102fa576101a9565b80632d42067d1461024e5780633678252f1461026a57806351b83ebc14610288576101a9565b806305e448fc146101ae5780630bb037df146101cc5780630c05ab39146101ea5780630c505b7a1461020857806320ad25dc14610226578063240b57e814610230575b600080fd5b6101b661049c565b6040516101c3919061223d565b60405180910390f35b6101d46104a2565b6040516101e1919061223d565b60405180910390f35b6101f26104b8565b6040516101ff9190611fca565b60405180910390f35b6102106104de565b60405161021d919061223d565b60405180910390f35b61022e6104e4565b005b6102386105c5565b604051610245919061223d565b60405180910390f35b61026860048036038101906102639190611be6565b6105cb565b005b610272610711565b60405161027f9190612045565b60405180910390f35b610290610735565b60405161029d919061223d565b60405180910390f35b6102c060048036038101906102bb9190611cf4565b610741565b005b6102dc60048036038101906102d79190611be6565b61081d565b005b6102f860048036038101906102f39190611cf4565b6109a3565b005b610302610c1f565b005b61030c610ca7565b6040516103199190611fca565b60405180910390f35b61033c60048036038101906103379190611c4b565b610cd0565b005b610346610dfd565b6040516103539190612060565b60405180910390f35b61037660048036038101906103719190611cf4565b610e21565b005b610392600480360381019061038d9190611c0f565b610e2e565b005b61039c610ef9565b6040516103a9919061223d565b60405180910390f35b6103ba610f00565b6040516103c7919061223d565b60405180910390f35b6103ea60048036038101906103e59190611cf4565b610f06565b6040516103f7919061223d565b60405180910390f35b610408610f30565b005b610412611224565b60405161041f919061223d565b60405180910390f35b61043061123a565b60405161043d9190611fca565b60405180910390f35b610460600480360381019061045b9190611be6565b611260565b005b61047c60048036038101906104779190611be6565b6113a6565b005b61048661149e565b6040516104939190611fca565b60405180910390f35b60065481565b60006104b360065462093a806114c4565b905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6104ec61153f565b73ffffffffffffffffffffffffffffffffffffffff1661050a610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105579061213d565b60405180910390fd5b6003546105708162093a80611547565b7f3fd2a429fdc4324c186eb6c71dc1bf3accae43e10f21367f6d143635dd5ed33c6002546040516105a1919061223d565b60405180910390a16002546001819055506000600281905550600060038190555050565b60025481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461065c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106539061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156106cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c3906121bd565b60405180910390fd5b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b670de0b6b3a764000081565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c99061215d565b60405180910390fd5b7f0ddb39c814329b5da82b52fcacf65e4db6a1f64a0db4755282bee877cb97991a8242604051610803929190612258565b60405180910390a181600281905550426003819055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a59061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561091e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109159061217d565b60405180910390fd5b7f424e3c8894757dd6fd019d0d8065b19c7e49af137aeb89a275ed3d2435025a96824260405161094f92919061201c565b60405180910390a181600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006819055505050565b60006109ae82610f06565b90503373ffffffffffffffffffffffffffffffffffffffff167fe8a2f49c528033a686bb566d35ac82ca6fd93449bdd9f5d5b36c2f1aa68214b383836040516109f8929190612258565b60405180910390a28082610a0c91906122b3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610a659190611fca565b60206040518083038186803b158015610a7d57600080fd5b505afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190611d1d565b1015610af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aed9061209d565b60405180910390fd5b610b433330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc679033846040518363ffffffff1660e01b8152600401610b9e92919061201c565b600060405180830381600087803b158015610bb857600080fd5b505af1158015610bcc573d6000803e3d6000fd5b50505050610c1b33837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b610c2761153f565b73ffffffffffffffffffffffffffffffffffffffff16610c45610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c929061213d565b60405180910390fd5b610ca560006116eb565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d55906121fd565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de39061221d565b60405180910390fd5b610df685856117af565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610e2b33826117af565b50565b610e3661153f565b73ffffffffffffffffffffffffffffffffffffffff16610e54610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea19061213d565b60405180910390fd5b610ef582827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b62093a8081565b60035481565b6000670de0b6b3a764000060015483610f1f919061233a565b610f299190612309565b9050919050565b610f3861153f565b73ffffffffffffffffffffffffffffffffffffffff16610f56610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa39061213d565b60405180910390fd5b600654610fbc8162093a80611547565b7f99610bc40a14194a7a819ffeded94200b49e68ba00bc3a3ab89625c0972217ff600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161100d9190611fca565b60405180910390a17f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016110909190611fca565b600060405180830381600087803b1580156110aa57600080fd5b505af11580156110be573d6000803e3d6000fd5b505050506111d7600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111419190611fca565b60206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190611d1d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b6000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060068190555050565b600061123560035462093a806114c4565b905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e89061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611358906121bd565b60405180910390fd5b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6113ae61153f565b73ffffffffffffffffffffffffffffffffffffffff166113cc610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061213d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611492576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611489906120bd565b60405180910390fd5b61149b816116eb565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808311611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff906120fd565b60405180910390fd5b600083426115169190612394565b9050828110611529576000915050611539565b80836115359190612394565b9150505b92915050565b600033905090565b6000821161158a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611581906120fd565b60405180910390fd5b8082426115979190612394565b10156115d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cf9061211d565b60405180910390fd5b5050565b61165f846323b872dd60e01b8585856040516024016115fd93929190611fe5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b50505050565b6116e68363a9059cbb60e01b848460405160240161168492919061201c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe826040516117f5919061223d565b60405180910390a261184a8230837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b81526004016118a592919061201c565b600060405180830381600087803b1580156118bf57600080fd5b505af11580156118d3573d6000803e3d6000fd5b505050505050565b600061193d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119a29092919063ffffffff16565b905060008151111561199d578080602001905181019061195d9190611ccb565b61199c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611993906121dd565b60405180910390fd5b5b505050565b60606119b184846000856119ba565b90509392505050565b6060824710156119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f6906120dd565b60405180910390fd5b611a0885611ace565b611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061219d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611a709190611fb3565b60006040518083038185875af1925050503d8060008114611aad576040519150601f19603f3d011682016040523d82523d6000602084013e611ab2565b606091505b5091509150611ac2828286611ae1565b92505050949350505050565b600080823b905060008111915050919050565b60608315611af157829050611b41565b600083511115611b045782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b38919061207b565b60405180910390fd5b9392505050565b600081359050611b57816127f3565b92915050565b600081519050611b6c8161280a565b92915050565b60008083601f840112611b8457600080fd5b8235905067ffffffffffffffff811115611b9d57600080fd5b602083019150836001820283011115611bb557600080fd5b9250929050565b600081359050611bcb81612821565b92915050565b600081519050611be081612821565b92915050565b600060208284031215611bf857600080fd5b6000611c0684828501611b48565b91505092915050565b60008060408385031215611c2257600080fd5b6000611c3085828601611b48565b9250506020611c4185828601611bbc565b9150509250929050565b600080600080600060808688031215611c6357600080fd5b6000611c7188828901611b48565b9550506020611c8288828901611bbc565b9450506040611c9388828901611b48565b935050606086013567ffffffffffffffff811115611cb057600080fd5b611cbc88828901611b72565b92509250509295509295909350565b600060208284031215611cdd57600080fd5b6000611ceb84828501611b5d565b91505092915050565b600060208284031215611d0657600080fd5b6000611d1484828501611bbc565b91505092915050565b600060208284031215611d2f57600080fd5b6000611d3d84828501611bd1565b91505092915050565b611d4f816123c8565b82525050565b6000611d6082612281565b611d6a8185612297565b9350611d7a818560208601612458565b80840191505092915050565b611d8f81612410565b82525050565b611d9e81612434565b82525050565b6000611daf8261228c565b611db981856122a2565b9350611dc9818560208601612458565b611dd2816124e9565b840191505092915050565b6000611dea6024836122a2565b9150611df5826124fa565b604082019050919050565b6000611e0d6026836122a2565b9150611e1882612549565b604082019050919050565b6000611e306026836122a2565b9150611e3b82612598565b604082019050919050565b6000611e536014836122a2565b9150611e5e826125e7565b602082019050919050565b6000611e766020836122a2565b9150611e8182612610565b602082019050919050565b6000611e996020836122a2565b9150611ea482612639565b602082019050919050565b6000611ebc6018836122a2565b9150611ec782612662565b602082019050919050565b6000611edf6029836122a2565b9150611eea8261268b565b604082019050919050565b6000611f02601d836122a2565b9150611f0d826126da565b602082019050919050565b6000611f256026836122a2565b9150611f3082612703565b604082019050919050565b6000611f48602a836122a2565b9150611f5382612752565b604082019050919050565b6000611f6b6014836122a2565b9150611f76826127a1565b602082019050919050565b6000611f8e601b836122a2565b9150611f99826127ca565b602082019050919050565b611fad81612406565b82525050565b6000611fbf8284611d55565b915081905092915050565b6000602082019050611fdf6000830184611d46565b92915050565b6000606082019050611ffa6000830186611d46565b6120076020830185611d46565b6120146040830184611fa4565b949350505050565b60006040820190506120316000830185611d46565b61203e6020830184611fa4565b9392505050565b600060208201905061205a6000830184611d86565b92915050565b60006020820190506120756000830184611d95565b92915050565b600060208201905081810360008301526120958184611da4565b905092915050565b600060208201905081810360008301526120b681611ddd565b9050919050565b600060208201905081810360008301526120d681611e00565b9050919050565b600060208201905081810360008301526120f681611e23565b9050919050565b6000602082019050818103600083015261211681611e46565b9050919050565b6000602082019050818103600083015261213681611e69565b9050919050565b6000602082019050818103600083015261215681611e8c565b9050919050565b6000602082019050818103600083015261217681611eaf565b9050919050565b6000602082019050818103600083015261219681611ed2565b9050919050565b600060208201905081810360008301526121b681611ef5565b9050919050565b600060208201905081810360008301526121d681611f18565b9050919050565b600060208201905081810360008301526121f681611f3b565b9050919050565b6000602082019050818103600083015261221681611f5e565b9050919050565b6000602082019050818103600083015261223681611f81565b9050919050565b60006020820190506122526000830184611fa4565b92915050565b600060408201905061226d6000830185611fa4565b61227a6020830184611fa4565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006122be82612406565b91506122c983612406565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156122fe576122fd61248b565b5b828201905092915050565b600061231482612406565b915061231f83612406565b92508261232f5761232e6124ba565b5b828204905092915050565b600061234582612406565b915061235083612406565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156123895761238861248b565b5b828202905092915050565b600061239f82612406565b91506123aa83612406565b9250828210156123bd576123bc61248b565b5b828203905092915050565b60006123d3826123e6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061241b82612422565b9050919050565b600061242d826123e6565b9050919050565b600061243f82612446565b9050919050565b6000612451826123e6565b9050919050565b60005b8381101561247657808201518184015260208101905061245b565b83811115612485576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f416d6f756e74202b20666565206578636565647320544254432076322062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4368616e6765206e6f7420696e69746961746564000000000000000000000000600082015250565b7f476f7665726e616e63652064656c617920686173206e6f7420656c6170736564600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616c6c6572206973206e6f7420617574686f72697a65640000000000000000600082015250565b7f4e65772056656e64696e674d616368696e652063616e6e6f74206265207a657260008201527f6f20616464726573730000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f546f6b656e206973206e6f742054425443207631000000000000000000000000600082015250565b7f4f6e6c7920544254432076312063616c6c657220616c6c6f7765640000000000600082015250565b6127fc816123c8565b811461280757600080fd5b50565b612813816123da565b811461281e57600080fd5b50565b61282a81612406565b811461283557600080fd5b5056fea264697066735822122034eee8d56c8381375d553d84b2ec211b9d4cc8c3ac4c8cfd798b9dd5d622e13f64736f6c63430008040033",
515
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063b766bd8a11610097578063ea1a4e6811610071578063ea1a4e6814610428578063f257a1a014610446578063f2fde38b14610462578063fe7294a81461047e576101a9565b8063b766bd8a146103d0578063bb81268c14610400578063c2b4aa751461040a576101a9565b8063a0712d68116100d3578063a0712d681461035c578063ad3b1b4714610378578063b0b5489514610394578063b29b95ce146103b2576101a9565b80638da5cb5b146103045780638f4ffcb11461032257806395de5a411461033e576101a9565b80632d42067d116101665780635bf32f52116101405780635bf32f52146102a65780636386d0b1146102c257806364e779b1146102de578063715018a6146102fa576101a9565b80632d42067d1461024e5780633678252f1461026a57806351b83ebc14610288576101a9565b806305e448fc146101ae5780630bb037df146101cc5780630c05ab39146101ea5780630c505b7a1461020857806320ad25dc14610226578063240b57e814610230575b600080fd5b6101b661049c565b6040516101c3919061223d565b60405180910390f35b6101d46104a2565b6040516101e1919061223d565b60405180910390f35b6101f26104b8565b6040516101ff9190611fca565b60405180910390f35b6102106104de565b60405161021d919061223d565b60405180910390f35b61022e6104e4565b005b6102386105c5565b604051610245919061223d565b60405180910390f35b61026860048036038101906102639190611be6565b6105cb565b005b610272610711565b60405161027f9190612045565b60405180910390f35b610290610735565b60405161029d919061223d565b60405180910390f35b6102c060048036038101906102bb9190611cf4565b610741565b005b6102dc60048036038101906102d79190611be6565b61081d565b005b6102f860048036038101906102f39190611cf4565b6109a3565b005b610302610c1f565b005b61030c610ca7565b6040516103199190611fca565b60405180910390f35b61033c60048036038101906103379190611c4b565b610cd0565b005b610346610dfd565b6040516103539190612060565b60405180910390f35b61037660048036038101906103719190611cf4565b610e21565b005b610392600480360381019061038d9190611c0f565b610e2e565b005b61039c610ef9565b6040516103a9919061223d565b60405180910390f35b6103ba610f00565b6040516103c7919061223d565b60405180910390f35b6103ea60048036038101906103e59190611cf4565b610f06565b6040516103f7919061223d565b60405180910390f35b610408610f30565b005b610412611224565b60405161041f919061223d565b60405180910390f35b61043061123a565b60405161043d9190611fca565b60405180910390f35b610460600480360381019061045b9190611be6565b611260565b005b61047c60048036038101906104779190611be6565b6113a6565b005b61048661149e565b6040516104939190611fca565b60405180910390f35b60065481565b60006104b360065462093a806114c4565b905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6104ec61153f565b73ffffffffffffffffffffffffffffffffffffffff1661050a610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105579061213d565b60405180910390fd5b6003546105708162093a80611547565b7f3fd2a429fdc4324c186eb6c71dc1bf3accae43e10f21367f6d143635dd5ed33c6002546040516105a1919061223d565b60405180910390a16002546001819055506000600281905550600060038190555050565b60025481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461065c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106539061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156106cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c3906121bd565b60405180910390fd5b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b670de0b6b3a764000081565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c99061215d565b60405180910390fd5b7f0ddb39c814329b5da82b52fcacf65e4db6a1f64a0db4755282bee877cb97991a8242604051610803929190612258565b60405180910390a181600281905550426003819055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a59061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561091e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109159061217d565b60405180910390fd5b7f424e3c8894757dd6fd019d0d8065b19c7e49af137aeb89a275ed3d2435025a96824260405161094f92919061201c565b60405180910390a181600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006819055505050565b60006109ae82610f06565b90503373ffffffffffffffffffffffffffffffffffffffff167fe8a2f49c528033a686bb566d35ac82ca6fd93449bdd9f5d5b36c2f1aa68214b383836040516109f8929190612258565b60405180910390a28082610a0c91906122b3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610a659190611fca565b60206040518083038186803b158015610a7d57600080fd5b505afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190611d1d565b1015610af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aed9061209d565b60405180910390fd5b610b433330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc679033846040518363ffffffff1660e01b8152600401610b9e92919061201c565b600060405180830381600087803b158015610bb857600080fd5b505af1158015610bcc573d6000803e3d6000fd5b50505050610c1b33837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b610c2761153f565b73ffffffffffffffffffffffffffffffffffffffff16610c45610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c929061213d565b60405180910390fd5b610ca560006116eb565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d55906121fd565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de39061221d565b60405180910390fd5b610df685856117af565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610e2b33826117af565b50565b610e3661153f565b73ffffffffffffffffffffffffffffffffffffffff16610e54610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea19061213d565b60405180910390fd5b610ef582827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b5050565b62093a8081565b60035481565b6000670de0b6b3a764000060015483610f1f919061233a565b610f299190612309565b9050919050565b610f3861153f565b73ffffffffffffffffffffffffffffffffffffffff16610f56610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa39061213d565b60405180910390fd5b600654610fbc8162093a80611547565b7f99610bc40a14194a7a819ffeded94200b49e68ba00bc3a3ab89625c0972217ff600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161100d9190611fca565b60405180910390a17f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016110909190611fca565b600060405180830381600087803b1580156110aa57600080fd5b505af11580156110be573d6000803e3d6000fd5b505050506111d7600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111419190611fca565b60206040518083038186803b15801561115957600080fd5b505afa15801561116d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111919190611d1d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116659092919063ffffffff16565b6000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060068190555050565b600061123560035462093a806114c4565b905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e89061215d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611358906121bd565b60405180910390fd5b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6113ae61153f565b73ffffffffffffffffffffffffffffffffffffffff166113cc610ca7565b73ffffffffffffffffffffffffffffffffffffffff1614611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061213d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611492576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611489906120bd565b60405180910390fd5b61149b816116eb565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808311611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff906120fd565b60405180910390fd5b600083426115169190612394565b9050828110611529576000915050611539565b80836115359190612394565b9150505b92915050565b600033905090565b6000821161158a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611581906120fd565b60405180910390fd5b8082426115979190612394565b10156115d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cf9061211d565b60405180910390fd5b5050565b61165f846323b872dd60e01b8585856040516024016115fd93929190611fe5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b50505050565b6116e68363a9059cbb60e01b848460405160240161168492919061201c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118db565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe826040516117f5919061223d565b60405180910390a261184a8230837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115dc909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b81526004016118a592919061201c565b600060405180830381600087803b1580156118bf57600080fd5b505af11580156118d3573d6000803e3d6000fd5b505050505050565b600061193d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119a29092919063ffffffff16565b905060008151111561199d578080602001905181019061195d9190611ccb565b61199c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611993906121dd565b60405180910390fd5b5b505050565b60606119b184846000856119ba565b90509392505050565b6060824710156119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f6906120dd565b60405180910390fd5b611a0885611ace565b611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061219d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611a709190611fb3565b60006040518083038185875af1925050503d8060008114611aad576040519150601f19603f3d011682016040523d82523d6000602084013e611ab2565b606091505b5091509150611ac2828286611ae1565b92505050949350505050565b600080823b905060008111915050919050565b60608315611af157829050611b41565b600083511115611b045782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b38919061207b565b60405180910390fd5b9392505050565b600081359050611b57816127f3565b92915050565b600081519050611b6c8161280a565b92915050565b60008083601f840112611b8457600080fd5b8235905067ffffffffffffffff811115611b9d57600080fd5b602083019150836001820283011115611bb557600080fd5b9250929050565b600081359050611bcb81612821565b92915050565b600081519050611be081612821565b92915050565b600060208284031215611bf857600080fd5b6000611c0684828501611b48565b91505092915050565b60008060408385031215611c2257600080fd5b6000611c3085828601611b48565b9250506020611c4185828601611bbc565b9150509250929050565b600080600080600060808688031215611c6357600080fd5b6000611c7188828901611b48565b9550506020611c8288828901611bbc565b9450506040611c9388828901611b48565b935050606086013567ffffffffffffffff811115611cb057600080fd5b611cbc88828901611b72565b92509250509295509295909350565b600060208284031215611cdd57600080fd5b6000611ceb84828501611b5d565b91505092915050565b600060208284031215611d0657600080fd5b6000611d1484828501611bbc565b91505092915050565b600060208284031215611d2f57600080fd5b6000611d3d84828501611bd1565b91505092915050565b611d4f816123c8565b82525050565b6000611d6082612281565b611d6a8185612297565b9350611d7a818560208601612458565b80840191505092915050565b611d8f81612410565b82525050565b611d9e81612434565b82525050565b6000611daf8261228c565b611db981856122a2565b9350611dc9818560208601612458565b611dd2816124e9565b840191505092915050565b6000611dea6024836122a2565b9150611df5826124fa565b604082019050919050565b6000611e0d6026836122a2565b9150611e1882612549565b604082019050919050565b6000611e306026836122a2565b9150611e3b82612598565b604082019050919050565b6000611e536014836122a2565b9150611e5e826125e7565b602082019050919050565b6000611e766020836122a2565b9150611e8182612610565b602082019050919050565b6000611e996020836122a2565b9150611ea482612639565b602082019050919050565b6000611ebc6018836122a2565b9150611ec782612662565b602082019050919050565b6000611edf6029836122a2565b9150611eea8261268b565b604082019050919050565b6000611f02601d836122a2565b9150611f0d826126da565b602082019050919050565b6000611f256026836122a2565b9150611f3082612703565b604082019050919050565b6000611f48602a836122a2565b9150611f5382612752565b604082019050919050565b6000611f6b6014836122a2565b9150611f76826127a1565b602082019050919050565b6000611f8e601b836122a2565b9150611f99826127ca565b602082019050919050565b611fad81612406565b82525050565b6000611fbf8284611d55565b915081905092915050565b6000602082019050611fdf6000830184611d46565b92915050565b6000606082019050611ffa6000830186611d46565b6120076020830185611d46565b6120146040830184611fa4565b949350505050565b60006040820190506120316000830185611d46565b61203e6020830184611fa4565b9392505050565b600060208201905061205a6000830184611d86565b92915050565b60006020820190506120756000830184611d95565b92915050565b600060208201905081810360008301526120958184611da4565b905092915050565b600060208201905081810360008301526120b681611ddd565b9050919050565b600060208201905081810360008301526120d681611e00565b9050919050565b600060208201905081810360008301526120f681611e23565b9050919050565b6000602082019050818103600083015261211681611e46565b9050919050565b6000602082019050818103600083015261213681611e69565b9050919050565b6000602082019050818103600083015261215681611e8c565b9050919050565b6000602082019050818103600083015261217681611eaf565b9050919050565b6000602082019050818103600083015261219681611ed2565b9050919050565b600060208201905081810360008301526121b681611ef5565b9050919050565b600060208201905081810360008301526121d681611f18565b9050919050565b600060208201905081810360008301526121f681611f3b565b9050919050565b6000602082019050818103600083015261221681611f5e565b9050919050565b6000602082019050818103600083015261223681611f81565b9050919050565b60006020820190506122526000830184611fa4565b92915050565b600060408201905061226d6000830185611fa4565b61227a6020830184611fa4565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006122be82612406565b91506122c983612406565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156122fe576122fd61248b565b5b828201905092915050565b600061231482612406565b915061231f83612406565b92508261232f5761232e6124ba565b5b828204905092915050565b600061234582612406565b915061235083612406565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156123895761238861248b565b5b828202905092915050565b600061239f82612406565b91506123aa83612406565b9250828210156123bd576123bc61248b565b5b828203905092915050565b60006123d3826123e6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061241b82612422565b9050919050565b600061242d826123e6565b9050919050565b600061243f82612446565b9050919050565b6000612451826123e6565b9050919050565b60005b8381101561247657808201518184015260208101905061245b565b83811115612485576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f416d6f756e74202b20666565206578636565647320544254432076322062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4368616e6765206e6f7420696e69746961746564000000000000000000000000600082015250565b7f476f7665726e616e63652064656c617920686173206e6f7420656c6170736564600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616c6c6572206973206e6f7420617574686f72697a65640000000000000000600082015250565b7f4e65772056656e64696e674d616368696e652063616e6e6f74206265207a657260008201527f6f20616464726573730000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f546f6b656e206973206e6f742054425443207631000000000000000000000000600082015250565b7f4f6e6c7920544254432076312063616c6c657220616c6c6f7765640000000000600082015250565b6127fc816123c8565b811461280757600080fd5b50565b612813816123da565b811461281e57600080fd5b50565b61282a81612406565b811461283557600080fd5b5056fea264697066735822122034eee8d56c8381375d553d84b2ec211b9d4cc8c3ac4c8cfd798b9dd5d622e13f64736f6c63430008040033",
516
516
  "linkReferences": {},
517
517
  "deployedLinkReferences": {}
518
518
  }