ETH Price: $3,306.61 (+1.75%)
Gas: 3 Gwei

Token

(0xcd65a2bd85fca380ab28c25ebd5183d1451cd5be)
 

Overview

Max Total Supply

0 ERC-721 TOKEN*

Holders

311

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
0 ERC-721 TOKEN*
0x00d3be15cc9a9d071b6810531fbac7938c50ac39
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SANWORN

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 3333 runs

Other Settings:
paris EvmVersion
File 1 of 14 : SANWORN.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

/**                       ███████╗ █████╗ ███╗   ██╗
 *                        ██╔════╝██╔══██╗████╗  ██║
 *                        ███████╗███████║██╔██╗ ██║
 *                        ╚════██║██╔══██║██║╚██╗██║
 *                        ███████║██║  ██║██║ ╚████║
 *                        ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝
 *
 *                              █████████████╗
 *                              ╚════════════╝
 *                               ███████████╗
 *                               ╚══════════╝
 *                            █████████████████╗
 *                            ╚════════════════╝
 *
 *                   ██╗    ██╗ ██████╗ ██████╗ ███╗   ██╗
 *                   ██║    ██║██╔═══██╗██╔══██╗████╗  ██║
 *                   ██║ █╗ ██║██║   ██║██████╔╝██╔██╗ ██║
 *                   ██║███╗██║██║   ██║██╔══██╗██║╚██╗██║
 *                   ╚███╔███╔╝╚██████╔╝██║  ██║██║ ╚████║
 *                    ╚══╝╚══╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝
 */

import {ERC721MintboundPartitioned} from "./ERC721MintboundPartitioned.sol";
import {Ownable} from "lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import {ISANWORN} from "./ISANWORN.sol";

/**
 * @title SANWEAR™ by SAN SOUND (Claimed)
 * @author Aaron Hanson <[email protected]> @CoffeeConverter
 * @notice https://sansound.io/
 */
contract SANWORN is Ownable, ERC721MintboundPartitioned, ISANWORN {
    address public immutable SANWEAR_ADDR;
    string public contractURI;

    constructor(
        string memory _baseUri,
        string memory _contractUri,
        address _sanwear
    )
        ERC721MintboundPartitioned("SANWEAR by SAN SOUND (Claimed)", "SANWORN", 1_000)
        Ownable(_msgSender())
    {
        _setBaseURI(_baseUri);
        contractURI = _contractUri;
        SANWEAR_ADDR = _sanwear;
    }

    function mint(
        address _to,
        uint256 _colorwayId
    )
        external
    {
        if (_msgSender() != SANWEAR_ADDR) revert CallerIsNotSanwear();
        _mint(_to, _colorwayId, 1);
    }

    function mintBatch(
        address _to,
        uint256[] calldata _colorwayIds,
        uint256[] calldata _amounts
    )
        external
    {
        if (_msgSender() != SANWEAR_ADDR) revert CallerIsNotSanwear();
        if (_colorwayIds.length != _amounts.length) revert ArrayLengthMismatch();
        _mintBatch(_to, _colorwayIds, _amounts);
    }

    function setContractURI(string calldata _newContractURI)
        external
        onlyOwner
    {
        contractURI = _newContractURI;
    }

    function setBaseURI(
        string calldata _newBaseUri
    )
        external
        onlyOwner
    {
        _setBaseURI(_newBaseUri);
    }
}

File 2 of 14 : ERC721MintboundPartitioned.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

import {IERC721} from "lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";
import {IERC721Metadata} from "lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import {IERC721Errors} from "lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol";
import {Strings} from "lib/openzeppelin-contracts/contracts/utils/Strings.sol";
import {Context} from "lib/openzeppelin-contracts/contracts/utils/Context.sol";
import {ERC165, IERC165} from "lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol";
import {ArrayUtils} from "./utils/ArrayUtils.sol";

/**
 * @title ERC721MintboundPartitioned
 * @author Aaron Hanson <[email protected]> @CoffeeConverter
 * @notice https://nftcoffee.dev/
 */
