Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 80 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16659345 | 556 days ago | IN | 0 ETH | 0.0009991 | ||||
Safe Transfer Fr... | 16495417 | 579 days ago | IN | 0 ETH | 0.00116811 | ||||
Safe Transfer Fr... | 16495190 | 579 days ago | IN | 0 ETH | 0.00109294 | ||||
Set Approval For... | 16455200 | 585 days ago | IN | 0 ETH | 0.00073111 | ||||
Safe Transfer Fr... | 16424013 | 589 days ago | IN | 0 ETH | 0.00104454 | ||||
Safe Transfer Fr... | 16422086 | 590 days ago | IN | 0 ETH | 0.00169126 | ||||
Safe Transfer Fr... | 16344904 | 600 days ago | IN | 0 ETH | 0.00107342 | ||||
Set Sale Started | 16331957 | 602 days ago | IN | 0 ETH | 0.00037778 | ||||
Withdraw | 16331872 | 602 days ago | IN | 0 ETH | 0.00047016 | ||||
Safe Transfer Fr... | 16331755 | 602 days ago | IN | 0 ETH | 0.0009299 | ||||
Mint | 16331743 | 602 days ago | IN | 3 ETH | 0.00233667 | ||||
Mint | 16331377 | 602 days ago | IN | 3 ETH | 0.00253052 | ||||
Safe Transfer Fr... | 16328251 | 603 days ago | IN | 0 ETH | 0.00113633 | ||||
Mint | 16328230 | 603 days ago | IN | 3 ETH | 0.00318258 | ||||
Mint | 16327454 | 603 days ago | IN | 3 ETH | 0.00434948 | ||||
Safe Transfer Fr... | 16326688 | 603 days ago | IN | 0 ETH | 0.0009877 | ||||
Safe Transfer Fr... | 16326625 | 603 days ago | IN | 0 ETH | 0.00087117 | ||||
Mint | 16326610 | 603 days ago | IN | 3 ETH | 0.00193949 | ||||
Safe Transfer Fr... | 16326517 | 603 days ago | IN | 0 ETH | 0.000902 | ||||
Mint | 16326214 | 603 days ago | IN | 3 ETH | 0.00211179 | ||||
Safe Transfer Fr... | 16324211 | 603 days ago | IN | 0 ETH | 0.00090381 | ||||
Mint | 16324205 | 603 days ago | IN | 3 ETH | 0.00221535 | ||||
Safe Transfer Fr... | 16323380 | 603 days ago | IN | 0 ETH | 0.00115361 | ||||
Withdraw | 16323350 | 603 days ago | IN | 0 ETH | 0.00047738 | ||||
Mint | 16323030 | 603 days ago | IN | 3 ETH | 0.00221616 |
Loading...
Loading
Contract Name:
Coliseum
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@&#BG5G#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@&BG555GYB#P#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@#P55YGBBGPG@&PB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@&B5YPBG5BB&#P@@@&5PGB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@BYYPYGYGP@@@B5BBBGGPYYB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@PJJ5G5B5B5BPPPPPPPPPP55G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@57YYG@5BBP5P5PP5GGGPPGP5P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@G!?JYBGY5P55GGPPGGPPGYBG#5G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@P~5PYY555PPPPP5YBYY#@GBB&&5#&#BB&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@G!YJY55YY5YPYY#PBP5#&555##GGBPPJ5#@@@@#&#B&G#########&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@G7JYJY55YYJGP5BYYGGGGPGPGGGGGGG55YB###B##BBB&&&##@@@#PGB&&###&&&@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@G7?J5Y55P5JYPPPPPGGGGGPGBBBB#BBP5BG#####B###BB##P&@@&GGP&@@@&YG####&@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@?!JYY5YYPPPPGGGPG#BBGBB#BGY?J5#G55###&BGB&#B##BGP@###@@P#####GG#@BBG##&@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@Y?JYJ55PPGPBBG5GBPP7^J#PY!:.:5#G#5G5J5#B#Y!~7P#BG##&#@&G#G5G#@BG&PGG@B5B@@@@@@@@@@@@@@ @@@@@@@@@@@@@@G?Y555PPP5GP5J^PP5J..5#G5^.::G#B&&7.^~Y#Y!J?^^5BGGB@BYG#&BPB@&###GB#BGPP&@@@@@@@@@@@@@ @@@@@@@@@@@@@&JJJYYY5Y57P5P7:BBPJ..YBG5^::^PPP#&P~GB5GY&@@G^P#B&Y#!.!PB^?GB5G#G#&##BGY&@@@@@@@@@@@@@ @@@@@@@@@@@@@#7?JY55PPP75PP?~55P5JY55PBGGBBPPP#####BGGYPGBPPPBB&B#7^7GB.!G5^YP!555PPG5#@@@@@@@@@@@@@ @@@@@@@@@@@@@@5JYYY5Y5G5YPBBGPPBBBBGPGGBGBGGGGGBBBBBBBP5@@@G&@@@@@@@&P#:!BP:5G7PY55YJ7#@@@@@@@@@@@@@ @@@@@@@@@@@@@@J?JY5G5PGGPPGGGGPGGGBGGGBBBB#BGG####B#GGP5###G#&#&&&&&#P#GBBBPGB5GPPP557#@@@@@@@@@@@@@ @@@@@@@@@@@@@#?5PPPPPPPGPGBGGGG#BPPBB##G5JPBB&&PJ?JGB#B5GGB&#G##GB&BPP###B###B#BBBGGP?B@@@@@@@@@@@@@ @@@@@@@@@@@@@@YJYY55P55YGPPJ~GB5Y^:J#G57..^Y#BY:...!5#PJ::^?BBP^:^5BBG&7J##?G#YGGPGGGYB@@@@@@@@@@@@@ @@@@@@@@@@@@@@5JYY5YP557P55~:GG5J.:Y#P5^:::G#BJ:::.~B#B#?.::Y#J.:.?GBGG.!BP:5G7GY5P5Y?B@@@@@@@@@@@@@ @@@@@@@@&&&&&&YJY55PGPP7PPP!:BBPJ::5#GP~:::B#BJ:::.~##B&@!.:5#Y.::JGB#P.!BP:5G7PY555YJB&&&&&@@@@@@@@ @@@@@@@@&&&&&&BPPP5P55P?55P!:GGPJ..Y#GP^..:B#BJ....~##B&@#~:5#J...?GGB#!?GP?PG5GGBBB##&&&&&@@@@@@@@@ @@@@@@@@@@@@&&&&&&&&####BBBBGGGGPYYPPPPJ???PPPY777!?GPGB##PJPGP555GBBBB####&&&&&&&&&&&&@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@&&&&&&&&&&&&&&&####&&&#################&###&&&&&&&&&&&&&&&&&@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@R@@@ */ pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract Coliseum is ERC721, Ownable, ReentrancyGuard { using Strings for uint256; using SafeMath for uint256; uint256 public constant MAX_TRADEABLE_SUPPLY = 310; uint256 public constant MINT_PRICE_TIER_ONE = 0; uint256 public constant MINT_PRICE_TIER_TWO = 3 ether; uint256 public constant MINT_PRICE_TIER_THREE = 4 ether; uint256 public constant MAX_MINT_PER_TX = 1; uint256 public totalSupply = 0; uint256 public tradeableSupply = 0; struct Tier { uint16 id; uint256 basePrice; } mapping(uint256 => Tier) public tiers; uint16 tierNum; mapping(bytes32 => bool) private _usedHashes; mapping(address => uint256) private _tierIndex; mapping(address => bool) private soulbounds; uint256 public soulboundNum; bool public soulboundListClosed = false; bool public saleStarted = false; string public baseTokenURI = ""; address private _signerAddress; event Minted(address indexed to); event Airdropped(address indexed to); constructor() ERC721("Coliseum", "COLISEUM") { tiers[1] = Tier(1, MINT_PRICE_TIER_ONE); tiers[2] = Tier(2, MINT_PRICE_TIER_TWO); tiers[3] = Tier(3, MINT_PRICE_TIER_THREE); tierNum = 3; } function mint(bytes memory _sig, uint256 _tier) external payable nonReentrant { require(saleStarted, "MINT_NOT_STARTED"); if (soulbounds[msg.sender] != true) { require(tradeableSupply + MAX_MINT_PER_TX <= MAX_TRADEABLE_SUPPLY, "MAX_TRADEABLE_SUPPLY_REACHED"); } bytes32 hash = keccak256(abi.encodePacked(msg.sender, _tier)); require(!_usedHashes[hash], "HASH_ALREADY_USED"); require(_matchSigner(hash, _sig), "INVALID_SIGNER"); // User can mint with only one address, as some of the tokens are soulbound require(_tierIndex[msg.sender] == 0, "ADDRESS_ALREADY_MINTED"); require(msg.value == tiers[_tier].basePrice, "INVALID_ETH_SENT"); _usedHashes[hash] = true; _tierIndex[msg.sender] = _tier; _safeMint(msg.sender, totalSupply + MAX_MINT_PER_TX); totalSupply += MAX_MINT_PER_TX; if (soulbounds[msg.sender] != true) { tradeableSupply += MAX_MINT_PER_TX; } emit Minted(msg.sender); } /** * Only soulbound can be airdropped */ function airdrop (address _to, uint256 _tier) external onlyOwner { require(soulbounds[_to] == true, "ADDRESS_IS_NOT_ON_SOULBOUNDS"); _tierIndex[_to] = _tier; _mint(_to, totalSupply + MAX_MINT_PER_TX); totalSupply += MAX_MINT_PER_TX; emit Airdropped(_to); } function _matchSigner(bytes32 _hash, bytes memory _signature) private view returns(bool) { return _signerAddress == ECDSA.recover(ECDSA.toEthSignedMessageHash(_hash), _signature); } function whichTierIsAddress(address _address) public view returns(uint256) { return _tierIndex[_address]; } function isAddressSoulbound(address _address) public view returns(bool) { return soulbounds[_address]; } /** * @dev Available for for external checks. */ function isAllowedToMint ( address _sender, uint256 _tier, bytes memory _sig ) public view returns(string memory) { bytes32 _hash = keccak256(abi.encodePacked(_sender, _tier)); if (!_matchSigner(_hash, _sig)) { return "SIGNER_NOT_MATCHING"; } if (_usedHashes[_hash]) { return "HASH_ALREADY_USED"; } return "HASH_USABLE"; } function withdraw(address payable _to) external onlyOwner { require(_to != address(0), "WITHDRAW_ADDRESS_ZERO"); require(address(this).balance > 0, "EMPTY_BALANCE"); _to.transfer(address(this).balance); } function withdrawERC20(address _token, address payable _to) external onlyOwner { require(_to != address(0), "WITHDRAW_ADDRESS_ZERO"); IERC20 targetToken = IERC20(_token); uint256 balance = targetToken.balanceOf(address(this)); require(balance > 0, "EMPTY_BALANCE"); targetToken.transferFrom(address(this), _to, balance); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseTokenURI(string memory _baseTokenURI) public onlyOwner { baseTokenURI = _baseTokenURI; } function setSaleStarted(bool _saleStarted) external onlyOwner { saleStarted = _saleStarted; } function getSignerAddress() public view onlyOwner returns(address) { return _signerAddress; } function setSignerAddress(address _signer) external onlyOwner { require(_signer != address(0), "SIGNER_ADDRESS_ZERO"); _signerAddress = _signer; } function burn(uint256 tokenId) external { require(ownerOf(tokenId) == msg.sender, "Only the owner of the token can burn it."); _burn(tokenId); } function _beforeTokenTransfer(address from, address to, uint256) internal virtual override { if (soulbounds[from] == true) { require(from == address(0) || to == address(0), "This a Soulbound token. It cannot be transferred. It can only be burned by the token owner."); } } function _burn(uint256 tokenId) internal override(ERC721) { super._burn(tokenId); if (soulbounds[msg.sender] != true) { tradeableSupply = tradeableSupply-1; } } function addAddresses(address[] calldata _members) public onlyOwner { require (!soulboundListClosed, "CANT_ADD_SOULBOUND_LIST_CLOSED"); uint256 i = 0; for(i;i<_members.length;i++){ address member = _members[i]; if(soulbounds[member] == false){ soulbounds[member] = true; soulboundNum++; } } } function removeAddresses(address[] calldata _members) public onlyOwner { require (!soulboundListClosed, "CANT_REMOVE_SOULBOUND_LIST_CLOSED"); uint256 i = 0; for(i;i<_members.length;i++){ address member = _members[i]; if(soulbounds[member] == true){ soulbounds[member] = false; soulboundNum--; } } } function closeAddressList() public onlyOwner { soulboundListClosed = true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` 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 tokenId ) 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. * - `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 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (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) { 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. /// @solidity memory-safe-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 { 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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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); }
// 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 (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "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":true,"internalType":"address","name":"to","type":"address"}],"name":"Airdropped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Minted","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TRADEABLE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE_TIER_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE_TIER_THREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE_TIER_TWO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_members","type":"address[]"}],"name":"addAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tier","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeAddressList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSignerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAddressSoulbound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"uint256","name":"_tier","type":"uint256"},{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"isAllowedToMint","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_sig","type":"bytes"},{"internalType":"uint256","name":"_tier","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_members","type":"address[]"}],"name":"removeAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleStarted","type":"bool"}],"name":"setSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soulboundListClosed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"soulboundNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiers","outputs":[{"internalType":"uint16","name":"id","type":"uint16"},{"internalType":"uint256","name":"basePrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradeableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"whichTierIsAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600060085560006009556000601060006101000a81548160ff0219169083151502179055506000601060016101000a81548160ff02191690831515021790555060405180602001604052806000815250601190805190602001906200006b9291906200035f565b503480156200007957600080fd5b506040518060400160405280600881526020017f436f6c697365756d0000000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f434f4c495345554d0000000000000000000000000000000000000000000000008152508160009080519060200190620000fe9291906200035f565b508060019080519060200190620001179291906200035f565b5050506200013a6200012e6200029160201b60201c565b6200029960201b60201c565b60016007819055506040518060400160405280600161ffff1681526020016000815250600a60006001815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff160217905550602082015181600101559050506040518060400160405280600261ffff1681526020016729a2241af62c0000815250600a60006002815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff160217905550602082015181600101559050506040518060400160405280600361ffff168152602001673782dace9d900000815250600a60006003815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff160217905550602082015181600101559050506003600b60006101000a81548161ffff021916908361ffff16021790555062000474565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200036d906200043e565b90600052602060002090601f016020900481019282620003915760008555620003dd565b82601f10620003ac57805160ff1916838001178555620003dd565b82800160010185558215620003dd579182015b82811115620003dc578251825591602001919060010190620003bf565b5b509050620003ec9190620003f0565b5090565b5b808211156200040b576000816000905550600101620003f1565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200045757607f821691505b602082108114156200046e576200046d6200040f565b5b50919050565b61566f80620004846000396000f3fe60806040526004361061025b5760003560e01c80636025b1bc1161014457806395d89b41116100b6578063c058b3d01161007a578063c058b3d0146108d7578063c87b56dd146108ee578063d547cfb71461092b578063e985e9c514610956578063f2fde38b14610993578063fe73ee18146109bc5761025b565b806395d89b4114610808578063a22cb46514610833578063a84eb9991461085c578063a854ffba14610885578063b88d4fde146108ae5761025b565b8063715018a611610108578063715018a61461070c5780638174d2d3146107235780638ba4cc3c146107605780638da5cb5b146107895780638ecad721146107b45780639456fbcc146107df5761025b565b80636025b1bc14610611578063611e24411461063c5780636352211e146106675780636c1a5ada146106a457806370a08231146106cf5761025b565b80631f4aeca8116101dd5780633f359c22116101a15780633f359c22146105155780634118e6631461054057806342842e0e1461056b57806342966c681461059457806351cff8d9146105bd5780635c474f9e146105e65761025b565b80631f4aeca81461044457806323b872dd1461046f578063260caa8b1461049857806330176e13146104c35780633628731c146104ec5761025b565b8063081812fc11610224578063081812fc1461034b578063095ea7b31461038857806318160ddd146103b157806319c823dd146103dc5780631a296e02146104195761025b565b80622576121461026057806301ffc9a71461027c578063039af9eb146102b9578063046dc166146102f757806306fdde0314610320575b600080fd5b61027a60048036038101906102759190613877565b6109f9565b005b34801561028857600080fd5b506102a3600480360381019061029e919061392b565b610e58565b6040516102b09190613973565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db919061398e565b610f3a565b6040516102ee9291906139e7565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190613a6e565b610f6c565b005b34801561032c57600080fd5b50610335611028565b6040516103429190613b23565b60405180910390f35b34801561035757600080fd5b50610372600480360381019061036d919061398e565b6110ba565b60405161037f9190613b54565b60405180910390f35b34801561039457600080fd5b506103af60048036038101906103aa9190613b6f565b611100565b005b3480156103bd57600080fd5b506103c6611218565b6040516103d39190613baf565b60405180910390f35b3480156103e857600080fd5b5061040360048036038101906103fe9190613a6e565b61121e565b6040516104109190613baf565b60405180910390f35b34801561042557600080fd5b5061042e611267565b60405161043b9190613b54565b60405180910390f35b34801561045057600080fd5b50610459611299565b6040516104669190613baf565b60405180910390f35b34801561047b57600080fd5b5061049660048036038101906104919190613bca565b6112a5565b005b3480156104a457600080fd5b506104ad611305565b6040516104ba9190613baf565b60405180910390f35b3480156104cf57600080fd5b506104ea60048036038101906104e59190613cbe565b61130b565b005b3480156104f857600080fd5b50610513600480360381019061050e9190613d67565b61132d565b005b34801561052157600080fd5b5061052a6114a2565b6040516105379190613baf565b60405180910390f35b34801561054c57600080fd5b506105556114a8565b6040516105629190613973565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190613bca565b6114bb565b005b3480156105a057600080fd5b506105bb60048036038101906105b6919061398e565b6114db565b005b3480156105c957600080fd5b506105e460048036038101906105df9190613df2565b61155d565b005b3480156105f257600080fd5b506105fb611662565b6040516106089190613973565b60405180910390f35b34801561061d57600080fd5b50610626611675565b6040516106339190613baf565b60405180910390f35b34801561064857600080fd5b5061065161167b565b60405161065e9190613baf565b60405180910390f35b34801561067357600080fd5b5061068e6004803603810190610689919061398e565b611680565b60405161069b9190613b54565b60405180910390f35b3480156106b057600080fd5b506106b9611732565b6040516106c69190613baf565b60405180910390f35b3480156106db57600080fd5b506106f660048036038101906106f19190613a6e565b61173e565b6040516107039190613baf565b60405180910390f35b34801561071857600080fd5b506107216117f6565b005b34801561072f57600080fd5b5061074a60048036038101906107459190613e1f565b61180a565b6040516107579190613b23565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613b6f565b61192a565b005b34801561079557600080fd5b5061079e611a82565b6040516107ab9190613b54565b60405180910390f35b3480156107c057600080fd5b506107c9611aac565b6040516107d69190613baf565b60405180910390f35b3480156107eb57600080fd5b5061080660048036038101906108019190613e8e565b611ab1565b005b34801561081457600080fd5b5061081d611c94565b60405161082a9190613b23565b60405180910390f35b34801561083f57600080fd5b5061085a60048036038101906108559190613efa565b611d26565b005b34801561086857600080fd5b50610883600480360381019061087e9190613d67565b611d3c565b005b34801561089157600080fd5b506108ac60048036038101906108a79190613f3a565b611eb1565b005b3480156108ba57600080fd5b506108d560048036038101906108d09190613f67565b611ed6565b005b3480156108e357600080fd5b506108ec611f38565b005b3480156108fa57600080fd5b506109156004803603810190610910919061398e565b611f5d565b6040516109229190613b23565b60405180910390f35b34801561093757600080fd5b50610940611fc5565b60405161094d9190613b23565b60405180910390f35b34801561096257600080fd5b5061097d60048036038101906109789190613fea565b612053565b60405161098a9190613973565b60405180910390f35b34801561099f57600080fd5b506109ba60048036038101906109b59190613a6e565b6120e7565b005b3480156109c857600080fd5b506109e360048036038101906109de9190613a6e565b61216b565b6040516109f09190613973565b60405180910390f35b60026007541415610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3690614076565b60405180910390fd5b6002600781905550601060019054906101000a900460ff16610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d906140e2565b60405180910390fd5b60011515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610b42576101366001600954610b009190614131565b1115610b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b38906141d3565b60405180910390fd5b5b60003382604051602001610b5792919061425c565b604051602081830303815290604052805190602001209050600c600082815260200190815260200160002060009054906101000a900460ff1615610bd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc7906142d4565b60405180910390fd5b610bda81846121c1565b610c19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1090614340565b60405180910390fd5b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c92906143ac565b60405180910390fd5b600a6000838152602001908152602001600020600101543414610cf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cea90614418565b60405180910390fd5b6001600c600083815260200190815260200160002060006101000a81548160ff02191690831515021790555081600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d7b336001600854610d769190614131565b61222d565b600160086000828254610d8e9190614131565b9250508190555060011515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610e0857600160096000828254610e009190614131565b925050819055505b3373ffffffffffffffffffffffffffffffffffffffff167f90ddedd5a25821bba11fbb98de02ec1f75c1be90ae147d6450ce873e7b78b5d860405160405180910390a25060016007819055505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610f2357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610f335750610f328261224b565b5b9050919050565b600a6020528060005260406000206000915090508060000160009054906101000a900461ffff16908060010154905082565b610f746122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610fe4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdb90614484565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008054611037906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611063906144d3565b80156110b05780601f10611085576101008083540402835291602001916110b0565b820191906000526020600020905b81548152906001019060200180831161109357829003601f168201915b5050505050905090565b60006110c582612333565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061110b82611680565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561117c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117390614577565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661119b61237e565b73ffffffffffffffffffffffffffffffffffffffff1614806111ca57506111c9816111c461237e565b612053565b5b611209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120090614609565b60405180910390fd5b6112138383612386565b505050565b60085481565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006112716122b5565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6729a2241af62c000081565b6112b66112b061237e565b8261243f565b6112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ec9061469b565b60405180910390fd5b6113008383836124d4565b505050565b61013681565b6113136122b5565b8060119080519060200190611329929190613644565b5050565b6113356122b5565b601060009054906101000a900460ff1615611385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c90614707565b60405180910390fd5b60005b8282905081101561149d5760008383838181106113a8576113a7614727565b5b90506020020160208101906113bd9190613a6e565b905060001515600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415611489576001600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600f600081548092919061148390614756565b91905055505b50808061149590614756565b915050611388565b505050565b600f5481565b601060009054906101000a900460ff1681565b6114d683838360405180602001604052806000815250611ed6565b505050565b3373ffffffffffffffffffffffffffffffffffffffff166114fb82611680565b73ffffffffffffffffffffffffffffffffffffffff1614611551576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154890614811565b60405180910390fd5b61155a8161273b565b50565b6115656122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cc9061487d565b60405180910390fd5b60004711611618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160f906148e9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561165e573d6000803e3d6000fd5b5050565b601060019054906101000a900460ff1681565b60095481565b600081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611729576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172090614955565b60405180910390fd5b80915050919050565b673782dace9d90000081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a6906149e7565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6117fe6122b5565b61180860006127b5565b565b60606000848460405160200161182192919061425c565b60405160208183030381529060405280519060200120905061184381846121c1565b611885576040518060400160405280601381526020017f5349474e45525f4e4f545f4d41544348494e4700000000000000000000000000815250915050611923565b600c600082815260200190815260200160002060009054906101000a900460ff16156118e9576040518060400160405280601181526020017f484153485f414c52454144595f55534544000000000000000000000000000000815250915050611923565b6040518060400160405280600b81526020017f484153485f555341424c450000000000000000000000000000000000000000008152509150505b9392505050565b6119326122b5565b60011515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc90614a53565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611a21826001600854611a1c9190614131565b61287b565b600160086000828254611a349190614131565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167f030c4595f0a538ac9c751000c23669a47495c36b5e3064f89844e81acba6c16460405160405180910390a25050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600181565b611ab96122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b209061487d565b60405180910390fd5b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611b699190613b54565b60206040518083038186803b158015611b8157600080fd5b505afa158015611b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb99190614a88565b905060008111611bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf5906148e9565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3085846040518463ffffffff1660e01b8152600401611c3b93929190614b14565b602060405180830381600087803b158015611c5557600080fd5b505af1158015611c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8d9190614b60565b5050505050565b606060018054611ca3906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ccf906144d3565b8015611d1c5780601f10611cf157610100808354040283529160200191611d1c565b820191906000526020600020905b815481529060010190602001808311611cff57829003601f168201915b5050505050905090565b611d38611d3161237e565b8383612a55565b5050565b611d446122b5565b601060009054906101000a900460ff1615611d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8b90614bff565b60405180910390fd5b60005b82829050811015611eac576000838383818110611db757611db6614727565b5b9050602002016020810190611dcc9190613a6e565b905060011515600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415611e98576000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815480929190611e9290614c1f565b91905055505b508080611ea490614756565b915050611d97565b505050565b611eb96122b5565b80601060016101000a81548160ff02191690831515021790555050565b611ee7611ee161237e565b8361243f565b611f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1d9061469b565b60405180910390fd5b611f3284848484612bc2565b50505050565b611f406122b5565b6001601060006101000a81548160ff021916908315150217905550565b6060611f6882612333565b6000611f72612c1e565b90506000815111611f925760405180602001604052806000815250611fbd565b80611f9c84612cb0565b604051602001611fad929190614c85565b6040516020818303038152906040525b915050919050565b60118054611fd2906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ffe906144d3565b801561204b5780601f106120205761010080835404028352916020019161204b565b820191906000526020600020905b81548152906001019060200180831161202e57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120ef6122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561215f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215690614d1b565b60405180910390fd5b612168816127b5565b50565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60006121d56121cf84612e11565b83612e41565b73ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b612247828260405180602001604052806000815250612e68565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6122bd61237e565b73ffffffffffffffffffffffffffffffffffffffff166122db611a82565b73ffffffffffffffffffffffffffffffffffffffff1614612331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232890614d87565b60405180910390fd5b565b61233c81612ec3565b61237b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237290614955565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166123f983611680565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061244b83611680565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061248d575061248c8185612053565b5b806124cb57508373ffffffffffffffffffffffffffffffffffffffff166124b3846110ba565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124f482611680565b73ffffffffffffffffffffffffffffffffffffffff161461254a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254190614e19565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b190614eab565b60405180910390fd5b6125c5838383612f2f565b6125d0600082612386565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126209190614ecb565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126779190614131565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612736838383613034565b505050565b61274481613039565b60011515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146127b25760016009546127ab9190614ecb565b6009819055505b50565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e290614f4b565b60405180910390fd5b6128f481612ec3565b15612934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292b90614fb7565b60405180910390fd5b61294060008383612f2f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129909190614131565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a5160008383613034565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abb90615023565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612bb59190613973565b60405180910390a3505050565b612bcd8484846124d4565b612bd984848484613156565b612c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0f906150b5565b60405180910390fd5b50505050565b606060118054612c2d906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054612c59906144d3565b8015612ca65780601f10612c7b57610100808354040283529160200191612ca6565b820191906000526020600020905b815481529060010190602001808311612c8957829003601f168201915b5050505050905090565b60606000821415612cf8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e0c565b600082905060005b60008214612d2a578080612d1390614756565b915050600a82612d239190615104565b9150612d00565b60008167ffffffffffffffff811115612d4657612d45613716565b5b6040519080825280601f01601f191660200182016040528015612d785781602001600182028036833780820191505090505b5090505b60008514612e0557600182612d919190614ecb565b9150600a85612da09190615135565b6030612dac9190614131565b60f81b818381518110612dc257612dc1614727565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612dfe9190615104565b9450612d7c565b8093505050505b919050565b600081604051602001612e2491906151dd565b604051602081830303815290604052805190602001209050919050565b6000806000612e5085856132ed565b91509150612e5d8161333f565b819250505092915050565b612e72838361287b565b612e7f6000848484613156565b612ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb5906150b5565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60011515600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141561302f57600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480612fef5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b61302e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130259061529b565b60405180910390fd5b5b505050565b505050565b600061304482611680565b905061305281600084612f2f565b61305d600083612386565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ad9190614ecb565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461315281600084613034565b5050565b60006131778473ffffffffffffffffffffffffffffffffffffffff16613514565b156132e0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131a061237e565b8786866040518563ffffffff1660e01b81526004016131c29493929190615310565b602060405180830381600087803b1580156131dc57600080fd5b505af192505050801561320d57506040513d601f19601f8201168201806040525081019061320a9190615371565b60015b613290573d806000811461323d576040519150601f19603f3d011682016040523d82523d6000602084013e613242565b606091505b50600081511415613288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327f906150b5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132e5565b600190505b949350505050565b60008060418351141561332f5760008060006020860151925060408601519150606086015160001a905061332387828585613537565b94509450505050613338565b60006002915091505b9250929050565b600060048111156133535761335261539e565b5b8160048111156133665761336561539e565b5b141561337157613511565b600160048111156133855761338461539e565b5b8160048111156133985761339761539e565b5b14156133d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d090615419565b60405180910390fd5b600260048111156133ed576133ec61539e565b5b816004811115613400576133ff61539e565b5b1415613441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343890615485565b60405180910390fd5b600360048111156134555761345461539e565b5b8160048111156134685761346761539e565b5b14156134a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a090615517565b60405180910390fd5b6004808111156134bc576134bb61539e565b5b8160048111156134cf576134ce61539e565b5b1415613510576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613507906155a9565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561357257600060039150915061363b565b601b8560ff161415801561358a5750601c8560ff1614155b1561359c57600060049150915061363b565b6000600187878787604051600081526020016040526040516135c194939291906155f4565b6020604051602081039080840390855afa1580156135e3573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156136325760006001925092505061363b565b80600092509250505b94509492505050565b828054613650906144d3565b90600052602060002090601f01602090048101928261367257600085556136b9565b82601f1061368b57805160ff19168380011785556136b9565b828001600101855582156136b9579182015b828111156136b857825182559160200191906001019061369d565b5b5090506136c691906136ca565b5090565b5b808211156136e35760008160009055506001016136cb565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61374e82613705565b810181811067ffffffffffffffff8211171561376d5761376c613716565b5b80604052505050565b60006137806136e7565b905061378c8282613745565b919050565b600067ffffffffffffffff8211156137ac576137ab613716565b5b6137b582613705565b9050602081019050919050565b82818337600083830152505050565b60006137e46137df84613791565b613776565b905082815260208101848484011115613800576137ff613700565b5b61380b8482856137c2565b509392505050565b600082601f830112613828576138276136fb565b5b81356138388482602086016137d1565b91505092915050565b6000819050919050565b61385481613841565b811461385f57600080fd5b50565b6000813590506138718161384b565b92915050565b6000806040838503121561388e5761388d6136f1565b5b600083013567ffffffffffffffff8111156138ac576138ab6136f6565b5b6138b885828601613813565b92505060206138c985828601613862565b9150509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613908816138d3565b811461391357600080fd5b50565b600081359050613925816138ff565b92915050565b600060208284031215613941576139406136f1565b5b600061394f84828501613916565b91505092915050565b60008115159050919050565b61396d81613958565b82525050565b60006020820190506139886000830184613964565b92915050565b6000602082840312156139a4576139a36136f1565b5b60006139b284828501613862565b91505092915050565b600061ffff82169050919050565b6139d2816139bb565b82525050565b6139e181613841565b82525050565b60006040820190506139fc60008301856139c9565b613a0960208301846139d8565b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a3b82613a10565b9050919050565b613a4b81613a30565b8114613a5657600080fd5b50565b600081359050613a6881613a42565b92915050565b600060208284031215613a8457613a836136f1565b5b6000613a9284828501613a59565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ad5578082015181840152602081019050613aba565b83811115613ae4576000848401525b50505050565b6000613af582613a9b565b613aff8185613aa6565b9350613b0f818560208601613ab7565b613b1881613705565b840191505092915050565b60006020820190508181036000830152613b3d8184613aea565b905092915050565b613b4e81613a30565b82525050565b6000602082019050613b696000830184613b45565b92915050565b60008060408385031215613b8657613b856136f1565b5b6000613b9485828601613a59565b9250506020613ba585828601613862565b9150509250929050565b6000602082019050613bc460008301846139d8565b92915050565b600080600060608486031215613be357613be26136f1565b5b6000613bf186828701613a59565b9350506020613c0286828701613a59565b9250506040613c1386828701613862565b9150509250925092565b600067ffffffffffffffff821115613c3857613c37613716565b5b613c4182613705565b9050602081019050919050565b6000613c61613c5c84613c1d565b613776565b905082815260208101848484011115613c7d57613c7c613700565b5b613c888482856137c2565b509392505050565b600082601f830112613ca557613ca46136fb565b5b8135613cb5848260208601613c4e565b91505092915050565b600060208284031215613cd457613cd36136f1565b5b600082013567ffffffffffffffff811115613cf257613cf16136f6565b5b613cfe84828501613c90565b91505092915050565b600080fd5b600080fd5b60008083601f840112613d2757613d266136fb565b5b8235905067ffffffffffffffff811115613d4457613d43613d07565b5b602083019150836020820283011115613d6057613d5f613d0c565b5b9250929050565b60008060208385031215613d7e57613d7d6136f1565b5b600083013567ffffffffffffffff811115613d9c57613d9b6136f6565b5b613da885828601613d11565b92509250509250929050565b6000613dbf82613a10565b9050919050565b613dcf81613db4565b8114613dda57600080fd5b50565b600081359050613dec81613dc6565b92915050565b600060208284031215613e0857613e076136f1565b5b6000613e1684828501613ddd565b91505092915050565b600080600060608486031215613e3857613e376136f1565b5b6000613e4686828701613a59565b9350506020613e5786828701613862565b925050604084013567ffffffffffffffff811115613e7857613e776136f6565b5b613e8486828701613813565b9150509250925092565b60008060408385031215613ea557613ea46136f1565b5b6000613eb385828601613a59565b9250506020613ec485828601613ddd565b9150509250929050565b613ed781613958565b8114613ee257600080fd5b50565b600081359050613ef481613ece565b92915050565b60008060408385031215613f1157613f106136f1565b5b6000613f1f85828601613a59565b9250506020613f3085828601613ee5565b9150509250929050565b600060208284031215613f5057613f4f6136f1565b5b6000613f5e84828501613ee5565b91505092915050565b60008060008060808587031215613f8157613f806136f1565b5b6000613f8f87828801613a59565b9450506020613fa087828801613a59565b9350506040613fb187828801613862565b925050606085013567ffffffffffffffff811115613fd257613fd16136f6565b5b613fde87828801613813565b91505092959194509250565b60008060408385031215614001576140006136f1565b5b600061400f85828601613a59565b925050602061402085828601613a59565b9150509250929050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614060601f83613aa6565b915061406b8261402a565b602082019050919050565b6000602082019050818103600083015261408f81614053565b9050919050565b7f4d494e545f4e4f545f5354415254454400000000000000000000000000000000600082015250565b60006140cc601083613aa6565b91506140d782614096565b602082019050919050565b600060208201905081810360008301526140fb816140bf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061413c82613841565b915061414783613841565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561417c5761417b614102565b5b828201905092915050565b7f4d41585f545241444541424c455f535550504c595f5245414348454400000000600082015250565b60006141bd601c83613aa6565b91506141c882614187565b602082019050919050565b600060208201905081810360008301526141ec816141b0565b9050919050565b60008160601b9050919050565b600061420b826141f3565b9050919050565b600061421d82614200565b9050919050565b61423561423082613a30565b614212565b82525050565b6000819050919050565b61425661425182613841565b61423b565b82525050565b60006142688285614224565b6014820191506142788284614245565b6020820191508190509392505050565b7f484153485f414c52454144595f55534544000000000000000000000000000000600082015250565b60006142be601183613aa6565b91506142c982614288565b602082019050919050565b600060208201905081810360008301526142ed816142b1565b9050919050565b7f494e56414c49445f5349474e4552000000000000000000000000000000000000600082015250565b600061432a600e83613aa6565b9150614335826142f4565b602082019050919050565b600060208201905081810360008301526143598161431d565b9050919050565b7f414444524553535f414c52454144595f4d494e54454400000000000000000000600082015250565b6000614396601683613aa6565b91506143a182614360565b602082019050919050565b600060208201905081810360008301526143c581614389565b9050919050565b7f494e56414c49445f4554485f53454e5400000000000000000000000000000000600082015250565b6000614402601083613aa6565b915061440d826143cc565b602082019050919050565b60006020820190508181036000830152614431816143f5565b9050919050565b7f5349474e45525f414444524553535f5a45524f00000000000000000000000000600082015250565b600061446e601383613aa6565b915061447982614438565b602082019050919050565b6000602082019050818103600083015261449d81614461565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144eb57607f821691505b602082108114156144ff576144fe6144a4565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614561602183613aa6565b915061456c82614505565b604082019050919050565b6000602082019050818103600083015261459081614554565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006145f3603e83613aa6565b91506145fe82614597565b604082019050919050565b60006020820190508181036000830152614622816145e6565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614685602e83613aa6565b915061469082614629565b604082019050919050565b600060208201905081810360008301526146b481614678565b9050919050565b7f43414e545f4144445f534f554c424f554e445f4c4953545f434c4f5345440000600082015250565b60006146f1601e83613aa6565b91506146fc826146bb565b602082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061476182613841565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561479457614793614102565b5b600182019050919050565b7f4f6e6c7920746865206f776e6572206f662074686520746f6b656e2063616e2060008201527f6275726e2069742e000000000000000000000000000000000000000000000000602082015250565b60006147fb602883613aa6565b91506148068261479f565b604082019050919050565b6000602082019050818103600083015261482a816147ee565b9050919050565b7f57495448445241575f414444524553535f5a45524f0000000000000000000000600082015250565b6000614867601583613aa6565b915061487282614831565b602082019050919050565b600060208201905081810360008301526148968161485a565b9050919050565b7f454d5054595f42414c414e434500000000000000000000000000000000000000600082015250565b60006148d3600d83613aa6565b91506148de8261489d565b602082019050919050565b60006020820190508181036000830152614902816148c6565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061493f601883613aa6565b915061494a82614909565b602082019050919050565b6000602082019050818103600083015261496e81614932565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006149d1602983613aa6565b91506149dc82614975565b604082019050919050565b60006020820190508181036000830152614a00816149c4565b9050919050565b7f414444524553535f49535f4e4f545f4f4e5f534f554c424f554e445300000000600082015250565b6000614a3d601c83613aa6565b9150614a4882614a07565b602082019050919050565b60006020820190508181036000830152614a6c81614a30565b9050919050565b600081519050614a828161384b565b92915050565b600060208284031215614a9e57614a9d6136f1565b5b6000614aac84828501614a73565b91505092915050565b6000819050919050565b6000614ada614ad5614ad084613a10565b614ab5565b613a10565b9050919050565b6000614aec82614abf565b9050919050565b6000614afe82614ae1565b9050919050565b614b0e81614af3565b82525050565b6000606082019050614b296000830186613b45565b614b366020830185614b05565b614b4360408301846139d8565b949350505050565b600081519050614b5a81613ece565b92915050565b600060208284031215614b7657614b756136f1565b5b6000614b8484828501614b4b565b91505092915050565b7f43414e545f52454d4f56455f534f554c424f554e445f4c4953545f434c4f534560008201527f4400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614be9602183613aa6565b9150614bf482614b8d565b604082019050919050565b60006020820190508181036000830152614c1881614bdc565b9050919050565b6000614c2a82613841565b91506000821415614c3e57614c3d614102565b5b600182039050919050565b600081905092915050565b6000614c5f82613a9b565b614c698185614c49565b9350614c79818560208601613ab7565b80840191505092915050565b6000614c918285614c54565b9150614c9d8284614c54565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d05602683613aa6565b9150614d1082614ca9565b604082019050919050565b60006020820190508181036000830152614d3481614cf8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d71602083613aa6565b9150614d7c82614d3b565b602082019050919050565b60006020820190508181036000830152614da081614d64565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614e03602583613aa6565b9150614e0e82614da7565b604082019050919050565b60006020820190508181036000830152614e3281614df6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614e95602483613aa6565b9150614ea082614e39565b604082019050919050565b60006020820190508181036000830152614ec481614e88565b9050919050565b6000614ed682613841565b9150614ee183613841565b925082821015614ef457614ef3614102565b5b828203905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f35602083613aa6565b9150614f4082614eff565b602082019050919050565b60006020820190508181036000830152614f6481614f28565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614fa1601c83613aa6565b9150614fac82614f6b565b602082019050919050565b60006020820190508181036000830152614fd081614f94565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061500d601983613aa6565b915061501882614fd7565b602082019050919050565b6000602082019050818103600083015261503c81615000565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061509f603283613aa6565b91506150aa82615043565b604082019050919050565b600060208201905081810360008301526150ce81615092565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061510f82613841565b915061511a83613841565b92508261512a576151296150d5565b5b828204905092915050565b600061514082613841565b915061514b83613841565b92508261515b5761515a6150d5565b5b828206905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061519c601c83614c49565b91506151a782615166565b601c82019050919050565b6000819050919050565b6000819050919050565b6151d76151d2826151b2565b6151bc565b82525050565b60006151e88261518f565b91506151f482846151c6565b60208201915081905092915050565b7f54686973206120536f756c626f756e6420746f6b656e2e2049742063616e6e6f60008201527f74206265207472616e736665727265642e2049742063616e206f6e6c7920626560208201527f206275726e65642062792074686520746f6b656e206f776e65722e0000000000604082015250565b6000615285605b83613aa6565b915061529082615203565b606082019050919050565b600060208201905081810360008301526152b481615278565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152e2826152bb565b6152ec81856152c6565b93506152fc818560208601613ab7565b61530581613705565b840191505092915050565b60006080820190506153256000830187613b45565b6153326020830186613b45565b61533f60408301856139d8565b818103606083015261535181846152d7565b905095945050505050565b60008151905061536b816138ff565b92915050565b600060208284031215615387576153866136f1565b5b60006153958482850161535c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615403601883613aa6565b915061540e826153cd565b602082019050919050565b60006020820190508181036000830152615432816153f6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061546f601f83613aa6565b915061547a82615439565b602082019050919050565b6000602082019050818103600083015261549e81615462565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615501602283613aa6565b915061550c826154a5565b604082019050919050565b60006020820190508181036000830152615530816154f4565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615593602283613aa6565b915061559e82615537565b604082019050919050565b600060208201905081810360008301526155c281615586565b9050919050565b6155d2816151b2565b82525050565b600060ff82169050919050565b6155ee816155d8565b82525050565b600060808201905061560960008301876155c9565b61561660208301866155e5565b61562360408301856155c9565b61563060608301846155c9565b9594505050505056fea26469706673582212207169e476a00181a3789914f1a926ffb97eb6c5ba6c2e4471e1a010aadf61b14664736f6c63430008090033
Deployed Bytecode
0x60806040526004361061025b5760003560e01c80636025b1bc1161014457806395d89b41116100b6578063c058b3d01161007a578063c058b3d0146108d7578063c87b56dd146108ee578063d547cfb71461092b578063e985e9c514610956578063f2fde38b14610993578063fe73ee18146109bc5761025b565b806395d89b4114610808578063a22cb46514610833578063a84eb9991461085c578063a854ffba14610885578063b88d4fde146108ae5761025b565b8063715018a611610108578063715018a61461070c5780638174d2d3146107235780638ba4cc3c146107605780638da5cb5b146107895780638ecad721146107b45780639456fbcc146107df5761025b565b80636025b1bc14610611578063611e24411461063c5780636352211e146106675780636c1a5ada146106a457806370a08231146106cf5761025b565b80631f4aeca8116101dd5780633f359c22116101a15780633f359c22146105155780634118e6631461054057806342842e0e1461056b57806342966c681461059457806351cff8d9146105bd5780635c474f9e146105e65761025b565b80631f4aeca81461044457806323b872dd1461046f578063260caa8b1461049857806330176e13146104c35780633628731c146104ec5761025b565b8063081812fc11610224578063081812fc1461034b578063095ea7b31461038857806318160ddd146103b157806319c823dd146103dc5780631a296e02146104195761025b565b80622576121461026057806301ffc9a71461027c578063039af9eb146102b9578063046dc166146102f757806306fdde0314610320575b600080fd5b61027a60048036038101906102759190613877565b6109f9565b005b34801561028857600080fd5b506102a3600480360381019061029e919061392b565b610e58565b6040516102b09190613973565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db919061398e565b610f3a565b6040516102ee9291906139e7565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190613a6e565b610f6c565b005b34801561032c57600080fd5b50610335611028565b6040516103429190613b23565b60405180910390f35b34801561035757600080fd5b50610372600480360381019061036d919061398e565b6110ba565b60405161037f9190613b54565b60405180910390f35b34801561039457600080fd5b506103af60048036038101906103aa9190613b6f565b611100565b005b3480156103bd57600080fd5b506103c6611218565b6040516103d39190613baf565b60405180910390f35b3480156103e857600080fd5b5061040360048036038101906103fe9190613a6e565b61121e565b6040516104109190613baf565b60405180910390f35b34801561042557600080fd5b5061042e611267565b60405161043b9190613b54565b60405180910390f35b34801561045057600080fd5b50610459611299565b6040516104669190613baf565b60405180910390f35b34801561047b57600080fd5b5061049660048036038101906104919190613bca565b6112a5565b005b3480156104a457600080fd5b506104ad611305565b6040516104ba9190613baf565b60405180910390f35b3480156104cf57600080fd5b506104ea60048036038101906104e59190613cbe565b61130b565b005b3480156104f857600080fd5b50610513600480360381019061050e9190613d67565b61132d565b005b34801561052157600080fd5b5061052a6114a2565b6040516105379190613baf565b60405180910390f35b34801561054c57600080fd5b506105556114a8565b6040516105629190613973565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190613bca565b6114bb565b005b3480156105a057600080fd5b506105bb60048036038101906105b6919061398e565b6114db565b005b3480156105c957600080fd5b506105e460048036038101906105df9190613df2565b61155d565b005b3480156105f257600080fd5b506105fb611662565b6040516106089190613973565b60405180910390f35b34801561061d57600080fd5b50610626611675565b6040516106339190613baf565b60405180910390f35b34801561064857600080fd5b5061065161167b565b60405161065e9190613baf565b60405180910390f35b34801561067357600080fd5b5061068e6004803603810190610689919061398e565b611680565b60405161069b9190613b54565b60405180910390f35b3480156106b057600080fd5b506106b9611732565b6040516106c69190613baf565b60405180910390f35b3480156106db57600080fd5b506106f660048036038101906106f19190613a6e565b61173e565b6040516107039190613baf565b60405180910390f35b34801561071857600080fd5b506107216117f6565b005b34801561072f57600080fd5b5061074a60048036038101906107459190613e1f565b61180a565b6040516107579190613b23565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613b6f565b61192a565b005b34801561079557600080fd5b5061079e611a82565b6040516107ab9190613b54565b60405180910390f35b3480156107c057600080fd5b506107c9611aac565b6040516107d69190613baf565b60405180910390f35b3480156107eb57600080fd5b5061080660048036038101906108019190613e8e565b611ab1565b005b34801561081457600080fd5b5061081d611c94565b60405161082a9190613b23565b60405180910390f35b34801561083f57600080fd5b5061085a60048036038101906108559190613efa565b611d26565b005b34801561086857600080fd5b50610883600480360381019061087e9190613d67565b611d3c565b005b34801561089157600080fd5b506108ac60048036038101906108a79190613f3a565b611eb1565b005b3480156108ba57600080fd5b506108d560048036038101906108d09190613f67565b611ed6565b005b3480156108e357600080fd5b506108ec611f38565b005b3480156108fa57600080fd5b506109156004803603810190610910919061398e565b611f5d565b6040516109229190613b23565b60405180910390f35b34801561093757600080fd5b50610940611fc5565b60405161094d9190613b23565b60405180910390f35b34801561096257600080fd5b5061097d60048036038101906109789190613fea565b612053565b60405161098a9190613973565b60405180910390f35b34801561099f57600080fd5b506109ba60048036038101906109b59190613a6e565b6120e7565b005b3480156109c857600080fd5b506109e360048036038101906109de9190613a6e565b61216b565b6040516109f09190613973565b60405180910390f35b60026007541415610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3690614076565b60405180910390fd5b6002600781905550601060019054906101000a900460ff16610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d906140e2565b60405180910390fd5b60011515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610b42576101366001600954610b009190614131565b1115610b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b38906141d3565b60405180910390fd5b5b60003382604051602001610b5792919061425c565b604051602081830303815290604052805190602001209050600c600082815260200190815260200160002060009054906101000a900460ff1615610bd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc7906142d4565b60405180910390fd5b610bda81846121c1565b610c19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1090614340565b60405180910390fd5b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c92906143ac565b60405180910390fd5b600a6000838152602001908152602001600020600101543414610cf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cea90614418565b60405180910390fd5b6001600c600083815260200190815260200160002060006101000a81548160ff02191690831515021790555081600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d7b336001600854610d769190614131565b61222d565b600160086000828254610d8e9190614131565b9250508190555060011515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610e0857600160096000828254610e009190614131565b925050819055505b3373ffffffffffffffffffffffffffffffffffffffff167f90ddedd5a25821bba11fbb98de02ec1f75c1be90ae147d6450ce873e7b78b5d860405160405180910390a25060016007819055505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610f2357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610f335750610f328261224b565b5b9050919050565b600a6020528060005260406000206000915090508060000160009054906101000a900461ffff16908060010154905082565b610f746122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610fe4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdb90614484565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008054611037906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611063906144d3565b80156110b05780601f10611085576101008083540402835291602001916110b0565b820191906000526020600020905b81548152906001019060200180831161109357829003601f168201915b5050505050905090565b60006110c582612333565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061110b82611680565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561117c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117390614577565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661119b61237e565b73ffffffffffffffffffffffffffffffffffffffff1614806111ca57506111c9816111c461237e565b612053565b5b611209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120090614609565b60405180910390fd5b6112138383612386565b505050565b60085481565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006112716122b5565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6729a2241af62c000081565b6112b66112b061237e565b8261243f565b6112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ec9061469b565b60405180910390fd5b6113008383836124d4565b505050565b61013681565b6113136122b5565b8060119080519060200190611329929190613644565b5050565b6113356122b5565b601060009054906101000a900460ff1615611385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c90614707565b60405180910390fd5b60005b8282905081101561149d5760008383838181106113a8576113a7614727565b5b90506020020160208101906113bd9190613a6e565b905060001515600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415611489576001600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600f600081548092919061148390614756565b91905055505b50808061149590614756565b915050611388565b505050565b600f5481565b601060009054906101000a900460ff1681565b6114d683838360405180602001604052806000815250611ed6565b505050565b3373ffffffffffffffffffffffffffffffffffffffff166114fb82611680565b73ffffffffffffffffffffffffffffffffffffffff1614611551576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154890614811565b60405180910390fd5b61155a8161273b565b50565b6115656122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cc9061487d565b60405180910390fd5b60004711611618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160f906148e9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561165e573d6000803e3d6000fd5b5050565b601060019054906101000a900460ff1681565b60095481565b600081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611729576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172090614955565b60405180910390fd5b80915050919050565b673782dace9d90000081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a6906149e7565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6117fe6122b5565b61180860006127b5565b565b60606000848460405160200161182192919061425c565b60405160208183030381529060405280519060200120905061184381846121c1565b611885576040518060400160405280601381526020017f5349474e45525f4e4f545f4d41544348494e4700000000000000000000000000815250915050611923565b600c600082815260200190815260200160002060009054906101000a900460ff16156118e9576040518060400160405280601181526020017f484153485f414c52454144595f55534544000000000000000000000000000000815250915050611923565b6040518060400160405280600b81526020017f484153485f555341424c450000000000000000000000000000000000000000008152509150505b9392505050565b6119326122b5565b60011515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc90614a53565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611a21826001600854611a1c9190614131565b61287b565b600160086000828254611a349190614131565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167f030c4595f0a538ac9c751000c23669a47495c36b5e3064f89844e81acba6c16460405160405180910390a25050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600181565b611ab96122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b209061487d565b60405180910390fd5b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611b699190613b54565b60206040518083038186803b158015611b8157600080fd5b505afa158015611b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb99190614a88565b905060008111611bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf5906148e9565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3085846040518463ffffffff1660e01b8152600401611c3b93929190614b14565b602060405180830381600087803b158015611c5557600080fd5b505af1158015611c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8d9190614b60565b5050505050565b606060018054611ca3906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ccf906144d3565b8015611d1c5780601f10611cf157610100808354040283529160200191611d1c565b820191906000526020600020905b815481529060010190602001808311611cff57829003601f168201915b5050505050905090565b611d38611d3161237e565b8383612a55565b5050565b611d446122b5565b601060009054906101000a900460ff1615611d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8b90614bff565b60405180910390fd5b60005b82829050811015611eac576000838383818110611db757611db6614727565b5b9050602002016020810190611dcc9190613a6e565b905060011515600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415611e98576000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815480929190611e9290614c1f565b91905055505b508080611ea490614756565b915050611d97565b505050565b611eb96122b5565b80601060016101000a81548160ff02191690831515021790555050565b611ee7611ee161237e565b8361243f565b611f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1d9061469b565b60405180910390fd5b611f3284848484612bc2565b50505050565b611f406122b5565b6001601060006101000a81548160ff021916908315150217905550565b6060611f6882612333565b6000611f72612c1e565b90506000815111611f925760405180602001604052806000815250611fbd565b80611f9c84612cb0565b604051602001611fad929190614c85565b6040516020818303038152906040525b915050919050565b60118054611fd2906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054611ffe906144d3565b801561204b5780601f106120205761010080835404028352916020019161204b565b820191906000526020600020905b81548152906001019060200180831161202e57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120ef6122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561215f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215690614d1b565b60405180910390fd5b612168816127b5565b50565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60006121d56121cf84612e11565b83612e41565b73ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b612247828260405180602001604052806000815250612e68565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6122bd61237e565b73ffffffffffffffffffffffffffffffffffffffff166122db611a82565b73ffffffffffffffffffffffffffffffffffffffff1614612331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232890614d87565b60405180910390fd5b565b61233c81612ec3565b61237b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237290614955565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166123f983611680565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061244b83611680565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061248d575061248c8185612053565b5b806124cb57508373ffffffffffffffffffffffffffffffffffffffff166124b3846110ba565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124f482611680565b73ffffffffffffffffffffffffffffffffffffffff161461254a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254190614e19565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b190614eab565b60405180910390fd5b6125c5838383612f2f565b6125d0600082612386565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126209190614ecb565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126779190614131565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612736838383613034565b505050565b61274481613039565b60011515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146127b25760016009546127ab9190614ecb565b6009819055505b50565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e290614f4b565b60405180910390fd5b6128f481612ec3565b15612934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292b90614fb7565b60405180910390fd5b61294060008383612f2f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129909190614131565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a5160008383613034565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abb90615023565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612bb59190613973565b60405180910390a3505050565b612bcd8484846124d4565b612bd984848484613156565b612c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0f906150b5565b60405180910390fd5b50505050565b606060118054612c2d906144d3565b80601f0160208091040260200160405190810160405280929190818152602001828054612c59906144d3565b8015612ca65780601f10612c7b57610100808354040283529160200191612ca6565b820191906000526020600020905b815481529060010190602001808311612c8957829003601f168201915b5050505050905090565b60606000821415612cf8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e0c565b600082905060005b60008214612d2a578080612d1390614756565b915050600a82612d239190615104565b9150612d00565b60008167ffffffffffffffff811115612d4657612d45613716565b5b6040519080825280601f01601f191660200182016040528015612d785781602001600182028036833780820191505090505b5090505b60008514612e0557600182612d919190614ecb565b9150600a85612da09190615135565b6030612dac9190614131565b60f81b818381518110612dc257612dc1614727565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612dfe9190615104565b9450612d7c565b8093505050505b919050565b600081604051602001612e2491906151dd565b604051602081830303815290604052805190602001209050919050565b6000806000612e5085856132ed565b91509150612e5d8161333f565b819250505092915050565b612e72838361287b565b612e7f6000848484613156565b612ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb5906150b5565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60011515600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141561302f57600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480612fef5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b61302e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130259061529b565b60405180910390fd5b5b505050565b505050565b600061304482611680565b905061305281600084612f2f565b61305d600083612386565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ad9190614ecb565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461315281600084613034565b5050565b60006131778473ffffffffffffffffffffffffffffffffffffffff16613514565b156132e0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131a061237e565b8786866040518563ffffffff1660e01b81526004016131c29493929190615310565b602060405180830381600087803b1580156131dc57600080fd5b505af192505050801561320d57506040513d601f19601f8201168201806040525081019061320a9190615371565b60015b613290573d806000811461323d576040519150601f19603f3d011682016040523d82523d6000602084013e613242565b606091505b50600081511415613288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327f906150b5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132e5565b600190505b949350505050565b60008060418351141561332f5760008060006020860151925060408601519150606086015160001a905061332387828585613537565b94509450505050613338565b60006002915091505b9250929050565b600060048111156133535761335261539e565b5b8160048111156133665761336561539e565b5b141561337157613511565b600160048111156133855761338461539e565b5b8160048111156133985761339761539e565b5b14156133d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d090615419565b60405180910390fd5b600260048111156133ed576133ec61539e565b5b816004811115613400576133ff61539e565b5b1415613441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343890615485565b60405180910390fd5b600360048111156134555761345461539e565b5b8160048111156134685761346761539e565b5b14156134a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a090615517565b60405180910390fd5b6004808111156134bc576134bb61539e565b5b8160048111156134cf576134ce61539e565b5b1415613510576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613507906155a9565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561357257600060039150915061363b565b601b8560ff161415801561358a5750601c8560ff1614155b1561359c57600060049150915061363b565b6000600187878787604051600081526020016040526040516135c194939291906155f4565b6020604051602081039080840390855afa1580156135e3573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156136325760006001925092505061363b565b80600092509250505b94509492505050565b828054613650906144d3565b90600052602060002090601f01602090048101928261367257600085556136b9565b82601f1061368b57805160ff19168380011785556136b9565b828001600101855582156136b9579182015b828111156136b857825182559160200191906001019061369d565b5b5090506136c691906136ca565b5090565b5b808211156136e35760008160009055506001016136cb565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61374e82613705565b810181811067ffffffffffffffff8211171561376d5761376c613716565b5b80604052505050565b60006137806136e7565b905061378c8282613745565b919050565b600067ffffffffffffffff8211156137ac576137ab613716565b5b6137b582613705565b9050602081019050919050565b82818337600083830152505050565b60006137e46137df84613791565b613776565b905082815260208101848484011115613800576137ff613700565b5b61380b8482856137c2565b509392505050565b600082601f830112613828576138276136fb565b5b81356138388482602086016137d1565b91505092915050565b6000819050919050565b61385481613841565b811461385f57600080fd5b50565b6000813590506138718161384b565b92915050565b6000806040838503121561388e5761388d6136f1565b5b600083013567ffffffffffffffff8111156138ac576138ab6136f6565b5b6138b885828601613813565b92505060206138c985828601613862565b9150509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613908816138d3565b811461391357600080fd5b50565b600081359050613925816138ff565b92915050565b600060208284031215613941576139406136f1565b5b600061394f84828501613916565b91505092915050565b60008115159050919050565b61396d81613958565b82525050565b60006020820190506139886000830184613964565b92915050565b6000602082840312156139a4576139a36136f1565b5b60006139b284828501613862565b91505092915050565b600061ffff82169050919050565b6139d2816139bb565b82525050565b6139e181613841565b82525050565b60006040820190506139fc60008301856139c9565b613a0960208301846139d8565b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a3b82613a10565b9050919050565b613a4b81613a30565b8114613a5657600080fd5b50565b600081359050613a6881613a42565b92915050565b600060208284031215613a8457613a836136f1565b5b6000613a9284828501613a59565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ad5578082015181840152602081019050613aba565b83811115613ae4576000848401525b50505050565b6000613af582613a9b565b613aff8185613aa6565b9350613b0f818560208601613ab7565b613b1881613705565b840191505092915050565b60006020820190508181036000830152613b3d8184613aea565b905092915050565b613b4e81613a30565b82525050565b6000602082019050613b696000830184613b45565b92915050565b60008060408385031215613b8657613b856136f1565b5b6000613b9485828601613a59565b9250506020613ba585828601613862565b9150509250929050565b6000602082019050613bc460008301846139d8565b92915050565b600080600060608486031215613be357613be26136f1565b5b6000613bf186828701613a59565b9350506020613c0286828701613a59565b9250506040613c1386828701613862565b9150509250925092565b600067ffffffffffffffff821115613c3857613c37613716565b5b613c4182613705565b9050602081019050919050565b6000613c61613c5c84613c1d565b613776565b905082815260208101848484011115613c7d57613c7c613700565b5b613c888482856137c2565b509392505050565b600082601f830112613ca557613ca46136fb565b5b8135613cb5848260208601613c4e565b91505092915050565b600060208284031215613cd457613cd36136f1565b5b600082013567ffffffffffffffff811115613cf257613cf16136f6565b5b613cfe84828501613c90565b91505092915050565b600080fd5b600080fd5b60008083601f840112613d2757613d266136fb565b5b8235905067ffffffffffffffff811115613d4457613d43613d07565b5b602083019150836020820283011115613d6057613d5f613d0c565b5b9250929050565b60008060208385031215613d7e57613d7d6136f1565b5b600083013567ffffffffffffffff811115613d9c57613d9b6136f6565b5b613da885828601613d11565b92509250509250929050565b6000613dbf82613a10565b9050919050565b613dcf81613db4565b8114613dda57600080fd5b50565b600081359050613dec81613dc6565b92915050565b600060208284031215613e0857613e076136f1565b5b6000613e1684828501613ddd565b91505092915050565b600080600060608486031215613e3857613e376136f1565b5b6000613e4686828701613a59565b9350506020613e5786828701613862565b925050604084013567ffffffffffffffff811115613e7857613e776136f6565b5b613e8486828701613813565b9150509250925092565b60008060408385031215613ea557613ea46136f1565b5b6000613eb385828601613a59565b9250506020613ec485828601613ddd565b9150509250929050565b613ed781613958565b8114613ee257600080fd5b50565b600081359050613ef481613ece565b92915050565b60008060408385031215613f1157613f106136f1565b5b6000613f1f85828601613a59565b9250506020613f3085828601613ee5565b9150509250929050565b600060208284031215613f5057613f4f6136f1565b5b6000613f5e84828501613ee5565b91505092915050565b60008060008060808587031215613f8157613f806136f1565b5b6000613f8f87828801613a59565b9450506020613fa087828801613a59565b9350506040613fb187828801613862565b925050606085013567ffffffffffffffff811115613fd257613fd16136f6565b5b613fde87828801613813565b91505092959194509250565b60008060408385031215614001576140006136f1565b5b600061400f85828601613a59565b925050602061402085828601613a59565b9150509250929050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614060601f83613aa6565b915061406b8261402a565b602082019050919050565b6000602082019050818103600083015261408f81614053565b9050919050565b7f4d494e545f4e4f545f5354415254454400000000000000000000000000000000600082015250565b60006140cc601083613aa6565b91506140d782614096565b602082019050919050565b600060208201905081810360008301526140fb816140bf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061413c82613841565b915061414783613841565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561417c5761417b614102565b5b828201905092915050565b7f4d41585f545241444541424c455f535550504c595f5245414348454400000000600082015250565b60006141bd601c83613aa6565b91506141c882614187565b602082019050919050565b600060208201905081810360008301526141ec816141b0565b9050919050565b60008160601b9050919050565b600061420b826141f3565b9050919050565b600061421d82614200565b9050919050565b61423561423082613a30565b614212565b82525050565b6000819050919050565b61425661425182613841565b61423b565b82525050565b60006142688285614224565b6014820191506142788284614245565b6020820191508190509392505050565b7f484153485f414c52454144595f55534544000000000000000000000000000000600082015250565b60006142be601183613aa6565b91506142c982614288565b602082019050919050565b600060208201905081810360008301526142ed816142b1565b9050919050565b7f494e56414c49445f5349474e4552000000000000000000000000000000000000600082015250565b600061432a600e83613aa6565b9150614335826142f4565b602082019050919050565b600060208201905081810360008301526143598161431d565b9050919050565b7f414444524553535f414c52454144595f4d494e54454400000000000000000000600082015250565b6000614396601683613aa6565b91506143a182614360565b602082019050919050565b600060208201905081810360008301526143c581614389565b9050919050565b7f494e56414c49445f4554485f53454e5400000000000000000000000000000000600082015250565b6000614402601083613aa6565b915061440d826143cc565b602082019050919050565b60006020820190508181036000830152614431816143f5565b9050919050565b7f5349474e45525f414444524553535f5a45524f00000000000000000000000000600082015250565b600061446e601383613aa6565b915061447982614438565b602082019050919050565b6000602082019050818103600083015261449d81614461565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144eb57607f821691505b602082108114156144ff576144fe6144a4565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614561602183613aa6565b915061456c82614505565b604082019050919050565b6000602082019050818103600083015261459081614554565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006145f3603e83613aa6565b91506145fe82614597565b604082019050919050565b60006020820190508181036000830152614622816145e6565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614685602e83613aa6565b915061469082614629565b604082019050919050565b600060208201905081810360008301526146b481614678565b9050919050565b7f43414e545f4144445f534f554c424f554e445f4c4953545f434c4f5345440000600082015250565b60006146f1601e83613aa6565b91506146fc826146bb565b602082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061476182613841565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561479457614793614102565b5b600182019050919050565b7f4f6e6c7920746865206f776e6572206f662074686520746f6b656e2063616e2060008201527f6275726e2069742e000000000000000000000000000000000000000000000000602082015250565b60006147fb602883613aa6565b91506148068261479f565b604082019050919050565b6000602082019050818103600083015261482a816147ee565b9050919050565b7f57495448445241575f414444524553535f5a45524f0000000000000000000000600082015250565b6000614867601583613aa6565b915061487282614831565b602082019050919050565b600060208201905081810360008301526148968161485a565b9050919050565b7f454d5054595f42414c414e434500000000000000000000000000000000000000600082015250565b60006148d3600d83613aa6565b91506148de8261489d565b602082019050919050565b60006020820190508181036000830152614902816148c6565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061493f601883613aa6565b915061494a82614909565b602082019050919050565b6000602082019050818103600083015261496e81614932565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006149d1602983613aa6565b91506149dc82614975565b604082019050919050565b60006020820190508181036000830152614a00816149c4565b9050919050565b7f414444524553535f49535f4e4f545f4f4e5f534f554c424f554e445300000000600082015250565b6000614a3d601c83613aa6565b9150614a4882614a07565b602082019050919050565b60006020820190508181036000830152614a6c81614a30565b9050919050565b600081519050614a828161384b565b92915050565b600060208284031215614a9e57614a9d6136f1565b5b6000614aac84828501614a73565b91505092915050565b6000819050919050565b6000614ada614ad5614ad084613a10565b614ab5565b613a10565b9050919050565b6000614aec82614abf565b9050919050565b6000614afe82614ae1565b9050919050565b614b0e81614af3565b82525050565b6000606082019050614b296000830186613b45565b614b366020830185614b05565b614b4360408301846139d8565b949350505050565b600081519050614b5a81613ece565b92915050565b600060208284031215614b7657614b756136f1565b5b6000614b8484828501614b4b565b91505092915050565b7f43414e545f52454d4f56455f534f554c424f554e445f4c4953545f434c4f534560008201527f4400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614be9602183613aa6565b9150614bf482614b8d565b604082019050919050565b60006020820190508181036000830152614c1881614bdc565b9050919050565b6000614c2a82613841565b91506000821415614c3e57614c3d614102565b5b600182039050919050565b600081905092915050565b6000614c5f82613a9b565b614c698185614c49565b9350614c79818560208601613ab7565b80840191505092915050565b6000614c918285614c54565b9150614c9d8284614c54565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d05602683613aa6565b9150614d1082614ca9565b604082019050919050565b60006020820190508181036000830152614d3481614cf8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d71602083613aa6565b9150614d7c82614d3b565b602082019050919050565b60006020820190508181036000830152614da081614d64565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614e03602583613aa6565b9150614e0e82614da7565b604082019050919050565b60006020820190508181036000830152614e3281614df6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614e95602483613aa6565b9150614ea082614e39565b604082019050919050565b60006020820190508181036000830152614ec481614e88565b9050919050565b6000614ed682613841565b9150614ee183613841565b925082821015614ef457614ef3614102565b5b828203905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f35602083613aa6565b9150614f4082614eff565b602082019050919050565b60006020820190508181036000830152614f6481614f28565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614fa1601c83613aa6565b9150614fac82614f6b565b602082019050919050565b60006020820190508181036000830152614fd081614f94565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061500d601983613aa6565b915061501882614fd7565b602082019050919050565b6000602082019050818103600083015261503c81615000565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061509f603283613aa6565b91506150aa82615043565b604082019050919050565b600060208201905081810360008301526150ce81615092565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061510f82613841565b915061511a83613841565b92508261512a576151296150d5565b5b828204905092915050565b600061514082613841565b915061514b83613841565b92508261515b5761515a6150d5565b5b828206905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061519c601c83614c49565b91506151a782615166565b601c82019050919050565b6000819050919050565b6000819050919050565b6151d76151d2826151b2565b6151bc565b82525050565b60006151e88261518f565b91506151f482846151c6565b60208201915081905092915050565b7f54686973206120536f756c626f756e6420746f6b656e2e2049742063616e6e6f60008201527f74206265207472616e736665727265642e2049742063616e206f6e6c7920626560208201527f206275726e65642062792074686520746f6b656e206f776e65722e0000000000604082015250565b6000615285605b83613aa6565b915061529082615203565b606082019050919050565b600060208201905081810360008301526152b481615278565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152e2826152bb565b6152ec81856152c6565b93506152fc818560208601613ab7565b61530581613705565b840191505092915050565b60006080820190506153256000830187613b45565b6153326020830186613b45565b61533f60408301856139d8565b818103606083015261535181846152d7565b905095945050505050565b60008151905061536b816138ff565b92915050565b600060208284031215615387576153866136f1565b5b60006153958482850161535c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615403601883613aa6565b915061540e826153cd565b602082019050919050565b60006020820190508181036000830152615432816153f6565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061546f601f83613aa6565b915061547a82615439565b602082019050919050565b6000602082019050818103600083015261549e81615462565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615501602283613aa6565b915061550c826154a5565b604082019050919050565b60006020820190508181036000830152615530816154f4565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615593602283613aa6565b915061559e82615537565b604082019050919050565b600060208201905081810360008301526155c281615586565b9050919050565b6155d2816151b2565b82525050565b600060ff82169050919050565b6155ee816155d8565b82525050565b600060808201905061560960008301876155c9565b61561660208301866155e5565b61562360408301856155c9565b61563060608301846155c9565b9594505050505056fea26469706673582212207169e476a00181a3789914f1a926ffb97eb6c5ba6c2e4471e1a010aadf61b14664736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.