Feature Tip: Add private address tag to any address under My Name Tag !
Overview
Max Total Supply
0 ADI
Holders
7,696
Market
Volume (24H)
0.0406 ETH
Min Price (24H)
$54.13 @ 0.016300 ETH
Max Price (24H)
$80.70 @ 0.024300 ETH
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AdidasOriginals
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Into the Metaverse NFTs are governed by the following terms and conditions: https://a.did.as/into_the_metaverse_tc pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import './AbstractERC1155Factory.sol'; import "./PaymentSplitter.sol"; /* * @title ERC1155 token for Adidas cards * @author Niftydude */ contract AdidasOriginals is AbstractERC1155Factory, PaymentSplitter { uint256 constant MAX_SUPPLY = 30000; uint256 constant MAX_EARLY_ACCESS = 20380; uint8 maxPerTx = 2; uint8 maxTxPublic = 2; uint8 maxTxEarly = 1; uint256 public mintPrice = 200000000000000000; uint256 public cardIdToMint = 1; uint256 public earlyAccessWindowOpens = 32533921476; uint256 public purchaseWindowOpens = 32533921477; uint256 public purchaseWindowCloses = 32533921478; uint256 public burnWindowOpens = 32533921479; uint256 public burnWindowCloses = 32533921480; bytes32 public merkleRoot; mapping(address => uint256) public purchaseTxs; event RedeemedForCard(uint256 indexed indexToRedeem, uint256 indexed indexToMint, address indexed account, uint256 amount); event Purchased(uint256 indexed index, address indexed account, uint256 amount); constructor( string memory _name, string memory _symbol, string memory _uri, bytes32 _merkleRoot, address[] memory payees, uint256[] memory shares_ ) ERC1155(_uri) PaymentSplitter(payees, shares_) { name_ = _name; symbol_ = _symbol; merkleRoot = _merkleRoot; _mint(0x8c685C44fACB8Bf246fCb0E383CCa4Bd46634bF8, 0, 380, ""); } /** * @notice set card id that can be minted by burning previous cards */ function startNextStage() external onlyOwner { cardIdToMint += 1; } /** * @notice emergency function to return to previous stage */ function returnToPreviousStage() external onlyOwner { require(cardIdToMint > 1, "Cannot go below stage 1"); cardIdToMint -= 1; } /** * @notice edit the merkle root for early access sale * * @param _merkleRoot the new merkle root */ function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /** * @notice edit the mint price * * @param _mintPrice the new price in wei */ function setPrice(uint256 _mintPrice) external onlyOwner { mintPrice = _mintPrice; } /** * @notice edit sale restrictions * * @param _maxPerTx the new max amount of tokens allowed to buy in one tx * @param _maxTxEarly the max amount of txs allowed during early access * @param _maxTxPublic the max amount of txs allowed during public sale */ function editSaleRestrictions(uint8 _maxPerTx, uint8 _maxTxEarly, uint8 _maxTxPublic) external onlyOwner { maxPerTx = _maxPerTx; maxTxEarly = _maxTxEarly; maxTxPublic = _maxTxPublic; } /** * @notice edit windows * * @param _purchaseWindowOpens UNIX timestamp for purchasing window opening time * @param _purchaseWindowCloses UNIX timestamp for purchasing window close time * @param _earlyAccessWindowOpens UNIX timestamp for early access window opening time * @param _burnWindowOpens UNIX timestamp for burn window opening time * @param _burnWindowCloses UNIX timestamp for burn window close time */ function editWindows( uint256 _purchaseWindowOpens, uint256 _purchaseWindowCloses, uint256 _earlyAccessWindowOpens, uint256 _burnWindowOpens, uint256 _burnWindowCloses ) external onlyOwner { require( _burnWindowOpens > _purchaseWindowCloses && _purchaseWindowOpens > _earlyAccessWindowOpens && _purchaseWindowCloses > _purchaseWindowOpens && _burnWindowCloses > _burnWindowOpens, "window combination not allowed" ); purchaseWindowOpens = _purchaseWindowOpens; purchaseWindowCloses = _purchaseWindowCloses; earlyAccessWindowOpens = _earlyAccessWindowOpens; burnWindowOpens = _burnWindowOpens; burnWindowCloses = _burnWindowCloses; } /** * @notice purchase cards during early access sale * * @param amount the amount of cards to purchase * @param index the index of the merkle proof * @param merkleProof the valid merkle proof of sender */ function earlyAccessSale( uint256 amount, uint256 index, bytes32[] calldata merkleProof ) external payable whenNotPaused { require(block.timestamp >= earlyAccessWindowOpens && block.timestamp <= purchaseWindowCloses, "Early access: window closed"); require(totalSupply(0) + amount <= MAX_EARLY_ACCESS, "Early access: max supply reached"); require(purchaseTxs[msg.sender] < maxTxEarly , "max tx amount exceeded"); bytes32 node = keccak256(abi.encodePacked(index, msg.sender, uint256(2))); require( MerkleProof.verify(merkleProof, merkleRoot, node), "MerkleDistributor: Invalid proof." ); _purchase(amount); } /** * @notice purchase cards during public sale * * @param amount the amount of tokens to purchase */ function purchase(uint256 amount) external payable whenNotPaused { require(block.timestamp >= purchaseWindowOpens && block.timestamp <= purchaseWindowCloses, "Purchase: window closed"); require(purchaseTxs[msg.sender] < maxTxPublic , "max tx amount exceeded"); _purchase(amount); } /** * @notice global purchase function used in early access and public sale * * @param amount the amount of tokens to purchase */ function _purchase(uint256 amount) private { require(amount > 0 && amount <= maxPerTx, "Purchase: amount prohibited"); require(totalSupply(0) + amount <= MAX_SUPPLY, "Purchase: Max supply reached"); require(msg.value == amount * mintPrice, "Purchase: Incorrect payment"); purchaseTxs[msg.sender] += 1; _mint(msg.sender, 0, amount, ""); emit Purchased(0, msg.sender, amount); } /** * @notice burn card for other * * @param cardIdToRedeem the token id of the card to burn * @param amount the amount to burn */ function redeemCardForOther(uint256 cardIdToRedeem, uint256 amount) external whenNotPaused { require(balanceOf(msg.sender, cardIdToRedeem) >= amount && amount > 0, "BurnCardForOther: amount not allowed"); require(block.timestamp >= burnWindowOpens && block.timestamp <= burnWindowCloses, "BurnCardForOther: window closed"); require(cardIdToRedeem < cardIdToMint, "BurnCardForOther: card cannot be burned"); _burn(msg.sender, cardIdToRedeem, amount); _mint(msg.sender, cardIdToMint, amount, ""); emit RedeemedForCard(cardIdToRedeem, cardIdToMint, msg.sender, amount); } /** * @notice Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. * * @param account the payee to release funds for */ function release(address payable account) public override { require(msg.sender == account || msg.sender == owner(), "Release: no permission"); super.release(account); } function burn( address account, uint256 id, uint256 value ) public virtual override { require(block.timestamp > purchaseWindowCloses || totalSupply(0) == MAX_SUPPLY, "Burn: not allowed during sale"); require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual override { require(block.timestamp > purchaseWindowCloses || totalSupply(0) == MAX_SUPPLY, "Burn: not allowed during sale"); require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } /** * @notice returns the metadata uri for a given id * * @param _id the card id to return metadata for */ function uri(uint256 _id) public view override returns (string memory) { require(exists(_id), "URI: nonexistent token"); return string(abi.encodePacked(super.uri(_id), Strings.toString(_id))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity ^0.8.9; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol'; abstract contract AbstractERC1155Factory is Pausable, ERC1155Supply, ERC1155Burnable, Ownable { string name_; string symbol_; function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setURI(string memory baseURI) external onlyOwner { _setURI(baseURI); } function name() public view returns (string memory) { return name_; } function symbol() public view returns (string memory) { return symbol_; } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override(ERC1155, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// 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: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// 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 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @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, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "optimizer": { "enabled": true, "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":"_uri","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"indexToRedeem","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"indexToMint","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RedeemedForCard","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnWindowCloses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cardIdToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"earlyAccessSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"earlyAccessWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxPerTx","type":"uint8"},{"internalType":"uint8","name":"_maxTxEarly","type":"uint8"},{"internalType":"uint8","name":"_maxTxPublic","type":"uint8"}],"name":"editSaleRestrictions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_purchaseWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_purchaseWindowCloses","type":"uint256"},{"internalType":"uint256","name":"_earlyAccessWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_burnWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_burnWindowCloses","type":"uint256"}],"name":"editWindows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchaseTxs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseWindowCloses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cardIdToRedeem","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemCardForOther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"returnToPreviousStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startNextStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600d805462ffffff1916620102021790556702c68af0bb140000600e556001600f556407932c3ec46010556407932c3ec56011556407932c3ec66012556407932c3ec76013556407932c3ec86014553480156200006057600080fd5b50604051620045da380380620045da833981016040819052620000839162000c2a565b6000805460ff191690558181856200009b8162000254565b50620000a7336200026d565b8051825114620001195760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200016c5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000110565b60005b8251811015620001d857620001c383828151811062000192576200019262000d13565b6020026020010151838381518110620001af57620001af62000d13565b6020026020010151620002bf60201b60201c565b80620001cf8162000d3f565b9150506200016f565b50508651620001f09150600690602089019062000970565b5084516200020690600790602088019062000970565b508260158190555062000248738c685c44facb8bf246fcb0e383cca4bd46634bf8600061017c60405180602001604052806000815250620004ad60201b60201c565b50505050505062000f38565b80516200026990600390602084019062000970565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200032c5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000110565b600081116200037e5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000110565b6001600160a01b0382166000908152600a602052604090205415620003fa5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000110565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a602052604090208190556008546200046490829062000d5d565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6001600160a01b0384166200050f5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840162000110565b3362000535816000876200052388620005d2565b6200052e88620005d2565b8762000620565b60008481526001602090815260408083206001600160a01b0389168452909152812080548592906200056990849062000d5d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620005cb8160008787878762000643565b5050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200060f576200060f62000d13565b602090810291909101015292915050565b6200063b8686868686866200082960201b620016151760201c565b505050505050565b62000662846001600160a01b03166200096a60201b6200172b1760201c565b156200063b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200069e908990899088908890889060040162000da6565b602060405180830381600087803b158015620006b957600080fd5b505af1925050508015620006ec575060408051601f3d908101601f19168201909252620006e99181019062000ded565b60015b620007ad57620006fb62000e20565b806308c379a014156200073c57506200071362000e3d565b806200072057506200073e565b8060405162461bcd60e51b815260040162000110919062000ecc565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840162000110565b6001600160e01b0319811663f23a6e6160e01b14620008205760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840162000110565b50505050505050565b620008448686868686866200063b60201b620017231760201c565b6001600160a01b038516620008d85760005b8351811015620008d65782818151811062000875576200087562000d13565b60200260200101516004600086848151811062000896576200089662000d13565b602002602001015181526020019081526020016000206000828254620008bd919062000d5d565b90915550620008ce90508162000d3f565b905062000856565b505b6001600160a01b0384166200063b5760005b8351811015620008205782818151811062000909576200090962000d13565b6020026020010151600460008684815181106200092a576200092a62000d13565b60200260200101518152602001908152602001600020600082825462000951919062000ee1565b909155506200096290508162000d3f565b9050620008ea565b3b151590565b8280546200097e9062000efb565b90600052602060002090601f016020900481019282620009a25760008555620009ed565b82601f10620009bd57805160ff1916838001178555620009ed565b82800160010185558215620009ed579182015b82811115620009ed578251825591602001919060010190620009d0565b50620009fb929150620009ff565b5090565b5b80821115620009fb576000815560010162000a00565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171562000a545762000a5462000a16565b6040525050565b60005b8381101562000a7857818101518382015260200162000a5e565b8381111562000a88576000848401525b50505050565b600082601f83011262000aa057600080fd5b81516001600160401b0381111562000abc5762000abc62000a16565b60405162000ad5601f8301601f19166020018262000a2c565b81815284602083860101111562000aeb57600080fd5b62000afe82602083016020870162000a5b565b949350505050565b60006001600160401b0382111562000b225762000b2262000a16565b5060051b60200190565b600082601f83011262000b3e57600080fd5b8151602062000b4d8262000b06565b60405162000b5c828262000a2c565b83815260059390931b850182019282810191508684111562000b7d57600080fd5b8286015b8481101562000bb15780516001600160a01b038116811462000ba35760008081fd5b835291830191830162000b81565b509695505050505050565b600082601f83011262000bce57600080fd5b8151602062000bdd8262000b06565b60405162000bec828262000a2c565b83815260059390931b850182019282810191508684111562000c0d57600080fd5b8286015b8481101562000bb1578051835291830191830162000c11565b60008060008060008060c0878903121562000c4457600080fd5b86516001600160401b038082111562000c5c57600080fd5b62000c6a8a838b0162000a8e565b9750602089015191508082111562000c8157600080fd5b62000c8f8a838b0162000a8e565b9650604089015191508082111562000ca657600080fd5b62000cb48a838b0162000a8e565b955060608901519450608089015191508082111562000cd257600080fd5b62000ce08a838b0162000b2c565b935060a089015191508082111562000cf757600080fd5b5062000d0689828a0162000bbc565b9150509295509295509295565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141562000d565762000d5662000d29565b5060010190565b6000821982111562000d735762000d7362000d29565b500190565b6000815180845262000d9281602086016020860162000a5b565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000de29083018462000d78565b979650505050505050565b60006020828403121562000e0057600080fd5b81516001600160e01b03198116811462000e1957600080fd5b9392505050565b600060033d111562000e3a5760046000803e5060005160e01c5b90565b600060443d101562000e4c5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000e7c57505050505090565b828501915081518181111562000e955750505050505090565b843d870101602082850101111562000eb05750505050505090565b62000ec16020828601018762000a2c565b509095945050505050565b60208152600062000e19602083018462000d78565b60008282101562000ef65762000ef662000d29565b500390565b600181811c9082168062000f1057607f821691505b6020821081141562000f3257634e487b7160e01b600052602260045260246000fd5b50919050565b6136928062000f486000396000f3fe6080604052600436106102455760003560e01c80637b58de8b11610139578063ab22ff02116100b6578063efef39a11161007a578063efef39a1146106a5578063f242432a146106b8578063f260159e146106d8578063f2fde38b146106ed578063f5298aca1461070d578063f86850301461072d57600080fd5b8063ab22ff02146105c3578063ab8e0a29146105e3578063bd85b039146105f9578063ce7c2ac214610626578063e985e9c51461065c57600080fd5b80638f0d94b2116100fd5780638f0d94b21461053b57806391b7f5ed1461055b5780639245011d1461057b57806395d89b411461058e578063a22cb465146105a357600080fd5b80637b58de8b146104b25780637cb64759146104c857806381e3d057146104e85780638456cb59146104fe5780638da5cb5b1461051357600080fd5b80633e8d1c07116101c75780635c975abb1161018b5780635c975abb1461043a5780635ee6509a146104525780636817c76c146104675780636b20c4541461047d578063715018a61461049d57600080fd5b80633e8d1c07146103935780633f4ba83a146103a95780634bbce33f146103be5780634e1273f4146103de5780634f558e791461040b57600080fd5b80630e89341c1161020e5780630e89341c1461030757806319165587146103275780632eb2c2d6146103475780632eb4a7ab146103675780633b44c8d01461037d57600080fd5b8062fdd58e1461024a578063019863c31461027d57806301ffc9a71461029357806302fe5305146102c357806306fdde03146102e5575b600080fd5b34801561025657600080fd5b5061026a6102653660046129f1565b61075a565b6040519081526020015b60405180910390f35b34801561028957600080fd5b5061026a60145481565b34801561029f57600080fd5b506102b36102ae366004612a33565b6107f3565b6040519015158152602001610274565b3480156102cf57600080fd5b506102e36102de366004612af8565b610845565b005b3480156102f157600080fd5b506102fa61087b565b6040516102749190612b9d565b34801561031357600080fd5b506102fa610322366004612bb0565b61090d565b34801561033357600080fd5b506102e3610342366004612bc9565b61099d565b34801561035357600080fd5b506102e3610362366004612c9b565b610a0c565b34801561037357600080fd5b5061026a60155481565b34801561038957600080fd5b5061026a60115481565b34801561039f57600080fd5b5061026a60105481565b3480156103b557600080fd5b506102e3610aa3565b3480156103ca57600080fd5b506102e36103d9366004612d49565b610ad7565b3480156103ea57600080fd5b506103fe6103f9366004612d6b565b610c9f565b6040516102749190612e73565b34801561041757600080fd5b506102b3610426366004612bb0565b600090815260046020526040902054151590565b34801561044657600080fd5b5060005460ff166102b3565b34801561045e57600080fd5b506102e3610dc9565b34801561047357600080fd5b5061026a600e5481565b34801561048957600080fd5b506102e3610498366004612e86565b610e0d565b3480156104a957600080fd5b506102e3610eca565b3480156104be57600080fd5b5061026a60135481565b3480156104d457600080fd5b506102e36104e3366004612bb0565b610efe565b3480156104f457600080fd5b5061026a60125481565b34801561050a57600080fd5b506102e3610f2d565b34801561051f57600080fd5b506005546040516001600160a01b039091168152602001610274565b34801561054757600080fd5b506102e3610556366004612f12565b610f5f565b34801561056757600080fd5b506102e3610576366004612bb0565b610fbf565b6102e3610589366004612f55565b610fee565b34801561059a57600080fd5b506102fa611234565b3480156105af57600080fd5b506102e36105be366004612fd8565b611243565b3480156105cf57600080fd5b506102e36105de366004613016565b611252565b3480156105ef57600080fd5b5061026a600f5481565b34801561060557600080fd5b5061026a610614366004612bb0565b60009081526004602052604090205490565b34801561063257600080fd5b5061026a610641366004612bc9565b6001600160a01b03166000908152600a602052604090205490565b34801561066857600080fd5b506102b3610677366004613051565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102e36106b3366004612bb0565b611303565b3480156106c457600080fd5b506102e36106d336600461307f565b6113f1565b3480156106e457600080fd5b506102e3611436565b3480156106f957600080fd5b506102e3610708366004612bc9565b6114c5565b34801561071957600080fd5b506102e36107283660046130e8565b61155d565b34801561073957600080fd5b5061026a610748366004612bc9565b60166020526000908152604090205481565b60006001600160a01b0383166107cb5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061082457506001600160e01b031982166303a24d0760e21b145b8061083f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b0316331461086f5760405162461bcd60e51b81526004016107c29061311d565b61087881611731565b50565b60606006805461088a90613152565b80601f01602080910402602001604051908101604052809291908181526020018280546108b690613152565b80156109035780601f106108d857610100808354040283529160200191610903565b820191906000526020600020905b8154815290600101906020018083116108e657829003601f168201915b5050505050905090565b6000818152600460205260409020546060906109645760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b60448201526064016107c2565b61096d82611744565b610976836117d8565b60405160200161098792919061318d565b6040516020818303038152906040529050919050565b336001600160a01b03821614806109be57506005546001600160a01b031633145b610a035760405162461bcd60e51b81526020600482015260166024820152752932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b60448201526064016107c2565b610878816118de565b6001600160a01b038516331480610a285750610a288533610677565b610a8f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107c2565b610a9c8585858585611aaf565b5050505050565b6005546001600160a01b03163314610acd5760405162461bcd60e51b81526004016107c29061311d565b610ad5611c54565b565b60005460ff1615610afa5760405162461bcd60e51b81526004016107c2906131bc565b80610b05338461075a565b10158015610b135750600081115b610b6b5760405162461bcd60e51b8152602060048201526024808201527f4275726e43617264466f724f746865723a20616d6f756e74206e6f7420616c6c6044820152631bddd95960e21b60648201526084016107c2565b6013544210158015610b7f57506014544211155b610bcb5760405162461bcd60e51b815260206004820152601f60248201527f4275726e43617264466f724f746865723a2077696e646f7720636c6f7365640060448201526064016107c2565b600f548210610c2c5760405162461bcd60e51b815260206004820152602760248201527f4275726e43617264466f724f746865723a20636172642063616e6e6f7420626560448201526608189d5c9b995960ca1b60648201526084016107c2565b610c37338383611ce7565b610c5433600f548360405180602001604052806000815250611dec565b336001600160a01b0316600f54837f7e3df7e16f2dd583d1d92bde1a070a6a70abb33398944ad0a17a09c10989162a84604051610c9391815260200190565b60405180910390a45050565b60608151835114610d045760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107c2565b6000835167ffffffffffffffff811115610d2057610d20612a57565b604051908082528060200260200182016040528015610d49578160200160208202803683370190505b50905060005b8451811015610dc157610d94858281518110610d6d57610d6d6131e6565b6020026020010151858381518110610d8757610d876131e6565b602002602001015161075a565b828281518110610da657610da66131e6565b6020908102919091010152610dba81613212565b9050610d4f565b509392505050565b6005546001600160a01b03163314610df35760405162461bcd60e51b81526004016107c29061311d565b6001600f6000828254610e06919061322d565b9091555050565b601254421180610e36575060008052600460205260008051602061363d83398151915254617530145b610e825760405162461bcd60e51b815260206004820152601d60248201527f4275726e3a206e6f7420616c6c6f77656420647572696e672073616c6500000060448201526064016107c2565b6001600160a01b038316331480610e9e5750610e9e8333610677565b610eba5760405162461bcd60e51b81526004016107c290613245565b610ec5838383611efe565b505050565b6005546001600160a01b03163314610ef45760405162461bcd60e51b81526004016107c29061311d565b610ad5600061208f565b6005546001600160a01b03163314610f285760405162461bcd60e51b81526004016107c29061311d565b601555565b6005546001600160a01b03163314610f575760405162461bcd60e51b81526004016107c29061311d565b610ad56120e1565b6005546001600160a01b03163314610f895760405162461bcd60e51b81526004016107c29061311d565b600d805460ff94851662ff00ff199091161762010000938516939093029290921761ff0019166101009190931602919091179055565b6005546001600160a01b03163314610fe95760405162461bcd60e51b81526004016107c29061311d565b600e55565b60005460ff16156110115760405162461bcd60e51b81526004016107c2906131bc565b601054421015801561102557506012544211155b6110715760405162461bcd60e51b815260206004820152601b60248201527f4561726c79206163636573733a2077696e646f7720636c6f736564000000000060448201526064016107c2565b60008052600460205260008051602061363d83398151915254614f9c9061109990869061322d565b11156110e75760405162461bcd60e51b815260206004820181905260248201527f4561726c79206163636573733a206d617820737570706c79207265616368656460448201526064016107c2565b600d54336000908152601660205260409020546201000090910460ff161161114a5760405162461bcd60e51b81526020600482015260166024820152751b585e081d1e08185b5bdd5b9d08195e18d95959195960521b60448201526064016107c2565b60408051602081018590526bffffffffffffffffffffffff193360601b1691810191909152600260548201526000906074016040516020818303038152906040528051906020012090506111d5838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015549150849050612139565b61122b5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b60648201526084016107c2565b610a9c8561214f565b60606007805461088a90613152565b61124e3383836122ff565b5050565b6005546001600160a01b0316331461127c5760405162461bcd60e51b81526004016107c29061311d565b838211801561128a57508285115b801561129557508484115b80156112a057508181115b6112ec5760405162461bcd60e51b815260206004820152601e60248201527f77696e646f7720636f6d62696e6174696f6e206e6f7420616c6c6f776564000060448201526064016107c2565b601194909455601292909255601055601355601455565b60005460ff16156113265760405162461bcd60e51b81526004016107c2906131bc565b601154421015801561133a57506012544211155b6113865760405162461bcd60e51b815260206004820152601760248201527f50757263686173653a2077696e646f7720636c6f73656400000000000000000060448201526064016107c2565b600d543360009081526016602052604090205461010090910460ff16116113e85760405162461bcd60e51b81526020600482015260166024820152751b585e081d1e08185b5bdd5b9d08195e18d95959195960521b60448201526064016107c2565b6108788161214f565b6001600160a01b03851633148061140d575061140d8533610677565b6114295760405162461bcd60e51b81526004016107c290613245565b610a9c85858585856123e0565b6005546001600160a01b031633146114605760405162461bcd60e51b81526004016107c29061311d565b6001600f54116114b25760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420676f2062656c6f77207374616765203100000000000000000060448201526064016107c2565b6001600f6000828254610e06919061328e565b6005546001600160a01b031633146114ef5760405162461bcd60e51b81526004016107c29061311d565b6001600160a01b0381166115545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c2565b6108788161208f565b601254421180611586575060008052600460205260008051602061363d83398151915254617530145b6115d25760405162461bcd60e51b815260206004820152601d60248201527f4275726e3a206e6f7420616c6c6f77656420647572696e672073616c6500000060448201526064016107c2565b6001600160a01b0383163314806115ee57506115ee8333610677565b61160a5760405162461bcd60e51b81526004016107c290613245565b610ec5838383611ce7565b6001600160a01b03851661169c5760005b835181101561169a57828181518110611641576116416131e6565b60200260200101516004600086848151811061165f5761165f6131e6565b602002602001015181526020019081526020016000206000828254611684919061322d565b90915550611693905081613212565b9050611626565b505b6001600160a01b0384166117235760005b8351811015611721578281815181106116c8576116c86131e6565b6020026020010151600460008684815181106116e6576116e66131e6565b60200260200101518152602001908152602001600020600082825461170b919061328e565b9091555061171a905081613212565b90506116ad565b505b505050505050565b3b151590565b805161124e906003906020840190612943565b60606003805461175390613152565b80601f016020809104026020016040519081016040528092919081815260200182805461177f90613152565b80156117cc5780601f106117a1576101008083540402835291602001916117cc565b820191906000526020600020905b8154815290600101906020018083116117af57829003601f168201915b50505050509050919050565b6060816117fc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611826578061181081613212565b915061181f9050600a836132bb565b9150611800565b60008167ffffffffffffffff81111561184157611841612a57565b6040519080825280601f01601f19166020018201604052801561186b576020820181803683370190505b5090505b84156118d65761188060018361328e565b915061188d600a866132cf565b61189890603061322d565b60f81b8183815181106118ad576118ad6131e6565b60200101906001600160f81b031916908160001a9053506118cf600a866132bb565b945061186f565b949350505050565b6001600160a01b0381166000908152600a60205260409020546119525760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016107c2565b600060095447611962919061322d565b6001600160a01b0383166000908152600b6020908152604080832054600854600a90935290832054939450919261199990856132e3565b6119a391906132bb565b6119ad919061328e565b905080611a105760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016107c2565b6001600160a01b0383166000908152600b6020526040902054611a3490829061322d565b6001600160a01b0384166000908152600b6020526040902055600954611a5b90829061322d565b600955611a6883826124f8565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b8151835114611ad05760405162461bcd60e51b81526004016107c290613302565b6001600160a01b038416611af65760405162461bcd60e51b81526004016107c29061334a565b33611b05818787878787612611565b60005b8451811015611bee576000858281518110611b2557611b256131e6565b602002602001015190506000858381518110611b4357611b436131e6565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015611b945760405162461bcd60e51b81526004016107c29061338f565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611bd390849061322d565b9250508190555050505080611be790613212565b9050611b08565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611c3e9291906133d9565b60405180910390a461172381878787878761261f565b60005460ff16611c9d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107c2565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611d0d5760405162461bcd60e51b81526004016107c290613407565b33611d3c81856000611d1e8761278a565b611d278761278a565b60405180602001604052806000815250612611565b60008381526001602090815260408083206001600160a01b038816845290915290205482811015611d7f5760405162461bcd60e51b81526004016107c29061344a565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416611e4c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107c2565b33611e6c81600087611e5d8861278a565b611e668861278a565b87612611565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290611e9e90849061322d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a9c816000878787876127d5565b6001600160a01b038316611f245760405162461bcd60e51b81526004016107c290613407565b8051825114611f455760405162461bcd60e51b81526004016107c290613302565b6000339050611f6881856000868660405180602001604052806000815250612611565b60005b8351811015612030576000848281518110611f8857611f886131e6565b602002602001015190506000848381518110611fa657611fa66131e6565b60209081029190910181015160008481526001835260408082206001600160a01b038c168352909352919091205490915081811015611ff75760405162461bcd60e51b81526004016107c29061344a565b60009283526001602090815260408085206001600160a01b038b168652909152909220910390558061202881613212565b915050611f6b565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516120819291906133d9565b60405180910390a450505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff16156121045760405162461bcd60e51b81526004016107c2906131bc565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cca3390565b600082612146858461289f565b14949350505050565b6000811180156121645750600d5460ff168111155b6121b05760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20616d6f756e742070726f68696269746564000000000060448201526064016107c2565b60008052600460205260008051602061363d83398151915254617530906121d890839061322d565b11156122265760405162461bcd60e51b815260206004820152601c60248201527f50757263686173653a204d617820737570706c7920726561636865640000000060448201526064016107c2565b600e5461223390826132e3565b34146122815760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e74000000000060448201526064016107c2565b3360009081526016602052604081208054600192906122a190849061322d565b925050819055506122c43360008360405180602001604052806000815250611dec565b60405181815233906000907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a350565b816001600160a01b0316836001600160a01b031614156123735760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107c2565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166124065760405162461bcd60e51b81526004016107c29061334a565b33612416818787611e5d8861278a565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156124595760405162461bcd60e51b81526004016107c29061338f565b60008581526001602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061249890849061322d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46117218288888888886127d5565b804710156125485760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107c2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612595576040519150601f19603f3d011682016040523d82523d6000602084013e61259a565b606091505b5050905080610ec55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107c2565b611723868686868686611615565b6001600160a01b0384163b156117235760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612663908990899088908890889060040161348e565b602060405180830381600087803b15801561267d57600080fd5b505af19250505080156126ad575060408051601f3d908101601f191682019092526126aa918101906134ec565b60015b61275a576126b9613509565b806308c379a014156126f357506126ce613525565b806126d957506126f5565b8060405162461bcd60e51b81526004016107c29190612b9d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107c2565b6001600160e01b0319811663bc197c8160e01b146117215760405162461bcd60e51b81526004016107c2906135af565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106127c4576127c46131e6565b602090810291909101015292915050565b6001600160a01b0384163b156117235760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061281990899089908890889088906004016135f7565b602060405180830381600087803b15801561283357600080fd5b505af1925050508015612863575060408051601f3d908101601f19168201909252612860918101906134ec565b60015b61286f576126b9613509565b6001600160e01b0319811663f23a6e6160e01b146117215760405162461bcd60e51b81526004016107c2906135af565b600081815b8451811015610dc15760008582815181106128c1576128c16131e6565b60200260200101519050808311612903576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612930565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061293b81613212565b9150506128a4565b82805461294f90613152565b90600052602060002090601f01602090048101928261297157600085556129b7565b82601f1061298a57805160ff19168380011785556129b7565b828001600101855582156129b7579182015b828111156129b757825182559160200191906001019061299c565b506129c39291506129c7565b5090565b5b808211156129c357600081556001016129c8565b6001600160a01b038116811461087857600080fd5b60008060408385031215612a0457600080fd5b8235612a0f816129dc565b946020939093013593505050565b6001600160e01b03198116811461087857600080fd5b600060208284031215612a4557600080fd5b8135612a5081612a1d565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612a9357612a93612a57565b6040525050565b600067ffffffffffffffff831115612ab457612ab4612a57565b604051612acb601f8501601f191660200182612a6d565b809150838152848484011115612ae057600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612b0a57600080fd5b813567ffffffffffffffff811115612b2157600080fd5b8201601f81018413612b3257600080fd5b6118d684823560208401612a9a565b60005b83811015612b5c578181015183820152602001612b44565b83811115612b6b576000848401525b50505050565b60008151808452612b89816020860160208601612b41565b601f01601f19169290920160200192915050565b602081526000612a506020830184612b71565b600060208284031215612bc257600080fd5b5035919050565b600060208284031215612bdb57600080fd5b8135612a50816129dc565b600067ffffffffffffffff821115612c0057612c00612a57565b5060051b60200190565b600082601f830112612c1b57600080fd5b81356020612c2882612be6565b604051612c358282612a6d565b83815260059390931b8501820192828101915086841115612c5557600080fd5b8286015b84811015612c705780358352918301918301612c59565b509695505050505050565b600082601f830112612c8c57600080fd5b612a5083833560208501612a9a565b600080600080600060a08688031215612cb357600080fd5b8535612cbe816129dc565b94506020860135612cce816129dc565b9350604086013567ffffffffffffffff80821115612ceb57600080fd5b612cf789838a01612c0a565b94506060880135915080821115612d0d57600080fd5b612d1989838a01612c0a565b93506080880135915080821115612d2f57600080fd5b50612d3c88828901612c7b565b9150509295509295909350565b60008060408385031215612d5c57600080fd5b50508035926020909101359150565b60008060408385031215612d7e57600080fd5b823567ffffffffffffffff80821115612d9657600080fd5b818501915085601f830112612daa57600080fd5b81356020612db782612be6565b604051612dc48282612a6d565b83815260059390931b8501820192828101915089841115612de457600080fd5b948201945b83861015612e0b578535612dfc816129dc565b82529482019490820190612de9565b96505086013592505080821115612e2157600080fd5b50612e2e85828601612c0a565b9150509250929050565b600081518084526020808501945080840160005b83811015612e6857815187529582019590820190600101612e4c565b509495945050505050565b602081526000612a506020830184612e38565b600080600060608486031215612e9b57600080fd5b8335612ea6816129dc565b9250602084013567ffffffffffffffff80821115612ec357600080fd5b612ecf87838801612c0a565b93506040860135915080821115612ee557600080fd5b50612ef286828701612c0a565b9150509250925092565b803560ff81168114612f0d57600080fd5b919050565b600080600060608486031215612f2757600080fd5b612f3084612efc565b9250612f3e60208501612efc565b9150612f4c60408501612efc565b90509250925092565b60008060008060608587031215612f6b57600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115612f9157600080fd5b818701915087601f830112612fa557600080fd5b813581811115612fb457600080fd5b8860208260051b8501011115612fc957600080fd5b95989497505060200194505050565b60008060408385031215612feb57600080fd5b8235612ff6816129dc565b91506020830135801515811461300b57600080fd5b809150509250929050565b600080600080600060a0868803121561302e57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000806040838503121561306457600080fd5b823561306f816129dc565b9150602083013561300b816129dc565b600080600080600060a0868803121561309757600080fd5b85356130a2816129dc565b945060208601356130b2816129dc565b93506040860135925060608601359150608086013567ffffffffffffffff8111156130dc57600080fd5b612d3c88828901612c7b565b6000806000606084860312156130fd57600080fd5b8335613108816129dc565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061316657607f821691505b6020821081141561318757634e487b7160e01b600052602260045260246000fd5b50919050565b6000835161319f818460208801612b41565b8351908301906131b3818360208801612b41565b01949350505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613226576132266131fc565b5060010190565b60008219821115613240576132406131fc565b500190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6000828210156132a0576132a06131fc565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826132ca576132ca6132a5565b500490565b6000826132de576132de6132a5565b500690565b60008160001904831182151516156132fd576132fd6131fc565b500290565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006133ec6040830185612e38565b82810360208401526133fe8185612e38565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906134ba90830186612e38565b82810360608401526134cc8186612e38565b905082810360808401526134e08185612b71565b98975050505050505050565b6000602082840312156134fe57600080fd5b8151612a5081612a1d565b600060033d11156135225760046000803e5060005160e01c5b90565b600060443d10156135335790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561356357505050505090565b828501915081518181111561357b5750505050505090565b843d87010160208285010111156135955750505050505090565b6135a460208286010187612a6d565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061363190830184612b71565b97965050505050505056fe17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3eca26469706673582212206c63ac62438de6ba105c7a20635d5c3f7368e25abcef926d97dac74f20a4d61864736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160ef54104246cbe56a78f64552f7e4f427a5a2ae971769973ddc224675860fab4b000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000024616469646173204f726967696e616c733a20496e746f20746865204d65746176657273650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034144490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000003f2bbb97f2047867a45b631113ee1efe08748a090000000000000000000000004fd907a35d36dcae52af7317068794791f8e922500000000000000000000000030103ba8d2bd2280144b72401170834e0c6080860000000000000000000000008c685c44facb8bf246fcb0e383cca4bd46634bf800000000000000000000000043098f3c62b4f5e6d4292acbc51bb727c9c278940000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000001b00000000000000000000000000000000000000000000000000000000000000150000000000000000000000000000000000000000000000000000000000000015000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000015
Deployed Bytecode
0x6080604052600436106102455760003560e01c80637b58de8b11610139578063ab22ff02116100b6578063efef39a11161007a578063efef39a1146106a5578063f242432a146106b8578063f260159e146106d8578063f2fde38b146106ed578063f5298aca1461070d578063f86850301461072d57600080fd5b8063ab22ff02146105c3578063ab8e0a29146105e3578063bd85b039146105f9578063ce7c2ac214610626578063e985e9c51461065c57600080fd5b80638f0d94b2116100fd5780638f0d94b21461053b57806391b7f5ed1461055b5780639245011d1461057b57806395d89b411461058e578063a22cb465146105a357600080fd5b80637b58de8b146104b25780637cb64759146104c857806381e3d057146104e85780638456cb59146104fe5780638da5cb5b1461051357600080fd5b80633e8d1c07116101c75780635c975abb1161018b5780635c975abb1461043a5780635ee6509a146104525780636817c76c146104675780636b20c4541461047d578063715018a61461049d57600080fd5b80633e8d1c07146103935780633f4ba83a146103a95780634bbce33f146103be5780634e1273f4146103de5780634f558e791461040b57600080fd5b80630e89341c1161020e5780630e89341c1461030757806319165587146103275780632eb2c2d6146103475780632eb4a7ab146103675780633b44c8d01461037d57600080fd5b8062fdd58e1461024a578063019863c31461027d57806301ffc9a71461029357806302fe5305146102c357806306fdde03146102e5575b600080fd5b34801561025657600080fd5b5061026a6102653660046129f1565b61075a565b6040519081526020015b60405180910390f35b34801561028957600080fd5b5061026a60145481565b34801561029f57600080fd5b506102b36102ae366004612a33565b6107f3565b6040519015158152602001610274565b3480156102cf57600080fd5b506102e36102de366004612af8565b610845565b005b3480156102f157600080fd5b506102fa61087b565b6040516102749190612b9d565b34801561031357600080fd5b506102fa610322366004612bb0565b61090d565b34801561033357600080fd5b506102e3610342366004612bc9565b61099d565b34801561035357600080fd5b506102e3610362366004612c9b565b610a0c565b34801561037357600080fd5b5061026a60155481565b34801561038957600080fd5b5061026a60115481565b34801561039f57600080fd5b5061026a60105481565b3480156103b557600080fd5b506102e3610aa3565b3480156103ca57600080fd5b506102e36103d9366004612d49565b610ad7565b3480156103ea57600080fd5b506103fe6103f9366004612d6b565b610c9f565b6040516102749190612e73565b34801561041757600080fd5b506102b3610426366004612bb0565b600090815260046020526040902054151590565b34801561044657600080fd5b5060005460ff166102b3565b34801561045e57600080fd5b506102e3610dc9565b34801561047357600080fd5b5061026a600e5481565b34801561048957600080fd5b506102e3610498366004612e86565b610e0d565b3480156104a957600080fd5b506102e3610eca565b3480156104be57600080fd5b5061026a60135481565b3480156104d457600080fd5b506102e36104e3366004612bb0565b610efe565b3480156104f457600080fd5b5061026a60125481565b34801561050a57600080fd5b506102e3610f2d565b34801561051f57600080fd5b506005546040516001600160a01b039091168152602001610274565b34801561054757600080fd5b506102e3610556366004612f12565b610f5f565b34801561056757600080fd5b506102e3610576366004612bb0565b610fbf565b6102e3610589366004612f55565b610fee565b34801561059a57600080fd5b506102fa611234565b3480156105af57600080fd5b506102e36105be366004612fd8565b611243565b3480156105cf57600080fd5b506102e36105de366004613016565b611252565b3480156105ef57600080fd5b5061026a600f5481565b34801561060557600080fd5b5061026a610614366004612bb0565b60009081526004602052604090205490565b34801561063257600080fd5b5061026a610641366004612bc9565b6001600160a01b03166000908152600a602052604090205490565b34801561066857600080fd5b506102b3610677366004613051565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102e36106b3366004612bb0565b611303565b3480156106c457600080fd5b506102e36106d336600461307f565b6113f1565b3480156106e457600080fd5b506102e3611436565b3480156106f957600080fd5b506102e3610708366004612bc9565b6114c5565b34801561071957600080fd5b506102e36107283660046130e8565b61155d565b34801561073957600080fd5b5061026a610748366004612bc9565b60166020526000908152604090205481565b60006001600160a01b0383166107cb5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061082457506001600160e01b031982166303a24d0760e21b145b8061083f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b0316331461086f5760405162461bcd60e51b81526004016107c29061311d565b61087881611731565b50565b60606006805461088a90613152565b80601f01602080910402602001604051908101604052809291908181526020018280546108b690613152565b80156109035780601f106108d857610100808354040283529160200191610903565b820191906000526020600020905b8154815290600101906020018083116108e657829003601f168201915b5050505050905090565b6000818152600460205260409020546060906109645760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b60448201526064016107c2565b61096d82611744565b610976836117d8565b60405160200161098792919061318d565b6040516020818303038152906040529050919050565b336001600160a01b03821614806109be57506005546001600160a01b031633145b610a035760405162461bcd60e51b81526020600482015260166024820152752932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b60448201526064016107c2565b610878816118de565b6001600160a01b038516331480610a285750610a288533610677565b610a8f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107c2565b610a9c8585858585611aaf565b5050505050565b6005546001600160a01b03163314610acd5760405162461bcd60e51b81526004016107c29061311d565b610ad5611c54565b565b60005460ff1615610afa5760405162461bcd60e51b81526004016107c2906131bc565b80610b05338461075a565b10158015610b135750600081115b610b6b5760405162461bcd60e51b8152602060048201526024808201527f4275726e43617264466f724f746865723a20616d6f756e74206e6f7420616c6c6044820152631bddd95960e21b60648201526084016107c2565b6013544210158015610b7f57506014544211155b610bcb5760405162461bcd60e51b815260206004820152601f60248201527f4275726e43617264466f724f746865723a2077696e646f7720636c6f7365640060448201526064016107c2565b600f548210610c2c5760405162461bcd60e51b815260206004820152602760248201527f4275726e43617264466f724f746865723a20636172642063616e6e6f7420626560448201526608189d5c9b995960ca1b60648201526084016107c2565b610c37338383611ce7565b610c5433600f548360405180602001604052806000815250611dec565b336001600160a01b0316600f54837f7e3df7e16f2dd583d1d92bde1a070a6a70abb33398944ad0a17a09c10989162a84604051610c9391815260200190565b60405180910390a45050565b60608151835114610d045760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107c2565b6000835167ffffffffffffffff811115610d2057610d20612a57565b604051908082528060200260200182016040528015610d49578160200160208202803683370190505b50905060005b8451811015610dc157610d94858281518110610d6d57610d6d6131e6565b6020026020010151858381518110610d8757610d876131e6565b602002602001015161075a565b828281518110610da657610da66131e6565b6020908102919091010152610dba81613212565b9050610d4f565b509392505050565b6005546001600160a01b03163314610df35760405162461bcd60e51b81526004016107c29061311d565b6001600f6000828254610e06919061322d565b9091555050565b601254421180610e36575060008052600460205260008051602061363d83398151915254617530145b610e825760405162461bcd60e51b815260206004820152601d60248201527f4275726e3a206e6f7420616c6c6f77656420647572696e672073616c6500000060448201526064016107c2565b6001600160a01b038316331480610e9e5750610e9e8333610677565b610eba5760405162461bcd60e51b81526004016107c290613245565b610ec5838383611efe565b505050565b6005546001600160a01b03163314610ef45760405162461bcd60e51b81526004016107c29061311d565b610ad5600061208f565b6005546001600160a01b03163314610f285760405162461bcd60e51b81526004016107c29061311d565b601555565b6005546001600160a01b03163314610f575760405162461bcd60e51b81526004016107c29061311d565b610ad56120e1565b6005546001600160a01b03163314610f895760405162461bcd60e51b81526004016107c29061311d565b600d805460ff94851662ff00ff199091161762010000938516939093029290921761ff0019166101009190931602919091179055565b6005546001600160a01b03163314610fe95760405162461bcd60e51b81526004016107c29061311d565b600e55565b60005460ff16156110115760405162461bcd60e51b81526004016107c2906131bc565b601054421015801561102557506012544211155b6110715760405162461bcd60e51b815260206004820152601b60248201527f4561726c79206163636573733a2077696e646f7720636c6f736564000000000060448201526064016107c2565b60008052600460205260008051602061363d83398151915254614f9c9061109990869061322d565b11156110e75760405162461bcd60e51b815260206004820181905260248201527f4561726c79206163636573733a206d617820737570706c79207265616368656460448201526064016107c2565b600d54336000908152601660205260409020546201000090910460ff161161114a5760405162461bcd60e51b81526020600482015260166024820152751b585e081d1e08185b5bdd5b9d08195e18d95959195960521b60448201526064016107c2565b60408051602081018590526bffffffffffffffffffffffff193360601b1691810191909152600260548201526000906074016040516020818303038152906040528051906020012090506111d5838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015549150849050612139565b61122b5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b60648201526084016107c2565b610a9c8561214f565b60606007805461088a90613152565b61124e3383836122ff565b5050565b6005546001600160a01b0316331461127c5760405162461bcd60e51b81526004016107c29061311d565b838211801561128a57508285115b801561129557508484115b80156112a057508181115b6112ec5760405162461bcd60e51b815260206004820152601e60248201527f77696e646f7720636f6d62696e6174696f6e206e6f7420616c6c6f776564000060448201526064016107c2565b601194909455601292909255601055601355601455565b60005460ff16156113265760405162461bcd60e51b81526004016107c2906131bc565b601154421015801561133a57506012544211155b6113865760405162461bcd60e51b815260206004820152601760248201527f50757263686173653a2077696e646f7720636c6f73656400000000000000000060448201526064016107c2565b600d543360009081526016602052604090205461010090910460ff16116113e85760405162461bcd60e51b81526020600482015260166024820152751b585e081d1e08185b5bdd5b9d08195e18d95959195960521b60448201526064016107c2565b6108788161214f565b6001600160a01b03851633148061140d575061140d8533610677565b6114295760405162461bcd60e51b81526004016107c290613245565b610a9c85858585856123e0565b6005546001600160a01b031633146114605760405162461bcd60e51b81526004016107c29061311d565b6001600f54116114b25760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420676f2062656c6f77207374616765203100000000000000000060448201526064016107c2565b6001600f6000828254610e06919061328e565b6005546001600160a01b031633146114ef5760405162461bcd60e51b81526004016107c29061311d565b6001600160a01b0381166115545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c2565b6108788161208f565b601254421180611586575060008052600460205260008051602061363d83398151915254617530145b6115d25760405162461bcd60e51b815260206004820152601d60248201527f4275726e3a206e6f7420616c6c6f77656420647572696e672073616c6500000060448201526064016107c2565b6001600160a01b0383163314806115ee57506115ee8333610677565b61160a5760405162461bcd60e51b81526004016107c290613245565b610ec5838383611ce7565b6001600160a01b03851661169c5760005b835181101561169a57828181518110611641576116416131e6565b60200260200101516004600086848151811061165f5761165f6131e6565b602002602001015181526020019081526020016000206000828254611684919061322d565b90915550611693905081613212565b9050611626565b505b6001600160a01b0384166117235760005b8351811015611721578281815181106116c8576116c86131e6565b6020026020010151600460008684815181106116e6576116e66131e6565b60200260200101518152602001908152602001600020600082825461170b919061328e565b9091555061171a905081613212565b90506116ad565b505b505050505050565b3b151590565b805161124e906003906020840190612943565b60606003805461175390613152565b80601f016020809104026020016040519081016040528092919081815260200182805461177f90613152565b80156117cc5780601f106117a1576101008083540402835291602001916117cc565b820191906000526020600020905b8154815290600101906020018083116117af57829003601f168201915b50505050509050919050565b6060816117fc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611826578061181081613212565b915061181f9050600a836132bb565b9150611800565b60008167ffffffffffffffff81111561184157611841612a57565b6040519080825280601f01601f19166020018201604052801561186b576020820181803683370190505b5090505b84156118d65761188060018361328e565b915061188d600a866132cf565b61189890603061322d565b60f81b8183815181106118ad576118ad6131e6565b60200101906001600160f81b031916908160001a9053506118cf600a866132bb565b945061186f565b949350505050565b6001600160a01b0381166000908152600a60205260409020546119525760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016107c2565b600060095447611962919061322d565b6001600160a01b0383166000908152600b6020908152604080832054600854600a90935290832054939450919261199990856132e3565b6119a391906132bb565b6119ad919061328e565b905080611a105760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016107c2565b6001600160a01b0383166000908152600b6020526040902054611a3490829061322d565b6001600160a01b0384166000908152600b6020526040902055600954611a5b90829061322d565b600955611a6883826124f8565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b8151835114611ad05760405162461bcd60e51b81526004016107c290613302565b6001600160a01b038416611af65760405162461bcd60e51b81526004016107c29061334a565b33611b05818787878787612611565b60005b8451811015611bee576000858281518110611b2557611b256131e6565b602002602001015190506000858381518110611b4357611b436131e6565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015611b945760405162461bcd60e51b81526004016107c29061338f565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611bd390849061322d565b9250508190555050505080611be790613212565b9050611b08565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611c3e9291906133d9565b60405180910390a461172381878787878761261f565b60005460ff16611c9d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107c2565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611d0d5760405162461bcd60e51b81526004016107c290613407565b33611d3c81856000611d1e8761278a565b611d278761278a565b60405180602001604052806000815250612611565b60008381526001602090815260408083206001600160a01b038816845290915290205482811015611d7f5760405162461bcd60e51b81526004016107c29061344a565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416611e4c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107c2565b33611e6c81600087611e5d8861278a565b611e668861278a565b87612611565b60008481526001602090815260408083206001600160a01b038916845290915281208054859290611e9e90849061322d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a9c816000878787876127d5565b6001600160a01b038316611f245760405162461bcd60e51b81526004016107c290613407565b8051825114611f455760405162461bcd60e51b81526004016107c290613302565b6000339050611f6881856000868660405180602001604052806000815250612611565b60005b8351811015612030576000848281518110611f8857611f886131e6565b602002602001015190506000848381518110611fa657611fa66131e6565b60209081029190910181015160008481526001835260408082206001600160a01b038c168352909352919091205490915081811015611ff75760405162461bcd60e51b81526004016107c29061344a565b60009283526001602090815260408085206001600160a01b038b168652909152909220910390558061202881613212565b915050611f6b565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516120819291906133d9565b60405180910390a450505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff16156121045760405162461bcd60e51b81526004016107c2906131bc565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cca3390565b600082612146858461289f565b14949350505050565b6000811180156121645750600d5460ff168111155b6121b05760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20616d6f756e742070726f68696269746564000000000060448201526064016107c2565b60008052600460205260008051602061363d83398151915254617530906121d890839061322d565b11156122265760405162461bcd60e51b815260206004820152601c60248201527f50757263686173653a204d617820737570706c7920726561636865640000000060448201526064016107c2565b600e5461223390826132e3565b34146122815760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e74000000000060448201526064016107c2565b3360009081526016602052604081208054600192906122a190849061322d565b925050819055506122c43360008360405180602001604052806000815250611dec565b60405181815233906000907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a350565b816001600160a01b0316836001600160a01b031614156123735760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107c2565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166124065760405162461bcd60e51b81526004016107c29061334a565b33612416818787611e5d8861278a565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156124595760405162461bcd60e51b81526004016107c29061338f565b60008581526001602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061249890849061322d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46117218288888888886127d5565b804710156125485760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107c2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612595576040519150601f19603f3d011682016040523d82523d6000602084013e61259a565b606091505b5050905080610ec55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107c2565b611723868686868686611615565b6001600160a01b0384163b156117235760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612663908990899088908890889060040161348e565b602060405180830381600087803b15801561267d57600080fd5b505af19250505080156126ad575060408051601f3d908101601f191682019092526126aa918101906134ec565b60015b61275a576126b9613509565b806308c379a014156126f357506126ce613525565b806126d957506126f5565b8060405162461bcd60e51b81526004016107c29190612b9d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107c2565b6001600160e01b0319811663bc197c8160e01b146117215760405162461bcd60e51b81526004016107c2906135af565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106127c4576127c46131e6565b602090810291909101015292915050565b6001600160a01b0384163b156117235760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061281990899089908890889088906004016135f7565b602060405180830381600087803b15801561283357600080fd5b505af1925050508015612863575060408051601f3d908101601f19168201909252612860918101906134ec565b60015b61286f576126b9613509565b6001600160e01b0319811663f23a6e6160e01b146117215760405162461bcd60e51b81526004016107c2906135af565b600081815b8451811015610dc15760008582815181106128c1576128c16131e6565b60200260200101519050808311612903576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612930565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061293b81613212565b9150506128a4565b82805461294f90613152565b90600052602060002090601f01602090048101928261297157600085556129b7565b82601f1061298a57805160ff19168380011785556129b7565b828001600101855582156129b7579182015b828111156129b757825182559160200191906001019061299c565b506129c39291506129c7565b5090565b5b808211156129c357600081556001016129c8565b6001600160a01b038116811461087857600080fd5b60008060408385031215612a0457600080fd5b8235612a0f816129dc565b946020939093013593505050565b6001600160e01b03198116811461087857600080fd5b600060208284031215612a4557600080fd5b8135612a5081612a1d565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612a9357612a93612a57565b6040525050565b600067ffffffffffffffff831115612ab457612ab4612a57565b604051612acb601f8501601f191660200182612a6d565b809150838152848484011115612ae057600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612b0a57600080fd5b813567ffffffffffffffff811115612b2157600080fd5b8201601f81018413612b3257600080fd5b6118d684823560208401612a9a565b60005b83811015612b5c578181015183820152602001612b44565b83811115612b6b576000848401525b50505050565b60008151808452612b89816020860160208601612b41565b601f01601f19169290920160200192915050565b602081526000612a506020830184612b71565b600060208284031215612bc257600080fd5b5035919050565b600060208284031215612bdb57600080fd5b8135612a50816129dc565b600067ffffffffffffffff821115612c0057612c00612a57565b5060051b60200190565b600082601f830112612c1b57600080fd5b81356020612c2882612be6565b604051612c358282612a6d565b83815260059390931b8501820192828101915086841115612c5557600080fd5b8286015b84811015612c705780358352918301918301612c59565b509695505050505050565b600082601f830112612c8c57600080fd5b612a5083833560208501612a9a565b600080600080600060a08688031215612cb357600080fd5b8535612cbe816129dc565b94506020860135612cce816129dc565b9350604086013567ffffffffffffffff80821115612ceb57600080fd5b612cf789838a01612c0a565b94506060880135915080821115612d0d57600080fd5b612d1989838a01612c0a565b93506080880135915080821115612d2f57600080fd5b50612d3c88828901612c7b565b9150509295509295909350565b60008060408385031215612d5c57600080fd5b50508035926020909101359150565b60008060408385031215612d7e57600080fd5b823567ffffffffffffffff80821115612d9657600080fd5b818501915085601f830112612daa57600080fd5b81356020612db782612be6565b604051612dc48282612a6d565b83815260059390931b8501820192828101915089841115612de457600080fd5b948201945b83861015612e0b578535612dfc816129dc565b82529482019490820190612de9565b96505086013592505080821115612e2157600080fd5b50612e2e85828601612c0a565b9150509250929050565b600081518084526020808501945080840160005b83811015612e6857815187529582019590820190600101612e4c565b509495945050505050565b602081526000612a506020830184612e38565b600080600060608486031215612e9b57600080fd5b8335612ea6816129dc565b9250602084013567ffffffffffffffff80821115612ec357600080fd5b612ecf87838801612c0a565b93506040860135915080821115612ee557600080fd5b50612ef286828701612c0a565b9150509250925092565b803560ff81168114612f0d57600080fd5b919050565b600080600060608486031215612f2757600080fd5b612f3084612efc565b9250612f3e60208501612efc565b9150612f4c60408501612efc565b90509250925092565b60008060008060608587031215612f6b57600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115612f9157600080fd5b818701915087601f830112612fa557600080fd5b813581811115612fb457600080fd5b8860208260051b8501011115612fc957600080fd5b95989497505060200194505050565b60008060408385031215612feb57600080fd5b8235612ff6816129dc565b91506020830135801515811461300b57600080fd5b809150509250929050565b600080600080600060a0868803121561302e57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000806040838503121561306457600080fd5b823561306f816129dc565b9150602083013561300b816129dc565b600080600080600060a0868803121561309757600080fd5b85356130a2816129dc565b945060208601356130b2816129dc565b93506040860135925060608601359150608086013567ffffffffffffffff8111156130dc57600080fd5b612d3c88828901612c7b565b6000806000606084860312156130fd57600080fd5b8335613108816129dc565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061316657607f821691505b6020821081141561318757634e487b7160e01b600052602260045260246000fd5b50919050565b6000835161319f818460208801612b41565b8351908301906131b3818360208801612b41565b01949350505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613226576132266131fc565b5060010190565b60008219821115613240576132406131fc565b500190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6000828210156132a0576132a06131fc565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826132ca576132ca6132a5565b500490565b6000826132de576132de6132a5565b500690565b60008160001904831182151516156132fd576132fd6131fc565b500290565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006133ec6040830185612e38565b82810360208401526133fe8185612e38565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906134ba90830186612e38565b82810360608401526134cc8186612e38565b905082810360808401526134e08185612b71565b98975050505050505050565b6000602082840312156134fe57600080fd5b8151612a5081612a1d565b600060033d11156135225760046000803e5060005160e01c5b90565b600060443d10156135335790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561356357505050505090565b828501915081518181111561357b5750505050505090565b843d87010160208285010111156135955750505050505090565b6135a460208286010187612a6d565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061363190830184612b71565b97965050505050505056fe17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3eca26469706673582212206c63ac62438de6ba105c7a20635d5c3f7368e25abcef926d97dac74f20a4d61864736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160ef54104246cbe56a78f64552f7e4f427a5a2ae971769973ddc224675860fab4b000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000024616469646173204f726967696e616c733a20496e746f20746865204d65746176657273650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034144490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000003f2bbb97f2047867a45b631113ee1efe08748a090000000000000000000000004fd907a35d36dcae52af7317068794791f8e922500000000000000000000000030103ba8d2bd2280144b72401170834e0c6080860000000000000000000000008c685c44facb8bf246fcb0e383cca4bd46634bf800000000000000000000000043098f3c62b4f5e6d4292acbc51bb727c9c278940000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000001b00000000000000000000000000000000000000000000000000000000000000150000000000000000000000000000000000000000000000000000000000000015000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000015
-----Decoded View---------------
Arg [0] : _name (string): adidas Originals: Into the Metaverse
Arg [1] : _symbol (string): ADI
Arg [2] : _uri (string):
Arg [3] : _merkleRoot (bytes32): 0xef54104246cbe56a78f64552f7e4f427a5a2ae971769973ddc224675860fab4b
Arg [4] : payees (address[]): 0x3f2BBB97f2047867a45B631113eE1eFE08748A09,0x4fD907a35D36dcAe52af7317068794791F8e9225,0x30103bA8d2bD2280144b72401170834e0C608086,0x8c685C44fACB8Bf246fCb0E383CCa4Bd46634bF8,0x43098F3c62B4F5e6d4292aCbC51bB727C9C27894
Arg [5] : shares_ (uint256[]): 27,21,21,10,21
-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : ef54104246cbe56a78f64552f7e4f427a5a2ae971769973ddc224675860fab4b
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [7] : 616469646173204f726967696e616c733a20496e746f20746865204d65746176
Arg [8] : 6572736500000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 4144490000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [13] : 0000000000000000000000003f2bbb97f2047867a45b631113ee1efe08748a09
Arg [14] : 0000000000000000000000004fd907a35d36dcae52af7317068794791f8e9225
Arg [15] : 00000000000000000000000030103ba8d2bd2280144b72401170834e0c608086
Arg [16] : 0000000000000000000000008c685c44facb8bf246fcb0e383cca4bd46634bf8
Arg [17] : 00000000000000000000000043098f3c62b4f5e6d4292acbc51bb727c9c27894
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [19] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [22] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000015
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.