Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x6eedccd4881408332e269453467d6ede04dcc37d7bf31b78039aad0542b2f96d | Mint | (pending) | 23 hrs ago | IN | 0 ETH | (Pending) | |||
0x8ccf340344773a39418660db4e17b8850c83d78bbc36279ec49b15fd4a7791b6 | Mint | (pending) | 23 hrs ago | IN | 0 ETH | (Pending) | |||
0xf13a93a36b642bde09c0f034797a03538161632134d3139fc44ae7964d11c8f5 | Mint | (pending) | 24 hrs ago | IN | 0 ETH | (Pending) | |||
0xe040857ee9382956793cf3278fa73e6ef623c04428f15b4764ddc5f6f832cd1f | Mint | (pending) | 26 hrs ago | IN | 0 ETH | (Pending) | |||
0x9d295cf9496794fef2f225039ac6dda0c2566834ba76c740970eb5d4b2d224c0 | Mint | (pending) | 27 hrs ago | IN | 0 ETH | (Pending) | |||
Transfer Ownersh... | 20720292 | 104 days ago | IN | 0 ETH | 0.00023918 | ||||
Mint | 20707738 | 106 days ago | IN | 0 ETH | 0.00011185 | ||||
Set Approval For... | 20703844 | 106 days ago | IN | 0 ETH | 0.0000619 | ||||
Mint | 20702502 | 107 days ago | IN | 0 ETH | 0.00001914 | ||||
Mint | 20702340 | 107 days ago | IN | 0 ETH | 0.00001863 | ||||
Mint | 20702236 | 107 days ago | IN | 0 ETH | 0.00002027 | ||||
Mint | 20702185 | 107 days ago | IN | 0 ETH | 0.00005934 | ||||
Mint | 20701653 | 107 days ago | IN | 0 ETH | 0.00008616 | ||||
Mint | 20698831 | 107 days ago | IN | 0 ETH | 0.00018464 | ||||
Update Royalty I... | 20692587 | 108 days ago | IN | 0 ETH | 0.00056335 | ||||
Set Payment Reci... | 20692581 | 108 days ago | IN | 0 ETH | 0.00049917 | ||||
Mint | 20691852 | 108 days ago | IN | 0.02 ETH | 0.00218754 | ||||
Mint | 20691745 | 108 days ago | IN | 0 ETH | 0.00069061 | ||||
Mint | 20691743 | 108 days ago | IN | 0 ETH | 0.00070653 | ||||
Mint | 20691739 | 108 days ago | IN | 0 ETH | 0.00070705 | ||||
Mint | 20691730 | 108 days ago | IN | 0 ETH | 0.00079039 | ||||
Mint | 20686475 | 109 days ago | IN | 0.1 ETH | 0.00044908 | ||||
Set Approval For... | 20685207 | 109 days ago | IN | 0 ETH | 0.00028281 | ||||
Mint | 20685192 | 109 days ago | IN | 0 ETH | 0.0003719 | ||||
Set Approval For... | 20685071 | 109 days ago | IN | 0 ETH | 0.0001652 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BreakingChains
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* ██████╗ ██████╗ ███████╗ █████╗ ██╗ ██╗██╗███╗ ██╗ ██████╗ ██╔══██╗██╔══██╗██╔════╝██╔══██╗██║ ██╔╝██║████╗ ██║██╔════╝ ██████╔╝██████╔╝█████╗ ███████║█████╔╝ ██║██╔██╗ ██║██║ ███╗ ██╔══██╗██╔══██╗██╔══╝ ██╔══██║██╔═██╗ ██║██║╚██╗██║██║ ██║ ██████╔╝██║ ██║███████╗██║ ██║██║ ██╗██║██║ ╚████║╚██████╔╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═════╝ ██████╗██╗ ██╗ █████╗ ██╗███╗ ██╗███████╗ ██╔════╝██║ ██║██╔══██╗██║████╗ ██║██╔════╝ ██║ ███████║███████║██║██╔██╗ ██║███████╗ ██║ ██╔══██║██╔══██║██║██║╚██╗██║╚════██║ ╚██████╗██║ ██║██║ ██║██║██║ ╚████║███████║ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚══════╝ +-+-+-+ +-+-+-+ +-+-+-+ +-+-+-+-+-+ +-+-+-+-+-+ |A|r|t| |F|o|r| |T|h|e| |R|e|b|e|l| |S|o|u|l|s| +-+-+-+ +-+-+-+ +-+-+-+ +-+-+-+-+-+ +-+-+-+-+-+ Breaking Chains is dedicated to all those who have felt or still feel stuck... Who dream of freedom and have the courage to initiate change. It's more than just jpegs—it's art for rebel souls as a movement. It's our united journey to freedom. /////////////////////////////////////////////// Each NFT Contains both an Image + Story by Artist and Bestselling Author Ani Alexander. /////////////////////////////////////////////// /////////////////////////////////////////////// Available on ETH, Tezos, Base 1 OPEN mint NFT & 10 NFTs with 5 editions each. /////////////////////////////////////////////// NFT 1 • Breaking Chains (OPEN MINT) NFT 2 • Pair of Sergio Rossi NFT 3 • The Middle Finger NFT 4 • C Level NFT 5 • One Box NFT 6 • The Last Drop NFT 7 • Corporate Nightmare NFT 8 • Caged NFT 9 • Centimeters from Change NFT 10 • Bored Meeting NFT 11 • Fake Stability /////////////////////////////////////////////// http://www.NFTrebels.com X(twitter): @NFTrebels (Ani) • @unl0c7 (Rick) /////////////////////////////////////////////// */ import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; /// @title Breaking Chains: Art for the Rebel Souls /// @author NFT Rebels - Ani Alexander(@nftrebels) & Rick S.(@unl0c7) /// @notice This contract implements an ERC1155 token for the Breaking Chains NFT collection /// @dev Extends ERC1155, Ownable, and ReentrancyGuard from OpenZeppelin /// @custom:website nftrebels.com /// @custom:twitter @nftrebels /// @custom:artist Ani Alexander contract BreakingChains is ERC1155, IERC2981, Ownable, ReentrancyGuard { uint256 public constant NUM_TOKEN_TYPES = 11; uint256 public constant SUPPLY_PER_TOKEN = 5; uint256 public constant OPEN_TOKEN_ID = 1; string public name = "Breaking Chains: Art for the Rebel Souls"; string public symbol = "BC"; mapping(uint256 => string) private _tokenMetadata; string private _contractMetadata; mapping(uint256 => uint256) public mintPrices; mapping(uint256 => uint256) private _tokenSupply; address public paymentRecipient; address public royaltyRecipient; uint96 public royaltyPercentage = 250; bool public openMintingEnabled = false; event OpenMintingStatusChanged(bool newStatus); event ContractMetadataUpdated(string newMetadata); event MintPriceUpdated(uint256 tokenId, uint256 newPrice); event RoyaltyInfoUpdated(address recipient, uint96 percentage); event TokenMetadataUpdated(uint256 indexed tokenId, string newMetadata); /// @notice Constructor sets the payment recipient to the contract deployer and initializes mint prices and initial metadata constructor() ERC1155("ipfs://QmNuHetZaBvAmEePURd1Lb1CzdgdsLdA73s1QZ5CVdkRwP") Ownable(msg.sender){ paymentRecipient = msg.sender; royaltyRecipient = msg.sender; // Set initial prices mintPrices[OPEN_TOKEN_ID] = 0; for (uint256 i = 2; i <= NUM_TOKEN_TYPES; i++) { mintPrices[i] = 0.07 ether; } // Set initial metadata for each token for (uint256 i = 1; i <= NUM_TOKEN_TYPES; i++) { _tokenMetadata[i] = string(abi.encodePacked("ipfs://QmXW3PR1JhRfCAPh4upryf7M6bhJWMPeePANjam1eUTWJ5/", Strings.toString(i - 1), ".json")); } // Set initial contract metadata _contractMetadata = "ipfs://QmNuHetZaBvAmEePURd1Lb1CzdgdsLdA73s1QZ5CVdkRwP"; } /// @notice Calculates the royalty for a sale /// @param _tokenId The ID of the token being sold /// @param _salePrice The sale price of the token /// @return receiver The address that should receive the royalty /// @return royaltyAmount The amount of royalty to be paid function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_tokenId > 0 && _tokenId <= NUM_TOKEN_TYPES, "Invalid token ID"); if (royaltyRecipient == address(0)) { return (address(0), 0); } return (royaltyRecipient, (_salePrice * royaltyPercentage) / 10000); } /// @notice Updates the royalty information /// @dev Only callable by the contract owner /// @param _recipient The new address to receive royalties /// @param _percentage The new royalty percentage (using 2 decimals - 10000 = 100%, 150 = 1.5%) function updateRoyaltyInfo(address _recipient, uint96 _percentage) external onlyOwner { require(_recipient != address(0), "Invalid royalty recipient"); require(_percentage <= 10000, "Royalty percentage too high"); royaltyRecipient = _recipient; royaltyPercentage = _percentage; emit RoyaltyInfoUpdated(_recipient, _percentage); } /// @notice Sets the minting price for a specific token /// @dev Only callable by the contract owner /// @param tokenId The ID of the token to set the price for /// @param newPrice The new price in wei for minting the specified token function setMintPrice(uint256 tokenId, uint256 newPrice) public onlyOwner { require(tokenId > 0 && tokenId <= NUM_TOKEN_TYPES, "Invalid token ID"); mintPrices[tokenId] = newPrice; emit MintPriceUpdated(tokenId, newPrice); } /// @notice Changes the recipient address for minting payments /// @dev Only callable by the contract owner /// @param newRecipient The new address to receive minting payments function setPaymentRecipient(address newRecipient) public onlyOwner { require(newRecipient != address(0), "Invalid address"); paymentRecipient = newRecipient; } /// @notice Enables or disables minting for the open token /// @dev Only callable by the universe /// @param _enabled New minting status for the open token function setOpenMintingEnabled(bool _enabled) public onlyOwner { openMintingEnabled = _enabled; emit OpenMintingStatusChanged(_enabled); } /// @notice Returns the current minting status for the open token /// @return bool Current minting status for the open token function isOpenMintingEnabled() public view returns (bool) { return openMintingEnabled; } /// @notice Mints new tokens /// @dev Open token (ID 1) minting is controlled by openMintingEnabled. Other tokens always mintable. /// @param tokenId The ID of the token to mint (tokens 1-11) /// @param amount The number of tokens to mint (just 1 per mint tx) function mint(uint256 tokenId, uint256 amount) public payable nonReentrant { require(tokenId > 0 && tokenId <= NUM_TOKEN_TYPES, "Invalid token ID"); require(amount > 0, "Amount must be greater than 0"); require(amount == 1, "Amount must be 1 per mint transaction"); if (tokenId == OPEN_TOKEN_ID) { require(openMintingEnabled, "Open token minting is currently disabled"); } else { require(_tokenSupply[tokenId] + amount <= SUPPLY_PER_TOKEN, "Exceeds max supply for this token"); } require(msg.value >= mintPrices[tokenId] * amount, "Insufficient payment"); _mint(msg.sender, tokenId, amount, ""); _tokenSupply[tokenId] += amount; if (msg.value > 0) { payable(paymentRecipient).transfer(msg.value); } } /// @notice Returns the metadata URI for a given token /// @dev Overrides the uri function in ERC1155, handles both IPFS and JSON data /// @param tokenId The ID of the token to query /// @return string The metadata URI or base64 encoded JSON for the specified token function uri(uint256 tokenId) public view virtual override returns (string memory) { require(tokenId > 0 && tokenId <= NUM_TOKEN_TYPES, "Token ID does not exist"); string memory metadataUri = _tokenMetadata[tokenId]; if (bytes(metadataUri).length == 0) { return ""; } // Check if the URI starts with "ipfs" bytes memory uriBytes = bytes(metadataUri); if (uriBytes.length >= 4 && uriBytes[0] == 0x69 && // 'i' uriBytes[1] == 0x70 && // 'p' uriBytes[2] == 0x66 && // 'f' uriBytes[3] == 0x73) // 's' { return metadataUri; } // If not IPFS, assume it's JSON and encode it string memory encodedJson = Base64.encode(uriBytes); return string(abi.encodePacked("data:application/json;base64,", encodedJson)); } /// @notice Sets the metadata URI for a specific token /// @dev Only callable by the contract owner /// @param tokenId The ID of the token to update /// @param newMetadata The new metadata URI for the token function setTokenMetadata(uint256 tokenId, string memory newMetadata) public onlyOwner { require(tokenId > 0 && tokenId <= NUM_TOKEN_TYPES, "Invalid token ID"); _tokenMetadata[tokenId] = newMetadata; emit TokenMetadataUpdated(tokenId, newMetadata); } /// @notice Returns the metadata URI for the entire contract /// @return string The contract-level metadata URI function contractURI() public view returns (string memory) { return _contractMetadata; } /// @notice Sets the metadata URI for the entire contract /// @dev Only callable by the contract owner /// @param newMetadata The new metadata URI for the contract function setContractMetadata(string memory newMetadata) public onlyOwner { _contractMetadata = newMetadata; emit ContractMetadataUpdated(newMetadata); } /// @notice Returns the current supply of a specific token /// @param tokenId The ID of the token to query /// @return uint256 The current supply of the specified token function tokenSupply(uint256 tokenId) public view returns (uint256) { require(tokenId > 0 && tokenId <= NUM_TOKEN_TYPES, "Invalid token ID"); return _tokenSupply[tokenId]; } /// @notice EIP2981 standard Interface return. Adds to ERC1155 and ERC165 Interface returns. function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, IERC165) returns (bool) { return ( interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.2) (utils/Base64.sol) pragma solidity ^0.8.20; /** * @dev Provides a set of functions to operate with Base64 strings. */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 0x20) let dataPtr := data let endPtr := add(data, mload(data)) // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and // set it to zero to make sure no dirty bytes are read in that section. let afterPtr := add(endPtr, 0x20) let afterCache := mload(afterPtr) mstore(afterPtr, 0x00) // Run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 byte (24 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F to bitmask the least significant 6 bits. // Use this as an index into the lookup table, mload an entire word // so the desired character is in the least significant byte, and // mstore8 this least significant byte into the result and continue. mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // Reset the value that was cached mstore(afterPtr, afterCache) // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.20; import {IERC1155} from "./IERC1155.sol"; import {IERC1155Receiver} from "./IERC1155Receiver.sol"; import {IERC1155MetadataURI} from "./extensions/IERC1155MetadataURI.sol"; import {Context} from "../../utils/Context.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {Arrays} from "../../utils/Arrays.sol"; import {IERC1155Errors} from "../../interfaces/draft-IERC6093.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 */ abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors { using Arrays for uint256[]; using Arrays for address[]; mapping(uint256 id => mapping(address account => uint256)) private _balances; mapping(address account => mapping(address operator => 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 /* id */) public view virtual returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. */ function balanceOf(address account, uint256 id) public view virtual returns (uint256) { 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 returns (uint256[] memory) { if (accounts.length != ids.length) { revert ERC1155InvalidArrayLength(ids.length, accounts.length); } uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts.unsafeMemoryAccess(i), ids.unsafeMemoryAccess(i)); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeTransferFrom(from, to, id, value, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeBatchTransferFrom(from, to, ids, values, data); } /** * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from` * (or `to`) is the zero address. * * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise. * * Requirements: * * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received} * or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. * - `ids` and `values` must have the same length. * * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead. */ function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual { if (ids.length != values.length) { revert ERC1155InvalidArrayLength(ids.length, values.length); } address operator = _msgSender(); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids.unsafeMemoryAccess(i); uint256 value = values.unsafeMemoryAccess(i); if (from != address(0)) { uint256 fromBalance = _balances[id][from]; if (fromBalance < value) { revert ERC1155InsufficientBalance(from, fromBalance, value, id); } unchecked { // Overflow not possible: value <= fromBalance _balances[id][from] = fromBalance - value; } } if (to != address(0)) { _balances[id][to] += value; } } if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); emit TransferSingle(operator, from, to, id, value); } else { emit TransferBatch(operator, from, to, ids, values); } } /** * @dev Version of {_update} that performs the token acceptance check by calling * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it * contains code (eg. is a smart contract at the moment of execution). * * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any * update to the contract state after this function would break the check-effect-interaction pattern. Consider * overriding {_update} instead. */ function _updateWithAcceptanceCheck( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal virtual { _update(from, to, ids, values); if (to != address(0)) { address operator = _msgSender(); if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data); } else { _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data); } } } /** * @dev Transfers a `value` 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 `value` 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 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, to, ids, values, 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. * - `ids` and `values` must have the same length. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, to, ids, values, 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 values 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 a `value` amount of tokens of 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 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `values` must have the same length. * - `to` cannot be the zero address. * - 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 values, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev Destroys a `value` amount of tokens of type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. */ function _burn(address from, uint256 id, uint256 value) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. * - `ids` and `values` must have the same length. */ function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the zero address. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC1155InvalidOperator(address(0)); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address * if it contains code at the moment of execution. */ function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 value, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address * if it contains code at the moment of execution. */ function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Creates an array in memory with only one value for each of the elements provided. */ function _asSingletonArrays( uint256 element1, uint256 element2 ) private pure returns (uint256[] memory array1, uint256[] memory array2) { /// @solidity memory-safe-assembly assembly { // Load the free memory pointer array1 := mload(0x40) // Set array length to 1 mstore(array1, 1) // Store the single element at the next word after the length (where content starts) mstore(add(array1, 0x20), element1) // Repeat for next array locating it right after the first array array2 := add(array1, 0x40) mstore(array2, 1) mstore(add(array2, 0x20), element2) // Update the free memory pointer by pointing after the second array mstore(0x40, add(array2, 0x40)) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol) pragma solidity ^0.8.20; import {StorageSlot} from "./StorageSlot.sol"; import {Math} from "./math/Math.sol"; /** * @dev Collection of functions related to array types. */ library Arrays { using StorageSlot for bytes32; /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { uint256 low = 0; uint256 high = array.length; if (high == 0) { return 0; } while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds towards zero (it does integer division with truncation). if (unsafeAccess(array, mid).value > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && unsafeAccess(array, low - 1).value == element) { return low - 1; } else { return low; } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getAddressSlot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getBytes32Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getUint256Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.20; import {IERC1155} from "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. */ 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 v5.0.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Interface that must be implemented by smart contracts in order to receive * ERC-1155 token transfers. */ 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 v5.0.1) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` amount of tokens of 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 value 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 a `value` amount of tokens of type `id` from `from` to `to`. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155Received} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * 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 `value` 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 value, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments. * * Requirements: * * - `ids` and `values` 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 values, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
{ "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"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":false,"internalType":"string","name":"newMetadata","type":"string"}],"name":"ContractMetadataUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"MintPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newStatus","type":"bool"}],"name":"OpenMintingStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint96","name":"percentage","type":"uint96"}],"name":"RoyaltyInfoUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newMetadata","type":"string"}],"name":"TokenMetadataUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"NUM_TOKEN_TYPES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPEN_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPLY_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOpenMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentage","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","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":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetadata","type":"string"}],"name":"setContractMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setOpenMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRecipient","type":"address"}],"name":"setPaymentRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newMetadata","type":"string"}],"name":"setTokenMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint96","name":"_percentage","type":"uint96"}],"name":"updateRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052604051806060016040528060288152602001614c82602891396005908161002b9190610828565b506040518060400160405280600281526020017f4243000000000000000000000000000000000000000000000000000000000000815250600690816100709190610828565b5060fa600c60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505f600d5f6101000a81548160ff0219169083151502179055503480156100c7575f80fd5b5033604051806060016040528060358152602001614caa603591396100f1816102f760201b60201c565b505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610162575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101599190610936565b60405180910390fd5b6101718161030a60201b60201c565b50600160048190555033600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f60095f600181526020019081526020015f20819055505f600290505b600b811161024f5766f8b0a10e47000060095f8381526020019081526020015f208190555080806102479061097c565b915050610217565b505f600190505b600b81116102c95761027960018261026e91906109c3565b6103cd60201b60201c565b6040516020016102899190610af8565b60405160208183030381529060405260075f8381526020019081526020015f2090816102b59190610828565b5080806102c19061097c565b915050610256565b50604051806060016040528060358152602001614caa60359139600890816102f19190610828565b50610b51565b80600290816103069190610828565b5050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60605f60016103e18461049d60201b60201c565b0190505f8167ffffffffffffffff8111156103ff576103fe6105f8565b5b6040519080825280601f01601f1916602001820160405280156104315781602001600182028036833780820191505090505b5090505f82602001820190505b600115610492578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161048757610486610b24565b5b0494505f850361043e575b819350505050919050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106104f9577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816104ef576104ee610b24565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310610536576d04ee2d6d415b85acef8100000000838161052c5761052b610b24565b5b0492506020810190505b662386f26fc10000831061056557662386f26fc10000838161055b5761055a610b24565b5b0492506010810190505b6305f5e100831061058e576305f5e100838161058457610583610b24565b5b0492506008810190505b61271083106105b35761271083816105a9576105a8610b24565b5b0492506004810190505b606483106105d657606483816105cc576105cb610b24565b5b0492506002810190505b600a83106105e5576001810190505b80915050919050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061066957607f821691505b60208210810361067c5761067b610625565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026106de7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826106a3565b6106e886836106a3565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61072c61072761072284610700565b610709565b610700565b9050919050565b5f819050919050565b61074583610712565b61075961075182610733565b8484546106af565b825550505050565b5f90565b61076d610761565b61077881848461073c565b505050565b5b8181101561079b576107905f82610765565b60018101905061077e565b5050565b601f8211156107e0576107b181610682565b6107ba84610694565b810160208510156107c9578190505b6107dd6107d585610694565b83018261077d565b50505b505050565b5f82821c905092915050565b5f6108005f19846008026107e5565b1980831691505092915050565b5f61081883836107f1565b9150826002028217905092915050565b610831826105ee565b67ffffffffffffffff81111561084a576108496105f8565b5b6108548254610652565b61085f82828561079f565b5f60209050601f831160018114610890575f841561087e578287015190505b610888858261080d565b8655506108ef565b601f19841661089e86610682565b5f5b828110156108c5578489015182556001820191506020850194506020810190506108a0565b868310156108e257848901516108de601f8916826107f1565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610920826108f7565b9050919050565b61093081610916565b82525050565b5f6020820190506109495f830184610927565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61098682610700565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036109b8576109b761094f565b5b600182019050919050565b5f6109cd82610700565b91506109d883610700565b92508282039050818111156109f0576109ef61094f565b5b92915050565b5f81905092915050565b7f697066733a2f2f516d5857335052314a68526643415068347570727966374d365f8201527f62684a574d50656550414e6a616d31655554574a352f00000000000000000000602082015250565b5f610a5a6036836109f6565b9150610a6582610a00565b603682019050919050565b8281835e5f83830152505050565b5f610a88826105ee565b610a9281856109f6565b9350610aa2818560208601610a70565b80840191505092915050565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000005f82015250565b5f610ae26005836109f6565b9150610aed82610aae565b600582019050919050565b5f610b0282610a4e565b9150610b0e8284610a7e565b9150610b1982610ad6565b915081905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b61412480610b5e5f395ff3fe6080604052600436106101e1575f3560e01c8063715018a611610101578063de6811b811610094578063f242432a11610063578063f242432a146106de578063f2fde38b14610706578063f812d2301461072e578063fce5503714610758576101e1565b8063de6811b814610624578063dfaab5a11461064e578063e8a3d48514610678578063e985e9c5146106a2576101e1565b80639b253388116100d05780639b25338814610580578063a22cb465146105aa578063c6caf75b146105d2578063dc3a2e1d146105fc576101e1565b8063715018a6146104ec5780638a71bb2d146105025780638da5cb5b1461052c57806395d89b4114610556576101e1565b80632a55205a116101795780634c00de82116101485780634c00de82146104225780634e1273f41461044c578063510ef1de146104885780636187b33e146104b0576101e1565b80632a55205a1461036b5780632b1eaf29146103a85780632eb2c2d6146103d2578063411c4442146103fa576101e1565b80630e89341c116101b55780630e89341c146102af5780631b2ef1ca146102eb5780632693ebf2146103075780632983c4b814610343576101e1565b8062fdd58e146101e557806301ffc9a7146102215780630442bfa81461025d57806306fdde0314610285575b5f80fd5b3480156101f0575f80fd5b5061020b60048036038101906102069190612a51565b610780565b6040516102189190612a9e565b60405180910390f35b34801561022c575f80fd5b5061024760048036038101906102429190612b0c565b6107d5565b6040516102549190612b51565b60405180910390f35b348015610268575f80fd5b50610283600480360381019061027e9190612b6a565b61084e565b005b348015610290575f80fd5b506102996108f8565b6040516102a69190612c18565b60405180910390f35b3480156102ba575f80fd5b506102d560048036038101906102d09190612c38565b610984565b6040516102e29190612c18565b60405180910390f35b61030560048036038101906103009190612b6a565b610c1a565b005b348015610312575f80fd5b5061032d60048036038101906103289190612c38565b610ecc565b60405161033a9190612a9e565b60405180910390f35b34801561034e575f80fd5b5061036960048036038101906103649190612c63565b610f35565b005b348015610376575f80fd5b50610391600480360381019061038c9190612b6a565b610fee565b60405161039f929190612c9d565b60405180910390f35b3480156103b3575f80fd5b506103bc61110d565b6040516103c99190612cc4565b60405180910390f35b3480156103dd575f80fd5b506103f860048036038101906103f39190612ecd565b611132565b005b348015610405575f80fd5b50610420600480360381019061041b9190612fd9565b6111d9565b005b34801561042d575f80fd5b50610436611350565b6040516104439190612cc4565b60405180910390f35b348015610457575f80fd5b50610472600480360381019061046d91906130d7565b611375565b60405161047f9190613204565b60405180910390f35b348015610493575f80fd5b506104ae60048036038101906104a991906132c2565b61147c565b005b3480156104bb575f80fd5b506104d660048036038101906104d19190612c38565b61152e565b6040516104e39190612a9e565b60405180910390f35b3480156104f7575f80fd5b50610500611543565b005b34801561050d575f80fd5b50610516611556565b604051610523919061332b565b60405180910390f35b348015610537575f80fd5b50610540611574565b60405161054d9190612cc4565b60405180910390f35b348015610561575f80fd5b5061056a61159c565b6040516105779190612c18565b60405180910390f35b34801561058b575f80fd5b50610594611628565b6040516105a19190612a9e565b60405180910390f35b3480156105b5575f80fd5b506105d060048036038101906105cb919061336e565b61162d565b005b3480156105dd575f80fd5b506105e6611643565b6040516105f39190612a9e565b60405180910390f35b348015610607575f80fd5b50610622600480360381019061061d91906133ac565b611648565b005b34801561062f575f80fd5b506106386116a3565b6040516106459190612a9e565b60405180910390f35b348015610659575f80fd5b506106626116a8565b60405161066f9190612b51565b60405180910390f35b348015610683575f80fd5b5061068c6116bd565b6040516106999190612c18565b60405180910390f35b3480156106ad575f80fd5b506106c860048036038101906106c391906133d7565b61174d565b6040516106d59190612b51565b60405180910390f35b3480156106e9575f80fd5b5061070460048036038101906106ff9190613415565b6117db565b005b348015610711575f80fd5b5061072c60048036038101906107279190612c63565b611882565b005b348015610739575f80fd5b50610742611906565b60405161074f9190612b51565b60405180910390f35b348015610763575f80fd5b5061077e600480360381019061077991906134a8565b611918565b005b5f805f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084757506108468261196a565b5b9050919050565b610856611a4b565b5f821180156108665750600b8211155b6108a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089c90613539565b60405180910390fd5b8060095f8481526020019081526020015f20819055507f2e1c9e000c6e8dda4d03536adb13b7cb6034ccff90d17f01de381e4d5097b52582826040516108ec929190613557565b60405180910390a15050565b60058054610905906135ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610931906135ab565b801561097c5780601f106109535761010080835404028352916020019161097c565b820191905f5260205f20905b81548152906001019060200180831161095f57829003601f168201915b505050505081565b60605f821180156109965750600b8211155b6109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90613625565b60405180910390fd5b5f60075f8481526020019081526020015f2080546109f2906135ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1e906135ab565b8015610a695780601f10610a4057610100808354040283529160200191610a69565b820191905f5260205f20905b815481529060010190602001808311610a4c57829003601f168201915b505050505090505f815103610a8f5760405180602001604052805f815250915050610c15565b5f8190506004815110158015610ae75750606960f81b815f81518110610ab857610ab7613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8015610b365750607060f81b81600181518110610b0757610b06613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8015610b855750606660f81b81600281518110610b5657610b55613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8015610bd45750607360f81b81600381518110610ba557610ba4613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610be3578192505050610c15565b5f610bed82611ad2565b905080604051602001610c0091906136f4565b60405160208183030381529060405293505050505b919050565b610c22611c3f565b5f82118015610c325750600b8211155b610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6890613539565b60405180910390fd5b5f8111610cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610caa9061375f565b60405180910390fd5b60018114610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906137ed565b60405180910390fd5b60018203610d5157600d5f9054906101000a900460ff16610d4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d439061387b565b60405180910390fd5b610db2565b600581600a5f8581526020019081526020015f2054610d7091906138c6565b1115610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da890613969565b60405180910390fd5b5b8060095f8481526020019081526020015f2054610dcf9190613987565b341015610e11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0890613a12565b60405180910390fd5b610e2b33838360405180602001604052805f815250611c8e565b80600a5f8481526020019081526020015f205f828254610e4b91906138c6565b925050819055505f341115610ec057600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3490811502906040515f60405180830381858888f19350505050158015610ebe573d5f803e3d5ffd5b505b610ec8611d23565b5050565b5f8082118015610edd5750600b8211155b610f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1390613539565b60405180910390fd5b600a5f8381526020019081526020015f20549050919050565b610f3d611a4b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa290613a7a565b60405180910390fd5b80600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f841180156110005750600b8411155b61103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103690613539565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff16600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361109e575f8091509150611106565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710600c60149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856110f79190613987565b6111019190613ac5565b915091505b9250929050565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f61113b611d2d565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611180575061117e868261174d565b155b156111c45780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016111bb929190613af5565b60405180910390fd5b6111d18686868686611d34565b505050505050565b6111e1611a4b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361124f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124690613b66565b60405180910390fd5b612710816bffffffffffffffffffffffff1611156112a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129990613bce565b60405180910390fd5b81600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055507fae1d656a1268648b04ffa79c1416f05879338ae295aae3234d8db217356a1c628282604051611344929190613bec565b60405180910390a15050565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606081518351146113c157815183516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016113b8929190613557565b60405180910390fd5b5f835167ffffffffffffffff8111156113dd576113dc612ce1565b5b60405190808252806020026020018201604052801561140b5781602001602082028036833780820191505090505b5090505f5b84518110156114715761144761142f8287611e2890919063ffffffff16565b6114428387611e3b90919063ffffffff16565b610780565b82828151811061145a57611459613643565b5b602002602001018181525050806001019050611410565b508091505092915050565b611484611a4b565b5f821180156114945750600b8211155b6114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca90613539565b60405180910390fd5b8060075f8481526020019081526020015f2090816114f19190613db0565b50817f496b10ce76f6fec5b06f5b35ff1292ff082ed36b04586ca00785bc2e444a83a6826040516115229190612c18565b60405180910390a25050565b6009602052805f5260405f205f915090505481565b61154b611a4b565b6115545f611e4e565b565b600c60149054906101000a90046bffffffffffffffffffffffff1681565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600680546115a9906135ab565b80601f01602080910402602001604051908101604052809291908181526020018280546115d5906135ab565b80156116205780601f106115f757610100808354040283529160200191611620565b820191905f5260205f20905b81548152906001019060200180831161160357829003601f168201915b505050505081565b600581565b61163f611638611d2d565b8383611f11565b5050565b600b81565b611650611a4b565b80600d5f6101000a81548160ff0219169083151502179055507fc70f1ae38bf6852351c66b69522543f346ca5b2f6fdbdc0a319ce939308e110e816040516116989190612b51565b60405180910390a150565b600181565b5f600d5f9054906101000a900460ff16905090565b6060600880546116cc906135ab565b80601f01602080910402602001604051908101604052809291908181526020018280546116f8906135ab565b80156117435780601f1061171a57610100808354040283529160200191611743565b820191905f5260205f20905b81548152906001019060200180831161172657829003601f168201915b5050505050905090565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f6117e4611d2d565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156118295750611827868261174d565b155b1561186d5780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611864929190613af5565b60405180910390fd5b61187a868686868661207a565b505050505050565b61188a611a4b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118fa575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016118f19190612cc4565b60405180910390fd5b61190381611e4e565b50565b600d5f9054906101000a900460ff1681565b611920611a4b565b806008908161192f9190613db0565b507f4bad971e573541e528d22030efb9d17c582463e49e6d0f0f0b26c9a7fd291ccd8160405161195f9190612c18565b60405180910390a150565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a3457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a445750611a4382612180565b5b9050919050565b611a53611d2d565b73ffffffffffffffffffffffffffffffffffffffff16611a71611574565b73ffffffffffffffffffffffffffffffffffffffff1614611ad057611a94611d2d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611ac79190612cc4565b60405180910390fd5b565b60605f825103611af25760405180602001604052805f8152509050611c3a565b5f6040518060600160405280604081526020016140af6040913990505f600360028551611b1f91906138c6565b611b299190613ac5565b6004611b359190613987565b67ffffffffffffffff811115611b4e57611b4d612ce1565b5b6040519080825280601f01601f191660200182016040528015611b805781602001600182028036833780820191505090505b509050600182016020820185865187016020810180515f82525b82841015611bf5576003840193508351603f8160121c168701518653600186019550603f81600c1c168701518653600186019550603f8160061c168701518653600186019550603f8116870151865360018601955050611b9a565b80825260038a510660018114611c125760028114611c2557611c2d565b603d6001870353603d6002870353611c2d565b603d60018703535b5050505050505080925050505b919050565b600260045403611c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7b90613ec9565b60405180910390fd5b6002600481905550565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611cfe575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611cf59190612cc4565b60405180910390fd5b5f80611d0a85856121e9565b91509150611d1b5f87848487612219565b505050505050565b6001600481905550565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611da4575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611d9b9190612cc4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611e14575f6040517f01a83514000000000000000000000000000000000000000000000000000000008152600401611e0b9190612cc4565b60405180910390fd5b611e218585858585612219565b5050505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f81575f6040517fced3e100000000000000000000000000000000000000000000000000000000008152600401611f789190612cc4565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161206d9190612b51565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036120ea575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016120e19190612cc4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361215a575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016121519190612cc4565b60405180910390fd5b5f8061216685856121e9565b915091506121778787848487612219565b50505050505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b612225858585856122c5565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146122be575f612261611d2d565b905060018451036122ad575f6122805f86611e3b90919063ffffffff16565b90505f6122965f86611e3b90919063ffffffff16565b90506122a6838989858589612655565b50506122bc565b6122bb818787878787612804565b5b505b5050505050565b805182511461230f57815181516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401612306929190613557565b60405180910390fd5b5f612318611d2d565b90505f5b8351811015612514575f6123398286611e3b90919063ffffffff16565b90505f61234f8386611e3b90919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff1614612472575f805f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561241e57888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016124159493929190613ee7565b60405180910390fd5b8181035f808581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461250757805f808481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546124ff91906138c6565b925050819055505b505080600101905061231c565b5060018351036125cf575f6125325f85611e3b90919063ffffffff16565b90505f6125485f85611e3b90919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516125c0929190613557565b60405180910390a4505061264e565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612645929190613f2a565b60405180910390a45b5050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b11156127fc578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016126b5959493929190613fb1565b6020604051808303815f875af19250505080156126f057506040513d601f19601f820116820180604052508101906126ed919061401d565b60015b612771573d805f811461271e576040519150601f19603f3d011682016040523d82523d5f602084013e612723565b606091505b505f81510361276957846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016127609190612cc4565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146127fa57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016127f19190612cc4565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b11156129ab578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612864959493929190614048565b6020604051808303815f875af192505050801561289f57506040513d601f19601f8201168201806040525081019061289c919061401d565b60015b612920573d805f81146128cd576040519150601f19603f3d011682016040523d82523d5f602084013e6128d2565b606091505b505f81510361291857846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161290f9190612cc4565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146129a957846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129a09190612cc4565b60405180910390fd5b505b505050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6129ed826129c4565b9050919050565b6129fd816129e3565b8114612a07575f80fd5b50565b5f81359050612a18816129f4565b92915050565b5f819050919050565b612a3081612a1e565b8114612a3a575f80fd5b50565b5f81359050612a4b81612a27565b92915050565b5f8060408385031215612a6757612a666129bc565b5b5f612a7485828601612a0a565b9250506020612a8585828601612a3d565b9150509250929050565b612a9881612a1e565b82525050565b5f602082019050612ab15f830184612a8f565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612aeb81612ab7565b8114612af5575f80fd5b50565b5f81359050612b0681612ae2565b92915050565b5f60208284031215612b2157612b206129bc565b5b5f612b2e84828501612af8565b91505092915050565b5f8115159050919050565b612b4b81612b37565b82525050565b5f602082019050612b645f830184612b42565b92915050565b5f8060408385031215612b8057612b7f6129bc565b5b5f612b8d85828601612a3d565b9250506020612b9e85828601612a3d565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612bea82612ba8565b612bf48185612bb2565b9350612c04818560208601612bc2565b612c0d81612bd0565b840191505092915050565b5f6020820190508181035f830152612c308184612be0565b905092915050565b5f60208284031215612c4d57612c4c6129bc565b5b5f612c5a84828501612a3d565b91505092915050565b5f60208284031215612c7857612c776129bc565b5b5f612c8584828501612a0a565b91505092915050565b612c97816129e3565b82525050565b5f604082019050612cb05f830185612c8e565b612cbd6020830184612a8f565b9392505050565b5f602082019050612cd75f830184612c8e565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612d1782612bd0565b810181811067ffffffffffffffff82111715612d3657612d35612ce1565b5b80604052505050565b5f612d486129b3565b9050612d548282612d0e565b919050565b5f67ffffffffffffffff821115612d7357612d72612ce1565b5b602082029050602081019050919050565b5f80fd5b5f612d9a612d9584612d59565b612d3f565b90508083825260208201905060208402830185811115612dbd57612dbc612d84565b5b835b81811015612de65780612dd28882612a3d565b845260208401935050602081019050612dbf565b5050509392505050565b5f82601f830112612e0457612e03612cdd565b5b8135612e14848260208601612d88565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115612e3b57612e3a612ce1565b5b612e4482612bd0565b9050602081019050919050565b828183375f83830152505050565b5f612e71612e6c84612e21565b612d3f565b905082815260208101848484011115612e8d57612e8c612e1d565b5b612e98848285612e51565b509392505050565b5f82601f830112612eb457612eb3612cdd565b5b8135612ec4848260208601612e5f565b91505092915050565b5f805f805f60a08688031215612ee657612ee56129bc565b5b5f612ef388828901612a0a565b9550506020612f0488828901612a0a565b945050604086013567ffffffffffffffff811115612f2557612f246129c0565b5b612f3188828901612df0565b935050606086013567ffffffffffffffff811115612f5257612f516129c0565b5b612f5e88828901612df0565b925050608086013567ffffffffffffffff811115612f7f57612f7e6129c0565b5b612f8b88828901612ea0565b9150509295509295909350565b5f6bffffffffffffffffffffffff82169050919050565b612fb881612f98565b8114612fc2575f80fd5b50565b5f81359050612fd381612faf565b92915050565b5f8060408385031215612fef57612fee6129bc565b5b5f612ffc85828601612a0a565b925050602061300d85828601612fc5565b9150509250929050565b5f67ffffffffffffffff82111561303157613030612ce1565b5b602082029050602081019050919050565b5f61305461304f84613017565b612d3f565b9050808382526020820190506020840283018581111561307757613076612d84565b5b835b818110156130a0578061308c8882612a0a565b845260208401935050602081019050613079565b5050509392505050565b5f82601f8301126130be576130bd612cdd565b5b81356130ce848260208601613042565b91505092915050565b5f80604083850312156130ed576130ec6129bc565b5b5f83013567ffffffffffffffff81111561310a576131096129c0565b5b613116858286016130aa565b925050602083013567ffffffffffffffff811115613137576131366129c0565b5b61314385828601612df0565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61317f81612a1e565b82525050565b5f6131908383613176565b60208301905092915050565b5f602082019050919050565b5f6131b28261314d565b6131bc8185613157565b93506131c783613167565b805f5b838110156131f75781516131de8882613185565b97506131e98361319c565b9250506001810190506131ca565b5085935050505092915050565b5f6020820190508181035f83015261321c81846131a8565b905092915050565b5f67ffffffffffffffff82111561323e5761323d612ce1565b5b61324782612bd0565b9050602081019050919050565b5f61326661326184613224565b612d3f565b90508281526020810184848401111561328257613281612e1d565b5b61328d848285612e51565b509392505050565b5f82601f8301126132a9576132a8612cdd565b5b81356132b9848260208601613254565b91505092915050565b5f80604083850312156132d8576132d76129bc565b5b5f6132e585828601612a3d565b925050602083013567ffffffffffffffff811115613306576133056129c0565b5b61331285828601613295565b9150509250929050565b61332581612f98565b82525050565b5f60208201905061333e5f83018461331c565b92915050565b61334d81612b37565b8114613357575f80fd5b50565b5f8135905061336881613344565b92915050565b5f8060408385031215613384576133836129bc565b5b5f61339185828601612a0a565b92505060206133a28582860161335a565b9150509250929050565b5f602082840312156133c1576133c06129bc565b5b5f6133ce8482850161335a565b91505092915050565b5f80604083850312156133ed576133ec6129bc565b5b5f6133fa85828601612a0a565b925050602061340b85828601612a0a565b9150509250929050565b5f805f805f60a0868803121561342e5761342d6129bc565b5b5f61343b88828901612a0a565b955050602061344c88828901612a0a565b945050604061345d88828901612a3d565b935050606061346e88828901612a3d565b925050608086013567ffffffffffffffff81111561348f5761348e6129c0565b5b61349b88828901612ea0565b9150509295509295909350565b5f602082840312156134bd576134bc6129bc565b5b5f82013567ffffffffffffffff8111156134da576134d96129c0565b5b6134e684828501613295565b91505092915050565b7f496e76616c696420746f6b656e204944000000000000000000000000000000005f82015250565b5f613523601083612bb2565b915061352e826134ef565b602082019050919050565b5f6020820190508181035f83015261355081613517565b9050919050565b5f60408201905061356a5f830185612a8f565b6135776020830184612a8f565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806135c257607f821691505b6020821081036135d5576135d461357e565b5b50919050565b7f546f6b656e20494420646f6573206e6f742065786973740000000000000000005f82015250565b5f61360f601783612bb2565b915061361a826135db565b602082019050919050565b5f6020820190508181035f83015261363c81613603565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f6136ae601d83613670565b91506136b98261367a565b601d82019050919050565b5f6136ce82612ba8565b6136d88185613670565b93506136e8818560208601612bc2565b80840191505092915050565b5f6136fe826136a2565b915061370a82846136c4565b915081905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e20300000005f82015250565b5f613749601d83612bb2565b915061375482613715565b602082019050919050565b5f6020820190508181035f8301526137768161373d565b9050919050565b7f416d6f756e74206d757374206265203120706572206d696e74207472616e73615f8201527f6374696f6e000000000000000000000000000000000000000000000000000000602082015250565b5f6137d7602583612bb2565b91506137e28261377d565b604082019050919050565b5f6020820190508181035f830152613804816137cb565b9050919050565b7f4f70656e20746f6b656e206d696e74696e672069732063757272656e746c79205f8201527f64697361626c6564000000000000000000000000000000000000000000000000602082015250565b5f613865602883612bb2565b91506138708261380b565b604082019050919050565b5f6020820190508181035f83015261389281613859565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6138d082612a1e565b91506138db83612a1e565b92508282019050808211156138f3576138f2613899565b5b92915050565b7f45786365656473206d617820737570706c7920666f72207468697320746f6b655f8201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b5f613953602183612bb2565b915061395e826138f9565b604082019050919050565b5f6020820190508181035f83015261398081613947565b9050919050565b5f61399182612a1e565b915061399c83612a1e565b92508282026139aa81612a1e565b915082820484148315176139c1576139c0613899565b5b5092915050565b7f496e73756666696369656e74207061796d656e740000000000000000000000005f82015250565b5f6139fc601483612bb2565b9150613a07826139c8565b602082019050919050565b5f6020820190508181035f830152613a29816139f0565b9050919050565b7f496e76616c6964206164647265737300000000000000000000000000000000005f82015250565b5f613a64600f83612bb2565b9150613a6f82613a30565b602082019050919050565b5f6020820190508181035f830152613a9181613a58565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613acf82612a1e565b9150613ada83612a1e565b925082613aea57613ae9613a98565b5b828204905092915050565b5f604082019050613b085f830185612c8e565b613b156020830184612c8e565b9392505050565b7f496e76616c696420726f79616c747920726563697069656e74000000000000005f82015250565b5f613b50601983612bb2565b9150613b5b82613b1c565b602082019050919050565b5f6020820190508181035f830152613b7d81613b44565b9050919050565b7f526f79616c74792070657263656e7461676520746f6f206869676800000000005f82015250565b5f613bb8601b83612bb2565b9150613bc382613b84565b602082019050919050565b5f6020820190508181035f830152613be581613bac565b9050919050565b5f604082019050613bff5f830185612c8e565b613c0c602083018461331c565b9392505050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613c6f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c34565b613c798683613c34565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613cb4613caf613caa84612a1e565b613c91565b612a1e565b9050919050565b5f819050919050565b613ccd83613c9a565b613ce1613cd982613cbb565b848454613c40565b825550505050565b5f90565b613cf5613ce9565b613d00818484613cc4565b505050565b5b81811015613d2357613d185f82613ced565b600181019050613d06565b5050565b601f821115613d6857613d3981613c13565b613d4284613c25565b81016020851015613d51578190505b613d65613d5d85613c25565b830182613d05565b50505b505050565b5f82821c905092915050565b5f613d885f1984600802613d6d565b1980831691505092915050565b5f613da08383613d79565b9150826002028217905092915050565b613db982612ba8565b67ffffffffffffffff811115613dd257613dd1612ce1565b5b613ddc82546135ab565b613de7828285613d27565b5f60209050601f831160018114613e18575f8415613e06578287015190505b613e108582613d95565b865550613e77565b601f198416613e2686613c13565b5f5b82811015613e4d57848901518255600182019150602085019450602081019050613e28565b86831015613e6a5784890151613e66601f891682613d79565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f613eb3601f83612bb2565b9150613ebe82613e7f565b602082019050919050565b5f6020820190508181035f830152613ee081613ea7565b9050919050565b5f608082019050613efa5f830187612c8e565b613f076020830186612a8f565b613f146040830185612a8f565b613f216060830184612a8f565b95945050505050565b5f6040820190508181035f830152613f4281856131a8565b90508181036020830152613f5681846131a8565b90509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f613f8382613f5f565b613f8d8185613f69565b9350613f9d818560208601612bc2565b613fa681612bd0565b840191505092915050565b5f60a082019050613fc45f830188612c8e565b613fd16020830187612c8e565b613fde6040830186612a8f565b613feb6060830185612a8f565b8181036080830152613ffd8184613f79565b90509695505050505050565b5f8151905061401781612ae2565b92915050565b5f60208284031215614032576140316129bc565b5b5f61403f84828501614009565b91505092915050565b5f60a08201905061405b5f830188612c8e565b6140686020830187612c8e565b818103604083015261407a81866131a8565b9050818103606083015261408e81856131a8565b905081810360808301526140a28184613f79565b9050969550505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220329d4d23e0e497108e6653db84a5e5829f8b29cc763d6388d471c832b9ecd7d764736f6c634300081a0033427265616b696e6720436861696e733a2041727420666f722074686520526562656c20536f756c73697066733a2f2f516d4e754865745a614276416d456550555264314c6231437a646764734c644137337331515a354356646b527750
Deployed Bytecode
0x6080604052600436106101e1575f3560e01c8063715018a611610101578063de6811b811610094578063f242432a11610063578063f242432a146106de578063f2fde38b14610706578063f812d2301461072e578063fce5503714610758576101e1565b8063de6811b814610624578063dfaab5a11461064e578063e8a3d48514610678578063e985e9c5146106a2576101e1565b80639b253388116100d05780639b25338814610580578063a22cb465146105aa578063c6caf75b146105d2578063dc3a2e1d146105fc576101e1565b8063715018a6146104ec5780638a71bb2d146105025780638da5cb5b1461052c57806395d89b4114610556576101e1565b80632a55205a116101795780634c00de82116101485780634c00de82146104225780634e1273f41461044c578063510ef1de146104885780636187b33e146104b0576101e1565b80632a55205a1461036b5780632b1eaf29146103a85780632eb2c2d6146103d2578063411c4442146103fa576101e1565b80630e89341c116101b55780630e89341c146102af5780631b2ef1ca146102eb5780632693ebf2146103075780632983c4b814610343576101e1565b8062fdd58e146101e557806301ffc9a7146102215780630442bfa81461025d57806306fdde0314610285575b5f80fd5b3480156101f0575f80fd5b5061020b60048036038101906102069190612a51565b610780565b6040516102189190612a9e565b60405180910390f35b34801561022c575f80fd5b5061024760048036038101906102429190612b0c565b6107d5565b6040516102549190612b51565b60405180910390f35b348015610268575f80fd5b50610283600480360381019061027e9190612b6a565b61084e565b005b348015610290575f80fd5b506102996108f8565b6040516102a69190612c18565b60405180910390f35b3480156102ba575f80fd5b506102d560048036038101906102d09190612c38565b610984565b6040516102e29190612c18565b60405180910390f35b61030560048036038101906103009190612b6a565b610c1a565b005b348015610312575f80fd5b5061032d60048036038101906103289190612c38565b610ecc565b60405161033a9190612a9e565b60405180910390f35b34801561034e575f80fd5b5061036960048036038101906103649190612c63565b610f35565b005b348015610376575f80fd5b50610391600480360381019061038c9190612b6a565b610fee565b60405161039f929190612c9d565b60405180910390f35b3480156103b3575f80fd5b506103bc61110d565b6040516103c99190612cc4565b60405180910390f35b3480156103dd575f80fd5b506103f860048036038101906103f39190612ecd565b611132565b005b348015610405575f80fd5b50610420600480360381019061041b9190612fd9565b6111d9565b005b34801561042d575f80fd5b50610436611350565b6040516104439190612cc4565b60405180910390f35b348015610457575f80fd5b50610472600480360381019061046d91906130d7565b611375565b60405161047f9190613204565b60405180910390f35b348015610493575f80fd5b506104ae60048036038101906104a991906132c2565b61147c565b005b3480156104bb575f80fd5b506104d660048036038101906104d19190612c38565b61152e565b6040516104e39190612a9e565b60405180910390f35b3480156104f7575f80fd5b50610500611543565b005b34801561050d575f80fd5b50610516611556565b604051610523919061332b565b60405180910390f35b348015610537575f80fd5b50610540611574565b60405161054d9190612cc4565b60405180910390f35b348015610561575f80fd5b5061056a61159c565b6040516105779190612c18565b60405180910390f35b34801561058b575f80fd5b50610594611628565b6040516105a19190612a9e565b60405180910390f35b3480156105b5575f80fd5b506105d060048036038101906105cb919061336e565b61162d565b005b3480156105dd575f80fd5b506105e6611643565b6040516105f39190612a9e565b60405180910390f35b348015610607575f80fd5b50610622600480360381019061061d91906133ac565b611648565b005b34801561062f575f80fd5b506106386116a3565b6040516106459190612a9e565b60405180910390f35b348015610659575f80fd5b506106626116a8565b60405161066f9190612b51565b60405180910390f35b348015610683575f80fd5b5061068c6116bd565b6040516106999190612c18565b60405180910390f35b3480156106ad575f80fd5b506106c860048036038101906106c391906133d7565b61174d565b6040516106d59190612b51565b60405180910390f35b3480156106e9575f80fd5b5061070460048036038101906106ff9190613415565b6117db565b005b348015610711575f80fd5b5061072c60048036038101906107279190612c63565b611882565b005b348015610739575f80fd5b50610742611906565b60405161074f9190612b51565b60405180910390f35b348015610763575f80fd5b5061077e600480360381019061077991906134a8565b611918565b005b5f805f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084757506108468261196a565b5b9050919050565b610856611a4b565b5f821180156108665750600b8211155b6108a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089c90613539565b60405180910390fd5b8060095f8481526020019081526020015f20819055507f2e1c9e000c6e8dda4d03536adb13b7cb6034ccff90d17f01de381e4d5097b52582826040516108ec929190613557565b60405180910390a15050565b60058054610905906135ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610931906135ab565b801561097c5780601f106109535761010080835404028352916020019161097c565b820191905f5260205f20905b81548152906001019060200180831161095f57829003601f168201915b505050505081565b60605f821180156109965750600b8211155b6109d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cc90613625565b60405180910390fd5b5f60075f8481526020019081526020015f2080546109f2906135ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1e906135ab565b8015610a695780601f10610a4057610100808354040283529160200191610a69565b820191905f5260205f20905b815481529060010190602001808311610a4c57829003601f168201915b505050505090505f815103610a8f5760405180602001604052805f815250915050610c15565b5f8190506004815110158015610ae75750606960f81b815f81518110610ab857610ab7613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8015610b365750607060f81b81600181518110610b0757610b06613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8015610b855750606660f81b81600281518110610b5657610b55613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8015610bd45750607360f81b81600381518110610ba557610ba4613643565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610be3578192505050610c15565b5f610bed82611ad2565b905080604051602001610c0091906136f4565b60405160208183030381529060405293505050505b919050565b610c22611c3f565b5f82118015610c325750600b8211155b610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6890613539565b60405180910390fd5b5f8111610cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610caa9061375f565b60405180910390fd5b60018114610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906137ed565b60405180910390fd5b60018203610d5157600d5f9054906101000a900460ff16610d4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d439061387b565b60405180910390fd5b610db2565b600581600a5f8581526020019081526020015f2054610d7091906138c6565b1115610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da890613969565b60405180910390fd5b5b8060095f8481526020019081526020015f2054610dcf9190613987565b341015610e11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0890613a12565b60405180910390fd5b610e2b33838360405180602001604052805f815250611c8e565b80600a5f8481526020019081526020015f205f828254610e4b91906138c6565b925050819055505f341115610ec057600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3490811502906040515f60405180830381858888f19350505050158015610ebe573d5f803e3d5ffd5b505b610ec8611d23565b5050565b5f8082118015610edd5750600b8211155b610f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1390613539565b60405180910390fd5b600a5f8381526020019081526020015f20549050919050565b610f3d611a4b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa290613a7a565b60405180910390fd5b80600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f841180156110005750600b8411155b61103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103690613539565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff16600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361109e575f8091509150611106565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710600c60149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856110f79190613987565b6111019190613ac5565b915091505b9250929050565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f61113b611d2d565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015611180575061117e868261174d565b155b156111c45780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016111bb929190613af5565b60405180910390fd5b6111d18686868686611d34565b505050505050565b6111e1611a4b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361124f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124690613b66565b60405180910390fd5b612710816bffffffffffffffffffffffff1611156112a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129990613bce565b60405180910390fd5b81600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055507fae1d656a1268648b04ffa79c1416f05879338ae295aae3234d8db217356a1c628282604051611344929190613bec565b60405180910390a15050565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606081518351146113c157815183516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016113b8929190613557565b60405180910390fd5b5f835167ffffffffffffffff8111156113dd576113dc612ce1565b5b60405190808252806020026020018201604052801561140b5781602001602082028036833780820191505090505b5090505f5b84518110156114715761144761142f8287611e2890919063ffffffff16565b6114428387611e3b90919063ffffffff16565b610780565b82828151811061145a57611459613643565b5b602002602001018181525050806001019050611410565b508091505092915050565b611484611a4b565b5f821180156114945750600b8211155b6114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca90613539565b60405180910390fd5b8060075f8481526020019081526020015f2090816114f19190613db0565b50817f496b10ce76f6fec5b06f5b35ff1292ff082ed36b04586ca00785bc2e444a83a6826040516115229190612c18565b60405180910390a25050565b6009602052805f5260405f205f915090505481565b61154b611a4b565b6115545f611e4e565b565b600c60149054906101000a90046bffffffffffffffffffffffff1681565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600680546115a9906135ab565b80601f01602080910402602001604051908101604052809291908181526020018280546115d5906135ab565b80156116205780601f106115f757610100808354040283529160200191611620565b820191905f5260205f20905b81548152906001019060200180831161160357829003601f168201915b505050505081565b600581565b61163f611638611d2d565b8383611f11565b5050565b600b81565b611650611a4b565b80600d5f6101000a81548160ff0219169083151502179055507fc70f1ae38bf6852351c66b69522543f346ca5b2f6fdbdc0a319ce939308e110e816040516116989190612b51565b60405180910390a150565b600181565b5f600d5f9054906101000a900460ff16905090565b6060600880546116cc906135ab565b80601f01602080910402602001604051908101604052809291908181526020018280546116f8906135ab565b80156117435780601f1061171a57610100808354040283529160200191611743565b820191905f5260205f20905b81548152906001019060200180831161172657829003601f168201915b5050505050905090565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f6117e4611d2d565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156118295750611827868261174d565b155b1561186d5780866040517fe237d922000000000000000000000000000000000000000000000000000000008152600401611864929190613af5565b60405180910390fd5b61187a868686868661207a565b505050505050565b61188a611a4b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118fa575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016118f19190612cc4565b60405180910390fd5b61190381611e4e565b50565b600d5f9054906101000a900460ff1681565b611920611a4b565b806008908161192f9190613db0565b507f4bad971e573541e528d22030efb9d17c582463e49e6d0f0f0b26c9a7fd291ccd8160405161195f9190612c18565b60405180910390a150565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a3457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a445750611a4382612180565b5b9050919050565b611a53611d2d565b73ffffffffffffffffffffffffffffffffffffffff16611a71611574565b73ffffffffffffffffffffffffffffffffffffffff1614611ad057611a94611d2d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611ac79190612cc4565b60405180910390fd5b565b60605f825103611af25760405180602001604052805f8152509050611c3a565b5f6040518060600160405280604081526020016140af6040913990505f600360028551611b1f91906138c6565b611b299190613ac5565b6004611b359190613987565b67ffffffffffffffff811115611b4e57611b4d612ce1565b5b6040519080825280601f01601f191660200182016040528015611b805781602001600182028036833780820191505090505b509050600182016020820185865187016020810180515f82525b82841015611bf5576003840193508351603f8160121c168701518653600186019550603f81600c1c168701518653600186019550603f8160061c168701518653600186019550603f8116870151865360018601955050611b9a565b80825260038a510660018114611c125760028114611c2557611c2d565b603d6001870353603d6002870353611c2d565b603d60018703535b5050505050505080925050505b919050565b600260045403611c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7b90613ec9565b60405180910390fd5b6002600481905550565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611cfe575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611cf59190612cc4565b60405180910390fd5b5f80611d0a85856121e9565b91509150611d1b5f87848487612219565b505050505050565b6001600481905550565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611da4575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611d9b9190612cc4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611e14575f6040517f01a83514000000000000000000000000000000000000000000000000000000008152600401611e0b9190612cc4565b60405180910390fd5b611e218585858585612219565b5050505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f81575f6040517fced3e100000000000000000000000000000000000000000000000000000000008152600401611f789190612cc4565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161206d9190612b51565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036120ea575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016120e19190612cc4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361215a575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016121519190612cc4565b60405180910390fd5b5f8061216685856121e9565b915091506121778787848487612219565b50505050505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b612225858585856122c5565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146122be575f612261611d2d565b905060018451036122ad575f6122805f86611e3b90919063ffffffff16565b90505f6122965f86611e3b90919063ffffffff16565b90506122a6838989858589612655565b50506122bc565b6122bb818787878787612804565b5b505b5050505050565b805182511461230f57815181516040517f5b059991000000000000000000000000000000000000000000000000000000008152600401612306929190613557565b60405180910390fd5b5f612318611d2d565b90505f5b8351811015612514575f6123398286611e3b90919063ffffffff16565b90505f61234f8386611e3b90919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff1614612472575f805f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561241e57888183856040517f03dee4c50000000000000000000000000000000000000000000000000000000081526004016124159493929190613ee7565b60405180910390fd5b8181035f808581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461250757805f808481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546124ff91906138c6565b925050819055505b505080600101905061231c565b5060018351036125cf575f6125325f85611e3b90919063ffffffff16565b90505f6125485f85611e3b90919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516125c0929190613557565b60405180910390a4505061264e565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612645929190613f2a565b60405180910390a45b5050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b11156127fc578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016126b5959493929190613fb1565b6020604051808303815f875af19250505080156126f057506040513d601f19601f820116820180604052508101906126ed919061401d565b60015b612771573d805f811461271e576040519150601f19603f3d011682016040523d82523d5f602084013e612723565b606091505b505f81510361276957846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016127609190612cc4565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146127fa57846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016127f19190612cc4565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b11156129ab578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612864959493929190614048565b6020604051808303815f875af192505050801561289f57506040513d601f19601f8201168201806040525081019061289c919061401d565b60015b612920573d805f81146128cd576040519150601f19603f3d011682016040523d82523d5f602084013e6128d2565b606091505b505f81510361291857846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161290f9190612cc4565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146129a957846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016129a09190612cc4565b60405180910390fd5b505b505050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6129ed826129c4565b9050919050565b6129fd816129e3565b8114612a07575f80fd5b50565b5f81359050612a18816129f4565b92915050565b5f819050919050565b612a3081612a1e565b8114612a3a575f80fd5b50565b5f81359050612a4b81612a27565b92915050565b5f8060408385031215612a6757612a666129bc565b5b5f612a7485828601612a0a565b9250506020612a8585828601612a3d565b9150509250929050565b612a9881612a1e565b82525050565b5f602082019050612ab15f830184612a8f565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612aeb81612ab7565b8114612af5575f80fd5b50565b5f81359050612b0681612ae2565b92915050565b5f60208284031215612b2157612b206129bc565b5b5f612b2e84828501612af8565b91505092915050565b5f8115159050919050565b612b4b81612b37565b82525050565b5f602082019050612b645f830184612b42565b92915050565b5f8060408385031215612b8057612b7f6129bc565b5b5f612b8d85828601612a3d565b9250506020612b9e85828601612a3d565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612bea82612ba8565b612bf48185612bb2565b9350612c04818560208601612bc2565b612c0d81612bd0565b840191505092915050565b5f6020820190508181035f830152612c308184612be0565b905092915050565b5f60208284031215612c4d57612c4c6129bc565b5b5f612c5a84828501612a3d565b91505092915050565b5f60208284031215612c7857612c776129bc565b5b5f612c8584828501612a0a565b91505092915050565b612c97816129e3565b82525050565b5f604082019050612cb05f830185612c8e565b612cbd6020830184612a8f565b9392505050565b5f602082019050612cd75f830184612c8e565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612d1782612bd0565b810181811067ffffffffffffffff82111715612d3657612d35612ce1565b5b80604052505050565b5f612d486129b3565b9050612d548282612d0e565b919050565b5f67ffffffffffffffff821115612d7357612d72612ce1565b5b602082029050602081019050919050565b5f80fd5b5f612d9a612d9584612d59565b612d3f565b90508083825260208201905060208402830185811115612dbd57612dbc612d84565b5b835b81811015612de65780612dd28882612a3d565b845260208401935050602081019050612dbf565b5050509392505050565b5f82601f830112612e0457612e03612cdd565b5b8135612e14848260208601612d88565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115612e3b57612e3a612ce1565b5b612e4482612bd0565b9050602081019050919050565b828183375f83830152505050565b5f612e71612e6c84612e21565b612d3f565b905082815260208101848484011115612e8d57612e8c612e1d565b5b612e98848285612e51565b509392505050565b5f82601f830112612eb457612eb3612cdd565b5b8135612ec4848260208601612e5f565b91505092915050565b5f805f805f60a08688031215612ee657612ee56129bc565b5b5f612ef388828901612a0a565b9550506020612f0488828901612a0a565b945050604086013567ffffffffffffffff811115612f2557612f246129c0565b5b612f3188828901612df0565b935050606086013567ffffffffffffffff811115612f5257612f516129c0565b5b612f5e88828901612df0565b925050608086013567ffffffffffffffff811115612f7f57612f7e6129c0565b5b612f8b88828901612ea0565b9150509295509295909350565b5f6bffffffffffffffffffffffff82169050919050565b612fb881612f98565b8114612fc2575f80fd5b50565b5f81359050612fd381612faf565b92915050565b5f8060408385031215612fef57612fee6129bc565b5b5f612ffc85828601612a0a565b925050602061300d85828601612fc5565b9150509250929050565b5f67ffffffffffffffff82111561303157613030612ce1565b5b602082029050602081019050919050565b5f61305461304f84613017565b612d3f565b9050808382526020820190506020840283018581111561307757613076612d84565b5b835b818110156130a0578061308c8882612a0a565b845260208401935050602081019050613079565b5050509392505050565b5f82601f8301126130be576130bd612cdd565b5b81356130ce848260208601613042565b91505092915050565b5f80604083850312156130ed576130ec6129bc565b5b5f83013567ffffffffffffffff81111561310a576131096129c0565b5b613116858286016130aa565b925050602083013567ffffffffffffffff811115613137576131366129c0565b5b61314385828601612df0565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61317f81612a1e565b82525050565b5f6131908383613176565b60208301905092915050565b5f602082019050919050565b5f6131b28261314d565b6131bc8185613157565b93506131c783613167565b805f5b838110156131f75781516131de8882613185565b97506131e98361319c565b9250506001810190506131ca565b5085935050505092915050565b5f6020820190508181035f83015261321c81846131a8565b905092915050565b5f67ffffffffffffffff82111561323e5761323d612ce1565b5b61324782612bd0565b9050602081019050919050565b5f61326661326184613224565b612d3f565b90508281526020810184848401111561328257613281612e1d565b5b61328d848285612e51565b509392505050565b5f82601f8301126132a9576132a8612cdd565b5b81356132b9848260208601613254565b91505092915050565b5f80604083850312156132d8576132d76129bc565b5b5f6132e585828601612a3d565b925050602083013567ffffffffffffffff811115613306576133056129c0565b5b61331285828601613295565b9150509250929050565b61332581612f98565b82525050565b5f60208201905061333e5f83018461331c565b92915050565b61334d81612b37565b8114613357575f80fd5b50565b5f8135905061336881613344565b92915050565b5f8060408385031215613384576133836129bc565b5b5f61339185828601612a0a565b92505060206133a28582860161335a565b9150509250929050565b5f602082840312156133c1576133c06129bc565b5b5f6133ce8482850161335a565b91505092915050565b5f80604083850312156133ed576133ec6129bc565b5b5f6133fa85828601612a0a565b925050602061340b85828601612a0a565b9150509250929050565b5f805f805f60a0868803121561342e5761342d6129bc565b5b5f61343b88828901612a0a565b955050602061344c88828901612a0a565b945050604061345d88828901612a3d565b935050606061346e88828901612a3d565b925050608086013567ffffffffffffffff81111561348f5761348e6129c0565b5b61349b88828901612ea0565b9150509295509295909350565b5f602082840312156134bd576134bc6129bc565b5b5f82013567ffffffffffffffff8111156134da576134d96129c0565b5b6134e684828501613295565b91505092915050565b7f496e76616c696420746f6b656e204944000000000000000000000000000000005f82015250565b5f613523601083612bb2565b915061352e826134ef565b602082019050919050565b5f6020820190508181035f83015261355081613517565b9050919050565b5f60408201905061356a5f830185612a8f565b6135776020830184612a8f565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806135c257607f821691505b6020821081036135d5576135d461357e565b5b50919050565b7f546f6b656e20494420646f6573206e6f742065786973740000000000000000005f82015250565b5f61360f601783612bb2565b915061361a826135db565b602082019050919050565b5f6020820190508181035f83015261363c81613603565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f6136ae601d83613670565b91506136b98261367a565b601d82019050919050565b5f6136ce82612ba8565b6136d88185613670565b93506136e8818560208601612bc2565b80840191505092915050565b5f6136fe826136a2565b915061370a82846136c4565b915081905092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e20300000005f82015250565b5f613749601d83612bb2565b915061375482613715565b602082019050919050565b5f6020820190508181035f8301526137768161373d565b9050919050565b7f416d6f756e74206d757374206265203120706572206d696e74207472616e73615f8201527f6374696f6e000000000000000000000000000000000000000000000000000000602082015250565b5f6137d7602583612bb2565b91506137e28261377d565b604082019050919050565b5f6020820190508181035f830152613804816137cb565b9050919050565b7f4f70656e20746f6b656e206d696e74696e672069732063757272656e746c79205f8201527f64697361626c6564000000000000000000000000000000000000000000000000602082015250565b5f613865602883612bb2565b91506138708261380b565b604082019050919050565b5f6020820190508181035f83015261389281613859565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6138d082612a1e565b91506138db83612a1e565b92508282019050808211156138f3576138f2613899565b5b92915050565b7f45786365656473206d617820737570706c7920666f72207468697320746f6b655f8201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b5f613953602183612bb2565b915061395e826138f9565b604082019050919050565b5f6020820190508181035f83015261398081613947565b9050919050565b5f61399182612a1e565b915061399c83612a1e565b92508282026139aa81612a1e565b915082820484148315176139c1576139c0613899565b5b5092915050565b7f496e73756666696369656e74207061796d656e740000000000000000000000005f82015250565b5f6139fc601483612bb2565b9150613a07826139c8565b602082019050919050565b5f6020820190508181035f830152613a29816139f0565b9050919050565b7f496e76616c6964206164647265737300000000000000000000000000000000005f82015250565b5f613a64600f83612bb2565b9150613a6f82613a30565b602082019050919050565b5f6020820190508181035f830152613a9181613a58565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613acf82612a1e565b9150613ada83612a1e565b925082613aea57613ae9613a98565b5b828204905092915050565b5f604082019050613b085f830185612c8e565b613b156020830184612c8e565b9392505050565b7f496e76616c696420726f79616c747920726563697069656e74000000000000005f82015250565b5f613b50601983612bb2565b9150613b5b82613b1c565b602082019050919050565b5f6020820190508181035f830152613b7d81613b44565b9050919050565b7f526f79616c74792070657263656e7461676520746f6f206869676800000000005f82015250565b5f613bb8601b83612bb2565b9150613bc382613b84565b602082019050919050565b5f6020820190508181035f830152613be581613bac565b9050919050565b5f604082019050613bff5f830185612c8e565b613c0c602083018461331c565b9392505050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613c6f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613c34565b613c798683613c34565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613cb4613caf613caa84612a1e565b613c91565b612a1e565b9050919050565b5f819050919050565b613ccd83613c9a565b613ce1613cd982613cbb565b848454613c40565b825550505050565b5f90565b613cf5613ce9565b613d00818484613cc4565b505050565b5b81811015613d2357613d185f82613ced565b600181019050613d06565b5050565b601f821115613d6857613d3981613c13565b613d4284613c25565b81016020851015613d51578190505b613d65613d5d85613c25565b830182613d05565b50505b505050565b5f82821c905092915050565b5f613d885f1984600802613d6d565b1980831691505092915050565b5f613da08383613d79565b9150826002028217905092915050565b613db982612ba8565b67ffffffffffffffff811115613dd257613dd1612ce1565b5b613ddc82546135ab565b613de7828285613d27565b5f60209050601f831160018114613e18575f8415613e06578287015190505b613e108582613d95565b865550613e77565b601f198416613e2686613c13565b5f5b82811015613e4d57848901518255600182019150602085019450602081019050613e28565b86831015613e6a5784890151613e66601f891682613d79565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f613eb3601f83612bb2565b9150613ebe82613e7f565b602082019050919050565b5f6020820190508181035f830152613ee081613ea7565b9050919050565b5f608082019050613efa5f830187612c8e565b613f076020830186612a8f565b613f146040830185612a8f565b613f216060830184612a8f565b95945050505050565b5f6040820190508181035f830152613f4281856131a8565b90508181036020830152613f5681846131a8565b90509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f613f8382613f5f565b613f8d8185613f69565b9350613f9d818560208601612bc2565b613fa681612bd0565b840191505092915050565b5f60a082019050613fc45f830188612c8e565b613fd16020830187612c8e565b613fde6040830186612a8f565b613feb6060830185612a8f565b8181036080830152613ffd8184613f79565b90509695505050505050565b5f8151905061401781612ae2565b92915050565b5f60208284031215614032576140316129bc565b5b5f61403f84828501614009565b91505092915050565b5f60a08201905061405b5f830188612c8e565b6140686020830187612c8e565b818103604083015261407a81866131a8565b9050818103606083015261408e81856131a8565b905081810360808301526140a28184613f79565b9050969550505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220329d4d23e0e497108e6653db84a5e5829f8b29cc763d6388d471c832b9ecd7d764736f6c634300081a0033
Loading...
Loading
Loading...
Loading
OVERVIEW
Breaking Chains is an NFT collection dedicated to all those who have felt or still feel stuck, who dream of freedom and have the courage to initiate change. It's more than just jpegs—it's art for rebel souls as a movement. It's our united journey to freedom.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.