ERC-1155
Overview
Max Total Supply
830
Holders
228
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BaoContract
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract BaoContract is ERC1155, Ownable,ReentrancyGuard { //To concatenate the URL of an NFT using Strings for uint256; //To check the addresses in the whitelist bytes32 private mR; //name of the collection //string public name = "KPK Relics"; string public name = "Bao"; uint256 public numberTokenSold; //Is the contract paused ? bool public paused = false; mapping(address => uint256) public nftsPerWallet; mapping(address => uint256) public nftsBurnPerWallet; constructor() ERC1155("https://kopokostudio.s3.eu-west-3.amazonaws.com/BAO/metadata/{id}.json") { transferOwnership(msg.sender); } function uri(uint256 _tokenid) override public pure returns (string memory) { return string( abi.encodePacked( "https://kopokostudio.s3.eu-west-3.amazonaws.com/BAO/metadata/", Strings.toString(_tokenid),".json" ) ); } /** * @notice Edit the Merkle Root * * @param _newMerkleRoot The new Merkle Root **/ function changeMerkleRoot(bytes32 _newMerkleRoot) external onlyOwner { mR = _newMerkleRoot; } /** * @notice Set pause to true or false * * @param _paused True or false if you want the contract to be paused or not **/ function setPaused(bool _paused) external onlyOwner { paused = _paused; } /** * @notice Allows to mint one NFT if whitelisted * * * @param _proof The Merkle Proof * @param _amount The ammount of NFTs the user wants to mint * @param maxAmount The max NFT the user can mint **/ function mintBAO(bytes32[] calldata _proof, uint256 _amount, uint256 maxAmount) external payable nonReentrant { require(!paused, "Break time..."); require(nftsPerWallet[msg.sender] + _amount <= maxAmount, "You can't mint anymore"); //Is this user on the whitelist ? require(isWhiteListed(msg.sender, _proof), "You are not on the whitelist"); //Mint the user NFT _mint(msg.sender, 1, _amount, ""); //Increment the number of NFTs this user minted nftsPerWallet[msg.sender] += _amount; } /** * @notice Allows to burn one NFT to an address * * @param tokenID The id of the token * @param amount The amount to burn **/ function burn(uint256 tokenID, uint256 amount) external { require(!paused,"You can't burn yet..."); _burn(msg.sender, tokenID, amount); nftsBurnPerWallet[msg.sender] += amount; } /** * @notice Allows to gift one NFT to an address * * @param _account The account of the happy new owner of one NFT **/ function gift(address _account) external onlyOwner { //Mint the user NFT _mint(_account, 1, 1, ""); //Increment the number of NFTs this user minted nftsPerWallet[_account] += 1; numberTokenSold += 1; } /** * @notice Return true or false if the account is whitelisted or not * * @param account The account of the user * @param proof The Merkle Proof * * @return true or false if the account is whitelisted or not **/ function isWhiteListed(address account, bytes32[] calldata proof) internal view returns(bool) { return _verify(_leaf(account),proof); } /** * @notice Return the account hashed * * @param account The account to hash * * @return The account hashed **/ function _leaf(address account) internal pure returns(bytes32) { return keccak256(abi.encodePacked(account)); } /** * @notice Returns true if a leaf can be proved to be a part of a Merkle tree defined by root * * @param leaf The leaf * @param proof The Merkle Proof * * @return True if a leaf can be provded to be a part of a Merkle tree defined by root **/ function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns(bool) { return MerkleProof.verify(proof, mR, leaf); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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: address zero is not a valid owner"); 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 token 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: caller is not token 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, 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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _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); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); 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); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * 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); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "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 `ids` and `amounts` 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 {} /** * @dev Hook that is called after 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 _afterTokenTransfer( 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 (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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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) (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 (last updated v4.7.0) (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 have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"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":[{"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":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"changeMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"name":"mintBAO","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nftsBurnPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nftsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberTokenSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenid","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600381526020017f42616f0000000000000000000000000000000000000000000000000000000000815250600690805190602001906200005192919062000322565b506000600860006101000a81548160ff0219169083151502179055503480156200007a57600080fd5b506040518060800160405280604681526020016200439460469139620000a681620000e660201b60201c565b50620000c7620000bb6200010260201b60201c565b6200010a60201b60201c565b6001600481905550620000e033620001d060201b60201c565b62000552565b8060029080519060200190620000fe92919062000322565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001e06200026760201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000253576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200024a9062000420565b60405180910390fd5b62000264816200010a60201b60201c565b50565b620002776200010260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200029d620002f860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620002f6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002ed9062000442565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003309062000475565b90600052602060002090601f016020900481019282620003545760008555620003a0565b82601f106200036f57805160ff1916838001178555620003a0565b82800160010185558215620003a0579182015b828111156200039f57825182559160200191906001019062000382565b5b509050620003af9190620003b3565b5090565b5b80821115620003ce576000816000905550600101620003b4565b5090565b6000620003e160268362000464565b9150620003ee82620004da565b604082019050919050565b60006200040860208362000464565b9150620004158262000529565b602082019050919050565b600060208201905081810360008301526200043b81620003d2565b9050919050565b600060208201905081810360008301526200045d81620003f9565b9050919050565b600082825260208201905092915050565b600060028204905060018216806200048e57607f821691505b60208210811415620004a557620004a4620004ab565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b613e3280620005626000396000f3fe6080604052600436106101295760003560e01c8063715018a6116100ab578063cbfc4bce1161006f578063cbfc4bce146103f4578063e985e9c51461041d578063ebcea3db1461045a578063f1791cdc14610483578063f242432a146104ae578063f2fde38b146104d757610129565b8063715018a6146103235780638da5cb5b1461033a578063949fb49c14610365578063a22cb465146103a2578063b390c0ab146103cb57610129565b806316c38b3c116100f257806316c38b3c1461024d57806320bd71a8146102765780632eb2c2d6146102925780634e1273f4146102bb5780635c975abb146102f857610129565b8062fdd58e1461012e57806301ffc9a71461016b57806306fdde03146101a857806309277689146101d35780630e89341c14610210575b600080fd5b34801561013a57600080fd5b506101556004803603810190610150919061278f565b610500565b6040516101629190613242565b60405180910390f35b34801561017757600080fd5b50610192600480360381019061018d9190612915565b6105c9565b60405161019f9190612fa5565b60405180910390f35b3480156101b457600080fd5b506101bd6106ab565b6040516101ca9190612fc0565b60405180910390f35b3480156101df57600080fd5b506101fa60048036038101906101f5919061257c565b610739565b6040516102079190613242565b60405180910390f35b34801561021c57600080fd5b506102376004803603810190610232919061296f565b610751565b6040516102449190612fc0565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f91906128bb565b610782565b005b610290600480360381019061028b9190612847565b6107a7565b005b34801561029e57600080fd5b506102b960048036038101906102b491906125e9565b61099c565b005b3480156102c757600080fd5b506102e260048036038101906102dd91906127cf565b610a3d565b6040516102ef9190612f4c565b60405180910390f35b34801561030457600080fd5b5061030d610b56565b60405161031a9190612fa5565b60405180910390f35b34801561032f57600080fd5b50610338610b69565b005b34801561034657600080fd5b5061034f610b7d565b60405161035c9190612e6f565b60405180910390f35b34801561037157600080fd5b5061038c6004803603810190610387919061257c565b610ba7565b6040516103999190613242565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c4919061274f565b610bbf565b005b3480156103d757600080fd5b506103f260048036038101906103ed919061299c565b610bd5565b005b34801561040057600080fd5b5061041b6004803603810190610416919061257c565b610c8a565b005b34801561042957600080fd5b50610444600480360381019061043f91906125a9565b610d22565b6040516104519190612fa5565b60405180910390f35b34801561046657600080fd5b50610481600480360381019061047c91906128e8565b610db6565b005b34801561048f57600080fd5b50610498610dc8565b6040516104a59190613242565b60405180910390f35b3480156104ba57600080fd5b506104d560048036038101906104d091906126b8565b610dce565b005b3480156104e357600080fd5b506104fe60048036038101906104f9919061257c565b610e6f565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610571576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610568906130e2565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061069457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106a457506106a382610ef3565b5b9050919050565b600680546106b89061352b565b80601f01602080910402602001604051908101604052809291908181526020018280546106e49061352b565b80156107315780601f1061070657610100808354040283529160200191610731565b820191906000526020600020905b81548152906001019060200180831161071457829003601f168201915b505050505081565b600a6020528060005260406000206000915090505481565b606061075c82610f5d565b60405160200161076c9190612e42565b6040516020818303038152906040529050919050565b61078a6110be565b80600860006101000a81548160ff02191690831515021790555050565b600260045414156107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e490613222565b60405180910390fd5b6002600481905550600860009054906101000a900460ff1615610845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083c90613122565b60405180910390fd5b8082600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461089191906133b0565b11156108d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c9906130c2565b60405180910390fd5b6108dd33858561113c565b61091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091390613042565b60405180910390fd5b610938336001846040518060200160405280600081525061119a565b81600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461098791906133b0565b92505081905550600160048190555050505050565b6109a461134b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806109ea57506109e9856109e461134b565b610d22565b5b610a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2090613002565b60405180910390fd5b610a368585858585611353565b5050505050565b60608151835114610a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7a906131c2565b60405180910390fd5b6000835167ffffffffffffffff811115610aa057610a9f6136e8565b5b604051908082528060200260200182016040528015610ace5781602001602082028036833780820191505090505b50905060005b8451811015610b4b57610b1b858281518110610af357610af26136b9565b5b6020026020010151858381518110610b0e57610b0d6136b9565b5b6020026020010151610500565b828281518110610b2e57610b2d6136b9565b5b60200260200101818152505080610b449061358e565b9050610ad4565b508091505092915050565b600860009054906101000a900460ff1681565b610b716110be565b610b7b6000611675565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60096020528060005260406000206000915090505481565b610bd1610bca61134b565b838361173b565b5050565b600860009054906101000a900460ff1615610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c90613062565b60405180910390fd5b610c303383836118a8565b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c7f91906133b0565b925050819055505050565b610c926110be565b610cae816001806040518060200160405280600081525061119a565b6001600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610cfe91906133b0565b92505081905550600160076000828254610d1891906133b0565b9250508190555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610dbe6110be565b8060058190555050565b60075481565b610dd661134b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e1c5750610e1b85610e1661134b565b610d22565b5b610e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5290613002565b60405180910390fd5b610e688585858585611aef565b5050505050565b610e776110be565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ede90613082565b60405180910390fd5b610ef081611675565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000821415610fa5576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506110b9565b600082905060005b60008214610fd7578080610fc09061358e565b915050600a82610fd09190613406565b9150610fad565b60008167ffffffffffffffff811115610ff357610ff26136e8565b5b6040519080825280601f01601f1916602001820160405280156110255781602001600182028036833780820191505090505b5090505b600085146110b25760018261103e9190613437565b9150600a8561104d91906135fb565b603061105991906133b0565b60f81b81838151811061106f5761106e6136b9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856110ab9190613406565b9450611029565b8093505050505b919050565b6110c661134b565b73ffffffffffffffffffffffffffffffffffffffff166110e4610b7d565b73ffffffffffffffffffffffffffffffffffffffff161461113a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113190613182565b60405180910390fd5b565b600061119161114a85611d8b565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611dbb565b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561120a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120190613202565b60405180910390fd5b600061121461134b565b9050600061122185611dd2565b9050600061122e85611dd2565b905061123f83600089858589611e4c565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461129e91906133b0565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161131c92919061325d565b60405180910390a461133383600089858589611e54565b61134283600089898989611e5c565b50505050505050565b600033905090565b8151835114611397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138e906131e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611407576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fe90613102565b60405180910390fd5b600061141161134b565b9050611421818787878787611e4c565b60005b84518110156115d2576000858281518110611442576114416136b9565b5b602002602001015190506000858381518110611461576114606136b9565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f990613162565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115b791906133b0565b92505081905550505050806115cb9061358e565b9050611424565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611649929190612f6e565b60405180910390a461165f818787878787611e54565b61166d818787878787612043565b505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156117aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a1906131a2565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161189b9190612fa5565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190f90613142565b60405180910390fd5b600061192261134b565b9050600061192f84611dd2565b9050600061193c84611dd2565b905061195c83876000858560405180602001604052806000815250611e4c565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156119f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ea906130a2565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611ac092919061325d565b60405180910390a4611ae684886000868660405180602001604052806000815250611e54565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5690613102565b60405180910390fd5b6000611b6961134b565b90506000611b7685611dd2565b90506000611b8385611dd2565b9050611b93838989858589611e4c565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611c2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2190613162565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cdf91906133b0565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051611d5c92919061325d565b60405180910390a4611d72848a8a86868a611e54565b611d80848a8a8a8a8a611e5c565b505050505050505050565b600081604051602001611d9e9190612e27565b604051602081830303815290604052805190602001209050919050565b6000611dca826005548561222a565b905092915050565b60606000600167ffffffffffffffff811115611df157611df06136e8565b5b604051908082528060200260200182016040528015611e1f5781602001602082028036833780820191505090505b5090508281600081518110611e3757611e366136b9565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b611e7b8473ffffffffffffffffffffffffffffffffffffffff16612241565b1561203b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611ec1959493929190612ef2565b602060405180830381600087803b158015611edb57600080fd5b505af1925050508015611f0c57506040513d601f19601f82011682018060405250810190611f099190612942565b60015b611fb257611f18613717565b806308c379a01415611f755750611f2d613cf3565b80611f385750611f77565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6c9190612fc0565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa990612fe2565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203090613022565b60405180910390fd5b505b505050505050565b6120628473ffffffffffffffffffffffffffffffffffffffff16612241565b15612222578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016120a8959493929190612e8a565b602060405180830381600087803b1580156120c257600080fd5b505af19250505080156120f357506040513d601f19601f820116820180604052508101906120f09190612942565b60015b612199576120ff613717565b806308c379a0141561215c5750612114613cf3565b8061211f575061215e565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121539190612fc0565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219090612fe2565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221790613022565b60405180910390fd5b505b505050505050565b6000826122378584612264565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008082905060005b84518110156122af5761229a8286838151811061228d5761228c6136b9565b5b60200260200101516122ba565b915080806122a79061358e565b91505061226d565b508091505092915050565b60008183106122d2576122cd82846122e5565b6122dd565b6122dc83836122e5565b5b905092915050565b600082600052816020526040600020905092915050565b600061230f61230a846132ab565b613286565b9050808382526020820190508285602086028201111561233257612331613743565b5b60005b858110156123625781612348888261241e565b845260208401935060208301925050600181019050612335565b5050509392505050565b600061237f61237a846132d7565b613286565b905080838252602082019050828560208602820111156123a2576123a1613743565b5b60005b858110156123d257816123b88882612567565b8452602084019350602083019250506001810190506123a5565b5050509392505050565b60006123ef6123ea84613303565b613286565b90508281526020810184848401111561240b5761240a613748565b5b6124168482856134e9565b509392505050565b60008135905061242d81613d89565b92915050565b600082601f8301126124485761244761373e565b5b81356124588482602086016122fc565b91505092915050565b60008083601f8401126124775761247661373e565b5b8235905067ffffffffffffffff81111561249457612493613739565b5b6020830191508360208202830111156124b0576124af613743565b5b9250929050565b600082601f8301126124cc576124cb61373e565b5b81356124dc84826020860161236c565b91505092915050565b6000813590506124f481613da0565b92915050565b60008135905061250981613db7565b92915050565b60008135905061251e81613dce565b92915050565b60008151905061253381613dce565b92915050565b600082601f83011261254e5761254d61373e565b5b813561255e8482602086016123dc565b91505092915050565b60008135905061257681613de5565b92915050565b60006020828403121561259257612591613752565b5b60006125a08482850161241e565b91505092915050565b600080604083850312156125c0576125bf613752565b5b60006125ce8582860161241e565b92505060206125df8582860161241e565b9150509250929050565b600080600080600060a0868803121561260557612604613752565b5b60006126138882890161241e565b95505060206126248882890161241e565b945050604086013567ffffffffffffffff8111156126455761264461374d565b5b612651888289016124b7565b935050606086013567ffffffffffffffff8111156126725761267161374d565b5b61267e888289016124b7565b925050608086013567ffffffffffffffff81111561269f5761269e61374d565b5b6126ab88828901612539565b9150509295509295909350565b600080600080600060a086880312156126d4576126d3613752565b5b60006126e28882890161241e565b95505060206126f38882890161241e565b945050604061270488828901612567565b935050606061271588828901612567565b925050608086013567ffffffffffffffff8111156127365761273561374d565b5b61274288828901612539565b9150509295509295909350565b6000806040838503121561276657612765613752565b5b60006127748582860161241e565b9250506020612785858286016124e5565b9150509250929050565b600080604083850312156127a6576127a5613752565b5b60006127b48582860161241e565b92505060206127c585828601612567565b9150509250929050565b600080604083850312156127e6576127e5613752565b5b600083013567ffffffffffffffff8111156128045761280361374d565b5b61281085828601612433565b925050602083013567ffffffffffffffff8111156128315761283061374d565b5b61283d858286016124b7565b9150509250929050565b6000806000806060858703121561286157612860613752565b5b600085013567ffffffffffffffff81111561287f5761287e61374d565b5b61288b87828801612461565b9450945050602061289e87828801612567565b92505060406128af87828801612567565b91505092959194509250565b6000602082840312156128d1576128d0613752565b5b60006128df848285016124e5565b91505092915050565b6000602082840312156128fe576128fd613752565b5b600061290c848285016124fa565b91505092915050565b60006020828403121561292b5761292a613752565b5b60006129398482850161250f565b91505092915050565b60006020828403121561295857612957613752565b5b600061296684828501612524565b91505092915050565b60006020828403121561298557612984613752565b5b600061299384828501612567565b91505092915050565b600080604083850312156129b3576129b2613752565b5b60006129c185828601612567565b92505060206129d285828601612567565b9150509250929050565b60006129e88383612e09565b60208301905092915050565b6129fd8161346b565b82525050565b612a14612a0f8261346b565b6135d7565b82525050565b6000612a2582613344565b612a2f8185613372565b9350612a3a83613334565b8060005b83811015612a6b578151612a5288826129dc565b9750612a5d83613365565b925050600181019050612a3e565b5085935050505092915050565b612a818161347d565b82525050565b6000612a928261334f565b612a9c8185613383565b9350612aac8185602086016134f8565b612ab581613757565b840191505092915050565b6000612acb8261335a565b612ad58185613394565b9350612ae58185602086016134f8565b612aee81613757565b840191505092915050565b6000612b048261335a565b612b0e81856133a5565b9350612b1e8185602086016134f8565b80840191505092915050565b6000612b37603483613394565b9150612b4282613782565b604082019050919050565b6000612b5a602f83613394565b9150612b65826137d1565b604082019050919050565b6000612b7d602883613394565b9150612b8882613820565b604082019050919050565b6000612ba0601c83613394565b9150612bab8261386f565b602082019050919050565b6000612bc3601583613394565b9150612bce82613898565b602082019050919050565b6000612be6602683613394565b9150612bf1826138c1565b604082019050919050565b6000612c09602483613394565b9150612c1482613910565b604082019050919050565b6000612c2c601683613394565b9150612c378261395f565b602082019050919050565b6000612c4f602a83613394565b9150612c5a82613988565b604082019050919050565b6000612c72602583613394565b9150612c7d826139d7565b604082019050919050565b6000612c95600d83613394565b9150612ca082613a26565b602082019050919050565b6000612cb8602383613394565b9150612cc382613a4f565b604082019050919050565b6000612cdb602a83613394565b9150612ce682613a9e565b604082019050919050565b6000612cfe6005836133a5565b9150612d0982613aed565b600582019050919050565b6000612d21602083613394565b9150612d2c82613b16565b602082019050919050565b6000612d44603d836133a5565b9150612d4f82613b3f565b603d82019050919050565b6000612d67602983613394565b9150612d7282613b8e565b604082019050919050565b6000612d8a602983613394565b9150612d9582613bdd565b604082019050919050565b6000612dad602883613394565b9150612db882613c2c565b604082019050919050565b6000612dd0602183613394565b9150612ddb82613c7b565b604082019050919050565b6000612df3601f83613394565b9150612dfe82613cca565b602082019050919050565b612e12816134df565b82525050565b612e21816134df565b82525050565b6000612e338284612a03565b60148201915081905092915050565b6000612e4d82612d37565b9150612e598284612af9565b9150612e6482612cf1565b915081905092915050565b6000602082019050612e8460008301846129f4565b92915050565b600060a082019050612e9f60008301886129f4565b612eac60208301876129f4565b8181036040830152612ebe8186612a1a565b90508181036060830152612ed28185612a1a565b90508181036080830152612ee68184612a87565b90509695505050505050565b600060a082019050612f0760008301886129f4565b612f1460208301876129f4565b612f216040830186612e18565b612f2e6060830185612e18565b8181036080830152612f408184612a87565b90509695505050505050565b60006020820190508181036000830152612f668184612a1a565b905092915050565b60006040820190508181036000830152612f888185612a1a565b90508181036020830152612f9c8184612a1a565b90509392505050565b6000602082019050612fba6000830184612a78565b92915050565b60006020820190508181036000830152612fda8184612ac0565b905092915050565b60006020820190508181036000830152612ffb81612b2a565b9050919050565b6000602082019050818103600083015261301b81612b4d565b9050919050565b6000602082019050818103600083015261303b81612b70565b9050919050565b6000602082019050818103600083015261305b81612b93565b9050919050565b6000602082019050818103600083015261307b81612bb6565b9050919050565b6000602082019050818103600083015261309b81612bd9565b9050919050565b600060208201905081810360008301526130bb81612bfc565b9050919050565b600060208201905081810360008301526130db81612c1f565b9050919050565b600060208201905081810360008301526130fb81612c42565b9050919050565b6000602082019050818103600083015261311b81612c65565b9050919050565b6000602082019050818103600083015261313b81612c88565b9050919050565b6000602082019050818103600083015261315b81612cab565b9050919050565b6000602082019050818103600083015261317b81612cce565b9050919050565b6000602082019050818103600083015261319b81612d14565b9050919050565b600060208201905081810360008301526131bb81612d5a565b9050919050565b600060208201905081810360008301526131db81612d7d565b9050919050565b600060208201905081810360008301526131fb81612da0565b9050919050565b6000602082019050818103600083015261321b81612dc3565b9050919050565b6000602082019050818103600083015261323b81612de6565b9050919050565b60006020820190506132576000830184612e18565b92915050565b60006040820190506132726000830185612e18565b61327f6020830184612e18565b9392505050565b60006132906132a1565b905061329c828261355d565b919050565b6000604051905090565b600067ffffffffffffffff8211156132c6576132c56136e8565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156132f2576132f16136e8565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561331e5761331d6136e8565b5b61332782613757565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006133bb826134df565b91506133c6836134df565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156133fb576133fa61362c565b5b828201905092915050565b6000613411826134df565b915061341c836134df565b92508261342c5761342b61365b565b5b828204905092915050565b6000613442826134df565b915061344d836134df565b9250828210156134605761345f61362c565b5b828203905092915050565b6000613476826134bf565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156135165780820151818401526020810190506134fb565b83811115613525576000848401525b50505050565b6000600282049050600182168061354357607f821691505b602082108114156135575761355661368a565b5b50919050565b61356682613757565b810181811067ffffffffffffffff82111715613585576135846136e8565b5b80604052505050565b6000613599826134df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135cc576135cb61362c565b5b600182019050919050565b60006135e2826135e9565b9050919050565b60006135f482613768565b9050919050565b6000613606826134df565b9150613611836134df565b9250826136215761362061365b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156137365760046000803e613733600051613775565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f596f7520617265206e6f74206f6e207468652077686974656c69737400000000600082015250565b7f596f752063616e2774206275726e207965742e2e2e0000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f596f752063616e2774206d696e7420616e796d6f726500000000000000000000600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f427265616b2074696d652e2e2e00000000000000000000000000000000000000600082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f68747470733a2f2f6b6f706f6b6f73747564696f2e73332e65752d776573742d60008201527f332e616d617a6f6e6177732e636f6d2f42414f2f6d657461646174612f000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600060443d1015613d0357613d86565b613d0b6132a1565b60043d036004823e80513d602482011167ffffffffffffffff82111715613d33575050613d86565b808201805167ffffffffffffffff811115613d515750505050613d86565b80602083010160043d038501811115613d6e575050505050613d86565b613d7d8260200185018661355d565b82955050505050505b90565b613d928161346b565b8114613d9d57600080fd5b50565b613da98161347d565b8114613db457600080fd5b50565b613dc081613489565b8114613dcb57600080fd5b50565b613dd781613493565b8114613de257600080fd5b50565b613dee816134df565b8114613df957600080fd5b5056fea2646970667358221220c2bdfe35884bd062d74ca706e1bf549b72646fad38645050e8a2afbb76393ed664736f6c6343000807003368747470733a2f2f6b6f706f6b6f73747564696f2e73332e65752d776573742d332e616d617a6f6e6177732e636f6d2f42414f2f6d657461646174612f7b69647d2e6a736f6e
Deployed Bytecode
0x6080604052600436106101295760003560e01c8063715018a6116100ab578063cbfc4bce1161006f578063cbfc4bce146103f4578063e985e9c51461041d578063ebcea3db1461045a578063f1791cdc14610483578063f242432a146104ae578063f2fde38b146104d757610129565b8063715018a6146103235780638da5cb5b1461033a578063949fb49c14610365578063a22cb465146103a2578063b390c0ab146103cb57610129565b806316c38b3c116100f257806316c38b3c1461024d57806320bd71a8146102765780632eb2c2d6146102925780634e1273f4146102bb5780635c975abb146102f857610129565b8062fdd58e1461012e57806301ffc9a71461016b57806306fdde03146101a857806309277689146101d35780630e89341c14610210575b600080fd5b34801561013a57600080fd5b506101556004803603810190610150919061278f565b610500565b6040516101629190613242565b60405180910390f35b34801561017757600080fd5b50610192600480360381019061018d9190612915565b6105c9565b60405161019f9190612fa5565b60405180910390f35b3480156101b457600080fd5b506101bd6106ab565b6040516101ca9190612fc0565b60405180910390f35b3480156101df57600080fd5b506101fa60048036038101906101f5919061257c565b610739565b6040516102079190613242565b60405180910390f35b34801561021c57600080fd5b506102376004803603810190610232919061296f565b610751565b6040516102449190612fc0565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f91906128bb565b610782565b005b610290600480360381019061028b9190612847565b6107a7565b005b34801561029e57600080fd5b506102b960048036038101906102b491906125e9565b61099c565b005b3480156102c757600080fd5b506102e260048036038101906102dd91906127cf565b610a3d565b6040516102ef9190612f4c565b60405180910390f35b34801561030457600080fd5b5061030d610b56565b60405161031a9190612fa5565b60405180910390f35b34801561032f57600080fd5b50610338610b69565b005b34801561034657600080fd5b5061034f610b7d565b60405161035c9190612e6f565b60405180910390f35b34801561037157600080fd5b5061038c6004803603810190610387919061257c565b610ba7565b6040516103999190613242565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c4919061274f565b610bbf565b005b3480156103d757600080fd5b506103f260048036038101906103ed919061299c565b610bd5565b005b34801561040057600080fd5b5061041b6004803603810190610416919061257c565b610c8a565b005b34801561042957600080fd5b50610444600480360381019061043f91906125a9565b610d22565b6040516104519190612fa5565b60405180910390f35b34801561046657600080fd5b50610481600480360381019061047c91906128e8565b610db6565b005b34801561048f57600080fd5b50610498610dc8565b6040516104a59190613242565b60405180910390f35b3480156104ba57600080fd5b506104d560048036038101906104d091906126b8565b610dce565b005b3480156104e357600080fd5b506104fe60048036038101906104f9919061257c565b610e6f565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610571576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610568906130e2565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061069457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106a457506106a382610ef3565b5b9050919050565b600680546106b89061352b565b80601f01602080910402602001604051908101604052809291908181526020018280546106e49061352b565b80156107315780601f1061070657610100808354040283529160200191610731565b820191906000526020600020905b81548152906001019060200180831161071457829003601f168201915b505050505081565b600a6020528060005260406000206000915090505481565b606061075c82610f5d565b60405160200161076c9190612e42565b6040516020818303038152906040529050919050565b61078a6110be565b80600860006101000a81548160ff02191690831515021790555050565b600260045414156107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e490613222565b60405180910390fd5b6002600481905550600860009054906101000a900460ff1615610845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083c90613122565b60405180910390fd5b8082600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461089191906133b0565b11156108d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c9906130c2565b60405180910390fd5b6108dd33858561113c565b61091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091390613042565b60405180910390fd5b610938336001846040518060200160405280600081525061119a565b81600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461098791906133b0565b92505081905550600160048190555050505050565b6109a461134b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806109ea57506109e9856109e461134b565b610d22565b5b610a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2090613002565b60405180910390fd5b610a368585858585611353565b5050505050565b60608151835114610a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7a906131c2565b60405180910390fd5b6000835167ffffffffffffffff811115610aa057610a9f6136e8565b5b604051908082528060200260200182016040528015610ace5781602001602082028036833780820191505090505b50905060005b8451811015610b4b57610b1b858281518110610af357610af26136b9565b5b6020026020010151858381518110610b0e57610b0d6136b9565b5b6020026020010151610500565b828281518110610b2e57610b2d6136b9565b5b60200260200101818152505080610b449061358e565b9050610ad4565b508091505092915050565b600860009054906101000a900460ff1681565b610b716110be565b610b7b6000611675565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60096020528060005260406000206000915090505481565b610bd1610bca61134b565b838361173b565b5050565b600860009054906101000a900460ff1615610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c90613062565b60405180910390fd5b610c303383836118a8565b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610c7f91906133b0565b925050819055505050565b610c926110be565b610cae816001806040518060200160405280600081525061119a565b6001600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610cfe91906133b0565b92505081905550600160076000828254610d1891906133b0565b9250508190555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610dbe6110be565b8060058190555050565b60075481565b610dd661134b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e1c5750610e1b85610e1661134b565b610d22565b5b610e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5290613002565b60405180910390fd5b610e688585858585611aef565b5050505050565b610e776110be565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ede90613082565b60405180910390fd5b610ef081611675565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606000821415610fa5576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506110b9565b600082905060005b60008214610fd7578080610fc09061358e565b915050600a82610fd09190613406565b9150610fad565b60008167ffffffffffffffff811115610ff357610ff26136e8565b5b6040519080825280601f01601f1916602001820160405280156110255781602001600182028036833780820191505090505b5090505b600085146110b25760018261103e9190613437565b9150600a8561104d91906135fb565b603061105991906133b0565b60f81b81838151811061106f5761106e6136b9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856110ab9190613406565b9450611029565b8093505050505b919050565b6110c661134b565b73ffffffffffffffffffffffffffffffffffffffff166110e4610b7d565b73ffffffffffffffffffffffffffffffffffffffff161461113a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113190613182565b60405180910390fd5b565b600061119161114a85611d8b565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611dbb565b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561120a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120190613202565b60405180910390fd5b600061121461134b565b9050600061122185611dd2565b9050600061122e85611dd2565b905061123f83600089858589611e4c565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461129e91906133b0565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161131c92919061325d565b60405180910390a461133383600089858589611e54565b61134283600089898989611e5c565b50505050505050565b600033905090565b8151835114611397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138e906131e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611407576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fe90613102565b60405180910390fd5b600061141161134b565b9050611421818787878787611e4c565b60005b84518110156115d2576000858281518110611442576114416136b9565b5b602002602001015190506000858381518110611461576114606136b9565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f990613162565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115b791906133b0565b92505081905550505050806115cb9061358e565b9050611424565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611649929190612f6e565b60405180910390a461165f818787878787611e54565b61166d818787878787612043565b505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156117aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a1906131a2565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161189b9190612fa5565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190f90613142565b60405180910390fd5b600061192261134b565b9050600061192f84611dd2565b9050600061193c84611dd2565b905061195c83876000858560405180602001604052806000815250611e4c565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156119f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ea906130a2565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611ac092919061325d565b60405180910390a4611ae684886000868660405180602001604052806000815250611e54565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5690613102565b60405180910390fd5b6000611b6961134b565b90506000611b7685611dd2565b90506000611b8385611dd2565b9050611b93838989858589611e4c565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611c2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2190613162565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cdf91906133b0565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051611d5c92919061325d565b60405180910390a4611d72848a8a86868a611e54565b611d80848a8a8a8a8a611e5c565b505050505050505050565b600081604051602001611d9e9190612e27565b604051602081830303815290604052805190602001209050919050565b6000611dca826005548561222a565b905092915050565b60606000600167ffffffffffffffff811115611df157611df06136e8565b5b604051908082528060200260200182016040528015611e1f5781602001602082028036833780820191505090505b5090508281600081518110611e3757611e366136b9565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b611e7b8473ffffffffffffffffffffffffffffffffffffffff16612241565b1561203b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611ec1959493929190612ef2565b602060405180830381600087803b158015611edb57600080fd5b505af1925050508015611f0c57506040513d601f19601f82011682018060405250810190611f099190612942565b60015b611fb257611f18613717565b806308c379a01415611f755750611f2d613cf3565b80611f385750611f77565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6c9190612fc0565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa990612fe2565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203090613022565b60405180910390fd5b505b505050505050565b6120628473ffffffffffffffffffffffffffffffffffffffff16612241565b15612222578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016120a8959493929190612e8a565b602060405180830381600087803b1580156120c257600080fd5b505af19250505080156120f357506040513d601f19601f820116820180604052508101906120f09190612942565b60015b612199576120ff613717565b806308c379a0141561215c5750612114613cf3565b8061211f575061215e565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121539190612fc0565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219090612fe2565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221790613022565b60405180910390fd5b505b505050505050565b6000826122378584612264565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008082905060005b84518110156122af5761229a8286838151811061228d5761228c6136b9565b5b60200260200101516122ba565b915080806122a79061358e565b91505061226d565b508091505092915050565b60008183106122d2576122cd82846122e5565b6122dd565b6122dc83836122e5565b5b905092915050565b600082600052816020526040600020905092915050565b600061230f61230a846132ab565b613286565b9050808382526020820190508285602086028201111561233257612331613743565b5b60005b858110156123625781612348888261241e565b845260208401935060208301925050600181019050612335565b5050509392505050565b600061237f61237a846132d7565b613286565b905080838252602082019050828560208602820111156123a2576123a1613743565b5b60005b858110156123d257816123b88882612567565b8452602084019350602083019250506001810190506123a5565b5050509392505050565b60006123ef6123ea84613303565b613286565b90508281526020810184848401111561240b5761240a613748565b5b6124168482856134e9565b509392505050565b60008135905061242d81613d89565b92915050565b600082601f8301126124485761244761373e565b5b81356124588482602086016122fc565b91505092915050565b60008083601f8401126124775761247661373e565b5b8235905067ffffffffffffffff81111561249457612493613739565b5b6020830191508360208202830111156124b0576124af613743565b5b9250929050565b600082601f8301126124cc576124cb61373e565b5b81356124dc84826020860161236c565b91505092915050565b6000813590506124f481613da0565b92915050565b60008135905061250981613db7565b92915050565b60008135905061251e81613dce565b92915050565b60008151905061253381613dce565b92915050565b600082601f83011261254e5761254d61373e565b5b813561255e8482602086016123dc565b91505092915050565b60008135905061257681613de5565b92915050565b60006020828403121561259257612591613752565b5b60006125a08482850161241e565b91505092915050565b600080604083850312156125c0576125bf613752565b5b60006125ce8582860161241e565b92505060206125df8582860161241e565b9150509250929050565b600080600080600060a0868803121561260557612604613752565b5b60006126138882890161241e565b95505060206126248882890161241e565b945050604086013567ffffffffffffffff8111156126455761264461374d565b5b612651888289016124b7565b935050606086013567ffffffffffffffff8111156126725761267161374d565b5b61267e888289016124b7565b925050608086013567ffffffffffffffff81111561269f5761269e61374d565b5b6126ab88828901612539565b9150509295509295909350565b600080600080600060a086880312156126d4576126d3613752565b5b60006126e28882890161241e565b95505060206126f38882890161241e565b945050604061270488828901612567565b935050606061271588828901612567565b925050608086013567ffffffffffffffff8111156127365761273561374d565b5b61274288828901612539565b9150509295509295909350565b6000806040838503121561276657612765613752565b5b60006127748582860161241e565b9250506020612785858286016124e5565b9150509250929050565b600080604083850312156127a6576127a5613752565b5b60006127b48582860161241e565b92505060206127c585828601612567565b9150509250929050565b600080604083850312156127e6576127e5613752565b5b600083013567ffffffffffffffff8111156128045761280361374d565b5b61281085828601612433565b925050602083013567ffffffffffffffff8111156128315761283061374d565b5b61283d858286016124b7565b9150509250929050565b6000806000806060858703121561286157612860613752565b5b600085013567ffffffffffffffff81111561287f5761287e61374d565b5b61288b87828801612461565b9450945050602061289e87828801612567565b92505060406128af87828801612567565b91505092959194509250565b6000602082840312156128d1576128d0613752565b5b60006128df848285016124e5565b91505092915050565b6000602082840312156128fe576128fd613752565b5b600061290c848285016124fa565b91505092915050565b60006020828403121561292b5761292a613752565b5b60006129398482850161250f565b91505092915050565b60006020828403121561295857612957613752565b5b600061296684828501612524565b91505092915050565b60006020828403121561298557612984613752565b5b600061299384828501612567565b91505092915050565b600080604083850312156129b3576129b2613752565b5b60006129c185828601612567565b92505060206129d285828601612567565b9150509250929050565b60006129e88383612e09565b60208301905092915050565b6129fd8161346b565b82525050565b612a14612a0f8261346b565b6135d7565b82525050565b6000612a2582613344565b612a2f8185613372565b9350612a3a83613334565b8060005b83811015612a6b578151612a5288826129dc565b9750612a5d83613365565b925050600181019050612a3e565b5085935050505092915050565b612a818161347d565b82525050565b6000612a928261334f565b612a9c8185613383565b9350612aac8185602086016134f8565b612ab581613757565b840191505092915050565b6000612acb8261335a565b612ad58185613394565b9350612ae58185602086016134f8565b612aee81613757565b840191505092915050565b6000612b048261335a565b612b0e81856133a5565b9350612b1e8185602086016134f8565b80840191505092915050565b6000612b37603483613394565b9150612b4282613782565b604082019050919050565b6000612b5a602f83613394565b9150612b65826137d1565b604082019050919050565b6000612b7d602883613394565b9150612b8882613820565b604082019050919050565b6000612ba0601c83613394565b9150612bab8261386f565b602082019050919050565b6000612bc3601583613394565b9150612bce82613898565b602082019050919050565b6000612be6602683613394565b9150612bf1826138c1565b604082019050919050565b6000612c09602483613394565b9150612c1482613910565b604082019050919050565b6000612c2c601683613394565b9150612c378261395f565b602082019050919050565b6000612c4f602a83613394565b9150612c5a82613988565b604082019050919050565b6000612c72602583613394565b9150612c7d826139d7565b604082019050919050565b6000612c95600d83613394565b9150612ca082613a26565b602082019050919050565b6000612cb8602383613394565b9150612cc382613a4f565b604082019050919050565b6000612cdb602a83613394565b9150612ce682613a9e565b604082019050919050565b6000612cfe6005836133a5565b9150612d0982613aed565b600582019050919050565b6000612d21602083613394565b9150612d2c82613b16565b602082019050919050565b6000612d44603d836133a5565b9150612d4f82613b3f565b603d82019050919050565b6000612d67602983613394565b9150612d7282613b8e565b604082019050919050565b6000612d8a602983613394565b9150612d9582613bdd565b604082019050919050565b6000612dad602883613394565b9150612db882613c2c565b604082019050919050565b6000612dd0602183613394565b9150612ddb82613c7b565b604082019050919050565b6000612df3601f83613394565b9150612dfe82613cca565b602082019050919050565b612e12816134df565b82525050565b612e21816134df565b82525050565b6000612e338284612a03565b60148201915081905092915050565b6000612e4d82612d37565b9150612e598284612af9565b9150612e6482612cf1565b915081905092915050565b6000602082019050612e8460008301846129f4565b92915050565b600060a082019050612e9f60008301886129f4565b612eac60208301876129f4565b8181036040830152612ebe8186612a1a565b90508181036060830152612ed28185612a1a565b90508181036080830152612ee68184612a87565b90509695505050505050565b600060a082019050612f0760008301886129f4565b612f1460208301876129f4565b612f216040830186612e18565b612f2e6060830185612e18565b8181036080830152612f408184612a87565b90509695505050505050565b60006020820190508181036000830152612f668184612a1a565b905092915050565b60006040820190508181036000830152612f888185612a1a565b90508181036020830152612f9c8184612a1a565b90509392505050565b6000602082019050612fba6000830184612a78565b92915050565b60006020820190508181036000830152612fda8184612ac0565b905092915050565b60006020820190508181036000830152612ffb81612b2a565b9050919050565b6000602082019050818103600083015261301b81612b4d565b9050919050565b6000602082019050818103600083015261303b81612b70565b9050919050565b6000602082019050818103600083015261305b81612b93565b9050919050565b6000602082019050818103600083015261307b81612bb6565b9050919050565b6000602082019050818103600083015261309b81612bd9565b9050919050565b600060208201905081810360008301526130bb81612bfc565b9050919050565b600060208201905081810360008301526130db81612c1f565b9050919050565b600060208201905081810360008301526130fb81612c42565b9050919050565b6000602082019050818103600083015261311b81612c65565b9050919050565b6000602082019050818103600083015261313b81612c88565b9050919050565b6000602082019050818103600083015261315b81612cab565b9050919050565b6000602082019050818103600083015261317b81612cce565b9050919050565b6000602082019050818103600083015261319b81612d14565b9050919050565b600060208201905081810360008301526131bb81612d5a565b9050919050565b600060208201905081810360008301526131db81612d7d565b9050919050565b600060208201905081810360008301526131fb81612da0565b9050919050565b6000602082019050818103600083015261321b81612dc3565b9050919050565b6000602082019050818103600083015261323b81612de6565b9050919050565b60006020820190506132576000830184612e18565b92915050565b60006040820190506132726000830185612e18565b61327f6020830184612e18565b9392505050565b60006132906132a1565b905061329c828261355d565b919050565b6000604051905090565b600067ffffffffffffffff8211156132c6576132c56136e8565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156132f2576132f16136e8565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561331e5761331d6136e8565b5b61332782613757565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006133bb826134df565b91506133c6836134df565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156133fb576133fa61362c565b5b828201905092915050565b6000613411826134df565b915061341c836134df565b92508261342c5761342b61365b565b5b828204905092915050565b6000613442826134df565b915061344d836134df565b9250828210156134605761345f61362c565b5b828203905092915050565b6000613476826134bf565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156135165780820151818401526020810190506134fb565b83811115613525576000848401525b50505050565b6000600282049050600182168061354357607f821691505b602082108114156135575761355661368a565b5b50919050565b61356682613757565b810181811067ffffffffffffffff82111715613585576135846136e8565b5b80604052505050565b6000613599826134df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135cc576135cb61362c565b5b600182019050919050565b60006135e2826135e9565b9050919050565b60006135f482613768565b9050919050565b6000613606826134df565b9150613611836134df565b9250826136215761362061365b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156137365760046000803e613733600051613775565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f596f7520617265206e6f74206f6e207468652077686974656c69737400000000600082015250565b7f596f752063616e2774206275726e207965742e2e2e0000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f596f752063616e2774206d696e7420616e796d6f726500000000000000000000600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f427265616b2074696d652e2e2e00000000000000000000000000000000000000600082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f68747470733a2f2f6b6f706f6b6f73747564696f2e73332e65752d776573742d60008201527f332e616d617a6f6e6177732e636f6d2f42414f2f6d657461646174612f000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600060443d1015613d0357613d86565b613d0b6132a1565b60043d036004823e80513d602482011167ffffffffffffffff82111715613d33575050613d86565b808201805167ffffffffffffffff811115613d515750505050613d86565b80602083010160043d038501811115613d6e575050505050613d86565b613d7d8260200185018661355d565b82955050505050505b90565b613d928161346b565b8114613d9d57600080fd5b50565b613da98161347d565b8114613db457600080fd5b50565b613dc081613489565b8114613dcb57600080fd5b50565b613dd781613493565b8114613de257600080fd5b50565b613dee816134df565b8114613df957600080fd5b5056fea2646970667358221220c2bdfe35884bd062d74ca706e1bf549b72646fad38645050e8a2afbb76393ed664736f6c63430008070033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.