ERC-721
Overview
Max Total Supply
723 SOLESAVY
Holders
425
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 SOLESAVYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
SoleSavySS4
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {ERC721} from "../lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; import {SafeTransferLib} from "../lib/solmate/src/utils/SafeTransferLib.sol"; import {Ownable} from "../lib/openzeppelin-contracts/contracts/access/Ownable.sol"; import {Strings} from "../lib/openzeppelin-contracts/contracts/utils/Strings.sol"; import {MerkleProof} from "../lib/openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol"; import {AccessControl} from "../lib/openzeppelin-contracts/contracts/access/AccessControl.sol"; /// @title SoleSavy - SS4 // *%%%%%% %%%%% // @@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ @ // %@@@@( /@@@@@@@@ @@( @@@@(%@@((((@@@@@@@@@@@@@@@/ // @@@@@@@ @@&@@, #@@ /@. /@@ @@@/@. %@@@@&@@@@@,,@@@,#@@@@@@@ // @@@@@&&&@@ @@@ @@@ @/ @@ . .@@&(@@@ /@@@/ / @@ @@ /@/ (@@@@@ // /@@@ /@/ ,@ %@, /@ @@@, ,(((/@@@@@% @@ @@@ @@ @@ @@ @@@ @@ // @@ /@@&@@/ @@& @@@ @@@@@@@/@ @ @ @@ @@ @@ @@ /@@@ @@ // @@( @@@@@@@@@ @@& /@@@ /@@@@ .@@@@@@ @@ @@( .@@ @@/ // ,@@@@@@@@@@@@@@@@@@(,((@,@@@@@@@, (@@@@@@@@@@@@@@@@@@@@@/ %@@ // .@@@@@@@@@@@@@@@@/@@@@@..... ...@@@@@@@@@@@@@@@. contract SoleSavySS4 is ERC721, AccessControl { using Strings for uint256; uint256 public totalSupply; uint256 public immutable maxSupply = 1023; uint256 public immutable reservedAmount = 123; uint256 public immutable price = 0.18 ether; // start time for each tier uint256 public publicSaleStartTime = 1650312000; // Mon Apr 18 2022 20:00:00 GMT+0000 uint256 public tierTwoAllowListStartTime = 1650225600; // Sun Apr 17 2022 20:00:00 GMT+0000 uint256 public tierOneAllowListStartTime = 1650218400; // Sun Apr 17 2022 18:00:00 GMT+0000 // ADMIN_ROLE is the only one that can withdraw bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); // MINT_ADMIN_ROLE can help to trigger any mint functionallity bytes32 public constant MINT_ADMIN_ROLE = keccak256("MINT_ADMIN_ROLE"); bytes32 public merkleRootTierOne; bytes32 public merkleRootTierTwo; string public baseURI; address public vault = 0xB0a4A006fC00cF714BADDc77BA7eca081426c0dA; address public ssOwner; mapping(address => uint256) public amountMintedPublic; mapping(address => uint256) public amountMintedPresale; constructor( string memory _name, string memory _symbol, string memory _tokenBaseURI, bytes32 _merkleRoot, bytes32 _merkleRootTwo, address _ssOwner, address[] memory minterRoles ) ERC721(_name, _symbol) { baseURI = _tokenBaseURI; merkleRootTierOne = _merkleRoot; merkleRootTierTwo = _merkleRootTwo; ssOwner = _ssOwner; _setupRole(MINT_ADMIN_ROLE, msg.sender); _setupRole(MINT_ADMIN_ROLE, _ssOwner); _setupRole(DEFAULT_ADMIN_ROLE, _ssOwner); _setupRole(ADMIN_ROLE, _ssOwner); uint256 minterRolesLength = minterRoles.length; for (uint256 i = 0; i < minterRolesLength; ) { _setupRole(MINT_ADMIN_ROLE, minterRoles[i]); unchecked { i++; } } } /*/////////////////////////////////////////////////////////////// MINT FUNCTION //////////////////////////////////////////////////////////////*/ /// @notice Mint NFT function. /// @param amount is the amount of NFT that the user will mint function publicSalesMint(uint256 amount) external payable { require( isSaleActive(publicSaleStartTime), "SSNFT: Public sale has not started yet." ); require( totalSupply + amount <= maxSupply - reservedAmount, "SSNFT: Sold out." ); require(amount <= 3, "SSNFT: You can only mint 3 in each transaction."); require(msg.value == price * amount, "SSNFT: Wrong ether value"); require( amountMintedPublic[msg.sender] + amount <= 3, "SSNFT: You can only mint 3 in total on Public Sale." ); _mintMultiple(amount); unchecked { amountMintedPublic[msg.sender] += amount; } } function allowListMintTierOne(uint256 amount, bytes32[] calldata proof) external payable { require( isSaleActive(tierOneAllowListStartTime), "SSNFT: Allowlist Tier One sale has not started yet." ); require(msg.value == price * amount, "SSNFT: Wrong ether value."); require(amount <= 3, "SSNFT: You can only mint 3 in each transaction."); require( totalSupply + amount <= maxSupply - reservedAmount, "SSNFT: Sold out." ); require( amountMintedPresale[msg.sender] + amount <= 3, "SSNFT: You can only mint 3 in total on Pre Sale." ); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); bool isValidLeaf = MerkleProof.verify(proof, merkleRootTierOne, leaf); require(isValidLeaf, "SSNFT: You are not on the allow list."); _mintMultiple(amount); unchecked { amountMintedPresale[msg.sender] += amount; } } function allowListMintTierTwo(uint256 amount, bytes32[] calldata proof) external payable { require( isSaleActive(tierTwoAllowListStartTime), "SSNFT: Allowlist Tier Two sale has not started yet." ); require(msg.value == price * amount, "SSNFT: Wrong ether value."); require(amount <= 3, "SSNFT: You can only mint 3 in each transaction."); require( totalSupply + amount <= maxSupply - reservedAmount, "SSNFT: Sold out." ); require( amountMintedPresale[msg.sender] + amount <= 3, "SSNFT: You can only mint 3 in total on Pre Sale." ); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); bool isValidLeaf = MerkleProof.verify(proof, merkleRootTierTwo, leaf); require(isValidLeaf, "SSNFT: You are not on the allow list."); _mintMultiple(amount); unchecked { amountMintedPresale[msg.sender] += amount; } } function _mintMultiple(uint256 amount) internal { for (uint256 index = 0; index < amount; ) { unchecked { _mint(msg.sender, totalSupply++); index++; } } } /// @notice detecting has sale started from internal variables. /// @param _time is the uint256 unix timestamp from internal variables. function isSaleActive(uint256 _time) public view returns (bool) { return _time > 0 && block.timestamp >= _time; } /*/////////////////////////////////////////////////////////////// ADMIN FUNCTIONS //////////////////////////////////////////////////////////////*/ /// @notice changing merkleRoot for tier 1 minting. /// @param _merkleRoot is the new merkle root function setMerkleRootTierOne(bytes32 _merkleRoot) external onlyRole(MINT_ADMIN_ROLE) { merkleRootTierOne = _merkleRoot; } /// @notice changing merkleRoot for tier 2 minting. /// @param _merkleRoot is the new merkle root function setMerkleRootTierTwo(bytes32 _merkleRoot) external onlyRole(MINT_ADMIN_ROLE) { merkleRootTierTwo = _merkleRoot; } /// @notice admin can mint before the sale started. /// @param to is the address that the NFT will be minted. /// @param amount is the amount that we want to mint. function reserve(address to, uint256 amount) external onlyRole(MINT_ADMIN_ROLE) { require(totalSupply + amount <= maxSupply, "SSNFT: Sold out"); for (uint256 index = 0; index < amount; ) { unchecked { _mint(to, totalSupply++); index++; } } } /// @notice changing baseURI. /// @param _newBaseURI is the new url for baseURI function setBaseURI(string memory _newBaseURI) external onlyRole(MINT_ADMIN_ROLE) { baseURI = _newBaseURI; } /// @notice changing publicSaleStartTime. /// @param _publicSaleStartTime is the new date for the public mint start time. function setPublicSaleStartTime(uint256 _publicSaleStartTime) external onlyRole(MINT_ADMIN_ROLE) { publicSaleStartTime = _publicSaleStartTime; } /// @notice changing tierTwoAllowListStartTime. /// @param _tierTwoAllowListStartTime is the new date for the tier two mint start time. function setTierTwoAllowListStartTime(uint256 _tierTwoAllowListStartTime) external onlyRole(MINT_ADMIN_ROLE) { tierTwoAllowListStartTime = _tierTwoAllowListStartTime; } /// @notice changing tierOneAllowListStartTime. /// @param _tierOneAllowListStartTime is the new date for the tier one mint start time. function setTierOneAllowListStartTime(uint256 _tierOneAllowListStartTime) external onlyRole(MINT_ADMIN_ROLE) { tierOneAllowListStartTime = _tierOneAllowListStartTime; } /*/////////////////////////////////////////////////////////////// ETH WITHDRAWAL //////////////////////////////////////////////////////////////*/ /// @notice Withdraw all ETH from the contract to the vault address. only ADMIN_ROLE can do this. function withdraw() external onlyRole(ADMIN_ROLE) { require(address(this).balance > 0, "Balance is empty"); SafeTransferLib.safeTransferETH(vault, address(this).balance); } /// @notice Change the vault address. only ADMIN_ROLE can do this. /// @param _vault is the new vault address function setVault(address _vault) external onlyRole(ADMIN_ROLE) { vault = _vault; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(ownerOf(tokenId) != address(0), "SSNFT: Token does not exist"); return bytes(baseURI).length > 0 ? baseURI : ""; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not 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: transfer caller is not 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); 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 a {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 a {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 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 { 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: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { event Debug(bool one, bool two, uint256 retsize); /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 be 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 v4.4.1 (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 (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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (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); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_tokenBaseURI","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRootTwo","type":"bytes32"},{"internalType":"address","name":"_ssOwner","type":"address"},{"internalType":"address[]","name":"minterRoles","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowListMintTierOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowListMintTierTwo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountMintedPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountMintedPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_time","type":"uint256"}],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootTierOne","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootTierTwo","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicSalesMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootTierOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootTierTwo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleStartTime","type":"uint256"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tierOneAllowListStartTime","type":"uint256"}],"name":"setTierOneAllowListStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tierTwoAllowListStartTime","type":"uint256"}],"name":"setTierTwoAllowListStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ssOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"tierOneAllowListStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tierTwoAllowListStartTime","outputs":[{"internalType":"uint256","name":"","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":[{"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":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040526103ff608090815250607b60a09081525067027f7d0bdb92000060c09081525063625dc34060085563625c71c060095563625c55a0600a5573b0a4a006fc00cf714baddc77ba7eca081426c0da600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200009e57600080fd5b5060405162005952380380620059528339818101604052810190620000c491906200061c565b86868160009080519060200190620000de9291906200042a565b508060019080519060200190620000f79291906200042a565b50505084600d9080519060200190620001129291906200042a565b5083600b8190555082600c8190555081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001947f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c233620002af60201b60201c565b620001c67f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c283620002af60201b60201c565b620001db6000801b83620002af60201b60201c565b6200020d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177583620002af60201b60201c565b60008151905060005b81811015620002a057620002927f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c28483815181106200027e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151620002af60201b60201c565b808060010191505062000216565b5050505050505050506200093e565b620002c18282620002c560201b60201c565b5050565b620002d78282620003b760201b60201c565b620003b35760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003586200042260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b82805462000438906200082f565b90600052602060002090601f0160209004810192826200045c5760008555620004a8565b82601f106200047757805160ff1916838001178555620004a8565b82800160010185558215620004a8579182015b82811115620004a75782518255916020019190600101906200048a565b5b509050620004b79190620004bb565b5090565b5b80821115620004d6576000816000905550600101620004bc565b5090565b6000620004f1620004eb8462000756565b6200072d565b905080838252602082019050828560208602820111156200051157600080fd5b60005b858110156200054557816200052a888262000594565b84526020840193506020830192505060018101905062000514565b5050509392505050565b600062000566620005608462000785565b6200072d565b9050828152602081018484840111156200057f57600080fd5b6200058c848285620007f9565b509392505050565b600081519050620005a5816200090a565b92915050565b600082601f830112620005bd57600080fd5b8151620005cf848260208601620004da565b91505092915050565b600081519050620005e98162000924565b92915050565b600082601f8301126200060157600080fd5b8151620006138482602086016200054f565b91505092915050565b600080600080600080600060e0888a0312156200063857600080fd5b600088015167ffffffffffffffff8111156200065357600080fd5b620006618a828b01620005ef565b975050602088015167ffffffffffffffff8111156200067f57600080fd5b6200068d8a828b01620005ef565b965050604088015167ffffffffffffffff811115620006ab57600080fd5b620006b98a828b01620005ef565b9550506060620006cc8a828b01620005d8565b9450506080620006df8a828b01620005d8565b93505060a0620006f28a828b0162000594565b92505060c088015167ffffffffffffffff8111156200071057600080fd5b6200071e8a828b01620005ab565b91505092959891949750929550565b6000620007396200074c565b905062000747828262000865565b919050565b6000604051905090565b600067ffffffffffffffff821115620007745762000773620008ca565b5b602082029050602081019050919050565b600067ffffffffffffffff821115620007a357620007a2620008ca565b5b620007ae82620008f9565b9050602081019050919050565b6000620007c882620007d9565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b8381101562000819578082015181840152602081019050620007fc565b8381111562000829576000848401525b50505050565b600060028204905060018216806200084857607f821691505b602082108114156200085f576200085e6200089b565b5b50919050565b6200087082620008f9565b810181811067ffffffffffffffff82111715620008925762000891620008ca565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6200091581620007bb565b81146200092157600080fd5b50565b6200092f81620007cf565b81146200093b57600080fd5b50565b60805160a05160c051614f9e620009b460003960008181610dd00152818161142c01528181611a2a0152611ace015260008181610e800152818161134c01528181611b7e015261213b015260008181610ea10152818161136d01528181611b9f01528181611fba01526120830152614f9e6000f3fe6080604052600436106102935760003560e01c80636c0360eb1161015a578063a22cb465116100c1578063cc47a40b1161007a578063cc47a40b146109fd578063d547741f14610a26578063d5abeb0114610a4f578063e985e9c514610a7a578063f92c45b714610ab7578063fbfa77cf14610ae257610293565b8063a22cb465146108ec578063a56d649314610915578063ad5b0fb614610952578063b88d4fde1461096e578063bbf5591514610997578063c87b56dd146109c057610293565b806391d148541161011357806391d14854146107d857806395d89b41146108155780639735eff814610840578063980557791461086b578063a035b1fe14610896578063a217fddf146108c157610293565b80636c0360eb146106c85780636d5d40c6146106f357806370a082311461071c57806375b238fc1461075957806385a712af146107845780638fac14dd146107af57610293565b80632f2ff15d116101fe57806355f804b3116101b757806355f804b3146105a657806357319165146105cf5780636352211e1461060c5780636386f2c3146106495780636817031b146106745780636bb7b1d91461069d57610293565b80632f2ff15d146104cf57806336568abe146104f85780633ccfd60b14610521578063413f8e931461053857806342842e0e146105615780634d192b831461058a57610293565b806315a41f671161025057806315a41f67146103ab57806318160ddd146103d657806323b872dd14610401578063248a9ca31461042a578063285f12391461046757806329b108a1146104a457610293565b806301ffc9a7146102985780630278241a146102d557806306fdde03146102fe578063081812fc14610329578063095ea7b3146103665780630c282a631461038f575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba9190613829565b610b0d565b6040516102cc9190613f2c565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f791906137c4565b610b1f565b005b34801561030a57600080fd5b50610313610b54565b6040516103209190613f62565b60405180910390f35b34801561033557600080fd5b50610350600480360381019061034b91906138bc565b610be6565b60405161035d9190613ec5565b60405180910390f35b34801561037257600080fd5b5061038d60048036038101906103889190613788565b610c6b565b005b6103a960048036038101906103a491906138e5565b610d83565b005b3480156103b757600080fd5b506103c06110c1565b6040516103cd9190613f47565b60405180910390f35b3480156103e257600080fd5b506103eb6110c7565b6040516103f89190614324565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190613682565b6110cd565b005b34801561043657600080fd5b50610451600480360381019061044c91906137c4565b61112d565b60405161045e9190613f47565b60405180910390f35b34801561047357600080fd5b5061048e600480360381019061048991906138bc565b61114d565b60405161049b9190613f2c565b60405180910390f35b3480156104b057600080fd5b506104b9611165565b6040516104c69190613f47565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f191906137ed565b61116b565b005b34801561050457600080fd5b5061051f600480360381019061051a91906137ed565b61118c565b005b34801561052d57600080fd5b5061053661120f565b005b34801561054457600080fd5b5061055f600480360381019061055a91906137c4565b6112ab565b005b34801561056d57600080fd5b5061058860048036038101906105839190613682565b6112e0565b005b6105a4600480360381019061059f91906138bc565b611300565b005b3480156105b257600080fd5b506105cd60048036038101906105c8919061387b565b61157d565b005b3480156105db57600080fd5b506105f660048036038101906105f1919061361d565b6115c2565b6040516106039190614324565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e91906138bc565b6115da565b6040516106409190613ec5565b60405180910390f35b34801561065557600080fd5b5061065e61168c565b60405161066b9190614324565b60405180910390f35b34801561068057600080fd5b5061069b6004803603810190610696919061361d565b611692565b005b3480156106a957600080fd5b506106b2611701565b6040516106bf9190614324565b60405180910390f35b3480156106d457600080fd5b506106dd611707565b6040516106ea9190613f62565b60405180910390f35b3480156106ff57600080fd5b5061071a600480360381019061071591906138bc565b611795565b005b34801561072857600080fd5b50610743600480360381019061073e919061361d565b6117ca565b6040516107509190614324565b60405180910390f35b34801561076557600080fd5b5061076e611882565b60405161077b9190613f47565b60405180910390f35b34801561079057600080fd5b506107996118a6565b6040516107a69190613f47565b60405180910390f35b3480156107bb57600080fd5b506107d660048036038101906107d191906138bc565b6118ca565b005b3480156107e457600080fd5b506107ff60048036038101906107fa91906137ed565b6118ff565b60405161080c9190613f2c565b60405180910390f35b34801561082157600080fd5b5061082a61196a565b6040516108379190613f62565b60405180910390f35b34801561084c57600080fd5b506108556119fc565b6040516108629190613ec5565b60405180910390f35b34801561087757600080fd5b50610880611a22565b60405161088d9190614324565b60405180910390f35b3480156108a257600080fd5b506108ab611a28565b6040516108b89190614324565b60405180910390f35b3480156108cd57600080fd5b506108d6611a4c565b6040516108e39190613f47565b60405180910390f35b3480156108f857600080fd5b50610913600480360381019061090e919061374c565b611a53565b005b34801561092157600080fd5b5061093c6004803603810190610937919061361d565b611a69565b6040516109499190614324565b60405180910390f35b61096c600480360381019061096791906138e5565b611a81565b005b34801561097a57600080fd5b50610995600480360381019061099091906136d1565b611dbf565b005b3480156109a357600080fd5b506109be60048036038101906109b991906138bc565b611e21565b005b3480156109cc57600080fd5b506109e760048036038101906109e291906138bc565b611e56565b6040516109f49190613f62565b60405180910390f35b348015610a0957600080fd5b50610a246004803603810190610a1f9190613788565b611f8e565b005b348015610a3257600080fd5b50610a4d6004803603810190610a4891906137ed565b612060565b005b348015610a5b57600080fd5b50610a64612081565b604051610a719190614324565b60405180910390f35b348015610a8657600080fd5b50610aa16004803603810190610a9c9190613646565b6120a5565b604051610aae9190613f2c565b60405180910390f35b348015610ac357600080fd5b50610acc612139565b604051610ad99190614324565b60405180910390f35b348015610aee57600080fd5b50610af761215d565b604051610b049190613ec5565b60405180910390f35b6000610b1882612183565b9050919050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c2610b49816121fd565b81600b819055505050565b606060008054610b63906145d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8f906145d7565b8015610bdc5780601f10610bb157610100808354040283529160200191610bdc565b820191906000526020600020905b815481529060010190602001808311610bbf57829003601f168201915b5050505050905090565b6000610bf182612211565b610c30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c27906141a4565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c76826115da565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cde90614224565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d0661227d565b73ffffffffffffffffffffffffffffffffffffffff161480610d355750610d3481610d2f61227d565b6120a5565b5b610d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6b906140e4565b60405180910390fd5b610d7e8383612285565b505050565b610d8e600a5461114d565b610dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc490614104565b60405180910390fd5b827f0000000000000000000000000000000000000000000000000000000000000000610df9919061445f565b3414610e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3190614184565b60405180910390fd5b6003831115610e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e75906142c4565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610eca91906144b9565b83600754610ed89190614409565b1115610f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f10906140a4565b60405180910390fd5b600383601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f669190614409565b1115610fa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9e906142a4565b60405180910390fd5b600033604051602001610fba9190613e70565b6040516020818303038152906040528051906020012090506000611022848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b548461233e565b905080611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b906141c4565b60405180910390fd5b61106d85612355565b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505050505050565b600b5481565b60075481565b6110de6110d861227d565b8261238b565b61111d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111490614264565b60405180910390fd5b611128838383612469565b505050565b600060066000838152602001908152602001600020600101549050919050565b6000808211801561115e5750814210155b9050919050565b600c5481565b6111748261112d565b61117d816121fd565b61118783836126d0565b505050565b61119461227d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890614304565b60405180910390fd5b61120b82826127b1565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611239816121fd565b6000471161127c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611273906142e4565b60405180910390fd5b6112a8600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647612893565b50565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26112d5816121fd565b81600c819055505050565b6112fb83838360405180602001604052806000815250611dbf565b505050565b61130b60085461114d565b61134a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611341906141e4565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061139691906144b9565b816007546113a49190614409565b11156113e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dc906140a4565b60405180910390fd5b6003811115611429576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611420906142c4565b60405180910390fd5b807f0000000000000000000000000000000000000000000000000000000000000000611455919061445f565b3414611496576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148d90614064565b60405180910390fd5b600381601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114e39190614409565b1115611524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151b90614144565b60405180910390fd5b61152d81612355565b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26115a7816121fd565b81600d90805190602001906115bd9291906133e2565b505050565b60116020528060005260406000206000915090505481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167a90614124565b60405180910390fd5b80915050919050565b60095481565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756116bc816121fd565b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60085481565b600d8054611714906145d7565b80601f0160208091040260200160405190810160405280929190818152602001828054611740906145d7565b801561178d5780601f106117625761010080835404028352916020019161178d565b820191906000526020600020905b81548152906001019060200180831161177057829003601f168201915b505050505081565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26117bf816121fd565b816008819055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561183b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611832906140c4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c281565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26118f4816121fd565b81600a819055505050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054611979906145d7565b80601f01602080910402602001604051908101604052809291908181526020018280546119a5906145d7565b80156119f25780601f106119c7576101008083540402835291602001916119f2565b820191906000526020600020905b8154815290600101906020018083116119d557829003601f168201915b5050505050905090565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000801b81565b611a65611a5e61227d565b83836128e6565b5050565b60106020528060005260406000206000915090505481565b611a8c60095461114d565b611acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac290614204565b60405180910390fd5b827f0000000000000000000000000000000000000000000000000000000000000000611af7919061445f565b3414611b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2f90614184565b60405180910390fd5b6003831115611b7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b73906142c4565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611bc891906144b9565b83600754611bd69190614409565b1115611c17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0e906140a4565b60405180910390fd5b600383601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c649190614409565b1115611ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9c906142a4565b60405180910390fd5b600033604051602001611cb89190613e70565b6040516020818303038152906040528051906020012090506000611d20848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c548461233e565b905080611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d59906141c4565b60405180910390fd5b611d6b85612355565b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505050505050565b611dd0611dca61227d565b8361238b565b611e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0690614264565b60405180910390fd5b611e1b84848484612a53565b50505050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c2611e4b816121fd565b816009819055505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16611e79836115da565b73ffffffffffffffffffffffffffffffffffffffff161415611ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec790614004565b60405180910390fd5b6000600d8054611edf906145d7565b905011611efb5760405180602001604052806000815250611f87565b600d8054611f08906145d7565b80601f0160208091040260200160405190810160405280929190818152602001828054611f34906145d7565b8015611f815780601f10611f5657610100808354040283529160200191611f81565b820191906000526020600020905b815481529060010190602001808311611f6457829003601f168201915b50505050505b9050919050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c2611fb8816121fd565b7f000000000000000000000000000000000000000000000000000000000000000082600754611fe79190614409565b1115612028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201f90614244565b60405180910390fd5b60005b8281101561205a5761204d846007600081548092919060010191905055612aaf565b808060010191505061202b565b50505050565b6120698261112d565b612072816121fd565b61207c83836127b1565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121f657506121f582612c89565b5b9050919050565b61220e8161220961227d565b612d6b565b50565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122f8836115da565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261234b8584612e08565b1490509392505050565b60005b818110156123875761237a336007600081548092919060010191905055612aaf565b8080600101915050612358565b5050565b600061239682612211565b6123d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123cc90614084565b60405180910390fd5b60006123e0836115da565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612422575061242181856120a5565b5b8061246057508373ffffffffffffffffffffffffffffffffffffffff1661244884610be6565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612489826115da565b73ffffffffffffffffffffffffffffffffffffffff16146124df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d690613fc4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561254f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254690614024565b60405180910390fd5b61255a838383612ea3565b612565600082612285565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125b591906144b9565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461260c9190614409565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126cb838383612ea8565b505050565b6126da82826118ff565b6127ad5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061275261227d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6127bb82826118ff565b1561288f5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061283461227d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080600080600085875af19050806128e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d890614284565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294c90614044565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a469190613f2c565b60405180910390a3505050565b612a5e848484612469565b612a6a84848484612ead565b612aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa090613fa4565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1690614164565b60405180910390fd5b612b2881612211565b15612b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5f90613fe4565b60405180910390fd5b612b7460008383612ea3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bc49190614409565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c8560008383612ea8565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d5457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d645750612d6382613044565b5b9050919050565b612d7582826118ff565b612e0457612d9a8173ffffffffffffffffffffffffffffffffffffffff1660146130ae565b612da88360001c60206130ae565b604051602001612db9929190613e8b565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfb9190613f62565b60405180910390fd5b5050565b60008082905060005b8451811015612e98576000858281518110612e55577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612e7757612e7083826133a8565b9250612e84565b612e8181846133a8565b92505b508080612e909061463a565b915050612e11565b508091505092915050565b505050565b505050565b6000612ece8473ffffffffffffffffffffffffffffffffffffffff166133bf565b15613037578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ef761227d565b8786866040518563ffffffff1660e01b8152600401612f199493929190613ee0565b602060405180830381600087803b158015612f3357600080fd5b505af1925050508015612f6457506040513d601f19601f82011682018060405250810190612f619190613852565b60015b612fe7573d8060008114612f94576040519150601f19603f3d011682016040523d82523d6000602084013e612f99565b606091505b50600081511415612fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd690613fa4565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061303c565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026130c1919061445f565b6130cb9190614409565b67ffffffffffffffff81111561310a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561313c5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061319a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613224577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613264919061445f565b61326e9190614409565b90505b600181111561335a577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613313577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613353906145ad565b9050613271565b506000841461339e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339590613f84565b60405180910390fd5b8091505092915050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546133ee906145d7565b90600052602060002090601f0160209004810192826134105760008555613457565b82601f1061342957805160ff1916838001178555613457565b82800160010185558215613457579182015b8281111561345657825182559160200191906001019061343b565b5b5090506134649190613468565b5090565b5b80821115613481576000816000905550600101613469565b5090565b600061349861349384614364565b61433f565b9050828152602081018484840111156134b057600080fd5b6134bb84828561456b565b509392505050565b60006134d66134d184614395565b61433f565b9050828152602081018484840111156134ee57600080fd5b6134f984828561456b565b509392505050565b60008135905061351081614ef5565b92915050565b60008083601f84011261352857600080fd5b8235905067ffffffffffffffff81111561354157600080fd5b60208301915083602082028301111561355957600080fd5b9250929050565b60008135905061356f81614f0c565b92915050565b60008135905061358481614f23565b92915050565b60008135905061359981614f3a565b92915050565b6000815190506135ae81614f3a565b92915050565b600082601f8301126135c557600080fd5b81356135d5848260208601613485565b91505092915050565b600082601f8301126135ef57600080fd5b81356135ff8482602086016134c3565b91505092915050565b60008135905061361781614f51565b92915050565b60006020828403121561362f57600080fd5b600061363d84828501613501565b91505092915050565b6000806040838503121561365957600080fd5b600061366785828601613501565b925050602061367885828601613501565b9150509250929050565b60008060006060848603121561369757600080fd5b60006136a586828701613501565b93505060206136b686828701613501565b92505060406136c786828701613608565b9150509250925092565b600080600080608085870312156136e757600080fd5b60006136f587828801613501565b945050602061370687828801613501565b935050604061371787828801613608565b925050606085013567ffffffffffffffff81111561373457600080fd5b613740878288016135b4565b91505092959194509250565b6000806040838503121561375f57600080fd5b600061376d85828601613501565b925050602061377e85828601613560565b9150509250929050565b6000806040838503121561379b57600080fd5b60006137a985828601613501565b92505060206137ba85828601613608565b9150509250929050565b6000602082840312156137d657600080fd5b60006137e484828501613575565b91505092915050565b6000806040838503121561380057600080fd5b600061380e85828601613575565b925050602061381f85828601613501565b9150509250929050565b60006020828403121561383b57600080fd5b60006138498482850161358a565b91505092915050565b60006020828403121561386457600080fd5b60006138728482850161359f565b91505092915050565b60006020828403121561388d57600080fd5b600082013567ffffffffffffffff8111156138a757600080fd5b6138b3848285016135de565b91505092915050565b6000602082840312156138ce57600080fd5b60006138dc84828501613608565b91505092915050565b6000806000604084860312156138fa57600080fd5b600061390886828701613608565b935050602084013567ffffffffffffffff81111561392557600080fd5b61393186828701613516565b92509250509250925092565b613946816144ed565b82525050565b61395d613958826144ed565b614683565b82525050565b61396c816144ff565b82525050565b61397b8161450b565b82525050565b600061398c826143c6565b61399681856143dc565b93506139a681856020860161457a565b6139af81614734565b840191505092915050565b60006139c5826143d1565b6139cf81856143ed565b93506139df81856020860161457a565b6139e881614734565b840191505092915050565b60006139fe826143d1565b613a0881856143fe565b9350613a1881856020860161457a565b80840191505092915050565b6000613a316020836143ed565b9150613a3c82614752565b602082019050919050565b6000613a546032836143ed565b9150613a5f8261477b565b604082019050919050565b6000613a776025836143ed565b9150613a82826147ca565b604082019050919050565b6000613a9a601c836143ed565b9150613aa582614819565b602082019050919050565b6000613abd601b836143ed565b9150613ac882614842565b602082019050919050565b6000613ae06024836143ed565b9150613aeb8261486b565b604082019050919050565b6000613b036019836143ed565b9150613b0e826148ba565b602082019050919050565b6000613b266018836143ed565b9150613b31826148e3565b602082019050919050565b6000613b49602c836143ed565b9150613b548261490c565b604082019050919050565b6000613b6c6010836143ed565b9150613b778261495b565b602082019050919050565b6000613b8f6029836143ed565b9150613b9a82614984565b604082019050919050565b6000613bb26038836143ed565b9150613bbd826149d3565b604082019050919050565b6000613bd56033836143ed565b9150613be082614a22565b604082019050919050565b6000613bf86029836143ed565b9150613c0382614a71565b604082019050919050565b6000613c1b6033836143ed565b9150613c2682614ac0565b604082019050919050565b6000613c3e6020836143ed565b9150613c4982614b0f565b602082019050919050565b6000613c616019836143ed565b9150613c6c82614b38565b602082019050919050565b6000613c84602c836143ed565b9150613c8f82614b61565b604082019050919050565b6000613ca76025836143ed565b9150613cb282614bb0565b604082019050919050565b6000613cca6027836143ed565b9150613cd582614bff565b604082019050919050565b6000613ced6033836143ed565b9150613cf882614c4e565b604082019050919050565b6000613d106021836143ed565b9150613d1b82614c9d565b604082019050919050565b6000613d33600f836143ed565b9150613d3e82614cec565b602082019050919050565b6000613d566031836143ed565b9150613d6182614d15565b604082019050919050565b6000613d796013836143ed565b9150613d8482614d64565b602082019050919050565b6000613d9c6030836143ed565b9150613da782614d8d565b604082019050919050565b6000613dbf6017836143fe565b9150613dca82614ddc565b601782019050919050565b6000613de2602f836143ed565b9150613ded82614e05565b604082019050919050565b6000613e056010836143ed565b9150613e1082614e54565b602082019050919050565b6000613e286011836143fe565b9150613e3382614e7d565b601182019050919050565b6000613e4b602f836143ed565b9150613e5682614ea6565b604082019050919050565b613e6a81614561565b82525050565b6000613e7c828461394c565b60148201915081905092915050565b6000613e9682613db2565b9150613ea282856139f3565b9150613ead82613e1b565b9150613eb982846139f3565b91508190509392505050565b6000602082019050613eda600083018461393d565b92915050565b6000608082019050613ef5600083018761393d565b613f02602083018661393d565b613f0f6040830185613e61565b8181036060830152613f218184613981565b905095945050505050565b6000602082019050613f416000830184613963565b92915050565b6000602082019050613f5c6000830184613972565b92915050565b60006020820190508181036000830152613f7c81846139ba565b905092915050565b60006020820190508181036000830152613f9d81613a24565b9050919050565b60006020820190508181036000830152613fbd81613a47565b9050919050565b60006020820190508181036000830152613fdd81613a6a565b9050919050565b60006020820190508181036000830152613ffd81613a8d565b9050919050565b6000602082019050818103600083015261401d81613ab0565b9050919050565b6000602082019050818103600083015261403d81613ad3565b9050919050565b6000602082019050818103600083015261405d81613af6565b9050919050565b6000602082019050818103600083015261407d81613b19565b9050919050565b6000602082019050818103600083015261409d81613b3c565b9050919050565b600060208201905081810360008301526140bd81613b5f565b9050919050565b600060208201905081810360008301526140dd81613b82565b9050919050565b600060208201905081810360008301526140fd81613ba5565b9050919050565b6000602082019050818103600083015261411d81613bc8565b9050919050565b6000602082019050818103600083015261413d81613beb565b9050919050565b6000602082019050818103600083015261415d81613c0e565b9050919050565b6000602082019050818103600083015261417d81613c31565b9050919050565b6000602082019050818103600083015261419d81613c54565b9050919050565b600060208201905081810360008301526141bd81613c77565b9050919050565b600060208201905081810360008301526141dd81613c9a565b9050919050565b600060208201905081810360008301526141fd81613cbd565b9050919050565b6000602082019050818103600083015261421d81613ce0565b9050919050565b6000602082019050818103600083015261423d81613d03565b9050919050565b6000602082019050818103600083015261425d81613d26565b9050919050565b6000602082019050818103600083015261427d81613d49565b9050919050565b6000602082019050818103600083015261429d81613d6c565b9050919050565b600060208201905081810360008301526142bd81613d8f565b9050919050565b600060208201905081810360008301526142dd81613dd5565b9050919050565b600060208201905081810360008301526142fd81613df8565b9050919050565b6000602082019050818103600083015261431d81613e3e565b9050919050565b60006020820190506143396000830184613e61565b92915050565b600061434961435a565b90506143558282614609565b919050565b6000604051905090565b600067ffffffffffffffff82111561437f5761437e614705565b5b61438882614734565b9050602081019050919050565b600067ffffffffffffffff8211156143b0576143af614705565b5b6143b982614734565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061441482614561565b915061441f83614561565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614454576144536146a7565b5b828201905092915050565b600061446a82614561565b915061447583614561565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144ae576144ad6146a7565b5b828202905092915050565b60006144c482614561565b91506144cf83614561565b9250828210156144e2576144e16146a7565b5b828203905092915050565b60006144f882614541565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561459857808201518184015260208101905061457d565b838111156145a7576000848401525b50505050565b60006145b882614561565b915060008214156145cc576145cb6146a7565b5b600182039050919050565b600060028204905060018216806145ef57607f821691505b60208210811415614603576146026146d6565b5b50919050565b61461282614734565b810181811067ffffffffffffffff8211171561463157614630614705565b5b80604052505050565b600061464582614561565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614678576146776146a7565b5b600182019050919050565b600061468e82614695565b9050919050565b60006146a082614745565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f53534e46543a20546f6b656e20646f6573206e6f742065786973740000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f53534e46543a2057726f6e672065746865722076616c75650000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53534e46543a20536f6c64206f75742e00000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f53534e46543a20416c6c6f776c6973742054696572204f6e652073616c65206860008201527f6173206e6f742073746172746564207965742e00000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f53534e46543a20596f752063616e206f6e6c79206d696e74203320696e20746f60008201527f74616c206f6e205075626c69632053616c652e00000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53534e46543a2057726f6e672065746865722076616c75652e00000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53534e46543a20596f7520617265206e6f74206f6e2074686520616c6c6f772060008201527f6c6973742e000000000000000000000000000000000000000000000000000000602082015250565b7f53534e46543a205075626c69632073616c6520686173206e6f7420737461727460008201527f6564207965742e00000000000000000000000000000000000000000000000000602082015250565b7f53534e46543a20416c6c6f776c69737420546965722054776f2073616c65206860008201527f6173206e6f742073746172746564207965742e00000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53534e46543a20536f6c64206f75740000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b7f53534e46543a20596f752063616e206f6e6c79206d696e74203320696e20746f60008201527f74616c206f6e205072652053616c652e00000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f53534e46543a20596f752063616e206f6e6c79206d696e74203320696e20656160008201527f6368207472616e73616374696f6e2e0000000000000000000000000000000000602082015250565b7f42616c616e636520697320656d70747900000000000000000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b614efe816144ed565b8114614f0957600080fd5b50565b614f15816144ff565b8114614f2057600080fd5b50565b614f2c8161450b565b8114614f3757600080fd5b50565b614f4381614515565b8114614f4e57600080fd5b50565b614f5a81614561565b8114614f6557600080fd5b5056fea2646970667358221220c9cd860c15d3e21cb463d0fc2db23a3c45b28b43c8a891fc3b4184536a10f26c64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160148784b5809df3b797263d6106d30355ee8965315a7a9710825ff96078485932703929536e27f5a029c37b1a9f48b8fbf86f9eb39242e35335b43b10a4ef5e580000000000000000000000008c79d758de3e6771dd2970011e43ddf56bc515f300000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000e536f6c6553617679202d205353340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008534f4c45534156590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d57486a73775436684443777a454177325366547a354344544d686375736a65707074565a4e786b6f4b616d6f00000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000a1333a26d1d5acdc4550d8eaa9ee6a66030f19520000000000000000000000008d448d0429561344722dd72f623fa57e97b637af000000000000000000000000f3a66cb806d91a648204ed2a9293ff38c75c1339000000000000000000000000f9585c2cd430d7e0985a08548d7090c52e21d223000000000000000000000000f536917a922861219aa9add8c3e95fe88dee752d
Deployed Bytecode
0x6080604052600436106102935760003560e01c80636c0360eb1161015a578063a22cb465116100c1578063cc47a40b1161007a578063cc47a40b146109fd578063d547741f14610a26578063d5abeb0114610a4f578063e985e9c514610a7a578063f92c45b714610ab7578063fbfa77cf14610ae257610293565b8063a22cb465146108ec578063a56d649314610915578063ad5b0fb614610952578063b88d4fde1461096e578063bbf5591514610997578063c87b56dd146109c057610293565b806391d148541161011357806391d14854146107d857806395d89b41146108155780639735eff814610840578063980557791461086b578063a035b1fe14610896578063a217fddf146108c157610293565b80636c0360eb146106c85780636d5d40c6146106f357806370a082311461071c57806375b238fc1461075957806385a712af146107845780638fac14dd146107af57610293565b80632f2ff15d116101fe57806355f804b3116101b757806355f804b3146105a657806357319165146105cf5780636352211e1461060c5780636386f2c3146106495780636817031b146106745780636bb7b1d91461069d57610293565b80632f2ff15d146104cf57806336568abe146104f85780633ccfd60b14610521578063413f8e931461053857806342842e0e146105615780634d192b831461058a57610293565b806315a41f671161025057806315a41f67146103ab57806318160ddd146103d657806323b872dd14610401578063248a9ca31461042a578063285f12391461046757806329b108a1146104a457610293565b806301ffc9a7146102985780630278241a146102d557806306fdde03146102fe578063081812fc14610329578063095ea7b3146103665780630c282a631461038f575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba9190613829565b610b0d565b6040516102cc9190613f2c565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f791906137c4565b610b1f565b005b34801561030a57600080fd5b50610313610b54565b6040516103209190613f62565b60405180910390f35b34801561033557600080fd5b50610350600480360381019061034b91906138bc565b610be6565b60405161035d9190613ec5565b60405180910390f35b34801561037257600080fd5b5061038d60048036038101906103889190613788565b610c6b565b005b6103a960048036038101906103a491906138e5565b610d83565b005b3480156103b757600080fd5b506103c06110c1565b6040516103cd9190613f47565b60405180910390f35b3480156103e257600080fd5b506103eb6110c7565b6040516103f89190614324565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190613682565b6110cd565b005b34801561043657600080fd5b50610451600480360381019061044c91906137c4565b61112d565b60405161045e9190613f47565b60405180910390f35b34801561047357600080fd5b5061048e600480360381019061048991906138bc565b61114d565b60405161049b9190613f2c565b60405180910390f35b3480156104b057600080fd5b506104b9611165565b6040516104c69190613f47565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f191906137ed565b61116b565b005b34801561050457600080fd5b5061051f600480360381019061051a91906137ed565b61118c565b005b34801561052d57600080fd5b5061053661120f565b005b34801561054457600080fd5b5061055f600480360381019061055a91906137c4565b6112ab565b005b34801561056d57600080fd5b5061058860048036038101906105839190613682565b6112e0565b005b6105a4600480360381019061059f91906138bc565b611300565b005b3480156105b257600080fd5b506105cd60048036038101906105c8919061387b565b61157d565b005b3480156105db57600080fd5b506105f660048036038101906105f1919061361d565b6115c2565b6040516106039190614324565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e91906138bc565b6115da565b6040516106409190613ec5565b60405180910390f35b34801561065557600080fd5b5061065e61168c565b60405161066b9190614324565b60405180910390f35b34801561068057600080fd5b5061069b6004803603810190610696919061361d565b611692565b005b3480156106a957600080fd5b506106b2611701565b6040516106bf9190614324565b60405180910390f35b3480156106d457600080fd5b506106dd611707565b6040516106ea9190613f62565b60405180910390f35b3480156106ff57600080fd5b5061071a600480360381019061071591906138bc565b611795565b005b34801561072857600080fd5b50610743600480360381019061073e919061361d565b6117ca565b6040516107509190614324565b60405180910390f35b34801561076557600080fd5b5061076e611882565b60405161077b9190613f47565b60405180910390f35b34801561079057600080fd5b506107996118a6565b6040516107a69190613f47565b60405180910390f35b3480156107bb57600080fd5b506107d660048036038101906107d191906138bc565b6118ca565b005b3480156107e457600080fd5b506107ff60048036038101906107fa91906137ed565b6118ff565b60405161080c9190613f2c565b60405180910390f35b34801561082157600080fd5b5061082a61196a565b6040516108379190613f62565b60405180910390f35b34801561084c57600080fd5b506108556119fc565b6040516108629190613ec5565b60405180910390f35b34801561087757600080fd5b50610880611a22565b60405161088d9190614324565b60405180910390f35b3480156108a257600080fd5b506108ab611a28565b6040516108b89190614324565b60405180910390f35b3480156108cd57600080fd5b506108d6611a4c565b6040516108e39190613f47565b60405180910390f35b3480156108f857600080fd5b50610913600480360381019061090e919061374c565b611a53565b005b34801561092157600080fd5b5061093c6004803603810190610937919061361d565b611a69565b6040516109499190614324565b60405180910390f35b61096c600480360381019061096791906138e5565b611a81565b005b34801561097a57600080fd5b50610995600480360381019061099091906136d1565b611dbf565b005b3480156109a357600080fd5b506109be60048036038101906109b991906138bc565b611e21565b005b3480156109cc57600080fd5b506109e760048036038101906109e291906138bc565b611e56565b6040516109f49190613f62565b60405180910390f35b348015610a0957600080fd5b50610a246004803603810190610a1f9190613788565b611f8e565b005b348015610a3257600080fd5b50610a4d6004803603810190610a4891906137ed565b612060565b005b348015610a5b57600080fd5b50610a64612081565b604051610a719190614324565b60405180910390f35b348015610a8657600080fd5b50610aa16004803603810190610a9c9190613646565b6120a5565b604051610aae9190613f2c565b60405180910390f35b348015610ac357600080fd5b50610acc612139565b604051610ad99190614324565b60405180910390f35b348015610aee57600080fd5b50610af761215d565b604051610b049190613ec5565b60405180910390f35b6000610b1882612183565b9050919050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c2610b49816121fd565b81600b819055505050565b606060008054610b63906145d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8f906145d7565b8015610bdc5780601f10610bb157610100808354040283529160200191610bdc565b820191906000526020600020905b815481529060010190602001808311610bbf57829003601f168201915b5050505050905090565b6000610bf182612211565b610c30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c27906141a4565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c76826115da565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cde90614224565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d0661227d565b73ffffffffffffffffffffffffffffffffffffffff161480610d355750610d3481610d2f61227d565b6120a5565b5b610d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6b906140e4565b60405180910390fd5b610d7e8383612285565b505050565b610d8e600a5461114d565b610dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc490614104565b60405180910390fd5b827f000000000000000000000000000000000000000000000000027f7d0bdb920000610df9919061445f565b3414610e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3190614184565b60405180910390fd5b6003831115610e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e75906142c4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000007b7f00000000000000000000000000000000000000000000000000000000000003ff610eca91906144b9565b83600754610ed89190614409565b1115610f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f10906140a4565b60405180910390fd5b600383601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f669190614409565b1115610fa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9e906142a4565b60405180910390fd5b600033604051602001610fba9190613e70565b6040516020818303038152906040528051906020012090506000611022848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b548461233e565b905080611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b906141c4565b60405180910390fd5b61106d85612355565b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505050505050565b600b5481565b60075481565b6110de6110d861227d565b8261238b565b61111d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111490614264565b60405180910390fd5b611128838383612469565b505050565b600060066000838152602001908152602001600020600101549050919050565b6000808211801561115e5750814210155b9050919050565b600c5481565b6111748261112d565b61117d816121fd565b61118783836126d0565b505050565b61119461227d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890614304565b60405180910390fd5b61120b82826127b1565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611239816121fd565b6000471161127c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611273906142e4565b60405180910390fd5b6112a8600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647612893565b50565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26112d5816121fd565b81600c819055505050565b6112fb83838360405180602001604052806000815250611dbf565b505050565b61130b60085461114d565b61134a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611341906141e4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000007b7f00000000000000000000000000000000000000000000000000000000000003ff61139691906144b9565b816007546113a49190614409565b11156113e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dc906140a4565b60405180910390fd5b6003811115611429576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611420906142c4565b60405180910390fd5b807f000000000000000000000000000000000000000000000000027f7d0bdb920000611455919061445f565b3414611496576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148d90614064565b60405180910390fd5b600381601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114e39190614409565b1115611524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151b90614144565b60405180910390fd5b61152d81612355565b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26115a7816121fd565b81600d90805190602001906115bd9291906133e2565b505050565b60116020528060005260406000206000915090505481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167a90614124565b60405180910390fd5b80915050919050565b60095481565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756116bc816121fd565b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60085481565b600d8054611714906145d7565b80601f0160208091040260200160405190810160405280929190818152602001828054611740906145d7565b801561178d5780601f106117625761010080835404028352916020019161178d565b820191906000526020600020905b81548152906001019060200180831161177057829003601f168201915b505050505081565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26117bf816121fd565b816008819055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561183b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611832906140c4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c281565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c26118f4816121fd565b81600a819055505050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054611979906145d7565b80601f01602080910402602001604051908101604052809291908181526020018280546119a5906145d7565b80156119f25780601f106119c7576101008083540402835291602001916119f2565b820191906000526020600020905b8154815290600101906020018083116119d557829003601f168201915b5050505050905090565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b7f000000000000000000000000000000000000000000000000027f7d0bdb92000081565b6000801b81565b611a65611a5e61227d565b83836128e6565b5050565b60106020528060005260406000206000915090505481565b611a8c60095461114d565b611acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac290614204565b60405180910390fd5b827f000000000000000000000000000000000000000000000000027f7d0bdb920000611af7919061445f565b3414611b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2f90614184565b60405180910390fd5b6003831115611b7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b73906142c4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000007b7f00000000000000000000000000000000000000000000000000000000000003ff611bc891906144b9565b83600754611bd69190614409565b1115611c17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0e906140a4565b60405180910390fd5b600383601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c649190614409565b1115611ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9c906142a4565b60405180910390fd5b600033604051602001611cb89190613e70565b6040516020818303038152906040528051906020012090506000611d20848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c548461233e565b905080611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d59906141c4565b60405180910390fd5b611d6b85612355565b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505050505050565b611dd0611dca61227d565b8361238b565b611e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0690614264565b60405180910390fd5b611e1b84848484612a53565b50505050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c2611e4b816121fd565b816009819055505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16611e79836115da565b73ffffffffffffffffffffffffffffffffffffffff161415611ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec790614004565b60405180910390fd5b6000600d8054611edf906145d7565b905011611efb5760405180602001604052806000815250611f87565b600d8054611f08906145d7565b80601f0160208091040260200160405190810160405280929190818152602001828054611f34906145d7565b8015611f815780601f10611f5657610100808354040283529160200191611f81565b820191906000526020600020905b815481529060010190602001808311611f6457829003601f168201915b50505050505b9050919050565b7f4c02318d8c3aadc98ccf18aebbf3126f651e0c3f6a1de5ff8edcf6724a2ad5c2611fb8816121fd565b7f00000000000000000000000000000000000000000000000000000000000003ff82600754611fe79190614409565b1115612028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201f90614244565b60405180910390fd5b60005b8281101561205a5761204d846007600081548092919060010191905055612aaf565b808060010191505061202b565b50505050565b6120698261112d565b612072816121fd565b61207c83836127b1565b505050565b7f00000000000000000000000000000000000000000000000000000000000003ff81565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f000000000000000000000000000000000000000000000000000000000000007b81565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121f657506121f582612c89565b5b9050919050565b61220e8161220961227d565b612d6b565b50565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122f8836115da565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008261234b8584612e08565b1490509392505050565b60005b818110156123875761237a336007600081548092919060010191905055612aaf565b8080600101915050612358565b5050565b600061239682612211565b6123d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123cc90614084565b60405180910390fd5b60006123e0836115da565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612422575061242181856120a5565b5b8061246057508373ffffffffffffffffffffffffffffffffffffffff1661244884610be6565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612489826115da565b73ffffffffffffffffffffffffffffffffffffffff16146124df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d690613fc4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561254f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254690614024565b60405180910390fd5b61255a838383612ea3565b612565600082612285565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125b591906144b9565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461260c9190614409565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126cb838383612ea8565b505050565b6126da82826118ff565b6127ad5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061275261227d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6127bb82826118ff565b1561288f5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061283461227d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080600080600085875af19050806128e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d890614284565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294c90614044565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a469190613f2c565b60405180910390a3505050565b612a5e848484612469565b612a6a84848484612ead565b612aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa090613fa4565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1690614164565b60405180910390fd5b612b2881612211565b15612b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5f90613fe4565b60405180910390fd5b612b7460008383612ea3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bc49190614409565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c8560008383612ea8565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d5457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d645750612d6382613044565b5b9050919050565b612d7582826118ff565b612e0457612d9a8173ffffffffffffffffffffffffffffffffffffffff1660146130ae565b612da88360001c60206130ae565b604051602001612db9929190613e8b565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfb9190613f62565b60405180910390fd5b5050565b60008082905060005b8451811015612e98576000858281518110612e55577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311612e7757612e7083826133a8565b9250612e84565b612e8181846133a8565b92505b508080612e909061463a565b915050612e11565b508091505092915050565b505050565b505050565b6000612ece8473ffffffffffffffffffffffffffffffffffffffff166133bf565b15613037578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ef761227d565b8786866040518563ffffffff1660e01b8152600401612f199493929190613ee0565b602060405180830381600087803b158015612f3357600080fd5b505af1925050508015612f6457506040513d601f19601f82011682018060405250810190612f619190613852565b60015b612fe7573d8060008114612f94576040519150601f19603f3d011682016040523d82523d6000602084013e612f99565b606091505b50600081511415612fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd690613fa4565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061303c565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026130c1919061445f565b6130cb9190614409565b67ffffffffffffffff81111561310a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561313c5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061319a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613224577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613264919061445f565b61326e9190614409565b90505b600181111561335a577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613313577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613353906145ad565b9050613271565b506000841461339e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339590613f84565b60405180910390fd5b8091505092915050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546133ee906145d7565b90600052602060002090601f0160209004810192826134105760008555613457565b82601f1061342957805160ff1916838001178555613457565b82800160010185558215613457579182015b8281111561345657825182559160200191906001019061343b565b5b5090506134649190613468565b5090565b5b80821115613481576000816000905550600101613469565b5090565b600061349861349384614364565b61433f565b9050828152602081018484840111156134b057600080fd5b6134bb84828561456b565b509392505050565b60006134d66134d184614395565b61433f565b9050828152602081018484840111156134ee57600080fd5b6134f984828561456b565b509392505050565b60008135905061351081614ef5565b92915050565b60008083601f84011261352857600080fd5b8235905067ffffffffffffffff81111561354157600080fd5b60208301915083602082028301111561355957600080fd5b9250929050565b60008135905061356f81614f0c565b92915050565b60008135905061358481614f23565b92915050565b60008135905061359981614f3a565b92915050565b6000815190506135ae81614f3a565b92915050565b600082601f8301126135c557600080fd5b81356135d5848260208601613485565b91505092915050565b600082601f8301126135ef57600080fd5b81356135ff8482602086016134c3565b91505092915050565b60008135905061361781614f51565b92915050565b60006020828403121561362f57600080fd5b600061363d84828501613501565b91505092915050565b6000806040838503121561365957600080fd5b600061366785828601613501565b925050602061367885828601613501565b9150509250929050565b60008060006060848603121561369757600080fd5b60006136a586828701613501565b93505060206136b686828701613501565b92505060406136c786828701613608565b9150509250925092565b600080600080608085870312156136e757600080fd5b60006136f587828801613501565b945050602061370687828801613501565b935050604061371787828801613608565b925050606085013567ffffffffffffffff81111561373457600080fd5b613740878288016135b4565b91505092959194509250565b6000806040838503121561375f57600080fd5b600061376d85828601613501565b925050602061377e85828601613560565b9150509250929050565b6000806040838503121561379b57600080fd5b60006137a985828601613501565b92505060206137ba85828601613608565b9150509250929050565b6000602082840312156137d657600080fd5b60006137e484828501613575565b91505092915050565b6000806040838503121561380057600080fd5b600061380e85828601613575565b925050602061381f85828601613501565b9150509250929050565b60006020828403121561383b57600080fd5b60006138498482850161358a565b91505092915050565b60006020828403121561386457600080fd5b60006138728482850161359f565b91505092915050565b60006020828403121561388d57600080fd5b600082013567ffffffffffffffff8111156138a757600080fd5b6138b3848285016135de565b91505092915050565b6000602082840312156138ce57600080fd5b60006138dc84828501613608565b91505092915050565b6000806000604084860312156138fa57600080fd5b600061390886828701613608565b935050602084013567ffffffffffffffff81111561392557600080fd5b61393186828701613516565b92509250509250925092565b613946816144ed565b82525050565b61395d613958826144ed565b614683565b82525050565b61396c816144ff565b82525050565b61397b8161450b565b82525050565b600061398c826143c6565b61399681856143dc565b93506139a681856020860161457a565b6139af81614734565b840191505092915050565b60006139c5826143d1565b6139cf81856143ed565b93506139df81856020860161457a565b6139e881614734565b840191505092915050565b60006139fe826143d1565b613a0881856143fe565b9350613a1881856020860161457a565b80840191505092915050565b6000613a316020836143ed565b9150613a3c82614752565b602082019050919050565b6000613a546032836143ed565b9150613a5f8261477b565b604082019050919050565b6000613a776025836143ed565b9150613a82826147ca565b604082019050919050565b6000613a9a601c836143ed565b9150613aa582614819565b602082019050919050565b6000613abd601b836143ed565b9150613ac882614842565b602082019050919050565b6000613ae06024836143ed565b9150613aeb8261486b565b604082019050919050565b6000613b036019836143ed565b9150613b0e826148ba565b602082019050919050565b6000613b266018836143ed565b9150613b31826148e3565b602082019050919050565b6000613b49602c836143ed565b9150613b548261490c565b604082019050919050565b6000613b6c6010836143ed565b9150613b778261495b565b602082019050919050565b6000613b8f6029836143ed565b9150613b9a82614984565b604082019050919050565b6000613bb26038836143ed565b9150613bbd826149d3565b604082019050919050565b6000613bd56033836143ed565b9150613be082614a22565b604082019050919050565b6000613bf86029836143ed565b9150613c0382614a71565b604082019050919050565b6000613c1b6033836143ed565b9150613c2682614ac0565b604082019050919050565b6000613c3e6020836143ed565b9150613c4982614b0f565b602082019050919050565b6000613c616019836143ed565b9150613c6c82614b38565b602082019050919050565b6000613c84602c836143ed565b9150613c8f82614b61565b604082019050919050565b6000613ca76025836143ed565b9150613cb282614bb0565b604082019050919050565b6000613cca6027836143ed565b9150613cd582614bff565b604082019050919050565b6000613ced6033836143ed565b9150613cf882614c4e565b604082019050919050565b6000613d106021836143ed565b9150613d1b82614c9d565b604082019050919050565b6000613d33600f836143ed565b9150613d3e82614cec565b602082019050919050565b6000613d566031836143ed565b9150613d6182614d15565b604082019050919050565b6000613d796013836143ed565b9150613d8482614d64565b602082019050919050565b6000613d9c6030836143ed565b9150613da782614d8d565b604082019050919050565b6000613dbf6017836143fe565b9150613dca82614ddc565b601782019050919050565b6000613de2602f836143ed565b9150613ded82614e05565b604082019050919050565b6000613e056010836143ed565b9150613e1082614e54565b602082019050919050565b6000613e286011836143fe565b9150613e3382614e7d565b601182019050919050565b6000613e4b602f836143ed565b9150613e5682614ea6565b604082019050919050565b613e6a81614561565b82525050565b6000613e7c828461394c565b60148201915081905092915050565b6000613e9682613db2565b9150613ea282856139f3565b9150613ead82613e1b565b9150613eb982846139f3565b91508190509392505050565b6000602082019050613eda600083018461393d565b92915050565b6000608082019050613ef5600083018761393d565b613f02602083018661393d565b613f0f6040830185613e61565b8181036060830152613f218184613981565b905095945050505050565b6000602082019050613f416000830184613963565b92915050565b6000602082019050613f5c6000830184613972565b92915050565b60006020820190508181036000830152613f7c81846139ba565b905092915050565b60006020820190508181036000830152613f9d81613a24565b9050919050565b60006020820190508181036000830152613fbd81613a47565b9050919050565b60006020820190508181036000830152613fdd81613a6a565b9050919050565b60006020820190508181036000830152613ffd81613a8d565b9050919050565b6000602082019050818103600083015261401d81613ab0565b9050919050565b6000602082019050818103600083015261403d81613ad3565b9050919050565b6000602082019050818103600083015261405d81613af6565b9050919050565b6000602082019050818103600083015261407d81613b19565b9050919050565b6000602082019050818103600083015261409d81613b3c565b9050919050565b600060208201905081810360008301526140bd81613b5f565b9050919050565b600060208201905081810360008301526140dd81613b82565b9050919050565b600060208201905081810360008301526140fd81613ba5565b9050919050565b6000602082019050818103600083015261411d81613bc8565b9050919050565b6000602082019050818103600083015261413d81613beb565b9050919050565b6000602082019050818103600083015261415d81613c0e565b9050919050565b6000602082019050818103600083015261417d81613c31565b9050919050565b6000602082019050818103600083015261419d81613c54565b9050919050565b600060208201905081810360008301526141bd81613c77565b9050919050565b600060208201905081810360008301526141dd81613c9a565b9050919050565b600060208201905081810360008301526141fd81613cbd565b9050919050565b6000602082019050818103600083015261421d81613ce0565b9050919050565b6000602082019050818103600083015261423d81613d03565b9050919050565b6000602082019050818103600083015261425d81613d26565b9050919050565b6000602082019050818103600083015261427d81613d49565b9050919050565b6000602082019050818103600083015261429d81613d6c565b9050919050565b600060208201905081810360008301526142bd81613d8f565b9050919050565b600060208201905081810360008301526142dd81613dd5565b9050919050565b600060208201905081810360008301526142fd81613df8565b9050919050565b6000602082019050818103600083015261431d81613e3e565b9050919050565b60006020820190506143396000830184613e61565b92915050565b600061434961435a565b90506143558282614609565b919050565b6000604051905090565b600067ffffffffffffffff82111561437f5761437e614705565b5b61438882614734565b9050602081019050919050565b600067ffffffffffffffff8211156143b0576143af614705565b5b6143b982614734565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061441482614561565b915061441f83614561565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614454576144536146a7565b5b828201905092915050565b600061446a82614561565b915061447583614561565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144ae576144ad6146a7565b5b828202905092915050565b60006144c482614561565b91506144cf83614561565b9250828210156144e2576144e16146a7565b5b828203905092915050565b60006144f882614541565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561459857808201518184015260208101905061457d565b838111156145a7576000848401525b50505050565b60006145b882614561565b915060008214156145cc576145cb6146a7565b5b600182039050919050565b600060028204905060018216806145ef57607f821691505b60208210811415614603576146026146d6565b5b50919050565b61461282614734565b810181811067ffffffffffffffff8211171561463157614630614705565b5b80604052505050565b600061464582614561565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614678576146776146a7565b5b600182019050919050565b600061468e82614695565b9050919050565b60006146a082614745565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f53534e46543a20546f6b656e20646f6573206e6f742065786973740000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f53534e46543a2057726f6e672065746865722076616c75650000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53534e46543a20536f6c64206f75742e00000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f53534e46543a20416c6c6f776c6973742054696572204f6e652073616c65206860008201527f6173206e6f742073746172746564207965742e00000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f53534e46543a20596f752063616e206f6e6c79206d696e74203320696e20746f60008201527f74616c206f6e205075626c69632053616c652e00000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53534e46543a2057726f6e672065746865722076616c75652e00000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53534e46543a20596f7520617265206e6f74206f6e2074686520616c6c6f772060008201527f6c6973742e000000000000000000000000000000000000000000000000000000602082015250565b7f53534e46543a205075626c69632073616c6520686173206e6f7420737461727460008201527f6564207965742e00000000000000000000000000000000000000000000000000602082015250565b7f53534e46543a20416c6c6f776c69737420546965722054776f2073616c65206860008201527f6173206e6f742073746172746564207965742e00000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53534e46543a20536f6c64206f75740000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b7f53534e46543a20596f752063616e206f6e6c79206d696e74203320696e20746f60008201527f74616c206f6e205072652053616c652e00000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f53534e46543a20596f752063616e206f6e6c79206d696e74203320696e20656160008201527f6368207472616e73616374696f6e2e0000000000000000000000000000000000602082015250565b7f42616c616e636520697320656d70747900000000000000000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b614efe816144ed565b8114614f0957600080fd5b50565b614f15816144ff565b8114614f2057600080fd5b50565b614f2c8161450b565b8114614f3757600080fd5b50565b614f4381614515565b8114614f4e57600080fd5b50565b614f5a81614561565b8114614f6557600080fd5b5056fea2646970667358221220c9cd860c15d3e21cb463d0fc2db23a3c45b28b43c8a891fc3b4184536a10f26c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160148784b5809df3b797263d6106d30355ee8965315a7a9710825ff96078485932703929536e27f5a029c37b1a9f48b8fbf86f9eb39242e35335b43b10a4ef5e580000000000000000000000008c79d758de3e6771dd2970011e43ddf56bc515f300000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000e536f6c6553617679202d205353340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008534f4c45534156590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d57486a73775436684443777a454177325366547a354344544d686375736a65707074565a4e786b6f4b616d6f00000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000a1333a26d1d5acdc4550d8eaa9ee6a66030f19520000000000000000000000008d448d0429561344722dd72f623fa57e97b637af000000000000000000000000f3a66cb806d91a648204ed2a9293ff38c75c1339000000000000000000000000f9585c2cd430d7e0985a08548d7090c52e21d223000000000000000000000000f536917a922861219aa9add8c3e95fe88dee752d
-----Decoded View---------------
Arg [0] : _name (string): SoleSavy - SS4
Arg [1] : _symbol (string): SOLESAVY
Arg [2] : _tokenBaseURI (string): ipfs://QmWHjswT6hDCwzEAw2SfTz5CDTMhcusjepptVZNxkoKamo
Arg [3] : _merkleRoot (bytes32): 0x148784b5809df3b797263d6106d30355ee8965315a7a9710825ff96078485932
Arg [4] : _merkleRootTwo (bytes32): 0x703929536e27f5a029c37b1a9f48b8fbf86f9eb39242e35335b43b10a4ef5e58
Arg [5] : _ssOwner (address): 0x8c79D758dE3E6771dD2970011e43ddf56bc515f3
Arg [6] : minterRoles (address[]): 0xA1333a26d1D5acdc4550d8eAA9ee6a66030F1952,0x8D448D0429561344722dD72F623FA57E97B637aF,0xF3A66cb806d91a648204ED2a9293Ff38c75C1339,0xf9585c2CD430d7E0985a08548d7090C52e21d223,0xf536917a922861219AA9aDD8c3e95Fe88deE752d
-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 148784b5809df3b797263d6106d30355ee8965315a7a9710825ff96078485932
Arg [4] : 703929536e27f5a029c37b1a9f48b8fbf86f9eb39242e35335b43b10a4ef5e58
Arg [5] : 0000000000000000000000008c79d758de3e6771dd2970011e43ddf56bc515f3
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [8] : 536f6c6553617679202d20535334000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [10] : 534f4c4553415659000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [12] : 697066733a2f2f516d57486a73775436684443777a454177325366547a354344
Arg [13] : 544d686375736a65707074565a4e786b6f4b616d6f0000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [15] : 000000000000000000000000a1333a26d1d5acdc4550d8eaa9ee6a66030f1952
Arg [16] : 0000000000000000000000008d448d0429561344722dd72f623fa57e97b637af
Arg [17] : 000000000000000000000000f3a66cb806d91a648204ed2a9293ff38c75c1339
Arg [18] : 000000000000000000000000f9585c2cd430d7e0985a08548d7090c52e21d223
Arg [19] : 000000000000000000000000f536917a922861219aa9add8c3e95fe88dee752d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.