More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 24,766 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21239960 | 22 hrs ago | IN | 0 ETH | 0.00043121 | ||||
Set Approval For... | 21218966 | 3 days ago | IN | 0 ETH | 0.0004814 | ||||
Safe Transfer Fr... | 21218306 | 3 days ago | IN | 0 ETH | 0.00052417 | ||||
Set Approval For... | 21176419 | 9 days ago | IN | 0 ETH | 0.00126257 | ||||
Revoke Role | 21049450 | 27 days ago | IN | 0 ETH | 0.00014137 | ||||
Safe Transfer Fr... | 21002734 | 34 days ago | IN | 0 ETH | 0.00040312 | ||||
Set Approval For... | 20967612 | 38 days ago | IN | 0 ETH | 0.00066496 | ||||
Set Approval For... | 20967339 | 38 days ago | IN | 0 ETH | 0.00078988 | ||||
Set Approval For... | 20940052 | 42 days ago | IN | 0 ETH | 0.00055075 | ||||
Set Approval For... | 20927331 | 44 days ago | IN | 0 ETH | 0.00077696 | ||||
Set Approval For... | 20924322 | 44 days ago | IN | 0 ETH | 0.00073264 | ||||
Safe Transfer Fr... | 20793053 | 63 days ago | IN | 0 ETH | 0.00130434 | ||||
Set Approval For... | 20731783 | 71 days ago | IN | 0 ETH | 0.00009517 | ||||
Set Approval For... | 20612624 | 88 days ago | IN | 0 ETH | 0.00008696 | ||||
Set Approval For... | 20611066 | 88 days ago | IN | 0 ETH | 0.00001955 | ||||
Set Approval For... | 20604677 | 89 days ago | IN | 0 ETH | 0.00002011 | ||||
Set Approval For... | 20604496 | 89 days ago | IN | 0 ETH | 0.00002608 | ||||
Set Approval For... | 20595996 | 90 days ago | IN | 0 ETH | 0.00004409 | ||||
Set Approval For... | 20575257 | 93 days ago | IN | 0 ETH | 0.00002452 | ||||
Safe Transfer Fr... | 20560355 | 95 days ago | IN | 0 ETH | 0.00005404 | ||||
Set Approval For... | 20557331 | 96 days ago | IN | 0 ETH | 0.00010165 | ||||
Safe Transfer Fr... | 20425515 | 114 days ago | IN | 0 ETH | 0.00040979 | ||||
Set Approval For... | 20424426 | 114 days ago | IN | 0 ETH | 0.00013363 | ||||
Set Approval For... | 20356235 | 124 days ago | IN | 0 ETH | 0.00022863 | ||||
Safe Transfer Fr... | 20284025 | 134 days ago | IN | 0 ETH | 0.00043741 |
Latest 14 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14722401 | 931 days ago | 742.312995 ETH | ||||
14722401 | 931 days ago | 39.069105 ETH | ||||
14561305 | 956 days ago | 206.36622 ETH | ||||
14561305 | 956 days ago | 10.86138 ETH | ||||
14494342 | 967 days ago | 0.0727 ETH | ||||
14486559 | 968 days ago | 0.0727 ETH | ||||
14485264 | 968 days ago | 0.1454 ETH | ||||
14482928 | 969 days ago | 0.3635 ETH | ||||
14482836 | 969 days ago | 0.7997 ETH | ||||
14482686 | 969 days ago | 0.0727 ETH | ||||
14482368 | 969 days ago | 0.0727 ETH | ||||
14481631 | 969 days ago | 0.0727 ETH | ||||
14481631 | 969 days ago | 0.0727 ETH | ||||
14479823 | 969 days ago | 0.1454 ETH |
Loading...
Loading
Contract Name:
MurakamiFlowersSeed
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 99999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /// @title: Murakami.Flowers Seed /// @author: niftykit.com import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./BaseCollection.sol"; contract MurakamiFlowersSeed is BaseCollection, ERC1155, ERC1155Burnable, ERC1155Supply, ERC2981, AccessControl { using MerkleProof for bytes32[]; uint256 public constant SEED = 0; uint256 public maxSupply; mapping(address => uint256) private _count; string private _name; string private _symbol; address private _flowerAddress; bytes32 private _merkleRoot; uint256 private _price; bool private _active; constructor( string memory name_, string memory symbol_, uint256 maxSupply_, uint256 price_, address royalty_, uint96 royaltyFee_, string memory uri_, address niftyKit_ ) ERC1155(uri_) BaseCollection(_msgSender(), niftyKit_) { _name = name_; _symbol = symbol_; maxSupply = maxSupply_; _price = price_; _active = false; _setDefaultRoyalty(royalty_, royaltyFee_); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function redeem( uint256 amount, uint256 allowed, bytes32[] calldata proof ) external payable { require(_active, "Not active"); require(amount > 0, "Invalid amount"); require(_price * amount <= msg.value, "Value incorrect"); require(_count[_msgSender()] + amount <= allowed, "Exceeded max"); require(totalSupply(SEED) + amount <= maxSupply, "Exceeded max supply"); require( MerkleProof.verify( proof, _merkleRoot, keccak256(abi.encodePacked(_msgSender(), allowed)) ), "Not part of list" ); unchecked { _count[_msgSender()] = _count[_msgSender()] + amount; } _niftyKit.addFees(msg.value); _mint(_msgSender(), SEED, amount, ""); } function mint(address account, uint256 amount) external onlyOwner { require(totalSupply(SEED) + amount <= maxSupply, "Exceeded max supply"); _mint(account, SEED, amount, ""); } function setMaxSupply(uint256 newMaxSupply) external onlyOwner { maxSupply = newMaxSupply; } function setPrice(uint256 newPrice) external onlyOwner { _price = newPrice; } function setActive(bool newActive) external onlyOwner { _active = newActive; } function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function setURI(string memory newURI) external onlyRole(DEFAULT_ADMIN_ROLE) { _setURI(newURI); } function setMerkleRoot(bytes32 newRoot) external onlyRole(DEFAULT_ADMIN_ROLE) { _merkleRoot = newRoot; } function setFlowerAddress(address newFlowerAddress) external onlyRole(DEFAULT_ADMIN_ROLE) { _flowerAddress = newFlowerAddress; } function burn(address account, uint256 amount) external { require(_msgSender() == _flowerAddress, "Invalid address"); _burn(account, SEED, amount); } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function merkleRoot() external view returns (bytes32) { return _merkleRoot; } function price() external view returns (uint256) { return _price; } function active() external view returns (bool) { return _active; } // The following functions are overrides required by Solidity. function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal override(ERC1155, ERC1155Supply) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function supportsInterface(bytes4 interfaceId) public view override(ERC1155, ERC2981, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// 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/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 (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 (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ 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 = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./INiftyKit.sol"; abstract contract BaseCollection is Ownable { using Address for address; address internal _treasury; INiftyKit internal _niftyKit; constructor(address treasury_, address niftyKit_) { _treasury = treasury_; _niftyKit = INiftyKit(niftyKit_); } function withdraw() external onlyOwner { require(address(this).balance > 0, "0 balance"); uint256 balance = address(this).balance; uint256 fees = _niftyKit.getFees(address(this)); _niftyKit.addFeesClaimed(fees); Address.sendValue(payable(address(_niftyKit)), fees); Address.sendValue(payable(_treasury), balance - fees); } function setTreasury(address newTreasury) external onlyOwner { _treasury = newTreasury; } function treasury() external view returns (address) { return _treasury; } }
// 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 (last updated v4.5.0) (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. * * NOTE: 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. * * NOTE: 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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity ^0.8.12; interface INiftyKit { /** * @dev Add fees from Collection */ function addFees(uint256 amount) external; /** * @dev Add fees claimed by the Collection */ function addFeesClaimed(uint256 amount) external; /** * @dev Get fees accrued by the account */ function getFees(address account) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 99999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "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":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"address","name":"royalty_","type":"address"},{"internalType":"uint96","name":"royaltyFee_","type":"uint96"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"address","name":"niftyKit_","type":"address"}],"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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"allowed","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"redeem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"bool","name":"newActive","type":"bool"}],"name":"setActive","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":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFlowerAddress","type":"address"}],"name":"setFlowerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setURI","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":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004ee538038062004ee58339810160408190526200003491620004a1565b8133826200004233620000e1565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055620000798162000131565b5087516200008f90600c9060208b0190620002f9565b508651620000a590600d9060208a0190620002f9565b50600a86905560108590556011805460ff19169055620000c684846200014a565b620000d36000336200024f565b5050505050505050620005bb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805162000146906005906020840190620002f9565b5050565b6127106001600160601b0382161115620001be5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002165760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001b5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b62000146828260008281526009602090815260408083206001600160a01b038516845290915290205460ff16620001465760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002b53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b82805462000307906200057e565b90600052602060002090601f0160209004810192826200032b576000855562000376565b82601f106200034657805160ff191683800117855562000376565b8280016001018555821562000376579182015b828111156200037657825182559160200191906001019062000359565b506200038492915062000388565b5090565b5b8082111562000384576000815560010162000389565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003c757600080fd5b81516001600160401b0380821115620003e457620003e46200039f565b604051601f8301601f19908116603f011681019082821181831017156200040f576200040f6200039f565b816040528381526020925086838588010111156200042c57600080fd5b600091505b8382101562000450578582018301518183018401529082019062000431565b83821115620004625760008385830101525b9695505050505050565b80516001600160a01b03811681146200048457600080fd5b919050565b80516001600160601b03811681146200048457600080fd5b600080600080600080600080610100898b031215620004bf57600080fd5b88516001600160401b0380821115620004d757600080fd5b620004e58c838d01620003b5565b995060208b0151915080821115620004fc57600080fd5b6200050a8c838d01620003b5565b985060408b0151975060608b015196506200052860808c016200046c565b95506200053860a08c0162000489565b945060c08b01519150808211156200054f57600080fd5b506200055e8b828c01620003b5565b9250506200056f60e08a016200046c565b90509295985092959890939650565b600181811c908216806200059357607f821691505b60208210811415620005b557634e487b7160e01b600052602260045260246000fd5b50919050565b61491a80620005cb6000396000f3fe6080604052600436106102d05760003560e01c8063715018a611610179578063acec338a116100d6578063e985e9c51161008a578063f242432a11610064578063f242432a14610860578063f2fde38b14610880578063f5298aca146108a057600080fd5b8063e985e9c5146107ca578063eb5f300214610820578063f0f442601461084057600080fd5b8063bd85b039116100bb578063bd85b03914610767578063d547741f14610794578063d5abeb01146107b457600080fd5b8063acec338a14610734578063b97bff1a1461075457600080fd5b806395d89b411161012d578063a035b1fe11610112578063a035b1fe146106ff578063a217fddf146103d4578063a22cb4651461071457600080fd5b806395d89b41146106ca5780639dc29fac146106df57600080fd5b80638da5cb5b1161015e5780638da5cb5b1461062c57806391b7f5ed1461065757806391d148541461067757600080fd5b8063715018a6146105f75780637cb647591461060c57600080fd5b80632eb2c2d61161023257806340c10f19116101e657806361d027b3116101c057806361d027b31461056b5780636b20c454146105b75780636f8b44b0146105d757600080fd5b806340c10f19146104ef5780634e1273f41461050f5780634f558e791461053c57600080fd5b80632f2ff15d116102175780632f2ff15d1461049a57806336568abe146104ba5780633ccfd60b146104da57600080fd5b80632eb2c2d6146104655780632eb4a7ab1461048557600080fd5b806306fdde03116102895780630edc47371161026e5780630edc4737146103d4578063248a9ca3146103e95780632a55205a1461041957600080fd5b806306fdde03146103925780630e89341c146103b457600080fd5b806302fb0c5e116102ba57806302fb0c5e1461033857806302fe53051461035057806304634d8d1461037257600080fd5b8062fdd58e146102d557806301ffc9a714610308575b600080fd5b3480156102e157600080fd5b506102f56102f0366004613d24565b6108c0565b6040519081526020015b60405180910390f35b34801561031457600080fd5b50610328610323366004613d7c565b61099f565b60405190151581526020016102ff565b34801561034457600080fd5b5060115460ff16610328565b34801561035c57600080fd5b5061037061036b366004613e8f565b6109b0565b005b34801561037e57600080fd5b5061037061038d366004613ee0565b6109c9565b34801561039e57600080fd5b506103a7610a54565b6040516102ff9190613f9e565b3480156103c057600080fd5b506103a76103cf366004613fb1565b610ae6565b3480156103e057600080fd5b506102f5600081565b3480156103f557600080fd5b506102f5610404366004613fb1565b60009081526009602052604090206001015490565b34801561042557600080fd5b50610439610434366004613fca565b610b7a565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683526020830191909152016102ff565b34801561047157600080fd5b506103706104803660046140a1565b610c71565b34801561049157600080fd5b50600f546102f5565b3480156104a657600080fd5b506103706104b536600461414b565b610d3a565b3480156104c657600080fd5b506103706104d536600461414b565b610d65565b3480156104e657600080fd5b50610370610e14565b3480156104fb57600080fd5b5061037061050a366004613d24565b61106b565b34801561051b57600080fd5b5061052f61052a366004614177565b6111a9565b6040516102ff919061427d565b34801561054857600080fd5b50610328610557366004613fb1565b600090815260066020526040902054151590565b34801561057757600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102ff565b3480156105c357600080fd5b506103706105d2366004614290565b611301565b3480156105e357600080fd5b506103706105f2366004613fb1565b6113c1565b34801561060357600080fd5b50610370611447565b34801561061857600080fd5b50610370610627366004613fb1565b6114d4565b34801561063857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610592565b34801561066357600080fd5b50610370610672366004613fb1565b6114e6565b34801561068357600080fd5b5061032861069236600461414b565b600091825260096020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106d657600080fd5b506103a761156c565b3480156106eb57600080fd5b506103706106fa366004613d24565b61157b565b34801561070b57600080fd5b506010546102f5565b34801561072057600080fd5b5061037061072f366004614314565b61161e565b34801561074057600080fd5b5061037061074f36600461433e565b611629565b610370610762366004614359565b6116db565b34801561077357600080fd5b506102f5610782366004613fb1565b60009081526006602052604090205490565b3480156107a057600080fd5b506103706107af36600461414b565b611b04565b3480156107c057600080fd5b506102f5600a5481565b3480156107d657600080fd5b506103286107e53660046143dc565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561082c57600080fd5b5061037061083b366004614406565b611b2a565b34801561084c57600080fd5b5061037061085b366004614406565b611b7e565b34801561086c57600080fd5b5061037061087b366004614421565b611c46565b34801561088c57600080fd5b5061037061089b366004614406565b611d08565b3480156108ac57600080fd5b506103706108bb366004614486565b611e38565b600073ffffffffffffffffffffffffffffffffffffffff831661096a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b60006109aa82611ef8565b92915050565b60006109bc8133611f4e565b6109c582612020565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b6109c58282612033565b6060600c8054610a63906144b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f906144b9565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b606060058054610af5906144b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b21906144b9565b8015610b6e5780601f10610b4357610100808354040283529160200191610b6e565b820191906000526020600020905b815481529060010190602001808311610b5157829003601f168201915b50505050509050919050565b600082815260086020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610c3557506040805180820190915260075473ffffffffffffffffffffffffffffffffffffffff811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610c59906bffffffffffffffffffffffff168761453c565b610c639190614579565b915196919550909350505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480610c9a5750610c9a85336107e5565b610d26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610961565b610d3385858585856121ac565b5050505050565b600082815260096020526040902060010154610d568133611f4e565b610d6083836124f7565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610e0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610961565b6109c582826125eb565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b60004711610eff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f302062616c616e636500000000000000000000000000000000000000000000006044820152606401610961565b6002546040517f9af608c9000000000000000000000000000000000000000000000000000000008152306004820152479160009173ffffffffffffffffffffffffffffffffffffffff90911690639af608c990602401602060405180830381865afa158015610f72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9691906145b4565b6002546040517fb9bff4bb0000000000000000000000000000000000000000000000000000000081526004810183905291925073ffffffffffffffffffffffffffffffffffffffff169063b9bff4bb90602401600060405180830381600087803b15801561100357600080fd5b505af1158015611017573d6000803e3d6000fd5b505060025461103f925073ffffffffffffffffffffffffffffffffffffffff169050826126a6565b6001546109c59073ffffffffffffffffffffffffffffffffffffffff1661106683856145cd565b6126a6565b60005473ffffffffffffffffffffffffffffffffffffffff1633146110ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600a546000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8546111259083906145e4565b111561118d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4578636565646564206d617820737570706c79000000000000000000000000006044820152606401610961565b6109c58260008360405180602001604052806000815250612800565b6060815183511461123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610961565b6000835167ffffffffffffffff81111561125857611258613d99565b604051908082528060200260200182016040528015611281578160200160208202803683370190505b50905060005b84518110156112f9576112cc8582815181106112a5576112a56145fc565b60200260200101518583815181106112bf576112bf6145fc565b60200260200101516108c0565b8282815181106112de576112de6145fc565b60209081029190910101526112f28161462b565b9050611287565b509392505050565b73ffffffffffffffffffffffffffffffffffffffff831633148061132a575061132a83336107e5565b6113b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610961565b610d6083838361296f565b60005473ffffffffffffffffffffffffffffffffffffffff163314611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600a55565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b6114d26000612c9d565b565b60006114e08133611f4e565b50600f55565b60005473ffffffffffffffffffffffffffffffffffffffff163314611567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b601055565b6060600d8054610a63906144b9565b600e5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610961565b6109c582600083612d12565b6109c5338383612f1d565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60115460ff16611747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420616374697665000000000000000000000000000000000000000000006044820152606401610961565b600084116117b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610961565b34846010546117c0919061453c565b1115611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f56616c756520696e636f727265637400000000000000000000000000000000006044820152606401610961565b336000908152600b602052604090205483906118459086906145e4565b11156118ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4578636565646564206d617800000000000000000000000000000000000000006044820152606401610961565b600a546000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8546118e69086906145e4565b111561194e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4578636565646564206d617820737570706c79000000000000000000000000006044820152606401610961565b6119dd82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260348101899052909250605401905060405160208183030381529060405280519060200120613071565b611a43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f742070617274206f66206c697374000000000000000000000000000000006044820152606401610961565b336000908152600b602052604080822080548701905560025481517f107e9cf1000000000000000000000000000000000000000000000000000000008152346004820152915173ffffffffffffffffffffffffffffffffffffffff9091169263107e9cf1926024808201939182900301818387803b158015611ac457600080fd5b505af1158015611ad8573d6000803e3d6000fd5b50505050611afe611ae63390565b60008660405180602001604052806000815250612800565b50505050565b600082815260096020526040902060010154611b208133611f4e565b610d6083836125eb565b6000611b368133611f4e565b50600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611bff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff8516331480611c6f5750611c6f85336107e5565b611cfb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610961565b610d338585858585613087565b60005473ffffffffffffffffffffffffffffffffffffffff163314611d89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b73ffffffffffffffffffffffffffffffffffffffff8116611e2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610961565b611e3581612c9d565b50565b73ffffffffffffffffffffffffffffffffffffffff8316331480611e615750611e6183336107e5565b611eed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610961565b610d60838383612d12565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806109aa57506109aa826132bc565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166109c557611fa68173ffffffffffffffffffffffffffffffffffffffff166014613312565b611fb1836020613312565b604051602001611fc2929190614664565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261096191600401613f9e565b80516109c5906005906020840190613c62565b6127106bffffffffffffffffffffffff821611156120d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff8216612150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610961565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff9092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600755565b815183511461223d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff84166122e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610961565b336122ef81878787878761355c565b60005b845181101561246257600085828151811061230f5761230f6145fc565b60200260200101519050600085838151811061232d5761232d6145fc565b602090810291909101810151600084815260038352604080822073ffffffffffffffffffffffffffffffffffffffff8e1683529093529190912054909150818110156123fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610961565b600083815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b168252812080548492906124479084906145e4565b925050819055505050508061245b9061462b565b90506122f2565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124d99291906146e5565b60405180910390a46124ef81878787878761356a565b505050505050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166109c557600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561258d3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156109c557600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b80471015612710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610961565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461276a576040519150601f19603f3d011682016040523d82523d6000602084013e61276f565b606091505b5050905080610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff84166128a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610961565b336128c3816000876128b4886137f5565b6128bd886137f5565b8761355c565b600084815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152812080548592906129029084906145e4565b9091555050604080518581526020810185905273ffffffffffffffffffffffffffffffffffffffff80881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d3381600087878787613840565b73ffffffffffffffffffffffffffffffffffffffff8316612a12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610961565b8051825114612aa3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610961565b6000339050612ac68185600086866040518060200160405280600081525061355c565b60005b8351811015612c17576000848281518110612ae657612ae66145fc565b602002602001015190506000848381518110612b0457612b046145fc565b602090810291909101810151600084815260038352604080822073ffffffffffffffffffffffffffffffffffffffff8c168352909352919091205490915081811015612bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610961565b600092835260036020908152604080852073ffffffffffffffffffffffffffffffffffffffff8b1686529091529092209103905580612c0f8161462b565b915050612ac9565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612c8f9291906146e5565b60405180910390a450505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8316612db5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610961565b33612de481856000612dc6876137f5565b612dcf876137f5565b6040518060200160405280600081525061355c565b600083815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290205482811015612ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610961565b600084815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526004602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008261307e85846139ed565b14949350505050565b73ffffffffffffffffffffffffffffffffffffffff841661312a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610961565b3361313a8187876128b4886137f5565b600084815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152902054838110156131fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610961565b600085815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b81168552925280832087850390559088168252812080548692906132469084906145e4565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46132b3828888888888613840565b50505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806109aa57506109aa82613a59565b6060600061332183600261453c565b61332c9060026145e4565b67ffffffffffffffff81111561334457613344613d99565b6040519080825280601f01601f19166020018201604052801561336e576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106133a5576133a56145fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613408576134086145fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061344484600261453c565b61344f9060016145e4565b90505b60018111156134ec577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613490576134906145fc565b1a60f81b8282815181106134a6576134a66145fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936134e581614713565b9050613452565b508315613555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610961565b9392505050565b6124ef868686868686613b3c565b73ffffffffffffffffffffffffffffffffffffffff84163b156124ef576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906135e19089908990889088908890600401614748565b6020604051808303816000875af192505050801561363a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613637918101906147b3565b60015b613724576136466147d0565b806308c379a0141561369a575061365b6147ec565b80613666575061369c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109619190613f9e565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610961565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146132b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610961565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061382f5761382f6145fc565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b156124ef576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906138b79089908990889088908890600401614894565b6020604051808303816000875af1925050508015613910575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261390d918101906147b3565b60015b61391c576136466147d0565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146132b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610961565b600081815b84518110156112f9576000858281518110613a0f57613a0f6145fc565b60200260200101519050808311613a355760008381526020829052604090209250613a46565b600081815260208490526040902092505b5080613a518161462b565b9150506139f2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480613aec57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806109aa57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146109aa565b73ffffffffffffffffffffffffffffffffffffffff8516613bd05760005b8351811015613bce57828181518110613b7557613b756145fc565b602002602001015160066000868481518110613b9357613b936145fc565b602002602001015181526020019081526020016000206000828254613bb891906145e4565b90915550613bc790508161462b565b9050613b5a565b505b73ffffffffffffffffffffffffffffffffffffffff84166124ef5760005b83518110156132b357828181518110613c0957613c096145fc565b602002602001015160066000868481518110613c2757613c276145fc565b602002602001015181526020019081526020016000206000828254613c4c91906145cd565b90915550613c5b90508161462b565b9050613bee565b828054613c6e906144b9565b90600052602060002090601f016020900481019282613c905760008555613cd6565b82601f10613ca957805160ff1916838001178555613cd6565b82800160010185558215613cd6579182015b82811115613cd6578251825591602001919060010190613cbb565b50613ce2929150613ce6565b5090565b5b80821115613ce25760008155600101613ce7565b803573ffffffffffffffffffffffffffffffffffffffff81168114613d1f57600080fd5b919050565b60008060408385031215613d3757600080fd5b613d4083613cfb565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611e3557600080fd5b600060208284031215613d8e57600080fd5b813561355581613d4e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715613e0c57613e0c613d99565b6040525050565b600067ffffffffffffffff831115613e2d57613e2d613d99565b604051613e6260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8701160182613dc8565b809150838152848484011115613e7757600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613ea157600080fd5b813567ffffffffffffffff811115613eb857600080fd5b8201601f81018413613ec957600080fd5b613ed884823560208401613e13565b949350505050565b60008060408385031215613ef357600080fd5b613efc83613cfb565b915060208301356bffffffffffffffffffffffff81168114613f1d57600080fd5b809150509250929050565b60005b83811015613f43578181015183820152602001613f2b565b83811115611afe5750506000910152565b60008151808452613f6c816020860160208601613f28565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006135556020830184613f54565b600060208284031215613fc357600080fd5b5035919050565b60008060408385031215613fdd57600080fd5b50508035926020909101359150565b600067ffffffffffffffff82111561400657614006613d99565b5060051b60200190565b600082601f83011261402157600080fd5b8135602061402e82613fec565b60405161403b8282613dc8565b83815260059390931b850182019282810191508684111561405b57600080fd5b8286015b84811015614076578035835291830191830161405f565b509695505050505050565b600082601f83011261409257600080fd5b61355583833560208501613e13565b600080600080600060a086880312156140b957600080fd5b6140c286613cfb565b94506140d060208701613cfb565b9350604086013567ffffffffffffffff808211156140ed57600080fd5b6140f989838a01614010565b9450606088013591508082111561410f57600080fd5b61411b89838a01614010565b9350608088013591508082111561413157600080fd5b5061413e88828901614081565b9150509295509295909350565b6000806040838503121561415e57600080fd5b8235915061416e60208401613cfb565b90509250929050565b6000806040838503121561418a57600080fd5b823567ffffffffffffffff808211156141a257600080fd5b818501915085601f8301126141b657600080fd5b813560206141c382613fec565b6040516141d08282613dc8565b83815260059390931b85018201928281019150898411156141f057600080fd5b948201945b838610156142155761420686613cfb565b825294820194908201906141f5565b9650508601359250508082111561422b57600080fd5b5061423885828601614010565b9150509250929050565b600081518084526020808501945080840160005b8381101561427257815187529582019590820190600101614256565b509495945050505050565b6020815260006135556020830184614242565b6000806000606084860312156142a557600080fd5b6142ae84613cfb565b9250602084013567ffffffffffffffff808211156142cb57600080fd5b6142d787838801614010565b935060408601359150808211156142ed57600080fd5b506142fa86828701614010565b9150509250925092565b80358015158114613d1f57600080fd5b6000806040838503121561432757600080fd5b61433083613cfb565b915061416e60208401614304565b60006020828403121561435057600080fd5b61355582614304565b6000806000806060858703121561436f57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561439557600080fd5b818701915087601f8301126143a957600080fd5b8135818111156143b857600080fd5b8860208260051b85010111156143cd57600080fd5b95989497505060200194505050565b600080604083850312156143ef57600080fd5b6143f883613cfb565b915061416e60208401613cfb565b60006020828403121561441857600080fd5b61355582613cfb565b600080600080600060a0868803121561443957600080fd5b61444286613cfb565b945061445060208701613cfb565b93506040860135925060608601359150608086013567ffffffffffffffff81111561447a57600080fd5b61413e88828901614081565b60008060006060848603121561449b57600080fd5b6144a484613cfb565b95602085013595506040909401359392505050565b600181811c908216806144cd57607f821691505b60208210811415614507577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145745761457461450d565b500290565b6000826145af577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156145c657600080fd5b5051919050565b6000828210156145df576145df61450d565b500390565b600082198211156145f7576145f761450d565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561465d5761465d61450d565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161469c816017850160208801613f28565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516146d9816028840160208801613f28565b01602801949350505050565b6040815260006146f86040830185614242565b828103602084015261470a8185614242565b95945050505050565b6000816147225761472261450d565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261478160a0830186614242565b82810360608401526147938186614242565b905082810360808401526147a78185613f54565b98975050505050505050565b6000602082840312156147c557600080fd5b815161355581613d4e565b600060033d11156147e95760046000803e5060005160e01c5b90565b600060443d10156147fa5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561484857505050505090565b82850191508151818111156148605750505050505090565b843d870101602082850101111561487a5750505050505090565b61488960208286010187613dc8565b509095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a060808301526148d960a0830184613f54565b97965050505050505056fea264697066735822122025c6ee54576d92e3d4d3e4a5b26f6f09df65ab5b646c874bdce80a22558ac32364736f6c634300080c00330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000029ff00000000000000000000000000000000000000000000000001024843cb2bc000000000000000000000000000f50fbf46fd6ec8609c1219bbabf00539836f1a3400000000000000000000000000000000000000000000000000000000000002ee0000000000000000000000000000000000000000000000000000000000000180000000000000000000000000370a695f879b665db5745de917105208a1dc61fd00000000000000000000000000000000000000000000000000000000000000154d7572616b616d692e466c6f776572732053656564000000000000000000000000000000000000000000000000000000000000000000000000000000000000045345454400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f697066732e696f2f697066732f62616679626569623462786370357936776a7a3234636b7a687876326e797069627671636c64696d3337706d79326179726e7935727271626f6f752f736565642f30000000000000000000
Deployed Bytecode
0x6080604052600436106102d05760003560e01c8063715018a611610179578063acec338a116100d6578063e985e9c51161008a578063f242432a11610064578063f242432a14610860578063f2fde38b14610880578063f5298aca146108a057600080fd5b8063e985e9c5146107ca578063eb5f300214610820578063f0f442601461084057600080fd5b8063bd85b039116100bb578063bd85b03914610767578063d547741f14610794578063d5abeb01146107b457600080fd5b8063acec338a14610734578063b97bff1a1461075457600080fd5b806395d89b411161012d578063a035b1fe11610112578063a035b1fe146106ff578063a217fddf146103d4578063a22cb4651461071457600080fd5b806395d89b41146106ca5780639dc29fac146106df57600080fd5b80638da5cb5b1161015e5780638da5cb5b1461062c57806391b7f5ed1461065757806391d148541461067757600080fd5b8063715018a6146105f75780637cb647591461060c57600080fd5b80632eb2c2d61161023257806340c10f19116101e657806361d027b3116101c057806361d027b31461056b5780636b20c454146105b75780636f8b44b0146105d757600080fd5b806340c10f19146104ef5780634e1273f41461050f5780634f558e791461053c57600080fd5b80632f2ff15d116102175780632f2ff15d1461049a57806336568abe146104ba5780633ccfd60b146104da57600080fd5b80632eb2c2d6146104655780632eb4a7ab1461048557600080fd5b806306fdde03116102895780630edc47371161026e5780630edc4737146103d4578063248a9ca3146103e95780632a55205a1461041957600080fd5b806306fdde03146103925780630e89341c146103b457600080fd5b806302fb0c5e116102ba57806302fb0c5e1461033857806302fe53051461035057806304634d8d1461037257600080fd5b8062fdd58e146102d557806301ffc9a714610308575b600080fd5b3480156102e157600080fd5b506102f56102f0366004613d24565b6108c0565b6040519081526020015b60405180910390f35b34801561031457600080fd5b50610328610323366004613d7c565b61099f565b60405190151581526020016102ff565b34801561034457600080fd5b5060115460ff16610328565b34801561035c57600080fd5b5061037061036b366004613e8f565b6109b0565b005b34801561037e57600080fd5b5061037061038d366004613ee0565b6109c9565b34801561039e57600080fd5b506103a7610a54565b6040516102ff9190613f9e565b3480156103c057600080fd5b506103a76103cf366004613fb1565b610ae6565b3480156103e057600080fd5b506102f5600081565b3480156103f557600080fd5b506102f5610404366004613fb1565b60009081526009602052604090206001015490565b34801561042557600080fd5b50610439610434366004613fca565b610b7a565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683526020830191909152016102ff565b34801561047157600080fd5b506103706104803660046140a1565b610c71565b34801561049157600080fd5b50600f546102f5565b3480156104a657600080fd5b506103706104b536600461414b565b610d3a565b3480156104c657600080fd5b506103706104d536600461414b565b610d65565b3480156104e657600080fd5b50610370610e14565b3480156104fb57600080fd5b5061037061050a366004613d24565b61106b565b34801561051b57600080fd5b5061052f61052a366004614177565b6111a9565b6040516102ff919061427d565b34801561054857600080fd5b50610328610557366004613fb1565b600090815260066020526040902054151590565b34801561057757600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102ff565b3480156105c357600080fd5b506103706105d2366004614290565b611301565b3480156105e357600080fd5b506103706105f2366004613fb1565b6113c1565b34801561060357600080fd5b50610370611447565b34801561061857600080fd5b50610370610627366004613fb1565b6114d4565b34801561063857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610592565b34801561066357600080fd5b50610370610672366004613fb1565b6114e6565b34801561068357600080fd5b5061032861069236600461414b565b600091825260096020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106d657600080fd5b506103a761156c565b3480156106eb57600080fd5b506103706106fa366004613d24565b61157b565b34801561070b57600080fd5b506010546102f5565b34801561072057600080fd5b5061037061072f366004614314565b61161e565b34801561074057600080fd5b5061037061074f36600461433e565b611629565b610370610762366004614359565b6116db565b34801561077357600080fd5b506102f5610782366004613fb1565b60009081526006602052604090205490565b3480156107a057600080fd5b506103706107af36600461414b565b611b04565b3480156107c057600080fd5b506102f5600a5481565b3480156107d657600080fd5b506103286107e53660046143dc565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561082c57600080fd5b5061037061083b366004614406565b611b2a565b34801561084c57600080fd5b5061037061085b366004614406565b611b7e565b34801561086c57600080fd5b5061037061087b366004614421565b611c46565b34801561088c57600080fd5b5061037061089b366004614406565b611d08565b3480156108ac57600080fd5b506103706108bb366004614486565b611e38565b600073ffffffffffffffffffffffffffffffffffffffff831661096a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b60006109aa82611ef8565b92915050565b60006109bc8133611f4e565b6109c582612020565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b6109c58282612033565b6060600c8054610a63906144b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f906144b9565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b606060058054610af5906144b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610b21906144b9565b8015610b6e5780601f10610b4357610100808354040283529160200191610b6e565b820191906000526020600020905b815481529060010190602001808311610b5157829003601f168201915b50505050509050919050565b600082815260086020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610c3557506040805180820190915260075473ffffffffffffffffffffffffffffffffffffffff811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610c59906bffffffffffffffffffffffff168761453c565b610c639190614579565b915196919550909350505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480610c9a5750610c9a85336107e5565b610d26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610961565b610d3385858585856121ac565b5050505050565b600082815260096020526040902060010154610d568133611f4e565b610d6083836124f7565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610e0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610961565b6109c582826125eb565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b60004711610eff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f302062616c616e636500000000000000000000000000000000000000000000006044820152606401610961565b6002546040517f9af608c9000000000000000000000000000000000000000000000000000000008152306004820152479160009173ffffffffffffffffffffffffffffffffffffffff90911690639af608c990602401602060405180830381865afa158015610f72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9691906145b4565b6002546040517fb9bff4bb0000000000000000000000000000000000000000000000000000000081526004810183905291925073ffffffffffffffffffffffffffffffffffffffff169063b9bff4bb90602401600060405180830381600087803b15801561100357600080fd5b505af1158015611017573d6000803e3d6000fd5b505060025461103f925073ffffffffffffffffffffffffffffffffffffffff169050826126a6565b6001546109c59073ffffffffffffffffffffffffffffffffffffffff1661106683856145cd565b6126a6565b60005473ffffffffffffffffffffffffffffffffffffffff1633146110ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600a546000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8546111259083906145e4565b111561118d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4578636565646564206d617820737570706c79000000000000000000000000006044820152606401610961565b6109c58260008360405180602001604052806000815250612800565b6060815183511461123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610961565b6000835167ffffffffffffffff81111561125857611258613d99565b604051908082528060200260200182016040528015611281578160200160208202803683370190505b50905060005b84518110156112f9576112cc8582815181106112a5576112a56145fc565b60200260200101518583815181106112bf576112bf6145fc565b60200260200101516108c0565b8282815181106112de576112de6145fc565b60209081029190910101526112f28161462b565b9050611287565b509392505050565b73ffffffffffffffffffffffffffffffffffffffff831633148061132a575061132a83336107e5565b6113b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610961565b610d6083838361296f565b60005473ffffffffffffffffffffffffffffffffffffffff163314611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600a55565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b6114d26000612c9d565b565b60006114e08133611f4e565b50600f55565b60005473ffffffffffffffffffffffffffffffffffffffff163314611567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b601055565b6060600d8054610a63906144b9565b600e5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152606401610961565b6109c582600083612d12565b6109c5338383612f1d565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60115460ff16611747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420616374697665000000000000000000000000000000000000000000006044820152606401610961565b600084116117b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610961565b34846010546117c0919061453c565b1115611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f56616c756520696e636f727265637400000000000000000000000000000000006044820152606401610961565b336000908152600b602052604090205483906118459086906145e4565b11156118ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4578636565646564206d617800000000000000000000000000000000000000006044820152606401610961565b600a546000805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8546118e69086906145e4565b111561194e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4578636565646564206d617820737570706c79000000000000000000000000006044820152606401610961565b6119dd82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260348101899052909250605401905060405160208183030381529060405280519060200120613071565b611a43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f742070617274206f66206c697374000000000000000000000000000000006044820152606401610961565b336000908152600b602052604080822080548701905560025481517f107e9cf1000000000000000000000000000000000000000000000000000000008152346004820152915173ffffffffffffffffffffffffffffffffffffffff9091169263107e9cf1926024808201939182900301818387803b158015611ac457600080fd5b505af1158015611ad8573d6000803e3d6000fd5b50505050611afe611ae63390565b60008660405180602001604052806000815250612800565b50505050565b600082815260096020526040902060010154611b208133611f4e565b610d6083836125eb565b6000611b368133611f4e565b50600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611bff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff8516331480611c6f5750611c6f85336107e5565b611cfb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610961565b610d338585858585613087565b60005473ffffffffffffffffffffffffffffffffffffffff163314611d89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b73ffffffffffffffffffffffffffffffffffffffff8116611e2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610961565b611e3581612c9d565b50565b73ffffffffffffffffffffffffffffffffffffffff8316331480611e615750611e6183336107e5565b611eed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610961565b610d60838383612d12565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806109aa57506109aa826132bc565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166109c557611fa68173ffffffffffffffffffffffffffffffffffffffff166014613312565b611fb1836020613312565b604051602001611fc2929190614664565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261096191600401613f9e565b80516109c5906005906020840190613c62565b6127106bffffffffffffffffffffffff821611156120d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff8216612150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610961565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff9092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600755565b815183511461223d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff84166122e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610961565b336122ef81878787878761355c565b60005b845181101561246257600085828151811061230f5761230f6145fc565b60200260200101519050600085838151811061232d5761232d6145fc565b602090810291909101810151600084815260038352604080822073ffffffffffffffffffffffffffffffffffffffff8e1683529093529190912054909150818110156123fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610961565b600083815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b168252812080548492906124479084906145e4565b925050819055505050508061245b9061462b565b90506122f2565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124d99291906146e5565b60405180910390a46124ef81878787878761356a565b505050505050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166109c557600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561258d3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156109c557600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b80471015612710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610961565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461276a576040519150601f19603f3d011682016040523d82523d6000602084013e61276f565b606091505b5050905080610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff84166128a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610961565b336128c3816000876128b4886137f5565b6128bd886137f5565b8761355c565b600084815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152812080548592906129029084906145e4565b9091555050604080518581526020810185905273ffffffffffffffffffffffffffffffffffffffff80881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d3381600087878787613840565b73ffffffffffffffffffffffffffffffffffffffff8316612a12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610961565b8051825114612aa3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610961565b6000339050612ac68185600086866040518060200160405280600081525061355c565b60005b8351811015612c17576000848281518110612ae657612ae66145fc565b602002602001015190506000848381518110612b0457612b046145fc565b602090810291909101810151600084815260038352604080822073ffffffffffffffffffffffffffffffffffffffff8c168352909352919091205490915081811015612bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610961565b600092835260036020908152604080852073ffffffffffffffffffffffffffffffffffffffff8b1686529091529092209103905580612c0f8161462b565b915050612ac9565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612c8f9291906146e5565b60405180910390a450505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8316612db5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610961565b33612de481856000612dc6876137f5565b612dcf876137f5565b6040518060200160405280600081525061355c565b600083815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290205482811015612ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610961565b600084815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610961565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526004602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008261307e85846139ed565b14949350505050565b73ffffffffffffffffffffffffffffffffffffffff841661312a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610961565b3361313a8187876128b4886137f5565b600084815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152902054838110156131fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610961565b600085815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b81168552925280832087850390559088168252812080548692906132469084906145e4565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46132b3828888888888613840565b50505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806109aa57506109aa82613a59565b6060600061332183600261453c565b61332c9060026145e4565b67ffffffffffffffff81111561334457613344613d99565b6040519080825280601f01601f19166020018201604052801561336e576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106133a5576133a56145fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613408576134086145fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061344484600261453c565b61344f9060016145e4565b90505b60018111156134ec577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613490576134906145fc565b1a60f81b8282815181106134a6576134a66145fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936134e581614713565b9050613452565b508315613555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610961565b9392505050565b6124ef868686868686613b3c565b73ffffffffffffffffffffffffffffffffffffffff84163b156124ef576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906135e19089908990889088908890600401614748565b6020604051808303816000875af192505050801561363a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613637918101906147b3565b60015b613724576136466147d0565b806308c379a0141561369a575061365b6147ec565b80613666575061369c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109619190613f9e565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610961565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146132b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610961565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061382f5761382f6145fc565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b156124ef576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906138b79089908990889088908890600401614894565b6020604051808303816000875af1925050508015613910575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261390d918101906147b3565b60015b61391c576136466147d0565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146132b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610961565b600081815b84518110156112f9576000858281518110613a0f57613a0f6145fc565b60200260200101519050808311613a355760008381526020829052604090209250613a46565b600081815260208490526040902092505b5080613a518161462b565b9150506139f2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480613aec57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806109aa57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146109aa565b73ffffffffffffffffffffffffffffffffffffffff8516613bd05760005b8351811015613bce57828181518110613b7557613b756145fc565b602002602001015160066000868481518110613b9357613b936145fc565b602002602001015181526020019081526020016000206000828254613bb891906145e4565b90915550613bc790508161462b565b9050613b5a565b505b73ffffffffffffffffffffffffffffffffffffffff84166124ef5760005b83518110156132b357828181518110613c0957613c096145fc565b602002602001015160066000868481518110613c2757613c276145fc565b602002602001015181526020019081526020016000206000828254613c4c91906145cd565b90915550613c5b90508161462b565b9050613bee565b828054613c6e906144b9565b90600052602060002090601f016020900481019282613c905760008555613cd6565b82601f10613ca957805160ff1916838001178555613cd6565b82800160010185558215613cd6579182015b82811115613cd6578251825591602001919060010190613cbb565b50613ce2929150613ce6565b5090565b5b80821115613ce25760008155600101613ce7565b803573ffffffffffffffffffffffffffffffffffffffff81168114613d1f57600080fd5b919050565b60008060408385031215613d3757600080fd5b613d4083613cfb565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611e3557600080fd5b600060208284031215613d8e57600080fd5b813561355581613d4e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff82111715613e0c57613e0c613d99565b6040525050565b600067ffffffffffffffff831115613e2d57613e2d613d99565b604051613e6260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8701160182613dc8565b809150838152848484011115613e7757600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613ea157600080fd5b813567ffffffffffffffff811115613eb857600080fd5b8201601f81018413613ec957600080fd5b613ed884823560208401613e13565b949350505050565b60008060408385031215613ef357600080fd5b613efc83613cfb565b915060208301356bffffffffffffffffffffffff81168114613f1d57600080fd5b809150509250929050565b60005b83811015613f43578181015183820152602001613f2b565b83811115611afe5750506000910152565b60008151808452613f6c816020860160208601613f28565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006135556020830184613f54565b600060208284031215613fc357600080fd5b5035919050565b60008060408385031215613fdd57600080fd5b50508035926020909101359150565b600067ffffffffffffffff82111561400657614006613d99565b5060051b60200190565b600082601f83011261402157600080fd5b8135602061402e82613fec565b60405161403b8282613dc8565b83815260059390931b850182019282810191508684111561405b57600080fd5b8286015b84811015614076578035835291830191830161405f565b509695505050505050565b600082601f83011261409257600080fd5b61355583833560208501613e13565b600080600080600060a086880312156140b957600080fd5b6140c286613cfb565b94506140d060208701613cfb565b9350604086013567ffffffffffffffff808211156140ed57600080fd5b6140f989838a01614010565b9450606088013591508082111561410f57600080fd5b61411b89838a01614010565b9350608088013591508082111561413157600080fd5b5061413e88828901614081565b9150509295509295909350565b6000806040838503121561415e57600080fd5b8235915061416e60208401613cfb565b90509250929050565b6000806040838503121561418a57600080fd5b823567ffffffffffffffff808211156141a257600080fd5b818501915085601f8301126141b657600080fd5b813560206141c382613fec565b6040516141d08282613dc8565b83815260059390931b85018201928281019150898411156141f057600080fd5b948201945b838610156142155761420686613cfb565b825294820194908201906141f5565b9650508601359250508082111561422b57600080fd5b5061423885828601614010565b9150509250929050565b600081518084526020808501945080840160005b8381101561427257815187529582019590820190600101614256565b509495945050505050565b6020815260006135556020830184614242565b6000806000606084860312156142a557600080fd5b6142ae84613cfb565b9250602084013567ffffffffffffffff808211156142cb57600080fd5b6142d787838801614010565b935060408601359150808211156142ed57600080fd5b506142fa86828701614010565b9150509250925092565b80358015158114613d1f57600080fd5b6000806040838503121561432757600080fd5b61433083613cfb565b915061416e60208401614304565b60006020828403121561435057600080fd5b61355582614304565b6000806000806060858703121561436f57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561439557600080fd5b818701915087601f8301126143a957600080fd5b8135818111156143b857600080fd5b8860208260051b85010111156143cd57600080fd5b95989497505060200194505050565b600080604083850312156143ef57600080fd5b6143f883613cfb565b915061416e60208401613cfb565b60006020828403121561441857600080fd5b61355582613cfb565b600080600080600060a0868803121561443957600080fd5b61444286613cfb565b945061445060208701613cfb565b93506040860135925060608601359150608086013567ffffffffffffffff81111561447a57600080fd5b61413e88828901614081565b60008060006060848603121561449b57600080fd5b6144a484613cfb565b95602085013595506040909401359392505050565b600181811c908216806144cd57607f821691505b60208210811415614507577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145745761457461450d565b500290565b6000826145af577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156145c657600080fd5b5051919050565b6000828210156145df576145df61450d565b500390565b600082198211156145f7576145f761450d565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561465d5761465d61450d565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161469c816017850160208801613f28565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516146d9816028840160208801613f28565b01602801949350505050565b6040815260006146f86040830185614242565b828103602084015261470a8185614242565b95945050505050565b6000816147225761472261450d565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261478160a0830186614242565b82810360608401526147938186614242565b905082810360808401526147a78185613f54565b98975050505050505050565b6000602082840312156147c557600080fd5b815161355581613d4e565b600060033d11156147e95760046000803e5060005160e01c5b90565b600060443d10156147fa5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561484857505050505090565b82850191508151818111156148605750505050505090565b843d870101602082850101111561487a5750505050505090565b61488960208286010187613dc8565b509095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a060808301526148d960a0830184613f54565b97965050505050505056fea264697066735822122025c6ee54576d92e3d4d3e4a5b26f6f09df65ab5b646c874bdce80a22558ac32364736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000029ff00000000000000000000000000000000000000000000000001024843cb2bc000000000000000000000000000f50fbf46fd6ec8609c1219bbabf00539836f1a3400000000000000000000000000000000000000000000000000000000000002ee0000000000000000000000000000000000000000000000000000000000000180000000000000000000000000370a695f879b665db5745de917105208a1dc61fd00000000000000000000000000000000000000000000000000000000000000154d7572616b616d692e466c6f776572732053656564000000000000000000000000000000000000000000000000000000000000000000000000000000000000045345454400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f697066732e696f2f697066732f62616679626569623462786370357936776a7a3234636b7a687876326e797069627671636c64696d3337706d79326179726e7935727271626f6f752f736565642f30000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Murakami.Flowers Seed
Arg [1] : symbol_ (string): SEED
Arg [2] : maxSupply_ (uint256): 10751
Arg [3] : price_ (uint256): 72700000000000000
Arg [4] : royalty_ (address): 0xf50Fbf46FD6ec8609C1219bBABf00539836f1a34
Arg [5] : royaltyFee_ (uint96): 750
Arg [6] : uri_ (string): https://ipfs.io/ipfs/bafybeib4bxcp5y6wjz24ckzhxv2nypibvqcldim37pmy2ayrny5rrqboou/seed/0
Arg [7] : niftyKit_ (address): 0x370a695F879B665dB5745DE917105208A1Dc61fD
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 00000000000000000000000000000000000000000000000000000000000029ff
Arg [3] : 00000000000000000000000000000000000000000000000001024843cb2bc000
Arg [4] : 000000000000000000000000f50fbf46fd6ec8609c1219bbabf00539836f1a34
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [7] : 000000000000000000000000370a695f879b665db5745de917105208a1dc61fd
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [9] : 4d7572616b616d692e466c6f7765727320536565640000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 5345454400000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000057
Arg [13] : 68747470733a2f2f697066732e696f2f697066732f6261667962656962346278
Arg [14] : 6370357936776a7a3234636b7a687876326e797069627671636c64696d333770
Arg [15] : 6d79326179726e7935727271626f6f752f736565642f30000000000000000000
Loading...
Loading
Loading...
Loading
OVERVIEW
Murakami.Flowers is a work in which artist Takashi Murakami’s representative artwork, flowers, are expressed as dot art evocative of Japanese TV games created in the 1970s. The work is being developed with the number 108 as the keyword; a combination of 108 backgrounds and flower colors make up a...Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.