ERC-1155
Overview
Max Total Supply
235
Holders
147
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PropHouseBuilders
Compiler Version
v0.8.21+commit.d9974bed
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.21; import {ERC1155} from '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol'; import {Strings} from '@openzeppelin/contracts/utils/Strings.sol'; contract PropHouseBuilders is ERC1155, Ownable { /// @notice The Prop House entrypoint contract address. address public immutable propHouse; /// @notice Populate the initial base URI, owner, and the Prop House contract address. constructor(address initialOwner, address propHouse_) ERC1155('ipfs://bafybeibus3mnpmm2kez6shxqvnawv4ixxfz2besdh3hug4j55p4ihkspgm/') Ownable(initialOwner) { propHouse = propHouse_; } /// @notice The IPFS URI of contract-level metadata. function contractURI() external pure returns (string memory) { return 'ipfs://bafkreihv6y4jrxfgp6tszuk432bua3tgqig3abx5s5np7yu4e45u2aaw2i'; } /// @notice Returns the metadata for the provided token id. function uri(uint256 id) public view override returns (string memory) { return string.concat(_baseURI, Strings.toString(id), '.json'); } /// @notice Override isApprovedForAll so users can use as a Prop House award without approving. function isApprovedForAll(address account, address operator) public view override returns (bool) { if (operator == propHouse) { return true; } return super.isApprovedForAll(account, operator); } /// @notice Updates the base URI. function setBaseURI(string memory newBaseURI) external onlyOwner { _setBaseURI(newBaseURI); } /// @notice Creates `amount` of tokens of type `id`, and assigns them to `to`. function mint(address to, uint256 id, uint256 amount) external onlyOwner { _mint(to, id, amount, ''); } /// @notice Creates `amounts` of tokens of type `ids`, and assigns them to `to`. function mintBatch(address to, uint256[] calldata ids, uint256[] calldata amounts) external onlyOwner { _mintBatch(to, ids, amounts, ''); } }
// 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 base URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string internal _baseURI; /** * @dev See {_setURI}. */ constructor(string memory baseURI_) { _setBaseURI(baseURI_); } /** * @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 _baseURI; } /** * @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 _setBaseURI(string memory newBaseURI) internal virtual { _baseURI = newBaseURI; } /** * @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.0) (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; } }
// 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.0) (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 a {TransferBatch} event. * * 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":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"propHouse_","type":"address"}],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"propHouse","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a060405234801562000010575f80fd5b506040516200331738038062003317833981810160405281019062000036919062000261565b81604051806080016040528060438152602001620032d46043913962000062816200012460201b60201c565b505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000d6575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000cd9190620002b7565b60405180910390fd5b620000e7816200013960201b60201c565b508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505050506200061a565b806002908162000135919062000536565b5050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200022b8262000200565b9050919050565b6200023d816200021f565b811462000248575f80fd5b50565b5f815190506200025b8162000232565b92915050565b5f80604083850312156200027a5762000279620001fc565b5b5f62000289858286016200024b565b92505060206200029c858286016200024b565b9150509250929050565b620002b1816200021f565b82525050565b5f602082019050620002cc5f830184620002a6565b92915050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200034e57607f821691505b60208210810362000364576200036362000309565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620003c87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200038b565b620003d486836200038b565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6200041e620004186200041284620003ec565b620003f5565b620003ec565b9050919050565b5f819050919050565b6200043983620003fe565b62000451620004488262000425565b84845462000397565b825550505050565b5f90565b6200046762000459565b620004748184846200042e565b505050565b5b818110156200049b576200048f5f826200045d565b6001810190506200047a565b5050565b601f821115620004ea57620004b4816200036a565b620004bf846200037c565b81016020851015620004cf578190505b620004e7620004de856200037c565b83018262000479565b50505b505050565b5f82821c905092915050565b5f6200050c5f1984600802620004ef565b1980831691505092915050565b5f620005268383620004fb565b9150826002028217905092915050565b6200054182620002d2565b67ffffffffffffffff8111156200055d576200055c620002dc565b5b62000569825462000336565b620005768282856200049f565b5f60209050601f831160018114620005ac575f841562000597578287015190505b620005a3858262000519565b86555062000612565b601f198416620005bc866200036a565b5f5b82811015620005e557848901518255600182019150602085019450602081019050620005be565b8683101562000605578489015162000601601f891682620004fb565b8355505b6001600288020188555050505b505050505050565b608051612c9a6200063a5f395f818161055301526107b30152612c9a5ff3fe608060405234801561000f575f80fd5b50600436106100fd575f3560e01c8063715018a611610095578063e8a3d48511610064578063e8a3d48514610293578063e985e9c5146102b1578063f242432a146102e1578063f2fde38b146102fd576100fd565b8063715018a6146102335780638da5cb5b1461023d578063a22cb4651461025b578063d81d0a1514610277576100fd565b80632eb2c2d6116100d15780632eb2c2d6146101ad5780633b8a83a6146101c95780634e1273f4146101e757806355f804b314610217576100fd565b8062fdd58e1461010157806301ffc9a7146101315780630e89341c14610161578063156e29f614610191575b5f80fd5b61011b60048036038101906101169190611ad0565b610319565b6040516101289190611b1d565b60405180910390f35b61014b60048036038101906101469190611b8b565b61036e565b6040516101589190611bd0565b60405180910390f35b61017b60048036038101906101769190611be9565b61044f565b6040516101889190611c9e565b60405180910390f35b6101ab60048036038101906101a69190611cbe565b610483565b005b6101c760048036038101906101c29190611efe565b6104aa565b005b6101d1610551565b6040516101de9190611fd8565b60405180910390f35b61020160048036038101906101fc91906120b1565b610575565b60405161020e91906121de565b60405180910390f35b610231600480360381019061022c919061229c565b610682565b005b61023b610696565b005b6102456106a9565b6040516102529190611fd8565b60405180910390f35b6102756004803603810190610270919061230d565b6106d1565b005b610291600480360381019061028c91906123a4565b6106e7565b005b61029b610790565b6040516102a89190611c9e565b60405180910390f35b6102cb60048036038101906102c69190612435565b6107b0565b6040516102d89190611bd0565b60405180910390f35b6102fb60048036038101906102f69190612473565b610820565b005b61031760048036038101906103129190612506565b6108c7565b005b5f805f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061043857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061044857506104478261094b565b5b9050919050565b6060600261045c836109b4565b60405160200161046d929190612680565b6040516020818303038152906040529050919050565b61048b610a7e565b6104a583838360405180602001604052805f815250610b05565b505050565b5f6104b3610b9a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156104f857506104f686826107b0565b155b1561053c5780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016105339291906126b2565b60405180910390fd5b6105498686868686610ba1565b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b606081518351146105c157815183516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016105b89291906126d9565b60405180910390fd5b5f835167ffffffffffffffff8111156105dd576105dc611d12565b5b60405190808252806020026020018201604052801561060b5781602001602082028036833780820191505090505b5090505f5b84518110156106775761064761062f8287610c9590919063ffffffff16565b6106428387610ca890919063ffffffff16565b610319565b82828151811061065a57610659612700565b5b602002602001018181525050806106709061275a565b9050610610565b508091505092915050565b61068a610a7e565b61069381610cbb565b50565b61069e610a7e565b6106a75f610cce565b565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106e36106dc610b9a565b8383610d91565b5050565b6106ef610a7e565b610789858585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050508484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505060405180602001604052805f815250610efa565b5050505050565b6060604051806080016040528060428152602001612c2360429139905090565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361080d576001905061081a565b6108178383610f7d565b90505b92915050565b5f610829610b9a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415801561086e575061086c86826107b0565b155b156108b25780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016108a99291906126b2565b60405180910390fd5b6108bf868686868661100b565b505050505050565b6108cf610a7e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361093f575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016109369190611fd8565b60405180910390fd5b61094881610cce565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60605f60016109c284611111565b0190505f8167ffffffffffffffff8111156109e0576109df611d12565b5b6040519080825280601f01601f191660200182016040528015610a125781602001600182028036833780820191505090505b5090505f82602001820190505b600115610a73578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610a6857610a676127a1565b5b0494505f8503610a1f575b819350505050919050565b610a86610b9a565b73ffffffffffffffffffffffffffffffffffffffff16610aa46106a9565b73ffffffffffffffffffffffffffffffffffffffff1614610b0357610ac7610b9a565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610afa9190611fd8565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610b75575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401610b6c9190611fd8565b60405180910390fd5b5f80610b818585611262565b91509150610b925f87848487611292565b505050505050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610c11575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401610c089190611fd8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c81575f6040517f01a83514000000000000000000000000000000000000000000000000000000008152600401610c789190611fd8565b60405180910390fd5b610c8e8585858585611292565b5050505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b8060029081610cca9190612959565b5050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e01575f6040517fced3e100000000000000000000000000000000000000000000000000000000008152600401610df89190611fd8565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610eed9190611bd0565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610f6a575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401610f619190611fd8565b60405180910390fd5b610f775f85858585611292565b50505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361107b575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016110729190611fd8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036110eb575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016110e29190611fd8565b60405180910390fd5b5f806110f78585611262565b915091506111088787848487611292565b50505050505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061116d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611163576111626127a1565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106111aa576d04ee2d6d415b85acef810000000083816111a05761119f6127a1565b5b0492506020810190505b662386f26fc1000083106111d957662386f26fc1000083816111cf576111ce6127a1565b5b0492506010810190505b6305f5e1008310611202576305f5e10083816111f8576111f76127a1565b5b0492506008810190505b612710831061122757612710838161121d5761121c6127a1565b5b0492506004810190505b6064831061124a57606483816112405761123f6127a1565b5b0492506002810190505b600a8310611259576001810190505b80915050919050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b61129e8585858561133e565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611337575f6112da610b9a565b90506001845103611326575f6112f95f86610ca890919063ffffffff16565b90505f61130f5f86610ca890919063ffffffff16565b905061131f8389898585896116d4565b5050611335565b611334818787878787611883565b5b505b5050505050565b805182511461138857815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161137f9291906126d9565b60405180910390fd5b5f611391610b9a565b90505f5b8351811015611593575f6113b28286610ca890919063ffffffff16565b90505f6113c88386610ca890919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146114eb575f805f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561149757888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161148e9493929190612a28565b60405180910390fd5b8181035f808581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461158057805f808481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546115789190612a6b565b925050819055505b50508061158c9061275a565b9050611395565b50600183510361164e575f6115b15f85610ca890919063ffffffff16565b90505f6115c75f85610ca890919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161163f9291906126d9565b60405180910390a450506116cd565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516116c4929190612a9e565b60405180910390a45b5050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b111561187b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611734959493929190612b25565b6020604051808303815f875af192505050801561176f57506040513d601f19601f8201168201806040525081019061176c9190612b91565b60015b6117f0573d805f811461179d576040519150601f19603f3d011682016040523d82523d5f602084013e6117a2565b606091505b505f8151036117e857846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016117df9190611fd8565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461187957846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016118709190611fd8565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115611a2a578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016118e3959493929190612bbc565b6020604051808303815f875af192505050801561191e57506040513d601f19601f8201168201806040525081019061191b9190612b91565b60015b61199f573d805f811461194c576040519150601f19603f3d011682016040523d82523d5f602084013e611951565b606091505b505f81510361199757846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161198e9190611fd8565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611a2857846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611a1f9190611fd8565b60405180910390fd5b505b505050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611a6c82611a43565b9050919050565b611a7c81611a62565b8114611a86575f80fd5b50565b5f81359050611a9781611a73565b92915050565b5f819050919050565b611aaf81611a9d565b8114611ab9575f80fd5b50565b5f81359050611aca81611aa6565b92915050565b5f8060408385031215611ae657611ae5611a3b565b5b5f611af385828601611a89565b9250506020611b0485828601611abc565b9150509250929050565b611b1781611a9d565b82525050565b5f602082019050611b305f830184611b0e565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b6a81611b36565b8114611b74575f80fd5b50565b5f81359050611b8581611b61565b92915050565b5f60208284031215611ba057611b9f611a3b565b5b5f611bad84828501611b77565b91505092915050565b5f8115159050919050565b611bca81611bb6565b82525050565b5f602082019050611be35f830184611bc1565b92915050565b5f60208284031215611bfe57611bfd611a3b565b5b5f611c0b84828501611abc565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611c4b578082015181840152602081019050611c30565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611c7082611c14565b611c7a8185611c1e565b9350611c8a818560208601611c2e565b611c9381611c56565b840191505092915050565b5f6020820190508181035f830152611cb68184611c66565b905092915050565b5f805f60608486031215611cd557611cd4611a3b565b5b5f611ce286828701611a89565b9350506020611cf386828701611abc565b9250506040611d0486828701611abc565b9150509250925092565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611d4882611c56565b810181811067ffffffffffffffff82111715611d6757611d66611d12565b5b80604052505050565b5f611d79611a32565b9050611d858282611d3f565b919050565b5f67ffffffffffffffff821115611da457611da3611d12565b5b602082029050602081019050919050565b5f80fd5b5f611dcb611dc684611d8a565b611d70565b90508083825260208201905060208402830185811115611dee57611ded611db5565b5b835b81811015611e175780611e038882611abc565b845260208401935050602081019050611df0565b5050509392505050565b5f82601f830112611e3557611e34611d0e565b5b8135611e45848260208601611db9565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115611e6c57611e6b611d12565b5b611e7582611c56565b9050602081019050919050565b828183375f83830152505050565b5f611ea2611e9d84611e52565b611d70565b905082815260208101848484011115611ebe57611ebd611e4e565b5b611ec9848285611e82565b509392505050565b5f82601f830112611ee557611ee4611d0e565b5b8135611ef5848260208601611e90565b91505092915050565b5f805f805f60a08688031215611f1757611f16611a3b565b5b5f611f2488828901611a89565b9550506020611f3588828901611a89565b945050604086013567ffffffffffffffff811115611f5657611f55611a3f565b5b611f6288828901611e21565b935050606086013567ffffffffffffffff811115611f8357611f82611a3f565b5b611f8f88828901611e21565b925050608086013567ffffffffffffffff811115611fb057611faf611a3f565b5b611fbc88828901611ed1565b9150509295509295909350565b611fd281611a62565b82525050565b5f602082019050611feb5f830184611fc9565b92915050565b5f67ffffffffffffffff82111561200b5761200a611d12565b5b602082029050602081019050919050565b5f61202e61202984611ff1565b611d70565b9050808382526020820190506020840283018581111561205157612050611db5565b5b835b8181101561207a57806120668882611a89565b845260208401935050602081019050612053565b5050509392505050565b5f82601f83011261209857612097611d0e565b5b81356120a884826020860161201c565b91505092915050565b5f80604083850312156120c7576120c6611a3b565b5b5f83013567ffffffffffffffff8111156120e4576120e3611a3f565b5b6120f085828601612084565b925050602083013567ffffffffffffffff81111561211157612110611a3f565b5b61211d85828601611e21565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61215981611a9d565b82525050565b5f61216a8383612150565b60208301905092915050565b5f602082019050919050565b5f61218c82612127565b6121968185612131565b93506121a183612141565b805f5b838110156121d15781516121b8888261215f565b97506121c383612176565b9250506001810190506121a4565b5085935050505092915050565b5f6020820190508181035f8301526121f68184612182565b905092915050565b5f67ffffffffffffffff82111561221857612217611d12565b5b61222182611c56565b9050602081019050919050565b5f61224061223b846121fe565b611d70565b90508281526020810184848401111561225c5761225b611e4e565b5b612267848285611e82565b509392505050565b5f82601f83011261228357612282611d0e565b5b813561229384826020860161222e565b91505092915050565b5f602082840312156122b1576122b0611a3b565b5b5f82013567ffffffffffffffff8111156122ce576122cd611a3f565b5b6122da8482850161226f565b91505092915050565b6122ec81611bb6565b81146122f6575f80fd5b50565b5f81359050612307816122e3565b92915050565b5f806040838503121561232357612322611a3b565b5b5f61233085828601611a89565b9250506020612341858286016122f9565b9150509250929050565b5f80fd5b5f8083601f84011261236457612363611d0e565b5b8235905067ffffffffffffffff8111156123815761238061234b565b5b60208301915083602082028301111561239d5761239c611db5565b5b9250929050565b5f805f805f606086880312156123bd576123bc611a3b565b5b5f6123ca88828901611a89565b955050602086013567ffffffffffffffff8111156123eb576123ea611a3f565b5b6123f78882890161234f565b9450945050604086013567ffffffffffffffff81111561241a57612419611a3f565b5b6124268882890161234f565b92509250509295509295909350565b5f806040838503121561244b5761244a611a3b565b5b5f61245885828601611a89565b925050602061246985828601611a89565b9150509250929050565b5f805f805f60a0868803121561248c5761248b611a3b565b5b5f61249988828901611a89565b95505060206124aa88828901611a89565b94505060406124bb88828901611abc565b93505060606124cc88828901611abc565b925050608086013567ffffffffffffffff8111156124ed576124ec611a3f565b5b6124f988828901611ed1565b9150509295509295909350565b5f6020828403121561251b5761251a611a3b565b5b5f61252884828501611a89565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061257557607f821691505b60208210810361258857612587612531565b5b50919050565b5f81905092915050565b5f819050815f5260205f209050919050565b5f81546125b68161255e565b6125c0818661258e565b9450600182165f81146125da57600181146125ef57612621565b60ff1983168652811515820286019350612621565b6125f885612598565b5f5b83811015612619578154818901526001820191506020810190506125fa565b838801955050505b50505092915050565b5f61263482611c14565b61263e818561258e565b935061264e818560208601611c2e565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815250565b5f61268b82856125aa565b9150612697828461262a565b91506126a28261265a565b6005820191508190509392505050565b5f6040820190506126c55f830185611fc9565b6126d26020830184611fc9565b9392505050565b5f6040820190506126ec5f830185611b0e565b6126f96020830184611b0e565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61276482611a9d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036127965761279561272d565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026128187fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826127dd565b61282286836127dd565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61285d61285861285384611a9d565b61283a565b611a9d565b9050919050565b5f819050919050565b61287683612843565b61288a61288282612864565b8484546127e9565b825550505050565b5f90565b61289e612892565b6128a981848461286d565b505050565b5b818110156128cc576128c15f82612896565b6001810190506128af565b5050565b601f821115612911576128e281612598565b6128eb846127ce565b810160208510156128fa578190505b61290e612906856127ce565b8301826128ae565b50505b505050565b5f82821c905092915050565b5f6129315f1984600802612916565b1980831691505092915050565b5f6129498383612922565b9150826002028217905092915050565b61296282611c14565b67ffffffffffffffff81111561297b5761297a611d12565b5b612985825461255e565b6129908282856128d0565b5f60209050601f8311600181146129c1575f84156129af578287015190505b6129b9858261293e565b865550612a20565b601f1984166129cf86612598565b5f5b828110156129f6578489015182556001820191506020850194506020810190506129d1565b86831015612a135784890151612a0f601f891682612922565b8355505b6001600288020188555050505b505050505050565b5f608082019050612a3b5f830187611fc9565b612a486020830186611b0e565b612a556040830185611b0e565b612a626060830184611b0e565b95945050505050565b5f612a7582611a9d565b9150612a8083611a9d565b9250828201905080821115612a9857612a9761272d565b5b92915050565b5f6040820190508181035f830152612ab68185612182565b90508181036020830152612aca8184612182565b90509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f612af782612ad3565b612b018185612add565b9350612b11818560208601611c2e565b612b1a81611c56565b840191505092915050565b5f60a082019050612b385f830188611fc9565b612b456020830187611fc9565b612b526040830186611b0e565b612b5f6060830185611b0e565b8181036080830152612b718184612aed565b90509695505050505050565b5f81519050612b8b81611b61565b92915050565b5f60208284031215612ba657612ba5611a3b565b5b5f612bb384828501612b7d565b91505092915050565b5f60a082019050612bcf5f830188611fc9565b612bdc6020830187611fc9565b8181036040830152612bee8186612182565b90508181036060830152612c028185612182565b90508181036080830152612c168184612aed565b9050969550505050505056fe697066733a2f2f6261666b72656968763679346a72786667703674737a756b343332627561337467716967336162783573356e703779753465343575326161773269a2646970667358221220216ab71da62780d4a9fd2c29a7d11d0db9bc9f5588d7a44c4dae4708c86c97f564736f6c63430008150033697066733a2f2f62616679626569627573336d6e706d6d326b657a3673687871766e61777634697878667a32626573646833687567346a3535703469686b7370676d2f0000000000000000000000002eb240175557a2e795abd424eb481d282317b102000000000000000000000000000000002c93cad6f9cfd00c603aef62458d8a48
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100fd575f3560e01c8063715018a611610095578063e8a3d48511610064578063e8a3d48514610293578063e985e9c5146102b1578063f242432a146102e1578063f2fde38b146102fd576100fd565b8063715018a6146102335780638da5cb5b1461023d578063a22cb4651461025b578063d81d0a1514610277576100fd565b80632eb2c2d6116100d15780632eb2c2d6146101ad5780633b8a83a6146101c95780634e1273f4146101e757806355f804b314610217576100fd565b8062fdd58e1461010157806301ffc9a7146101315780630e89341c14610161578063156e29f614610191575b5f80fd5b61011b60048036038101906101169190611ad0565b610319565b6040516101289190611b1d565b60405180910390f35b61014b60048036038101906101469190611b8b565b61036e565b6040516101589190611bd0565b60405180910390f35b61017b60048036038101906101769190611be9565b61044f565b6040516101889190611c9e565b60405180910390f35b6101ab60048036038101906101a69190611cbe565b610483565b005b6101c760048036038101906101c29190611efe565b6104aa565b005b6101d1610551565b6040516101de9190611fd8565b60405180910390f35b61020160048036038101906101fc91906120b1565b610575565b60405161020e91906121de565b60405180910390f35b610231600480360381019061022c919061229c565b610682565b005b61023b610696565b005b6102456106a9565b6040516102529190611fd8565b60405180910390f35b6102756004803603810190610270919061230d565b6106d1565b005b610291600480360381019061028c91906123a4565b6106e7565b005b61029b610790565b6040516102a89190611c9e565b60405180910390f35b6102cb60048036038101906102c69190612435565b6107b0565b6040516102d89190611bd0565b60405180910390f35b6102fb60048036038101906102f69190612473565b610820565b005b61031760048036038101906103129190612506565b6108c7565b005b5f805f8381526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f7fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061043857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061044857506104478261094b565b5b9050919050565b6060600261045c836109b4565b60405160200161046d929190612680565b6040516020818303038152906040529050919050565b61048b610a7e565b6104a583838360405180602001604052805f815250610b05565b505050565b5f6104b3610b9a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156104f857506104f686826107b0565b155b1561053c5780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016105339291906126b2565b60405180910390fd5b6105498686868686610ba1565b505050505050565b7f000000000000000000000000000000002c93cad6f9cfd00c603aef62458d8a4881565b606081518351146105c157815183516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004016105b89291906126d9565b60405180910390fd5b5f835167ffffffffffffffff8111156105dd576105dc611d12565b5b60405190808252806020026020018201604052801561060b5781602001602082028036833780820191505090505b5090505f5b84518110156106775761064761062f8287610c9590919063ffffffff16565b6106428387610ca890919063ffffffff16565b610319565b82828151811061065a57610659612700565b5b602002602001018181525050806106709061275a565b9050610610565b508091505092915050565b61068a610a7e565b61069381610cbb565b50565b61069e610a7e565b6106a75f610cce565b565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106e36106dc610b9a565b8383610d91565b5050565b6106ef610a7e565b610789858585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050508484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505060405180602001604052805f815250610efa565b5050505050565b6060604051806080016040528060428152602001612c2360429139905090565b5f7f000000000000000000000000000000002c93cad6f9cfd00c603aef62458d8a4873ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361080d576001905061081a565b6108178383610f7d565b90505b92915050565b5f610829610b9a565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415801561086e575061086c86826107b0565b155b156108b25780866040517fe237d9220000000000000000000000000000000000000000000000000000000081526004016108a99291906126b2565b60405180910390fd5b6108bf868686868661100b565b505050505050565b6108cf610a7e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361093f575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016109369190611fd8565b60405180910390fd5b61094881610cce565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60605f60016109c284611111565b0190505f8167ffffffffffffffff8111156109e0576109df611d12565b5b6040519080825280601f01601f191660200182016040528015610a125781602001600182028036833780820191505090505b5090505f82602001820190505b600115610a73578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581610a6857610a676127a1565b5b0494505f8503610a1f575b819350505050919050565b610a86610b9a565b73ffffffffffffffffffffffffffffffffffffffff16610aa46106a9565b73ffffffffffffffffffffffffffffffffffffffff1614610b0357610ac7610b9a565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610afa9190611fd8565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610b75575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401610b6c9190611fd8565b60405180910390fd5b5f80610b818585611262565b91509150610b925f87848487611292565b505050505050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610c11575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401610c089190611fd8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c81575f6040517f01a83514000000000000000000000000000000000000000000000000000000008152600401610c789190611fd8565b60405180910390fd5b610c8e8585858585611292565b5050505050565b5f60208202602084010151905092915050565b5f60208202602084010151905092915050565b8060029081610cca9190612959565b5050565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e01575f6040517fced3e100000000000000000000000000000000000000000000000000000000008152600401610df89190611fd8565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610eed9190611bd0565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610f6a575f6040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401610f619190611fd8565b60405180910390fd5b610f775f85858585611292565b50505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361107b575f6040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016110729190611fd8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036110eb575f6040517f01a835140000000000000000000000000000000000000000000000000000000081526004016110e29190611fd8565b60405180910390fd5b5f806110f78585611262565b915091506111088787848487611292565b50505050505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061116d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611163576111626127a1565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106111aa576d04ee2d6d415b85acef810000000083816111a05761119f6127a1565b5b0492506020810190505b662386f26fc1000083106111d957662386f26fc1000083816111cf576111ce6127a1565b5b0492506010810190505b6305f5e1008310611202576305f5e10083816111f8576111f76127a1565b5b0492506008810190505b612710831061122757612710838161121d5761121c6127a1565b5b0492506004810190505b6064831061124a57606483816112405761123f6127a1565b5b0492506002810190505b600a8310611259576001810190505b80915050919050565b60608060405191506001825283602083015260408201905060018152826020820152604081016040529250929050565b61129e8585858561133e565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611337575f6112da610b9a565b90506001845103611326575f6112f95f86610ca890919063ffffffff16565b90505f61130f5f86610ca890919063ffffffff16565b905061131f8389898585896116d4565b5050611335565b611334818787878787611883565b5b505b5050505050565b805182511461138857815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260040161137f9291906126d9565b60405180910390fd5b5f611391610b9a565b90505f5b8351811015611593575f6113b28286610ca890919063ffffffff16565b90505f6113c88386610ca890919063ffffffff16565b90505f73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146114eb575f805f8481526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561149757888183856040517f03dee4c500000000000000000000000000000000000000000000000000000000815260040161148e9493929190612a28565b60405180910390fd5b8181035f808581526020019081526020015f205f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461158057805f808481526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546115789190612a6b565b925050819055505b50508061158c9061275a565b9050611395565b50600183510361164e575f6115b15f85610ca890919063ffffffff16565b90505f6115c75f85610ca890919063ffffffff16565b90508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405161163f9291906126d9565b60405180910390a450506116cd565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516116c4929190612a9e565b60405180910390a45b5050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b111561187b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611734959493929190612b25565b6020604051808303815f875af192505050801561176f57506040513d601f19601f8201168201806040525081019061176c9190612b91565b60015b6117f0573d805f811461179d576040519150601f19603f3d011682016040523d82523d5f602084013e6117a2565b606091505b505f8151036117e857846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016117df9190611fd8565b60405180910390fd5b805181602001fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461187957846040517f57f447ce0000000000000000000000000000000000000000000000000000000081526004016118709190611fd8565b60405180910390fd5b505b505050505050565b5f8473ffffffffffffffffffffffffffffffffffffffff163b1115611a2a578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016118e3959493929190612bbc565b6020604051808303815f875af192505050801561191e57506040513d601f19601f8201168201806040525081019061191b9190612b91565b60015b61199f573d805f811461194c576040519150601f19603f3d011682016040523d82523d5f602084013e611951565b606091505b505f81510361199757846040517f57f447ce00000000000000000000000000000000000000000000000000000000815260040161198e9190611fd8565b60405180910390fd5b805181602001fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611a2857846040517f57f447ce000000000000000000000000000000000000000000000000000000008152600401611a1f9190611fd8565b60405180910390fd5b505b505050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611a6c82611a43565b9050919050565b611a7c81611a62565b8114611a86575f80fd5b50565b5f81359050611a9781611a73565b92915050565b5f819050919050565b611aaf81611a9d565b8114611ab9575f80fd5b50565b5f81359050611aca81611aa6565b92915050565b5f8060408385031215611ae657611ae5611a3b565b5b5f611af385828601611a89565b9250506020611b0485828601611abc565b9150509250929050565b611b1781611a9d565b82525050565b5f602082019050611b305f830184611b0e565b92915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b6a81611b36565b8114611b74575f80fd5b50565b5f81359050611b8581611b61565b92915050565b5f60208284031215611ba057611b9f611a3b565b5b5f611bad84828501611b77565b91505092915050565b5f8115159050919050565b611bca81611bb6565b82525050565b5f602082019050611be35f830184611bc1565b92915050565b5f60208284031215611bfe57611bfd611a3b565b5b5f611c0b84828501611abc565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611c4b578082015181840152602081019050611c30565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611c7082611c14565b611c7a8185611c1e565b9350611c8a818560208601611c2e565b611c9381611c56565b840191505092915050565b5f6020820190508181035f830152611cb68184611c66565b905092915050565b5f805f60608486031215611cd557611cd4611a3b565b5b5f611ce286828701611a89565b9350506020611cf386828701611abc565b9250506040611d0486828701611abc565b9150509250925092565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611d4882611c56565b810181811067ffffffffffffffff82111715611d6757611d66611d12565b5b80604052505050565b5f611d79611a32565b9050611d858282611d3f565b919050565b5f67ffffffffffffffff821115611da457611da3611d12565b5b602082029050602081019050919050565b5f80fd5b5f611dcb611dc684611d8a565b611d70565b90508083825260208201905060208402830185811115611dee57611ded611db5565b5b835b81811015611e175780611e038882611abc565b845260208401935050602081019050611df0565b5050509392505050565b5f82601f830112611e3557611e34611d0e565b5b8135611e45848260208601611db9565b91505092915050565b5f80fd5b5f67ffffffffffffffff821115611e6c57611e6b611d12565b5b611e7582611c56565b9050602081019050919050565b828183375f83830152505050565b5f611ea2611e9d84611e52565b611d70565b905082815260208101848484011115611ebe57611ebd611e4e565b5b611ec9848285611e82565b509392505050565b5f82601f830112611ee557611ee4611d0e565b5b8135611ef5848260208601611e90565b91505092915050565b5f805f805f60a08688031215611f1757611f16611a3b565b5b5f611f2488828901611a89565b9550506020611f3588828901611a89565b945050604086013567ffffffffffffffff811115611f5657611f55611a3f565b5b611f6288828901611e21565b935050606086013567ffffffffffffffff811115611f8357611f82611a3f565b5b611f8f88828901611e21565b925050608086013567ffffffffffffffff811115611fb057611faf611a3f565b5b611fbc88828901611ed1565b9150509295509295909350565b611fd281611a62565b82525050565b5f602082019050611feb5f830184611fc9565b92915050565b5f67ffffffffffffffff82111561200b5761200a611d12565b5b602082029050602081019050919050565b5f61202e61202984611ff1565b611d70565b9050808382526020820190506020840283018581111561205157612050611db5565b5b835b8181101561207a57806120668882611a89565b845260208401935050602081019050612053565b5050509392505050565b5f82601f83011261209857612097611d0e565b5b81356120a884826020860161201c565b91505092915050565b5f80604083850312156120c7576120c6611a3b565b5b5f83013567ffffffffffffffff8111156120e4576120e3611a3f565b5b6120f085828601612084565b925050602083013567ffffffffffffffff81111561211157612110611a3f565b5b61211d85828601611e21565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61215981611a9d565b82525050565b5f61216a8383612150565b60208301905092915050565b5f602082019050919050565b5f61218c82612127565b6121968185612131565b93506121a183612141565b805f5b838110156121d15781516121b8888261215f565b97506121c383612176565b9250506001810190506121a4565b5085935050505092915050565b5f6020820190508181035f8301526121f68184612182565b905092915050565b5f67ffffffffffffffff82111561221857612217611d12565b5b61222182611c56565b9050602081019050919050565b5f61224061223b846121fe565b611d70565b90508281526020810184848401111561225c5761225b611e4e565b5b612267848285611e82565b509392505050565b5f82601f83011261228357612282611d0e565b5b813561229384826020860161222e565b91505092915050565b5f602082840312156122b1576122b0611a3b565b5b5f82013567ffffffffffffffff8111156122ce576122cd611a3f565b5b6122da8482850161226f565b91505092915050565b6122ec81611bb6565b81146122f6575f80fd5b50565b5f81359050612307816122e3565b92915050565b5f806040838503121561232357612322611a3b565b5b5f61233085828601611a89565b9250506020612341858286016122f9565b9150509250929050565b5f80fd5b5f8083601f84011261236457612363611d0e565b5b8235905067ffffffffffffffff8111156123815761238061234b565b5b60208301915083602082028301111561239d5761239c611db5565b5b9250929050565b5f805f805f606086880312156123bd576123bc611a3b565b5b5f6123ca88828901611a89565b955050602086013567ffffffffffffffff8111156123eb576123ea611a3f565b5b6123f78882890161234f565b9450945050604086013567ffffffffffffffff81111561241a57612419611a3f565b5b6124268882890161234f565b92509250509295509295909350565b5f806040838503121561244b5761244a611a3b565b5b5f61245885828601611a89565b925050602061246985828601611a89565b9150509250929050565b5f805f805f60a0868803121561248c5761248b611a3b565b5b5f61249988828901611a89565b95505060206124aa88828901611a89565b94505060406124bb88828901611abc565b93505060606124cc88828901611abc565b925050608086013567ffffffffffffffff8111156124ed576124ec611a3f565b5b6124f988828901611ed1565b9150509295509295909350565b5f6020828403121561251b5761251a611a3b565b5b5f61252884828501611a89565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061257557607f821691505b60208210810361258857612587612531565b5b50919050565b5f81905092915050565b5f819050815f5260205f209050919050565b5f81546125b68161255e565b6125c0818661258e565b9450600182165f81146125da57600181146125ef57612621565b60ff1983168652811515820286019350612621565b6125f885612598565b5f5b83811015612619578154818901526001820191506020810190506125fa565b838801955050505b50505092915050565b5f61263482611c14565b61263e818561258e565b935061264e818560208601611c2e565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815250565b5f61268b82856125aa565b9150612697828461262a565b91506126a28261265a565b6005820191508190509392505050565b5f6040820190506126c55f830185611fc9565b6126d26020830184611fc9565b9392505050565b5f6040820190506126ec5f830185611b0e565b6126f96020830184611b0e565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61276482611a9d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036127965761279561272d565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026128187fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826127dd565b61282286836127dd565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61285d61285861285384611a9d565b61283a565b611a9d565b9050919050565b5f819050919050565b61287683612843565b61288a61288282612864565b8484546127e9565b825550505050565b5f90565b61289e612892565b6128a981848461286d565b505050565b5b818110156128cc576128c15f82612896565b6001810190506128af565b5050565b601f821115612911576128e281612598565b6128eb846127ce565b810160208510156128fa578190505b61290e612906856127ce565b8301826128ae565b50505b505050565b5f82821c905092915050565b5f6129315f1984600802612916565b1980831691505092915050565b5f6129498383612922565b9150826002028217905092915050565b61296282611c14565b67ffffffffffffffff81111561297b5761297a611d12565b5b612985825461255e565b6129908282856128d0565b5f60209050601f8311600181146129c1575f84156129af578287015190505b6129b9858261293e565b865550612a20565b601f1984166129cf86612598565b5f5b828110156129f6578489015182556001820191506020850194506020810190506129d1565b86831015612a135784890151612a0f601f891682612922565b8355505b6001600288020188555050505b505050505050565b5f608082019050612a3b5f830187611fc9565b612a486020830186611b0e565b612a556040830185611b0e565b612a626060830184611b0e565b95945050505050565b5f612a7582611a9d565b9150612a8083611a9d565b9250828201905080821115612a9857612a9761272d565b5b92915050565b5f6040820190508181035f830152612ab68185612182565b90508181036020830152612aca8184612182565b90509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f612af782612ad3565b612b018185612add565b9350612b11818560208601611c2e565b612b1a81611c56565b840191505092915050565b5f60a082019050612b385f830188611fc9565b612b456020830187611fc9565b612b526040830186611b0e565b612b5f6060830185611b0e565b8181036080830152612b718184612aed565b90509695505050505050565b5f81519050612b8b81611b61565b92915050565b5f60208284031215612ba657612ba5611a3b565b5b5f612bb384828501612b7d565b91505092915050565b5f60a082019050612bcf5f830188611fc9565b612bdc6020830187611fc9565b8181036040830152612bee8186612182565b90508181036060830152612c028185612182565b90508181036080830152612c168184612aed565b9050969550505050505056fe697066733a2f2f6261666b72656968763679346a72786667703674737a756b343332627561337467716967336162783573356e703779753465343575326161773269a2646970667358221220216ab71da62780d4a9fd2c29a7d11d0db9bc9f5588d7a44c4dae4708c86c97f564736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002eb240175557a2e795abd424eb481d282317b102000000000000000000000000000000002c93cad6f9cfd00c603aef62458d8a48
-----Decoded View---------------
Arg [0] : initialOwner (address): 0x2eb240175557a2e795abd424Eb481d282317b102
Arg [1] : propHouse_ (address): 0x000000002C93CAD6F9cFD00C603aEf62458d8A48
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002eb240175557a2e795abd424eb481d282317b102
Arg [1] : 000000000000000000000000000000002c93cad6f9cfd00c603aef62458d8a48
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.