contract ERC721MintboundPartitioned is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
    using Strings for uint256;

    error CannotApproveSoulboundToken();
    error CannotTransferSoulboundToken();
    error ExceedsPartitionSize();
    error InvalidPartitionId();
    error InvalidPartitionSize();

    uint256 private constant MAX_PARTITION_SIZE = 2**255 - 1; // largest that allows for two partitions
    uint256 public immutable PARTITION_SIZE;
    uint256 public immutable PARTITION_MAX_ID;

    string private NAME;
    string private SYMBOL;

    string private baseUri;

    mapping (uint256 partitionId => uint256 balance) public partitionBalances;
    mapping (address owner => uint256 balance) private ownerBalances;
    mapping (uint256 tokenId => address owner) private tokenOwners;

    constructor (
        string memory _name,
        string memory _symbol,
        uint256 _partitionSize
    ) {
        NAME = _name;
        SYMBOL = _symbol;
        if (_partitionSize == 0 || _partitionSize > MAX_PARTITION_SIZE) revert InvalidPartitionSize();
        PARTITION_SIZE = _partitionSize;
        PARTITION_MAX_ID = type(uint256).max / _partitionSize - 1;
    }

    function balanceOf(
        address _owner
    )
        external
        view
        returns (uint256)
    {
        if (_owner == address(0)) revert ERC721InvalidOwner(address(0));
        return ownerBalances[_owner];
    }

    function ownerOf(
        uint256 _tokenId
    )
        external
        view
        returns (address)
    {
        if (!_exists(_tokenId)) revert ERC721NonexistentToken(_tokenId);
        address tokenOwner = tokenOwners[_tokenId];
        while (tokenOwner == address(0)) {
            tokenOwner = tokenOwners[--_tokenId];
        }
        return tokenOwner;
    }

    function tokenURI(
        uint256 _tokenId
    )
        external
        view
        returns (string memory)
    {
        if (!_exists(_tokenId)) revert ERC721NonexistentToken(_tokenId);
        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string.concat(baseURI, _tokenId.toString(), ".json") : "";
    }

    function name()
        external
        view
        returns (string memory)
    {
        return NAME;
    }

    function symbol()
        external
        view
        returns (string memory)
    {
        return SYMBOL;
    }

    function approve(
        address /*_approved*/,
        uint256 /*_tokenId*/
    )
        external
        pure
    {
        revert CannotApproveSoulboundToken();
    }

    function setApprovalForAll(
        address /*_operator*/,
        bool /*_approved*/
    )
        external
        pure
    {
        revert CannotApproveSoulboundToken();
    }

    function safeTransferFrom(
        address /*_from*/,
        address /*_to*/,
        uint256 /*_tokenId*/
    )
        external
        pure
    {
        revert CannotTransferSoulboundToken();
    }

    function safeTransferFrom(
        address /*_from*/,
        address /*_to*/,
        uint256 /*_tokenId*/,
        bytes calldata /*_data*/
    )
        external
        pure
    {
        revert CannotTransferSoulboundToken();
    }

    function transferFrom(
        address /*_from*/,
        address /*_to*/,
        uint256 /*_tokenId*/
    )
        external
        pure
    {
        revert CannotTransferSoulboundToken();
    }

    function getApproved(
        uint256 /*_tokenId*/
    )
        external
        pure
        returns (address)
    {
        return address(0);
    }

    function isApprovedForAll(
        address /*_owner*/,
        address /*_operator*/
    )
        external
        pure
        returns (bool)
    {
        return false;
    }

    function supportsInterface(
        bytes4 _interfaceId
    )
        public
        view
        override (ERC165, IERC165)
        returns (bool)
    {
        return _interfaceId == type(IERC721).interfaceId
            || _interfaceId == type(IERC721Metadata).interfaceId
            || super.supportsInterface(_interfaceId);
    }

    function _mint(
        address _to,
        uint256 _partitionId,
        uint256 _amount
    )
        internal
    {
        if (_to == address(0)) revert ERC721InvalidReceiver(address(0));
        if (_amount == 0) return;
        if (_partitionId > PARTITION_MAX_ID) revert InvalidPartitionId();
        uint256 partitionBal = partitionBalances[_partitionId];
        unchecked {
            if (_amount > PARTITION_SIZE - partitionBal) revert ExceedsPartitionSize();
            uint256 firstTokenId = _partitionId * PARTITION_SIZE + partitionBal;
            tokenOwners[firstTokenId] = _to;
            partitionBalances[_partitionId] = partitionBal + _amount;
            ownerBalances[_to] += _amount;
            for (uint t; t < _amount; ++t) emit Transfer(address(0), _to, firstTokenId + t);
        }
    }

    function _mintBatch(
        address _to,
        uint256[] memory _partitionIds,
        uint256[] memory _amounts
    )
        internal
    {
        if (_to == address(0)) revert ERC721InvalidReceiver(address(0));
        uint256 totalMinted;
        for (uint i; i < _partitionIds.length; ++i) {
            uint256 amt = _amounts[i];
            if (amt == 0) continue;
            uint256 partitionId = _partitionIds[i];
            if (partitionId > PARTITION_MAX_ID) revert InvalidPartitionId();
            uint256 partitionBal = partitionBalances[partitionId];
            unchecked {
                if (amt > PARTITION_SIZE - partitionBal) revert ExceedsPartitionSize();
                uint256 firstTokenId = partitionId * PARTITION_SIZE + partitionBal;
                tokenOwners[firstTokenId] = _to;
                partitionBalances[partitionId] = partitionBal + amt;
                for (uint t; t < amt; ++t) emit Transfer(address(0), _to, firstTokenId + t);
                totalMinted += amt;
            }
        }
        unchecked {
            ownerBalances[_to] += totalMinted;
        }
    }

    function _setBaseURI(
        string memory _newBaseUri
    )
        internal
    {
        baseUri = _newBaseUri;
    }

    function _exists(
        uint256 _tokenId
    )
        internal
        view
        returns (bool)
    {
        return partitionBalances[_tokenId / PARTITION_SIZE] > _tokenId % PARTITION_SIZE;
    }

    function _baseURI()
        internal
        view
        virtual
        returns (string memory)
    {
        return baseUri;
    }
}

