ERC-20
Overview
Max Total Supply
100,000,000 MAD
Holders
78
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,058.249764 MADValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MAD
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title MangaDAO token */ contract MAD is ERC20Votes, Pausable, Ownable { using SafeERC20 for IERC20; // Total supply is $MAD 100 million uint256 public constant MAX_SUPPLY = 100_000_000 ether; // Merkle root node. Can be set by the owner (unless contract is frozen) bytes32 public merkleRoot; // Merkle root will not be updateable once contract is frozen bool public frozen = false; // Updates list when a wallet claims tokens mapping(address => bool) public claimedTokens; event Claimed(address indexed account, uint256 amount); constructor(bytes32 _merkleRoot) ERC20("MangaDAO", "MAD") ERC20Permit("MangaDAO") { _mint(address(this), MAX_SUPPLY); merkleRoot = _merkleRoot; } /** * @notice Retroactive claiming of $MAD * @param totalAmount Amount of $MAD to be claimed. This action can be performed * once per wallet * @param merkleProof Proof of inclusion in the merkle tree. This is a concatenation of * [address, amount]. */ function claim(uint256 totalAmount, bytes32[] calldata merkleProof) external { require( totalAmount > 0 && totalAmount < type(uint120).max, "MAD: totalAmount must be greater than 0 and less than max uint120 value" ); bytes32 node = keccak256(abi.encodePacked(_msgSender(), totalAmount)); require( MerkleProof.verify(merkleProof, merkleRoot, node), "MAD: could not verify merkleProof" ); require( claimedTokens[_msgSender()] == false, "MAD: Already claimed tokens" ); claimedTokens[_msgSender()] = true; IERC20(address(this)).safeTransfer(_msgSender(), totalAmount); emit Claimed(_msgSender(), totalAmount); } /** * @notice Updates merkle tree unless contract is frozen * @param _merkleRoot Root node of the new tree */ function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { require(!frozen, "MAD: Contract is frozen."); merkleRoot = _merkleRoot; } function freeze() external onlyOwner { frozen = true; } /** * @notice Rescue any ether sent to contract */ function withdrawAll() public payable onlyOwner { uint256 balance = address(this).balance; require(balance > 0); _withdraw(owner(), balance); } function _withdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{ value: _amount }(""); require(success, "MAD: Transfer failed."); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Votes.sol) pragma solidity ^0.8.0; import "./draft-ERC20Permit.sol"; import "../../../utils/math/Math.sol"; import "../../../utils/math/SafeCast.sol"; import "../../../utils/cryptography/ECDSA.sol"; /** * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's, * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1. * * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module. * * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting * power can be queried through the public accessors {getVotes} and {getPastVotes}. * * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this * will significantly increase the base gas cost of transfers. * * _Available since v4.2._ */ abstract contract ERC20Votes is ERC20Permit { struct Checkpoint { uint32 fromBlock; uint224 votes; } bytes32 private constant _DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); mapping(address => address) private _delegates; mapping(address => Checkpoint[]) private _checkpoints; Checkpoint[] private _totalSupplyCheckpoints; /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to an account's voting power. */ event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); /** * @dev Get the `pos`-th checkpoint for `account`. */ function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) { return _checkpoints[account][pos]; } /** * @dev Get number of checkpoints for `account`. */ function numCheckpoints(address account) public view virtual returns (uint32) { return SafeCast.toUint32(_checkpoints[account].length); } /** * @dev Get the address `account` is currently delegating to. */ function delegates(address account) public view virtual returns (address) { return _delegates[account]; } /** * @dev Gets the current votes balance for `account` */ function getVotes(address account) public view returns (uint256) { uint256 pos = _checkpoints[account].length; return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes; } /** * @dev Retrieve the number of votes for `account` at the end of `blockNumber`. * * Requirements: * * - `blockNumber` must have been already mined */ function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_checkpoints[account], blockNumber); } /** * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. * It is but NOT the sum of all the delegated votes! * * Requirements: * * - `blockNumber` must have been already mined */ function getPastTotalSupply(uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber); } /** * @dev Lookup a value in a list of (sorted) checkpoints. */ function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) { // We run a binary search to look for the earliest checkpoint taken after `blockNumber`. // // During the loop, the index of the wanted checkpoint remains in the range [low-1, high). // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant. // - If the middle checkpoint is after `blockNumber`, we look in [low, mid) // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high) // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not // out of bounds (in which case we're looking too far in the past and the result is 0). // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out // the same. uint256 high = ckpts.length; uint256 low = 0; while (low < high) { uint256 mid = Math.average(low, high); if (ckpts[mid].fromBlock > blockNumber) { high = mid; } else { low = mid + 1; } } return high == 0 ? 0 : ckpts[high - 1].votes; } /** * @dev Delegate votes from the sender to `delegatee`. */ function delegate(address delegatee) public virtual { _delegate(_msgSender(), delegatee); } /** * @dev Delegates votes from signer to `delegatee` */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public virtual { require(block.timestamp <= expiry, "ERC20Votes: signature expired"); address signer = ECDSA.recover( _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))), v, r, s ); require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce"); _delegate(signer, delegatee); } /** * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1). */ function _maxSupply() internal view virtual returns (uint224) { return type(uint224).max; } /** * @dev Snapshots the totalSupply after it has been increased. */ function _mint(address account, uint256 amount) internal virtual override { super._mint(account, amount); require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes"); _writeCheckpoint(_totalSupplyCheckpoints, _add, amount); } /** * @dev Snapshots the totalSupply after it has been decreased. */ function _burn(address account, uint256 amount) internal virtual override { super._burn(account, amount); _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount); } /** * @dev Move voting power when tokens are transferred. * * Emits a {DelegateVotesChanged} event. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._afterTokenTransfer(from, to, amount); _moveVotingPower(delegates(from), delegates(to), amount); } /** * @dev Change delegation for `delegator` to `delegatee`. * * Emits events {DelegateChanged} and {DelegateVotesChanged}. */ function _delegate(address delegator, address delegatee) internal virtual { address currentDelegate = delegates(delegator); uint256 delegatorBalance = balanceOf(delegator); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveVotingPower(currentDelegate, delegatee, delegatorBalance); } function _moveVotingPower( address src, address dst, uint256 amount ) private { if (src != dst && amount > 0) { if (src != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount); emit DelegateVotesChanged(src, oldWeight, newWeight); } if (dst != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount); emit DelegateVotesChanged(dst, oldWeight, newWeight); } } } function _writeCheckpoint( Checkpoint[] storage ckpts, function(uint256, uint256) view returns (uint256) op, uint256 delta ) private returns (uint256 oldWeight, uint256 newWeight) { uint256 pos = ckpts.length; oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes; newWeight = op(oldWeight, delta); if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) { ckpts[pos - 1].votes = SafeCast.toUint224(newWeight); } else { ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)})); } } function _add(uint256 a, uint256 b) private pure returns (uint256) { return a + b; } function _subtract(uint256 a, uint256 b) private pure returns (uint256) { return a - b; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; import "./draft-IERC20Permit.sol"; import "../ERC20.sol"; import "../../../utils/cryptography/draft-EIP712.sol"; import "../../../utils/cryptography/ECDSA.sol"; import "../../../utils/Counters.sol"; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140908152506000600b60006101000a81548160ff0219169083151502179055503480156200005557600080fd5b50604051620061c2380380620061c283398181016040528101906200007b919062000d65565b6040518060400160405280600881526020017f4d616e676144414f000000000000000000000000000000000000000000000000815250806040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f4d616e676144414f0000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4d4144000000000000000000000000000000000000000000000000000000000081525081600390805190602001906200016c92919062000c9e565b5080600490805190602001906200018592919062000c9e565b50505060008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260e081815250508161010081815250504660a08181525050620001f1818484620002a460201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508061012081815250505050505050506000600960006101000a81548160ff021916908315150217905550620002796200026d620002e060201b60201c565b620002e860201b60201c565b62000296306a52b7d2dcc80cd2e4000000620003ae60201b60201c565b80600a81905550506200127e565b60008383834630604051602001620002c195949392919062000e66565b6040516020818303038152906040528051906020012090509392505050565b600033905090565b6000600960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003c582826200046c60201b62001a7f1760201c565b620003d5620005e560201b60201c565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16620004036200060960201b60201c565b111562000447576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200043e9062000ec3565b60405180910390fd5b6200046660086200061360201b62001bdf17836200062b60201b60201c565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620004df576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004d69062000f29565b60405180910390fd5b620004f360008383620008dc60201b60201c565b806002600082825462000507919062000fa6565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200055e919062000fa6565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620005c5919062000f4b565b60405180910390a3620005e160008383620008e160201b60201c565b5050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b6000600254905090565b6000818362000623919062000fa6565b905092915050565b60008060008580549050905060008114620006a0578560018262000650919062001003565b815481106200066457620006636200111a565b5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16620006a3565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250620006cf83858760201c565b91506000811180156200072857504386600183620006ee919062001003565b815481106200070257620007016200111a565b5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16145b15620007c95762000744826200093160201b62001bf51760201c565b8660018362000754919062001003565b815481106200076857620007676200111a565b5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550620008d3565b856040518060400160405280620007eb436200099f60201b62001c601760201c565b63ffffffff1681526020016200080c856200093160201b62001bf51760201c565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b50935093915050565b505050565b620008f9838383620009f560201b62001cb31760201c565b6200092c6200090e84620009fa60201b60201c565b6200091f84620009fa60201b60201c565b8362000a6360201b60201c565b505050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff801682111562000997576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200098e9062000ee5565b60405180910390fd5b819050919050565b600063ffffffff8016821115620009ed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009e49062000f07565b60405180910390fd5b819050919050565b505050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801562000aa05750600081115b1562000c8157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000b935760008062000b3a600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002062000c8660201b62001cb817856200062b60201b60201c565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405162000b8892919062000f68565b60405180910390a250505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000c805760008062000c27600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206200061360201b62001bdf17856200062b60201b60201c565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405162000c7592919062000f68565b60405180910390a250505b5b505050565b6000818362000c96919062001003565b905092915050565b82805462000cac9062001086565b90600052602060002090601f01602090048101928262000cd0576000855562000d1c565b82601f1062000ceb57805160ff191683800117855562000d1c565b8280016001018555821562000d1c579182015b8281111562000d1b57825182559160200191906001019062000cfe565b5b50905062000d2b919062000d2f565b5090565b5b8082111562000d4a57600081600090555060010162000d30565b5090565b60008151905062000d5f8162001264565b92915050565b60006020828403121562000d7e5762000d7d62001149565b5b600062000d8e8482850162000d4e565b91505092915050565b62000da2816200103e565b82525050565b62000db38162001052565b82525050565b600062000dc860308362000f95565b915062000dd5826200114e565b604082019050919050565b600062000def60278362000f95565b915062000dfc826200119d565b604082019050919050565b600062000e1660268362000f95565b915062000e2382620011ec565b604082019050919050565b600062000e3d601f8362000f95565b915062000e4a826200123b565b602082019050919050565b62000e60816200107c565b82525050565b600060a08201905062000e7d600083018862000da8565b62000e8c602083018762000da8565b62000e9b604083018662000da8565b62000eaa606083018562000e55565b62000eb9608083018462000d97565b9695505050505050565b6000602082019050818103600083015262000ede8162000db9565b9050919050565b6000602082019050818103600083015262000f008162000de0565b9050919050565b6000602082019050818103600083015262000f228162000e07565b9050919050565b6000602082019050818103600083015262000f448162000e2e565b9050919050565b600060208201905062000f62600083018462000e55565b92915050565b600060408201905062000f7f600083018562000e55565b62000f8e602083018462000e55565b9392505050565b600082825260208201905092915050565b600062000fb3826200107c565b915062000fc0836200107c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000ff85762000ff7620010bc565b5b828201905092915050565b600062001010826200107c565b91506200101d836200107c565b925082821015620010335762001032620010bc565b5b828203905092915050565b60006200104b826200105c565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060028204905060018216806200109f57607f821691505b60208210811415620010b657620010b5620010eb565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b7f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60008201527f766572666c6f77696e6720766f74657300000000000000000000000000000000602082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203260008201527f3234206269747300000000000000000000000000000000000000000000000000602082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203360008201527f3220626974730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6200126f8162001052565b81146200127b57600080fd5b50565b60805160a05160c05160601c60e051610100516101205161014051614ee6620012dc60003960006116f50152600061226d015260006122af0152600061228e015260006121c301526000612219015260006122420152614ee66000f3fe6080604052600436106101f95760003560e01c806370a082311161010d5780639ab24eb0116100a0578063c3cda5201161006f578063c3cda52014610778578063d505accf146107a1578063dd62ed3e146107ca578063f1127ed814610807578063f2fde38b14610844576101f9565b80639ab24eb014610684578063a457c2d7146106c1578063a9059cbb146106fe578063a960c65f1461073b576101f9565b8063853828b6116100dc578063853828b6146105e75780638da5cb5b146105f15780638e539e8c1461061c57806395d89b4114610659576101f9565b806370a082311461052d578063715018a61461056a5780637cb64759146105815780637ecebe00146105aa576101f9565b806332cb6b0c11610190578063587cde1e1161015f578063587cde1e146104485780635c19a95c146104855780635c975abb146104ae57806362a5af3b146104d95780636fcfff45146104f0576101f9565b806332cb6b0c146103785780633644e515146103a357806339509351146103ce5780633a46b1a81461040b576101f9565b806323b872dd116101cc57806323b872dd146102bc5780632eb4a7ab146102f95780632f52ebb714610324578063313ce5671461034d576101f9565b8063054f7d9c146101fe57806306fdde0314610229578063095ea7b31461025457806318160ddd14610291575b600080fd5b34801561020a57600080fd5b5061021361086d565b6040516102209190613d6d565b60405180910390f35b34801561023557600080fd5b5061023e610880565b60405161024b9190613ee1565b60405180910390f35b34801561026057600080fd5b5061027b600480360381019061027691906134e7565b610912565b6040516102889190613d6d565b60405180910390f35b34801561029d57600080fd5b506102a6610930565b6040516102b391906142be565b60405180910390f35b3480156102c857600080fd5b506102e360048036038101906102de91906133f2565b61093a565b6040516102f09190613d6d565b60405180910390f35b34801561030557600080fd5b5061030e610a32565b60405161031b9190613d88565b60405180910390f35b34801561033057600080fd5b5061034b6004803603810190610346919061367b565b610a38565b005b34801561035957600080fd5b50610362610cde565b60405161036f919061431d565b60405180910390f35b34801561038457600080fd5b5061038d610ce7565b60405161039a91906142be565b60405180910390f35b3480156103af57600080fd5b506103b8610cf6565b6040516103c59190613d88565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f091906134e7565b610d05565b6040516104029190613d6d565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d91906134e7565b610db1565b60405161043f91906142be565b60405180910390f35b34801561045457600080fd5b5061046f600480360381019061046a9190613385565b610e45565b60405161047c9190613d29565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a79190613385565b610eae565b005b3480156104ba57600080fd5b506104c3610ec2565b6040516104d09190613d6d565b60405180910390f35b3480156104e557600080fd5b506104ee610ed9565b005b3480156104fc57600080fd5b5061051760048036038101906105129190613385565b610f72565b6040516105249190614302565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613385565b610fc6565b60405161056191906142be565b60405180910390f35b34801561057657600080fd5b5061057f61100e565b005b34801561058d57600080fd5b506105a860048036038101906105a39190613621565b611096565b005b3480156105b657600080fd5b506105d160048036038101906105cc9190613385565b61116c565b6040516105de91906142be565b60405180910390f35b6105ef6111bc565b005b3480156105fd57600080fd5b5061060661125e565b6040516106139190613d29565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e919061364e565b611288565b60405161065091906142be565b60405180910390f35b34801561066557600080fd5b5061066e6112de565b60405161067b9190613ee1565b60405180910390f35b34801561069057600080fd5b506106ab60048036038101906106a69190613385565b611370565b6040516106b891906142be565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e391906134e7565b611481565b6040516106f59190613d6d565b60405180910390f35b34801561070a57600080fd5b50610725600480360381019061072091906134e7565b61156c565b6040516107329190613d6d565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d9190613385565b61158a565b60405161076f9190613d6d565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190613527565b6115aa565b005b3480156107ad57600080fd5b506107c860048036038101906107c39190613445565b6116ae565b005b3480156107d657600080fd5b506107f160048036038101906107ec91906133b2565b6117f0565b6040516107fe91906142be565b60405180910390f35b34801561081357600080fd5b5061082e600480360381019061082991906135b4565b611877565b60405161083b91906142a3565b60405180910390f35b34801561085057600080fd5b5061086b60048036038101906108669190613385565b611987565b005b600b60009054906101000a900460ff1681565b60606003805461088f906144fa565b80601f01602080910402602001604051908101604052809291908181526020018280546108bb906144fa565b80156109085780601f106108dd57610100808354040283529160200191610908565b820191906000526020600020905b8154815290600101906020018083116108eb57829003601f168201915b5050505050905090565b600061092661091f611cce565b8484611cd6565b6001905092915050565b6000600254905090565b6000610947848484611ea1565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610992611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0990614143565b60405180910390fd5b610a2685610a1e611cce565b858403611cd6565b60019150509392505050565b600a5481565b600083118015610a5857506effffffffffffffffffffffffffffff801683105b610a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8e906140a3565b60405180910390fd5b6000610aa1611cce565b84604051602001610ab3929190613c6e565b604051602081830303815290604052805190602001209050610b19838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612122565b610b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4f90614043565b60405180910390fd5b60001515600c6000610b68611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be9906140e3565b60405180910390fd5b6001600c6000610c00611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c83610c5c611cce565b853073ffffffffffffffffffffffffffffffffffffffff166121399092919063ffffffff16565b610c8b611cce565b73ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a85604051610cd091906142be565b60405180910390a250505050565b60006012905090565b6a52b7d2dcc80cd2e400000081565b6000610d006121bf565b905090565b6000610da7610d12611cce565b848460016000610d20611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610da29190614375565b611cd6565b6001905092915050565b6000438210610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90613f43565b60405180910390fd5b610e3d600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020836122d9565b905092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610ebf610eb9611cce565b826123e5565b50565b6000600960009054906101000a900460ff16905090565b610ee1611cce565b73ffffffffffffffffffffffffffffffffffffffff16610eff61125e565b73ffffffffffffffffffffffffffffffffffffffff1614610f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4c90614163565b60405180910390fd5b6001600b60006101000a81548160ff021916908315150217905550565b6000610fbf600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611c60565b9050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611016611cce565b73ffffffffffffffffffffffffffffffffffffffff1661103461125e565b73ffffffffffffffffffffffffffffffffffffffff161461108a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108190614163565b60405180910390fd5b61109460006124ff565b565b61109e611cce565b73ffffffffffffffffffffffffffffffffffffffff166110bc61125e565b73ffffffffffffffffffffffffffffffffffffffff1614611112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110990614163565b60405180910390fd5b600b60009054906101000a900460ff1615611162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115990614223565b60405180910390fd5b80600a8190555050565b60006111b5600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206125c5565b9050919050565b6111c4611cce565b73ffffffffffffffffffffffffffffffffffffffff166111e261125e565b73ffffffffffffffffffffffffffffffffffffffff1614611238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122f90614163565b60405180910390fd5b60004790506000811161124a57600080fd5b61125b61125561125e565b826125d3565b50565b6000600960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60004382106112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390613f43565b60405180910390fd5b6112d76008836122d9565b9050919050565b6060600480546112ed906144fa565b80601f0160208091040260200160405190810160405280929190818152602001828054611319906144fa565b80156113665780601f1061133b57610100808354040283529160200191611366565b820191906000526020600020905b81548152906001019060200180831161134957829003601f168201915b5050505050905090565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090506000811461145857600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060018261140c91906143fc565b8154811061141d5761141c614669565b5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1661145b565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16915050919050565b60008060016000611490611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561154d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154490614263565b60405180910390fd5b611561611558611cce565b85858403611cd6565b600191505092915050565b6000611580611579611cce565b8484611ea1565b6001905092915050565b600c6020528060005260406000206000915054906101000a900460ff1681565b834211156115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490613f63565b60405180910390fd5b600061164f6116477fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf89898960405160200161162c9493929190613e04565b60405160208183030381529060405280519060200120612684565b85858561269e565b905061165a816126c9565b861461169b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169290613fa3565b60405180910390fd5b6116a581886123e5565b50505050505050565b834211156116f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e890614003565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008888886117208c6126c9565b8960405160200161173696959493929190613da3565b604051602081830303815290604052805190602001209050600061175982612684565b905060006117698287878761269e565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146117d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d090614103565b60405180910390fd5b6117e48a8a8a611cd6565b50505050505050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61187f613273565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208263ffffffff16815481106118d6576118d5614669565b5b906000526020600020016040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b61198f611cce565b73ffffffffffffffffffffffffffffffffffffffff166119ad61125e565b73ffffffffffffffffffffffffffffffffffffffff1614611a03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fa90614163565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6a90613fc3565b60405180910390fd5b611a7c816124ff565b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae690614283565b60405180910390fd5b611afb60008383612727565b8060026000828254611b0d9190614375565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b629190614375565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611bc791906142be565b60405180910390a3611bdb6000838361272c565b5050565b60008183611bed9190614375565b905092915050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8016821115611c58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4f90614183565b60405180910390fd5b819050919050565b600063ffffffff8016821115611cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca2906141c3565b60405180910390fd5b819050919050565b505050565b60008183611cc691906143fc565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3d906141e3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad90613fe3565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611e9491906142be565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f08906141a3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7890613f23565b60405180910390fd5b611f8c838383612727565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200990614023565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120a59190614375565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161210991906142be565b60405180910390a361211c84848461272c565b50505050565b60008261212f8584612757565b1490509392505050565b6121ba8363a9059cbb60e01b8484604051602401612158929190613d44565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061280a565b505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561223b57507f000000000000000000000000000000000000000000000000000000000000000046145b15612268577f000000000000000000000000000000000000000000000000000000000000000090506122d6565b6122d37f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006128d1565b90505b90565b6000808380549050905060005b818110156123585760006122fa828461290b565b9050848682815481106123105761230f614669565b5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16111561234257809250612352565b60018161234f9190614375565b91505b506122e6565b600082146123ba578460018361236e91906143fc565b8154811061237f5761237e614669565b5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166123bd565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250505092915050565b60006123f083610e45565b905060006123fd84610fc6565b905082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a46124f9828483612931565b50505050565b6000600960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516125f990613d14565b60006040518083038185875af1925050503d8060008114612636576040519150601f19603f3d011682016040523d82523d6000602084013e61263b565b606091505b505090508061267f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267690614123565b60405180910390fd5b505050565b60006126976126916121bf565b83612b2a565b9050919050565b60008060006126af87878787612b5d565b915091506126bc81612c6a565b8192505050949350505050565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050612716816125c5565b915061272181612e3f565b50919050565b505050565b612737838383611cb3565b61275261274384610e45565b61274c84610e45565b83612931565b505050565b60008082905060005b84518110156127ff57600085828151811061277e5761277d614669565b5b602002602001015190508083116127bf5782816040516020016127a2929190613c9a565b6040516020818303038152906040528051906020012092506127eb565b80836040516020016127d2929190613c9a565b6040516020818303038152906040528051906020012092505b5080806127f79061452c565b915050612760565b508091505092915050565b600061286c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612e559092919063ffffffff16565b90506000815111156128cc578080602001905181019061288c91906135f4565b6128cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c290614243565b60405180910390fd5b5b505050565b600083838346306040516020016128ec959493929190613e49565b6040516020818303038152906040528051906020012090509392505050565b6000600282841861291c91906143cb565b8284166129299190614375565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561296d5750600081115b15612b2557600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a4b576000806129f4600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611cb885612e6d565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612a409291906142d9565b60405180910390a250505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b2457600080612acd600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611bdf85612e6d565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612b199291906142d9565b60405180910390a250505b5b505050565b60008282604051602001612b3f929190613cdd565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612b98576000600391509150612c61565b601b8560ff1614158015612bb05750601c8560ff1614155b15612bc2576000600491509150612c61565b600060018787878760405160008152602001604052604051612be79493929190613e9c565b6020604051602081039080840390855afa158015612c09573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c5857600060019250925050612c61565b80600092509250505b94509492505050565b60006004811115612c7e57612c7d61460b565b5b816004811115612c9157612c9061460b565b5b1415612c9c57612e3c565b60016004811115612cb057612caf61460b565b5b816004811115612cc357612cc261460b565b5b1415612d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfb90613f03565b60405180910390fd5b60026004811115612d1857612d1761460b565b5b816004811115612d2b57612d2a61460b565b5b1415612d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6390613f83565b60405180910390fd5b60036004811115612d8057612d7f61460b565b5b816004811115612d9357612d9261460b565b5b1415612dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcb90614063565b60405180910390fd5b600480811115612de757612de661460b565b5b816004811115612dfa57612df961460b565b5b1415612e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e32906140c3565b60405180910390fd5b5b50565b6001816000016000828254019250508190555050565b6060612e6484846000856130e5565b90509392505050565b60008060008580549050905060008114612edb5785600182612e8f91906143fc565b81548110612ea057612e9f614669565b5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612ede565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250612f0c83858763ffffffff16565b9150600081118015612f5f57504386600183612f2891906143fc565b81548110612f3957612f38614669565b5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16145b15612fec57612f6d82611bf5565b86600183612f7b91906143fc565b81548110612f8c57612f8b614669565b5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506130dc565b85604051806040016040528061300143611c60565b63ffffffff16815260200161301585611bf5565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b50935093915050565b60608247101561312a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312190614083565b60405180910390fd5b613133856131f9565b613172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316990614203565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161319b9190613cc6565b60006040518083038185875af1925050503d80600081146131d8576040519150601f19603f3d011682016040523d82523d6000602084013e6131dd565b606091505b50915091506131ed82828661320c565b92505050949350505050565b600080823b905060008111915050919050565b6060831561321c5782905061326c565b60008351111561322f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132639190613ee1565b60405180910390fd5b9392505050565b6040518060400160405280600063ffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525090565b6000813590506132c081614e26565b92915050565b60008083601f8401126132dc576132db61469d565b5b8235905067ffffffffffffffff8111156132f9576132f8614698565b5b602083019150836020820283011115613315576133146146a2565b5b9250929050565b60008151905061332b81614e3d565b92915050565b60008135905061334081614e54565b92915050565b60008135905061335581614e6b565b92915050565b60008135905061336a81614e82565b92915050565b60008135905061337f81614e99565b92915050565b60006020828403121561339b5761339a6146ac565b5b60006133a9848285016132b1565b91505092915050565b600080604083850312156133c9576133c86146ac565b5b60006133d7858286016132b1565b92505060206133e8858286016132b1565b9150509250929050565b60008060006060848603121561340b5761340a6146ac565b5b6000613419868287016132b1565b935050602061342a868287016132b1565b925050604061343b86828701613346565b9150509250925092565b600080600080600080600060e0888a031215613464576134636146ac565b5b60006134728a828b016132b1565b97505060206134838a828b016132b1565b96505060406134948a828b01613346565b95505060606134a58a828b01613346565b94505060806134b68a828b01613370565b93505060a06134c78a828b01613331565b92505060c06134d88a828b01613331565b91505092959891949750929550565b600080604083850312156134fe576134fd6146ac565b5b600061350c858286016132b1565b925050602061351d85828601613346565b9150509250929050565b60008060008060008060c08789031215613544576135436146ac565b5b600061355289828a016132b1565b965050602061356389828a01613346565b955050604061357489828a01613346565b945050606061358589828a01613370565b935050608061359689828a01613331565b92505060a06135a789828a01613331565b9150509295509295509295565b600080604083850312156135cb576135ca6146ac565b5b60006135d9858286016132b1565b92505060206135ea8582860161335b565b9150509250929050565b60006020828403121561360a576136096146ac565b5b60006136188482850161331c565b91505092915050565b600060208284031215613637576136366146ac565b5b600061364584828501613331565b91505092915050565b600060208284031215613664576136636146ac565b5b600061367284828501613346565b91505092915050565b600080600060408486031215613694576136936146ac565b5b60006136a286828701613346565b935050602084013567ffffffffffffffff8111156136c3576136c26146a7565b5b6136cf868287016132c6565b92509250509250925092565b6136e481614430565b82525050565b6136fb6136f682614430565b614575565b82525050565b61370a81614442565b82525050565b6137198161444e565b82525050565b61373061372b8261444e565b614587565b82525050565b600061374182614338565b61374b818561434e565b935061375b8185602086016144c7565b80840191505092915050565b600061377282614343565b61377c8185614359565b935061378c8185602086016144c7565b613795816146b1565b840191505092915050565b60006137ad601883614359565b91506137b8826146cf565b602082019050919050565b60006137d0602383614359565b91506137db826146f8565b604082019050919050565b60006137f3601f83614359565b91506137fe82614747565b602082019050919050565b6000613816601d83614359565b915061382182614770565b602082019050919050565b6000613839601f83614359565b915061384482614799565b602082019050919050565b600061385c601983614359565b9150613867826147c2565b602082019050919050565b600061387f602683614359565b915061388a826147eb565b604082019050919050565b60006138a2602283614359565b91506138ad8261483a565b604082019050919050565b60006138c560028361436a565b91506138d082614889565b600282019050919050565b60006138e8601d83614359565b91506138f3826148b2565b602082019050919050565b600061390b602683614359565b9150613916826148db565b604082019050919050565b600061392e602183614359565b91506139398261492a565b604082019050919050565b6000613951602283614359565b915061395c82614979565b604082019050919050565b6000613974602683614359565b915061397f826149c8565b604082019050919050565b6000613997604783614359565b91506139a282614a17565b606082019050919050565b60006139ba602283614359565b91506139c582614a8c565b604082019050919050565b60006139dd601b83614359565b91506139e882614adb565b602082019050919050565b6000613a00601e83614359565b9150613a0b82614b04565b602082019050919050565b6000613a23601583614359565b9150613a2e82614b2d565b602082019050919050565b6000613a46602883614359565b9150613a5182614b56565b604082019050919050565b6000613a69602083614359565b9150613a7482614ba5565b602082019050919050565b6000613a8c602783614359565b9150613a9782614bce565b604082019050919050565b6000613aaf602583614359565b9150613aba82614c1d565b604082019050919050565b6000613ad260008361434e565b9150613add82614c6c565b600082019050919050565b6000613af5602683614359565b9150613b0082614c6f565b604082019050919050565b6000613b18602483614359565b9150613b2382614cbe565b604082019050919050565b6000613b3b601d83614359565b9150613b4682614d0d565b602082019050919050565b6000613b5e601883614359565b9150613b6982614d36565b602082019050919050565b6000613b81602a83614359565b9150613b8c82614d5f565b604082019050919050565b6000613ba4602583614359565b9150613baf82614dae565b604082019050919050565b6000613bc7601f83614359565b9150613bd282614dfd565b602082019050919050565b604082016000820151613bf36000850182613c41565b506020820151613c066020850182613c0c565b50505050565b613c1581614478565b82525050565b613c24816144a0565b82525050565b613c3b613c36826144a0565b6145a3565b82525050565b613c4a816144aa565b82525050565b613c59816144aa565b82525050565b613c68816144ba565b82525050565b6000613c7a82856136ea565b601482019150613c8a8284613c2a565b6020820191508190509392505050565b6000613ca6828561371f565b602082019150613cb6828461371f565b6020820191508190509392505050565b6000613cd28284613736565b915081905092915050565b6000613ce8826138b8565b9150613cf4828561371f565b602082019150613d04828461371f565b6020820191508190509392505050565b6000613d1f82613ac5565b9150819050919050565b6000602082019050613d3e60008301846136db565b92915050565b6000604082019050613d5960008301856136db565b613d666020830184613c1b565b9392505050565b6000602082019050613d826000830184613701565b92915050565b6000602082019050613d9d6000830184613710565b92915050565b600060c082019050613db86000830189613710565b613dc560208301886136db565b613dd260408301876136db565b613ddf6060830186613c1b565b613dec6080830185613c1b565b613df960a0830184613c1b565b979650505050505050565b6000608082019050613e196000830187613710565b613e2660208301866136db565b613e336040830185613c1b565b613e406060830184613c1b565b95945050505050565b600060a082019050613e5e6000830188613710565b613e6b6020830187613710565b613e786040830186613710565b613e856060830185613c1b565b613e9260808301846136db565b9695505050505050565b6000608082019050613eb16000830187613710565b613ebe6020830186613c5f565b613ecb6040830185613710565b613ed86060830184613710565b95945050505050565b60006020820190508181036000830152613efb8184613767565b905092915050565b60006020820190508181036000830152613f1c816137a0565b9050919050565b60006020820190508181036000830152613f3c816137c3565b9050919050565b60006020820190508181036000830152613f5c816137e6565b9050919050565b60006020820190508181036000830152613f7c81613809565b9050919050565b60006020820190508181036000830152613f9c8161382c565b9050919050565b60006020820190508181036000830152613fbc8161384f565b9050919050565b60006020820190508181036000830152613fdc81613872565b9050919050565b60006020820190508181036000830152613ffc81613895565b9050919050565b6000602082019050818103600083015261401c816138db565b9050919050565b6000602082019050818103600083015261403c816138fe565b9050919050565b6000602082019050818103600083015261405c81613921565b9050919050565b6000602082019050818103600083015261407c81613944565b9050919050565b6000602082019050818103600083015261409c81613967565b9050919050565b600060208201905081810360008301526140bc8161398a565b9050919050565b600060208201905081810360008301526140dc816139ad565b9050919050565b600060208201905081810360008301526140fc816139d0565b9050919050565b6000602082019050818103600083015261411c816139f3565b9050919050565b6000602082019050818103600083015261413c81613a16565b9050919050565b6000602082019050818103600083015261415c81613a39565b9050919050565b6000602082019050818103600083015261417c81613a5c565b9050919050565b6000602082019050818103600083015261419c81613a7f565b9050919050565b600060208201905081810360008301526141bc81613aa2565b9050919050565b600060208201905081810360008301526141dc81613ae8565b9050919050565b600060208201905081810360008301526141fc81613b0b565b9050919050565b6000602082019050818103600083015261421c81613b2e565b9050919050565b6000602082019050818103600083015261423c81613b51565b9050919050565b6000602082019050818103600083015261425c81613b74565b9050919050565b6000602082019050818103600083015261427c81613b97565b9050919050565b6000602082019050818103600083015261429c81613bba565b9050919050565b60006040820190506142b86000830184613bdd565b92915050565b60006020820190506142d36000830184613c1b565b92915050565b60006040820190506142ee6000830185613c1b565b6142fb6020830184613c1b565b9392505050565b60006020820190506143176000830184613c50565b92915050565b60006020820190506143326000830184613c5f565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614380826144a0565b915061438b836144a0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143c0576143bf6145ad565b5b828201905092915050565b60006143d6826144a0565b91506143e1836144a0565b9250826143f1576143f06145dc565b5b828204905092915050565b6000614407826144a0565b9150614412836144a0565b925082821015614425576144246145ad565b5b828203905092915050565b600061443b82614458565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60005b838110156144e55780820151818401526020810190506144ca565b838111156144f4576000848401525b50505050565b6000600282049050600182168061451257607f821691505b602082108114156145265761452561463a565b5b50919050565b6000614537826144a0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561456a576145696145ad565b5b600182019050919050565b600061458082614591565b9050919050565b6000819050919050565b600061459c826146c2565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400600082015250565b7f4552433230566f7465733a207369676e61747572652065787069726564000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f45524332305065726d69743a206578706972656420646561646c696e65000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f4d41443a20636f756c64206e6f7420766572696679206d65726b6c6550726f6f60008201527f6600000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d41443a20746f74616c416d6f756e74206d757374206265206772656174657260008201527f207468616e203020616e64206c657373207468616e206d61782075696e74313260208201527f302076616c756500000000000000000000000000000000000000000000000000604082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d41443a20416c726561647920636c61696d656420746f6b656e730000000000600082015250565b7f45524332305065726d69743a20696e76616c6964207369676e61747572650000600082015250565b7f4d41443a205472616e73666572206661696c65642e0000000000000000000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203260008201527f3234206269747300000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b50565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203360008201527f3220626974730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f4d41443a20436f6e74726163742069732066726f7a656e2e0000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b614e2f81614430565b8114614e3a57600080fd5b50565b614e4681614442565b8114614e5157600080fd5b50565b614e5d8161444e565b8114614e6857600080fd5b50565b614e74816144a0565b8114614e7f57600080fd5b50565b614e8b816144aa565b8114614e9657600080fd5b50565b614ea2816144ba565b8114614ead57600080fd5b5056fea264697066735822122025a986b024ec12a7060b8777452418034523f0126d13cfd1fe067b154dc7c65064736f6c6343000806003320a64025aaaa8dccdd366b71fe4870a533ead157527d2f0da03d030d17973798
Deployed Bytecode
0x6080604052600436106101f95760003560e01c806370a082311161010d5780639ab24eb0116100a0578063c3cda5201161006f578063c3cda52014610778578063d505accf146107a1578063dd62ed3e146107ca578063f1127ed814610807578063f2fde38b14610844576101f9565b80639ab24eb014610684578063a457c2d7146106c1578063a9059cbb146106fe578063a960c65f1461073b576101f9565b8063853828b6116100dc578063853828b6146105e75780638da5cb5b146105f15780638e539e8c1461061c57806395d89b4114610659576101f9565b806370a082311461052d578063715018a61461056a5780637cb64759146105815780637ecebe00146105aa576101f9565b806332cb6b0c11610190578063587cde1e1161015f578063587cde1e146104485780635c19a95c146104855780635c975abb146104ae57806362a5af3b146104d95780636fcfff45146104f0576101f9565b806332cb6b0c146103785780633644e515146103a357806339509351146103ce5780633a46b1a81461040b576101f9565b806323b872dd116101cc57806323b872dd146102bc5780632eb4a7ab146102f95780632f52ebb714610324578063313ce5671461034d576101f9565b8063054f7d9c146101fe57806306fdde0314610229578063095ea7b31461025457806318160ddd14610291575b600080fd5b34801561020a57600080fd5b5061021361086d565b6040516102209190613d6d565b60405180910390f35b34801561023557600080fd5b5061023e610880565b60405161024b9190613ee1565b60405180910390f35b34801561026057600080fd5b5061027b600480360381019061027691906134e7565b610912565b6040516102889190613d6d565b60405180910390f35b34801561029d57600080fd5b506102a6610930565b6040516102b391906142be565b60405180910390f35b3480156102c857600080fd5b506102e360048036038101906102de91906133f2565b61093a565b6040516102f09190613d6d565b60405180910390f35b34801561030557600080fd5b5061030e610a32565b60405161031b9190613d88565b60405180910390f35b34801561033057600080fd5b5061034b6004803603810190610346919061367b565b610a38565b005b34801561035957600080fd5b50610362610cde565b60405161036f919061431d565b60405180910390f35b34801561038457600080fd5b5061038d610ce7565b60405161039a91906142be565b60405180910390f35b3480156103af57600080fd5b506103b8610cf6565b6040516103c59190613d88565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f091906134e7565b610d05565b6040516104029190613d6d565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d91906134e7565b610db1565b60405161043f91906142be565b60405180910390f35b34801561045457600080fd5b5061046f600480360381019061046a9190613385565b610e45565b60405161047c9190613d29565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a79190613385565b610eae565b005b3480156104ba57600080fd5b506104c3610ec2565b6040516104d09190613d6d565b60405180910390f35b3480156104e557600080fd5b506104ee610ed9565b005b3480156104fc57600080fd5b5061051760048036038101906105129190613385565b610f72565b6040516105249190614302565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613385565b610fc6565b60405161056191906142be565b60405180910390f35b34801561057657600080fd5b5061057f61100e565b005b34801561058d57600080fd5b506105a860048036038101906105a39190613621565b611096565b005b3480156105b657600080fd5b506105d160048036038101906105cc9190613385565b61116c565b6040516105de91906142be565b60405180910390f35b6105ef6111bc565b005b3480156105fd57600080fd5b5061060661125e565b6040516106139190613d29565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e919061364e565b611288565b60405161065091906142be565b60405180910390f35b34801561066557600080fd5b5061066e6112de565b60405161067b9190613ee1565b60405180910390f35b34801561069057600080fd5b506106ab60048036038101906106a69190613385565b611370565b6040516106b891906142be565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e391906134e7565b611481565b6040516106f59190613d6d565b60405180910390f35b34801561070a57600080fd5b50610725600480360381019061072091906134e7565b61156c565b6040516107329190613d6d565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d9190613385565b61158a565b60405161076f9190613d6d565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190613527565b6115aa565b005b3480156107ad57600080fd5b506107c860048036038101906107c39190613445565b6116ae565b005b3480156107d657600080fd5b506107f160048036038101906107ec91906133b2565b6117f0565b6040516107fe91906142be565b60405180910390f35b34801561081357600080fd5b5061082e600480360381019061082991906135b4565b611877565b60405161083b91906142a3565b60405180910390f35b34801561085057600080fd5b5061086b60048036038101906108669190613385565b611987565b005b600b60009054906101000a900460ff1681565b60606003805461088f906144fa565b80601f01602080910402602001604051908101604052809291908181526020018280546108bb906144fa565b80156109085780601f106108dd57610100808354040283529160200191610908565b820191906000526020600020905b8154815290600101906020018083116108eb57829003601f168201915b5050505050905090565b600061092661091f611cce565b8484611cd6565b6001905092915050565b6000600254905090565b6000610947848484611ea1565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610992611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0990614143565b60405180910390fd5b610a2685610a1e611cce565b858403611cd6565b60019150509392505050565b600a5481565b600083118015610a5857506effffffffffffffffffffffffffffff801683105b610a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8e906140a3565b60405180910390fd5b6000610aa1611cce565b84604051602001610ab3929190613c6e565b604051602081830303815290604052805190602001209050610b19838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612122565b610b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4f90614043565b60405180910390fd5b60001515600c6000610b68611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be9906140e3565b60405180910390fd5b6001600c6000610c00611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c83610c5c611cce565b853073ffffffffffffffffffffffffffffffffffffffff166121399092919063ffffffff16565b610c8b611cce565b73ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a85604051610cd091906142be565b60405180910390a250505050565b60006012905090565b6a52b7d2dcc80cd2e400000081565b6000610d006121bf565b905090565b6000610da7610d12611cce565b848460016000610d20611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610da29190614375565b611cd6565b6001905092915050565b6000438210610df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dec90613f43565b60405180910390fd5b610e3d600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020836122d9565b905092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610ebf610eb9611cce565b826123e5565b50565b6000600960009054906101000a900460ff16905090565b610ee1611cce565b73ffffffffffffffffffffffffffffffffffffffff16610eff61125e565b73ffffffffffffffffffffffffffffffffffffffff1614610f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4c90614163565b60405180910390fd5b6001600b60006101000a81548160ff021916908315150217905550565b6000610fbf600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611c60565b9050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611016611cce565b73ffffffffffffffffffffffffffffffffffffffff1661103461125e565b73ffffffffffffffffffffffffffffffffffffffff161461108a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108190614163565b60405180910390fd5b61109460006124ff565b565b61109e611cce565b73ffffffffffffffffffffffffffffffffffffffff166110bc61125e565b73ffffffffffffffffffffffffffffffffffffffff1614611112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110990614163565b60405180910390fd5b600b60009054906101000a900460ff1615611162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115990614223565b60405180910390fd5b80600a8190555050565b60006111b5600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206125c5565b9050919050565b6111c4611cce565b73ffffffffffffffffffffffffffffffffffffffff166111e261125e565b73ffffffffffffffffffffffffffffffffffffffff1614611238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122f90614163565b60405180910390fd5b60004790506000811161124a57600080fd5b61125b61125561125e565b826125d3565b50565b6000600960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60004382106112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390613f43565b60405180910390fd5b6112d76008836122d9565b9050919050565b6060600480546112ed906144fa565b80601f0160208091040260200160405190810160405280929190818152602001828054611319906144fa565b80156113665780601f1061133b57610100808354040283529160200191611366565b820191906000526020600020905b81548152906001019060200180831161134957829003601f168201915b5050505050905090565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090506000811461145857600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060018261140c91906143fc565b8154811061141d5761141c614669565b5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1661145b565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16915050919050565b60008060016000611490611cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561154d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154490614263565b60405180910390fd5b611561611558611cce565b85858403611cd6565b600191505092915050565b6000611580611579611cce565b8484611ea1565b6001905092915050565b600c6020528060005260406000206000915054906101000a900460ff1681565b834211156115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490613f63565b60405180910390fd5b600061164f6116477fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf89898960405160200161162c9493929190613e04565b60405160208183030381529060405280519060200120612684565b85858561269e565b905061165a816126c9565b861461169b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169290613fa3565b60405180910390fd5b6116a581886123e5565b50505050505050565b834211156116f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e890614003565b60405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886117208c6126c9565b8960405160200161173696959493929190613da3565b604051602081830303815290604052805190602001209050600061175982612684565b905060006117698287878761269e565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146117d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d090614103565b60405180910390fd5b6117e48a8a8a611cd6565b50505050505050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61187f613273565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208263ffffffff16815481106118d6576118d5614669565b5b906000526020600020016040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b61198f611cce565b73ffffffffffffffffffffffffffffffffffffffff166119ad61125e565b73ffffffffffffffffffffffffffffffffffffffff1614611a03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fa90614163565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6a90613fc3565b60405180910390fd5b611a7c816124ff565b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae690614283565b60405180910390fd5b611afb60008383612727565b8060026000828254611b0d9190614375565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b629190614375565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611bc791906142be565b60405180910390a3611bdb6000838361272c565b5050565b60008183611bed9190614375565b905092915050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8016821115611c58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4f90614183565b60405180910390fd5b819050919050565b600063ffffffff8016821115611cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca2906141c3565b60405180910390fd5b819050919050565b505050565b60008183611cc691906143fc565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3d906141e3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad90613fe3565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611e9491906142be565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f08906141a3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7890613f23565b60405180910390fd5b611f8c838383612727565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200990614023565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120a59190614375565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161210991906142be565b60405180910390a361211c84848461272c565b50505050565b60008261212f8584612757565b1490509392505050565b6121ba8363a9059cbb60e01b8484604051602401612158929190613d44565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061280a565b505050565b60007f000000000000000000000000ab7bc1769857f1f3d4d34fe41b7f997be8c64a8273ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561223b57507f000000000000000000000000000000000000000000000000000000000000000146145b15612268577f2e9519b7bc163815b44879987764c87acb079dace2292edbef4226b4c3286ab890506122d6565b6122d37f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fa14b6febd33792e1564338ee192a4fab9914359a6b73d4ce02295308e10ca9fe7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66128d1565b90505b90565b6000808380549050905060005b818110156123585760006122fa828461290b565b9050848682815481106123105761230f614669565b5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16111561234257809250612352565b60018161234f9190614375565b91505b506122e6565b600082146123ba578460018361236e91906143fc565b8154811061237f5761237e614669565b5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166123bd565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250505092915050565b60006123f083610e45565b905060006123fd84610fc6565b905082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a46124f9828483612931565b50505050565b6000600960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516125f990613d14565b60006040518083038185875af1925050503d8060008114612636576040519150601f19603f3d011682016040523d82523d6000602084013e61263b565b606091505b505090508061267f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267690614123565b60405180910390fd5b505050565b60006126976126916121bf565b83612b2a565b9050919050565b60008060006126af87878787612b5d565b915091506126bc81612c6a565b8192505050949350505050565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050612716816125c5565b915061272181612e3f565b50919050565b505050565b612737838383611cb3565b61275261274384610e45565b61274c84610e45565b83612931565b505050565b60008082905060005b84518110156127ff57600085828151811061277e5761277d614669565b5b602002602001015190508083116127bf5782816040516020016127a2929190613c9a565b6040516020818303038152906040528051906020012092506127eb565b80836040516020016127d2929190613c9a565b6040516020818303038152906040528051906020012092505b5080806127f79061452c565b915050612760565b508091505092915050565b600061286c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612e559092919063ffffffff16565b90506000815111156128cc578080602001905181019061288c91906135f4565b6128cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c290614243565b60405180910390fd5b5b505050565b600083838346306040516020016128ec959493929190613e49565b6040516020818303038152906040528051906020012090509392505050565b6000600282841861291c91906143cb565b8284166129299190614375565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561296d5750600081115b15612b2557600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a4b576000806129f4600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611cb885612e6d565b915091508473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612a409291906142d9565b60405180910390a250505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b2457600080612acd600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611bdf85612e6d565b915091508373ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612b199291906142d9565b60405180910390a250505b5b505050565b60008282604051602001612b3f929190613cdd565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612b98576000600391509150612c61565b601b8560ff1614158015612bb05750601c8560ff1614155b15612bc2576000600491509150612c61565b600060018787878760405160008152602001604052604051612be79493929190613e9c565b6020604051602081039080840390855afa158015612c09573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c5857600060019250925050612c61565b80600092509250505b94509492505050565b60006004811115612c7e57612c7d61460b565b5b816004811115612c9157612c9061460b565b5b1415612c9c57612e3c565b60016004811115612cb057612caf61460b565b5b816004811115612cc357612cc261460b565b5b1415612d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfb90613f03565b60405180910390fd5b60026004811115612d1857612d1761460b565b5b816004811115612d2b57612d2a61460b565b5b1415612d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6390613f83565b60405180910390fd5b60036004811115612d8057612d7f61460b565b5b816004811115612d9357612d9261460b565b5b1415612dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcb90614063565b60405180910390fd5b600480811115612de757612de661460b565b5b816004811115612dfa57612df961460b565b5b1415612e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e32906140c3565b60405180910390fd5b5b50565b6001816000016000828254019250508190555050565b6060612e6484846000856130e5565b90509392505050565b60008060008580549050905060008114612edb5785600182612e8f91906143fc565b81548110612ea057612e9f614669565b5b9060005260206000200160000160049054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16612ede565b60005b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169250612f0c83858763ffffffff16565b9150600081118015612f5f57504386600183612f2891906143fc565b81548110612f3957612f38614669565b5b9060005260206000200160000160009054906101000a900463ffffffff1663ffffffff16145b15612fec57612f6d82611bf5565b86600183612f7b91906143fc565b81548110612f8c57612f8b614669565b5b9060005260206000200160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506130dc565b85604051806040016040528061300143611c60565b63ffffffff16815260200161301585611bf5565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16021790555050505b50935093915050565b60608247101561312a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312190614083565b60405180910390fd5b613133856131f9565b613172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316990614203565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161319b9190613cc6565b60006040518083038185875af1925050503d80600081146131d8576040519150601f19603f3d011682016040523d82523d6000602084013e6131dd565b606091505b50915091506131ed82828661320c565b92505050949350505050565b600080823b905060008111915050919050565b6060831561321c5782905061326c565b60008351111561322f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132639190613ee1565b60405180910390fd5b9392505050565b6040518060400160405280600063ffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681525090565b6000813590506132c081614e26565b92915050565b60008083601f8401126132dc576132db61469d565b5b8235905067ffffffffffffffff8111156132f9576132f8614698565b5b602083019150836020820283011115613315576133146146a2565b5b9250929050565b60008151905061332b81614e3d565b92915050565b60008135905061334081614e54565b92915050565b60008135905061335581614e6b565b92915050565b60008135905061336a81614e82565b92915050565b60008135905061337f81614e99565b92915050565b60006020828403121561339b5761339a6146ac565b5b60006133a9848285016132b1565b91505092915050565b600080604083850312156133c9576133c86146ac565b5b60006133d7858286016132b1565b92505060206133e8858286016132b1565b9150509250929050565b60008060006060848603121561340b5761340a6146ac565b5b6000613419868287016132b1565b935050602061342a868287016132b1565b925050604061343b86828701613346565b9150509250925092565b600080600080600080600060e0888a031215613464576134636146ac565b5b60006134728a828b016132b1565b97505060206134838a828b016132b1565b96505060406134948a828b01613346565b95505060606134a58a828b01613346565b94505060806134b68a828b01613370565b93505060a06134c78a828b01613331565b92505060c06134d88a828b01613331565b91505092959891949750929550565b600080604083850312156134fe576134fd6146ac565b5b600061350c858286016132b1565b925050602061351d85828601613346565b9150509250929050565b60008060008060008060c08789031215613544576135436146ac565b5b600061355289828a016132b1565b965050602061356389828a01613346565b955050604061357489828a01613346565b945050606061358589828a01613370565b935050608061359689828a01613331565b92505060a06135a789828a01613331565b9150509295509295509295565b600080604083850312156135cb576135ca6146ac565b5b60006135d9858286016132b1565b92505060206135ea8582860161335b565b9150509250929050565b60006020828403121561360a576136096146ac565b5b60006136188482850161331c565b91505092915050565b600060208284031215613637576136366146ac565b5b600061364584828501613331565b91505092915050565b600060208284031215613664576136636146ac565b5b600061367284828501613346565b91505092915050565b600080600060408486031215613694576136936146ac565b5b60006136a286828701613346565b935050602084013567ffffffffffffffff8111156136c3576136c26146a7565b5b6136cf868287016132c6565b92509250509250925092565b6136e481614430565b82525050565b6136fb6136f682614430565b614575565b82525050565b61370a81614442565b82525050565b6137198161444e565b82525050565b61373061372b8261444e565b614587565b82525050565b600061374182614338565b61374b818561434e565b935061375b8185602086016144c7565b80840191505092915050565b600061377282614343565b61377c8185614359565b935061378c8185602086016144c7565b613795816146b1565b840191505092915050565b60006137ad601883614359565b91506137b8826146cf565b602082019050919050565b60006137d0602383614359565b91506137db826146f8565b604082019050919050565b60006137f3601f83614359565b91506137fe82614747565b602082019050919050565b6000613816601d83614359565b915061382182614770565b602082019050919050565b6000613839601f83614359565b915061384482614799565b602082019050919050565b600061385c601983614359565b9150613867826147c2565b602082019050919050565b600061387f602683614359565b915061388a826147eb565b604082019050919050565b60006138a2602283614359565b91506138ad8261483a565b604082019050919050565b60006138c560028361436a565b91506138d082614889565b600282019050919050565b60006138e8601d83614359565b91506138f3826148b2565b602082019050919050565b600061390b602683614359565b9150613916826148db565b604082019050919050565b600061392e602183614359565b91506139398261492a565b604082019050919050565b6000613951602283614359565b915061395c82614979565b604082019050919050565b6000613974602683614359565b915061397f826149c8565b604082019050919050565b6000613997604783614359565b91506139a282614a17565b606082019050919050565b60006139ba602283614359565b91506139c582614a8c565b604082019050919050565b60006139dd601b83614359565b91506139e882614adb565b602082019050919050565b6000613a00601e83614359565b9150613a0b82614b04565b602082019050919050565b6000613a23601583614359565b9150613a2e82614b2d565b602082019050919050565b6000613a46602883614359565b9150613a5182614b56565b604082019050919050565b6000613a69602083614359565b9150613a7482614ba5565b602082019050919050565b6000613a8c602783614359565b9150613a9782614bce565b604082019050919050565b6000613aaf602583614359565b9150613aba82614c1d565b604082019050919050565b6000613ad260008361434e565b9150613add82614c6c565b600082019050919050565b6000613af5602683614359565b9150613b0082614c6f565b604082019050919050565b6000613b18602483614359565b9150613b2382614cbe565b604082019050919050565b6000613b3b601d83614359565b9150613b4682614d0d565b602082019050919050565b6000613b5e601883614359565b9150613b6982614d36565b602082019050919050565b6000613b81602a83614359565b9150613b8c82614d5f565b604082019050919050565b6000613ba4602583614359565b9150613baf82614dae565b604082019050919050565b6000613bc7601f83614359565b9150613bd282614dfd565b602082019050919050565b604082016000820151613bf36000850182613c41565b506020820151613c066020850182613c0c565b50505050565b613c1581614478565b82525050565b613c24816144a0565b82525050565b613c3b613c36826144a0565b6145a3565b82525050565b613c4a816144aa565b82525050565b613c59816144aa565b82525050565b613c68816144ba565b82525050565b6000613c7a82856136ea565b601482019150613c8a8284613c2a565b6020820191508190509392505050565b6000613ca6828561371f565b602082019150613cb6828461371f565b6020820191508190509392505050565b6000613cd28284613736565b915081905092915050565b6000613ce8826138b8565b9150613cf4828561371f565b602082019150613d04828461371f565b6020820191508190509392505050565b6000613d1f82613ac5565b9150819050919050565b6000602082019050613d3e60008301846136db565b92915050565b6000604082019050613d5960008301856136db565b613d666020830184613c1b565b9392505050565b6000602082019050613d826000830184613701565b92915050565b6000602082019050613d9d6000830184613710565b92915050565b600060c082019050613db86000830189613710565b613dc560208301886136db565b613dd260408301876136db565b613ddf6060830186613c1b565b613dec6080830185613c1b565b613df960a0830184613c1b565b979650505050505050565b6000608082019050613e196000830187613710565b613e2660208301866136db565b613e336040830185613c1b565b613e406060830184613c1b565b95945050505050565b600060a082019050613e5e6000830188613710565b613e6b6020830187613710565b613e786040830186613710565b613e856060830185613c1b565b613e9260808301846136db565b9695505050505050565b6000608082019050613eb16000830187613710565b613ebe6020830186613c5f565b613ecb6040830185613710565b613ed86060830184613710565b95945050505050565b60006020820190508181036000830152613efb8184613767565b905092915050565b60006020820190508181036000830152613f1c816137a0565b9050919050565b60006020820190508181036000830152613f3c816137c3565b9050919050565b60006020820190508181036000830152613f5c816137e6565b9050919050565b60006020820190508181036000830152613f7c81613809565b9050919050565b60006020820190508181036000830152613f9c8161382c565b9050919050565b60006020820190508181036000830152613fbc8161384f565b9050919050565b60006020820190508181036000830152613fdc81613872565b9050919050565b60006020820190508181036000830152613ffc81613895565b9050919050565b6000602082019050818103600083015261401c816138db565b9050919050565b6000602082019050818103600083015261403c816138fe565b9050919050565b6000602082019050818103600083015261405c81613921565b9050919050565b6000602082019050818103600083015261407c81613944565b9050919050565b6000602082019050818103600083015261409c81613967565b9050919050565b600060208201905081810360008301526140bc8161398a565b9050919050565b600060208201905081810360008301526140dc816139ad565b9050919050565b600060208201905081810360008301526140fc816139d0565b9050919050565b6000602082019050818103600083015261411c816139f3565b9050919050565b6000602082019050818103600083015261413c81613a16565b9050919050565b6000602082019050818103600083015261415c81613a39565b9050919050565b6000602082019050818103600083015261417c81613a5c565b9050919050565b6000602082019050818103600083015261419c81613a7f565b9050919050565b600060208201905081810360008301526141bc81613aa2565b9050919050565b600060208201905081810360008301526141dc81613ae8565b9050919050565b600060208201905081810360008301526141fc81613b0b565b9050919050565b6000602082019050818103600083015261421c81613b2e565b9050919050565b6000602082019050818103600083015261423c81613b51565b9050919050565b6000602082019050818103600083015261425c81613b74565b9050919050565b6000602082019050818103600083015261427c81613b97565b9050919050565b6000602082019050818103600083015261429c81613bba565b9050919050565b60006040820190506142b86000830184613bdd565b92915050565b60006020820190506142d36000830184613c1b565b92915050565b60006040820190506142ee6000830185613c1b565b6142fb6020830184613c1b565b9392505050565b60006020820190506143176000830184613c50565b92915050565b60006020820190506143326000830184613c5f565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614380826144a0565b915061438b836144a0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143c0576143bf6145ad565b5b828201905092915050565b60006143d6826144a0565b91506143e1836144a0565b9250826143f1576143f06145dc565b5b828204905092915050565b6000614407826144a0565b9150614412836144a0565b925082821015614425576144246145ad565b5b828203905092915050565b600061443b82614458565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60005b838110156144e55780820151818401526020810190506144ca565b838111156144f4576000848401525b50505050565b6000600282049050600182168061451257607f821691505b602082108114156145265761452561463a565b5b50919050565b6000614537826144a0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561456a576145696145ad565b5b600182019050919050565b600061458082614591565b9050919050565b6000819050919050565b600061459c826146c2565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400600082015250565b7f4552433230566f7465733a207369676e61747572652065787069726564000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f45524332305065726d69743a206578706972656420646561646c696e65000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f4d41443a20636f756c64206e6f7420766572696679206d65726b6c6550726f6f60008201527f6600000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d41443a20746f74616c416d6f756e74206d757374206265206772656174657260008201527f207468616e203020616e64206c657373207468616e206d61782075696e74313260208201527f302076616c756500000000000000000000000000000000000000000000000000604082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d41443a20416c726561647920636c61696d656420746f6b656e730000000000600082015250565b7f45524332305065726d69743a20696e76616c6964207369676e61747572650000600082015250565b7f4d41443a205472616e73666572206661696c65642e0000000000000000000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203260008201527f3234206269747300000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b50565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203360008201527f3220626974730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f4d41443a20436f6e74726163742069732066726f7a656e2e0000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b614e2f81614430565b8114614e3a57600080fd5b50565b614e4681614442565b8114614e5157600080fd5b50565b614e5d8161444e565b8114614e6857600080fd5b50565b614e74816144a0565b8114614e7f57600080fd5b50565b614e8b816144aa565b8114614e9657600080fd5b50565b614ea2816144ba565b8114614ead57600080fd5b5056fea264697066735822122025a986b024ec12a7060b8777452418034523f0126d13cfd1fe067b154dc7c65064736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
20a64025aaaa8dccdd366b71fe4870a533ead157527d2f0da03d030d17973798
-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x20a64025aaaa8dccdd366b71fe4870a533ead157527d2f0da03d030d17973798
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 20a64025aaaa8dccdd366b71fe4870a533ead157527d2f0da03d030d17973798
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.