Token OGSmithyPass
Overview ERC-1155
Total Supply:
8,363 SMITHOGP
Holders:
2,746 addresses
Contract:
Balance
0 SMITHOGP
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OGSmithyPass
Compiler Version
v0.8.7+commit.e28d00a7
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.7; import "./libs/Tiny1155NTT.sol"; import "./libs/Recoverable.sol"; import "./libs/TinyOwnable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; abstract contract Security { modifier onlySender() { require(tx.origin == msg.sender, "The caller is another contract"); _; } } contract OGSmithyPass is Tiny1155NTT, Ownable, Recoverable, Security { address public magicAddress; bool public mintIsActive = false; uint256 public cost; constructor() Tiny1155NTT("OGSmithyPass", "SMITHOGP") {} function mint(uint256 _qty) external onlySender { require(mintIsActive, "Ser Broke is sleeping"); require(cost != 0, "Cost not set"); uint256 _cost = _qty * cost; ERC20(magicAddress).transferFrom(msg.sender, address(this), _cost); _mint(msg.sender, 0, _qty); totalSupply += _qty; } function adminMint(address _target, uint256 _qty) external onlyOwner { _mint(_target, 0, _qty); totalSupply += _qty; } function setMagicAddress(address _magicAddress) external onlyOwner { magicAddress = _magicAddress; } function setCost(uint256 _cost) external onlyOwner { cost = _cost; } function setBaseTokenURI(string memory baseURI) external onlyOwner { _setBaseTokenURI(baseURI); } function toggleSale() public onlyOwner { mintIsActive = !mintIsActive; } function uri(uint256 id) public view returns (string memory) { require(id <= 0, "URI doesn't exist"); return string(abi.encodePacked(baseTokenURI, _toString(id))); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; contract Tiny1155NTT { string public name; string public symbol; string internal baseTokenURI; uint256 public totalSupply; constructor(string memory name_, string memory symbol_) { name = name_; symbol = symbol_; } event TransferSingle( address indexed operator, address indexed from, address indexed to, uint256 id, uint256 amount ); mapping(address => mapping(uint256 => uint256)) public balanceOf; function balanceOfBatch(address[] memory owners, uint256[] memory ids) public view virtual returns (uint256[] memory balances) { uint256 ownersLength = owners.length; // Saves MLOADs. require(ownersLength == ids.length, "LENGTH_MISMATCH"); balances = new uint256[](ownersLength); unchecked { for (uint256 i = 0; i < ownersLength; ++i) { balances[i] = balanceOf[owners[i]][ids[i]]; } } } function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155 interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI } function _mint( address to, uint256 id, uint256 amount ) internal // bytes memory data { balanceOf[to][id] += amount; emit TransferSingle(msg.sender, address(0), to, id, amount); } function _setBaseTokenURI(string memory uri_) internal virtual { baseTokenURI = uri_; } function _toString(uint256 value_) internal pure returns (string memory) { if (value_ == 0) { return "0"; } uint256 _iterate = value_; uint256 _digits; while (_iterate != 0) { _digits++; _iterate /= 10; } // get digits in value_ bytes memory _buffer = new bytes(_digits); while (value_ != 0) { _digits--; _buffer[_digits] = bytes1(uint8(48 + uint256(value_ % 10))); value_ /= 10; } // create bytes of value_ return string(_buffer); // return string converted bytes of value_ } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "./TinyOwnable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; abstract contract Recoverable is Ownable { using SafeERC20 for IERC20; address public vault; event TokenRecovery(address indexed token, uint256 amount); event EthRecovery(uint256 amount); function recoverToken(address _token) external virtual onlyOwner { uint256 balance = IERC20(_token).balanceOf(address(this)); require(balance != 0, "Cannot recover zero balance"); IERC20(_token).safeTransfer(address(vault), balance); emit TokenRecovery(_token, balance); } function recoverEth(address payable _to) external virtual onlyOwner { uint256 balance = address(vault).balance; _to.transfer(balance); emit EthRecovery(balance); } function recoverTokenCustom(address _token, uint256 _amount) external virtual onlyOwner { uint256 balance = IERC20(_token).balanceOf(address(this)); require(balance != 0, "Cannot recover zero balance"); IERC20(_token).safeTransfer(address(vault), _amount); emit TokenRecovery(_token, balance); } function setVaultAddress(address _vault) external virtual onlyOwner { vault = _vault; } // recover to deployer if gnosis vault fails function recoverTokenToDeployer(address _token) external virtual onlyOwner { uint256 balance = IERC20(_token).balanceOf(address(this)); require(balance != 0, "Cannot recover zero balance"); IERC20(_token).safeTransfer(address(msg.sender), balance); emit TokenRecovery(_token, balance); } function recoverEthToDeployer(address payable _to) external virtual onlyOwner { uint256 balance = address(msg.sender).balance; _to.transfer(balance); emit EthRecovery(balance); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; // Open0x Ownable (by 0xInuarashi) abstract contract Ownable { address public owner; event OwnershipTransferred( address indexed oldOwner_, address indexed newOwner_ ); constructor() { owner = msg.sender; } modifier onlyOwner() { require(owner == msg.sender, "Ownable: caller is not the owner"); _; } function _transferOwnership(address newOwner_) internal virtual { address _oldOwner = owner; owner = newOwner_; emit OwnershipTransferred(_oldOwner, newOwner_); } function transferOwnership(address newOwner_) public virtual onlyOwner { require( newOwner_ != address(0x0), "Ownable: new owner is the zero address!" ); _transferOwnership(newOwner_); } function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0x0)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, 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) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][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) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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 Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - 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 (last updated v4.5.0) (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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, 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/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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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); } } } }
// 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; } }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner_","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner_","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferSingle","type":"event"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"magicAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"recoverEthToDeployer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverTokenCustom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverTokenToDeployer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_magicAddress","type":"address"}],"name":"setMagicAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000600760146101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040518060400160405280600c81526020017f4f47536d697468795061737300000000000000000000000000000000000000008152506040518060400160405280600881526020017f534d4954484f47500000000000000000000000000000000000000000000000008152508160009080519060200190620000b192919062000114565b508060019080519060200190620000ca92919062000114565b50505033600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000229565b8280546200012290620001c4565b90600052602060002090601f01602090048101928262000146576000855562000192565b82601f106200016157805160ff191683800117855562000192565b8280016001018555821562000192579182015b828111156200019157825182559160200191906001019062000174565b5b509050620001a19190620001a5565b5090565b5b80821115620001c0576000816000905550600101620001a6565b5090565b60006002820490506001821680620001dd57607f821691505b60208210811415620001f457620001f3620001fa565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61320e80620002396000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80637d0268d2116100de5780639be65a6011610097578063d64450d411610071578063d64450d414610434578063e58306f914610450578063f2fde38b1461046c578063fbfa77cf146104885761018d565b80639be65a60146103e0578063a0712d68146103fc578063c17846dc146104185761018d565b80637d0268d2146103465780637d8966e41461036257806385535cc51461036c5780638d9b78e4146103885780638da5cb5b146103a457806395d89b41146103c25761018d565b806318160ddd1161014b578063471a429411610125578063471a4294146102d25780634e1273f4146102f0578063715018a6146103205780637504db3e1461032a5761018d565b806318160ddd1461027c57806330176e131461029a57806344a0d68a146102b65761018d565b8062fdd58e1461019257806301ffc9a7146101c257806306fdde03146101f25780630e89341c1461021057806313faede6146102405780631591b66c1461025e575b600080fd5b6101ac60048036038101906101a79190612277565b6104a6565b6040516101b991906129ee565b60405180910390f35b6101dc60048036038101906101d7919061235c565b6104cb565b6040516101e99190612851565b60405180910390f35b6101fa61055d565b604051610207919061286c565b60405180910390f35b61022a600480360381019061022591906123d2565b6105eb565b604051610237919061286c565b60405180910390f35b610248610663565b60405161025591906129ee565b60405180910390f35b610266610669565b60405161027391906127b4565b60405180910390f35b61028461068f565b60405161029191906129ee565b60405180910390f35b6102b460048036038101906102af9190612389565b610695565b005b6102d060048036038101906102cb91906123d2565b610731565b005b6102da6107cb565b6040516102e79190612851565b60405180910390f35b61030a600480360381019061030591906122b7565b6107de565b604051610317919061282f565b60405180910390f35b610328610936565b005b610344600480360381019061033f919061224a565b6109d2565b005b610360600480360381019061035b9190612277565b610b22565b005b61036a610d23565b005b6103866004803603810190610381919061221d565b610ddf565b005b6103a2600480360381019061039d919061221d565b610eb3565b005b6103ac611091565b6040516103b991906127b4565b60405180910390f35b6103ca6110b7565b6040516103d7919061286c565b60405180910390f35b6103fa60048036038101906103f5919061221d565b611145565b005b610416600480360381019061041191906123d2565b611345565b005b610432600480360381019061042d919061221d565b611535565b005b61044e6004803603810190610449919061224a565b611609565b005b61046a60048036038101906104659190612277565b611737565b005b6104866004803603810190610481919061221d565b6117f0565b005b6104906118fc565b60405161049d91906127b4565b60405180910390f35b6004602052816000526040600020602052806000526040600020600091509150505481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610526575063d9b67a2660e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105565750630e89341c60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000805461056a90612d3e565b80601f016020809104026020016040519081016040528092919081815260200182805461059690612d3e565b80156105e35780601f106105b8576101008083540402835291602001916105e3565b820191906000526020600020905b8154815290600101906020018083116105c657829003601f168201915b505050505081565b60606000821115610631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106289061292e565b60405180910390fd5b600261063c83611922565b60405160200161064d929190612790565b6040516020818303038152906040529050919050565b60085481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071c9061294e565b60405180910390fd5b61072e81611a82565b50565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b89061294e565b60405180910390fd5b8060088190555050565b600760149054906101000a900460ff1681565b606060008351905082518114610829576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108209061296e565b60405180910390fd5b8067ffffffffffffffff81111561084357610842612ed7565b5b6040519080825280602002602001820160405280156108715781602001602082028036833780820191505090505b50915060005b8181101561092e576004600086838151811061089657610895612ea8565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008583815181106108ed576108ec612ea8565b5b602002602001015181526020019081526020016000205483828151811061091757610916612ea8565b5b602002602001018181525050806001019050610877565b505092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146109c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bd9061294e565b60405180910390fd5b6109d06000611a9c565b565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a599061294e565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163190508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ae6573d6000803e3d6000fd5b507f5c0a34c718716ee467140afbc9fb741fc2980e41d00f04a8f7f635d76484ff4781604051610b1691906129ee565b60405180910390a15050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba99061294e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610bed91906127b4565b60206040518083038186803b158015610c0557600080fd5b505afa158015610c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3d91906123ff565b90506000811415610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a906129ae565b60405180910390fd5b610cd0600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838573ffffffffffffffffffffffffffffffffffffffff16611b629092919063ffffffff16565b8273ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051610d1691906129ee565b60405180910390a2505050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daa9061294e565b60405180910390fd5b600760149054906101000a900460ff1615600760146101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e669061294e565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3a9061294e565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f7e91906127b4565b60206040518083038186803b158015610f9657600080fd5b505afa158015610faa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fce91906123ff565b90506000811415611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b906129ae565b60405180910390fd5b61103f33828473ffffffffffffffffffffffffffffffffffffffff16611b629092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e988260405161108591906129ee565b60405180910390a25050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600180546110c490612d3e565b80601f01602080910402602001604051908101604052809291908181526020018280546110f090612d3e565b801561113d5780601f106111125761010080835404028352916020019161113d565b820191906000526020600020905b81548152906001019060200180831161112057829003601f168201915b505050505081565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cc9061294e565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161121091906127b4565b60206040518083038186803b15801561122857600080fd5b505afa15801561123c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126091906123ff565b905060008114156112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d906129ae565b60405180910390fd5b6112f3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16611b629092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e988260405161133991906129ee565b60405180910390a25050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906128ee565b60405180910390fd5b600760149054906101000a900460ff16611402576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f99061290e565b60405180910390fd5b60006008541415611448576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143f9061288e565b60405180910390fd5b6000600854826114589190612bf2565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016114b9939291906127cf565b602060405180830381600087803b1580156114d357600080fd5b505af11580156114e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150b919061232f565b5061151833600084611be8565b816003600082825461152a9190612b6b565b925050819055505050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bc9061294e565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611699576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116909061294e565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff163190508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156116fb573d6000803e3d6000fd5b507f5c0a34c718716ee467140afbc9fb741fc2980e41d00f04a8f7f635d76484ff478160405161172b91906129ee565b60405180910390a15050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be9061294e565b60405180910390fd5b6117d382600083611be8565b80600360008282546117e59190612b6b565b925050819055505050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611880576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118779061294e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e7906128ae565b60405180910390fd5b6118f981611a9c565b50565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600082141561196a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611a7d565b600082905060005b6000821461199c57808061198590612da1565b915050600a826119959190612bc1565b9150611972565b60008167ffffffffffffffff8111156119b8576119b7612ed7565b5b6040519080825280601f01601f1916602001820160405280156119ea5781602001600182028036833780820191505090505b5090505b60008514611a76578180611a0190612d14565b925050600a85611a119190612dea565b6030611a1d9190612b6b565b60f81b818381518110611a3357611a32612ea8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611a6f9190612bc1565b94506119ee565b8093505050505b919050565b8060029080519060200190611a98929190611f50565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611be38363a9059cbb60e01b8484604051602401611b81929190612806565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611cd3565b505050565b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000206000828254611c489190612b6b565b925050819055508273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611cc6929190612a09565b60405180910390a4505050565b6000611d35826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d9a9092919063ffffffff16565b9050600081511115611d955780806020019051810190611d55919061232f565b611d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8b906129ce565b60405180910390fd5b5b505050565b6060611da98484600085611db2565b90509392505050565b606082471015611df7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dee906128ce565b60405180910390fd5b611e0085611ec6565b611e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e369061298e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611e689190612779565b60006040518083038185875af1925050503d8060008114611ea5576040519150601f19603f3d011682016040523d82523d6000602084013e611eaa565b606091505b5091509150611eba828286611ee9565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611ef957829050611f49565b600083511115611f0c5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f40919061286c565b60405180910390fd5b9392505050565b828054611f5c90612d3e565b90600052602060002090601f016020900481019282611f7e5760008555611fc5565b82601f10611f9757805160ff1916838001178555611fc5565b82800160010185558215611fc5579182015b82811115611fc4578251825591602001919060010190611fa9565b5b509050611fd29190611fd6565b5090565b5b80821115611fef576000816000905550600101611fd7565b5090565b600061200661200184612a57565b612a32565b9050808382526020820190508285602086028201111561202957612028612f0b565b5b60005b85811015612059578161203f8882612115565b84526020840193506020830192505060018101905061202c565b5050509392505050565b600061207661207184612a83565b612a32565b9050808382526020820190508285602086028201111561209957612098612f0b565b5b60005b858110156120c957816120af88826121f3565b84526020840193506020830192505060018101905061209c565b5050509392505050565b60006120e66120e184612aaf565b612a32565b90508281526020810184848401111561210257612101612f10565b5b61210d848285612cd2565b509392505050565b60008135905061212481613165565b92915050565b6000813590506121398161317c565b92915050565b600082601f83011261215457612153612f06565b5b8135612164848260208601611ff3565b91505092915050565b600082601f83011261218257612181612f06565b5b8135612192848260208601612063565b91505092915050565b6000815190506121aa81613193565b92915050565b6000813590506121bf816131aa565b92915050565b600082601f8301126121da576121d9612f06565b5b81356121ea8482602086016120d3565b91505092915050565b600081359050612202816131c1565b92915050565b600081519050612217816131c1565b92915050565b60006020828403121561223357612232612f1a565b5b600061224184828501612115565b91505092915050565b6000602082840312156122605761225f612f1a565b5b600061226e8482850161212a565b91505092915050565b6000806040838503121561228e5761228d612f1a565b5b600061229c85828601612115565b92505060206122ad858286016121f3565b9150509250929050565b600080604083850312156122ce576122cd612f1a565b5b600083013567ffffffffffffffff8111156122ec576122eb612f15565b5b6122f88582860161213f565b925050602083013567ffffffffffffffff81111561231957612318612f15565b5b6123258582860161216d565b9150509250929050565b60006020828403121561234557612344612f1a565b5b60006123538482850161219b565b91505092915050565b60006020828403121561237257612371612f1a565b5b6000612380848285016121b0565b91505092915050565b60006020828403121561239f5761239e612f1a565b5b600082013567ffffffffffffffff8111156123bd576123bc612f15565b5b6123c9848285016121c5565b91505092915050565b6000602082840312156123e8576123e7612f1a565b5b60006123f6848285016121f3565b91505092915050565b60006020828403121561241557612414612f1a565b5b600061242384828501612208565b91505092915050565b6000612438838361275b565b60208301905092915050565b61244d81612c4c565b82525050565b600061245e82612b05565b6124688185612b33565b935061247383612ae0565b8060005b838110156124a457815161248b888261242c565b975061249683612b26565b925050600181019050612477565b5085935050505092915050565b6124ba81612c70565b82525050565b60006124cb82612b10565b6124d58185612b44565b93506124e5818560208601612ce1565b80840191505092915050565b60006124fc82612b1b565b6125068185612b4f565b9350612516818560208601612ce1565b61251f81612f1f565b840191505092915050565b600061253582612b1b565b61253f8185612b60565b935061254f818560208601612ce1565b80840191505092915050565b6000815461256881612d3e565b6125728186612b60565b9450600182166000811461258d576001811461259e576125d1565b60ff198316865281860193506125d1565b6125a785612af0565b60005b838110156125c9578154818901526001820191506020810190506125aa565b838801955050505b50505092915050565b60006125e7600c83612b4f565b91506125f282612f30565b602082019050919050565b600061260a602783612b4f565b915061261582612f59565b604082019050919050565b600061262d602683612b4f565b915061263882612fa8565b604082019050919050565b6000612650601e83612b4f565b915061265b82612ff7565b602082019050919050565b6000612673601583612b4f565b915061267e82613020565b602082019050919050565b6000612696601183612b4f565b91506126a182613049565b602082019050919050565b60006126b9602083612b4f565b91506126c482613072565b602082019050919050565b60006126dc600f83612b4f565b91506126e78261309b565b602082019050919050565b60006126ff601d83612b4f565b915061270a826130c4565b602082019050919050565b6000612722601b83612b4f565b915061272d826130ed565b602082019050919050565b6000612745602a83612b4f565b915061275082613116565b604082019050919050565b61276481612cc8565b82525050565b61277381612cc8565b82525050565b600061278582846124c0565b915081905092915050565b600061279c828561255b565b91506127a8828461252a565b91508190509392505050565b60006020820190506127c96000830184612444565b92915050565b60006060820190506127e46000830186612444565b6127f16020830185612444565b6127fe604083018461276a565b949350505050565b600060408201905061281b6000830185612444565b612828602083018461276a565b9392505050565b600060208201905081810360008301526128498184612453565b905092915050565b600060208201905061286660008301846124b1565b92915050565b6000602082019050818103600083015261288681846124f1565b905092915050565b600060208201905081810360008301526128a7816125da565b9050919050565b600060208201905081810360008301526128c7816125fd565b9050919050565b600060208201905081810360008301526128e781612620565b9050919050565b6000602082019050818103600083015261290781612643565b9050919050565b6000602082019050818103600083015261292781612666565b9050919050565b6000602082019050818103600083015261294781612689565b9050919050565b60006020820190508181036000830152612967816126ac565b9050919050565b60006020820190508181036000830152612987816126cf565b9050919050565b600060208201905081810360008301526129a7816126f2565b9050919050565b600060208201905081810360008301526129c781612715565b9050919050565b600060208201905081810360008301526129e781612738565b9050919050565b6000602082019050612a03600083018461276a565b92915050565b6000604082019050612a1e600083018561276a565b612a2b602083018461276a565b9392505050565b6000612a3c612a4d565b9050612a488282612d70565b919050565b6000604051905090565b600067ffffffffffffffff821115612a7257612a71612ed7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612a9e57612a9d612ed7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612aca57612ac9612ed7565b5b612ad382612f1f565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612b7682612cc8565b9150612b8183612cc8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bb657612bb5612e1b565b5b828201905092915050565b6000612bcc82612cc8565b9150612bd783612cc8565b925082612be757612be6612e4a565b5b828204905092915050565b6000612bfd82612cc8565b9150612c0883612cc8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c4157612c40612e1b565b5b828202905092915050565b6000612c5782612ca8565b9050919050565b6000612c6982612ca8565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612cff578082015181840152602081019050612ce4565b83811115612d0e576000848401525b50505050565b6000612d1f82612cc8565b91506000821415612d3357612d32612e1b565b5b600182039050919050565b60006002820490506001821680612d5657607f821691505b60208210811415612d6a57612d69612e79565b5b50919050565b612d7982612f1f565b810181811067ffffffffffffffff82111715612d9857612d97612ed7565b5b80604052505050565b6000612dac82612cc8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ddf57612dde612e1b565b5b600182019050919050565b6000612df582612cc8565b9150612e0083612cc8565b925082612e1057612e0f612e4a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f436f7374206e6f74207365740000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573732100000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f5365722042726f6b6520697320736c656570696e670000000000000000000000600082015250565b7f55524920646f65736e2774206578697374000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4c454e4754485f4d49534d415443480000000000000000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f43616e6e6f74207265636f766572207a65726f2062616c616e63650000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b61316e81612c4c565b811461317957600080fd5b50565b61318581612c5e565b811461319057600080fd5b50565b61319c81612c70565b81146131a757600080fd5b50565b6131b381612c7c565b81146131be57600080fd5b50565b6131ca81612cc8565b81146131d557600080fd5b5056fea26469706673582212203a64eccdaecb372837eda941cd0d84e15d40a952dc9d6d657a9ca6c84167095d64736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80637d0268d2116100de5780639be65a6011610097578063d64450d411610071578063d64450d414610434578063e58306f914610450578063f2fde38b1461046c578063fbfa77cf146104885761018d565b80639be65a60146103e0578063a0712d68146103fc578063c17846dc146104185761018d565b80637d0268d2146103465780637d8966e41461036257806385535cc51461036c5780638d9b78e4146103885780638da5cb5b146103a457806395d89b41146103c25761018d565b806318160ddd1161014b578063471a429411610125578063471a4294146102d25780634e1273f4146102f0578063715018a6146103205780637504db3e1461032a5761018d565b806318160ddd1461027c57806330176e131461029a57806344a0d68a146102b65761018d565b8062fdd58e1461019257806301ffc9a7146101c257806306fdde03146101f25780630e89341c1461021057806313faede6146102405780631591b66c1461025e575b600080fd5b6101ac60048036038101906101a79190612277565b6104a6565b6040516101b991906129ee565b60405180910390f35b6101dc60048036038101906101d7919061235c565b6104cb565b6040516101e99190612851565b60405180910390f35b6101fa61055d565b604051610207919061286c565b60405180910390f35b61022a600480360381019061022591906123d2565b6105eb565b604051610237919061286c565b60405180910390f35b610248610663565b60405161025591906129ee565b60405180910390f35b610266610669565b60405161027391906127b4565b60405180910390f35b61028461068f565b60405161029191906129ee565b60405180910390f35b6102b460048036038101906102af9190612389565b610695565b005b6102d060048036038101906102cb91906123d2565b610731565b005b6102da6107cb565b6040516102e79190612851565b60405180910390f35b61030a600480360381019061030591906122b7565b6107de565b604051610317919061282f565b60405180910390f35b610328610936565b005b610344600480360381019061033f919061224a565b6109d2565b005b610360600480360381019061035b9190612277565b610b22565b005b61036a610d23565b005b6103866004803603810190610381919061221d565b610ddf565b005b6103a2600480360381019061039d919061221d565b610eb3565b005b6103ac611091565b6040516103b991906127b4565b60405180910390f35b6103ca6110b7565b6040516103d7919061286c565b60405180910390f35b6103fa60048036038101906103f5919061221d565b611145565b005b610416600480360381019061041191906123d2565b611345565b005b610432600480360381019061042d919061221d565b611535565b005b61044e6004803603810190610449919061224a565b611609565b005b61046a60048036038101906104659190612277565b611737565b005b6104866004803603810190610481919061221d565b6117f0565b005b6104906118fc565b60405161049d91906127b4565b60405180910390f35b6004602052816000526040600020602052806000526040600020600091509150505481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610526575063d9b67a2660e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105565750630e89341c60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000805461056a90612d3e565b80601f016020809104026020016040519081016040528092919081815260200182805461059690612d3e565b80156105e35780601f106105b8576101008083540402835291602001916105e3565b820191906000526020600020905b8154815290600101906020018083116105c657829003601f168201915b505050505081565b60606000821115610631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106289061292e565b60405180910390fd5b600261063c83611922565b60405160200161064d929190612790565b6040516020818303038152906040529050919050565b60085481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071c9061294e565b60405180910390fd5b61072e81611a82565b50565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b89061294e565b60405180910390fd5b8060088190555050565b600760149054906101000a900460ff1681565b606060008351905082518114610829576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108209061296e565b60405180910390fd5b8067ffffffffffffffff81111561084357610842612ed7565b5b6040519080825280602002602001820160405280156108715781602001602082028036833780820191505090505b50915060005b8181101561092e576004600086838151811061089657610895612ea8565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008583815181106108ed576108ec612ea8565b5b602002602001015181526020019081526020016000205483828151811061091757610916612ea8565b5b602002602001018181525050806001019050610877565b505092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146109c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bd9061294e565b60405180910390fd5b6109d06000611a9c565b565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a599061294e565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163190508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ae6573d6000803e3d6000fd5b507f5c0a34c718716ee467140afbc9fb741fc2980e41d00f04a8f7f635d76484ff4781604051610b1691906129ee565b60405180910390a15050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba99061294e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610bed91906127b4565b60206040518083038186803b158015610c0557600080fd5b505afa158015610c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3d91906123ff565b90506000811415610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a906129ae565b60405180910390fd5b610cd0600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838573ffffffffffffffffffffffffffffffffffffffff16611b629092919063ffffffff16565b8273ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051610d1691906129ee565b60405180910390a2505050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daa9061294e565b60405180910390fd5b600760149054906101000a900460ff1615600760146101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e669061294e565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3a9061294e565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f7e91906127b4565b60206040518083038186803b158015610f9657600080fd5b505afa158015610faa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fce91906123ff565b90506000811415611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b906129ae565b60405180910390fd5b61103f33828473ffffffffffffffffffffffffffffffffffffffff16611b629092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e988260405161108591906129ee565b60405180910390a25050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600180546110c490612d3e565b80601f01602080910402602001604051908101604052809291908181526020018280546110f090612d3e565b801561113d5780601f106111125761010080835404028352916020019161113d565b820191906000526020600020905b81548152906001019060200180831161112057829003601f168201915b505050505081565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cc9061294e565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161121091906127b4565b60206040518083038186803b15801561122857600080fd5b505afa15801561123c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126091906123ff565b905060008114156112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d906129ae565b60405180910390fd5b6112f3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16611b629092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e988260405161133991906129ee565b60405180910390a25050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906128ee565b60405180910390fd5b600760149054906101000a900460ff16611402576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f99061290e565b60405180910390fd5b60006008541415611448576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143f9061288e565b60405180910390fd5b6000600854826114589190612bf2565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016114b9939291906127cf565b602060405180830381600087803b1580156114d357600080fd5b505af11580156114e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150b919061232f565b5061151833600084611be8565b816003600082825461152a9190612b6b565b925050819055505050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bc9061294e565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611699576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116909061294e565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff163190508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156116fb573d6000803e3d6000fd5b507f5c0a34c718716ee467140afbc9fb741fc2980e41d00f04a8f7f635d76484ff478160405161172b91906129ee565b60405180910390a15050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be9061294e565b60405180910390fd5b6117d382600083611be8565b80600360008282546117e59190612b6b565b925050819055505050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611880576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118779061294e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e7906128ae565b60405180910390fd5b6118f981611a9c565b50565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600082141561196a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611a7d565b600082905060005b6000821461199c57808061198590612da1565b915050600a826119959190612bc1565b9150611972565b60008167ffffffffffffffff8111156119b8576119b7612ed7565b5b6040519080825280601f01601f1916602001820160405280156119ea5781602001600182028036833780820191505090505b5090505b60008514611a76578180611a0190612d14565b925050600a85611a119190612dea565b6030611a1d9190612b6b565b60f81b818381518110611a3357611a32612ea8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611a6f9190612bc1565b94506119ee565b8093505050505b919050565b8060029080519060200190611a98929190611f50565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611be38363a9059cbb60e01b8484604051602401611b81929190612806565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611cd3565b505050565b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000206000828254611c489190612b6b565b925050819055508273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611cc6929190612a09565b60405180910390a4505050565b6000611d35826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d9a9092919063ffffffff16565b9050600081511115611d955780806020019051810190611d55919061232f565b611d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8b906129ce565b60405180910390fd5b5b505050565b6060611da98484600085611db2565b90509392505050565b606082471015611df7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dee906128ce565b60405180910390fd5b611e0085611ec6565b611e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e369061298e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611e689190612779565b60006040518083038185875af1925050503d8060008114611ea5576040519150601f19603f3d011682016040523d82523d6000602084013e611eaa565b606091505b5091509150611eba828286611ee9565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611ef957829050611f49565b600083511115611f0c5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f40919061286c565b60405180910390fd5b9392505050565b828054611f5c90612d3e565b90600052602060002090601f016020900481019282611f7e5760008555611fc5565b82601f10611f9757805160ff1916838001178555611fc5565b82800160010185558215611fc5579182015b82811115611fc4578251825591602001919060010190611fa9565b5b509050611fd29190611fd6565b5090565b5b80821115611fef576000816000905550600101611fd7565b5090565b600061200661200184612a57565b612a32565b9050808382526020820190508285602086028201111561202957612028612f0b565b5b60005b85811015612059578161203f8882612115565b84526020840193506020830192505060018101905061202c565b5050509392505050565b600061207661207184612a83565b612a32565b9050808382526020820190508285602086028201111561209957612098612f0b565b5b60005b858110156120c957816120af88826121f3565b84526020840193506020830192505060018101905061209c565b5050509392505050565b60006120e66120e184612aaf565b612a32565b90508281526020810184848401111561210257612101612f10565b5b61210d848285612cd2565b509392505050565b60008135905061212481613165565b92915050565b6000813590506121398161317c565b92915050565b600082601f83011261215457612153612f06565b5b8135612164848260208601611ff3565b91505092915050565b600082601f83011261218257612181612f06565b5b8135612192848260208601612063565b91505092915050565b6000815190506121aa81613193565b92915050565b6000813590506121bf816131aa565b92915050565b600082601f8301126121da576121d9612f06565b5b81356121ea8482602086016120d3565b91505092915050565b600081359050612202816131c1565b92915050565b600081519050612217816131c1565b92915050565b60006020828403121561223357612232612f1a565b5b600061224184828501612115565b91505092915050565b6000602082840312156122605761225f612f1a565b5b600061226e8482850161212a565b91505092915050565b6000806040838503121561228e5761228d612f1a565b5b600061229c85828601612115565b92505060206122ad858286016121f3565b9150509250929050565b600080604083850312156122ce576122cd612f1a565b5b600083013567ffffffffffffffff8111156122ec576122eb612f15565b5b6122f88582860161213f565b925050602083013567ffffffffffffffff81111561231957612318612f15565b5b6123258582860161216d565b9150509250929050565b60006020828403121561234557612344612f1a565b5b60006123538482850161219b565b91505092915050565b60006020828403121561237257612371612f1a565b5b6000612380848285016121b0565b91505092915050565b60006020828403121561239f5761239e612f1a565b5b600082013567ffffffffffffffff8111156123bd576123bc612f15565b5b6123c9848285016121c5565b91505092915050565b6000602082840312156123e8576123e7612f1a565b5b60006123f6848285016121f3565b91505092915050565b60006020828403121561241557612414612f1a565b5b600061242384828501612208565b91505092915050565b6000612438838361275b565b60208301905092915050565b61244d81612c4c565b82525050565b600061245e82612b05565b6124688185612b33565b935061247383612ae0565b8060005b838110156124a457815161248b888261242c565b975061249683612b26565b925050600181019050612477565b5085935050505092915050565b6124ba81612c70565b82525050565b60006124cb82612b10565b6124d58185612b44565b93506124e5818560208601612ce1565b80840191505092915050565b60006124fc82612b1b565b6125068185612b4f565b9350612516818560208601612ce1565b61251f81612f1f565b840191505092915050565b600061253582612b1b565b61253f8185612b60565b935061254f818560208601612ce1565b80840191505092915050565b6000815461256881612d3e565b6125728186612b60565b9450600182166000811461258d576001811461259e576125d1565b60ff198316865281860193506125d1565b6125a785612af0565b60005b838110156125c9578154818901526001820191506020810190506125aa565b838801955050505b50505092915050565b60006125e7600c83612b4f565b91506125f282612f30565b602082019050919050565b600061260a602783612b4f565b915061261582612f59565b604082019050919050565b600061262d602683612b4f565b915061263882612fa8565b604082019050919050565b6000612650601e83612b4f565b915061265b82612ff7565b602082019050919050565b6000612673601583612b4f565b915061267e82613020565b602082019050919050565b6000612696601183612b4f565b91506126a182613049565b602082019050919050565b60006126b9602083612b4f565b91506126c482613072565b602082019050919050565b60006126dc600f83612b4f565b91506126e78261309b565b602082019050919050565b60006126ff601d83612b4f565b915061270a826130c4565b602082019050919050565b6000612722601b83612b4f565b915061272d826130ed565b602082019050919050565b6000612745602a83612b4f565b915061275082613116565b604082019050919050565b61276481612cc8565b82525050565b61277381612cc8565b82525050565b600061278582846124c0565b915081905092915050565b600061279c828561255b565b91506127a8828461252a565b91508190509392505050565b60006020820190506127c96000830184612444565b92915050565b60006060820190506127e46000830186612444565b6127f16020830185612444565b6127fe604083018461276a565b949350505050565b600060408201905061281b6000830185612444565b612828602083018461276a565b9392505050565b600060208201905081810360008301526128498184612453565b905092915050565b600060208201905061286660008301846124b1565b92915050565b6000602082019050818103600083015261288681846124f1565b905092915050565b600060208201905081810360008301526128a7816125da565b9050919050565b600060208201905081810360008301526128c7816125fd565b9050919050565b600060208201905081810360008301526128e781612620565b9050919050565b6000602082019050818103600083015261290781612643565b9050919050565b6000602082019050818103600083015261292781612666565b9050919050565b6000602082019050818103600083015261294781612689565b9050919050565b60006020820190508181036000830152612967816126ac565b9050919050565b60006020820190508181036000830152612987816126cf565b9050919050565b600060208201905081810360008301526129a7816126f2565b9050919050565b600060208201905081810360008301526129c781612715565b9050919050565b600060208201905081810360008301526129e781612738565b9050919050565b6000602082019050612a03600083018461276a565b92915050565b6000604082019050612a1e600083018561276a565b612a2b602083018461276a565b9392505050565b6000612a3c612a4d565b9050612a488282612d70565b919050565b6000604051905090565b600067ffffffffffffffff821115612a7257612a71612ed7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612a9e57612a9d612ed7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115612aca57612ac9612ed7565b5b612ad382612f1f565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612b7682612cc8565b9150612b8183612cc8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bb657612bb5612e1b565b5b828201905092915050565b6000612bcc82612cc8565b9150612bd783612cc8565b925082612be757612be6612e4a565b5b828204905092915050565b6000612bfd82612cc8565b9150612c0883612cc8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c4157612c40612e1b565b5b828202905092915050565b6000612c5782612ca8565b9050919050565b6000612c6982612ca8565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612cff578082015181840152602081019050612ce4565b83811115612d0e576000848401525b50505050565b6000612d1f82612cc8565b91506000821415612d3357612d32612e1b565b5b600182039050919050565b60006002820490506001821680612d5657607f821691505b60208210811415612d6a57612d69612e79565b5b50919050565b612d7982612f1f565b810181811067ffffffffffffffff82111715612d9857612d97612ed7565b5b80604052505050565b6000612dac82612cc8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ddf57612dde612e1b565b5b600182019050919050565b6000612df582612cc8565b9150612e0083612cc8565b925082612e1057612e0f612e4a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f436f7374206e6f74207365740000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573732100000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f5365722042726f6b6520697320736c656570696e670000000000000000000000600082015250565b7f55524920646f65736e2774206578697374000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4c454e4754485f4d49534d415443480000000000000000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f43616e6e6f74207265636f766572207a65726f2062616c616e63650000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b61316e81612c4c565b811461317957600080fd5b50565b61318581612c5e565b811461319057600080fd5b50565b61319c81612c70565b81146131a757600080fd5b50565b6131b381612c7c565b81146131be57600080fd5b50565b6131ca81612cc8565b81146131d557600080fd5b5056fea26469706673582212203a64eccdaecb372837eda941cd0d84e15d40a952dc9d6d657a9ca6c84167095d64736f6c63430008070033