File 3 of 14 : Ownable.sol
// 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);
    }
}

File 4 of 14 : ISANWORN.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

interface ISANWORN {
    error ArrayLengthMismatch();
    error CallerIsNotSanwear();

    function mint(address _to, uint256 _colorwayId) external;
    function mintBatch(address _to, uint256[] calldata _colorwayIds, uint256[] calldata _amounts) external;
}

File 5 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 6 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 7 of 14 : draft-IERC6093.sol
// 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);
}

File 8 of 14 : Strings.sol
// 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));
    }
}

File 9 of 14 : Context.sol
// 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;
    }
}

File 10 of 14 : ERC165.sol
// 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;
    }
}

File 11 of 14 : ArrayUtils.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

library ArrayUtils {
    function _toSingletonArrays(
        uint256 element1,
        uint256 element2
    )
        internal
        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))
        }
    }
}

File 12 of 14 : IERC165.sol
// 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);
}

File 13 of 14 : Math.sol
// 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;
    }
}

File 14 of 14 : SignedMath.sol
// 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);
        }
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/erc6551/lib/openzeppelin-contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "erc6551/=lib/erc6551/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 3333
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_contractUri","type":"string"},{"internalType":"address","name":"_sanwear","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"CallerIsNotSanwear","type":"error"},{"inputs":[],"name":"CannotApproveSoulboundToken","type":"error"},{"inputs":[],"name":"CannotTransferSoulboundToken","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[],"name":"ExceedsPartitionSize","type":"error"},{"inputs":[],"name":"InvalidPartitionId","type":"error"},{"inputs":[],"name":"InvalidPartitionSize","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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PARTITION_MAX_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PARTITION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SANWEAR_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_colorwayId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_colorwayIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"partitionId","type":"uint256"}],"name":"partitionBalances","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162001d2138038062001d218339810160408190526200003491620002af565b6040518060400160405280601e81526020017f53414e574541522062792053414e20534f554e442028436c61696d65642900008152506040518060400160405280600781526020016629a0a72ba7a92760c91b8152506103e86200009d6200018160201b60201c565b6001600160a01b038116620000cc57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000d78162000185565b506001620000e68482620003cd565b506002620000f58382620003cd565b508015806200010a57506001600160ff1b0381115b1562000129576040516346306f0160e11b815260040160405180910390fd5b608081905260016200013e8260001962000499565b6200014a9190620004bc565b60a052506200015d9150849050620001d5565b60076200016b8382620003cd565b506001600160a01b031660c05250620004e49050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6003620001e38282620003cd565b5050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020f57600080fd5b81516001600160401b03808211156200022c576200022c620001e7565b604051601f8301601f19908116603f01168101908282118183101715620002575762000257620001e7565b81604052838152602092508660208588010111156200027557600080fd5b600091505b838210156200029957858201830151818301840152908201906200027a565b6000602085830101528094505050505092915050565b600080600060608486031215620002c557600080fd5b83516001600160401b0380821115620002dd57600080fd5b620002eb87838801620001fd565b945060208601519150808211156200030257600080fd5b506200031186828701620001fd565b604086015190935090506001600160a01b03811681146200033157600080fd5b809150509250925092565b600181811c908216806200035157607f821691505b6020821081036200037257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003c8576000816000526020600020601f850160051c81016020861015620003a35750805b601f850160051c820191505b81811015620003c457828155600101620003af565b5050505b505050565b81516001600160401b03811115620003e957620003e9620001e7565b6200040181620003fa84546200033c565b8462000378565b602080601f831160018114620004395760008415620004205750858301515b600019600386901b1c1916600185901b178555620003c4565b600085815260208120601f198616915b828110156200046a5788860151825594840194600190910190840162000449565b5085821015620004895787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082620004b757634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115620004de57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c0516117c76200055a600039600081816102a5015281816105ad015261084601526000818161039a01528181610a8a0152610e9f01526000818161032f01528181610af301528181610b5001528181610c8201528181610cb001528181610f080152610f6501526117c76000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c8063715018a6116100ee578063c4d9f07f11610097578063e8a3d48511610071578063e8a3d48514610377578063e985e9c51461037f578063ef7d586f14610395578063f2fde38b146103bc57600080fd5b8063c4d9f07f1461032a578063c87b56dd14610351578063d81d0a151461036457600080fd5b806395d89b41116100c857806395d89b4114610306578063a22cb4651461030e578063b88d4fde1461031c57600080fd5b8063715018a6146102da5780638da5cb5b146102e2578063938e3d7b146102f357600080fd5b806340c10f19116101505780636352211e1161012a5780636352211e1461028d5780636880d173146102a057806370a08231146102c757600080fd5b806340c10f191461026757806342842e0e1461025457806355f804b31461027a57600080fd5b8063095ea7b311610181578063095ea7b3146102115780631428bd661461022657806323b872dd1461025457600080fd5b806301ffc9a7146101a857806306fdde03146101d0578063081812fc146101e5575b600080fd5b6101bb6101b636600461113c565b6103cf565b60405190151581526020015b60405180910390f35b6101d86104b4565b6040516101c791906111a2565b6101f96101f33660046111d5565b50600090565b6040516001600160a01b0390911681526020016101c7565b61022461021f36600461120a565b610546565b005b6102466102343660046111d5565b60046020526000908152604090205481565b6040519081526020016101c7565b610224610262366004611234565b610578565b61022461027536600461120a565b6105aa565b6102246102883660046112b9565b61061c565b6101f961029b3660046111d5565b610663565b6101f97f000000000000000000000000000000000000000000000000000000000000000081565b6102466102d53660046112fb565b610705565b610224610766565b6000546001600160a01b03166101f9565b6102246103013660046112b9565b61077a565b6101d8610794565b61022461021f366004611316565b610224610262366004611352565b6102467f000000000000000000000000000000000000000000000000000000000000000081565b6101d861035f3660046111d5565b6107a3565b610224610372366004611406565b610843565b6101d8610953565b6101bb61038d366004611476565b600092915050565b6102467f000000000000000000000000000000000000000000000000000000000000000081565b6102246103ca3660046112fb565b6109e1565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061046257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104ae57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600180546104c3906114a9565b80601f01602080910402602001604051908101604052809291908181526020018280546104ef906114a9565b801561053c5780601f106105115761010080835404028352916020019161053c565b820191906000526020600020905b81548152906001019060200180831161051f57829003601f168201915b5050505050905090565b6040517fe7732f4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f1b67d22100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461060c576040517ffa17566300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61061882826001610a38565b5050565b610624610c29565b61061882828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c6f92505050565b600061066e82610c7b565b6106ac576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018390526024015b60405180910390fd5b6000828152600660205260409020546001600160a01b03165b6001600160a01b0381166104ae57600660006106e0856114e3565b8082526020820192909252604001600020549093506001600160a01b031690506106c5565b60006001600160a01b03821661074a576040517f89c62b64000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b506001600160a01b031660009081526005602052604090205490565b61076e610c29565b6107786000610cec565b565b610782610c29565b600761078f828483611566565b505050565b6060600280546104c3906114a9565b60606107ae82610c7b565b6107e7576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018390526024016106a3565b60006107f1610d54565b90506000815111610811576040518060200160405280600081525061083c565b8061081b84610d63565b60405160200161082c929190611626565b6040516020818303038152906040525b9392505050565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146108a5576040517ffa17566300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8281146108de576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61094c8585858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808902828101820190935288825290935088925087918291850190849080828437600092019190915250610e0392505050565b5050505050565b60078054610960906114a9565b80601f016020809104026020016040519081016040528092919081815260200182805461098c906114a9565b80156109d95780601f106109ae576101008083540402835291602001916109d9565b820191906000526020600020905b8154815290600101906020018083116109bc57829003601f168201915b505050505081565b6109e9610c29565b6001600160a01b038116610a2c576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b610a3581610cec565b50565b6001600160a01b038316610a7b576040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b80600003610a8857505050565b7f0000000000000000000000000000000000000000000000000000000000000000821115610ae2576040517f870e75fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152600460205260409020547f0000000000000000000000000000000000000000000000000000000000000000819003821115610b4e576040517f7aed06db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000083028101600081815260066020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038a169081179091558784526004835281842087870190558352600590915281208054850190555b83811015610c2157604051828201906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101610bd7565b505050505050565b6000546001600160a01b03163314610778576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016106a3565b6003610618828261167d565b6000610ca77f000000000000000000000000000000000000000000000000000000000000000083611753565b60046000610cd57f000000000000000000000000000000000000000000000000000000000000000086611767565b815260200190815260200160002054119050919050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060600380546104c3906114a9565b60606000610d708361105a565b600101905060008167ffffffffffffffff811115610d9057610d90611508565b6040519080825280601f01601f191660200182016040528015610dba576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084610dc457509392505050565b6001600160a01b038316610e46576040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b6000805b8351811015611034576000838281518110610e6757610e6761177b565b6020026020010151905080600003610e7f575061102c565b6000858381518110610e9357610e9361177b565b602002602001015190507f0000000000000000000000000000000000000000000000000000000000000000811115610ef7576040517f870e75fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000818152600460205260409020547f0000000000000000000000000000000000000000000000000000000000000000819003831115610f63576040517f7aed06db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000082028101600081815260066020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038e161790558583526004909152812085840190555b8481101561102457604051828201906001600160a01b038c16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101610fda565b505050920191505b600101610e4a565b506001600160a01b03909316600090815260056020526040902080549093019092555050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106110a3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106110cf576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106110ed57662386f26fc10000830492506010015b6305f5e1008310611105576305f5e100830492506008015b612710831061111957612710830492506004015b6064831061112b576064830492506002015b600a83106104ae5760010192915050565b60006020828403121561114e57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461083c57600080fd5b60005b83811015611199578181015183820152602001611181565b50506000910152565b60208152600082518060208401526111c181604085016020870161117e565b601f01601f19169190910160400192915050565b6000602082840312156111e757600080fd5b5035919050565b80356001600160a01b038116811461120557600080fd5b919050565b6000806040838503121561121d57600080fd5b611226836111ee565b946020939093013593505050565b60008060006060848603121561124957600080fd5b611252846111ee565b9250611260602085016111ee565b9150604084013590509250925092565b60008083601f84011261128257600080fd5b50813567ffffffffffffffff81111561129a57600080fd5b6020830191508360208285010111156112b257600080fd5b9250929050565b600080602083850312156112cc57600080fd5b823567ffffffffffffffff8111156112e357600080fd5b6112ef85828601611270565b90969095509350505050565b60006020828403121561130d57600080fd5b61083c826111ee565b6000806040838503121561132957600080fd5b611332836111ee565b91506020830135801515811461134757600080fd5b809150509250929050565b60008060008060006080868803121561136a57600080fd5b611373866111ee565b9450611381602087016111ee565b935060408601359250606086013567ffffffffffffffff8111156113a457600080fd5b6113b088828901611270565b969995985093965092949392505050565b60008083601f8401126113d357600080fd5b50813567ffffffffffffffff8111156113eb57600080fd5b6020830191508360208260051b85010111156112b257600080fd5b60008060008060006060868803121561141e57600080fd5b611427866111ee565b9450602086013567ffffffffffffffff8082111561144457600080fd5b61145089838a016113c1565b9096509450604088013591508082111561146957600080fd5b506113b0888289016113c1565b6000806040838503121561148957600080fd5b611492836111ee565b91506114a0602084016111ee565b90509250929050565b600181811c908216806114bd57607f821691505b6020821081036114dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60008161150057634e487b7160e01b600052601160045260246000fd5b506000190190565b634e487b7160e01b600052604160045260246000fd5b601f82111561078f576000816000526020600020601f850160051c810160208610156115475750805b601f850160051c820191505b81811015610c2157828155600101611553565b67ffffffffffffffff83111561157e5761157e611508565b6115928361158c83546114a9565b8361151e565b6000601f8411600181146115c657600085156115ae5750838201355b600019600387901b1c1916600186901b17835561094c565b600083815260209020601f19861690835b828110156115f757868501358255602094850194600190920191016115d7565b50868210156116145760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000835161163881846020880161117e565b83519083019061164c81836020880161117e565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b815167ffffffffffffffff81111561169757611697611508565b6116ab816116a584546114a9565b8461151e565b602080601f8311600181146116e057600084156116c85750858301515b600019600386901b1c1916600185901b178555610c21565b600085815260208120601f198616915b8281101561170f578886015182559484019460019091019084016116f0565b508582101561172d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b6000826117625761176261173d565b500690565b6000826117765761177661173d565b500490565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220f1172a756291fe5947f8293678067abf126460e2ef97fcec75eccad464fe706f64736f6c63430008160033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000ae2bc979178e97e0688384aab00055e67bea91ed0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569646d703673766f687836666977623634666a707777666c36346f76643679347879746a696435356e7667626479633674726b79692f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f626166796265696479686b3337707773756d796762716c737772756c66326b36326f77776f72616470737178347977356561706672747a726f7934000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a35760003560e01c8063715018a6116100ee578063c4d9f07f11610097578063e8a3d48511610071578063e8a3d48514610377578063e985e9c51461037f578063ef7d586f14610395578063f2fde38b146103bc57600080fd5b8063c4d9f07f1461032a578063c87b56dd14610351578063d81d0a151461036457600080fd5b806395d89b41116100c857806395d89b4114610306578063a22cb4651461030e578063b88d4fde1461031c57600080fd5b8063715018a6146102da5780638da5cb5b146102e2578063938e3d7b146102f357600080fd5b806340c10f19116101505780636352211e1161012a5780636352211e1461028d5780636880d173146102a057806370a08231146102c757600080fd5b806340c10f191461026757806342842e0e1461025457806355f804b31461027a57600080fd5b8063095ea7b311610181578063095ea7b3146102115780631428bd661461022657806323b872dd1461025457600080fd5b806301ffc9a7146101a857806306fdde03146101d0578063081812fc146101e5575b600080fd5b6101bb6101b636600461113c565b6103cf565b60405190151581526020015b60405180910390f35b6101d86104b4565b6040516101c791906111a2565b6101f96101f33660046111d5565b50600090565b6040516001600160a01b0390911681526020016101c7565b61022461021f36600461120a565b610546565b005b6102466102343660046111d5565b60046020526000908152604090205481565b6040519081526020016101c7565b610224610262366004611234565b610578565b61022461027536600461120a565b6105aa565b6102246102883660046112b9565b61061c565b6101f961029b3660046111d5565b610663565b6101f97f000000000000000000000000ae2bc979178e97e0688384aab00055e67bea91ed81565b6102466102d53660046112fb565b610705565b610224610766565b6000546001600160a01b03166101f9565b6102246103013660046112b9565b61077a565b6101d8610794565b61022461021f366004611316565b610224610262366004611352565b6102467f00000000000000000000000000000000000000000000000000000000000003e881565b6101d861035f3660046111d5565b6107a3565b610224610372366004611406565b610843565b6101d8610953565b6101bb61038d366004611476565b600092915050565b6102467f004189374bc6a7ef9db22d0e5604189374bc6a7ef9db22d0e5604189374bc6a681565b6102246103ca3660046112fb565b6109e1565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061046257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104ae57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600180546104c3906114a9565b80601f01602080910402602001604051908101604052809291908181526020018280546104ef906114a9565b801561053c5780601f106105115761010080835404028352916020019161053c565b820191906000526020600020905b81548152906001019060200180831161051f57829003601f168201915b5050505050905090565b6040517fe7732f4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f1b67d22100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b337f000000000000000000000000ae2bc979178e97e0688384aab00055e67bea91ed6001600160a01b03161461060c576040517ffa17566300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61061882826001610a38565b5050565b610624610c29565b61061882828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c6f92505050565b600061066e82610c7b565b6106ac576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018390526024015b60405180910390fd5b6000828152600660205260409020546001600160a01b03165b6001600160a01b0381166104ae57600660006106e0856114e3565b8082526020820192909252604001600020549093506001600160a01b031690506106c5565b60006001600160a01b03821661074a576040517f89c62b64000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b506001600160a01b031660009081526005602052604090205490565b61076e610c29565b6107786000610cec565b565b610782610c29565b600761078f828483611566565b505050565b6060600280546104c3906114a9565b60606107ae82610c7b565b6107e7576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018390526024016106a3565b60006107f1610d54565b90506000815111610811576040518060200160405280600081525061083c565b8061081b84610d63565b60405160200161082c929190611626565b6040516020818303038152906040525b9392505050565b337f000000000000000000000000ae2bc979178e97e0688384aab00055e67bea91ed6001600160a01b0316146108a5576040517ffa17566300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8281146108de576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61094c8585858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808902828101820190935288825290935088925087918291850190849080828437600092019190915250610e0392505050565b5050505050565b60078054610960906114a9565b80601f016020809104026020016040519081016040528092919081815260200182805461098c906114a9565b80156109d95780601f106109ae576101008083540402835291602001916109d9565b820191906000526020600020905b8154815290600101906020018083116109bc57829003601f168201915b505050505081565b6109e9610c29565b6001600160a01b038116610a2c576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b610a3581610cec565b50565b6001600160a01b038316610a7b576040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b80600003610a8857505050565b7f004189374bc6a7ef9db22d0e5604189374bc6a7ef9db22d0e5604189374bc6a6821115610ae2576040517f870e75fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152600460205260409020547f00000000000000000000000000000000000000000000000000000000000003e8819003821115610b4e576040517f7aed06db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000003e883028101600081815260066020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038a169081179091558784526004835281842087870190558352600590915281208054850190555b83811015610c2157604051828201906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101610bd7565b505050505050565b6000546001600160a01b03163314610778576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016106a3565b6003610618828261167d565b6000610ca77f00000000000000000000000000000000000000000000000000000000000003e883611753565b60046000610cd57f00000000000000000000000000000000000000000000000000000000000003e886611767565b815260200190815260200160002054119050919050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060600380546104c3906114a9565b60606000610d708361105a565b600101905060008167ffffffffffffffff811115610d9057610d90611508565b6040519080825280601f01601f191660200182016040528015610dba576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084610dc457509392505050565b6001600160a01b038316610e46576040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600060048201526024016106a3565b6000805b8351811015611034576000838281518110610e6757610e6761177b565b6020026020010151905080600003610e7f575061102c565b6000858381518110610e9357610e9361177b565b602002602001015190507f004189374bc6a7ef9db22d0e5604189374bc6a7ef9db22d0e5604189374bc6a6811115610ef7576040517f870e75fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000818152600460205260409020547f00000000000000000000000000000000000000000000000000000000000003e8819003831115610f63576040517f7aed06db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000003e882028101600081815260066020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038e161790558583526004909152812085840190555b8481101561102457604051828201906001600160a01b038c16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101610fda565b505050920191505b600101610e4a565b506001600160a01b03909316600090815260056020526040902080549093019092555050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106110a3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106110cf576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106110ed57662386f26fc10000830492506010015b6305f5e1008310611105576305f5e100830492506008015b612710831061111957612710830492506004015b6064831061112b576064830492506002015b600a83106104ae5760010192915050565b60006020828403121561114e57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461083c57600080fd5b60005b83811015611199578181015183820152602001611181565b50506000910152565b60208152600082518060208401526111c181604085016020870161117e565b601f01601f19169190910160400192915050565b6000602082840312156111e757600080fd5b5035919050565b80356001600160a01b038116811461120557600080fd5b919050565b6000806040838503121561121d57600080fd5b611226836111ee565b946020939093013593505050565b60008060006060848603121561124957600080fd5b611252846111ee565b9250611260602085016111ee565b9150604084013590509250925092565b60008083601f84011261128257600080fd5b50813567ffffffffffffffff81111561129a57600080fd5b6020830191508360208285010111156112b257600080fd5b9250929050565b600080602083850312156112cc57600080fd5b823567ffffffffffffffff8111156112e357600080fd5b6112ef85828601611270565b90969095509350505050565b60006020828403121561130d57600080fd5b61083c826111ee565b6000806040838503121561132957600080fd5b611332836111ee565b91506020830135801515811461134757600080fd5b809150509250929050565b60008060008060006080868803121561136a57600080fd5b611373866111ee565b9450611381602087016111ee565b935060408601359250606086013567ffffffffffffffff8111156113a457600080fd5b6113b088828901611270565b969995985093965092949392505050565b60008083601f8401126113d357600080fd5b50813567ffffffffffffffff8111156113eb57600080fd5b6020830191508360208260051b85010111156112b257600080fd5b60008060008060006060868803121561141e57600080fd5b611427866111ee565b9450602086013567ffffffffffffffff8082111561144457600080fd5b61145089838a016113c1565b9096509450604088013591508082111561146957600080fd5b506113b0888289016113c1565b6000806040838503121561148957600080fd5b611492836111ee565b91506114a0602084016111ee565b90509250929050565b600181811c908216806114bd57607f821691505b6020821081036114dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60008161150057634e487b7160e01b600052601160045260246000fd5b506000190190565b634e487b7160e01b600052604160045260246000fd5b601f82111561078f576000816000526020600020601f850160051c810160208610156115475750805b601f850160051c820191505b81811015610c2157828155600101611553565b67ffffffffffffffff83111561157e5761157e611508565b6115928361158c83546114a9565b8361151e565b6000601f8411600181146115c657600085156115ae5750838201355b600019600387901b1c1916600186901b17835561094c565b600083815260209020601f19861690835b828110156115f757868501358255602094850194600190920191016115d7565b50868210156116145760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000835161163881846020880161117e565b83519083019061164c81836020880161117e565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b815167ffffffffffffffff81111561169757611697611508565b6116ab816116a584546114a9565b8461151e565b602080601f8311600181146116e057600084156116c85750858301515b600019600386901b1c1916600185901b178555610c21565b600085815260208120601f198616915b8281101561170f578886015182559484019460019091019084016116f0565b508582101561172d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b6000826117625761176261173d565b500690565b6000826117765761177661173d565b500490565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220f1172a756291fe5947f8293678067abf126460e2ef97fcec75eccad464fe706f64736f6c63430008160033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000ae2bc979178e97e0688384aab00055e67bea91ed0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569646d703673766f687836666977623634666a707777666c36346f76643679347879746a696435356e7667626479633674726b79692f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f626166796265696479686b3337707773756d796762716c737772756c66326b36326f77776f72616470737178347977356561706672747a726f7934000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseUri (string): ipfs://bafybeidmp6svohx6fiwb64fjpwwfl64ovd6y4xytjid55nvgbdyc6trkyi/
Arg [1] : _contractUri (string): ipfs://bafybeidyhk37pwsumygbqlswrulf2k62owworadpsqx4yw5eapfrtzroy4
Arg [2] : _sanwear (address): 0xAE2Bc979178E97e0688384Aab00055E67bEa91ed

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000ae2bc979178e97e0688384aab00055e67bea91ed
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [4] : 697066733a2f2f62616679626569646d703673766f687836666977623634666a
Arg [5] : 707777666c36346f76643679347879746a696435356e7667626479633674726b
Arg [6] : 79692f0000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [8] : 697066733a2f2f626166796265696479686b3337707773756d796762716c7377
Arg [9] : 72756c66326b36326f77776f72616470737178347977356561706672747a726f
Arg [10] : 7934000000000000000000000000000000000000000000000000000000000000


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.